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

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.
@@ -4,7 +4,14 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __commonJS = (cb, mod) => function __require() {
7
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
+ }) : x)(function(x) {
10
+ if (typeof require !== "undefined")
11
+ return require.apply(this, arguments);
12
+ throw new Error('Dynamic require of "' + x + '" is not supported');
13
+ });
14
+ var __commonJS = (cb, mod) => function __require2() {
8
15
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
16
  };
10
17
  var __copyProps = (to, from, except, desc) => {
@@ -24,218 +31,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
31
  mod
25
32
  ));
26
33
 
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
34
  // ../../node_modules/@babel/runtime/helpers/interopRequireDefault.js
240
35
  var require_interopRequireDefault = __commonJS({
241
36
  "../../node_modules/@babel/runtime/helpers/interopRequireDefault.js"(exports, module) {
@@ -293,340 +88,6 @@ var require_warning = __commonJS({
293
88
  }
294
89
  });
295
90
 
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
91
  // ../../node_modules/rc-picker/lib/generate/dayjs.js
631
92
  var require_dayjs = __commonJS({
632
93
  "../../node_modules/rc-picker/lib/generate/dayjs.js"(exports) {
@@ -636,14 +97,14 @@ var require_dayjs = __commonJS({
636
97
  value: true
637
98
  });
638
99
  exports.default = void 0;
639
- var _dayjs = _interopRequireDefault(require_dayjs_min());
100
+ var _dayjs = _interopRequireDefault(__require("dayjs"));
640
101
  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());
102
+ var _weekday = _interopRequireDefault(__require("dayjs/plugin/weekday"));
103
+ var _localeData = _interopRequireDefault(__require("dayjs/plugin/localeData"));
104
+ var _weekOfYear = _interopRequireDefault(__require("dayjs/plugin/weekOfYear"));
105
+ var _weekYear = _interopRequireDefault(__require("dayjs/plugin/weekYear"));
106
+ var _advancedFormat = _interopRequireDefault(__require("dayjs/plugin/advancedFormat"));
107
+ var _customParseFormat = _interopRequireDefault(__require("dayjs/plugin/customParseFormat"));
647
108
  _dayjs.default.extend(_customParseFormat.default);
648
109
  _dayjs.default.extend(_advancedFormat.default);
649
110
  _dayjs.default.extend(_weekday.default);
@@ -947,10 +408,10 @@ var AntDNotToggle = ({
947
408
  AntDNotToggle.displayName = "AntDNotToggle";
948
409
 
949
410
  // src/AntDValueEditor.tsx
950
- var import_dayjs = __toESM(require_dayjs_min());
951
411
  var import_dayjs2 = __toESM(require_dayjs());
952
412
  import { Checkbox, Input, Radio, Switch as Switch2, TimePicker } from "antd";
953
413
  import generatePicker from "antd/es/date-picker/generatePicker/index.js";
414
+ import dayjs from "dayjs";
954
415
  import {
955
416
  getFirstOption,
956
417
  standardClassnames,
@@ -1059,7 +520,7 @@ var AntDValueEditor = ({
1059
520
  return /* @__PURE__ */ jsx6(
1060
521
  TimePicker,
1061
522
  {
1062
- value: valueAsArray[i] ? (0, import_dayjs.default)(valueAsArray[i], "HH:mm:ss") : null,
523
+ value: valueAsArray[i] ? dayjs(valueAsArray[i], "HH:mm:ss") : null,
1063
524
  className: standardClassnames.valueListItem,
1064
525
  disabled,
1065
526
  placeholder: placeHolderText,
@@ -1170,7 +631,7 @@ var AntDValueEditor = ({
1170
631
  return operator === "between" || operator === "notBetween" ? /* @__PURE__ */ jsx6(
1171
632
  DatePicker.RangePicker,
1172
633
  {
1173
- value: toArray(value)?.length >= 2 ? toArray(value).map((v) => (0, import_dayjs.default)(v)) : void 0,
634
+ value: toArray(value)?.length >= 2 ? toArray(value).map((v) => dayjs(v)) : void 0,
1174
635
  showTime: inputTypeCoerced === "datetime-local",
1175
636
  className,
1176
637
  disabled,
@@ -1187,7 +648,7 @@ var AntDValueEditor = ({
1187
648
  ) : /* @__PURE__ */ jsx6(
1188
649
  DatePicker,
1189
650
  {
1190
- value: value ? (0, import_dayjs.default)(value) : null,
651
+ value: value ? dayjs(value) : null,
1191
652
  showTime: inputTypeCoerced === "datetime-local",
1192
653
  className,
1193
654
  disabled,
@@ -1199,7 +660,7 @@ var AntDValueEditor = ({
1199
660
  return /* @__PURE__ */ jsx6(
1200
661
  TimePicker,
1201
662
  {
1202
- value: value ? (0, import_dayjs.default)(value, "HH:mm:ss") : null,
663
+ value: value ? dayjs(value, "HH:mm:ss") : null,
1203
664
  className,
1204
665
  disabled,
1205
666
  placeholder: placeHolderText,