@yqg/permission 1.3.1-alpha.1 → 1.3.1-alpha.3

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.
@@ -1,4 +1,4 @@
1
- import { F as Ce, i as Fn, C as Eu, T as hs, p as Se, c as P, a as ue, r as F, d as N, u as J, s as z, w as q, g as Ro, b as je, o as Le, t as hu, e as v, h as jt, f as jn, j as vu, k as At, l as Oe, m as vs, n as Lt, q as be, v as ko, x as CA, y as Iu, z as No, A as ni, B as mu, D as Is, E as ms, G as Ne, H as Qs, I as Qu, J as wu, K as st, L as oi, M as lt, N as ge, O as yu, P as ln, Q as bu, R as $e, S as Gn, U as ar, V as Pu } from "./index-Dg2700ps.js";
1
+ import { F as Ce, i as Fn, C as Eu, T as hs, p as Se, c as P, a as ue, r as F, d as N, u as J, s as z, w as q, g as Ro, b as je, o as Le, t as hu, e as v, h as jt, f as jn, j as vu, k as At, l as Oe, m as vs, n as Lt, q as be, v as ko, x as CA, y as Iu, z as No, A as ni, B as mu, D as Is, E as ms, G as Ne, H as Qs, I as Qu, J as wu, K as st, L as oi, M as lt, N as ge, O as yu, P as ln, Q as bu, R as $e, S as Gn, U as ar, V as Pu } from "./index-BRO-6dN0.js";
2
2
  function Qn(e) {
3
3
  "@babel/helpers - typeof";
4
4
  return Qn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -14369,7 +14369,7 @@ const Cn = "/crane", e0 = new AbortController(), t0 = {
14369
14369
  applyPermission: "申请权限",
14370
14370
  applyReason: "申请理由",
14371
14371
  approvalProcess: "审批流程",
14372
- isAllOwnTips: "您当前已拥有该页面所有权限,无需申请",
14372
+ isAllOwnTips: "当前页面权限已拥有或审批中,无需申请",
14373
14373
  applyReasonPlaceholder: "请尽可能详细说明申请原因和使用场景,不要只填写“工作需要”之类的理由,以免影响你获取权限的审批时间。",
14374
14374
  applyReasonTips: "示例:由于XX项目需要,需要查看/操作XXXX场景/问题,涉及到XXX权限的使用,因此提交申请!",
14375
14375
  cancel: "取消",
@@ -14398,7 +14398,7 @@ const Cn = "/crane", e0 = new AbortController(), t0 = {
14398
14398
  maxLengthTips: "最多{length}个字符",
14399
14399
  today: "今天到期",
14400
14400
  clickToApply: "点击申请权限",
14401
- noPermissionTips: "该菜单下暂无权限点",
14401
+ noPermissionTips: "该菜单下暂无权限点,无需申请",
14402
14402
  lastDays: "{count}天",
14403
14403
  categoryTips: "当前您所拥有的数据范围如下:",
14404
14404
  empty: "空",
@@ -14554,13 +14554,13 @@ function l0(e) {
14554
14554
  const t = [];
14555
14555
  let n = 0;
14556
14556
  function o(s, l, u) {
14557
- return s.map((c) => (c.key = c.feature, n++, !c.children || c.children.length === 0 ? (c.categoryVOS = (c.categoryVOS || []).filter((g) => g.configWay !== s0.AUTO), [ft.NO, ft.PENDING].includes(c.businessApplyType) && (c.disabled = !0), [ft.OWNER].includes(c.businessApplyType) && !c.categoryVOS.length && (c.disabled = !0, t.push(c.feature))) : (c.children = o(c.children, l, u), c.children.every((g) => t.includes(g.feature)) && t.push(c.feature), c.children.every((g) => g.disabled) && (c.disabled = !0)), c)).sort((c, g) => (l.get(c.businessApplyType) ?? 0) - (l.get(g.businessApplyType) ?? 0) || (u.get(c.securityLevel) ?? 0) - (u.get(g.securityLevel) ?? 0));
14557
+ return s.map((c) => (c.key = c.feature, n++, !c.children || c.children.length === 0 ? (c.categoryVOS = (c.categoryVOS || []).filter((g) => g.configWay !== s0.AUTO), [ft.NO].includes(c.businessApplyType) && (c.disabled = !0), ([ft.OWNER].includes(c.businessApplyType) && !c.categoryVOS.length || [ft.PENDING].includes(c.businessApplyType)) && (c.disabled = !0, t.push(c.feature))) : (c.children = o(c.children, l, u), c.children.every((g) => t.includes(g.feature)) && t.push(c.feature), c.children.every((g) => g.disabled) && (c.disabled = !0)), c)).sort((c, g) => (l.get(c.businessApplyType) ?? 0) - (l.get(g.businessApplyType) ?? 0) || (u.get(c.securityLevel) ?? 0) - (u.get(g.securityLevel) ?? 0));
14558
14558
  }
14559
14559
  const r = [null, ft.TEMP_OWNER, ft.PENDING, ft.OWNER, ft.NO], A = [null, "L1", "L2", "L3"], i = new Map(r.map((s, l) => [s, l])), a = new Map(A.map((s, l) => [s, l]));
14560
14560
  return {
14561
14561
  data: o(e, i, a),
14562
- ownList: t,
14563
- isAllOwn: n === t.length
14562
+ checkList: t,
14563
+ isAllChecked: n === t.length
14564
14564
  };
14565
14565
  }
14566
14566
  const c0 = { class: "crane-wraper" }, u0 = ["src"], g0 = ["src"], f0 = { class: "crane-margin10" }, d0 = ["src"], C0 = { class: "crane-margin10" }, p0 = ["innerHTML"], B0 = {
@@ -14607,7 +14607,7 @@ const c0 = { class: "crane-wraper" }, u0 = ["src"], g0 = ["src"], f0 = { class:
14607
14607
  CUSTOM: "custom"
14608
14608
  };
14609
14609
  Ge.config({ prefixCls: "yqg-permission-message" });
14610
- const r = Pu(() => import("./apply-modal-D6PPjuwj.js").then((Q) => Q.k)), A = t, i = e, a = F(!1), s = F(), l = F(!1), u = F([]), c = F(!1);
14610
+ const r = Pu(() => import("./apply-modal-DN-yRe7k.js").then((Q) => Q.k)), A = t, i = e, a = F(!1), s = F(), l = F(!1), u = F([]), c = F(!1);
14611
14611
  let g = F([]), f = F({
14612
14612
  imageUrl: Bo,
14613
14613
  status: ""
@@ -14628,7 +14628,7 @@ const c0 = { class: "crane-wraper" }, u0 = ["src"], g0 = ["src"], f0 = { class:
14628
14628
  };
14629
14629
  l.value = !0;
14630
14630
  const I = await t0.getPermissions(D), S = l0(I.body || []);
14631
- g.value = S.data, u.value = S.ownList, c.value = S.isAllOwn, f.value = a0(g.value, s), l.value = !1;
14631
+ g.value = S.data, u.value = S.checkList, c.value = S.isAllChecked, f.value = a0(g.value, s), l.value = !1;
14632
14632
  }, E = () => {
14633
14633
  a.value = !a.value, B();
14634
14634
  }, { currentTop: h, dragElement: w } = A0(i, E);
@@ -14756,10 +14756,10 @@ const c0 = { class: "crane-wraper" }, u0 = ["src"], g0 = ["src"], f0 = { class:
14756
14756
  spining: l.value,
14757
14757
  workNumber: e.workNumber,
14758
14758
  defaultCheckedIds: u.value,
14759
- isAllOwn: c.value,
14759
+ isAllChecked: c.value,
14760
14760
  onOnSuccess: y[1] || (y[1] = () => A("onSuccess")),
14761
14761
  onOnSubmit: B
14762
- }, null, 8, ["modelValue", "permissionList", "spining", "workNumber", "defaultCheckedIds", "isAllOwn"])
14762
+ }, null, 8, ["modelValue", "permissionList", "spining", "workNumber", "defaultCheckedIds", "isAllChecked"])
14763
14763
  ]),
14764
14764
  _: 3
14765
14765
  }, 8, ["theme"]));
@@ -14769,7 +14769,7 @@ const c0 = { class: "crane-wraper" }, u0 = ["src"], g0 = ["src"], f0 = { class:
14769
14769
  for (const [o, r] of t)
14770
14770
  n[o] = r;
14771
14771
  return n;
14772
- }, y0 = /* @__PURE__ */ w0(Q0, [["__scopeId", "data-v-e759cf0e"]]), j0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14772
+ }, y0 = /* @__PURE__ */ w0(Q0, [["__scopeId", "data-v-3753c3d6"]]), j0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14773
14773
  __proto__: null,
14774
14774
  default: y0
14775
14775
  }, Symbol.toStringTag, { value: "Module" }));