yc-design-vue 1.8.2 → 1.8.4
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/es/Progress/ProgressCircle.vue.js +1 -1
- package/es/Typography/TypographyBase.vue.js +2 -2
- package/es/_shared/icons/IconCopy.vue.js +17 -1
- package/es/_shared/icons/IconCopy.vue2.js +1 -17
- package/es/_shared/icons/IconEdit.vue.js +17 -1
- package/es/_shared/icons/IconEdit.vue2.js +1 -17
- package/es/_shared/icons/IconExclamation.vue.js +1 -28
- package/es/_shared/icons/IconExclamation.vue2.js +28 -1
- package/es/_shared/locale/i18n.js +6 -5
- package/es/_shared/locale/lang/ar-eg.json.js +251 -0
- package/es/_shared/locale/lang/de-de.json.d.ts +207 -0
- package/es/_shared/locale/lang/de-de.json.js +251 -0
- package/es/_shared/locale/lang/en-us.json.d.ts +210 -0
- package/es/_shared/locale/lang/en-us.json.js +256 -0
- package/es/_shared/locale/lang/es-es.json.d.ts +207 -0
- package/es/_shared/locale/lang/es-es.json.js +251 -0
- package/es/_shared/locale/lang/fr-fr.json.d.ts +207 -0
- package/es/_shared/locale/lang/fr-fr.json.js +251 -0
- package/es/_shared/locale/lang/id-id.json.d.ts +207 -0
- package/es/_shared/locale/lang/id-id.json.js +251 -0
- package/es/_shared/locale/lang/it-it.json.d.ts +207 -0
- package/es/_shared/locale/lang/it-it.json.js +251 -0
- package/es/_shared/locale/lang/ja-jp.json.d.ts +255 -0
- package/es/_shared/locale/lang/ja-jp.json.js +301 -0
- package/es/_shared/locale/lang/km-kh.json.d.ts +207 -0
- package/es/_shared/locale/lang/km-kh.json.js +251 -0
- package/es/_shared/locale/lang/ko-kr.json.d.ts +207 -0
- package/es/_shared/locale/lang/ko-kr.json.js +251 -0
- package/es/_shared/locale/lang/ms-my.json.d.ts +207 -0
- package/es/_shared/locale/lang/ms-my.json.js +251 -0
- package/es/_shared/locale/lang/nl-nl.json.d.ts +255 -0
- package/es/_shared/locale/lang/nl-nl.json.js +301 -0
- package/es/_shared/locale/lang/pt-pt.json.d.ts +207 -0
- package/es/_shared/locale/lang/pt-pt.json.js +251 -0
- package/es/_shared/locale/lang/ru-ru.json.d.ts +255 -0
- package/es/_shared/locale/lang/ru-ru.json.js +301 -0
- package/es/_shared/locale/lang/th-th.json.d.ts +207 -0
- package/es/_shared/locale/lang/th-th.json.js +251 -0
- package/es/_shared/locale/lang/vi-vn.json.d.ts +207 -0
- package/es/_shared/locale/lang/vi-vn.json.js +251 -0
- package/es/_shared/locale/lang/zh-cn.json.d.ts +255 -0
- package/es/_shared/locale/lang/zh-cn.json.js +301 -0
- package/es/_shared/locale/lang/zh-tw.json.d.ts +255 -0
- package/es/_shared/locale/lang/zh-tw.json.js +301 -0
- package/lib/Progress/ProgressCircle.vue.js +1 -1
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue2.js +1 -1
- package/lib/_shared/icons/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue2.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
- package/lib/_shared/locale/i18n.js +1 -1
- package/lib/_shared/locale/lang/ar-eg.json.js +1 -0
- package/lib/_shared/locale/lang/de-de.json.d.ts +207 -0
- package/lib/_shared/locale/lang/de-de.json.js +1 -0
- package/lib/_shared/locale/lang/en-us.json.d.ts +210 -0
- package/lib/_shared/locale/lang/en-us.json.js +1 -0
- package/lib/_shared/locale/lang/es-es.json.d.ts +207 -0
- package/lib/_shared/locale/lang/es-es.json.js +1 -0
- package/lib/_shared/locale/lang/fr-fr.json.d.ts +207 -0
- package/lib/_shared/locale/lang/fr-fr.json.js +1 -0
- package/lib/_shared/locale/lang/id-id.json.d.ts +207 -0
- package/lib/_shared/locale/lang/id-id.json.js +1 -0
- package/lib/_shared/locale/lang/it-it.json.d.ts +207 -0
- package/lib/_shared/locale/lang/it-it.json.js +1 -0
- package/lib/_shared/locale/lang/ja-jp.json.d.ts +255 -0
- package/lib/_shared/locale/lang/ja-jp.json.js +1 -0
- package/lib/_shared/locale/lang/km-kh.json.d.ts +207 -0
- package/lib/_shared/locale/lang/km-kh.json.js +1 -0
- package/lib/_shared/locale/lang/ko-kr.json.d.ts +207 -0
- package/lib/_shared/locale/lang/ko-kr.json.js +1 -0
- package/lib/_shared/locale/lang/ms-my.json.d.ts +207 -0
- package/lib/_shared/locale/lang/ms-my.json.js +1 -0
- package/lib/_shared/locale/lang/nl-nl.json.d.ts +255 -0
- package/lib/_shared/locale/lang/nl-nl.json.js +1 -0
- package/lib/_shared/locale/lang/pt-pt.json.d.ts +207 -0
- package/lib/_shared/locale/lang/pt-pt.json.js +1 -0
- package/lib/_shared/locale/lang/ru-ru.json.d.ts +255 -0
- package/lib/_shared/locale/lang/ru-ru.json.js +1 -0
- package/lib/_shared/locale/lang/th-th.json.d.ts +207 -0
- package/lib/_shared/locale/lang/th-th.json.js +1 -0
- package/lib/_shared/locale/lang/vi-vn.json.d.ts +207 -0
- package/lib/_shared/locale/lang/vi-vn.json.js +1 -0
- package/lib/_shared/locale/lang/zh-cn.json.d.ts +255 -0
- package/lib/_shared/locale/lang/zh-cn.json.js +1 -0
- package/lib/_shared/locale/lang/zh-tw.json.d.ts +255 -0
- package/lib/_shared/locale/lang/zh-tw.json.js +1 -0
- package/package.json +1 -1
- package/es/_shared/locale/lang/ar-eg.d.ts +0 -205
- package/es/_shared/locale/lang/ar-eg.js +0 -153
- package/es/_shared/locale/lang/de-de.d.ts +0 -205
- package/es/_shared/locale/lang/de-de.js +0 -153
- package/es/_shared/locale/lang/en-us.d.ts +0 -253
- package/es/_shared/locale/lang/en-us.js +0 -158
- package/es/_shared/locale/lang/es-es.d.ts +0 -205
- package/es/_shared/locale/lang/es-es.js +0 -153
- package/es/_shared/locale/lang/fr-fr.d.ts +0 -205
- package/es/_shared/locale/lang/fr-fr.js +0 -153
- package/es/_shared/locale/lang/id-id.d.ts +0 -205
- package/es/_shared/locale/lang/id-id.js +0 -153
- package/es/_shared/locale/lang/it-it.d.ts +0 -205
- package/es/_shared/locale/lang/it-it.js +0 -153
- package/es/_shared/locale/lang/ja-jp.d.ts +0 -253
- package/es/_shared/locale/lang/ja-jp.js +0 -201
- package/es/_shared/locale/lang/km-kh.d.ts +0 -205
- package/es/_shared/locale/lang/km-kh.js +0 -153
- package/es/_shared/locale/lang/ko-kr.d.ts +0 -205
- package/es/_shared/locale/lang/ko-kr.js +0 -153
- package/es/_shared/locale/lang/ms-my.d.ts +0 -205
- package/es/_shared/locale/lang/ms-my.js +0 -153
- package/es/_shared/locale/lang/nl-nl.d.ts +0 -253
- package/es/_shared/locale/lang/nl-nl.js +0 -201
- package/es/_shared/locale/lang/pt-pt.d.ts +0 -205
- package/es/_shared/locale/lang/pt-pt.js +0 -153
- package/es/_shared/locale/lang/ru-ru.d.ts +0 -253
- package/es/_shared/locale/lang/ru-ru.js +0 -201
- package/es/_shared/locale/lang/th-th.d.ts +0 -205
- package/es/_shared/locale/lang/th-th.js +0 -153
- package/es/_shared/locale/lang/vi-vn.d.ts +0 -205
- package/es/_shared/locale/lang/vi-vn.js +0 -153
- package/es/_shared/locale/lang/zh-cn.js +0 -201
- package/es/_shared/locale/lang/zh-tw.d.ts +0 -253
- package/es/_shared/locale/lang/zh-tw.js +0 -201
- package/es/node_modules/b-validate/es/is.js +0 -27
- package/es/node_modules/b-validate/es/locale/en-US.js +0 -50
- package/es/node_modules/b-validate/es/rules/base.js +0 -86
- package/es/node_modules/b-validate/es/util.js +0 -25
- package/lib/_shared/locale/lang/ar-eg.d.ts +0 -205
- package/lib/_shared/locale/lang/ar-eg.js +0 -1
- package/lib/_shared/locale/lang/de-de.d.ts +0 -205
- package/lib/_shared/locale/lang/de-de.js +0 -1
- package/lib/_shared/locale/lang/en-us.d.ts +0 -253
- package/lib/_shared/locale/lang/en-us.js +0 -1
- package/lib/_shared/locale/lang/es-es.d.ts +0 -205
- package/lib/_shared/locale/lang/es-es.js +0 -1
- package/lib/_shared/locale/lang/fr-fr.d.ts +0 -205
- package/lib/_shared/locale/lang/fr-fr.js +0 -1
- package/lib/_shared/locale/lang/id-id.d.ts +0 -205
- package/lib/_shared/locale/lang/id-id.js +0 -1
- package/lib/_shared/locale/lang/it-it.d.ts +0 -205
- package/lib/_shared/locale/lang/it-it.js +0 -1
- package/lib/_shared/locale/lang/ja-jp.d.ts +0 -253
- package/lib/_shared/locale/lang/ja-jp.js +0 -1
- package/lib/_shared/locale/lang/km-kh.d.ts +0 -205
- package/lib/_shared/locale/lang/km-kh.js +0 -1
- package/lib/_shared/locale/lang/ko-kr.d.ts +0 -205
- package/lib/_shared/locale/lang/ko-kr.js +0 -1
- package/lib/_shared/locale/lang/ms-my.d.ts +0 -205
- package/lib/_shared/locale/lang/ms-my.js +0 -1
- package/lib/_shared/locale/lang/nl-nl.d.ts +0 -253
- package/lib/_shared/locale/lang/nl-nl.js +0 -1
- package/lib/_shared/locale/lang/pt-pt.d.ts +0 -205
- package/lib/_shared/locale/lang/pt-pt.js +0 -1
- package/lib/_shared/locale/lang/ru-ru.d.ts +0 -253
- package/lib/_shared/locale/lang/ru-ru.js +0 -1
- package/lib/_shared/locale/lang/th-th.d.ts +0 -205
- package/lib/_shared/locale/lang/th-th.js +0 -1
- package/lib/_shared/locale/lang/vi-vn.d.ts +0 -205
- package/lib/_shared/locale/lang/vi-vn.js +0 -1
- package/lib/_shared/locale/lang/zh-cn.js +0 -1
- package/lib/_shared/locale/lang/zh-tw.d.ts +0 -253
- package/lib/_shared/locale/lang/zh-tw.js +0 -1
- package/lib/node_modules/b-validate/es/is.js +0 -1
- package/lib/node_modules/b-validate/es/locale/en-US.js +0 -1
- package/lib/node_modules/b-validate/es/rules/base.js +0 -1
- package/lib/node_modules/b-validate/es/util.js +0 -1
@@ -6,7 +6,7 @@ import "../_shared/utils/time.js";
|
|
6
6
|
import "../Empty/index.js";
|
7
7
|
/* empty css */
|
8
8
|
import _sfc_main$1 from "../_shared/icons/IconCheck.vue.js";
|
9
|
-
import _sfc_main$2 from "../_shared/icons/IconExclamation.
|
9
|
+
import _sfc_main$2 from "../_shared/icons/IconExclamation.vue2.js";
|
10
10
|
import { TYPE_ICON_COLOR_MAP } from "../_shared/constants/index.js";
|
11
11
|
const _hoisted_1 = ["aria-valuenow"];
|
12
12
|
const _hoisted_2 = ["viewBox"];
|
@@ -5,8 +5,8 @@ import { getDomText, sleep } from "../_shared/utils/dom.js";
|
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../Empty/index.js";
|
7
7
|
/* empty css */
|
8
|
-
import _sfc_main$3 from "../_shared/icons/IconCopy.
|
9
|
-
import _sfc_main$1 from "../_shared/icons/IconEdit.
|
8
|
+
import _sfc_main$3 from "../_shared/icons/IconCopy.vue.js";
|
9
|
+
import _sfc_main$1 from "../_shared/icons/IconEdit.vue.js";
|
10
10
|
import _sfc_main$2 from "../_shared/icons/IconInfo.vue.js";
|
11
11
|
import useControlValue from "../_shared/utils/control.js";
|
12
12
|
import Input from "../Input/index.js";
|
@@ -1,4 +1,20 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
+
/* empty css */
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
+
__name: "IconCopy",
|
6
|
+
setup(__props) {
|
7
|
+
return (_ctx, _cache) => {
|
8
|
+
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
+
createElementVNode("path", { d: "M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z" }, null, -1)
|
11
|
+
])),
|
12
|
+
_: 1,
|
13
|
+
__: [0]
|
14
|
+
}, 16);
|
15
|
+
};
|
16
|
+
}
|
17
|
+
});
|
2
18
|
export {
|
3
19
|
_sfc_main as default
|
4
20
|
};
|
@@ -1,20 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
-
/* empty css */
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
-
__name: "IconCopy",
|
6
|
-
setup(__props) {
|
7
|
-
return (_ctx, _cache) => {
|
8
|
-
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
-
createElementVNode("path", { d: "M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z" }, null, -1)
|
11
|
-
])),
|
12
|
-
_: 1,
|
13
|
-
__: [0]
|
14
|
-
}, 16);
|
15
|
-
};
|
16
|
-
}
|
17
|
-
});
|
1
|
+
import _sfc_main from "./IconCopy.vue.js";
|
18
2
|
export {
|
19
3
|
_sfc_main as default
|
20
4
|
};
|
@@ -1,4 +1,20 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
+
/* empty css */
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
+
__name: "IconEdit",
|
6
|
+
setup(__props) {
|
7
|
+
return (_ctx, _cache) => {
|
8
|
+
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
+
createElementVNode("path", { d: "m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36" }, null, -1)
|
11
|
+
])),
|
12
|
+
_: 1,
|
13
|
+
__: [0]
|
14
|
+
}, 16);
|
15
|
+
};
|
16
|
+
}
|
17
|
+
});
|
2
18
|
export {
|
3
19
|
_sfc_main as default
|
4
20
|
};
|
@@ -1,20 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
-
/* empty css */
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
-
__name: "IconEdit",
|
6
|
-
setup(__props) {
|
7
|
-
return (_ctx, _cache) => {
|
8
|
-
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
-
createElementVNode("path", { d: "m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36" }, null, -1)
|
11
|
-
])),
|
12
|
-
_: 1,
|
13
|
-
__: [0]
|
14
|
-
}, 16);
|
15
|
-
};
|
16
|
-
}
|
17
|
-
});
|
1
|
+
import _sfc_main from "./IconEdit.vue.js";
|
18
2
|
export {
|
19
3
|
_sfc_main as default
|
20
4
|
};
|
@@ -1,31 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
-
/* empty css */
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
-
__name: "IconExclamation",
|
6
|
-
setup(__props) {
|
7
|
-
return (_ctx, _cache) => {
|
8
|
-
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
-
createElementVNode("path", { d: "M23 9h2v21h-2z" }, null, -1),
|
11
|
-
createElementVNode("path", {
|
12
|
-
fill: "currentColor",
|
13
|
-
stroke: "none",
|
14
|
-
d: "M23 9h2v21h-2z"
|
15
|
-
}, null, -1),
|
16
|
-
createElementVNode("path", { d: "M23 37h2v2h-2z" }, null, -1),
|
17
|
-
createElementVNode("path", {
|
18
|
-
fill: "currentColor",
|
19
|
-
stroke: "none",
|
20
|
-
d: "M23 37h2v2h-2z"
|
21
|
-
}, null, -1)
|
22
|
-
])),
|
23
|
-
_: 1,
|
24
|
-
__: [0]
|
25
|
-
}, 16);
|
26
|
-
};
|
27
|
-
}
|
28
|
-
});
|
1
|
+
import _sfc_main from "./IconExclamation.vue2.js";
|
29
2
|
export {
|
30
3
|
_sfc_main as default
|
31
4
|
};
|
@@ -1,4 +1,31 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
+
/* empty css */
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
+
__name: "IconExclamation",
|
6
|
+
setup(__props) {
|
7
|
+
return (_ctx, _cache) => {
|
8
|
+
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
+
createElementVNode("path", { d: "M23 9h2v21h-2z" }, null, -1),
|
11
|
+
createElementVNode("path", {
|
12
|
+
fill: "currentColor",
|
13
|
+
stroke: "none",
|
14
|
+
d: "M23 9h2v21h-2z"
|
15
|
+
}, null, -1),
|
16
|
+
createElementVNode("path", { d: "M23 37h2v2h-2z" }, null, -1),
|
17
|
+
createElementVNode("path", {
|
18
|
+
fill: "currentColor",
|
19
|
+
stroke: "none",
|
20
|
+
d: "M23 37h2v2h-2z"
|
21
|
+
}, null, -1)
|
22
|
+
])),
|
23
|
+
_: 1,
|
24
|
+
__: [0]
|
25
|
+
}, 16);
|
26
|
+
};
|
27
|
+
}
|
28
|
+
});
|
2
29
|
export {
|
3
30
|
_sfc_main as default
|
4
31
|
};
|
@@ -1,17 +1,17 @@
|
|
1
|
-
import
|
1
|
+
import zhCN from "./lang/zh-cn.json.js";
|
2
2
|
import { createI18n } from "../../node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js";
|
3
3
|
const i18n = createI18n({
|
4
4
|
locale: "zh-CN",
|
5
5
|
fallbackLocale: "zh-CN",
|
6
6
|
messages: {
|
7
|
-
"zh-CN":
|
7
|
+
"zh-CN": zhCN
|
8
8
|
},
|
9
9
|
globalInjection: true,
|
10
10
|
missingWarn: false,
|
11
11
|
fallbackWarn: false
|
12
12
|
});
|
13
13
|
const i18nGlobal = i18n.global;
|
14
|
-
const langModules = /* @__PURE__ */ Object.assign({ "./lang/ar-eg.
|
14
|
+
const langModules = /* @__PURE__ */ Object.assign({ "./lang/ar-eg.json": () => import("./lang/ar-eg.json.js"), "./lang/de-de.json": () => import("./lang/de-de.json.js"), "./lang/en-us.json": () => import("./lang/en-us.json.js"), "./lang/es-es.json": () => import("./lang/es-es.json.js"), "./lang/fr-fr.json": () => import("./lang/fr-fr.json.js"), "./lang/id-id.json": () => import("./lang/id-id.json.js"), "./lang/it-it.json": () => import("./lang/it-it.json.js"), "./lang/ja-jp.json": () => import("./lang/ja-jp.json.js"), "./lang/km-kh.json": () => import("./lang/km-kh.json.js"), "./lang/ko-kr.json": () => import("./lang/ko-kr.json.js"), "./lang/ms-my.json": () => import("./lang/ms-my.json.js"), "./lang/nl-nl.json": () => import("./lang/nl-nl.json.js"), "./lang/pt-pt.json": () => import("./lang/pt-pt.json.js"), "./lang/ru-ru.json": () => import("./lang/ru-ru.json.js"), "./lang/th-th.json": () => import("./lang/th-th.json.js"), "./lang/vi-vn.json": () => import("./lang/vi-vn.json.js"), "./lang/zh-cn.json": () => import("./lang/zh-cn.json.js"), "./lang/zh-tw.json": () => import("./lang/zh-tw.json.js") });
|
15
15
|
async function loadLanguageAsync(locale) {
|
16
16
|
const loadedLanguages = Object.keys(i18nGlobal.messages.value);
|
17
17
|
if (i18nGlobal.locale.value === locale || loadedLanguages.includes(locale)) {
|
@@ -20,14 +20,15 @@ async function loadLanguageAsync(locale) {
|
|
20
20
|
}
|
21
21
|
try {
|
22
22
|
const localeName = locale.split("-").map((v) => v.toLocaleLowerCase()).join("-");
|
23
|
-
const modulePath = `./lang/${localeName}.
|
23
|
+
const modulePath = `./lang/${localeName}.json`;
|
24
24
|
if (langModules[modulePath]) {
|
25
25
|
const module = await langModules[modulePath]();
|
26
|
+
console.log(module.default, locale);
|
26
27
|
i18nGlobal.setLocaleMessage(locale, module.default);
|
27
28
|
i18nGlobal.locale.value = locale;
|
28
29
|
return locale;
|
29
30
|
} else {
|
30
|
-
throw new Error(`无法找到语言文件: ${localeName}.
|
31
|
+
throw new Error(`无法找到语言文件: ${localeName}.json`);
|
31
32
|
}
|
32
33
|
} catch (error) {
|
33
34
|
console.error(`无法加载语言文件 ${locale}.ts:`, error);
|
@@ -0,0 +1,251 @@
|
|
1
|
+
const empty = {
|
2
|
+
description: "لايوجد بيانات"
|
3
|
+
};
|
4
|
+
const drawer = {
|
5
|
+
okText: "موافق",
|
6
|
+
cancelText: "إلغاء"
|
7
|
+
};
|
8
|
+
const popconfirm = {
|
9
|
+
okText: "موافق",
|
10
|
+
cancelText: "إلغاء"
|
11
|
+
};
|
12
|
+
const modal = {
|
13
|
+
okText: "موافق",
|
14
|
+
cancelText: "إلغاء"
|
15
|
+
};
|
16
|
+
const pagination = {
|
17
|
+
goto: "اذهب إلى",
|
18
|
+
page: "الصفحة",
|
19
|
+
countPerPage: "عنصر / صفحة",
|
20
|
+
total: "{0} الإجمالي"
|
21
|
+
};
|
22
|
+
const table = {
|
23
|
+
okText: "موافق",
|
24
|
+
resetText: "إعادة تعيين"
|
25
|
+
};
|
26
|
+
const upload = {
|
27
|
+
start: "بداية",
|
28
|
+
cancel: "يلغي",
|
29
|
+
"delete": "حذف",
|
30
|
+
retry: "انقر للمحاول مجددا",
|
31
|
+
buttonText: "انقر للتحميل",
|
32
|
+
preview: "معاينة",
|
33
|
+
drag: "انقر أو اسحب الملف إلى هذه المنطقة للتحميل",
|
34
|
+
dragHover: "حرر الملف وابدأ في التحميل",
|
35
|
+
error: "التحميل فشل"
|
36
|
+
};
|
37
|
+
const calendar = {
|
38
|
+
formatYear: "YYYY",
|
39
|
+
formatMonth: "MMMM YYYY",
|
40
|
+
today: "اليوم",
|
41
|
+
view: {
|
42
|
+
month: "شهر",
|
43
|
+
year: "عام",
|
44
|
+
week: "أسبوع",
|
45
|
+
day: "يوم"
|
46
|
+
},
|
47
|
+
month: {
|
48
|
+
long: {
|
49
|
+
January: "ديسمبر",
|
50
|
+
February: "نوفمبر",
|
51
|
+
March: "أكتوبر",
|
52
|
+
April: "سبتمبر",
|
53
|
+
May: " أغسطس",
|
54
|
+
June: "يوليه",
|
55
|
+
July: "يونيو",
|
56
|
+
August: "مايو",
|
57
|
+
September: "أبريل",
|
58
|
+
October: "مارس",
|
59
|
+
November: "فبراير",
|
60
|
+
December: "يناير"
|
61
|
+
},
|
62
|
+
short: {
|
63
|
+
January: "ديسمبر",
|
64
|
+
February: "نوفمبر",
|
65
|
+
March: "أكتوبر",
|
66
|
+
April: "سبتمبر",
|
67
|
+
May: " أغسطس",
|
68
|
+
June: "يوليه",
|
69
|
+
July: "يونيو",
|
70
|
+
August: "مايو",
|
71
|
+
September: "أبريل",
|
72
|
+
October: "مارس",
|
73
|
+
November: "فبراير",
|
74
|
+
December: "يناير"
|
75
|
+
}
|
76
|
+
},
|
77
|
+
week: {
|
78
|
+
long: {
|
79
|
+
self: "أسبوع",
|
80
|
+
monday: "الجمعة",
|
81
|
+
tuesday: "الخميس",
|
82
|
+
wednesday: "الأربعاء",
|
83
|
+
thursday: "الثلاثاء",
|
84
|
+
friday: "الإثنين",
|
85
|
+
saturday: "السبت",
|
86
|
+
sunday: "الأحد"
|
87
|
+
},
|
88
|
+
short: {
|
89
|
+
self: "أسبوع",
|
90
|
+
monday: "الجمعة",
|
91
|
+
tuesday: "الخميس",
|
92
|
+
wednesday: "الأربعاء",
|
93
|
+
thursday: "الثلاثاء",
|
94
|
+
friday: "الإثنين",
|
95
|
+
saturday: "السبت",
|
96
|
+
sunday: "الأحد"
|
97
|
+
}
|
98
|
+
}
|
99
|
+
};
|
100
|
+
const datePicker = {
|
101
|
+
view: {
|
102
|
+
month: "شهر",
|
103
|
+
year: "عام",
|
104
|
+
week: "أسبوع",
|
105
|
+
day: "يوم"
|
106
|
+
},
|
107
|
+
month: {
|
108
|
+
long: {
|
109
|
+
January: "ديسمبر",
|
110
|
+
February: "نوفمبر",
|
111
|
+
March: "أكتوبر",
|
112
|
+
April: "سبتمبر",
|
113
|
+
May: " أغسطس",
|
114
|
+
June: "يوليه",
|
115
|
+
July: "يونيو",
|
116
|
+
August: "مايو",
|
117
|
+
September: "أبريل",
|
118
|
+
October: "مارس",
|
119
|
+
November: "فبراير",
|
120
|
+
December: "يناير"
|
121
|
+
},
|
122
|
+
short: {
|
123
|
+
January: "ديسمبر",
|
124
|
+
February: "نوفمبر",
|
125
|
+
March: "أكتوبر",
|
126
|
+
April: "سبتمبر",
|
127
|
+
May: " أغسطس",
|
128
|
+
June: "يوليه",
|
129
|
+
July: "يونيو",
|
130
|
+
August: "مايو",
|
131
|
+
September: "أبريل",
|
132
|
+
October: "مارس",
|
133
|
+
November: "فبراير",
|
134
|
+
December: "يناير"
|
135
|
+
}
|
136
|
+
},
|
137
|
+
week: {
|
138
|
+
long: {
|
139
|
+
self: "أسبوع",
|
140
|
+
monday: "الجمعة",
|
141
|
+
tuesday: "الخميس",
|
142
|
+
wednesday: "الأربعاء",
|
143
|
+
thursday: "الثلاثاء",
|
144
|
+
friday: "الإثنين",
|
145
|
+
saturday: "السبت",
|
146
|
+
sunday: "الأحد"
|
147
|
+
},
|
148
|
+
short: {
|
149
|
+
self: "أسبوع",
|
150
|
+
monday: "الجمعة",
|
151
|
+
tuesday: "الخميس",
|
152
|
+
wednesday: "الأربعاء",
|
153
|
+
thursday: "الثلاثاء",
|
154
|
+
friday: "الإثنين",
|
155
|
+
saturday: "السبت",
|
156
|
+
sunday: "الأحد"
|
157
|
+
}
|
158
|
+
},
|
159
|
+
placeholder: {
|
160
|
+
date: "الرجاء تحديد تاريخ",
|
161
|
+
week: "الرجاء تحديد أسبوع",
|
162
|
+
month: "الرجاء تحديد شهر",
|
163
|
+
year: "الرجاء تحديد عام",
|
164
|
+
quarter: "الرجاء تحديد ربع",
|
165
|
+
time: "فترة الاختيار"
|
166
|
+
},
|
167
|
+
rangePlaceholder: {
|
168
|
+
date: [
|
169
|
+
"تاريخ البدء",
|
170
|
+
"تاريخ الانتهاء"
|
171
|
+
],
|
172
|
+
week: [
|
173
|
+
"أسبوع البدء",
|
174
|
+
"نهاية الأسبوع"
|
175
|
+
],
|
176
|
+
month: [
|
177
|
+
"شهر البدء",
|
178
|
+
"نهاية الشهر"
|
179
|
+
],
|
180
|
+
year: [
|
181
|
+
"سنة البدء",
|
182
|
+
"نهاية عام"
|
183
|
+
],
|
184
|
+
quarter: [
|
185
|
+
"بداية ربع السنة",
|
186
|
+
"نهاية الربع"
|
187
|
+
],
|
188
|
+
time: [
|
189
|
+
"وقت البدء",
|
190
|
+
"وقت النهاية"
|
191
|
+
]
|
192
|
+
},
|
193
|
+
selectTime: "فترة الاختيار",
|
194
|
+
today: "اليوم",
|
195
|
+
now: "الآن",
|
196
|
+
ok: "موافق"
|
197
|
+
};
|
198
|
+
const image = {
|
199
|
+
loading: "loading"
|
200
|
+
};
|
201
|
+
const imagePreview = {
|
202
|
+
fullScreen: "كامل الشاشة",
|
203
|
+
rotateRight: "استدارة لليمين",
|
204
|
+
rotateLeft: "استدر يسارا",
|
205
|
+
zoomIn: "تكبير",
|
206
|
+
zoomOut: "تصغير",
|
207
|
+
originalSize: "الحجم الأصلي"
|
208
|
+
};
|
209
|
+
const typography = {
|
210
|
+
copy: "ينسخ",
|
211
|
+
copied: "نسخ",
|
212
|
+
edit: "تعديل",
|
213
|
+
collapse: "يطوى",
|
214
|
+
expand: "وسعت"
|
215
|
+
};
|
216
|
+
const colorPicker = {
|
217
|
+
history: "ألوان تاريخية",
|
218
|
+
preset: "ألوان النظام المضبوطة مسبقاً",
|
219
|
+
empty: "غير متوفرة"
|
220
|
+
};
|
221
|
+
const arEg = {
|
222
|
+
empty,
|
223
|
+
drawer,
|
224
|
+
popconfirm,
|
225
|
+
modal,
|
226
|
+
pagination,
|
227
|
+
table,
|
228
|
+
upload,
|
229
|
+
calendar,
|
230
|
+
datePicker,
|
231
|
+
image,
|
232
|
+
imagePreview,
|
233
|
+
typography,
|
234
|
+
colorPicker
|
235
|
+
};
|
236
|
+
export {
|
237
|
+
calendar,
|
238
|
+
colorPicker,
|
239
|
+
datePicker,
|
240
|
+
arEg as default,
|
241
|
+
drawer,
|
242
|
+
empty,
|
243
|
+
image,
|
244
|
+
imagePreview,
|
245
|
+
modal,
|
246
|
+
pagination,
|
247
|
+
popconfirm,
|
248
|
+
table,
|
249
|
+
typography,
|
250
|
+
upload
|
251
|
+
};
|
@@ -0,0 +1,207 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
"empty": {
|
3
|
+
"description": "Keine Daten"
|
4
|
+
},
|
5
|
+
"drawer": {
|
6
|
+
"okText": "OK",
|
7
|
+
"cancelText": "Abbrechen"
|
8
|
+
},
|
9
|
+
"popconfirm": {
|
10
|
+
"okText": "OK",
|
11
|
+
"cancelText": "Abbrechen"
|
12
|
+
},
|
13
|
+
"modal": {
|
14
|
+
"okText": "OK",
|
15
|
+
"cancelText": "Abbrechen"
|
16
|
+
},
|
17
|
+
"pagination": {
|
18
|
+
"goto": "Gehe zu",
|
19
|
+
"page": "",
|
20
|
+
"countPerPage": "/ Seite",
|
21
|
+
"total": "Gesamt {0}"
|
22
|
+
},
|
23
|
+
"table": {
|
24
|
+
"okText": "OK",
|
25
|
+
"resetText": "Zurücksetzen"
|
26
|
+
},
|
27
|
+
"upload": {
|
28
|
+
"start": "Anfang",
|
29
|
+
"cancel": "Abbrechen",
|
30
|
+
"delete": "löschen",
|
31
|
+
"retry": "Klicken Sie hier, um es erneut zu versuchen",
|
32
|
+
"buttonText": "Zum Hochladen klicken",
|
33
|
+
"preview": "Vorschau",
|
34
|
+
"drag": "Klicken oder ziehen Sie Dateien, um sie hier hochzuladen",
|
35
|
+
"dragHover": "Geben Sie die Datei frei und starten Sie den Upload",
|
36
|
+
"error": "Upload fehlgeschlagen"
|
37
|
+
},
|
38
|
+
"calendar": {
|
39
|
+
"formatYear": "YYYY",
|
40
|
+
"formatMonth": "MMM YYYY",
|
41
|
+
"today": "Heute",
|
42
|
+
"view": {
|
43
|
+
"month": "Monat",
|
44
|
+
"year": "Jahr",
|
45
|
+
"week": "Woche",
|
46
|
+
"day": "Tag"
|
47
|
+
},
|
48
|
+
"month": {
|
49
|
+
"long": {
|
50
|
+
"January": "Januar",
|
51
|
+
"February": "Februar",
|
52
|
+
"March": "März",
|
53
|
+
"April": "April",
|
54
|
+
"May": "Mai",
|
55
|
+
"June": "Juni",
|
56
|
+
"July": "Juli",
|
57
|
+
"August": "August",
|
58
|
+
"September": "September",
|
59
|
+
"October": "Oktober",
|
60
|
+
"November": "November",
|
61
|
+
"December": "Dezember"
|
62
|
+
},
|
63
|
+
"short": {
|
64
|
+
"January": "Jan",
|
65
|
+
"February": "Feb",
|
66
|
+
"March": "Mär",
|
67
|
+
"April": "Apr",
|
68
|
+
"May": "Mai",
|
69
|
+
"June": "Jun",
|
70
|
+
"July": "Jul",
|
71
|
+
"August": "Aug",
|
72
|
+
"September": "Sep",
|
73
|
+
"October": "Okt",
|
74
|
+
"November": "Nov",
|
75
|
+
"December": "Dez"
|
76
|
+
}
|
77
|
+
},
|
78
|
+
"week": {
|
79
|
+
"long": {
|
80
|
+
"self": "Woche",
|
81
|
+
"monday": "Montag",
|
82
|
+
"tuesday": "Dienstag",
|
83
|
+
"wednesday": "Mittwoch",
|
84
|
+
"thursday": "Donnerstag",
|
85
|
+
"friday": "Freitag",
|
86
|
+
"saturday": "Samstag",
|
87
|
+
"sunday": "Sonntag"
|
88
|
+
},
|
89
|
+
"short": {
|
90
|
+
"self": "Woche",
|
91
|
+
"monday": "Mo.",
|
92
|
+
"tuesday": "Di.",
|
93
|
+
"wednesday": "Mi.",
|
94
|
+
"thursday": "Do.",
|
95
|
+
"friday": "Fr.",
|
96
|
+
"saturday": "Sa.",
|
97
|
+
"sunday": "So."
|
98
|
+
}
|
99
|
+
}
|
100
|
+
},
|
101
|
+
"datePicker": {
|
102
|
+
"view": {
|
103
|
+
"month": "Monat",
|
104
|
+
"year": "Jahr",
|
105
|
+
"week": "Woche",
|
106
|
+
"day": "Tag"
|
107
|
+
},
|
108
|
+
"month": {
|
109
|
+
"long": {
|
110
|
+
"January": "Januar",
|
111
|
+
"February": "Februar",
|
112
|
+
"March": "März",
|
113
|
+
"April": "April",
|
114
|
+
"May": "Mai",
|
115
|
+
"June": "Juni",
|
116
|
+
"July": "Juli",
|
117
|
+
"August": "August",
|
118
|
+
"September": "September",
|
119
|
+
"October": "Oktober",
|
120
|
+
"November": "November",
|
121
|
+
"December": "Dezember"
|
122
|
+
},
|
123
|
+
"short": {
|
124
|
+
"January": "Jan",
|
125
|
+
"February": "Feb",
|
126
|
+
"March": "Mär",
|
127
|
+
"April": "Apr",
|
128
|
+
"May": "Mai",
|
129
|
+
"June": "Jun",
|
130
|
+
"July": "Jul",
|
131
|
+
"August": "Aug",
|
132
|
+
"September": "Sep",
|
133
|
+
"October": "Okt",
|
134
|
+
"November": "Nov",
|
135
|
+
"December": "Dez"
|
136
|
+
}
|
137
|
+
},
|
138
|
+
"week": {
|
139
|
+
"long": {
|
140
|
+
"self": "Woche",
|
141
|
+
"monday": "Montag",
|
142
|
+
"tuesday": "Dienstag",
|
143
|
+
"wednesday": "Mittwoch",
|
144
|
+
"thursday": "Donnerstag",
|
145
|
+
"friday": "Freitag",
|
146
|
+
"saturday": "Samstag",
|
147
|
+
"sunday": "Sonntag"
|
148
|
+
},
|
149
|
+
"short": {
|
150
|
+
"self": "Woche",
|
151
|
+
"monday": "Mo.",
|
152
|
+
"tuesday": "Di.",
|
153
|
+
"wednesday": "Mi.",
|
154
|
+
"thursday": "Do.",
|
155
|
+
"friday": "Fr.",
|
156
|
+
"saturday": "Sa.",
|
157
|
+
"sunday": "So."
|
158
|
+
}
|
159
|
+
},
|
160
|
+
"placeholder": {
|
161
|
+
"date": "Bitte wählen Sie ein Datum",
|
162
|
+
"week": "Bitte wählen Sie eine Woche",
|
163
|
+
"month": "Bitte wählen Sie einen Monat",
|
164
|
+
"year": "Bitte wählen Sie ein Jahr aus",
|
165
|
+
"quarter": "Bitte wählen Sie ein Quartal",
|
166
|
+
"time": "Zeit auswählen"
|
167
|
+
},
|
168
|
+
"rangePlaceholder": {
|
169
|
+
"date": ["Startdatum", "Endtermin"],
|
170
|
+
"week": ["Woche starten", "Ende der Woche"],
|
171
|
+
"month": ["Startmonat", "Ende Monat"],
|
172
|
+
"year": ["Startjahr", "Ende Jahr"],
|
173
|
+
"quarter": ["Anfangsquartal", "Ende des Quartals"],
|
174
|
+
"time": ["Startzeit", "Endzeit"]
|
175
|
+
},
|
176
|
+
"selectTime": "Zeit auswählen",
|
177
|
+
"today": "Heute",
|
178
|
+
"now": "Jetzt",
|
179
|
+
"ok": "OK"
|
180
|
+
},
|
181
|
+
"image": {
|
182
|
+
"loading": "Wird geladen"
|
183
|
+
},
|
184
|
+
"imagePreview": {
|
185
|
+
"fullScreen": "Vollbild",
|
186
|
+
"rotateRight": "Nach rechts drehen",
|
187
|
+
"rotateLeft": "Nach links drehen",
|
188
|
+
"zoomIn": "Vergrößern",
|
189
|
+
"zoomOut": "Rauszoomen",
|
190
|
+
"originalSize": "Originalgröße"
|
191
|
+
},
|
192
|
+
"typography": {
|
193
|
+
"copy": "Kopieren",
|
194
|
+
"copied": "Kopiert",
|
195
|
+
"edit": "Bearbeiten",
|
196
|
+
"collapse": "Falten",
|
197
|
+
"expand": "Erweitern"
|
198
|
+
},
|
199
|
+
"colorPicker": {
|
200
|
+
"history": "Historische Farben",
|
201
|
+
"preset": "Standardfarbe des Systems",
|
202
|
+
"empty": "Noch keine"
|
203
|
+
}
|
204
|
+
}
|
205
|
+
;
|
206
|
+
|
207
|
+
export default _default;
|