@react-querybuilder/antd 7.0.0-alpha.1 → 7.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/react-querybuilder_antd.cjs.development.d.ts +22 -62
- package/dist/cjs/react-querybuilder_antd.cjs.development.js +311 -1043
- package/dist/cjs/react-querybuilder_antd.cjs.development.js.map +1 -1
- package/dist/cjs/react-querybuilder_antd.cjs.production.d.ts +22 -62
- package/dist/cjs/react-querybuilder_antd.cjs.production.js +1 -1
- package/dist/cjs/react-querybuilder_antd.cjs.production.js.map +1 -1
- package/dist/react-querybuilder_antd.d.mts +22 -62
- package/dist/react-querybuilder_antd.legacy-esm.d.mts +22 -62
- package/dist/react-querybuilder_antd.legacy-esm.js +306 -1039
- package/dist/react-querybuilder_antd.legacy-esm.js.map +1 -1
- package/dist/react-querybuilder_antd.mjs +296 -1028
- package/dist/react-querybuilder_antd.mjs.map +1 -1
- package/dist/react-querybuilder_antd.production.d.mts +22 -62
- package/dist/react-querybuilder_antd.production.mjs +1 -1
- package/dist/react-querybuilder_antd.production.mjs.map +1 -1
- package/package.json +13 -12
|
@@ -53,317 +53,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
53
53
|
mod
|
|
54
54
|
));
|
|
55
55
|
|
|
56
|
-
// ../../node_modules/
|
|
57
|
-
var require_dayjs_min = __commonJS({
|
|
58
|
-
"../../node_modules/dayjs/dayjs.min.js"(exports, module) {
|
|
59
|
-
"use strict";
|
|
60
|
-
!function(t, e) {
|
|
61
|
-
"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();
|
|
62
|
-
}(exports, function() {
|
|
63
|
-
"use strict";
|
|
64
|
-
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
|
|
65
|
-
var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
|
|
66
|
-
return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
|
|
67
|
-
} }, m = function(t2, e2, n2) {
|
|
68
|
-
var r2 = String(t2);
|
|
69
|
-
return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
|
|
70
|
-
}, v = { s: m, z: function(t2) {
|
|
71
|
-
var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
|
|
72
|
-
return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
|
|
73
|
-
}, m: function t2(e2, n2) {
|
|
74
|
-
if (e2.date() < n2.date())
|
|
75
|
-
return -t2(n2, e2);
|
|
76
|
-
var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
|
|
77
|
-
return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
|
|
78
|
-
}, a: function(t2) {
|
|
79
|
-
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
|
80
|
-
}, p: function(t2) {
|
|
81
|
-
return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
|
82
|
-
}, u: function(t2) {
|
|
83
|
-
return void 0 === t2;
|
|
84
|
-
} }, g = "en", D = {};
|
|
85
|
-
D[g] = M;
|
|
86
|
-
var p = "$isDayjsObject", S = function(t2) {
|
|
87
|
-
return t2 instanceof _ || !(!t2 || !t2[p]);
|
|
88
|
-
}, w = function t2(e2, n2, r2) {
|
|
89
|
-
var i2;
|
|
90
|
-
if (!e2)
|
|
91
|
-
return g;
|
|
92
|
-
if ("string" == typeof e2) {
|
|
93
|
-
var s2 = e2.toLowerCase();
|
|
94
|
-
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
|
95
|
-
var u2 = e2.split("-");
|
|
96
|
-
if (!i2 && u2.length > 1)
|
|
97
|
-
return t2(u2[0]);
|
|
98
|
-
} else {
|
|
99
|
-
var a2 = e2.name;
|
|
100
|
-
D[a2] = e2, i2 = a2;
|
|
101
|
-
}
|
|
102
|
-
return !r2 && i2 && (g = i2), i2 || !r2 && g;
|
|
103
|
-
}, O = function(t2, e2) {
|
|
104
|
-
if (S(t2))
|
|
105
|
-
return t2.clone();
|
|
106
|
-
var n2 = "object" == typeof e2 ? e2 : {};
|
|
107
|
-
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
108
|
-
}, b = v;
|
|
109
|
-
b.l = w, b.i = S, b.w = function(t2, e2) {
|
|
110
|
-
return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
111
|
-
};
|
|
112
|
-
var _ = function() {
|
|
113
|
-
function M2(t2) {
|
|
114
|
-
this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
|
|
115
|
-
}
|
|
116
|
-
var m2 = M2.prototype;
|
|
117
|
-
return m2.parse = function(t2) {
|
|
118
|
-
this.$d = function(t3) {
|
|
119
|
-
var e2 = t3.date, n2 = t3.utc;
|
|
120
|
-
if (null === e2)
|
|
121
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
122
|
-
if (b.u(e2))
|
|
123
|
-
return /* @__PURE__ */ new Date();
|
|
124
|
-
if (e2 instanceof Date)
|
|
125
|
-
return new Date(e2);
|
|
126
|
-
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
127
|
-
var r2 = e2.match($);
|
|
128
|
-
if (r2) {
|
|
129
|
-
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
|
|
130
|
-
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);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
return new Date(e2);
|
|
134
|
-
}(t2), this.init();
|
|
135
|
-
}, m2.init = function() {
|
|
136
|
-
var t2 = this.$d;
|
|
137
|
-
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();
|
|
138
|
-
}, m2.$utils = function() {
|
|
139
|
-
return b;
|
|
140
|
-
}, m2.isValid = function() {
|
|
141
|
-
return !(this.$d.toString() === l);
|
|
142
|
-
}, m2.isSame = function(t2, e2) {
|
|
143
|
-
var n2 = O(t2);
|
|
144
|
-
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
|
145
|
-
}, m2.isAfter = function(t2, e2) {
|
|
146
|
-
return O(t2) < this.startOf(e2);
|
|
147
|
-
}, m2.isBefore = function(t2, e2) {
|
|
148
|
-
return this.endOf(e2) < O(t2);
|
|
149
|
-
}, m2.$g = function(t2, e2, n2) {
|
|
150
|
-
return b.u(t2) ? this[e2] : this.set(n2, t2);
|
|
151
|
-
}, m2.unix = function() {
|
|
152
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
153
|
-
}, m2.valueOf = function() {
|
|
154
|
-
return this.$d.getTime();
|
|
155
|
-
}, m2.startOf = function(t2, e2) {
|
|
156
|
-
var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
|
|
157
|
-
var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
158
|
-
return r2 ? i2 : i2.endOf(a);
|
|
159
|
-
}, $2 = function(t3, e3) {
|
|
160
|
-
return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
161
|
-
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
162
|
-
switch (f2) {
|
|
163
|
-
case h:
|
|
164
|
-
return r2 ? l2(1, 0) : l2(31, 11);
|
|
165
|
-
case c:
|
|
166
|
-
return r2 ? l2(1, M3) : l2(0, M3 + 1);
|
|
167
|
-
case o:
|
|
168
|
-
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
169
|
-
return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
170
|
-
case a:
|
|
171
|
-
case d:
|
|
172
|
-
return $2(v2 + "Hours", 0);
|
|
173
|
-
case u:
|
|
174
|
-
return $2(v2 + "Minutes", 1);
|
|
175
|
-
case s:
|
|
176
|
-
return $2(v2 + "Seconds", 2);
|
|
177
|
-
case i:
|
|
178
|
-
return $2(v2 + "Milliseconds", 3);
|
|
179
|
-
default:
|
|
180
|
-
return this.clone();
|
|
181
|
-
}
|
|
182
|
-
}, m2.endOf = function(t2) {
|
|
183
|
-
return this.startOf(t2, false);
|
|
184
|
-
}, m2.$set = function(t2, e2) {
|
|
185
|
-
var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
|
|
186
|
-
if (o2 === c || o2 === h) {
|
|
187
|
-
var y2 = this.clone().set(d, 1);
|
|
188
|
-
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
189
|
-
} else
|
|
190
|
-
l2 && this.$d[l2]($2);
|
|
191
|
-
return this.init(), this;
|
|
192
|
-
}, m2.set = function(t2, e2) {
|
|
193
|
-
return this.clone().$set(t2, e2);
|
|
194
|
-
}, m2.get = function(t2) {
|
|
195
|
-
return this[b.p(t2)]();
|
|
196
|
-
}, m2.add = function(r2, f2) {
|
|
197
|
-
var d2, l2 = this;
|
|
198
|
-
r2 = Number(r2);
|
|
199
|
-
var $2 = b.p(f2), y2 = function(t2) {
|
|
200
|
-
var e2 = O(l2);
|
|
201
|
-
return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
|
|
202
|
-
};
|
|
203
|
-
if ($2 === c)
|
|
204
|
-
return this.set(c, this.$M + r2);
|
|
205
|
-
if ($2 === h)
|
|
206
|
-
return this.set(h, this.$y + r2);
|
|
207
|
-
if ($2 === a)
|
|
208
|
-
return y2(1);
|
|
209
|
-
if ($2 === o)
|
|
210
|
-
return y2(7);
|
|
211
|
-
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
|
|
212
|
-
return b.w(m3, this);
|
|
213
|
-
}, m2.subtract = function(t2, e2) {
|
|
214
|
-
return this.add(-1 * t2, e2);
|
|
215
|
-
}, m2.format = function(t2) {
|
|
216
|
-
var e2 = this, n2 = this.$locale();
|
|
217
|
-
if (!this.isValid())
|
|
218
|
-
return n2.invalidDate || l;
|
|
219
|
-
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
|
|
220
|
-
return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
|
|
221
|
-
}, d2 = function(t3) {
|
|
222
|
-
return b.s(s2 % 12 || 12, t3, "0");
|
|
223
|
-
}, $2 = f2 || function(t3, e3, n3) {
|
|
224
|
-
var r3 = t3 < 12 ? "AM" : "PM";
|
|
225
|
-
return n3 ? r3.toLowerCase() : r3;
|
|
226
|
-
};
|
|
227
|
-
return r2.replace(y, function(t3, r3) {
|
|
228
|
-
return r3 || function(t4) {
|
|
229
|
-
switch (t4) {
|
|
230
|
-
case "YY":
|
|
231
|
-
return String(e2.$y).slice(-2);
|
|
232
|
-
case "YYYY":
|
|
233
|
-
return b.s(e2.$y, 4, "0");
|
|
234
|
-
case "M":
|
|
235
|
-
return a2 + 1;
|
|
236
|
-
case "MM":
|
|
237
|
-
return b.s(a2 + 1, 2, "0");
|
|
238
|
-
case "MMM":
|
|
239
|
-
return h2(n2.monthsShort, a2, c2, 3);
|
|
240
|
-
case "MMMM":
|
|
241
|
-
return h2(c2, a2);
|
|
242
|
-
case "D":
|
|
243
|
-
return e2.$D;
|
|
244
|
-
case "DD":
|
|
245
|
-
return b.s(e2.$D, 2, "0");
|
|
246
|
-
case "d":
|
|
247
|
-
return String(e2.$W);
|
|
248
|
-
case "dd":
|
|
249
|
-
return h2(n2.weekdaysMin, e2.$W, o2, 2);
|
|
250
|
-
case "ddd":
|
|
251
|
-
return h2(n2.weekdaysShort, e2.$W, o2, 3);
|
|
252
|
-
case "dddd":
|
|
253
|
-
return o2[e2.$W];
|
|
254
|
-
case "H":
|
|
255
|
-
return String(s2);
|
|
256
|
-
case "HH":
|
|
257
|
-
return b.s(s2, 2, "0");
|
|
258
|
-
case "h":
|
|
259
|
-
return d2(1);
|
|
260
|
-
case "hh":
|
|
261
|
-
return d2(2);
|
|
262
|
-
case "a":
|
|
263
|
-
return $2(s2, u2, true);
|
|
264
|
-
case "A":
|
|
265
|
-
return $2(s2, u2, false);
|
|
266
|
-
case "m":
|
|
267
|
-
return String(u2);
|
|
268
|
-
case "mm":
|
|
269
|
-
return b.s(u2, 2, "0");
|
|
270
|
-
case "s":
|
|
271
|
-
return String(e2.$s);
|
|
272
|
-
case "ss":
|
|
273
|
-
return b.s(e2.$s, 2, "0");
|
|
274
|
-
case "SSS":
|
|
275
|
-
return b.s(e2.$ms, 3, "0");
|
|
276
|
-
case "Z":
|
|
277
|
-
return i2;
|
|
278
|
-
}
|
|
279
|
-
return null;
|
|
280
|
-
}(t3) || i2.replace(":", "");
|
|
281
|
-
});
|
|
282
|
-
}, m2.utcOffset = function() {
|
|
283
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
284
|
-
}, m2.diff = function(r2, d2, l2) {
|
|
285
|
-
var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
|
|
286
|
-
return b.m(y2, m3);
|
|
287
|
-
};
|
|
288
|
-
switch (M3) {
|
|
289
|
-
case h:
|
|
290
|
-
$2 = D2() / 12;
|
|
291
|
-
break;
|
|
292
|
-
case c:
|
|
293
|
-
$2 = D2();
|
|
294
|
-
break;
|
|
295
|
-
case f:
|
|
296
|
-
$2 = D2() / 3;
|
|
297
|
-
break;
|
|
298
|
-
case o:
|
|
299
|
-
$2 = (g2 - v2) / 6048e5;
|
|
300
|
-
break;
|
|
301
|
-
case a:
|
|
302
|
-
$2 = (g2 - v2) / 864e5;
|
|
303
|
-
break;
|
|
304
|
-
case u:
|
|
305
|
-
$2 = g2 / n;
|
|
306
|
-
break;
|
|
307
|
-
case s:
|
|
308
|
-
$2 = g2 / e;
|
|
309
|
-
break;
|
|
310
|
-
case i:
|
|
311
|
-
$2 = g2 / t;
|
|
312
|
-
break;
|
|
313
|
-
default:
|
|
314
|
-
$2 = g2;
|
|
315
|
-
}
|
|
316
|
-
return l2 ? $2 : b.a($2);
|
|
317
|
-
}, m2.daysInMonth = function() {
|
|
318
|
-
return this.endOf(c).$D;
|
|
319
|
-
}, m2.$locale = function() {
|
|
320
|
-
return D[this.$L];
|
|
321
|
-
}, m2.locale = function(t2, e2) {
|
|
322
|
-
if (!t2)
|
|
323
|
-
return this.$L;
|
|
324
|
-
var n2 = this.clone(), r2 = w(t2, e2, true);
|
|
325
|
-
return r2 && (n2.$L = r2), n2;
|
|
326
|
-
}, m2.clone = function() {
|
|
327
|
-
return b.w(this.$d, this);
|
|
328
|
-
}, m2.toDate = function() {
|
|
329
|
-
return new Date(this.valueOf());
|
|
330
|
-
}, m2.toJSON = function() {
|
|
331
|
-
return this.isValid() ? this.toISOString() : null;
|
|
332
|
-
}, m2.toISOString = function() {
|
|
333
|
-
return this.$d.toISOString();
|
|
334
|
-
}, m2.toString = function() {
|
|
335
|
-
return this.$d.toUTCString();
|
|
336
|
-
}, M2;
|
|
337
|
-
}(), k = _.prototype;
|
|
338
|
-
return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
|
|
339
|
-
k[t2[1]] = function(e2) {
|
|
340
|
-
return this.$g(e2, t2[0], t2[1]);
|
|
341
|
-
};
|
|
342
|
-
}), O.extend = function(t2, e2) {
|
|
343
|
-
return t2.$i || (t2(e2, _, O), t2.$i = true), O;
|
|
344
|
-
}, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
|
|
345
|
-
return O(1e3 * t2);
|
|
346
|
-
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
});
|
|
350
|
-
|
|
351
|
-
// ../../node_modules/@babel/runtime/helpers/interopRequireDefault.js
|
|
352
|
-
var require_interopRequireDefault = __commonJS({
|
|
353
|
-
"../../node_modules/@babel/runtime/helpers/interopRequireDefault.js"(exports, module) {
|
|
354
|
-
"use strict";
|
|
355
|
-
function _interopRequireDefault(obj) {
|
|
356
|
-
return obj && obj.__esModule ? obj : {
|
|
357
|
-
"default": obj
|
|
358
|
-
};
|
|
359
|
-
}
|
|
360
|
-
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
361
|
-
}
|
|
362
|
-
});
|
|
363
|
-
|
|
364
|
-
// ../../node_modules/rc-picker/node_modules/rc-util/lib/warning.js
|
|
56
|
+
// ../../node_modules/rc-util/lib/warning.js
|
|
365
57
|
var require_warning = __commonJS({
|
|
366
|
-
"../../node_modules/rc-
|
|
58
|
+
"../../node_modules/rc-util/lib/warning.js"(exports) {
|
|
367
59
|
"use strict";
|
|
368
60
|
Object.defineProperty(exports, "__esModule", {
|
|
369
61
|
value: true
|
|
@@ -371,17 +63,16 @@ var require_warning = __commonJS({
|
|
|
371
63
|
exports.call = call;
|
|
372
64
|
exports.default = void 0;
|
|
373
65
|
exports.note = note;
|
|
374
|
-
exports.noteOnce =
|
|
66
|
+
exports.noteOnce = noteOnce2;
|
|
375
67
|
exports.preMessage = void 0;
|
|
376
68
|
exports.resetWarned = resetWarned;
|
|
377
69
|
exports.warning = warning;
|
|
378
70
|
exports.warningOnce = warningOnce;
|
|
379
71
|
var warned = {};
|
|
380
72
|
var preWarningFns = [];
|
|
381
|
-
var preMessage = function preMessage2(fn) {
|
|
73
|
+
var preMessage = exports.preMessage = function preMessage2(fn) {
|
|
382
74
|
preWarningFns.push(fn);
|
|
383
75
|
};
|
|
384
|
-
exports.preMessage = preMessage;
|
|
385
76
|
function warning(valid, message) {
|
|
386
77
|
if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
|
|
387
78
|
var finalMessage = preWarningFns.reduce(function(msg, preMessageFn) {
|
|
@@ -414,581 +105,13 @@ var require_warning = __commonJS({
|
|
|
414
105
|
function warningOnce(valid, message) {
|
|
415
106
|
call(warning, valid, message);
|
|
416
107
|
}
|
|
417
|
-
function
|
|
108
|
+
function noteOnce2(valid, message) {
|
|
418
109
|
call(note, valid, message);
|
|
419
110
|
}
|
|
420
111
|
warningOnce.preMessage = preMessage;
|
|
421
112
|
warningOnce.resetWarned = resetWarned;
|
|
422
|
-
warningOnce.noteOnce =
|
|
423
|
-
var _default = warningOnce;
|
|
424
|
-
exports.default = _default;
|
|
425
|
-
}
|
|
426
|
-
});
|
|
427
|
-
|
|
428
|
-
// ../../node_modules/dayjs/plugin/weekday.js
|
|
429
|
-
var require_weekday = __commonJS({
|
|
430
|
-
"../../node_modules/dayjs/plugin/weekday.js"(exports, module) {
|
|
431
|
-
"use strict";
|
|
432
|
-
!function(e, t) {
|
|
433
|
-
"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();
|
|
434
|
-
}(exports, function() {
|
|
435
|
-
"use strict";
|
|
436
|
-
return function(e, t) {
|
|
437
|
-
t.prototype.weekday = function(e2) {
|
|
438
|
-
var t2 = this.$locale().weekStart || 0, i = this.$W, n = (i < t2 ? i + 7 : i) - t2;
|
|
439
|
-
return this.$utils().u(e2) ? n : this.subtract(n, "day").add(e2, "day");
|
|
440
|
-
};
|
|
441
|
-
};
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
});
|
|
445
|
-
|
|
446
|
-
// ../../node_modules/dayjs/plugin/localeData.js
|
|
447
|
-
var require_localeData = __commonJS({
|
|
448
|
-
"../../node_modules/dayjs/plugin/localeData.js"(exports, module) {
|
|
449
|
-
"use strict";
|
|
450
|
-
!function(n, e) {
|
|
451
|
-
"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();
|
|
452
|
-
}(exports, function() {
|
|
453
|
-
"use strict";
|
|
454
|
-
return function(n, e, t) {
|
|
455
|
-
var r = e.prototype, o = function(n2) {
|
|
456
|
-
return n2 && (n2.indexOf ? n2 : n2.s);
|
|
457
|
-
}, u = function(n2, e2, t2, r2, u2) {
|
|
458
|
-
var i2 = n2.name ? n2 : n2.$locale(), a2 = o(i2[e2]), s2 = o(i2[t2]), f = a2 || s2.map(function(n3) {
|
|
459
|
-
return n3.slice(0, r2);
|
|
460
|
-
});
|
|
461
|
-
if (!u2)
|
|
462
|
-
return f;
|
|
463
|
-
var d = i2.weekStart;
|
|
464
|
-
return f.map(function(n3, e3) {
|
|
465
|
-
return f[(e3 + (d || 0)) % 7];
|
|
466
|
-
});
|
|
467
|
-
}, i = function() {
|
|
468
|
-
return t.Ls[t.locale()];
|
|
469
|
-
}, a = function(n2, e2) {
|
|
470
|
-
return n2.formats[e2] || function(n3) {
|
|
471
|
-
return n3.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(n4, e3, t2) {
|
|
472
|
-
return e3 || t2.slice(1);
|
|
473
|
-
});
|
|
474
|
-
}(n2.formats[e2.toUpperCase()]);
|
|
475
|
-
}, s = function() {
|
|
476
|
-
var n2 = this;
|
|
477
|
-
return { months: function(e2) {
|
|
478
|
-
return e2 ? e2.format("MMMM") : u(n2, "months");
|
|
479
|
-
}, monthsShort: function(e2) {
|
|
480
|
-
return e2 ? e2.format("MMM") : u(n2, "monthsShort", "months", 3);
|
|
481
|
-
}, firstDayOfWeek: function() {
|
|
482
|
-
return n2.$locale().weekStart || 0;
|
|
483
|
-
}, weekdays: function(e2) {
|
|
484
|
-
return e2 ? e2.format("dddd") : u(n2, "weekdays");
|
|
485
|
-
}, weekdaysMin: function(e2) {
|
|
486
|
-
return e2 ? e2.format("dd") : u(n2, "weekdaysMin", "weekdays", 2);
|
|
487
|
-
}, weekdaysShort: function(e2) {
|
|
488
|
-
return e2 ? e2.format("ddd") : u(n2, "weekdaysShort", "weekdays", 3);
|
|
489
|
-
}, longDateFormat: function(e2) {
|
|
490
|
-
return a(n2.$locale(), e2);
|
|
491
|
-
}, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
|
|
492
|
-
};
|
|
493
|
-
r.localeData = function() {
|
|
494
|
-
return s.bind(this)();
|
|
495
|
-
}, t.localeData = function() {
|
|
496
|
-
var n2 = i();
|
|
497
|
-
return { firstDayOfWeek: function() {
|
|
498
|
-
return n2.weekStart || 0;
|
|
499
|
-
}, weekdays: function() {
|
|
500
|
-
return t.weekdays();
|
|
501
|
-
}, weekdaysShort: function() {
|
|
502
|
-
return t.weekdaysShort();
|
|
503
|
-
}, weekdaysMin: function() {
|
|
504
|
-
return t.weekdaysMin();
|
|
505
|
-
}, months: function() {
|
|
506
|
-
return t.months();
|
|
507
|
-
}, monthsShort: function() {
|
|
508
|
-
return t.monthsShort();
|
|
509
|
-
}, longDateFormat: function(e2) {
|
|
510
|
-
return a(n2, e2);
|
|
511
|
-
}, meridiem: n2.meridiem, ordinal: n2.ordinal };
|
|
512
|
-
}, t.months = function() {
|
|
513
|
-
return u(i(), "months");
|
|
514
|
-
}, t.monthsShort = function() {
|
|
515
|
-
return u(i(), "monthsShort", "months", 3);
|
|
516
|
-
}, t.weekdays = function(n2) {
|
|
517
|
-
return u(i(), "weekdays", null, null, n2);
|
|
518
|
-
}, t.weekdaysShort = function(n2) {
|
|
519
|
-
return u(i(), "weekdaysShort", "weekdays", 3, n2);
|
|
520
|
-
}, t.weekdaysMin = function(n2) {
|
|
521
|
-
return u(i(), "weekdaysMin", "weekdays", 2, n2);
|
|
522
|
-
};
|
|
523
|
-
};
|
|
524
|
-
});
|
|
525
|
-
}
|
|
526
|
-
});
|
|
527
|
-
|
|
528
|
-
// ../../node_modules/dayjs/plugin/weekOfYear.js
|
|
529
|
-
var require_weekOfYear = __commonJS({
|
|
530
|
-
"../../node_modules/dayjs/plugin/weekOfYear.js"(exports, module) {
|
|
531
|
-
"use strict";
|
|
532
|
-
!function(e, t) {
|
|
533
|
-
"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();
|
|
534
|
-
}(exports, function() {
|
|
535
|
-
"use strict";
|
|
536
|
-
var e = "week", t = "year";
|
|
537
|
-
return function(i, n, r) {
|
|
538
|
-
var f = n.prototype;
|
|
539
|
-
f.week = function(i2) {
|
|
540
|
-
if (void 0 === i2 && (i2 = null), null !== i2)
|
|
541
|
-
return this.add(7 * (i2 - this.week()), "day");
|
|
542
|
-
var n2 = this.$locale().yearStart || 1;
|
|
543
|
-
if (11 === this.month() && this.date() > 25) {
|
|
544
|
-
var f2 = r(this).startOf(t).add(1, t).date(n2), s = r(this).endOf(e);
|
|
545
|
-
if (f2.isBefore(s))
|
|
546
|
-
return 1;
|
|
547
|
-
}
|
|
548
|
-
var a = r(this).startOf(t).date(n2).startOf(e).subtract(1, "millisecond"), o = this.diff(a, e, true);
|
|
549
|
-
return o < 0 ? r(this).startOf("week").week() : Math.ceil(o);
|
|
550
|
-
}, f.weeks = function(e2) {
|
|
551
|
-
return void 0 === e2 && (e2 = null), this.week(e2);
|
|
552
|
-
};
|
|
553
|
-
};
|
|
554
|
-
});
|
|
555
|
-
}
|
|
556
|
-
});
|
|
557
|
-
|
|
558
|
-
// ../../node_modules/dayjs/plugin/weekYear.js
|
|
559
|
-
var require_weekYear = __commonJS({
|
|
560
|
-
"../../node_modules/dayjs/plugin/weekYear.js"(exports, module) {
|
|
561
|
-
"use strict";
|
|
562
|
-
!function(e, t) {
|
|
563
|
-
"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();
|
|
564
|
-
}(exports, function() {
|
|
565
|
-
"use strict";
|
|
566
|
-
return function(e, t) {
|
|
567
|
-
t.prototype.weekYear = function() {
|
|
568
|
-
var e2 = this.month(), t2 = this.week(), n = this.year();
|
|
569
|
-
return 1 === t2 && 11 === e2 ? n + 1 : 0 === e2 && t2 >= 52 ? n - 1 : n;
|
|
570
|
-
};
|
|
571
|
-
};
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
});
|
|
575
|
-
|
|
576
|
-
// ../../node_modules/dayjs/plugin/advancedFormat.js
|
|
577
|
-
var require_advancedFormat = __commonJS({
|
|
578
|
-
"../../node_modules/dayjs/plugin/advancedFormat.js"(exports, module) {
|
|
579
|
-
"use strict";
|
|
580
|
-
!function(e, t) {
|
|
581
|
-
"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();
|
|
582
|
-
}(exports, function() {
|
|
583
|
-
"use strict";
|
|
584
|
-
return function(e, t) {
|
|
585
|
-
var r = t.prototype, n = r.format;
|
|
586
|
-
r.format = function(e2) {
|
|
587
|
-
var t2 = this, r2 = this.$locale();
|
|
588
|
-
if (!this.isValid())
|
|
589
|
-
return n.bind(this)(e2);
|
|
590
|
-
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) {
|
|
591
|
-
switch (e3) {
|
|
592
|
-
case "Q":
|
|
593
|
-
return Math.ceil((t2.$M + 1) / 3);
|
|
594
|
-
case "Do":
|
|
595
|
-
return r2.ordinal(t2.$D);
|
|
596
|
-
case "gggg":
|
|
597
|
-
return t2.weekYear();
|
|
598
|
-
case "GGGG":
|
|
599
|
-
return t2.isoWeekYear();
|
|
600
|
-
case "wo":
|
|
601
|
-
return r2.ordinal(t2.week(), "W");
|
|
602
|
-
case "w":
|
|
603
|
-
case "ww":
|
|
604
|
-
return s.s(t2.week(), "w" === e3 ? 1 : 2, "0");
|
|
605
|
-
case "W":
|
|
606
|
-
case "WW":
|
|
607
|
-
return s.s(t2.isoWeek(), "W" === e3 ? 1 : 2, "0");
|
|
608
|
-
case "k":
|
|
609
|
-
case "kk":
|
|
610
|
-
return s.s(String(0 === t2.$H ? 24 : t2.$H), "k" === e3 ? 1 : 2, "0");
|
|
611
|
-
case "X":
|
|
612
|
-
return Math.floor(t2.$d.getTime() / 1e3);
|
|
613
|
-
case "x":
|
|
614
|
-
return t2.$d.getTime();
|
|
615
|
-
case "z":
|
|
616
|
-
return "[" + t2.offsetName() + "]";
|
|
617
|
-
case "zzz":
|
|
618
|
-
return "[" + t2.offsetName("long") + "]";
|
|
619
|
-
default:
|
|
620
|
-
return e3;
|
|
621
|
-
}
|
|
622
|
-
});
|
|
623
|
-
return n.bind(this)(a);
|
|
624
|
-
};
|
|
625
|
-
};
|
|
626
|
-
});
|
|
627
|
-
}
|
|
628
|
-
});
|
|
629
|
-
|
|
630
|
-
// ../../node_modules/dayjs/plugin/customParseFormat.js
|
|
631
|
-
var require_customParseFormat = __commonJS({
|
|
632
|
-
"../../node_modules/dayjs/plugin/customParseFormat.js"(exports, module) {
|
|
633
|
-
"use strict";
|
|
634
|
-
!function(e, t) {
|
|
635
|
-
"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();
|
|
636
|
-
}(exports, function() {
|
|
637
|
-
"use strict";
|
|
638
|
-
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) {
|
|
639
|
-
return (e2 = +e2) + (e2 > 68 ? 1900 : 2e3);
|
|
640
|
-
};
|
|
641
|
-
var a = function(e2) {
|
|
642
|
-
return function(t2) {
|
|
643
|
-
this[e2] = +t2;
|
|
644
|
-
};
|
|
645
|
-
}, f = [/[+-]\d\d:?(\d\d)?|Z/, function(e2) {
|
|
646
|
-
(this.zone || (this.zone = {})).offset = function(e3) {
|
|
647
|
-
if (!e3)
|
|
648
|
-
return 0;
|
|
649
|
-
if ("Z" === e3)
|
|
650
|
-
return 0;
|
|
651
|
-
var t2 = e3.match(/([+-]|\d\d)/g), n2 = 60 * t2[1] + (+t2[2] || 0);
|
|
652
|
-
return 0 === n2 ? 0 : "+" === t2[0] ? -n2 : n2;
|
|
653
|
-
}(e2);
|
|
654
|
-
}], h = function(e2) {
|
|
655
|
-
var t2 = o[e2];
|
|
656
|
-
return t2 && (t2.indexOf ? t2 : t2.s.concat(t2.f));
|
|
657
|
-
}, u = function(e2, t2) {
|
|
658
|
-
var n2, r2 = o.meridiem;
|
|
659
|
-
if (r2) {
|
|
660
|
-
for (var i2 = 1; i2 <= 24; i2 += 1)
|
|
661
|
-
if (e2.indexOf(r2(i2, 0, t2)) > -1) {
|
|
662
|
-
n2 = i2 > 12;
|
|
663
|
-
break;
|
|
664
|
-
}
|
|
665
|
-
} else
|
|
666
|
-
n2 = e2 === (t2 ? "pm" : "PM");
|
|
667
|
-
return n2;
|
|
668
|
-
}, d = { A: [i, function(e2) {
|
|
669
|
-
this.afternoon = u(e2, false);
|
|
670
|
-
}], a: [i, function(e2) {
|
|
671
|
-
this.afternoon = u(e2, true);
|
|
672
|
-
}], S: [/\d/, function(e2) {
|
|
673
|
-
this.milliseconds = 100 * +e2;
|
|
674
|
-
}], SS: [n, function(e2) {
|
|
675
|
-
this.milliseconds = 10 * +e2;
|
|
676
|
-
}], SSS: [/\d{3}/, function(e2) {
|
|
677
|
-
this.milliseconds = +e2;
|
|
678
|
-
}], 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) {
|
|
679
|
-
var t2 = o.ordinal, n2 = e2.match(/\d+/);
|
|
680
|
-
if (this.day = n2[0], t2)
|
|
681
|
-
for (var r2 = 1; r2 <= 31; r2 += 1)
|
|
682
|
-
t2(r2).replace(/\[|\]/g, "") === e2 && (this.day = r2);
|
|
683
|
-
}], M: [r, a("month")], MM: [n, a("month")], MMM: [i, function(e2) {
|
|
684
|
-
var t2 = h("months"), n2 = (h("monthsShort") || t2.map(function(e3) {
|
|
685
|
-
return e3.slice(0, 3);
|
|
686
|
-
})).indexOf(e2) + 1;
|
|
687
|
-
if (n2 < 1)
|
|
688
|
-
throw new Error();
|
|
689
|
-
this.month = n2 % 12 || n2;
|
|
690
|
-
}], MMMM: [i, function(e2) {
|
|
691
|
-
var t2 = h("months").indexOf(e2) + 1;
|
|
692
|
-
if (t2 < 1)
|
|
693
|
-
throw new Error();
|
|
694
|
-
this.month = t2 % 12 || t2;
|
|
695
|
-
}], Y: [/[+-]?\d+/, a("year")], YY: [n, function(e2) {
|
|
696
|
-
this.year = s(e2);
|
|
697
|
-
}], YYYY: [/\d{4}/, a("year")], Z: f, ZZ: f };
|
|
698
|
-
function c(n2) {
|
|
699
|
-
var r2, i2;
|
|
700
|
-
r2 = n2, i2 = o && o.formats;
|
|
701
|
-
for (var s2 = (n2 = r2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t2, n3, r3) {
|
|
702
|
-
var o2 = r3 && r3.toUpperCase();
|
|
703
|
-
return n3 || i2[r3] || e[r3] || i2[o2].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e2, t3, n4) {
|
|
704
|
-
return t3 || n4.slice(1);
|
|
705
|
-
});
|
|
706
|
-
})).match(t), a2 = s2.length, f2 = 0; f2 < a2; f2 += 1) {
|
|
707
|
-
var h2 = s2[f2], u2 = d[h2], c2 = u2 && u2[0], l = u2 && u2[1];
|
|
708
|
-
s2[f2] = l ? { regex: c2, parser: l } : h2.replace(/^\[|\]$/g, "");
|
|
709
|
-
}
|
|
710
|
-
return function(e2) {
|
|
711
|
-
for (var t2 = {}, n3 = 0, r3 = 0; n3 < a2; n3 += 1) {
|
|
712
|
-
var i3 = s2[n3];
|
|
713
|
-
if ("string" == typeof i3)
|
|
714
|
-
r3 += i3.length;
|
|
715
|
-
else {
|
|
716
|
-
var o2 = i3.regex, f3 = i3.parser, h3 = e2.slice(r3), u3 = o2.exec(h3)[0];
|
|
717
|
-
f3.call(t2, u3), e2 = e2.replace(u3, "");
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
return function(e3) {
|
|
721
|
-
var t3 = e3.afternoon;
|
|
722
|
-
if (void 0 !== t3) {
|
|
723
|
-
var n4 = e3.hours;
|
|
724
|
-
t3 ? n4 < 12 && (e3.hours += 12) : 12 === n4 && (e3.hours = 0), delete e3.afternoon;
|
|
725
|
-
}
|
|
726
|
-
}(t2), t2;
|
|
727
|
-
};
|
|
728
|
-
}
|
|
729
|
-
return function(e2, t2, n2) {
|
|
730
|
-
n2.p.customParseFormat = true, e2 && e2.parseTwoDigitYear && (s = e2.parseTwoDigitYear);
|
|
731
|
-
var r2 = t2.prototype, i2 = r2.parse;
|
|
732
|
-
r2.parse = function(e3) {
|
|
733
|
-
var t3 = e3.date, r3 = e3.utc, s2 = e3.args;
|
|
734
|
-
this.$u = r3;
|
|
735
|
-
var a2 = s2[1];
|
|
736
|
-
if ("string" == typeof a2) {
|
|
737
|
-
var f2 = true === s2[2], h2 = true === s2[3], u2 = f2 || h2, d2 = s2[2];
|
|
738
|
-
h2 && (d2 = s2[2]), o = this.$locale(), !f2 && d2 && (o = n2.Ls[d2]), this.$d = function(e4, t4, n3) {
|
|
739
|
-
try {
|
|
740
|
-
if (["x", "X"].indexOf(t4) > -1)
|
|
741
|
-
return new Date(("X" === t4 ? 1e3 : 1) * e4);
|
|
742
|
-
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;
|
|
743
|
-
i3 && !o2 || (Y = o2 > 0 ? o2 - 1 : l2.getMonth());
|
|
744
|
-
var p = a3 || 0, v = f3 || 0, D = h3 || 0, g = u3 || 0;
|
|
745
|
-
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);
|
|
746
|
-
} catch (e5) {
|
|
747
|
-
return /* @__PURE__ */ new Date("");
|
|
748
|
-
}
|
|
749
|
-
}(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 = {};
|
|
750
|
-
} else if (a2 instanceof Array)
|
|
751
|
-
for (var l = a2.length, m = 1; m <= l; m += 1) {
|
|
752
|
-
s2[1] = a2[m - 1];
|
|
753
|
-
var M = n2.apply(this, s2);
|
|
754
|
-
if (M.isValid()) {
|
|
755
|
-
this.$d = M.$d, this.$L = M.$L, this.init();
|
|
756
|
-
break;
|
|
757
|
-
}
|
|
758
|
-
m === l && (this.$d = /* @__PURE__ */ new Date(""));
|
|
759
|
-
}
|
|
760
|
-
else
|
|
761
|
-
i2.call(this, e3);
|
|
762
|
-
};
|
|
763
|
-
};
|
|
764
|
-
});
|
|
765
|
-
}
|
|
766
|
-
});
|
|
767
|
-
|
|
768
|
-
// ../../node_modules/rc-picker/lib/generate/dayjs.js
|
|
769
|
-
var require_dayjs = __commonJS({
|
|
770
|
-
"../../node_modules/rc-picker/lib/generate/dayjs.js"(exports) {
|
|
771
|
-
"use strict";
|
|
772
|
-
var _interopRequireDefault = require_interopRequireDefault();
|
|
773
|
-
Object.defineProperty(exports, "__esModule", {
|
|
774
|
-
value: true
|
|
775
|
-
});
|
|
776
|
-
exports.default = void 0;
|
|
777
|
-
var _dayjs = _interopRequireDefault(require_dayjs_min());
|
|
778
|
-
var _warning = require_warning();
|
|
779
|
-
var _weekday = _interopRequireDefault(require_weekday());
|
|
780
|
-
var _localeData = _interopRequireDefault(require_localeData());
|
|
781
|
-
var _weekOfYear = _interopRequireDefault(require_weekOfYear());
|
|
782
|
-
var _weekYear = _interopRequireDefault(require_weekYear());
|
|
783
|
-
var _advancedFormat = _interopRequireDefault(require_advancedFormat());
|
|
784
|
-
var _customParseFormat = _interopRequireDefault(require_customParseFormat());
|
|
785
|
-
_dayjs.default.extend(_customParseFormat.default);
|
|
786
|
-
_dayjs.default.extend(_advancedFormat.default);
|
|
787
|
-
_dayjs.default.extend(_weekday.default);
|
|
788
|
-
_dayjs.default.extend(_localeData.default);
|
|
789
|
-
_dayjs.default.extend(_weekOfYear.default);
|
|
790
|
-
_dayjs.default.extend(_weekYear.default);
|
|
791
|
-
_dayjs.default.extend(function(o, c) {
|
|
792
|
-
var proto = c.prototype;
|
|
793
|
-
var oldFormat = proto.format;
|
|
794
|
-
proto.format = function f(formatStr) {
|
|
795
|
-
var str = (formatStr || "").replace("Wo", "wo");
|
|
796
|
-
return oldFormat.bind(this)(str);
|
|
797
|
-
};
|
|
798
|
-
});
|
|
799
|
-
var localeMap = {
|
|
800
|
-
// ar_EG:
|
|
801
|
-
// az_AZ:
|
|
802
|
-
// bg_BG:
|
|
803
|
-
bn_BD: "bn-bd",
|
|
804
|
-
by_BY: "be",
|
|
805
|
-
// ca_ES:
|
|
806
|
-
// cs_CZ:
|
|
807
|
-
// da_DK:
|
|
808
|
-
// de_DE:
|
|
809
|
-
// el_GR:
|
|
810
|
-
en_GB: "en-gb",
|
|
811
|
-
en_US: "en",
|
|
812
|
-
// es_ES:
|
|
813
|
-
// et_EE:
|
|
814
|
-
// fa_IR:
|
|
815
|
-
// fi_FI:
|
|
816
|
-
fr_BE: "fr",
|
|
817
|
-
// todo: dayjs has no fr_BE locale, use fr at present
|
|
818
|
-
fr_CA: "fr-ca",
|
|
819
|
-
// fr_FR:
|
|
820
|
-
// ga_IE:
|
|
821
|
-
// gl_ES:
|
|
822
|
-
// he_IL:
|
|
823
|
-
// hi_IN:
|
|
824
|
-
// hr_HR:
|
|
825
|
-
// hu_HU:
|
|
826
|
-
hy_AM: "hy-am",
|
|
827
|
-
// id_ID:
|
|
828
|
-
// is_IS:
|
|
829
|
-
// it_IT:
|
|
830
|
-
// ja_JP:
|
|
831
|
-
// ka_GE:
|
|
832
|
-
// kk_KZ:
|
|
833
|
-
// km_KH:
|
|
834
|
-
kmr_IQ: "ku",
|
|
835
|
-
// kn_IN:
|
|
836
|
-
// ko_KR:
|
|
837
|
-
// ku_IQ: // previous ku in antd
|
|
838
|
-
// lt_LT:
|
|
839
|
-
// lv_LV:
|
|
840
|
-
// mk_MK:
|
|
841
|
-
// ml_IN:
|
|
842
|
-
// mn_MN:
|
|
843
|
-
// ms_MY:
|
|
844
|
-
// nb_NO:
|
|
845
|
-
// ne_NP:
|
|
846
|
-
nl_BE: "nl-be",
|
|
847
|
-
// nl_NL:
|
|
848
|
-
// pl_PL:
|
|
849
|
-
pt_BR: "pt-br",
|
|
850
|
-
// pt_PT:
|
|
851
|
-
// ro_RO:
|
|
852
|
-
// ru_RU:
|
|
853
|
-
// sk_SK:
|
|
854
|
-
// sl_SI:
|
|
855
|
-
// sr_RS:
|
|
856
|
-
// sv_SE:
|
|
857
|
-
// ta_IN:
|
|
858
|
-
// th_TH:
|
|
859
|
-
// tr_TR:
|
|
860
|
-
// uk_UA:
|
|
861
|
-
// ur_PK:
|
|
862
|
-
// vi_VN:
|
|
863
|
-
zh_CN: "zh-cn",
|
|
864
|
-
zh_HK: "zh-hk",
|
|
865
|
-
zh_TW: "zh-tw"
|
|
866
|
-
};
|
|
867
|
-
var parseLocale = function parseLocale2(locale) {
|
|
868
|
-
var mapLocale = localeMap[locale];
|
|
869
|
-
return mapLocale || locale.split("_")[0];
|
|
870
|
-
};
|
|
871
|
-
var parseNoMatchNotice = function parseNoMatchNotice2() {
|
|
872
|
-
(0, _warning.noteOnce)(false, "Not match any format. Please help to fire a issue about this.");
|
|
873
|
-
};
|
|
874
|
-
var generateConfig = {
|
|
875
|
-
// get
|
|
876
|
-
getNow: function getNow() {
|
|
877
|
-
return (0, _dayjs.default)();
|
|
878
|
-
},
|
|
879
|
-
getFixedDate: function getFixedDate(string) {
|
|
880
|
-
return (0, _dayjs.default)(string, ["YYYY-M-DD", "YYYY-MM-DD"]);
|
|
881
|
-
},
|
|
882
|
-
getEndDate: function getEndDate(date) {
|
|
883
|
-
return date.endOf("month");
|
|
884
|
-
},
|
|
885
|
-
getWeekDay: function getWeekDay(date) {
|
|
886
|
-
var clone = date.locale("en");
|
|
887
|
-
return clone.weekday() + clone.localeData().firstDayOfWeek();
|
|
888
|
-
},
|
|
889
|
-
getYear: function getYear(date) {
|
|
890
|
-
return date.year();
|
|
891
|
-
},
|
|
892
|
-
getMonth: function getMonth(date) {
|
|
893
|
-
return date.month();
|
|
894
|
-
},
|
|
895
|
-
getDate: function getDate(date) {
|
|
896
|
-
return date.date();
|
|
897
|
-
},
|
|
898
|
-
getHour: function getHour(date) {
|
|
899
|
-
return date.hour();
|
|
900
|
-
},
|
|
901
|
-
getMinute: function getMinute(date) {
|
|
902
|
-
return date.minute();
|
|
903
|
-
},
|
|
904
|
-
getSecond: function getSecond(date) {
|
|
905
|
-
return date.second();
|
|
906
|
-
},
|
|
907
|
-
// set
|
|
908
|
-
addYear: function addYear(date, diff) {
|
|
909
|
-
return date.add(diff, "year");
|
|
910
|
-
},
|
|
911
|
-
addMonth: function addMonth(date, diff) {
|
|
912
|
-
return date.add(diff, "month");
|
|
913
|
-
},
|
|
914
|
-
addDate: function addDate(date, diff) {
|
|
915
|
-
return date.add(diff, "day");
|
|
916
|
-
},
|
|
917
|
-
setYear: function setYear(date, year) {
|
|
918
|
-
return date.year(year);
|
|
919
|
-
},
|
|
920
|
-
setMonth: function setMonth(date, month) {
|
|
921
|
-
return date.month(month);
|
|
922
|
-
},
|
|
923
|
-
setDate: function setDate(date, num) {
|
|
924
|
-
return date.date(num);
|
|
925
|
-
},
|
|
926
|
-
setHour: function setHour(date, hour) {
|
|
927
|
-
return date.hour(hour);
|
|
928
|
-
},
|
|
929
|
-
setMinute: function setMinute(date, minute) {
|
|
930
|
-
return date.minute(minute);
|
|
931
|
-
},
|
|
932
|
-
setSecond: function setSecond(date, second) {
|
|
933
|
-
return date.second(second);
|
|
934
|
-
},
|
|
935
|
-
// Compare
|
|
936
|
-
isAfter: function isAfter(date1, date2) {
|
|
937
|
-
return date1.isAfter(date2);
|
|
938
|
-
},
|
|
939
|
-
isValidate: function isValidate(date) {
|
|
940
|
-
return date.isValid();
|
|
941
|
-
},
|
|
942
|
-
locale: {
|
|
943
|
-
getWeekFirstDay: function getWeekFirstDay(locale) {
|
|
944
|
-
return (0, _dayjs.default)().locale(parseLocale(locale)).localeData().firstDayOfWeek();
|
|
945
|
-
},
|
|
946
|
-
getWeekFirstDate: function getWeekFirstDate(locale, date) {
|
|
947
|
-
return date.locale(parseLocale(locale)).weekday(0);
|
|
948
|
-
},
|
|
949
|
-
getWeek: function getWeek(locale, date) {
|
|
950
|
-
return date.locale(parseLocale(locale)).week();
|
|
951
|
-
},
|
|
952
|
-
getShortWeekDays: function getShortWeekDays(locale) {
|
|
953
|
-
return (0, _dayjs.default)().locale(parseLocale(locale)).localeData().weekdaysMin();
|
|
954
|
-
},
|
|
955
|
-
getShortMonths: function getShortMonths(locale) {
|
|
956
|
-
return (0, _dayjs.default)().locale(parseLocale(locale)).localeData().monthsShort();
|
|
957
|
-
},
|
|
958
|
-
format: function format(locale, date, _format) {
|
|
959
|
-
return date.locale(parseLocale(locale)).format(_format);
|
|
960
|
-
},
|
|
961
|
-
parse: function parse(locale, text, formats) {
|
|
962
|
-
var localeStr = parseLocale(locale);
|
|
963
|
-
for (var i = 0; i < formats.length; i += 1) {
|
|
964
|
-
var format = formats[i];
|
|
965
|
-
var formatText = text;
|
|
966
|
-
if (format.includes("wo") || format.includes("Wo")) {
|
|
967
|
-
var year = formatText.split("-")[0];
|
|
968
|
-
var weekStr = formatText.split("-")[1];
|
|
969
|
-
var firstWeek = (0, _dayjs.default)(year, "YYYY").startOf("year").locale(localeStr);
|
|
970
|
-
for (var j = 0; j <= 52; j += 1) {
|
|
971
|
-
var nextWeek = firstWeek.add(j, "week");
|
|
972
|
-
if (nextWeek.format("Wo") === weekStr) {
|
|
973
|
-
return nextWeek;
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
parseNoMatchNotice();
|
|
977
|
-
return null;
|
|
978
|
-
}
|
|
979
|
-
var date = (0, _dayjs.default)(formatText, format, true).locale(localeStr);
|
|
980
|
-
if (date.isValid()) {
|
|
981
|
-
return date;
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
if (text) {
|
|
985
|
-
parseNoMatchNotice();
|
|
986
|
-
}
|
|
987
|
-
return null;
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
};
|
|
991
|
-
var _default = exports.default = generateConfig;
|
|
113
|
+
warningOnce.noteOnce = noteOnce2;
|
|
114
|
+
var _default = exports.default = warningOnce;
|
|
992
115
|
}
|
|
993
116
|
});
|
|
994
117
|
|
|
@@ -1141,135 +264,216 @@ AntDNotToggle.displayName = "AntDNotToggle";
|
|
|
1141
264
|
// src/AntDShiftActions.tsx
|
|
1142
265
|
import { Button as Button2 } from "antd";
|
|
1143
266
|
import * as React4 from "react";
|
|
1144
|
-
import { useShiftActions } from "react-querybuilder";
|
|
1145
267
|
var AntDShiftActions = ({
|
|
1146
|
-
|
|
268
|
+
shiftUp,
|
|
269
|
+
shiftDown,
|
|
270
|
+
shiftUpDisabled,
|
|
271
|
+
shiftDownDisabled,
|
|
1147
272
|
disabled,
|
|
1148
273
|
className,
|
|
1149
274
|
labels,
|
|
1150
275
|
titles,
|
|
1151
|
-
testID
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
), /* @__PURE__ */ React4.createElement(
|
|
1174
|
-
Button2,
|
|
1175
|
-
{
|
|
1176
|
-
type: "primary",
|
|
1177
|
-
size: "small",
|
|
1178
|
-
title: titles == null ? void 0 : titles.shiftDown,
|
|
1179
|
-
onClick: shiftDown,
|
|
1180
|
-
disabled: shiftDownDisabled
|
|
1181
|
-
},
|
|
1182
|
-
labels == null ? void 0 : labels.shiftDown
|
|
1183
|
-
));
|
|
1184
|
-
};
|
|
276
|
+
testID
|
|
277
|
+
}) => /* @__PURE__ */ React4.createElement("div", { "data-testid": testID, className }, /* @__PURE__ */ React4.createElement(
|
|
278
|
+
Button2,
|
|
279
|
+
{
|
|
280
|
+
type: "primary",
|
|
281
|
+
size: "small",
|
|
282
|
+
title: titles == null ? void 0 : titles.shiftUp,
|
|
283
|
+
onClick: shiftUp,
|
|
284
|
+
disabled: disabled || shiftUpDisabled
|
|
285
|
+
},
|
|
286
|
+
labels == null ? void 0 : labels.shiftUp
|
|
287
|
+
), /* @__PURE__ */ React4.createElement(
|
|
288
|
+
Button2,
|
|
289
|
+
{
|
|
290
|
+
type: "primary",
|
|
291
|
+
size: "small",
|
|
292
|
+
title: titles == null ? void 0 : titles.shiftDown,
|
|
293
|
+
onClick: shiftDown,
|
|
294
|
+
disabled: disabled || shiftDownDisabled
|
|
295
|
+
},
|
|
296
|
+
labels == null ? void 0 : labels.shiftDown
|
|
297
|
+
));
|
|
1185
298
|
AntDShiftActions.displayName = "AntDShiftActions";
|
|
1186
299
|
|
|
1187
300
|
// src/AntDValueEditor.tsx
|
|
1188
|
-
var import_dayjs = __toESM(require_dayjs_min());
|
|
1189
|
-
var import_dayjs2 = __toESM(require_dayjs());
|
|
1190
301
|
import { Checkbox, Input, Radio, Switch as Switch2 } from "antd";
|
|
1191
302
|
import generatePicker from "antd/es/date-picker/generatePicker/index.js";
|
|
1192
|
-
import
|
|
1193
|
-
import { getFirstOption, joinWith, standardClassnames, useValueEditor } from "react-querybuilder";
|
|
1194
|
-
|
|
1195
|
-
// src/AntDValueSelector.tsx
|
|
1196
|
-
import { Select as Select2 } from "antd";
|
|
1197
|
-
import * as React6 from "react";
|
|
1198
|
-
import { useValueSelector } from "react-querybuilder";
|
|
1199
|
-
|
|
1200
|
-
// src/utils.tsx
|
|
1201
|
-
import { Select } from "antd";
|
|
303
|
+
import dayjs2 from "dayjs";
|
|
1202
304
|
import * as React5 from "react";
|
|
1203
|
-
import {
|
|
1204
|
-
var { OptGroup, Option } = Select;
|
|
1205
|
-
var toOptions = (arr) => isOptionGroupArray(arr) ? arr.map((og) => /* @__PURE__ */ React5.createElement(OptGroup, { key: og.label, label: og.label }, og.options.map((opt) => /* @__PURE__ */ React5.createElement(Option, { key: opt.name, value: opt.name }, opt.label)))) : Array.isArray(arr) ? arr.map((opt) => /* @__PURE__ */ React5.createElement(Option, { key: opt.name, value: opt.name }, opt.label)) : (
|
|
1206
|
-
/* istanbul ignore next */
|
|
1207
|
-
null
|
|
1208
|
-
);
|
|
305
|
+
import { getFirstOption, joinWith, standardClassnames, useValueEditor } from "react-querybuilder";
|
|
1209
306
|
|
|
1210
|
-
// src/
|
|
1211
|
-
var
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
307
|
+
// src/dayjs.ts
|
|
308
|
+
var import_warning = __toESM(require_warning());
|
|
309
|
+
import dayjs from "dayjs";
|
|
310
|
+
import advancedFormat from "dayjs/plugin/advancedFormat.js";
|
|
311
|
+
import customParseFormat from "dayjs/plugin/customParseFormat.js";
|
|
312
|
+
import localeData from "dayjs/plugin/localeData.js";
|
|
313
|
+
import weekOfYear from "dayjs/plugin/weekOfYear.js";
|
|
314
|
+
import weekYear from "dayjs/plugin/weekYear.js";
|
|
315
|
+
import weekday from "dayjs/plugin/weekday.js";
|
|
316
|
+
dayjs.extend(customParseFormat);
|
|
317
|
+
dayjs.extend(advancedFormat);
|
|
318
|
+
dayjs.extend(weekday);
|
|
319
|
+
dayjs.extend(localeData);
|
|
320
|
+
dayjs.extend(weekOfYear);
|
|
321
|
+
dayjs.extend(weekYear);
|
|
322
|
+
dayjs.extend((o, c) => {
|
|
323
|
+
const proto = c.prototype;
|
|
324
|
+
const oldFormat = proto.format;
|
|
325
|
+
proto.format = function f(formatStr) {
|
|
326
|
+
const str = (formatStr || "").replace("Wo", "wo");
|
|
327
|
+
return oldFormat.bind(this)(str);
|
|
328
|
+
};
|
|
329
|
+
});
|
|
330
|
+
var localeMap = {
|
|
331
|
+
// ar_EG:
|
|
332
|
+
// az_AZ:
|
|
333
|
+
// bg_BG:
|
|
334
|
+
bn_BD: "bn-bd",
|
|
335
|
+
by_BY: "be",
|
|
336
|
+
// ca_ES:
|
|
337
|
+
// cs_CZ:
|
|
338
|
+
// da_DK:
|
|
339
|
+
// de_DE:
|
|
340
|
+
// el_GR:
|
|
341
|
+
en_GB: "en-gb",
|
|
342
|
+
en_US: "en",
|
|
343
|
+
// es_ES:
|
|
344
|
+
// et_EE:
|
|
345
|
+
// fa_IR:
|
|
346
|
+
// fi_FI:
|
|
347
|
+
fr_BE: "fr",
|
|
348
|
+
// todo: dayjs has no fr_BE locale, use fr at present
|
|
349
|
+
fr_CA: "fr-ca",
|
|
350
|
+
// fr_FR:
|
|
351
|
+
// ga_IE:
|
|
352
|
+
// gl_ES:
|
|
353
|
+
// he_IL:
|
|
354
|
+
// hi_IN:
|
|
355
|
+
// hr_HR:
|
|
356
|
+
// hu_HU:
|
|
357
|
+
hy_AM: "hy-am",
|
|
358
|
+
// id_ID:
|
|
359
|
+
// is_IS:
|
|
360
|
+
// it_IT:
|
|
361
|
+
// ja_JP:
|
|
362
|
+
// ka_GE:
|
|
363
|
+
// kk_KZ:
|
|
364
|
+
// km_KH:
|
|
365
|
+
kmr_IQ: "ku",
|
|
366
|
+
// kn_IN:
|
|
367
|
+
// ko_KR:
|
|
368
|
+
// ku_IQ: // previous ku in antd
|
|
369
|
+
// lt_LT:
|
|
370
|
+
// lv_LV:
|
|
371
|
+
// mk_MK:
|
|
372
|
+
// ml_IN:
|
|
373
|
+
// mn_MN:
|
|
374
|
+
// ms_MY:
|
|
375
|
+
// nb_NO:
|
|
376
|
+
// ne_NP:
|
|
377
|
+
nl_BE: "nl-be",
|
|
378
|
+
// nl_NL:
|
|
379
|
+
// pl_PL:
|
|
380
|
+
pt_BR: "pt-br",
|
|
381
|
+
// pt_PT:
|
|
382
|
+
// ro_RO:
|
|
383
|
+
// ru_RU:
|
|
384
|
+
// sk_SK:
|
|
385
|
+
// sl_SI:
|
|
386
|
+
// sr_RS:
|
|
387
|
+
// sv_SE:
|
|
388
|
+
// ta_IN:
|
|
389
|
+
// th_TH:
|
|
390
|
+
// tr_TR:
|
|
391
|
+
// uk_UA:
|
|
392
|
+
// ur_PK:
|
|
393
|
+
// vi_VN:
|
|
394
|
+
zh_CN: "zh-cn",
|
|
395
|
+
zh_HK: "zh-hk",
|
|
396
|
+
zh_TW: "zh-tw"
|
|
1266
397
|
};
|
|
1267
|
-
|
|
398
|
+
var parseLocale = (locale) => {
|
|
399
|
+
const mapLocale = localeMap[locale];
|
|
400
|
+
return mapLocale || locale.split("_")[0];
|
|
401
|
+
};
|
|
402
|
+
var parseNoMatchNotice = () => {
|
|
403
|
+
(0, import_warning.noteOnce)(false, "Not match any format. Please help to fire a issue about this.");
|
|
404
|
+
};
|
|
405
|
+
var generateConfig = {
|
|
406
|
+
// get
|
|
407
|
+
getNow: () => dayjs(),
|
|
408
|
+
getFixedDate: (string) => dayjs(string, ["YYYY-M-DD", "YYYY-MM-DD"]),
|
|
409
|
+
getEndDate: (date) => date.endOf("month"),
|
|
410
|
+
getWeekDay: (date) => {
|
|
411
|
+
const clone = date.locale("en");
|
|
412
|
+
return clone.weekday() + clone.localeData().firstDayOfWeek();
|
|
413
|
+
},
|
|
414
|
+
getYear: (date) => date.year(),
|
|
415
|
+
getMonth: (date) => date.month(),
|
|
416
|
+
getDate: (date) => date.date(),
|
|
417
|
+
getHour: (date) => date.hour(),
|
|
418
|
+
getMinute: (date) => date.minute(),
|
|
419
|
+
getSecond: (date) => date.second(),
|
|
420
|
+
// set
|
|
421
|
+
addYear: (date, diff) => date.add(diff, "year"),
|
|
422
|
+
addMonth: (date, diff) => date.add(diff, "month"),
|
|
423
|
+
addDate: (date, diff) => date.add(diff, "day"),
|
|
424
|
+
setYear: (date, year) => date.year(year),
|
|
425
|
+
setMonth: (date, month) => date.month(month),
|
|
426
|
+
setDate: (date, num) => date.date(num),
|
|
427
|
+
setHour: (date, hour) => date.hour(hour),
|
|
428
|
+
setMinute: (date, minute) => date.minute(minute),
|
|
429
|
+
setSecond: (date, second) => date.second(second),
|
|
430
|
+
// Compare
|
|
431
|
+
isAfter: (date1, date2) => date1.isAfter(date2),
|
|
432
|
+
isValidate: (date) => date.isValid(),
|
|
433
|
+
locale: {
|
|
434
|
+
getWeekFirstDay: (locale) => dayjs().locale(parseLocale(locale)).localeData().firstDayOfWeek(),
|
|
435
|
+
getWeekFirstDate: (locale, date) => date.locale(parseLocale(locale)).weekday(0),
|
|
436
|
+
getWeek: (locale, date) => date.locale(parseLocale(locale)).week(),
|
|
437
|
+
getShortWeekDays: (locale) => dayjs().locale(parseLocale(locale)).localeData().weekdaysMin(),
|
|
438
|
+
getShortMonths: (locale) => dayjs().locale(parseLocale(locale)).localeData().monthsShort(),
|
|
439
|
+
format: (locale, date, format) => date.locale(parseLocale(locale)).format(format),
|
|
440
|
+
parse: (locale, text, formats) => {
|
|
441
|
+
const localeStr = parseLocale(locale);
|
|
442
|
+
for (let i = 0; i < formats.length; i += 1) {
|
|
443
|
+
const format = formats[i];
|
|
444
|
+
const formatText = text;
|
|
445
|
+
if (format.includes("wo") || format.includes("Wo")) {
|
|
446
|
+
const year = formatText.split("-")[0];
|
|
447
|
+
const weekStr = formatText.split("-")[1];
|
|
448
|
+
const firstWeek = dayjs(year, "YYYY").startOf("year").locale(localeStr);
|
|
449
|
+
for (let j = 0; j <= 52; j += 1) {
|
|
450
|
+
const nextWeek = firstWeek.add(j, "week");
|
|
451
|
+
if (nextWeek.format("Wo") === weekStr) {
|
|
452
|
+
return nextWeek;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
parseNoMatchNotice();
|
|
456
|
+
return null;
|
|
457
|
+
}
|
|
458
|
+
const date = dayjs(formatText, format, true).locale(localeStr);
|
|
459
|
+
if (date.isValid()) {
|
|
460
|
+
return date;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
if (text) {
|
|
464
|
+
parseNoMatchNotice();
|
|
465
|
+
}
|
|
466
|
+
return null;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
var dayjs_default = generateConfig;
|
|
1268
471
|
|
|
1269
472
|
// src/AntDValueEditor.tsx
|
|
1270
|
-
var DatePicker = generatePicker(
|
|
1271
|
-
var AntDValueEditor = (
|
|
1272
|
-
var _b
|
|
473
|
+
var DatePicker = generatePicker(dayjs_default);
|
|
474
|
+
var AntDValueEditor = (allProps) => {
|
|
475
|
+
var _b;
|
|
476
|
+
const _a = allProps, {
|
|
1273
477
|
fieldData,
|
|
1274
478
|
operator,
|
|
1275
479
|
value,
|
|
@@ -1285,8 +489,8 @@ var AntDValueEditor = (_a) => {
|
|
|
1285
489
|
valueSource: _vs,
|
|
1286
490
|
disabled,
|
|
1287
491
|
testID,
|
|
1288
|
-
selectorComponent: SelectorComponent =
|
|
1289
|
-
} =
|
|
492
|
+
selectorComponent: SelectorComponent = allProps.schema.controls.valueSelector
|
|
493
|
+
} = _a, props = __objRest(_a, [
|
|
1290
494
|
"fieldData",
|
|
1291
495
|
"operator",
|
|
1292
496
|
"value",
|
|
@@ -1304,7 +508,6 @@ var AntDValueEditor = (_a) => {
|
|
|
1304
508
|
"testID",
|
|
1305
509
|
"selectorComponent"
|
|
1306
510
|
]);
|
|
1307
|
-
var _a2;
|
|
1308
511
|
const { valueAsArray, multiValueHandler } = useValueEditor({
|
|
1309
512
|
handleOnChange,
|
|
1310
513
|
inputType,
|
|
@@ -1318,35 +521,35 @@ var AntDValueEditor = (_a) => {
|
|
|
1318
521
|
if (operator === "null" || operator === "notNull") {
|
|
1319
522
|
return null;
|
|
1320
523
|
}
|
|
1321
|
-
const placeHolderText = (
|
|
524
|
+
const placeHolderText = (_b = fieldData == null ? void 0 : fieldData.placeholder) != null ? _b : "";
|
|
1322
525
|
const inputTypeCoerced = ["in", "notIn"].includes(operator) ? "text" : inputType || "text";
|
|
1323
526
|
if ((operator === "between" || operator === "notBetween") && (type === "select" || type === "text") && // Date ranges are handled differently in AntD--see below
|
|
1324
527
|
inputTypeCoerced !== "date" && inputTypeCoerced !== "datetime-local") {
|
|
1325
528
|
const editors = ["from", "to"].map((key, i) => {
|
|
1326
|
-
var
|
|
529
|
+
var _a2, _b2;
|
|
1327
530
|
if (type === "text") {
|
|
1328
531
|
if (inputTypeCoerced === "time") {
|
|
1329
|
-
return /* @__PURE__ */
|
|
532
|
+
return /* @__PURE__ */ React5.createElement(
|
|
1330
533
|
DatePicker.TimePicker,
|
|
1331
534
|
{
|
|
1332
535
|
key,
|
|
1333
|
-
value: valueAsArray[i] ? (
|
|
536
|
+
value: valueAsArray[i] ? dayjs2(valueAsArray[i], "HH:mm:ss") : null,
|
|
1334
537
|
className: standardClassnames.valueListItem,
|
|
1335
538
|
disabled,
|
|
1336
539
|
placeholder: placeHolderText,
|
|
1337
540
|
onChange: (d) => {
|
|
1338
|
-
var
|
|
1339
|
-
return multiValueHandler((
|
|
541
|
+
var _a3;
|
|
542
|
+
return multiValueHandler((_a3 = d == null ? void 0 : d.format("HH:mm:ss")) != null ? _a3 : "", i);
|
|
1340
543
|
}
|
|
1341
544
|
}
|
|
1342
545
|
);
|
|
1343
546
|
}
|
|
1344
|
-
return /* @__PURE__ */
|
|
547
|
+
return /* @__PURE__ */ React5.createElement(
|
|
1345
548
|
Input,
|
|
1346
549
|
{
|
|
1347
550
|
key,
|
|
1348
551
|
type: inputTypeCoerced,
|
|
1349
|
-
value: (
|
|
552
|
+
value: (_a2 = valueAsArray[i]) != null ? _a2 : "",
|
|
1350
553
|
className: standardClassnames.valueListItem,
|
|
1351
554
|
disabled,
|
|
1352
555
|
placeholder: placeHolderText,
|
|
@@ -1354,7 +557,7 @@ var AntDValueEditor = (_a) => {
|
|
|
1354
557
|
}
|
|
1355
558
|
);
|
|
1356
559
|
}
|
|
1357
|
-
return /* @__PURE__ */
|
|
560
|
+
return /* @__PURE__ */ React5.createElement(
|
|
1358
561
|
SelectorComponent,
|
|
1359
562
|
__spreadProps(__spreadValues({}, props), {
|
|
1360
563
|
key,
|
|
@@ -1367,12 +570,12 @@ var AntDValueEditor = (_a) => {
|
|
|
1367
570
|
})
|
|
1368
571
|
);
|
|
1369
572
|
});
|
|
1370
|
-
return /* @__PURE__ */
|
|
573
|
+
return /* @__PURE__ */ React5.createElement("span", { "data-testid": testID, className, title }, editors[0], separator, editors[1]);
|
|
1371
574
|
}
|
|
1372
575
|
switch (type) {
|
|
1373
576
|
case "select":
|
|
1374
577
|
case "multiselect":
|
|
1375
|
-
return /* @__PURE__ */
|
|
578
|
+
return /* @__PURE__ */ React5.createElement(
|
|
1376
579
|
SelectorComponent,
|
|
1377
580
|
__spreadProps(__spreadValues({}, props), {
|
|
1378
581
|
className,
|
|
@@ -1386,7 +589,7 @@ var AntDValueEditor = (_a) => {
|
|
|
1386
589
|
})
|
|
1387
590
|
);
|
|
1388
591
|
case "textarea":
|
|
1389
|
-
return /* @__PURE__ */
|
|
592
|
+
return /* @__PURE__ */ React5.createElement(
|
|
1390
593
|
Input.TextArea,
|
|
1391
594
|
{
|
|
1392
595
|
value,
|
|
@@ -1398,7 +601,7 @@ var AntDValueEditor = (_a) => {
|
|
|
1398
601
|
}
|
|
1399
602
|
);
|
|
1400
603
|
case "switch":
|
|
1401
|
-
return /* @__PURE__ */
|
|
604
|
+
return /* @__PURE__ */ React5.createElement(
|
|
1402
605
|
Switch2,
|
|
1403
606
|
{
|
|
1404
607
|
checked: !!value,
|
|
@@ -1409,7 +612,7 @@ var AntDValueEditor = (_a) => {
|
|
|
1409
612
|
}
|
|
1410
613
|
);
|
|
1411
614
|
case "checkbox":
|
|
1412
|
-
return /* @__PURE__ */
|
|
615
|
+
return /* @__PURE__ */ React5.createElement("span", { title, className }, /* @__PURE__ */ React5.createElement(
|
|
1413
616
|
Checkbox,
|
|
1414
617
|
{
|
|
1415
618
|
type: "checkbox",
|
|
@@ -1419,7 +622,7 @@ var AntDValueEditor = (_a) => {
|
|
|
1419
622
|
}
|
|
1420
623
|
));
|
|
1421
624
|
case "radio":
|
|
1422
|
-
return /* @__PURE__ */
|
|
625
|
+
return /* @__PURE__ */ React5.createElement("span", { className, title }, values.map((v) => /* @__PURE__ */ React5.createElement(
|
|
1423
626
|
Radio,
|
|
1424
627
|
{
|
|
1425
628
|
key: v.name,
|
|
@@ -1435,8 +638,8 @@ var AntDValueEditor = (_a) => {
|
|
|
1435
638
|
case "date":
|
|
1436
639
|
case "datetime-local": {
|
|
1437
640
|
if (operator === "between" || operator === "notBetween") {
|
|
1438
|
-
const dayjsArray = valueAsArray.slice(0, 2).map(
|
|
1439
|
-
return /* @__PURE__ */
|
|
641
|
+
const dayjsArray = valueAsArray.slice(0, 2).map(dayjs2);
|
|
642
|
+
return /* @__PURE__ */ React5.createElement(
|
|
1440
643
|
DatePicker.RangePicker,
|
|
1441
644
|
{
|
|
1442
645
|
value: dayjsArray.every((d) => d.isValid()) ? dayjsArray : void 0,
|
|
@@ -1458,8 +661,8 @@ var AntDValueEditor = (_a) => {
|
|
|
1458
661
|
}
|
|
1459
662
|
);
|
|
1460
663
|
}
|
|
1461
|
-
const dateValue = (
|
|
1462
|
-
return /* @__PURE__ */
|
|
664
|
+
const dateValue = dayjs2(value);
|
|
665
|
+
return /* @__PURE__ */ React5.createElement(
|
|
1463
666
|
DatePicker,
|
|
1464
667
|
{
|
|
1465
668
|
value: dateValue.isValid() ? dateValue : void 0,
|
|
@@ -1472,8 +675,8 @@ var AntDValueEditor = (_a) => {
|
|
|
1472
675
|
);
|
|
1473
676
|
}
|
|
1474
677
|
case "time": {
|
|
1475
|
-
const dateValue = (
|
|
1476
|
-
return /* @__PURE__ */
|
|
678
|
+
const dateValue = dayjs2(value, "HH:mm:ss");
|
|
679
|
+
return /* @__PURE__ */ React5.createElement(
|
|
1477
680
|
DatePicker.TimePicker,
|
|
1478
681
|
{
|
|
1479
682
|
value: dateValue.isValid() ? dateValue : void 0,
|
|
@@ -1481,14 +684,14 @@ var AntDValueEditor = (_a) => {
|
|
|
1481
684
|
disabled,
|
|
1482
685
|
placeholder: placeHolderText,
|
|
1483
686
|
onChange: (d) => {
|
|
1484
|
-
var
|
|
1485
|
-
return handleOnChange((
|
|
687
|
+
var _a2;
|
|
688
|
+
return handleOnChange((_a2 = d == null ? void 0 : d.format("HH:mm:ss")) != null ? _a2 : "");
|
|
1486
689
|
}
|
|
1487
690
|
}
|
|
1488
691
|
);
|
|
1489
692
|
}
|
|
1490
693
|
}
|
|
1491
|
-
return /* @__PURE__ */
|
|
694
|
+
return /* @__PURE__ */ React5.createElement(
|
|
1492
695
|
Input,
|
|
1493
696
|
{
|
|
1494
697
|
type: inputTypeCoerced,
|
|
@@ -1503,24 +706,88 @@ var AntDValueEditor = (_a) => {
|
|
|
1503
706
|
};
|
|
1504
707
|
AntDValueEditor.displayName = "AntDValueEditor";
|
|
1505
708
|
|
|
709
|
+
// src/AntDValueSelector.tsx
|
|
710
|
+
import { Select as Select2 } from "antd";
|
|
711
|
+
import * as React7 from "react";
|
|
712
|
+
import { useValueSelector } from "react-querybuilder";
|
|
713
|
+
|
|
714
|
+
// src/utils.tsx
|
|
715
|
+
import { Select } from "antd";
|
|
716
|
+
import * as React6 from "react";
|
|
717
|
+
import { isOptionGroupArray } from "react-querybuilder";
|
|
718
|
+
var { OptGroup, Option } = Select;
|
|
719
|
+
var toOptions = (arr) => isOptionGroupArray(arr) ? arr.map((og) => /* @__PURE__ */ React6.createElement(OptGroup, { key: og.label, label: og.label }, og.options.map((opt) => /* @__PURE__ */ React6.createElement(Option, { key: opt.name, value: opt.name }, opt.label)))) : Array.isArray(arr) ? arr.map((opt) => /* @__PURE__ */ React6.createElement(Option, { key: opt.name, value: opt.name }, opt.label)) : (
|
|
720
|
+
/* istanbul ignore next */
|
|
721
|
+
null
|
|
722
|
+
);
|
|
723
|
+
|
|
724
|
+
// src/AntDValueSelector.tsx
|
|
725
|
+
var AntDValueSelector = (_a) => {
|
|
726
|
+
var _b = _a, {
|
|
727
|
+
className,
|
|
728
|
+
handleOnChange,
|
|
729
|
+
options,
|
|
730
|
+
value,
|
|
731
|
+
title,
|
|
732
|
+
disabled,
|
|
733
|
+
multiple,
|
|
734
|
+
listsAsArrays,
|
|
735
|
+
testID: _testID,
|
|
736
|
+
rule: _rule,
|
|
737
|
+
rules: _rules,
|
|
738
|
+
level: _level,
|
|
739
|
+
path: _path,
|
|
740
|
+
context: _context,
|
|
741
|
+
validation: _validation,
|
|
742
|
+
operator: _operator,
|
|
743
|
+
field: _field,
|
|
744
|
+
fieldData: _fieldData,
|
|
745
|
+
schema: _schema
|
|
746
|
+
} = _b, extraProps = __objRest(_b, [
|
|
747
|
+
"className",
|
|
748
|
+
"handleOnChange",
|
|
749
|
+
"options",
|
|
750
|
+
"value",
|
|
751
|
+
"title",
|
|
752
|
+
"disabled",
|
|
753
|
+
"multiple",
|
|
754
|
+
"listsAsArrays",
|
|
755
|
+
// Props that should not be in extraProps
|
|
756
|
+
"testID",
|
|
757
|
+
"rule",
|
|
758
|
+
"rules",
|
|
759
|
+
"level",
|
|
760
|
+
"path",
|
|
761
|
+
"context",
|
|
762
|
+
"validation",
|
|
763
|
+
"operator",
|
|
764
|
+
"field",
|
|
765
|
+
"fieldData",
|
|
766
|
+
"schema"
|
|
767
|
+
]);
|
|
768
|
+
const { onChange, val } = useValueSelector({ handleOnChange, listsAsArrays, multiple, value });
|
|
769
|
+
const modeObj = multiple ? { mode: "multiple" } : {};
|
|
770
|
+
return /* @__PURE__ */ React7.createElement("span", { title, className }, /* @__PURE__ */ React7.createElement(
|
|
771
|
+
Select2,
|
|
772
|
+
__spreadValues(__spreadProps(__spreadValues({}, modeObj), {
|
|
773
|
+
popupMatchSelectWidth: false,
|
|
774
|
+
disabled,
|
|
775
|
+
value: val,
|
|
776
|
+
onChange
|
|
777
|
+
}), extraProps),
|
|
778
|
+
toOptions(options)
|
|
779
|
+
));
|
|
780
|
+
};
|
|
781
|
+
AntDValueSelector.displayName = "AntDValueSelector";
|
|
782
|
+
|
|
1506
783
|
// src/index.tsx
|
|
1507
784
|
var antdControlElements = {
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
cloneGroupAction: AntDActionElement,
|
|
1511
|
-
cloneRuleAction: AntDActionElement,
|
|
1512
|
-
lockGroupAction: AntDActionElement,
|
|
1513
|
-
lockRuleAction: AntDActionElement,
|
|
1514
|
-
combinatorSelector: AntDValueSelector,
|
|
1515
|
-
fieldSelector: AntDValueSelector,
|
|
785
|
+
actionElement: AntDActionElement,
|
|
786
|
+
dragHandle: AntDDragHandle,
|
|
1516
787
|
notToggle: AntDNotToggle,
|
|
1517
|
-
|
|
1518
|
-
removeGroupAction: AntDActionElement,
|
|
1519
|
-
removeRuleAction: AntDActionElement,
|
|
788
|
+
shiftActions: AntDShiftActions,
|
|
1520
789
|
valueEditor: AntDValueEditor,
|
|
1521
|
-
|
|
1522
|
-
valueSourceSelector: AntDValueSelector,
|
|
1523
|
-
shiftActions: AntDShiftActions
|
|
790
|
+
valueSelector: AntDValueSelector
|
|
1524
791
|
};
|
|
1525
792
|
var antdTranslations = {
|
|
1526
793
|
removeGroup: { label: /* @__PURE__ */ React8.createElement(CloseOutlined, null) },
|