@das-fed/ui 7.1.0-dev.24 → 7.1.0-dev.25
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/package.json +5 -5
- package/packages/business-components/ai-panel/i18n/index.d.ts +62 -0
- package/packages/business-components/ai-panel/{index-C2MGj67k.js → index-C04Wttd4.js} +1 -1
- package/packages/business-components/ai-panel/index-C04Wttd4.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-BdJrICEt.js → index-CKFBXTtX.js} +684 -676
- package/packages/business-components/ai-panel/index-CKFBXTtX.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/area-phone-select/i18n/index.d.ts +1 -0
- package/packages/business-components/area-phone-select/index.js +1 -1
- package/packages/business-components/area-phone-select/index.js.gz +0 -0
- package/packages/business-components/change-enterprises/i18n/index.d.ts +3 -0
- package/packages/business-components/change-enterprises/index.js +3 -3
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/i18n/index.d.ts +18 -0
- package/packages/business-components/change-pwd/index.js +53 -50
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/i18n/index.d.ts +4 -0
- package/packages/business-components/currency-page/index.js +7 -5
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +254 -0
- package/packages/business-components/device-panel/index.js +1802 -1768
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/export-button/i18n/index.d.ts +11 -0
- package/packages/business-components/export-button/index.js +21 -19
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +30 -0
- package/packages/business-components/import-button/index.js +131 -127
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +6 -0
- package/packages/business-components/model-table-dialog/index.js +6 -6
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/payment/i18n/index.d.ts +13 -0
- package/packages/business-components/payment/index.js +53 -53
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +30 -0
- package/packages/business-components/process-configuration/index.js +75 -73
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/i18n/index.d.ts +84 -0
- package/packages/business-components/process-form/index.js +84 -75
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/i18n/index.d.ts +9 -0
- package/packages/business-components/process-log/index.js +99 -99
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +9 -0
- package/packages/business-components/process-search-form/index.js +9 -9
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/i18n/index.d.ts +8 -0
- package/packages/business-components/process-table/index.js +8 -8
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/update-confirm-dialog/i18n/index.d.ts +5 -0
- package/packages/business-components/update-confirm-dialog/index.js +7 -5
- package/packages/business-components/update-confirm-dialog/index.js.gz +0 -0
- package/packages/business-components/upload-file/i18n/index.d.ts +1 -0
- package/packages/business-components/upload-file/index.js +25 -24
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +104 -0
- package/packages/business-components/urgent-panel/index.js +104 -96
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +18 -0
- package/packages/business-components/user-org-dialog/index.js +118 -117
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +20 -0
- package/packages/business-components/video-dialog/index.js +20 -20
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +46 -0
- package/packages/components/calendar/index.js +99 -99
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/i18n/index.d.ts +1 -0
- package/packages/components/cascader/index.js +1 -1
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/color-picker/i18n/index.d.ts +1 -0
- package/packages/components/color-picker/index.js +1 -1
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/custom-search-item/i18n/index.d.ts +1 -0
- package/packages/components/custom-search-item/index.js +1 -1
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/i18n/index.d.ts +6 -0
- package/packages/components/date-picker/index.js +6 -6
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/i18n/index.d.ts +6 -0
- package/packages/components/dialog/index.js +27 -27
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/i18n/index.d.ts +10 -0
- package/packages/components/dimple-layout/index.js +10 -9
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/i18n/index.d.ts +1 -0
- package/packages/components/dropdown/index.js +9 -9
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/empty/i18n/index.d.ts +1 -0
- package/packages/components/empty/index.js +1 -1
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/hls-player/i18n/index.d.ts +2 -0
- package/packages/components/hls-player/index.js +2 -1
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/image-upload/i18n/index.d.ts +7 -0
- package/packages/components/image-upload/index.js +19 -15
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/input/i18n/index.d.ts +3 -0
- package/packages/components/input/index.js +3 -3
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-dialog-select/i18n/index.d.ts +2 -0
- package/packages/components/input-dialog-select/index.js +10 -10
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/live-player/i18n/index.d.ts +2 -0
- package/packages/components/live-player/index.js +2 -1
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/i18n/index.d.ts +1 -0
- package/packages/components/loading/index.js +1 -1
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +6 -0
- package/packages/components/map/index.js +6 -2
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/i18n/index.d.ts +1 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/i18n/index.d.ts +1 -0
- package/packages/components/message/index.js +1 -1
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/i18n/index.d.ts +1 -0
- package/packages/components/notification/index.js +4 -4
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/i18n/index.d.ts +4 -0
- package/packages/components/pagination/index.js +17 -17
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/i18n/index.d.ts +2 -0
- package/packages/components/popover/index.js +2 -2
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/preview/i18n/index.d.ts +1 -0
- package/packages/components/preview/index.js +3 -1
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/rich-editor/i18n/index.d.ts +4 -0
- package/packages/components/rich-editor/index.js +4 -0
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +7 -0
- package/packages/components/search-form/index.js +7 -7
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +4 -0
- package/packages/components/select/index.js +4 -3
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/i18n/index.d.ts +4 -0
- package/packages/components/select-list/index.js +4 -4
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -0
- package/packages/components/special-range-picker-month/index.js +4 -4
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -0
- package/packages/components/special-range-picker-year/index.js +3 -3
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/i18n/index.d.ts +1 -0
- package/packages/components/spin/index.js +1 -1
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +20 -0
- package/packages/components/table/index.js +20 -18
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/tabs/i18n/index.d.ts +3 -0
- package/packages/components/tabs/index.js +31 -31
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tooltip/i18n/index.d.ts +1 -0
- package/packages/components/tooltip/index.js +1 -1
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +1 -40
- package/packages/components/tree/index.js +290 -304
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-v2/i18n/index.d.ts +21 -0
- package/packages/components/tree-v2/index.js +11 -8
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/upload/i18n/index.d.ts +6 -0
- package/packages/components/upload/index.js +25 -24
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +37 -1
- package/packages/components/virtual-tree/index.js +62 -49
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-BdJrICEt.js.gz +0 -0
- package/packages/business-components/ai-panel/index-C2MGj67k.js.gz +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/calendar/style.css';
|
|
2
2
|
import { withInstall as ee } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { defineComponent as Q, ref as O, computed as g, watch as ae, nextTick as x, createElementBlock as m, createCommentVNode as C, openBlock as u, normalizeClass as B, createElementVNode as b, Fragment as j, renderList as P, renderSlot as N, toDisplayString as L, normalizeStyle as te, onMounted as
|
|
3
|
+
import { defineComponent as Q, ref as O, computed as g, watch as ae, nextTick as x, createElementBlock as m, createCommentVNode as C, openBlock as u, normalizeClass as B, createElementVNode as b, Fragment as j, renderList as P, renderSlot as N, toDisplayString as L, normalizeStyle as te, onMounted as re, onBeforeUnmount as ne, createVNode as se, createSlots as K, withCtx as V, normalizeProps as F, mergeProps as Z, guardReactiveProps as E, createBlock as oe } from "vue";
|
|
4
4
|
import { t as A, currentLang as U, setI18nRule as de } from "@das-fed/web/packages/i18n/index";
|
|
5
5
|
import M from "dayjs";
|
|
6
6
|
import { SizeWatcher as le } from "@das-fed/utils/size-watcher";
|
|
7
7
|
import { setThemeRule as ce } from "@das-fed/web/packages/theme/index";
|
|
8
8
|
const he = (o, i) => {
|
|
9
|
-
const d = o.endOf("month"), c = i.startOf("month"),
|
|
9
|
+
const d = o.endOf("month"), c = i.startOf("month"), r = d.isSame(c, "week") ? c.add(1, "week") : c;
|
|
10
10
|
return [
|
|
11
11
|
[o, d],
|
|
12
|
-
[
|
|
12
|
+
[r.startOf("week"), i]
|
|
13
13
|
];
|
|
14
14
|
}, ie = (o, i) => {
|
|
15
15
|
const d = o.endOf("month"), c = o.add(1, "month").startOf("month"), s = d.isSame(
|
|
16
16
|
c,
|
|
17
17
|
"week"
|
|
18
|
-
) ? c.add(1, "week") : c,
|
|
18
|
+
) ? c.add(1, "week") : c, r = s.endOf("month"), f = i.startOf("month"), z = r.isSame(f, "week") ? f.add(1, "week") : f;
|
|
19
19
|
return [
|
|
20
20
|
[o, d],
|
|
21
|
-
[s.startOf("week"),
|
|
21
|
+
[s.startOf("week"), r],
|
|
22
22
|
[z.startOf("week"), i]
|
|
23
23
|
];
|
|
24
24
|
}, q = (o, i) => {
|
|
25
|
-
const d = o.startOf("week"), c = i.endOf("week"), s = d.get("month"),
|
|
26
|
-
return s ===
|
|
25
|
+
const d = o.startOf("week"), c = i.endOf("week"), s = d.get("month"), r = c.get("month");
|
|
26
|
+
return s === r ? [[d, c]] : (s + 1) % 12 === r ? he(d, c) : s + 2 === r || (s + 1) % 11 === r ? ie(d, c) : [];
|
|
27
27
|
}, $ = (o) => Array.from(Array.from({ length: o }).keys()), ue = (o, i) => {
|
|
28
28
|
const d = o.subtract(1, "month").endOf("month").date();
|
|
29
29
|
return $(i).map((c, s) => d - (i - s - 1));
|
|
@@ -52,15 +52,15 @@ const he = (o, i) => {
|
|
|
52
52
|
},
|
|
53
53
|
emits: ["pick"],
|
|
54
54
|
setup(o, { expose: i, emit: d }) {
|
|
55
|
-
const c = d, s = M(),
|
|
56
|
-
const e =
|
|
57
|
-
return e === 0 ? S.map((
|
|
55
|
+
const c = d, s = M(), r = o, f = O("128px"), z = O(), Y = 60, S = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"], _ = g(() => !!r.range && !!r.range.length), J = g(() => {
|
|
56
|
+
const e = r.firstDayOfWeek, t = r.showZhou ? "das-calendar-weeks-zhou-" : "das-calendar-weeks-";
|
|
57
|
+
return e === 0 ? S.map((n) => A(`${t}${n}`)) : S.slice(e).concat(S.slice(0, e)).map((n) => A(`${t}${n}`));
|
|
58
58
|
}), D = g(() => {
|
|
59
59
|
let e = [];
|
|
60
60
|
if (_.value) {
|
|
61
|
-
const [t,
|
|
61
|
+
const [t, n] = r.range;
|
|
62
62
|
let h = [];
|
|
63
|
-
t.isSame(
|
|
63
|
+
t.isSame(n, "month") ? h = $(n.date() - t.date() + 1).map((v) => ({
|
|
64
64
|
text: t.date() + v,
|
|
65
65
|
type: "current"
|
|
66
66
|
})) : h = $(t.endOf("month").date() - t.date() + 1).map((v) => ({
|
|
@@ -75,22 +75,22 @@ const he = (o, i) => {
|
|
|
75
75
|
}));
|
|
76
76
|
e = h.concat(w);
|
|
77
77
|
} else {
|
|
78
|
-
const t =
|
|
79
|
-
|
|
80
|
-
(t -
|
|
78
|
+
const t = r.date.startOf("month").day(), n = ue(
|
|
79
|
+
r.date,
|
|
80
|
+
(t - r.firstDayOfWeek + 7) % 7
|
|
81
81
|
).map((v) => ({
|
|
82
82
|
text: v,
|
|
83
83
|
type: "prev"
|
|
84
|
-
})), h = pe(
|
|
84
|
+
})), h = pe(r.date).map((v) => ({
|
|
85
85
|
text: v,
|
|
86
86
|
type: "current"
|
|
87
87
|
}));
|
|
88
|
-
e = [...
|
|
88
|
+
e = [...n, ...h];
|
|
89
89
|
const k = 7 - (e.length % 7 || 7), w = $(k).map((v, T) => ({
|
|
90
90
|
text: T + 1,
|
|
91
91
|
type: "next"
|
|
92
92
|
}));
|
|
93
|
-
if (e = e.concat(w),
|
|
93
|
+
if (e = e.concat(w), r.calendartType == "simple" && e.length / 7 < 6) {
|
|
94
94
|
const v = w.length ? w[w.length - 1].text : 0, T = $(7).map((We, X) => ({
|
|
95
95
|
text: v + X + 1,
|
|
96
96
|
type: "next"
|
|
@@ -100,16 +100,16 @@ const he = (o, i) => {
|
|
|
100
100
|
}
|
|
101
101
|
return me(e);
|
|
102
102
|
}), H = () => {
|
|
103
|
-
var
|
|
104
|
-
const e = (
|
|
103
|
+
var n;
|
|
104
|
+
const e = (n = r.parent) == null ? void 0 : n.offsetHeight;
|
|
105
105
|
let t = Number(e) - Y - 1;
|
|
106
106
|
f.value = t / D.value.length - 1 + "px";
|
|
107
107
|
};
|
|
108
108
|
ae(
|
|
109
109
|
() => D.value,
|
|
110
110
|
(e) => {
|
|
111
|
-
if (
|
|
112
|
-
f.value = `${
|
|
111
|
+
if (r.cellHeight) {
|
|
112
|
+
f.value = `${r.cellHeight}px`;
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
115
|
e && e.length ? x(() => {
|
|
@@ -119,8 +119,8 @@ const he = (o, i) => {
|
|
|
119
119
|
{ immediate: !0 }
|
|
120
120
|
);
|
|
121
121
|
const W = () => {
|
|
122
|
-
if (
|
|
123
|
-
f.value = `${
|
|
122
|
+
if (r.cellHeight) {
|
|
123
|
+
f.value = `${r.cellHeight}px`;
|
|
124
124
|
return;
|
|
125
125
|
}
|
|
126
126
|
x(() => {
|
|
@@ -129,24 +129,24 @@ const he = (o, i) => {
|
|
|
129
129
|
}, y = (e, t) => {
|
|
130
130
|
switch (t) {
|
|
131
131
|
case "prev":
|
|
132
|
-
return
|
|
132
|
+
return r.date.startOf("month").subtract(1, "month").date(e);
|
|
133
133
|
case "next":
|
|
134
|
-
return
|
|
134
|
+
return r.date.startOf("month").add(1, "month").date(e);
|
|
135
135
|
case "current":
|
|
136
|
-
return
|
|
136
|
+
return r.date.date(e);
|
|
137
137
|
}
|
|
138
138
|
}, R = ({ text: e, type: t }) => {
|
|
139
|
-
const
|
|
140
|
-
return h.isSame(
|
|
139
|
+
const n = [t], h = y(e, t);
|
|
140
|
+
return h.isSame(r.selectedDay, "day") && n.push("is-selected"), h.isSame(s, "day") && n.push("is-today"), n;
|
|
141
141
|
}, I = ({ text: e, type: t }) => {
|
|
142
|
-
const
|
|
143
|
-
c("pick",
|
|
142
|
+
const n = y(e, t);
|
|
143
|
+
c("pick", n);
|
|
144
144
|
}, a = (e) => {
|
|
145
145
|
const t = D.value[0];
|
|
146
146
|
if (t) {
|
|
147
|
-
const
|
|
148
|
-
if (
|
|
149
|
-
const { text: h, type: k } =
|
|
147
|
+
const n = t[e];
|
|
148
|
+
if (n) {
|
|
149
|
+
const { text: h, type: k } = n;
|
|
150
150
|
return y(h, k).format("MM/DD");
|
|
151
151
|
}
|
|
152
152
|
}
|
|
@@ -154,11 +154,11 @@ const he = (o, i) => {
|
|
|
154
154
|
}, p = (e) => {
|
|
155
155
|
const t = D.value[0];
|
|
156
156
|
if (t) {
|
|
157
|
-
const
|
|
158
|
-
if (
|
|
159
|
-
const { text: h, type: k } =
|
|
157
|
+
const n = t[e];
|
|
158
|
+
if (n) {
|
|
159
|
+
const { text: h, type: k } = n, w = y(h, k);
|
|
160
160
|
return {
|
|
161
|
-
isSelected: w.isSame(
|
|
161
|
+
isSelected: w.isSame(r.selectedDay),
|
|
162
162
|
type: `${k}-month`,
|
|
163
163
|
day: w.format("YYYY-MM-DD"),
|
|
164
164
|
date: w.toDate()
|
|
@@ -172,12 +172,12 @@ const he = (o, i) => {
|
|
|
172
172
|
date: null
|
|
173
173
|
};
|
|
174
174
|
}, l = ({ text: e, type: t }) => {
|
|
175
|
-
const
|
|
175
|
+
const n = y(e, t);
|
|
176
176
|
return {
|
|
177
|
-
isSelected:
|
|
177
|
+
isSelected: n.isSame(r.selectedDay),
|
|
178
178
|
type: `${t}-month`,
|
|
179
|
-
day:
|
|
180
|
-
date:
|
|
179
|
+
day: n.format("YYYY-MM-DD"),
|
|
180
|
+
date: n.toDate()
|
|
181
181
|
};
|
|
182
182
|
};
|
|
183
183
|
return i({
|
|
@@ -197,9 +197,9 @@ const he = (o, i) => {
|
|
|
197
197
|
(u(!0), m(
|
|
198
198
|
j,
|
|
199
199
|
null,
|
|
200
|
-
P(J.value, (
|
|
200
|
+
P(J.value, (n, h) => (u(), m("th", {
|
|
201
201
|
class: "das-calendar-table-header",
|
|
202
|
-
key:
|
|
202
|
+
key: n
|
|
203
203
|
}, [
|
|
204
204
|
b("div", ye, [
|
|
205
205
|
b("div", ke, [
|
|
@@ -208,7 +208,7 @@ const he = (o, i) => {
|
|
|
208
208
|
{
|
|
209
209
|
class: B(["das-calendar-header-week", { highlight: e.highlightWeek }])
|
|
210
210
|
},
|
|
211
|
-
L(
|
|
211
|
+
L(n),
|
|
212
212
|
3
|
|
213
213
|
/* TEXT, CLASS */
|
|
214
214
|
),
|
|
@@ -237,7 +237,7 @@ const he = (o, i) => {
|
|
|
237
237
|
(u(!0), m(
|
|
238
238
|
j,
|
|
239
239
|
null,
|
|
240
|
-
P(D.value, (
|
|
240
|
+
P(D.value, (n, h) => (u(), m(
|
|
241
241
|
"tr",
|
|
242
242
|
{
|
|
243
243
|
key: h,
|
|
@@ -250,7 +250,7 @@ const he = (o, i) => {
|
|
|
250
250
|
(u(!0), m(
|
|
251
251
|
j,
|
|
252
252
|
null,
|
|
253
|
-
P(
|
|
253
|
+
P(n, (k, w) => (u(), m("td", {
|
|
254
254
|
key: w,
|
|
255
255
|
class: B(R(k)),
|
|
256
256
|
onClick: (v) => I(k)
|
|
@@ -324,7 +324,7 @@ const he = (o, i) => {
|
|
|
324
324
|
},
|
|
325
325
|
emits: ["update:model-value", "itemClick"],
|
|
326
326
|
setup(o, { expose: i, emit: d }) {
|
|
327
|
-
const c = g(() => U.value == "zh-CN" ? 1 : (U.value == "en", 0)), s = o,
|
|
327
|
+
const c = g(() => U.value == "zh-CN" ? 1 : (U.value == "en", 0)), s = o, r = d, f = O(), z = O(), Y = O(), S = g(() => s.firstDayOfWeek || c.value), _ = O(), J = M(), D = g({
|
|
328
328
|
get() {
|
|
329
329
|
return s.modelValue ? (_.value = y.value, y.value) : _.value;
|
|
330
330
|
},
|
|
@@ -332,7 +332,7 @@ const he = (o, i) => {
|
|
|
332
332
|
if (!a) return;
|
|
333
333
|
_.value = a;
|
|
334
334
|
const p = a.toDate();
|
|
335
|
-
s.isSwitchMonth &&
|
|
335
|
+
s.isSwitchMonth && r("update:model-value", p);
|
|
336
336
|
}
|
|
337
337
|
}), H = g(() => {
|
|
338
338
|
if (s.type == "week") {
|
|
@@ -349,21 +349,21 @@ const he = (o, i) => {
|
|
|
349
349
|
g(() => y.value.subtract(1, "month").date(1)), g(() => y.value.add(1, "month").date(1)), g(() => y.value.subtract(1, "year").date(1)), g(() => y.value.add(1, "year").date(1)), g(() => {
|
|
350
350
|
const a = `das-calendar-month${y.value.format("M")}`;
|
|
351
351
|
return `${y.value.year()} ${A("das-calendar-year")} ${A(a)}`;
|
|
352
|
-
}),
|
|
352
|
+
}), re(() => {
|
|
353
353
|
Y.value = le(() => {
|
|
354
354
|
var a, p;
|
|
355
355
|
Array.isArray(z.value) ? (a = z.value[0]) == null || a.getHeight() : (p = z.value) == null || p.getHeight();
|
|
356
356
|
}, f.value);
|
|
357
|
-
}),
|
|
357
|
+
}), ne(() => {
|
|
358
358
|
Y.value.disconnect();
|
|
359
359
|
});
|
|
360
360
|
const R = (a) => {
|
|
361
|
-
s.isSwitchSelection && (D.value = a),
|
|
361
|
+
s.isSwitchSelection && (D.value = a), r("itemClick", a.toDate());
|
|
362
362
|
};
|
|
363
363
|
return i({
|
|
364
364
|
$calendar: f,
|
|
365
365
|
setActive: (a) => {
|
|
366
|
-
D.value = M(a),
|
|
366
|
+
D.value = M(a), r("itemClick", a);
|
|
367
367
|
}
|
|
368
368
|
}), (a, p) => (u(), m(
|
|
369
369
|
"div",
|
|
@@ -505,52 +505,52 @@ const he = (o, i) => {
|
|
|
505
505
|
// '--das-ui-calendar-head-height': '60px', // 日历表头高度
|
|
506
506
|
// '--das-ui-calendar-cell-height': '128px', // 单元格高度
|
|
507
507
|
}, be = {
|
|
508
|
-
周: { "zh-CN": "周", en: "Week", _appCode: "framework" },
|
|
509
|
-
日历: { "zh-CN": "日历", en: "Calendar", _appCode: "framework" },
|
|
510
|
-
"das-calendar-prevMonth": { "zh-CN": "上个月", en: "Last Month", _appCode: "framework" },
|
|
511
|
-
"das-calendar-nextMonth": { "zh-CN": "下个月", en: "Next Month", _appCode: "framework" },
|
|
512
|
-
"das-calendar-prevYear": { "zh-CN": "前一年", en: "Previous Year", _appCode: "framework" },
|
|
513
|
-
"das-calendar-nextYear": { "zh-CN": "后一年", en: "Next Year", _appCode: "framework" },
|
|
514
|
-
"das-calendar-year": { "zh-CN": "年", en: "Year", _appCode: "framework" },
|
|
515
|
-
"das-calendar-today": { "zh-CN": "今天", en: "Today", _appCode: "framework" },
|
|
516
|
-
"das-calendar-weeks-sun": { "zh-CN": "日", en: "Sun", _appCode: "framework" },
|
|
517
|
-
"das-calendar-weeks-mon": { "zh-CN": "一", en: "Mon", _appCode: "framework" },
|
|
518
|
-
"das-calendar-weeks-tue": { "zh-CN": "二", en: "Tues", _appCode: "framework" },
|
|
519
|
-
"das-calendar-weeks-wed": { "zh-CN": "三", en: "Wed", _appCode: "framework" },
|
|
520
|
-
"das-calendar-weeks-thu": { "zh-CN": "四", en: "Thur", _appCode: "framework" },
|
|
521
|
-
"das-calendar-weeks-fri": { "zh-CN": "五", en: "Fri", _appCode: "framework" },
|
|
522
|
-
"das-calendar-weeks-sat": { "zh-CN": "六", en: "Sat", _appCode: "framework" },
|
|
523
|
-
"das-calendar-weeks-zhou-sun": { "zh-CN": "周日", en: "Sun", _appCode: "framework" },
|
|
524
|
-
"das-calendar-weeks-zhou-mon": { "zh-CN": "周一", en: "Mon", _appCode: "framework" },
|
|
525
|
-
"das-calendar-weeks-zhou-tue": { "zh-CN": "周二", en: "Tues", _appCode: "framework" },
|
|
526
|
-
"das-calendar-weeks-zhou-wed": { "zh-CN": "周三", en: "Wed", _appCode: "framework" },
|
|
527
|
-
"das-calendar-weeks-zhou-thu": { "zh-CN": "周四", en: "Thur", _appCode: "framework" },
|
|
528
|
-
"das-calendar-weeks-zhou-fri": { "zh-CN": "周五", en: "Fri", _appCode: "framework" },
|
|
529
|
-
"das-calendar-weeks-zhou-sat": { "zh-CN": "周六", en: "Sat", _appCode: "framework" },
|
|
530
|
-
"das-calendar-month1": { "zh-CN": "1 月", en: "Jan", _appCode: "framework" },
|
|
531
|
-
"das-calendar-month2": { "zh-CN": "2 月", en: "Feb", _appCode: "framework" },
|
|
532
|
-
"das-calendar-month3": { "zh-CN": "3 月", en: "Mar", _appCode: "framework" },
|
|
533
|
-
"das-calendar-month4": { "zh-CN": "4 月", en: "Apr", _appCode: "framework" },
|
|
534
|
-
"das-calendar-month5": { "zh-CN": "5 月", en: "May", _appCode: "framework" },
|
|
535
|
-
"das-calendar-month6": { "zh-CN": "6 月", en: "Jun", _appCode: "framework" },
|
|
536
|
-
"das-calendar-month7": { "zh-CN": "7 月", en: "Jul", _appCode: "framework" },
|
|
537
|
-
"das-calendar-month8": { "zh-CN": "8 月", en: "Aug", _appCode: "framework" },
|
|
538
|
-
"das-calendar-month9": { "zh-CN": "9 月", en: "Sept", _appCode: "framework" },
|
|
539
|
-
"das-calendar-month10": { "zh-CN": "10 月", en: "Oct", _appCode: "framework" },
|
|
540
|
-
"das-calendar-month11": { "zh-CN": "11 月", en: "Nov", _appCode: "framework" },
|
|
541
|
-
"das-calendar-month12": { "zh-CN": "12 月", en: "Dec", _appCode: "framework" },
|
|
542
|
-
"das-calendar-months-jan": { "zh-CN": "一月", en: "Jan", _appCode: "framework" },
|
|
543
|
-
"das-calendar-months-feb": { "zh-CN": "二月", en: "Feb", _appCode: "framework" },
|
|
544
|
-
"das-calendar-months-mar": { "zh-CN": "三月", en: "Mar", _appCode: "framework" },
|
|
545
|
-
"das-calendar-months-apr": { "zh-CN": "四月", en: "Apr", _appCode: "framework" },
|
|
546
|
-
"das-calendar-months-may": { "zh-CN": "五月", en: "May", _appCode: "framework" },
|
|
547
|
-
"das-calendar-months-jun": { "zh-CN": "六月", en: "Jun", _appCode: "framework" },
|
|
548
|
-
"das-calendar-months-jul": { "zh-CN": "七月", en: "Jul", _appCode: "framework" },
|
|
549
|
-
"das-calendar-months-aug": { "zh-CN": "八月", en: "Aug", _appCode: "framework" },
|
|
550
|
-
"das-calendar-months-sep": { "zh-CN": "九月", en: "Sept", _appCode: "framework" },
|
|
551
|
-
"das-calendar-months-oct": { "zh-CN": "十月", en: "Oct", _appCode: "framework" },
|
|
552
|
-
"das-calendar-months-nov": { "zh-CN": "十一月", en: "Nov", _appCode: "framework" },
|
|
553
|
-
"das-calendar-months-dec": { "zh-CN": "十二月", en: "Dec", _appCode: "framework" }
|
|
508
|
+
周: { "zh-CN": "周", en: "Week", ar: "أسبوع", _appCode: "framework" },
|
|
509
|
+
日历: { "zh-CN": "日历", en: "Calendar", ar: "التقويم", _appCode: "framework" },
|
|
510
|
+
"das-calendar-prevMonth": { "zh-CN": "上个月", en: "Last Month", ar: "الشهر الماضي", _appCode: "framework" },
|
|
511
|
+
"das-calendar-nextMonth": { "zh-CN": "下个月", en: "Next Month", ar: "الشهر القادم", _appCode: "framework" },
|
|
512
|
+
"das-calendar-prevYear": { "zh-CN": "前一年", en: "Previous Year", ar: "السنة السابقة", _appCode: "framework" },
|
|
513
|
+
"das-calendar-nextYear": { "zh-CN": "后一年", en: "Next Year", ar: "السنة القادمة", _appCode: "framework" },
|
|
514
|
+
"das-calendar-year": { "zh-CN": "年", en: "Year", ar: "سنة", _appCode: "framework" },
|
|
515
|
+
"das-calendar-today": { "zh-CN": "今天", en: "Today", ar: "اليوم", _appCode: "framework" },
|
|
516
|
+
"das-calendar-weeks-sun": { "zh-CN": "日", en: "Sun", ar: "أحد", _appCode: "framework" },
|
|
517
|
+
"das-calendar-weeks-mon": { "zh-CN": "一", en: "Mon", ar: "إثن", _appCode: "framework" },
|
|
518
|
+
"das-calendar-weeks-tue": { "zh-CN": "二", en: "Tues", ar: "ثلا", _appCode: "framework" },
|
|
519
|
+
"das-calendar-weeks-wed": { "zh-CN": "三", en: "Wed", ar: "أرب", _appCode: "framework" },
|
|
520
|
+
"das-calendar-weeks-thu": { "zh-CN": "四", en: "Thur", ar: "خمي", _appCode: "framework" },
|
|
521
|
+
"das-calendar-weeks-fri": { "zh-CN": "五", en: "Fri", ar: "جمعة", _appCode: "framework" },
|
|
522
|
+
"das-calendar-weeks-sat": { "zh-CN": "六", en: "Sat", ar: "سبت", _appCode: "framework" },
|
|
523
|
+
"das-calendar-weeks-zhou-sun": { "zh-CN": "周日", en: "Sun", ar: "الأحد", _appCode: "framework" },
|
|
524
|
+
"das-calendar-weeks-zhou-mon": { "zh-CN": "周一", en: "Mon", ar: "الإثنين", _appCode: "framework" },
|
|
525
|
+
"das-calendar-weeks-zhou-tue": { "zh-CN": "周二", en: "Tues", ar: "الثلاثاء", _appCode: "framework" },
|
|
526
|
+
"das-calendar-weeks-zhou-wed": { "zh-CN": "周三", en: "Wed", ar: "الأربعاء", _appCode: "framework" },
|
|
527
|
+
"das-calendar-weeks-zhou-thu": { "zh-CN": "周四", en: "Thur", ar: "الخميس", _appCode: "framework" },
|
|
528
|
+
"das-calendar-weeks-zhou-fri": { "zh-CN": "周五", en: "Fri", ar: "الجمعة", _appCode: "framework" },
|
|
529
|
+
"das-calendar-weeks-zhou-sat": { "zh-CN": "周六", en: "Sat", ar: "السبت", _appCode: "framework" },
|
|
530
|
+
"das-calendar-month1": { "zh-CN": "1 月", en: "Jan", ar: "يناير", _appCode: "framework" },
|
|
531
|
+
"das-calendar-month2": { "zh-CN": "2 月", en: "Feb", ar: "فبراير", _appCode: "framework" },
|
|
532
|
+
"das-calendar-month3": { "zh-CN": "3 月", en: "Mar", ar: "مارس", _appCode: "framework" },
|
|
533
|
+
"das-calendar-month4": { "zh-CN": "4 月", en: "Apr", ar: "أبريل", _appCode: "framework" },
|
|
534
|
+
"das-calendar-month5": { "zh-CN": "5 月", en: "May", ar: "مايو", _appCode: "framework" },
|
|
535
|
+
"das-calendar-month6": { "zh-CN": "6 月", en: "Jun", ar: "يونيو", _appCode: "framework" },
|
|
536
|
+
"das-calendar-month7": { "zh-CN": "7 月", en: "Jul", ar: "يوليو", _appCode: "framework" },
|
|
537
|
+
"das-calendar-month8": { "zh-CN": "8 月", en: "Aug", ar: "أغسطس", _appCode: "framework" },
|
|
538
|
+
"das-calendar-month9": { "zh-CN": "9 月", en: "Sept", ar: "سبتمبر", _appCode: "framework" },
|
|
539
|
+
"das-calendar-month10": { "zh-CN": "10 月", en: "Oct", ar: "أكتوبر", _appCode: "framework" },
|
|
540
|
+
"das-calendar-month11": { "zh-CN": "11 月", en: "Nov", ar: "نوفمبر", _appCode: "framework" },
|
|
541
|
+
"das-calendar-month12": { "zh-CN": "12 月", en: "Dec", ar: "ديسمبر", _appCode: "framework" },
|
|
542
|
+
"das-calendar-months-jan": { "zh-CN": "一月", en: "Jan", ar: "يناير", _appCode: "framework" },
|
|
543
|
+
"das-calendar-months-feb": { "zh-CN": "二月", en: "Feb", ar: "فبراير", _appCode: "framework" },
|
|
544
|
+
"das-calendar-months-mar": { "zh-CN": "三月", en: "Mar", ar: "مارس", _appCode: "framework" },
|
|
545
|
+
"das-calendar-months-apr": { "zh-CN": "四月", en: "Apr", ar: "أبريل", _appCode: "framework" },
|
|
546
|
+
"das-calendar-months-may": { "zh-CN": "五月", en: "May", ar: "مايو", _appCode: "framework" },
|
|
547
|
+
"das-calendar-months-jun": { "zh-CN": "六月", en: "Jun", ar: "يونيو", _appCode: "framework" },
|
|
548
|
+
"das-calendar-months-jul": { "zh-CN": "七月", en: "Jul", ar: "يوليو", _appCode: "framework" },
|
|
549
|
+
"das-calendar-months-aug": { "zh-CN": "八月", en: "Aug", ar: "أغسطس", _appCode: "framework" },
|
|
550
|
+
"das-calendar-months-sep": { "zh-CN": "九月", en: "Sept", ar: "سبتمبر", _appCode: "framework" },
|
|
551
|
+
"das-calendar-months-oct": { "zh-CN": "十月", en: "Oct", ar: "أكتوبر", _appCode: "framework" },
|
|
552
|
+
"das-calendar-months-nov": { "zh-CN": "十一月", en: "Nov", ar: "نوفمبر", _appCode: "framework" },
|
|
553
|
+
"das-calendar-months-dec": { "zh-CN": "十二月", en: "Dec", ar: "ديسمبر", _appCode: "framework" }
|
|
554
554
|
};
|
|
555
555
|
de(be);
|
|
556
556
|
ce(Se);
|
|
Binary file
|
|
@@ -259,7 +259,7 @@ const Ce = { style: { maxheight: "200px" } }, ke = {
|
|
|
259
259
|
for (const [a, l] of C)
|
|
260
260
|
g[a] = l;
|
|
261
261
|
return g;
|
|
262
|
-
}, _e = /* @__PURE__ */ Fe(Be, [["__scopeId", "data-v-0157385c"]]), De = { 请选择: { "zh-CN": "请选择", en: "Please select", _appCode: "framework" } }, Ee = {
|
|
262
|
+
}, _e = /* @__PURE__ */ Fe(Be, [["__scopeId", "data-v-0157385c"]]), De = { 请选择: { "zh-CN": "请选择", en: "Please select", ar: "الرجاء التحديد", _appCode: "framework" } }, Ee = {
|
|
263
263
|
"--das-ui-cascader-color-primary": "#5582F3",
|
|
264
264
|
// 主题色
|
|
265
265
|
"--das-ui-cascader-color-text": Z("--das-ui-color-normal"),
|
|
Binary file
|
|
@@ -189,7 +189,7 @@ const Z = (s, d) => {
|
|
|
189
189
|
},
|
|
190
190
|
"--das-ui-color-picker-primary": "#5582F3"
|
|
191
191
|
// 主题色
|
|
192
|
-
}, de = { 请输入: { "zh-CN": "请输入", en: "Please enter", _appCode: "framework" } };
|
|
192
|
+
}, de = { 请输入: { "zh-CN": "请输入", en: "Please enter", ar: "الرجاء الإدخال", _appCode: "framework" } };
|
|
193
193
|
M(de);
|
|
194
194
|
Y(re);
|
|
195
195
|
const Ce = () => y(null), ge = A(ne);
|
|
Binary file
|
|
@@ -76,7 +76,7 @@ const R = { class: "das-ui-custom-search-item" }, z = /* @__PURE__ */ f({
|
|
|
76
76
|
light: "#fff",
|
|
77
77
|
dark: "rgba(255,255,255,.2)"
|
|
78
78
|
}
|
|
79
|
-
}, T = { 自定义: { "zh-CN": "自定义", en: "Custom", _appCode: "framework" } };
|
|
79
|
+
}, T = { 自定义: { "zh-CN": "自定义", en: "Custom", ar: "مخصص", _appCode: "framework" } };
|
|
80
80
|
_(T);
|
|
81
81
|
D(N);
|
|
82
82
|
const U = () => u(null), j = P(E);
|
|
Binary file
|
|
@@ -2,31 +2,37 @@ declare const _default: {
|
|
|
2
2
|
开始日期: {
|
|
3
3
|
'zh-CN': string;
|
|
4
4
|
en: string;
|
|
5
|
+
ar: string;
|
|
5
6
|
_appCode: string;
|
|
6
7
|
};
|
|
7
8
|
结束日期: {
|
|
8
9
|
'zh-CN': string;
|
|
9
10
|
en: string;
|
|
11
|
+
ar: string;
|
|
10
12
|
_appCode: string;
|
|
11
13
|
};
|
|
12
14
|
开始时间: {
|
|
13
15
|
'zh-CN': string;
|
|
14
16
|
en: string;
|
|
17
|
+
ar: string;
|
|
15
18
|
_appCode: string;
|
|
16
19
|
};
|
|
17
20
|
结束时间: {
|
|
18
21
|
'zh-CN': string;
|
|
19
22
|
en: string;
|
|
23
|
+
ar: string;
|
|
20
24
|
_appCode: string;
|
|
21
25
|
};
|
|
22
26
|
请选择日期: {
|
|
23
27
|
'zh-CN': string;
|
|
24
28
|
en: string;
|
|
29
|
+
ar: string;
|
|
25
30
|
_appCode: string;
|
|
26
31
|
};
|
|
27
32
|
请选择时间: {
|
|
28
33
|
'zh-CN': string;
|
|
29
34
|
en: string;
|
|
35
|
+
ar: string;
|
|
30
36
|
_appCode: string;
|
|
31
37
|
};
|
|
32
38
|
};
|
|
@@ -1276,12 +1276,12 @@ const Ye = { class: "ant-picker-cell-inner" }, je = {
|
|
|
1276
1276
|
"--das-ui-date-picker-overlay-error-color": "#FB2323",
|
|
1277
1277
|
"--das-ui-date-picker-overlay-error-bg-color": "#FFDBE0"
|
|
1278
1278
|
}, Ir = {
|
|
1279
|
-
开始日期: { "zh-CN": "开始日期", en: "Start Date", _appCode: "framework" },
|
|
1280
|
-
结束日期: { "zh-CN": "结束日期", en: "End Date", _appCode: "framework" },
|
|
1281
|
-
开始时间: { "zh-CN": "开始时间", en: "Start Time", _appCode: "framework" },
|
|
1282
|
-
结束时间: { "zh-CN": "结束时间", en: "End Time", _appCode: "framework" },
|
|
1283
|
-
请选择日期: { "zh-CN": "请选择日期", en: "Please select a date", _appCode: "framework" },
|
|
1284
|
-
请选择时间: { "zh-CN": "请选择时间", en: "Please select the time", _appCode: "framework" }
|
|
1279
|
+
开始日期: { "zh-CN": "开始日期", en: "Start Date", ar: "تاريخ البدء", _appCode: "framework" },
|
|
1280
|
+
结束日期: { "zh-CN": "结束日期", en: "End Date", ar: "تاريخ الانتهاء", _appCode: "framework" },
|
|
1281
|
+
开始时间: { "zh-CN": "开始时间", en: "Start Time", ar: "وقت البدء", _appCode: "framework" },
|
|
1282
|
+
结束时间: { "zh-CN": "结束时间", en: "End Time", ar: "وقت الانتهاء", _appCode: "framework" },
|
|
1283
|
+
请选择日期: { "zh-CN": "请选择日期", en: "Please select a date", ar: "الرجاء تحديد التاريخ", _appCode: "framework" },
|
|
1284
|
+
请选择时间: { "zh-CN": "请选择时间", en: "Please select the time", ar: "الرجاء تحديد الوقت", _appCode: "framework" }
|
|
1285
1285
|
};
|
|
1286
1286
|
_e(Ir);
|
|
1287
1287
|
He(Tr);
|
|
Binary file
|
|
@@ -2,31 +2,37 @@ declare const _default: {
|
|
|
2
2
|
'dialog-default-title': {
|
|
3
3
|
'zh-CN': string;
|
|
4
4
|
en: string;
|
|
5
|
+
ar: string;
|
|
5
6
|
_appCode: string;
|
|
6
7
|
};
|
|
7
8
|
'dialog-feedback-primary-title': {
|
|
8
9
|
'zh-CN': string;
|
|
9
10
|
en: string;
|
|
11
|
+
ar: string;
|
|
10
12
|
_appCode: string;
|
|
11
13
|
};
|
|
12
14
|
'dialog-feedback-warning-title': {
|
|
13
15
|
'zh-CN': string;
|
|
14
16
|
en: string;
|
|
17
|
+
ar: string;
|
|
15
18
|
_appCode: string;
|
|
16
19
|
};
|
|
17
20
|
'dialog-feedback-danger-title': {
|
|
18
21
|
'zh-CN': string;
|
|
19
22
|
en: string;
|
|
23
|
+
ar: string;
|
|
20
24
|
_appCode: string;
|
|
21
25
|
};
|
|
22
26
|
'dialog-close-text': {
|
|
23
27
|
'zh-CN': string;
|
|
24
28
|
en: string;
|
|
29
|
+
ar: string;
|
|
25
30
|
_appCode: string;
|
|
26
31
|
};
|
|
27
32
|
'dialog-confirm-text': {
|
|
28
33
|
'zh-CN': string;
|
|
29
34
|
en: string;
|
|
35
|
+
ar: string;
|
|
30
36
|
_appCode: string;
|
|
31
37
|
};
|
|
32
38
|
};
|