@ximatai/muyun-web-app 0.26.5 → 0.26.7
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-rm9ujeiQ.js → EmployeeDetailWorkspaceView-DYJLlkSz.js} +1 -1
- package/dist/EmployeeManagementView-taxWUa7g.js +1778 -0
- package/dist/{MetadataOrchestrationView-DaPNQML7.js → MetadataOrchestrationView-B-CPudJl.js} +151 -151
- package/dist/ModuleActionManagementView-CmVj0e0C.js +597 -0
- package/dist/{RoleAuthorizationView-qQvn7M75.js → RoleAuthorizationView-q_6CsBYq.js} +194 -194
- package/dist/{RoleDetailWorkspaceView-C-vaKeZM.js → RoleDetailWorkspaceView-DmJlJgAj.js} +1 -1
- package/dist/{RoleManagementView-C3nxfub2.js → RoleManagementView-HCa9rH0f.js} +466 -466
- package/dist/{SystemUserDetailWorkspaceView-FIbfff00.js → SystemUserDetailWorkspaceView-U6Ij0US1.js} +1 -1
- package/dist/SystemUserManagementView-C1CkKivH.js +758 -0
- package/dist/{UserDetailWorkspaceView-M--ndn6x.js → UserDetailWorkspaceView-OPYvD6mH.js} +1 -1
- package/dist/{UserManagementView-MSXf4fno.js → UserManagementView-gbCL9SnC.js} +226 -226
- package/dist/index.css +1 -1
- package/dist/index.js +3309 -2288
- package/dist/pageRealtime-CzJlr9hs.js +225 -0
- package/dist/{platform-components-_3KlZZf5.js → platform-components-DKKWbNrz.js} +4196 -1790
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +33 -0
- package/dist/types/app/LoginView.vue.d.ts +4 -1
- package/dist/types/app/ThemeSkinPreferencesDialog.vue.d.ts +20 -0
- package/dist/types/app/lockedTabPreference.d.ts +6 -0
- package/dist/types/app/themeSkinPreference.d.ts +11 -0
- package/dist/types/app/workbenchRouteSync.d.ts +13 -0
- package/dist/types/app/workbenchStartup.d.ts +14 -1
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +43 -0
- package/dist/types/consumer/index.d.ts +24 -1
- package/dist/types/consumer/userPreferencePersistence.d.ts +7 -0
- package/dist/types/consumer/workbenchNavigation.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +8 -1
- package/dist/types/dynamic-page-runtime/index.d.ts +5 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +144 -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 +70 -0
- package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +30 -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/RecordDetailLayout.vue.d.ts +8 -6
- package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +5 -5
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +6 -6
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +29 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +8 -0
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +1 -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/SingleImageFileReferenceField.vue.d.ts +23 -0
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/fileReferenceTransfer.d.ts +25 -0
- package/dist/types/platform-components/fileTransferUpload.d.ts +43 -0
- package/dist/types/platform-components/index.d.ts +15 -1
- package/dist/types/platform-components/platformErrorFeedback.d.ts +4 -0
- package/dist/types/platform-components/platformFileSize.d.ts +10 -0
- package/dist/types/platform-components/recordActionBarModel.d.ts +12 -1
- package/dist/types/platform-components/recordFormFieldModel.d.ts +24 -3
- package/dist/types/platform-components/scopedTreeModuleContext.d.ts +1 -1
- package/dist/types/platform-components/staticCrudManagementState.d.ts +1 -1
- package/dist/types/platform-workbench/Workbench.vue.d.ts +12 -2
- package/dist/types/platform-workbench/WorkbenchBrandControl.vue.d.ts +41 -0
- package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +39 -1
- package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +2 -0
- package/dist/types/platform-workbench/WorkbenchSidebarMenuEntry.vue.d.ts +19 -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/menuHoverClickIntent.d.ts +10 -0
- package/dist/types/platform-workbench/menuPointerAim.d.ts +11 -0
- package/dist/types/platform-workbench/workbenchLayout.d.ts +4 -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/applicationManagementState.d.ts +1 -1
- package/dist/types/views/employeeDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/fieldSpecManagementState.d.ts +1 -1
- package/dist/types/views/fieldUiControlManagementState.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/tenantManagementState.d.ts +11 -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/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/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/UiTabs.vue.d.ts +6 -0
- package/dist/types/vue-ui-antdv/components/UiTagList.vue.d.ts +17 -0
- package/dist/types/vue-ui-antdv/components/UiThemeProvider.vue.d.ts +21 -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 +6 -0
- package/dist/types/vue-ui-antdv/theme.d.ts +58 -0
- package/dist/types/vue-ui-antdv/themeGlobalScope.d.ts +2 -0
- package/dist/types/vue-ui-antdv/types.d.ts +4 -9
- package/dist/types/web-contracts/index.d.ts +168 -0
- package/dist/types/web-core/clients.d.ts +14 -1
- package/dist/types/web-core/http.d.ts +12 -1
- package/dist/types/web-core/index.d.ts +2 -0
- package/dist/types/web-core/mock.d.ts +3 -1
- package/dist/types/web-core/module/staticModuleClient.d.ts +1 -0
- package/dist/types/web-core/userPreferences.d.ts +24 -0
- package/dist/{useUserSessionRows-iAqK_cUy.js → useUserSessionRows-CBHEzRFQ.js} +2 -2
- package/dist/workspaceViewSessions-DkB9myrq.js +3252 -0
- package/package.json +1 -1
- package/dist/EmployeeManagementView-DyYMWQ64.js +0 -1706
- package/dist/ModuleActionManagementView-BFoPGqzC.js +0 -597
- package/dist/SystemUserManagementView-m6vwJDxI.js +0 -761
- package/dist/pageRealtime-4LXXvVW7.js +0 -140
- package/dist/workspaceViewSessions-DW0wbyQ_.js +0 -1448
|
@@ -0,0 +1,225 @@
|
|
|
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";
|
|
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 = e(), 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(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());
|
|
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 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);
|
|
157
|
+
}
|
|
158
|
+
function a() {
|
|
159
|
+
t.value = void 0;
|
|
160
|
+
}
|
|
161
|
+
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
|
+
}
|
|
165
|
+
return {
|
|
166
|
+
externalChangedRecordId: t,
|
|
167
|
+
externallyChanged: n,
|
|
168
|
+
markExternalRecordChanged: r,
|
|
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 };
|