@das-fed/ui 6.4.0-dev.51 → 6.4.0-dev.53

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 (187) hide show
  1. package/esm-map.json +3 -1
  2. package/i18n-collection/en.js +426 -425
  3. package/i18n-collection/zh-CN.js +437 -437
  4. package/package.json +5 -5
  5. package/packages/business-components/change-enterprises/i18n/index.d.ts +15 -0
  6. package/packages/business-components/change-enterprises/index.js +51 -45
  7. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  8. package/packages/business-components/change-pwd/i18n/index.d.ts +77 -1
  9. package/packages/business-components/change-pwd/index.js +118 -99
  10. package/packages/business-components/change-pwd/index.js.gz +0 -0
  11. package/packages/business-components/currency-page/i18n/index.d.ts +19 -0
  12. package/packages/business-components/currency-page/index.js +27 -20
  13. package/packages/business-components/currency-page/index.js.gz +0 -0
  14. package/packages/business-components/device-panel/i18n/index.d.ts +767 -0
  15. package/packages/business-components/device-panel/index.js +4961 -4767
  16. package/packages/business-components/device-panel/index.js.gz +0 -0
  17. package/packages/business-components/device-panel/style.css +1 -1
  18. package/packages/business-components/device-panel/style.css.gz +0 -0
  19. package/packages/business-components/export-button/i18n/index.d.ts +51 -0
  20. package/packages/business-components/export-button/index.js +117 -102
  21. package/packages/business-components/export-button/index.js.gz +0 -0
  22. package/packages/business-components/import-button/i18n/index.d.ts +103 -0
  23. package/packages/business-components/import-button/index.js +220 -192
  24. package/packages/business-components/import-button/index.js.gz +0 -0
  25. package/packages/business-components/model-table-dialog/i18n/index.d.ts +27 -0
  26. package/packages/business-components/model-table-dialog/index.js +663 -660
  27. package/packages/business-components/model-table-dialog/index.js.gz +0 -0
  28. package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +48 -16
  29. package/packages/business-components/model-table-dialog/style.css +1 -1
  30. package/packages/business-components/model-table-dialog/style.css.gz +0 -0
  31. package/packages/business-components/process-configuration/i18n/index.d.ts +114 -1
  32. package/packages/business-components/process-configuration/index.js +158 -130
  33. package/packages/business-components/process-configuration/index.js.gz +0 -0
  34. package/packages/business-components/process-form/api-service/formPreView.d.ts +7 -0
  35. package/packages/business-components/process-form/apis.d.ts +1 -0
  36. package/packages/business-components/process-form/i18n/index.d.ts +279 -0
  37. package/packages/business-components/process-form/index.js +1170 -1071
  38. package/packages/business-components/process-form/index.js.gz +0 -0
  39. package/packages/business-components/process-form/src/widgets/store.d.ts +1 -0
  40. package/packages/business-components/process-form/style.css +1 -1
  41. package/packages/business-components/process-log/i18n/index.d.ts +33 -1
  42. package/packages/business-components/process-log/index.js +151 -146
  43. package/packages/business-components/process-log/index.js.gz +0 -0
  44. package/packages/business-components/process-search-form/i18n/index.d.ts +39 -0
  45. package/packages/business-components/process-search-form/index.d.ts +2 -2
  46. package/packages/business-components/process-search-form/index.js +420 -389
  47. package/packages/business-components/process-search-form/index.js.gz +0 -0
  48. package/packages/business-components/process-search-form/src/App.vue.d.ts +2 -2
  49. package/packages/business-components/process-search-form/src/type.d.ts +1 -1
  50. package/packages/business-components/process-table/i18n/index.d.ts +35 -0
  51. package/packages/business-components/process-table/index.js +265 -254
  52. package/packages/business-components/process-table/index.js.gz +0 -0
  53. package/packages/business-components/upload-file/i18n/index.d.ts +7 -0
  54. package/packages/business-components/upload-file/index.js +43 -38
  55. package/packages/business-components/upload-file/index.js.gz +0 -0
  56. package/packages/business-components/upload-file/src/type.d.ts +3 -0
  57. package/packages/business-components/urgent-panel/i18n/index.d.ts +331 -0
  58. package/packages/business-components/urgent-panel/index.js +900 -814
  59. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  60. package/packages/business-components/user-org-dialog/i18n/index.d.ts +53 -1
  61. package/packages/business-components/user-org-dialog/index.js +196 -186
  62. package/packages/business-components/user-org-dialog/index.js.gz +0 -0
  63. package/packages/business-components/video-dialog/i18n/index.d.ts +71 -0
  64. package/packages/business-components/video-dialog/index.js +199 -179
  65. package/packages/business-components/video-dialog/index.js.gz +0 -0
  66. package/packages/components/button/i18n/index.d.ts +1 -6
  67. package/packages/components/button/index.js +16 -21
  68. package/packages/components/button/index.js.gz +0 -0
  69. package/packages/components/calendar/i18n/index.d.ts +52 -44
  70. package/packages/components/calendar/index.js +77 -75
  71. package/packages/components/calendar/index.js.gz +0 -0
  72. package/packages/components/cascader/i18n/index.d.ts +7 -0
  73. package/packages/components/cascader/index.js +38 -35
  74. package/packages/components/cascader/index.js.gz +0 -0
  75. package/packages/components/color-picker/i18n/index.d.ts +7 -0
  76. package/packages/components/color-picker/index.js +37 -34
  77. package/packages/components/color-picker/index.js.gz +0 -0
  78. package/packages/components/custom-search-item/i18n/index.d.ts +7 -0
  79. package/packages/components/custom-search-item/index.js +27 -24
  80. package/packages/components/custom-search-item/index.js.gz +0 -0
  81. package/packages/components/date-picker/i18n/index.d.ts +15 -0
  82. package/packages/components/date-picker/index.js +81 -76
  83. package/packages/components/date-picker/index.js.gz +0 -0
  84. package/packages/components/dialog/i18n/index.d.ts +6 -6
  85. package/packages/components/dialog/index.js +58 -58
  86. package/packages/components/dialog/index.js.gz +0 -0
  87. package/packages/components/dimple-layout/i18n/index.d.ts +43 -0
  88. package/packages/components/dimple-layout/index.js +1077 -1064
  89. package/packages/components/dimple-layout/index.js.gz +0 -0
  90. package/packages/components/dropdown/i18n/index.d.ts +7 -0
  91. package/packages/components/dropdown/index.js +32 -29
  92. package/packages/components/dropdown/index.js.gz +0 -0
  93. package/packages/components/empty/index.js +14 -16
  94. package/packages/components/empty/index.js.gz +0 -0
  95. package/packages/components/image-upload/i18n/index.d.ts +27 -3
  96. package/packages/components/image-upload/index.js +84 -78
  97. package/packages/components/image-upload/index.js.gz +0 -0
  98. package/packages/components/image-viewer/i18n/index.d.ts +31 -0
  99. package/packages/components/image-viewer/index.js +246 -237
  100. package/packages/components/image-viewer/index.js.gz +0 -0
  101. package/packages/components/input/i18n/index.d.ts +15 -0
  102. package/packages/components/input/index.js +50 -45
  103. package/packages/components/input/index.js.gz +0 -0
  104. package/packages/components/input-dialog-select/i18n/index.d.ts +1 -1
  105. package/packages/components/input-dialog-select/index.js +20 -23
  106. package/packages/components/input-dialog-select/index.js.gz +0 -0
  107. package/packages/components/live-player/i18n/index.d.ts +15 -0
  108. package/packages/components/live-player/index.js +15 -9
  109. package/packages/components/live-player/index.js.gz +0 -0
  110. package/packages/components/loading/i18n/index.d.ts +7 -0
  111. package/packages/components/loading/index.js +93 -90
  112. package/packages/components/loading/index.js.gz +0 -0
  113. package/packages/components/map/i18n/index.d.ts +23 -0
  114. package/packages/components/map/index.js +355 -347
  115. package/packages/components/map/index.js.gz +0 -0
  116. package/packages/components/menu-aside/i18n/index.d.ts +7 -0
  117. package/packages/components/menu-aside/index.js +150 -147
  118. package/packages/components/menu-aside/index.js.gz +0 -0
  119. package/packages/components/message/i18n/index.d.ts +7 -0
  120. package/packages/components/message/index.js +17 -14
  121. package/packages/components/message/index.js.gz +0 -0
  122. package/packages/components/notification/i18n/index.d.ts +7 -0
  123. package/packages/components/notification/index.js +10 -7
  124. package/packages/components/notification/index.js.gz +0 -0
  125. package/packages/components/pagination/i18n/index.d.ts +19 -0
  126. package/packages/components/pagination/index.js +81 -75
  127. package/packages/components/pagination/index.js.gz +0 -0
  128. package/packages/components/popover/i18n/index.d.ts +2 -2
  129. package/packages/components/preview/i18n/index.d.ts +1 -1
  130. package/packages/components/preview/index.js +1 -1
  131. package/packages/components/preview/index.js.gz +0 -0
  132. package/packages/components/rich-editor/i18n/index.d.ts +10 -3
  133. package/packages/components/rich-editor/index.js +4 -3
  134. package/packages/components/rich-editor/index.js.gz +0 -0
  135. package/packages/components/search/i18n/index.d.ts +25 -1
  136. package/packages/components/search/index.js +31 -28
  137. package/packages/components/search/index.js.gz +0 -0
  138. package/packages/components/select/i18n/index.d.ts +23 -0
  139. package/packages/components/select/index.js +204 -197
  140. package/packages/components/select/index.js.gz +0 -0
  141. package/packages/components/select-list/i18n/index.d.ts +4 -4
  142. package/packages/components/select-list/index.js +4 -4
  143. package/packages/components/select-list/index.js.gz +0 -0
  144. package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -4
  145. package/packages/components/special-range-picker-month/index.js +15 -15
  146. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  147. package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -3
  148. package/packages/components/special-range-picker-year/index.js +81 -81
  149. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  150. package/packages/components/spin/i18n/index.d.ts +7 -0
  151. package/packages/components/spin/index.js +35 -32
  152. package/packages/components/spin/index.js.gz +0 -0
  153. package/packages/components/table/i18n/index.d.ts +72 -2
  154. package/packages/components/table/index.js +1245 -1225
  155. package/packages/components/table/index.js.gz +0 -0
  156. package/packages/components/tabs/i18n/index.d.ts +15 -0
  157. package/packages/components/tabs/index.js +70 -65
  158. package/packages/components/tabs/index.js.gz +0 -0
  159. package/packages/components/time-line/i18n/index.d.ts +1 -1
  160. package/packages/components/time-line/index.js +6 -9
  161. package/packages/components/time-line/index.js.gz +0 -0
  162. package/packages/components/tooltip/i18n/index.d.ts +7 -0
  163. package/packages/components/tooltip/index.js +38 -35
  164. package/packages/components/tooltip/index.js.gz +0 -0
  165. package/packages/components/tree/i18n/index.d.ts +35 -0
  166. package/packages/components/tree/index.js +692 -682
  167. package/packages/components/tree/index.js.gz +0 -0
  168. package/packages/components/tree-table/index.js +69 -68
  169. package/packages/components/tree-table/index.js.gz +0 -0
  170. package/packages/components/tree-table/style.css +1 -1
  171. package/packages/components/tree-table/style.css.gz +0 -0
  172. package/packages/components/upload/i18n/index.d.ts +5 -5
  173. package/packages/components/upload/index.js +50 -50
  174. package/packages/components/upload/index.js.gz +0 -0
  175. package/packages/components/virtual-tree/i18n/index.d.ts +7 -0
  176. package/packages/components/virtual-tree/index.js +35 -31
  177. package/packages/components/virtual-tree/index.js.gz +0 -0
  178. package/packages/icons/edit-3/index.d.ts +1 -0
  179. package/packages/icons/edit-3/index.js +17 -0
  180. package/packages/icons/edit-3/index.js.gz +0 -0
  181. package/packages/icons/edit-3/index.vue.d.ts +16 -0
  182. package/packages/icons/index.d.ts +2 -0
  183. package/packages/icons/index.js +2 -0
  184. package/packages/icons/right-3/index.d.ts +1 -0
  185. package/packages/icons/right-3/index.js +17 -0
  186. package/packages/icons/right-3/index.js.gz +0 -0
  187. package/packages/icons/right-3/index.vue.d.ts +16 -0
@@ -1,7 +1,7 @@
1
1
  import '@das-fed/ui/packages/components/calendar/style.css';
2
2
  import { withInstall as X } from "@das-fed/utils/with-install/index";
3
- import { defineComponent as G, ref as H, computed as v, watch as ee, nextTick as x, openBlock as u, createElementBlock as m, normalizeClass as A, Fragment as Z, renderList as j, createElementVNode as W, toDisplayString as J, renderSlot as M, createCommentVNode as D, normalizeStyle as te, onMounted as ae, onBeforeUnmount as ne, createVNode as se, createSlots as K, withCtx as V, normalizeProps as F, mergeProps as P, guardReactiveProps as E, createBlock as re } from "vue";
4
- import { t as Y, setI18nRule as le } from "@das-fed/web/packages/i18n/index";
3
+ import { defineComponent as G, ref as H, computed as v, watch as ee, nextTick as x, openBlock as u, createElementBlock as m, normalizeClass as A, Fragment as j, renderList as P, createElementVNode as W, toDisplayString as J, renderSlot as b, createCommentVNode as D, normalizeStyle as te, onMounted as ae, onBeforeUnmount as ne, createVNode as se, createSlots as K, withCtx as V, normalizeProps as F, mergeProps as Z, guardReactiveProps as E, createBlock as re } from "vue";
4
+ import { t as R, setI18nRule as le } from "@das-fed/web/packages/i18n/index";
5
5
  import C from "dayjs";
6
6
  import oe from "dayjs/plugin/localeData";
7
7
  import { SizeWatcher as de } from "@das-fed/utils/size-watcher";
@@ -25,13 +25,13 @@ const he = (l, i) => {
25
25
  }, U = (l, i) => {
26
26
  const o = l.startOf("week"), c = i.endOf("week"), r = o.get("month"), n = c.get("month");
27
27
  return r === n ? [[o, c]] : (r + 1) % 12 === n ? he(o, c) : r + 2 === n || (r + 1) % 11 === n ? ie(o, c) : [];
28
- }, S = (l) => Array.from(Array.from({ length: l }).keys()), ue = (l, i) => {
28
+ }, $ = (l) => Array.from(Array.from({ length: l }).keys()), ue = (l, i) => {
29
29
  const o = l.subtract(1, "month").endOf("month").date();
30
- return S(i).map((c, r) => o - (i - r - 1));
30
+ return $(i).map((c, r) => o - (i - r - 1));
31
31
  }, ye = (l) => {
32
32
  const i = l.daysInMonth();
33
- return S(i).map((o, c) => c + 1);
34
- }, me = (l) => S(l.length / 7).map((i) => {
33
+ return $(i).map((o, c) => c + 1);
34
+ }, me = (l) => $(l.length / 7).map((i) => {
35
35
  const o = i * 7;
36
36
  return l.slice(o, o + 7);
37
37
  }), fe = { key: 0 }, pe = { class: "das-calendar-header-box" }, ge = { class: "das-calendar-header-week-line" }, ke = ["onClick"], ve = {
@@ -53,24 +53,24 @@ const he = (l, i) => {
53
53
  },
54
54
  emits: ["pick"],
55
55
  setup(l, { expose: i, emit: o }) {
56
- const c = o, r = C(), n = l, f = H("128px"), N = H(), R = 60, b = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"], $ = v(() => !!n.range && !!n.range.length), L = v(() => {
56
+ const c = o, r = C(), n = l, f = H("128px"), N = H(), Y = 60, S = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"], M = v(() => !!n.range && !!n.range.length), L = v(() => {
57
57
  const e = n.firstDayOfWeek, a = n.showZhou ? "das-calendar-weeks-zhou-" : "das-calendar-weeks-";
58
- return e === 0 ? b.map((s) => Y(`${a}${s}`)) : b.slice(e).concat(b.slice(0, e)).map((s) => Y(`${a}${s}`));
58
+ return e === 0 ? S.map((s) => R(`${a}${s}`)) : S.slice(e).concat(S.slice(0, e)).map((s) => R(`${a}${s}`));
59
59
  }), z = v(() => {
60
60
  let e = [];
61
- if ($.value) {
61
+ if (M.value) {
62
62
  const [a, s] = n.range;
63
63
  let h = [];
64
- a.isSame(s, "month") ? h = S(s.date() - a.date() + 1).map((w) => ({
64
+ a.isSame(s, "month") ? h = $(s.date() - a.date() + 1).map((w) => ({
65
65
  text: a.date() + w,
66
66
  type: "current"
67
- })) : h = S(a.endOf("month").date() - a.date() + 1).map((w) => ({
67
+ })) : h = $(a.endOf("month").date() - a.date() + 1).map((w) => ({
68
68
  text: a.date() + w,
69
69
  type: "current"
70
70
  }));
71
71
  let g = h.length % 7;
72
72
  g = g === 0 ? 0 : 7 - g;
73
- const k = S(g).map((w, B) => ({
73
+ const k = $(g).map((w, B) => ({
74
74
  text: B + 1,
75
75
  type: "next"
76
76
  }));
@@ -87,12 +87,12 @@ const he = (l, i) => {
87
87
  type: "current"
88
88
  }));
89
89
  e = [...s, ...h];
90
- const g = 7 - (e.length % 7 || 7), k = S(g).map((w, B) => ({
90
+ const g = 7 - (e.length % 7 || 7), k = $(g).map((w, B) => ({
91
91
  text: B + 1,
92
92
  type: "next"
93
93
  }));
94
94
  if (e = e.concat(k), n.calendartType == "simple" && e.length / 7 < 6) {
95
- const w = k.length ? k[k.length - 1].text : 0, B = S(7).map((Oe, Q) => ({
95
+ const w = k.length ? k[k.length - 1].text : 0, B = $(7).map((Oe, Q) => ({
96
96
  text: w + Q + 1,
97
97
  type: "next"
98
98
  }));
@@ -103,7 +103,7 @@ const he = (l, i) => {
103
103
  }), T = () => {
104
104
  var s;
105
105
  const e = (s = n.parent) == null ? void 0 : s.offsetHeight;
106
- let a = Number(e) - R - 1;
106
+ let a = Number(e) - Y - 1;
107
107
  f.value = a / z.value.length - 1 + "px";
108
108
  };
109
109
  ee(
@@ -187,7 +187,7 @@ const he = (l, i) => {
187
187
  "table",
188
188
  {
189
189
  key: 0,
190
- class: A(["das-calendar-table", { "is-range": $.value, "is-week": e.calendartType == "week", simple: e.calendartType == "simple" }]),
190
+ class: A(["das-calendar-table", { "is-range": M.value, "is-week": e.calendartType == "week", simple: e.calendartType == "simple" }]),
191
191
  cellspacing: "0",
192
192
  cellpadding: "0",
193
193
  ref_key: "tableRef",
@@ -196,9 +196,9 @@ const he = (l, i) => {
196
196
  [
197
197
  e.hideHeader ? D("v-if", !0) : (u(), m("thead", fe, [
198
198
  (u(!0), m(
199
- Z,
199
+ j,
200
200
  null,
201
- j(L.value, (s, h) => (u(), m("th", {
201
+ P(L.value, (s, h) => (u(), m("th", {
202
202
  class: "das-calendar-table-header",
203
203
  key: s
204
204
  }, [
@@ -213,7 +213,7 @@ const he = (l, i) => {
213
213
  3
214
214
  /* TEXT, CLASS */
215
215
  ),
216
- e.calendartType == "week" ? M(e.$slots, "week-type", {
216
+ e.calendartType == "week" ? b(e.$slots, "week-type", {
217
217
  key: 0,
218
218
  data: y(h)
219
219
  }) : D("v-if", !0)
@@ -236,9 +236,9 @@ const he = (l, i) => {
236
236
  ])),
237
237
  W("tbody", null, [
238
238
  (u(!0), m(
239
- Z,
239
+ j,
240
240
  null,
241
- j(z.value, (s, h) => (u(), m(
241
+ P(z.value, (s, h) => (u(), m(
242
242
  "tr",
243
243
  {
244
244
  key: h,
@@ -249,9 +249,9 @@ const he = (l, i) => {
249
249
  },
250
250
  [
251
251
  (u(!0), m(
252
- Z,
252
+ j,
253
253
  null,
254
- j(s, (g, k) => (u(), m("td", {
254
+ P(s, (g, k) => (u(), m("td", {
255
255
  key: k,
256
256
  class: A(_(g)),
257
257
  onClick: (w) => I(g)
@@ -265,7 +265,7 @@ const he = (l, i) => {
265
265
  style: te({ height: f.value })
266
266
  },
267
267
  [
268
- M(e.$slots, "date-cell", {
268
+ b(e.$slots, "date-cell", {
269
269
  data: d(g)
270
270
  })
271
271
  ],
@@ -304,13 +304,13 @@ const he = (l, i) => {
304
304
  }, Ne = {
305
305
  key: 1,
306
306
  class: "das-calendar-cell-date"
307
- }, Me = {
307
+ }, be = {
308
308
  key: 2,
309
309
  class: "das-calendar-cell-cont"
310
- }, $e = {
310
+ }, Me = {
311
311
  name: "test"
312
- }, Se = /* @__PURE__ */ G({
313
- ...$e,
312
+ }, $e = /* @__PURE__ */ G({
313
+ ...Me,
314
314
  props: {
315
315
  modelValue: {},
316
316
  range: {},
@@ -326,20 +326,20 @@ const he = (l, i) => {
326
326
  emits: ["update:model-value", "itemClick"],
327
327
  setup(l, { expose: i, emit: o }) {
328
328
  C.extend(oe);
329
- const c = C.localeData().firstDayOfWeek(), r = l, n = o, f = H(), N = H(), R = H(), b = v(() => r.firstDayOfWeek || c), $ = H(), L = C(), z = v({
329
+ const c = C.localeData().firstDayOfWeek(), r = l, n = o, f = H(), N = H(), Y = H(), S = v(() => r.firstDayOfWeek || c), M = H(), L = C(), z = v({
330
330
  get() {
331
- return r.modelValue ? ($.value = p.value, p.value) : $.value;
331
+ return r.modelValue ? (M.value = p.value, p.value) : M.value;
332
332
  },
333
333
  set(t) {
334
334
  if (!t) return;
335
- $.value = t;
335
+ M.value = t;
336
336
  const y = t.toDate();
337
337
  r.isSwitchMonth && n("update:model-value", y);
338
338
  }
339
339
  }), T = v(() => {
340
340
  if (r.type == "week") {
341
341
  if (r.range) return r.range;
342
- const y = (C(r.modelValue).day() - b.value + 7) % 7, d = 7 - (y + 1), e = [];
342
+ const y = (C(r.modelValue).day() - S.value + 7) % 7, d = 7 - (y + 1), e = [];
343
343
  return e.push(C(r.modelValue).subtract(y, "day").toDate()), e.push(C(r.modelValue).add(d, "day").toDate()), e;
344
344
  } else
345
345
  return r.range ? r.range : void 0;
@@ -350,14 +350,14 @@ const he = (l, i) => {
350
350
  }), p = v(() => r.modelValue ? C(r.modelValue) : z.value || (O.value.length ? O.value[0][0] : L));
351
351
  v(() => p.value.subtract(1, "month").date(1)), v(() => p.value.add(1, "month").date(1)), v(() => p.value.subtract(1, "year").date(1)), v(() => p.value.add(1, "year").date(1)), v(() => {
352
352
  const t = `das-calendar-month${p.value.format("M")}`;
353
- return `${p.value.year()} ${Y("das-calendar-year")} ${Y(t)}`;
353
+ return `${p.value.year()} ${R("das-calendar-year")} ${R(t)}`;
354
354
  }), ae(() => {
355
- R.value = de(() => {
355
+ Y.value = de(() => {
356
356
  var t, y;
357
357
  Array.isArray(N.value) ? (t = N.value[0]) == null || t.getHeight() : (y = N.value) == null || y.getHeight();
358
358
  }, f.value);
359
359
  }), ne(() => {
360
- R.value.disconnect();
360
+ Y.value.disconnect();
361
361
  });
362
362
  const _ = (t) => {
363
363
  r.isSwitchSelection && (z.value = t), n("itemClick", t.toDate());
@@ -390,18 +390,18 @@ const he = (l, i) => {
390
390
  ref_key: "$calendarTable",
391
391
  ref: N,
392
392
  date: p.value,
393
- firstDayOfWeek: b.value,
393
+ firstDayOfWeek: S.value,
394
394
  parent: f.value,
395
395
  calendartType: t.type,
396
396
  highlightWeek: t.highlightWeek,
397
397
  highlightDay: t.highlightDay,
398
398
  showZhou: t.showZhou,
399
399
  cellHeight: t.cellHeight,
400
- "selected-day": $.value,
400
+ "selected-day": M.value,
401
401
  onPick: _
402
402
  }, K({
403
403
  "date-cell": V((d) => [
404
- t.$slots.custom ? M(t.$slots, "custom", F(P({ key: 0 }, d))) : D("v-if", !0),
404
+ t.$slots.custom ? b(t.$slots, "custom", F(Z({ key: 0 }, d))) : D("v-if", !0),
405
405
  t.type != "week" && !t.$slots.custom ? (u(), m("p", we, [
406
406
  W(
407
407
  "span",
@@ -410,10 +410,10 @@ const he = (l, i) => {
410
410
  1
411
411
  /* TEXT */
412
412
  ),
413
- M(t.$slots, "date-type", F(E(d)))
413
+ b(t.$slots, "date-type", F(E(d)))
414
414
  ])) : D("v-if", !0),
415
415
  t.$slots.custom ? D("v-if", !0) : (u(), m("div", ze, [
416
- M(t.$slots, "date-cell", F(E(d)))
416
+ b(t.$slots, "date-cell", F(E(d)))
417
417
  ]))
418
418
  ]),
419
419
  _: 2
@@ -422,35 +422,35 @@ const he = (l, i) => {
422
422
  t.$slots["week-type"] && t.type == "week" ? {
423
423
  name: "week-type",
424
424
  fn: V((d) => [
425
- M(t.$slots, "week-type", F(E(d)))
425
+ b(t.$slots, "week-type", F(E(d)))
426
426
  ]),
427
427
  key: "0"
428
428
  } : void 0
429
429
  ]), 1032, ["date", "firstDayOfWeek", "parent", "calendartType", "highlightWeek", "highlightDay", "showZhou", "cellHeight", "selected-day"])
430
430
  ])) : (u(), m("div", Ce, [
431
431
  (u(!0), m(
432
- Z,
432
+ j,
433
433
  null,
434
- j(O.value, (d, e) => (u(), re(q, {
434
+ P(O.value, (d, e) => (u(), re(q, {
435
435
  ref_for: !0,
436
436
  ref_key: "$calendarTable",
437
437
  ref: N,
438
438
  key: e,
439
- firstDayOfWeek: b.value,
439
+ firstDayOfWeek: S.value,
440
440
  date: d[0],
441
441
  calendartType: t.type,
442
442
  highlightWeek: t.highlightWeek,
443
443
  highlightDay: t.highlightDay,
444
444
  showZhou: t.showZhou,
445
445
  cellHeight: t.cellHeight,
446
- "selected-day": $.value,
446
+ "selected-day": M.value,
447
447
  range: d,
448
448
  parent: f.value,
449
449
  "hide-header": e !== 0,
450
450
  onPick: _
451
451
  }, K({
452
452
  "date-cell": V((a) => [
453
- t.$slots.custom ? M(t.$slots, "custom", P({
453
+ t.$slots.custom ? b(t.$slots, "custom", Z({
454
454
  key: 0,
455
455
  ref_for: !0
456
456
  }, a)) : D("v-if", !0),
@@ -463,8 +463,8 @@ const he = (l, i) => {
463
463
  /* TEXT */
464
464
  )
465
465
  ])) : D("v-if", !0),
466
- t.$slots.custom ? D("v-if", !0) : (u(), m("div", Me, [
467
- M(t.$slots, "date-cell", P({ ref_for: !0 }, a))
466
+ t.$slots.custom ? D("v-if", !0) : (u(), m("div", be, [
467
+ b(t.$slots, "date-cell", Z({ ref_for: !0 }, a))
468
468
  ]))
469
469
  ]),
470
470
  _: 2
@@ -473,7 +473,7 @@ const he = (l, i) => {
473
473
  t.$slots["week-type"] && t.type == "week" ? {
474
474
  name: "week-type",
475
475
  fn: V((a) => [
476
- M(t.$slots, "week-type", P({ ref_for: !0 }, a))
476
+ b(t.$slots, "week-type", Z({ ref_for: !0 }, a))
477
477
  ]),
478
478
  key: "0"
479
479
  } : void 0
@@ -487,7 +487,7 @@ const he = (l, i) => {
487
487
  /* NEED_PATCH */
488
488
  ));
489
489
  }
490
- }), be = {
490
+ }), Se = {
491
491
  "--das-ui-calendar-color-primary": "#5582F3",
492
492
  // 主题色
493
493
  "--das-ui-calendar-color-text": "#212121",
@@ -507,11 +507,13 @@ const he = (l, i) => {
507
507
  // '--das-ui-calendar-head-height': '60px', // 日历表头高度
508
508
  // '--das-ui-calendar-cell-height': '128px', // 单元格高度
509
509
  }, We = {
510
- "das-calendar-prevMonth": { "zh-CN": "上个月", en: "Previous Month" },
511
- "das-calendar-nextMonth": { "zh-CN": "下个月", en: "Next Month" },
512
- "das-calendar-prevYear": { "zh-CN": "前一年", en: "Previous Year" },
513
- "das-calendar-nextYear": { "zh-CN": "后一年", en: "Next Year" },
514
- "das-calendar-year": { "zh-CN": "", en: "" },
510
+ 周: { "zh-CN": "", en: "Week" },
511
+ 日历: { "zh-CN": "日历", en: "Calendar" },
512
+ "das-calendar-prevMonth": { "zh-CN": "上个月", en: "Last month" },
513
+ "das-calendar-nextMonth": { "zh-CN": "下个月", en: "Next month" },
514
+ "das-calendar-prevYear": { "zh-CN": "前一年", en: "Previous year" },
515
+ "das-calendar-nextYear": { "zh-CN": "后一年", en: "Next year" },
516
+ "das-calendar-year": { "zh-CN": "年", en: "Year" },
515
517
  "das-calendar-today": { "zh-CN": "今天", en: "Today" },
516
518
  "das-calendar-month1": { "zh-CN": "1 月", en: "January" },
517
519
  "das-calendar-month2": { "zh-CN": "2 月", en: "February" },
@@ -532,29 +534,29 @@ const he = (l, i) => {
532
534
  "das-calendar-weeks-thu": { "zh-CN": "四", en: "Thu" },
533
535
  "das-calendar-weeks-fri": { "zh-CN": "五", en: "Fri" },
534
536
  "das-calendar-weeks-sat": { "zh-CN": "六", en: "Sat" },
535
- "das-calendar-weeks-zhou-sun": { "zh-CN": "周日", en: "Sun" },
536
- "das-calendar-weeks-zhou-mon": { "zh-CN": "周一", en: "Mon" },
537
- "das-calendar-weeks-zhou-tue": { "zh-CN": "周二", en: "Tue" },
538
- "das-calendar-weeks-zhou-wed": { "zh-CN": "周三", en: "Wed" },
539
- "das-calendar-weeks-zhou-thu": { "zh-CN": "周四", en: "Thu" },
540
- "das-calendar-weeks-zhou-fri": { "zh-CN": "周五", en: "Fri" },
541
- "das-calendar-weeks-zhou-sat": { "zh-CN": "周六", en: "Sat" },
542
- "das-calendar-months-jan": { "zh-CN": "一月", en: "Jan" },
543
- "das-calendar-months-feb": { "zh-CN": "二月", en: "Feb" },
544
- "das-calendar-months-mar": { "zh-CN": "三月", en: "Mar" },
545
- "das-calendar-months-apr": { "zh-CN": "四月", en: "Apr" },
537
+ "das-calendar-weeks-zhou-sun": { "zh-CN": "周日", en: "Sunday" },
538
+ "das-calendar-weeks-zhou-mon": { "zh-CN": "周一", en: "Monday" },
539
+ "das-calendar-weeks-zhou-tue": { "zh-CN": "周二", en: "Tuesday" },
540
+ "das-calendar-weeks-zhou-wed": { "zh-CN": "周三", en: "Wednesday" },
541
+ "das-calendar-weeks-zhou-thu": { "zh-CN": "周四", en: "Thursday" },
542
+ "das-calendar-weeks-zhou-fri": { "zh-CN": "周五", en: "Friday" },
543
+ "das-calendar-weeks-zhou-sat": { "zh-CN": "周六", en: "Saturday" },
544
+ "das-calendar-months-jan": { "zh-CN": "一月", en: "January" },
545
+ "das-calendar-months-feb": { "zh-CN": "二月", en: "February" },
546
+ "das-calendar-months-mar": { "zh-CN": "三月", en: "March" },
547
+ "das-calendar-months-apr": { "zh-CN": "四月", en: "April" },
546
548
  "das-calendar-months-may": { "zh-CN": "五月", en: "May" },
547
- "das-calendar-months-jun": { "zh-CN": "六月", en: "Jun" },
548
- "das-calendar-months-jul": { "zh-CN": "七月", en: "Jul" },
549
- "das-calendar-months-aug": { "zh-CN": "八月", en: "Aug" },
550
- "das-calendar-months-sep": { "zh-CN": "九月", en: "Sep" },
551
- "das-calendar-months-oct": { "zh-CN": "十月", en: "Oct" },
552
- "das-calendar-months-nov": { "zh-CN": "十一月", en: "Nov" },
553
- "das-calendar-months-dec": { "zh-CN": "十二月", en: "Dec" }
549
+ "das-calendar-months-jun": { "zh-CN": "六月", en: "June" },
550
+ "das-calendar-months-jul": { "zh-CN": "七月", en: "July" },
551
+ "das-calendar-months-aug": { "zh-CN": "八月", en: "August" },
552
+ "das-calendar-months-sep": { "zh-CN": "九月", en: "September" },
553
+ "das-calendar-months-oct": { "zh-CN": "十月", en: "October" },
554
+ "das-calendar-months-nov": { "zh-CN": "十一月", en: "November" },
555
+ "das-calendar-months-dec": { "zh-CN": "十二月", en: "December" }
554
556
  };
555
557
  le(We);
556
- ce(be);
557
- const Ve = X(Se), Fe = { name: `calendar ${Y("日历")}` };
558
+ ce(Se);
559
+ const Ve = X($e), Fe = { name: `calendar ${R("日历")}` };
558
560
  export {
559
561
  Ve as DasCalendar,
560
562
  Fe as default
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ 请选择: {
3
+ "zh-CN": string;
4
+ en: string;
5
+ };
6
+ };
7
+ export default _default;
@@ -1,21 +1,21 @@
1
1
  import '@das-fed/ui/packages/components/cascader/style.css';
2
2
  import { withInstall as Y } from "@das-fed/utils/with-install/index";
3
- import { defineComponent as ee, useCssVars as ae, useAttrs as re, ref as l, computed as i, watchEffect as oe, openBlock as o, createElementBlock as t, normalizeClass as le, normalizeStyle as n, createVNode as M, unref as s, withCtx as f, withDirectives as T, createTextVNode as _, toDisplayString as m, mergeProps as te, isRef as se, renderSlot as E, normalizeProps as de, guardReactiveProps as ie, Fragment as L, createElementVNode as k, createBlock as ce, Teleport as ue, createCommentVNode as N, nextTick as pe } from "vue";
4
- import { ElCascader as ne } from "element-plus";
3
+ import { defineComponent as ee, useCssVars as ae, useAttrs as re, ref as l, computed as i, watchEffect as oe, openBlock as o, createElementBlock as t, normalizeClass as le, normalizeStyle as p, createVNode as M, unref as s, withCtx as f, withDirectives as T, createTextVNode as _, toDisplayString as m, mergeProps as te, isRef as se, renderSlot as E, normalizeProps as de, guardReactiveProps as ie, Fragment as L, createElementVNode as k, createBlock as ce, Teleport as ue, createCommentVNode as N, nextTick as ne } from "vue";
4
+ import { ElCascader as pe } from "element-plus";
5
5
  import "element-plus/es/components/cascader/style/css";
6
6
  import { vHoverInside as fe } from "@das-fed/utils/directive/hoverInside/index";
7
7
  import { getVarValue as w, getVar as R, setThemeRule as me } from "@das-fed/web/packages/theme/index";
8
- import { t as ve } from "@das-fed/web/packages/i18n/index";
8
+ import { t as ve, setI18nRule as be } from "@das-fed/web/packages/i18n/index";
9
9
  import { vScrollbar as $ } from "@das-fed/ui/packages/components/scrollbar/index";
10
10
  import { DasTooltip as H } from "@das-fed/ui/packages/components/tooltip/index";
11
- import { useModelValue as be } from "@das-fed/utils/vue";
12
- const he = { style: { maxheight: "200px", "word-break": "break-all" } }, ye = { style: { maxheight: "200px", "word-break": "break-all" } }, xe = {
11
+ import { useModelValue as he } from "@das-fed/utils/vue";
12
+ const ye = { style: { maxheight: "200px", "word-break": "break-all" } }, xe = { style: { maxheight: "200px", "word-break": "break-all" } }, ge = {
13
13
  key: 0,
14
14
  class: "das-cascader-error-label-content"
15
- }, ge = {
15
+ }, ke = {
16
16
  name: "DasCascader"
17
- }, ke = /* @__PURE__ */ ee({
18
- ...ge,
17
+ }, we = /* @__PURE__ */ ee({
18
+ ...ke,
19
19
  props: {
20
20
  modelValue: { default: void 0 },
21
21
  props: {},
@@ -43,10 +43,10 @@ const he = { style: { maxheight: "200px", "word-break": "break-all" } }, ye = {
43
43
  dfa347f4: G.value,
44
44
  "7c86c2fa": C.value
45
45
  }));
46
- const e = h, c = be(e, "modelValue"), D = y, O = re(), u = l(), x = l(), v = l(), B = l(!1), g = l({
46
+ const e = h, c = he(e, "modelValue"), D = y, O = re(), u = l(), x = l(), v = l(), B = l(!1), g = l({
47
47
  x: 0,
48
48
  y: 0
49
- }), S = l(0), P = i(() => ({
49
+ }), P = l(0), S = i(() => ({
50
50
  "font-size": "12px",
51
51
  "background-color": w("--das-ui-input-number-overlay-error-bg-color").value,
52
52
  "box-shadow": "0px 4px 10px 0px rgba(0, 0, 0, 0.2)",
@@ -55,8 +55,8 @@ const he = { style: { maxheight: "200px", "word-break": "break-all" } }, ye = {
55
55
  "box-sizing": "border-box",
56
56
  "z-index": e.errorModelZIndex
57
57
  })), W = i(() => ({
58
- ...P.value,
59
- width: S.value + "px",
58
+ ...S.value,
59
+ width: P.value + "px",
60
60
  position: "fixed",
61
61
  visibility: "visible",
62
62
  top: g.value.y + "px",
@@ -68,7 +68,7 @@ const he = { style: { maxheight: "200px", "word-break": "break-all" } }, ye = {
68
68
  "word-break": "break-all"
69
69
  }), Z = () => {
70
70
  const { top: a, left: r } = x.value.getBoundingClientRect(), d = x.value.clientHeight;
71
- S.value = x.value.clientWidth, g.value.x = r, g.value.y = a + d;
71
+ P.value = x.value.clientWidth, g.value.x = r, g.value.y = a + d;
72
72
  }, A = () => {
73
73
  Z(), B.value = !0;
74
74
  }, U = () => {
@@ -93,9 +93,9 @@ const he = { style: { maxheight: "200px", "word-break": "break-all" } }, ye = {
93
93
  }, Q = (a, r) => {
94
94
  D("update:model-value", a), D("change", a);
95
95
  }, X = (a) => {
96
- pe(() => {
97
- var d, p;
98
- const r = (p = (d = u.value) == null ? void 0 : d.popperPaneRef) == null ? void 0 : p.attributes["data-popper-placement"].value;
96
+ ne(() => {
97
+ var d, n;
98
+ const r = (n = (d = u.value) == null ? void 0 : d.popperPaneRef) == null ? void 0 : n.attributes["data-popper-placement"].value;
99
99
  r && r.indexOf("top") > -1 ? C.value = "10px" : C.value = "-10px";
100
100
  });
101
101
  };
@@ -110,7 +110,7 @@ const he = { style: { maxheight: "200px", "word-break": "break-all" } }, ye = {
110
110
  e.error ? "is-error" : "",
111
111
  e.size
112
112
  ]]),
113
- style: n(I.value)
113
+ style: p(I.value)
114
114
  },
115
115
  [
116
116
  M(s(H), {
@@ -118,7 +118,7 @@ const he = { style: { maxheight: "200px", "word-break": "break-all" } }, ye = {
118
118
  disabled: !a.isTooltip || !v.value
119
119
  }, {
120
120
  content: f(() => [
121
- T((o(), t("div", he, [
121
+ T((o(), t("div", ye, [
122
122
  _(
123
123
  m(v.value),
124
124
  1
@@ -135,9 +135,9 @@ const he = { style: { maxheight: "200px", "word-break": "break-all" } }, ye = {
135
135
  ref_key: "$cascaderBox",
136
136
  ref: x
137
137
  }, [
138
- M(s(ne), te({
138
+ M(s(pe), te({
139
139
  modelValue: s(c),
140
- "onUpdate:modelValue": r[0] || (r[0] = (p) => se(c) ? c.value = p : null),
140
+ "onUpdate:modelValue": r[0] || (r[0] = (n) => se(c) ? c.value = n : null),
141
141
  ref_key: "$cascader",
142
142
  ref: u
143
143
  }, s(O), {
@@ -152,8 +152,8 @@ const he = { style: { maxheight: "200px", "word-break": "break-all" } }, ye = {
152
152
  onChange: Q,
153
153
  style: I.value
154
154
  }), {
155
- default: f(({ node: p, data: F }) => [
156
- E(a.$slots, "default", de(ie({ node: p, data: F })), () => [
155
+ default: f(({ node: n, data: F }) => [
156
+ E(a.$slots, "default", de(ie({ node: n, data: F })), () => [
157
157
  M(
158
158
  s(H),
159
159
  { placement: "top" },
@@ -161,7 +161,7 @@ const he = { style: { maxheight: "200px", "word-break": "break-all" } }, ye = {
161
161
  content: f(() => {
162
162
  var b;
163
163
  return [
164
- T((o(), t("div", ye, [
164
+ T((o(), t("div", xe, [
165
165
  _(
166
166
  m(F[((b = e.props) == null ? void 0 : b.label) || "label"]),
167
167
  1
@@ -208,11 +208,11 @@ const he = { style: { maxheight: "200px", "word-break": "break-all" } }, ye = {
208
208
  L,
209
209
  { key: 0 },
210
210
  [
211
- a.errorMode === "default" ? (o(), t("div", xe, [
211
+ a.errorMode === "default" ? (o(), t("div", ge, [
212
212
  k(
213
213
  "span",
214
214
  {
215
- style: n(z.value)
215
+ style: p(z.value)
216
216
  },
217
217
  m(a.errorLabel),
218
218
  5
@@ -229,13 +229,13 @@ const he = { style: { maxheight: "200px", "word-break": "break-all" } }, ye = {
229
229
  k(
230
230
  "div",
231
231
  {
232
- style: n(W.value)
232
+ style: p(W.value)
233
233
  },
234
234
  [
235
235
  k(
236
236
  "span",
237
237
  {
238
- style: n(z.value)
238
+ style: p(z.value)
239
239
  },
240
240
  m(a.errorLabel),
241
241
  5
@@ -249,14 +249,14 @@ const he = { style: { maxheight: "200px", "word-break": "break-all" } }, ye = {
249
249
  "div",
250
250
  {
251
251
  key: 1,
252
- style: n(P.value),
252
+ style: p(S.value),
253
253
  class: "das-cascader-overlay-error-label-content"
254
254
  },
255
255
  [
256
256
  k(
257
257
  "span",
258
258
  {
259
- style: n(z.value)
259
+ style: p(z.value)
260
260
  },
261
261
  m(a.errorLabel),
262
262
  5
@@ -279,12 +279,14 @@ const he = { style: { maxheight: "200px", "word-break": "break-all" } }, ye = {
279
279
  /* CLASS, STYLE */
280
280
  ));
281
281
  }
282
- }), we = (h, V) => {
282
+ }), Ve = (h, V) => {
283
283
  const y = h.__vccOpts || h;
284
284
  for (const [e, c] of V)
285
285
  y[e] = c;
286
286
  return y;
287
- }, Ve = /* @__PURE__ */ we(ke, [["__scopeId", "data-v-156151c1"]]), Be = {
287
+ }, Be = /* @__PURE__ */ Ve(we, [["__scopeId", "data-v-156151c1"]]), ze = {
288
+ 请选择: { "zh-CN": "请选择", en: "Please select" }
289
+ }, Ce = {
288
290
  "--das-ui-cascader-color-primary": "#5582F3",
289
291
  // 主题色
290
292
  "--das-ui-cascader-color-text": R("--das-ui-color-normal"),
@@ -316,9 +318,10 @@ const he = { style: { maxheight: "200px", "word-break": "break-all" } }, ye = {
316
318
  "--das-ui-cascader-overlay-error-color": "#FB2323",
317
319
  "--das-ui-cascader-overlay-error-bg-color": "#FFDBE0"
318
320
  };
319
- me(Be);
320
- const Ee = Y(Ve), Le = { name: "cascader 级联" };
321
+ be(ze);
322
+ me(Ce);
323
+ const Ne = Y(Be), Re = { name: "cascader 级联" };
321
324
  export {
322
- Ee as DasCascader,
323
- Le as default
325
+ Ne as DasCascader,
326
+ Re as default
324
327
  };
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ 请输入: {
3
+ "zh-CN": string;
4
+ en: string;
5
+ };
6
+ };
7
+ export default _default;