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