@ximatai/muyun-web-app 0.26.4 → 0.26.6
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-BySbWjCV.js → EmployeeDetailWorkspaceView-DHZ4arBj.js} +1 -1
- package/dist/{EmployeeManagementView-DvmDPxzN.js → EmployeeManagementView-BfGb_ssB.js} +336 -336
- package/dist/MetadataOrchestrationView-BLxigKBh.js +655 -0
- package/dist/{ModuleActionManagementView-DRtYMXOK.js → ModuleActionManagementView-ByJzNkQs.js} +102 -102
- package/dist/{RoleAuthorizationView-CK6Vfdup.js → RoleAuthorizationView-DJSWY3fu.js} +62 -62
- package/dist/{RoleDetailWorkspaceView-BPZcZy-r.js → RoleDetailWorkspaceView-Dfdigf04.js} +1 -1
- package/dist/{RoleManagementView-B7TzzVOm.js → RoleManagementView-D0e9nLwW.js} +295 -295
- package/dist/{SystemUserDetailWorkspaceView-BtEDyU-k.js → SystemUserDetailWorkspaceView-D-UPhCmD.js} +1 -1
- package/dist/{SystemUserManagementView-TKqj92zG.js → SystemUserManagementView-DNKRvmDk.js} +198 -198
- package/dist/{UserDetailWorkspaceView-B6fGrnQ7.js → UserDetailWorkspaceView-BCSCLNSz.js} +1 -1
- package/dist/{UserManagementView-4IJeDSQS.js → UserManagementView-aY2AeeWK.js} +287 -287
- package/dist/index.css +1 -1
- package/dist/index.js +2384 -2410
- package/dist/pageRealtime-Be2xkeKK.js +225 -0
- package/dist/{platform-components-CgMBopmF.js → platform-components-DuAohqJO.js} +2732 -1546
- package/dist/types/app/workbenchRouteSync.d.ts +13 -0
- package/dist/types/consumer/index.d.ts +10 -2
- package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +8 -1
- package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +5 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +126 -0
- package/dist/types/dynamic-page-runtime/modulePageListRefresh.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/modulePageNavigation.d.ts +11 -0
- package/dist/types/platform-admin-runtime/PlatformAdminOutlet.vue.d.ts +1 -0
- package/dist/types/platform-admin-runtime/backendHttp.d.ts +1 -1
- package/dist/types/platform-admin-runtime/index.d.ts +3 -0
- package/dist/types/platform-admin-runtime/realtime.d.ts +9 -5
- package/dist/types/platform-admin-runtime/workspaceViewContract.d.ts +1 -36
- package/dist/types/platform-admin-runtime/workspaceViewHost.d.ts +2 -10
- package/dist/types/platform-admin-runtime/workspaceViews.d.ts +1 -17
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/DateTimeText.vue.d.ts +1 -1
- package/dist/types/platform-components/FileSizeText.vue.d.ts +10 -0
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +51 -0
- package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +16 -0
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +19 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +4 -0
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +15 -0
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +33 -0
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +33 -0
- package/dist/types/platform-components/RecordPanelState.vue.d.ts +11 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +47 -2
- package/dist/types/platform-components/RecordStatusTag.vue.d.ts +6 -1
- package/dist/types/platform-components/RecordTagList.vue.d.ts +7 -0
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/fileReferenceTransfer.d.ts +17 -0
- package/dist/types/platform-components/fileTransferUpload.d.ts +43 -0
- package/dist/types/platform-components/index.d.ts +14 -1
- package/dist/types/platform-components/platformErrorFeedback.d.ts +2 -0
- package/dist/types/platform-components/platformFileSize.d.ts +10 -0
- package/dist/types/platform-components/recordActionBarModel.d.ts +6 -1
- package/dist/types/platform-components/recordFormFieldModel.d.ts +21 -3
- package/dist/types/platform-workbench/Workbench.vue.d.ts +2 -2
- package/dist/types/platform-workbench/WorkbenchBrandControl.vue.d.ts +21 -0
- package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +15 -1
- package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +2 -0
- package/dist/types/platform-workbench/WorkspaceViewOutlet.vue.d.ts +7 -0
- package/dist/types/platform-workbench/index.d.ts +7 -0
- package/dist/types/platform-workbench/menuPointerAim.d.ts +11 -0
- package/dist/types/platform-workbench/workbenchLayout.d.ts +1 -0
- package/dist/types/platform-workbench/workspaceViewContract.d.ts +20 -0
- package/dist/types/platform-workbench/workspaceViewHost.d.ts +8 -0
- package/dist/types/platform-workbench/workspaceViews.d.ts +21 -0
- package/dist/types/views/employeeDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +1 -1
- package/dist/types/views/moduleActionManagementWorkspaceView.d.ts +1 -1
- package/dist/types/views/roleAuthorizationWorkspaceView.d.ts +1 -1
- package/dist/types/views/roleDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/systemUserDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/userDetailWorkspaceView.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiColorPicker.vue.d.ts +14 -0
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +3 -3
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiTagList.vue.d.ts +17 -0
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +3 -3
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/index.d.ts +3 -0
- package/dist/types/vue-ui-antdv/types.d.ts +3 -9
- package/dist/types/web-contracts/index.d.ts +111 -1
- package/dist/types/web-core/clients.d.ts +6 -1
- package/dist/types/web-core/http.d.ts +12 -1
- package/dist/types/web-core/module/staticModuleClient.d.ts +1 -0
- package/dist/{useUserSessionRows-DHsyr2Vy.js → useUserSessionRows-DX9qYU5r.js} +2 -2
- package/dist/workspaceViewSessions-C3GP1UGp.js +2639 -0
- package/package.json +1 -1
- package/dist/MetadataOrchestrationView-2JxJkFEC.js +0 -655
- package/dist/pageRealtime-CJriNmzP.js +0 -140
- package/dist/workspaceViewSessions-BMbyO9O4.js +0 -1571
|
@@ -0,0 +1,225 @@
|
|
|
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";
|
|
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));
|
|
10
|
+
}
|
|
11
|
+
function g() {
|
|
12
|
+
if (!(typeof window > "u")) return b(window.localStorage.getItem(p));
|
|
13
|
+
}
|
|
14
|
+
function _(e) {
|
|
15
|
+
typeof window > "u" || window.localStorage.setItem(f, e);
|
|
16
|
+
}
|
|
17
|
+
function v(e) {
|
|
18
|
+
if (typeof window > "u") return;
|
|
19
|
+
let t = b(e);
|
|
20
|
+
if (t) {
|
|
21
|
+
window.localStorage.setItem(p, t);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
window.localStorage.removeItem(p);
|
|
25
|
+
}
|
|
26
|
+
function y() {
|
|
27
|
+
typeof window > "u" || (window.localStorage.removeItem(f), window.localStorage.removeItem(p));
|
|
28
|
+
}
|
|
29
|
+
function b(e) {
|
|
30
|
+
return e?.trim() || void 0;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
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({
|
|
37
|
+
baseUrl: e.baseUrl ?? void 0,
|
|
38
|
+
token: e.token ?? m(void 0),
|
|
39
|
+
onStateChange: (t) => {
|
|
40
|
+
e.onStateChange?.(t), t === "unauthorized" && e.onUnauthorized?.();
|
|
41
|
+
}
|
|
42
|
+
});
|
|
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) => {
|
|
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());
|
|
56
|
+
} };
|
|
57
|
+
return T = u, u;
|
|
58
|
+
}
|
|
59
|
+
async function k() {
|
|
60
|
+
await T?.disconnect();
|
|
61
|
+
}
|
|
62
|
+
function A(e) {
|
|
63
|
+
let t = 0, n = [
|
|
64
|
+
"pointermove",
|
|
65
|
+
"pointerdown",
|
|
66
|
+
"keydown",
|
|
67
|
+
"scroll"
|
|
68
|
+
], r = () => a(!1), i = () => {
|
|
69
|
+
document.visibilityState === "visible" && a(!0);
|
|
70
|
+
};
|
|
71
|
+
return {
|
|
72
|
+
start() {
|
|
73
|
+
if (!(typeof window > "u" || typeof document > "u")) {
|
|
74
|
+
for (let e of n) window.addEventListener(e, r, { passive: !0 });
|
|
75
|
+
document.addEventListener("visibilitychange", i);
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
stop() {
|
|
79
|
+
if (!(typeof window > "u" || typeof document > "u")) {
|
|
80
|
+
for (let e of n) window.removeEventListener(e, r);
|
|
81
|
+
document.removeEventListener("visibilitychange", i);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
function a(n) {
|
|
86
|
+
if (e.state() !== "connected") return;
|
|
87
|
+
let r = Date.now();
|
|
88
|
+
if (!(!n && r - t < E)) {
|
|
89
|
+
t = r;
|
|
90
|
+
try {
|
|
91
|
+
e.publish(s, { timestamp: new Date(r).toISOString() });
|
|
92
|
+
} catch {}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function j(e) {
|
|
97
|
+
let t = e.trim();
|
|
98
|
+
if (!t) throw Error("Module data change subscription requires a moduleAlias");
|
|
99
|
+
let n = S.get(t) ?? {
|
|
100
|
+
moduleAlias: t,
|
|
101
|
+
references: 0
|
|
102
|
+
};
|
|
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
|
+
} };
|
|
106
|
+
}
|
|
107
|
+
function M(e) {
|
|
108
|
+
return x.subscribe(e);
|
|
109
|
+
}
|
|
110
|
+
function N(e) {
|
|
111
|
+
return C.add(e), { unsubscribe() {
|
|
112
|
+
C.delete(e);
|
|
113
|
+
} };
|
|
114
|
+
}
|
|
115
|
+
function P(e) {
|
|
116
|
+
for (let t of S.values()) t.active?.unsubscribe(), t.active = I(e, t.moduleAlias);
|
|
117
|
+
}
|
|
118
|
+
function F() {
|
|
119
|
+
for (let e of S.values()) e.active?.unsubscribe(), e.active = void 0;
|
|
120
|
+
}
|
|
121
|
+
function I(e, t) {
|
|
122
|
+
return e.subscribe(o(t), (e) => {
|
|
123
|
+
x.dispatch(e);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/platform-admin-runtime/pageRealtime.ts
|
|
128
|
+
function L(e) {
|
|
129
|
+
return (t) => {
|
|
130
|
+
let n = t.changes.filter((t) => G(t, e));
|
|
131
|
+
n.length > 0 && e.handler(t, n);
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function R(e) {
|
|
135
|
+
W(() => N(e));
|
|
136
|
+
}
|
|
137
|
+
function z(e) {
|
|
138
|
+
W(() => {
|
|
139
|
+
let t = M(L(e)), n = e.moduleAlias ? j(e.moduleAlias) : void 0;
|
|
140
|
+
return { unsubscribe() {
|
|
141
|
+
t.unsubscribe(), n?.unsubscribe();
|
|
142
|
+
} };
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function B(e) {
|
|
146
|
+
let t = V(e);
|
|
147
|
+
return z({
|
|
148
|
+
moduleAlias: e.moduleAlias,
|
|
149
|
+
handler: (e, n) => t.handleDataChanges(n)
|
|
150
|
+
}), t;
|
|
151
|
+
}
|
|
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);
|
|
157
|
+
}
|
|
158
|
+
function a() {
|
|
159
|
+
n.value = void 0;
|
|
160
|
+
}
|
|
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);
|
|
164
|
+
}
|
|
165
|
+
return {
|
|
166
|
+
externalChangedRecordId: n,
|
|
167
|
+
externallyChanged: r,
|
|
168
|
+
markExternalRecordChanged: i,
|
|
169
|
+
clearExternalChanged: a,
|
|
170
|
+
handleDataChanges: o
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
function H(e) {
|
|
174
|
+
let t = U(e);
|
|
175
|
+
return u(() => t.dispose()), t;
|
|
176
|
+
}
|
|
177
|
+
function U(e) {
|
|
178
|
+
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r, i = 0, a = !0;
|
|
179
|
+
function o(n) {
|
|
180
|
+
if (!a) return;
|
|
181
|
+
let i = Array.isArray(n) ? n : [n];
|
|
182
|
+
for (let e of i) e && t.add(e);
|
|
183
|
+
t.size === 0 || r || (r = setTimeout(s, e.delay ?? 0));
|
|
184
|
+
}
|
|
185
|
+
function s() {
|
|
186
|
+
if (r = void 0, !a || t.size === 0) return;
|
|
187
|
+
let o = Array.from(t);
|
|
188
|
+
t.clear(), i += 1;
|
|
189
|
+
let s = i;
|
|
190
|
+
o.forEach((e) => n.set(e, s)), e.load({
|
|
191
|
+
keys: o,
|
|
192
|
+
isLatest: (e) => a && n.get(e) === s,
|
|
193
|
+
active: () => a
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
function c() {
|
|
197
|
+
a = !1, l();
|
|
198
|
+
}
|
|
199
|
+
function l() {
|
|
200
|
+
r &&= (clearTimeout(r), void 0), t.clear(), n.clear();
|
|
201
|
+
}
|
|
202
|
+
return {
|
|
203
|
+
enqueue: o,
|
|
204
|
+
reset: l,
|
|
205
|
+
dispose: c
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
function W(e) {
|
|
209
|
+
let t;
|
|
210
|
+
l(() => {
|
|
211
|
+
t = e();
|
|
212
|
+
}), u(() => {
|
|
213
|
+
t?.unsubscribe(), t = void 0;
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
function G(e, t) {
|
|
217
|
+
if (t.moduleAlias && e.moduleAlias !== t.moduleAlias) return !1;
|
|
218
|
+
let n = K(t.recordId);
|
|
219
|
+
return n && e.recordId !== n ? !1 : t.predicate?.(e) ?? !0;
|
|
220
|
+
}
|
|
221
|
+
function K(e) {
|
|
222
|
+
return typeof e == "function" ? e() : e;
|
|
223
|
+
}
|
|
224
|
+
//#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 };
|