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