@yqg/permission 1.0.8-beta.0 → 1.0.9-beta.0

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 { k as w, c as E, y as je, d as Y, f as te, w as se, s as V, o as Ee, p as yt, e as xt, j as Me, v as Va, F as be, m as tn, A as nn, H as Ha, q as rn, h as Ie, r as an, G as Rt, u as G, V as Wa, x as En, W as Ga, K as ve, L as mt, z as st, R as Ce, X as jt, Q as Ve, O as Lt, P as Dt, N as xe, M as Mn, Y as _n, Z as ka, U as Ua } from "./index-DsIoPFuc.js";
2
- import { _ as S, I as Ct, i as Ze, b as Nr, S as Le, a as _e, c as Fe, g as Xa, e as Ka, d as Br, f as on, h as Ya, M as Rr, j as jr, k as Lr, o as Qa, l as $t, r as Dr, m as zr, s as Za, n as Ja, U as Nn, p as ln, q as pt, t as sn, u as eo, v as qr, w as to, x as Vr, y as no, z as ro, A as ao, B as Bn, C as oo, K as un, D as io, E as De, F as K, G as N, P as Z, H as lo, J as ze, L as Je, N as me, O as We, Q as zt, R as Hr, T as wt, V as so, W as Wr, X as Gr, Y as Pe, Z as uo, $ as cn, a0 as kr, a1 as co, a2 as Ye, a3 as dn, a4 as fn, a5 as Ur, a6 as mn, a7 as fo, a8 as Xr, a9 as mo, aa as po, ab as go, ac as ye, ad as de, ae as qt, af as vo, ag as he, ah as Ae, ai as St, aj as Vt, ak as ho, al as Ht, am as Kr, an as bo, ao as yo, ap as xo, aq as Co, ar as $o, as as wo, at as So, au as Yr, av as Oo, aw as Ge, ax as pn, ay as ut, az as Po, aA as Rn, aB as Ao, aC as jn, aD as Te, aE as Io, aF as gn, aG as Fo, aH as To, aI as Qr, aJ as Ln, aK as Dn, aL as Tt, aM as gt, aN as Zr, aO as Eo, aP as zn, aQ as Mo, aR as _o, aS as No, aT as Bo, aU as Ro, aV as vt, aW as jo, aX as Lo, aY as Jr, aZ as Do, a_ as zo, a$ as qo, b0 as Vo, b1 as Ho, b2 as Wo, b3 as Go, b4 as re, b5 as ko, b6 as Uo, b7 as Xo, b8 as qn, b9 as Vn, ba as Ko } from "./yqg-permission-Cx73HCrN.js";
1
+ import { k as w, c as E, y as je, d as Y, f as te, w as le, s as V, o as Ee, p as yt, e as xt, j as Me, v as Va, F as be, m as tn, A as nn, H as Ha, q as rn, h as Ie, r as an, G as Rt, u as G, V as Wa, x as En, W as Ga, K as ve, L as mt, z as st, R as Ce, X as jt, Q as Ve, O as Lt, P as Dt, N as xe, M as Mn, Y as _n, Z as ka, U as Ua } from "./index-WEDWEtKt.js";
2
+ import { _ as S, I as Ct, i as Ze, b as Nr, S as Le, a as _e, c as Fe, g as Xa, e as Ka, d as Br, f as on, h as Ya, M as Rr, j as jr, k as Lr, o as Qa, l as $t, r as Dr, m as zr, s as Za, n as Ja, U as Nn, p as ln, q as pt, t as sn, u as eo, v as qr, w as to, x as Vr, y as no, z as ro, A as ao, B as Bn, C as oo, K as un, D as io, E as De, F as K, G as N, P as Z, H as lo, J as ze, L as Je, N as me, O as We, Q as zt, R as Hr, T as wt, V as so, W as Wr, X as Gr, Y as Pe, Z as uo, $ as cn, a0 as kr, a1 as co, a2 as Ye, a3 as dn, a4 as fn, a5 as Ur, a6 as mn, a7 as fo, a8 as Xr, a9 as mo, aa as po, ab as go, ac as ye, ad as de, ae as qt, af as vo, ag as he, ah as Ae, ai as St, aj as Vt, ak as ho, al as Ht, am as Kr, an as bo, ao as yo, ap as xo, aq as Co, ar as $o, as as wo, at as So, au as Yr, av as Oo, aw as Ge, ax as pn, ay as ut, az as Po, aA as Rn, aB as Ao, aC as jn, aD as Te, aE as Io, aF as gn, aG as Fo, aH as To, aI as Qr, aJ as Ln, aK as Dn, aL as Tt, aM as gt, aN as Zr, aO as Eo, aP as zn, aQ as Mo, aR as _o, aS as No, aT as Bo, aU as Ro, aV as vt, aW as jo, aX as Lo, aY as Jr, aZ as Do, a_ as zo, a$ as qo, b0 as Vo, b1 as Ho, b2 as Wo, b3 as Go, b4 as re, b5 as ko, b6 as Uo, b7 as Xo, b8 as qn, b9 as Vn, ba as Ko } from "./yqg-permission-CBdjaux0.js";
3
3
  function Hn(e) {
4
4
  return typeof e == "object" && e != null && e.nodeType === 1;
5
5
  }
@@ -991,7 +991,7 @@ const fu = {
991
991
  expose: a
992
992
  } = t;
993
993
  const o = te(e.checked === void 0 ? e.defaultChecked : e.checked), i = te();
994
- se(() => e.checked, () => {
994
+ le(() => e.checked, () => {
995
995
  o.value = e.checked;
996
996
  }), a({
997
997
  focus() {
@@ -2870,7 +2870,7 @@ const yc = (e) => {
2870
2870
  prefixCls: r,
2871
2871
  status: a
2872
2872
  } = mc(), o = E(() => `${r.value}-item-explain`), i = E(() => !!(e.errors && e.errors.length)), l = te(a.value), [, u] = An(r);
2873
- return se([i, a], () => {
2873
+ return le([i, a], () => {
2874
2874
  i.value && (l.value = a.value);
2875
2875
  }), () => {
2876
2876
  var h, s;
@@ -3170,7 +3170,7 @@ const _c = "form_item", ft = Y({
3170
3170
  clearValidate: j
3171
3171
  }, E(() => !!(e.autoLink && s.model.value && p.value)));
3172
3172
  let L = !1;
3173
- se(p, (M) => {
3173
+ le(p, (M) => {
3174
3174
  M ? L || (L = !0, s.addField(o, {
3175
3175
  fieldValue: O,
3176
3176
  fieldId: y,
@@ -3219,7 +3219,7 @@ const _c = "form_item", ft = Y({
3219
3219
  }
3220
3220
  };
3221
3221
  Ee(() => {
3222
- se(J, () => {
3222
+ le(J, () => {
3223
3223
  J.value && oe();
3224
3224
  }, {
3225
3225
  flush: "post",
@@ -3424,12 +3424,12 @@ function Nc(e) {
3424
3424
  }), b = !1, g = ct(Rt(c));
3425
3425
  }, x = n == null ? void 0 : n.debounce;
3426
3426
  let O = !0;
3427
- return se(t, () => {
3427
+ return le(t, () => {
3428
3428
  o.value = t ? Object.keys(G(t)) : [], !O && n && n.validateOnRuleChange && p(), O = !1;
3429
3429
  }, {
3430
3430
  deep: !0,
3431
3431
  immediate: !0
3432
- }), se(o, () => {
3432
+ }), le(o, () => {
3433
3433
  const c = {};
3434
3434
  o.value.forEach((d) => {
3435
3435
  c[d] = S({}, a[d], {
@@ -3442,7 +3442,7 @@ function Nc(e) {
3442
3442
  S(a, c);
3443
3443
  }, {
3444
3444
  immediate: !0
3445
- }), se(e, x && x.wait ? zs(y, x.wait, ru(x, ["wait"])) : y, {
3445
+ }), le(e, x && x.wait ? zs(y, x.wait, ru(x, ["wait"])) : y, {
3446
3446
  immediate: n && !!n.immediate,
3447
3447
  deep: !0
3448
3448
  }), {
@@ -3665,7 +3665,7 @@ const $e = Y({
3665
3665
  n("validate", F, _, D);
3666
3666
  },
3667
3667
  validateMessages: b
3668
- }), se(() => e.rules, () => {
3668
+ }), le(() => e.rules, () => {
3669
3669
  e.validateOnRuleChange && B();
3670
3670
  }), () => {
3671
3671
  var F;
@@ -4075,7 +4075,7 @@ const Xe = Y({
4075
4075
  prefixCls: l,
4076
4076
  direction: u
4077
4077
  } = me("checkbox", e), h = E(() => `${l.value}-group`), [s, p] = Ea(h), m = te((e.value === void 0 ? e.defaultValue : e.value) || []);
4078
- se(() => e.value, () => {
4078
+ le(() => e.value, () => {
4079
4079
  m.value = e.value || [];
4080
4080
  });
4081
4081
  const v = E(() => e.options.map((d) => typeof d == "string" || typeof d == "number" ? {
@@ -4086,7 +4086,7 @@ const Xe = Y({
4086
4086
  }, x = (d, f) => {
4087
4087
  b.value.set(d, f), g.value = Symbol();
4088
4088
  }, O = te(/* @__PURE__ */ new Map());
4089
- return se(g, () => {
4089
+ return le(g, () => {
4090
4090
  const d = /* @__PURE__ */ new Map();
4091
4091
  for (const f of b.value.values())
4092
4092
  d.set(f, !0);
@@ -4547,9 +4547,9 @@ const Yc = Y({
4547
4547
  emit: o
4548
4548
  } = t;
4549
4549
  const i = V(e.value === void 0 ? e.defaultValue : e.value), l = V(!1), u = V(), h = V();
4550
- se(() => e.value, () => {
4550
+ le(() => e.value, () => {
4551
4551
  i.value = e.value;
4552
- }), se(() => e.disabled, () => {
4552
+ }), le(() => e.disabled, () => {
4553
4553
  e.disabled && (l.value = !1);
4554
4554
  });
4555
4555
  const s = (C) => {
@@ -4711,7 +4711,7 @@ var Qc = function(e, t) {
4711
4711
  t.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (n[r[a]] = e[r[a]]);
4712
4712
  return n;
4713
4713
  };
4714
- const le = Y({
4714
+ const se = Y({
4715
4715
  compatConfig: {
4716
4716
  MODE: 3
4717
4717
  },
@@ -4991,7 +4991,7 @@ const ed = Y({
4991
4991
  [`${y.value}-${c.value}`]: !!c.value,
4992
4992
  [`${y.value}-with-button`]: !!B
4993
4993
  }, r.class);
4994
- return w(le, N(N(N({
4994
+ return w(se, N(N(N({
4995
4995
  ref: i
4996
4996
  }, Te(A, ["onUpdate:value", "onSearch", "enterButton"])), r), {}, {
4997
4997
  onPressEnter: v,
@@ -5146,19 +5146,19 @@ const id = {
5146
5146
  prefixCls: g.value,
5147
5147
  suffix: c
5148
5148
  });
5149
- return y && (f.size = y), w(le, N({
5149
+ return y && (f.size = y), w(se, N({
5150
5150
  ref: u
5151
5151
  }, f), n);
5152
5152
  };
5153
5153
  return () => b();
5154
5154
  }
5155
5155
  });
5156
- le.Group = Zc;
5157
- le.Search = ed;
5158
- le.TextArea = Zr;
5159
- le.Password = sd;
5160
- le.install = function(e) {
5161
- return e.component(le.name, le), e.component(le.Group.name, le.Group), e.component(le.Search.name, le.Search), e.component(le.TextArea.name, le.TextArea), e.component(le.Password.name, le.Password), e;
5156
+ se.Group = Zc;
5157
+ se.Search = ed;
5158
+ se.TextArea = Zr;
5159
+ se.Password = sd;
5160
+ se.install = function(e) {
5161
+ return e.component(se.name, se), e.component(se.Group.name, se.Group), e.component(se.Search.name, se.Search), e.component(se.TextArea.name, se.TextArea), e.component(se.Password.name, se.Password), e;
5162
5162
  };
5163
5163
  function Tn() {
5164
5164
  return {
@@ -5478,7 +5478,7 @@ const Ir = {
5478
5478
  }
5479
5479
  e.visible && x.keyCode === zn.TAB && i.value.changeActive(!x.shiftKey);
5480
5480
  };
5481
- return se(() => e.visible, () => {
5481
+ return le(() => e.visible, () => {
5482
5482
  e.visible && (l.value = !0);
5483
5483
  }, {
5484
5484
  flush: "post"
@@ -5568,7 +5568,7 @@ const Ir = {
5568
5568
  const a = te(e.visible);
5569
5569
  return Mo({}, {
5570
5570
  inTriggerContext: !1
5571
- }), se(() => e.visible, () => {
5571
+ }), le(() => e.visible, () => {
5572
5572
  e.visible && (a.value = !0);
5573
5573
  }, {
5574
5574
  flush: "post"
@@ -6494,7 +6494,7 @@ const Id = Y({
6494
6494
  });
6495
6495
  function Fd() {
6496
6496
  const e = V(null), t = V([]);
6497
- se(t, () => {
6497
+ le(t, () => {
6498
6498
  t.value.length && ([...t.value].forEach((i) => {
6499
6499
  i();
6500
6500
  }), t.value = []);
@@ -6505,7 +6505,7 @@ function Fd() {
6505
6505
  var u;
6506
6506
  _r += 1;
6507
6507
  const h = V(!0), s = V(null), p = V(G(l)), m = V({});
6508
- se(() => l, (c) => {
6508
+ le(() => l, (c) => {
6509
6509
  y(S(S({}, Ga(c) ? c.value : c), m.value));
6510
6510
  });
6511
6511
  const v = function() {
@@ -6678,7 +6678,7 @@ const Td = /* @__PURE__ */ Y({
6678
6678
  emits: /* @__PURE__ */ _n(["onSubmit", "onSuccess"], ["update:modelValue"]),
6679
6679
  setup(e, { emit: t }) {
6680
6680
  const n = Ua(
6681
- () => import("./checkbox-item-D5r_FlIc.js")
6681
+ () => import("./checkbox-item-BMkF060v.js")
6682
6682
  ), r = [
6683
6683
  re("applyReason1"),
6684
6684
  re("applyReason2"),
@@ -6712,8 +6712,8 @@ const Td = /* @__PURE__ */ Y({
6712
6712
  };
6713
6713
  }), g), O = Ko(async () => {
6714
6714
  var f;
6715
- if (g.roleIds.length > 5)
6716
- return g.roleIds.pop(), qn.warning(re("maxCountTips", { count: 5 }));
6715
+ if (g.roleIds.length > 1)
6716
+ return;
6717
6717
  if (!g.roleIds.length) {
6718
6718
  v.value = [];
6719
6719
  return;
@@ -6722,7 +6722,9 @@ const Td = /* @__PURE__ */ Y({
6722
6722
  let d = await Vn.getFlowPreview(c);
6723
6723
  v.value = ((f = d == null ? void 0 : d.body) == null ? void 0 : f.nodes) || [];
6724
6724
  }, 0);
6725
- return se(() => i.value, (c) => {
6725
+ return le(() => g.roleIds, (c) => {
6726
+ c.length > 1 && (g.roleIds.pop(), qn.warning(re("maxCountTips", { count: 5 })));
6727
+ }), le(() => i.value, (c) => {
6726
6728
  var d;
6727
6729
  c && ((d = m.value) == null || d.resetFields(), v.value = []);
6728
6730
  }), (c, d) => (ve(), mt(G(ue), {