@pubinfo/module-rbac 2.0.0-rc.3 → 2.0.0-rc.5

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 (120) 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/api/modules/assist/gonggaofuwu.d.ts +6 -6
  23. package/dist/api/modules/assist/qunzujiekou.d.ts +6 -6
  24. package/dist/api/modules/assist/quyujiekou.d.ts +5 -5
  25. package/dist/api/modules/configData/heibaimingdanfuwu.d.ts +5 -5
  26. package/dist/api/modules/configData/xitongpeizhifuwu.d.ts +14 -14
  27. package/dist/api/modules/configData/zidifuwu.d.ts +10 -10
  28. package/dist/api/modules/log/caozuorizhifuwu.d.ts +2 -2
  29. package/dist/api/modules/log/denglurizhifuwu.d.ts +2 -2
  30. package/dist/api/modules/rbac/gangweijiekou.d.ts +6 -6
  31. package/dist/api/modules/rbac/jiaosejiekou.d.ts +7 -7
  32. package/dist/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +7 -7
  33. package/dist/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +9 -9
  34. package/dist/api/modules/rbac/yonghujiekou.d.ts +15 -15
  35. package/dist/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +5 -5
  36. package/dist/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +4 -4
  37. package/dist/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.d.ts +6 -6
  38. package/dist/api/modules/rbac/ziyuanjiekou.d.ts +13 -13
  39. package/dist/api/modules/rbac/zuhuguanlijiekou.d.ts +5 -5
  40. package/dist/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +4 -4
  41. package/dist/api/modules/rbac/zuzhijiekou.d.ts +9 -9
  42. package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +23 -0
  43. package/dist/components/ResourceIcones/Select.vue.d.ts +48 -2
  44. package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +15 -6
  45. package/dist/components/RoleSelector/useRole.d.ts +68 -4
  46. package/dist/context.d.ts +1 -2
  47. package/dist/{drawerRole-DNsK5a6O.js → drawerRole-CzTW_I2H.js} +1 -1
  48. package/dist/{drawerRole-BeUNs7cF.js → drawerRole-tan379DU.js} +1 -1
  49. package/dist/index.css +1 -1
  50. package/dist/index.js +1427 -1431
  51. package/dist/{resource-CrhX7VRK.js → resource-CyI9ZpmF.js} +9 -8
  52. package/dist/{role-PjmrOdFd.js → role-B2tKqUvP.js} +2 -2
  53. package/dist/{role_group-Dlx-6BZF.js → role_group-DqzFHwKx.js} +1 -1
  54. package/dist/stores/view.d.ts +126 -21
  55. package/dist/{tenant-BGtOP_wo.js → tenant-C8kVbfgt.js} +2 -2
  56. package/dist/{toolbar_setting-OemNp6pO.js → toolbar_setting-Dc_h2Mfe.js} +23 -34
  57. package/dist/toolbar_setting.css +1 -1
  58. package/dist/{user-JCiGXodF.js → user-Dub4HhCZ.js} +3 -3
  59. package/dist/utils/routeSystem.d.ts +126 -21
  60. package/dist/views/blackWhiteList/index.vue.d.ts +40 -40
  61. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +4 -4
  62. package/dist/views/data-permission/index.vue.d.ts +44 -44
  63. package/dist/views/dictionary/index.vue.d.ts +40 -40
  64. package/dist/views/dictionary/itemlist.vue.d.ts +40 -40
  65. package/dist/views/group/index.vue.d.ts +40 -40
  66. package/dist/views/log_center/components/browserType.vue.d.ts +2 -2
  67. package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +2 -2
  68. package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +2 -2
  69. package/dist/views/log_center/login_history.vue.d.ts +40 -40
  70. package/dist/views/log_center/operate_history.vue.d.ts +40 -40
  71. package/dist/views/position/index.vue.d.ts +40 -40
  72. package/dist/views/region/index.vue.d.ts +40 -40
  73. package/dist/views/resource/components/IconSelect.vue.d.ts +10 -0
  74. package/dist/views/resource/hooks/useMetaForm.d.ts +8 -1
  75. package/dist/views/resource/index.vue.d.ts +40 -40
  76. package/dist/views/role/components/ResourceRelation.vue.d.ts +40 -40
  77. package/dist/views/role/index.vue.d.ts +80 -80
  78. package/dist/views/role_group/index.vue.d.ts +40 -40
  79. package/dist/views/tenant/index.vue.d.ts +40 -40
  80. package/dist/views/toolbar_setting/animationData.d.ts +1 -3
  81. package/dist/views/user/index.vue.d.ts +40 -40
  82. package/package.json +7 -3
  83. package/src/components/DirectoryIcones/ComponentsIcones.vue +2 -2
  84. package/src/components/DirectoryIcones/FolderIcones.vue +2 -2
  85. package/src/components/DirectoryIcones/ModuleIcones.vue +2 -2
  86. package/src/components/DirectoryIcones/PackagesIcones.vue +2 -2
  87. package/src/components/DirectoryIcones/SrcIcones.vue +2 -2
  88. package/src/components/DirectoryIcones/ViewIcones.vue +2 -2
  89. package/src/components/ResourceIcones/BoxColorPicker.vue +172 -0
  90. package/src/components/ResourceIcones/Select.vue +227 -15
  91. package/src/context.ts +1 -17
  92. package/src/index.ts +3 -10
  93. package/src/views/resource/components/ComponentSelect.vue +10 -0
  94. package/src/views/resource/components/DynamicRoutesForm.vue +0 -8
  95. package/src/views/resource/components/IconSelect.vue +138 -0
  96. package/src/views/resource/components/ResourceEdit.vue +34 -28
  97. package/src/views/toolbar_setting/animationData.ts +0 -4
  98. package/src/views/toolbar_setting/index.vue +0 -13
  99. package/dist/ComponentSelect-DlVJI5an.js +0 -2
  100. package/dist/DynamicRoutesForm-Cu3WhRpA.js +0 -4
  101. package/dist/DynamicRoutesForm-qjbrykW4.js +0 -376
  102. package/dist/ImportExport-CtEZTU87.js +0 -4
  103. package/dist/OrgAndPosition-3lCm4Fyb.js +0 -2
  104. package/dist/ResourceEdit-CYPzEbqn.js +0 -10
  105. package/dist/RoleRelation-DySyilcs.js +0 -2
  106. package/dist/UserEdit-6HYbgtOh.js +0 -4
  107. /package/dist/{OrgAndPosition-DYxNkasL.js → OrgAndPosition-vnBrq-fn.js} +0 -0
  108. /package/dist/{ResourceRelation-CZ8hGgOm.js → ResourceRelation-B_4woLmP.js} +0 -0
  109. /package/dist/{ResourceRelation-DkKdZ3TD.js → ResourceRelation-CKolCnHC.js} +0 -0
  110. /package/dist/{RoleRelation-B1D1NM_L.js → RoleRelation-DXZxscPY.js} +0 -0
  111. /package/dist/{TenantEdit-DNJzo8SS.js → TenantEdit-B5_v0C8I.js} +0 -0
  112. /package/dist/{UserAuthorization-DPHUk69M.js → UserAuthorization-DTgmWH5Q.js} +0 -0
  113. /package/dist/{dayjs.min-DcxwBe2I.js → dayjs.min-CdDcH50N.js} +0 -0
  114. /package/dist/{drawerRole-DS7fbx1h.js → drawerRole-CwilBmOE.js} +0 -0
  115. /package/dist/{drawerRole-BdoMYLYW.js → drawerRole-E1jHM3v-.js} +0 -0
  116. /package/dist/{enum-D0U38jb6.js → enum-BMY6bmPA.js} +0 -0
  117. /package/dist/{safe_setting-DpWUCv2p.js → safe_setting-uj9p_wW0.js} +0 -0
  118. /package/dist/{tabbar_setting-9UKDc1Ev.js → tabbar_setting-HFHrLVgt.js} +0 -0
  119. /package/dist/{theme_setting-BBLaZ4NS.js → theme_setting-QgpSGXxq.js} +0 -0
  120. /package/dist/{watermark_setting-C1VFRfbW.js → watermark_setting-BcWy6p2_.js} +0 -0
@@ -1,16 +1,17 @@
1
1
  import { b as e } from "./cloneDeep-BnvyNhik.js";
2
- import "./ComponentSelect-B1ZyenXP.js";
2
+ import "./ComponentSelect-Bhl9ciUm.js";
3
3
  import { u as t, v as n } from "./index.js";
4
4
  import "./_plugin-vue_export-helper-DziIhCOI.js";
5
5
  import "./enum-CYW8g64p.js";
6
- import "./DynamicRoutesForm-qjbrykW4.js";
7
- import { b as r, c as i, d as a, e as o } from "./enum-D0U38jb6.js";
6
+ import { b as r, c as i, d as a, e as o } from "./enum-BMY6bmPA.js";
7
+ import "./DynamicRoutesForm-CE2RPs7y.js";
8
8
  import "./HoverCard-B79q5sly.js";
9
- import "./dayjs.min-DcxwBe2I.js";
10
- import { b as s } from "./ImportExport-Clbc8xaw.js";
11
- import "./MetaForm-DpH9an5A.js";
12
- import { b as c } from "./ResourceEdit-0_cYB0iu.js";
13
- import { b as l } from "./RoleRelation-B1D1NM_L.js";
9
+ import "./IconSelect-HAhfS6hd.js";
10
+ import "./dayjs.min-CdDcH50N.js";
11
+ import { b as s } from "./ImportExport-ByRTssxP.js";
12
+ import "./MetaForm-DErrpELP.js";
13
+ import { b as c } from "./ResourceEdit-DF-2_zoi.js";
14
+ import { b as l } from "./RoleRelation-DXZxscPY.js";
14
15
  import { PubinfoIcon as u, useAuth as d } from "pubinfo";
15
16
  import { computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, openBlock as b, ref as x, resolveDirective as S, toDisplayString as C, unref as w, withCtx as T, withDirectives as E } from "vue";
16
17
  import { PlusCircleOutlined as D, SwapOutlined as O } from "@ant-design/icons-vue";
@@ -3,8 +3,8 @@ import "./_plugin-vue_export-helper-DziIhCOI.js";
3
3
  import "./enum-B1DCzyaW.js";
4
4
  import "./useAppAndResource-CeMCjg2v.js";
5
5
  import "./ResourceSelector-ConJ30Jd.js";
6
- import { b as n } from "./ResourceRelation-CZ8hGgOm.js";
7
- import { b as r, c as i, d as a } from "./drawerRole-BdoMYLYW.js";
6
+ import { b as n } from "./ResourceRelation-B_4woLmP.js";
7
+ import { b as r, c as i, d as a } from "./drawerRole-E1jHM3v-.js";
8
8
  import { PubinfoIcon as o, useAuth as s } from "pubinfo";
9
9
  import { createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, openBlock as h, ref as g, resolveDirective as _, toDisplayString as v, unref as y, withCtx as b, withDirectives as x } from "vue";
10
10
  import { PlusCircleOutlined as S } from "@ant-design/icons-vue";
@@ -1,6 +1,6 @@
1
1
  import { T as e, W as t } from "./index.js";
2
2
  import "./RoleSelector-DOt30OLy.js";
3
- import { b as n, c as r } from "./drawerRole-DS7fbx1h.js";
3
+ import { b as n, c as r } from "./drawerRole-CwilBmOE.js";
4
4
  import { PubinfoIcon as i, useAuth as a } from "pubinfo";
5
5
  import { createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, openBlock as p, ref as m, resolveDirective as h, toDisplayString as g, unref as _, withCtx as v, withDirectives as y } from "vue";
6
6
  import { PlusCircleOutlined as b } from "@ant-design/icons-vue";
@@ -18,39 +18,144 @@ export interface RouteTreeNode {
18
18
  scope?: string;
19
19
  }
20
20
  export declare const useViewStore: import('../../../../node_modules/.pnpm/pinia@3.0.3_typescript@5.8.3_vue@3.5.17_typescript@5.8.3_/node_modules/pinia').StoreDefinition<"view", Pick<{
21
- projectPages: any;
22
- modulePages: any;
23
- routeTree: any;
24
- lastUpdateTime: any;
25
- wsConnected: any;
21
+ projectPages: Readonly<globalThis.Ref<{
22
+ readonly [x: string]: string;
23
+ }, {
24
+ readonly [x: string]: string;
25
+ }>>;
26
+ modulePages: Readonly<globalThis.Ref<ReadonlyMap<string, {
27
+ readonly [x: string]: string;
28
+ }>, ReadonlyMap<string, {
29
+ readonly [x: string]: string;
30
+ }>>>;
31
+ routeTree: Readonly<globalThis.Ref<readonly {
32
+ readonly title: string;
33
+ readonly key: string;
34
+ readonly root?: boolean | undefined;
35
+ readonly module?: boolean | undefined;
36
+ readonly children?: readonly /*elided*/ any[] | undefined;
37
+ readonly isLeaf?: boolean | undefined;
38
+ readonly value?: string | undefined;
39
+ readonly scope?: string | undefined;
40
+ }[], readonly {
41
+ readonly title: string;
42
+ readonly key: string;
43
+ readonly root?: boolean | undefined;
44
+ readonly module?: boolean | undefined;
45
+ readonly children?: readonly /*elided*/ any[] | undefined;
46
+ readonly isLeaf?: boolean | undefined;
47
+ readonly value?: string | undefined;
48
+ readonly scope?: string | undefined;
49
+ }[]>>;
50
+ lastUpdateTime: Readonly<globalThis.Ref<number, number>>;
51
+ wsConnected: Readonly<globalThis.Ref<boolean, boolean>>;
26
52
  initializeRouteData: () => void;
27
53
  handleFileChange: (message: WebSocketMessage) => void;
28
54
  setWebSocketConnected: (connected: boolean) => void;
29
- getRouteTreeData: () => any;
55
+ getRouteTreeData: () => {
56
+ title: string;
57
+ key: string;
58
+ root?: boolean | undefined;
59
+ module?: boolean | undefined;
60
+ children?: /*elided*/ any[] | undefined;
61
+ isLeaf?: boolean | undefined;
62
+ value?: string | undefined;
63
+ scope?: string | undefined;
64
+ }[];
30
65
  refreshRouteTree: () => void;
31
66
  filterRouteTree: (searchQuery: string) => RouteTreeNode[];
32
- }, any>, Pick<{
33
- projectPages: any;
34
- modulePages: any;
35
- routeTree: any;
36
- lastUpdateTime: any;
37
- wsConnected: any;
67
+ }, "projectPages" | "modulePages" | "routeTree" | "lastUpdateTime" | "wsConnected">, Pick<{
68
+ projectPages: Readonly<globalThis.Ref<{
69
+ readonly [x: string]: string;
70
+ }, {
71
+ readonly [x: string]: string;
72
+ }>>;
73
+ modulePages: Readonly<globalThis.Ref<ReadonlyMap<string, {
74
+ readonly [x: string]: string;
75
+ }>, ReadonlyMap<string, {
76
+ readonly [x: string]: string;
77
+ }>>>;
78
+ routeTree: Readonly<globalThis.Ref<readonly {
79
+ readonly title: string;
80
+ readonly key: string;
81
+ readonly root?: boolean | undefined;
82
+ readonly module?: boolean | undefined;
83
+ readonly children?: readonly /*elided*/ any[] | undefined;
84
+ readonly isLeaf?: boolean | undefined;
85
+ readonly value?: string | undefined;
86
+ readonly scope?: string | undefined;
87
+ }[], readonly {
88
+ readonly title: string;
89
+ readonly key: string;
90
+ readonly root?: boolean | undefined;
91
+ readonly module?: boolean | undefined;
92
+ readonly children?: readonly /*elided*/ any[] | undefined;
93
+ readonly isLeaf?: boolean | undefined;
94
+ readonly value?: string | undefined;
95
+ readonly scope?: string | undefined;
96
+ }[]>>;
97
+ lastUpdateTime: Readonly<globalThis.Ref<number, number>>;
98
+ wsConnected: Readonly<globalThis.Ref<boolean, boolean>>;
38
99
  initializeRouteData: () => void;
39
100
  handleFileChange: (message: WebSocketMessage) => void;
40
101
  setWebSocketConnected: (connected: boolean) => void;
41
- getRouteTreeData: () => any;
102
+ getRouteTreeData: () => {
103
+ title: string;
104
+ key: string;
105
+ root?: boolean | undefined;
106
+ module?: boolean | undefined;
107
+ children?: /*elided*/ any[] | undefined;
108
+ isLeaf?: boolean | undefined;
109
+ value?: string | undefined;
110
+ scope?: string | undefined;
111
+ }[];
42
112
  refreshRouteTree: () => void;
43
113
  filterRouteTree: (searchQuery: string) => RouteTreeNode[];
44
- }, any>, Pick<{
45
- projectPages: any;
46
- modulePages: any;
47
- routeTree: any;
48
- lastUpdateTime: any;
49
- wsConnected: any;
114
+ }, never>, Pick<{
115
+ projectPages: Readonly<globalThis.Ref<{
116
+ readonly [x: string]: string;
117
+ }, {
118
+ readonly [x: string]: string;
119
+ }>>;
120
+ modulePages: Readonly<globalThis.Ref<ReadonlyMap<string, {
121
+ readonly [x: string]: string;
122
+ }>, ReadonlyMap<string, {
123
+ readonly [x: string]: string;
124
+ }>>>;
125
+ routeTree: Readonly<globalThis.Ref<readonly {
126
+ readonly title: string;
127
+ readonly key: string;
128
+ readonly root?: boolean | undefined;
129
+ readonly module?: boolean | undefined;
130
+ readonly children?: readonly /*elided*/ any[] | undefined;
131
+ readonly isLeaf?: boolean | undefined;
132
+ readonly value?: string | undefined;
133
+ readonly scope?: string | undefined;
134
+ }[], readonly {
135
+ readonly title: string;
136
+ readonly key: string;
137
+ readonly root?: boolean | undefined;
138
+ readonly module?: boolean | undefined;
139
+ readonly children?: readonly /*elided*/ any[] | undefined;
140
+ readonly isLeaf?: boolean | undefined;
141
+ readonly value?: string | undefined;
142
+ readonly scope?: string | undefined;
143
+ }[]>>;
144
+ lastUpdateTime: Readonly<globalThis.Ref<number, number>>;
145
+ wsConnected: Readonly<globalThis.Ref<boolean, boolean>>;
50
146
  initializeRouteData: () => void;
51
147
  handleFileChange: (message: WebSocketMessage) => void;
52
148
  setWebSocketConnected: (connected: boolean) => void;
53
- getRouteTreeData: () => any;
149
+ getRouteTreeData: () => {
150
+ title: string;
151
+ key: string;
152
+ root?: boolean | undefined;
153
+ module?: boolean | undefined;
154
+ children?: /*elided*/ any[] | undefined;
155
+ isLeaf?: boolean | undefined;
156
+ value?: string | undefined;
157
+ scope?: string | undefined;
158
+ }[];
54
159
  refreshRouteTree: () => void;
55
160
  filterRouteTree: (searchQuery: string) => RouteTreeNode[];
56
- }, any>>;
161
+ }, "initializeRouteData" | "handleFileChange" | "setWebSocketConnected" | "getRouteTreeData" | "refreshRouteTree" | "filterRouteTree">>;
@@ -4,8 +4,8 @@ import { l as t, o as n } from "./index.js";
4
4
  import "./_plugin-vue_export-helper-DziIhCOI.js";
5
5
  import "./enum-B1DCzyaW.js";
6
6
  import "./ResourceSelector-ConJ30Jd.js";
7
- import { b as r } from "./dayjs.min-DcxwBe2I.js";
8
- import { b as i, c as a } from "./TenantEdit-DNJzo8SS.js";
7
+ import { b as r } from "./dayjs.min-CdDcH50N.js";
8
+ import { b as i, c as a } from "./TenantEdit-B5_v0C8I.js";
9
9
  import { PubinfoIcon as o, useAuth as s } from "pubinfo";
10
10
  import { createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, openBlock as h, ref as g, resolveDirective as _, toDisplayString as v, unref as y, withCtx as b, withDirectives as x } from "vue";
11
11
  import { PlusCircleOutlined as S } from "@ant-design/icons-vue";