@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.
- package/dist/{EmployeeDetailWorkspaceView-DYJLlkSz.js → EmployeeDetailWorkspaceView-DswEDSxH.js} +1 -1
- package/dist/{EmployeeManagementView-taxWUa7g.js → EmployeeManagementView-C9STtw08.js} +385 -386
- package/dist/{MetadataOrchestrationView-B-CPudJl.js → MetadataOrchestrationView-DKYVGMzy.js} +95 -95
- package/dist/{ModuleActionManagementView-CmVj0e0C.js → ModuleActionManagementView-DiVzuPdu.js} +72 -72
- package/dist/{RoleAuthorizationView-q_6CsBYq.js → RoleAuthorizationView-C0s4Bog7.js} +47 -47
- package/dist/{RoleDetailWorkspaceView-DmJlJgAj.js → RoleDetailWorkspaceView-dqHxKVfd.js} +1 -1
- package/dist/{RoleManagementView-HCa9rH0f.js → RoleManagementView-D43pUCxi.js} +468 -469
- package/dist/{SystemUserDetailWorkspaceView-U6Ij0US1.js → SystemUserDetailWorkspaceView-CQ9WeLrR.js} +1 -1
- package/dist/SystemUserManagementView-D75_ylYk.js +758 -0
- package/dist/{UserDetailWorkspaceView-OPYvD6mH.js → UserDetailWorkspaceView-BCST01d2.js} +1 -1
- package/dist/UserManagementView-CcdvDo_y.js +964 -0
- package/dist/index.css +1 -1
- package/dist/index.js +2278 -4726
- package/dist/{pageRealtime-CzJlr9hs.js → pageRealtime-EAiGWKEo.js} +87 -85
- package/dist/{platform-components-DKKWbNrz.js → platform-components-CFU_zR7-.js} +2145 -1866
- package/dist/types/app/workbenchStartup.d.ts +6 -2
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +2 -2
- package/dist/types/consumer/index.d.ts +4 -3
- package/dist/types/dynamic-page-runtime/DynamicModuleWorkspaceDetailView.vue.d.ts +10 -0
- package/dist/types/dynamic-page-runtime/DynamicRecordDetailActions.vue.d.ts +38 -0
- package/dist/types/dynamic-page-runtime/NavigatorManagementEditor.vue.d.ts +25 -0
- package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +43 -0
- package/dist/types/dynamic-page-runtime/detailSurfacePreference.d.ts +10 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +38 -0
- package/dist/types/dynamic-page-runtime/modulePageNavigation.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/pageContextRuntime.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +27 -0
- package/dist/types/platform-admin-runtime/index.d.ts +1 -1
- package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +5 -0
- package/dist/types/platform-admin-runtime/realtime.d.ts +2 -1
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +12 -0
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +6 -0
- package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +5 -3
- package/dist/types/platform-components/ManagementWorkspace.vue.d.ts +8 -2
- package/dist/types/platform-components/RecordActionBar.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +4 -1
- package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +8 -6
- package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +7 -5
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +4 -1
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +9 -2
- package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +3 -0
- package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +13 -7
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +3 -0
- package/dist/types/platform-components/index.d.ts +4 -2
- package/dist/types/platform-components/managementWorkspaceLayout.d.ts +14 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +2 -2
- package/dist/types/platform-components/recycleBinState.d.ts +2 -0
- package/dist/types/platform-components/scopedTreeModuleContext.d.ts +11 -0
- package/dist/types/platform-workbench/index.d.ts +1 -0
- package/dist/types/platform-workbench/menuNavigation.d.ts +3 -0
- package/dist/types/platform-workbench/modulePageWorkspaceViews.d.ts +7 -0
- package/dist/types/platform-workbench/workbenchLayout.d.ts +36 -0
- package/dist/types/platform-workbench/workbenchNavigation.d.ts +2 -0
- package/dist/types/platform-workbench/workspaceViewHost.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +7 -1
- package/dist/types/vue-ui-antdv/index.d.ts +1 -0
- package/dist/types/web-contracts/index.d.ts +110 -17
- package/dist/types/web-core/businessNotifications.d.ts +3 -0
- package/dist/types/web-core/index.d.ts +1 -0
- package/dist/types/web-core/module/moduleContext.d.ts +1 -0
- package/dist/types/web-core/module/runtimeContext.d.ts +3 -1
- package/dist/types/web-core/module/staticModuleClient.d.ts +8 -1
- package/dist/types/web-core/realtime.d.ts +5 -1
- package/dist/{useUserSessionRows-CBHEzRFQ.js → useUserSessionRows-DCpUZCzN.js} +2 -2
- package/dist/workspaceViewSessions-Dj1LjdG1.js +4984 -0
- package/package.json +1 -1
- package/dist/SystemUserManagementView-C1CkKivH.js +0 -758
- package/dist/UserManagementView-gbCL9SnC.js +0 -965
- package/dist/currentUserContext-B1lj1WgF.js +0 -11
- package/dist/types/views/ApplicationManagementView.vue.d.ts +0 -3
- package/dist/types/views/DepartmentManagementView.vue.d.ts +0 -3
- package/dist/types/views/FieldSpecManagementView.vue.d.ts +0 -3
- package/dist/types/views/OrganizationManagementView.vue.d.ts +0 -3
- package/dist/types/views/applicationManagementState.d.ts +0 -64
- package/dist/types/views/departmentManagementState.d.ts +0 -137
- package/dist/types/views/fieldSpecManagementState.d.ts +0 -80
- package/dist/types/views/organizationManagementState.d.ts +0 -64
- package/dist/workspaceViewSessions-DkB9myrq.js +0 -3252
|
@@ -1,65 +1,67 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { computed as
|
|
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
|
|
5
|
-
function
|
|
6
|
-
return
|
|
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
|
|
9
|
+
if (!(typeof window > "u")) return x(window.localStorage.getItem(p));
|
|
13
10
|
}
|
|
14
|
-
function _(
|
|
15
|
-
typeof window > "u"
|
|
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 =
|
|
19
|
+
let t = x(e);
|
|
20
20
|
if (t) {
|
|
21
|
-
window.localStorage.setItem(
|
|
21
|
+
window.localStorage.setItem(m, t);
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
|
-
window.localStorage.removeItem(
|
|
24
|
+
window.localStorage.removeItem(m);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
typeof window > "u" || (window.localStorage.removeItem(
|
|
26
|
+
function b() {
|
|
27
|
+
typeof window > "u" || (window.localStorage.removeItem(p), window.localStorage.removeItem(m));
|
|
28
28
|
}
|
|
29
|
-
function
|
|
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
|
|
35
|
-
function
|
|
36
|
-
return
|
|
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 ??
|
|
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
|
|
45
|
-
if (
|
|
46
|
-
let
|
|
47
|
-
|
|
48
|
-
let
|
|
49
|
-
|
|
50
|
-
}),
|
|
51
|
-
|
|
52
|
-
}),
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
|
59
|
+
return E = f, f;
|
|
58
60
|
}
|
|
59
|
-
async function
|
|
60
|
-
await
|
|
61
|
+
async function A() {
|
|
62
|
+
await E?.disconnect();
|
|
61
63
|
}
|
|
62
|
-
function
|
|
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 <
|
|
90
|
+
if (!(!n && r - t < D)) {
|
|
89
91
|
t = r;
|
|
90
92
|
try {
|
|
91
|
-
e.publish(
|
|
93
|
+
e.publish(c, { timestamp: new Date(r).toISOString() });
|
|
92
94
|
} catch {}
|
|
93
95
|
}
|
|
94
96
|
}
|
|
95
97
|
}
|
|
96
|
-
function
|
|
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 =
|
|
101
|
+
let n = C.get(t) ?? {
|
|
100
102
|
moduleAlias: t,
|
|
101
103
|
references: 0
|
|
102
104
|
};
|
|
103
|
-
return n.references += 1,
|
|
104
|
-
--n.references, !(n.references > 0) && (n.active?.unsubscribe(), n.active = void 0,
|
|
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
|
|
112
|
-
C.delete(e);
|
|
113
|
-
} };
|
|
110
|
+
return S.subscribe(e);
|
|
114
111
|
}
|
|
115
112
|
function P(e) {
|
|
116
|
-
|
|
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
|
|
119
|
-
for (let e of
|
|
120
|
+
function I() {
|
|
121
|
+
for (let e of C.values()) e.active?.unsubscribe(), e.active = void 0;
|
|
120
122
|
}
|
|
121
|
-
function
|
|
122
|
-
return e.subscribe(
|
|
123
|
-
|
|
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
|
|
130
|
+
function R(e) {
|
|
129
131
|
return (t) => {
|
|
130
|
-
let n = t.changes.filter((t) =>
|
|
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
|
-
|
|
139
|
-
|
|
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
|
|
146
|
-
let t =
|
|
147
|
-
return
|
|
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
|
|
153
|
-
let t =
|
|
154
|
-
function
|
|
155
|
-
let r =
|
|
156
|
-
return
|
|
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
|
|
163
|
-
for (let
|
|
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:
|
|
168
|
-
markExternalRecordChanged:
|
|
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
|
|
210
|
+
function G(e) {
|
|
209
211
|
let t;
|
|
210
|
-
|
|
212
|
+
u(() => {
|
|
211
213
|
t = e();
|
|
212
|
-
}),
|
|
214
|
+
}), d(() => {
|
|
213
215
|
t?.unsubscribe(), t = void 0;
|
|
214
216
|
});
|
|
215
217
|
}
|
|
216
|
-
function
|
|
218
|
+
function K(e, t) {
|
|
217
219
|
if (t.moduleAlias && e.moduleAlias !== t.moduleAlias) return !1;
|
|
218
|
-
let n =
|
|
220
|
+
let n = q(t.recordId);
|
|
219
221
|
return n && e.recordId !== n ? !1 : t.predicate?.(e) ?? !0;
|
|
220
222
|
}
|
|
221
|
-
function
|
|
223
|
+
function q(e) {
|
|
222
224
|
return typeof e == "function" ? e() : e;
|
|
223
225
|
}
|
|
224
226
|
//#endregion
|
|
225
|
-
export {
|
|
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 };
|