@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
|
@@ -32,7 +32,7 @@ var require_dayjs_min = __commonJS({
|
|
|
32
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();
|
|
33
33
|
}(exports, function() {
|
|
34
34
|
"use strict";
|
|
35
|
-
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week",
|
|
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) {
|
|
36
36
|
var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
|
|
37
37
|
return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
|
|
38
38
|
} }, m = function(t2, e2, n2) {
|
|
@@ -44,18 +44,18 @@ var require_dayjs_min = __commonJS({
|
|
|
44
44
|
}, m: function t2(e2, n2) {
|
|
45
45
|
if (e2.date() < n2.date())
|
|
46
46
|
return -t2(n2, e2);
|
|
47
|
-
var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2,
|
|
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);
|
|
48
48
|
return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
|
|
49
49
|
}, a: function(t2) {
|
|
50
50
|
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
|
51
51
|
}, p: function(t2) {
|
|
52
|
-
return { M:
|
|
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$/, "");
|
|
53
53
|
}, u: function(t2) {
|
|
54
54
|
return void 0 === t2;
|
|
55
55
|
} }, g = "en", D = {};
|
|
56
56
|
D[g] = M;
|
|
57
57
|
var p = function(t2) {
|
|
58
|
-
return t2 instanceof
|
|
58
|
+
return t2 instanceof b;
|
|
59
59
|
}, S = function t2(e2, n2, r2) {
|
|
60
60
|
var i2;
|
|
61
61
|
if (!e2)
|
|
@@ -75,12 +75,12 @@ var require_dayjs_min = __commonJS({
|
|
|
75
75
|
if (p(t2))
|
|
76
76
|
return t2.clone();
|
|
77
77
|
var n2 = "object" == typeof e2 ? e2 : {};
|
|
78
|
-
return n2.date = t2, n2.args = arguments, new
|
|
78
|
+
return n2.date = t2, n2.args = arguments, new b(n2);
|
|
79
79
|
}, O = v;
|
|
80
80
|
O.l = S, O.i = p, O.w = function(t2, e2) {
|
|
81
81
|
return w(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
82
82
|
};
|
|
83
|
-
var
|
|
83
|
+
var b = function() {
|
|
84
84
|
function M2(t2) {
|
|
85
85
|
this.$L = S(t2.locale, null, true), this.parse(t2);
|
|
86
86
|
}
|
|
@@ -124,16 +124,16 @@ var require_dayjs_min = __commonJS({
|
|
|
124
124
|
}, m2.valueOf = function() {
|
|
125
125
|
return this.$d.getTime();
|
|
126
126
|
}, m2.startOf = function(t2, e2) {
|
|
127
|
-
var n2 = this, r2 = !!O.u(e2) || e2,
|
|
127
|
+
var n2 = this, r2 = !!O.u(e2) || e2, f2 = O.p(t2), l2 = function(t3, e3) {
|
|
128
128
|
var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
129
129
|
return r2 ? i2 : i2.endOf(a);
|
|
130
130
|
}, $2 = function(t3, e3) {
|
|
131
131
|
return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
132
132
|
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
133
|
-
switch (
|
|
134
|
-
case
|
|
133
|
+
switch (f2) {
|
|
134
|
+
case h:
|
|
135
135
|
return r2 ? l2(1, 0) : l2(31, 11);
|
|
136
|
-
case
|
|
136
|
+
case c:
|
|
137
137
|
return r2 ? l2(1, M3) : l2(0, M3 + 1);
|
|
138
138
|
case o:
|
|
139
139
|
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
@@ -153,8 +153,8 @@ var require_dayjs_min = __commonJS({
|
|
|
153
153
|
}, m2.endOf = function(t2) {
|
|
154
154
|
return this.startOf(t2, false);
|
|
155
155
|
}, m2.$set = function(t2, e2) {
|
|
156
|
-
var n2, o2 = O.p(t2),
|
|
157
|
-
if (o2 ===
|
|
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) {
|
|
158
158
|
var y2 = this.clone().set(d, 1);
|
|
159
159
|
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
160
160
|
} else
|
|
@@ -164,17 +164,17 @@ var require_dayjs_min = __commonJS({
|
|
|
164
164
|
return this.clone().$set(t2, e2);
|
|
165
165
|
}, m2.get = function(t2) {
|
|
166
166
|
return this[O.p(t2)]();
|
|
167
|
-
}, m2.add = function(r2,
|
|
167
|
+
}, m2.add = function(r2, f2) {
|
|
168
168
|
var d2, l2 = this;
|
|
169
169
|
r2 = Number(r2);
|
|
170
|
-
var $2 = O.p(
|
|
170
|
+
var $2 = O.p(f2), y2 = function(t2) {
|
|
171
171
|
var e2 = w(l2);
|
|
172
172
|
return O.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
|
|
173
173
|
};
|
|
174
|
-
if ($2 === f)
|
|
175
|
-
return this.set(f, this.$M + r2);
|
|
176
174
|
if ($2 === c)
|
|
177
|
-
return this.set(c, this.$
|
|
175
|
+
return this.set(c, this.$M + r2);
|
|
176
|
+
if ($2 === h)
|
|
177
|
+
return this.set(h, this.$y + r2);
|
|
178
178
|
if ($2 === a)
|
|
179
179
|
return y2(1);
|
|
180
180
|
if ($2 === o)
|
|
@@ -187,24 +187,106 @@ var require_dayjs_min = __commonJS({
|
|
|
187
187
|
var e2 = this, n2 = this.$locale();
|
|
188
188
|
if (!this.isValid())
|
|
189
189
|
return n2.invalidDate || l;
|
|
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,
|
|
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) {
|
|
191
191
|
return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
|
|
192
|
-
},
|
|
192
|
+
}, d2 = function(t3) {
|
|
193
193
|
return O.s(s2 % 12 || 12, t3, "0");
|
|
194
|
-
},
|
|
194
|
+
}, $2 = f2 || function(t3, e3, n3) {
|
|
195
195
|
var r3 = t3 < 12 ? "AM" : "PM";
|
|
196
196
|
return n3 ? r3.toLowerCase() : r3;
|
|
197
|
-
}
|
|
198
|
-
return r2.replace(y, function(t3,
|
|
199
|
-
return
|
|
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(":", "");
|
|
200
252
|
});
|
|
201
253
|
}, m2.utcOffset = function() {
|
|
202
254
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
203
255
|
}, m2.diff = function(r2, d2, l2) {
|
|
204
|
-
var $2, y2 = O.p(d2),
|
|
205
|
-
|
|
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);
|
|
206
288
|
}, m2.daysInMonth = function() {
|
|
207
|
-
return this.endOf(
|
|
289
|
+
return this.endOf(c).$D;
|
|
208
290
|
}, m2.$locale = function() {
|
|
209
291
|
return D[this.$L];
|
|
210
292
|
}, m2.locale = function(t2, e2) {
|
|
@@ -223,13 +305,13 @@ var require_dayjs_min = __commonJS({
|
|
|
223
305
|
}, m2.toString = function() {
|
|
224
306
|
return this.$d.toUTCString();
|
|
225
307
|
}, M2;
|
|
226
|
-
}(),
|
|
227
|
-
return w.prototype =
|
|
228
|
-
|
|
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) {
|
|
229
311
|
return this.$g(e2, t2[0], t2[1]);
|
|
230
312
|
};
|
|
231
313
|
}), w.extend = function(t2, e2) {
|
|
232
|
-
return t2.$i || (t2(e2,
|
|
314
|
+
return t2.$i || (t2(e2, b, w), t2.$i = true), w;
|
|
233
315
|
}, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
|
|
234
316
|
return w(1e3 * t2);
|
|
235
317
|
}, w.en = D[g], w.Ls = D, w.p = {}, w;
|
|
@@ -250,9 +332,9 @@ var require_interopRequireDefault = __commonJS({
|
|
|
250
332
|
}
|
|
251
333
|
});
|
|
252
334
|
|
|
253
|
-
// ../../node_modules/rc-
|
|
335
|
+
// ../../node_modules/rc-util/lib/warning.js
|
|
254
336
|
var require_warning = __commonJS({
|
|
255
|
-
"../../node_modules/rc-
|
|
337
|
+
"../../node_modules/rc-util/lib/warning.js"(exports) {
|
|
256
338
|
"use strict";
|
|
257
339
|
Object.defineProperty(exports, "__esModule", {
|
|
258
340
|
value: true
|
|
@@ -1031,7 +1113,7 @@ var AntDValueSelector = ({
|
|
|
1031
1113
|
Select2,
|
|
1032
1114
|
{
|
|
1033
1115
|
...modeObj,
|
|
1034
|
-
|
|
1116
|
+
popupMatchSelectWidth: false,
|
|
1035
1117
|
disabled,
|
|
1036
1118
|
value: val,
|
|
1037
1119
|
onChange,
|