@univerjs/design 0.4.2 → 0.5.0-alpha.0
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 +31 -21
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -0
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/es/index.js +15873 -16044
- package/lib/es/locale/en-US.js +167 -0
- package/lib/es/locale/fa-IR.js +167 -0
- package/lib/es/locale/ru-RU.js +461 -0
- package/lib/es/locale/vi-VN.js +447 -0
- package/lib/es/locale/zh-CN.js +451 -0
- package/lib/es/locale/zh-TW.js +453 -0
- package/lib/index.css +1 -1
- package/lib/types/components/draggable-list/DraggableList.d.ts +1 -0
- package/lib/types/components/input-number/InputNumber.d.ts +5 -0
- package/lib/types/components/popup/index.d.ts +0 -1
- package/lib/types/components/tree/Tree.d.ts +14 -19
- package/lib/types/components/tree/util.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/umd/index.js +31 -21
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +28 -19
- package/lib/locale/en-US.json +0 -71
- package/lib/locale/fa-IR.json +0 -71
- package/lib/locale/ru-RU.json +0 -93
- package/lib/locale/vi-VN.json +0 -131
- package/lib/locale/zh-CN.json +0 -131
- package/lib/locale/zh-TW.json +0 -131
- package/lib/types/components/popup/RectPopup.d.ts +0 -44
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
var h = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function S(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
5
|
+
var f = { exports: {} };
|
|
6
|
+
(function(e, a) {
|
|
7
|
+
(function(o, t) {
|
|
8
|
+
e.exports = t();
|
|
9
|
+
})(h, function() {
|
|
10
|
+
return { 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 t = ["th", "st", "nd", "rd"], r = o % 100;
|
|
12
|
+
return "[" + o + (t[(r - 20) % 10] || t[r] || t[0]) + "]";
|
|
13
|
+
} };
|
|
14
|
+
});
|
|
15
|
+
})(f);
|
|
16
|
+
var g = f.exports;
|
|
17
|
+
const j = /* @__PURE__ */ S(g);
|
|
18
|
+
var u = {}, l = { exports: {} };
|
|
19
|
+
(function(e) {
|
|
20
|
+
function a(o) {
|
|
21
|
+
return o && o.__esModule ? o : {
|
|
22
|
+
default: o
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
e.exports = a, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
26
|
+
})(l);
|
|
27
|
+
var O = l.exports, y = { exports: {} }, d = { exports: {} }, x = { exports: {} }, v = { exports: {} };
|
|
28
|
+
(function(e) {
|
|
29
|
+
function a(o) {
|
|
30
|
+
"@babel/helpers - typeof";
|
|
31
|
+
return e.exports = a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
32
|
+
return typeof t;
|
|
33
|
+
} : function(t) {
|
|
34
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
35
|
+
}, e.exports.__esModule = !0, e.exports.default = e.exports, a(o);
|
|
36
|
+
}
|
|
37
|
+
e.exports = a, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
38
|
+
})(v);
|
|
39
|
+
var _ = v.exports, b = { exports: {} };
|
|
40
|
+
(function(e) {
|
|
41
|
+
var a = _.default;
|
|
42
|
+
function o(t, r) {
|
|
43
|
+
if (a(t) != "object" || !t) return t;
|
|
44
|
+
var n = t[Symbol.toPrimitive];
|
|
45
|
+
if (n !== void 0) {
|
|
46
|
+
var s = n.call(t, r || "default");
|
|
47
|
+
if (a(s) != "object") return s;
|
|
48
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
49
|
+
}
|
|
50
|
+
return (r === "string" ? String : Number)(t);
|
|
51
|
+
}
|
|
52
|
+
e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
53
|
+
})(b);
|
|
54
|
+
var w = b.exports;
|
|
55
|
+
(function(e) {
|
|
56
|
+
var a = _.default, o = w;
|
|
57
|
+
function t(r) {
|
|
58
|
+
var n = o(r, "string");
|
|
59
|
+
return a(n) == "symbol" ? n : n + "";
|
|
60
|
+
}
|
|
61
|
+
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
62
|
+
})(x);
|
|
63
|
+
var M = x.exports;
|
|
64
|
+
(function(e) {
|
|
65
|
+
var a = M;
|
|
66
|
+
function o(t, r, n) {
|
|
67
|
+
return (r = a(r)) in t ? Object.defineProperty(t, r, {
|
|
68
|
+
value: n,
|
|
69
|
+
enumerable: !0,
|
|
70
|
+
configurable: !0,
|
|
71
|
+
writable: !0
|
|
72
|
+
}) : t[r] = n, t;
|
|
73
|
+
}
|
|
74
|
+
e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
75
|
+
})(d);
|
|
76
|
+
var D = d.exports;
|
|
77
|
+
(function(e) {
|
|
78
|
+
var a = D;
|
|
79
|
+
function o(r, n) {
|
|
80
|
+
var s = Object.keys(r);
|
|
81
|
+
if (Object.getOwnPropertySymbols) {
|
|
82
|
+
var p = Object.getOwnPropertySymbols(r);
|
|
83
|
+
n && (p = p.filter(function(P) {
|
|
84
|
+
return Object.getOwnPropertyDescriptor(r, P).enumerable;
|
|
85
|
+
})), s.push.apply(s, p);
|
|
86
|
+
}
|
|
87
|
+
return s;
|
|
88
|
+
}
|
|
89
|
+
function t(r) {
|
|
90
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
91
|
+
var s = arguments[n] != null ? arguments[n] : {};
|
|
92
|
+
n % 2 ? o(Object(s), !0).forEach(function(p) {
|
|
93
|
+
a(r, p, s[p]);
|
|
94
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(s)) : o(Object(s)).forEach(function(p) {
|
|
95
|
+
Object.defineProperty(r, p, Object.getOwnPropertyDescriptor(s, p));
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
return r;
|
|
99
|
+
}
|
|
100
|
+
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
101
|
+
})(y);
|
|
102
|
+
var Y = y.exports, i = {};
|
|
103
|
+
Object.defineProperty(i, "__esModule", {
|
|
104
|
+
value: !0
|
|
105
|
+
});
|
|
106
|
+
i.commonLocale = void 0;
|
|
107
|
+
i.commonLocale = {
|
|
108
|
+
yearFormat: "YYYY",
|
|
109
|
+
dayFormat: "D",
|
|
110
|
+
cellMeridiemFormat: "A",
|
|
111
|
+
monthBeforeYear: !0
|
|
112
|
+
};
|
|
113
|
+
var C = O.default;
|
|
114
|
+
Object.defineProperty(u, "__esModule", {
|
|
115
|
+
value: !0
|
|
116
|
+
});
|
|
117
|
+
var m = u.default = void 0, c = C(Y), E = i, T = (0, c.default)((0, c.default)({}, E.commonLocale), {}, {
|
|
118
|
+
locale: "en_US",
|
|
119
|
+
today: "Today",
|
|
120
|
+
now: "Now",
|
|
121
|
+
backToToday: "Back to today",
|
|
122
|
+
ok: "OK",
|
|
123
|
+
clear: "Clear",
|
|
124
|
+
month: "Month",
|
|
125
|
+
year: "Year",
|
|
126
|
+
timeSelect: "select time",
|
|
127
|
+
dateSelect: "select date",
|
|
128
|
+
weekSelect: "Choose a week",
|
|
129
|
+
monthSelect: "Choose a month",
|
|
130
|
+
yearSelect: "Choose a year",
|
|
131
|
+
decadeSelect: "Choose a decade",
|
|
132
|
+
dateFormat: "M/D/YYYY",
|
|
133
|
+
dateTimeFormat: "M/D/YYYY HH:mm:ss",
|
|
134
|
+
previousMonth: "Previous month (PageUp)",
|
|
135
|
+
nextMonth: "Next month (PageDown)",
|
|
136
|
+
previousYear: "Last year (Control + left)",
|
|
137
|
+
nextYear: "Next year (Control + right)",
|
|
138
|
+
previousDecade: "Last decade",
|
|
139
|
+
nextDecade: "Next decade",
|
|
140
|
+
previousCentury: "Last century",
|
|
141
|
+
nextCentury: "Next century"
|
|
142
|
+
});
|
|
143
|
+
m = u.default = T;
|
|
144
|
+
const k = {
|
|
145
|
+
design: {
|
|
146
|
+
Confirm: {
|
|
147
|
+
cancel: "cancel",
|
|
148
|
+
confirm: "ok"
|
|
149
|
+
},
|
|
150
|
+
Slider: {
|
|
151
|
+
resetTo: "Reset to"
|
|
152
|
+
},
|
|
153
|
+
Picker: {
|
|
154
|
+
...j,
|
|
155
|
+
...m
|
|
156
|
+
},
|
|
157
|
+
CascaderList: {
|
|
158
|
+
empty: "None"
|
|
159
|
+
},
|
|
160
|
+
Select: {
|
|
161
|
+
empty: "None"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
export {
|
|
166
|
+
k as default
|
|
167
|
+
};
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
var h = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function S(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
5
|
+
var f = { exports: {} };
|
|
6
|
+
(function(e, a) {
|
|
7
|
+
(function(o, t) {
|
|
8
|
+
e.exports = t();
|
|
9
|
+
})(h, function() {
|
|
10
|
+
return { 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 t = ["th", "st", "nd", "rd"], r = o % 100;
|
|
12
|
+
return "[" + o + (t[(r - 20) % 10] || t[r] || t[0]) + "]";
|
|
13
|
+
} };
|
|
14
|
+
});
|
|
15
|
+
})(f);
|
|
16
|
+
var g = f.exports;
|
|
17
|
+
const j = /* @__PURE__ */ S(g);
|
|
18
|
+
var u = {}, l = { exports: {} };
|
|
19
|
+
(function(e) {
|
|
20
|
+
function a(o) {
|
|
21
|
+
return o && o.__esModule ? o : {
|
|
22
|
+
default: o
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
e.exports = a, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
26
|
+
})(l);
|
|
27
|
+
var O = l.exports, y = { exports: {} }, d = { exports: {} }, x = { exports: {} }, v = { exports: {} };
|
|
28
|
+
(function(e) {
|
|
29
|
+
function a(o) {
|
|
30
|
+
"@babel/helpers - typeof";
|
|
31
|
+
return e.exports = a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
32
|
+
return typeof t;
|
|
33
|
+
} : function(t) {
|
|
34
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
35
|
+
}, e.exports.__esModule = !0, e.exports.default = e.exports, a(o);
|
|
36
|
+
}
|
|
37
|
+
e.exports = a, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
38
|
+
})(v);
|
|
39
|
+
var _ = v.exports, b = { exports: {} };
|
|
40
|
+
(function(e) {
|
|
41
|
+
var a = _.default;
|
|
42
|
+
function o(t, r) {
|
|
43
|
+
if (a(t) != "object" || !t) return t;
|
|
44
|
+
var n = t[Symbol.toPrimitive];
|
|
45
|
+
if (n !== void 0) {
|
|
46
|
+
var s = n.call(t, r || "default");
|
|
47
|
+
if (a(s) != "object") return s;
|
|
48
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
49
|
+
}
|
|
50
|
+
return (r === "string" ? String : Number)(t);
|
|
51
|
+
}
|
|
52
|
+
e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
53
|
+
})(b);
|
|
54
|
+
var w = b.exports;
|
|
55
|
+
(function(e) {
|
|
56
|
+
var a = _.default, o = w;
|
|
57
|
+
function t(r) {
|
|
58
|
+
var n = o(r, "string");
|
|
59
|
+
return a(n) == "symbol" ? n : n + "";
|
|
60
|
+
}
|
|
61
|
+
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
62
|
+
})(x);
|
|
63
|
+
var M = x.exports;
|
|
64
|
+
(function(e) {
|
|
65
|
+
var a = M;
|
|
66
|
+
function o(t, r, n) {
|
|
67
|
+
return (r = a(r)) in t ? Object.defineProperty(t, r, {
|
|
68
|
+
value: n,
|
|
69
|
+
enumerable: !0,
|
|
70
|
+
configurable: !0,
|
|
71
|
+
writable: !0
|
|
72
|
+
}) : t[r] = n, t;
|
|
73
|
+
}
|
|
74
|
+
e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
75
|
+
})(d);
|
|
76
|
+
var D = d.exports;
|
|
77
|
+
(function(e) {
|
|
78
|
+
var a = D;
|
|
79
|
+
function o(r, n) {
|
|
80
|
+
var s = Object.keys(r);
|
|
81
|
+
if (Object.getOwnPropertySymbols) {
|
|
82
|
+
var p = Object.getOwnPropertySymbols(r);
|
|
83
|
+
n && (p = p.filter(function(P) {
|
|
84
|
+
return Object.getOwnPropertyDescriptor(r, P).enumerable;
|
|
85
|
+
})), s.push.apply(s, p);
|
|
86
|
+
}
|
|
87
|
+
return s;
|
|
88
|
+
}
|
|
89
|
+
function t(r) {
|
|
90
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
91
|
+
var s = arguments[n] != null ? arguments[n] : {};
|
|
92
|
+
n % 2 ? o(Object(s), !0).forEach(function(p) {
|
|
93
|
+
a(r, p, s[p]);
|
|
94
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(s)) : o(Object(s)).forEach(function(p) {
|
|
95
|
+
Object.defineProperty(r, p, Object.getOwnPropertyDescriptor(s, p));
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
return r;
|
|
99
|
+
}
|
|
100
|
+
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
101
|
+
})(y);
|
|
102
|
+
var Y = y.exports, i = {};
|
|
103
|
+
Object.defineProperty(i, "__esModule", {
|
|
104
|
+
value: !0
|
|
105
|
+
});
|
|
106
|
+
i.commonLocale = void 0;
|
|
107
|
+
i.commonLocale = {
|
|
108
|
+
yearFormat: "YYYY",
|
|
109
|
+
dayFormat: "D",
|
|
110
|
+
cellMeridiemFormat: "A",
|
|
111
|
+
monthBeforeYear: !0
|
|
112
|
+
};
|
|
113
|
+
var C = O.default;
|
|
114
|
+
Object.defineProperty(u, "__esModule", {
|
|
115
|
+
value: !0
|
|
116
|
+
});
|
|
117
|
+
var m = u.default = void 0, c = C(Y), E = i, T = (0, c.default)((0, c.default)({}, E.commonLocale), {}, {
|
|
118
|
+
locale: "en_US",
|
|
119
|
+
today: "Today",
|
|
120
|
+
now: "Now",
|
|
121
|
+
backToToday: "Back to today",
|
|
122
|
+
ok: "OK",
|
|
123
|
+
clear: "Clear",
|
|
124
|
+
month: "Month",
|
|
125
|
+
year: "Year",
|
|
126
|
+
timeSelect: "select time",
|
|
127
|
+
dateSelect: "select date",
|
|
128
|
+
weekSelect: "Choose a week",
|
|
129
|
+
monthSelect: "Choose a month",
|
|
130
|
+
yearSelect: "Choose a year",
|
|
131
|
+
decadeSelect: "Choose a decade",
|
|
132
|
+
dateFormat: "M/D/YYYY",
|
|
133
|
+
dateTimeFormat: "M/D/YYYY HH:mm:ss",
|
|
134
|
+
previousMonth: "Previous month (PageUp)",
|
|
135
|
+
nextMonth: "Next month (PageDown)",
|
|
136
|
+
previousYear: "Last year (Control + left)",
|
|
137
|
+
nextYear: "Next year (Control + right)",
|
|
138
|
+
previousDecade: "Last decade",
|
|
139
|
+
nextDecade: "Next decade",
|
|
140
|
+
previousCentury: "Last century",
|
|
141
|
+
nextCentury: "Next century"
|
|
142
|
+
});
|
|
143
|
+
m = u.default = T;
|
|
144
|
+
const k = {
|
|
145
|
+
design: {
|
|
146
|
+
Confirm: {
|
|
147
|
+
cancel: "لغو",
|
|
148
|
+
confirm: "باشه"
|
|
149
|
+
},
|
|
150
|
+
Slider: {
|
|
151
|
+
resetTo: "بازنشانی به"
|
|
152
|
+
},
|
|
153
|
+
Picker: {
|
|
154
|
+
...j,
|
|
155
|
+
...m
|
|
156
|
+
},
|
|
157
|
+
CascaderList: {
|
|
158
|
+
empty: "هیچ کدام"
|
|
159
|
+
},
|
|
160
|
+
Select: {
|
|
161
|
+
empty: "هیچکدام"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
export {
|
|
166
|
+
k as default
|
|
167
|
+
};
|