jmash-core 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/401-DoLCxv3l.mjs +103 -0
  2. package/dist/404-D1KiG-19.mjs +37 -0
  3. package/dist/BarChart-C1VgkGMN.mjs +203 -0
  4. package/dist/FileSaver.min-CbZYb_R2.mjs +77 -0
  5. package/dist/FunnelChart-Czy2TVI1.mjs +106 -0
  6. package/dist/PieChart-D4hXD0SH.mjs +4 -0
  7. package/dist/PieChart.vue_vue_type_script_setup_true_lang-BzbbPmOh.mjs +90 -0
  8. package/dist/RadarChart-BIL7VT1H.mjs +4 -0
  9. package/dist/RadarChart.vue_vue_type_script_setup_true_lang-DcuctIiI.mjs +109 -0
  10. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  11. package/dist/caret-bottom-Cm1qBSrY.mjs +59 -0
  12. package/dist/common-DuVBTwAv.mjs +36 -0
  13. package/dist/debounce-C0G0JMal.mjs +81 -0
  14. package/dist/dropdown2-BiRFTrOq.mjs +160 -0
  15. package/dist/edit-Bpt21Eir.mjs +833 -0
  16. package/dist/edit-CYWeo3RE.mjs +4 -0
  17. package/dist/edit-Cde8RIRN.mjs +4 -0
  18. package/dist/edit-D3-EslTs.mjs +4 -0
  19. package/dist/edit-DLx0iRHQ.mjs +469 -0
  20. package/dist/edit-NICINRFG.mjs +4 -0
  21. package/dist/edit-Vk23bJyE.mjs +4 -0
  22. package/dist/edit-sqzPOfBX.mjs +4 -0
  23. package/dist/edit.vue_vue_type_script_setup_true_lang-BYoUZaYJ.mjs +157 -0
  24. package/dist/edit.vue_vue_type_script_setup_true_lang-CFHGaytm.mjs +137 -0
  25. package/dist/edit.vue_vue_type_script_setup_true_lang-C_NNjRjK.mjs +622 -0
  26. package/dist/edit.vue_vue_type_script_setup_true_lang-DBxZMZyS.mjs +222 -0
  27. package/dist/edit.vue_vue_type_script_setup_true_lang-_tHqd9tg.mjs +226 -0
  28. package/dist/edit.vue_vue_type_script_setup_true_lang-mM66jf9N.mjs +288 -0
  29. package/dist/el-card-BIRVdEQY.mjs +61 -0
  30. package/dist/el-checkbox-group-l0sNRNKZ.mjs +1 -0
  31. package/dist/el-checkbox-miY6QbQ8.mjs +548 -0
  32. package/dist/el-col-BOgRUJYE.mjs +135 -0
  33. package/dist/el-date-picker-D9yvdcj2.mjs +3349 -0
  34. package/dist/el-dialog-BSTwker5.mjs +378 -0
  35. package/dist/el-dropdown-item-YDb2-w9y.mjs +675 -0
  36. package/dist/el-form-item-BzKoZc6I.mjs +1489 -0
  37. package/dist/el-icon-l0sNRNKZ.mjs +1 -0
  38. package/dist/el-popover-DuRdut0P.mjs +159 -0
  39. package/dist/el-popper-AjIjI4wK.mjs +1656 -0
  40. package/dist/el-progress-BPv5gfee.mjs +898 -0
  41. package/dist/el-radio-NC-gfUsx.mjs +251 -0
  42. package/dist/el-scrollbar-p0O6uID0.mjs +607 -0
  43. package/dist/el-select-DAMII7lv.mjs +1040 -0
  44. package/dist/el-switch-C2AFgHGW.mjs +254 -0
  45. package/dist/el-table-IQFrP3zv.mjs +3168 -0
  46. package/dist/el-tag-l0sNRNKZ.mjs +1 -0
  47. package/dist/el-tooltip-l0sNRNKZ.mjs +1 -0
  48. package/dist/el-tree-select-CyDKS6nF.mjs +1316 -0
  49. package/dist/importUpload.vue_vue_type_script_setup_true_lang-DWWbxFGH.mjs +117 -0
  50. package/dist/index-A3UILhe-.mjs +279 -0
  51. package/dist/index-Ax_8ZsXK.mjs +3163 -0
  52. package/dist/index-B46NFfoE.mjs +487 -0
  53. package/dist/index-BWx4KWAY.mjs +282 -0
  54. package/dist/index-BWyb1bu2.mjs +505 -0
  55. package/dist/index-BjqMDjBg.mjs +43994 -0
  56. package/dist/index-BnbEfNmI.mjs +134 -0
  57. package/dist/index-BpAihYhN.mjs +280 -0
  58. package/dist/index-Bs3AcT6R.mjs +107 -0
  59. package/dist/index-BvixCbHl.mjs +329 -0
  60. package/dist/index-C0UgbyoZ.mjs +452 -0
  61. package/dist/index-C0vV2_4K.mjs +63 -0
  62. package/dist/index-CBB_r4G5.mjs +965 -0
  63. package/dist/index-CCFtIl_h.mjs +516 -0
  64. package/dist/index-Cd3TOW5i.mjs +93 -0
  65. package/dist/index-CgNPGcHv.mjs +292 -0
  66. package/dist/index-CoOFKDgw.mjs +74 -0
  67. package/dist/index-CrNYgyNm.mjs +8800 -0
  68. package/dist/index-CurzO9C6.mjs +248 -0
  69. package/dist/index-DJ08yxAP.mjs +11 -0
  70. package/dist/index-DjkMA-Wh.mjs +40 -0
  71. package/dist/index-Url6hMpl.mjs +483 -0
  72. package/dist/index-eT2JltVa.mjs +55 -0
  73. package/dist/index-mkT_dTWL.mjs +13 -0
  74. package/dist/index-uykKwY2Z.mjs +12 -0
  75. package/dist/index-xtDIXRPY.mjs +633 -0
  76. package/dist/index.mjs +19 -273
  77. package/dist/index.vue_vue_type_script_setup_true_lang-BoxqootF.mjs +58 -0
  78. package/dist/index.vue_vue_type_script_setup_true_lang-C6yk_vUt.mjs +286 -0
  79. package/dist/isUndefined-CUQZk6oB.mjs +6 -0
  80. package/dist/moment-CMYwqyVT.mjs +2579 -0
  81. package/dist/picture-kPnmHaoS.mjs +599 -0
  82. package/dist/profile-RVQuIwXg.mjs +319 -0
  83. package/dist/refs-S3PYDmaW.mjs +9 -0
  84. package/dist/style.css +1 -1
  85. package/dist/types-CCG3Dvqs.mjs +205 -0
  86. package/dist/updatePwd-2UsTmJa5.mjs +4 -0
  87. package/dist/updatePwd.vue_vue_type_script_setup_true_lang-_Uadc2g3.mjs +151 -0
  88. package/dist/useColumnToggleTable-D_QF8Uy9.mjs +272 -0
  89. package/dist/vue-i18n-CE6tUbcO.mjs +3808 -0
  90. package/dts/tsconfig.tsbuildinfo +1 -1
  91. package/package.json +31 -2
@@ -0,0 +1,329 @@
1
+ import { u as q, E as F, a as R, b as se, c as le, d as ne, g as ae, s as re, r as ce, e as ie, f as de } from "./index-CrNYgyNm.mjs";
2
+ import { E as pe } from "./el-card-BIRVdEQY.mjs";
3
+ import { _ as ue, E as me } from "./picture-kPnmHaoS.mjs";
4
+ import "./el-tooltip-l0sNRNKZ.mjs";
5
+ import { E as _e } from "./el-popper-AjIjI4wK.mjs";
6
+ import { E as N, a as ge } from "./el-form-item-BzKoZc6I.mjs";
7
+ import "./el-tag-l0sNRNKZ.mjs";
8
+ import { E as fe, a as he } from "./el-select-DAMII7lv.mjs";
9
+ import "./el-scrollbar-p0O6uID0.mjs";
10
+ import { E as ve } from "./el-switch-C2AFgHGW.mjs";
11
+ import { defineComponent as X, openBlock as w, createBlock as U, withCtx as l, createVNode as e, unref as o, createTextVNode as E, createElementVNode as n, ref as i, watchEffect as we, computed as Ee, onMounted as be, resolveComponent as ke, createElementBlock as K, isRef as ye, toDisplayString as T, Fragment as Ce, renderList as Se, createCommentVNode as Ve, withKeys as M, withModifiers as xe, withDirectives as Ie, vShow as $e, pushScopeId as De, popScopeId as Le } from "vue";
12
+ import { u as O } from "./vue-i18n-CE6tUbcO.mjs";
13
+ import { useRoute as Re } from "vue-router";
14
+ import { E as Te, a as qe, b as Ue } from "./el-dropdown-item-YDb2-w9y.mjs";
15
+ import { _ } from "./index-DjkMA-Wh.mjs";
16
+ import { E as ze } from "./index-Bs3AcT6R.mjs";
17
+ import { _ as Ae } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
18
+ const Be = /* @__PURE__ */ X({
19
+ __name: "index",
20
+ setup(g) {
21
+ const d = q(), { locale: V } = O();
22
+ function x(c) {
23
+ V.value = c, d.changeLanguage(c), c === "en" ? F.success("Switch Language Successful!") : F.success("切换语言成功!");
24
+ }
25
+ return (c, z) => {
26
+ const f = _, b = Te, h = qe, k = Ue;
27
+ return w(), U(k, {
28
+ trigger: "click",
29
+ onCommand: x
30
+ }, {
31
+ dropdown: l(() => [
32
+ e(h, null, {
33
+ default: l(() => [
34
+ e(b, {
35
+ disabled: o(d).language === "zh-cn",
36
+ command: "zh-cn"
37
+ }, {
38
+ default: l(() => [
39
+ E(" 中文 ")
40
+ ]),
41
+ _: 1
42
+ }, 8, ["disabled"]),
43
+ e(b, {
44
+ disabled: o(d).language === "en",
45
+ command: "en"
46
+ }, {
47
+ default: l(() => [
48
+ E(" English ")
49
+ ]),
50
+ _: 1
51
+ }, 8, ["disabled"])
52
+ ]),
53
+ _: 1
54
+ })
55
+ ]),
56
+ default: l(() => [
57
+ n("div", null, [
58
+ e(f, { "icon-class": "language" })
59
+ ])
60
+ ]),
61
+ _: 1
62
+ });
63
+ };
64
+ }
65
+ }), j = (g) => (De("data-v-8adbbfc2"), g = g(), Le(), g), Fe = { class: "login-container" }, Ne = { class: "absolute top-0 flex items-center justify-end px-5 h-20 w-full" }, Ke = { class: "text-center relative" }, Me = { class: "p-2" }, Xe = { class: "p-2" }, Oe = { class: "p-2" }, je = { class: "p-2" }, Pe = { class: "captcha" }, We = { class: "image-slot" }, He = { class: "forgot-pwd" }, Qe = { class: "absolute bottom-1 text-[10px] text-center" }, Ze = /* @__PURE__ */ j(() => /* @__PURE__ */ n("p", null, " Copyright © 2024 All Rights Reserved. Apache 2.0 协议. ", -1)), Ge = /* @__PURE__ */ j(() => /* @__PURE__ */ n("p", null, "备案号: XXXX .", -1)), Je = [
66
+ Ze,
67
+ Ge
68
+ ], Ye = 992, eo = /* @__PURE__ */ X({
69
+ __name: "index",
70
+ setup(g) {
71
+ const d = R(), { title: V, version: x } = d, c = i(d.theme === "dark"), z = (t) => {
72
+ ne(t), d.changeSetting({
73
+ key: "theme",
74
+ value: t ? "dark" : "light"
75
+ });
76
+ }, f = q(), { width: b } = se();
77
+ we(() => {
78
+ b.value < Ye ? f.toggleDevice("mobile") : f.toggleDevice("desktop");
79
+ });
80
+ const h = i(!1), k = i(!1), y = i(!1), A = i(), B = i(N), I = i([]), r = i({
81
+ scope: "",
82
+ username: "",
83
+ password: ""
84
+ }), { t: $ } = O(), P = Ee(() => {
85
+ const t = f.language === "en" ? "Please enter " : "请输入";
86
+ return {
87
+ username: [
88
+ {
89
+ required: !0,
90
+ trigger: "blur",
91
+ message: `${t}${$("login.username")}`
92
+ }
93
+ ],
94
+ password: [
95
+ {
96
+ required: !0,
97
+ trigger: "blur",
98
+ validator: (s, m, p) => {
99
+ m.length < 5 ? p(new Error("The password can not be less than 5 digits")) : p();
100
+ },
101
+ message: `${t}${$("login.password")}`
102
+ }
103
+ ],
104
+ captchaCode: [
105
+ {
106
+ required: !0,
107
+ trigger: "blur",
108
+ message: `${t}${$("login.captchaCode")}`
109
+ }
110
+ ]
111
+ };
112
+ });
113
+ function W(t) {
114
+ const { key: s } = t;
115
+ k.value = s && s.length === 1 && s >= "A" && s <= "Z";
116
+ }
117
+ function C() {
118
+ ae().then(({ data: t }) => {
119
+ r.value.captchaKey = t.captchaId, A.value = t.base64Image;
120
+ });
121
+ }
122
+ function H() {
123
+ re().then(({ data: t }) => {
124
+ console.log(t), I.value = t.roleList;
125
+ });
126
+ }
127
+ const Q = Re(), Z = le();
128
+ function D() {
129
+ B.value.validate((t) => {
130
+ t && (h.value = !0, Z.login(r.value).then(() => {
131
+ const s = Q.query;
132
+ console.log(s);
133
+ const m = s.redirect ?? "/";
134
+ console.log(m);
135
+ const p = Object.keys(s).reduce(
136
+ (v, u) => (console.log(v[u], s[u]), u !== "redirect" && (v[u] = s[u]), v),
137
+ {}
138
+ );
139
+ console.log(p), ce.push({ path: m, query: p }), C();
140
+ }).catch(() => {
141
+ C();
142
+ }).finally(() => {
143
+ h.value = !1;
144
+ }));
145
+ });
146
+ }
147
+ return be(() => {
148
+ C(), H();
149
+ const t = R().theme;
150
+ R().changeSetting({ key: "theme", value: t }), t == "dark" ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
151
+ }), (t, s) => {
152
+ const m = ve, p = ze, v = fe, u = he, S = ge, L = ie, G = _e, J = ue, Y = me, ee = ke("router-link"), oe = de, te = pe;
153
+ return w(), K("div", Fe, [
154
+ n("div", Ne, [
155
+ e(m, {
156
+ modelValue: o(c),
157
+ "onUpdate:modelValue": s[0] || (s[0] = (a) => ye(c) ? c.value = a : null),
158
+ "inline-prompt": "",
159
+ "active-color": "var(--el-fill-color-dark)",
160
+ "inactive-color": "var(--el-color-primary)",
161
+ onChange: z
162
+ }, null, 8, ["modelValue"]),
163
+ e(Be, { class: "ml-2 cursor-pointer" })
164
+ ]),
165
+ e(te, { class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83" }, {
166
+ default: l(() => [
167
+ n("div", Ke, [
168
+ n("h2", null, T(o(V)), 1),
169
+ e(p, { class: "ml-2 absolute top-0 right-0" }, {
170
+ default: l(() => [
171
+ E(T(o(x)), 1)
172
+ ]),
173
+ _: 1
174
+ })
175
+ ]),
176
+ e(o(N), {
177
+ ref_key: "loginFormRef",
178
+ ref: B,
179
+ model: o(r),
180
+ rules: o(P),
181
+ size: "large",
182
+ class: "login-form"
183
+ }, {
184
+ default: l(() => [
185
+ o(I).length > 0 ? (w(), U(S, {
186
+ key: 0,
187
+ prop: "scope"
188
+ }, {
189
+ default: l(() => [
190
+ n("div", Me, [
191
+ e(_, { "icon-class": "user" })
192
+ ]),
193
+ e(u, {
194
+ modelValue: o(r).scope,
195
+ "onUpdate:modelValue": s[1] || (s[1] = (a) => o(r).scope = a),
196
+ placeholder: "Select",
197
+ class: "flex-1"
198
+ }, {
199
+ default: l(() => [
200
+ (w(!0), K(Ce, null, Se(o(I), (a) => (w(), U(v, {
201
+ key: a.roleCode,
202
+ label: a.roleName,
203
+ value: a.roleCode
204
+ }, null, 8, ["label", "value"]))), 128))
205
+ ]),
206
+ _: 1
207
+ }, 8, ["modelValue"])
208
+ ]),
209
+ _: 1
210
+ })) : Ve("", !0),
211
+ e(S, { prop: "username" }, {
212
+ default: l(() => [
213
+ n("div", Xe, [
214
+ e(_, { "icon-class": "user" })
215
+ ]),
216
+ e(L, {
217
+ ref: "username",
218
+ modelValue: o(r).username,
219
+ "onUpdate:modelValue": s[2] || (s[2] = (a) => o(r).username = a),
220
+ class: "flex-1",
221
+ placeholder: t.$t("login.username"),
222
+ name: "username"
223
+ }, null, 8, ["modelValue", "placeholder"])
224
+ ]),
225
+ _: 1
226
+ }),
227
+ e(G, {
228
+ disabled: o(k) === !1,
229
+ content: "Caps lock is On",
230
+ placement: "right"
231
+ }, {
232
+ default: l(() => [
233
+ e(S, { prop: "password" }, {
234
+ default: l(() => [
235
+ n("span", Oe, [
236
+ e(_, { "icon-class": "password" })
237
+ ]),
238
+ e(L, {
239
+ modelValue: o(r).password,
240
+ "onUpdate:modelValue": s[3] || (s[3] = (a) => o(r).password = a),
241
+ class: "flex-1",
242
+ placeholder: t.$t("login.password"),
243
+ type: o(y) === !1 ? "password" : "input",
244
+ name: "password",
245
+ onKeyup: [
246
+ W,
247
+ M(D, ["enter"])
248
+ ]
249
+ }, null, 8, ["modelValue", "placeholder", "type"]),
250
+ n("span", {
251
+ class: "mr-2",
252
+ onClick: s[4] || (s[4] = (a) => y.value = !o(y))
253
+ }, [
254
+ e(_, {
255
+ "icon-class": o(y) === !1 ? "eye" : "eye-open",
256
+ class: "cursor-pointer"
257
+ }, null, 8, ["icon-class"])
258
+ ])
259
+ ]),
260
+ _: 1
261
+ })
262
+ ]),
263
+ _: 1
264
+ }, 8, ["disabled"]),
265
+ e(S, { prop: "captchaCode" }, {
266
+ default: l(() => [
267
+ n("span", je, [
268
+ e(_, { "icon-class": "captcha" })
269
+ ]),
270
+ e(L, {
271
+ modelValue: o(r).captchaCode,
272
+ "onUpdate:modelValue": s[5] || (s[5] = (a) => o(r).captchaCode = a),
273
+ "auto-complete": "off",
274
+ placeholder: t.$t("login.captchaCode"),
275
+ class: "w-[60%]",
276
+ onKeyup: M(D, ["enter"])
277
+ }, null, 8, ["modelValue", "placeholder"]),
278
+ n("div", Pe, [
279
+ e(Y, {
280
+ src: o(A),
281
+ onClick: C,
282
+ class: "w-[130px] h-[50px] cursor-pointer"
283
+ }, {
284
+ error: l(() => [
285
+ n("div", We, [
286
+ e(J)
287
+ ])
288
+ ]),
289
+ _: 1
290
+ }, 8, ["src"])
291
+ ])
292
+ ]),
293
+ _: 1
294
+ }),
295
+ n("div", He, [
296
+ e(ee, { to: "/secondLogin" }, {
297
+ default: l(() => [
298
+ E("手机号/邮箱登录")
299
+ ]),
300
+ _: 1
301
+ })
302
+ ]),
303
+ e(oe, {
304
+ loading: o(h),
305
+ type: "primary",
306
+ class: "w-full",
307
+ onClick: xe(D, ["prevent"])
308
+ }, {
309
+ default: l(() => [
310
+ E(T(t.$t("login.login")), 1)
311
+ ]),
312
+ _: 1
313
+ }, 8, ["loading"])
314
+ ]),
315
+ _: 1
316
+ }, 8, ["model", "rules"])
317
+ ]),
318
+ _: 1
319
+ }),
320
+ Ie(n("div", Qe, Je, 512), [
321
+ [$e, o(q)().device == "desktop"]
322
+ ])
323
+ ]);
324
+ };
325
+ }
326
+ }), wo = /* @__PURE__ */ Ae(eo, [["__scopeId", "data-v-8adbbfc2"]]);
327
+ export {
328
+ wo as default
329
+ };