@yqg/permission 1.3.11 → 1.3.12

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,5 +1,5 @@
1
- import { d as ae, G as it, l as Xe, v as Tn, x as Dr, w as se, g as Qt, s as W, e as w, r as te, c as M, m as Xt, o as je, E as Nt, q as Ne, b as Ae, p as Ue, a as $t, F as et, f as An, j as Dt, z as _t, H as Ml, u as le, W as Nl, i as yo, n as bo, X as Dl, K as $n, L as _e, y as La, N as Qe, Y as _l, S as qe, P as jt, R as fr, U as Cn, M as De, Z as xo, _ as Rl, $ as Kl, V as So } from "./index-CJ_Ktj6t.js";
2
- import { f as Ba, i as Ll, _ as y, P as J, a as H, c as ne, b as Bl, w as ze, s as ft, I as nt, d as zl, e as Zt, g as za, h as Et, S as Rt, j as Ct, k as Hl, l as jl, m as Ha, n as Vl, o as _r, M as ja, p as Va, q as ka, r as kl, t as Fn, u as Wa, v as qa, x as Wl, y as ql, U as $o, z as Rr, A as Ga, B as wn, C as Gl, D as Ua, E as Ul, F as Xa, G as Xl, H as Yl, J as Ql, K as Co, L as Zl, N as It, O as Jl, Q as tt, R as Je, T as Ya, V as Kr, W as lt, X as es, Y as Ke, Z as ts, $ as gt, a0 as Ve, a1 as Lr, a2 as Mn, a3 as ns, a4 as Qa, a5 as Za, a6 as rs, a7 as Br, a8 as Ja, a9 as Nn, aa as ei, ab as zr, ac as Dn, ad as ti, ae as st, af as os, ag as as, ah as is, ai as Ze, aj as Te, ak as pr, al as dt, am as Ge, an as _n, ao as vr, ap as St, aq as wo, ar as ls, as as ni, at as Oo, au as Kt, av as ri, aw as ss, ax as cs, ay as us, az as ds, aA as fs, aB as ps, aC as vs, aD as On, aE as gs, aF as oi, aG as hs, aH as ms, aI as ys, aJ as bs, aK as xs, aL as ai, aM as Ss, aN as $s, aO as Pt, aP as Se, aQ as Cs, aR as ws, aS as ii, aT as Ft, aU as Os, aV as Xn, aW as Yn } from "./yqg-permission-Cb-_sywm.js";
1
+ import { d as ae, G as it, l as Xe, v as Tn, x as Dr, w as se, g as Qt, s as W, e as w, r as te, c as M, m as Xt, o as je, E as Nt, q as Ne, b as Ae, p as Ue, a as $t, F as et, f as An, j as Dt, z as _t, H as Ml, u as le, W as Nl, i as yo, n as bo, X as Dl, K as $n, L as _e, y as La, N as Qe, Y as _l, S as qe, P as jt, R as fr, U as Cn, M as De, Z as xo, _ as Rl, $ as Kl, V as So } from "./index-Cnz2SLUX.js";
2
+ import { f as Ba, i as Ll, _ as y, P as J, a as H, c as ne, b as Bl, w as ze, s as ft, I as nt, d as zl, e as Zt, g as za, h as Et, S as Rt, j as Ct, k as Hl, l as jl, m as Ha, n as Vl, o as _r, M as ja, p as Va, q as ka, r as kl, t as Fn, u as Wa, v as qa, x as Wl, y as ql, U as $o, z as Rr, A as Ga, B as wn, C as Gl, D as Ua, E as Ul, F as Xa, G as Xl, H as Yl, J as Ql, K as Co, L as Zl, N as It, O as Jl, Q as tt, R as Je, T as Ya, V as Kr, W as lt, X as es, Y as Ke, Z as ts, $ as gt, a0 as Ve, a1 as Lr, a2 as Mn, a3 as ns, a4 as Qa, a5 as Za, a6 as rs, a7 as Br, a8 as Ja, a9 as Nn, aa as ei, ab as zr, ac as Dn, ad as ti, ae as st, af as os, ag as as, ah as is, ai as Ze, aj as Te, ak as pr, al as dt, am as Ge, an as _n, ao as vr, ap as St, aq as wo, ar as ls, as as ni, at as Oo, au as Kt, av as ri, aw as ss, ax as cs, ay as us, az as ds, aA as fs, aB as ps, aC as vs, aD as On, aE as gs, aF as oi, aG as hs, aH as ms, aI as ys, aJ as bs, aK as xs, aL as ai, aM as Ss, aN as $s, aO as Pt, aP as Se, aQ as Cs, aR as ws, aS as ii, aT as Ft, aU as Os, aV as Xn, aW as Yn } from "./yqg-permission-BPhYJ3ps.js";
3
3
  const li = ae({
4
4
  compatConfig: {
5
5
  MODE: 3
@@ -12259,9 +12259,10 @@ const cr = ae({
12259
12259
  function dr(e, t) {
12260
12260
  const n = [];
12261
12261
  Ft(e, (o) => {
12262
- !o.children && t.includes(o.feature) && o.categoryVOS.forEach((a) => {
12263
- a.attributeValueIds_view = (a == null ? void 0 : a.attributeValueIds) || [], n.push(a);
12264
- });
12262
+ var a;
12263
+ !o.children && t.includes(o.feature) && ((a = o.categoryVOS) == null || a.forEach((i) => {
12264
+ i.attributeValueIds_view = (i == null ? void 0 : i.attributeValueIds) || [], n.push(i);
12265
+ }));
12265
12266
  });
12266
12267
  const r = /* @__PURE__ */ new Map();
12267
12268
  return n.forEach((o) => {
@@ -12323,9 +12324,9 @@ const qg = { key: 0 }, Gg = { key: 0 }, Ug = {
12323
12324
  emits: /* @__PURE__ */ xo(["onSubmit", "onSuccess"], ["update:modelValue"]),
12324
12325
  setup(e, { emit: t }) {
12325
12326
  const n = So(
12326
- () => import("./category-selector-CJ2VLSr7.js")
12327
+ () => import("./category-selector-3bIJ-OEr.js")
12327
12328
  ), r = So(
12328
- () => import("./permission-item-Bm9OiOSx.js")
12329
+ () => import("./permission-item-C6tr81T4.js")
12329
12330
  ), o = e, a = t, i = Rl(e, "modelValue"), l = te(!1), s = M(() => o.permissionList), c = La(o, "workNumber"), d = te(), u = te(), f = te();
12330
12331
  let v = te([]);
12331
12332
  const S = te(!1), g = te([]), p = te([]), h = te([]), C = it({
@@ -1,7 +1,7 @@
1
- import { a as ht, p as pt, d as Ve, r as fe, c as y, w as be, q as mt, s as R, E as ae, e as U, b as Ge, y as oe, a0 as gt, G as yt, K as Ze, R as et, L as ie, M as Re, P as je, N as we, S as ye, u as W, F as bt, Y as Ct, j as St, z as wt } from "./index-CJ_Ktj6t.js";
2
- import { a as X, _ as b, W as xt, X as Vt, ae as ut, aX as tt, Y as Ie, P as ve, N as It, Q as it, V as kt, aN as Be, a0 as Nt, ar as Tt, as as Lt, aY as Et, c as at, b as _t, ai as $e, ak as We, am as Pt, $ as Dt, aj as At, aV as Kt, aP as xe, aS as Ft } from "./yqg-permission-Cb-_sywm.js";
3
- import { u as Ot, a as Ht, b as Mt, c as Rt, d as jt, t as lt, B as Bt, e as $t, f as Wt, g as Ut } from "./index-CZ6UV6_X.js";
4
- import { K as de, T as zt, c as Xt, a as Xe, u as Yt, g as qt, b as Gt, d as Qt, F as Jt, e as Zt, f as ea, r as ta, h as aa, i as la } from "./apply-modal-B4niAWln.js";
1
+ import { a as ht, p as pt, d as Ve, r as fe, c as y, w as be, q as mt, s as R, E as ae, e as U, b as Ge, y as oe, a0 as gt, G as yt, K as Ze, R as et, L as ie, M as Re, P as je, N as we, S as ye, u as W, F as bt, Y as Ct, j as St, z as wt } from "./index-Cnz2SLUX.js";
2
+ import { a as X, _ as b, W as xt, X as Vt, ae as ut, aX as tt, Y as Ie, P as ve, N as It, Q as it, V as kt, aN as Be, a0 as Nt, ar as Tt, as as Lt, aY as Et, c as at, b as _t, ai as $e, ak as We, am as Pt, $ as Dt, aj as At, aV as Kt, aP as xe, aS as Ft } from "./yqg-permission-BPhYJ3ps.js";
3
+ import { u as Ot, a as Ht, b as Mt, c as Rt, d as jt, t as lt, B as Bt, e as $t, f as Wt, g as Ut } from "./index-qdB6FW1K.js";
4
+ import { K as de, T as zt, c as Xt, a as Xe, u as Yt, g as qt, b as Gt, d as Qt, F as Jt, e as Zt, f as ea, r as ta, h as aa, i as la } from "./apply-modal-BFzYTq8s.js";
5
5
  function na(e) {
6
6
  return Array.isArray(e) ? e : e !== void 0 ? [e] : [];
7
7
  }
@@ -24,10 +24,10 @@ function Ye(e) {
24
24
  function ra(e, s) {
25
25
  const l = [];
26
26
  function t(a) {
27
- a.forEach((n) => {
28
- l.push(n[s.value]);
29
- const o = n[s.children];
30
- o && t(o);
27
+ a.forEach((o) => {
28
+ l.push(o[s.value]);
29
+ const n = o[s.children];
30
+ n && t(n);
31
31
  });
32
32
  }
33
33
  return t(e), l;
@@ -62,12 +62,12 @@ const ua = {
62
62
  slots: l,
63
63
  expose: t
64
64
  } = s;
65
- const a = Ot(), n = Ht(), o = ca(), r = fe(), d = Mt(() => o.treeData, [() => a.open, () => o.treeData], (v) => v[0]), c = y(() => {
65
+ const a = Ot(), o = Ht(), n = ca(), r = fe(), d = Mt(() => n.treeData, [() => a.open, () => n.treeData], (v) => v[0]), c = y(() => {
66
66
  const {
67
67
  checkable: v,
68
68
  halfCheckedKeys: V,
69
69
  checkedKeys: E
70
- } = n;
70
+ } = o;
71
71
  return v ? {
72
72
  checked: E,
73
73
  halfChecked: V
@@ -76,23 +76,23 @@ const ua = {
76
76
  be(() => a.open, () => {
77
77
  mt(() => {
78
78
  var v;
79
- a.open && !a.multiple && n.checkedKeys.length && ((v = r.value) === null || v === void 0 || v.scrollTo({
80
- key: n.checkedKeys[0]
79
+ a.open && !a.multiple && o.checkedKeys.length && ((v = r.value) === null || v === void 0 || v.scrollTo({
80
+ key: o.checkedKeys[0]
81
81
  }));
82
82
  });
83
83
  }, {
84
84
  immediate: !0,
85
85
  flush: "post"
86
86
  });
87
- const u = y(() => String(a.searchValue).toLowerCase()), f = (v) => u.value ? String(v[n.treeNodeFilterProp]).toLowerCase().includes(u.value) : !1, p = R(n.treeDefaultExpandedKeys), w = R(null);
87
+ const u = y(() => String(a.searchValue).toLowerCase()), f = (v) => u.value ? String(v[o.treeNodeFilterProp]).toLowerCase().includes(u.value) : !1, p = R(o.treeDefaultExpandedKeys), w = R(null);
88
88
  be(() => a.searchValue, () => {
89
- a.searchValue && (w.value = ra(ae(o.treeData), ae(o.fieldNames)));
89
+ a.searchValue && (w.value = ra(ae(n.treeData), ae(n.fieldNames)));
90
90
  }, {
91
91
  immediate: !0
92
92
  });
93
- const x = y(() => n.treeExpandedKeys ? n.treeExpandedKeys.slice() : a.searchValue ? w.value : p.value), S = (v) => {
93
+ const x = y(() => o.treeExpandedKeys ? o.treeExpandedKeys.slice() : a.searchValue ? w.value : p.value), S = (v) => {
94
94
  var V;
95
- p.value = v, w.value = v, (V = n.onTreeExpand) === null || V === void 0 || V.call(n, v);
95
+ p.value = v, w.value = v, (V = o.onTreeExpand) === null || V === void 0 || V.call(o, v);
96
96
  }, g = (v) => {
97
97
  v.preventDefault();
98
98
  }, F = (v, V) => {
@@ -103,11 +103,11 @@ const ua = {
103
103
  const {
104
104
  checkable: z,
105
105
  checkedKeys: Y
106
- } = n;
107
- z && Ye(E) || ((D = o.onSelect) === null || D === void 0 || D.call(o, E.key, {
106
+ } = o;
107
+ z && Ye(E) || ((D = n.onSelect) === null || D === void 0 || D.call(n, E.key, {
108
108
  selected: !Y.includes(E.key)
109
109
  }), a.multiple || (T = a.toggleOpen) === null || T === void 0 || T.call(a, !1));
110
- }, A = fe(null), K = y(() => n.keyEntities[A.value]), O = (v) => {
110
+ }, A = fe(null), K = y(() => o.keyEntities[A.value]), O = (v) => {
111
111
  A.value = v;
112
112
  };
113
113
  return t({
@@ -138,7 +138,7 @@ const ua = {
138
138
  node: {
139
139
  key: A.value
140
140
  },
141
- selected: !n.checkedKeys.includes(T)
141
+ selected: !o.checkedKeys.includes(T)
142
142
  });
143
143
  }
144
144
  break;
@@ -163,7 +163,7 @@ const ua = {
163
163
  virtual: le,
164
164
  dropdownMatchSelectWidth: q,
165
165
  treeExpandAction: re
166
- } = o, {
166
+ } = n, {
167
167
  checkable: se,
168
168
  treeDefaultExpandAll: ce,
169
169
  treeIcon: ne,
@@ -175,7 +175,7 @@ const ua = {
175
175
  treeMotion: C,
176
176
  onTreeLoad: _,
177
177
  checkedKeys: H
178
- } = n;
178
+ } = o;
179
179
  if (d.value.length === 0)
180
180
  return U("div", {
181
181
  role: "listbox",
@@ -183,7 +183,7 @@ const ua = {
183
183
  onMousedown: g
184
184
  }, [z]);
185
185
  const Q = {
186
- fieldNames: o.fieldNames
186
+ fieldNames: n.fieldNames
187
187
  };
188
188
  return ue && (Q.loadedKeys = ue), x.value && (Q.expandedKeys = x.value), U("div", {
189
189
  onMousedown: g
@@ -220,28 +220,28 @@ const ua = {
220
220
  filterTreeNode: f,
221
221
  expandAction: re
222
222
  }), b(b({}, l), {
223
- checkable: n.customSlots.treeCheckable
223
+ checkable: o.customSlots.treeCheckable
224
224
  }))]);
225
225
  };
226
226
  }
227
227
  }), da = "SHOW_ALL", vt = "SHOW_PARENT", Qe = "SHOW_CHILD";
228
228
  function ot(e, s, l, t) {
229
229
  const a = new Set(e);
230
- return s === Qe ? e.filter((n) => {
231
- const o = l[n];
232
- return !(o && o.children && o.children.some((r) => {
230
+ return s === Qe ? e.filter((o) => {
231
+ const n = l[o];
232
+ return !(n && n.children && n.children.some((r) => {
233
233
  let {
234
234
  node: d
235
235
  } = r;
236
236
  return a.has(d[t.value]);
237
- }) && o.children.every((r) => {
237
+ }) && n.children.every((r) => {
238
238
  let {
239
239
  node: d
240
240
  } = r;
241
241
  return Ye(d) || a.has(d[t.value]);
242
242
  }));
243
- }) : s === vt ? e.filter((n) => {
244
- const o = l[n], r = o ? o.parent : null;
243
+ }) : s === vt ? e.filter((o) => {
244
+ const n = l[o], r = n ? n.parent : null;
245
245
  return !(r && !Ye(r.node) && a.has(r.key));
246
246
  }) : e;
247
247
  }
@@ -263,7 +263,7 @@ function ha(e) {
263
263
  function s() {
264
264
  let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
265
265
  return xt(l).map((t) => {
266
- var a, n, o;
266
+ var a, o, n;
267
267
  if (!fa(t))
268
268
  return null;
269
269
  const r = t.children || {}, d = t.key, c = {};
@@ -283,8 +283,8 @@ function ha(e) {
283
283
  disableCheckbox: x || x === "" || void 0
284
284
  }, g = b(b({}, c), S), {
285
285
  title: F = (a = r.title) === null || a === void 0 ? void 0 : a.call(r, g),
286
- switcherIcon: A = (n = r.switcherIcon) === null || n === void 0 ? void 0 : n.call(r, g)
287
- } = c, K = va(c, ["title", "switcherIcon"]), O = (o = r.default) === null || o === void 0 ? void 0 : o.call(r), v = b(b(b({}, K), {
286
+ switcherIcon: A = (o = r.switcherIcon) === null || o === void 0 ? void 0 : o.call(r, g)
287
+ } = c, K = va(c, ["title", "switcherIcon"]), O = (n = r.default) === null || n === void 0 ? void 0 : n.call(r), v = b(b(b({}, K), {
288
288
  title: F,
289
289
  switcherIcon: A,
290
290
  key: d,
@@ -305,16 +305,16 @@ function qe(e) {
305
305
  }
306
306
  }), s;
307
307
  }
308
- function pa(e, s, l, t, a, n) {
309
- let o = null, r = null;
308
+ function pa(e, s, l, t, a, o) {
309
+ let n = null, r = null;
310
310
  function d() {
311
311
  function c(u) {
312
312
  let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "0", p = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
313
313
  return u.map((w, x) => {
314
- const S = `${f}-${x}`, g = w[n.value], F = l.includes(g), A = c(w[n.children] || [], S, F), K = U(he, w, {
314
+ const S = `${f}-${x}`, g = w[o.value], F = l.includes(g), A = c(w[o.children] || [], S, F), K = U(he, w, {
315
315
  default: () => [A.map((O) => O.node)]
316
316
  });
317
- if (s === g && (o = K), F) {
317
+ if (s === g && (n = K), F) {
318
318
  const O = {
319
319
  pos: S,
320
320
  node: K,
@@ -345,7 +345,7 @@ function pa(e, s, l, t, a, n) {
345
345
  }
346
346
  Object.defineProperty(e, "triggerNode", {
347
347
  get() {
348
- return d(), o;
348
+ return d(), n;
349
349
  }
350
350
  }), Object.defineProperty(e, "allCheckedNodes", {
351
351
  get() {
@@ -364,14 +364,14 @@ function ma(e, s) {
364
364
  pId: t,
365
365
  rootPId: a
366
366
  } = s;
367
- const n = {}, o = [];
367
+ const o = {}, n = [];
368
368
  return e.map((d) => {
369
369
  const c = b({}, d), u = c[l];
370
- return n[u] = c, c.key = c.key || u, c;
370
+ return o[u] = c, c.key = c.key || u, c;
371
371
  }).forEach((d) => {
372
- const c = d[t], u = n[c];
373
- u && (u.children = u.children || [], u.children.push(d)), (c === a || !u && a === null) && o.push(d);
374
- }), o;
372
+ const c = d[t], u = o[c];
373
+ u && (u.children = u.children || [], u.children.push(d)), (c === a || !u && a === null) && n.push(d);
374
+ }), n;
375
375
  }
376
376
  function ga(e, s, l) {
377
377
  const t = R();
@@ -398,37 +398,37 @@ const ya = (e) => {
398
398
  }), [y(() => {
399
399
  const {
400
400
  valueLabels: a
401
- } = s.value, n = /* @__PURE__ */ new Map(), o = l.value.map((r) => {
401
+ } = s.value, o = /* @__PURE__ */ new Map(), n = l.value.map((r) => {
402
402
  var d;
403
403
  const {
404
404
  value: c
405
405
  } = r, u = (d = r.label) !== null && d !== void 0 ? d : a.get(c);
406
- return n.set(c, u), b(b({}, r), {
406
+ return o.set(c, u), b(b({}, r), {
407
407
  label: u
408
408
  });
409
409
  });
410
- return s.value.valueLabels = n, o;
410
+ return s.value.valueLabels = o, n;
411
411
  })];
412
412
  }, ba = (e, s) => {
413
413
  const l = R(/* @__PURE__ */ new Map()), t = R({});
414
414
  return Ge(() => {
415
- const a = s.value, n = Xt(e.value, {
415
+ const a = s.value, o = Xt(e.value, {
416
416
  fieldNames: a,
417
- initWrapper: (o) => b(b({}, o), {
417
+ initWrapper: (n) => b(b({}, n), {
418
418
  valueEntities: /* @__PURE__ */ new Map()
419
419
  }),
420
- processEntity: (o, r) => {
421
- const d = o.node[a.value];
422
- r.valueEntities.set(d, o);
420
+ processEntity: (n, r) => {
421
+ const d = n.node[a.value];
422
+ r.valueEntities.set(d, n);
423
423
  }
424
424
  });
425
- l.value = n.valueEntities, t.value = n.keyEntities;
425
+ l.value = o.valueEntities, t.value = o.keyEntities;
426
426
  }), {
427
427
  valueEntities: l,
428
428
  keyEntities: t
429
429
  };
430
- }, Ca = (e, s, l, t, a, n) => {
431
- const o = R([]), r = R([]);
430
+ }, Ca = (e, s, l, t, a, o) => {
431
+ const n = R([]), r = R([]);
432
432
  return Ge(() => {
433
433
  let d = e.value.map((f) => {
434
434
  let {
@@ -445,18 +445,18 @@ const ya = (e) => {
445
445
  l.value && ({
446
446
  checkedKeys: d,
447
447
  halfCheckedKeys: c
448
- } = Xe(d, !0, t.value, a.value, n.value)), o.value = Array.from(/* @__PURE__ */ new Set([...u, ...d])), r.value = c;
449
- }), [o, r];
448
+ } = Xe(d, !0, t.value, a.value, o.value)), n.value = Array.from(/* @__PURE__ */ new Set([...u, ...d])), r.value = c;
449
+ }), [n, r];
450
450
  }, Sa = (e, s, l) => {
451
451
  let {
452
452
  treeNodeFilterProp: t,
453
453
  filterTreeNode: a,
454
- fieldNames: n
454
+ fieldNames: o
455
455
  } = l;
456
456
  return y(() => {
457
457
  const {
458
- children: o
459
- } = n.value, r = s.value, d = t == null ? void 0 : t.value;
458
+ children: n
459
+ } = o.value, r = s.value, d = t == null ? void 0 : t.value;
460
460
  if (!r || a.value === !1)
461
461
  return e.value;
462
462
  let c;
@@ -473,9 +473,9 @@ const ya = (e) => {
473
473
  let p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
474
474
  const w = [];
475
475
  for (let x = 0, S = f.length; x < S; x++) {
476
- const g = f[x], F = g[o], A = p || c(r, qe(g)), K = u(F || [], A);
476
+ const g = f[x], F = g[n], A = p || c(r, qe(g)), K = u(F || [], A);
477
477
  (A || K.length) && w.push(b(b({}, g), {
478
- [o]: K
478
+ [n]: K
479
479
  }));
480
480
  }
481
481
  return w;
@@ -644,7 +644,7 @@ const xa = Ve({
644
644
  expose: t,
645
645
  slots: a
646
646
  } = s;
647
- const n = Rt(oe(e, "id")), o = y(() => e.treeCheckable && !e.treeCheckStrictly), r = y(() => e.treeCheckable || e.treeCheckStrictly), d = y(() => e.treeCheckStrictly || e.labelInValue), c = y(() => r.value || e.multiple), u = y(() => oa(e.fieldNames)), [f, p] = tt("", {
647
+ const o = Rt(oe(e, "id")), n = y(() => e.treeCheckable && !e.treeCheckStrictly), r = y(() => e.treeCheckable || e.treeCheckStrictly), d = y(() => e.treeCheckStrictly || e.labelInValue), c = y(() => r.value || e.multiple), u = y(() => oa(e.fieldNames)), [f, p] = tt("", {
648
648
  value: y(() => e.searchValue !== void 0 ? e.searchValue : e.inputValue),
649
649
  postState: (i) => i || ""
650
650
  }), w = (i) => {
@@ -708,7 +708,7 @@ const xa = Ve({
708
708
  const Y = y(() => T.value.map((i) => i.value)), {
709
709
  maxLevel: j,
710
710
  levelEntities: le
711
- } = Yt(S), [q, re] = Ca(T, z, o, S, j, le), se = y(() => {
711
+ } = Yt(S), [q, re] = Ca(T, z, n, S, j, le), se = y(() => {
712
712
  const m = ot(q.value, e.showCheckedStrategy, S.value, u.value).map((L) => {
713
713
  var I, N, M;
714
714
  return (M = (N = (I = S.value[L]) === null || I === void 0 ? void 0 : I.node) === null || N === void 0 ? void 0 : N[u.value.value]) !== null && M !== void 0 ? M : L;
@@ -729,7 +729,7 @@ const xa = Ve({
729
729
  const k = v(i);
730
730
  if (E(k), e.autoClearSearchValue && p(""), e.onChange) {
731
731
  let P = i;
732
- o.value && (P = ot(i, e.showCheckedStrategy, S.value, u.value).map((te) => {
732
+ n.value && (P = ot(i, e.showCheckedStrategy, S.value, u.value).map((te) => {
733
733
  const Se = g.value.get(te);
734
734
  return Se ? Se.node[u.value.value] : te;
735
735
  }));
@@ -769,7 +769,7 @@ const xa = Ve({
769
769
  }, "option");
770
770
  else {
771
771
  let $ = m ? [...Y.value, B] : q.value.filter((te) => te !== B);
772
- if (o.value) {
772
+ if (n.value) {
773
773
  const {
774
774
  missingRawValues: te,
775
775
  existRawValues: Se
@@ -932,7 +932,7 @@ const xa = Ve({
932
932
  return U(Bt, X(X(X({
933
933
  ref: J
934
934
  }, l), h), {}, {
935
- id: n,
935
+ id: o,
936
936
  prefixCls: e.prefixCls,
937
937
  mode: c.value ? "multiple" : void 0,
938
938
  displayValues: ce.value,
@@ -1041,10 +1041,10 @@ const Ue = Ve({
1041
1041
  attrs: l,
1042
1042
  slots: t,
1043
1043
  expose: a,
1044
- emit: n
1044
+ emit: o
1045
1045
  } = s;
1046
1046
  kt(!(e.treeData === void 0 && t.default)), Be(e.multiple !== !1 || !e.treeCheckable, "TreeSelect", "`multiple` will always be `true` when `treeCheckable` is true"), Be(e.replaceFields === void 0, "TreeSelect", "`replaceFields` is deprecated, please use fieldNames instead"), Be(!e.dropdownClassName, "TreeSelect", "`dropdownClassName` is deprecated. Please use `popupClassName` instead.");
1047
- const o = Qt(), r = Jt.useInject(), d = y(() => Zt(r.status, e.status)), {
1047
+ const n = Qt(), r = Jt.useInject(), d = y(() => Zt(r.status, e.status)), {
1048
1048
  prefixCls: c,
1049
1049
  renderEmpty: u,
1050
1050
  direction: f,
@@ -1076,13 +1076,13 @@ const Ue = Ve({
1076
1076
  const pe = function() {
1077
1077
  for (var C = arguments.length, _ = new Array(C), H = 0; H < C; H++)
1078
1078
  _[H] = arguments[H];
1079
- n("update:value", _[0]), n("change", ..._), o.onFieldChange();
1079
+ o("update:value", _[0]), o("change", ..._), n.onFieldChange();
1080
1080
  }, me = (C) => {
1081
- n("update:treeExpandedKeys", C), n("treeExpand", C);
1081
+ o("update:treeExpandedKeys", C), o("treeExpand", C);
1082
1082
  }, ge = (C) => {
1083
- n("update:searchValue", C), n("search", C);
1083
+ o("update:searchValue", C), o("search", C);
1084
1084
  }, ue = (C) => {
1085
- n("blur", C), o.onFieldBlur();
1085
+ o("blur", C), n.onFieldBlur();
1086
1086
  };
1087
1087
  return () => {
1088
1088
  var C, _, H;
@@ -1098,7 +1098,7 @@ const Ue = Ve({
1098
1098
  showArrow: Pe,
1099
1099
  switcherIcon: De = (_ = t.switcherIcon) === null || _ === void 0 ? void 0 : _.call(t),
1100
1100
  fieldNames: Ae = e.replaceFields,
1101
- id: Ke = o.id.value,
1101
+ id: Ke = n.id.value,
1102
1102
  placeholder: Fe = (H = t.placeholder) === null || H === void 0 ? void 0 : H.call(t)
1103
1103
  } = e, {
1104
1104
  isFormItemInput: Oe,
@@ -1180,8 +1180,8 @@ function Na(e) {
1180
1180
  return be(() => e.categoryList, (s) => {
1181
1181
  s.forEach(async (l) => {
1182
1182
  if (!ze[l.id]) {
1183
- const t = await Kt.getCategoryValues(l.id), { flatAttributeValue: a, treeAttributeValue: n, showWay: o } = t.body;
1184
- ze[l.id] = o === "TREE" ? n : a;
1183
+ const t = await Kt.getCategoryValues(l.id), { flatAttributeValue: a, treeAttributeValue: o, showWay: n } = t.body;
1184
+ ze[l.id] = n === "TREE" ? o : a;
1185
1185
  }
1186
1186
  });
1187
1187
  }, { immediate: !0, deep: !0 }), {
@@ -1205,21 +1205,25 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
1205
1205
  setup(e, { expose: s }) {
1206
1206
  const l = ct.SHOW_PARENT, t = e, a = y(() => ({
1207
1207
  categoryList: t.categoryList
1208
- })), n = y(() => Object.values(d).some((u) => u.length > 0)), o = fe(), r = fe(""), { categoryValuesMap: d } = Na(t);
1208
+ })), o = y(() => Object.values(d).some((u) => u.length > 0)), n = fe(), r = fe(""), { categoryValuesMap: d } = Na(t);
1209
1209
  return s({
1210
1210
  validate: () => new Promise((u, f) => {
1211
- o.value.validate().then(() => {
1211
+ if (!n.value) {
1212
+ u(!0);
1213
+ return;
1214
+ }
1215
+ n.value.validate().then(() => {
1212
1216
  u(!0);
1213
1217
  }).catch(() => {
1214
1218
  f(!1);
1215
1219
  });
1216
1220
  })
1217
- }), (u, f) => n.value ? (ie(), Ze(W(la), {
1221
+ }), (u, f) => o.value ? (ie(), Ze(W(la), {
1218
1222
  key: 0,
1219
1223
  class: "crane-category-wraper",
1220
1224
  model: a.value,
1221
1225
  ref_key: "formRef",
1222
- ref: o
1226
+ ref: n
1223
1227
  }, {
1224
1228
  default: Re(() => [
1225
1229
  je("div", Ta, ye(W(xe)("category")), 1),
@@ -1269,7 +1273,7 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
1269
1273
  __: [1]
1270
1274
  }, 8, ["model"])) : et("", !0);
1271
1275
  }
1272
- }), Ha = /* @__PURE__ */ Ft(Da, [["__scopeId", "data-v-21167b98"]]);
1276
+ }), Ha = /* @__PURE__ */ Ft(Da, [["__scopeId", "data-v-5a082038"]]);
1273
1277
  export {
1274
1278
  Ha as default
1275
1279
  };
@@ -4936,7 +4936,7 @@ function Af(e) {
4936
4936
  function Pf(e) {
4937
4937
  return se(e) ? document.querySelector(e) : e;
4938
4938
  }
4939
- const Rf = /* @__PURE__ */ Ko(() => import("./yqg-permission-Cb-_sywm.js").then((e) => e.b8)), Mf = (e) => {
4939
+ const Rf = /* @__PURE__ */ Ko(() => import("./yqg-permission-BPhYJ3ps.js").then((e) => e.b8)), Mf = (e) => {
4940
4940
  customElements.define(
4941
4941
  e,
4942
4942
  /* @__PURE__ */ gf(Rf, {
@@ -1,6 +1,6 @@
1
- import { _ as g, P as c, a as B, c as ae, b4 as tt, ap as pn, ae as ot, a1 as it, Z as at, I as mn, a9 as lt, a8 as rt, aE as st, an as Y, b5 as gn, R as We, b6 as Le, Q as ie, b7 as vn, N as ut, O as ct } from "./yqg-permission-Cb-_sywm.js";
2
- import { d as ne, c as R, r as le, e as f, m as dt, i as ft, a as Ie, p as Ce, x as pt, s as A, w as oe, b as hn, l as ge, U as Ae, F as we, o as _e, X as mt, G as on, a0 as gt } from "./index-CJ_Ktj6t.js";
3
- import { B as vt, R as yn, p as bn, K as P, j as Sn, S as ht } from "./apply-modal-B4niAWln.js";
1
+ import { _ as g, P as c, a as B, c as ae, b4 as tt, ap as pn, ae as ot, a1 as it, Z as at, I as mn, a9 as lt, a8 as rt, aE as st, an as Y, b5 as gn, R as We, b6 as Le, Q as ie, b7 as vn, N as ut, O as ct } from "./yqg-permission-BPhYJ3ps.js";
2
+ import { d as ne, c as R, r as le, e as f, m as dt, i as ft, a as Ie, p as Ce, x as pt, s as A, w as oe, b as hn, l as ge, U as Ae, F as we, o as _e, X as mt, G as on, a0 as gt } from "./index-Cnz2SLUX.js";
3
+ import { B as vt, R as yn, p as bn, K as P, j as Sn, S as ht } from "./apply-modal-BFzYTq8s.js";
4
4
  function an(e, n) {
5
5
  const {
6
6
  key: o
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.yqg-permission-message{z-index:10010}.crane-wraper[data-v-b7acbf6e]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-b7acbf6e]{margin:10px}.crane-margin-right10[data-v-b7acbf6e]{margin-right:10px}.yqg-permission-modal-wrap .yqg-permission-modal-confirm-btns{text-align:center!important}.crane-step-wraper[data-v-dbf18219]{display:flex;align-items:center;width:100%;overflow-x:scroll;line-height:32px;padding-bottom:8px}.crane-step-node[data-v-dbf18219]{display:flex;align-items:center}.crane-step-icon[data-v-dbf18219]{margin:0 8px;height:auto;max-width:none}.crane-permission-title-tips[data-v-de9e3bc9]{color:#ff4d4f;font-size:14px;margin-left:8px;font-weight:400}[data-v-de9e3bc9] .yqg-permission-tree-list{margin-top:4px}[data-v-de9e3bc9] .yqg-permission-tree-node-selected{background:none!important}[data-v-de9e3bc9] .yqg-permission-tree-checkbox{margin:0!important}[data-v-de9e3bc9] .yqg-permission-tree-switcher-noop{width:18px!important}[data-v-de9e3bc9] .yqg-permission-tree-checkbox+span:hover{background:none!important}[data-v-de9e3bc9] .yqg-permission-tree-treenode,[data-v-de9e3bc9] .yqg-permission-tree-node-content-wrapper-normal,[data-v-de9e3bc9] .yqg-permission-tree-title{width:100%!important}.yqg-permission-tree-list-wraper[data-v-de9e3bc9] .yqg-permission-tree-list-scrollbar{display:block!important}.crane-category-wraper[data-v-21167b98]{margin-top:16px;padding:12px;padding-bottom:1px!important;border-radius:4px;background-color:#f2f3f5}[data-v-21167b98] .crane-category-wraper label{font-size:12px!important}[data-v-21167b98] .yqg-permission-form-item-explain-error{font-size:12px}[data-v-21167b98] .yqg-permission-form-item{margin-bottom:18px}[data-v-21167b98] .yqg-permission-form-item-required{font-size:12px!important}[data-v-21167b98] .yqg-permission-form-item-required:before{display:none!important}.crane-required[data-v-21167b98]{font-size:14px;font-weight:700}.crane-required[data-v-21167b98]:before{display:inline-block;margin-inline-end:4px;color:#ff4d4f;font-size:14px;font-family:SimSun,sans-serif;line-height:1;content:"*"}.crane-category-tips[data-v-21167b98]{color:#86909c;font-size:12px}.crane-category-line[data-v-21167b98]{height:1px;background-color:#c9cdd4;margin:10px 0}.crane-department-wraper[data-v-7299ba1e]{max-width:600px;max-height:300px;overflow-y:scroll}.crane-flex-center[data-v-7299ba1e]{display:flex;align-items:center;white-space:nowrap}.permission-item-wraper[data-v-7299ba1e]{padding-right:32px}.crane-checkbox-line[data-v-7299ba1e]{line-height:28px;display:flex;align-items:center}.crane-tag-position[data-v-7299ba1e]{margin-right:4px;font-size:10px;padding:2px 4px;line-height:12px;font-weight:500}.crane-margin-right-0[data-v-7299ba1e]{margin-right:0}.crane-margin-left-4[data-v-7299ba1e]{margin-left:4px}.crane-margin-right-4[data-v-7299ba1e]{margin-right:4px}.crane-margin-left-12[data-v-7299ba1e]{margin-left:12px}.crane-disabled-color[data-v-7299ba1e]{color:#c9cdd4}.crane-weak-color[data-v-7299ba1e]{color:#86909c}.crane-text-overflow[data-v-7299ba1e]{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- import { a1 as f } from "./index-CJ_Ktj6t.js";
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.yqg-permission-message{z-index:10010}.crane-wraper[data-v-b7acbf6e]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-b7acbf6e]{margin:10px}.crane-margin-right10[data-v-b7acbf6e]{margin-right:10px}.yqg-permission-modal-wrap .yqg-permission-modal-confirm-btns{text-align:center!important}.crane-step-wraper[data-v-dbf18219]{display:flex;align-items:center;width:100%;overflow-x:scroll;line-height:32px;padding-bottom:8px}.crane-step-node[data-v-dbf18219]{display:flex;align-items:center}.crane-step-icon[data-v-dbf18219]{margin:0 8px;height:auto;max-width:none}.crane-permission-title-tips[data-v-de9e3bc9]{color:#ff4d4f;font-size:14px;margin-left:8px;font-weight:400}[data-v-de9e3bc9] .yqg-permission-tree-list{margin-top:4px}[data-v-de9e3bc9] .yqg-permission-tree-node-selected{background:none!important}[data-v-de9e3bc9] .yqg-permission-tree-checkbox{margin:0!important}[data-v-de9e3bc9] .yqg-permission-tree-switcher-noop{width:18px!important}[data-v-de9e3bc9] .yqg-permission-tree-checkbox+span:hover{background:none!important}[data-v-de9e3bc9] .yqg-permission-tree-treenode,[data-v-de9e3bc9] .yqg-permission-tree-node-content-wrapper-normal,[data-v-de9e3bc9] .yqg-permission-tree-title{width:100%!important}.yqg-permission-tree-list-wraper[data-v-de9e3bc9] .yqg-permission-tree-list-scrollbar{display:block!important}.crane-category-wraper[data-v-5a082038]{margin-top:16px;padding:12px;padding-bottom:1px!important;border-radius:4px;background-color:#f2f3f5}[data-v-5a082038] .crane-category-wraper label{font-size:12px!important}[data-v-5a082038] .yqg-permission-form-item-explain-error{font-size:12px}[data-v-5a082038] .yqg-permission-form-item{margin-bottom:18px}[data-v-5a082038] .yqg-permission-form-item-required{font-size:12px!important}[data-v-5a082038] .yqg-permission-form-item-required:before{display:none!important}.crane-required[data-v-5a082038]{font-size:14px;font-weight:700}.crane-required[data-v-5a082038]:before{display:inline-block;margin-inline-end:4px;color:#ff4d4f;font-size:14px;font-family:SimSun,sans-serif;line-height:1;content:"*"}.crane-category-tips[data-v-5a082038]{color:#86909c;font-size:12px}.crane-category-line[data-v-5a082038]{height:1px;background-color:#c9cdd4;margin:10px 0}.crane-department-wraper[data-v-7299ba1e]{max-width:600px;max-height:300px;overflow-y:scroll}.crane-flex-center[data-v-7299ba1e]{display:flex;align-items:center;white-space:nowrap}.permission-item-wraper[data-v-7299ba1e]{padding-right:32px}.crane-checkbox-line[data-v-7299ba1e]{line-height:28px;display:flex;align-items:center}.crane-tag-position[data-v-7299ba1e]{margin-right:4px;font-size:10px;padding:2px 4px;line-height:12px;font-weight:500}.crane-margin-right-0[data-v-7299ba1e]{margin-right:0}.crane-margin-left-4[data-v-7299ba1e]{margin-left:4px}.crane-margin-right-4[data-v-7299ba1e]{margin-right:4px}.crane-margin-left-12[data-v-7299ba1e]{margin-left:12px}.crane-disabled-color[data-v-7299ba1e]{color:#c9cdd4}.crane-weak-color[data-v-7299ba1e]{color:#86909c}.crane-text-overflow[data-v-7299ba1e]{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
+ import { a1 as f } from "./index-Cnz2SLUX.js";
3
3
  export {
4
4
  f as default
5
5
  };
@@ -1,7 +1,7 @@
1
- import { c as he, Y as Te, a as H, a1 as We, b as ot, _ as T, ae as Xe, aX as Me, aZ as He, P as ae, a0 as Be, ar as at, as as it, aD as st, aY as rt, a_ as ct, ai as ut, ak as Ae, aj as dt, $ as je, N as vt, Q as mt, a$ as ft, R as gt, b0 as pt, aq as ht, b1 as bt, b2 as yt, b3 as St, aE as Ct, aP as X, aR as we, aS as At } from "./yqg-permission-Cb-_sywm.js";
2
- import { p as Ot, a as It, d as be, c as A, G as wt, w as Fe, E as Ye, q as _e, e as N, F as Ve, s as ve, b as Ne, y as oe, r as Qe, N as ue, L as U, K as Oe, R as de, P as K, M as J, U as Pe, S as M, O as xt, u as B, $ as Vt, Y as ze } from "./index-CJ_Ktj6t.js";
3
- import { j as Nt, L as Tt, p as Pt, K as Z, d as Et, F as Ft, e as Dt, f as Rt, Q as Bt } from "./apply-modal-B4niAWln.js";
4
- import { u as kt, b as $t, T as Lt, i as De, c as Mt, h as Ht, j as jt, k as _t, t as zt, B as Ut, e as Kt, f as Gt, g as Wt } from "./index-CZ6UV6_X.js";
1
+ import { c as he, Y as Te, a as H, a1 as We, b as ot, _ as T, ae as Xe, aX as Me, aZ as He, P as ae, a0 as Be, ar as at, as as it, aD as st, aY as rt, a_ as ct, ai as ut, ak as Ae, aj as dt, $ as je, N as vt, Q as mt, a$ as ft, R as gt, b0 as pt, aq as ht, b1 as bt, b2 as yt, b3 as St, aE as Ct, aP as X, aR as we, aS as At } from "./yqg-permission-BPhYJ3ps.js";
2
+ import { p as Ot, a as It, d as be, c as A, G as wt, w as Fe, E as Ye, q as _e, e as N, F as Ve, s as ve, b as Ne, y as oe, r as Qe, N as ue, L as U, K as Oe, R as de, P as K, M as J, U as Pe, S as M, O as xt, u as B, $ as Vt, Y as ze } from "./index-Cnz2SLUX.js";
3
+ import { j as Nt, L as Tt, p as Pt, K as Z, d as Et, F as Ft, e as Dt, f as Rt, Q as Bt } from "./apply-modal-BFzYTq8s.js";
4
+ import { u as kt, b as $t, T as Lt, i as De, c as Mt, h as Ht, j as jt, k as _t, t as zt, B as Ut, e as Kt, f as Gt, g as Wt } from "./index-qdB6FW1K.js";
5
5
  function Xt() {
6
6
  return /(mac\sos|macintosh)/i.test(navigator.appVersion);
7
7
  }
@@ -1,4 +1,4 @@
1
- import { F as de, i as Fn, C as Eu, T as Bs, c as D, a as ue, p as Se, r as F, d as N, u as J, s as z, g as Ro, w as q, b as je, o as Le, t as hu, e as I, h as zt, f as it, j as jn, k as vu, l as Oe, m as Es, n as Yt, q as be, v as ko, x as CA, y as Iu, z as No, A as ti, B as mu, D as hs, E as vs, G as Ne, H as Is, I as Qu, J as wu, K as ni, L as $e, M as lt, N as Tt, O as yu, P as Ee, Q as bu, R as sr, S as _e, U as Gn, V as Pu } from "./index-CJ_Ktj6t.js";
1
+ import { F as de, i as Fn, C as Eu, T as Bs, c as D, a as ue, p as Se, r as F, d as N, u as J, s as z, g as Ro, w as q, b as je, o as Le, t as hu, e as I, h as zt, f as it, j as jn, k as vu, l as Oe, m as Es, n as Yt, q as be, v as ko, x as CA, y as Iu, z as No, A as ti, B as mu, D as hs, E as vs, G as Ne, H as Is, I as Qu, J as wu, K as ni, L as $e, M as lt, N as Tt, O as yu, P as Ee, Q as bu, R as sr, S as _e, U as Gn, V as Pu } from "./index-Cnz2SLUX.js";
2
2
  function wn(e) {
3
3
  "@babel/helpers - typeof";
4
4
  return wn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -14628,7 +14628,7 @@ const g0 = ["src"], f0 = ["src"], d0 = { class: "crane-margin10" }, C0 = ["src"]
14628
14628
  CUSTOM: "custom"
14629
14629
  };
14630
14630
  Ge.config({ prefixCls: "yqg-permission-message" });
14631
- const r = Pu(() => import("./apply-modal-B4niAWln.js").then((y) => y.k)), A = t, i = e, a = F(!1), s = F(), l = F(!1), c = F([]), u = F(!1);
14631
+ const r = Pu(() => import("./apply-modal-BFzYTq8s.js").then((y) => y.k)), A = t, i = e, a = F(!1), s = F(), l = F(!1), c = F([]), u = F(!1);
14632
14632
  let g = F([]), f = F({
14633
14633
  imageUrl: Bo,
14634
14634
  status: ""