@xdmp-open/ui-admin 0.1.0

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 (83) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE +201 -0
  3. package/README.md +25 -0
  4. package/dist/components/JsonPreview.vue.d.ts +17 -0
  5. package/dist/context.d.ts +51 -0
  6. package/dist/index-a_39WFUh.js +12868 -0
  7. package/dist/index.d.ts +30 -0
  8. package/dist/index.js +35 -0
  9. package/dist/modules/apply/api.d.ts +24 -0
  10. package/dist/modules/apply/components/applyAuthDialog.vue.d.ts +675 -0
  11. package/dist/modules/apply/components/formDialog/index.vue.d.ts +803 -0
  12. package/dist/modules/apply/components/password-binding.vue.d.ts +441 -0
  13. package/dist/modules/apply/components/verification.vue.d.ts +1308 -0
  14. package/dist/modules/apply/index.d.ts +2 -0
  15. package/dist/modules/apply/userApplyDetail.vue.d.ts +1910 -0
  16. package/dist/modules/audit-login/index.d.ts +1 -0
  17. package/dist/modules/audit-login/index.vue.d.ts +491 -0
  18. package/dist/modules/audit-login/modules/logDetail.vue.d.ts +408 -0
  19. package/dist/modules/audit-operate/index.d.ts +1 -0
  20. package/dist/modules/audit-operate/index.vue.d.ts +491 -0
  21. package/dist/modules/audit-operate/modules/logDetail.vue.d.ts +408 -0
  22. package/dist/modules/system-authority/index.d.ts +1 -0
  23. package/dist/modules/system-authority/index.vue.d.ts +645 -0
  24. package/dist/modules/system-authority/modules/menu-drawer.vue.d.ts +546 -0
  25. package/dist/modules/system-authority/modules/treeSelect.vue.d.ts +72 -0
  26. package/dist/modules/system-binary/index.d.ts +1 -0
  27. package/dist/modules/system-binary/index.vue.d.ts +983 -0
  28. package/dist/modules/system-binary/modules/binaryDrawer.vue.d.ts +906 -0
  29. package/dist/modules/system-cache/index.d.ts +1 -0
  30. package/dist/modules/system-cache/index.vue.d.ts +66 -0
  31. package/dist/modules/system-category/index.d.ts +1 -0
  32. package/dist/modules/system-category/index.vue.d.ts +517 -0
  33. package/dist/modules/system-category/modules/categoryDrawer.vue.d.ts +430 -0
  34. package/dist/modules/system-category/modules/treeSelect.vue.d.ts +29 -0
  35. package/dist/modules/system-client/index.d.ts +1 -0
  36. package/dist/modules/system-client/index.vue.d.ts +491 -0
  37. package/dist/modules/system-client/modules/clientDrawer.vue.d.ts +406 -0
  38. package/dist/modules/system-config/index.d.ts +1 -0
  39. package/dist/modules/system-config/index.vue.d.ts +496 -0
  40. package/dist/modules/system-config/modules/configDrawer.vue.d.ts +418 -0
  41. package/dist/modules/system-depart/index.d.ts +1 -0
  42. package/dist/modules/system-depart/index.vue.d.ts +2 -0
  43. package/dist/modules/system-dict/index.d.ts +1 -0
  44. package/dist/modules/system-dict/index.vue.d.ts +531 -0
  45. package/dist/modules/system-dict/modules/dictDialog.vue.d.ts +48 -0
  46. package/dist/modules/system-dict/modules/dictDrawer.vue.d.ts +453 -0
  47. package/dist/modules/system-label/components/addTag.vue.d.ts +408 -0
  48. package/dist/modules/system-label/index.d.ts +1 -0
  49. package/dist/modules/system-label/index.vue.d.ts +480 -0
  50. package/dist/modules/system-monitor-log/applyLog.vue.d.ts +429 -0
  51. package/dist/modules/system-monitor-log/index.d.ts +1 -0
  52. package/dist/modules/system-monitor-log/index.vue.d.ts +481 -0
  53. package/dist/modules/system-monitor-log/modules/applyLogDrawer.vue.d.ts +403 -0
  54. package/dist/modules/system-notice/index.d.ts +1 -0
  55. package/dist/modules/system-notice/index.vue.d.ts +483 -0
  56. package/dist/modules/system-notice/modules/noticeDrawer.vue.d.ts +406 -0
  57. package/dist/modules/system-notify/index.d.ts +1 -0
  58. package/dist/modules/system-notify/index.vue.d.ts +474 -0
  59. package/dist/modules/system-notify/modules/notifyDrawer.vue.d.ts +397 -0
  60. package/dist/modules/system-open/components/applyAddDialog.vue.d.ts +405 -0
  61. package/dist/modules/system-open/components/applyAuthDialog.vue.d.ts +416 -0
  62. package/dist/modules/system-open/detail.vue.d.ts +1910 -0
  63. package/dist/modules/system-open/index.d.ts +2 -0
  64. package/dist/modules/system-open/index.vue.d.ts +902 -0
  65. package/dist/modules/system-position/index.d.ts +1 -0
  66. package/dist/modules/system-position/index.vue.d.ts +474 -0
  67. package/dist/modules/system-position/modules/positionDrawer.vue.d.ts +397 -0
  68. package/dist/modules/system-role/index.d.ts +1 -0
  69. package/dist/modules/system-role/index.vue.d.ts +492 -0
  70. package/dist/modules/system-role/modules/roleDetail.vue.d.ts +417 -0
  71. package/dist/modules/system-user/index.d.ts +1 -0
  72. package/dist/modules/system-user/index.vue.d.ts +2027 -0
  73. package/dist/modules/system-user/modules/addDepartDrawer.vue.d.ts +968 -0
  74. package/dist/modules/system-user/modules/addUserDrawer.vue.d.ts +963 -0
  75. package/dist/modules/system-user/modules/treeSelect.vue.d.ts +72 -0
  76. package/dist/modules/user/index.d.ts +1 -0
  77. package/dist/style.css +1 -0
  78. package/dist/treeSelect-DM-CY_So.js +143 -0
  79. package/dist/treeSelect-DpRkBYCq.js +143 -0
  80. package/dist/utils/configEvent.d.ts +26 -0
  81. package/dist/utils/dayjs.d.ts +2 -0
  82. package/dist/utils/formatJson.d.ts +5 -0
  83. package/package.json +73 -0
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @xdmp-open/ui-admin —— XDMP 平台 admin 业务页面组件库
3
+ *
4
+ * 迁移自应用壳 src/views/{system,user,audit,apply},页面以"路由级组件"导出,
5
+ * 宿主保留同名薄壳文件 re-export(菜单 component 字符串不变,见 M4-4 方案 A)。
6
+ *
7
+ * 使用前:宿主启动时调用 setupAdminUi({ sdkClient, ... }) 注入上下文(见 context.ts),
8
+ * 并 import '@xdmp-open/ui-admin/style.css'(在 ui-shared 样式之后引入以保持层叠顺序)。
9
+ */
10
+ export { setupAdminUi, useAdminSdk, useIotSdk, getCurrentUser, getCurrentUsername, getCurrentRoles, getCurrentMobilePhone, checkPermission, logout, refreshUserInfo, regenerateRoutes, type AdminUiOptions, type AdminUiHost } from './context';
11
+ export * from './modules/system-user';
12
+ export * from './modules/system-role';
13
+ export * from './modules/system-authority';
14
+ export * from './modules/system-open';
15
+ export * from './modules/system-client';
16
+ export * from './modules/system-config';
17
+ export * from './modules/system-cache';
18
+ export * from './modules/apply';
19
+ export * from './modules/audit-operate';
20
+ export * from './modules/audit-login';
21
+ export * from './modules/system-dict';
22
+ export * from './modules/system-category';
23
+ export * from './modules/user';
24
+ export * from './modules/system-label';
25
+ export * from './modules/system-binary';
26
+ export * from './modules/system-notice';
27
+ export * from './modules/system-notify';
28
+ export * from './modules/system-position';
29
+ export * from './modules/system-depart';
30
+ export * from './modules/system-monitor-log';
package/dist/index.js ADDED
@@ -0,0 +1,35 @@
1
+ import { i as a, a as t, b as g, c as r, d as o, e as y, f as P, g as m, h as i, j as n, k as S, l as p, m as u, n as l, o as A, p as C, q as d, r as U, s as c, u as f, t as h, v as D, w as k, x as b, y as L, z as O, A as R, B as x, C as B, D as I, E as M, F as N } from "./index-a_39WFUh.js";
2
+ export {
3
+ a as AuditLoginPage,
4
+ t as AuditOperatePage,
5
+ g as SystemAuthorityPage,
6
+ r as SystemBinaryPage,
7
+ o as SystemCachePage,
8
+ y as SystemCategoryPage,
9
+ P as SystemClientPage,
10
+ m as SystemConfigPage,
11
+ i as SystemDepartPage,
12
+ n as SystemDictPage,
13
+ S as SystemLabelPage,
14
+ p as SystemMonitorAppLogPage,
15
+ u as SystemNoticePage,
16
+ l as SystemNotifyPage,
17
+ A as SystemOpenAppDetailPage,
18
+ C as SystemOpenAppPage,
19
+ d as SystemPositionPage,
20
+ U as SystemRolePage,
21
+ c as SystemUserPage,
22
+ f as UserApplyDetailPage,
23
+ h as UserApplyPage,
24
+ D as checkPermission,
25
+ k as getCurrentMobilePhone,
26
+ b as getCurrentRoles,
27
+ L as getCurrentUser,
28
+ O as getCurrentUsername,
29
+ R as logout,
30
+ x as refreshUserInfo,
31
+ B as regenerateRoutes,
32
+ I as setupAdminUi,
33
+ M as useAdminSdk,
34
+ N as useIotSdk
35
+ };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * apply 模块遗留接口透传(EMC 时期契约,/gw/uiap-dmc|uiap-omc|uiap-sidecar)。
3
+ *
4
+ * 这批端点在 M1 已从应用壳 @/api/xdmp/user、@/api/xdmp/passport 中删除
5
+ * (原函数实现见 git 历史 src/api/emc/users.js),SDK admin/iot 资源层无对应方法;
6
+ * views/apply 当前已无菜单/路由入口,属遗留页面。为保持迁移“行为零变化”
7
+ * (按 M1 之前的原始路径直发),这里经 SDK 请求引擎透传:
8
+ * 成功返回拆包后的 data,失败抛 SdkError(提示由 SDK notifier 统一弹出),
9
+ * 与各 SDK resource 方法语义一致。
10
+ */
11
+ export declare function rearSendSms(params: Record<string, unknown>): Promise<any>;
12
+ export declare function verification(data: any): Promise<any>;
13
+ export declare function viewAuthKey(data: any): Promise<any>;
14
+ export declare function resetAuthKey(data: any): Promise<any>;
15
+ export declare function updatePwd(data: any): Promise<any>;
16
+ export declare function bindPhone(data: any): Promise<any>;
17
+ export declare function userAppList(data: any): Promise<any>;
18
+ export declare function userAppAdd(data: any): Promise<any>;
19
+ export declare function userAppEdit(data: any): Promise<any>;
20
+ export declare function userAppDetail(id: string): Promise<any>;
21
+ export declare function userAppAuthList(id: string): Promise<any>;
22
+ export declare function userAppAuth(data: any): Promise<any>;
23
+ export declare function checkAppAccessKey(id: string): Promise<any>;
24
+ export declare function resetAppAccessKey(id: string): Promise<any>;