@pubinfo/module-rbac 2.0.11 → 2.0.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.
Files changed (87) hide show
  1. package/dist/{IconSelect-CkqLR5Dg.js → IconSelect-Cco4lJFZ.js} +1 -1
  2. package/dist/IconSelect.css +1 -1
  3. package/dist/IconSelect.vue_vue_type_script_setup_true_lang-C9GJFjrV.js +757 -0
  4. package/dist/LayoutForm-DqDnsQcr.js +173 -0
  5. package/dist/LayoutForm.css +1 -0
  6. package/dist/{MetaForm-DtlyvzoM.js → MetaForm-s74FbAc9.js} +51 -43
  7. package/dist/{ResourceEdit-WpEdbzaw.js → ResourceEdit-CNYAteRE.js} +1 -1
  8. package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-BLqs77A8.js +433 -0
  9. package/dist/{ResourceRelation-DGiGYy6V.js → ResourceRelation-CeM9Eq39.js} +10 -11
  10. package/dist/{ResourceRelation-26FnHEfU.js → ResourceRelation-qhIdXLAy.js} +12 -13
  11. package/dist/{TenantEdit-B24X5nND.js → TenantEdit-C61O1pSu.js} +1 -1
  12. package/dist/{TenantEdit.vue_vue_type_script_setup_true_lang-Bu5HcJJv.js → TenantEdit.vue_vue_type_script_setup_true_lang-BwsA9hth.js} +39 -40
  13. package/dist/{UserAuthorization-Co6JV0py.js → UserAuthorization-rqttVub5.js} +9 -10
  14. package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +1 -1
  15. package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +1 -1
  16. package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +3 -0
  17. package/dist/components/ResourceIcones/Select.vue.d.ts +3 -0
  18. package/dist/{createAndEditDataPermission-BhOLGGna.js → createAndEditDataPermission-DPeFulie.js} +1 -1
  19. package/dist/{createAndEditDataPermission.vue_vue_type_script_setup_true_lang-D5wInKwO.js → createAndEditDataPermission.vue_vue_type_script_setup_true_lang-DlUIYtif.js} +98 -101
  20. package/dist/{drawerRole-DHLv47_z.js → drawerRole-CXGVqxPX.js} +1 -1
  21. package/dist/{drawerRole-DUWRM43j.js → drawerRole-CfJjf3v_.js} +1 -1
  22. package/dist/{drawerRole.vue_vue_type_script_setup_true_lang-BET5ukoo.js → drawerRole.vue_vue_type_script_setup_true_lang-B-VZS3gq.js} +42 -43
  23. package/dist/{drawerRole.vue_vue_type_script_setup_true_lang-BK3zjhop.js → drawerRole.vue_vue_type_script_setup_true_lang-B1eT0e_Q.js} +1 -1
  24. package/dist/{index-Csfu3kAr.js → index-B5aP0re3.js} +6 -7
  25. package/dist/{index-DwpOyfRe.js → index-BEB4liGe.js} +8 -9
  26. package/dist/{index-DfuGXjYh.js → index-BNwGLzXe.js} +21 -22
  27. package/dist/{index-ioZh8Qom.js → index-BXvJhqJD.js} +6 -7
  28. package/dist/{index-DdoOaWs-.js → index-BsZjgoZQ.js} +1 -1
  29. package/dist/{index-BFx8F5lO.js → index-C2G4xRrJ.js} +8 -9
  30. package/dist/{index-x9Iim2eD.js → index-C5WD-YUu.js} +7 -8
  31. package/dist/{index-rNYtJ7Om.js → index-CbVJdR5M.js} +6 -7
  32. package/dist/{index-DECno0gv.js → index-ChWnVs6j.js} +2 -2
  33. package/dist/{index-C9hHp4Iw.js → index-CoZM8pyH.js} +1 -1
  34. package/dist/{index-B2tTTlBE.js → index-Copy5kiW.js} +276 -273
  35. package/dist/index-D3Xw_aOi.js +144 -0
  36. package/dist/{index-CCw3ZJgQ.js → index-DHVEXch0.js} +8 -9
  37. package/dist/{index-COWUocfL.js → index-Dl0hWfIE.js} +7 -8
  38. package/dist/{index-BIpmC999.js → index-En8oOf9e.js} +8 -9
  39. package/dist/{index-ZQuRR9fG.js → index-VZuizuKs.js} +1 -1
  40. package/dist/{index-BwWrE3dY.js → index-XhYtVVT9.js} +6 -7
  41. package/dist/{index-BUmMaC21.js → index-nAPHtTM7.js} +5 -6
  42. package/dist/{index-y9CQTo95.js → index-qn7U9T51.js} +9 -10
  43. package/dist/index.d.ts +1 -0
  44. package/dist/index.js +2588 -2289
  45. package/dist/index10.css +1 -1
  46. package/dist/index11.css +1 -1
  47. package/dist/index12.css +1 -1
  48. package/dist/index13.css +1 -1
  49. package/dist/index14.css +1 -1
  50. package/dist/index15.css +1 -1
  51. package/dist/index16.css +1 -1
  52. package/dist/index17.css +1 -1
  53. package/dist/index4.css +1 -1
  54. package/dist/index5.css +1 -1
  55. package/dist/index6.css +1 -1
  56. package/dist/index7.css +1 -1
  57. package/dist/index8.css +1 -1
  58. package/dist/index9.css +1 -1
  59. package/dist/{loginHistoryDetail-B6eI-TmJ.js → loginHistoryDetail-BZVwG8m2.js} +1 -1
  60. package/dist/{login_history-B4Q1NCJn.js → login_history-CMZGS2PN.js} +5 -6
  61. package/dist/{operateHistoryDetail-CLZ9lyua.js → operateHistoryDetail-Badx3zl-.js} +1 -1
  62. package/dist/{operate_history-KASZ7_JO.js → operate_history-B42WNY1u.js} +5 -6
  63. package/dist/{setItem-BwMHXOUm.js → setItem-Blb3dox4.js} +1 -1
  64. package/dist/{useAppAndResource-38HCqYKa.js → useAppAndResource-DDywX2iz.js} +11 -12
  65. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +3 -3
  66. package/dist/views/data-permission/index.vue.d.ts +3 -3
  67. package/dist/views/resource/components/LayoutForm.vue.d.ts +10 -0
  68. package/dist/views/resource/hooks/useLayoutForm.d.ts +12 -0
  69. package/dist/views/resource/model.d.ts +12 -0
  70. package/package.json +3 -3
  71. package/src/components/ResourceIcones/BoxColorPicker.vue +64 -8
  72. package/src/components/ResourceIcones/Select.vue +13 -5
  73. package/src/index.ts +1 -0
  74. package/src/views/organization/index.vue +17 -10
  75. package/src/views/resource/components/IconSelect.vue +6 -2
  76. package/src/views/resource/components/LayoutForm.vue +92 -0
  77. package/src/views/resource/components/ResourceEdit.vue +24 -0
  78. package/src/views/resource/hooks/useLayoutForm.ts +57 -0
  79. package/src/views/resource/hooks/useMetaForm.ts +2 -0
  80. package/src/views/resource/model.ts +21 -1
  81. package/dist/IconSelect.vue_vue_type_script_setup_true_lang-BoGxAoNd.js +0 -703
  82. package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-id6jZAko.js +0 -392
  83. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  84. package/dist/enum-CTUzwCYG.js +0 -4
  85. package/dist/index-53oBz1jp.js +0 -299
  86. package/dist/index-DVt5k9xh.js +0 -145
  87. package/dist/index18.css +0 -1
@@ -1,10 +1,9 @@
1
- import { Drawer as X, Form as Y, FormItem as Z, Input as ee, Select as te, Switch as oe, Textarea as ne, Button as ae, Tooltip as le, Space as re } from "ant-design-vue/es";
2
- import { defineComponent as se, reactive as ue, ref as y, createBlock as S, openBlock as p, unref as n, isRef as ie, withCtx as l, createVNode as a, createElementVNode as E, createTextVNode as g, createElementBlock as v, Fragment as I, renderList as ce, toDisplayString as h } from "vue";
1
+ import { Drawer as X, Form as Y, FormItem as Z, Input as ee, Select as te, Switch as oe, Textarea as ne, Button as le, Tooltip as ae, Space as re } from "ant-design-vue/es";
2
+ import { defineComponent as se, reactive as ue, ref as y, createBlock as S, openBlock as p, unref as n, isRef as ie, withCtx as a, createVNode as l, createElementVNode as E, createTextVNode as g, createElementBlock as v, Fragment as I, renderList as ce, toDisplayString as h } from "vue";
3
3
  import { message as pe } from "ant-design-vue";
4
- import { u as D } from "./index.js";
5
- import { b as de, c as me, d as fe } from "./jiaosejiekou-p42Hm9h3.js";
6
- import { u as _e } from "./useAppAndResource-38HCqYKa.js";
7
- import { _ as ge } from "./index-53oBz1jp.js";
4
+ import { u as D, ResourceSelector as de } from "./index.js";
5
+ import { b as me, c as fe, d as _e } from "./jiaosejiekou-p42Hm9h3.js";
6
+ import { u as ge } from "./useAppAndResource-DDywX2iz.js";
8
7
  var d = /* @__PURE__ */ ((u) => (u.ADD = "新增", u.EDIT = "修改", u.REMOVE = "删除", u.RESOURCE_RELATION = "分配查看", u))(d || {});
9
8
  const ve = [
10
9
  {
@@ -20,7 +19,7 @@ const ve = [
20
19
  ], be = { class: "pt-10px" }, Re = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, xe = {
21
20
  key: 1,
22
21
  class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
23
- }, De = /* @__PURE__ */ se({
22
+ }, he = /* @__PURE__ */ se({
24
23
  name: "DrawerRole",
25
24
  __name: "drawerRole",
26
25
  emits: ["submit"],
@@ -33,7 +32,7 @@ const ve = [
33
32
  updateSelectedResources: V,
34
33
  clearSelectedResources: B,
35
34
  openResourceModel: R
36
- } = _e(), C = {
35
+ } = ge(), C = {
37
36
  name: [
38
37
  { required: !0, message: "请输入名称", trigger: "change" },
39
38
  { min: 2, max: 32, message: "角色名称长度不能少于2位,不能超过32位", trigger: "change" }
@@ -54,7 +53,7 @@ const ve = [
54
53
  }), [m, f] = D(!1), x = y(), t = y({ enable: !0 });
55
54
  async function L(r, e) {
56
55
  if (c.title = r, r === d.EDIT) {
57
- const s = await de({ id: e?.id });
56
+ const s = await me({ id: e?.id });
58
57
  s.success && (t.value = s.data ?? {}, await b(""), t.value.resourceIds && V(t.value.resourceIds));
59
58
  } else
60
59
  t.value = {
@@ -64,7 +63,7 @@ const ve = [
64
63
  }
65
64
  const [O, w] = D(!1);
66
65
  function j() {
67
- const r = c.title === d.EDIT ? me : fe;
66
+ const r = c.title === d.EDIT ? fe : _e;
68
67
  x.value?.validate().then(() => {
69
68
  w(!0);
70
69
  const e = { ...t.value };
@@ -87,7 +86,7 @@ const ve = [
87
86
  return F({
88
87
  open: L
89
88
  }), (r, e) => {
90
- const s = ee, i = Z, z = te, G = oe, H = ne, _ = ae, J = le, K = Y, Q = re, W = X;
89
+ const s = ee, i = Z, z = te, G = oe, H = ne, _ = le, J = ae, K = Y, Q = re, W = X;
91
90
  return p(), S(W, {
92
91
  open: n(m),
93
92
  "onUpdate:open": e[6] || (e[6] = (o) => ie(m) ? m.value = o : null),
@@ -98,22 +97,22 @@ const ve = [
98
97
  "footer-style": { textAlign: "right" },
99
98
  onClose: k
100
99
  }, {
101
- footer: l(() => [
102
- a(Q, null, {
103
- default: l(() => [
104
- a(_, { onClick: k }, {
105
- default: l(() => e[8] || (e[8] = [
100
+ footer: a(() => [
101
+ l(Q, null, {
102
+ default: a(() => [
103
+ l(_, { onClick: k }, {
104
+ default: a(() => e[8] || (e[8] = [
106
105
  g(" 取消 ")
107
106
  ])),
108
107
  _: 1,
109
108
  __: [8]
110
109
  }),
111
- a(_, {
110
+ l(_, {
112
111
  type: "primary",
113
112
  loading: n(O),
114
113
  onClick: e[5] || (e[5] = (o) => j())
115
114
  }, {
116
- default: l(() => e[9] || (e[9] = [
115
+ default: a(() => e[9] || (e[9] = [
117
116
  g(" 提交 ")
118
117
  ])),
119
118
  _: 1,
@@ -123,21 +122,21 @@ const ve = [
123
122
  _: 1
124
123
  })
125
124
  ]),
126
- default: l(() => [
127
- a(K, {
125
+ default: a(() => [
126
+ l(K, {
128
127
  ref_key: "formRef",
129
128
  ref: x,
130
129
  model: n(t),
131
130
  rules: C,
132
131
  "label-col": { span: 4 }
133
132
  }, {
134
- default: l(() => [
135
- a(i, {
133
+ default: a(() => [
134
+ l(i, {
136
135
  label: "角色名称",
137
136
  name: "name"
138
137
  }, {
139
- default: l(() => [
140
- a(s, {
138
+ default: a(() => [
139
+ l(s, {
141
140
  value: n(t).name,
142
141
  "onUpdate:value": e[0] || (e[0] = (o) => n(t).name = o),
143
142
  maxlength: 32
@@ -145,12 +144,12 @@ const ve = [
145
144
  ]),
146
145
  _: 1
147
146
  }),
148
- a(i, {
147
+ l(i, {
149
148
  label: "角色编号",
150
149
  name: "code"
151
150
  }, {
152
- default: l(() => [
153
- a(s, {
151
+ default: a(() => [
152
+ l(s, {
154
153
  value: n(t).code,
155
154
  "onUpdate:value": e[1] || (e[1] = (o) => n(t).code = o),
156
155
  disabled: n(c).title === n(d).EDIT,
@@ -159,12 +158,12 @@ const ve = [
159
158
  ]),
160
159
  _: 1
161
160
  }),
162
- a(i, {
161
+ l(i, {
163
162
  label: "可见范围",
164
163
  name: "viewScope"
165
164
  }, {
166
- default: l(() => [
167
- a(z, {
165
+ default: a(() => [
166
+ l(z, {
168
167
  value: n(t).viewScope,
169
168
  "onUpdate:value": e[2] || (e[2] = (o) => n(t).viewScope = o),
170
169
  options: n(ve)
@@ -172,18 +171,18 @@ const ve = [
172
171
  ]),
173
172
  _: 1
174
173
  }),
175
- a(i, { label: "是否启用" }, {
176
- default: l(() => [
177
- a(G, {
174
+ l(i, { label: "是否启用" }, {
175
+ default: a(() => [
176
+ l(G, {
178
177
  checked: n(t).enable,
179
178
  "onUpdate:checked": e[3] || (e[3] = (o) => n(t).enable = o)
180
179
  }, null, 8, ["checked"])
181
180
  ]),
182
181
  _: 1
183
182
  }),
184
- a(i, { label: "角色描述" }, {
185
- default: l(() => [
186
- a(H, {
183
+ l(i, { label: "角色描述" }, {
184
+ default: a(() => [
185
+ l(H, {
187
186
  value: n(t).description,
188
187
  "onUpdate:value": e[4] || (e[4] = (o) => n(t).description = o),
189
188
  maxlength: 250,
@@ -192,16 +191,16 @@ const ve = [
192
191
  ]),
193
192
  _: 1
194
193
  }),
195
- a(i, {
194
+ l(i, {
196
195
  label: "所属资源",
197
196
  name: "resourceIds"
198
197
  }, {
199
- default: l(() => [
200
- a(_, {
198
+ default: a(() => [
199
+ l(_, {
201
200
  type: "primary",
202
201
  onClick: P
203
202
  }, {
204
- default: l(() => e[7] || (e[7] = [
203
+ default: a(() => e[7] || (e[7] = [
205
204
  g(" 编辑资源 ")
206
205
  ])),
207
206
  _: 1,
@@ -213,7 +212,7 @@ const ve = [
213
212
  key: 0,
214
213
  title: o.name
215
214
  }, {
216
- default: l(() => [
215
+ default: a(() => [
217
216
  E("span", Re, h(`${o.name.slice(0, 20)}...`), 1)
218
217
  ]),
219
218
  _: 2
@@ -226,7 +225,7 @@ const ve = [
226
225
  ]),
227
226
  _: 1
228
227
  }, 8, ["model"]),
229
- a(ge, {
228
+ l(de, {
230
229
  ref_key: "resourceModelRef",
231
230
  ref: q,
232
231
  onSelect: N
@@ -239,6 +238,6 @@ const ve = [
239
238
  });
240
239
  export {
241
240
  d as A,
242
- De as _,
241
+ he as _,
243
242
  ve as k
244
243
  };
@@ -3,7 +3,7 @@ import { defineComponent as Q, reactive as W, ref as c, createBlock as b, openBl
3
3
  import { message as Y } from "ant-design-vue";
4
4
  import { u as S } from "./index.js";
5
5
  import { g as Z, p as ee } from "./zuzhijiaosebiaokongzhiqi-Cj4ZjkfZ.js";
6
- import { u as te } from "./useAppAndResource-38HCqYKa.js";
6
+ import { u as te } from "./useAppAndResource-DDywX2iz.js";
7
7
  import { _ as oe } from "./RoleSelector.vue_vue_type_script_setup_true_lang-ZwsINUBu.js";
8
8
  const ne = { class: "mt-2px" }, le = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, ae = {
9
9
  key: 1,
@@ -3,10 +3,9 @@ import { useTheme as F, useSettingsStore as z, PubinfoIcon as B } from "pubinfo"
3
3
  import { defineComponent as L, computed as h, createElementBlock as r, openBlock as c, createElementVNode as e, createVNode as _, unref as a, toDisplayString as v, Fragment as m, renderList as g, normalizeClass as N, createBlock as j, createCommentVNode as E, normalizeStyle as u } from "vue";
4
4
  import { message as I } from "ant-design-vue";
5
5
  import { getThemes as O } from "pubinfo/client";
6
- import "./index.js";
7
- import { p as V } from "./xitongpeizhifuwu-BoCbGEk7.js";
8
- import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- import './index14.css';const $ = {
6
+ import { _ as V } from "./index.js";
7
+ import { p as P } from "./xitongpeizhifuwu-BoCbGEk7.js";
8
+ import './index13.css';const $ = {
10
9
  "w-full": "",
11
10
  "h-full": "",
12
11
  "p-10px": "",
@@ -59,7 +58,7 @@ import './index14.css';const $ = {
59
58
  }
60
59
  async function b(i) {
61
60
  const t = JSON.stringify(i);
62
- await V({ content: t }).then((s) => {
61
+ await P({ content: t }).then((s) => {
63
62
  s.success && I.success("设置成功");
64
63
  });
65
64
  }
@@ -165,7 +164,7 @@ import './index14.css';const $ = {
165
164
  ]);
166
165
  };
167
166
  }
168
- }), ge = /* @__PURE__ */ P(le, [["__scopeId", "data-v-516665af"]]);
167
+ }), me = /* @__PURE__ */ V(le, [["__scopeId", "data-v-516665af"]]);
169
168
  export {
170
- ge as default
169
+ me as default
171
170
  };