@yqg/permission 1.3.0-alpha.3 → 1.3.0-alpha.5

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,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 M, E as ae, e as U, b as Ge, y as oe, $ as gt, G as yt, K as ie, L as Ze, M as Me, N as Be, R as ye, u as W, P as we, F as bt, Y as Ct, f as St, U as et, z as wt } from "./index-BNldYMQw.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, R as it, V as kt, aN as $e, $ as Nt, ar as Tt, as as Lt, aY as Et, c as at, b as _t, ak as je, aj as Pt, a0 as Dt, ai as At, am as We, aU as Kt, aP as xe, aQ as Ft } from "./yqg-permission-C7I2t23j.js";
3
- import { u as Ot, a as Ht, b as Rt, c as Mt, d as Bt, t as lt, B as $t, e as jt, f as Wt, g as Ut } from "./index-arXtw86e.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-DJ-rohnO.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 M, E as ae, e as U, b as Ge, y as oe, $ as gt, G as yt, K as ie, L as Ze, M as Me, N as Be, R as ye, u as W, P as we, F as bt, Y as Ct, f as St, U as et, z as wt } from "./index-jGgeGy8X.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, R as it, V as kt, aN as $e, $ as Nt, ar as Tt, as as Lt, aY as Et, c as at, b as _t, ak as je, aj as Pt, a0 as Dt, ai as At, am as We, aU as Kt, aP as xe, aQ as Ft } from "./yqg-permission-DM6aHNXO.js";
3
+ import { u as Ot, a as Ht, b as Rt, c as Mt, d as Bt, t as lt, B as $t, e as jt, f as Wt, g as Ut } from "./index-rX3BorbX.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-B7qjeZSE.js";
5
5
  function na(e) {
6
6
  return Array.isArray(e) ? e : e !== void 0 ? [e] : [];
7
7
  }
@@ -4944,7 +4944,7 @@ function Mf(e) {
4944
4944
  function Of(e) {
4945
4945
  return se(e) ? document.querySelector(e) : e;
4946
4946
  }
4947
- const If = /* @__PURE__ */ qo(() => import("./yqg-permission-C7I2t23j.js").then((e) => e.b8)), Nf = (e) => {
4947
+ const If = /* @__PURE__ */ qo(() => import("./yqg-permission-DM6aHNXO.js").then((e) => e.b8)), Nf = (e) => {
4948
4948
  customElements.define(
4949
4949
  e,
4950
4950
  /* @__PURE__ */ bf(If, {
@@ -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, ab as lt, ac as rt, aD as st, b5 as gn, ao as Y, Q as We, b6 as Le, R as ie, b7 as vn, N as ut, O as ct } from "./yqg-permission-C7I2t23j.js";
2
- import { d as ne, c as R, r as le, e as f, i as dt, m as ft, a as Ie, p as Ce, x as pt, s as A, w as oe, b as hn, l as ge, S as Ae, F as we, o as _e, X as mt, G as on, $ as gt } from "./index-BNldYMQw.js";
3
- import { B as vt, R as yn, p as bn, K as P, j as Sn, S as ht } from "./apply-modal-DJ-rohnO.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, ab as lt, ac as rt, aD as st, b5 as gn, ao as Y, Q as We, b6 as Le, R as ie, b7 as vn, N as ut, O as ct } from "./yqg-permission-DM6aHNXO.js";
2
+ import { d as ne, c as R, r as le, e as f, i as dt, m as ft, a as Ie, p as Ce, x as pt, s as A, w as oe, b as hn, l as ge, S as Ae, F as we, o as _e, X as mt, G as on, $ as gt } from "./index-jGgeGy8X.js";
3
+ import { B as vt, R as yn, p as bn, K as P, j as Sn, S as ht } from "./apply-modal-B7qjeZSE.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('.crane-wraper[data-v-1094345c]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-1094345c]{margin:10px}.crane-margin-right10[data-v-1094345c]{margin-right:10px}[data-v-5dd58742] .yqg-permission-modal-wrap .yqg-permission-modal-confirm-btns{text-align:center!important}.crane-step-wraper[data-v-f3d62522]{display:flex;align-items:center;width:100%;overflow-x:scroll;line-height:32px;padding-bottom:8px}.crane-step-node[data-v-f3d62522]{display:flex;align-items:center}.crane-step-icon[data-v-f3d62522]{margin:0 8px;height:auto;max-width:none}[data-v-ffc07c35] .yqg-permission-tree-list{margin-top:4px}[data-v-ffc07c35] .yqg-permission-tree-node-selected{background:none!important}[data-v-ffc07c35] .yqg-permission-tree-checkbox{margin:0!important}[data-v-ffc07c35] .yqg-permission-tree-switcher-noop{width:18px!important}[data-v-ffc07c35] .yqg-permission-tree-checkbox+span:hover{background:none!important}[data-v-ffc07c35] .yqg-permission-tree-treenode,[data-v-ffc07c35] .yqg-permission-tree-node-content-wrapper-normal,[data-v-ffc07c35] .yqg-permission-tree-title{width:100%!important}.crane-category-wraper[data-v-68a2b49c]{margin-top:16px;padding:12px;padding-bottom:1px!important;border-radius:4px;background-color:#f2f3f5}[data-v-68a2b49c] .crane-category-wraper label{font-size:12px!important}[data-v-68a2b49c] .yqg-permission-form-item-explain-error{font-size:12px}[data-v-68a2b49c] .yqg-permission-form-item{margin-bottom:18px}[data-v-68a2b49c] .yqg-permission-form-item-required{font-size:12px!important}[data-v-68a2b49c] .yqg-permission-form-item-required:before{display:none!important}.crane-required[data-v-68a2b49c]{font-size:14px;font-weight:700}.crane-required[data-v-68a2b49c]: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-68a2b49c]{color:#86909c;font-size:12px}.crane-category-line[data-v-68a2b49c]{height:1px;background-color:#c9cdd4;margin:10px 0}.crane-flex-center[data-v-c5efdf9a]{display:flex;align-items:center;white-space:nowrap}.permission-item-wraper[data-v-c5efdf9a]{padding-right:32px}.crane-checkbox-line[data-v-c5efdf9a]{line-height:28px;display:flex;align-items:center}.crane-tag-position[data-v-c5efdf9a]{margin-right:4px;font-size:10px;padding:2px 4px;line-height:12px;font-weight:500}.crane-margin-right-0[data-v-c5efdf9a]{margin-right:0}.crane-margin-left-4[data-v-c5efdf9a]{margin-left:4px}.crane-margin-right-4[data-v-c5efdf9a]{margin-right:4px}.crane-margin-left-12[data-v-c5efdf9a]{margin-left:12px}.crane-disabled-color[data-v-c5efdf9a]{color:#c9cdd4}.crane-weak-color[data-v-c5efdf9a]{color:#86909c}.crane-text-overflow[data-v-c5efdf9a]{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-BNldYMQw.js";
1
+ (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode('.crane-wraper[data-v-2d1f4aea]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-2d1f4aea]{margin:10px}.crane-margin-right10[data-v-2d1f4aea]{margin-right:10px}[data-v-5dd58742] .yqg-permission-modal-wrap .yqg-permission-modal-confirm-btns{text-align:center!important}.crane-step-wraper[data-v-f3d62522]{display:flex;align-items:center;width:100%;overflow-x:scroll;line-height:32px;padding-bottom:8px}.crane-step-node[data-v-f3d62522]{display:flex;align-items:center}.crane-step-icon[data-v-f3d62522]{margin:0 8px;height:auto;max-width:none}[data-v-47af274b] .yqg-permission-tree-list{margin-top:4px}[data-v-47af274b] .yqg-permission-tree-node-selected{background:none!important}[data-v-47af274b] .yqg-permission-tree-checkbox{margin:0!important}[data-v-47af274b] .yqg-permission-tree-switcher-noop{width:18px!important}[data-v-47af274b] .yqg-permission-tree-checkbox+span:hover{background:none!important}[data-v-47af274b] .yqg-permission-tree-treenode,[data-v-47af274b] .yqg-permission-tree-node-content-wrapper-normal,[data-v-47af274b] .yqg-permission-tree-title{width:100%!important}.crane-category-wraper[data-v-68a2b49c]{margin-top:16px;padding:12px;padding-bottom:1px!important;border-radius:4px;background-color:#f2f3f5}[data-v-68a2b49c] .crane-category-wraper label{font-size:12px!important}[data-v-68a2b49c] .yqg-permission-form-item-explain-error{font-size:12px}[data-v-68a2b49c] .yqg-permission-form-item{margin-bottom:18px}[data-v-68a2b49c] .yqg-permission-form-item-required{font-size:12px!important}[data-v-68a2b49c] .yqg-permission-form-item-required:before{display:none!important}.crane-required[data-v-68a2b49c]{font-size:14px;font-weight:700}.crane-required[data-v-68a2b49c]: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-68a2b49c]{color:#86909c;font-size:12px}.crane-category-line[data-v-68a2b49c]{height:1px;background-color:#c9cdd4;margin:10px 0}.crane-flex-center[data-v-c5efdf9a]{display:flex;align-items:center;white-space:nowrap}.permission-item-wraper[data-v-c5efdf9a]{padding-right:32px}.crane-checkbox-line[data-v-c5efdf9a]{line-height:28px;display:flex;align-items:center}.crane-tag-position[data-v-c5efdf9a]{margin-right:4px;font-size:10px;padding:2px 4px;line-height:12px;font-weight:500}.crane-margin-right-0[data-v-c5efdf9a]{margin-right:0}.crane-margin-left-4[data-v-c5efdf9a]{margin-left:4px}.crane-margin-right-4[data-v-c5efdf9a]{margin-right:4px}.crane-margin-left-12[data-v-c5efdf9a]{margin-left:12px}.crane-disabled-color[data-v-c5efdf9a]{color:#c9cdd4}.crane-weak-color[data-v-c5efdf9a]{color:#86909c}.crane-text-overflow[data-v-c5efdf9a]{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}')),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ import { a1 as f } from "./index-jGgeGy8X.js";
3
3
  export {
4
4
  f as default
5
5
  };
@@ -1,7 +1,7 @@
1
- import { c as ge, Y as Ne, a as H, a1 as Ge, b as nt, _ as E, ae as We, aX as He, aZ as je, P as ne, $ as Be, ar as ot, as as it, aE as st, aY as rt, a_ as ct, a0 as ze, ak as Ce, aj as ut, am as dt, N as vt, R as mt, a$ as ft, b0 as gt, Q as pt, b1 as ht, b2 as bt, b3 as yt, aq as St, aD as Ct, aP as W, aS as we, aQ as At } from "./yqg-permission-C7I2t23j.js";
2
- import { p as Ot, a as It, d as pe, c as I, G as wt, w as Te, E as Xe, q as Ke, e as N, F as ke, s as de, b as Ve, y as ae, r as Le, K as J, P as Ae, L as Oe, M as Z, S as Pe, R as _, O as xt, u as B, U as ue, N as X, a0 as Tt, Y as Vt } from "./index-BNldYMQw.js";
3
- import { L as Nt, j as Pt, p as Et, K as ee, d as Ft, F as Dt, e as Rt, f as Bt, Q as kt } from "./apply-modal-DJ-rohnO.js";
4
- import { u as Lt, b as $t, T as Mt, i as De, c as _t, h as Ht, j as jt, k as zt, t as Kt, B as Ut, e as Yt, f as Gt, g as Wt } from "./index-arXtw86e.js";
1
+ import { c as ge, Y as Ne, a as H, a1 as Ge, b as nt, _ as E, ae as We, aX as He, aZ as je, P as ne, $ as Be, ar as ot, as as it, aE as st, aY as rt, a_ as ct, a0 as ze, ak as Ce, aj as ut, am as dt, N as vt, R as mt, a$ as ft, b0 as gt, Q as pt, b1 as ht, b2 as bt, b3 as yt, aq as St, aD as Ct, aP as W, aS as we, aQ as At } from "./yqg-permission-DM6aHNXO.js";
2
+ import { p as Ot, a as It, d as pe, c as I, G as wt, w as Te, E as Xe, q as Ke, e as N, F as ke, s as de, b as Ve, y as ae, r as Le, K as J, P as Ae, L as Oe, M as Z, S as Pe, R as _, O as xt, u as B, U as ue, N as X, a0 as Tt, Y as Vt } from "./index-jGgeGy8X.js";
3
+ import { L as Nt, j as Pt, p as Et, K as ee, d as Ft, F as Dt, e as Rt, f as Bt, Q as kt } from "./apply-modal-B7qjeZSE.js";
4
+ import { u as Lt, b as $t, T as Mt, i as De, c as _t, h as Ht, j as jt, k as zt, t as Kt, B as Ut, e as Yt, f as Gt, g as Wt } from "./index-rX3BorbX.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 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-BNldYMQw.js";
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-jGgeGy8X.js";
2
2
  function Qn(e) {
3
3
  "@babel/helpers - typeof";
4
4
  return Qn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -14428,7 +14428,7 @@ const Cn = "/crane", e0 = {
14428
14428
  "zh-CN": n0,
14429
14429
  "en-US": t0
14430
14430
  }, Me = (e, t) => {
14431
- const n = localStorage.getItem("permission_locale") || "en-US", o = e.split(".");
14431
+ const n = localStorage.getItem("permission_locale") || "zh-CN", o = e.split(".");
14432
14432
  let r = Es[n] || Es["en-US"];
14433
14433
  for (let A = 0; A < o.length; A++)
14434
14434
  r = r[o[A]];
@@ -14597,7 +14597,7 @@ const l0 = { class: "crane-wraper" }, c0 = ["src"], u0 = ["src"], g0 = { class:
14597
14597
  CUSTOM: "custom"
14598
14598
  };
14599
14599
  Ge.config({ prefixCls: "yqg-permission-message" });
14600
- const r = Pu(() => import("./apply-modal-DJ-rohnO.js").then((m) => m.k)), A = t, i = e, a = L(!1), l = L(), s = L(!1);
14600
+ const r = Pu(() => import("./apply-modal-B7qjeZSE.js").then((m) => m.k)), A = t, i = e, a = L(!1), l = L(), s = L(!1);
14601
14601
  let c = L([]), u = L({
14602
14602
  imageUrl: Bo,
14603
14603
  status: ""
@@ -14759,7 +14759,7 @@ const l0 = { class: "crane-wraper" }, c0 = ["src"], u0 = ["src"], g0 = { class:
14759
14759
  for (const [o, r] of t)
14760
14760
  n[o] = r;
14761
14761
  return n;
14762
- }, w0 = /* @__PURE__ */ Q0(m0, [["__scopeId", "data-v-1094345c"]]), F0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14762
+ }, w0 = /* @__PURE__ */ Q0(m0, [["__scopeId", "data-v-2d1f4aea"]]), F0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14763
14763
  __proto__: null,
14764
14764
  default: w0
14765
14765
  }, Symbol.toStringTag, { value: "Module" }));