@react-querybuilder/antd 6.1.4 → 6.2.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.
Files changed (34) hide show
  1. package/dist/cjs/index.js +6 -0
  2. package/dist/cjs/react-querybuilder_antd.cjs.development.js +1269 -0
  3. package/dist/cjs/react-querybuilder_antd.cjs.development.js.map +1 -0
  4. package/dist/cjs/react-querybuilder_antd.cjs.production.js +2 -0
  5. package/dist/cjs/react-querybuilder_antd.cjs.production.js.map +1 -0
  6. package/dist/react-querybuilder_antd.d.ts +41 -0
  7. package/dist/react-querybuilder_antd.legacy-esm.js +1369 -0
  8. package/dist/react-querybuilder_antd.legacy-esm.js.map +1 -0
  9. package/dist/react-querybuilder_antd.mjs +1256 -0
  10. package/dist/react-querybuilder_antd.mjs.map +1 -0
  11. package/dist/react-querybuilder_antd.production.mjs +2 -0
  12. package/dist/react-querybuilder_antd.production.mjs.map +1 -0
  13. package/package.json +20 -26
  14. package/dist/index.cjs +0 -234
  15. package/dist/index.cjs.map +0 -1
  16. package/dist/index.mjs +0 -15043
  17. package/dist/index.mjs.map +0 -1
  18. package/dist/types/AntD.test.d.ts +0 -5
  19. package/dist/types/AntD.test.d.ts.map +0 -1
  20. package/dist/types/AntDActionElement.d.ts +0 -10
  21. package/dist/types/AntDActionElement.d.ts.map +0 -1
  22. package/dist/types/AntDDragHandle.d.ts +0 -7
  23. package/dist/types/AntDDragHandle.d.ts.map +0 -1
  24. package/dist/types/AntDNotToggle.d.ts +0 -10
  25. package/dist/types/AntDNotToggle.d.ts.map +0 -1
  26. package/dist/types/AntDValueEditor.d.ts +0 -6
  27. package/dist/types/AntDValueEditor.d.ts.map +0 -1
  28. package/dist/types/AntDValueSelector.d.ts +0 -10
  29. package/dist/types/AntDValueSelector.d.ts.map +0 -1
  30. package/dist/types/index.d.ts +0 -10
  31. package/dist/types/index.d.ts.map +0 -1
  32. package/dist/types/utils.d.ts +0 -5
  33. package/dist/types/utils.d.ts.map +0 -1
  34. package/index.d.mts +0 -4
@@ -0,0 +1,1369 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ }
21
+ return a;
22
+ };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
+ var __objRest = (source, exclude) => {
25
+ var target = {};
26
+ for (var prop in source)
27
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
28
+ target[prop] = source[prop];
29
+ if (source != null && __getOwnPropSymbols)
30
+ for (var prop of __getOwnPropSymbols(source)) {
31
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
32
+ target[prop] = source[prop];
33
+ }
34
+ return target;
35
+ };
36
+ var __commonJS = (cb, mod) => function __require() {
37
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
38
+ };
39
+ var __copyProps = (to, from, except, desc) => {
40
+ if (from && typeof from === "object" || typeof from === "function") {
41
+ for (let key of __getOwnPropNames(from))
42
+ if (!__hasOwnProp.call(to, key) && key !== except)
43
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
44
+ }
45
+ return to;
46
+ };
47
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
48
+ // If the importer is in node compatibility mode or this is not an ESM
49
+ // file that has been converted to a CommonJS file using a Babel-
50
+ // compatible transform (i.e. "__esModule" has not been set), then set
51
+ // "default" to the CommonJS "module.exports" for node compatibility.
52
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
53
+ mod
54
+ ));
55
+
56
+ // ../../node_modules/dayjs/dayjs.min.js
57
+ var require_dayjs_min = __commonJS({
58
+ "../../node_modules/dayjs/dayjs.min.js"(exports, module) {
59
+ !function(t, e) {
60
+ "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();
61
+ }(exports, function() {
62
+ "use strict";
63
+ 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) {
64
+ var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
65
+ return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
66
+ } }, m = function(t2, e2, n2) {
67
+ var r2 = String(t2);
68
+ return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
69
+ }, v = { s: m, z: function(t2) {
70
+ var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
71
+ return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
72
+ }, m: function t2(e2, n2) {
73
+ if (e2.date() < n2.date())
74
+ return -t2(n2, e2);
75
+ 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);
76
+ return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
77
+ }, a: function(t2) {
78
+ return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
79
+ }, p: function(t2) {
80
+ 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$/, "");
81
+ }, u: function(t2) {
82
+ return void 0 === t2;
83
+ } }, g = "en", D = {};
84
+ D[g] = M;
85
+ var p = function(t2) {
86
+ return t2 instanceof _;
87
+ }, S = function t2(e2, n2, r2) {
88
+ var i2;
89
+ if (!e2)
90
+ return g;
91
+ if ("string" == typeof e2) {
92
+ var s2 = e2.toLowerCase();
93
+ D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
94
+ var u2 = e2.split("-");
95
+ if (!i2 && u2.length > 1)
96
+ return t2(u2[0]);
97
+ } else {
98
+ var a2 = e2.name;
99
+ D[a2] = e2, i2 = a2;
100
+ }
101
+ return !r2 && i2 && (g = i2), i2 || !r2 && g;
102
+ }, w = function(t2, e2) {
103
+ if (p(t2))
104
+ return t2.clone();
105
+ var n2 = "object" == typeof e2 ? e2 : {};
106
+ return n2.date = t2, n2.args = arguments, new _(n2);
107
+ }, O = v;
108
+ O.l = S, O.i = p, O.w = function(t2, e2) {
109
+ return w(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
110
+ };
111
+ var _ = function() {
112
+ function M2(t2) {
113
+ this.$L = S(t2.locale, null, true), this.parse(t2);
114
+ }
115
+ var m2 = M2.prototype;
116
+ return m2.parse = function(t2) {
117
+ this.$d = function(t3) {
118
+ var e2 = t3.date, n2 = t3.utc;
119
+ if (null === e2)
120
+ return /* @__PURE__ */ new Date(NaN);
121
+ if (O.u(e2))
122
+ return /* @__PURE__ */ new Date();
123
+ if (e2 instanceof Date)
124
+ return new Date(e2);
125
+ if ("string" == typeof e2 && !/Z$/i.test(e2)) {
126
+ var r2 = e2.match($);
127
+ if (r2) {
128
+ var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
129
+ 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);
130
+ }
131
+ }
132
+ return new Date(e2);
133
+ }(t2), this.$x = t2.x || {}, this.init();
134
+ }, m2.init = function() {
135
+ var t2 = this.$d;
136
+ 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();
137
+ }, m2.$utils = function() {
138
+ return O;
139
+ }, m2.isValid = function() {
140
+ return !(this.$d.toString() === l);
141
+ }, m2.isSame = function(t2, e2) {
142
+ var n2 = w(t2);
143
+ return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
144
+ }, m2.isAfter = function(t2, e2) {
145
+ return w(t2) < this.startOf(e2);
146
+ }, m2.isBefore = function(t2, e2) {
147
+ return this.endOf(e2) < w(t2);
148
+ }, m2.$g = function(t2, e2, n2) {
149
+ return O.u(t2) ? this[e2] : this.set(n2, t2);
150
+ }, m2.unix = function() {
151
+ return Math.floor(this.valueOf() / 1e3);
152
+ }, m2.valueOf = function() {
153
+ return this.$d.getTime();
154
+ }, m2.startOf = function(t2, e2) {
155
+ var n2 = this, r2 = !!O.u(e2) || e2, h2 = O.p(t2), l2 = function(t3, e3) {
156
+ var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
157
+ return r2 ? i2 : i2.endOf(a);
158
+ }, $2 = function(t3, e3) {
159
+ return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
160
+ }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
161
+ switch (h2) {
162
+ case c:
163
+ return r2 ? l2(1, 0) : l2(31, 11);
164
+ case f:
165
+ return r2 ? l2(1, M3) : l2(0, M3 + 1);
166
+ case o:
167
+ var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
168
+ return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
169
+ case a:
170
+ case d:
171
+ return $2(v2 + "Hours", 0);
172
+ case u:
173
+ return $2(v2 + "Minutes", 1);
174
+ case s:
175
+ return $2(v2 + "Seconds", 2);
176
+ case i:
177
+ return $2(v2 + "Milliseconds", 3);
178
+ default:
179
+ return this.clone();
180
+ }
181
+ }, m2.endOf = function(t2) {
182
+ return this.startOf(t2, false);
183
+ }, m2.$set = function(t2, e2) {
184
+ 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;
185
+ if (o2 === f || o2 === c) {
186
+ var y2 = this.clone().set(d, 1);
187
+ y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
188
+ } else
189
+ l2 && this.$d[l2]($2);
190
+ return this.init(), this;
191
+ }, m2.set = function(t2, e2) {
192
+ return this.clone().$set(t2, e2);
193
+ }, m2.get = function(t2) {
194
+ return this[O.p(t2)]();
195
+ }, m2.add = function(r2, h2) {
196
+ var d2, l2 = this;
197
+ r2 = Number(r2);
198
+ var $2 = O.p(h2), y2 = function(t2) {
199
+ var e2 = w(l2);
200
+ return O.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
201
+ };
202
+ if ($2 === f)
203
+ return this.set(f, this.$M + r2);
204
+ if ($2 === c)
205
+ return this.set(c, this.$y + r2);
206
+ if ($2 === a)
207
+ return y2(1);
208
+ if ($2 === o)
209
+ return y2(7);
210
+ var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
211
+ return O.w(m3, this);
212
+ }, m2.subtract = function(t2, e2) {
213
+ return this.add(-1 * t2, e2);
214
+ }, m2.format = function(t2) {
215
+ var e2 = this, n2 = this.$locale();
216
+ if (!this.isValid())
217
+ return n2.invalidDate || l;
218
+ 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) {
219
+ return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
220
+ }, c2 = function(t3) {
221
+ return O.s(s2 % 12 || 12, t3, "0");
222
+ }, d2 = n2.meridiem || function(t3, e3, n3) {
223
+ var r3 = t3 < 12 ? "AM" : "PM";
224
+ return n3 ? r3.toLowerCase() : r3;
225
+ }, $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 };
226
+ return r2.replace(y, function(t3, e3) {
227
+ return e3 || $2[t3] || i2.replace(":", "");
228
+ });
229
+ }, m2.utcOffset = function() {
230
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
231
+ }, m2.diff = function(r2, d2, l2) {
232
+ var $2, y2 = O.p(d2), M3 = w(r2), m3 = (M3.utcOffset() - this.utcOffset()) * e, v2 = this - M3, g2 = O.m(this, M3);
233
+ 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);
234
+ }, m2.daysInMonth = function() {
235
+ return this.endOf(f).$D;
236
+ }, m2.$locale = function() {
237
+ return D[this.$L];
238
+ }, m2.locale = function(t2, e2) {
239
+ if (!t2)
240
+ return this.$L;
241
+ var n2 = this.clone(), r2 = S(t2, e2, true);
242
+ return r2 && (n2.$L = r2), n2;
243
+ }, m2.clone = function() {
244
+ return O.w(this.$d, this);
245
+ }, m2.toDate = function() {
246
+ return new Date(this.valueOf());
247
+ }, m2.toJSON = function() {
248
+ return this.isValid() ? this.toISOString() : null;
249
+ }, m2.toISOString = function() {
250
+ return this.$d.toISOString();
251
+ }, m2.toString = function() {
252
+ return this.$d.toUTCString();
253
+ }, M2;
254
+ }(), T = _.prototype;
255
+ return w.prototype = T, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function(t2) {
256
+ T[t2[1]] = function(e2) {
257
+ return this.$g(e2, t2[0], t2[1]);
258
+ };
259
+ }), w.extend = function(t2, e2) {
260
+ return t2.$i || (t2(e2, _, w), t2.$i = true), w;
261
+ }, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
262
+ return w(1e3 * t2);
263
+ }, w.en = D[g], w.Ls = D, w.p = {}, w;
264
+ });
265
+ }
266
+ });
267
+
268
+ // ../../node_modules/@babel/runtime/helpers/interopRequireDefault.js
269
+ var require_interopRequireDefault = __commonJS({
270
+ "../../node_modules/@babel/runtime/helpers/interopRequireDefault.js"(exports, module) {
271
+ function _interopRequireDefault(obj) {
272
+ return obj && obj.__esModule ? obj : {
273
+ "default": obj
274
+ };
275
+ }
276
+ module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
277
+ }
278
+ });
279
+
280
+ // ../../node_modules/rc-picker/node_modules/rc-util/lib/warning.js
281
+ var require_warning = __commonJS({
282
+ "../../node_modules/rc-picker/node_modules/rc-util/lib/warning.js"(exports) {
283
+ "use strict";
284
+ Object.defineProperty(exports, "__esModule", {
285
+ value: true
286
+ });
287
+ exports.call = call;
288
+ exports.default = void 0;
289
+ exports.note = note;
290
+ exports.noteOnce = noteOnce;
291
+ exports.resetWarned = resetWarned;
292
+ exports.warning = warning;
293
+ exports.warningOnce = warningOnce;
294
+ var warned = {};
295
+ function warning(valid, message) {
296
+ if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
297
+ console.error("Warning: ".concat(message));
298
+ }
299
+ }
300
+ function note(valid, message) {
301
+ if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
302
+ console.warn("Note: ".concat(message));
303
+ }
304
+ }
305
+ function resetWarned() {
306
+ warned = {};
307
+ }
308
+ function call(method, valid, message) {
309
+ if (!valid && !warned[message]) {
310
+ method(false, message);
311
+ warned[message] = true;
312
+ }
313
+ }
314
+ function warningOnce(valid, message) {
315
+ call(warning, valid, message);
316
+ }
317
+ function noteOnce(valid, message) {
318
+ call(note, valid, message);
319
+ }
320
+ var _default = warningOnce;
321
+ exports.default = _default;
322
+ }
323
+ });
324
+
325
+ // ../../node_modules/dayjs/plugin/weekday.js
326
+ var require_weekday = __commonJS({
327
+ "../../node_modules/dayjs/plugin/weekday.js"(exports, module) {
328
+ !function(e, t) {
329
+ "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();
330
+ }(exports, function() {
331
+ "use strict";
332
+ return function(e, t) {
333
+ t.prototype.weekday = function(e2) {
334
+ var t2 = this.$locale().weekStart || 0, i = this.$W, n = (i < t2 ? i + 7 : i) - t2;
335
+ return this.$utils().u(e2) ? n : this.subtract(n, "day").add(e2, "day");
336
+ };
337
+ };
338
+ });
339
+ }
340
+ });
341
+
342
+ // ../../node_modules/dayjs/plugin/localeData.js
343
+ var require_localeData = __commonJS({
344
+ "../../node_modules/dayjs/plugin/localeData.js"(exports, module) {
345
+ !function(n, e) {
346
+ "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();
347
+ }(exports, function() {
348
+ "use strict";
349
+ return function(n, e, t) {
350
+ var r = e.prototype, o = function(n2) {
351
+ return n2 && (n2.indexOf ? n2 : n2.s);
352
+ }, u = function(n2, e2, t2, r2, u2) {
353
+ var i2 = n2.name ? n2 : n2.$locale(), a2 = o(i2[e2]), s2 = o(i2[t2]), f = a2 || s2.map(function(n3) {
354
+ return n3.slice(0, r2);
355
+ });
356
+ if (!u2)
357
+ return f;
358
+ var d = i2.weekStart;
359
+ return f.map(function(n3, e3) {
360
+ return f[(e3 + (d || 0)) % 7];
361
+ });
362
+ }, i = function() {
363
+ return t.Ls[t.locale()];
364
+ }, a = function(n2, e2) {
365
+ return n2.formats[e2] || function(n3) {
366
+ return n3.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(n4, e3, t2) {
367
+ return e3 || t2.slice(1);
368
+ });
369
+ }(n2.formats[e2.toUpperCase()]);
370
+ }, s = function() {
371
+ var n2 = this;
372
+ return { months: function(e2) {
373
+ return e2 ? e2.format("MMMM") : u(n2, "months");
374
+ }, monthsShort: function(e2) {
375
+ return e2 ? e2.format("MMM") : u(n2, "monthsShort", "months", 3);
376
+ }, firstDayOfWeek: function() {
377
+ return n2.$locale().weekStart || 0;
378
+ }, weekdays: function(e2) {
379
+ return e2 ? e2.format("dddd") : u(n2, "weekdays");
380
+ }, weekdaysMin: function(e2) {
381
+ return e2 ? e2.format("dd") : u(n2, "weekdaysMin", "weekdays", 2);
382
+ }, weekdaysShort: function(e2) {
383
+ return e2 ? e2.format("ddd") : u(n2, "weekdaysShort", "weekdays", 3);
384
+ }, longDateFormat: function(e2) {
385
+ return a(n2.$locale(), e2);
386
+ }, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
387
+ };
388
+ r.localeData = function() {
389
+ return s.bind(this)();
390
+ }, t.localeData = function() {
391
+ var n2 = i();
392
+ return { firstDayOfWeek: function() {
393
+ return n2.weekStart || 0;
394
+ }, weekdays: function() {
395
+ return t.weekdays();
396
+ }, weekdaysShort: function() {
397
+ return t.weekdaysShort();
398
+ }, weekdaysMin: function() {
399
+ return t.weekdaysMin();
400
+ }, months: function() {
401
+ return t.months();
402
+ }, monthsShort: function() {
403
+ return t.monthsShort();
404
+ }, longDateFormat: function(e2) {
405
+ return a(n2, e2);
406
+ }, meridiem: n2.meridiem, ordinal: n2.ordinal };
407
+ }, t.months = function() {
408
+ return u(i(), "months");
409
+ }, t.monthsShort = function() {
410
+ return u(i(), "monthsShort", "months", 3);
411
+ }, t.weekdays = function(n2) {
412
+ return u(i(), "weekdays", null, null, n2);
413
+ }, t.weekdaysShort = function(n2) {
414
+ return u(i(), "weekdaysShort", "weekdays", 3, n2);
415
+ }, t.weekdaysMin = function(n2) {
416
+ return u(i(), "weekdaysMin", "weekdays", 2, n2);
417
+ };
418
+ };
419
+ });
420
+ }
421
+ });
422
+
423
+ // ../../node_modules/dayjs/plugin/weekOfYear.js
424
+ var require_weekOfYear = __commonJS({
425
+ "../../node_modules/dayjs/plugin/weekOfYear.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_weekOfYear = t();
428
+ }(exports, function() {
429
+ "use strict";
430
+ var e = "week", t = "year";
431
+ return function(i, n, r) {
432
+ var f = n.prototype;
433
+ f.week = function(i2) {
434
+ if (void 0 === i2 && (i2 = null), null !== i2)
435
+ return this.add(7 * (i2 - this.week()), "day");
436
+ var n2 = this.$locale().yearStart || 1;
437
+ if (11 === this.month() && this.date() > 25) {
438
+ var f2 = r(this).startOf(t).add(1, t).date(n2), s = r(this).endOf(e);
439
+ if (f2.isBefore(s))
440
+ return 1;
441
+ }
442
+ var a = r(this).startOf(t).date(n2).startOf(e).subtract(1, "millisecond"), o = this.diff(a, e, true);
443
+ return o < 0 ? r(this).startOf("week").week() : Math.ceil(o);
444
+ }, f.weeks = function(e2) {
445
+ return void 0 === e2 && (e2 = null), this.week(e2);
446
+ };
447
+ };
448
+ });
449
+ }
450
+ });
451
+
452
+ // ../../node_modules/dayjs/plugin/weekYear.js
453
+ var require_weekYear = __commonJS({
454
+ "../../node_modules/dayjs/plugin/weekYear.js"(exports, module) {
455
+ !function(e, t) {
456
+ "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();
457
+ }(exports, function() {
458
+ "use strict";
459
+ return function(e, t) {
460
+ t.prototype.weekYear = function() {
461
+ var e2 = this.month(), t2 = this.week(), n = this.year();
462
+ return 1 === t2 && 11 === e2 ? n + 1 : 0 === e2 && t2 >= 52 ? n - 1 : n;
463
+ };
464
+ };
465
+ });
466
+ }
467
+ });
468
+
469
+ // ../../node_modules/dayjs/plugin/advancedFormat.js
470
+ var require_advancedFormat = __commonJS({
471
+ "../../node_modules/dayjs/plugin/advancedFormat.js"(exports, module) {
472
+ !function(e, t) {
473
+ "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();
474
+ }(exports, function() {
475
+ "use strict";
476
+ return function(e, t) {
477
+ var r = t.prototype, n = r.format;
478
+ r.format = function(e2) {
479
+ var t2 = this, r2 = this.$locale();
480
+ if (!this.isValid())
481
+ return n.bind(this)(e2);
482
+ 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) {
483
+ switch (e3) {
484
+ case "Q":
485
+ return Math.ceil((t2.$M + 1) / 3);
486
+ case "Do":
487
+ return r2.ordinal(t2.$D);
488
+ case "gggg":
489
+ return t2.weekYear();
490
+ case "GGGG":
491
+ return t2.isoWeekYear();
492
+ case "wo":
493
+ return r2.ordinal(t2.week(), "W");
494
+ case "w":
495
+ case "ww":
496
+ return s.s(t2.week(), "w" === e3 ? 1 : 2, "0");
497
+ case "W":
498
+ case "WW":
499
+ return s.s(t2.isoWeek(), "W" === e3 ? 1 : 2, "0");
500
+ case "k":
501
+ case "kk":
502
+ return s.s(String(0 === t2.$H ? 24 : t2.$H), "k" === e3 ? 1 : 2, "0");
503
+ case "X":
504
+ return Math.floor(t2.$d.getTime() / 1e3);
505
+ case "x":
506
+ return t2.$d.getTime();
507
+ case "z":
508
+ return "[" + t2.offsetName() + "]";
509
+ case "zzz":
510
+ return "[" + t2.offsetName("long") + "]";
511
+ default:
512
+ return e3;
513
+ }
514
+ });
515
+ return n.bind(this)(a);
516
+ };
517
+ };
518
+ });
519
+ }
520
+ });
521
+
522
+ // ../../node_modules/dayjs/plugin/customParseFormat.js
523
+ var require_customParseFormat = __commonJS({
524
+ "../../node_modules/dayjs/plugin/customParseFormat.js"(exports, module) {
525
+ !function(e, t) {
526
+ "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();
527
+ }(exports, function() {
528
+ "use strict";
529
+ 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) {
530
+ return (e2 = +e2) + (e2 > 68 ? 1900 : 2e3);
531
+ };
532
+ var a = function(e2) {
533
+ return function(t2) {
534
+ this[e2] = +t2;
535
+ };
536
+ }, f = [/[+-]\d\d:?(\d\d)?|Z/, function(e2) {
537
+ (this.zone || (this.zone = {})).offset = function(e3) {
538
+ if (!e3)
539
+ return 0;
540
+ if ("Z" === e3)
541
+ return 0;
542
+ var t2 = e3.match(/([+-]|\d\d)/g), n2 = 60 * t2[1] + (+t2[2] || 0);
543
+ return 0 === n2 ? 0 : "+" === t2[0] ? -n2 : n2;
544
+ }(e2);
545
+ }], h = function(e2) {
546
+ var t2 = o[e2];
547
+ return t2 && (t2.indexOf ? t2 : t2.s.concat(t2.f));
548
+ }, u = function(e2, t2) {
549
+ var n2, r2 = o.meridiem;
550
+ if (r2) {
551
+ for (var i2 = 1; i2 <= 24; i2 += 1)
552
+ if (e2.indexOf(r2(i2, 0, t2)) > -1) {
553
+ n2 = i2 > 12;
554
+ break;
555
+ }
556
+ } else
557
+ n2 = e2 === (t2 ? "pm" : "PM");
558
+ return n2;
559
+ }, d = { A: [i, function(e2) {
560
+ this.afternoon = u(e2, false);
561
+ }], a: [i, function(e2) {
562
+ this.afternoon = u(e2, true);
563
+ }], S: [/\d/, function(e2) {
564
+ this.milliseconds = 100 * +e2;
565
+ }], SS: [n, function(e2) {
566
+ this.milliseconds = 10 * +e2;
567
+ }], SSS: [/\d{3}/, function(e2) {
568
+ this.milliseconds = +e2;
569
+ }], 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) {
570
+ var t2 = o.ordinal, n2 = e2.match(/\d+/);
571
+ if (this.day = n2[0], t2)
572
+ for (var r2 = 1; r2 <= 31; r2 += 1)
573
+ t2(r2).replace(/\[|\]/g, "") === e2 && (this.day = r2);
574
+ }], M: [r, a("month")], MM: [n, a("month")], MMM: [i, function(e2) {
575
+ var t2 = h("months"), n2 = (h("monthsShort") || t2.map(function(e3) {
576
+ return e3.slice(0, 3);
577
+ })).indexOf(e2) + 1;
578
+ if (n2 < 1)
579
+ throw new Error();
580
+ this.month = n2 % 12 || n2;
581
+ }], MMMM: [i, function(e2) {
582
+ var t2 = h("months").indexOf(e2) + 1;
583
+ if (t2 < 1)
584
+ throw new Error();
585
+ this.month = t2 % 12 || t2;
586
+ }], Y: [/[+-]?\d+/, a("year")], YY: [n, function(e2) {
587
+ this.year = s(e2);
588
+ }], YYYY: [/\d{4}/, a("year")], Z: f, ZZ: f };
589
+ function c(n2) {
590
+ var r2, i2;
591
+ r2 = n2, i2 = o && o.formats;
592
+ for (var s2 = (n2 = r2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t2, n3, r3) {
593
+ var o2 = r3 && r3.toUpperCase();
594
+ return n3 || i2[r3] || e[r3] || i2[o2].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e2, t3, n4) {
595
+ return t3 || n4.slice(1);
596
+ });
597
+ })).match(t), a2 = s2.length, f2 = 0; f2 < a2; f2 += 1) {
598
+ var h2 = s2[f2], u2 = d[h2], c2 = u2 && u2[0], l = u2 && u2[1];
599
+ s2[f2] = l ? { regex: c2, parser: l } : h2.replace(/^\[|\]$/g, "");
600
+ }
601
+ return function(e2) {
602
+ for (var t2 = {}, n3 = 0, r3 = 0; n3 < a2; n3 += 1) {
603
+ var i3 = s2[n3];
604
+ if ("string" == typeof i3)
605
+ r3 += i3.length;
606
+ else {
607
+ var o2 = i3.regex, f3 = i3.parser, h3 = e2.slice(r3), u3 = o2.exec(h3)[0];
608
+ f3.call(t2, u3), e2 = e2.replace(u3, "");
609
+ }
610
+ }
611
+ return function(e3) {
612
+ var t3 = e3.afternoon;
613
+ if (void 0 !== t3) {
614
+ var n4 = e3.hours;
615
+ t3 ? n4 < 12 && (e3.hours += 12) : 12 === n4 && (e3.hours = 0), delete e3.afternoon;
616
+ }
617
+ }(t2), t2;
618
+ };
619
+ }
620
+ return function(e2, t2, n2) {
621
+ n2.p.customParseFormat = true, e2 && e2.parseTwoDigitYear && (s = e2.parseTwoDigitYear);
622
+ var r2 = t2.prototype, i2 = r2.parse;
623
+ r2.parse = function(e3) {
624
+ var t3 = e3.date, r3 = e3.utc, s2 = e3.args;
625
+ this.$u = r3;
626
+ var a2 = s2[1];
627
+ if ("string" == typeof a2) {
628
+ var f2 = true === s2[2], h2 = true === s2[3], u2 = f2 || h2, d2 = s2[2];
629
+ h2 && (d2 = s2[2]), o = this.$locale(), !f2 && d2 && (o = n2.Ls[d2]), this.$d = function(e4, t4, n3) {
630
+ try {
631
+ if (["x", "X"].indexOf(t4) > -1)
632
+ return new Date(("X" === t4 ? 1e3 : 1) * e4);
633
+ 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;
634
+ i3 && !o2 || (Y = o2 > 0 ? o2 - 1 : l2.getMonth());
635
+ var p = a3 || 0, v = f3 || 0, D = h3 || 0, g = u3 || 0;
636
+ 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);
637
+ } catch (e5) {
638
+ return /* @__PURE__ */ new Date("");
639
+ }
640
+ }(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 = {};
641
+ } else if (a2 instanceof Array)
642
+ for (var l = a2.length, m = 1; m <= l; m += 1) {
643
+ s2[1] = a2[m - 1];
644
+ var M = n2.apply(this, s2);
645
+ if (M.isValid()) {
646
+ this.$d = M.$d, this.$L = M.$L, this.init();
647
+ break;
648
+ }
649
+ m === l && (this.$d = /* @__PURE__ */ new Date(""));
650
+ }
651
+ else
652
+ i2.call(this, e3);
653
+ };
654
+ };
655
+ });
656
+ }
657
+ });
658
+
659
+ // ../../node_modules/rc-picker/lib/generate/dayjs.js
660
+ var require_dayjs = __commonJS({
661
+ "../../node_modules/rc-picker/lib/generate/dayjs.js"(exports) {
662
+ "use strict";
663
+ var _interopRequireDefault = require_interopRequireDefault();
664
+ Object.defineProperty(exports, "__esModule", {
665
+ value: true
666
+ });
667
+ exports.default = void 0;
668
+ var _dayjs = _interopRequireDefault(require_dayjs_min());
669
+ var _warning = require_warning();
670
+ var _weekday = _interopRequireDefault(require_weekday());
671
+ var _localeData = _interopRequireDefault(require_localeData());
672
+ var _weekOfYear = _interopRequireDefault(require_weekOfYear());
673
+ var _weekYear = _interopRequireDefault(require_weekYear());
674
+ var _advancedFormat = _interopRequireDefault(require_advancedFormat());
675
+ var _customParseFormat = _interopRequireDefault(require_customParseFormat());
676
+ _dayjs.default.extend(_customParseFormat.default);
677
+ _dayjs.default.extend(_advancedFormat.default);
678
+ _dayjs.default.extend(_weekday.default);
679
+ _dayjs.default.extend(_localeData.default);
680
+ _dayjs.default.extend(_weekOfYear.default);
681
+ _dayjs.default.extend(_weekYear.default);
682
+ _dayjs.default.extend(function(o, c) {
683
+ var proto = c.prototype;
684
+ var oldFormat = proto.format;
685
+ proto.format = function f(formatStr) {
686
+ var str = (formatStr || "").replace("Wo", "wo");
687
+ return oldFormat.bind(this)(str);
688
+ };
689
+ });
690
+ var localeMap = {
691
+ // ar_EG:
692
+ // az_AZ:
693
+ // bg_BG:
694
+ bn_BD: "bn-bd",
695
+ by_BY: "be",
696
+ // ca_ES:
697
+ // cs_CZ:
698
+ // da_DK:
699
+ // de_DE:
700
+ // el_GR:
701
+ en_GB: "en-gb",
702
+ en_US: "en",
703
+ // es_ES:
704
+ // et_EE:
705
+ // fa_IR:
706
+ // fi_FI:
707
+ fr_BE: "fr",
708
+ // todo: dayjs has no fr_BE locale, use fr at present
709
+ fr_CA: "fr-ca",
710
+ // fr_FR:
711
+ // ga_IE:
712
+ // gl_ES:
713
+ // he_IL:
714
+ // hi_IN:
715
+ // hr_HR:
716
+ // hu_HU:
717
+ hy_AM: "hy-am",
718
+ // id_ID:
719
+ // is_IS:
720
+ // it_IT:
721
+ // ja_JP:
722
+ // ka_GE:
723
+ // kk_KZ:
724
+ // km_KH:
725
+ kmr_IQ: "ku",
726
+ // kn_IN:
727
+ // ko_KR:
728
+ // ku_IQ: // previous ku in antd
729
+ // lt_LT:
730
+ // lv_LV:
731
+ // mk_MK:
732
+ // ml_IN:
733
+ // mn_MN:
734
+ // ms_MY:
735
+ // nb_NO:
736
+ // ne_NP:
737
+ nl_BE: "nl-be",
738
+ // nl_NL:
739
+ // pl_PL:
740
+ pt_BR: "pt-br",
741
+ // pt_PT:
742
+ // ro_RO:
743
+ // ru_RU:
744
+ // sk_SK:
745
+ // sl_SI:
746
+ // sr_RS:
747
+ // sv_SE:
748
+ // ta_IN:
749
+ // th_TH:
750
+ // tr_TR:
751
+ // uk_UA:
752
+ // ur_PK:
753
+ // vi_VN:
754
+ zh_CN: "zh-cn",
755
+ zh_HK: "zh-hk",
756
+ zh_TW: "zh-tw"
757
+ };
758
+ var parseLocale = function parseLocale2(locale) {
759
+ var mapLocale = localeMap[locale];
760
+ return mapLocale || locale.split("_")[0];
761
+ };
762
+ var parseNoMatchNotice = function parseNoMatchNotice2() {
763
+ (0, _warning.noteOnce)(false, "Not match any format. Please help to fire a issue about this.");
764
+ };
765
+ var generateConfig = {
766
+ // get
767
+ getNow: function getNow() {
768
+ return (0, _dayjs.default)();
769
+ },
770
+ getFixedDate: function getFixedDate(string) {
771
+ return (0, _dayjs.default)(string, ["YYYY-M-DD", "YYYY-MM-DD"]);
772
+ },
773
+ getEndDate: function getEndDate(date) {
774
+ return date.endOf("month");
775
+ },
776
+ getWeekDay: function getWeekDay(date) {
777
+ var clone = date.locale("en");
778
+ return clone.weekday() + clone.localeData().firstDayOfWeek();
779
+ },
780
+ getYear: function getYear(date) {
781
+ return date.year();
782
+ },
783
+ getMonth: function getMonth(date) {
784
+ return date.month();
785
+ },
786
+ getDate: function getDate(date) {
787
+ return date.date();
788
+ },
789
+ getHour: function getHour(date) {
790
+ return date.hour();
791
+ },
792
+ getMinute: function getMinute(date) {
793
+ return date.minute();
794
+ },
795
+ getSecond: function getSecond(date) {
796
+ return date.second();
797
+ },
798
+ // set
799
+ addYear: function addYear(date, diff) {
800
+ return date.add(diff, "year");
801
+ },
802
+ addMonth: function addMonth(date, diff) {
803
+ return date.add(diff, "month");
804
+ },
805
+ addDate: function addDate(date, diff) {
806
+ return date.add(diff, "day");
807
+ },
808
+ setYear: function setYear(date, year) {
809
+ return date.year(year);
810
+ },
811
+ setMonth: function setMonth(date, month) {
812
+ return date.month(month);
813
+ },
814
+ setDate: function setDate(date, num) {
815
+ return date.date(num);
816
+ },
817
+ setHour: function setHour(date, hour) {
818
+ return date.hour(hour);
819
+ },
820
+ setMinute: function setMinute(date, minute) {
821
+ return date.minute(minute);
822
+ },
823
+ setSecond: function setSecond(date, second) {
824
+ return date.second(second);
825
+ },
826
+ // Compare
827
+ isAfter: function isAfter(date1, date2) {
828
+ return date1.isAfter(date2);
829
+ },
830
+ isValidate: function isValidate(date) {
831
+ return date.isValid();
832
+ },
833
+ locale: {
834
+ getWeekFirstDay: function getWeekFirstDay(locale) {
835
+ return (0, _dayjs.default)().locale(parseLocale(locale)).localeData().firstDayOfWeek();
836
+ },
837
+ getWeekFirstDate: function getWeekFirstDate(locale, date) {
838
+ return date.locale(parseLocale(locale)).weekday(0);
839
+ },
840
+ getWeek: function getWeek(locale, date) {
841
+ return date.locale(parseLocale(locale)).week();
842
+ },
843
+ getShortWeekDays: function getShortWeekDays(locale) {
844
+ return (0, _dayjs.default)().locale(parseLocale(locale)).localeData().weekdaysMin();
845
+ },
846
+ getShortMonths: function getShortMonths(locale) {
847
+ return (0, _dayjs.default)().locale(parseLocale(locale)).localeData().monthsShort();
848
+ },
849
+ format: function format(locale, date, _format) {
850
+ return date.locale(parseLocale(locale)).format(_format);
851
+ },
852
+ parse: function parse(locale, text, formats) {
853
+ var localeStr = parseLocale(locale);
854
+ for (var i = 0; i < formats.length; i += 1) {
855
+ var format = formats[i];
856
+ var formatText = text;
857
+ if (format.includes("wo") || format.includes("Wo")) {
858
+ var year = formatText.split("-")[0];
859
+ var weekStr = formatText.split("-")[1];
860
+ var firstWeek = (0, _dayjs.default)(year, "YYYY").startOf("year").locale(localeStr);
861
+ for (var j = 0; j <= 52; j += 1) {
862
+ var nextWeek = firstWeek.add(j, "week");
863
+ if (nextWeek.format("Wo") === weekStr) {
864
+ return nextWeek;
865
+ }
866
+ }
867
+ parseNoMatchNotice();
868
+ return null;
869
+ }
870
+ var date = (0, _dayjs.default)(formatText, format, true).locale(localeStr);
871
+ if (date.isValid()) {
872
+ return date;
873
+ }
874
+ }
875
+ if (text) {
876
+ parseNoMatchNotice();
877
+ }
878
+ return null;
879
+ }
880
+ }
881
+ };
882
+ var _default = generateConfig;
883
+ exports.default = _default;
884
+ }
885
+ });
886
+
887
+ // src/index.ts
888
+ import { getCompatContextProvider } from "react-querybuilder";
889
+
890
+ // src/AntDActionElement.tsx
891
+ import { Button } from "antd";
892
+ import { jsx } from "react/jsx-runtime";
893
+ var AntDActionElement = (_a) => {
894
+ var _b = _a, {
895
+ className,
896
+ handleOnClick,
897
+ label,
898
+ title,
899
+ disabled,
900
+ disabledTranslation,
901
+ testID: _testID,
902
+ rules: _rules,
903
+ level: _level,
904
+ path: _path,
905
+ context: _context,
906
+ validation: _validation,
907
+ ruleOrGroup: _ruleOrGroup,
908
+ schema: _schema
909
+ } = _b, extraProps = __objRest(_b, [
910
+ "className",
911
+ "handleOnClick",
912
+ "label",
913
+ "title",
914
+ "disabled",
915
+ "disabledTranslation",
916
+ // Props that should not be in extraProps
917
+ "testID",
918
+ "rules",
919
+ "level",
920
+ "path",
921
+ "context",
922
+ "validation",
923
+ "ruleOrGroup",
924
+ "schema"
925
+ ]);
926
+ return /* @__PURE__ */ jsx(
927
+ Button,
928
+ __spreadProps(__spreadValues({
929
+ type: "primary",
930
+ className,
931
+ title: disabledTranslation && disabled ? disabledTranslation.title : title,
932
+ onClick: (e) => handleOnClick(e),
933
+ disabled: disabled && !disabledTranslation
934
+ }, extraProps), {
935
+ children: disabledTranslation && disabled ? disabledTranslation.label : label
936
+ })
937
+ );
938
+ };
939
+ AntDActionElement.displayName = "AntDActionElement";
940
+
941
+ // src/AntDDragHandle.tsx
942
+ import { HolderOutlined } from "@ant-design/icons";
943
+ import { forwardRef } from "react";
944
+ import { jsx as jsx2 } from "react/jsx-runtime";
945
+ var AntDDragHandle = forwardRef(
946
+ (_a, dragRef) => {
947
+ var _b = _a, {
948
+ className,
949
+ title,
950
+ testID: _testID,
951
+ level: _level,
952
+ path: _path,
953
+ label: _label,
954
+ disabled: _disabled,
955
+ context: _context,
956
+ validation: _validation,
957
+ schema: _schema
958
+ } = _b, extraProps = __objRest(_b, [
959
+ "className",
960
+ "title",
961
+ // Props that should not be in extraProps
962
+ "testID",
963
+ "level",
964
+ "path",
965
+ "label",
966
+ "disabled",
967
+ "context",
968
+ "validation",
969
+ "schema"
970
+ ]);
971
+ return /* @__PURE__ */ jsx2(HolderOutlined, __spreadValues({ ref: dragRef, className, title }, extraProps));
972
+ }
973
+ );
974
+ AntDDragHandle.displayName = "AntDDragHandle";
975
+
976
+ // src/AntDNotToggle.tsx
977
+ import { Switch } from "antd";
978
+ import { jsx as jsx3 } from "react/jsx-runtime";
979
+ var AntDNotToggle = (_a) => {
980
+ var _b = _a, {
981
+ className,
982
+ handleOnChange,
983
+ label,
984
+ checked,
985
+ title,
986
+ disabled,
987
+ path: _path,
988
+ context: _context,
989
+ validation: _validation,
990
+ testID: _testID,
991
+ schema: _schema
992
+ } = _b, extraProps = __objRest(_b, [
993
+ "className",
994
+ "handleOnChange",
995
+ "label",
996
+ "checked",
997
+ "title",
998
+ "disabled",
999
+ // Props that should not be in extraProps
1000
+ "path",
1001
+ "context",
1002
+ "validation",
1003
+ "testID",
1004
+ "schema"
1005
+ ]);
1006
+ return /* @__PURE__ */ jsx3(
1007
+ Switch,
1008
+ __spreadValues({
1009
+ title,
1010
+ className,
1011
+ onChange: (v) => handleOnChange(v),
1012
+ checked: !!checked,
1013
+ disabled,
1014
+ checkedChildren: label,
1015
+ unCheckedChildren: "="
1016
+ }, extraProps)
1017
+ );
1018
+ };
1019
+ AntDNotToggle.displayName = "AntDNotToggle";
1020
+
1021
+ // src/AntDValueEditor.tsx
1022
+ var import_dayjs = __toESM(require_dayjs_min());
1023
+ var import_dayjs2 = __toESM(require_dayjs());
1024
+ import { Checkbox, Input, Radio, Switch as Switch2, TimePicker } from "antd";
1025
+ import generatePicker from "antd/es/date-picker/generatePicker/index.js";
1026
+ import {
1027
+ getFirstOption,
1028
+ standardClassnames,
1029
+ toArray,
1030
+ useValueEditor
1031
+ } from "react-querybuilder";
1032
+
1033
+ // src/AntDValueSelector.tsx
1034
+ import { Select as Select2 } from "antd";
1035
+ import { useValueSelector } from "react-querybuilder";
1036
+
1037
+ // src/utils.tsx
1038
+ import { Select } from "antd";
1039
+ import { isOptionGroupArray } from "react-querybuilder";
1040
+ import { jsx as jsx4 } from "react/jsx-runtime";
1041
+ var { OptGroup, Option } = Select;
1042
+ var toOptions = (arr) => isOptionGroupArray(arr) ? arr.map((og) => /* @__PURE__ */ jsx4(OptGroup, { label: og.label, children: og.options.map((opt) => /* @__PURE__ */ jsx4(Option, { value: opt.name, children: opt.label }, opt.name)) }, og.label)) : Array.isArray(arr) ? arr.map((opt) => /* @__PURE__ */ jsx4(Option, { value: opt.name, children: opt.label }, opt.name)) : (
1043
+ /* istanbul ignore next */
1044
+ null
1045
+ );
1046
+
1047
+ // src/AntDValueSelector.tsx
1048
+ import { jsx as jsx5 } from "react/jsx-runtime";
1049
+ var AntDValueSelector = (_a) => {
1050
+ var _b = _a, {
1051
+ className,
1052
+ handleOnChange,
1053
+ options,
1054
+ value,
1055
+ title,
1056
+ disabled,
1057
+ multiple,
1058
+ listsAsArrays,
1059
+ testID: _testID,
1060
+ rules: _rules,
1061
+ level: _level,
1062
+ path: _path,
1063
+ context: _context,
1064
+ validation: _validation,
1065
+ operator: _operator,
1066
+ field: _field,
1067
+ fieldData: _fieldData,
1068
+ schema: _schema
1069
+ } = _b, extraProps = __objRest(_b, [
1070
+ "className",
1071
+ "handleOnChange",
1072
+ "options",
1073
+ "value",
1074
+ "title",
1075
+ "disabled",
1076
+ "multiple",
1077
+ "listsAsArrays",
1078
+ // Props that should not be in extraProps
1079
+ "testID",
1080
+ "rules",
1081
+ "level",
1082
+ "path",
1083
+ "context",
1084
+ "validation",
1085
+ "operator",
1086
+ "field",
1087
+ "fieldData",
1088
+ "schema"
1089
+ ]);
1090
+ const { onChange, val } = useValueSelector({ handleOnChange, listsAsArrays, multiple, value });
1091
+ const modeObj = multiple ? { mode: "multiple" } : {};
1092
+ return /* @__PURE__ */ jsx5("span", { title, className, children: /* @__PURE__ */ jsx5(
1093
+ Select2,
1094
+ __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, modeObj), {
1095
+ dropdownMatchSelectWidth: false,
1096
+ disabled,
1097
+ value: val,
1098
+ onChange
1099
+ }), extraProps), {
1100
+ children: toOptions(options)
1101
+ })
1102
+ ) });
1103
+ };
1104
+ AntDValueSelector.displayName = "AntDValueSelector";
1105
+
1106
+ // src/AntDValueEditor.tsx
1107
+ import { jsx as jsx6, jsxs } from "react/jsx-runtime";
1108
+ import { createElement } from "react";
1109
+ var DatePicker = generatePicker(import_dayjs2.default);
1110
+ var AntDValueEditor = (_a) => {
1111
+ var _b = _a, {
1112
+ fieldData,
1113
+ operator,
1114
+ value,
1115
+ handleOnChange,
1116
+ title,
1117
+ className,
1118
+ type,
1119
+ inputType,
1120
+ values = [],
1121
+ listsAsArrays,
1122
+ parseNumbers,
1123
+ separator,
1124
+ valueSource: _vs,
1125
+ disabled,
1126
+ testID,
1127
+ selectorComponent: SelectorComponent = AntDValueSelector
1128
+ } = _b, props = __objRest(_b, [
1129
+ "fieldData",
1130
+ "operator",
1131
+ "value",
1132
+ "handleOnChange",
1133
+ "title",
1134
+ "className",
1135
+ "type",
1136
+ "inputType",
1137
+ "values",
1138
+ "listsAsArrays",
1139
+ "parseNumbers",
1140
+ "separator",
1141
+ "valueSource",
1142
+ "disabled",
1143
+ "testID",
1144
+ "selectorComponent"
1145
+ ]);
1146
+ var _a2, _b2;
1147
+ const { valueAsArray, multiValueHandler } = useValueEditor({
1148
+ handleOnChange,
1149
+ inputType,
1150
+ operator,
1151
+ value,
1152
+ type,
1153
+ listsAsArrays,
1154
+ parseNumbers,
1155
+ values
1156
+ });
1157
+ if (operator === "null" || operator === "notNull") {
1158
+ return null;
1159
+ }
1160
+ const placeHolderText = (_a2 = fieldData == null ? void 0 : fieldData.placeholder) != null ? _a2 : "";
1161
+ const inputTypeCoerced = ["in", "notIn"].includes(operator) ? "text" : inputType || "text";
1162
+ if ((operator === "between" || operator === "notBetween") && (type === "select" || type === "text") && // Date ranges are handled differently in AntD--see below
1163
+ inputTypeCoerced !== "date" && inputTypeCoerced !== "datetime-local") {
1164
+ const editors = ["from", "to"].map((key, i) => {
1165
+ var _a3, _b3;
1166
+ if (type === "text") {
1167
+ if (inputTypeCoerced === "time") {
1168
+ return /* @__PURE__ */ jsx6(
1169
+ TimePicker,
1170
+ {
1171
+ value: valueAsArray[i] ? (0, import_dayjs.default)(valueAsArray[i], "HH:mm:ss") : null,
1172
+ className: standardClassnames.valueListItem,
1173
+ disabled,
1174
+ placeholder: placeHolderText,
1175
+ onChange: (d) => {
1176
+ var _a4;
1177
+ return multiValueHandler((_a4 = d == null ? void 0 : d.format("HH:mm:ss")) != null ? _a4 : "", i);
1178
+ }
1179
+ },
1180
+ key
1181
+ );
1182
+ }
1183
+ return /* @__PURE__ */ jsx6(
1184
+ Input,
1185
+ {
1186
+ type: inputTypeCoerced,
1187
+ value: (_a3 = valueAsArray[i]) != null ? _a3 : "",
1188
+ className: standardClassnames.valueListItem,
1189
+ disabled,
1190
+ placeholder: placeHolderText,
1191
+ onChange: (e) => multiValueHandler(e.target.value, i)
1192
+ },
1193
+ key
1194
+ );
1195
+ }
1196
+ return /* @__PURE__ */ createElement(
1197
+ SelectorComponent,
1198
+ __spreadProps(__spreadValues({}, props), {
1199
+ key,
1200
+ className: standardClassnames.valueListItem,
1201
+ handleOnChange: (v) => multiValueHandler(v, i),
1202
+ disabled,
1203
+ value: (_b3 = valueAsArray[i]) != null ? _b3 : getFirstOption(values),
1204
+ options: values,
1205
+ listsAsArrays
1206
+ })
1207
+ );
1208
+ });
1209
+ return /* @__PURE__ */ jsxs("span", { "data-testid": testID, className, title, children: [
1210
+ editors[0],
1211
+ separator,
1212
+ editors[1]
1213
+ ] });
1214
+ }
1215
+ switch (type) {
1216
+ case "select":
1217
+ case "multiselect":
1218
+ return /* @__PURE__ */ jsx6(
1219
+ SelectorComponent,
1220
+ __spreadProps(__spreadValues({}, props), {
1221
+ className,
1222
+ handleOnChange,
1223
+ options: values,
1224
+ value,
1225
+ title,
1226
+ disabled,
1227
+ multiple: type === "multiselect",
1228
+ listsAsArrays
1229
+ })
1230
+ );
1231
+ case "textarea":
1232
+ return /* @__PURE__ */ jsx6(
1233
+ Input.TextArea,
1234
+ {
1235
+ value,
1236
+ title,
1237
+ className,
1238
+ disabled,
1239
+ placeholder: placeHolderText,
1240
+ onChange: (e) => handleOnChange(e.target.value)
1241
+ }
1242
+ );
1243
+ case "switch":
1244
+ return /* @__PURE__ */ jsx6(
1245
+ Switch2,
1246
+ {
1247
+ checked: !!value,
1248
+ title,
1249
+ className,
1250
+ disabled,
1251
+ onChange: (v) => handleOnChange(v)
1252
+ }
1253
+ );
1254
+ case "checkbox":
1255
+ return /* @__PURE__ */ jsx6("span", { title, className, children: /* @__PURE__ */ jsx6(
1256
+ Checkbox,
1257
+ {
1258
+ type: "checkbox",
1259
+ disabled,
1260
+ onChange: (e) => handleOnChange(e.target.checked),
1261
+ checked: !!value
1262
+ }
1263
+ ) });
1264
+ case "radio":
1265
+ return /* @__PURE__ */ jsx6("span", { className, title, children: values.map((v) => /* @__PURE__ */ jsx6(
1266
+ Radio,
1267
+ {
1268
+ value: v.name,
1269
+ checked: value === v.name,
1270
+ disabled,
1271
+ onChange: (e) => handleOnChange(e.target.value),
1272
+ children: v.label
1273
+ },
1274
+ v.name
1275
+ )) });
1276
+ }
1277
+ switch (inputTypeCoerced) {
1278
+ case "date":
1279
+ case "datetime-local":
1280
+ return operator === "between" || operator === "notBetween" ? /* @__PURE__ */ jsx6(
1281
+ DatePicker.RangePicker,
1282
+ {
1283
+ value: ((_b2 = toArray(value)) == null ? void 0 : _b2.length) >= 2 ? toArray(value).map((v) => (0, import_dayjs.default)(v)) : void 0,
1284
+ showTime: inputTypeCoerced === "datetime-local",
1285
+ className,
1286
+ disabled,
1287
+ placeholder: [placeHolderText, placeHolderText],
1288
+ onChange: (
1289
+ /* istanbul ignore next */
1290
+ (dates) => {
1291
+ const format = `YYYY-MM-DD${inputTypeCoerced === "datetime-local" ? "THH:mm:ss" : ""}`;
1292
+ const dateArray = dates == null ? void 0 : dates.map((d) => d == null ? void 0 : d.format(format));
1293
+ handleOnChange(dateArray ? listsAsArrays ? dateArray : dateArray.join(",") : dates);
1294
+ }
1295
+ )
1296
+ }
1297
+ ) : /* @__PURE__ */ jsx6(
1298
+ DatePicker,
1299
+ {
1300
+ value: value ? (0, import_dayjs.default)(value) : null,
1301
+ showTime: inputTypeCoerced === "datetime-local",
1302
+ className,
1303
+ disabled,
1304
+ placeholder: placeHolderText,
1305
+ onChange: (_d, dateString) => handleOnChange(dateString)
1306
+ }
1307
+ );
1308
+ case "time":
1309
+ return /* @__PURE__ */ jsx6(
1310
+ TimePicker,
1311
+ {
1312
+ value: value ? (0, import_dayjs.default)(value, "HH:mm:ss") : null,
1313
+ className,
1314
+ disabled,
1315
+ placeholder: placeHolderText,
1316
+ onChange: (d) => {
1317
+ var _a3;
1318
+ return handleOnChange((_a3 = d == null ? void 0 : d.format("HH:mm:ss")) != null ? _a3 : "");
1319
+ }
1320
+ }
1321
+ );
1322
+ }
1323
+ return /* @__PURE__ */ jsx6(
1324
+ Input,
1325
+ {
1326
+ type: inputTypeCoerced,
1327
+ value,
1328
+ title,
1329
+ className,
1330
+ disabled,
1331
+ placeholder: placeHolderText,
1332
+ onChange: (e) => handleOnChange(e.target.value)
1333
+ }
1334
+ );
1335
+ };
1336
+ AntDValueEditor.displayName = "AntDValueEditor";
1337
+
1338
+ // src/index.ts
1339
+ var antdControlElements = {
1340
+ addGroupAction: AntDActionElement,
1341
+ addRuleAction: AntDActionElement,
1342
+ cloneGroupAction: AntDActionElement,
1343
+ cloneRuleAction: AntDActionElement,
1344
+ lockGroupAction: AntDActionElement,
1345
+ lockRuleAction: AntDActionElement,
1346
+ combinatorSelector: AntDValueSelector,
1347
+ fieldSelector: AntDValueSelector,
1348
+ notToggle: AntDNotToggle,
1349
+ operatorSelector: AntDValueSelector,
1350
+ removeGroupAction: AntDActionElement,
1351
+ removeRuleAction: AntDActionElement,
1352
+ valueEditor: AntDValueEditor,
1353
+ dragHandle: AntDDragHandle,
1354
+ valueSourceSelector: AntDValueSelector
1355
+ };
1356
+ var QueryBuilderAntD = getCompatContextProvider({
1357
+ key: "antd",
1358
+ controlElements: antdControlElements
1359
+ });
1360
+ export {
1361
+ AntDActionElement,
1362
+ AntDDragHandle,
1363
+ AntDNotToggle,
1364
+ AntDValueEditor,
1365
+ AntDValueSelector,
1366
+ QueryBuilderAntD,
1367
+ antdControlElements
1368
+ };
1369
+ //# sourceMappingURL=react-querybuilder_antd.legacy-esm.js.map