jmash-core 0.0.84 → 0.0.85

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 (44) hide show
  1. package/dist/{401-BOgGx9Jd.mjs → 401-zBwpDKNi.mjs} +43 -44
  2. package/dist/{404-BYxlSqoT.mjs → 404-CpT97Rlw.mjs} +1 -1
  3. package/dist/{BarChart-C22Beea1.mjs → BarChart-BKS50yTF.mjs} +30 -31
  4. package/dist/{FunnelChart-CcCVox9E.mjs → FunnelChart-DPisFRDu.mjs} +1 -1
  5. package/dist/{PieChart-Dksdgtfs.mjs → PieChart-Ceza7eIr.mjs} +1 -1
  6. package/dist/{PieChart.vue_vue_type_script_setup_true_lang-BAW7aMk4.mjs → PieChart.vue_vue_type_script_setup_true_lang-CjKWzA-2.mjs} +12 -14
  7. package/dist/{RadarChart-DquLnQ6V.mjs → RadarChart-Dvq6tgrV.mjs} +1 -1
  8. package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-B9md22Se.mjs → RadarChart.vue_vue_type_script_setup_true_lang-DxP18bev.mjs} +13 -15
  9. package/dist/index-B3v91jBZ.mjs +267 -0
  10. package/dist/{index-BjqMDjBg.mjs → index-D5Fo3f2g.mjs} +7651 -7892
  11. package/dist/index-D6RqJAzN.mjs +367 -0
  12. package/dist/index-DvkHagzN.mjs +18839 -0
  13. package/dist/index-jlajGMX8.mjs +1639 -0
  14. package/dist/index.mjs +53 -52
  15. package/dist/picture-CBRsHLZl.mjs +22 -0
  16. package/dist/profile-lRu3pbj7.mjs +263 -0
  17. package/dist/{runAs-aDp4HoyI.mjs → runAs-CTggsyo5.mjs} +1 -1
  18. package/dist/runAs.vue_vue_type_script_setup_true_lang-D75ePgmQ.mjs +148 -0
  19. package/dist/style.css +1 -1
  20. package/dist/{types-kVtKPxE9.mjs → types-CvkX5bGP.mjs} +79 -80
  21. package/dist/{updatePwd-D54MmOmU.mjs → updatePwd-Ddr1M_Nn.mjs} +1 -1
  22. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-DA30m6c3.mjs → updatePwd.vue_vue_type_script_setup_true_lang-XtbjcHlX.mjs} +38 -45
  23. package/dts/src/components/DictSelect/index.vue.d.ts +1 -1
  24. package/dts/src/components/JmashPagination/index.vue.d.ts +1 -1
  25. package/dts/src/components/Pagination/index.vue.d.ts +5 -5
  26. package/dts/src/components/SvgIcon/index.vue.d.ts +1 -1
  27. package/dts/src/index.d.ts +1 -0
  28. package/dts/src/views/dashboard/components/BarChart.vue.d.ts +1 -1
  29. package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +1 -1
  30. package/dts/src/views/dashboard/components/PieChart.vue.d.ts +1 -1
  31. package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +1 -1
  32. package/package.json +2 -3
  33. package/dist/el-card-BW_8jVxk.mjs +0 -61
  34. package/dist/el-col-Dd32wlSH.mjs +0 -135
  35. package/dist/el-form-item-3aV6p-oZ.mjs +0 -1117
  36. package/dist/index-B07mUqAa.mjs +0 -269
  37. package/dist/index-B8sKaF6F.mjs +0 -55
  38. package/dist/index-CgRfmdyq.mjs +0 -33076
  39. package/dist/index-CmaHwUB-.mjs +0 -449
  40. package/dist/index-RUqoTfAx.mjs +0 -3462
  41. package/dist/picture-DVndT_xi.mjs +0 -587
  42. package/dist/position-RPjzcrqL.mjs +0 -23
  43. package/dist/profile-CNIhXiv-.mjs +0 -4924
  44. package/dist/runAs.vue_vue_type_script_setup_true_lang-CZdXga19.mjs +0 -645
@@ -1,269 +0,0 @@
1
- import { a3 as x, W as L, al as ee, a2 as oe, a8 as te, Y as u, aw as se, as as le, ax as ae, ay as ne, ab as re, ah as ce, aq as ie, az as de, aA as pe, s as ue, r as me, t as _e, a9 as ge } from "./index-CgRfmdyq.mjs";
2
- import { E as he } from "./el-card-BW_8jVxk.mjs";
3
- import { _ as fe, E as ve } from "./picture-DVndT_xi.mjs";
4
- import { E as we } from "./el-form-item-3aV6p-oZ.mjs";
5
- import { defineComponent as ye, ref as c, watchEffect as ke, computed as Ce, onMounted as be, resolveComponent as Ee, openBlock as v, createElementBlock as T, createElementVNode as a, createVNode as s, unref as o, isRef as Ve, withCtx as r, toDisplayString as I, createTextVNode as $, createBlock as A, Fragment as Se, renderList as xe, createCommentVNode as Ie, withKeys as U, withModifiers as $e, withDirectives as Re, vShow as De, pushScopeId as qe, popScopeId as Le } from "vue";
6
- import { useI18n as Te } from "vue-i18n";
7
- import { ElForm as B } from "element-plus";
8
- import { useRoute as Ae } from "vue-router";
9
- const F = (m) => (qe("data-v-10b9a69c"), m = m(), Le(), m), Ue = { class: "login-container" }, Be = { class: "absolute top-0 flex items-center justify-end px-5 h-20 w-full" }, Fe = { class: "text-center relative" }, Ne = { class: "p-2" }, ze = { class: "p-2" }, Ke = { class: "p-2" }, Xe = { class: "p-2" }, Oe = { class: "captcha" }, We = { class: "image-slot" }, je = { class: "forgot-pwd" }, Me = { class: "absolute bottom-1 text-[10px] text-center" }, Pe = /* @__PURE__ */ F(() => /* @__PURE__ */ a("p", null, " Copyright © 2024 All Rights Reserved. Apache 2.0 协议. ", -1)), He = /* @__PURE__ */ F(() => /* @__PURE__ */ a("p", null, "备案号: XXXX .", -1)), Qe = [
10
- Pe,
11
- He
12
- ], Ye = 992, Ze = /* @__PURE__ */ ye({
13
- __name: "index",
14
- setup(m) {
15
- const w = x(), { title: N, version: z } = w, y = c(w.theme === "dark"), K = (e) => {
16
- se(e), w.changeSetting({
17
- key: "theme",
18
- value: e ? "dark" : "light"
19
- });
20
- }, k = L(), { width: X } = ee();
21
- ke(() => {
22
- X.value < Ye ? k.toggleDevice("mobile") : k.toggleDevice("desktop");
23
- });
24
- const C = c(!1), R = c(!1), _ = c(!1), D = c(), q = c(B), b = c([]), n = c({
25
- scope: "",
26
- username: "",
27
- password: ""
28
- }), { t: E } = Te(), O = Ce(() => {
29
- const e = k.language === "en" ? "Please enter " : "请输入";
30
- return {
31
- username: [
32
- {
33
- required: !0,
34
- trigger: "blur",
35
- message: `${e}${E("login.username")}`
36
- }
37
- ],
38
- password: [
39
- {
40
- required: !0,
41
- trigger: "blur",
42
- validator: (t, d, i) => {
43
- d.length < 5 ? i(new Error("The password can not be less than 5 digits")) : i();
44
- },
45
- message: `${e}${E("login.password")}`
46
- }
47
- ],
48
- captchaCode: [
49
- {
50
- required: !0,
51
- trigger: "blur",
52
- message: `${e}${E("login.captchaCode")}`
53
- }
54
- ]
55
- };
56
- });
57
- function W(e) {
58
- const { key: t } = e;
59
- R.value = t && t.length === 1 && t >= "A" && t <= "Z";
60
- }
61
- function g() {
62
- le().then(({ data: e }) => {
63
- n.value.captchaKey = e.captchaId, D.value = e.base64Image;
64
- });
65
- }
66
- function j() {
67
- ae().then(({ data: e }) => {
68
- b.value = e.roleList;
69
- });
70
- }
71
- const M = Ae(), P = oe();
72
- function V() {
73
- q.value.validate((e) => {
74
- e && (C.value = !0, n.value.password = ne(n.value.password), P.login(n.value).then(() => {
75
- const t = M.query, d = t.redirect ?? "/", i = Object.keys(t).reduce(
76
- (h, p) => (p !== "redirect" && (h[p] = t[p]), h),
77
- {}
78
- );
79
- re.value.push({ path: d, query: i }), g();
80
- }).catch(() => {
81
- g();
82
- }).finally(() => {
83
- C.value = !1;
84
- }));
85
- });
86
- }
87
- return be(() => {
88
- g(), j();
89
- const e = x().theme;
90
- x().changeSetting({ key: "theme", value: e }), e == "dark" ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
91
- }), (e, t) => {
92
- const d = ce, i = ie, h = de, p = pe, f = we, S = ue, H = me, Q = fe, Y = ve, Z = Ee("router-link"), G = _e, J = he;
93
- return v(), T("div", Ue, [
94
- a("div", Be, [
95
- s(d, {
96
- modelValue: o(y),
97
- "onUpdate:modelValue": t[0] || (t[0] = (l) => Ve(y) ? y.value = l : null),
98
- "inline-prompt": "",
99
- "active-color": "var(--el-fill-color-dark)",
100
- "inactive-color": "var(--el-color-primary)",
101
- onChange: K
102
- }, null, 8, ["modelValue"]),
103
- s(te, { class: "ml-2 cursor-pointer" })
104
- ]),
105
- s(J, { class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83" }, {
106
- default: r(() => [
107
- a("div", Fe, [
108
- a("h2", null, I(o(N)), 1),
109
- s(i, { class: "ml-2 absolute top-0 right-0" }, {
110
- default: r(() => [
111
- $(I(o(z)), 1)
112
- ]),
113
- _: 1
114
- })
115
- ]),
116
- s(o(B), {
117
- ref_key: "loginFormRef",
118
- ref: q,
119
- model: o(n),
120
- rules: o(O),
121
- size: "large",
122
- class: "login-form"
123
- }, {
124
- default: r(() => [
125
- o(b).length > 0 ? (v(), A(f, {
126
- key: 0,
127
- prop: "scope"
128
- }, {
129
- default: r(() => [
130
- a("div", Ne, [
131
- s(u, { "icon-class": "user" })
132
- ]),
133
- s(p, {
134
- modelValue: o(n).scope,
135
- "onUpdate:modelValue": t[1] || (t[1] = (l) => o(n).scope = l),
136
- placeholder: "Select",
137
- class: "flex-1"
138
- }, {
139
- default: r(() => [
140
- (v(!0), T(Se, null, xe(o(b), (l) => (v(), A(h, {
141
- key: l.roleCode,
142
- label: l.roleName,
143
- value: l.roleCode
144
- }, null, 8, ["label", "value"]))), 128))
145
- ]),
146
- _: 1
147
- }, 8, ["modelValue"])
148
- ]),
149
- _: 1
150
- })) : Ie("", !0),
151
- s(f, { prop: "username" }, {
152
- default: r(() => [
153
- a("div", ze, [
154
- s(u, { "icon-class": "user" })
155
- ]),
156
- s(S, {
157
- ref: "username",
158
- modelValue: o(n).username,
159
- "onUpdate:modelValue": t[2] || (t[2] = (l) => o(n).username = l),
160
- class: "flex-1",
161
- placeholder: e.$t("login.username"),
162
- name: "username"
163
- }, null, 8, ["modelValue", "placeholder"])
164
- ]),
165
- _: 1
166
- }),
167
- s(H, {
168
- disabled: o(R) === !1,
169
- content: "Caps lock is On",
170
- placement: "right"
171
- }, {
172
- default: r(() => [
173
- s(f, { prop: "password" }, {
174
- default: r(() => [
175
- a("span", Ke, [
176
- s(u, { "icon-class": "password" })
177
- ]),
178
- s(S, {
179
- modelValue: o(n).password,
180
- "onUpdate:modelValue": t[3] || (t[3] = (l) => o(n).password = l),
181
- class: "flex-1",
182
- placeholder: e.$t("login.password"),
183
- type: o(_) === !1 ? "password" : "input",
184
- name: "password",
185
- onKeyup: [
186
- W,
187
- U(V, ["enter"])
188
- ]
189
- }, null, 8, ["modelValue", "placeholder", "type"]),
190
- a("span", {
191
- class: "mr-2",
192
- onClick: t[4] || (t[4] = (l) => _.value = !o(_))
193
- }, [
194
- s(u, {
195
- "icon-class": o(_) === !1 ? "eye" : "eye-open",
196
- class: "cursor-pointer"
197
- }, null, 8, ["icon-class"])
198
- ])
199
- ]),
200
- _: 1
201
- })
202
- ]),
203
- _: 1
204
- }, 8, ["disabled"]),
205
- s(f, { prop: "captchaCode" }, {
206
- default: r(() => [
207
- a("span", Xe, [
208
- s(u, { "icon-class": "captcha" })
209
- ]),
210
- s(S, {
211
- modelValue: o(n).captchaCode,
212
- "onUpdate:modelValue": t[5] || (t[5] = (l) => o(n).captchaCode = l),
213
- "auto-complete": "off",
214
- placeholder: e.$t("login.captchaCode"),
215
- class: "w-[60%]",
216
- onKeyup: U(V, ["enter"])
217
- }, null, 8, ["modelValue", "placeholder"]),
218
- a("div", Oe, [
219
- s(Y, {
220
- src: o(D),
221
- onClick: g,
222
- class: "w-[130px] h-[50px] cursor-pointer"
223
- }, {
224
- error: r(() => [
225
- a("div", We, [
226
- s(Q)
227
- ])
228
- ]),
229
- _: 1
230
- }, 8, ["src"])
231
- ])
232
- ]),
233
- _: 1
234
- }),
235
- a("div", je, [
236
- s(Z, { to: "/secondLogin" }, {
237
- default: r(() => [
238
- $("手机号/邮箱登录")
239
- ]),
240
- _: 1
241
- })
242
- ]),
243
- s(G, {
244
- loading: o(C),
245
- type: "primary",
246
- class: "w-full",
247
- onClick: $e(V, ["prevent"])
248
- }, {
249
- default: r(() => [
250
- $(I(e.$t("login.login")), 1)
251
- ]),
252
- _: 1
253
- }, 8, ["loading"])
254
- ]),
255
- _: 1
256
- }, 8, ["model", "rules"])
257
- ]),
258
- _: 1
259
- }),
260
- Re(a("div", Me, Qe, 512), [
261
- [De, o(L)().device == "desktop"]
262
- ])
263
- ]);
264
- };
265
- }
266
- }), no = /* @__PURE__ */ ge(Ze, [["__scopeId", "data-v-10b9a69c"]]);
267
- export {
268
- no as default
269
- };
@@ -1,55 +0,0 @@
1
- import { defineComponent as s, openBlock as n, createBlock as r, Transition as l, mergeProps as p, unref as g, toHandlers as m, withCtx as f, renderSlot as y } from "vue";
2
- import { u as c, _ as h } from "./index-CgRfmdyq.mjs";
3
- const _ = s({
4
- name: "ElCollapseTransition"
5
- }), v = /* @__PURE__ */ s({
6
- ..._,
7
- setup(o) {
8
- const d = c("collapse-transition"), e = (t) => {
9
- t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow, t.style.paddingTop = t.dataset.oldPaddingTop, t.style.paddingBottom = t.dataset.oldPaddingBottom;
10
- }, i = {
11
- beforeEnter(t) {
12
- t.dataset || (t.dataset = {}), t.dataset.oldPaddingTop = t.style.paddingTop, t.dataset.oldPaddingBottom = t.style.paddingBottom, t.style.height && (t.dataset.elExistsHeight = t.style.height), t.style.maxHeight = 0, t.style.paddingTop = 0, t.style.paddingBottom = 0;
13
- },
14
- enter(t) {
15
- requestAnimationFrame(() => {
16
- t.dataset.oldOverflow = t.style.overflow, t.dataset.elExistsHeight ? t.style.maxHeight = t.dataset.elExistsHeight : t.scrollHeight !== 0 ? t.style.maxHeight = `${t.scrollHeight}px` : t.style.maxHeight = 0, t.style.paddingTop = t.dataset.oldPaddingTop, t.style.paddingBottom = t.dataset.oldPaddingBottom, t.style.overflow = "hidden";
17
- });
18
- },
19
- afterEnter(t) {
20
- t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow;
21
- },
22
- enterCancelled(t) {
23
- e(t);
24
- },
25
- beforeLeave(t) {
26
- t.dataset || (t.dataset = {}), t.dataset.oldPaddingTop = t.style.paddingTop, t.dataset.oldPaddingBottom = t.style.paddingBottom, t.dataset.oldOverflow = t.style.overflow, t.style.maxHeight = `${t.scrollHeight}px`, t.style.overflow = "hidden";
27
- },
28
- leave(t) {
29
- t.scrollHeight !== 0 && (t.style.maxHeight = 0, t.style.paddingTop = 0, t.style.paddingBottom = 0);
30
- },
31
- afterLeave(t) {
32
- e(t);
33
- },
34
- leaveCancelled(t) {
35
- e(t);
36
- }
37
- };
38
- return (t, x) => (n(), r(l, p({
39
- name: g(d).b()
40
- }, m(i)), {
41
- default: f(() => [
42
- y(t.$slots, "default")
43
- ]),
44
- _: 3
45
- }, 16, ["name"]));
46
- }
47
- });
48
- var a = /* @__PURE__ */ h(v, [["__file", "collapse-transition.vue"]]);
49
- a.install = (o) => {
50
- o.component(a.name, a);
51
- };
52
- const B = a;
53
- export {
54
- B as _
55
- };