@jnrs/vue-core 1.2.33 → 1.2.34
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/AGENTS.md +31 -26
- package/CHANGELOG.md +15 -1
- package/dist/components/JnDatetime.vue.d.ts +4 -0
- package/dist/components/JnFileUpload.vue.d.ts +15 -2
- package/dist/components/JnImageView.vue.d.ts +14 -0
- package/dist/components/index.js +1263 -1146
- package/dist/constants/themeOptions.d.ts +12 -12
- package/dist/index-qf5rNcN2.js +167 -0
- package/dist/index.js +1 -1
- package/dist/locales/en/components.d.ts +64 -0
- package/dist/locales/en/index.d.ts +107 -45
- package/dist/locales/index.js +134 -10
- package/dist/locales/zhCn/components.d.ts +64 -0
- package/dist/locales/zhCn/index.d.ts +107 -45
- package/dist/piniaStore/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-DRbGqK4D.js +0 -167
|
@@ -3,46 +3,46 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const LOCALE_OPTIONS: readonly [{
|
|
5
5
|
readonly value: "zhCn";
|
|
6
|
-
readonly label: "
|
|
6
|
+
readonly label: "components.GlobalSetting.languageOptions.zhCn";
|
|
7
7
|
}, {
|
|
8
8
|
readonly value: "en";
|
|
9
|
-
readonly label: "
|
|
9
|
+
readonly label: "components.GlobalSetting.languageOptions.en";
|
|
10
10
|
}];
|
|
11
11
|
/**
|
|
12
12
|
* 主题模式选项
|
|
13
13
|
*/
|
|
14
14
|
export declare const MODE_OPTIONS: readonly [{
|
|
15
15
|
readonly value: "auto";
|
|
16
|
-
readonly label: "
|
|
16
|
+
readonly label: "components.GlobalSetting.themeOptions.auto";
|
|
17
17
|
}, {
|
|
18
18
|
readonly value: "light";
|
|
19
|
-
readonly label: "
|
|
19
|
+
readonly label: "components.GlobalSetting.themeOptions.light";
|
|
20
20
|
}, {
|
|
21
21
|
readonly value: "dark";
|
|
22
|
-
readonly label: "
|
|
22
|
+
readonly label: "components.GlobalSetting.themeOptions.dark";
|
|
23
23
|
}];
|
|
24
24
|
/**
|
|
25
25
|
* 强调色选项
|
|
26
26
|
*/
|
|
27
27
|
export declare const COLOR_OPTIONS: readonly [{
|
|
28
28
|
readonly value: "oklch(0.6 0.19 41)";
|
|
29
|
-
readonly label: "
|
|
29
|
+
readonly label: "components.GlobalSetting.primaryColorOptions.jnrs";
|
|
30
30
|
}, {
|
|
31
31
|
readonly value: "oklch(0.51 0.21 264)";
|
|
32
|
-
readonly label: "
|
|
32
|
+
readonly label: "components.GlobalSetting.primaryColorOptions.azure";
|
|
33
33
|
}, {
|
|
34
34
|
readonly value: "oklch(0.90 0.16 98)";
|
|
35
|
-
readonly label: "
|
|
35
|
+
readonly label: "components.GlobalSetting.primaryColorOptions.moonYellow";
|
|
36
36
|
}, {
|
|
37
37
|
readonly value: "oklch(0.63 0.25 27)";
|
|
38
|
-
readonly label: "
|
|
38
|
+
readonly label: "components.GlobalSetting.primaryColorOptions.jdRed";
|
|
39
39
|
}, {
|
|
40
40
|
readonly value: "oklch(0.65 0.24 33)";
|
|
41
|
-
readonly label: "
|
|
41
|
+
readonly label: "components.GlobalSetting.primaryColorOptions.taobaoRed";
|
|
42
42
|
}, {
|
|
43
43
|
readonly value: "oklch(0.61 0.20 261)";
|
|
44
|
-
readonly label: "
|
|
44
|
+
readonly label: "components.GlobalSetting.primaryColorOptions.dingtalkBlue";
|
|
45
45
|
}, {
|
|
46
46
|
readonly value: "oklch(0.70 0.12 152)";
|
|
47
|
-
readonly label: "
|
|
47
|
+
readonly label: "components.GlobalSetting.primaryColorOptions.wechatGreen";
|
|
48
48
|
}];
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import "pinia-plugin-persistedstate";
|
|
2
|
+
import { defineStore as m } from "pinia";
|
|
3
|
+
import { ref as i, computed as b, watch as h } from "vue";
|
|
4
|
+
import { Fullscreen as S } from "@jnrs/shared";
|
|
5
|
+
import { usePreferredDark as f } from "@vueuse/core";
|
|
6
|
+
import { a as k } from "./index-GnfhAnhF.js";
|
|
7
|
+
const O = m(
|
|
8
|
+
"@jnrs/vue-core/pinia:mock",
|
|
9
|
+
() => ({ useMockServe: i(!1) }),
|
|
10
|
+
{
|
|
11
|
+
persist: {
|
|
12
|
+
pick: ["useMockServe"]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
), C = [
|
|
16
|
+
{ value: "zhCn", label: "components.GlobalSetting.languageOptions.zhCn" },
|
|
17
|
+
{ value: "en", label: "components.GlobalSetting.languageOptions.en" }
|
|
18
|
+
], M = [
|
|
19
|
+
{ value: "auto", label: "components.GlobalSetting.themeOptions.auto" },
|
|
20
|
+
{ value: "light", label: "components.GlobalSetting.themeOptions.light" },
|
|
21
|
+
{ value: "dark", label: "components.GlobalSetting.themeOptions.dark" }
|
|
22
|
+
], w = [
|
|
23
|
+
{ value: "oklch(0.6 0.19 41)", label: "components.GlobalSetting.primaryColorOptions.jnrs" },
|
|
24
|
+
{
|
|
25
|
+
value: "oklch(0.51 0.21 264)",
|
|
26
|
+
label: "components.GlobalSetting.primaryColorOptions.azure"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
value: "oklch(0.90 0.16 98)",
|
|
30
|
+
label: "components.GlobalSetting.primaryColorOptions.moonYellow"
|
|
31
|
+
},
|
|
32
|
+
{ value: "oklch(0.63 0.25 27)", label: "components.GlobalSetting.primaryColorOptions.jdRed" },
|
|
33
|
+
{
|
|
34
|
+
value: "oklch(0.65 0.24 33)",
|
|
35
|
+
label: "components.GlobalSetting.primaryColorOptions.taobaoRed"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
value: "oklch(0.61 0.20 261)",
|
|
39
|
+
label: "components.GlobalSetting.primaryColorOptions.dingtalkBlue"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
value: "oklch(0.70 0.12 152)",
|
|
43
|
+
label: "components.GlobalSetting.primaryColorOptions.wechatGreen"
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
function G(e) {
|
|
47
|
+
return e === "zhCn" || e === "en";
|
|
48
|
+
}
|
|
49
|
+
function U(e) {
|
|
50
|
+
return e === "light" || e === "dark" || e === "auto";
|
|
51
|
+
}
|
|
52
|
+
function j(e) {
|
|
53
|
+
return typeof e == "string" && e.trim() !== "";
|
|
54
|
+
}
|
|
55
|
+
const x = m(
|
|
56
|
+
"@jnrs/vue-core/pinia:system",
|
|
57
|
+
() => {
|
|
58
|
+
const e = i(!1), o = () => e.value = !e.value, s = new S(), l = i(!1), p = async () => {
|
|
59
|
+
await s.toggle(), l.value = s.isFullscreen();
|
|
60
|
+
}, n = i({
|
|
61
|
+
locale: C[0].value,
|
|
62
|
+
mode: M[0].value,
|
|
63
|
+
primaryColor: w[0].value
|
|
64
|
+
}), a = b(() => n.value.mode === "auto" ? d.value ? "dark" : "light" : n.value.mode), d = f();
|
|
65
|
+
return h(
|
|
66
|
+
[() => n.value.mode, d, () => n.value.primaryColor],
|
|
67
|
+
([r, v, g]) => {
|
|
68
|
+
const u = document.documentElement;
|
|
69
|
+
u.classList.remove("light", "dark"), r === "auto" ? u.classList.add(v ? "dark" : "light") : u.classList.add(r), g ? u.style.setProperty("--jnrs-color-primary", g) : u.style.removeProperty("--jnrs-color-primary");
|
|
70
|
+
},
|
|
71
|
+
{ immediate: !0 }
|
|
72
|
+
), {
|
|
73
|
+
theme: n,
|
|
74
|
+
computedThemeMode: a,
|
|
75
|
+
menuCollapse: e,
|
|
76
|
+
documentFullscreen: l,
|
|
77
|
+
toggleCollapse: o,
|
|
78
|
+
toggleFullScreen: p,
|
|
79
|
+
setLocale: (r) => {
|
|
80
|
+
G(r) && (n.value.locale = r);
|
|
81
|
+
},
|
|
82
|
+
setMode: (r) => {
|
|
83
|
+
U(r) && (n.value.mode = r);
|
|
84
|
+
},
|
|
85
|
+
setPrimaryColor: (r) => {
|
|
86
|
+
j(r) && (n.value.primaryColor = r);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
persist: {
|
|
92
|
+
pick: ["theme", "menuCollapse"]
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
), t = [];
|
|
96
|
+
for (let e = 0; e < 256; ++e)
|
|
97
|
+
t.push((e + 256).toString(16).slice(1));
|
|
98
|
+
function L(e, o = 0) {
|
|
99
|
+
return (t[e[o + 0]] + t[e[o + 1]] + t[e[o + 2]] + t[e[o + 3]] + "-" + t[e[o + 4]] + t[e[o + 5]] + "-" + t[e[o + 6]] + t[e[o + 7]] + "-" + t[e[o + 8]] + t[e[o + 9]] + "-" + t[e[o + 10]] + t[e[o + 11]] + t[e[o + 12]] + t[e[o + 13]] + t[e[o + 14]] + t[e[o + 15]]).toLowerCase();
|
|
100
|
+
}
|
|
101
|
+
let c;
|
|
102
|
+
const P = new Uint8Array(16);
|
|
103
|
+
function R() {
|
|
104
|
+
if (!c) {
|
|
105
|
+
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
106
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
107
|
+
c = crypto.getRandomValues.bind(crypto);
|
|
108
|
+
}
|
|
109
|
+
return c(P);
|
|
110
|
+
}
|
|
111
|
+
const D = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), y = { randomUUID: D };
|
|
112
|
+
function I(e, o, s) {
|
|
113
|
+
e = e || {};
|
|
114
|
+
const l = e.random ?? e.rng?.() ?? R();
|
|
115
|
+
if (l.length < 16)
|
|
116
|
+
throw new Error("Random bytes length must be >= 16");
|
|
117
|
+
return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, L(l);
|
|
118
|
+
}
|
|
119
|
+
function _(e, o, s) {
|
|
120
|
+
return y.randomUUID && !e ? y.randomUUID() : I(e);
|
|
121
|
+
}
|
|
122
|
+
const T = m(
|
|
123
|
+
"@jnrs/vue-core/pinia:menu",
|
|
124
|
+
() => {
|
|
125
|
+
const e = i(!1), o = i([]), s = async (n) => {
|
|
126
|
+
if (e.value)
|
|
127
|
+
return o.value;
|
|
128
|
+
l(n), o.value = n, e.value = !0;
|
|
129
|
+
try {
|
|
130
|
+
await k(o.value);
|
|
131
|
+
} catch (a) {
|
|
132
|
+
throw a;
|
|
133
|
+
}
|
|
134
|
+
return o.value;
|
|
135
|
+
}, l = (n) => {
|
|
136
|
+
for (const a of n)
|
|
137
|
+
a.meta.uuid = _(), a.children && l(a.children);
|
|
138
|
+
};
|
|
139
|
+
return { hasFetchedAsyncMenus: e, menus: o, asyncSetMenus: s, clearMenu: () => {
|
|
140
|
+
e.value = !1, o.value = [];
|
|
141
|
+
} };
|
|
142
|
+
}
|
|
143
|
+
// {
|
|
144
|
+
// persist: {
|
|
145
|
+
// pick: ['menus']
|
|
146
|
+
// }
|
|
147
|
+
// }
|
|
148
|
+
);
|
|
149
|
+
console.log(
|
|
150
|
+
"%c✨ 欢迎使用 @jnrs/vue-core/pinia",
|
|
151
|
+
'background: #42B883; color: #39495C; font-weight: bold; padding: 4px 8px; border-radius: 4px; font-family: "Helvetica Neue", sans-serif;'
|
|
152
|
+
);
|
|
153
|
+
const q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
154
|
+
__proto__: null,
|
|
155
|
+
useMenuStore: T,
|
|
156
|
+
useMockStore: O,
|
|
157
|
+
useSystemStore: x
|
|
158
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
159
|
+
export {
|
|
160
|
+
w as C,
|
|
161
|
+
C as L,
|
|
162
|
+
M,
|
|
163
|
+
x as a,
|
|
164
|
+
T as b,
|
|
165
|
+
q as i,
|
|
166
|
+
O as u
|
|
167
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as r } from "./index-GnfhAnhF.js";
|
|
2
|
-
import { i } from "./index-
|
|
2
|
+
import { i } from "./index-qf5rNcN2.js";
|
|
3
3
|
console.log(
|
|
4
4
|
"%c✨ 欢迎使用 @jnrs/vue-core",
|
|
5
5
|
'background: #42B883; color: #39495C; font-weight: bold; padding: 4px 8px; border-radius: 4px; font-family: "Helvetica Neue", sans-serif;'
|
|
@@ -46,5 +46,69 @@ declare const _default: {
|
|
|
46
46
|
messageBoxConfirmTitle: string;
|
|
47
47
|
importSuccess: string;
|
|
48
48
|
};
|
|
49
|
+
JnDateQuery: {
|
|
50
|
+
typeLabels: {
|
|
51
|
+
date: string;
|
|
52
|
+
week: string;
|
|
53
|
+
month: string;
|
|
54
|
+
year: string;
|
|
55
|
+
datetime: string;
|
|
56
|
+
daterange: string;
|
|
57
|
+
datetimerange: string;
|
|
58
|
+
};
|
|
59
|
+
quickButtons: {
|
|
60
|
+
today: string;
|
|
61
|
+
yesterday: string;
|
|
62
|
+
tomorrow: string;
|
|
63
|
+
thisWeek: string;
|
|
64
|
+
lastWeek: string;
|
|
65
|
+
nextWeek: string;
|
|
66
|
+
thisMonth: string;
|
|
67
|
+
lastMonth: string;
|
|
68
|
+
nextMonth: string;
|
|
69
|
+
thisYear: string;
|
|
70
|
+
lastYear: string;
|
|
71
|
+
nextYear: string;
|
|
72
|
+
};
|
|
73
|
+
formats: {
|
|
74
|
+
month: string;
|
|
75
|
+
year: string;
|
|
76
|
+
datetime: string;
|
|
77
|
+
datetimerange: string;
|
|
78
|
+
week: string;
|
|
79
|
+
daterange: string;
|
|
80
|
+
date: string;
|
|
81
|
+
};
|
|
82
|
+
placeholder: string;
|
|
83
|
+
startPlaceholder: string;
|
|
84
|
+
endPlaceholder: string;
|
|
85
|
+
rangeSeparator: string;
|
|
86
|
+
};
|
|
87
|
+
JnFileUpload: {
|
|
88
|
+
upload: string;
|
|
89
|
+
fileType: string;
|
|
90
|
+
fileSize: string;
|
|
91
|
+
fileSizeLimit: string;
|
|
92
|
+
errorMessages: {
|
|
93
|
+
maxFiles: string;
|
|
94
|
+
invalidType: string;
|
|
95
|
+
maxSize: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
JnSelectTemplate: {
|
|
99
|
+
moreData: string;
|
|
100
|
+
singleSelect: string;
|
|
101
|
+
multipleSelect: string;
|
|
102
|
+
selected: string;
|
|
103
|
+
index: string;
|
|
104
|
+
select: string;
|
|
105
|
+
confirm: string;
|
|
106
|
+
cancel: string;
|
|
107
|
+
clear: string;
|
|
108
|
+
all: string;
|
|
109
|
+
};
|
|
110
|
+
JnTable: {
|
|
111
|
+
index: string;
|
|
112
|
+
};
|
|
49
113
|
};
|
|
50
114
|
export default _default;
|
|
@@ -1,53 +1,115 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
en: string;
|
|
11
|
-
};
|
|
12
|
-
theme: string;
|
|
13
|
-
themeOptions: {
|
|
14
|
-
light: string;
|
|
15
|
-
dark: string;
|
|
16
|
-
auto: string;
|
|
17
|
-
};
|
|
18
|
-
primaryColor: string;
|
|
19
|
-
primaryColorOptions: {
|
|
20
|
-
jnrs: string;
|
|
21
|
-
azure: string;
|
|
22
|
-
moonYellow: string;
|
|
23
|
-
jdRed: string;
|
|
24
|
-
taobaoRed: string;
|
|
25
|
-
dingtalkBlue: string;
|
|
26
|
-
wechatGreen: string;
|
|
27
|
-
};
|
|
2
|
+
components: {
|
|
3
|
+
GlobalSetting: {
|
|
4
|
+
title: string;
|
|
5
|
+
isMockServer: string;
|
|
6
|
+
language: string;
|
|
7
|
+
languageOptions: {
|
|
8
|
+
zhCn: string;
|
|
9
|
+
en: string;
|
|
28
10
|
};
|
|
29
|
-
|
|
30
|
-
|
|
11
|
+
theme: string;
|
|
12
|
+
themeOptions: {
|
|
13
|
+
light: string;
|
|
14
|
+
dark: string;
|
|
15
|
+
auto: string;
|
|
31
16
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
17
|
+
primaryColor: string;
|
|
18
|
+
primaryColorOptions: {
|
|
19
|
+
jnrs: string;
|
|
20
|
+
azure: string;
|
|
21
|
+
moonYellow: string;
|
|
22
|
+
jdRed: string;
|
|
23
|
+
taobaoRed: string;
|
|
24
|
+
dingtalkBlue: string;
|
|
25
|
+
wechatGreen: string;
|
|
35
26
|
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
27
|
+
};
|
|
28
|
+
JnImageView: {
|
|
29
|
+
noDisplay: string;
|
|
30
|
+
};
|
|
31
|
+
JnPdfView: {
|
|
32
|
+
viewPDF: string;
|
|
33
|
+
downloadFile: string;
|
|
34
|
+
};
|
|
35
|
+
JnImportAndExport: {
|
|
36
|
+
dialogTitle: string;
|
|
37
|
+
dialogFormItem: string;
|
|
38
|
+
downloadImportTemplate: string;
|
|
39
|
+
submit: string;
|
|
40
|
+
loading: string;
|
|
41
|
+
noImportApi: string;
|
|
42
|
+
rulesImport: string;
|
|
43
|
+
exportDynamicTitle: string;
|
|
44
|
+
confirmButtonText: string;
|
|
45
|
+
cancelButtonText: string;
|
|
46
|
+
messageBoxConfirm: string;
|
|
47
|
+
messageBoxConfirmTitle: string;
|
|
48
|
+
importSuccess: string;
|
|
49
|
+
};
|
|
50
|
+
JnDateQuery: {
|
|
51
|
+
typeLabels: {
|
|
52
|
+
date: string;
|
|
53
|
+
week: string;
|
|
54
|
+
month: string;
|
|
55
|
+
year: string;
|
|
56
|
+
datetime: string;
|
|
57
|
+
daterange: string;
|
|
58
|
+
datetimerange: string;
|
|
59
|
+
};
|
|
60
|
+
quickButtons: {
|
|
61
|
+
today: string;
|
|
62
|
+
yesterday: string;
|
|
63
|
+
tomorrow: string;
|
|
64
|
+
thisWeek: string;
|
|
65
|
+
lastWeek: string;
|
|
66
|
+
nextWeek: string;
|
|
67
|
+
thisMonth: string;
|
|
68
|
+
lastMonth: string;
|
|
69
|
+
nextMonth: string;
|
|
70
|
+
thisYear: string;
|
|
71
|
+
lastYear: string;
|
|
72
|
+
nextYear: string;
|
|
50
73
|
};
|
|
74
|
+
formats: {
|
|
75
|
+
month: string;
|
|
76
|
+
year: string;
|
|
77
|
+
datetime: string;
|
|
78
|
+
datetimerange: string;
|
|
79
|
+
week: string;
|
|
80
|
+
daterange: string;
|
|
81
|
+
date: string;
|
|
82
|
+
};
|
|
83
|
+
placeholder: string;
|
|
84
|
+
startPlaceholder: string;
|
|
85
|
+
endPlaceholder: string;
|
|
86
|
+
rangeSeparator: string;
|
|
87
|
+
};
|
|
88
|
+
JnFileUpload: {
|
|
89
|
+
upload: string;
|
|
90
|
+
fileType: string;
|
|
91
|
+
fileSize: string;
|
|
92
|
+
fileSizeLimit: string;
|
|
93
|
+
errorMessages: {
|
|
94
|
+
maxFiles: string;
|
|
95
|
+
invalidType: string;
|
|
96
|
+
maxSize: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
JnSelectTemplate: {
|
|
100
|
+
moreData: string;
|
|
101
|
+
singleSelect: string;
|
|
102
|
+
multipleSelect: string;
|
|
103
|
+
selected: string;
|
|
104
|
+
index: string;
|
|
105
|
+
select: string;
|
|
106
|
+
confirm: string;
|
|
107
|
+
cancel: string;
|
|
108
|
+
clear: string;
|
|
109
|
+
all: string;
|
|
110
|
+
};
|
|
111
|
+
JnTable: {
|
|
112
|
+
index: string;
|
|
51
113
|
};
|
|
52
114
|
};
|
|
53
115
|
};
|
package/dist/locales/index.js
CHANGED
|
@@ -45,12 +45,74 @@ const e = {
|
|
|
45
45
|
messageBoxConfirm: "确定要导出吗?",
|
|
46
46
|
messageBoxConfirmTitle: "操作确认",
|
|
47
47
|
importSuccess: "导入成功"
|
|
48
|
+
},
|
|
49
|
+
JnDateQuery: {
|
|
50
|
+
typeLabels: {
|
|
51
|
+
date: "日",
|
|
52
|
+
week: "周",
|
|
53
|
+
month: "月",
|
|
54
|
+
year: "年",
|
|
55
|
+
datetime: "日期时间",
|
|
56
|
+
daterange: "任意区间",
|
|
57
|
+
datetimerange: "时间区间"
|
|
58
|
+
},
|
|
59
|
+
quickButtons: {
|
|
60
|
+
today: "今天",
|
|
61
|
+
yesterday: "前一天",
|
|
62
|
+
tomorrow: "后一天",
|
|
63
|
+
thisWeek: "本周",
|
|
64
|
+
lastWeek: "上周",
|
|
65
|
+
nextWeek: "下周",
|
|
66
|
+
thisMonth: "本月",
|
|
67
|
+
lastMonth: "上个月",
|
|
68
|
+
nextMonth: "下个月",
|
|
69
|
+
thisYear: "今年",
|
|
70
|
+
lastYear: "去年",
|
|
71
|
+
nextYear: "明年"
|
|
72
|
+
},
|
|
73
|
+
formats: {
|
|
74
|
+
month: "YYYY 年 MM 月",
|
|
75
|
+
year: "YYYY 年",
|
|
76
|
+
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
77
|
+
datetimerange: "YYYY-MM-DD HH:mm:ss",
|
|
78
|
+
week: "YYYY-MM-DD",
|
|
79
|
+
daterange: "YYYY-MM-DD",
|
|
80
|
+
date: "YYYY-MM-DD"
|
|
81
|
+
},
|
|
82
|
+
placeholder: "选择日期",
|
|
83
|
+
startPlaceholder: "开始日期",
|
|
84
|
+
endPlaceholder: "结束日期",
|
|
85
|
+
rangeSeparator: "至"
|
|
86
|
+
},
|
|
87
|
+
JnFileUpload: {
|
|
88
|
+
upload: "上传",
|
|
89
|
+
fileType: "文件类型为",
|
|
90
|
+
fileSize: "文件大小为",
|
|
91
|
+
fileSizeLimit: "以内",
|
|
92
|
+
errorMessages: {
|
|
93
|
+
maxFiles: "最多只能上传 {count} 个文件!",
|
|
94
|
+
invalidType: "上传文件只能是 {types} 格式!",
|
|
95
|
+
maxSize: "上传的文件大小不能超过 {size} MB!"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
JnSelectTemplate: {
|
|
99
|
+
moreData: "更多数据",
|
|
100
|
+
singleSelect: "单选",
|
|
101
|
+
multipleSelect: "多选",
|
|
102
|
+
selected: "已选择",
|
|
103
|
+
index: "序号",
|
|
104
|
+
select: "选择",
|
|
105
|
+
confirm: "确定",
|
|
106
|
+
cancel: "取消",
|
|
107
|
+
clear: "清空",
|
|
108
|
+
all: "全部"
|
|
109
|
+
},
|
|
110
|
+
JnTable: {
|
|
111
|
+
index: "序号"
|
|
48
112
|
}
|
|
113
|
+
}, a = {
|
|
114
|
+
components: e
|
|
49
115
|
}, t = {
|
|
50
|
-
"@jnrs/vue-core": {
|
|
51
|
-
components: e
|
|
52
|
-
}
|
|
53
|
-
}, o = {
|
|
54
116
|
GlobalSetting: {
|
|
55
117
|
title: "Global Preferences",
|
|
56
118
|
isMockServer: "Use Mock Server",
|
|
@@ -97,13 +159,75 @@ const e = {
|
|
|
97
159
|
messageBoxConfirm: "Are you sure you want to export?",
|
|
98
160
|
messageBoxConfirmTitle: "Confirmation",
|
|
99
161
|
importSuccess: "Import successful"
|
|
162
|
+
},
|
|
163
|
+
JnDateQuery: {
|
|
164
|
+
typeLabels: {
|
|
165
|
+
date: "Day",
|
|
166
|
+
week: "Week",
|
|
167
|
+
month: "Month",
|
|
168
|
+
year: "Year",
|
|
169
|
+
datetime: "DateTime",
|
|
170
|
+
daterange: "Custom Range",
|
|
171
|
+
datetimerange: "DateTime Range"
|
|
172
|
+
},
|
|
173
|
+
quickButtons: {
|
|
174
|
+
today: "Today",
|
|
175
|
+
yesterday: "Yesterday",
|
|
176
|
+
tomorrow: "Tomorrow",
|
|
177
|
+
thisWeek: "This Week",
|
|
178
|
+
lastWeek: "Last Week",
|
|
179
|
+
nextWeek: "Next Week",
|
|
180
|
+
thisMonth: "This Month",
|
|
181
|
+
lastMonth: "Last Month",
|
|
182
|
+
nextMonth: "Next Month",
|
|
183
|
+
thisYear: "This Year",
|
|
184
|
+
lastYear: "Last Year",
|
|
185
|
+
nextYear: "Next Year"
|
|
186
|
+
},
|
|
187
|
+
formats: {
|
|
188
|
+
month: "MMMM YYYY",
|
|
189
|
+
year: "YYYY",
|
|
190
|
+
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
191
|
+
datetimerange: "YYYY-MM-DD HH:mm:ss",
|
|
192
|
+
week: "YYYY-MM-DD",
|
|
193
|
+
daterange: "YYYY-MM-DD",
|
|
194
|
+
date: "YYYY-MM-DD"
|
|
195
|
+
},
|
|
196
|
+
placeholder: "Select Date",
|
|
197
|
+
startPlaceholder: "Start Date",
|
|
198
|
+
endPlaceholder: "End Date",
|
|
199
|
+
rangeSeparator: "to"
|
|
200
|
+
},
|
|
201
|
+
JnFileUpload: {
|
|
202
|
+
upload: "Upload",
|
|
203
|
+
fileType: "File type:",
|
|
204
|
+
fileSize: "File size:",
|
|
205
|
+
fileSizeLimit: "or less",
|
|
206
|
+
errorMessages: {
|
|
207
|
+
maxFiles: "Maximum {count} files allowed!",
|
|
208
|
+
invalidType: "Only {types} files are allowed!",
|
|
209
|
+
maxSize: "File size cannot exceed {size} MB!"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
JnSelectTemplate: {
|
|
213
|
+
moreData: "More Data",
|
|
214
|
+
singleSelect: "Single Select",
|
|
215
|
+
multipleSelect: "Multiple Select",
|
|
216
|
+
selected: "Selected",
|
|
217
|
+
index: "Index",
|
|
218
|
+
select: "Select",
|
|
219
|
+
confirm: "Confirm",
|
|
220
|
+
cancel: "Cancel",
|
|
221
|
+
clear: "Clear",
|
|
222
|
+
all: "All"
|
|
223
|
+
},
|
|
224
|
+
JnTable: {
|
|
225
|
+
index: "Index"
|
|
100
226
|
}
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
components: o
|
|
104
|
-
}
|
|
227
|
+
}, o = {
|
|
228
|
+
components: t
|
|
105
229
|
};
|
|
106
230
|
export {
|
|
107
|
-
|
|
108
|
-
|
|
231
|
+
o as en,
|
|
232
|
+
a as zhCn
|
|
109
233
|
};
|
|
@@ -46,5 +46,69 @@ declare const _default: {
|
|
|
46
46
|
messageBoxConfirmTitle: string;
|
|
47
47
|
importSuccess: string;
|
|
48
48
|
};
|
|
49
|
+
JnDateQuery: {
|
|
50
|
+
typeLabels: {
|
|
51
|
+
date: string;
|
|
52
|
+
week: string;
|
|
53
|
+
month: string;
|
|
54
|
+
year: string;
|
|
55
|
+
datetime: string;
|
|
56
|
+
daterange: string;
|
|
57
|
+
datetimerange: string;
|
|
58
|
+
};
|
|
59
|
+
quickButtons: {
|
|
60
|
+
today: string;
|
|
61
|
+
yesterday: string;
|
|
62
|
+
tomorrow: string;
|
|
63
|
+
thisWeek: string;
|
|
64
|
+
lastWeek: string;
|
|
65
|
+
nextWeek: string;
|
|
66
|
+
thisMonth: string;
|
|
67
|
+
lastMonth: string;
|
|
68
|
+
nextMonth: string;
|
|
69
|
+
thisYear: string;
|
|
70
|
+
lastYear: string;
|
|
71
|
+
nextYear: string;
|
|
72
|
+
};
|
|
73
|
+
formats: {
|
|
74
|
+
month: string;
|
|
75
|
+
year: string;
|
|
76
|
+
datetime: string;
|
|
77
|
+
datetimerange: string;
|
|
78
|
+
week: string;
|
|
79
|
+
daterange: string;
|
|
80
|
+
date: string;
|
|
81
|
+
};
|
|
82
|
+
placeholder: string;
|
|
83
|
+
startPlaceholder: string;
|
|
84
|
+
endPlaceholder: string;
|
|
85
|
+
rangeSeparator: string;
|
|
86
|
+
};
|
|
87
|
+
JnFileUpload: {
|
|
88
|
+
upload: string;
|
|
89
|
+
fileType: string;
|
|
90
|
+
fileSize: string;
|
|
91
|
+
fileSizeLimit: string;
|
|
92
|
+
errorMessages: {
|
|
93
|
+
maxFiles: string;
|
|
94
|
+
invalidType: string;
|
|
95
|
+
maxSize: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
JnSelectTemplate: {
|
|
99
|
+
moreData: string;
|
|
100
|
+
singleSelect: string;
|
|
101
|
+
multipleSelect: string;
|
|
102
|
+
selected: string;
|
|
103
|
+
index: string;
|
|
104
|
+
select: string;
|
|
105
|
+
confirm: string;
|
|
106
|
+
cancel: string;
|
|
107
|
+
clear: string;
|
|
108
|
+
all: string;
|
|
109
|
+
};
|
|
110
|
+
JnTable: {
|
|
111
|
+
index: string;
|
|
112
|
+
};
|
|
49
113
|
};
|
|
50
114
|
export default _default;
|