@univerjs/design 0.6.2 → 0.6.3-nightly.202503051607
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 +52 -58
- 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 +10604 -11076
- package/lib/es/locale/en-US.js +7 -6
- package/lib/es/locale/fa-IR.js +5 -4
- package/lib/es/locale/fr-FR.js +1 -0
- package/lib/es/locale/ru-RU.js +16 -15
- package/lib/es/locale/vi-VN.js +1 -0
- package/lib/es/locale/zh-CN.js +18 -17
- package/lib/es/locale/zh-TW.js +12 -11
- package/lib/index.css +1 -1
- package/lib/types/components/cascader-list/CascaderList.d.ts +8 -0
- package/lib/types/components/date-range-picker/DateRangePicker.d.ts +2 -2
- package/lib/types/components/input-number/InputNumber.d.ts +4 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/umd/index.js +52 -58
- 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 +4 -4
- package/LICENSE +0 -176
package/lib/es/locale/en-US.js
CHANGED
|
@@ -17,7 +17,7 @@ function Y() {
|
|
|
17
17
|
var C = Y();
|
|
18
18
|
const R = /* @__PURE__ */ g(C);
|
|
19
19
|
var s = {}, f = { exports: {} }, b;
|
|
20
|
-
function
|
|
20
|
+
function k() {
|
|
21
21
|
return b || (b = 1, function(e) {
|
|
22
22
|
function n(t) {
|
|
23
23
|
return t && t.__esModule ? t : {
|
|
@@ -42,7 +42,7 @@ function M() {
|
|
|
42
42
|
}(x)), x.exports;
|
|
43
43
|
}
|
|
44
44
|
var v = { exports: {} }, h;
|
|
45
|
-
function
|
|
45
|
+
function E() {
|
|
46
46
|
return h || (h = 1, function(e) {
|
|
47
47
|
var n = M().default;
|
|
48
48
|
function t(r, o) {
|
|
@@ -59,9 +59,9 @@ function T() {
|
|
|
59
59
|
}(v)), v.exports;
|
|
60
60
|
}
|
|
61
61
|
var P;
|
|
62
|
-
function
|
|
62
|
+
function T() {
|
|
63
63
|
return P || (P = 1, function(e) {
|
|
64
|
-
var n = M().default, t =
|
|
64
|
+
var n = M().default, t = E();
|
|
65
65
|
function r(o) {
|
|
66
66
|
var a = t(o, "string");
|
|
67
67
|
return n(a) == "symbol" ? a : a + "";
|
|
@@ -72,7 +72,7 @@ function k() {
|
|
|
72
72
|
var S;
|
|
73
73
|
function N() {
|
|
74
74
|
return S || (S = 1, function(e) {
|
|
75
|
-
var n =
|
|
75
|
+
var n = T();
|
|
76
76
|
function t(r, o, a) {
|
|
77
77
|
return (o = n(o)) in r ? Object.defineProperty(r, o, {
|
|
78
78
|
value: a,
|
|
@@ -127,7 +127,7 @@ var q;
|
|
|
127
127
|
function K() {
|
|
128
128
|
if (q) return s;
|
|
129
129
|
q = 1;
|
|
130
|
-
var e =
|
|
130
|
+
var e = k().default;
|
|
131
131
|
Object.defineProperty(s, "__esModule", {
|
|
132
132
|
value: !0
|
|
133
133
|
}), s.default = void 0;
|
|
@@ -138,6 +138,7 @@ function K() {
|
|
|
138
138
|
backToToday: "Back to today",
|
|
139
139
|
ok: "OK",
|
|
140
140
|
clear: "Clear",
|
|
141
|
+
week: "Week",
|
|
141
142
|
month: "Month",
|
|
142
143
|
year: "Year",
|
|
143
144
|
timeSelect: "select time",
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -42,7 +42,7 @@ function M() {
|
|
|
42
42
|
}(x)), x.exports;
|
|
43
43
|
}
|
|
44
44
|
var v = { exports: {} }, h;
|
|
45
|
-
function
|
|
45
|
+
function k() {
|
|
46
46
|
return h || (h = 1, function(e) {
|
|
47
47
|
var n = M().default;
|
|
48
48
|
function t(r, o) {
|
|
@@ -59,9 +59,9 @@ function T() {
|
|
|
59
59
|
}(v)), v.exports;
|
|
60
60
|
}
|
|
61
61
|
var P;
|
|
62
|
-
function
|
|
62
|
+
function T() {
|
|
63
63
|
return P || (P = 1, function(e) {
|
|
64
|
-
var n = M().default, t =
|
|
64
|
+
var n = M().default, t = k();
|
|
65
65
|
function r(o) {
|
|
66
66
|
var a = t(o, "string");
|
|
67
67
|
return n(a) == "symbol" ? a : a + "";
|
|
@@ -72,7 +72,7 @@ function k() {
|
|
|
72
72
|
var S;
|
|
73
73
|
function F() {
|
|
74
74
|
return S || (S = 1, function(e) {
|
|
75
|
-
var n =
|
|
75
|
+
var n = T();
|
|
76
76
|
function t(r, o, a) {
|
|
77
77
|
return (o = n(o)) in r ? Object.defineProperty(r, o, {
|
|
78
78
|
value: a,
|
|
@@ -138,6 +138,7 @@ function L() {
|
|
|
138
138
|
backToToday: "Back to today",
|
|
139
139
|
ok: "OK",
|
|
140
140
|
clear: "Clear",
|
|
141
|
+
week: "Week",
|
|
141
142
|
month: "Month",
|
|
142
143
|
year: "Year",
|
|
143
144
|
timeSelect: "select time",
|
package/lib/es/locale/fr-FR.js
CHANGED
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -92,11 +92,11 @@ function $e() {
|
|
|
92
92
|
}, r.valueOf = function() {
|
|
93
93
|
return this.$d.getTime();
|
|
94
94
|
}, r.startOf = function(e, n) {
|
|
95
|
-
var t = this, o = !!c.u(n) || n, s = c.p(e), p = function(
|
|
96
|
-
var R = c.w(t.$u ? Date.UTC(t.$y, b,
|
|
95
|
+
var t = this, o = !!c.u(n) || n, s = c.p(e), p = function(L, b) {
|
|
96
|
+
var R = c.w(t.$u ? Date.UTC(t.$y, b, L) : new Date(t.$y, b, L), t);
|
|
97
97
|
return o ? R : R.endOf(O);
|
|
98
|
-
}, y = function(
|
|
99
|
-
return c.w(t.toDate()[
|
|
98
|
+
}, y = function(L, b) {
|
|
99
|
+
return c.w(t.toDate()[L].apply(t.toDate("s"), (o ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(b)), t);
|
|
100
100
|
}, M = this.$W, x = this.$M, S = this.$D, C = "set" + (this.$u ? "UTC" : "");
|
|
101
101
|
switch (s) {
|
|
102
102
|
case Y:
|
|
@@ -104,7 +104,7 @@ function $e() {
|
|
|
104
104
|
case D:
|
|
105
105
|
return o ? p(1, x) : p(0, x + 1);
|
|
106
106
|
case w:
|
|
107
|
-
var
|
|
107
|
+
var k = this.$locale().weekStart || 0, F = (M < k ? M + 7 : M) - k;
|
|
108
108
|
return p(o ? S - F : S + (6 - F), x);
|
|
109
109
|
case O:
|
|
110
110
|
case f:
|
|
@@ -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 || j;
|
|
152
|
-
var o = e || "YYYY-MM-DDTHH:mm:ssZ", s = c.z(this), p = this.$H, y = this.$m, M = this.$M, x = t.weekdays, S = t.months, C = t.meridiem,
|
|
152
|
+
var o = e || "YYYY-MM-DDTHH:mm:ssZ", s = c.z(this), p = this.$H, y = this.$m, M = this.$M, x = t.weekdays, S = t.months, C = t.meridiem, k = function(b, R, W, J) {
|
|
153
153
|
return b && (b[R] || b(n, o)) || W[R].slice(0, J);
|
|
154
154
|
}, F = function(b) {
|
|
155
155
|
return c.s(p % 12 || 12, b, "0");
|
|
156
|
-
},
|
|
156
|
+
}, L = C || function(b, R, W) {
|
|
157
157
|
var J = b < 12 ? "AM" : "PM";
|
|
158
158
|
return W ? J.toLowerCase() : J;
|
|
159
159
|
};
|
|
@@ -169,9 +169,9 @@ function $e() {
|
|
|
169
169
|
case "MM":
|
|
170
170
|
return c.s(M + 1, 2, "0");
|
|
171
171
|
case "MMM":
|
|
172
|
-
return
|
|
172
|
+
return k(t.monthsShort, M, S, 3);
|
|
173
173
|
case "MMMM":
|
|
174
|
-
return
|
|
174
|
+
return k(S, M);
|
|
175
175
|
case "D":
|
|
176
176
|
return n.$D;
|
|
177
177
|
case "DD":
|
|
@@ -179,9 +179,9 @@ function $e() {
|
|
|
179
179
|
case "d":
|
|
180
180
|
return String(n.$W);
|
|
181
181
|
case "dd":
|
|
182
|
-
return
|
|
182
|
+
return k(t.weekdaysMin, n.$W, x, 2);
|
|
183
183
|
case "ddd":
|
|
184
|
-
return
|
|
184
|
+
return k(t.weekdaysShort, n.$W, x, 3);
|
|
185
185
|
case "dddd":
|
|
186
186
|
return x[n.$W];
|
|
187
187
|
case "H":
|
|
@@ -193,9 +193,9 @@ function $e() {
|
|
|
193
193
|
case "hh":
|
|
194
194
|
return F(2);
|
|
195
195
|
case "a":
|
|
196
|
-
return
|
|
196
|
+
return L(p, y, !0);
|
|
197
197
|
case "A":
|
|
198
|
-
return
|
|
198
|
+
return L(p, y, !1);
|
|
199
199
|
case "m":
|
|
200
200
|
return String(y);
|
|
201
201
|
case "mm":
|
|
@@ -434,6 +434,7 @@ function Pe() {
|
|
|
434
434
|
backToToday: "Текущая дата",
|
|
435
435
|
ok: "ОК",
|
|
436
436
|
clear: "Очистить",
|
|
437
|
+
week: "Неделя",
|
|
437
438
|
month: "Месяц",
|
|
438
439
|
year: "Год",
|
|
439
440
|
timeSelect: "Выбрать время",
|
|
@@ -455,7 +456,7 @@ function Pe() {
|
|
|
455
456
|
return A.default = a, A;
|
|
456
457
|
}
|
|
457
458
|
var Re = Pe();
|
|
458
|
-
const qe = /* @__PURE__ */ _e(Re),
|
|
459
|
+
const qe = /* @__PURE__ */ _e(Re), ke = {
|
|
459
460
|
design: {
|
|
460
461
|
Confirm: {
|
|
461
462
|
cancel: "отмена",
|
|
@@ -474,5 +475,5 @@ const qe = /* @__PURE__ */ _e(Re), Le = {
|
|
|
474
475
|
}
|
|
475
476
|
};
|
|
476
477
|
export {
|
|
477
|
-
|
|
478
|
+
ke as default
|
|
478
479
|
};
|
package/lib/es/locale/vi-VN.js
CHANGED
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -7,7 +7,7 @@ function $e() {
|
|
|
7
7
|
(function(d, a) {
|
|
8
8
|
i.exports = a();
|
|
9
9
|
})(ve, function() {
|
|
10
|
-
var d = 1e3, a = 6e4, h = 36e5, p = "millisecond", c = "second", _ = "minute", x = "hour", Y = "day", N = "week", S = "month", G = "quarter", g = "year",
|
|
10
|
+
var d = 1e3, a = 6e4, h = 36e5, p = "millisecond", c = "second", _ = "minute", x = "hour", Y = "day", N = "week", S = "month", G = "quarter", g = "year", k = "date", X = "Invalid Date", he = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ye = /\[([^\]]+)]|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, _e = { 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
11
|
var r = ["th", "st", "nd", "rd"], e = o % 100;
|
|
12
12
|
return "[" + o + (r[(e - 20) % 10] || r[e] || r[0]) + "]";
|
|
13
13
|
} }, I = function(o, r, e) {
|
|
@@ -23,7 +23,7 @@ function $e() {
|
|
|
23
23
|
}, a: function(o) {
|
|
24
24
|
return o < 0 ? Math.ceil(o) || 0 : Math.floor(o);
|
|
25
25
|
}, p: function(o) {
|
|
26
|
-
return { M: S, y: g, w: N, d: Y, D:
|
|
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
29
|
} }, L = "en", w = {};
|
|
@@ -97,7 +97,7 @@ function $e() {
|
|
|
97
97
|
return s ? O : O.endOf(Y);
|
|
98
98
|
}, y = function(P, D) {
|
|
99
99
|
return f.w(t.toDate()[P].apply(t.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(D)), t);
|
|
100
|
-
}, $ = this.$W, M = this.$M, b = this.$D,
|
|
100
|
+
}, $ = this.$W, M = this.$M, b = this.$D, q = "set" + (this.$u ? "UTC" : "");
|
|
101
101
|
switch (u) {
|
|
102
102
|
case g:
|
|
103
103
|
return s ? l(1, 0) : l(31, 11);
|
|
@@ -107,24 +107,24 @@ function $e() {
|
|
|
107
107
|
var j = this.$locale().weekStart || 0, C = ($ < j ? $ + 7 : $) - j;
|
|
108
108
|
return l(s ? b - C : b + (6 - C), M);
|
|
109
109
|
case Y:
|
|
110
|
-
case
|
|
111
|
-
return y(
|
|
110
|
+
case k:
|
|
111
|
+
return y(q + "Hours", 0);
|
|
112
112
|
case x:
|
|
113
|
-
return y(
|
|
113
|
+
return y(q + "Minutes", 1);
|
|
114
114
|
case _:
|
|
115
|
-
return y(
|
|
115
|
+
return y(q + "Seconds", 2);
|
|
116
116
|
case c:
|
|
117
|
-
return y(
|
|
117
|
+
return y(q + "Milliseconds", 3);
|
|
118
118
|
default:
|
|
119
119
|
return this.clone();
|
|
120
120
|
}
|
|
121
121
|
}, r.endOf = function(e) {
|
|
122
122
|
return this.startOf(e, !1);
|
|
123
123
|
}, r.$set = function(e, n) {
|
|
124
|
-
var t, s = f.p(e), u = "set" + (this.$u ? "UTC" : ""), l = (t = {}, t[Y] = u + "Date", t[
|
|
124
|
+
var t, s = f.p(e), u = "set" + (this.$u ? "UTC" : ""), l = (t = {}, t[Y] = u + "Date", t[k] = u + "Date", t[S] = u + "Month", t[g] = u + "FullYear", t[x] = u + "Hours", t[_] = u + "Minutes", t[c] = u + "Seconds", t[p] = u + "Milliseconds", t)[s], y = s === Y ? this.$D + (n - this.$W) : n;
|
|
125
125
|
if (s === S || s === g) {
|
|
126
|
-
var $ = this.clone().set(
|
|
127
|
-
$.$d[l](y), $.init(), this.$d = $.set(
|
|
126
|
+
var $ = this.clone().set(k, 1);
|
|
127
|
+
$.$d[l](y), $.init(), this.$d = $.set(k, Math.min(this.$D, $.daysInMonth())).$d;
|
|
128
128
|
} else l && this.$d[l](y);
|
|
129
129
|
return this.init(), this;
|
|
130
130
|
}, r.set = function(e, n) {
|
|
@@ -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, b = 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, 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
|
}, C = function(D) {
|
|
155
155
|
return f.s(l % 12 || 12, D, "0");
|
|
156
|
-
}, P =
|
|
156
|
+
}, P = q || function(D, O, T) {
|
|
157
157
|
var F = D < 12 ? "AM" : "PM";
|
|
158
158
|
return T ? F.toLowerCase() : F;
|
|
159
159
|
};
|
|
@@ -267,7 +267,7 @@ function $e() {
|
|
|
267
267
|
return this.$d.toUTCString();
|
|
268
268
|
}, o;
|
|
269
269
|
}(), te = A.prototype;
|
|
270
|
-
return v.prototype = te, [["$ms", p], ["$s", c], ["$m", _], ["$H", x], ["$W", Y], ["$M", S], ["$y", g], ["$D",
|
|
270
|
+
return v.prototype = te, [["$ms", p], ["$s", c], ["$m", _], ["$H", x], ["$W", Y], ["$M", S], ["$y", g], ["$D", k]].forEach(function(o) {
|
|
271
271
|
te[o[1]] = function(r) {
|
|
272
272
|
return this.$g(r, o[0], o[1]);
|
|
273
273
|
};
|
|
@@ -425,6 +425,7 @@ function Pe() {
|
|
|
425
425
|
dateSelect: "选择日期",
|
|
426
426
|
weekSelect: "选择周",
|
|
427
427
|
clear: "清除",
|
|
428
|
+
week: "周",
|
|
428
429
|
month: "月",
|
|
429
430
|
year: "年",
|
|
430
431
|
previousMonth: "上个月 (翻页上键)",
|
|
@@ -444,8 +445,8 @@ function Pe() {
|
|
|
444
445
|
});
|
|
445
446
|
return H.default = a, H;
|
|
446
447
|
}
|
|
447
|
-
var
|
|
448
|
-
const
|
|
448
|
+
var ke = Pe();
|
|
449
|
+
const qe = /* @__PURE__ */ de(ke), Le = {
|
|
449
450
|
design: {
|
|
450
451
|
Confirm: {
|
|
451
452
|
cancel: "取消",
|
|
@@ -453,7 +454,7 @@ const ke = /* @__PURE__ */ de(qe), Le = {
|
|
|
453
454
|
},
|
|
454
455
|
Picker: {
|
|
455
456
|
...be,
|
|
456
|
-
...
|
|
457
|
+
...qe
|
|
457
458
|
},
|
|
458
459
|
CascaderList: {
|
|
459
460
|
empty: "无"
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -104,8 +104,8 @@ function $e() {
|
|
|
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, k = ($ < T ? $ + 7 : $) - T;
|
|
108
|
+
return l(s ? Y - k : Y + (6 - k), M);
|
|
109
109
|
case S:
|
|
110
110
|
case P:
|
|
111
111
|
return y(q + "Hours", 0);
|
|
@@ -149,17 +149,17 @@ 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, q = t.meridiem, T = function(D, w,
|
|
153
|
-
return D && (D[w] || D(n, s)) ||
|
|
154
|
-
},
|
|
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, q = t.meridiem, T = function(D, w, L, Z) {
|
|
153
|
+
return D && (D[w] || D(n, s)) || L[w].slice(0, Z);
|
|
154
|
+
}, k = function(D) {
|
|
155
155
|
return f.s(l % 12 || 12, D, "0");
|
|
156
|
-
}, j = q || function(D, w,
|
|
156
|
+
}, j = q || function(D, w, L) {
|
|
157
157
|
var Z = D < 12 ? "AM" : "PM";
|
|
158
|
-
return
|
|
158
|
+
return L ? Z.toLowerCase() : Z;
|
|
159
159
|
};
|
|
160
160
|
return s.replace(ye, function(D, w) {
|
|
161
|
-
return w || function(
|
|
162
|
-
switch (
|
|
161
|
+
return w || function(L) {
|
|
162
|
+
switch (L) {
|
|
163
163
|
case "YY":
|
|
164
164
|
return String(n.$y).slice(-2);
|
|
165
165
|
case "YYYY":
|
|
@@ -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 k(1);
|
|
193
193
|
case "hh":
|
|
194
|
-
return
|
|
194
|
+
return k(2);
|
|
195
195
|
case "a":
|
|
196
196
|
return j(l, y, !0);
|
|
197
197
|
case "A":
|
|
@@ -425,6 +425,7 @@ function je() {
|
|
|
425
425
|
dateSelect: "選擇日期",
|
|
426
426
|
weekSelect: "選擇周",
|
|
427
427
|
clear: "清除",
|
|
428
|
+
week: "週",
|
|
428
429
|
month: "月",
|
|
429
430
|
year: "年",
|
|
430
431
|
previousMonth: "上個月 (翻頁上鍵)",
|