@univerjs/design 0.7.0 → 0.8.0-beta.1
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/lib/cjs/index.js +108 -77
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +9431 -9257
- package/lib/es/locale/en-US.js +24 -19
- package/lib/es/locale/fa-IR.js +17 -12
- package/lib/es/locale/fr-FR.js +22 -17
- package/lib/es/locale/ru-RU.js +145 -140
- package/lib/es/locale/vi-VN.js +88 -83
- package/lib/es/locale/zh-CN.js +17 -12
- package/lib/es/locale/zh-TW.js +25 -20
- package/lib/index.css +1 -1
- package/lib/index.js +9431 -9257
- package/lib/locale/en-US.js +24 -19
- package/lib/locale/fa-IR.js +17 -12
- package/lib/locale/fr-FR.js +22 -17
- package/lib/locale/ru-RU.js +145 -140
- package/lib/locale/vi-VN.js +88 -83
- package/lib/locale/zh-CN.js +17 -12
- package/lib/locale/zh-TW.js +25 -20
- package/lib/types/components/avatar/Avatar.d.ts +7 -9
- package/lib/types/components/color-picker/AlphaSlider.d.ts +16 -2
- package/lib/types/components/color-picker/ColorInput.d.ts +2 -5
- package/lib/types/components/color-picker/ColorPicker.d.ts +1 -2
- package/lib/types/components/color-picker/color-conversion.d.ts +0 -2
- package/lib/types/components/config-provider/ConfigProvider.d.ts +3 -3
- package/lib/types/components/confirm/Confirm.d.ts +2 -2
- package/lib/types/components/dropdown/Dropdown.d.ts +2 -2
- package/lib/types/components/dropdown-menu/DropdownMenu.d.ts +9 -1
- package/lib/types/components/hover-card/HoverCard.d.ts +15 -0
- package/lib/types/components/hover-card/HoverCard.stories.d.ts +7 -0
- package/lib/types/components/hover-card/HoverCardPrimitive.d.ts +20 -0
- package/lib/types/components/input/Input.d.ts +4 -4
- package/lib/types/components/input-number/InputNumber.d.ts +6 -5
- package/lib/types/components/menu/Menu.d.ts +4 -4
- package/lib/types/components/radio/Radio.d.ts +2 -2
- package/lib/types/components/select/Select.d.ts +1 -0
- package/lib/types/helper/class-utilities.d.ts +3 -2
- package/lib/types/index.d.ts +3 -2
- package/lib/types/locale/interface.d.ts +1 -0
- package/lib/umd/index.js +108 -77
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +13 -12
- package/lib/types/components/dropdown/index.d.ts +0 -16
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -7,58 +7,58 @@ function Mt() {
|
|
|
7
7
|
(function(l, a) {
|
|
8
8
|
i.exports = a();
|
|
9
9
|
})(_t, function() {
|
|
10
|
-
var l = 1e3, a = 6e4, d = 36e5, p = "millisecond", f = "second", M = "minute", b = "hour", Y = "day", V = "week", D = "month", Q = "quarter", S = "year",
|
|
11
|
-
var r = ["th", "st", "nd", "rd"], t =
|
|
12
|
-
return "[" +
|
|
13
|
-
} }, I = function(
|
|
14
|
-
var n = String(
|
|
15
|
-
return !n || n.length >= r ?
|
|
16
|
-
}, vt = { s: I, z: function(
|
|
17
|
-
var r = -
|
|
10
|
+
var l = 1e3, a = 6e4, d = 36e5, p = "millisecond", f = "second", M = "minute", b = "hour", Y = "day", V = "week", D = "month", Q = "quarter", S = "year", j = "date", G = "Invalid Date", dt = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, yt = /\[([^\]]+)]|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, mt = { 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(o) {
|
|
11
|
+
var r = ["th", "st", "nd", "rd"], t = o % 100;
|
|
12
|
+
return "[" + o + (r[(t - 20) % 10] || r[t] || r[0]) + "]";
|
|
13
|
+
} }, I = function(o, r, t) {
|
|
14
|
+
var n = String(o);
|
|
15
|
+
return !n || n.length >= r ? o : "" + Array(r + 1 - n.length).join(t) + o;
|
|
16
|
+
}, vt = { s: I, z: function(o) {
|
|
17
|
+
var r = -o.utcOffset(), t = Math.abs(r), n = Math.floor(t / 60), e = t % 60;
|
|
18
18
|
return (r <= 0 ? "+" : "-") + I(n, 2, "0") + ":" + I(e, 2, "0");
|
|
19
|
-
}, m: function
|
|
20
|
-
if (r.date() < t.date()) return -
|
|
21
|
-
var n = 12 * (t.year() - r.year()) + (t.month() - r.month()), e = r.clone().add(n, D),
|
|
22
|
-
return +(-(n + (t - e) / (
|
|
23
|
-
}, a: function(
|
|
24
|
-
return
|
|
25
|
-
}, p: function(
|
|
26
|
-
return { M: D, y: S, w: V, d: Y, D:
|
|
27
|
-
}, u: function(
|
|
28
|
-
return
|
|
19
|
+
}, m: function o(r, t) {
|
|
20
|
+
if (r.date() < t.date()) return -o(t, r);
|
|
21
|
+
var n = 12 * (t.year() - r.year()) + (t.month() - r.month()), e = r.clone().add(n, D), s = t - e < 0, u = r.clone().add(n + (s ? -1 : 1), D);
|
|
22
|
+
return +(-(n + (t - e) / (s ? e - u : u - e)) || 0);
|
|
23
|
+
}, a: function(o) {
|
|
24
|
+
return o < 0 ? Math.ceil(o) || 0 : Math.floor(o);
|
|
25
|
+
}, p: function(o) {
|
|
26
|
+
return { M: D, y: S, w: V, d: Y, D: j, h: b, m: M, s: f, ms: p, Q }[o] || String(o || "").toLowerCase().replace(/s$/, "");
|
|
27
|
+
}, u: function(o) {
|
|
28
|
+
return o === void 0;
|
|
29
29
|
} }, H = "en", O = {};
|
|
30
30
|
O[H] = mt;
|
|
31
|
-
var tt = "$isDayjsObject", E = function(
|
|
32
|
-
return
|
|
33
|
-
}, R = function
|
|
31
|
+
var tt = "$isDayjsObject", E = function(o) {
|
|
32
|
+
return o instanceof F || !(!o || !o[tt]);
|
|
33
|
+
}, R = function o(r, t, n) {
|
|
34
34
|
var e;
|
|
35
35
|
if (!r) return H;
|
|
36
36
|
if (typeof r == "string") {
|
|
37
|
-
var
|
|
38
|
-
O[
|
|
37
|
+
var s = r.toLowerCase();
|
|
38
|
+
O[s] && (e = s), t && (O[s] = t, e = s);
|
|
39
39
|
var u = r.split("-");
|
|
40
|
-
if (!e && u.length > 1) return
|
|
40
|
+
if (!e && u.length > 1) return o(u[0]);
|
|
41
41
|
} else {
|
|
42
42
|
var h = r.name;
|
|
43
43
|
O[h] = r, e = h;
|
|
44
44
|
}
|
|
45
45
|
return !n && e && (H = e), e || !n && H;
|
|
46
|
-
}, v = function(
|
|
47
|
-
if (E(
|
|
46
|
+
}, v = function(o, r) {
|
|
47
|
+
if (E(o)) return o.clone();
|
|
48
48
|
var t = typeof r == "object" ? r : {};
|
|
49
|
-
return t.date =
|
|
49
|
+
return t.date = o, t.args = arguments, new F(t);
|
|
50
50
|
}, c = vt;
|
|
51
|
-
c.l = R, c.i = E, c.w = function(
|
|
52
|
-
return v(
|
|
51
|
+
c.l = R, c.i = E, c.w = function(o, r) {
|
|
52
|
+
return v(o, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
|
|
53
53
|
};
|
|
54
54
|
var F = function() {
|
|
55
|
-
function
|
|
55
|
+
function o(t) {
|
|
56
56
|
this.$L = R(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[tt] = !0;
|
|
57
57
|
}
|
|
58
|
-
var r =
|
|
58
|
+
var r = o.prototype;
|
|
59
59
|
return r.parse = function(t) {
|
|
60
60
|
this.$d = function(n) {
|
|
61
|
-
var e = n.date,
|
|
61
|
+
var e = n.date, s = n.utc;
|
|
62
62
|
if (e === null) return /* @__PURE__ */ new Date(NaN);
|
|
63
63
|
if (c.u(e)) return /* @__PURE__ */ new Date();
|
|
64
64
|
if (e instanceof Date) return new Date(e);
|
|
@@ -66,7 +66,7 @@ function Mt() {
|
|
|
66
66
|
var u = e.match(dt);
|
|
67
67
|
if (u) {
|
|
68
68
|
var h = u[2] - 1 || 0, y = (u[7] || "0").substring(0, 3);
|
|
69
|
-
return
|
|
69
|
+
return s ? new Date(Date.UTC(u[1], h, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, y)) : new Date(u[1], h, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, y);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
return new Date(e);
|
|
@@ -92,22 +92,22 @@ function Mt() {
|
|
|
92
92
|
}, r.valueOf = function() {
|
|
93
93
|
return this.$d.getTime();
|
|
94
94
|
}, r.startOf = function(t, n) {
|
|
95
|
-
var e = this,
|
|
96
|
-
var T = c.w(e.$u ? Date.UTC(e.$y, g,
|
|
97
|
-
return
|
|
98
|
-
}, y = function(
|
|
99
|
-
return c.w(e.toDate()[
|
|
95
|
+
var e = this, s = !!c.u(n) || n, u = c.p(t), h = function(P, g) {
|
|
96
|
+
var T = c.w(e.$u ? Date.UTC(e.$y, g, P) : new Date(e.$y, g, P), e);
|
|
97
|
+
return s ? T : T.endOf(Y);
|
|
98
|
+
}, y = function(P, g) {
|
|
99
|
+
return c.w(e.toDate()[P].apply(e.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(g)), e);
|
|
100
100
|
}, _ = this.$W, $ = this.$M, x = this.$D, k = "set" + (this.$u ? "UTC" : "");
|
|
101
101
|
switch (u) {
|
|
102
102
|
case S:
|
|
103
|
-
return
|
|
103
|
+
return s ? h(1, 0) : h(31, 11);
|
|
104
104
|
case D:
|
|
105
|
-
return
|
|
105
|
+
return s ? h(1, $) : h(0, $ + 1);
|
|
106
106
|
case V:
|
|
107
107
|
var w = this.$locale().weekStart || 0, q = (_ < w ? _ + 7 : _) - w;
|
|
108
|
-
return h(
|
|
108
|
+
return h(s ? x - q : x + (6 - q), $);
|
|
109
109
|
case Y:
|
|
110
|
-
case
|
|
110
|
+
case j:
|
|
111
111
|
return y(k + "Hours", 0);
|
|
112
112
|
case b:
|
|
113
113
|
return y(k + "Minutes", 1);
|
|
@@ -121,10 +121,10 @@ function Mt() {
|
|
|
121
121
|
}, r.endOf = function(t) {
|
|
122
122
|
return this.startOf(t, !1);
|
|
123
123
|
}, r.$set = function(t, n) {
|
|
124
|
-
var e,
|
|
125
|
-
if (
|
|
126
|
-
var _ = this.clone().set(
|
|
127
|
-
_.$d[h](y), _.init(), this.$d = _.set(
|
|
124
|
+
var e, s = c.p(t), u = "set" + (this.$u ? "UTC" : ""), h = (e = {}, e[Y] = u + "Date", e[j] = u + "Date", e[D] = u + "Month", e[S] = u + "FullYear", e[b] = u + "Hours", e[M] = u + "Minutes", e[f] = u + "Seconds", e[p] = u + "Milliseconds", e)[s], y = s === Y ? this.$D + (n - this.$W) : n;
|
|
125
|
+
if (s === D || s === S) {
|
|
126
|
+
var _ = this.clone().set(j, 1);
|
|
127
|
+
_.$d[h](y), _.init(), this.$d = _.set(j, Math.min(this.$D, _.daysInMonth())).$d;
|
|
128
128
|
} else h && this.$d[h](y);
|
|
129
129
|
return this.init(), this;
|
|
130
130
|
}, r.set = function(t, n) {
|
|
@@ -132,11 +132,11 @@ function Mt() {
|
|
|
132
132
|
}, r.get = function(t) {
|
|
133
133
|
return this[c.p(t)]();
|
|
134
134
|
}, r.add = function(t, n) {
|
|
135
|
-
var e,
|
|
135
|
+
var e, s = this;
|
|
136
136
|
t = Number(t);
|
|
137
137
|
var u = c.p(n), h = function($) {
|
|
138
|
-
var x = v(
|
|
139
|
-
return c.w(x.date(x.date() + Math.round($ * t)),
|
|
138
|
+
var x = v(s);
|
|
139
|
+
return c.w(x.date(x.date() + Math.round($ * t)), s);
|
|
140
140
|
};
|
|
141
141
|
if (u === D) return this.set(D, this.$M + t);
|
|
142
142
|
if (u === S) return this.set(S, this.$y + t);
|
|
@@ -149,15 +149,15 @@ function Mt() {
|
|
|
149
149
|
}, r.format = function(t) {
|
|
150
150
|
var n = this, e = this.$locale();
|
|
151
151
|
if (!this.isValid()) return e.invalidDate || G;
|
|
152
|
-
var
|
|
153
|
-
return g && (g[T] || g(n,
|
|
152
|
+
var s = t || "YYYY-MM-DDTHH:mm:ssZ", u = c.z(this), h = this.$H, y = this.$m, _ = this.$M, $ = e.weekdays, x = e.months, k = e.meridiem, w = function(g, T, C, K) {
|
|
153
|
+
return g && (g[T] || g(n, s)) || C[T].slice(0, K);
|
|
154
154
|
}, q = function(g) {
|
|
155
155
|
return c.s(h % 12 || 12, g, "0");
|
|
156
|
-
},
|
|
156
|
+
}, P = k || function(g, T, C) {
|
|
157
157
|
var K = g < 12 ? "AM" : "PM";
|
|
158
158
|
return C ? K.toLowerCase() : K;
|
|
159
159
|
};
|
|
160
|
-
return
|
|
160
|
+
return s.replace(yt, function(g, T) {
|
|
161
161
|
return T || function(C) {
|
|
162
162
|
switch (C) {
|
|
163
163
|
case "YY":
|
|
@@ -193,9 +193,9 @@ function Mt() {
|
|
|
193
193
|
case "hh":
|
|
194
194
|
return q(2);
|
|
195
195
|
case "a":
|
|
196
|
-
return
|
|
196
|
+
return P(h, y, !0);
|
|
197
197
|
case "A":
|
|
198
|
-
return
|
|
198
|
+
return P(h, y, !1);
|
|
199
199
|
case "m":
|
|
200
200
|
return String(y);
|
|
201
201
|
case "mm":
|
|
@@ -215,46 +215,46 @@ function Mt() {
|
|
|
215
215
|
}, r.utcOffset = function() {
|
|
216
216
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
217
217
|
}, r.diff = function(t, n, e) {
|
|
218
|
-
var
|
|
218
|
+
var s, u = this, h = c.p(n), y = v(t), _ = (y.utcOffset() - this.utcOffset()) * a, $ = this - y, x = function() {
|
|
219
219
|
return c.m(u, y);
|
|
220
220
|
};
|
|
221
221
|
switch (h) {
|
|
222
222
|
case S:
|
|
223
|
-
|
|
223
|
+
s = x() / 12;
|
|
224
224
|
break;
|
|
225
225
|
case D:
|
|
226
|
-
|
|
226
|
+
s = x();
|
|
227
227
|
break;
|
|
228
228
|
case Q:
|
|
229
|
-
|
|
229
|
+
s = x() / 3;
|
|
230
230
|
break;
|
|
231
231
|
case V:
|
|
232
|
-
|
|
232
|
+
s = ($ - _) / 6048e5;
|
|
233
233
|
break;
|
|
234
234
|
case Y:
|
|
235
|
-
|
|
235
|
+
s = ($ - _) / 864e5;
|
|
236
236
|
break;
|
|
237
237
|
case b:
|
|
238
|
-
|
|
238
|
+
s = $ / d;
|
|
239
239
|
break;
|
|
240
240
|
case M:
|
|
241
|
-
|
|
241
|
+
s = $ / a;
|
|
242
242
|
break;
|
|
243
243
|
case f:
|
|
244
|
-
|
|
244
|
+
s = $ / l;
|
|
245
245
|
break;
|
|
246
246
|
default:
|
|
247
|
-
|
|
247
|
+
s = $;
|
|
248
248
|
}
|
|
249
|
-
return e ?
|
|
249
|
+
return e ? s : c.a(s);
|
|
250
250
|
}, r.daysInMonth = function() {
|
|
251
251
|
return this.endOf(D).$D;
|
|
252
252
|
}, r.$locale = function() {
|
|
253
253
|
return O[this.$L];
|
|
254
254
|
}, r.locale = function(t, n) {
|
|
255
255
|
if (!t) return this.$L;
|
|
256
|
-
var e = this.clone(),
|
|
257
|
-
return
|
|
256
|
+
var e = this.clone(), s = R(t, n, !0);
|
|
257
|
+
return s && (e.$L = s), e;
|
|
258
258
|
}, r.clone = function() {
|
|
259
259
|
return c.w(this.$d, this);
|
|
260
260
|
}, r.toDate = function() {
|
|
@@ -265,16 +265,16 @@ function Mt() {
|
|
|
265
265
|
return this.$d.toISOString();
|
|
266
266
|
}, r.toString = function() {
|
|
267
267
|
return this.$d.toUTCString();
|
|
268
|
-
},
|
|
268
|
+
}, o;
|
|
269
269
|
}(), et = F.prototype;
|
|
270
|
-
return v.prototype = et, [["$ms", p], ["$s", f], ["$m", M], ["$H", b], ["$W", Y], ["$M", D], ["$y", S], ["$D",
|
|
271
|
-
et[
|
|
272
|
-
return this.$g(r,
|
|
270
|
+
return v.prototype = et, [["$ms", p], ["$s", f], ["$m", M], ["$H", b], ["$W", Y], ["$M", D], ["$y", S], ["$D", j]].forEach(function(o) {
|
|
271
|
+
et[o[1]] = function(r) {
|
|
272
|
+
return this.$g(r, o[0], o[1]);
|
|
273
273
|
};
|
|
274
|
-
}), v.extend = function(
|
|
275
|
-
return
|
|
276
|
-
}, v.locale = R, v.isDayjs = E, v.unix = function(
|
|
277
|
-
return v(1e3 *
|
|
274
|
+
}), v.extend = function(o, r) {
|
|
275
|
+
return o.$i || (o(r, F, v), o.$i = !0), v;
|
|
276
|
+
}, v.locale = R, v.isDayjs = E, v.unix = function(o) {
|
|
277
|
+
return v(1e3 * o);
|
|
278
278
|
}, v.en = O[H], v.Ls = O, v.p = {}, v;
|
|
279
279
|
});
|
|
280
280
|
}(A)), A.exports;
|
|
@@ -308,9 +308,9 @@ function bt() {
|
|
|
308
308
|
i.exports = m, i.exports.__esModule = !0, i.exports.default = i.exports;
|
|
309
309
|
}(U)), U.exports;
|
|
310
310
|
}
|
|
311
|
-
var J = { exports: {} }, Z = { exports: {} }, z = { exports: {} }, B = { exports: {} },
|
|
311
|
+
var J = { exports: {} }, Z = { exports: {} }, z = { exports: {} }, B = { exports: {} }, ot;
|
|
312
312
|
function pt() {
|
|
313
|
-
return
|
|
313
|
+
return ot || (ot = 1, function(i) {
|
|
314
314
|
function m(l) {
|
|
315
315
|
"@babel/helpers - typeof";
|
|
316
316
|
return i.exports = m = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
|
|
@@ -322,9 +322,9 @@ function pt() {
|
|
|
322
322
|
i.exports = m, i.exports.__esModule = !0, i.exports.default = i.exports;
|
|
323
323
|
}(B)), B.exports;
|
|
324
324
|
}
|
|
325
|
-
var X = { exports: {} },
|
|
325
|
+
var X = { exports: {} }, st;
|
|
326
326
|
function Yt() {
|
|
327
|
-
return
|
|
327
|
+
return st || (st = 1, function(i) {
|
|
328
328
|
var m = pt().default;
|
|
329
329
|
function l(a, d) {
|
|
330
330
|
if (m(a) != "object" || !a) return a;
|
|
@@ -405,7 +405,7 @@ function wt() {
|
|
|
405
405
|
}), N;
|
|
406
406
|
}
|
|
407
407
|
var ht;
|
|
408
|
-
function
|
|
408
|
+
function Pt() {
|
|
409
409
|
if (ht) return L;
|
|
410
410
|
ht = 1;
|
|
411
411
|
var i = bt().default;
|
|
@@ -441,8 +441,8 @@ function jt() {
|
|
|
441
441
|
});
|
|
442
442
|
return L.default = a, L;
|
|
443
443
|
}
|
|
444
|
-
var
|
|
445
|
-
const kt = /* @__PURE__ */ lt(
|
|
444
|
+
var jt = Pt();
|
|
445
|
+
const kt = /* @__PURE__ */ lt(jt), Ht = {
|
|
446
446
|
design: {
|
|
447
447
|
Confirm: {
|
|
448
448
|
cancel: "Hủy bỏ",
|
|
@@ -457,6 +457,11 @@ const kt = /* @__PURE__ */ lt(Pt), Ht = {
|
|
|
457
457
|
},
|
|
458
458
|
Select: {
|
|
459
459
|
empty: "Không có"
|
|
460
|
+
},
|
|
461
|
+
ColorPicker: {
|
|
462
|
+
more: "Màu sắc khác",
|
|
463
|
+
cancel: "Hủy bỏ",
|
|
464
|
+
confirm: "Xác nhận"
|
|
460
465
|
}
|
|
461
466
|
}
|
|
462
467
|
};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -26,13 +26,13 @@ function $e() {
|
|
|
26
26
|
return { M: S, y: g, w: N, d: Y, D: k, h: x, m: _, s: c, ms: p, Q: G }[o] || String(o || "").toLowerCase().replace(/s$/, "");
|
|
27
27
|
}, u: function(o) {
|
|
28
28
|
return o === void 0;
|
|
29
|
-
} },
|
|
30
|
-
w[
|
|
29
|
+
} }, C = "en", w = {};
|
|
30
|
+
w[C] = _e;
|
|
31
31
|
var ee = "$isDayjsObject", E = function(o) {
|
|
32
32
|
return o instanceof A || !(!o || !o[ee]);
|
|
33
33
|
}, z = function o(r, e, n) {
|
|
34
34
|
var t;
|
|
35
|
-
if (!r) return
|
|
35
|
+
if (!r) return C;
|
|
36
36
|
if (typeof r == "string") {
|
|
37
37
|
var s = r.toLowerCase();
|
|
38
38
|
w[s] && (t = s), e && (w[s] = e, t = s);
|
|
@@ -42,7 +42,7 @@ function $e() {
|
|
|
42
42
|
var l = r.name;
|
|
43
43
|
w[l] = r, t = l;
|
|
44
44
|
}
|
|
45
|
-
return !n && t && (
|
|
45
|
+
return !n && t && (C = t), t || !n && C;
|
|
46
46
|
}, v = function(o, r) {
|
|
47
47
|
if (E(o)) return o.clone();
|
|
48
48
|
var e = typeof r == "object" ? r : {};
|
|
@@ -104,8 +104,8 @@ function $e() {
|
|
|
104
104
|
case S:
|
|
105
105
|
return s ? l(1, M) : l(0, M + 1);
|
|
106
106
|
case N:
|
|
107
|
-
var j = this.$locale().weekStart || 0,
|
|
108
|
-
return l(s ? b -
|
|
107
|
+
var j = this.$locale().weekStart || 0, L = ($ < j ? $ + 7 : $) - j;
|
|
108
|
+
return l(s ? b - L : b + (6 - L), M);
|
|
109
109
|
case Y:
|
|
110
110
|
case k:
|
|
111
111
|
return y(q + "Hours", 0);
|
|
@@ -151,7 +151,7 @@ function $e() {
|
|
|
151
151
|
if (!this.isValid()) return t.invalidDate || X;
|
|
152
152
|
var s = e || "YYYY-MM-DDTHH:mm:ssZ", u = f.z(this), l = this.$H, y = this.$m, $ = this.$M, M = t.weekdays, b = t.months, q = t.meridiem, j = function(D, O, T, F) {
|
|
153
153
|
return D && (D[O] || D(n, s)) || T[O].slice(0, F);
|
|
154
|
-
},
|
|
154
|
+
}, L = function(D) {
|
|
155
155
|
return f.s(l % 12 || 12, D, "0");
|
|
156
156
|
}, P = q || function(D, O, T) {
|
|
157
157
|
var F = D < 12 ? "AM" : "PM";
|
|
@@ -189,9 +189,9 @@ function $e() {
|
|
|
189
189
|
case "HH":
|
|
190
190
|
return f.s(l, 2, "0");
|
|
191
191
|
case "h":
|
|
192
|
-
return
|
|
192
|
+
return L(1);
|
|
193
193
|
case "hh":
|
|
194
|
-
return
|
|
194
|
+
return L(2);
|
|
195
195
|
case "a":
|
|
196
196
|
return P(l, y, !0);
|
|
197
197
|
case "A":
|
|
@@ -275,7 +275,7 @@ function $e() {
|
|
|
275
275
|
return o.$i || (o(r, A, v), o.$i = !0), v;
|
|
276
276
|
}, v.locale = z, v.isDayjs = E, v.unix = function(o) {
|
|
277
277
|
return v(1e3 * o);
|
|
278
|
-
}, v.en = w[
|
|
278
|
+
}, v.en = w[C], v.Ls = w, v.p = {}, v;
|
|
279
279
|
});
|
|
280
280
|
}(Z)), Z.exports;
|
|
281
281
|
}
|
|
@@ -446,7 +446,7 @@ function Pe() {
|
|
|
446
446
|
return H.default = a, H;
|
|
447
447
|
}
|
|
448
448
|
var ke = Pe();
|
|
449
|
-
const qe = /* @__PURE__ */ de(ke),
|
|
449
|
+
const qe = /* @__PURE__ */ de(ke), Ce = {
|
|
450
450
|
design: {
|
|
451
451
|
Confirm: {
|
|
452
452
|
cancel: "取消",
|
|
@@ -461,9 +461,14 @@ const qe = /* @__PURE__ */ de(ke), Le = {
|
|
|
461
461
|
},
|
|
462
462
|
Select: {
|
|
463
463
|
empty: "无"
|
|
464
|
+
},
|
|
465
|
+
ColorPicker: {
|
|
466
|
+
more: "更多颜色",
|
|
467
|
+
cancel: "取消",
|
|
468
|
+
confirm: "确定"
|
|
464
469
|
}
|
|
465
470
|
}
|
|
466
471
|
};
|
|
467
472
|
export {
|
|
468
|
-
|
|
473
|
+
Ce as default
|
|
469
474
|
};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -26,13 +26,13 @@ function $e() {
|
|
|
26
26
|
return { M: b, y: g, w: W, d: S, D: P, h: x, m, s: c, ms: p, Q: G }[o] || String(o || "").toLowerCase().replace(/s$/, "");
|
|
27
27
|
}, u: function(o) {
|
|
28
28
|
return o === void 0;
|
|
29
|
-
} },
|
|
30
|
-
O[
|
|
29
|
+
} }, q = "en", O = {};
|
|
30
|
+
O[q] = me;
|
|
31
31
|
var ee = "$isDayjsObject", K = function(o) {
|
|
32
32
|
return o instanceof z || !(!o || !o[ee]);
|
|
33
33
|
}, F = function o(r, e, n) {
|
|
34
34
|
var t;
|
|
35
|
-
if (!r) return
|
|
35
|
+
if (!r) return q;
|
|
36
36
|
if (typeof r == "string") {
|
|
37
37
|
var s = r.toLowerCase();
|
|
38
38
|
O[s] && (t = s), e && (O[s] = e, t = s);
|
|
@@ -42,7 +42,7 @@ function $e() {
|
|
|
42
42
|
var l = r.name;
|
|
43
43
|
O[l] = r, t = l;
|
|
44
44
|
}
|
|
45
|
-
return !n && t && (
|
|
45
|
+
return !n && t && (q = t), t || !n && q;
|
|
46
46
|
}, _ = function(o, r) {
|
|
47
47
|
if (K(o)) return o.clone();
|
|
48
48
|
var e = typeof r == "object" ? r : {};
|
|
@@ -97,24 +97,24 @@ function $e() {
|
|
|
97
97
|
return s ? w : w.endOf(S);
|
|
98
98
|
}, y = function(j, D) {
|
|
99
99
|
return f.w(t.toDate()[j].apply(t.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(D)), t);
|
|
100
|
-
}, $ = this.$W, M = this.$M, Y = this.$D,
|
|
100
|
+
}, $ = this.$W, M = this.$M, Y = this.$D, k = "set" + (this.$u ? "UTC" : "");
|
|
101
101
|
switch (u) {
|
|
102
102
|
case g:
|
|
103
103
|
return s ? l(1, 0) : l(31, 11);
|
|
104
104
|
case b:
|
|
105
105
|
return s ? l(1, M) : l(0, M + 1);
|
|
106
106
|
case W:
|
|
107
|
-
var T = this.$locale().weekStart || 0,
|
|
108
|
-
return l(s ? Y -
|
|
107
|
+
var T = this.$locale().weekStart || 0, H = ($ < T ? $ + 7 : $) - T;
|
|
108
|
+
return l(s ? Y - H : Y + (6 - H), M);
|
|
109
109
|
case S:
|
|
110
110
|
case P:
|
|
111
|
-
return y(
|
|
111
|
+
return y(k + "Hours", 0);
|
|
112
112
|
case x:
|
|
113
|
-
return y(
|
|
113
|
+
return y(k + "Minutes", 1);
|
|
114
114
|
case m:
|
|
115
|
-
return y(
|
|
115
|
+
return y(k + "Seconds", 2);
|
|
116
116
|
case c:
|
|
117
|
-
return y(
|
|
117
|
+
return y(k + "Milliseconds", 3);
|
|
118
118
|
default:
|
|
119
119
|
return this.clone();
|
|
120
120
|
}
|
|
@@ -149,11 +149,11 @@ function $e() {
|
|
|
149
149
|
}, r.format = function(e) {
|
|
150
150
|
var n = this, t = this.$locale();
|
|
151
151
|
if (!this.isValid()) return t.invalidDate || X;
|
|
152
|
-
var s = e || "YYYY-MM-DDTHH:mm:ssZ", u = f.z(this), l = this.$H, y = this.$m, $ = this.$M, M = t.weekdays, Y = t.months,
|
|
152
|
+
var s = e || "YYYY-MM-DDTHH:mm:ssZ", u = f.z(this), l = this.$H, y = this.$m, $ = this.$M, M = t.weekdays, Y = t.months, k = t.meridiem, T = function(D, w, L, Z) {
|
|
153
153
|
return D && (D[w] || D(n, s)) || L[w].slice(0, Z);
|
|
154
|
-
},
|
|
154
|
+
}, H = function(D) {
|
|
155
155
|
return f.s(l % 12 || 12, D, "0");
|
|
156
|
-
}, j =
|
|
156
|
+
}, j = k || function(D, w, L) {
|
|
157
157
|
var Z = D < 12 ? "AM" : "PM";
|
|
158
158
|
return L ? Z.toLowerCase() : Z;
|
|
159
159
|
};
|
|
@@ -189,9 +189,9 @@ function $e() {
|
|
|
189
189
|
case "HH":
|
|
190
190
|
return f.s(l, 2, "0");
|
|
191
191
|
case "h":
|
|
192
|
-
return
|
|
192
|
+
return H(1);
|
|
193
193
|
case "hh":
|
|
194
|
-
return
|
|
194
|
+
return H(2);
|
|
195
195
|
case "a":
|
|
196
196
|
return j(l, y, !0);
|
|
197
197
|
case "A":
|
|
@@ -275,7 +275,7 @@ function $e() {
|
|
|
275
275
|
return o.$i || (o(r, z, _), o.$i = !0), _;
|
|
276
276
|
}, _.locale = F, _.isDayjs = K, _.unix = function(o) {
|
|
277
277
|
return _(1e3 * o);
|
|
278
|
-
}, _.en = O[
|
|
278
|
+
}, _.en = O[q], _.Ls = O, _.p = {}, _;
|
|
279
279
|
});
|
|
280
280
|
}(I)), I.exports;
|
|
281
281
|
}
|
|
@@ -448,7 +448,7 @@ function je() {
|
|
|
448
448
|
return C.default = a, C;
|
|
449
449
|
}
|
|
450
450
|
var Pe = je();
|
|
451
|
-
const
|
|
451
|
+
const ke = /* @__PURE__ */ de(Pe), qe = {
|
|
452
452
|
design: {
|
|
453
453
|
Confirm: {
|
|
454
454
|
cancel: "取消",
|
|
@@ -456,16 +456,21 @@ const qe = /* @__PURE__ */ de(Pe), He = {
|
|
|
456
456
|
},
|
|
457
457
|
Picker: {
|
|
458
458
|
...Ye,
|
|
459
|
-
...
|
|
459
|
+
...ke
|
|
460
460
|
},
|
|
461
461
|
CascaderList: {
|
|
462
462
|
empty: "無"
|
|
463
463
|
},
|
|
464
464
|
Select: {
|
|
465
465
|
empty: "無"
|
|
466
|
+
},
|
|
467
|
+
ColorPicker: {
|
|
468
|
+
more: "更多顏色",
|
|
469
|
+
cancel: "取消",
|
|
470
|
+
confirm: "確定"
|
|
466
471
|
}
|
|
467
472
|
}
|
|
468
473
|
};
|
|
469
474
|
export {
|
|
470
|
-
|
|
475
|
+
qe as default
|
|
471
476
|
};
|