@das-fed/upf-ui 6.4.0-dev.165 → 6.4.0-dev.167

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.
Files changed (170) hide show
  1. package/index.d.ts +7 -0
  2. package/index.js +18 -0
  3. package/package.json +5 -5
  4. package/packages/business-components/ai-panel/i18n/index.d.ts +60 -0
  5. package/packages/business-components/ai-panel/{index-CViVnNHG.js → index-Bg_src1J.js} +440 -432
  6. package/packages/business-components/ai-panel/index-Bg_src1J.js.gz +0 -0
  7. package/packages/business-components/ai-panel/{index-14NcMHNj.js → index-CoN6WqdZ.js} +1 -1
  8. package/packages/business-components/ai-panel/index-CoN6WqdZ.js.gz +0 -0
  9. package/packages/business-components/ai-panel/index.js +1 -1
  10. package/packages/business-components/area-phone-select/i18n/index.d.ts +1 -0
  11. package/packages/business-components/area-phone-select/index.js +17 -17
  12. package/packages/business-components/area-phone-select/index.js.gz +0 -0
  13. package/packages/business-components/change-enterprises/i18n/index.d.ts +3 -0
  14. package/packages/business-components/change-enterprises/index.js +18 -18
  15. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  16. package/packages/business-components/currency-page/i18n/index.d.ts +4 -0
  17. package/packages/business-components/currency-page/index.js +9 -7
  18. package/packages/business-components/currency-page/index.js.gz +0 -0
  19. package/packages/business-components/device-panel/i18n/index.d.ts +244 -0
  20. package/packages/business-components/device-panel/index.js +3506 -3482
  21. package/packages/business-components/device-panel/index.js.gz +0 -0
  22. package/packages/business-components/export-button/i18n/index.d.ts +11 -0
  23. package/packages/business-components/export-button/index.js +83 -81
  24. package/packages/business-components/export-button/index.js.gz +0 -0
  25. package/packages/business-components/import-button/i18n/index.d.ts +29 -0
  26. package/packages/business-components/import-button/index.js +237 -233
  27. package/packages/business-components/import-button/index.js.gz +0 -0
  28. package/packages/business-components/model-table-dialog/i18n/index.d.ts +6 -0
  29. package/packages/business-components/model-table-dialog/index.js +166 -166
  30. package/packages/business-components/model-table-dialog/index.js.gz +0 -0
  31. package/packages/business-components/payment/i18n/index.d.ts +13 -0
  32. package/packages/business-components/payment/index.js +55 -55
  33. package/packages/business-components/payment/index.js.gz +0 -0
  34. package/packages/business-components/process-configuration/i18n/index.d.ts +30 -0
  35. package/packages/business-components/process-configuration/index.js +148 -146
  36. package/packages/business-components/process-configuration/index.js.gz +0 -0
  37. package/packages/business-components/process-form/i18n/index.d.ts +84 -0
  38. package/packages/business-components/process-form/index.js +472 -463
  39. package/packages/business-components/process-form/index.js.gz +0 -0
  40. package/packages/business-components/process-log/i18n/index.d.ts +9 -0
  41. package/packages/business-components/process-log/index.js +69 -69
  42. package/packages/business-components/process-log/index.js.gz +0 -0
  43. package/packages/business-components/process-search-form/i18n/index.d.ts +9 -0
  44. package/packages/business-components/process-search-form/index.js +125 -125
  45. package/packages/business-components/process-search-form/index.js.gz +0 -0
  46. package/packages/business-components/process-table/i18n/index.d.ts +8 -0
  47. package/packages/business-components/process-table/index.js +99 -99
  48. package/packages/business-components/process-table/index.js.gz +0 -0
  49. package/packages/business-components/upload-file/i18n/index.d.ts +1 -0
  50. package/packages/business-components/upload-file/index.js +9 -8
  51. package/packages/business-components/upload-file/index.js.gz +0 -0
  52. package/packages/business-components/urgent-panel/i18n/index.d.ts +104 -0
  53. package/packages/business-components/urgent-panel/index.js +951 -943
  54. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  55. package/packages/business-components/user-org-dialog/i18n/index.d.ts +18 -0
  56. package/packages/business-components/user-org-dialog/index.js +180 -179
  57. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  58. package/packages/business-components/video-dialog/i18n/index.d.ts +20 -0
  59. package/packages/business-components/video-dialog/index.js +175 -175
  60. package/packages/business-components/video-dialog/index.js.gz +0 -0
  61. package/packages/components/calendar/i18n/index.d.ts +46 -0
  62. package/packages/components/calendar/index.js +163 -163
  63. package/packages/components/calendar/index.js.gz +0 -0
  64. package/packages/components/cascader/i18n/index.d.ts +1 -0
  65. package/packages/components/cascader/index.js +15 -15
  66. package/packages/components/cascader/index.js.gz +0 -0
  67. package/packages/components/color-picker/i18n/index.d.ts +1 -0
  68. package/packages/components/color-picker/index.js +10 -10
  69. package/packages/components/color-picker/index.js.gz +0 -0
  70. package/packages/components/custom-search-item/i18n/index.d.ts +1 -0
  71. package/packages/components/custom-search-item/index.js +10 -10
  72. package/packages/components/custom-search-item/index.js.gz +0 -0
  73. package/packages/components/date-picker/i18n/index.d.ts +6 -0
  74. package/packages/components/date-picker/index.js +127 -127
  75. package/packages/components/date-picker/index.js.gz +0 -0
  76. package/packages/components/dialog/i18n/index.d.ts +6 -0
  77. package/packages/components/dialog/index.js +46 -46
  78. package/packages/components/dialog/index.js.gz +0 -0
  79. package/packages/components/dimple-layout/i18n/index.d.ts +10 -0
  80. package/packages/components/dimple-layout/index.js +10 -9
  81. package/packages/components/dimple-layout/index.js.gz +0 -0
  82. package/packages/components/dropdown/i18n/index.d.ts +1 -0
  83. package/packages/components/dropdown/index.js +12 -12
  84. package/packages/components/dropdown/index.js.gz +0 -0
  85. package/packages/components/empty/i18n/index.d.ts +1 -0
  86. package/packages/components/empty/index.js +1 -1
  87. package/packages/components/empty/index.js.gz +0 -0
  88. package/packages/components/image-upload/i18n/index.d.ts +7 -0
  89. package/packages/components/image-upload/index.js +47 -43
  90. package/packages/components/image-upload/index.js.gz +0 -0
  91. package/packages/components/input/i18n/index.d.ts +3 -0
  92. package/packages/components/input/index.js +27 -27
  93. package/packages/components/input/index.js.gz +0 -0
  94. package/packages/components/input-dialog-select/i18n/index.d.ts +2 -0
  95. package/packages/components/input-dialog-select/index.js +23 -23
  96. package/packages/components/input-dialog-select/index.js.gz +0 -0
  97. package/packages/components/live-player/i18n/index.d.ts +2 -0
  98. package/packages/components/live-player/index.js +2 -1
  99. package/packages/components/live-player/index.js.gz +0 -0
  100. package/packages/components/loading/i18n/index.d.ts +1 -0
  101. package/packages/components/loading/index.js +20 -20
  102. package/packages/components/loading/index.js.gz +0 -0
  103. package/packages/components/map/i18n/index.d.ts +6 -0
  104. package/packages/components/map/index.js +159 -155
  105. package/packages/components/map/index.js.gz +0 -0
  106. package/packages/components/menu-aside/i18n/index.d.ts +1 -0
  107. package/packages/components/menu-aside/index.js +34 -34
  108. package/packages/components/menu-aside/index.js.gz +0 -0
  109. package/packages/components/message/i18n/index.d.ts +1 -0
  110. package/packages/components/message/index.js +7 -7
  111. package/packages/components/message/index.js.gz +0 -0
  112. package/packages/components/notification/i18n/index.d.ts +1 -0
  113. package/packages/components/notification/index.js +1 -1
  114. package/packages/components/notification/index.js.gz +0 -0
  115. package/packages/components/pagination/i18n/index.d.ts +4 -0
  116. package/packages/components/pagination/index.js +42 -42
  117. package/packages/components/pagination/index.js.gz +0 -0
  118. package/packages/components/popover/i18n/index.d.ts +2 -0
  119. package/packages/components/popover/index.js +20 -20
  120. package/packages/components/popover/index.js.gz +0 -0
  121. package/packages/components/preview/i18n/index.d.ts +1 -0
  122. package/packages/components/preview/index.js +4 -4
  123. package/packages/components/preview/index.js.gz +0 -0
  124. package/packages/components/rich-editor/i18n/index.d.ts +4 -0
  125. package/packages/components/rich-editor/index.js +1596 -1592
  126. package/packages/components/rich-editor/index.js.gz +0 -0
  127. package/packages/components/search-form/i18n/index.d.ts +7 -0
  128. package/packages/components/search-form/index.js +117 -117
  129. package/packages/components/search-form/index.js.gz +0 -0
  130. package/packages/components/select/i18n/index.d.ts +4 -0
  131. package/packages/components/select/index.js +93 -92
  132. package/packages/components/select/index.js.gz +0 -0
  133. package/packages/components/select-list/i18n/index.d.ts +4 -0
  134. package/packages/components/select-list/index.js +110 -110
  135. package/packages/components/select-list/index.js.gz +0 -0
  136. package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -0
  137. package/packages/components/special-range-picker-month/index.js +60 -60
  138. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  139. package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -0
  140. package/packages/components/special-range-picker-year/index.js +41 -41
  141. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  142. package/packages/components/spin/i18n/index.d.ts +1 -0
  143. package/packages/components/spin/index.js +14 -14
  144. package/packages/components/spin/index.js.gz +0 -0
  145. package/packages/components/table/i18n/index.d.ts +20 -0
  146. package/packages/components/table/index.js +546 -544
  147. package/packages/components/table/index.js.gz +0 -0
  148. package/packages/components/tabs/i18n/index.d.ts +3 -0
  149. package/packages/components/tabs/index.js +42 -42
  150. package/packages/components/tabs/index.js.gz +0 -0
  151. package/packages/components/tooltip/i18n/index.d.ts +1 -0
  152. package/packages/components/tooltip/index.js +15 -15
  153. package/packages/components/tooltip/index.js.gz +0 -0
  154. package/packages/components/tree/i18n/index.d.ts +9 -0
  155. package/packages/components/tree/index.js +310 -309
  156. package/packages/components/tree/index.js.gz +0 -0
  157. package/packages/components/tree-v2/i18n/index.d.ts +8 -0
  158. package/packages/components/tree-v2/index.js +9 -8
  159. package/packages/components/tree-v2/index.js.gz +0 -0
  160. package/packages/components/upload/i18n/index.d.ts +6 -0
  161. package/packages/components/upload/index.js +57 -56
  162. package/packages/components/upload/index.js.gz +0 -0
  163. package/packages/components/virtual-tree/i18n/index.d.ts +1 -0
  164. package/packages/components/virtual-tree/index.js +12 -12
  165. package/packages/components/virtual-tree/index.js.gz +0 -0
  166. package/web-front-end/i18n/dasui_en-US.js +482 -478
  167. package/web-front-end/i18n/dasui_zh-CN.js +2 -2
  168. package/web-front-end/i18n/dasui_zh-MO.js +757 -0
  169. package/packages/business-components/ai-panel/index-14NcMHNj.js.gz +0 -0
  170. package/packages/business-components/ai-panel/index-CViVnNHG.js.gz +0 -0
@@ -1,36 +1,36 @@
1
1
  import '@das-fed/upf-ui/packages/components/calendar/style.css';
2
2
  import { withInstall as ee } from "@das-fed/upf-utils/with-install/index";
3
- import { defineComponent as Q, ref as b, computed as g, watch as ae, nextTick as K, createElementBlock as m, createCommentVNode as v, openBlock as u, normalizeClass as B, createElementVNode as W, Fragment as j, renderList as P, renderSlot as N, toDisplayString as L, normalizeStyle as te, onMounted as ne, onBeforeUnmount as re, createVNode as se, createSlots as U, withCtx as V, normalizeProps as F, mergeProps as Z, guardReactiveProps as E, createBlock as oe } from "vue";
3
+ import { defineComponent as Q, ref as b, computed as g, watch as ae, nextTick as K, createElementBlock as m, createCommentVNode as M, openBlock as u, normalizeClass as B, createElementVNode as S, Fragment as j, renderList as P, renderSlot as v, toDisplayString as L, normalizeStyle as te, onMounted as ne, onBeforeUnmount as re, createVNode as se, createSlots as U, 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 q, setI18nRule as le } from "@das-fed/upf-web/packages/i18n/index";
5
- import M from "dayjs";
5
+ import N from "dayjs";
6
6
  import { SizeWatcher as de } from "@das-fed/upf-utils/size-watcher";
7
- import { setThemeRule as ce } from "@das-fed/upf-web/packages/theme/index";
8
- const he = (o, i) => {
9
- const l = o.endOf("month"), c = i.startOf("month"), n = l.isSame(c, "week") ? c.add(1, "week") : c;
7
+ import { setThemeRule as he } from "@das-fed/upf-web/packages/theme/index";
8
+ const ce = (o, i) => {
9
+ const l = o.endOf("month"), h = i.startOf("month"), n = l.isSame(h, "week") ? h.add(1, "week") : h;
10
10
  return [
11
11
  [o, l],
12
12
  [n.startOf("week"), i]
13
13
  ];
14
14
  }, ie = (o, i) => {
15
- const l = o.endOf("month"), c = o.add(1, "month").startOf("month"), s = l.isSame(
16
- c,
15
+ const l = o.endOf("month"), h = o.add(1, "month").startOf("month"), s = l.isSame(
16
+ h,
17
17
  "week"
18
- ) ? c.add(1, "week") : c, n = s.endOf("month"), f = i.startOf("month"), z = n.isSame(f, "week") ? f.add(1, "week") : f;
18
+ ) ? h.add(1, "week") : h, n = s.endOf("month"), f = i.startOf("month"), D = n.isSame(f, "week") ? f.add(1, "week") : f;
19
19
  return [
20
20
  [o, l],
21
21
  [s.startOf("week"), n],
22
- [z.startOf("week"), i]
22
+ [D.startOf("week"), i]
23
23
  ];
24
24
  }, x = (o, i) => {
25
- const l = o.startOf("week"), c = i.endOf("week"), s = l.get("month"), n = c.get("month");
26
- return s === n ? [[l, c]] : (s + 1) % 12 === n ? he(l, c) : s + 2 === n || (s + 1) % 11 === n ? ie(l, c) : [];
27
- }, $ = (o) => Array.from(Array.from({ length: o }).keys()), ue = (o, i) => {
25
+ const l = o.startOf("week"), h = i.endOf("week"), s = l.get("month"), n = h.get("month");
26
+ return s === n ? [[l, h]] : (s + 1) % 12 === n ? ce(l, h) : s + 2 === n || (s + 1) % 11 === n ? ie(l, h) : [];
27
+ }, _ = (o) => Array.from(Array.from({ length: o }).keys()), ue = (o, i) => {
28
28
  const l = o.subtract(1, "month").endOf("month").date();
29
- return $(i).map((c, s) => l - (i - s - 1));
29
+ return _(i).map((h, s) => l - (i - s - 1));
30
30
  }, pe = (o) => {
31
31
  const i = o.daysInMonth();
32
- return $(i).map((l, c) => c + 1);
33
- }, me = (o) => $(o.length / 7).map((i) => {
32
+ return _(i).map((l, h) => h + 1);
33
+ }, me = (o) => _(o.length / 7).map((i) => {
34
34
  const l = i * 7;
35
35
  return o.slice(l, l + 7);
36
36
  }), fe = { key: 0 }, ye = { class: "das-calendar-header-box" }, ke = { class: "das-calendar-header-week-line" }, ge = ["onClick"], we = {
@@ -52,47 +52,47 @@ const he = (o, i) => {
52
52
  },
53
53
  emits: ["pick"],
54
54
  setup(o, { expose: i, emit: l }) {
55
- const c = l, s = M(), n = o, f = b("128px"), z = b(), Y = 60, S = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"], _ = g(() => !!n.range && !!n.range.length), J = g(() => {
55
+ const h = l, s = N(), n = o, f = b("128px"), D = b(), Y = 60, $ = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"], O = g(() => !!n.range && !!n.range.length), J = g(() => {
56
56
  const e = n.firstDayOfWeek, t = n.showZhou ? "das-calendar-weeks-zhou-" : "das-calendar-weeks-";
57
- return e === 0 ? S.map((r) => A(`${t}${r}`)) : S.slice(e).concat(S.slice(0, e)).map((r) => A(`${t}${r}`));
58
- }), D = g(() => {
57
+ return e === 0 ? $.map((r) => A(`${t}${r}`)) : $.slice(e).concat($.slice(0, e)).map((r) => A(`${t}${r}`));
58
+ }), C = g(() => {
59
59
  let e = [];
60
- if (_.value) {
60
+ if (O.value) {
61
61
  const [t, r] = n.range;
62
- let h = [];
63
- t.isSame(r, "month") ? h = $(r.date() - t.date() + 1).map((C) => ({
64
- text: t.date() + C,
62
+ let c = [];
63
+ t.isSame(r, "month") ? c = _(r.date() - t.date() + 1).map((z) => ({
64
+ text: t.date() + z,
65
65
  type: "current"
66
- })) : h = $(t.endOf("month").date() - t.date() + 1).map((C) => ({
67
- text: t.date() + C,
66
+ })) : c = _(t.endOf("month").date() - t.date() + 1).map((z) => ({
67
+ text: t.date() + z,
68
68
  type: "current"
69
69
  }));
70
- let k = h.length % 7;
70
+ let k = c.length % 7;
71
71
  k = k === 0 ? 0 : 7 - k;
72
- const w = $(k).map((C, T) => ({
72
+ const w = _(k).map((z, T) => ({
73
73
  text: T + 1,
74
74
  type: "next"
75
75
  }));
76
- e = h.concat(w);
76
+ e = c.concat(w);
77
77
  } else {
78
78
  const t = n.date.startOf("month").day(), r = ue(
79
79
  n.date,
80
80
  (t - n.firstDayOfWeek + 7) % 7
81
- ).map((C) => ({
82
- text: C,
81
+ ).map((z) => ({
82
+ text: z,
83
83
  type: "prev"
84
- })), h = pe(n.date).map((C) => ({
85
- text: C,
84
+ })), c = pe(n.date).map((z) => ({
85
+ text: z,
86
86
  type: "current"
87
87
  }));
88
- e = [...r, ...h];
89
- const k = 7 - (e.length % 7 || 7), w = $(k).map((C, T) => ({
88
+ e = [...r, ...c];
89
+ const k = 7 - (e.length % 7 || 7), w = _(k).map((z, T) => ({
90
90
  text: T + 1,
91
91
  type: "next"
92
92
  }));
93
93
  if (e = e.concat(w), n.calendartType == "simple" && e.length / 7 < 6) {
94
- const C = w.length ? w[w.length - 1].text : 0, T = $(7).map((Oe, X) => ({
95
- text: C + X + 1,
94
+ const z = w.length ? w[w.length - 1].text : 0, T = _(7).map((We, X) => ({
95
+ text: z + X + 1,
96
96
  type: "next"
97
97
  }));
98
98
  e = e.concat(T);
@@ -103,10 +103,10 @@ const he = (o, i) => {
103
103
  var r;
104
104
  const e = (r = n.parent) == null ? void 0 : r.offsetHeight;
105
105
  let t = Number(e) - Y - 1;
106
- f.value = t / D.value.length - 1 + "px";
106
+ f.value = t / C.value.length - 1 + "px";
107
107
  };
108
108
  ae(
109
- () => D.value,
109
+ () => C.value,
110
110
  (e) => {
111
111
  if (n.cellHeight) {
112
112
  f.value = `${n.cellHeight}px`;
@@ -118,7 +118,7 @@ const he = (o, i) => {
118
118
  },
119
119
  { immediate: !0 }
120
120
  );
121
- const O = () => {
121
+ const W = () => {
122
122
  if (n.cellHeight) {
123
123
  f.value = `${n.cellHeight}px`;
124
124
  return;
@@ -136,27 +136,27 @@ const he = (o, i) => {
136
136
  return n.date.date(e);
137
137
  }
138
138
  }, R = ({ text: e, type: t }) => {
139
- const r = [t], h = y(e, t);
140
- return h.isSame(n.selectedDay, "day") && r.push("is-selected"), h.isSame(s, "day") && r.push("is-today"), r;
139
+ const r = [t], c = y(e, t);
140
+ return c.isSame(n.selectedDay, "day") && r.push("is-selected"), c.isSame(s, "day") && r.push("is-today"), r;
141
141
  }, I = ({ text: e, type: t }) => {
142
142
  const r = y(e, t);
143
- c("pick", r);
143
+ h("pick", r);
144
144
  }, a = (e) => {
145
- const t = D.value[0];
145
+ const t = C.value[0];
146
146
  if (t) {
147
147
  const r = t[e];
148
148
  if (r) {
149
- const { text: h, type: k } = r;
150
- return y(h, k).format("MM/DD");
149
+ const { text: c, type: k } = r;
150
+ return y(c, k).format("MM/DD");
151
151
  }
152
152
  }
153
153
  return "";
154
154
  }, p = (e) => {
155
- const t = D.value[0];
155
+ const t = C.value[0];
156
156
  if (t) {
157
157
  const r = t[e];
158
158
  if (r) {
159
- const { text: h, type: k } = r, w = y(h, k);
159
+ const { text: c, type: k } = r, w = y(c, k);
160
160
  return {
161
161
  isSelected: w.isSame(n.selectedDay),
162
162
  type: `${k}-month`,
@@ -181,85 +181,85 @@ const he = (o, i) => {
181
181
  };
182
182
  };
183
183
  return i({
184
- getHeight: O
185
- }), (e, t) => D.value.length ? (u(), m("table", {
184
+ getHeight: W
185
+ }), (e, t) => C.value.length ? (u(), m("table", {
186
186
  key: 0,
187
- class: B(["das-calendar-table", { "is-range": _.value, "is-week": e.calendartType == "week", simple: e.calendartType == "simple" }]),
187
+ class: B(["das-calendar-table", { "is-range": O.value, "is-week": e.calendartType == "week", simple: e.calendartType == "simple" }]),
188
188
  cellspacing: "0",
189
189
  cellpadding: "0",
190
190
  ref_key: "tableRef",
191
- ref: z
191
+ ref: D
192
192
  }, [
193
- e.hideHeader ? v("", !0) : (u(), m("thead", fe, [
194
- (u(!0), m(j, null, P(J.value, (r, h) => (u(), m("th", {
193
+ e.hideHeader ? M("", !0) : (u(), m("thead", fe, [
194
+ (u(!0), m(j, null, P(J.value, (r, c) => (u(), m("th", {
195
195
  class: "das-calendar-table-header",
196
196
  key: r
197
197
  }, [
198
- W("div", ye, [
199
- W("div", ke, [
200
- W("div", {
198
+ S("div", ye, [
199
+ S("div", ke, [
200
+ S("div", {
201
201
  class: B(["das-calendar-header-week", { highlight: e.highlightWeek }])
202
202
  }, L(r), 3),
203
- e.calendartType == "week" ? N(e.$slots, "week-type", {
203
+ e.calendartType == "week" ? v(e.$slots, "week-type", {
204
204
  key: 0,
205
- data: p(h)
206
- }) : v("", !0)
205
+ data: p(c)
206
+ }) : M("", !0)
207
207
  ]),
208
208
  e.calendartType == "week" ? (u(), m("div", {
209
209
  key: 0,
210
210
  class: B(["das-calendar-header-day", { highlight: e.highlightDay }])
211
- }, L(a(h)), 3)) : v("", !0)
211
+ }, L(a(c)), 3)) : M("", !0)
212
212
  ])
213
213
  ]))), 128))
214
214
  ])),
215
- W("tbody", null, [
216
- (u(!0), m(j, null, P(D.value, (r, h) => (u(), m("tr", {
217
- key: h,
215
+ S("tbody", null, [
216
+ (u(!0), m(j, null, P(C.value, (r, c) => (u(), m("tr", {
217
+ key: c,
218
218
  class: B({
219
219
  "das-calendar-table-row": !0,
220
- "hide-border": h === 0 && e.hideHeader
220
+ "hide-border": c === 0 && e.hideHeader
221
221
  })
222
222
  }, [
223
223
  (u(!0), m(j, null, P(r, (k, w) => (u(), m("td", {
224
224
  key: w,
225
225
  class: B(R(k)),
226
- onClick: (C) => I(k)
226
+ onClick: (z) => I(k)
227
227
  }, [
228
- W("div", {
228
+ S("div", {
229
229
  class: "das-calendar-day",
230
230
  style: te({ height: f.value })
231
231
  }, [
232
- N(e.$slots, "date-cell", {
232
+ v(e.$slots, "date-cell", {
233
233
  data: d(k)
234
234
  })
235
235
  ], 4)
236
236
  ], 10, ge))), 128))
237
237
  ], 2))), 128))
238
238
  ])
239
- ], 2)) : v("", !0);
239
+ ], 2)) : M("", !0);
240
240
  }
241
- }), Ce = {
241
+ }), ze = {
242
242
  key: 0,
243
243
  class: "das-calendar-body 1"
244
- }, De = {
244
+ }, Ce = {
245
245
  key: 1,
246
246
  class: "das-calendar-cell-date"
247
- }, ve = {
247
+ }, Me = {
248
248
  key: 2,
249
249
  class: "das-calendar-cell-cont"
250
- }, ze = {
250
+ }, De = {
251
251
  key: 1,
252
252
  class: "das-calendar-body 2"
253
- }, Ne = {
253
+ }, ve = {
254
254
  key: 1,
255
255
  class: "das-calendar-cell-date"
256
- }, _e = {
256
+ }, Oe = {
257
257
  key: 2,
258
258
  class: "das-calendar-cell-cont"
259
- }, Me = {
259
+ }, Ne = {
260
260
  name: "test"
261
- }, $e = /* @__PURE__ */ Q({
262
- ...Me,
261
+ }, _e = /* @__PURE__ */ Q({
262
+ ...Ne,
263
263
  props: {
264
264
  modelValue: {},
265
265
  range: {},
@@ -274,75 +274,75 @@ const he = (o, i) => {
274
274
  },
275
275
  emits: ["update:model-value", "itemClick"],
276
276
  setup(o, { expose: i, emit: l }) {
277
- const c = g(() => q.value == "zh-CN" ? 1 : (q.value == "en", 0)), s = o, n = l, f = b(), z = b(), Y = b(), S = g(() => s.firstDayOfWeek || c.value), _ = b(), J = M(), D = g({
277
+ const h = g(() => q.value == "zh-CN" ? 1 : (q.value == "en", 0)), s = o, n = l, f = b(), D = b(), Y = b(), $ = g(() => s.firstDayOfWeek || h.value), O = b(), J = N(), C = g({
278
278
  get() {
279
- return s.modelValue ? (_.value = y.value, y.value) : _.value;
279
+ return s.modelValue ? (O.value = y.value, y.value) : O.value;
280
280
  },
281
281
  set(a) {
282
282
  if (!a) return;
283
- _.value = a;
283
+ O.value = a;
284
284
  const p = a.toDate();
285
285
  s.isSwitchMonth && n("update:model-value", p);
286
286
  }
287
287
  }), H = g(() => {
288
288
  if (s.type == "week") {
289
289
  if (s.range) return s.range;
290
- const p = (M(s.modelValue).day() - S.value + 7) % 7, d = 7 - (p + 1), e = [];
291
- return e.push(M(s.modelValue).subtract(p, "day").toDate()), e.push(M(s.modelValue).add(d, "day").toDate()), e;
290
+ const p = (N(s.modelValue).day() - $.value + 7) % 7, d = 7 - (p + 1), e = [];
291
+ return e.push(N(s.modelValue).subtract(p, "day").toDate()), e.push(N(s.modelValue).add(d, "day").toDate()), e;
292
292
  } else
293
293
  return s.range ? s.range : void 0;
294
- }), O = g(() => {
294
+ }), W = g(() => {
295
295
  if (!H.value) return [];
296
- const a = H.value.map((e) => M(e)), [p, d] = a;
296
+ const a = H.value.map((e) => N(e)), [p, d] = a;
297
297
  return s.type == "week" ? [[p, d]] : p.isAfter(d) ? [] : p.isSame(d, "month") ? x(p, d) : p.add(1, "month").month() !== d.month() ? [] : x(p, d);
298
- }), y = g(() => s.modelValue ? M(s.modelValue) : D.value || (O.value.length ? O.value[0][0] : J));
298
+ }), y = g(() => s.modelValue ? N(s.modelValue) : C.value || (W.value.length ? W.value[0][0] : J));
299
299
  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(() => {
300
300
  const a = `das-calendar-month${y.value.format("M")}`;
301
301
  return `${y.value.year()} ${A("das-calendar-year")} ${A(a)}`;
302
302
  }), ne(() => {
303
303
  Y.value = de(() => {
304
304
  var a, p;
305
- Array.isArray(z.value) ? (a = z.value[0]) == null || a.getHeight() : (p = z.value) == null || p.getHeight();
305
+ Array.isArray(D.value) ? (a = D.value[0]) == null || a.getHeight() : (p = D.value) == null || p.getHeight();
306
306
  }, f.value);
307
307
  }), re(() => {
308
308
  Y.value.disconnect();
309
309
  });
310
310
  const R = (a) => {
311
- s.isSwitchSelection && (D.value = a), n("itemClick", a.toDate());
311
+ s.isSwitchSelection && (C.value = a), n("itemClick", a.toDate());
312
312
  };
313
313
  return i({
314
314
  $calendar: f,
315
315
  setActive: (a) => {
316
- D.value = M(a), n("itemClick", a);
316
+ C.value = N(a), n("itemClick", a);
317
317
  }
318
318
  }), (a, p) => (u(), m("div", {
319
319
  ref_key: "$calendar",
320
320
  ref: f,
321
321
  class: "das-ui-calendar"
322
322
  }, [
323
- O.value.length === 0 ? (u(), m("div", Ce, [
323
+ W.value.length === 0 ? (u(), m("div", ze, [
324
324
  se(G, {
325
325
  ref_key: "$calendarTable",
326
- ref: z,
326
+ ref: D,
327
327
  date: y.value,
328
- firstDayOfWeek: S.value,
328
+ firstDayOfWeek: $.value,
329
329
  parent: f.value,
330
330
  calendartType: a.type,
331
331
  highlightWeek: a.highlightWeek,
332
332
  highlightDay: a.highlightDay,
333
333
  showZhou: a.showZhou,
334
334
  cellHeight: a.cellHeight,
335
- "selected-day": _.value,
335
+ "selected-day": O.value,
336
336
  onPick: R
337
337
  }, U({
338
338
  "date-cell": V((d) => [
339
- a.$slots.custom ? N(a.$slots, "custom", F(Z({ key: 0 }, d))) : v("", !0),
340
- a.type != "week" && !a.$slots.custom ? (u(), m("p", De, [
341
- W("span", null, L(Number(d.data.day.split("-").slice(2)).toString()), 1),
342
- N(a.$slots, "date-type", F(E(d)))
343
- ])) : v("", !0),
344
- a.$slots.custom ? v("", !0) : (u(), m("div", ve, [
345
- N(a.$slots, "date-cell", F(E(d)))
339
+ a.$slots.custom ? v(a.$slots, "custom", F(Z({ key: 0 }, d))) : M("", !0),
340
+ a.type != "week" && !a.$slots.custom ? (u(), m("p", Ce, [
341
+ S("span", null, L(Number(d.data.day.split("-").slice(2)).toString()), 1),
342
+ v(a.$slots, "date-type", F(E(d)))
343
+ ])) : M("", !0),
344
+ a.$slots.custom ? M("", !0) : (u(), m("div", Me, [
345
+ v(a.$slots, "date-cell", F(E(d)))
346
346
  ]))
347
347
  ]),
348
348
  _: 2
@@ -350,40 +350,40 @@ const he = (o, i) => {
350
350
  a.$slots["week-type"] && a.type == "week" ? {
351
351
  name: "week-type",
352
352
  fn: V((d) => [
353
- N(a.$slots, "week-type", F(E(d)))
353
+ v(a.$slots, "week-type", F(E(d)))
354
354
  ]),
355
355
  key: "0"
356
356
  } : void 0
357
357
  ]), 1032, ["date", "firstDayOfWeek", "parent", "calendartType", "highlightWeek", "highlightDay", "showZhou", "cellHeight", "selected-day"])
358
- ])) : (u(), m("div", ze, [
359
- (u(!0), m(j, null, P(O.value, (d, e) => (u(), oe(G, {
358
+ ])) : (u(), m("div", De, [
359
+ (u(!0), m(j, null, P(W.value, (d, e) => (u(), oe(G, {
360
360
  ref_for: !0,
361
361
  ref_key: "$calendarTable",
362
- ref: z,
362
+ ref: D,
363
363
  key: e,
364
- firstDayOfWeek: S.value,
364
+ firstDayOfWeek: $.value,
365
365
  date: d[0],
366
366
  calendartType: a.type,
367
367
  highlightWeek: a.highlightWeek,
368
368
  highlightDay: a.highlightDay,
369
369
  showZhou: a.showZhou,
370
370
  cellHeight: a.cellHeight,
371
- "selected-day": _.value,
371
+ "selected-day": O.value,
372
372
  range: d,
373
373
  parent: f.value,
374
374
  "hide-header": e !== 0,
375
375
  onPick: R
376
376
  }, U({
377
377
  "date-cell": V((t) => [
378
- a.$slots.custom ? N(a.$slots, "custom", Z({
378
+ a.$slots.custom ? v(a.$slots, "custom", Z({
379
379
  key: 0,
380
380
  ref_for: !0
381
- }, t)) : v("", !0),
382
- a.type != "week" && !a.$slots.custom ? (u(), m("p", Ne, [
383
- W("span", null, L(Number(t.data.day.split("-").slice(2)).toString()), 1)
384
- ])) : v("", !0),
385
- a.$slots.custom ? v("", !0) : (u(), m("div", _e, [
386
- N(a.$slots, "date-cell", Z({ ref_for: !0 }, t))
381
+ }, t)) : M("", !0),
382
+ a.type != "week" && !a.$slots.custom ? (u(), m("p", ve, [
383
+ S("span", null, L(Number(t.data.day.split("-").slice(2)).toString()), 1)
384
+ ])) : M("", !0),
385
+ a.$slots.custom ? M("", !0) : (u(), m("div", Oe, [
386
+ v(a.$slots, "date-cell", Z({ ref_for: !0 }, t))
387
387
  ]))
388
388
  ]),
389
389
  _: 2
@@ -391,7 +391,7 @@ const he = (o, i) => {
391
391
  a.$slots["week-type"] && a.type == "week" ? {
392
392
  name: "week-type",
393
393
  fn: V((t) => [
394
- N(a.$slots, "week-type", Z({ ref_for: !0 }, t))
394
+ v(a.$slots, "week-type", Z({ ref_for: !0 }, t))
395
395
  ]),
396
396
  key: "0"
397
397
  } : void 0
@@ -399,7 +399,7 @@ const he = (o, i) => {
399
399
  ]))
400
400
  ], 512));
401
401
  }
402
- }), Se = {
402
+ }), $e = {
403
403
  "--das-ui-calendar-color-primary": "#5582F3",
404
404
  // 主题色
405
405
  "--das-ui-calendar-color-text": "#212121",
@@ -418,57 +418,57 @@ const he = (o, i) => {
418
418
  // 上/下一个月文字颜色
419
419
  // '--das-ui-calendar-head-height': '60px', // 日历表头高度
420
420
  // '--das-ui-calendar-cell-height': '128px', // 单元格高度
421
- }, We = {
422
- 周: { "zh-CN": "周", en: "Week", _appCode: "framework" },
423
- 日历: { "zh-CN": "日历", en: "Calendar", _appCode: "framework" },
424
- "das-calendar-prevMonth": { "zh-CN": "上个月", en: "Last Month", _appCode: "framework" },
425
- "das-calendar-nextMonth": { "zh-CN": "下个月", en: "Next Month", _appCode: "framework" },
426
- "das-calendar-prevYear": { "zh-CN": "前一年", en: "Previous Year", _appCode: "framework" },
427
- "das-calendar-nextYear": { "zh-CN": "后一年", en: "Next Year", _appCode: "framework" },
428
- "das-calendar-year": { "zh-CN": "年", en: "Year", _appCode: "framework" },
429
- "das-calendar-today": { "zh-CN": "今天", en: "Today", _appCode: "framework" },
430
- "das-calendar-weeks-sun": { "zh-CN": "日", en: "Sun", _appCode: "framework" },
431
- "das-calendar-weeks-mon": { "zh-CN": "一", en: "Mon", _appCode: "framework" },
432
- "das-calendar-weeks-tue": { "zh-CN": "二", en: "Tues", _appCode: "framework" },
433
- "das-calendar-weeks-wed": { "zh-CN": "三", en: "Wed", _appCode: "framework" },
434
- "das-calendar-weeks-thu": { "zh-CN": "四", en: "Thur", _appCode: "framework" },
435
- "das-calendar-weeks-fri": { "zh-CN": "五", en: "Fri", _appCode: "framework" },
436
- "das-calendar-weeks-sat": { "zh-CN": "六", en: "Sat", _appCode: "framework" },
437
- "das-calendar-weeks-zhou-sun": { "zh-CN": "周日", en: "Sun", _appCode: "framework" },
438
- "das-calendar-weeks-zhou-mon": { "zh-CN": "周一", en: "Mon", _appCode: "framework" },
439
- "das-calendar-weeks-zhou-tue": { "zh-CN": "周二", en: "Tues", _appCode: "framework" },
440
- "das-calendar-weeks-zhou-wed": { "zh-CN": "周三", en: "Wed", _appCode: "framework" },
441
- "das-calendar-weeks-zhou-thu": { "zh-CN": "周四", en: "Thur", _appCode: "framework" },
442
- "das-calendar-weeks-zhou-fri": { "zh-CN": "周五", en: "Fri", _appCode: "framework" },
443
- "das-calendar-weeks-zhou-sat": { "zh-CN": "周六", en: "Sat", _appCode: "framework" },
444
- "das-calendar-month1": { "zh-CN": "1 月", en: "Jan", _appCode: "framework" },
445
- "das-calendar-month2": { "zh-CN": "2 月", en: "Feb", _appCode: "framework" },
446
- "das-calendar-month3": { "zh-CN": "3 月", en: "Mar", _appCode: "framework" },
447
- "das-calendar-month4": { "zh-CN": "4 月", en: "Apr", _appCode: "framework" },
448
- "das-calendar-month5": { "zh-CN": "5 月", en: "May", _appCode: "framework" },
449
- "das-calendar-month6": { "zh-CN": "6 月", en: "Jun", _appCode: "framework" },
450
- "das-calendar-month7": { "zh-CN": "7 月", en: "Jul", _appCode: "framework" },
451
- "das-calendar-month8": { "zh-CN": "8 月", en: "Aug", _appCode: "framework" },
452
- "das-calendar-month9": { "zh-CN": "9 月", en: "Sept", _appCode: "framework" },
453
- "das-calendar-month10": { "zh-CN": "10 月", en: "Oct", _appCode: "framework" },
454
- "das-calendar-month11": { "zh-CN": "11 月", en: "Nov", _appCode: "framework" },
455
- "das-calendar-month12": { "zh-CN": "12 月", en: "Dec", _appCode: "framework" },
456
- "das-calendar-months-jan": { "zh-CN": "一月", en: "Jan", _appCode: "framework" },
457
- "das-calendar-months-feb": { "zh-CN": "二月", en: "Feb", _appCode: "framework" },
458
- "das-calendar-months-mar": { "zh-CN": "三月", en: "Mar", _appCode: "framework" },
459
- "das-calendar-months-apr": { "zh-CN": "四月", en: "Apr", _appCode: "framework" },
460
- "das-calendar-months-may": { "zh-CN": "五月", en: "May", _appCode: "framework" },
461
- "das-calendar-months-jun": { "zh-CN": "六月", en: "Jun", _appCode: "framework" },
462
- "das-calendar-months-jul": { "zh-CN": "七月", en: "Jul", _appCode: "framework" },
463
- "das-calendar-months-aug": { "zh-CN": "八月", en: "Aug", _appCode: "framework" },
464
- "das-calendar-months-sep": { "zh-CN": "九月", en: "Sept", _appCode: "framework" },
465
- "das-calendar-months-oct": { "zh-CN": "十月", en: "Oct", _appCode: "framework" },
466
- "das-calendar-months-nov": { "zh-CN": "十一月", en: "Nov", _appCode: "framework" },
467
- "das-calendar-months-dec": { "zh-CN": "十二月", en: "Dec", _appCode: "framework" }
421
+ }, Se = {
422
+ 周: { "zh-CN": "周", en: "Week", "zh-MO": "周", _appCode: "framework" },
423
+ 日历: { "zh-CN": "日历", en: "Calendar", "zh-MO": "日曆", _appCode: "framework" },
424
+ "das-calendar-prevMonth": { "zh-CN": "上个月", en: "Last Month", "zh-MO": "上個月", _appCode: "framework" },
425
+ "das-calendar-nextMonth": { "zh-CN": "下个月", en: "Next Month", "zh-MO": "下個月", _appCode: "framework" },
426
+ "das-calendar-prevYear": { "zh-CN": "前一年", en: "Previous Year", "zh-MO": "前一年", _appCode: "framework" },
427
+ "das-calendar-nextYear": { "zh-CN": "后一年", en: "Next Year", "zh-MO": "後一年", _appCode: "framework" },
428
+ "das-calendar-year": { "zh-CN": "年", en: "Year", "zh-MO": "年", _appCode: "framework" },
429
+ "das-calendar-today": { "zh-CN": "今天", en: "Today", "zh-MO": "今天", _appCode: "framework" },
430
+ "das-calendar-weeks-sun": { "zh-CN": "日", en: "Sun", "zh-MO": "日", _appCode: "framework" },
431
+ "das-calendar-weeks-mon": { "zh-CN": "一", en: "Mon", "zh-MO": "一", _appCode: "framework" },
432
+ "das-calendar-weeks-tue": { "zh-CN": "二", en: "Tues", "zh-MO": "二", _appCode: "framework" },
433
+ "das-calendar-weeks-wed": { "zh-CN": "三", en: "Wed", "zh-MO": "三", _appCode: "framework" },
434
+ "das-calendar-weeks-thu": { "zh-CN": "四", en: "Thur", "zh-MO": "四", _appCode: "framework" },
435
+ "das-calendar-weeks-fri": { "zh-CN": "五", en: "Fri", "zh-MO": "五", _appCode: "framework" },
436
+ "das-calendar-weeks-sat": { "zh-CN": "六", en: "Sat", "zh-MO": "六", _appCode: "framework" },
437
+ "das-calendar-weeks-zhou-sun": { "zh-CN": "周日", en: "Sun", "zh-MO": "周日", _appCode: "framework" },
438
+ "das-calendar-weeks-zhou-mon": { "zh-CN": "周一", en: "Mon", "zh-MO": "週一", _appCode: "framework" },
439
+ "das-calendar-weeks-zhou-tue": { "zh-CN": "周二", en: "Tues", "zh-MO": "週二", _appCode: "framework" },
440
+ "das-calendar-weeks-zhou-wed": { "zh-CN": "周三", en: "Wed", "zh-MO": "週三", _appCode: "framework" },
441
+ "das-calendar-weeks-zhou-thu": { "zh-CN": "周四", en: "Thur", "zh-MO": "週四", _appCode: "framework" },
442
+ "das-calendar-weeks-zhou-fri": { "zh-CN": "周五", en: "Fri", "zh-MO": "週五", _appCode: "framework" },
443
+ "das-calendar-weeks-zhou-sat": { "zh-CN": "周六", en: "Sat", "zh-MO": "週六", _appCode: "framework" },
444
+ "das-calendar-month1": { "zh-CN": "1 月", en: "Jan", "zh-MO": "1 月", _appCode: "framework" },
445
+ "das-calendar-month2": { "zh-CN": "2 月", en: "Feb", "zh-MO": "2 月", _appCode: "framework" },
446
+ "das-calendar-month3": { "zh-CN": "3 月", en: "Mar", "zh-MO": "3 月", _appCode: "framework" },
447
+ "das-calendar-month4": { "zh-CN": "4 月", en: "Apr", "zh-MO": "4 月", _appCode: "framework" },
448
+ "das-calendar-month5": { "zh-CN": "5 月", en: "May", "zh-MO": "5 月", _appCode: "framework" },
449
+ "das-calendar-month6": { "zh-CN": "6 月", en: "Jun", "zh-MO": "6 月", _appCode: "framework" },
450
+ "das-calendar-month7": { "zh-CN": "7 月", en: "Jul", "zh-MO": "7 月", _appCode: "framework" },
451
+ "das-calendar-month8": { "zh-CN": "8 月", en: "Aug", "zh-MO": "8 月", _appCode: "framework" },
452
+ "das-calendar-month9": { "zh-CN": "9 月", en: "Sept", "zh-MO": "9 月", _appCode: "framework" },
453
+ "das-calendar-month10": { "zh-CN": "10 月", en: "Oct", "zh-MO": "10 月", _appCode: "framework" },
454
+ "das-calendar-month11": { "zh-CN": "11 月", en: "Nov", "zh-MO": "11 月", _appCode: "framework" },
455
+ "das-calendar-month12": { "zh-CN": "12 月", en: "Dec", "zh-MO": "12 月", _appCode: "framework" },
456
+ "das-calendar-months-jan": { "zh-CN": "一月", en: "Jan", "zh-MO": "一月", _appCode: "framework" },
457
+ "das-calendar-months-feb": { "zh-CN": "二月", en: "Feb", "zh-MO": "二月", _appCode: "framework" },
458
+ "das-calendar-months-mar": { "zh-CN": "三月", en: "Mar", "zh-MO": "三月", _appCode: "framework" },
459
+ "das-calendar-months-apr": { "zh-CN": "四月", en: "Apr", "zh-MO": "四月", _appCode: "framework" },
460
+ "das-calendar-months-may": { "zh-CN": "五月", en: "May", "zh-MO": "五月", _appCode: "framework" },
461
+ "das-calendar-months-jun": { "zh-CN": "六月", en: "Jun", "zh-MO": "六月", _appCode: "framework" },
462
+ "das-calendar-months-jul": { "zh-CN": "七月", en: "Jul", "zh-MO": "七月", _appCode: "framework" },
463
+ "das-calendar-months-aug": { "zh-CN": "八月", en: "Aug", "zh-MO": "八月", _appCode: "framework" },
464
+ "das-calendar-months-sep": { "zh-CN": "九月", en: "Sept", "zh-MO": "九月", _appCode: "framework" },
465
+ "das-calendar-months-oct": { "zh-CN": "十月", en: "Oct", "zh-MO": "十月", _appCode: "framework" },
466
+ "das-calendar-months-nov": { "zh-CN": "十一月", en: "Nov", "zh-MO": "十一月", _appCode: "framework" },
467
+ "das-calendar-months-dec": { "zh-CN": "十二月", en: "Dec", "zh-MO": "十二月", _appCode: "framework" }
468
468
  };
469
- le(We);
470
- ce(Se);
471
- const Re = ee($e), Ve = { name: `calendar ${A("日历")}` };
469
+ le(Se);
470
+ he($e);
471
+ const Re = ee(_e), Ve = { name: `calendar ${A("日历")}` };
472
472
  export {
473
473
  Re as DasCalendar,
474
474
  Ve as default
@@ -2,6 +2,7 @@ declare const _default: {
2
2
  请选择: {
3
3
  'zh-CN': string;
4
4
  en: string;
5
+ 'zh-MO': string;
5
6
  _appCode: string;
6
7
  };
7
8
  };