@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
|
@@ -37,4 +37,4 @@ declare const AntDValueSelector: {
|
|
|
37
37
|
declare const antdControlElements: Partial<Controls>;
|
|
38
38
|
declare const QueryBuilderAntD: react_querybuilder.QueryBuilderContextProvider<Record<string, any>>;
|
|
39
39
|
|
|
40
|
-
export { AntDActionElement, AntDDragHandle, AntDNotToggle, AntDValueEditor, AntDValueSelector, QueryBuilderAntD, antdControlElements };
|
|
40
|
+
export { AntDActionElement, AntDActionProps, AntDDragHandle, AntDDragHandleProps, AntDNotToggle, AntDNotToggleProps, AntDValueEditor, AntDValueSelector, AntDValueSelectorProps, QueryBuilderAntD, antdControlElements };
|
|
@@ -38,7 +38,7 @@ var require_dayjs_min = __commonJS({
|
|
|
38
38
|
"object" == typeof exports && "undefined" != typeof module2 ? module2.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
|
|
39
39
|
}(exports, function() {
|
|
40
40
|
"use strict";
|
|
41
|
-
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week",
|
|
41
|
+
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) {
|
|
42
42
|
var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
|
|
43
43
|
return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
|
|
44
44
|
} }, m = function(t2, e2, n2) {
|
|
@@ -50,18 +50,18 @@ var require_dayjs_min = __commonJS({
|
|
|
50
50
|
}, m: function t2(e2, n2) {
|
|
51
51
|
if (e2.date() < n2.date())
|
|
52
52
|
return -t2(n2, e2);
|
|
53
|
-
var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2,
|
|
53
|
+
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);
|
|
54
54
|
return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
|
|
55
55
|
}, a: function(t2) {
|
|
56
56
|
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
|
57
57
|
}, p: function(t2) {
|
|
58
|
-
return { M:
|
|
58
|
+
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$/, "");
|
|
59
59
|
}, u: function(t2) {
|
|
60
60
|
return void 0 === t2;
|
|
61
61
|
} }, g = "en", D = {};
|
|
62
62
|
D[g] = M;
|
|
63
63
|
var p = function(t2) {
|
|
64
|
-
return t2 instanceof
|
|
64
|
+
return t2 instanceof b;
|
|
65
65
|
}, S = function t2(e2, n2, r2) {
|
|
66
66
|
var i2;
|
|
67
67
|
if (!e2)
|
|
@@ -81,12 +81,12 @@ var require_dayjs_min = __commonJS({
|
|
|
81
81
|
if (p(t2))
|
|
82
82
|
return t2.clone();
|
|
83
83
|
var n2 = "object" == typeof e2 ? e2 : {};
|
|
84
|
-
return n2.date = t2, n2.args = arguments, new
|
|
84
|
+
return n2.date = t2, n2.args = arguments, new b(n2);
|
|
85
85
|
}, O = v;
|
|
86
86
|
O.l = S, O.i = p, O.w = function(t2, e2) {
|
|
87
87
|
return w(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
88
88
|
};
|
|
89
|
-
var
|
|
89
|
+
var b = function() {
|
|
90
90
|
function M2(t2) {
|
|
91
91
|
this.$L = S(t2.locale, null, true), this.parse(t2);
|
|
92
92
|
}
|
|
@@ -130,16 +130,16 @@ var require_dayjs_min = __commonJS({
|
|
|
130
130
|
}, m2.valueOf = function() {
|
|
131
131
|
return this.$d.getTime();
|
|
132
132
|
}, m2.startOf = function(t2, e2) {
|
|
133
|
-
var n2 = this, r2 = !!O.u(e2) || e2,
|
|
133
|
+
var n2 = this, r2 = !!O.u(e2) || e2, f2 = O.p(t2), l2 = function(t3, e3) {
|
|
134
134
|
var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
135
135
|
return r2 ? i2 : i2.endOf(a);
|
|
136
136
|
}, $2 = function(t3, e3) {
|
|
137
137
|
return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
138
138
|
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
139
|
-
switch (
|
|
140
|
-
case
|
|
139
|
+
switch (f2) {
|
|
140
|
+
case h:
|
|
141
141
|
return r2 ? l2(1, 0) : l2(31, 11);
|
|
142
|
-
case
|
|
142
|
+
case c:
|
|
143
143
|
return r2 ? l2(1, M3) : l2(0, M3 + 1);
|
|
144
144
|
case o:
|
|
145
145
|
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
@@ -159,8 +159,8 @@ var require_dayjs_min = __commonJS({
|
|
|
159
159
|
}, m2.endOf = function(t2) {
|
|
160
160
|
return this.startOf(t2, false);
|
|
161
161
|
}, m2.$set = function(t2, e2) {
|
|
162
|
-
var n2, o2 = O.p(t2),
|
|
163
|
-
if (o2 ===
|
|
162
|
+
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;
|
|
163
|
+
if (o2 === c || o2 === h) {
|
|
164
164
|
var y2 = this.clone().set(d, 1);
|
|
165
165
|
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
166
166
|
} else
|
|
@@ -170,17 +170,17 @@ var require_dayjs_min = __commonJS({
|
|
|
170
170
|
return this.clone().$set(t2, e2);
|
|
171
171
|
}, m2.get = function(t2) {
|
|
172
172
|
return this[O.p(t2)]();
|
|
173
|
-
}, m2.add = function(r2,
|
|
173
|
+
}, m2.add = function(r2, f2) {
|
|
174
174
|
var d2, l2 = this;
|
|
175
175
|
r2 = Number(r2);
|
|
176
|
-
var $2 = O.p(
|
|
176
|
+
var $2 = O.p(f2), y2 = function(t2) {
|
|
177
177
|
var e2 = w(l2);
|
|
178
178
|
return O.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
|
|
179
179
|
};
|
|
180
|
-
if ($2 === f)
|
|
181
|
-
return this.set(f, this.$M + r2);
|
|
182
180
|
if ($2 === c)
|
|
183
|
-
return this.set(c, this.$
|
|
181
|
+
return this.set(c, this.$M + r2);
|
|
182
|
+
if ($2 === h)
|
|
183
|
+
return this.set(h, this.$y + r2);
|
|
184
184
|
if ($2 === a)
|
|
185
185
|
return y2(1);
|
|
186
186
|
if ($2 === o)
|
|
@@ -193,24 +193,106 @@ var require_dayjs_min = __commonJS({
|
|
|
193
193
|
var e2 = this, n2 = this.$locale();
|
|
194
194
|
if (!this.isValid())
|
|
195
195
|
return n2.invalidDate || l;
|
|
196
|
-
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays,
|
|
196
|
+
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) {
|
|
197
197
|
return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
|
|
198
|
-
},
|
|
198
|
+
}, d2 = function(t3) {
|
|
199
199
|
return O.s(s2 % 12 || 12, t3, "0");
|
|
200
|
-
},
|
|
200
|
+
}, $2 = f2 || function(t3, e3, n3) {
|
|
201
201
|
var r3 = t3 < 12 ? "AM" : "PM";
|
|
202
202
|
return n3 ? r3.toLowerCase() : r3;
|
|
203
|
-
}
|
|
204
|
-
return r2.replace(y, function(t3,
|
|
205
|
-
return
|
|
203
|
+
};
|
|
204
|
+
return r2.replace(y, function(t3, r3) {
|
|
205
|
+
return r3 || function(t4) {
|
|
206
|
+
switch (t4) {
|
|
207
|
+
case "YY":
|
|
208
|
+
return String(e2.$y).slice(-2);
|
|
209
|
+
case "YYYY":
|
|
210
|
+
return O.s(e2.$y, 4, "0");
|
|
211
|
+
case "M":
|
|
212
|
+
return a2 + 1;
|
|
213
|
+
case "MM":
|
|
214
|
+
return O.s(a2 + 1, 2, "0");
|
|
215
|
+
case "MMM":
|
|
216
|
+
return h2(n2.monthsShort, a2, c2, 3);
|
|
217
|
+
case "MMMM":
|
|
218
|
+
return h2(c2, a2);
|
|
219
|
+
case "D":
|
|
220
|
+
return e2.$D;
|
|
221
|
+
case "DD":
|
|
222
|
+
return O.s(e2.$D, 2, "0");
|
|
223
|
+
case "d":
|
|
224
|
+
return String(e2.$W);
|
|
225
|
+
case "dd":
|
|
226
|
+
return h2(n2.weekdaysMin, e2.$W, o2, 2);
|
|
227
|
+
case "ddd":
|
|
228
|
+
return h2(n2.weekdaysShort, e2.$W, o2, 3);
|
|
229
|
+
case "dddd":
|
|
230
|
+
return o2[e2.$W];
|
|
231
|
+
case "H":
|
|
232
|
+
return String(s2);
|
|
233
|
+
case "HH":
|
|
234
|
+
return O.s(s2, 2, "0");
|
|
235
|
+
case "h":
|
|
236
|
+
return d2(1);
|
|
237
|
+
case "hh":
|
|
238
|
+
return d2(2);
|
|
239
|
+
case "a":
|
|
240
|
+
return $2(s2, u2, true);
|
|
241
|
+
case "A":
|
|
242
|
+
return $2(s2, u2, false);
|
|
243
|
+
case "m":
|
|
244
|
+
return String(u2);
|
|
245
|
+
case "mm":
|
|
246
|
+
return O.s(u2, 2, "0");
|
|
247
|
+
case "s":
|
|
248
|
+
return String(e2.$s);
|
|
249
|
+
case "ss":
|
|
250
|
+
return O.s(e2.$s, 2, "0");
|
|
251
|
+
case "SSS":
|
|
252
|
+
return O.s(e2.$ms, 3, "0");
|
|
253
|
+
case "Z":
|
|
254
|
+
return i2;
|
|
255
|
+
}
|
|
256
|
+
return null;
|
|
257
|
+
}(t3) || i2.replace(":", "");
|
|
206
258
|
});
|
|
207
259
|
}, m2.utcOffset = function() {
|
|
208
260
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
209
261
|
}, m2.diff = function(r2, d2, l2) {
|
|
210
|
-
var $2, y2 = O.p(d2),
|
|
211
|
-
|
|
262
|
+
var $2, y2 = this, M3 = O.p(d2), m3 = w(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
|
|
263
|
+
return O.m(y2, m3);
|
|
264
|
+
};
|
|
265
|
+
switch (M3) {
|
|
266
|
+
case h:
|
|
267
|
+
$2 = D2() / 12;
|
|
268
|
+
break;
|
|
269
|
+
case c:
|
|
270
|
+
$2 = D2();
|
|
271
|
+
break;
|
|
272
|
+
case f:
|
|
273
|
+
$2 = D2() / 3;
|
|
274
|
+
break;
|
|
275
|
+
case o:
|
|
276
|
+
$2 = (g2 - v2) / 6048e5;
|
|
277
|
+
break;
|
|
278
|
+
case a:
|
|
279
|
+
$2 = (g2 - v2) / 864e5;
|
|
280
|
+
break;
|
|
281
|
+
case u:
|
|
282
|
+
$2 = g2 / n;
|
|
283
|
+
break;
|
|
284
|
+
case s:
|
|
285
|
+
$2 = g2 / e;
|
|
286
|
+
break;
|
|
287
|
+
case i:
|
|
288
|
+
$2 = g2 / t;
|
|
289
|
+
break;
|
|
290
|
+
default:
|
|
291
|
+
$2 = g2;
|
|
292
|
+
}
|
|
293
|
+
return l2 ? $2 : O.a($2);
|
|
212
294
|
}, m2.daysInMonth = function() {
|
|
213
|
-
return this.endOf(
|
|
295
|
+
return this.endOf(c).$D;
|
|
214
296
|
}, m2.$locale = function() {
|
|
215
297
|
return D[this.$L];
|
|
216
298
|
}, m2.locale = function(t2, e2) {
|
|
@@ -229,13 +311,13 @@ var require_dayjs_min = __commonJS({
|
|
|
229
311
|
}, m2.toString = function() {
|
|
230
312
|
return this.$d.toUTCString();
|
|
231
313
|
}, M2;
|
|
232
|
-
}(),
|
|
233
|
-
return w.prototype =
|
|
234
|
-
|
|
314
|
+
}(), _ = b.prototype;
|
|
315
|
+
return w.prototype = _, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
|
|
316
|
+
_[t2[1]] = function(e2) {
|
|
235
317
|
return this.$g(e2, t2[0], t2[1]);
|
|
236
318
|
};
|
|
237
319
|
}), w.extend = function(t2, e2) {
|
|
238
|
-
return t2.$i || (t2(e2,
|
|
320
|
+
return t2.$i || (t2(e2, b, w), t2.$i = true), w;
|
|
239
321
|
}, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
|
|
240
322
|
return w(1e3 * t2);
|
|
241
323
|
}, w.en = D[g], w.Ls = D, w.p = {}, w;
|
|
@@ -256,9 +338,9 @@ var require_interopRequireDefault = __commonJS({
|
|
|
256
338
|
}
|
|
257
339
|
});
|
|
258
340
|
|
|
259
|
-
// ../../node_modules/rc-
|
|
341
|
+
// ../../node_modules/rc-util/lib/warning.js
|
|
260
342
|
var require_warning = __commonJS({
|
|
261
|
-
"../../node_modules/rc-
|
|
343
|
+
"../../node_modules/rc-util/lib/warning.js"(exports) {
|
|
262
344
|
"use strict";
|
|
263
345
|
Object.defineProperty(exports, "__esModule", {
|
|
264
346
|
value: true
|
|
@@ -1043,7 +1125,7 @@ var AntDValueSelector = ({
|
|
|
1043
1125
|
import_antd4.Select,
|
|
1044
1126
|
{
|
|
1045
1127
|
...modeObj,
|
|
1046
|
-
|
|
1128
|
+
popupMatchSelectWidth: false,
|
|
1047
1129
|
disabled,
|
|
1048
1130
|
value: val,
|
|
1049
1131
|
onChange,
|