jmash-core 0.0.83 → 0.0.84

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 (29) hide show
  1. package/dist/{401-DDlNgYq7.mjs → 401-BOgGx9Jd.mjs} +2 -2
  2. package/dist/{404-BVJ6Brsi.mjs → 404-BYxlSqoT.mjs} +1 -1
  3. package/dist/{BarChart-CN9m_XI6.mjs → BarChart-C22Beea1.mjs} +2 -2
  4. package/dist/{PieChart-BjN5lkCS.mjs → PieChart-Dksdgtfs.mjs} +1 -1
  5. package/dist/{PieChart.vue_vue_type_script_setup_true_lang-CGPmDUj5.mjs → PieChart.vue_vue_type_script_setup_true_lang-BAW7aMk4.mjs} +2 -2
  6. package/dist/{RadarChart-B4LOoexx.mjs → RadarChart-DquLnQ6V.mjs} +1 -1
  7. package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-BrGez0te.mjs → RadarChart.vue_vue_type_script_setup_true_lang-B9md22Se.mjs} +2 -2
  8. package/dist/{el-card-D3EfgtyQ.mjs → el-card-BW_8jVxk.mjs} +1 -1
  9. package/dist/{el-col-k7mGAgg0.mjs → el-col-Dd32wlSH.mjs} +1 -1
  10. package/dist/{el-form-item-BCjzfzgc.mjs → el-form-item-3aV6p-oZ.mjs} +1 -1
  11. package/dist/{index-CroH3CqP.mjs → index-B07mUqAa.mjs} +4 -4
  12. package/dist/{index-LZLdnbal.mjs → index-B8sKaF6F.mjs} +1 -1
  13. package/dist/{index-TQ8ibm02.mjs → index-CgRfmdyq.mjs} +2681 -2678
  14. package/dist/{index-D3iVs23B.mjs → index-CmaHwUB-.mjs} +6 -6
  15. package/dist/{index-D1LzyXVP.mjs → index-RUqoTfAx.mjs} +5 -5
  16. package/dist/index.mjs +10 -10
  17. package/dist/{picture-nPspXxsI.mjs → picture-DVndT_xi.mjs} +2 -2
  18. package/dist/{position-CE8nIurz.mjs → position-RPjzcrqL.mjs} +1 -1
  19. package/dist/profile-CNIhXiv-.mjs +4924 -0
  20. package/dist/{runAs-CNxrKm71.mjs → runAs-aDp4HoyI.mjs} +1 -1
  21. package/dist/{runAs.vue_vue_type_script_setup_true_lang-DE-XxbIW.mjs → runAs.vue_vue_type_script_setup_true_lang-CZdXga19.mjs} +58 -58
  22. package/dist/style.css +1 -1
  23. package/dist/{types-Br5g53K8.mjs → types-kVtKPxE9.mjs} +3 -3
  24. package/dist/{updatePwd-Dx8KFw5F.mjs → updatePwd-D54MmOmU.mjs} +1 -1
  25. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-wiUaaEWk.mjs → updatePwd.vue_vue_type_script_setup_true_lang-DA30m6c3.mjs} +2 -2
  26. package/dts/src/components/JmashPagination/index.vue.d.ts +1 -1
  27. package/dts/src/components/Pagination/index.vue.d.ts +3 -3
  28. package/package.json +1 -1
  29. package/dist/profile-Dg1eaQO-.mjs +0 -4911
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./runAs.vue_vue_type_script_setup_true_lang-DE-XxbIW.mjs";
1
+ import { _ as f } from "./runAs.vue_vue_type_script_setup_true_lang-CZdXga19.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { A as we, t as Be, I as Te, s as ke, H as Ie, E as Me, bh as Se, bi as Ae, bj as Ve, bk as ne, bl as oe, bm as Re, bn as $e, _ as Oe, bo as Le, c as Pe, g as de, j as te, V as Ne, a$ as ze, am as se, aO as ae, z as De, a2 as R, bp as Ue, bq as Fe, br as He, X as Ke, Y as je, bs as qe, ar as Xe } from "./index-TQ8ibm02.mjs";
1
+ import { A as we, t as Be, I as Te, s as ke, H as Ie, E as Me, bi as Se, bj as Ae, bk as Ve, bl as ne, bm as te, bn as Re, bo as $e, _ as Oe, bp as Le, c as Pe, g as de, j as oe, V as Ne, a$ as ze, am as se, aO as ae, z as De, a2 as R, bq as Ue, br as Fe, bs as He, X as Ke, Y as je, bt as qe, ar as Xe } from "./index-CgRfmdyq.mjs";
2
2
  import { nextTick as D, defineComponent as ce, computed as M, ref as T, reactive as fe, watch as le, onMounted as Ge, onBeforeUnmount as We, toRefs as Ye, resolveComponent as $, openBlock as m, createBlock as h, Transition as Ze, withCtx as p, withDirectives as O, createVNode as g, createElementVNode as y, normalizeClass as c, normalizeStyle as re, withModifiers as q, createElementBlock as U, resolveDynamicComponent as X, createCommentVNode as k, toDisplayString as C, withKeys as G, renderSlot as Je, createTextVNode as S, vShow as F, isVNode as me, render as pe, useModel as Qe, resolveDirective as _e, unref as z } from "vue";
3
3
  const xe = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])', en = (e) => process.env.NODE_ENV === "test" ? !0 : getComputedStyle(e).position === "fixed" ? !1 : e.offsetParent !== null, ie = (e) => Array.from(e.querySelectorAll(xe)).filter((n) => nn(n) && en(n)), nn = (e) => {
4
4
  if (e.tabIndex > 0 || e.tabIndex === 0 && e.getAttribute("tabIndex") !== null)
@@ -17,28 +17,28 @@ const xe = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="
17
17
  default:
18
18
  return !1;
19
19
  }
20
- }, wn = function(e, n, ...t) {
20
+ }, wn = function(e, n, ...o) {
21
21
  let s;
22
22
  n.includes("mouse") || n.includes("click") ? s = "MouseEvents" : n.includes("key") ? s = "KeyboardEvent" : s = "HTMLEvents";
23
23
  const a = document.createEvent(s);
24
- return a.initEvent(n, ...t), e.dispatchEvent(a), e;
24
+ return a.initEvent(n, ...o), e.dispatchEvent(a), e;
25
25
  }, Y = "_trap-focus-children", A = [], ue = (e) => {
26
26
  var n;
27
27
  if (A.length === 0)
28
28
  return;
29
- const t = A[A.length - 1][Y];
30
- if (t.length > 0 && e.code === we.tab) {
31
- if (t.length === 1) {
32
- e.preventDefault(), document.activeElement !== t[0] && t[0].focus();
29
+ const o = A[A.length - 1][Y];
30
+ if (o.length > 0 && e.code === we.tab) {
31
+ if (o.length === 1) {
32
+ e.preventDefault(), document.activeElement !== o[0] && o[0].focus();
33
33
  return;
34
34
  }
35
- const s = e.shiftKey, a = e.target === t[0], l = e.target === t[t.length - 1];
36
- if (a && s && (e.preventDefault(), t[t.length - 1].focus()), l && !s && (e.preventDefault(), t[0].focus()), process.env.NODE_ENV === "test") {
37
- const u = t.indexOf(e.target);
38
- u !== -1 && ((n = t[s ? u - 1 : u + 1]) == null || n.focus());
35
+ const s = e.shiftKey, a = e.target === o[0], l = e.target === o[o.length - 1];
36
+ if (a && s && (e.preventDefault(), o[o.length - 1].focus()), l && !s && (e.preventDefault(), o[0].focus()), process.env.NODE_ENV === "test") {
37
+ const u = o.indexOf(e.target);
38
+ u !== -1 && ((n = o[s ? u - 1 : u + 1]) == null || n.focus());
39
39
  }
40
40
  }
41
- }, on = {
41
+ }, tn = {
42
42
  beforeMount(e) {
43
43
  e[Y] = ie(e), A.push(e), A.length <= 1 && document.addEventListener("keydown", ue);
44
44
  },
@@ -50,10 +50,10 @@ const xe = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="
50
50
  unmounted() {
51
51
  A.shift(), A.length === 0 && document.removeEventListener("keydown", ue);
52
52
  }
53
- }, tn = ce({
53
+ }, on = ce({
54
54
  name: "ElMessageBox",
55
55
  directives: {
56
- TrapFocus: on
56
+ TrapFocus: tn
57
57
  },
58
58
  components: {
59
59
  ElButton: Be,
@@ -112,11 +112,11 @@ const xe = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="
112
112
  emits: ["vanish", "action"],
113
113
  setup(e, { emit: n }) {
114
114
  const {
115
- locale: t,
115
+ locale: o,
116
116
  zIndex: s,
117
117
  ns: a,
118
118
  size: l
119
- } = Ve("message-box", M(() => e.buttonSize)), { t: u } = t, { nextZIndex: v } = s, f = T(!1), o = fe({
119
+ } = Ve("message-box", M(() => e.buttonSize)), { t: u } = o, { nextZIndex: v } = s, f = T(!1), t = fe({
120
120
  autofocus: !0,
121
121
  beforeClose: null,
122
122
  callback: null,
@@ -151,17 +151,17 @@ const xe = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="
151
151
  validateError: !1,
152
152
  zIndex: v()
153
153
  }), E = M(() => {
154
- const i = o.type;
154
+ const i = t.type;
155
155
  return { [a.bm("icon", i)]: i && ne[i] };
156
- }), I = oe(), d = oe(), W = M(() => o.icon || ne[o.type] || ""), r = M(() => !!o.message), b = T(), Z = T(), P = T(), K = T(), J = T(), ve = M(() => o.confirmButtonClass);
157
- le(() => o.inputValue, async (i) => {
156
+ }), I = te(), d = te(), W = M(() => t.icon || ne[t.type] || ""), r = M(() => !!t.message), b = T(), Z = T(), P = T(), K = T(), J = T(), ve = M(() => t.confirmButtonClass);
157
+ le(() => t.inputValue, async (i) => {
158
158
  await D(), e.boxType === "prompt" && i !== null && _();
159
159
  }, { immediate: !0 }), le(() => f.value, (i) => {
160
160
  var w, V;
161
- i && (e.boxType !== "prompt" && (o.autofocus ? P.value = (V = (w = J.value) == null ? void 0 : w.$el) != null ? V : b.value : P.value = b.value), o.zIndex = v()), e.boxType === "prompt" && (i ? D().then(() => {
161
+ i && (e.boxType !== "prompt" && (t.autofocus ? P.value = (V = (w = J.value) == null ? void 0 : w.$el) != null ? V : b.value : P.value = b.value), t.zIndex = v()), e.boxType === "prompt" && (i ? D().then(() => {
162
162
  var ee;
163
- K.value && K.value.$el && (o.autofocus ? P.value = (ee = Ce()) != null ? ee : b.value : P.value = b.value);
164
- }) : (o.editorErrorMessage = "", o.validateError = !1));
163
+ K.value && K.value.$el && (t.autofocus ? P.value = (ee = Ce()) != null ? ee : b.value : P.value = b.value);
164
+ }) : (t.editorErrorMessage = "", t.validateError = !1));
165
165
  });
166
166
  const ge = M(() => e.draggable), be = M(() => e.overflow);
167
167
  Re(b, Z, ge, be), Ge(async () => {
@@ -171,32 +171,32 @@ const xe = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="
171
171
  });
172
172
  function N() {
173
173
  f.value && (f.value = !1, D(() => {
174
- o.action && n("action", o.action);
174
+ t.action && n("action", t.action);
175
175
  }));
176
176
  }
177
177
  const Q = () => {
178
- e.closeOnClickModal && j(o.distinguishCancelAndClose ? "close" : "cancel");
178
+ e.closeOnClickModal && j(t.distinguishCancelAndClose ? "close" : "cancel");
179
179
  }, ye = Le(Q), he = (i) => {
180
- if (o.inputType !== "textarea")
180
+ if (t.inputType !== "textarea")
181
181
  return i.preventDefault(), j("confirm");
182
182
  }, j = (i) => {
183
183
  var w;
184
- e.boxType === "prompt" && i === "confirm" && !_() || (o.action = i, o.beforeClose ? (w = o.beforeClose) == null || w.call(o, i, o, N) : N());
184
+ e.boxType === "prompt" && i === "confirm" && !_() || (t.action = i, t.beforeClose ? (w = t.beforeClose) == null || w.call(t, i, t, N) : N());
185
185
  }, _ = () => {
186
186
  if (e.boxType === "prompt") {
187
- const i = o.inputPattern;
188
- if (i && !i.test(o.inputValue || ""))
189
- return o.editorErrorMessage = o.inputErrorMessage || u("el.messagebox.error"), o.validateError = !0, !1;
190
- const w = o.inputValidator;
187
+ const i = t.inputPattern;
188
+ if (i && !i.test(t.inputValue || ""))
189
+ return t.editorErrorMessage = t.inputErrorMessage || u("el.messagebox.error"), t.validateError = !0, !1;
190
+ const w = t.inputValidator;
191
191
  if (typeof w == "function") {
192
- const V = w(o.inputValue);
192
+ const V = w(t.inputValue);
193
193
  if (V === !1)
194
- return o.editorErrorMessage = o.inputErrorMessage || u("el.messagebox.error"), o.validateError = !0, !1;
194
+ return t.editorErrorMessage = t.inputErrorMessage || u("el.messagebox.error"), t.validateError = !0, !1;
195
195
  if (typeof V == "string")
196
- return o.editorErrorMessage = V, o.validateError = !0, !1;
196
+ return t.editorErrorMessage = V, t.validateError = !0, !1;
197
197
  }
198
198
  }
199
- return o.editorErrorMessage = "", o.validateError = !1, !0;
199
+ return t.editorErrorMessage = "", t.validateError = !1, !0;
200
200
  }, Ce = () => {
201
201
  const i = K.value.$refs;
202
202
  return i.input || i.textarea;
@@ -206,7 +206,7 @@ const xe = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="
206
206
  e.closeOnPressEscape && x();
207
207
  };
208
208
  return e.lockScroll && $e(f), {
209
- ...Ye(o),
209
+ ...Ye(t),
210
210
  ns: a,
211
211
  overlayEvent: ye,
212
212
  visible: f,
@@ -232,8 +232,8 @@ const xe = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="
232
232
  };
233
233
  }
234
234
  }), sn = ["aria-label", "aria-describedby"], an = ["aria-label"], ln = ["id"];
235
- function rn(e, n, t, s, a, l) {
236
- const u = $("el-icon"), v = $("close"), f = $("el-input"), o = $("el-button"), E = $("el-focus-trap"), I = $("el-overlay");
235
+ function rn(e, n, o, s, a, l) {
236
+ const u = $("el-icon"), v = $("close"), f = $("el-input"), t = $("el-button"), E = $("el-focus-trap"), I = $("el-overlay");
237
237
  return m(), h(Ze, {
238
238
  name: "fade-in-linear",
239
239
  onAfterLeave: n[11] || (n[11] = (d) => e.$emit("vanish")),
@@ -378,7 +378,7 @@ function rn(e, n, t, s, a, l) {
378
378
  y("div", {
379
379
  class: c(e.ns.e("btns"))
380
380
  }, [
381
- e.showCancelButton ? (m(), h(o, {
381
+ e.showCancelButton ? (m(), h(t, {
382
382
  key: 0,
383
383
  loading: e.cancelButtonLoading,
384
384
  class: c([e.cancelButtonClass]),
@@ -392,7 +392,7 @@ function rn(e, n, t, s, a, l) {
392
392
  ]),
393
393
  _: 1
394
394
  }, 8, ["loading", "class", "round", "size"])) : k("v-if", !0),
395
- O(g(o, {
395
+ O(g(t, {
396
396
  ref: "confirmRef",
397
397
  type: "primary",
398
398
  loading: e.confirmButtonLoading,
@@ -425,40 +425,40 @@ function rn(e, n, t, s, a, l) {
425
425
  _: 3
426
426
  });
427
427
  }
428
- var un = /* @__PURE__ */ Oe(tn, [["render", rn], ["__file", "index.vue"]]);
428
+ var un = /* @__PURE__ */ Oe(on, [["render", rn], ["__file", "index.vue"]]);
429
429
  const H = /* @__PURE__ */ new Map(), dn = (e) => {
430
430
  let n = document.body;
431
431
  return e.appendTo && (de(e.appendTo) && (n = document.querySelector(e.appendTo)), ae(e.appendTo) && (n = e.appendTo), ae(n) || (De("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body."), n = document.body)), n;
432
- }, cn = (e, n, t = null) => {
432
+ }, cn = (e, n, o = null) => {
433
433
  const s = g(un, e, se(e.message) || me(e.message) ? {
434
434
  default: se(e.message) ? e.message : () => e.message
435
435
  } : null);
436
- return s.appContext = t, pe(s, n), dn(e).appendChild(n.firstElementChild), s.component;
436
+ return s.appContext = o, pe(s, n), dn(e).appendChild(n.firstElementChild), s.component;
437
437
  }, fn = () => document.createElement("div"), mn = (e, n) => {
438
- const t = fn();
438
+ const o = fn();
439
439
  e.onVanish = () => {
440
- pe(null, t), H.delete(a);
440
+ pe(null, o), H.delete(a);
441
441
  }, e.onAction = (l) => {
442
442
  const u = H.get(a);
443
443
  let v;
444
444
  e.showInput ? v = { value: a.inputValue, action: l } : v = l, e.callback ? e.callback(v, s.proxy) : l === "cancel" || l === "close" ? e.distinguishCancelAndClose && l !== "cancel" ? u.reject("close") : u.reject("cancel") : u.resolve(v);
445
445
  };
446
- const s = cn(e, t, n), a = s.proxy;
446
+ const s = cn(e, o, n), a = s.proxy;
447
447
  for (const l in e)
448
- te(e, l) && !te(a.$props, l) && (a[l] = e[l]);
448
+ oe(e, l) && !oe(a.$props, l) && (a[l] = e[l]);
449
449
  return a.visible = !0, a;
450
450
  };
451
451
  function L(e, n = null) {
452
452
  if (!Pe)
453
453
  return Promise.reject();
454
- let t;
454
+ let o;
455
455
  return de(e) || me(e) ? e = {
456
456
  message: e
457
- } : t = e.callback, new Promise((s, a) => {
457
+ } : o = e.callback, new Promise((s, a) => {
458
458
  const l = mn(e, n ?? L._context);
459
459
  H.set(l, {
460
460
  options: e,
461
- callback: t,
461
+ callback: o,
462
462
  resolve: s,
463
463
  reject: a
464
464
  });
@@ -473,9 +473,9 @@ pn.forEach((e) => {
473
473
  L[e] = gn(e);
474
474
  });
475
475
  function gn(e) {
476
- return (n, t, s, a) => {
476
+ return (n, o, s, a) => {
477
477
  let l = "";
478
- return Ne(t) ? (s = t, l = "") : ze(t) ? l = "" : l = t, L(Object.assign({
478
+ return Ne(o) ? (s = o, l = "") : ze(o) ? l = "" : l = o, L(Object.assign({
479
479
  title: l,
480
480
  message: n,
481
481
  type: "",
@@ -506,7 +506,7 @@ const bn = B, yn = {
506
506
  },
507
507
  emits: ["update:modelValue"],
508
508
  setup(e) {
509
- const n = T(!1), t = T([]), s = R().user, a = Qe(e, "modelValue"), l = fe([
509
+ const n = T(!1), o = T([]), s = R().user, a = Qe(e, "modelValue"), l = fe([
510
510
  {
511
511
  label: "用户名",
512
512
  prop: "loginName",
@@ -559,7 +559,7 @@ const bn = B, yn = {
559
559
  f.showEncrypt = !f.showEncrypt;
560
560
  }
561
561
  Ue().then(({ data: f }) => {
562
- n.value = !1, t.value = f.results;
562
+ n.value = !1, o.value = f.results;
563
563
  });
564
564
  function v(f) {
565
565
  bn.confirm("确定切换用户身份吗?", "提示", {
@@ -567,8 +567,8 @@ const bn = B, yn = {
567
567
  cancelButtonText: "取消",
568
568
  type: "warning"
569
569
  }).then(() => {
570
- console.log(R()), Fe(f.userId).then(async (o) => {
571
- if (o.status === 200) {
570
+ console.log(R()), Fe(f.userId).then(async (t) => {
571
+ if (t.status === 200) {
572
572
  R().user.roleCodes = [], R().user.permCodes = [];
573
573
  const { roleCodes: E } = await R().getRoleInfo(), I = await R().getUserInfo();
574
574
  await He().generateRoutes(E, I), Ke({
@@ -579,12 +579,12 @@ const bn = B, yn = {
579
579
  });
580
580
  });
581
581
  }
582
- return (f, o) => {
582
+ return (f, t) => {
583
583
  const E = je, I = qe, d = Xe, W = _e("hasRole");
584
584
  return m(), h(d, {
585
585
  title: "切换身份",
586
586
  modelValue: a.value,
587
- "onUpdate:modelValue": o[0] || (o[0] = (r) => a.value = r),
587
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => a.value = r),
588
588
  width: "800px"
589
589
  }, {
590
590
  default: p(() => [
@@ -593,7 +593,7 @@ const bn = B, yn = {
593
593
  ref: "multipleTableRef",
594
594
  "row-keys": "userId",
595
595
  "list-loading": z(n),
596
- "table-data": z(t),
596
+ "table-data": z(o),
597
597
  "table-label": z(l)
598
598
  }, {
599
599
  mobilePhone: p((r) => [