@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
@@ -4,7 +4,7 @@ import { message as z } from "ant-design-vue";
4
4
  import { PassStrengthValidator as H } from "pubinfo";
5
5
  import { u as K } from "./index.js";
6
6
  import { g as Q, a as X } from "./xitongpeizhifuwu-BoCbGEk7.js";
7
- import './index12.css';const Y = {
7
+ import './index11.css';const Y = {
8
8
  "w-full": "",
9
9
  "h-full": "",
10
10
  "pt-10px": "",
@@ -1,10 +1,9 @@
1
1
  import { useSettingsStore as x, PubinfoIcon as f } from "pubinfo";
2
2
  import { defineComponent as m, ref as u, reactive as v, createElementBlock as n, openBlock as a, createElementVNode as e, createVNode as g, Fragment as _, renderList as w, unref as c, normalizeClass as b, toDisplayString as h } from "vue";
3
3
  import { message as y } from "ant-design-vue";
4
- import "./index.js";
5
- import { p as k } from "./xitongpeizhifuwu-BoCbGEk7.js";
6
- import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- import './index11.css';const C = {
4
+ import { _ as k } from "./index.js";
5
+ import { p as S } from "./xitongpeizhifuwu-BoCbGEk7.js";
6
+ import './index10.css';const C = {
8
7
  "w-full": "",
9
8
  "h-full": "",
10
9
  "p-10px": ""
@@ -45,7 +44,7 @@ import './index11.css';const C = {
45
44
  widthMode: s
46
45
  }
47
46
  });
48
- k({ content: t }).then((i) => {
47
+ S({ content: t }).then((i) => {
49
48
  i.success && y.success("设置成功");
50
49
  });
51
50
  }
@@ -83,7 +82,7 @@ import './index11.css';const C = {
83
82
  ]);
84
83
  };
85
84
  }
86
- }), H = /* @__PURE__ */ S(B, [["__scopeId", "data-v-5d275d6b"]]);
85
+ }), $ = /* @__PURE__ */ k(B, [["__scopeId", "data-v-5d275d6b"]]);
87
86
  export {
88
- H as default
87
+ $ as default
89
88
  };
@@ -5,9 +5,8 @@ import { defineComponent as Q, ref as L, computed as u, resolveDirective as X, c
5
5
  import { ProTable as ee } from "@pubinfo/pro-components";
6
6
  import { message as V, Modal as te } from "ant-design-vue";
7
7
  import { _ as se, p as ae, a as le, g as ne } from "./drawerBlackWhiteList.vue_vue_type_script_setup_true_lang-BR6Yeiie.js";
8
- import { u as ie } from "./index.js";
9
- import { useRoute as oe } from "vue-router";
10
- import { _ as ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ import { u as ie, _ as oe } from "./index.js";
9
+ import { useRoute as ce } from "vue-router";
11
10
  import './index.css';var t = /* @__PURE__ */ ((o) => (o.ADD = "新增", o.EDIT = "编辑", o.REMOVE = "删除", o.ENABLE = "启用", o.DISABLE = "停用", o))(t || {});
12
11
  const re = {
13
12
  "w-full": "",
@@ -34,7 +33,7 @@ const re = {
34
33
  name: "BlackWhiteList",
35
34
  __name: "index",
36
35
  setup(o) {
37
- const M = oe(), y = L(M.path.includes("blacklist")), R = u(() => y.value ? 0 : 1), _ = u(() => y.value ? "blacklist" : "whitelist"), C = u(() => `${_.value}_add`), w = u(() => `${_.value}_edit`), $ = u(() => `${_.value}_delete`), S = u(() => `${_.value}_enable`), A = u(() => `${_.value}_disable`), {
36
+ const M = ce(), y = L(M.path.includes("blacklist")), R = u(() => y.value ? 0 : 1), _ = u(() => y.value ? "blacklist" : "whitelist"), C = u(() => `${_.value}_add`), w = u(() => `${_.value}_edit`), $ = u(() => `${_.value}_delete`), S = u(() => `${_.value}_enable`), A = u(() => `${_.value}_disable`), {
38
37
  auth: O
39
38
  } = F(), P = L(), D = L(), N = [{
40
39
  valueType: "a-input",
@@ -221,7 +220,7 @@ const re = {
221
220
  }, null, 8, ["type"])]);
222
221
  };
223
222
  }
224
- }), Se = /* @__PURE__ */ ce(ke, [["__scopeId", "data-v-f5caa334"]]);
223
+ }), $e = /* @__PURE__ */ oe(ke, [["__scopeId", "data-v-f5caa334"]]);
225
224
  export {
226
- Se as default
225
+ $e as default
227
226
  };
@@ -2,13 +2,12 @@ import { Card as H, Spin as Z, Empty as j, Tree as q, Row as F, Col as X, Space
2
2
  import { useAuth as K, PubinfoIcon as Q } from "pubinfo";
3
3
  import { PlusCircleOutlined as Y } from "@ant-design/icons-vue";
4
4
  import { defineComponent as N, ref as h, onMounted as ee, createBlock as C, openBlock as r, withCtx as l, createVNode as a, unref as n, mergeProps as te, createElementVNode as x, toDisplayString as R, resolveDirective as ne, createElementBlock as w, createCommentVNode as T, withDirectives as D, createTextVNode as ae, isVNode as se } from "vue";
5
- import { u as oe, l as re, x as le, y as ie, z as ce } from "./index.js";
6
- import { _ as ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ import { u as oe, l as re, _ as le, x as ie, y as ce, z as ue } from "./index.js";
7
6
  import { ProTable as de } from "@pubinfo/pro-components";
8
7
  import { Popover as pe, Space as _e, Badge as V, Modal as z, message as M } from "ant-design-vue";
9
- import fe from "./UserAuthorization-Co6JV0py.js";
8
+ import fe from "./UserAuthorization-rqttVub5.js";
10
9
  import { A as t, _ as me } from "./UserEdit.vue_vue_type_script_setup_true_lang-CFs0SxVJ.js";
11
- import './index16.css';const he = { class: "flex w-full items-center overflow-hidden" }, ge = ["title"], ve = /* @__PURE__ */ N({
10
+ import './index15.css';const he = { class: "flex w-full items-center overflow-hidden" }, ge = ["title"], ve = /* @__PURE__ */ N({
12
11
  name: "OrgTree",
13
12
  __name: "index",
14
13
  props: {
@@ -81,7 +80,7 @@ import './index16.css';const he = { class: "flex w-full items-center overflow-hi
81
80
  });
82
81
  };
83
82
  }
84
- }), Re = /* @__PURE__ */ ue(ve, [["__scopeId", "data-v-3c42fd2d"]]), xe = {
83
+ }), Re = /* @__PURE__ */ le(ve, [["__scopeId", "data-v-3c42fd2d"]]), xe = {
85
84
  "w-full": "",
86
85
  "h-full": "",
87
86
  "py-10px": "",
@@ -91,7 +90,7 @@ import './index16.css';const he = { class: "flex w-full items-center overflow-hi
91
90
  function Se(g) {
92
91
  return typeof g == "function" || Object.prototype.toString.call(g) === "[object Object]" && !se(g);
93
92
  }
94
- const Ve = /* @__PURE__ */ N({
93
+ const $e = /* @__PURE__ */ N({
95
94
  name: "User",
96
95
  __name: "index",
97
96
  setup(g) {
@@ -184,7 +183,7 @@ const Ve = /* @__PURE__ */ N({
184
183
  current: e,
185
184
  pageSize: c,
186
185
  ...E
187
- } = s, S = await le({
186
+ } = s, S = await ie({
188
187
  currentPage: e,
189
188
  pageSize: c,
190
189
  orgId: v.value?.orgId,
@@ -225,7 +224,7 @@ const Ve = /* @__PURE__ */ N({
225
224
  title: "重置密码",
226
225
  content: "确定要重置该用户密码吗?",
227
226
  async onOk() {
228
- (await ce({
227
+ (await ue({
229
228
  userId: e?.id
230
229
  })).success && M.success("重置密码成功");
231
230
  }
@@ -237,7 +236,7 @@ const Ve = /* @__PURE__ */ N({
237
236
  title: "删除",
238
237
  content: `确定要删除该用户吗?${c ? "该用户存在多个组织下,若只需移除组织,请在编辑中操作。" : ""}`,
239
238
  async onOk() {
240
- (await ie({
239
+ (await ce({
241
240
  userId: e?.id
242
241
  })).success && (M.success("删除成功"), _());
243
242
  }
@@ -347,5 +346,5 @@ const Ve = /* @__PURE__ */ N({
347
346
  }
348
347
  });
349
348
  export {
350
- Ve as default
349
+ $e as default
351
350
  };
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import './assets/styles/vxe-table.css';
4
4
  import 'uno.css';
5
5
  export declare function rbac(options: RbacOptions): ModuleOptions;
6
6
  export * from './components/OrgUserSelector';
7
+ export { default as ResourceSelector } from './components/ResourceSelector/index.vue';
7
8
  export * from './composables/useWebSocketManager';
8
9
  export * from './interface';
9
10
  export * from './stores/view';