@ximatai/muyun-web-app 0.26.6 → 0.26.8

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/{EmployeeDetailWorkspaceView-DHZ4arBj.js → EmployeeDetailWorkspaceView-DswEDSxH.js} +1 -1
  2. package/dist/EmployeeManagementView-C9STtw08.js +1777 -0
  3. package/dist/{MetadataOrchestrationView-BLxigKBh.js → MetadataOrchestrationView-DKYVGMzy.js} +195 -195
  4. package/dist/{ModuleActionManagementView-ByJzNkQs.js → ModuleActionManagementView-DiVzuPdu.js} +122 -122
  5. package/dist/RoleAuthorizationView-C0s4Bog7.js +592 -0
  6. package/dist/{RoleDetailWorkspaceView-Dfdigf04.js → RoleDetailWorkspaceView-dqHxKVfd.js} +1 -1
  7. package/dist/{RoleManagementView-D0e9nLwW.js → RoleManagementView-D43pUCxi.js} +542 -543
  8. package/dist/{SystemUserDetailWorkspaceView-D-UPhCmD.js → SystemUserDetailWorkspaceView-CQ9WeLrR.js} +1 -1
  9. package/dist/SystemUserManagementView-D75_ylYk.js +758 -0
  10. package/dist/{UserDetailWorkspaceView-BCSCLNSz.js → UserDetailWorkspaceView-BCST01d2.js} +1 -1
  11. package/dist/{UserManagementView-aY2AeeWK.js → UserManagementView-CcdvDo_y.js} +211 -212
  12. package/dist/index.css +1 -1
  13. package/dist/index.js +4293 -5694
  14. package/dist/{pageRealtime-Be2xkeKK.js → pageRealtime-EAiGWKEo.js} +87 -85
  15. package/dist/{platform-components-DuAohqJO.js → platform-components-CFU_zR7-.js} +3828 -2331
  16. package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +33 -0
  17. package/dist/types/app/LoginView.vue.d.ts +4 -1
  18. package/dist/types/app/ThemeSkinPreferencesDialog.vue.d.ts +20 -0
  19. package/dist/types/app/lockedTabPreference.d.ts +6 -0
  20. package/dist/types/app/themeSkinPreference.d.ts +11 -0
  21. package/dist/types/app/workbenchStartup.d.ts +18 -1
  22. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +43 -0
  23. package/dist/types/consumer/index.d.ts +17 -2
  24. package/dist/types/consumer/userPreferencePersistence.d.ts +7 -0
  25. package/dist/types/consumer/workbenchNavigation.d.ts +8 -0
  26. package/dist/types/dynamic-page-runtime/DynamicModuleWorkspaceDetailView.vue.d.ts +10 -0
  27. package/dist/types/dynamic-page-runtime/DynamicRecordDetailActions.vue.d.ts +38 -0
  28. package/dist/types/dynamic-page-runtime/NavigatorManagementEditor.vue.d.ts +25 -0
  29. package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +43 -0
  30. package/dist/types/dynamic-page-runtime/detailSurfacePreference.d.ts +10 -0
  31. package/dist/types/dynamic-page-runtime/index.d.ts +2 -1
  32. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +57 -1
  33. package/dist/types/dynamic-page-runtime/modulePageNavigation.d.ts +1 -1
  34. package/dist/types/dynamic-page-runtime/pageContextRuntime.d.ts +6 -0
  35. package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +27 -0
  36. package/dist/types/platform-admin-runtime/index.d.ts +1 -1
  37. package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +5 -0
  38. package/dist/types/platform-admin-runtime/realtime.d.ts +2 -1
  39. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +12 -0
  40. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +6 -0
  41. package/dist/types/platform-components/FileTransferUploader.vue.d.ts +20 -1
  42. package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +32 -0
  43. package/dist/types/platform-components/ManagementWorkspace.vue.d.ts +8 -2
  44. package/dist/types/platform-components/RecordActionBar.vue.d.ts +1 -1
  45. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +4 -1
  46. package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +11 -7
  47. package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +7 -5
  48. package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +6 -6
  49. package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +10 -0
  50. package/dist/types/platform-components/RecordFormFields.vue.d.ts +5 -1
  51. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +4 -1
  52. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +1 -1
  53. package/dist/types/platform-components/RecordPanelButton.vue.d.ts +2 -0
  54. package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
  55. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +9 -2
  56. package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +3 -0
  57. package/dist/types/platform-components/SingleImageFileReferenceField.vue.d.ts +23 -0
  58. package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +13 -7
  59. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +3 -0
  60. package/dist/types/platform-components/fileReferenceTransfer.d.ts +8 -0
  61. package/dist/types/platform-components/index.d.ts +5 -2
  62. package/dist/types/platform-components/managementWorkspaceLayout.d.ts +14 -0
  63. package/dist/types/platform-components/platformErrorFeedback.d.ts +2 -0
  64. package/dist/types/platform-components/recordActionBarModel.d.ts +6 -0
  65. package/dist/types/platform-components/recordFormFieldModel.d.ts +6 -3
  66. package/dist/types/platform-components/recycleBinState.d.ts +2 -0
  67. package/dist/types/platform-components/scopedTreeModuleContext.d.ts +12 -1
  68. package/dist/types/platform-components/staticCrudManagementState.d.ts +1 -1
  69. package/dist/types/platform-workbench/Workbench.vue.d.ts +12 -2
  70. package/dist/types/platform-workbench/WorkbenchBrandControl.vue.d.ts +22 -2
  71. package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +24 -0
  72. package/dist/types/platform-workbench/WorkbenchSidebarMenuEntry.vue.d.ts +19 -0
  73. package/dist/types/platform-workbench/index.d.ts +1 -0
  74. package/dist/types/platform-workbench/menuHoverClickIntent.d.ts +10 -0
  75. package/dist/types/platform-workbench/menuNavigation.d.ts +3 -0
  76. package/dist/types/platform-workbench/menuPointerAim.d.ts +1 -1
  77. package/dist/types/platform-workbench/modulePageWorkspaceViews.d.ts +7 -0
  78. package/dist/types/platform-workbench/workbenchLayout.d.ts +39 -0
  79. package/dist/types/platform-workbench/workbenchNavigation.d.ts +2 -0
  80. package/dist/types/platform-workbench/workspaceViewHost.d.ts +2 -0
  81. package/dist/types/views/fieldUiControlManagementState.d.ts +1 -1
  82. package/dist/types/views/tenantManagementState.d.ts +11 -1
  83. package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +1 -1
  84. package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +2 -2
  85. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  86. package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +1 -1
  87. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
  88. package/dist/types/vue-ui-antdv/components/UiTabs.vue.d.ts +6 -0
  89. package/dist/types/vue-ui-antdv/components/UiThemeProvider.vue.d.ts +21 -0
  90. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +7 -1
  91. package/dist/types/vue-ui-antdv/index.d.ts +4 -0
  92. package/dist/types/vue-ui-antdv/theme.d.ts +58 -0
  93. package/dist/types/vue-ui-antdv/themeGlobalScope.d.ts +2 -0
  94. package/dist/types/vue-ui-antdv/types.d.ts +1 -0
  95. package/dist/types/web-contracts/index.d.ts +168 -17
  96. package/dist/types/web-core/businessNotifications.d.ts +3 -0
  97. package/dist/types/web-core/clients.d.ts +9 -1
  98. package/dist/types/web-core/index.d.ts +3 -0
  99. package/dist/types/web-core/mock.d.ts +3 -1
  100. package/dist/types/web-core/module/moduleContext.d.ts +1 -0
  101. package/dist/types/web-core/module/runtimeContext.d.ts +3 -1
  102. package/dist/types/web-core/module/staticModuleClient.d.ts +8 -1
  103. package/dist/types/web-core/realtime.d.ts +5 -1
  104. package/dist/types/web-core/userPreferences.d.ts +24 -0
  105. package/dist/{useUserSessionRows-DX9qYU5r.js → useUserSessionRows-DCpUZCzN.js} +2 -2
  106. package/dist/workspaceViewSessions-Dj1LjdG1.js +4984 -0
  107. package/package.json +1 -1
  108. package/dist/EmployeeManagementView-BfGb_ssB.js +0 -1706
  109. package/dist/RoleAuthorizationView-DJSWY3fu.js +0 -592
  110. package/dist/SystemUserManagementView-DNKRvmDk.js +0 -761
  111. package/dist/currentUserContext-B1lj1WgF.js +0 -11
  112. package/dist/types/views/ApplicationManagementView.vue.d.ts +0 -3
  113. package/dist/types/views/DepartmentManagementView.vue.d.ts +0 -3
  114. package/dist/types/views/FieldSpecManagementView.vue.d.ts +0 -3
  115. package/dist/types/views/OrganizationManagementView.vue.d.ts +0 -3
  116. package/dist/types/views/applicationManagementState.d.ts +0 -64
  117. package/dist/types/views/departmentManagementState.d.ts +0 -137
  118. package/dist/types/views/fieldSpecManagementState.d.ts +0 -80
  119. package/dist/types/views/organizationManagementState.d.ts +0 -64
  120. package/dist/workspaceViewSessions-C3GP1UGp.js +0 -2639
@@ -1,65 +1,67 @@
1
- import { Jt as e, Rn as t, Yt as n, Zt as r, gn as i, qt as a, tn as o, un as s } from "./platform-components-DuAohqJO.js";
2
- import { computed as c, onMounted as l, onUnmounted as u, ref as d } from "vue";
1
+ import { cn as e, dn as t, er as n, hn as r, jn as i, ln as a, on as o, sn as s, wn as c } from "./platform-components-CFU_zR7-.js";
2
+ import { computed as l, onMounted as u, onUnmounted as d, ref as f } from "vue";
3
3
  //#region src/platform-admin-runtime/authSession.ts
4
- var f = "muyun.auth.token", p = "muyun.auth.sessionId";
5
- function m(e) {
6
- return h() ?? b(e);
7
- }
8
- function h() {
9
- if (!(typeof window > "u")) return b(window.localStorage.getItem(f));
4
+ var p = "muyun.auth.token", m = "muyun.auth.sessionId";
5
+ function h(e) {
6
+ return g() ?? x(e);
10
7
  }
11
8
  function g() {
12
- if (!(typeof window > "u")) return b(window.localStorage.getItem(p));
9
+ if (!(typeof window > "u")) return x(window.localStorage.getItem(p));
13
10
  }
14
- function _(e) {
15
- typeof window > "u" || window.localStorage.setItem(f, e);
11
+ function _() {
12
+ if (!(typeof window > "u")) return x(window.localStorage.getItem(m));
16
13
  }
17
14
  function v(e) {
15
+ typeof window > "u" || window.localStorage.setItem(p, e);
16
+ }
17
+ function y(e) {
18
18
  if (typeof window > "u") return;
19
- let t = b(e);
19
+ let t = x(e);
20
20
  if (t) {
21
- window.localStorage.setItem(p, t);
21
+ window.localStorage.setItem(m, t);
22
22
  return;
23
23
  }
24
- window.localStorage.removeItem(p);
24
+ window.localStorage.removeItem(m);
25
25
  }
26
- function y() {
27
- typeof window > "u" || (window.localStorage.removeItem(f), window.localStorage.removeItem(p));
26
+ function b() {
27
+ typeof window > "u" || (window.localStorage.removeItem(p), window.localStorage.removeItem(m));
28
28
  }
29
- function b(e) {
29
+ function x(e) {
30
30
  return e?.trim() || void 0;
31
31
  }
32
32
  //#endregion
33
33
  //#region src/platform-admin-runtime/realtime.ts
34
- var x = i(), S = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Set(), w, T, E = 3e4;
35
- function D(e = {}) {
36
- return r({
34
+ var S = i(), C = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Set(), T, E, D = 3e4;
35
+ function O(e = {}) {
36
+ return t({
37
37
  baseUrl: e.baseUrl ?? void 0,
38
- token: e.token ?? m(void 0),
38
+ token: e.token ?? h(void 0),
39
39
  onStateChange: (t) => {
40
40
  e.onStateChange?.(t), t === "unauthorized" && e.onUnauthorized?.();
41
41
  }
42
42
  });
43
43
  }
44
- function O(t = {}) {
45
- if (T) throw Error("App realtime is already connected. Disconnect the active connection before reconnecting.");
46
- let r = D(t);
47
- w = r;
48
- let i = e(r, x), o = n(r, (e) => {
44
+ function k(t = {}) {
45
+ if (E) throw Error("App realtime is already connected. Disconnect the active connection before reconnecting.");
46
+ let n = O(t);
47
+ T = n;
48
+ let r = e(n, S), i = a(n, (e) => {
49
49
  t.onUserNotification?.(e);
50
- }), s = a(r, (e) => {
51
- for (let t of C) t(e);
52
- }), c = A(r);
53
- c.start(), P(r), r.connect();
54
- let l = !1, u = { async disconnect() {
55
- l || (l = !0, i.unsubscribe(), o.unsubscribe(), s.unsubscribe(), c.stop(), F(), T === u && (T = void 0), w === r && (w = void 0), await r.disconnect());
50
+ }), c = s(n, (e) => {
51
+ t.onBusinessNotification?.(e);
52
+ }), l = o(n, (e) => {
53
+ for (let t of w) t(e);
54
+ }), u = j(n);
55
+ u.start(), F(n), n.connect();
56
+ let d = !1, f = { async disconnect() {
57
+ d || (d = !0, r.unsubscribe(), i.unsubscribe(), c.unsubscribe(), l.unsubscribe(), u.stop(), I(), E === f && (E = void 0), T === n && (T = void 0), await n.disconnect());
56
58
  } };
57
- return T = u, u;
59
+ return E = f, f;
58
60
  }
59
- async function k() {
60
- await T?.disconnect();
61
+ async function A() {
62
+ await E?.disconnect();
61
63
  }
62
- function A(e) {
64
+ function j(e) {
63
65
  let t = 0, n = [
64
66
  "pointermove",
65
67
  "pointerdown",
@@ -85,96 +87,96 @@ function A(e) {
85
87
  function a(n) {
86
88
  if (e.state() !== "connected") return;
87
89
  let r = Date.now();
88
- if (!(!n && r - t < E)) {
90
+ if (!(!n && r - t < D)) {
89
91
  t = r;
90
92
  try {
91
- e.publish(s, { timestamp: new Date(r).toISOString() });
93
+ e.publish(c, { timestamp: new Date(r).toISOString() });
92
94
  } catch {}
93
95
  }
94
96
  }
95
97
  }
96
- function j(e) {
98
+ function M(e) {
97
99
  let t = e.trim();
98
100
  if (!t) throw Error("Module data change subscription requires a moduleAlias");
99
- let n = S.get(t) ?? {
101
+ let n = C.get(t) ?? {
100
102
  moduleAlias: t,
101
103
  references: 0
102
104
  };
103
- return n.references += 1, S.set(t, n), !n.active && w && (n.active = I(w, t)), { unsubscribe() {
104
- --n.references, !(n.references > 0) && (n.active?.unsubscribe(), n.active = void 0, S.delete(t));
105
+ return n.references += 1, C.set(t, n), !n.active && T && (n.active = L(T, t)), { unsubscribe() {
106
+ --n.references, !(n.references > 0) && (n.active?.unsubscribe(), n.active = void 0, C.delete(t));
105
107
  } };
106
108
  }
107
- function M(e) {
108
- return x.subscribe(e);
109
- }
110
109
  function N(e) {
111
- return C.add(e), { unsubscribe() {
112
- C.delete(e);
113
- } };
110
+ return S.subscribe(e);
114
111
  }
115
112
  function P(e) {
116
- for (let t of S.values()) t.active?.unsubscribe(), t.active = I(e, t.moduleAlias);
113
+ return w.add(e), { unsubscribe() {
114
+ w.delete(e);
115
+ } };
116
+ }
117
+ function F(e) {
118
+ for (let t of C.values()) t.active?.unsubscribe(), t.active = L(e, t.moduleAlias);
117
119
  }
118
- function F() {
119
- for (let e of S.values()) e.active?.unsubscribe(), e.active = void 0;
120
+ function I() {
121
+ for (let e of C.values()) e.active?.unsubscribe(), e.active = void 0;
120
122
  }
121
- function I(e, t) {
122
- return e.subscribe(o(t), (e) => {
123
- x.dispatch(e);
123
+ function L(e, t) {
124
+ return e.subscribe(r(t), (e) => {
125
+ S.dispatch(e);
124
126
  });
125
127
  }
126
128
  //#endregion
127
129
  //#region src/platform-admin-runtime/pageRealtime.ts
128
- function L(e) {
130
+ function R(e) {
129
131
  return (t) => {
130
- let n = t.changes.filter((t) => G(t, e));
132
+ let n = t.changes.filter((t) => K(t, e));
131
133
  n.length > 0 && e.handler(t, n);
132
134
  };
133
135
  }
134
- function R(e) {
135
- W(() => N(e));
136
- }
137
136
  function z(e) {
138
- W(() => {
139
- let t = M(L(e)), n = e.moduleAlias ? j(e.moduleAlias) : void 0;
137
+ G(() => P(e));
138
+ }
139
+ function B(e) {
140
+ G(() => {
141
+ let t = N(R(e)), n = e.moduleAlias ? M(e.moduleAlias) : void 0;
140
142
  return { unsubscribe() {
141
143
  t.unsubscribe(), n?.unsubscribe();
142
144
  } };
143
145
  });
144
146
  }
145
- function B(e) {
146
- let t = V(e);
147
- return z({
147
+ function V(e) {
148
+ let t = H(e);
149
+ return B({
148
150
  moduleAlias: e.moduleAlias,
149
151
  handler: (e, n) => t.handleDataChanges(n)
150
152
  }), t;
151
153
  }
152
- function V(e) {
153
- let n = d(), r = c(() => !!n.value);
154
- function i(t) {
155
- let r = K(e.recordId);
156
- return K(e.saving) === !0 || K(e.editing) !== !0 || !t || !r || t !== r ? !1 : (n.value = t, !0);
154
+ function H(e) {
155
+ let t = f(), r = l(() => !!t.value);
156
+ function i(n) {
157
+ let r = q(e.recordId);
158
+ return q(e.saving) === !0 || q(e.editing) !== !0 || !n || !r || n !== r ? !1 : (t.value = n, !0);
157
159
  }
158
160
  function a() {
159
- n.value = void 0;
161
+ t.value = void 0;
160
162
  }
161
- function o(n) {
162
- let r = e.changeTypes ?? [t.recordUpdated, t.recordDeleted];
163
- for (let t of n) t.moduleAlias === e.moduleAlias && r.includes(t.type) && i(t.recordId);
163
+ function o(t) {
164
+ let r = e.changeTypes ?? [n.recordUpdated, n.recordDeleted];
165
+ for (let n of t) n.moduleAlias === e.moduleAlias && r.includes(n.type) && i(n.recordId);
164
166
  }
165
167
  return {
166
- externalChangedRecordId: n,
168
+ externalChangedRecordId: t,
167
169
  externallyChanged: r,
168
170
  markExternalRecordChanged: i,
169
171
  clearExternalChanged: a,
170
172
  handleDataChanges: o
171
173
  };
172
174
  }
173
- function H(e) {
174
- let t = U(e);
175
- return u(() => t.dispose()), t;
176
- }
177
175
  function U(e) {
176
+ let t = W(e);
177
+ return d(() => t.dispose()), t;
178
+ }
179
+ function W(e) {
178
180
  let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r, i = 0, a = !0;
179
181
  function o(n) {
180
182
  if (!a) return;
@@ -205,21 +207,21 @@ function U(e) {
205
207
  dispose: c
206
208
  };
207
209
  }
208
- function W(e) {
210
+ function G(e) {
209
211
  let t;
210
- l(() => {
212
+ u(() => {
211
213
  t = e();
212
- }), u(() => {
214
+ }), d(() => {
213
215
  t?.unsubscribe(), t = void 0;
214
216
  });
215
217
  }
216
- function G(e, t) {
218
+ function K(e, t) {
217
219
  if (t.moduleAlias && e.moduleAlias !== t.moduleAlias) return !1;
218
- let n = K(t.recordId);
220
+ let n = q(t.recordId);
219
221
  return n && e.recordId !== n ? !1 : t.predicate?.(e) ?? !0;
220
222
  }
221
- function K(e) {
223
+ function q(e) {
222
224
  return typeof e == "function" ? e() : e;
223
225
  }
224
226
  //#endregion
225
- export { H as a, N as c, y as d, m as f, h as g, g as h, B as i, M as l, _ as m, R as n, O as o, v as p, z as r, k as s, U as t, j as u };
227
+ export { U as a, P as c, b as d, h as f, g, _ as h, V as i, N as l, v as m, z as n, k as o, y as p, B as r, A as s, W as t, M as u };