@react-querybuilder/antd 6.2.0-alpha.0 → 6.2.0-alpha.1

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.
@@ -1,860 +1,3 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __commonJS = (cb, mod) => function __require() {
8
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
- // If the importer is in node compatibility mode or this is not an ESM
20
- // file that has been converted to a CommonJS file using a Babel-
21
- // compatible transform (i.e. "__esModule" has not been set), then set
22
- // "default" to the CommonJS "module.exports" for node compatibility.
23
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
- mod
25
- ));
26
-
27
- // ../../node_modules/dayjs/dayjs.min.js
28
- var require_dayjs_min = __commonJS({
29
- "../../node_modules/dayjs/dayjs.min.js"(exports, module) {
30
- !function(t, e) {
31
- "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
- }(exports, function() {
33
- "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 e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
36
- return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
37
- } }, m = function(t2, e2, n2) {
38
- var r2 = String(t2);
39
- return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
40
- }, v = { s: m, z: function(t2) {
41
- var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
42
- return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
43
- }, m: function t2(e2, n2) {
44
- if (e2.date() < n2.date())
45
- 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
- return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
48
- }, a: function(t2) {
49
- return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
50
- }, 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
- }, u: function(t2) {
53
- return void 0 === t2;
54
- } }, g = "en", D = {};
55
- D[g] = M;
56
- var p = function(t2) {
57
- return t2 instanceof _;
58
- }, S = function t2(e2, n2, r2) {
59
- var i2;
60
- if (!e2)
61
- return g;
62
- if ("string" == typeof e2) {
63
- var s2 = e2.toLowerCase();
64
- D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
65
- var u2 = e2.split("-");
66
- if (!i2 && u2.length > 1)
67
- return t2(u2[0]);
68
- } else {
69
- var a2 = e2.name;
70
- D[a2] = e2, i2 = a2;
71
- }
72
- return !r2 && i2 && (g = i2), i2 || !r2 && g;
73
- }, w = function(t2, e2) {
74
- if (p(t2))
75
- return t2.clone();
76
- var n2 = "object" == typeof e2 ? e2 : {};
77
- return n2.date = t2, n2.args = arguments, new _(n2);
78
- }, O = v;
79
- O.l = S, O.i = p, O.w = function(t2, e2) {
80
- return w(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
81
- };
82
- var _ = function() {
83
- function M2(t2) {
84
- this.$L = S(t2.locale, null, true), this.parse(t2);
85
- }
86
- var m2 = M2.prototype;
87
- return m2.parse = function(t2) {
88
- this.$d = function(t3) {
89
- var e2 = t3.date, n2 = t3.utc;
90
- if (null === e2)
91
- return /* @__PURE__ */ new Date(NaN);
92
- if (O.u(e2))
93
- return /* @__PURE__ */ new Date();
94
- if (e2 instanceof Date)
95
- return new Date(e2);
96
- if ("string" == typeof e2 && !/Z$/i.test(e2)) {
97
- var r2 = e2.match($);
98
- if (r2) {
99
- var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
100
- return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
101
- }
102
- }
103
- return new Date(e2);
104
- }(t2), this.$x = t2.x || {}, this.init();
105
- }, m2.init = function() {
106
- var t2 = this.$d;
107
- this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
108
- }, m2.$utils = function() {
109
- return O;
110
- }, m2.isValid = function() {
111
- return !(this.$d.toString() === l);
112
- }, m2.isSame = function(t2, e2) {
113
- var n2 = w(t2);
114
- return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
115
- }, m2.isAfter = function(t2, e2) {
116
- return w(t2) < this.startOf(e2);
117
- }, m2.isBefore = function(t2, e2) {
118
- return this.endOf(e2) < w(t2);
119
- }, m2.$g = function(t2, e2, n2) {
120
- return O.u(t2) ? this[e2] : this.set(n2, t2);
121
- }, m2.unix = function() {
122
- return Math.floor(this.valueOf() / 1e3);
123
- }, m2.valueOf = function() {
124
- return this.$d.getTime();
125
- }, m2.startOf = function(t2, e2) {
126
- var n2 = this, r2 = !!O.u(e2) || e2, h2 = O.p(t2), l2 = function(t3, e3) {
127
- var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
128
- return r2 ? i2 : i2.endOf(a);
129
- }, $2 = function(t3, e3) {
130
- return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
131
- }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
132
- switch (h2) {
133
- case c:
134
- return r2 ? l2(1, 0) : l2(31, 11);
135
- case f:
136
- return r2 ? l2(1, M3) : l2(0, M3 + 1);
137
- case o:
138
- var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
139
- return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
140
- case a:
141
- case d:
142
- return $2(v2 + "Hours", 0);
143
- case u:
144
- return $2(v2 + "Minutes", 1);
145
- case s:
146
- return $2(v2 + "Seconds", 2);
147
- case i:
148
- return $2(v2 + "Milliseconds", 3);
149
- default:
150
- return this.clone();
151
- }
152
- }, m2.endOf = function(t2) {
153
- return this.startOf(t2, false);
154
- }, 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) {
157
- var y2 = this.clone().set(d, 1);
158
- y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
159
- } else
160
- l2 && this.$d[l2]($2);
161
- return this.init(), this;
162
- }, m2.set = function(t2, e2) {
163
- return this.clone().$set(t2, e2);
164
- }, m2.get = function(t2) {
165
- return this[O.p(t2)]();
166
- }, m2.add = function(r2, h2) {
167
- var d2, l2 = this;
168
- r2 = Number(r2);
169
- var $2 = O.p(h2), y2 = function(t2) {
170
- var e2 = w(l2);
171
- return O.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
172
- };
173
- if ($2 === f)
174
- return this.set(f, this.$M + r2);
175
- if ($2 === c)
176
- return this.set(c, this.$y + r2);
177
- if ($2 === a)
178
- return y2(1);
179
- if ($2 === o)
180
- return y2(7);
181
- var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
182
- return O.w(m3, this);
183
- }, m2.subtract = function(t2, e2) {
184
- return this.add(-1 * t2, e2);
185
- }, m2.format = function(t2) {
186
- var e2 = this, n2 = this.$locale();
187
- if (!this.isValid())
188
- 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
- return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
191
- }, c2 = function(t3) {
192
- return O.s(s2 % 12 || 12, t3, "0");
193
- }, d2 = n2.meridiem || function(t3, e3, n3) {
194
- var r3 = t3 < 12 ? "AM" : "PM";
195
- return n3 ? r3.toLowerCase() : r3;
196
- }, $2 = { YY: String(this.$y).slice(-2), YYYY: this.$y, 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(":", "");
199
- });
200
- }, m2.utcOffset = function() {
201
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
202
- }, 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);
205
- }, m2.daysInMonth = function() {
206
- return this.endOf(f).$D;
207
- }, m2.$locale = function() {
208
- return D[this.$L];
209
- }, m2.locale = function(t2, e2) {
210
- if (!t2)
211
- return this.$L;
212
- var n2 = this.clone(), r2 = S(t2, e2, true);
213
- return r2 && (n2.$L = r2), n2;
214
- }, m2.clone = function() {
215
- return O.w(this.$d, this);
216
- }, m2.toDate = function() {
217
- return new Date(this.valueOf());
218
- }, m2.toJSON = function() {
219
- return this.isValid() ? this.toISOString() : null;
220
- }, m2.toISOString = function() {
221
- return this.$d.toISOString();
222
- }, m2.toString = function() {
223
- return this.$d.toUTCString();
224
- }, 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) {
228
- return this.$g(e2, t2[0], t2[1]);
229
- };
230
- }), w.extend = function(t2, e2) {
231
- return t2.$i || (t2(e2, _, w), t2.$i = true), w;
232
- }, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
233
- return w(1e3 * t2);
234
- }, w.en = D[g], w.Ls = D, w.p = {}, w;
235
- });
236
- }
237
- });
238
-
239
- // ../../node_modules/@babel/runtime/helpers/interopRequireDefault.js
240
- var require_interopRequireDefault = __commonJS({
241
- "../../node_modules/@babel/runtime/helpers/interopRequireDefault.js"(exports, module) {
242
- function _interopRequireDefault(obj) {
243
- return obj && obj.__esModule ? obj : {
244
- "default": obj
245
- };
246
- }
247
- module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
248
- }
249
- });
250
-
251
- // ../../node_modules/rc-picker/node_modules/rc-util/lib/warning.js
252
- var require_warning = __commonJS({
253
- "../../node_modules/rc-picker/node_modules/rc-util/lib/warning.js"(exports) {
254
- "use strict";
255
- Object.defineProperty(exports, "__esModule", {
256
- value: true
257
- });
258
- exports.call = call;
259
- exports.default = void 0;
260
- exports.note = note;
261
- exports.noteOnce = noteOnce;
262
- exports.resetWarned = resetWarned;
263
- exports.warning = warning;
264
- exports.warningOnce = warningOnce;
265
- var warned = {};
266
- function warning(valid, message) {
267
- if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
268
- console.error("Warning: ".concat(message));
269
- }
270
- }
271
- function note(valid, message) {
272
- if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
273
- console.warn("Note: ".concat(message));
274
- }
275
- }
276
- function resetWarned() {
277
- warned = {};
278
- }
279
- function call(method, valid, message) {
280
- if (!valid && !warned[message]) {
281
- method(false, message);
282
- warned[message] = true;
283
- }
284
- }
285
- function warningOnce(valid, message) {
286
- call(warning, valid, message);
287
- }
288
- function noteOnce(valid, message) {
289
- call(note, valid, message);
290
- }
291
- var _default = warningOnce;
292
- exports.default = _default;
293
- }
294
- });
295
-
296
- // ../../node_modules/dayjs/plugin/weekday.js
297
- var require_weekday = __commonJS({
298
- "../../node_modules/dayjs/plugin/weekday.js"(exports, module) {
299
- !function(e, t) {
300
- "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();
301
- }(exports, function() {
302
- "use strict";
303
- return function(e, t) {
304
- t.prototype.weekday = function(e2) {
305
- var t2 = this.$locale().weekStart || 0, i = this.$W, n = (i < t2 ? i + 7 : i) - t2;
306
- return this.$utils().u(e2) ? n : this.subtract(n, "day").add(e2, "day");
307
- };
308
- };
309
- });
310
- }
311
- });
312
-
313
- // ../../node_modules/dayjs/plugin/localeData.js
314
- var require_localeData = __commonJS({
315
- "../../node_modules/dayjs/plugin/localeData.js"(exports, module) {
316
- !function(n, e) {
317
- "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();
318
- }(exports, function() {
319
- "use strict";
320
- return function(n, e, t) {
321
- var r = e.prototype, o = function(n2) {
322
- return n2 && (n2.indexOf ? n2 : n2.s);
323
- }, u = function(n2, e2, t2, r2, u2) {
324
- var i2 = n2.name ? n2 : n2.$locale(), a2 = o(i2[e2]), s2 = o(i2[t2]), f = a2 || s2.map(function(n3) {
325
- return n3.slice(0, r2);
326
- });
327
- if (!u2)
328
- return f;
329
- var d = i2.weekStart;
330
- return f.map(function(n3, e3) {
331
- return f[(e3 + (d || 0)) % 7];
332
- });
333
- }, i = function() {
334
- return t.Ls[t.locale()];
335
- }, a = function(n2, e2) {
336
- return n2.formats[e2] || function(n3) {
337
- return n3.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(n4, e3, t2) {
338
- return e3 || t2.slice(1);
339
- });
340
- }(n2.formats[e2.toUpperCase()]);
341
- }, s = function() {
342
- var n2 = this;
343
- return { months: function(e2) {
344
- return e2 ? e2.format("MMMM") : u(n2, "months");
345
- }, monthsShort: function(e2) {
346
- return e2 ? e2.format("MMM") : u(n2, "monthsShort", "months", 3);
347
- }, firstDayOfWeek: function() {
348
- return n2.$locale().weekStart || 0;
349
- }, weekdays: function(e2) {
350
- return e2 ? e2.format("dddd") : u(n2, "weekdays");
351
- }, weekdaysMin: function(e2) {
352
- return e2 ? e2.format("dd") : u(n2, "weekdaysMin", "weekdays", 2);
353
- }, weekdaysShort: function(e2) {
354
- return e2 ? e2.format("ddd") : u(n2, "weekdaysShort", "weekdays", 3);
355
- }, longDateFormat: function(e2) {
356
- return a(n2.$locale(), e2);
357
- }, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
358
- };
359
- r.localeData = function() {
360
- return s.bind(this)();
361
- }, t.localeData = function() {
362
- var n2 = i();
363
- return { firstDayOfWeek: function() {
364
- return n2.weekStart || 0;
365
- }, weekdays: function() {
366
- return t.weekdays();
367
- }, weekdaysShort: function() {
368
- return t.weekdaysShort();
369
- }, weekdaysMin: function() {
370
- return t.weekdaysMin();
371
- }, months: function() {
372
- return t.months();
373
- }, monthsShort: function() {
374
- return t.monthsShort();
375
- }, longDateFormat: function(e2) {
376
- return a(n2, e2);
377
- }, meridiem: n2.meridiem, ordinal: n2.ordinal };
378
- }, t.months = function() {
379
- return u(i(), "months");
380
- }, t.monthsShort = function() {
381
- return u(i(), "monthsShort", "months", 3);
382
- }, t.weekdays = function(n2) {
383
- return u(i(), "weekdays", null, null, n2);
384
- }, t.weekdaysShort = function(n2) {
385
- return u(i(), "weekdaysShort", "weekdays", 3, n2);
386
- }, t.weekdaysMin = function(n2) {
387
- return u(i(), "weekdaysMin", "weekdays", 2, n2);
388
- };
389
- };
390
- });
391
- }
392
- });
393
-
394
- // ../../node_modules/dayjs/plugin/weekOfYear.js
395
- var require_weekOfYear = __commonJS({
396
- "../../node_modules/dayjs/plugin/weekOfYear.js"(exports, module) {
397
- !function(e, t) {
398
- "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();
399
- }(exports, function() {
400
- "use strict";
401
- var e = "week", t = "year";
402
- return function(i, n, r) {
403
- var f = n.prototype;
404
- f.week = function(i2) {
405
- if (void 0 === i2 && (i2 = null), null !== i2)
406
- return this.add(7 * (i2 - this.week()), "day");
407
- var n2 = this.$locale().yearStart || 1;
408
- if (11 === this.month() && this.date() > 25) {
409
- var f2 = r(this).startOf(t).add(1, t).date(n2), s = r(this).endOf(e);
410
- if (f2.isBefore(s))
411
- return 1;
412
- }
413
- var a = r(this).startOf(t).date(n2).startOf(e).subtract(1, "millisecond"), o = this.diff(a, e, true);
414
- return o < 0 ? r(this).startOf("week").week() : Math.ceil(o);
415
- }, f.weeks = function(e2) {
416
- return void 0 === e2 && (e2 = null), this.week(e2);
417
- };
418
- };
419
- });
420
- }
421
- });
422
-
423
- // ../../node_modules/dayjs/plugin/weekYear.js
424
- var require_weekYear = __commonJS({
425
- "../../node_modules/dayjs/plugin/weekYear.js"(exports, module) {
426
- !function(e, t) {
427
- "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();
428
- }(exports, function() {
429
- "use strict";
430
- return function(e, t) {
431
- t.prototype.weekYear = function() {
432
- var e2 = this.month(), t2 = this.week(), n = this.year();
433
- return 1 === t2 && 11 === e2 ? n + 1 : 0 === e2 && t2 >= 52 ? n - 1 : n;
434
- };
435
- };
436
- });
437
- }
438
- });
439
-
440
- // ../../node_modules/dayjs/plugin/advancedFormat.js
441
- var require_advancedFormat = __commonJS({
442
- "../../node_modules/dayjs/plugin/advancedFormat.js"(exports, module) {
443
- !function(e, t) {
444
- "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();
445
- }(exports, function() {
446
- "use strict";
447
- return function(e, t) {
448
- var r = t.prototype, n = r.format;
449
- r.format = function(e2) {
450
- var t2 = this, r2 = this.$locale();
451
- if (!this.isValid())
452
- return n.bind(this)(e2);
453
- var s = this.$utils(), a = (e2 || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(e3) {
454
- switch (e3) {
455
- case "Q":
456
- return Math.ceil((t2.$M + 1) / 3);
457
- case "Do":
458
- return r2.ordinal(t2.$D);
459
- case "gggg":
460
- return t2.weekYear();
461
- case "GGGG":
462
- return t2.isoWeekYear();
463
- case "wo":
464
- return r2.ordinal(t2.week(), "W");
465
- case "w":
466
- case "ww":
467
- return s.s(t2.week(), "w" === e3 ? 1 : 2, "0");
468
- case "W":
469
- case "WW":
470
- return s.s(t2.isoWeek(), "W" === e3 ? 1 : 2, "0");
471
- case "k":
472
- case "kk":
473
- return s.s(String(0 === t2.$H ? 24 : t2.$H), "k" === e3 ? 1 : 2, "0");
474
- case "X":
475
- return Math.floor(t2.$d.getTime() / 1e3);
476
- case "x":
477
- return t2.$d.getTime();
478
- case "z":
479
- return "[" + t2.offsetName() + "]";
480
- case "zzz":
481
- return "[" + t2.offsetName("long") + "]";
482
- default:
483
- return e3;
484
- }
485
- });
486
- return n.bind(this)(a);
487
- };
488
- };
489
- });
490
- }
491
- });
492
-
493
- // ../../node_modules/dayjs/plugin/customParseFormat.js
494
- var require_customParseFormat = __commonJS({
495
- "../../node_modules/dayjs/plugin/customParseFormat.js"(exports, module) {
496
- !function(e, t) {
497
- "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();
498
- }(exports, function() {
499
- "use strict";
500
- var e = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d\d/, r = /\d\d?/, i = /\d*[^-_:/,()\s\d]+/, o = {}, s = function(e2) {
501
- return (e2 = +e2) + (e2 > 68 ? 1900 : 2e3);
502
- };
503
- var a = function(e2) {
504
- return function(t2) {
505
- this[e2] = +t2;
506
- };
507
- }, f = [/[+-]\d\d:?(\d\d)?|Z/, function(e2) {
508
- (this.zone || (this.zone = {})).offset = function(e3) {
509
- if (!e3)
510
- return 0;
511
- if ("Z" === e3)
512
- return 0;
513
- var t2 = e3.match(/([+-]|\d\d)/g), n2 = 60 * t2[1] + (+t2[2] || 0);
514
- return 0 === n2 ? 0 : "+" === t2[0] ? -n2 : n2;
515
- }(e2);
516
- }], h = function(e2) {
517
- var t2 = o[e2];
518
- return t2 && (t2.indexOf ? t2 : t2.s.concat(t2.f));
519
- }, u = function(e2, t2) {
520
- var n2, r2 = o.meridiem;
521
- if (r2) {
522
- for (var i2 = 1; i2 <= 24; i2 += 1)
523
- if (e2.indexOf(r2(i2, 0, t2)) > -1) {
524
- n2 = i2 > 12;
525
- break;
526
- }
527
- } else
528
- n2 = e2 === (t2 ? "pm" : "PM");
529
- return n2;
530
- }, d = { A: [i, function(e2) {
531
- this.afternoon = u(e2, false);
532
- }], a: [i, function(e2) {
533
- this.afternoon = u(e2, true);
534
- }], S: [/\d/, function(e2) {
535
- this.milliseconds = 100 * +e2;
536
- }], SS: [n, function(e2) {
537
- this.milliseconds = 10 * +e2;
538
- }], SSS: [/\d{3}/, function(e2) {
539
- this.milliseconds = +e2;
540
- }], s: [r, a("seconds")], ss: [r, a("seconds")], m: [r, a("minutes")], mm: [r, a("minutes")], H: [r, a("hours")], h: [r, a("hours")], HH: [r, a("hours")], hh: [r, a("hours")], D: [r, a("day")], DD: [n, a("day")], Do: [i, function(e2) {
541
- var t2 = o.ordinal, n2 = e2.match(/\d+/);
542
- if (this.day = n2[0], t2)
543
- for (var r2 = 1; r2 <= 31; r2 += 1)
544
- t2(r2).replace(/\[|\]/g, "") === e2 && (this.day = r2);
545
- }], M: [r, a("month")], MM: [n, a("month")], MMM: [i, function(e2) {
546
- var t2 = h("months"), n2 = (h("monthsShort") || t2.map(function(e3) {
547
- return e3.slice(0, 3);
548
- })).indexOf(e2) + 1;
549
- if (n2 < 1)
550
- throw new Error();
551
- this.month = n2 % 12 || n2;
552
- }], MMMM: [i, function(e2) {
553
- var t2 = h("months").indexOf(e2) + 1;
554
- if (t2 < 1)
555
- throw new Error();
556
- this.month = t2 % 12 || t2;
557
- }], Y: [/[+-]?\d+/, a("year")], YY: [n, function(e2) {
558
- this.year = s(e2);
559
- }], YYYY: [/\d{4}/, a("year")], Z: f, ZZ: f };
560
- function c(n2) {
561
- var r2, i2;
562
- r2 = n2, i2 = o && o.formats;
563
- for (var s2 = (n2 = r2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t2, n3, r3) {
564
- var o2 = r3 && r3.toUpperCase();
565
- return n3 || i2[r3] || e[r3] || i2[o2].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e2, t3, n4) {
566
- return t3 || n4.slice(1);
567
- });
568
- })).match(t), a2 = s2.length, f2 = 0; f2 < a2; f2 += 1) {
569
- var h2 = s2[f2], u2 = d[h2], c2 = u2 && u2[0], l = u2 && u2[1];
570
- s2[f2] = l ? { regex: c2, parser: l } : h2.replace(/^\[|\]$/g, "");
571
- }
572
- return function(e2) {
573
- for (var t2 = {}, n3 = 0, r3 = 0; n3 < a2; n3 += 1) {
574
- var i3 = s2[n3];
575
- if ("string" == typeof i3)
576
- r3 += i3.length;
577
- else {
578
- var o2 = i3.regex, f3 = i3.parser, h3 = e2.slice(r3), u3 = o2.exec(h3)[0];
579
- f3.call(t2, u3), e2 = e2.replace(u3, "");
580
- }
581
- }
582
- return function(e3) {
583
- var t3 = e3.afternoon;
584
- if (void 0 !== t3) {
585
- var n4 = e3.hours;
586
- t3 ? n4 < 12 && (e3.hours += 12) : 12 === n4 && (e3.hours = 0), delete e3.afternoon;
587
- }
588
- }(t2), t2;
589
- };
590
- }
591
- return function(e2, t2, n2) {
592
- n2.p.customParseFormat = true, e2 && e2.parseTwoDigitYear && (s = e2.parseTwoDigitYear);
593
- var r2 = t2.prototype, i2 = r2.parse;
594
- r2.parse = function(e3) {
595
- var t3 = e3.date, r3 = e3.utc, s2 = e3.args;
596
- this.$u = r3;
597
- var a2 = s2[1];
598
- if ("string" == typeof a2) {
599
- var f2 = true === s2[2], h2 = true === s2[3], u2 = f2 || h2, d2 = s2[2];
600
- h2 && (d2 = s2[2]), o = this.$locale(), !f2 && d2 && (o = n2.Ls[d2]), this.$d = function(e4, t4, n3) {
601
- try {
602
- if (["x", "X"].indexOf(t4) > -1)
603
- return new Date(("X" === t4 ? 1e3 : 1) * e4);
604
- var r4 = c(t4)(e4), i3 = r4.year, o2 = r4.month, s3 = r4.day, a3 = r4.hours, f3 = r4.minutes, h3 = r4.seconds, u3 = r4.milliseconds, d3 = r4.zone, l2 = /* @__PURE__ */ new Date(), m2 = s3 || (i3 || o2 ? 1 : l2.getDate()), M2 = i3 || l2.getFullYear(), Y = 0;
605
- i3 && !o2 || (Y = o2 > 0 ? o2 - 1 : l2.getMonth());
606
- var p = a3 || 0, v = f3 || 0, D = h3 || 0, g = u3 || 0;
607
- return d3 ? new Date(Date.UTC(M2, Y, m2, p, v, D, g + 60 * d3.offset * 1e3)) : n3 ? new Date(Date.UTC(M2, Y, m2, p, v, D, g)) : new Date(M2, Y, m2, p, v, D, g);
608
- } catch (e5) {
609
- return /* @__PURE__ */ new Date("");
610
- }
611
- }(t3, a2, r3), this.init(), d2 && true !== d2 && (this.$L = this.locale(d2).$L), u2 && t3 != this.format(a2) && (this.$d = /* @__PURE__ */ new Date("")), o = {};
612
- } else if (a2 instanceof Array)
613
- for (var l = a2.length, m = 1; m <= l; m += 1) {
614
- s2[1] = a2[m - 1];
615
- var M = n2.apply(this, s2);
616
- if (M.isValid()) {
617
- this.$d = M.$d, this.$L = M.$L, this.init();
618
- break;
619
- }
620
- m === l && (this.$d = /* @__PURE__ */ new Date(""));
621
- }
622
- else
623
- i2.call(this, e3);
624
- };
625
- };
626
- });
627
- }
628
- });
629
-
630
- // ../../node_modules/rc-picker/lib/generate/dayjs.js
631
- var require_dayjs = __commonJS({
632
- "../../node_modules/rc-picker/lib/generate/dayjs.js"(exports) {
633
- "use strict";
634
- var _interopRequireDefault = require_interopRequireDefault();
635
- Object.defineProperty(exports, "__esModule", {
636
- value: true
637
- });
638
- exports.default = void 0;
639
- var _dayjs = _interopRequireDefault(require_dayjs_min());
640
- var _warning = require_warning();
641
- var _weekday = _interopRequireDefault(require_weekday());
642
- var _localeData = _interopRequireDefault(require_localeData());
643
- var _weekOfYear = _interopRequireDefault(require_weekOfYear());
644
- var _weekYear = _interopRequireDefault(require_weekYear());
645
- var _advancedFormat = _interopRequireDefault(require_advancedFormat());
646
- var _customParseFormat = _interopRequireDefault(require_customParseFormat());
647
- _dayjs.default.extend(_customParseFormat.default);
648
- _dayjs.default.extend(_advancedFormat.default);
649
- _dayjs.default.extend(_weekday.default);
650
- _dayjs.default.extend(_localeData.default);
651
- _dayjs.default.extend(_weekOfYear.default);
652
- _dayjs.default.extend(_weekYear.default);
653
- _dayjs.default.extend(function(o, c) {
654
- var proto = c.prototype;
655
- var oldFormat = proto.format;
656
- proto.format = function f(formatStr) {
657
- var str = (formatStr || "").replace("Wo", "wo");
658
- return oldFormat.bind(this)(str);
659
- };
660
- });
661
- var localeMap = {
662
- // ar_EG:
663
- // az_AZ:
664
- // bg_BG:
665
- bn_BD: "bn-bd",
666
- by_BY: "be",
667
- // ca_ES:
668
- // cs_CZ:
669
- // da_DK:
670
- // de_DE:
671
- // el_GR:
672
- en_GB: "en-gb",
673
- en_US: "en",
674
- // es_ES:
675
- // et_EE:
676
- // fa_IR:
677
- // fi_FI:
678
- fr_BE: "fr",
679
- // todo: dayjs has no fr_BE locale, use fr at present
680
- fr_CA: "fr-ca",
681
- // fr_FR:
682
- // ga_IE:
683
- // gl_ES:
684
- // he_IL:
685
- // hi_IN:
686
- // hr_HR:
687
- // hu_HU:
688
- hy_AM: "hy-am",
689
- // id_ID:
690
- // is_IS:
691
- // it_IT:
692
- // ja_JP:
693
- // ka_GE:
694
- // kk_KZ:
695
- // km_KH:
696
- kmr_IQ: "ku",
697
- // kn_IN:
698
- // ko_KR:
699
- // ku_IQ: // previous ku in antd
700
- // lt_LT:
701
- // lv_LV:
702
- // mk_MK:
703
- // ml_IN:
704
- // mn_MN:
705
- // ms_MY:
706
- // nb_NO:
707
- // ne_NP:
708
- nl_BE: "nl-be",
709
- // nl_NL:
710
- // pl_PL:
711
- pt_BR: "pt-br",
712
- // pt_PT:
713
- // ro_RO:
714
- // ru_RU:
715
- // sk_SK:
716
- // sl_SI:
717
- // sr_RS:
718
- // sv_SE:
719
- // ta_IN:
720
- // th_TH:
721
- // tr_TR:
722
- // uk_UA:
723
- // ur_PK:
724
- // vi_VN:
725
- zh_CN: "zh-cn",
726
- zh_HK: "zh-hk",
727
- zh_TW: "zh-tw"
728
- };
729
- var parseLocale = function parseLocale2(locale) {
730
- var mapLocale = localeMap[locale];
731
- return mapLocale || locale.split("_")[0];
732
- };
733
- var parseNoMatchNotice = function parseNoMatchNotice2() {
734
- (0, _warning.noteOnce)(false, "Not match any format. Please help to fire a issue about this.");
735
- };
736
- var generateConfig = {
737
- // get
738
- getNow: function getNow() {
739
- return (0, _dayjs.default)();
740
- },
741
- getFixedDate: function getFixedDate(string) {
742
- return (0, _dayjs.default)(string, ["YYYY-M-DD", "YYYY-MM-DD"]);
743
- },
744
- getEndDate: function getEndDate(date) {
745
- return date.endOf("month");
746
- },
747
- getWeekDay: function getWeekDay(date) {
748
- var clone = date.locale("en");
749
- return clone.weekday() + clone.localeData().firstDayOfWeek();
750
- },
751
- getYear: function getYear(date) {
752
- return date.year();
753
- },
754
- getMonth: function getMonth(date) {
755
- return date.month();
756
- },
757
- getDate: function getDate(date) {
758
- return date.date();
759
- },
760
- getHour: function getHour(date) {
761
- return date.hour();
762
- },
763
- getMinute: function getMinute(date) {
764
- return date.minute();
765
- },
766
- getSecond: function getSecond(date) {
767
- return date.second();
768
- },
769
- // set
770
- addYear: function addYear(date, diff) {
771
- return date.add(diff, "year");
772
- },
773
- addMonth: function addMonth(date, diff) {
774
- return date.add(diff, "month");
775
- },
776
- addDate: function addDate(date, diff) {
777
- return date.add(diff, "day");
778
- },
779
- setYear: function setYear(date, year) {
780
- return date.year(year);
781
- },
782
- setMonth: function setMonth(date, month) {
783
- return date.month(month);
784
- },
785
- setDate: function setDate(date, num) {
786
- return date.date(num);
787
- },
788
- setHour: function setHour(date, hour) {
789
- return date.hour(hour);
790
- },
791
- setMinute: function setMinute(date, minute) {
792
- return date.minute(minute);
793
- },
794
- setSecond: function setSecond(date, second) {
795
- return date.second(second);
796
- },
797
- // Compare
798
- isAfter: function isAfter(date1, date2) {
799
- return date1.isAfter(date2);
800
- },
801
- isValidate: function isValidate(date) {
802
- return date.isValid();
803
- },
804
- locale: {
805
- getWeekFirstDay: function getWeekFirstDay(locale) {
806
- return (0, _dayjs.default)().locale(parseLocale(locale)).localeData().firstDayOfWeek();
807
- },
808
- getWeekFirstDate: function getWeekFirstDate(locale, date) {
809
- return date.locale(parseLocale(locale)).weekday(0);
810
- },
811
- getWeek: function getWeek(locale, date) {
812
- return date.locale(parseLocale(locale)).week();
813
- },
814
- getShortWeekDays: function getShortWeekDays(locale) {
815
- return (0, _dayjs.default)().locale(parseLocale(locale)).localeData().weekdaysMin();
816
- },
817
- getShortMonths: function getShortMonths(locale) {
818
- return (0, _dayjs.default)().locale(parseLocale(locale)).localeData().monthsShort();
819
- },
820
- format: function format(locale, date, _format) {
821
- return date.locale(parseLocale(locale)).format(_format);
822
- },
823
- parse: function parse(locale, text, formats) {
824
- var localeStr = parseLocale(locale);
825
- for (var i = 0; i < formats.length; i += 1) {
826
- var format = formats[i];
827
- var formatText = text;
828
- if (format.includes("wo") || format.includes("Wo")) {
829
- var year = formatText.split("-")[0];
830
- var weekStr = formatText.split("-")[1];
831
- var firstWeek = (0, _dayjs.default)(year, "YYYY").startOf("year").locale(localeStr);
832
- for (var j = 0; j <= 52; j += 1) {
833
- var nextWeek = firstWeek.add(j, "week");
834
- if (nextWeek.format("Wo") === weekStr) {
835
- return nextWeek;
836
- }
837
- }
838
- parseNoMatchNotice();
839
- return null;
840
- }
841
- var date = (0, _dayjs.default)(formatText, format, true).locale(localeStr);
842
- if (date.isValid()) {
843
- return date;
844
- }
845
- }
846
- if (text) {
847
- parseNoMatchNotice();
848
- }
849
- return null;
850
- }
851
- }
852
- };
853
- var _default = generateConfig;
854
- exports.default = _default;
855
- }
856
- });
857
-
858
1
  // src/index.ts
859
2
  import { getCompatContextProvider } from "react-querybuilder";
860
3
 
@@ -947,10 +90,10 @@ var AntDNotToggle = ({
947
90
  AntDNotToggle.displayName = "AntDNotToggle";
948
91
 
949
92
  // src/AntDValueEditor.tsx
950
- var import_dayjs = __toESM(require_dayjs_min());
951
- var import_dayjs2 = __toESM(require_dayjs());
952
93
  import { Checkbox, Input, Radio, Switch as Switch2, TimePicker } from "antd";
953
94
  import generatePicker from "antd/es/date-picker/generatePicker/index.js";
95
+ import dayjs from "dayjs";
96
+ import dayjsGenerateConfig from "rc-picker/lib/generate/dayjs";
954
97
  import {
955
98
  getFirstOption,
956
99
  standardClassnames,
@@ -1016,7 +159,7 @@ AntDValueSelector.displayName = "AntDValueSelector";
1016
159
  // src/AntDValueEditor.tsx
1017
160
  import { jsx as jsx6, jsxs } from "react/jsx-runtime";
1018
161
  import { createElement } from "react";
1019
- var DatePicker = generatePicker(import_dayjs2.default);
162
+ var DatePicker = generatePicker(dayjsGenerateConfig);
1020
163
  var AntDValueEditor = ({
1021
164
  fieldData,
1022
165
  operator,
@@ -1059,7 +202,7 @@ var AntDValueEditor = ({
1059
202
  return /* @__PURE__ */ jsx6(
1060
203
  TimePicker,
1061
204
  {
1062
- value: valueAsArray[i] ? (0, import_dayjs.default)(valueAsArray[i], "HH:mm:ss") : null,
205
+ value: valueAsArray[i] ? dayjs(valueAsArray[i], "HH:mm:ss") : null,
1063
206
  className: standardClassnames.valueListItem,
1064
207
  disabled,
1065
208
  placeholder: placeHolderText,
@@ -1170,7 +313,7 @@ var AntDValueEditor = ({
1170
313
  return operator === "between" || operator === "notBetween" ? /* @__PURE__ */ jsx6(
1171
314
  DatePicker.RangePicker,
1172
315
  {
1173
- value: toArray(value)?.length >= 2 ? toArray(value).map((v) => (0, import_dayjs.default)(v)) : void 0,
316
+ value: toArray(value)?.length >= 2 ? toArray(value).map((v) => dayjs(v)) : void 0,
1174
317
  showTime: inputTypeCoerced === "datetime-local",
1175
318
  className,
1176
319
  disabled,
@@ -1187,7 +330,7 @@ var AntDValueEditor = ({
1187
330
  ) : /* @__PURE__ */ jsx6(
1188
331
  DatePicker,
1189
332
  {
1190
- value: value ? (0, import_dayjs.default)(value) : null,
333
+ value: value ? dayjs(value) : null,
1191
334
  showTime: inputTypeCoerced === "datetime-local",
1192
335
  className,
1193
336
  disabled,
@@ -1199,7 +342,7 @@ var AntDValueEditor = ({
1199
342
  return /* @__PURE__ */ jsx6(
1200
343
  TimePicker,
1201
344
  {
1202
- value: value ? (0, import_dayjs.default)(value, "HH:mm:ss") : null,
345
+ value: value ? dayjs(value, "HH:mm:ss") : null,
1203
346
  className,
1204
347
  disabled,
1205
348
  placeholder: placeHolderText,