@ximatai/muyun-web-app 0.26.7 → 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 (87) hide show
  1. package/dist/{EmployeeDetailWorkspaceView-DYJLlkSz.js → EmployeeDetailWorkspaceView-DswEDSxH.js} +1 -1
  2. package/dist/{EmployeeManagementView-taxWUa7g.js → EmployeeManagementView-C9STtw08.js} +385 -386
  3. package/dist/{MetadataOrchestrationView-B-CPudJl.js → MetadataOrchestrationView-DKYVGMzy.js} +95 -95
  4. package/dist/{ModuleActionManagementView-CmVj0e0C.js → ModuleActionManagementView-DiVzuPdu.js} +72 -72
  5. package/dist/{RoleAuthorizationView-q_6CsBYq.js → RoleAuthorizationView-C0s4Bog7.js} +47 -47
  6. package/dist/{RoleDetailWorkspaceView-DmJlJgAj.js → RoleDetailWorkspaceView-dqHxKVfd.js} +1 -1
  7. package/dist/{RoleManagementView-HCa9rH0f.js → RoleManagementView-D43pUCxi.js} +468 -469
  8. package/dist/{SystemUserDetailWorkspaceView-U6Ij0US1.js → SystemUserDetailWorkspaceView-CQ9WeLrR.js} +1 -1
  9. package/dist/SystemUserManagementView-D75_ylYk.js +758 -0
  10. package/dist/{UserDetailWorkspaceView-OPYvD6mH.js → UserDetailWorkspaceView-BCST01d2.js} +1 -1
  11. package/dist/UserManagementView-CcdvDo_y.js +964 -0
  12. package/dist/index.css +1 -1
  13. package/dist/index.js +2278 -4726
  14. package/dist/{pageRealtime-CzJlr9hs.js → pageRealtime-EAiGWKEo.js} +87 -85
  15. package/dist/{platform-components-DKKWbNrz.js → platform-components-CFU_zR7-.js} +2145 -1866
  16. package/dist/types/app/workbenchStartup.d.ts +6 -2
  17. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +2 -2
  18. package/dist/types/consumer/index.d.ts +4 -3
  19. package/dist/types/dynamic-page-runtime/DynamicModuleWorkspaceDetailView.vue.d.ts +10 -0
  20. package/dist/types/dynamic-page-runtime/DynamicRecordDetailActions.vue.d.ts +38 -0
  21. package/dist/types/dynamic-page-runtime/NavigatorManagementEditor.vue.d.ts +25 -0
  22. package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +43 -0
  23. package/dist/types/dynamic-page-runtime/detailSurfacePreference.d.ts +10 -0
  24. package/dist/types/dynamic-page-runtime/index.d.ts +2 -1
  25. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +38 -0
  26. package/dist/types/dynamic-page-runtime/modulePageNavigation.d.ts +1 -1
  27. package/dist/types/dynamic-page-runtime/pageContextRuntime.d.ts +6 -0
  28. package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +27 -0
  29. package/dist/types/platform-admin-runtime/index.d.ts +1 -1
  30. package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +5 -0
  31. package/dist/types/platform-admin-runtime/realtime.d.ts +2 -1
  32. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +12 -0
  33. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +6 -0
  34. package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +5 -3
  35. package/dist/types/platform-components/ManagementWorkspace.vue.d.ts +8 -2
  36. package/dist/types/platform-components/RecordActionBar.vue.d.ts +1 -1
  37. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +4 -1
  38. package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +8 -6
  39. package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +7 -5
  40. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +4 -1
  41. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +1 -1
  42. package/dist/types/platform-components/RecordPanelButton.vue.d.ts +2 -0
  43. package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
  44. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +9 -2
  45. package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +3 -0
  46. package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +13 -7
  47. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +3 -0
  48. package/dist/types/platform-components/index.d.ts +4 -2
  49. package/dist/types/platform-components/managementWorkspaceLayout.d.ts +14 -0
  50. package/dist/types/platform-components/recordFormFieldModel.d.ts +2 -2
  51. package/dist/types/platform-components/recycleBinState.d.ts +2 -0
  52. package/dist/types/platform-components/scopedTreeModuleContext.d.ts +11 -0
  53. package/dist/types/platform-workbench/index.d.ts +1 -0
  54. package/dist/types/platform-workbench/menuNavigation.d.ts +3 -0
  55. package/dist/types/platform-workbench/modulePageWorkspaceViews.d.ts +7 -0
  56. package/dist/types/platform-workbench/workbenchLayout.d.ts +36 -0
  57. package/dist/types/platform-workbench/workbenchNavigation.d.ts +2 -0
  58. package/dist/types/platform-workbench/workspaceViewHost.d.ts +2 -0
  59. package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +1 -1
  60. package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +1 -1
  61. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  62. package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +1 -1
  63. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
  64. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +7 -1
  65. package/dist/types/vue-ui-antdv/index.d.ts +1 -0
  66. package/dist/types/web-contracts/index.d.ts +110 -17
  67. package/dist/types/web-core/businessNotifications.d.ts +3 -0
  68. package/dist/types/web-core/index.d.ts +1 -0
  69. package/dist/types/web-core/module/moduleContext.d.ts +1 -0
  70. package/dist/types/web-core/module/runtimeContext.d.ts +3 -1
  71. package/dist/types/web-core/module/staticModuleClient.d.ts +8 -1
  72. package/dist/types/web-core/realtime.d.ts +5 -1
  73. package/dist/{useUserSessionRows-CBHEzRFQ.js → useUserSessionRows-DCpUZCzN.js} +2 -2
  74. package/dist/workspaceViewSessions-Dj1LjdG1.js +4984 -0
  75. package/package.json +1 -1
  76. package/dist/SystemUserManagementView-C1CkKivH.js +0 -758
  77. package/dist/UserManagementView-gbCL9SnC.js +0 -965
  78. package/dist/currentUserContext-B1lj1WgF.js +0 -11
  79. package/dist/types/views/ApplicationManagementView.vue.d.ts +0 -3
  80. package/dist/types/views/DepartmentManagementView.vue.d.ts +0 -3
  81. package/dist/types/views/FieldSpecManagementView.vue.d.ts +0 -3
  82. package/dist/types/views/OrganizationManagementView.vue.d.ts +0 -3
  83. package/dist/types/views/applicationManagementState.d.ts +0 -64
  84. package/dist/types/views/departmentManagementState.d.ts +0 -137
  85. package/dist/types/views/fieldSpecManagementState.d.ts +0 -80
  86. package/dist/types/views/organizationManagementState.d.ts +0 -64
  87. package/dist/workspaceViewSessions-DkB9myrq.js +0 -3252
@@ -1,65 +1,67 @@
1
- import { Tn as e, in as t, nn as n, on as r, qn as i, rn as a, un as o, yn as s } from "./platform-components-DKKWbNrz.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 = e(), 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(e = {}) {
45
- if (T) throw Error("App realtime is already connected. Disconnect the active connection before reconnecting.");
46
- let r = D(e);
47
- w = r;
48
- let i = a(r, x), o = t(r, (t) => {
49
- e.onUserNotification?.(t);
50
- }), s = n(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());
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
+ t.onUserNotification?.(e);
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 t = d(), n = c(() => !!t.value);
154
- function r(n) {
155
- let r = K(e.recordId);
156
- return K(e.saving) === !0 || K(e.editing) !== !0 || !n || !r || n !== r ? !1 : (t.value = n, !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
161
  t.value = void 0;
160
162
  }
161
163
  function o(t) {
162
- let n = e.changeTypes ?? [i.recordUpdated, i.recordDeleted];
163
- for (let i of t) i.moduleAlias === e.moduleAlias && n.includes(i.type) && r(i.recordId);
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
168
  externalChangedRecordId: t,
167
- externallyChanged: n,
168
- markExternalRecordChanged: r,
169
+ externallyChanged: r,
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 };