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