@yqg/permission 1.3.0-alpha.0 → 1.3.0-alpha.2
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.
- package/dist/{apply-modal-CpmDDWWV.js → apply-modal-DGX6gpHK.js} +7 -7
- package/dist/{category-selector-BQ0-kg3o.js → category-selector-C4wE2v-D.js} +97 -97
- package/dist/{index-D_0ZQip-.js → index-C28x1Vhk.js} +3 -3
- package/dist/{index-wLkVeDMW.js → index-EF-patVm.js} +10 -12
- package/dist/index.js +2 -2
- package/dist/{permission-item-Df_aagL1.js → permission-item-DcI9HD6q.js} +236 -236
- package/dist/{yqg-permission-BjVCs5lN.js → yqg-permission-DITcGx8T.js} +5 -7
- package/dist/yqg-permission.umd.js +3 -3
- package/package.json +1 -1
- package/src/App.vue +7 -7
- package/src/components/apply-modal.vue +2 -2
- package/src/components/category-selector.vue +1 -1
- package/src/components/permission-item.vue +1 -1
- package/src/components/yqg-permission.vue +2 -3
- package/src/hooks/useAttributesCache.ts +4 -4
- package/src/hooks/useCategory.ts +0 -1
- package/src/hooks/useFormat.ts +24 -18
- package/src/main.ts +2 -2
- package/src/yqg-permission/index.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as Ce, i as Fn, C as Eu, T as hs, p as Se, c as b, a as ue, r as L, 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-
|
|
1
|
+
import { F as Ce, i as Fn, C as Eu, T as hs, p as Se, c as b, a as ue, r as L, 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-EF-patVm.js";
|
|
2
2
|
function Qn(e) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return Qn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
@@ -14548,9 +14548,7 @@ const a0 = {
|
|
|
14548
14548
|
};
|
|
14549
14549
|
function s0(e) {
|
|
14550
14550
|
function t(i, a, l) {
|
|
14551
|
-
return i.sort((s, c) => (a.get(s.businessApplyType) ?? 0) - (a.get(c.businessApplyType) ?? 0) || (l.get(s.securityLevel) ?? 0) - (l.get(c.securityLevel) ?? 0))
|
|
14552
|
-
s.key = s.feature, s.desc = "ddddd", s.children || (s.categoryVOS = (s.categoryVOS || []).filter((c) => c.configWay !== a0.AUTO), [ft.NO].includes(s.businessApplyType) && (s.disabled = !0), [ft.OWNER, ft.PENDING].includes(s.businessApplyType) && !s.categoryVOS.length && (s.disabled = !0)), s.children && s.children.length > 0 && t(s.children, a, l);
|
|
14553
|
-
}), i;
|
|
14551
|
+
return i.map((s) => (s.key = s.feature, !s.children || s.children.length === 0 ? (s.categoryVOS = (s.categoryVOS || []).filter((c) => c.configWay !== a0.AUTO), [ft.NO].includes(s.businessApplyType) && (s.disabled = !0), [ft.OWNER, ft.PENDING].includes(s.businessApplyType) && !s.categoryVOS.length && (s.disabled = !0)) : (s.children = t(s.children, a, l), s.children.every((c) => c.disabled) && (s.disabled = !0)), s)).sort((s, c) => (a.get(s.businessApplyType) ?? 0) - (a.get(c.businessApplyType) ?? 0) || (l.get(s.securityLevel) ?? 0) - (l.get(c.securityLevel) ?? 0));
|
|
14554
14552
|
}
|
|
14555
14553
|
const n = [null, ft.TEMP_OWNER, ft.PENDING, ft.OWNER, ft.NO], o = [null, "L1", "L2", "L3"], r = new Map(n.map((i, a) => [i, a])), A = new Map(o.map((i, a) => [i, a]));
|
|
14556
14554
|
return t(e, r, A);
|
|
@@ -14599,7 +14597,7 @@ const l0 = { class: "crane-wraper" }, c0 = ["src"], u0 = ["src"], g0 = { class:
|
|
|
14599
14597
|
CUSTOM: "custom"
|
|
14600
14598
|
};
|
|
14601
14599
|
Ge.config({ prefixCls: "yqg-permission-message" });
|
|
14602
|
-
const r = Pu(() => import("./apply-modal-
|
|
14600
|
+
const r = Pu(() => import("./apply-modal-DGX6gpHK.js").then((m) => m.k)), A = t, i = e, a = L(!1), l = L(), s = L(!1);
|
|
14603
14601
|
let c = L([]), u = L({
|
|
14604
14602
|
imageUrl: Bo,
|
|
14605
14603
|
status: ""
|
|
@@ -14625,7 +14623,7 @@ const l0 = { class: "crane-wraper" }, c0 = ["src"], u0 = ["src"], g0 = { class:
|
|
|
14625
14623
|
const D = await e0.getPermissions(P);
|
|
14626
14624
|
c.value = s0(D.body || []), u.value = i0(c.value, l), s.value = !1;
|
|
14627
14625
|
}, B = () => {
|
|
14628
|
-
|
|
14626
|
+
a.value = !a.value, p();
|
|
14629
14627
|
}, { currentTop: E, dragElement: h } = r0(i, B);
|
|
14630
14628
|
return je(p), q(() => i.locale, (m, w) => {
|
|
14631
14629
|
m !== w && localStorage.setItem("permission_locale", i.locale);
|
|
@@ -14761,7 +14759,7 @@ const l0 = { class: "crane-wraper" }, c0 = ["src"], u0 = ["src"], g0 = { class:
|
|
|
14761
14759
|
for (const [o, r] of t)
|
|
14762
14760
|
n[o] = r;
|
|
14763
14761
|
return n;
|
|
14764
|
-
}, w0 = /* @__PURE__ */ Q0(m0, [["__scopeId", "data-v-
|
|
14762
|
+
}, w0 = /* @__PURE__ */ Q0(m0, [["__scopeId", "data-v-1094345c"]]), F0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14765
14763
|
__proto__: null,
|
|
14766
14764
|
default: w0
|
|
14767
14765
|
}, Symbol.toStringTag, { value: "Module" }));
|