@react-querybuilder/antd 6.5.0 → 6.6.0-alpha.0

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.
@@ -56,11 +56,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
56
56
  // ../../node_modules/dayjs/dayjs.min.js
57
57
  var require_dayjs_min = __commonJS({
58
58
  "../../node_modules/dayjs/dayjs.min.js"(exports, module) {
59
+ "use strict";
59
60
  !function(t, e) {
60
61
  "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
61
62
  }(exports, function() {
62
63
  "use strict";
63
- var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", f = "month", h = "quarter", c = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
64
+ var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
64
65
  var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
65
66
  return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
66
67
  } }, m = function(t2, e2, n2) {
@@ -72,18 +73,18 @@ var require_dayjs_min = __commonJS({
72
73
  }, m: function t2(e2, n2) {
73
74
  if (e2.date() < n2.date())
74
75
  return -t2(n2, e2);
75
- var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, f), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), f);
76
+ var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
76
77
  return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
77
78
  }, a: function(t2) {
78
79
  return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
79
80
  }, p: function(t2) {
80
- return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: h }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
81
+ return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
81
82
  }, u: function(t2) {
82
83
  return void 0 === t2;
83
84
  } }, g = "en", D = {};
84
85
  D[g] = M;
85
86
  var p = function(t2) {
86
- return t2 instanceof _;
87
+ return t2 instanceof b;
87
88
  }, S = function t2(e2, n2, r2) {
88
89
  var i2;
89
90
  if (!e2)
@@ -103,12 +104,12 @@ var require_dayjs_min = __commonJS({
103
104
  if (p(t2))
104
105
  return t2.clone();
105
106
  var n2 = "object" == typeof e2 ? e2 : {};
106
- return n2.date = t2, n2.args = arguments, new _(n2);
107
+ return n2.date = t2, n2.args = arguments, new b(n2);
107
108
  }, O = v;
108
109
  O.l = S, O.i = p, O.w = function(t2, e2) {
109
110
  return w(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
110
111
  };
111
- var _ = function() {
112
+ var b = function() {
112
113
  function M2(t2) {
113
114
  this.$L = S(t2.locale, null, true), this.parse(t2);
114
115
  }
@@ -152,16 +153,16 @@ var require_dayjs_min = __commonJS({
152
153
  }, m2.valueOf = function() {
153
154
  return this.$d.getTime();
154
155
  }, m2.startOf = function(t2, e2) {
155
- var n2 = this, r2 = !!O.u(e2) || e2, h2 = O.p(t2), l2 = function(t3, e3) {
156
+ var n2 = this, r2 = !!O.u(e2) || e2, f2 = O.p(t2), l2 = function(t3, e3) {
156
157
  var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
157
158
  return r2 ? i2 : i2.endOf(a);
158
159
  }, $2 = function(t3, e3) {
159
160
  return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
160
161
  }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
161
- switch (h2) {
162
- case c:
162
+ switch (f2) {
163
+ case h:
163
164
  return r2 ? l2(1, 0) : l2(31, 11);
164
- case f:
165
+ case c:
165
166
  return r2 ? l2(1, M3) : l2(0, M3 + 1);
166
167
  case o:
167
168
  var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
@@ -181,8 +182,8 @@ var require_dayjs_min = __commonJS({
181
182
  }, m2.endOf = function(t2) {
182
183
  return this.startOf(t2, false);
183
184
  }, m2.$set = function(t2, e2) {
184
- var n2, o2 = O.p(t2), h2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = h2 + "Date", n2[d] = h2 + "Date", n2[f] = h2 + "Month", n2[c] = h2 + "FullYear", n2[u] = h2 + "Hours", n2[s] = h2 + "Minutes", n2[i] = h2 + "Seconds", n2[r] = h2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
185
- if (o2 === f || o2 === c) {
185
+ var n2, o2 = O.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
186
+ if (o2 === c || o2 === h) {
186
187
  var y2 = this.clone().set(d, 1);
187
188
  y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
188
189
  } else
@@ -192,17 +193,17 @@ var require_dayjs_min = __commonJS({
192
193
  return this.clone().$set(t2, e2);
193
194
  }, m2.get = function(t2) {
194
195
  return this[O.p(t2)]();
195
- }, m2.add = function(r2, h2) {
196
+ }, m2.add = function(r2, f2) {
196
197
  var d2, l2 = this;
197
198
  r2 = Number(r2);
198
- var $2 = O.p(h2), y2 = function(t2) {
199
+ var $2 = O.p(f2), y2 = function(t2) {
199
200
  var e2 = w(l2);
200
201
  return O.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
201
202
  };
202
- if ($2 === f)
203
- return this.set(f, this.$M + r2);
204
203
  if ($2 === c)
205
- return this.set(c, this.$y + r2);
204
+ return this.set(c, this.$M + r2);
205
+ if ($2 === h)
206
+ return this.set(h, this.$y + r2);
206
207
  if ($2 === a)
207
208
  return y2(1);
208
209
  if ($2 === o)
@@ -215,24 +216,106 @@ var require_dayjs_min = __commonJS({
215
216
  var e2 = this, n2 = this.$locale();
216
217
  if (!this.isValid())
217
218
  return n2.invalidDate || l;
218
- var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, f2 = n2.months, h2 = function(t3, n3, i3, s3) {
219
+ var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
219
220
  return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
220
- }, c2 = function(t3) {
221
+ }, d2 = function(t3) {
221
222
  return O.s(s2 % 12 || 12, t3, "0");
222
- }, d2 = n2.meridiem || function(t3, e3, n3) {
223
+ }, $2 = f2 || function(t3, e3, n3) {
223
224
  var r3 = t3 < 12 ? "AM" : "PM";
224
225
  return n3 ? r3.toLowerCase() : r3;
225
- }, $2 = { YY: String(this.$y).slice(-2), YYYY: O.s(this.$y, 4, "0"), M: a2 + 1, MM: O.s(a2 + 1, 2, "0"), MMM: h2(n2.monthsShort, a2, f2, 3), MMMM: h2(f2, a2), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: h2(n2.weekdaysMin, this.$W, o2, 2), ddd: h2(n2.weekdaysShort, this.$W, o2, 3), dddd: o2[this.$W], H: String(s2), HH: O.s(s2, 2, "0"), h: c2(1), hh: c2(2), a: d2(s2, u2, true), A: d2(s2, u2, false), m: String(u2), mm: O.s(u2, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: i2 };
226
- return r2.replace(y, function(t3, e3) {
227
- return e3 || $2[t3] || i2.replace(":", "");
226
+ };
227
+ return r2.replace(y, function(t3, r3) {
228
+ return r3 || function(t4) {
229
+ switch (t4) {
230
+ case "YY":
231
+ return String(e2.$y).slice(-2);
232
+ case "YYYY":
233
+ return O.s(e2.$y, 4, "0");
234
+ case "M":
235
+ return a2 + 1;
236
+ case "MM":
237
+ return O.s(a2 + 1, 2, "0");
238
+ case "MMM":
239
+ return h2(n2.monthsShort, a2, c2, 3);
240
+ case "MMMM":
241
+ return h2(c2, a2);
242
+ case "D":
243
+ return e2.$D;
244
+ case "DD":
245
+ return O.s(e2.$D, 2, "0");
246
+ case "d":
247
+ return String(e2.$W);
248
+ case "dd":
249
+ return h2(n2.weekdaysMin, e2.$W, o2, 2);
250
+ case "ddd":
251
+ return h2(n2.weekdaysShort, e2.$W, o2, 3);
252
+ case "dddd":
253
+ return o2[e2.$W];
254
+ case "H":
255
+ return String(s2);
256
+ case "HH":
257
+ return O.s(s2, 2, "0");
258
+ case "h":
259
+ return d2(1);
260
+ case "hh":
261
+ return d2(2);
262
+ case "a":
263
+ return $2(s2, u2, true);
264
+ case "A":
265
+ return $2(s2, u2, false);
266
+ case "m":
267
+ return String(u2);
268
+ case "mm":
269
+ return O.s(u2, 2, "0");
270
+ case "s":
271
+ return String(e2.$s);
272
+ case "ss":
273
+ return O.s(e2.$s, 2, "0");
274
+ case "SSS":
275
+ return O.s(e2.$ms, 3, "0");
276
+ case "Z":
277
+ return i2;
278
+ }
279
+ return null;
280
+ }(t3) || i2.replace(":", "");
228
281
  });
229
282
  }, m2.utcOffset = function() {
230
283
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
231
284
  }, m2.diff = function(r2, d2, l2) {
232
- var $2, y2 = O.p(d2), M3 = w(r2), m3 = (M3.utcOffset() - this.utcOffset()) * e, v2 = this - M3, g2 = O.m(this, M3);
233
- return g2 = ($2 = {}, $2[c] = g2 / 12, $2[f] = g2, $2[h] = g2 / 3, $2[o] = (v2 - m3) / 6048e5, $2[a] = (v2 - m3) / 864e5, $2[u] = v2 / n, $2[s] = v2 / e, $2[i] = v2 / t, $2)[y2] || v2, l2 ? g2 : O.a(g2);
285
+ var $2, y2 = this, M3 = O.p(d2), m3 = w(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
286
+ return O.m(y2, m3);
287
+ };
288
+ switch (M3) {
289
+ case h:
290
+ $2 = D2() / 12;
291
+ break;
292
+ case c:
293
+ $2 = D2();
294
+ break;
295
+ case f:
296
+ $2 = D2() / 3;
297
+ break;
298
+ case o:
299
+ $2 = (g2 - v2) / 6048e5;
300
+ break;
301
+ case a:
302
+ $2 = (g2 - v2) / 864e5;
303
+ break;
304
+ case u:
305
+ $2 = g2 / n;
306
+ break;
307
+ case s:
308
+ $2 = g2 / e;
309
+ break;
310
+ case i:
311
+ $2 = g2 / t;
312
+ break;
313
+ default:
314
+ $2 = g2;
315
+ }
316
+ return l2 ? $2 : O.a($2);
234
317
  }, m2.daysInMonth = function() {
235
- return this.endOf(f).$D;
318
+ return this.endOf(c).$D;
236
319
  }, m2.$locale = function() {
237
320
  return D[this.$L];
238
321
  }, m2.locale = function(t2, e2) {
@@ -251,13 +334,13 @@ var require_dayjs_min = __commonJS({
251
334
  }, m2.toString = function() {
252
335
  return this.$d.toUTCString();
253
336
  }, M2;
254
- }(), T = _.prototype;
255
- return w.prototype = T, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function(t2) {
256
- T[t2[1]] = function(e2) {
337
+ }(), _ = b.prototype;
338
+ return w.prototype = _, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
339
+ _[t2[1]] = function(e2) {
257
340
  return this.$g(e2, t2[0], t2[1]);
258
341
  };
259
342
  }), w.extend = function(t2, e2) {
260
- return t2.$i || (t2(e2, _, w), t2.$i = true), w;
343
+ return t2.$i || (t2(e2, b, w), t2.$i = true), w;
261
344
  }, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
262
345
  return w(1e3 * t2);
263
346
  }, w.en = D[g], w.Ls = D, w.p = {}, w;
@@ -268,6 +351,7 @@ var require_dayjs_min = __commonJS({
268
351
  // ../../node_modules/@babel/runtime/helpers/interopRequireDefault.js
269
352
  var require_interopRequireDefault = __commonJS({
270
353
  "../../node_modules/@babel/runtime/helpers/interopRequireDefault.js"(exports, module) {
354
+ "use strict";
271
355
  function _interopRequireDefault(obj) {
272
356
  return obj && obj.__esModule ? obj : {
273
357
  "default": obj
@@ -277,9 +361,9 @@ var require_interopRequireDefault = __commonJS({
277
361
  }
278
362
  });
279
363
 
280
- // ../../node_modules/rc-picker/node_modules/rc-util/lib/warning.js
364
+ // ../../node_modules/rc-util/lib/warning.js
281
365
  var require_warning = __commonJS({
282
- "../../node_modules/rc-picker/node_modules/rc-util/lib/warning.js"(exports) {
366
+ "../../node_modules/rc-util/lib/warning.js"(exports) {
283
367
  "use strict";
284
368
  Object.defineProperty(exports, "__esModule", {
285
369
  value: true
@@ -344,6 +428,7 @@ var require_warning = __commonJS({
344
428
  // ../../node_modules/dayjs/plugin/weekday.js
345
429
  var require_weekday = __commonJS({
346
430
  "../../node_modules/dayjs/plugin/weekday.js"(exports, module) {
431
+ "use strict";
347
432
  !function(e, t) {
348
433
  "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_weekday = t();
349
434
  }(exports, function() {
@@ -361,6 +446,7 @@ var require_weekday = __commonJS({
361
446
  // ../../node_modules/dayjs/plugin/localeData.js
362
447
  var require_localeData = __commonJS({
363
448
  "../../node_modules/dayjs/plugin/localeData.js"(exports, module) {
449
+ "use strict";
364
450
  !function(n, e) {
365
451
  "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (n = "undefined" != typeof globalThis ? globalThis : n || self).dayjs_plugin_localeData = e();
366
452
  }(exports, function() {
@@ -442,6 +528,7 @@ var require_localeData = __commonJS({
442
528
  // ../../node_modules/dayjs/plugin/weekOfYear.js
443
529
  var require_weekOfYear = __commonJS({
444
530
  "../../node_modules/dayjs/plugin/weekOfYear.js"(exports, module) {
531
+ "use strict";
445
532
  !function(e, t) {
446
533
  "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_weekOfYear = t();
447
534
  }(exports, function() {
@@ -471,6 +558,7 @@ var require_weekOfYear = __commonJS({
471
558
  // ../../node_modules/dayjs/plugin/weekYear.js
472
559
  var require_weekYear = __commonJS({
473
560
  "../../node_modules/dayjs/plugin/weekYear.js"(exports, module) {
561
+ "use strict";
474
562
  !function(e, t) {
475
563
  "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_weekYear = t();
476
564
  }(exports, function() {
@@ -488,6 +576,7 @@ var require_weekYear = __commonJS({
488
576
  // ../../node_modules/dayjs/plugin/advancedFormat.js
489
577
  var require_advancedFormat = __commonJS({
490
578
  "../../node_modules/dayjs/plugin/advancedFormat.js"(exports, module) {
579
+ "use strict";
491
580
  !function(e, t) {
492
581
  "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_advancedFormat = t();
493
582
  }(exports, function() {
@@ -541,6 +630,7 @@ var require_advancedFormat = __commonJS({
541
630
  // ../../node_modules/dayjs/plugin/customParseFormat.js
542
631
  var require_customParseFormat = __commonJS({
543
632
  "../../node_modules/dayjs/plugin/customParseFormat.js"(exports, module) {
633
+ "use strict";
544
634
  !function(e, t) {
545
635
  "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_customParseFormat = t();
546
636
  }(exports, function() {
@@ -1043,8 +1133,7 @@ AntDNotToggle.displayName = "AntDNotToggle";
1043
1133
  // src/AntDValueEditor.tsx
1044
1134
  var import_dayjs = __toESM(require_dayjs_min());
1045
1135
  var import_dayjs2 = __toESM(require_dayjs());
1046
- import { Checkbox, Input, Radio, Switch as Switch2, TimePicker } from "antd";
1047
- import generatePicker from "antd/es/date-picker/generatePicker/index.js";
1136
+ import { DatePicker as AntdDatePicker, Checkbox, Input, Radio, Switch as Switch2, TimePicker } from "antd";
1048
1137
  import * as React6 from "react";
1049
1138
  import {
1050
1139
  getFirstOption,
@@ -1115,7 +1204,7 @@ var AntDValueSelector = (_a) => {
1115
1204
  return /* @__PURE__ */ React5.createElement("span", { title, className }, /* @__PURE__ */ React5.createElement(
1116
1205
  Select2,
1117
1206
  __spreadValues(__spreadProps(__spreadValues({}, modeObj), {
1118
- dropdownMatchSelectWidth: false,
1207
+ popupMatchSelectWidth: false,
1119
1208
  disabled,
1120
1209
  value: val,
1121
1210
  onChange
@@ -1126,7 +1215,7 @@ var AntDValueSelector = (_a) => {
1126
1215
  AntDValueSelector.displayName = "AntDValueSelector";
1127
1216
 
1128
1217
  // src/AntDValueEditor.tsx
1129
- var DatePicker = generatePicker(import_dayjs2.default);
1218
+ var DatePicker = AntdDatePicker.generatePicker(import_dayjs2.default);
1130
1219
  var AntDValueEditor = (_a) => {
1131
1220
  var _b = _a, {
1132
1221
  fieldData,