@pubinfo/module-rbac 2.0.0 → 2.0.2

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 (36) hide show
  1. package/dist/{IconSelect-HAhfS6hd.js → IconSelect-BMlRIxBx.js} +293 -273
  2. package/dist/{IconSelect-Ct5FkeHI.js → IconSelect-BeZfjsl0.js} +1 -1
  3. package/dist/IconSelect.css +1 -1
  4. package/dist/{ResourceEdit-DF-2_zoi.js → ResourceEdit-BSaHxlbT.js} +14 -13
  5. package/dist/{ResourceEdit-oAPLPUf0.js → ResourceEdit-Beu0QLBf.js} +2 -2
  6. package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +6 -15
  7. package/dist/components/RoleSelector/useRole.d.ts +4 -68
  8. package/dist/index.css +1 -1
  9. package/dist/index.js +6 -6
  10. package/dist/{resource-CyI9ZpmF.js → resource-UmUb9yZa.js} +2 -2
  11. package/dist/stores/view.d.ts +21 -126
  12. package/dist/utils/routeSystem.d.ts +21 -126
  13. package/dist/views/blackWhiteList/index.vue.d.ts +40 -40
  14. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +4 -4
  15. package/dist/views/data-permission/index.vue.d.ts +44 -44
  16. package/dist/views/dictionary/index.vue.d.ts +40 -40
  17. package/dist/views/dictionary/itemlist.vue.d.ts +40 -40
  18. package/dist/views/group/index.vue.d.ts +40 -40
  19. package/dist/views/log_center/components/browserType.vue.d.ts +2 -2
  20. package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +2 -2
  21. package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +2 -2
  22. package/dist/views/log_center/login_history.vue.d.ts +40 -40
  23. package/dist/views/log_center/operate_history.vue.d.ts +40 -40
  24. package/dist/views/position/index.vue.d.ts +40 -40
  25. package/dist/views/region/index.vue.d.ts +40 -40
  26. package/dist/views/resource/hooks/useMetaForm.d.ts +1 -8
  27. package/dist/views/resource/index.vue.d.ts +40 -40
  28. package/dist/views/role/components/ResourceRelation.vue.d.ts +40 -40
  29. package/dist/views/role/index.vue.d.ts +80 -80
  30. package/dist/views/role_group/index.vue.d.ts +40 -40
  31. package/dist/views/tenant/index.vue.d.ts +40 -40
  32. package/dist/views/user/index.vue.d.ts +40 -40
  33. package/package.json +3 -3
  34. package/src/components/ResourceIcones/Select.vue +74 -60
  35. package/src/views/resource/components/IconSelect.vue +77 -31
  36. package/src/views/resource/components/ResourceEdit.vue +29 -31
@@ -1,4 +1,4 @@
1
1
  import "./_plugin-vue_export-helper-DziIhCOI.js";
2
2
  import "./enum-BMY6bmPA.js";
3
- import { b as e } from "./IconSelect-HAhfS6hd.js";
3
+ import { b as e } from "./IconSelect-BMlRIxBx.js";
4
4
  export { e as default };
@@ -1 +1 @@
1
- [data-v-5889f8ee] .ant-radio-group{align-items:center;display:inline-flex}[data-v-5889f8ee] .ant-radio-button-wrapper{flex:none;justify-content:center;align-items:center;padding:4px 10px;display:inline-flex;height:auto!important;line-height:1!important}[data-v-5889f8ee] .ant-radio-button-wrapper>span{justify-content:center;align-items:center;display:inline-flex}
1
+ [data-v-f63b9031] .ant-radio-group{align-items:center;display:inline-flex}[data-v-f63b9031] .ant-radio-button-wrapper{flex:none;justify-content:center;align-items:center;padding:4px 10px;display:inline-flex;height:auto!important;line-height:1!important}[data-v-f63b9031] .ant-radio-button-wrapper>span{justify-content:center;align-items:center;display:inline-flex}
@@ -3,7 +3,7 @@ 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
4
  import { b as o, c as s, d as c, e as l } from "./enum-BMY6bmPA.js";
5
5
  import { b as u } from "./DynamicRoutesForm-CE2RPs7y.js";
6
- import { b as d } from "./IconSelect-HAhfS6hd.js";
6
+ import { b as d } from "./IconSelect-BMlRIxBx.js";
7
7
  import { b as f, c as p, d as m } from "./MetaForm-DErrpELP.js";
8
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
9
  import { DatabaseOutlined as k } from "@ant-design/icons-vue";
@@ -163,8 +163,8 @@ var B = /* @__PURE__ */ b({
163
163
  }, {
164
164
  default: O(() => [
165
165
  y(l, { gutter: 8 }, {
166
- default: O(() => [y(i, { span: 12 }, {
167
- default: O(() => [J.value?.name ? (S(), g(i, {
166
+ default: O(() => [
167
+ J.value?.name ? (S(), g(i, {
168
168
  key: 0,
169
169
  span: 24
170
170
  }, {
@@ -174,7 +174,8 @@ var B = /* @__PURE__ */ b({
174
174
  _: 1
175
175
  })]),
176
176
  _: 1
177
- })) : _("v-if", !0), y(i, { span: 24 }, {
177
+ })) : _("v-if", !0),
178
+ y(i, { span: 24 }, {
178
179
  default: O(() => [y(r, {
179
180
  label: "资源类型",
180
181
  name: "type"
@@ -197,15 +198,15 @@ var B = /* @__PURE__ */ b({
197
198
  _: 1
198
199
  })]),
199
200
  _: 1
200
- })]),
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
208
- })]),
201
+ }),
202
+ y(i, { span: 24 }, {
203
+ default: O(() => [y(d, {
204
+ modelValue: K.value,
205
+ "onUpdate:modelValue": t[1] ||= (e) => K.value = e
206
+ }, null, 8, ["modelValue"])]),
207
+ _: 1
208
+ })
209
+ ]),
209
210
  _: 1
210
211
  }),
211
212
  y(l, { gutter: 8 }, {
@@ -5,7 +5,7 @@ import "./enum-CYW8g64p.js";
5
5
  import "./enum-BMY6bmPA.js";
6
6
  import "./DynamicRoutesForm-CE2RPs7y.js";
7
7
  import "./HoverCard-B79q5sly.js";
8
- import "./IconSelect-HAhfS6hd.js";
8
+ import "./IconSelect-BMlRIxBx.js";
9
9
  import "./MetaForm-DErrpELP.js";
10
- import { b as e } from "./ResourceEdit-DF-2_zoi.js";
10
+ import { b as e } from "./ResourceEdit-BSaHxlbT.js";
11
11
  export { e as default };
@@ -11,24 +11,15 @@ export interface SelectedResourceInfo {
11
11
  name: string;
12
12
  }
13
13
  export default function useAppAndResource(mode?: ResourceMode): {
14
- appList: globalThis.Ref<API.PubResource[] | {
14
+ appList: 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;
30
17
  }[]>;
31
- isDataPermissionMode: globalThis.ComputedRef<boolean>;
18
+ resourceModelRef: any;
19
+ treeData: Ref<TreeNode[]>;
20
+ resourceMap: Ref<StringMap<string>>;
21
+ selectedResources: any;
22
+ isDataPermissionMode: any;
32
23
  getAppList: () => void;
33
24
  updateTreeDataAndResourceMap: (appId: string) => Promise<void>;
34
25
  setSelectedResources: (resources: SelectedResourceInfo[]) => void;
@@ -1,77 +1,13 @@
1
1
  export type Role = API.PubRole;
2
2
  export declare function useRole(): {
3
- loading: globalThis.ShallowRef<boolean>;
3
+ loading: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ShallowRef<boolean>;
4
4
  setLoading: (value?: boolean | undefined) => boolean;
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
- }[]>;
5
+ roles: any;
38
6
  getData: () => Promise<void>;
39
7
  };
40
8
  export declare function useRoleGroup(): {
41
- loading: globalThis.ShallowRef<boolean>;
9
+ loading: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ShallowRef<boolean>;
42
10
  setLoading: (value?: boolean | undefined) => boolean;
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
- }[]>;
11
+ roles: any;
76
12
  getData: (id: string) => Promise<void>;
77
13
  };