@yqg/permission 1.3.12 → 1.3.13
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-BFzYTq8s.js → apply-modal-OokdyEmj.js} +757 -756
- package/dist/category-selector-C-yZxEgO.js +1301 -0
- package/dist/{index-qdB6FW1K.js → index-BkbJOH6j.js} +3 -3
- package/dist/{index-Cnz2SLUX.js → index-CSnwgcu-.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/{permission-item-C6tr81T4.js → permission-item-CZ7LWwNL.js} +4 -4
- package/dist/{yqg-permission-BPhYJ3ps.js → yqg-permission-D0O9c9lI.js} +7 -7
- package/dist/yqg-permission.umd.js +44 -44
- package/package.json +1 -1
- package/src/App.vue +5 -4
- package/src/components/apply-modal.vue +4 -4
- package/src/components/category-selector.vue +13 -5
- package/src/hooks/useAttributesCache.ts +23 -1
- package/src/hooks/useCategory.ts +2 -1
- package/src/i18n/en-US.ts +2 -3
- package/src/i18n/in-ID.ts +2 -3
- package/src/i18n/zh-CH.ts +3 -2
- package/src/typings/index.d.ts +7 -0
- package/src/yqg-permission/react.js +0 -0
- package/dist/category-selector-3bIJ-OEr.js +0 -1279
|
@@ -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-
|
|
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-
|
|
3
|
-
import { B as vt, R as yn, p as bn, K as P, j as Sn, S as ht } from "./apply-modal-
|
|
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-D0O9c9lI.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-CSnwgcu-.js";
|
|
3
|
+
import { B as vt, R as yn, p as bn, K as P, j as Sn, S as ht } from "./apply-modal-OokdyEmj.js";
|
|
4
4
|
function an(e, n) {
|
|
5
5
|
const {
|
|
6
6
|
key: o
|
|
@@ -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-
|
|
4939
|
+
const Rf = /* @__PURE__ */ Ko(() => import("./yqg-permission-D0O9c9lI.js").then((e) => e.b8)), Mf = (e) => {
|
|
4940
4940
|
customElements.define(
|
|
4941
4941
|
e,
|
|
4942
4942
|
/* @__PURE__ */ gf(Rf, {
|
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-
|
|
2
|
-
import { a1 as f } from "./index-
|
|
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-4f321073]{color:#ff4d4f;font-size:14px;margin-left:8px;font-weight:400}[data-v-4f321073] .yqg-permission-tree-list{margin-top:4px}[data-v-4f321073] .yqg-permission-tree-node-selected{background:none!important}[data-v-4f321073] .yqg-permission-tree-checkbox{margin:0!important}[data-v-4f321073] .yqg-permission-tree-switcher-noop{width:18px!important}[data-v-4f321073] .yqg-permission-tree-checkbox+span:hover{background:none!important}[data-v-4f321073] .yqg-permission-tree-treenode,[data-v-4f321073] .yqg-permission-tree-node-content-wrapper-normal,[data-v-4f321073] .yqg-permission-tree-title{width:100%!important}.yqg-permission-tree-list-wraper[data-v-4f321073] .yqg-permission-tree-list-scrollbar{display:block!important}.crane-category-wraper[data-v-5a9b14f5]{margin-top:16px;padding:12px;padding-bottom:1px!important;border-radius:4px;background-color:#f2f3f5}[data-v-5a9b14f5] .crane-category-wraper label{font-size:12px!important}[data-v-5a9b14f5] .yqg-permission-form-item-explain-error{font-size:12px}[data-v-5a9b14f5] .yqg-permission-form-item{margin-bottom:18px}[data-v-5a9b14f5] .yqg-permission-form-item-required{font-size:12px!important}[data-v-5a9b14f5] .yqg-permission-form-item-required:before{display:none!important}.crane-required[data-v-5a9b14f5]{font-size:14px;font-weight:700}.crane-required[data-v-5a9b14f5]: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-5a9b14f5]{color:#86909c;font-size:12px}.crane-category-line[data-v-5a9b14f5]{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-CSnwgcu-.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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-D0O9c9lI.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-CSnwgcu-.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-OokdyEmj.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-BkbJOH6j.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-
|
|
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-CSnwgcu-.js";
|
|
2
2
|
function wn(e) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return wn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
@@ -14331,7 +14331,7 @@ const pn = "/crane", n0 = {
|
|
|
14331
14331
|
approvalProcess: "Approval Process",
|
|
14332
14332
|
isAllOwnTips: "The current page already has permission or is under approval, no need to apply",
|
|
14333
14333
|
applyReasonPlaceholder: 'Please describe your reason and usage scenario in detail. Avoid vague explanations like "work needs" to prevent delays in approval.',
|
|
14334
|
-
applyReasonTips: "
|
|
14334
|
+
applyReasonTips: "Template:Because of the 【project/work】, I need to view 【data】, and therefore require 【relevant permissions】. Other details that need to be noted: 【】",
|
|
14335
14335
|
cancel: "Cancel",
|
|
14336
14336
|
submit: "Confirm",
|
|
14337
14337
|
close: "Close",
|
|
@@ -14352,10 +14352,9 @@ const pn = "/crane", n0 = {
|
|
|
14352
14352
|
manager: "System Administrator",
|
|
14353
14353
|
availableTime: "Validity Period",
|
|
14354
14354
|
selectPlaceholder: "Please select permission points",
|
|
14355
|
-
reasonPlaceholder: "Please enter your reason for applying",
|
|
14356
14355
|
pleaseChoose: "Please select",
|
|
14357
14356
|
maxCountTips: "You can apply for up to {count} permissions at a time",
|
|
14358
|
-
|
|
14357
|
+
maxMinLengthTips: "Cannot be empty, and the reason must be between {minLength} and {maxLength} characters in length",
|
|
14359
14358
|
today: "Expires today",
|
|
14360
14359
|
clickToApply: "Click to apply for permission",
|
|
14361
14360
|
noPermissionTips: "There are no permission points under this menu, no need to apply",
|
|
@@ -14387,7 +14386,7 @@ const pn = "/crane", n0 = {
|
|
|
14387
14386
|
approvalProcess: "审批流程",
|
|
14388
14387
|
isAllOwnTips: "当前页面权限已拥有或审批中,无需申请",
|
|
14389
14388
|
applyReasonPlaceholder: "请尽可能详细说明申请原因和使用场景,不要只填写“工作需要”之类的理由,以免影响你获取权限的审批时间。",
|
|
14390
|
-
applyReasonTips: "
|
|
14389
|
+
applyReasonTips: "模版:因为【】项目/工作,需要查看【】数据,需要【】相关权限。其他需要说明的情况【】",
|
|
14391
14390
|
cancel: "取消",
|
|
14392
14391
|
submit: "确定",
|
|
14393
14392
|
close: "关闭",
|
|
@@ -14411,7 +14410,7 @@ const pn = "/crane", n0 = {
|
|
|
14411
14410
|
reasonPlaceholder: "请输入申请理由",
|
|
14412
14411
|
pleaseChoose: "请选择",
|
|
14413
14412
|
maxCountTips: "一次最多只可申请{count}个权限",
|
|
14414
|
-
|
|
14413
|
+
maxMinLengthTips: "不能为空,且理由长度在{minLength}~{maxLength}个字符之间",
|
|
14415
14414
|
today: "今天到期",
|
|
14416
14415
|
clickToApply: "点击申请权限",
|
|
14417
14416
|
noPermissionTips: "该菜单下暂无权限点,无需申请",
|
|
@@ -14421,6 +14420,7 @@ const pn = "/crane", n0 = {
|
|
|
14421
14420
|
category: "数据权限",
|
|
14422
14421
|
categotySelectTips: "上方选中的权限包含数据权限,请根据实际工作需要申请/更改数据范围。",
|
|
14423
14422
|
categoryChangeTips: "提醒:您选择的数据权限范围较大!请确认实际工作场景是否需要全量「{category}」权限,并在申请理由中写明,避免审批不通过!",
|
|
14423
|
+
deleteCategoryTips: "提醒:已有的数据权限「{categorys}」被删除,将失去该数据权限,请谨慎删除",
|
|
14424
14424
|
levels: {
|
|
14425
14425
|
L1: "低",
|
|
14426
14426
|
L2: "中",
|
|
@@ -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-
|
|
14631
|
+
const r = Pu(() => import("./apply-modal-OokdyEmj.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: ""
|