@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.
@@ -27,11 +27,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  // ../../node_modules/dayjs/dayjs.min.js
28
28
  var require_dayjs_min = __commonJS({
29
29
  "../../node_modules/dayjs/dayjs.min.js"(exports, module) {
30
+ "use strict";
30
31
  !function(t, e) {
31
32
  "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();
32
33
  }(exports, function() {
33
34
  "use strict";
34
- 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) {
35
+ 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) {
35
36
  var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
36
37
  return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
37
38
  } }, m = function(t2, e2, n2) {
@@ -43,18 +44,18 @@ var require_dayjs_min = __commonJS({
43
44
  }, m: function t2(e2, n2) {
44
45
  if (e2.date() < n2.date())
45
46
  return -t2(n2, e2);
46
- 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);
47
+ 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);
47
48
  return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
48
49
  }, a: function(t2) {
49
50
  return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
50
51
  }, p: function(t2) {
51
- 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$/, "");
52
+ 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$/, "");
52
53
  }, u: function(t2) {
53
54
  return void 0 === t2;
54
55
  } }, g = "en", D = {};
55
56
  D[g] = M;
56
57
  var p = function(t2) {
57
- return t2 instanceof _;
58
+ return t2 instanceof b;
58
59
  }, S = function t2(e2, n2, r2) {
59
60
  var i2;
60
61
  if (!e2)
@@ -74,12 +75,12 @@ var require_dayjs_min = __commonJS({
74
75
  if (p(t2))
75
76
  return t2.clone();
76
77
  var n2 = "object" == typeof e2 ? e2 : {};
77
- return n2.date = t2, n2.args = arguments, new _(n2);
78
+ return n2.date = t2, n2.args = arguments, new b(n2);
78
79
  }, O = v;
79
80
  O.l = S, O.i = p, O.w = function(t2, e2) {
80
81
  return w(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
81
82
  };
82
- var _ = function() {
83
+ var b = function() {
83
84
  function M2(t2) {
84
85
  this.$L = S(t2.locale, null, true), this.parse(t2);
85
86
  }
@@ -123,16 +124,16 @@ var require_dayjs_min = __commonJS({
123
124
  }, m2.valueOf = function() {
124
125
  return this.$d.getTime();
125
126
  }, m2.startOf = function(t2, e2) {
126
- var n2 = this, r2 = !!O.u(e2) || e2, h2 = O.p(t2), l2 = function(t3, e3) {
127
+ var n2 = this, r2 = !!O.u(e2) || e2, f2 = O.p(t2), l2 = function(t3, e3) {
127
128
  var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
128
129
  return r2 ? i2 : i2.endOf(a);
129
130
  }, $2 = function(t3, e3) {
130
131
  return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
131
132
  }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
132
- switch (h2) {
133
- case c:
133
+ switch (f2) {
134
+ case h:
134
135
  return r2 ? l2(1, 0) : l2(31, 11);
135
- case f:
136
+ case c:
136
137
  return r2 ? l2(1, M3) : l2(0, M3 + 1);
137
138
  case o:
138
139
  var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
@@ -152,8 +153,8 @@ var require_dayjs_min = __commonJS({
152
153
  }, m2.endOf = function(t2) {
153
154
  return this.startOf(t2, false);
154
155
  }, m2.$set = function(t2, e2) {
155
- 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;
156
- if (o2 === f || o2 === c) {
156
+ 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;
157
+ if (o2 === c || o2 === h) {
157
158
  var y2 = this.clone().set(d, 1);
158
159
  y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
159
160
  } else
@@ -163,17 +164,17 @@ var require_dayjs_min = __commonJS({
163
164
  return this.clone().$set(t2, e2);
164
165
  }, m2.get = function(t2) {
165
166
  return this[O.p(t2)]();
166
- }, m2.add = function(r2, h2) {
167
+ }, m2.add = function(r2, f2) {
167
168
  var d2, l2 = this;
168
169
  r2 = Number(r2);
169
- var $2 = O.p(h2), y2 = function(t2) {
170
+ var $2 = O.p(f2), y2 = function(t2) {
170
171
  var e2 = w(l2);
171
172
  return O.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
172
173
  };
173
- if ($2 === f)
174
- return this.set(f, this.$M + r2);
175
174
  if ($2 === c)
176
- return this.set(c, this.$y + r2);
175
+ return this.set(c, this.$M + r2);
176
+ if ($2 === h)
177
+ return this.set(h, this.$y + r2);
177
178
  if ($2 === a)
178
179
  return y2(1);
179
180
  if ($2 === o)
@@ -186,24 +187,106 @@ var require_dayjs_min = __commonJS({
186
187
  var e2 = this, n2 = this.$locale();
187
188
  if (!this.isValid())
188
189
  return n2.invalidDate || l;
189
- 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) {
190
+ 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) {
190
191
  return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
191
- }, c2 = function(t3) {
192
+ }, d2 = function(t3) {
192
193
  return O.s(s2 % 12 || 12, t3, "0");
193
- }, d2 = n2.meridiem || function(t3, e3, n3) {
194
+ }, $2 = f2 || function(t3, e3, n3) {
194
195
  var r3 = t3 < 12 ? "AM" : "PM";
195
196
  return n3 ? r3.toLowerCase() : r3;
196
- }, $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 };
197
- return r2.replace(y, function(t3, e3) {
198
- return e3 || $2[t3] || i2.replace(":", "");
197
+ };
198
+ return r2.replace(y, function(t3, r3) {
199
+ return r3 || function(t4) {
200
+ switch (t4) {
201
+ case "YY":
202
+ return String(e2.$y).slice(-2);
203
+ case "YYYY":
204
+ return O.s(e2.$y, 4, "0");
205
+ case "M":
206
+ return a2 + 1;
207
+ case "MM":
208
+ return O.s(a2 + 1, 2, "0");
209
+ case "MMM":
210
+ return h2(n2.monthsShort, a2, c2, 3);
211
+ case "MMMM":
212
+ return h2(c2, a2);
213
+ case "D":
214
+ return e2.$D;
215
+ case "DD":
216
+ return O.s(e2.$D, 2, "0");
217
+ case "d":
218
+ return String(e2.$W);
219
+ case "dd":
220
+ return h2(n2.weekdaysMin, e2.$W, o2, 2);
221
+ case "ddd":
222
+ return h2(n2.weekdaysShort, e2.$W, o2, 3);
223
+ case "dddd":
224
+ return o2[e2.$W];
225
+ case "H":
226
+ return String(s2);
227
+ case "HH":
228
+ return O.s(s2, 2, "0");
229
+ case "h":
230
+ return d2(1);
231
+ case "hh":
232
+ return d2(2);
233
+ case "a":
234
+ return $2(s2, u2, true);
235
+ case "A":
236
+ return $2(s2, u2, false);
237
+ case "m":
238
+ return String(u2);
239
+ case "mm":
240
+ return O.s(u2, 2, "0");
241
+ case "s":
242
+ return String(e2.$s);
243
+ case "ss":
244
+ return O.s(e2.$s, 2, "0");
245
+ case "SSS":
246
+ return O.s(e2.$ms, 3, "0");
247
+ case "Z":
248
+ return i2;
249
+ }
250
+ return null;
251
+ }(t3) || i2.replace(":", "");
199
252
  });
200
253
  }, m2.utcOffset = function() {
201
254
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
202
255
  }, m2.diff = function(r2, d2, l2) {
203
- var $2, y2 = O.p(d2), M3 = w(r2), m3 = (M3.utcOffset() - this.utcOffset()) * e, v2 = this - M3, g2 = O.m(this, M3);
204
- 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);
256
+ var $2, y2 = this, M3 = O.p(d2), m3 = w(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
257
+ return O.m(y2, m3);
258
+ };
259
+ switch (M3) {
260
+ case h:
261
+ $2 = D2() / 12;
262
+ break;
263
+ case c:
264
+ $2 = D2();
265
+ break;
266
+ case f:
267
+ $2 = D2() / 3;
268
+ break;
269
+ case o:
270
+ $2 = (g2 - v2) / 6048e5;
271
+ break;
272
+ case a:
273
+ $2 = (g2 - v2) / 864e5;
274
+ break;
275
+ case u:
276
+ $2 = g2 / n;
277
+ break;
278
+ case s:
279
+ $2 = g2 / e;
280
+ break;
281
+ case i:
282
+ $2 = g2 / t;
283
+ break;
284
+ default:
285
+ $2 = g2;
286
+ }
287
+ return l2 ? $2 : O.a($2);
205
288
  }, m2.daysInMonth = function() {
206
- return this.endOf(f).$D;
289
+ return this.endOf(c).$D;
207
290
  }, m2.$locale = function() {
208
291
  return D[this.$L];
209
292
  }, m2.locale = function(t2, e2) {
@@ -222,13 +305,13 @@ var require_dayjs_min = __commonJS({
222
305
  }, m2.toString = function() {
223
306
  return this.$d.toUTCString();
224
307
  }, M2;
225
- }(), T = _.prototype;
226
- return w.prototype = T, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function(t2) {
227
- T[t2[1]] = function(e2) {
308
+ }(), _ = b.prototype;
309
+ return w.prototype = _, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
310
+ _[t2[1]] = function(e2) {
228
311
  return this.$g(e2, t2[0], t2[1]);
229
312
  };
230
313
  }), w.extend = function(t2, e2) {
231
- return t2.$i || (t2(e2, _, w), t2.$i = true), w;
314
+ return t2.$i || (t2(e2, b, w), t2.$i = true), w;
232
315
  }, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
233
316
  return w(1e3 * t2);
234
317
  }, w.en = D[g], w.Ls = D, w.p = {}, w;
@@ -239,6 +322,7 @@ var require_dayjs_min = __commonJS({
239
322
  // ../../node_modules/@babel/runtime/helpers/interopRequireDefault.js
240
323
  var require_interopRequireDefault = __commonJS({
241
324
  "../../node_modules/@babel/runtime/helpers/interopRequireDefault.js"(exports, module) {
325
+ "use strict";
242
326
  function _interopRequireDefault(obj) {
243
327
  return obj && obj.__esModule ? obj : {
244
328
  "default": obj
@@ -248,9 +332,9 @@ var require_interopRequireDefault = __commonJS({
248
332
  }
249
333
  });
250
334
 
251
- // ../../node_modules/rc-picker/node_modules/rc-util/lib/warning.js
335
+ // ../../node_modules/rc-util/lib/warning.js
252
336
  var require_warning = __commonJS({
253
- "../../node_modules/rc-picker/node_modules/rc-util/lib/warning.js"(exports) {
337
+ "../../node_modules/rc-util/lib/warning.js"(exports) {
254
338
  "use strict";
255
339
  Object.defineProperty(exports, "__esModule", {
256
340
  value: true
@@ -315,6 +399,7 @@ var require_warning = __commonJS({
315
399
  // ../../node_modules/dayjs/plugin/weekday.js
316
400
  var require_weekday = __commonJS({
317
401
  "../../node_modules/dayjs/plugin/weekday.js"(exports, module) {
402
+ "use strict";
318
403
  !function(e, t) {
319
404
  "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();
320
405
  }(exports, function() {
@@ -332,6 +417,7 @@ var require_weekday = __commonJS({
332
417
  // ../../node_modules/dayjs/plugin/localeData.js
333
418
  var require_localeData = __commonJS({
334
419
  "../../node_modules/dayjs/plugin/localeData.js"(exports, module) {
420
+ "use strict";
335
421
  !function(n, e) {
336
422
  "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();
337
423
  }(exports, function() {
@@ -413,6 +499,7 @@ var require_localeData = __commonJS({
413
499
  // ../../node_modules/dayjs/plugin/weekOfYear.js
414
500
  var require_weekOfYear = __commonJS({
415
501
  "../../node_modules/dayjs/plugin/weekOfYear.js"(exports, module) {
502
+ "use strict";
416
503
  !function(e, t) {
417
504
  "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();
418
505
  }(exports, function() {
@@ -442,6 +529,7 @@ var require_weekOfYear = __commonJS({
442
529
  // ../../node_modules/dayjs/plugin/weekYear.js
443
530
  var require_weekYear = __commonJS({
444
531
  "../../node_modules/dayjs/plugin/weekYear.js"(exports, module) {
532
+ "use strict";
445
533
  !function(e, t) {
446
534
  "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();
447
535
  }(exports, function() {
@@ -459,6 +547,7 @@ var require_weekYear = __commonJS({
459
547
  // ../../node_modules/dayjs/plugin/advancedFormat.js
460
548
  var require_advancedFormat = __commonJS({
461
549
  "../../node_modules/dayjs/plugin/advancedFormat.js"(exports, module) {
550
+ "use strict";
462
551
  !function(e, t) {
463
552
  "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();
464
553
  }(exports, function() {
@@ -512,6 +601,7 @@ var require_advancedFormat = __commonJS({
512
601
  // ../../node_modules/dayjs/plugin/customParseFormat.js
513
602
  var require_customParseFormat = __commonJS({
514
603
  "../../node_modules/dayjs/plugin/customParseFormat.js"(exports, module) {
604
+ "use strict";
515
605
  !function(e, t) {
516
606
  "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();
517
607
  }(exports, function() {
@@ -970,8 +1060,7 @@ AntDNotToggle.displayName = "AntDNotToggle";
970
1060
  // src/AntDValueEditor.tsx
971
1061
  var import_dayjs = __toESM(require_dayjs_min());
972
1062
  var import_dayjs2 = __toESM(require_dayjs());
973
- import { Checkbox, Input, Radio, Switch as Switch2, TimePicker } from "antd";
974
- import generatePicker from "antd/es/date-picker/generatePicker/index.js";
1063
+ import { DatePicker as AntdDatePicker, Checkbox, Input, Radio, Switch as Switch2, TimePicker } from "antd";
975
1064
  import * as React6 from "react";
976
1065
  import {
977
1066
  getFirstOption,
@@ -1024,7 +1113,7 @@ var AntDValueSelector = ({
1024
1113
  Select2,
1025
1114
  {
1026
1115
  ...modeObj,
1027
- dropdownMatchSelectWidth: false,
1116
+ popupMatchSelectWidth: false,
1028
1117
  disabled,
1029
1118
  value: val,
1030
1119
  onChange,
@@ -1036,7 +1125,7 @@ var AntDValueSelector = ({
1036
1125
  AntDValueSelector.displayName = "AntDValueSelector";
1037
1126
 
1038
1127
  // src/AntDValueEditor.tsx
1039
- var DatePicker = generatePicker(import_dayjs2.default);
1128
+ var DatePicker = AntdDatePicker.generatePicker(import_dayjs2.default);
1040
1129
  var AntDValueEditor = ({
1041
1130
  fieldData,
1042
1131
  operator,