@pubinfo/module-rbac 2.0.0-rc.4 → 2.0.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.
Files changed (100) hide show
  1. package/dist/{ComponentSelect-B1ZyenXP.js → ComponentSelect-Bhl9ciUm.js} +12 -12
  2. package/dist/ComponentSelect-Bhwuc86o.js +2 -0
  3. package/dist/ComponentSelect.css +1 -1
  4. package/dist/DynamicRoutesForm-CE2RPs7y.js +169 -0
  5. package/dist/DynamicRoutesForm-D35jFnxF.js +4 -0
  6. package/dist/IconSelect-Ct5FkeHI.js +4 -0
  7. package/dist/IconSelect-HAhfS6hd.js +661 -0
  8. package/dist/IconSelect.css +1 -0
  9. package/dist/{ImportExport-Clbc8xaw.js → ImportExport-ByRTssxP.js} +2 -2
  10. package/dist/ImportExport-D8uzaOMz.js +4 -0
  11. package/dist/{MetaForm-BWy4Lpr8.js → MetaForm-BSGuZXgj.js} +2 -2
  12. package/dist/{MetaForm-DpH9an5A.js → MetaForm-DErrpELP.js} +1 -1
  13. package/dist/OrgAndPosition-CF7ZJtNB.js +2 -0
  14. package/dist/{ResourceEdit-0_cYB0iu.js → ResourceEdit-DF-2_zoi.js} +115 -105
  15. package/dist/ResourceEdit-oAPLPUf0.js +11 -0
  16. package/dist/{ResourceRelation-DMWa09ae.js → ResourceRelation-BRseTUw2.js} +1 -1
  17. package/dist/RoleRelation-YaSQQxQ2.js +2 -0
  18. package/dist/{TenantEdit-D8-Pt7sf.js → TenantEdit-C28473_2.js} +1 -1
  19. package/dist/{UserAuthorization-DuioGghR.js → UserAuthorization-C4SLMNmh.js} +1 -1
  20. package/dist/UserEdit-CyCXz7g3.js +4 -0
  21. package/dist/{UserEdit-C6eNXSCu.js → UserEdit-EOTBOUZu.js} +1 -1
  22. package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +23 -0
  23. package/dist/components/ResourceIcones/Select.vue.d.ts +48 -2
  24. package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +15 -6
  25. package/dist/components/RoleSelector/useRole.d.ts +68 -4
  26. package/dist/context.d.ts +1 -2
  27. package/dist/{drawerRole-DNsK5a6O.js → drawerRole-CzTW_I2H.js} +1 -1
  28. package/dist/{drawerRole-BeUNs7cF.js → drawerRole-tan379DU.js} +1 -1
  29. package/dist/index.css +1 -1
  30. package/dist/index.js +1427 -1431
  31. package/dist/{resource-CrhX7VRK.js → resource-CyI9ZpmF.js} +9 -8
  32. package/dist/{role-PjmrOdFd.js → role-B2tKqUvP.js} +2 -2
  33. package/dist/{role_group-Dlx-6BZF.js → role_group-DqzFHwKx.js} +1 -1
  34. package/dist/stores/view.d.ts +126 -21
  35. package/dist/{tenant-BGtOP_wo.js → tenant-C8kVbfgt.js} +2 -2
  36. package/dist/{toolbar_setting-OemNp6pO.js → toolbar_setting-Dc_h2Mfe.js} +23 -34
  37. package/dist/toolbar_setting.css +1 -1
  38. package/dist/{user-JCiGXodF.js → user-Dub4HhCZ.js} +3 -3
  39. package/dist/utils/routeSystem.d.ts +126 -21
  40. package/dist/views/blackWhiteList/index.vue.d.ts +40 -40
  41. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +4 -4
  42. package/dist/views/data-permission/index.vue.d.ts +44 -44
  43. package/dist/views/dictionary/index.vue.d.ts +40 -40
  44. package/dist/views/dictionary/itemlist.vue.d.ts +40 -40
  45. package/dist/views/group/index.vue.d.ts +40 -40
  46. package/dist/views/log_center/components/browserType.vue.d.ts +2 -2
  47. package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +2 -2
  48. package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +2 -2
  49. package/dist/views/log_center/login_history.vue.d.ts +40 -40
  50. package/dist/views/log_center/operate_history.vue.d.ts +40 -40
  51. package/dist/views/position/index.vue.d.ts +40 -40
  52. package/dist/views/region/index.vue.d.ts +40 -40
  53. package/dist/views/resource/components/IconSelect.vue.d.ts +10 -0
  54. package/dist/views/resource/hooks/useMetaForm.d.ts +8 -1
  55. package/dist/views/resource/index.vue.d.ts +40 -40
  56. package/dist/views/role/components/ResourceRelation.vue.d.ts +40 -40
  57. package/dist/views/role/index.vue.d.ts +80 -80
  58. package/dist/views/role_group/index.vue.d.ts +40 -40
  59. package/dist/views/tenant/index.vue.d.ts +40 -40
  60. package/dist/views/toolbar_setting/animationData.d.ts +1 -3
  61. package/dist/views/user/index.vue.d.ts +40 -40
  62. package/package.json +7 -3
  63. package/src/components/DirectoryIcones/ComponentsIcones.vue +2 -2
  64. package/src/components/DirectoryIcones/FolderIcones.vue +2 -2
  65. package/src/components/DirectoryIcones/ModuleIcones.vue +2 -2
  66. package/src/components/DirectoryIcones/PackagesIcones.vue +2 -2
  67. package/src/components/DirectoryIcones/SrcIcones.vue +2 -2
  68. package/src/components/DirectoryIcones/ViewIcones.vue +2 -2
  69. package/src/components/ResourceIcones/BoxColorPicker.vue +172 -0
  70. package/src/components/ResourceIcones/Select.vue +227 -15
  71. package/src/context.ts +1 -17
  72. package/src/index.ts +3 -10
  73. package/src/views/resource/components/ComponentSelect.vue +10 -0
  74. package/src/views/resource/components/DynamicRoutesForm.vue +0 -8
  75. package/src/views/resource/components/IconSelect.vue +138 -0
  76. package/src/views/resource/components/ResourceEdit.vue +34 -28
  77. package/src/views/toolbar_setting/animationData.ts +0 -4
  78. package/src/views/toolbar_setting/index.vue +0 -13
  79. package/dist/ComponentSelect-DlVJI5an.js +0 -2
  80. package/dist/DynamicRoutesForm-Cu3WhRpA.js +0 -4
  81. package/dist/DynamicRoutesForm-qjbrykW4.js +0 -376
  82. package/dist/ImportExport-CtEZTU87.js +0 -4
  83. package/dist/OrgAndPosition-3lCm4Fyb.js +0 -2
  84. package/dist/ResourceEdit-CYPzEbqn.js +0 -10
  85. package/dist/RoleRelation-DySyilcs.js +0 -2
  86. package/dist/UserEdit-6HYbgtOh.js +0 -4
  87. /package/dist/{OrgAndPosition-DYxNkasL.js → OrgAndPosition-vnBrq-fn.js} +0 -0
  88. /package/dist/{ResourceRelation-CZ8hGgOm.js → ResourceRelation-B_4woLmP.js} +0 -0
  89. /package/dist/{ResourceRelation-DkKdZ3TD.js → ResourceRelation-CKolCnHC.js} +0 -0
  90. /package/dist/{RoleRelation-B1D1NM_L.js → RoleRelation-DXZxscPY.js} +0 -0
  91. /package/dist/{TenantEdit-DNJzo8SS.js → TenantEdit-B5_v0C8I.js} +0 -0
  92. /package/dist/{UserAuthorization-DPHUk69M.js → UserAuthorization-DTgmWH5Q.js} +0 -0
  93. /package/dist/{dayjs.min-DcxwBe2I.js → dayjs.min-CdDcH50N.js} +0 -0
  94. /package/dist/{drawerRole-DS7fbx1h.js → drawerRole-CwilBmOE.js} +0 -0
  95. /package/dist/{drawerRole-BdoMYLYW.js → drawerRole-E1jHM3v-.js} +0 -0
  96. /package/dist/{enum-D0U38jb6.js → enum-BMY6bmPA.js} +0 -0
  97. /package/dist/{safe_setting-DpWUCv2p.js → safe_setting-uj9p_wW0.js} +0 -0
  98. /package/dist/{tabbar_setting-9UKDc1Ev.js → tabbar_setting-HFHrLVgt.js} +0 -0
  99. /package/dist/{theme_setting-BBLaZ4NS.js → theme_setting-QgpSGXxq.js} +0 -0
  100. /package/dist/{watermark_setting-C1VFRfbW.js → watermark_setting-BcWy6p2_.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { b as e } from "./_plugin-vue_export-helper-DziIhCOI.js";
2
- import { d as t } from "./enum-D0U38jb6.js";
2
+ import { d as t } from "./enum-BMY6bmPA.js";
3
3
  import { b as n } from "./HoverCard-B79q5sly.js";
4
4
  import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, resolveComponent as f, unref as p, useModel as m, watch as h, withCtx as g } from "vue";
5
5
  import { Col as _, Divider as v, FormItem as y, Input as b, Row as x, Switch as S } from "ant-design-vue/es";
@@ -0,0 +1,2 @@
1
+ import { b as e } from "./OrgAndPosition-vnBrq-fn.js";
2
+ export { e as default };
@@ -1,24 +1,25 @@
1
1
  import { b as e } from "./cloneDeep-BnvyNhik.js";
2
2
  import { am as t, t as n, x as r, y as i } from "./index.js";
3
3
  import { c as a, d as ee } from "./enum-CYW8g64p.js";
4
- import { b as te } from "./DynamicRoutesForm-qjbrykW4.js";
5
- import { b as o, c as s, d as c, e as l } from "./enum-D0U38jb6.js";
6
- import { b as u, c as d, d as f } from "./MetaForm-DpH9an5A.js";
7
- import { computed as p, createBlock as m, createCommentVNode as h, createElementBlock as ne, createTextVNode as g, createVNode as _, defineComponent as v, isRef as y, openBlock as b, reactive as x, ref as S, resolveComponent as C, toDisplayString as w, unref as T, withCtx as E } from "vue";
8
- import { DatabaseOutlined as D } from "@ant-design/icons-vue";
9
- import { message as O } from "ant-design-vue";
10
- import { Button as k, Col as A, Drawer as j, Form as re, FormItem as ie, Input as ae, InputNumber as oe, RadioGroup as se, Row as M, Select as N, Space as P, Spin as F, Switch as I, Tag as L, Textarea as R } from "ant-design-vue/es";
4
+ import { b as o, c as s, d as c, e as l } from "./enum-BMY6bmPA.js";
5
+ import { b as u } from "./DynamicRoutesForm-CE2RPs7y.js";
6
+ import { b as d } from "./IconSelect-HAhfS6hd.js";
7
+ import { b as f, c as p, d as m } from "./MetaForm-DErrpELP.js";
8
+ import { computed as h, createBlock as g, createCommentVNode as _, createElementBlock as te, createTextVNode as v, createVNode as y, defineComponent as b, isRef as x, openBlock as S, reactive as C, ref as w, resolveComponent as T, toDisplayString as E, unref as D, withCtx as O } from "vue";
9
+ import { DatabaseOutlined as k } from "@ant-design/icons-vue";
10
+ import { message as A } from "ant-design-vue";
11
+ import { Button as ne, Col as re, Drawer as ie, Form as ae, FormItem as oe, Input as se, InputNumber as ce, RadioGroup as j, Row as M, Select as N, Space as P, Spin as F, Switch as I, Tag as L, Textarea as R } from "ant-design-vue/es";
11
12
  const z = {
12
13
  key: 0,
13
14
  class: "flex items-center space-x-1"
14
15
  };
15
- var B = /* @__PURE__ */ v({
16
+ var B = /* @__PURE__ */ b({
16
17
  name: "ResourceEdit",
17
18
  __name: "ResourceEdit",
18
19
  props: { dataSource: {} },
19
20
  emits: ["submit"],
20
- setup(v, { expose: C, emit: B }) {
21
- let V = v, H = B, [U, W] = t(!1), G = S(), K = S({}), q = x({
21
+ setup(b, { expose: T, emit: B }) {
22
+ let V = b, H = B, [U, W] = t(!1), G = w(), K = w({}), q = C({
22
23
  title: "",
23
24
  record: {},
24
25
  initData: {
@@ -32,7 +33,7 @@ var B = /* @__PURE__ */ v({
32
33
  component: ""
33
34
  }
34
35
  }
35
- }), ce = {
36
+ }), le = {
36
37
  name: [{
37
38
  required: !0,
38
39
  message: "请输入资源名称",
@@ -60,8 +61,8 @@ var B = /* @__PURE__ */ v({
60
61
  message: "请选择是否启用",
61
62
  trigger: "change"
62
63
  }]
63
- }, J = p(() => le(V.dataSource, (e) => e.id === K.value.parentId) ?? {});
64
- function le(e, t) {
64
+ }, J = h(() => ue(V.dataSource, (e) => e.id === K.value.parentId) ?? {});
65
+ function ue(e, t) {
65
66
  let n = [...e];
66
67
  for (let e of n) {
67
68
  if (t(e)) return e;
@@ -69,7 +70,7 @@ var B = /* @__PURE__ */ v({
69
70
  }
70
71
  return null;
71
72
  }
72
- let Y = p(() => {
73
+ let Y = h(() => {
73
74
  switch (J.value?.type) {
74
75
  case c.APP:
75
76
  case c.MICRO_APP:
@@ -93,14 +94,14 @@ var B = /* @__PURE__ */ v({
93
94
  case c.LINK: return [];
94
95
  default: return l.filter((e) => [c.APP, c.DYNAMIC_APP].includes(e.value));
95
96
  }
96
- }), { show: X, resetIncompatibleOptions: Z } = d(K), [ue, Q] = t(!1);
97
- async function de(t, r) {
97
+ }), { show: X, resetIncompatibleOptions: Z } = p(K), [de, Q] = t(!1);
98
+ async function fe(t, r) {
98
99
  q.title = t, K.value = e(q.initData), W(!0);
99
100
  try {
100
101
  if (Q(!0), t === o.ADD_CHILD && (K.value.parentId = r?.id, K.value.type = Y.value[0].value, Z()), t === o.EDIT) {
101
102
  let e = await n({ id: r?.id });
102
103
  e.success && (K.value = e.data ?? {}, K.value.meta = {
103
- ...f,
104
+ ...m,
104
105
  ...e.data?.meta
105
106
  }, Z());
106
107
  }
@@ -108,8 +109,8 @@ var B = /* @__PURE__ */ v({
108
109
  Q(!1);
109
110
  }
110
111
  }
111
- let [fe, $] = t(!1);
112
- function pe() {
112
+ let [pe, $] = t(!1);
113
+ function me() {
113
114
  G.value?.validate().then(() => {
114
115
  let t = e({
115
116
  ...K.value,
@@ -121,93 +122,102 @@ var B = /* @__PURE__ */ v({
121
122
  ...t
122
123
  });
123
124
  $(!0), n.then((e) => {
124
- e?.success && (O.success(`${q.title}成功!`), W(!1), H("submit"));
125
+ e?.success && (A.success(`${q.title}成功!`), W(!1), H("submit"));
125
126
  }).finally(() => $(!1));
126
127
  });
127
128
  }
128
- return C({ open: de }), (e, t) => {
129
- let n = D, r = ie, i = A, a = L, c = se, l = M, d = ae, f = oe, p = R, v = I, x = N, S = re, C = F, O = k, B = P, V = j;
130
- return b(), m(V, {
131
- open: T(U),
132
- "onUpdate:open": t[12] ||= (e) => y(U) ? U.value = e : null,
129
+ return T({ open: fe }), (e, t) => {
130
+ let n = k, r = oe, i = re, a = L, c = j, l = M, p = se, m = ce, h = R, b = I, C = N, w = ae, T = F, A = ne, B = P, V = ie;
131
+ return S(), g(V, {
132
+ open: D(U),
133
+ "onUpdate:open": t[13] ||= (e) => x(U) ? U.value = e : null,
133
134
  title: q.title,
134
135
  placement: "right",
135
136
  width: 800,
136
137
  "destroy-on-close": "",
137
138
  "footer-style": { textAlign: "right" }
138
139
  }, {
139
- footer: E(() => [_(B, null, {
140
- default: E(() => [_(O, { onClick: t[10] ||= (e) => T(W)(!1) }, {
141
- default: E(() => t[14] ||= [g(" 取消 ")]),
140
+ footer: O(() => [y(B, null, {
141
+ default: O(() => [y(A, { onClick: t[11] ||= (e) => D(W)(!1) }, {
142
+ default: O(() => t[15] ||= [v(" 取消 ")]),
142
143
  _: 1,
143
- __: [14]
144
- }), _(O, {
144
+ __: [15]
145
+ }), y(A, {
145
146
  type: "primary",
146
- loading: T(fe),
147
- onClick: t[11] ||= (e) => pe()
147
+ loading: D(pe),
148
+ onClick: t[12] ||= (e) => me()
148
149
  }, {
149
- default: E(() => t[15] ||= [g(" 提交 ")]),
150
+ default: O(() => t[16] ||= [v(" 提交 ")]),
150
151
  _: 1,
151
- __: [15]
152
+ __: [16]
152
153
  }, 8, ["loading"])]),
153
154
  _: 1
154
155
  })]),
155
- default: E(() => [_(C, { spinning: T(ue) }, {
156
- default: E(() => [_(S, {
156
+ default: O(() => [y(T, { spinning: D(de) }, {
157
+ default: O(() => [y(w, {
157
158
  ref_key: "formRef",
158
159
  ref: G,
159
160
  model: K.value,
160
- rules: ce,
161
+ rules: le,
161
162
  "label-col": { style: { width: "100px" } }
162
163
  }, {
163
- default: E(() => [
164
- _(l, { gutter: 8 }, {
165
- default: E(() => [J.value?.name ? (b(), m(i, {
166
- key: 0,
167
- span: 24
168
- }, {
169
- default: E(() => [_(r, { name: "parentId" }, {
170
- label: E(() => [_(n, { class: "mr-1" }), t[13] ||= g(" 父资源 ")]),
171
- default: E(() => [g(" " + w(J.value?.name), 1)]),
172
- _: 1
173
- })]),
174
- _: 1
175
- })) : h("v-if", !0), _(i, { span: 24 }, {
176
- default: E(() => [_(r, {
177
- label: "资源类型",
178
- name: "type"
164
+ default: O(() => [
165
+ y(l, { gutter: 8 }, {
166
+ default: O(() => [y(i, { span: 12 }, {
167
+ default: O(() => [J.value?.name ? (S(), g(i, {
168
+ key: 0,
169
+ span: 24
179
170
  }, {
180
- default: E(() => [q.title === T(o).EDIT ? (b(), ne("div", z, [h(" <PubinfoIcon v-if=\"form.type\" :name=\"`resource-${RESOURCE_ICON[Number(form.type)]}`\" class=\"text-xl\" />\n <span>\n {{ resourceComputedOptions.find(e => e.value === form.type)?.label }}\n </span> "), K.value.type ? (b(), m(a, {
181
- key: 0,
182
- color: T(s)[Number(K.value.type)],
183
- bordered: !1
171
+ default: O(() => [y(r, { name: "parentId" }, {
172
+ label: O(() => [y(n, { class: "mr-1" }), t[14] ||= v(" 父资源 ")]),
173
+ default: O(() => [v(" " + E(J.value?.name), 1)]),
174
+ _: 1
175
+ })]),
176
+ _: 1
177
+ })) : _("v-if", !0), y(i, { span: 24 }, {
178
+ default: O(() => [y(r, {
179
+ label: "资源类型",
180
+ name: "type"
184
181
  }, {
185
- default: E(() => [g(w(Y.value.find((e) => e.value === K.value.type)?.label), 1)]),
182
+ default: O(() => [q.title === D(o).EDIT ? (S(), te("div", z, [_(" <PubinfoIcon v-if=\"form.type\" :name=\"`resource-${RESOURCE_ICON[Number(form.type)]}`\" class=\"text-xl\" />\n <span>\n {{ resourceComputedOptions.find(e => e.value === form.type)?.label }}\n </span> "), K.value.type ? (S(), g(a, {
183
+ key: 0,
184
+ color: D(s)[Number(K.value.type)],
185
+ bordered: !1
186
+ }, {
187
+ default: O(() => [v(E(Y.value.find((e) => e.value === K.value.type)?.label), 1)]),
188
+ _: 1
189
+ }, 8, ["color"])) : _("v-if", !0)])) : (S(), g(c, {
190
+ key: 1,
191
+ value: K.value.type,
192
+ "onUpdate:value": t[0] ||= (e) => K.value.type = e,
193
+ options: Y.value,
194
+ "option-type": "button",
195
+ "button-style": "solid"
196
+ }, null, 8, ["value", "options"]))]),
186
197
  _: 1
187
- }, 8, ["color"])) : h("v-if", !0)])) : (b(), m(c, {
188
- key: 1,
189
- value: K.value.type,
190
- "onUpdate:value": t[0] ||= (e) => K.value.type = e,
191
- options: Y.value,
192
- "option-type": "button",
193
- "button-style": "solid"
194
- }, null, 8, ["value", "options"]))]),
198
+ })]),
195
199
  _: 1
196
200
  })]),
197
201
  _: 1
202
+ }), y(i, { span: 12 }, {
203
+ default: O(() => [y(d, {
204
+ modelValue: K.value,
205
+ "onUpdate:modelValue": t[1] ||= (e) => K.value = e
206
+ }, null, 8, ["modelValue"])]),
207
+ _: 1
198
208
  })]),
199
209
  _: 1
200
210
  }),
201
- _(l, { gutter: 8 }, {
202
- default: E(() => [
203
- _(i, { span: 12 }, {
204
- default: E(() => [_(r, {
211
+ y(l, { gutter: 8 }, {
212
+ default: O(() => [
213
+ y(i, { span: 12 }, {
214
+ default: O(() => [y(r, {
205
215
  label: "资源名称",
206
216
  name: "name"
207
217
  }, {
208
- default: E(() => [_(d, {
218
+ default: O(() => [y(p, {
209
219
  value: K.value.name,
210
- "onUpdate:value": t[1] ||= (e) => K.value.name = e,
220
+ "onUpdate:value": t[2] ||= (e) => K.value.name = e,
211
221
  placeholder: "请输入资源名称",
212
222
  maxlength: 128
213
223
  }, null, 8, ["value"])]),
@@ -215,19 +225,19 @@ var B = /* @__PURE__ */ v({
215
225
  })]),
216
226
  _: 1
217
227
  }),
218
- _(te, {
228
+ y(u, {
219
229
  modelValue: K.value,
220
- "onUpdate:modelValue": t[2] ||= (e) => K.value = e,
230
+ "onUpdate:modelValue": t[3] ||= (e) => K.value = e,
221
231
  parent: J.value
222
232
  }, null, 8, ["modelValue", "parent"]),
223
- _(i, { span: 12 }, {
224
- default: E(() => [_(r, {
233
+ y(i, { span: 12 }, {
234
+ default: O(() => [y(r, {
225
235
  label: "资源编码",
226
236
  name: "code"
227
237
  }, {
228
- default: E(() => [_(d, {
238
+ default: O(() => [y(p, {
229
239
  value: K.value.code,
230
- "onUpdate:value": t[3] ||= (e) => K.value.code = e,
240
+ "onUpdate:value": t[4] ||= (e) => K.value.code = e,
231
241
  placeholder: "请输入资源编码(权限码)",
232
242
  maxlength: 50
233
243
  }, null, 8, ["value"])]),
@@ -235,14 +245,14 @@ var B = /* @__PURE__ */ v({
235
245
  })]),
236
246
  _: 1
237
247
  }),
238
- _(i, { span: 12 }, {
239
- default: E(() => [_(r, {
248
+ y(i, { span: 12 }, {
249
+ default: O(() => [y(r, {
240
250
  label: "接口权限",
241
251
  name: "permissionCode"
242
252
  }, {
243
- default: E(() => [_(d, {
253
+ default: O(() => [y(p, {
244
254
  value: K.value.permissionCode,
245
- "onUpdate:value": t[4] ||= (e) => K.value.permissionCode = e,
255
+ "onUpdate:value": t[5] ||= (e) => K.value.permissionCode = e,
246
256
  placeholder: "请输入接口权限(接口地址,多个使用逗号分隔)",
247
257
  maxlength: 256
248
258
  }, null, 8, ["value"])]),
@@ -250,14 +260,14 @@ var B = /* @__PURE__ */ v({
250
260
  })]),
251
261
  _: 1
252
262
  }),
253
- _(i, { span: 12 }, {
254
- default: E(() => [_(r, {
263
+ y(i, { span: 12 }, {
264
+ default: O(() => [y(r, {
255
265
  label: "显示顺序",
256
266
  name: "sort"
257
267
  }, {
258
- default: E(() => [_(f, {
268
+ default: O(() => [y(m, {
259
269
  value: K.value.sort,
260
- "onUpdate:value": t[5] ||= (e) => K.value.sort = e,
270
+ "onUpdate:value": t[6] ||= (e) => K.value.sort = e,
261
271
  max: 999
262
272
  }, null, 8, ["value"])]),
263
273
  _: 1
@@ -267,16 +277,16 @@ var B = /* @__PURE__ */ v({
267
277
  ]),
268
278
  _: 1
269
279
  }),
270
- _(l, { gutter: 8 }, {
271
- default: E(() => [_(i, { span: 24 }, {
272
- default: E(() => [_(r, {
280
+ y(l, { gutter: 8 }, {
281
+ default: O(() => [y(i, { span: 24 }, {
282
+ default: O(() => [y(r, {
273
283
  label: "描述",
274
284
  name: "description",
275
285
  "label-col": { span: 3 }
276
286
  }, {
277
- default: E(() => [_(p, {
287
+ default: O(() => [y(h, {
278
288
  value: K.value.description,
279
- "onUpdate:value": t[6] ||= (e) => K.value.description = e,
289
+ "onUpdate:value": t[7] ||= (e) => K.value.description = e,
280
290
  placeholder: "请输入描述",
281
291
  maxlength: 255,
282
292
  "auto-size": { minRows: 2 },
@@ -288,42 +298,42 @@ var B = /* @__PURE__ */ v({
288
298
  })]),
289
299
  _: 1
290
300
  }),
291
- T(X).dataPermission ? (b(), m(l, {
301
+ D(X).dataPermission ? (S(), g(l, {
292
302
  key: 0,
293
303
  gutter: 8
294
304
  }, {
295
- default: E(() => [_(i, { span: 8 }, {
296
- default: E(() => [_(r, {
305
+ default: O(() => [y(i, { span: 8 }, {
306
+ default: O(() => [y(r, {
297
307
  label: "启用数据权限",
298
308
  name: "enableDataPermission"
299
309
  }, {
300
- default: E(() => [_(v, {
310
+ default: O(() => [y(b, {
301
311
  checked: K.value.enableDataPermission,
302
- "onUpdate:checked": t[7] ||= (e) => K.value.enableDataPermission = e
312
+ "onUpdate:checked": t[8] ||= (e) => K.value.enableDataPermission = e
303
313
  }, null, 8, ["checked"])]),
304
314
  _: 1
305
315
  })]),
306
316
  _: 1
307
- }), _(i, { span: 16 }, {
308
- default: E(() => [K.value.enableDataPermission ? (b(), m(r, {
317
+ }), y(i, { span: 16 }, {
318
+ default: O(() => [K.value.enableDataPermission ? (S(), g(r, {
309
319
  key: 0,
310
320
  label: "数据权限规则",
311
321
  name: "dataPermissionType"
312
322
  }, {
313
- default: E(() => [_(x, {
323
+ default: O(() => [y(C, {
314
324
  value: K.value.dataPermissionType,
315
- "onUpdate:value": t[8] ||= (e) => K.value.dataPermissionType = e,
316
- options: T(ee)
325
+ "onUpdate:value": t[9] ||= (e) => K.value.dataPermissionType = e,
326
+ options: D(ee)
317
327
  }, null, 8, ["value", "options"])]),
318
328
  _: 1
319
- })) : h("v-if", !0)]),
329
+ })) : _("v-if", !0)]),
320
330
  _: 1
321
331
  })]),
322
332
  _: 1
323
- })) : h("v-if", !0),
324
- _(u, {
333
+ })) : _("v-if", !0),
334
+ y(f, {
325
335
  modelValue: K.value,
326
- "onUpdate:modelValue": t[9] ||= (e) => K.value = e
336
+ "onUpdate:modelValue": t[10] ||= (e) => K.value = e
327
337
  }, null, 8, ["modelValue"])
328
338
  ]),
329
339
  _: 1
@@ -0,0 +1,11 @@
1
+ import "./cloneDeep-BnvyNhik.js";
2
+ import "./ComponentSelect-Bhl9ciUm.js";
3
+ import "./_plugin-vue_export-helper-DziIhCOI.js";
4
+ import "./enum-CYW8g64p.js";
5
+ import "./enum-BMY6bmPA.js";
6
+ import "./DynamicRoutesForm-CE2RPs7y.js";
7
+ import "./HoverCard-B79q5sly.js";
8
+ import "./IconSelect-HAhfS6hd.js";
9
+ import "./MetaForm-DErrpELP.js";
10
+ import { b as e } from "./ResourceEdit-DF-2_zoi.js";
11
+ export { e as default };
@@ -1,3 +1,3 @@
1
1
  import "./_plugin-vue_export-helper-DziIhCOI.js";
2
- import { b as e } from "./ResourceRelation-CZ8hGgOm.js";
2
+ import { b as e } from "./ResourceRelation-B_4woLmP.js";
3
3
  export { e as default };
@@ -0,0 +1,2 @@
1
+ import { b as e } from "./RoleRelation-DXZxscPY.js";
2
+ export { e as default };
@@ -2,5 +2,5 @@ import "./cloneDeep-BnvyNhik.js";
2
2
  import "./_plugin-vue_export-helper-DziIhCOI.js";
3
3
  import "./enum-B1DCzyaW.js";
4
4
  import "./ResourceSelector-ConJ30Jd.js";
5
- import { b as e } from "./TenantEdit-DNJzo8SS.js";
5
+ import { b as e } from "./TenantEdit-B5_v0C8I.js";
6
6
  export { e as default };
@@ -1,4 +1,4 @@
1
1
  import "./_plugin-vue_export-helper-DziIhCOI.js";
2
2
  import "./RoleSelector-DOt30OLy.js";
3
- import { b as e } from "./UserAuthorization-DPHUk69M.js";
3
+ import { b as e } from "./UserAuthorization-DTgmWH5Q.js";
4
4
  export { e as default };
@@ -0,0 +1,4 @@
1
+ import "./cloneDeep-BnvyNhik.js";
2
+ import { b as e } from "./UserEdit-EOTBOUZu.js";
3
+ import "./OrgAndPosition-vnBrq-fn.js";
4
+ export { e as default };
@@ -1,6 +1,6 @@
1
1
  import { b as e } from "./cloneDeep-BnvyNhik.js";
2
2
  import { F as t, I as n, K as r, am as i, ao as a, ap as o, aq as s, ar as c, as as l, at as u, au as d, av as f } from "./index.js";
3
- import { b as p } from "./OrgAndPosition-DYxNkasL.js";
3
+ import { b as p } from "./OrgAndPosition-vnBrq-fn.js";
4
4
  import { createBlock as m, createElementBlock as h, createTextVNode as g, createVNode as _, defineComponent as v, isRef as y, openBlock as b, reactive as x, ref as S, resolveComponent as C, toDisplayString as w, unref as T, withCtx as E } from "vue";
5
5
  import { message as D } from "ant-design-vue";
6
6
  import { Button as O, Drawer as k, Form as A, FormItem as j, Input as M, RadioGroup as N, Space as P, Switch as F, Textarea as I } from "ant-design-vue/es";
@@ -0,0 +1,23 @@
1
+ type __VLS_Props = {
2
+ angle?: number | string;
3
+ background?: Background;
4
+ radius?: number | string;
5
+ disabled?: boolean;
6
+ };
7
+ type Background = string | {
8
+ from: string;
9
+ to: string;
10
+ };
11
+ declare const _default: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, {} & {
12
+ "update:angle": (v: string | number) => any;
13
+ "update:background": (v: Background) => any;
14
+ "update:radius": (v: string | number) => any;
15
+ }, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ "onUpdate:angle"?: ((v: string | number) => any) | undefined;
17
+ "onUpdate:background"?: ((v: Background) => any) | undefined;
18
+ "onUpdate:radius"?: ((v: string | number) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentProvideOptions, false, {
20
+ fromColorPickerRef: HTMLInputElement;
21
+ toColorPickerRef: HTMLInputElement;
22
+ }, HTMLDivElement>;
23
+ export default _default;
@@ -1,9 +1,55 @@
1
+ declare function handleOpenModal(): void;
1
2
  type __VLS_PublicProps = {
2
3
  modelValue?: string;
4
+ 'boxType'?: 'null' | 'square' | 'prism';
5
+ 'angle'?: number | string;
6
+ 'background'?: string | {
7
+ from: string;
8
+ to: string;
9
+ };
10
+ 'radius'?: number | string;
11
+ 'iconColor'?: string;
3
12
  };
4
- declare const _default: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, {
13
+ declare function __VLS_template(): {
14
+ attrs: Partial<{}>;
15
+ slots: {
16
+ default?(_: {
17
+ open: typeof handleOpenModal;
18
+ }): any;
19
+ };
20
+ refs: {
21
+ iconColorPickerRef: HTMLInputElement;
22
+ };
23
+ rootEl: any;
24
+ };
25
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
+ declare const __VLS_component: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, {
5
27
  "update:modelValue": (value: string) => any;
28
+ "update:angle": (value: string | number) => any;
29
+ "update:background": (value: string | {
30
+ from: string;
31
+ to: string;
32
+ }) => any;
33
+ "update:radius": (value: string | number) => any;
34
+ "update:boxType": (value: "square" | "null" | "prism") => any;
35
+ "update:iconColor": (value: string) => any;
6
36
  }, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
7
37
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
8
- }>, {}, {}, {}, {}, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentProvideOptions, false, {}, any>;
38
+ "onUpdate:angle"?: ((value: string | number) => any) | undefined;
39
+ "onUpdate:background"?: ((value: string | {
40
+ from: string;
41
+ to: string;
42
+ }) => any) | undefined;
43
+ "onUpdate:radius"?: ((value: string | number) => any) | undefined;
44
+ "onUpdate:boxType"?: ((value: "square" | "null" | "prism") => any) | undefined;
45
+ "onUpdate:iconColor"?: ((value: string) => any) | undefined;
46
+ }>, {}, {}, {}, {}, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentProvideOptions, false, {
47
+ iconColorPickerRef: HTMLInputElement;
48
+ }, any>;
49
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
9
50
  export default _default;
51
+ type __VLS_WithTemplateSlots<T, S> = T & {
52
+ new (): {
53
+ $slots: S;
54
+ };
55
+ };
@@ -11,15 +11,24 @@ export interface SelectedResourceInfo {
11
11
  name: string;
12
12
  }
13
13
  export default function useAppAndResource(mode?: ResourceMode): {
14
- appList: Ref<API.PubResource[] | {
14
+ appList: globalThis.Ref<API.PubResource[] | {
15
15
  label: string | undefined;
16
16
  value: string | undefined;
17
+ }[], API.PubResource[] | {
18
+ label: string | undefined;
19
+ value: string | undefined;
20
+ }[]>;
21
+ resourceModelRef: globalThis.Ref<any, any>;
22
+ treeData: globalThis.Ref<TreeNode[], TreeNode[]>;
23
+ resourceMap: globalThis.Ref<StringMap<string>, StringMap<string>>;
24
+ selectedResources: globalThis.Ref<{
25
+ id: string;
26
+ name: string;
27
+ }[], SelectedResourceInfo[] | {
28
+ id: string;
29
+ name: string;
17
30
  }[]>;
18
- resourceModelRef: any;
19
- treeData: Ref<TreeNode[]>;
20
- resourceMap: Ref<StringMap<string>>;
21
- selectedResources: any;
22
- isDataPermissionMode: any;
31
+ isDataPermissionMode: globalThis.ComputedRef<boolean>;
23
32
  getAppList: () => void;
24
33
  updateTreeDataAndResourceMap: (appId: string) => Promise<void>;
25
34
  setSelectedResources: (resources: SelectedResourceInfo[]) => void;
@@ -1,13 +1,77 @@
1
1
  export type Role = API.PubRole;
2
2
  export declare function useRole(): {
3
- loading: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ShallowRef<boolean>;
3
+ loading: globalThis.ShallowRef<boolean>;
4
4
  setLoading: (value?: boolean | undefined) => boolean;
5
- roles: any;
5
+ roles: globalThis.Ref<{
6
+ id?: string | undefined;
7
+ name?: string | undefined;
8
+ code?: string | undefined;
9
+ description?: string | undefined;
10
+ enable?: boolean | undefined;
11
+ createdBy?: string | undefined;
12
+ createTime?: string | undefined;
13
+ updatedBy?: string | undefined;
14
+ updateTime?: string | undefined;
15
+ deleted?: boolean | undefined;
16
+ viewScope?: string | undefined;
17
+ createOrgId?: string | undefined;
18
+ createOrgName?: string | undefined;
19
+ appId?: string | undefined;
20
+ tenantId?: string | undefined;
21
+ }[], API.PubRole[] | {
22
+ id?: string | undefined;
23
+ name?: string | undefined;
24
+ code?: string | undefined;
25
+ description?: string | undefined;
26
+ enable?: boolean | undefined;
27
+ createdBy?: string | undefined;
28
+ createTime?: string | undefined;
29
+ updatedBy?: string | undefined;
30
+ updateTime?: string | undefined;
31
+ deleted?: boolean | undefined;
32
+ viewScope?: string | undefined;
33
+ createOrgId?: string | undefined;
34
+ createOrgName?: string | undefined;
35
+ appId?: string | undefined;
36
+ tenantId?: string | undefined;
37
+ }[]>;
6
38
  getData: () => Promise<void>;
7
39
  };
8
40
  export declare function useRoleGroup(): {
9
- loading: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ShallowRef<boolean>;
41
+ loading: globalThis.ShallowRef<boolean>;
10
42
  setLoading: (value?: boolean | undefined) => boolean;
11
- roles: any;
43
+ roles: globalThis.Ref<{
44
+ id?: string | undefined;
45
+ name?: string | undefined;
46
+ code?: string | undefined;
47
+ description?: string | undefined;
48
+ enable?: boolean | undefined;
49
+ createdBy?: string | undefined;
50
+ createTime?: string | undefined;
51
+ updatedBy?: string | undefined;
52
+ updateTime?: string | undefined;
53
+ deleted?: boolean | undefined;
54
+ viewScope?: string | undefined;
55
+ createOrgId?: string | undefined;
56
+ createOrgName?: string | undefined;
57
+ appId?: string | undefined;
58
+ tenantId?: string | undefined;
59
+ }[], API.PubRole[] | {
60
+ id?: string | undefined;
61
+ name?: string | undefined;
62
+ code?: string | undefined;
63
+ description?: string | undefined;
64
+ enable?: boolean | undefined;
65
+ createdBy?: string | undefined;
66
+ createTime?: string | undefined;
67
+ updatedBy?: string | undefined;
68
+ updateTime?: string | undefined;
69
+ deleted?: boolean | undefined;
70
+ viewScope?: string | undefined;
71
+ createOrgId?: string | undefined;
72
+ createOrgName?: string | undefined;
73
+ appId?: string | undefined;
74
+ tenantId?: string | undefined;
75
+ }[]>;
12
76
  getData: (id: string) => Promise<void>;
13
77
  };