ele-admin-plus 1.4.1-beta.1 → 1.4.1

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 (224) hide show
  1. package/es/core-components.d.ts +2 -0
  2. package/es/core-components.js +104 -100
  3. package/es/ele-app/plus.d.ts +9 -1
  4. package/es/ele-app/plusx.d.ts +26 -13
  5. package/es/ele-backtop/index.js +7 -1
  6. package/es/ele-basic-select/components/select-view.d.ts +53 -22
  7. package/es/ele-basic-select/components/select-view.js +57 -20
  8. package/es/ele-basic-select/index.d.ts +39 -19
  9. package/es/ele-basic-select/index.js +62 -13
  10. package/es/ele-basic-select/props.d.ts +33 -21
  11. package/es/ele-basic-select/props.js +33 -21
  12. package/es/ele-basic-select/style/index.js +2 -0
  13. package/es/ele-basic-select/types.d.ts +1 -1
  14. package/es/ele-config-provider/components/receiver-view.d.ts +2 -0
  15. package/es/ele-config-provider/components/receiver-view.js +74 -72
  16. package/es/ele-config-provider/receiver.d.ts +2 -2
  17. package/es/ele-config-provider/receiver.js +5 -1
  18. package/es/ele-config-provider/types.d.ts +10 -1
  19. package/es/ele-copyable/index.d.ts +2 -4
  20. package/es/ele-cron-builder/index.d.ts +24 -0
  21. package/es/ele-cron-builder/index.js +81 -0
  22. package/es/ele-cron-builder/props.d.ts +31 -0
  23. package/es/ele-cron-builder/props.js +24 -0
  24. package/es/ele-cron-builder/style/index.d.ts +1 -0
  25. package/es/ele-cron-builder/style/index.js +4 -0
  26. package/es/ele-cron-builder/style/index.scss +6 -0
  27. package/es/ele-cron-builder/types.d.ts +8 -0
  28. package/es/ele-cron-panel/components/cron-day.d.ts +25 -0
  29. package/es/ele-cron-panel/components/cron-day.js +232 -0
  30. package/es/ele-cron-panel/components/cron-hour.d.ts +25 -0
  31. package/es/ele-cron-panel/components/cron-hour.js +174 -0
  32. package/es/ele-cron-panel/components/cron-minute.d.ts +25 -0
  33. package/es/ele-cron-panel/components/cron-minute.js +174 -0
  34. package/es/ele-cron-panel/components/cron-month.d.ts +25 -0
  35. package/es/ele-cron-panel/components/cron-month.js +174 -0
  36. package/es/ele-cron-panel/components/cron-second.d.ts +25 -0
  37. package/es/ele-cron-panel/components/cron-second.js +174 -0
  38. package/es/ele-cron-panel/components/cron-week.d.ts +25 -0
  39. package/es/ele-cron-panel/components/cron-week.js +229 -0
  40. package/es/ele-cron-panel/components/cron-year.d.ts +25 -0
  41. package/es/ele-cron-panel/components/cron-year.js +186 -0
  42. package/es/ele-cron-panel/index.d.ts +14 -0
  43. package/es/ele-cron-panel/index.js +348 -0
  44. package/es/ele-cron-panel/props.d.ts +20 -0
  45. package/es/ele-cron-panel/props.js +14 -0
  46. package/es/ele-cron-panel/style/index.d.ts +1 -0
  47. package/es/ele-cron-panel/style/index.js +7 -0
  48. package/es/ele-cron-panel/style/index.scss +282 -0
  49. package/es/ele-cron-panel/types.d.ts +118 -0
  50. package/es/ele-cron-panel/util.d.ts +23 -0
  51. package/es/ele-cron-panel/util.js +542 -0
  52. package/es/ele-cropper/components/cropper-tools.d.ts +2 -2
  53. package/es/ele-cropper-modal/index.d.ts +2 -4
  54. package/es/ele-crud/index.d.ts +3 -3
  55. package/es/ele-drawer/index.d.ts +9 -0
  56. package/es/ele-drawer/index.js +5 -1
  57. package/es/ele-drawer/props.d.ts +5 -0
  58. package/es/ele-drawer/props.js +6 -1
  59. package/es/ele-drawer/style/index.scss +11 -0
  60. package/es/ele-file-list/index.d.ts +3 -3
  61. package/es/ele-icon-select/components/icon-grid.d.ts +8 -3
  62. package/es/ele-icon-select/components/icon-grid.js +20 -12
  63. package/es/ele-icon-select/index.d.ts +58 -59
  64. package/es/ele-icon-select/index.js +92 -86
  65. package/es/ele-icon-select/props.d.ts +35 -35
  66. package/es/ele-icon-select/props.js +34 -34
  67. package/es/ele-icon-select/style/css-var.scss +1 -1
  68. package/es/ele-icon-select/style/index.scss +50 -18
  69. package/es/ele-icon-select/types.d.ts +13 -0
  70. package/es/ele-map-picker/index.d.ts +3 -3
  71. package/es/ele-modal/index.d.ts +4 -2
  72. package/es/ele-modal/index.js +9 -3
  73. package/es/ele-modal/props.d.ts +2 -0
  74. package/es/ele-modal/props.js +2 -0
  75. package/es/ele-modal/style/index.scss +16 -0
  76. package/es/ele-pro-form/components/item-type-data.js +39 -64
  77. package/es/ele-pro-form/index.d.ts +3 -3
  78. package/es/ele-pro-table/components/table-tools.d.ts +12 -97
  79. package/es/ele-pro-table/components/table-tools.js +118 -248
  80. package/es/ele-pro-table/components/tool-export.d.ts +5 -1
  81. package/es/ele-pro-table/components/tool-export.js +32 -20
  82. package/es/ele-pro-table/components/tool-print.d.ts +5 -1
  83. package/es/ele-pro-table/components/tool-print.js +37 -25
  84. package/es/ele-pro-table/exceljs-plugin.d.ts +12 -0
  85. package/es/ele-pro-table/exceljs-plugin.js +81 -0
  86. package/es/ele-pro-table/index.d.ts +6 -7
  87. package/es/ele-pro-table/index.js +117 -46
  88. package/es/ele-pro-table/types.d.ts +11 -0
  89. package/es/ele-split-panel/style/index.scss +1 -1
  90. package/es/ele-table-select/index.d.ts +2 -0
  91. package/es/ele-table-select/props.d.ts +2 -0
  92. package/es/ele-table-select/props.js +3 -1
  93. package/es/ele-tour/index.d.ts +3 -3
  94. package/es/ele-tree-select/index.d.ts +2 -0
  95. package/es/ele-upload-list/index.d.ts +3 -3
  96. package/es/ele-upload-list/index.js +25 -8
  97. package/es/ele-virtual-table/components/body-cell.d.ts +1 -1
  98. package/es/ele-watermark/index.d.ts +20 -7
  99. package/es/ele-watermark/index.js +253 -94
  100. package/es/ele-watermark/props.d.ts +10 -3
  101. package/es/ele-watermark/props.js +10 -3
  102. package/es/ele-watermark/types.d.ts +12 -0
  103. package/es/ele-watermark/util.d.ts +2 -9
  104. package/es/ele-watermark/util.js +10 -19
  105. package/es/lang/en_US.js +116 -0
  106. package/es/lang/zh_CN.js +116 -0
  107. package/es/lang/zh_TW.js +116 -0
  108. package/es/style/plus.scss +3 -1
  109. package/es/style/themes/default.scss +12 -3
  110. package/es/style/themes/rounded.scss +2 -1
  111. package/es/utils/theme-util.d.ts +1 -1
  112. package/lib/core-components.cjs +104 -100
  113. package/lib/core-components.d.ts +2 -0
  114. package/lib/ele-app/plus.d.ts +9 -1
  115. package/lib/ele-app/plusx.d.ts +26 -13
  116. package/lib/ele-backtop/index.cjs +6 -0
  117. package/lib/ele-basic-select/components/select-view.cjs +56 -19
  118. package/lib/ele-basic-select/components/select-view.d.ts +53 -22
  119. package/lib/ele-basic-select/index.cjs +61 -12
  120. package/lib/ele-basic-select/index.d.ts +39 -19
  121. package/lib/ele-basic-select/props.cjs +33 -21
  122. package/lib/ele-basic-select/props.d.ts +33 -21
  123. package/lib/ele-basic-select/style/index.cjs +2 -0
  124. package/lib/ele-basic-select/types.d.ts +1 -1
  125. package/lib/ele-config-provider/components/receiver-view.cjs +2 -2
  126. package/lib/ele-config-provider/components/receiver-view.d.ts +2 -0
  127. package/lib/ele-config-provider/receiver.cjs +5 -1
  128. package/lib/ele-config-provider/receiver.d.ts +2 -2
  129. package/lib/ele-config-provider/types.d.ts +10 -1
  130. package/lib/ele-copyable/index.d.ts +2 -4
  131. package/lib/ele-cron-builder/index.cjs +80 -0
  132. package/lib/ele-cron-builder/index.d.ts +24 -0
  133. package/lib/ele-cron-builder/props.cjs +24 -0
  134. package/lib/ele-cron-builder/props.d.ts +31 -0
  135. package/lib/ele-cron-builder/style/index.cjs +5 -0
  136. package/lib/ele-cron-builder/style/index.d.ts +1 -0
  137. package/lib/ele-cron-builder/style/index.scss +6 -0
  138. package/lib/ele-cron-builder/types.d.ts +8 -0
  139. package/lib/ele-cron-panel/components/cron-day.cjs +231 -0
  140. package/lib/ele-cron-panel/components/cron-day.d.ts +25 -0
  141. package/lib/ele-cron-panel/components/cron-hour.cjs +173 -0
  142. package/lib/ele-cron-panel/components/cron-hour.d.ts +25 -0
  143. package/lib/ele-cron-panel/components/cron-minute.cjs +173 -0
  144. package/lib/ele-cron-panel/components/cron-minute.d.ts +25 -0
  145. package/lib/ele-cron-panel/components/cron-month.cjs +173 -0
  146. package/lib/ele-cron-panel/components/cron-month.d.ts +25 -0
  147. package/lib/ele-cron-panel/components/cron-second.cjs +173 -0
  148. package/lib/ele-cron-panel/components/cron-second.d.ts +25 -0
  149. package/lib/ele-cron-panel/components/cron-week.cjs +228 -0
  150. package/lib/ele-cron-panel/components/cron-week.d.ts +25 -0
  151. package/lib/ele-cron-panel/components/cron-year.cjs +185 -0
  152. package/lib/ele-cron-panel/components/cron-year.d.ts +25 -0
  153. package/lib/ele-cron-panel/index.cjs +347 -0
  154. package/lib/ele-cron-panel/index.d.ts +14 -0
  155. package/lib/ele-cron-panel/props.cjs +14 -0
  156. package/lib/ele-cron-panel/props.d.ts +20 -0
  157. package/lib/ele-cron-panel/style/index.cjs +8 -0
  158. package/lib/ele-cron-panel/style/index.d.ts +1 -0
  159. package/lib/ele-cron-panel/style/index.scss +282 -0
  160. package/lib/ele-cron-panel/types.d.ts +118 -0
  161. package/lib/ele-cron-panel/util.cjs +542 -0
  162. package/lib/ele-cron-panel/util.d.ts +23 -0
  163. package/lib/ele-cropper/components/cropper-tools.d.ts +2 -2
  164. package/lib/ele-cropper-modal/index.d.ts +2 -4
  165. package/lib/ele-crud/index.d.ts +3 -3
  166. package/lib/ele-drawer/index.cjs +4 -0
  167. package/lib/ele-drawer/index.d.ts +9 -0
  168. package/lib/ele-drawer/props.cjs +6 -1
  169. package/lib/ele-drawer/props.d.ts +5 -0
  170. package/lib/ele-drawer/style/index.scss +11 -0
  171. package/lib/ele-file-list/index.d.ts +3 -3
  172. package/lib/ele-icon-select/components/icon-grid.cjs +19 -11
  173. package/lib/ele-icon-select/components/icon-grid.d.ts +8 -3
  174. package/lib/ele-icon-select/index.cjs +91 -85
  175. package/lib/ele-icon-select/index.d.ts +58 -59
  176. package/lib/ele-icon-select/props.cjs +34 -34
  177. package/lib/ele-icon-select/props.d.ts +35 -35
  178. package/lib/ele-icon-select/style/css-var.scss +1 -1
  179. package/lib/ele-icon-select/style/index.scss +50 -18
  180. package/lib/ele-icon-select/types.d.ts +13 -0
  181. package/lib/ele-map-picker/index.d.ts +3 -3
  182. package/lib/ele-modal/index.cjs +9 -3
  183. package/lib/ele-modal/index.d.ts +4 -2
  184. package/lib/ele-modal/props.cjs +2 -0
  185. package/lib/ele-modal/props.d.ts +2 -0
  186. package/lib/ele-modal/style/index.scss +16 -0
  187. package/lib/ele-pro-form/components/item-type-data.cjs +39 -64
  188. package/lib/ele-pro-form/index.d.ts +3 -3
  189. package/lib/ele-pro-table/components/table-tools.cjs +117 -247
  190. package/lib/ele-pro-table/components/table-tools.d.ts +12 -97
  191. package/lib/ele-pro-table/components/tool-export.cjs +32 -20
  192. package/lib/ele-pro-table/components/tool-export.d.ts +5 -1
  193. package/lib/ele-pro-table/components/tool-print.cjs +37 -25
  194. package/lib/ele-pro-table/components/tool-print.d.ts +5 -1
  195. package/lib/ele-pro-table/exceljs-plugin.cjs +81 -0
  196. package/lib/ele-pro-table/exceljs-plugin.d.ts +12 -0
  197. package/lib/ele-pro-table/index.cjs +143 -72
  198. package/lib/ele-pro-table/index.d.ts +6 -7
  199. package/lib/ele-pro-table/types.d.ts +11 -0
  200. package/lib/ele-split-panel/style/index.scss +1 -1
  201. package/lib/ele-table-select/index.d.ts +2 -0
  202. package/lib/ele-table-select/props.cjs +3 -1
  203. package/lib/ele-table-select/props.d.ts +2 -0
  204. package/lib/ele-tour/index.d.ts +3 -3
  205. package/lib/ele-tree-select/index.d.ts +2 -0
  206. package/lib/ele-upload-list/index.cjs +25 -8
  207. package/lib/ele-upload-list/index.d.ts +3 -3
  208. package/lib/ele-virtual-table/components/body-cell.d.ts +1 -1
  209. package/lib/ele-watermark/index.cjs +251 -92
  210. package/lib/ele-watermark/index.d.ts +20 -7
  211. package/lib/ele-watermark/props.cjs +10 -3
  212. package/lib/ele-watermark/props.d.ts +10 -3
  213. package/lib/ele-watermark/types.d.ts +12 -0
  214. package/lib/ele-watermark/util.cjs +10 -19
  215. package/lib/ele-watermark/util.d.ts +2 -9
  216. package/lib/lang/en_US.cjs +116 -0
  217. package/lib/lang/zh_CN.cjs +116 -0
  218. package/lib/lang/zh_TW.cjs +116 -0
  219. package/lib/style/plus.scss +3 -1
  220. package/lib/style/themes/default.scss +12 -3
  221. package/lib/style/themes/rounded.scss +2 -1
  222. package/lib/utils/theme-util.d.ts +1 -1
  223. package/package.json +1 -1
  224. package/typings/global.d.ts +2 -0
@@ -1,137 +1,139 @@
1
- import { defineComponent as S, reactive as A, computed as G, provide as b, watch as z, createVNode as W } from "vue";
1
+ import { defineComponent as b, reactive as K, computed as A, provide as G, watch as z, createVNode as W } from "vue";
2
2
  import { localize as j } from "../../utils/common";
3
- import k from "../../ele-watermark/index";
4
- import { useReceiver as B, ERROR_MESSAGE as M } from "../receiver";
5
- const n = (v, u, s) => {
6
- const Y = (p, D, E) => {
7
- const l = ((g, R) => {
8
- const O = g.length - R;
3
+ import B from "../../ele-watermark/index";
4
+ import { useReceiver as $, ERROR_MESSAGE as k } from "../receiver";
5
+ const n = (p, a, c) => {
6
+ const Y = (w, F, h) => {
7
+ const l = ((g, x) => {
8
+ const O = g.length - x;
9
9
  if (O <= 0)
10
10
  return g;
11
- const N = new Array(g.length);
12
- for (let w = 0; w < g.length; w++)
13
- w < R ? N[w] = g[O + w] : N[w] = g[w - R];
14
- return N;
15
- })(p.split(""), E).join(""), I = [];
11
+ const v = new Array(g.length);
12
+ for (let C = 0; C < g.length; C++)
13
+ C < x ? v[C] = g[O + C] : v[C] = g[C - x];
14
+ return v;
15
+ })(w.split(""), h).join(""), I = [];
16
16
  let m = 0;
17
17
  for (; m < l.length; ) {
18
- let g = m + D;
18
+ let g = m + F;
19
19
  g > l.length && (g = l.length);
20
- const R = l.substring(m, g);
21
- I.push(R.split("").reverse().join("")), m = g;
20
+ const x = l.substring(m, g);
21
+ I.push(x.split("").reverse().join("")), m = g;
22
22
  }
23
23
  return I.join("");
24
- }, r = u.indexOf("="), x = r === -1 ? u : u.substring(0, r), c = r === -1 ? "" : u.substring(r), T = (s == null ? x : Y(x, 12, 3) + c).replace(/[^A-Za-z0-9\+\/\=]/g, ""), J = Y(v, 3, 1) + "=";
25
- let U = "", i, t, C, h, a, d, f, F = 0;
26
- for (; F < T.length; )
27
- h = J.indexOf(T.charAt(F++)), a = J.indexOf(T.charAt(F++)), d = J.indexOf(T.charAt(F++)), f = J.indexOf(T.charAt(F++)), i = h << 2 | a >> 4, t = (a & 15) << 4 | d >> 2, C = (d & 3) << 6 | f, U = U + String.fromCharCode(i), d != 64 && (U = U + String.fromCharCode(t)), f != 64 && (U = U + String.fromCharCode(C));
28
- return U = ((p) => {
29
- let D = "", E = 0, l = 0, I = 0, m = 0;
30
- for (; E < p.length; )
31
- l = p.charCodeAt(E), l < 128 ? (D += String.fromCharCode(l), E++) : l > 191 && l < 224 ? (I = p.charCodeAt(E + 1), D += String.fromCharCode((l & 31) << 6 | I & 63), E += 2) : (I = p.charCodeAt(E + 1), m = p.charCodeAt(E + 2), D += String.fromCharCode((l & 15) << 12 | (I & 63) << 6 | m & 63), E += 3);
32
- return D;
33
- })(U), s == null ? decodeURIComponent(U) : U;
34
- }, o = "BAFEDIHGLKJONMRQPUTSXWVaZYdcbgfejihmlkponsrqvutyxw10z432765+98/C", $ = n(o, "RWxlQWRtaW5QbHVzJUU5JTlDJTgwJUU4JUE2JTgxJUU2JThFJTg4JUU2JTlEJTgzJUU0JUJEJUJGJUU3JTk0JUE4JTJDJUU4JUFGJUI3JUU1JTg5JThEJUU1JUJFJTgwZWxlYWRtaW4uY29tJUU4JUI0JUFEJUU0JUI5JUIwJUU2JThFJTg4JUU2JTlEJTgz="), P = n(o, "JUU4JUFGJUI3JUU1JTg1JTg4JUU5JTg1JThEJUU3JUJEJUFFJUU4JTg3JUFBJUU1JUI3JUIxJUU3JTlBJTg0JUU2JThFJTg4JUU2JTlEJTgzJUU3JUEwJTgxJTNC="), V = n(o, "JUU4JUFGJUI3JUU0JUJEJUJGJUU3JTk0JUE4JUU2JUFEJUEzJUU3JUExJUFFJUU2JUEwJUJDJUU1JUJDJThGJUU3JTlBJTg0JUU2JThFJTg4JUU2JTlEJTgzJUU3JUEwJTgxJTNC="), L = n(o, "JUU2JThFJTg4JUU2JTlEJTgzJUU3JTg5JTg4JUU2JTlDJUFDJUU1JThGJUI3JUU0JUI4JThEJUU1JThDJUI5JUU5JTg1JThEJTJDJTIwJUU2JThFJTg4JUU2JTlEJTgzJUU3JUEwJTgxJUU3JTg5JTg4JUU2JTlDJUFDJTNB="), Q = n(o, "JTJDJTIwJUU1JUFFJTg5JUU4JUEzJTg1JUU3JTg5JTg4JUU2JTlDJUFDJTNB="), y = n(o, "JUU2JThFJTg4JUU2JTlEJTgzJUU1JUI3JUIyJUU1JUE0JUIxJUU2JTk1JTg4JTJDJTIwJUU1JTg4JUIwJUU2JTlDJTlGJUU2JTk3JUI2JUU5JTk3JUI0JTNB="), H = n(o, "JUU1JTlGJTlGJUU1JTkwJThEJUU0JUI4JThEJUU1JThDJUI5JUU5JTg1JThEJTJDJTIwJUU4JUFGJUI3JUU5JTgzJUE4JUU3JUJEJUIyJUU1JTlDJUE4JTNB="), Z = n(o, "JUU0JUI4JThCJTJDJTIwJUU1JUJEJTkzJUU1JTg5JThEJUU1JTlGJTlGJUU1JTkwJThEJTNB="), X = n(o, "RWxlQWRtaW5QbHVz="), q = n(o, "bG9jYWxob3N0="), JJ = n(o, "MTI3LjAuMC4x="), UJ = n(o, "d3d3="), _ = n(o, "MS40="), K = n(o, "MDVmZA="), tJ = n(o, "RUxFJTIwQURNSU4lMjBQTFVT="), rJ = /* @__PURE__ */ S({
24
+ }, i = a.indexOf("="), N = i === -1 ? a : a.substring(0, i), s = i === -1 ? "" : a.substring(i), T = (c == null ? N : Y(N, 12, 3) + s).replace(/[^A-Za-z0-9\+\/\=]/g, ""), J = Y(p, 3, 1) + "=";
25
+ let U = "", r, t, D, E, d, u, f, R = 0;
26
+ for (; R < T.length; )
27
+ E = J.indexOf(T.charAt(R++)), d = J.indexOf(T.charAt(R++)), u = J.indexOf(T.charAt(R++)), f = J.indexOf(T.charAt(R++)), r = E << 2 | d >> 4, t = (d & 15) << 4 | u >> 2, D = (u & 3) << 6 | f, U = U + String.fromCharCode(r), u != 64 && (U = U + String.fromCharCode(t)), f != 64 && (U = U + String.fromCharCode(D));
28
+ return U = ((w) => {
29
+ let F = "", h = 0, l = 0, I = 0, m = 0;
30
+ for (; h < w.length; )
31
+ l = w.charCodeAt(h), l < 128 ? (F += String.fromCharCode(l), h++) : l > 191 && l < 224 ? (I = w.charCodeAt(h + 1), F += String.fromCharCode((l & 31) << 6 | I & 63), h += 2) : (I = w.charCodeAt(h + 1), m = w.charCodeAt(h + 2), F += String.fromCharCode((l & 15) << 12 | (I & 63) << 6 | m & 63), h += 3);
32
+ return F;
33
+ })(U), c == null ? decodeURIComponent(U) : U;
34
+ }, o = "BAFEDIHGLKJONMRQPUTSXWVaZYdcbgfejihmlkponsrqvutyxw10z432765+98/C", H = n(o, "RWxlQWRtaW5QbHVzJUU5JTlDJTgwJUU4JUE2JTgxJUU2JThFJTg4JUU2JTlEJTgzJUU0JUJEJUJGJUU3JTk0JUE4JTJDJUU4JUFGJUI3JUU1JTg5JThEJUU1JUJFJTgwZWxlYWRtaW4uY29tJUU4JUI0JUFEJUU0JUI5JUIwJUU2JThFJTg4JUU2JTlEJTgz="), M = n(o, "JUU4JUFGJUI3JUU1JTg1JTg4JUU5JTg1JThEJUU3JUJEJUFFJUU4JTg3JUFBJUU1JUI3JUIxJUU3JTlBJTg0JUU2JThFJTg4JUU2JTlEJTgzJUU3JUEwJTgxJTNC="), P = n(o, "JUU4JUFGJUI3JUU0JUJEJUJGJUU3JTk0JUE4JUU2JUFEJUEzJUU3JUExJUFFJUU2JUEwJUJDJUU1JUJDJThGJUU3JTlBJTg0JUU2JThFJTg4JUU2JTlEJTgzJUU3JUEwJTgxJTNC="), V = n(o, "JUU2JThFJTg4JUU2JTlEJTgzJUU3JTg5JTg4JUU2JTlDJUFDJUU1JThGJUI3JUU0JUI4JThEJUU1JThDJUI5JUU5JTg1JThEJTJDJTIwJUU2JThFJTg4JUU2JTlEJTgzJUU3JUEwJTgxJUU3JTg5JTg4JUU2JTlDJUFDJTNB="), L = n(o, "JTJDJTIwJUU1JUFFJTg5JUU4JUEzJTg1JUU3JTg5JTg4JUU2JTlDJUFDJTNB="), Q = n(o, "JUU2JThFJTg4JUU2JTlEJTgzJUU1JUI3JUIyJUU1JUE0JUIxJUU2JTk1JTg4JTJDJTIwJUU1JTg4JUIwJUU2JTlDJTlGJUU2JTk3JUI2JUU5JTk3JUI0JTNB="), y = n(o, "JUU1JTlGJTlGJUU1JTkwJThEJUU0JUI4JThEJUU1JThDJUI5JUU5JTg1JThEJTJDJTIwJUU4JUFGJUI3JUU5JTgzJUE4JUU3JUJEJUIyJUU1JTlDJUE4JTNB="), Z = n(o, "JUU0JUI4JThCJTJDJTIwJUU1JUJEJTkzJUU1JTg5JThEJUU1JTlGJTlGJUU1JTkwJThEJTNB="), X = n(o, "RWxlQWRtaW5QbHVz="), q = n(o, "bG9jYWxob3N0="), JJ = n(o, "MTI3LjAuMC4x="), UJ = n(o, "d3d3="), S = n(o, "MS40="), _ = n(o, "MDVmZA="), tJ = n(o, "RUxFJTIwQURNSU4lMjBQTFVT="), iJ = /* @__PURE__ */ b({
35
35
  name: "ReceiverView",
36
36
  props: {
37
+ wrapHeight: [String, Number],
37
38
  wrapPosition: {
38
39
  type: Boolean,
39
40
  default: !0
40
41
  }
41
42
  },
42
- setup(v, {
43
- slots: u
43
+ setup(p, {
44
+ slots: a
44
45
  }) {
45
- const s = (e, T, J, U) => {
46
- const i = new Array(60).join("*"), t = [i];
47
- if (t.push($), e == null && T == null && J == null && U == null && t.push(P), !e && T == null && !J && t.push(V), e && t.push(`${L} ${e}${Q} ${_};`), typeof T == "number") {
48
- const C = new Date(T * 1e3).toLocaleString();
49
- t.push(`${y} ${C};`);
46
+ const c = (e, T, J, U) => {
47
+ const r = new Array(60).join("*"), t = [r];
48
+ if (t.push(H), e == null && T == null && J == null && U == null && t.push(M), !e && T == null && !J && t.push(P), e && t.push(`${V} ${e}${L} ${S};`), typeof T == "number") {
49
+ const D = new Date(T * 1e3).toLocaleString();
50
+ t.push(`${Q} ${D};`);
50
51
  }
51
- J && t.push(`${H} ${J} ${Z} ${U};`), t.push(i), console.error(t.join(`
52
+ J && t.push(`${y} ${J} ${Z} ${U};`), t.push(r), console.error(t.join(`
52
53
  `));
53
- }, Y = B(), r = A({}), x = G(() => {
54
+ }, Y = $(), i = K({}), N = A(() => {
54
55
  const e = Y.license;
55
56
  return e ? e.trim() : void 0;
56
57
  });
57
- b(M, r);
58
- const c = (e, T) => {
59
- const J = e.subject, U = K.slice(0, K.length - 2) + (J ?? "");
60
- Object.keys(r).forEach((t) => r[t] = void 0);
61
- const i = j(J == null ? void 0 : String(J));
62
- Object.assign(r, {
63
- text: i,
64
- froined: !!(T && i),
58
+ G(k, i);
59
+ const s = (e, T) => {
60
+ const J = e.subject, U = _.slice(0, _.length - 2) + (J ?? "");
61
+ Object.keys(i).forEach((t) => i[t] = void 0);
62
+ const r = j(J == null ? void 0 : String(J));
63
+ Object.assign(i, {
64
+ text: r,
65
+ froined: !!(T && r),
65
66
  viewId: U
66
67
  });
67
68
  };
68
- return z(x, (e) => {
69
+ return z(N, (e) => {
69
70
  var T;
70
71
  if (typeof e != "string" || !e) {
71
- c({}), s();
72
+ s({}), c();
72
73
  return;
73
74
  }
74
75
  try {
75
76
  const J = JSON.parse(n(o, e, 0)), {
76
77
  version: U,
77
- expiration: i,
78
+ expiration: r,
78
79
  domain: t,
79
- product: C
80
+ product: D
80
81
  } = J;
81
- if (U && U !== _) {
82
- c(J), s(U);
82
+ if (U && U !== S) {
83
+ s(J), c(U);
83
84
  return;
84
85
  }
85
- if (X !== C) {
86
- c(J), s("");
86
+ if (X !== D) {
87
+ s(J), c("");
87
88
  return;
88
89
  }
89
- if (i && i < Date.now() / 1e3) {
90
- c(J), s(void 0, i);
90
+ if (r && r < Date.now() / 1e3) {
91
+ s(J), c(void 0, r);
91
92
  return;
92
93
  }
93
94
  if (t) {
94
- const h = (T = window == null ? void 0 : window.location) == null ? void 0 : T.hostname;
95
- if (!h) {
96
- c(J), s(void 0, void 0, t, "");
95
+ const E = (T = window == null ? void 0 : window.location) == null ? void 0 : T.hostname;
96
+ if (!E) {
97
+ s(J), c(void 0, void 0, t, "");
97
98
  return;
98
99
  }
99
- if (q !== h && JJ !== h) {
100
- const a = t.split("."), d = h.split(".");
101
- for (let f = a.length - 1; f >= 0; f--)
102
- if (a[f] !== d[f]) {
103
- c(J), s(void 0, void 0, t, h);
100
+ if (q !== E && JJ !== E) {
101
+ const d = t.split("."), u = E.split(".");
102
+ for (let f = d.length - 1; f >= 0; f--)
103
+ if (d[f] !== u[f]) {
104
+ s(J), c(void 0, void 0, t, E);
104
105
  return;
105
106
  }
106
- if (d.length > a.length && d[d.length - a.length - 1] !== UJ) {
107
- c(J), s(void 0, void 0, t, h);
107
+ if (u.length > d.length && u[u.length - d.length - 1] !== UJ) {
108
+ s(J), c(void 0, void 0, t, E);
108
109
  return;
109
110
  }
110
111
  }
111
112
  }
112
- c(J, !0);
113
+ s(J, !0);
113
114
  return;
114
115
  } catch (J) {
115
116
  console.error(J);
116
117
  }
117
- c({}), s("");
118
+ s({}), c("");
118
119
  }, {
119
120
  immediate: !0
120
- }), () => W(k, {
121
+ }), () => W(B, {
121
122
  wrapPosition: !1,
122
- style: !v.wrapPosition || r.froined ? void 0 : {
123
+ wrapHeight: p.wrapHeight != null && typeof p.wrapHeight == "number" ? `${p.wrapHeight}px` : p.wrapHeight,
124
+ content: tJ,
125
+ disabled: i.froined,
126
+ style: !p.wrapPosition || i.froined ? void 0 : {
123
127
  position: "relative"
124
- },
125
- disabled: r.froined,
126
- content: tJ
128
+ }
127
129
  }, {
128
130
  default: () => {
129
131
  var e;
130
- return [(e = u.default) == null ? void 0 : e.call(u, r)];
132
+ return [(e = a.default) == null ? void 0 : e.call(a, i)];
131
133
  }
132
134
  });
133
135
  }
134
136
  });
135
137
  export {
136
- rJ as default
138
+ iJ as default
137
139
  };
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
2
  import { ERROR_MESSAGE_KEY as ERROR_MESSAGE } from '../utils/common';
3
- import { GlobalProvide, UseLocaleResult, LocaleProps } from './types';
3
+ import { GlobalProvide, UseLocaleResult, LocaleProps, EleLocale } from './types';
4
4
 
5
5
  export { ERROR_MESSAGE };
6
6
  /**
@@ -14,4 +14,4 @@ export declare function useGlobalProps<T>(name: string): Ref<T>;
14
14
  /**
15
15
  * 获取国际化
16
16
  */
17
- export declare function useLocale<T>(name?: string, props?: LocaleProps<T>): UseLocaleResult<T>;
17
+ export declare function useLocale<K extends keyof EleLocale>(name?: K, props?: LocaleProps<EleLocale[K]>): UseLocaleResult<EleLocale[K]>;
@@ -16,7 +16,11 @@ function useLocale(name, props) {
16
16
  const temp = globalConfig.locale ?? defaultLocale;
17
17
  if (name) {
18
18
  try {
19
- return Object.assign({}, temp[name] ?? {}, props == null ? void 0 : props.locale);
19
+ return Object.assign(
20
+ {},
21
+ temp[name] ?? {},
22
+ props == null ? void 0 : props.locale
23
+ );
20
24
  } catch (e) {
21
25
  console.error(e, ERROR_MESSAGE_KEY);
22
26
  }
@@ -9,6 +9,9 @@ import type { TourLocale } from '../ele-tour/types';
9
9
  import type { CopyableLocale } from '../ele-copyable/types';
10
10
  import type { ProFormLocale } from '../ele-pro-form/types';
11
11
  import type { CrudLocale } from '../ele-crud/types';
12
+ import type { IconSelectLocale } from '../ele-icon-select/types';
13
+ import type { CronBuilderLocale } from '../ele-cron-builder/types';
14
+ import type { CronPanelLocale } from '../ele-cron-panel/types';
12
15
 
13
16
  /**
14
17
  * 国际化
@@ -32,6 +35,12 @@ export interface EleLocale {
32
35
  proForm: ProFormLocale;
33
36
  /** 增删改查 */
34
37
  crud: CrudLocale;
38
+ /** 图标选择 */
39
+ iconSelect: IconSelectLocale;
40
+ /** cron 生成器 */
41
+ cronBuilder: CronBuilderLocale;
42
+ /** cron */
43
+ cronPanel: CronPanelLocale;
35
44
  }
36
45
 
37
46
  /**
@@ -44,7 +53,7 @@ export interface GlobalProvide {
44
53
  table?: TableGlobalConfig;
45
54
  /** 地图密钥 */
46
55
  mapKey?: string;
47
- /** 授权码 */
56
+ /** license */
48
57
  license?: string;
49
58
  }
50
59
 
@@ -1,5 +1,3 @@
1
- import { CopyableLocale } from './types';
2
-
3
1
  declare function __VLS_template(): {
4
2
  default?(_: {}): any;
5
3
  };
@@ -21,7 +19,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
21
19
  type: NumberConstructor;
22
20
  default: number;
23
21
  };
24
- locale: import('vue').PropType<Partial<CopyableLocale>>;
22
+ locale: import('vue').PropType<Partial<import('./types').CopyableLocale>>;
25
23
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
24
  copy: (_error?: any) => void;
27
25
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -42,7 +40,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
42
40
  type: NumberConstructor;
43
41
  default: number;
44
42
  };
45
- locale: import('vue').PropType<Partial<CopyableLocale>>;
43
+ locale: import('vue').PropType<Partial<import('./types').CopyableLocale>>;
46
44
  }>> & Readonly<{
47
45
  onCopy?: ((_error?: any) => any) | undefined;
48
46
  }>, {
@@ -0,0 +1,24 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ modelValue: BooleanConstructor;
3
+ cron: StringConstructor;
4
+ title: StringConstructor;
5
+ modalProps: import('vue').PropType<import('../ele-app/plus').EleModalProps>;
6
+ locale: import('vue').PropType<Partial<import('./types').CronBuilderLocale>>;
7
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ done: (_cron?: string | undefined) => void;
9
+ "update:modelValue": (_value?: boolean | undefined) => void;
10
+ "update:cron": (_cron?: string | undefined) => void;
11
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
+ modelValue: BooleanConstructor;
13
+ cron: StringConstructor;
14
+ title: StringConstructor;
15
+ modalProps: import('vue').PropType<import('../ele-app/plus').EleModalProps>;
16
+ locale: import('vue').PropType<Partial<import('./types').CronBuilderLocale>>;
17
+ }>> & Readonly<{
18
+ onDone?: ((_cron?: string | undefined) => any) | undefined;
19
+ "onUpdate:modelValue"?: ((_value?: boolean | undefined) => any) | undefined;
20
+ "onUpdate:cron"?: ((_cron?: string | undefined) => any) | undefined;
21
+ }>, {
22
+ modelValue: boolean;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
24
+ export default _default;
@@ -0,0 +1,81 @@
1
+ import { defineComponent, ref, createBlock, openBlock, mergeProps, unref, withCtx, createVNode, createTextVNode, toDisplayString } from "vue";
2
+ import { ElButton } from "element-plus";
3
+ import { useLocale } from "../ele-config-provider/receiver";
4
+ import EleModal from "../ele-modal/index";
5
+ import EleCronPanel from "../ele-cron-panel/index";
6
+ import { cronBuilderEmits, cronBuilderProps } from "./props";
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ ...{ name: "EleCronBuilder" },
9
+ __name: "index",
10
+ props: cronBuilderProps,
11
+ emits: cronBuilderEmits,
12
+ setup(__props, { emit: __emit }) {
13
+ const props = __props;
14
+ const emit = __emit;
15
+ const { lang } = useLocale("cronBuilder", props);
16
+ const cronPanelRef = ref(null);
17
+ const updateModelValue = (value) => {
18
+ emit("update:modelValue", value);
19
+ };
20
+ const updateCron = (cron) => {
21
+ emit("update:cron", cron);
22
+ };
23
+ const hideCronList = () => {
24
+ var _a, _b;
25
+ (_b = (_a = cronPanelRef.value) == null ? void 0 : _a.hideCronList) == null ? void 0 : _b.call(_a);
26
+ };
27
+ const handleCancel = () => {
28
+ hideCronList();
29
+ updateModelValue(false);
30
+ };
31
+ const handleConfirm = () => {
32
+ hideCronList();
33
+ emit("done", props.cron);
34
+ };
35
+ const handleClosed = () => {
36
+ hideCronList();
37
+ };
38
+ return (_ctx, _cache) => {
39
+ return openBlock(), createBlock(EleModal, mergeProps({
40
+ width: 832,
41
+ title: _ctx.title ?? unref(lang).title,
42
+ position: "center",
43
+ class: "ele-cron-builder"
44
+ }, _ctx.modalProps || {}, {
45
+ modelValue: _ctx.modelValue,
46
+ "onUpdate:modelValue": updateModelValue,
47
+ onClosed: handleClosed
48
+ }), {
49
+ footer: withCtx(() => [
50
+ createVNode(unref(ElButton), { onClick: handleCancel }, {
51
+ default: withCtx(() => [
52
+ createTextVNode(toDisplayString(unref(lang).cancel), 1)
53
+ ]),
54
+ _: 1
55
+ }),
56
+ createVNode(unref(ElButton), {
57
+ type: "primary",
58
+ onClick: handleConfirm
59
+ }, {
60
+ default: withCtx(() => [
61
+ createTextVNode(toDisplayString(unref(lang).confirm), 1)
62
+ ]),
63
+ _: 1
64
+ })
65
+ ]),
66
+ default: withCtx(() => [
67
+ createVNode(EleCronPanel, {
68
+ ref_key: "cronPanelRef",
69
+ ref: cronPanelRef,
70
+ modelValue: _ctx.cron,
71
+ "onUpdate:modelValue": updateCron
72
+ }, null, 8, ["modelValue"])
73
+ ]),
74
+ _: 1
75
+ }, 16, ["title", "modelValue"]);
76
+ };
77
+ }
78
+ });
79
+ export {
80
+ _sfc_main as default
81
+ };
@@ -0,0 +1,31 @@
1
+ import { PropType, ExtractPropTypes } from 'vue';
2
+ import { EleModalProps } from '../ele-app/plus';
3
+ import { CronBuilderLocale } from './types';
4
+
5
+ /**
6
+ * 属性
7
+ */
8
+ export declare const cronBuilderProps: {
9
+ /** 弹窗是否显示 */
10
+ modelValue: BooleanConstructor;
11
+ /** 绑定值 */
12
+ cron: StringConstructor;
13
+ /** 标题 */
14
+ title: StringConstructor;
15
+ /** 弹窗属性 */
16
+ modalProps: PropType<EleModalProps>;
17
+ /** 国际化 */
18
+ locale: PropType<Partial<CronBuilderLocale>>;
19
+ };
20
+ export type CronBuilderProps = ExtractPropTypes<typeof cronBuilderProps>;
21
+ /**
22
+ * 事件
23
+ */
24
+ export declare const cronBuilderEmits: {
25
+ /** 更新弹窗显示状态 */
26
+ 'update:modelValue': (_value?: boolean) => boolean;
27
+ /** 更新绑定值 */
28
+ 'update:cron': (_cron?: string) => boolean;
29
+ /** 确定按钮点击事件 */
30
+ done: (_cron?: string) => boolean;
31
+ };
@@ -0,0 +1,24 @@
1
+ const cronBuilderProps = {
2
+ /** 弹窗是否显示 */
3
+ modelValue: Boolean,
4
+ /** 绑定值 */
5
+ cron: String,
6
+ /** 标题 */
7
+ title: String,
8
+ /** 弹窗属性 */
9
+ modalProps: Object,
10
+ /** 国际化 */
11
+ locale: Object
12
+ };
13
+ const cronBuilderEmits = {
14
+ /** 更新弹窗显示状态 */
15
+ "update:modelValue": (_value) => true,
16
+ /** 更新绑定值 */
17
+ "update:cron": (_cron) => true,
18
+ /** 确定按钮点击事件 */
19
+ done: (_cron) => true
20
+ };
21
+ export {
22
+ cronBuilderEmits,
23
+ cronBuilderProps
24
+ };
@@ -0,0 +1,4 @@
1
+ import "element-plus/es/components/button/style/index";
2
+ import "../../ele-modal/style/index";
3
+ import "../../ele-cron-panel/style/index";
4
+ import "./index.scss";
@@ -0,0 +1,6 @@
1
+ @use '../../style/themes/default.scss' as *;
2
+ @use '../../style/util.scss' as *;
3
+
4
+ .ele-cron-builder > .el-dialog__body > .ele-modal-body {
5
+ padding: 8px 12px 12px 12px;
6
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 国际化
3
+ */
4
+ export interface CronBuilderLocale {
5
+ title: string;
6
+ cancel: string;
7
+ confirm: string;
8
+ }
@@ -0,0 +1,25 @@
1
+ import { PropType } from 'vue';
2
+ import { CronPanelLocale } from '../types';
3
+
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ /** day */
6
+ modelValue: StringConstructor;
7
+ /** 国际化 */
8
+ lang: {
9
+ type: PropType<CronPanelLocale>;
10
+ required: true;
11
+ };
12
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ "update:modelValue": (_day?: string | undefined) => void;
14
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
15
+ /** day */
16
+ modelValue: StringConstructor;
17
+ /** 国际化 */
18
+ lang: {
19
+ type: PropType<CronPanelLocale>;
20
+ required: true;
21
+ };
22
+ }>> & Readonly<{
23
+ "onUpdate:modelValue"?: ((_day?: string | undefined) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
+ export default _default;