@react-querybuilder/antd 6.5.1 → 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.
- package/dist/cjs/react-querybuilder_antd.cjs.development.d.ts +1 -1
- package/dist/cjs/react-querybuilder_antd.cjs.development.js +115 -33
- package/dist/cjs/react-querybuilder_antd.cjs.development.js.map +1 -1
- package/dist/cjs/react-querybuilder_antd.cjs.production.d.ts +1 -1
- package/dist/cjs/react-querybuilder_antd.cjs.production.js +1 -1
- package/dist/cjs/react-querybuilder_antd.cjs.production.js.map +1 -1
- package/dist/react-querybuilder_antd.d.mts +1 -1
- package/dist/react-querybuilder_antd.legacy-esm.d.mts +1 -1
- package/dist/react-querybuilder_antd.legacy-esm.js +115 -33
- package/dist/react-querybuilder_antd.legacy-esm.js.map +1 -1
- package/dist/react-querybuilder_antd.mjs +115 -33
- package/dist/react-querybuilder_antd.mjs.map +1 -1
- package/dist/react-querybuilder_antd.production.d.mts +1 -1
- package/dist/react-querybuilder_antd.production.mjs +1 -1
- package/dist/react-querybuilder_antd.production.mjs.map +1 -1
- package/package.json +13 -12
|
@@ -61,7 +61,7 @@ var require_dayjs_min = __commonJS({
|
|
|
61
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();
|
|
62
62
|
}(exports, function() {
|
|
63
63
|
"use strict";
|
|
64
|
-
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week",
|
|
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) {
|
|
65
65
|
var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
|
|
66
66
|
return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
|
|
67
67
|
} }, m = function(t2, e2, n2) {
|
|
@@ -73,18 +73,18 @@ var require_dayjs_min = __commonJS({
|
|
|
73
73
|
}, m: function t2(e2, n2) {
|
|
74
74
|
if (e2.date() < n2.date())
|
|
75
75
|
return -t2(n2, e2);
|
|
76
|
-
var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2,
|
|
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);
|
|
77
77
|
return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
|
|
78
78
|
}, a: function(t2) {
|
|
79
79
|
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
|
80
80
|
}, p: function(t2) {
|
|
81
|
-
return { M:
|
|
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$/, "");
|
|
82
82
|
}, u: function(t2) {
|
|
83
83
|
return void 0 === t2;
|
|
84
84
|
} }, g = "en", D = {};
|
|
85
85
|
D[g] = M;
|
|
86
86
|
var p = function(t2) {
|
|
87
|
-
return t2 instanceof
|
|
87
|
+
return t2 instanceof b;
|
|
88
88
|
}, S = function t2(e2, n2, r2) {
|
|
89
89
|
var i2;
|
|
90
90
|
if (!e2)
|
|
@@ -104,12 +104,12 @@ var require_dayjs_min = __commonJS({
|
|
|
104
104
|
if (p(t2))
|
|
105
105
|
return t2.clone();
|
|
106
106
|
var n2 = "object" == typeof e2 ? e2 : {};
|
|
107
|
-
return n2.date = t2, n2.args = arguments, new
|
|
107
|
+
return n2.date = t2, n2.args = arguments, new b(n2);
|
|
108
108
|
}, O = v;
|
|
109
109
|
O.l = S, O.i = p, O.w = function(t2, e2) {
|
|
110
110
|
return w(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
111
111
|
};
|
|
112
|
-
var
|
|
112
|
+
var b = function() {
|
|
113
113
|
function M2(t2) {
|
|
114
114
|
this.$L = S(t2.locale, null, true), this.parse(t2);
|
|
115
115
|
}
|
|
@@ -153,16 +153,16 @@ var require_dayjs_min = __commonJS({
|
|
|
153
153
|
}, m2.valueOf = function() {
|
|
154
154
|
return this.$d.getTime();
|
|
155
155
|
}, m2.startOf = function(t2, e2) {
|
|
156
|
-
var n2 = this, r2 = !!O.u(e2) || e2,
|
|
156
|
+
var n2 = this, r2 = !!O.u(e2) || e2, f2 = O.p(t2), l2 = function(t3, e3) {
|
|
157
157
|
var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
158
158
|
return r2 ? i2 : i2.endOf(a);
|
|
159
159
|
}, $2 = function(t3, e3) {
|
|
160
160
|
return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
161
161
|
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
162
|
-
switch (
|
|
163
|
-
case
|
|
162
|
+
switch (f2) {
|
|
163
|
+
case h:
|
|
164
164
|
return r2 ? l2(1, 0) : l2(31, 11);
|
|
165
|
-
case
|
|
165
|
+
case c:
|
|
166
166
|
return r2 ? l2(1, M3) : l2(0, M3 + 1);
|
|
167
167
|
case o:
|
|
168
168
|
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
@@ -182,8 +182,8 @@ var require_dayjs_min = __commonJS({
|
|
|
182
182
|
}, m2.endOf = function(t2) {
|
|
183
183
|
return this.startOf(t2, false);
|
|
184
184
|
}, m2.$set = function(t2, e2) {
|
|
185
|
-
var n2, o2 = O.p(t2),
|
|
186
|
-
if (o2 ===
|
|
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) {
|
|
187
187
|
var y2 = this.clone().set(d, 1);
|
|
188
188
|
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
189
189
|
} else
|
|
@@ -193,17 +193,17 @@ var require_dayjs_min = __commonJS({
|
|
|
193
193
|
return this.clone().$set(t2, e2);
|
|
194
194
|
}, m2.get = function(t2) {
|
|
195
195
|
return this[O.p(t2)]();
|
|
196
|
-
}, m2.add = function(r2,
|
|
196
|
+
}, m2.add = function(r2, f2) {
|
|
197
197
|
var d2, l2 = this;
|
|
198
198
|
r2 = Number(r2);
|
|
199
|
-
var $2 = O.p(
|
|
199
|
+
var $2 = O.p(f2), y2 = function(t2) {
|
|
200
200
|
var e2 = w(l2);
|
|
201
201
|
return O.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
|
|
202
202
|
};
|
|
203
|
-
if ($2 === f)
|
|
204
|
-
return this.set(f, this.$M + r2);
|
|
205
203
|
if ($2 === c)
|
|
206
|
-
return this.set(c, this.$
|
|
204
|
+
return this.set(c, this.$M + r2);
|
|
205
|
+
if ($2 === h)
|
|
206
|
+
return this.set(h, this.$y + r2);
|
|
207
207
|
if ($2 === a)
|
|
208
208
|
return y2(1);
|
|
209
209
|
if ($2 === o)
|
|
@@ -216,24 +216,106 @@ var require_dayjs_min = __commonJS({
|
|
|
216
216
|
var e2 = this, n2 = this.$locale();
|
|
217
217
|
if (!this.isValid())
|
|
218
218
|
return n2.invalidDate || l;
|
|
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,
|
|
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) {
|
|
220
220
|
return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
|
|
221
|
-
},
|
|
221
|
+
}, d2 = function(t3) {
|
|
222
222
|
return O.s(s2 % 12 || 12, t3, "0");
|
|
223
|
-
},
|
|
223
|
+
}, $2 = f2 || function(t3, e3, n3) {
|
|
224
224
|
var r3 = t3 < 12 ? "AM" : "PM";
|
|
225
225
|
return n3 ? r3.toLowerCase() : r3;
|
|
226
|
-
}
|
|
227
|
-
return r2.replace(y, function(t3,
|
|
228
|
-
return
|
|
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(":", "");
|
|
229
281
|
});
|
|
230
282
|
}, m2.utcOffset = function() {
|
|
231
283
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
232
284
|
}, m2.diff = function(r2, d2, l2) {
|
|
233
|
-
var $2, y2 = O.p(d2),
|
|
234
|
-
|
|
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);
|
|
235
317
|
}, m2.daysInMonth = function() {
|
|
236
|
-
return this.endOf(
|
|
318
|
+
return this.endOf(c).$D;
|
|
237
319
|
}, m2.$locale = function() {
|
|
238
320
|
return D[this.$L];
|
|
239
321
|
}, m2.locale = function(t2, e2) {
|
|
@@ -252,13 +334,13 @@ var require_dayjs_min = __commonJS({
|
|
|
252
334
|
}, m2.toString = function() {
|
|
253
335
|
return this.$d.toUTCString();
|
|
254
336
|
}, M2;
|
|
255
|
-
}(),
|
|
256
|
-
return w.prototype =
|
|
257
|
-
|
|
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) {
|
|
258
340
|
return this.$g(e2, t2[0], t2[1]);
|
|
259
341
|
};
|
|
260
342
|
}), w.extend = function(t2, e2) {
|
|
261
|
-
return t2.$i || (t2(e2,
|
|
343
|
+
return t2.$i || (t2(e2, b, w), t2.$i = true), w;
|
|
262
344
|
}, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
|
|
263
345
|
return w(1e3 * t2);
|
|
264
346
|
}, w.en = D[g], w.Ls = D, w.p = {}, w;
|
|
@@ -279,9 +361,9 @@ var require_interopRequireDefault = __commonJS({
|
|
|
279
361
|
}
|
|
280
362
|
});
|
|
281
363
|
|
|
282
|
-
// ../../node_modules/rc-
|
|
364
|
+
// ../../node_modules/rc-util/lib/warning.js
|
|
283
365
|
var require_warning = __commonJS({
|
|
284
|
-
"../../node_modules/rc-
|
|
366
|
+
"../../node_modules/rc-util/lib/warning.js"(exports) {
|
|
285
367
|
"use strict";
|
|
286
368
|
Object.defineProperty(exports, "__esModule", {
|
|
287
369
|
value: true
|
|
@@ -1122,7 +1204,7 @@ var AntDValueSelector = (_a) => {
|
|
|
1122
1204
|
return /* @__PURE__ */ React5.createElement("span", { title, className }, /* @__PURE__ */ React5.createElement(
|
|
1123
1205
|
Select2,
|
|
1124
1206
|
__spreadValues(__spreadProps(__spreadValues({}, modeObj), {
|
|
1125
|
-
|
|
1207
|
+
popupMatchSelectWidth: false,
|
|
1126
1208
|
disabled,
|
|
1127
1209
|
value: val,
|
|
1128
1210
|
onChange
|