@pubinfo/module-rbac 2.0.12 → 2.0.14

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 (97) hide show
  1. package/dist/{DynamicRoutesForm-DzOGoyf3.js → DynamicRoutesForm-BU4EAISs.js} +1 -1
  2. package/dist/{DynamicRoutesForm.vue_vue_type_script_setup_true_lang-lpCaLpPL.js → DynamicRoutesForm.vue_vue_type_script_setup_true_lang-bEqJ03T_.js} +6 -6
  3. package/dist/{IconSelect-CkqLR5Dg.js → IconSelect-DtNpk3Rj.js} +1 -1
  4. package/dist/IconSelect.css +1 -1
  5. package/dist/IconSelect.vue_vue_type_script_setup_true_lang-D450SiKg.js +757 -0
  6. package/dist/{ImportExport-BD8o7IvB.js → ImportExport-DAe_Sl13.js} +1 -1
  7. package/dist/{ImportExport.vue_vue_type_script_setup_true_lang-BzdP0ADd.js → ImportExport.vue_vue_type_script_setup_true_lang-CV0DrMvw.js} +1 -1
  8. package/dist/LayoutForm-C-vNwp3q.js +173 -0
  9. package/dist/LayoutForm.css +1 -0
  10. package/dist/{MetaForm-DtlyvzoM.js → MetaForm-13JASu7v.js} +142 -105
  11. package/dist/MetaForm.css +1 -1
  12. package/dist/{ResourceEdit-WpEdbzaw.js → ResourceEdit-D2YFu-Gk.js} +1 -1
  13. package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-Cb0mKIlJ.js +429 -0
  14. package/dist/{ResourceRelation-DGiGYy6V.js → ResourceRelation-CeM9Eq39.js} +10 -11
  15. package/dist/{ResourceRelation-26FnHEfU.js → ResourceRelation-qhIdXLAy.js} +12 -13
  16. package/dist/{TenantEdit-B24X5nND.js → TenantEdit-C61O1pSu.js} +1 -1
  17. package/dist/{TenantEdit.vue_vue_type_script_setup_true_lang-Bu5HcJJv.js → TenantEdit.vue_vue_type_script_setup_true_lang-BwsA9hth.js} +39 -40
  18. package/dist/{UserAuthorization-Co6JV0py.js → UserAuthorization-rqttVub5.js} +9 -10
  19. package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +1 -1
  20. package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +1 -1
  21. package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +3 -0
  22. package/dist/components/ResourceIcones/Select.vue.d.ts +3 -0
  23. package/dist/{createAndEditDataPermission-BhOLGGna.js → createAndEditDataPermission-DPeFulie.js} +1 -1
  24. package/dist/{createAndEditDataPermission.vue_vue_type_script_setup_true_lang-D5wInKwO.js → createAndEditDataPermission.vue_vue_type_script_setup_true_lang-DlUIYtif.js} +98 -101
  25. package/dist/{drawerRole-DHLv47_z.js → drawerRole-CXGVqxPX.js} +1 -1
  26. package/dist/{drawerRole-DUWRM43j.js → drawerRole-CfJjf3v_.js} +1 -1
  27. 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
  28. 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
  29. package/dist/{enum-CjyX3J0o.js → enum-D5iPiZiT.js} +0 -1
  30. package/dist/{index-Csfu3kAr.js → index-B5aP0re3.js} +6 -7
  31. package/dist/{index-DwpOyfRe.js → index-BEB4liGe.js} +8 -9
  32. package/dist/{index-DfuGXjYh.js → index-BNwGLzXe.js} +21 -22
  33. package/dist/{index-DdoOaWs-.js → index-BPkJOFXE.js} +3 -3
  34. package/dist/{index-ioZh8Qom.js → index-BXvJhqJD.js} +6 -7
  35. package/dist/{index-BFx8F5lO.js → index-C2G4xRrJ.js} +8 -9
  36. package/dist/{index-x9Iim2eD.js → index-C5WD-YUu.js} +7 -8
  37. package/dist/{index-rNYtJ7Om.js → index-CbVJdR5M.js} +6 -7
  38. package/dist/{index-DECno0gv.js → index-ChWnVs6j.js} +2 -2
  39. package/dist/{index-C9hHp4Iw.js → index-CoZM8pyH.js} +1 -1
  40. package/dist/{index-B2tTTlBE.js → index-Copy5kiW.js} +276 -273
  41. package/dist/index-D3Xw_aOi.js +144 -0
  42. package/dist/{index-CCw3ZJgQ.js → index-DHVEXch0.js} +8 -9
  43. package/dist/{index-COWUocfL.js → index-Dl0hWfIE.js} +7 -8
  44. package/dist/{index-BIpmC999.js → index-En8oOf9e.js} +8 -9
  45. package/dist/{index-ZQuRR9fG.js → index-VZuizuKs.js} +1 -1
  46. package/dist/{index-BwWrE3dY.js → index-XhYtVVT9.js} +6 -7
  47. package/dist/{index-BUmMaC21.js → index-nAPHtTM7.js} +5 -6
  48. package/dist/{index-y9CQTo95.js → index-qn7U9T51.js} +9 -10
  49. package/dist/index.d.ts +1 -0
  50. package/dist/index.js +2578 -2303
  51. package/dist/index10.css +1 -1
  52. package/dist/index11.css +1 -1
  53. package/dist/index12.css +1 -1
  54. package/dist/index13.css +1 -1
  55. package/dist/index14.css +1 -1
  56. package/dist/index15.css +1 -1
  57. package/dist/index16.css +1 -1
  58. package/dist/index17.css +1 -1
  59. package/dist/index4.css +1 -1
  60. package/dist/index5.css +1 -1
  61. package/dist/index6.css +1 -1
  62. package/dist/index7.css +1 -1
  63. package/dist/index8.css +1 -1
  64. package/dist/index9.css +1 -1
  65. package/dist/{loginHistoryDetail-B6eI-TmJ.js → loginHistoryDetail-BZVwG8m2.js} +1 -1
  66. package/dist/{login_history-B4Q1NCJn.js → login_history-CMZGS2PN.js} +5 -6
  67. package/dist/{operateHistoryDetail-CLZ9lyua.js → operateHistoryDetail-Badx3zl-.js} +1 -1
  68. package/dist/{operate_history-KASZ7_JO.js → operate_history-B42WNY1u.js} +5 -6
  69. package/dist/{setItem-BwMHXOUm.js → setItem-Blb3dox4.js} +1 -1
  70. package/dist/{useAppAndResource-38HCqYKa.js → useAppAndResource-DDywX2iz.js} +11 -12
  71. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +3 -3
  72. package/dist/views/data-permission/index.vue.d.ts +3 -3
  73. package/dist/views/resource/components/LayoutForm.vue.d.ts +10 -0
  74. package/dist/views/resource/hooks/useLayoutForm.d.ts +12 -0
  75. package/dist/views/resource/model.d.ts +13 -0
  76. package/package.json +7 -7
  77. package/src/components/ResourceIcones/BoxColorPicker.vue +64 -8
  78. package/src/components/ResourceIcones/Select.vue +13 -5
  79. package/src/index.ts +1 -0
  80. package/src/views/organization/index.vue +17 -10
  81. package/src/views/resource/components/DynamicRoutesForm.vue +1 -1
  82. package/src/views/resource/components/IconSelect.vue +7 -3
  83. package/src/views/resource/components/LayoutForm.vue +92 -0
  84. package/src/views/resource/components/MetaForm.vue +11 -0
  85. package/src/views/resource/components/ResourceEdit.vue +26 -8
  86. package/src/views/resource/enum.ts +0 -1
  87. package/src/views/resource/hooks/useLayoutForm.ts +57 -0
  88. package/src/views/resource/hooks/useMetaForm.ts +4 -0
  89. package/src/views/resource/index.vue +0 -3
  90. package/src/views/resource/model.ts +23 -1
  91. package/dist/IconSelect.vue_vue_type_script_setup_true_lang-BoGxAoNd.js +0 -703
  92. package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-id6jZAko.js +0 -392
  93. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  94. package/dist/enum-CTUzwCYG.js +0 -4
  95. package/dist/index-53oBz1jp.js +0 -299
  96. package/dist/index-DVt5k9xh.js +0 -145
  97. package/dist/index18.css +0 -1
@@ -1,14 +1,13 @@
1
1
  import { Space as R, Button as O } from "ant-design-vue/es";
2
2
  import { PubinfoIcon as S } from "pubinfo";
3
3
  import { PlusCircleOutlined as A } from "@ant-design/icons-vue";
4
- import { defineComponent as V, ref as I, resolveDirective as N, createElementBlock as l, openBlock as n, createVNode as i, unref as t, withCtx as d, createCommentVNode as P, createBlock as k, toDisplayString as p, withDirectives as x, createElementVNode as C, createTextVNode as B } from "vue";
4
+ import { defineComponent as V, ref as I, resolveDirective as N, createElementBlock as l, openBlock as n, createVNode as r, unref as t, withCtx as d, createCommentVNode as P, createBlock as k, toDisplayString as p, withDirectives as x, createElementVNode as C, createTextVNode as B } from "vue";
5
5
  import { ProTable as M } from "@pubinfo/pro-components";
6
6
  import { Modal as $, message as L } from "ant-design-vue";
7
- import { u as q } from "./index.js";
8
- import { p as z, d as Q } from "./shujuquanxianzhubiaokongzhiqi-SpN37fyO.js";
9
- import { _ as j } from "./createAndEditDataPermission.vue_vue_type_script_setup_true_lang-D5wInKwO.js";
10
- import { d as F, a as G, A as e } from "./enum-DkSNwGbC.js";
11
- import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
+ import { u as q, _ as z } from "./index.js";
8
+ import { p as Q, d as j } from "./shujuquanxianzhubiaokongzhiqi-SpN37fyO.js";
9
+ import { _ as F } from "./createAndEditDataPermission.vue_vue_type_script_setup_true_lang-DlUIYtif.js";
10
+ import { d as G, a as H, A as e } from "./enum-DkSNwGbC.js";
12
11
  import './index3.css';const J = {
13
12
  "w-full": "",
14
13
  "h-full": "",
@@ -42,7 +41,7 @@ import './index3.css';const J = {
42
41
  fieldProps: {
43
42
  placeholder: "请选择",
44
43
  allowClear: !0,
45
- options: F
44
+ options: G
46
45
  },
47
46
  ellipsis: !0
48
47
  }, {
@@ -65,11 +64,11 @@ import './index3.css';const J = {
65
64
  async function T(s) {
66
65
  const {
67
66
  current: a,
68
- pageSize: r,
67
+ pageSize: i,
69
68
  type: _,
70
69
  name: c
71
- } = s, o = await z({
72
- pageSize: r,
70
+ } = s, o = await Q({
71
+ pageSize: i,
73
72
  currentPage: a,
74
73
  doSearchTotal: !0,
75
74
  type: _,
@@ -99,10 +98,10 @@ import './index3.css';const J = {
99
98
  title: "删除",
100
99
  content: "确定要删除该权限吗?",
101
100
  async onOk() {
102
- v(!0), Q({
101
+ v(!0), j({
103
102
  id: a?.id
104
- }).then((r) => {
105
- r.success && (L.success("删除成功"), b());
103
+ }).then((i) => {
104
+ i.success && (L.success("删除成功"), b());
106
105
  }).finally(() => v(!1));
107
106
  }
108
107
  });
@@ -110,8 +109,8 @@ import './index3.css';const J = {
110
109
  }
111
110
  }
112
111
  return (s, a) => {
113
- const r = A, _ = O, c = S, D = R, o = N("auth");
114
- return n(), l("div", J, [i(t(M), {
112
+ const i = A, _ = O, c = S, D = R, o = N("auth");
113
+ return n(), l("div", J, [r(t(M), {
115
114
  ref_key: "tableRef",
116
115
  ref: y,
117
116
  "row-key": "id",
@@ -126,19 +125,19 @@ import './index3.css';const J = {
126
125
  type: "primary",
127
126
  onClick: a[0] || (a[0] = (f) => m(t(e).ADD))
128
127
  }, {
129
- default: d(() => [i(r), B(" " + p(t(e).ADD), 1)]),
128
+ default: d(() => [r(i), B(" " + p(t(e).ADD), 1)]),
130
129
  _: 1
131
130
  })), [[o, "data_permission_create"]])]),
132
131
  bodyCell: d(({
133
132
  column: f,
134
133
  record: h
135
- }) => [f.dataIndex === "type" ? (n(), l("span", K, p(t(G)[h.type]), 1)) : P("", !0), f.dataIndex === "action" ? (n(), k(D, {
134
+ }) => [f.dataIndex === "type" ? (n(), l("span", K, p(t(H)[h.type]), 1)) : P("", !0), f.dataIndex === "action" ? (n(), k(D, {
136
135
  key: 1
137
136
  }, {
138
137
  default: d(() => [x((n(), l("a", {
139
138
  class: "flex items-center hover:opacity-80",
140
139
  onClick: (E) => m(t(e).EDIT, h)
141
- }, [i(c, {
140
+ }, [r(c, {
142
141
  name: "edit",
143
142
  class: "text-base"
144
143
  }), C("span", W, p(t(e).EDIT), 1)], 8, U)), [[o, "data_permission_edit"]]), x((n(), l("span", {
@@ -149,21 +148,21 @@ import './index3.css';const J = {
149
148
  "hover:text-red-500": "",
150
149
  "hover:opacity-80": "",
151
150
  onClick: (E) => m(t(e).REMOVE, h)
152
- }, [i(c, {
151
+ }, [r(c, {
153
152
  name: "remove",
154
153
  class: "text-base"
155
154
  }), C("span", Y, p(t(e).REMOVE), 1)], 8, X)), [[o, "data_permission_delete"]])]),
156
155
  _: 2
157
156
  }, 1024)) : P("", !0)]),
158
157
  _: 1
159
- }, 512), i(j, {
158
+ }, 512), r(F, {
160
159
  ref_key: "drawerRef",
161
160
  ref: u,
162
161
  onSubmit: b
163
162
  }, null, 512)]);
164
163
  };
165
164
  }
166
- }), ue = /* @__PURE__ */ H(Z, [["__scopeId", "data-v-b32ad41d"]]);
165
+ }), pe = /* @__PURE__ */ z(Z, [["__scopeId", "data-v-b32ad41d"]]);
167
166
  export {
168
- ue as default
167
+ pe as default
169
168
  };
@@ -6,10 +6,10 @@ import { Tag as K, Badge as A, message as g, Modal as Y } from "ant-design-vue";
6
6
  import { useAuth as j, PubinfoIcon as I, RESOURCE_TYPE as T } from "pubinfo";
7
7
  import "./index.js";
8
8
  import { b as G, c as J } from "./ziyuanjiekou-BC65-bFK.js";
9
- import { _ as Q } from "./ImportExport.vue_vue_type_script_setup_true_lang-BzdP0ADd.js";
10
- import { _ as W } from "./ResourceEdit.vue_vue_type_script_setup_true_lang-id6jZAko.js";
9
+ import { _ as Q } from "./ImportExport.vue_vue_type_script_setup_true_lang-CV0DrMvw.js";
10
+ import { _ as W } from "./ResourceEdit.vue_vue_type_script_setup_true_lang-Cb0mKIlJ.js";
11
11
  import { _ as Z } from "./RoleRelation.vue_vue_type_script_setup_true_lang-BjEOlM2g.js";
12
- import { r as L, A as t, R as ee } from "./enum-CjyX3J0o.js";
12
+ import { r as L, A as t, R as ee } from "./enum-D5iPiZiT.js";
13
13
  import { c as te } from "./cloneDeep-BOLZdR62.js";
14
14
  const ae = {
15
15
  "w-full": "",
@@ -1,10 +1,9 @@
1
1
  import { useSettingsStore as m, PubinfoIcon as f } from "pubinfo";
2
2
  import { defineComponent as u, ref as v, reactive as b, createElementBlock as i, openBlock as l, createElementVNode as e, createVNode as g, Fragment as _, renderList as y, unref as r, normalizeClass as d, toDisplayString as S } from "vue";
3
3
  import { message as k } from "ant-design-vue";
4
- import "./index.js";
5
- import { p as C } from "./xitongpeizhifuwu-BoCbGEk7.js";
6
- import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- import './index6.css';const w = {
4
+ import { _ as C } from "./index.js";
5
+ import { p as h } from "./xitongpeizhifuwu-BoCbGEk7.js";
6
+ import './index5.css';const w = {
8
7
  "w-full": "",
9
8
  "h-full": "",
10
9
  "p-10px": ""
@@ -50,7 +49,7 @@ import './index6.css';const w = {
50
49
  menuMode: s
51
50
  }
52
51
  });
53
- C({ content: t }).then((n) => {
52
+ h({ content: t }).then((n) => {
54
53
  n.success && k.success("设置成功");
55
54
  });
56
55
  }
@@ -92,7 +91,7 @@ import './index6.css';const w = {
92
91
  ]);
93
92
  };
94
93
  }
95
- }), H = /* @__PURE__ */ h(M, [["__scopeId", "data-v-26087915"]]);
94
+ }), A = /* @__PURE__ */ C(M, [["__scopeId", "data-v-26087915"]]);
96
95
  export {
97
- H as default
96
+ A as default
98
97
  };