@ximatai/muyun-web-app 0.26.7 → 0.26.9
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/DictionaryManagementView-CtIQpqVA.js +1035 -0
- package/dist/MenuManagementView-DJhkN2sG.js +837 -0
- package/dist/{MetadataOrchestrationView-B-CPudJl.js → MetadataOrchestrationView-CzhAgEdX.js} +210 -204
- package/dist/{ModuleActionManagementView-CmVj0e0C.js → ModuleActionManagementView-CM2d8jPO.js} +69 -69
- package/dist/RoleAuthorizationView-jn_WUCeg.js +599 -0
- package/dist/{RoleDetailWorkspaceView-DmJlJgAj.js → RoleDetailWorkspaceView-CzaQ3Dz1.js} +1 -1
- package/dist/RoleManagementView-nY7qu4GF.js +1951 -0
- package/dist/{SystemUserDetailWorkspaceView-U6Ij0US1.js → SystemUserDetailWorkspaceView-CBvqmWvP.js} +1 -1
- package/dist/SystemUserManagementView-AEomKvK7.js +887 -0
- package/dist/index.css +1 -1
- package/dist/index.js +651 -6970
- package/dist/{platform-components-DKKWbNrz.js → platform-components-CIi6GdC9.js} +5292 -3634
- package/dist/types/App.vue.d.ts +1 -0
- package/dist/types/app/StaticRoutePageHost.vue.d.ts +11 -0
- package/dist/types/app/loginTenant.d.ts +1 -1
- package/dist/types/app/menuRouteCompiler.d.ts +45 -0
- package/dist/types/app/menuRouteRuntime.d.ts +24 -0
- package/dist/types/app/pageRouteContext.d.ts +24 -0
- package/dist/types/app/routeDiagnosticsStore.d.ts +10 -0
- package/dist/types/app/router.d.ts +15 -0
- package/dist/types/app/staticRouteDefinitions.d.ts +25 -0
- package/dist/types/app/workbenchRouteSync.d.ts +1 -1
- package/dist/types/app/workbenchStartup.d.ts +9 -5
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +2 -2
- package/dist/types/consumer/index.d.ts +7 -4
- package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +3 -10
- package/dist/types/{views/EmployeeEmploymentDrawer.vue.d.ts → dynamic-page-runtime/DynamicModuleWorkspaceDetailView.vue.d.ts} +3 -7
- package/dist/types/dynamic-page-runtime/DynamicRecordDetailActions.vue.d.ts +39 -0
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +40 -0
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +14 -0
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +26 -0
- package/dist/types/dynamic-page-runtime/ModulePageFormContributionRenderer.vue.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +14 -0
- package/dist/types/dynamic-page-runtime/ModulePageListExpansionSurface.vue.d.ts +19 -0
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +13 -0
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansions.vue.d.ts +16 -0
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +42 -0
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +41 -0
- package/dist/types/dynamic-page-runtime/NavigatorManagementEditor.vue.d.ts +44 -0
- package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +50 -0
- package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +31 -0
- package/dist/types/dynamic-page-runtime/composables/useManagedDetailRelationRuntime.d.ts +30 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageActions.d.ts +13 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageBootstrap.d.ts +17 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +48 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +26 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts +22 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageListSession.d.ts +41 -0
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +1324 -0
- package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +22 -0
- package/dist/types/dynamic-page-runtime/detailSurfacePreference.d.ts +10 -0
- package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +5 -12
- package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +18 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +4 -2
- package/dist/types/dynamic-page-runtime/listPageSizePreference.d.ts +10 -0
- package/dist/types/dynamic-page-runtime/moduleDetailStateModel.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +218 -6
- package/dist/types/dynamic-page-runtime/modulePageNavigation.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/navigatorVisibility.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/pageContextRuntime.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +35 -0
- package/dist/types/dynamic-page-runtime/relationFormComputeCoordinator.d.ts +9 -0
- package/dist/types/formula/FormulaRuntime.d.ts +29 -0
- package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +1 -0
- package/dist/types/{views/EmployeeDetailWorkspaceView.vue.d.ts → platform-admin-runtime/employee/EmployeeAccountDrawer.vue.d.ts} +2 -1
- package/dist/types/platform-admin-runtime/employeeModulePageEnhancement.d.ts +3 -0
- package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +2 -0
- package/dist/types/platform-admin-runtime/passwordPolicyPageEnhancement.d.ts +6 -0
- package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +1 -1
- package/dist/types/platform-admin-runtime/platformModulePageEnhancement.d.ts +9 -0
- package/dist/types/platform-admin-runtime/realtime.d.ts +2 -1
- package/dist/types/platform-admin-runtime/tenant/TenantApplicationConfigurationDrawer.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/tenant/TenantApplicationsDetailSection.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/tenantModulePageEnhancement.d.ts +7 -0
- package/dist/types/platform-admin-runtime/user/UserOnlineStatusCell.vue.d.ts +8 -0
- package/dist/types/platform-admin-runtime/user/UserPasswordDrawer.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/user/UserSessionListExpansion.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/user/useUserSessionRows.d.ts +23 -0
- package/dist/types/platform-admin-runtime/user/userOnlineStatusStore.d.ts +11 -0
- package/dist/types/platform-admin-runtime/userModulePageEnhancement.d.ts +7 -0
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +12 -0
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +10 -2
- package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +13 -0
- package/dist/types/{views/EmployeeManagementView.vue.d.ts → platform-components/DrawerTitleActions.vue.d.ts} +2 -2
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +7 -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/ModuleActionButton.vue.d.ts +5 -2
- package/dist/types/platform-components/RecordActionBar.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordContentSectionHeading.vue.d.ts +17 -0
- package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +7 -1
- package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +8 -3
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +5 -0
- package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +17 -7
- package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +15 -5
- package/dist/types/platform-components/RecordExpandedSubtable.vue.d.ts +3 -0
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +4 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +29 -1
- package/dist/types/platform-components/RecordImageFileReferencePreview.vue.d.ts +11 -0
- package/dist/types/platform-components/RecordListExpansionSurface.vue.d.ts +13 -0
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +4 -2
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +6 -2
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +12 -2
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +10 -2
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +42 -7
- package/dist/types/platform-components/RecordRelationTabs.vue.d.ts +14 -0
- package/dist/types/platform-components/RecordSelectionCheckbox.vue.d.ts +13 -0
- package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +3 -0
- package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +21 -7
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +7 -2
- package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +2 -0
- package/dist/types/platform-components/drawerTitleActions.d.ts +11 -0
- package/dist/types/platform-components/index.d.ts +15 -5
- package/dist/types/platform-components/managementWorkspaceLayout.d.ts +14 -0
- package/dist/types/platform-components/optionFieldOptionCache.d.ts +3 -0
- package/dist/types/platform-components/recordDetailFieldModel.d.ts +2 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +69 -6
- package/dist/types/platform-components/recordPickerConstraints.d.ts +2 -0
- package/dist/types/platform-components/recordPickerModel.d.ts +6 -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/Workbench.vue.d.ts +2 -2
- package/dist/types/platform-workbench/index.d.ts +4 -2
- package/dist/types/platform-workbench/legacyPageHostTypeCompatibility.d.ts +6 -0
- package/dist/types/platform-workbench/menuNavigation.d.ts +26 -1
- package/dist/types/platform-workbench/modulePageWorkspaceViews.d.ts +7 -0
- package/dist/types/platform-workbench/pageCacheKey.d.ts +2 -0
- package/dist/types/platform-workbench/pageHostRegistry.d.ts +1 -1
- package/dist/types/platform-workbench/workbenchLayout.d.ts +36 -0
- package/dist/types/platform-workbench/workbenchNavigation.d.ts +16 -1
- package/dist/types/platform-workbench/workspaceViewHost.d.ts +2 -0
- package/dist/types/views/PasswordPolicyPreview.vue.d.ts +7 -0
- package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +1 -0
- package/dist/types/views/RoleAuthorizationView.vue.d.ts +2 -0
- package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +1 -0
- package/dist/types/views/{UserDetailWorkspaceView.vue.d.ts → UserDetailRouteView.vue.d.ts} +3 -2
- package/dist/types/views/UserManagementView.vue.d.ts +1 -6
- package/dist/types/views/menuManagementState.d.ts +2 -0
- package/dist/types/views/userDetailStateModel.d.ts +1 -3
- package/dist/types/views/userManagementRouteState.d.ts +11 -0
- package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +4 -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/UiInput.vue.d.ts +2 -1
- package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiRadioGroup.vue.d.ts +18 -0
- package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +2 -2
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +4 -2
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +7 -1
- package/dist/types/vue-ui-antdv/index.d.ts +5 -2
- package/dist/types/web-contracts/index.d.ts +408 -24
- package/dist/types/web-core/businessNotifications.d.ts +4 -0
- package/dist/types/web-core/index.d.ts +2 -0
- package/dist/types/web-core/module/abilities.d.ts +7 -7
- package/dist/types/web-core/module/moduleContext.d.ts +6 -3
- package/dist/types/web-core/module/runtimeContext.d.ts +5 -1
- package/dist/types/web-core/module/staticModuleClient.d.ts +42 -9
- package/dist/types/web-core/realtime.d.ts +5 -1
- package/dist/types/web-core/referenceResolveClient.d.ts +11 -0
- package/dist/workspaceViewSessions-B5g4M0rT.js +51 -0
- package/dist/workspaceViews-CkERhK0K.js +8748 -0
- package/package.json +1 -1
- package/dist/EmployeeDetailWorkspaceView-DYJLlkSz.js +0 -14
- package/dist/EmployeeManagementView-taxWUa7g.js +0 -1778
- package/dist/RoleAuthorizationView-q_6CsBYq.js +0 -592
- package/dist/RoleManagementView-HCa9rH0f.js +0 -1927
- package/dist/SystemUserManagementView-C1CkKivH.js +0 -758
- package/dist/UserDetailWorkspaceView-OPYvD6mH.js +0 -17
- package/dist/UserManagementView-gbCL9SnC.js +0 -965
- package/dist/pageRealtime-CzJlr9hs.js +0 -225
- package/dist/types/views/EmployeeDetailContent.vue.d.ts +0 -64
- package/dist/types/views/PositionManagementView.vue.d.ts +0 -3
- package/dist/types/views/TenantManagementView.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/employeeDetailStateModel.d.ts +0 -39
- package/dist/types/views/employeeDetailWorkspaceSession.d.ts +0 -16
- package/dist/types/views/employeeDetailWorkspaceView.d.ts +0 -4
- package/dist/types/views/fieldSpecManagementState.d.ts +0 -80
- package/dist/types/views/fieldUiControlManagementState.d.ts +0 -76
- package/dist/types/views/moduleManagementState.d.ts +0 -76
- package/dist/types/views/organizationManagementState.d.ts +0 -64
- package/dist/types/views/positionManagementState.d.ts +0 -218
- package/dist/types/views/tenantManagementState.d.ts +0 -74
- package/dist/types/views/useEmployeeEmploymentRows.d.ts +0 -20
- package/dist/types/views/userDetailWorkspaceSession.d.ts +0 -14
- package/dist/types/views/userDetailWorkspaceView.d.ts +0 -4
- package/dist/useUserSessionRows-CBHEzRFQ.js +0 -128
- package/dist/workspaceViewSessions-DkB9myrq.js +0 -3252
- /package/dist/types/views/{ApplicationManagementView.vue.d.ts → DynamicModuleRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{DepartmentManagementView.vue.d.ts → ExternalRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{FieldSpecManagementView.vue.d.ts → ModuleOpenApiRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{FieldUiControlManagementView.vue.d.ts → OpenApiCatalogRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{ModuleManagementView.vue.d.ts → RouteDiagnosticsView.vue.d.ts} +0 -0
- /package/dist/types/views/{OrganizationManagementView.vue.d.ts → UserManagementListView.vue.d.ts} +0 -0
- /package/dist/types/views/{PasswordManagementView.vue.d.ts → WorkspaceRouteView.vue.d.ts} +0 -0
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { tt as e } from "./platform-components-DKKWbNrz.js";
|
|
2
|
-
import { t } from "./pageRealtime-CzJlr9hs.js";
|
|
3
|
-
import { ref as n } from "vue";
|
|
4
|
-
//#region src/views/useUserSessionRows.ts
|
|
5
|
-
function r(r) {
|
|
6
|
-
let i = n([]), a = n({}), o = n([]), s = n({}), c = t({ load: async (e) => {
|
|
7
|
-
await g(e.keys, e.isLatest);
|
|
8
|
-
} }), l = t({ load: async (e) => {
|
|
9
|
-
await Promise.all(e.keys.map((t) => d(t, e.isLatest)));
|
|
10
|
-
} });
|
|
11
|
-
function u(e) {
|
|
12
|
-
l.enqueue(e);
|
|
13
|
-
}
|
|
14
|
-
async function d(t, n = () => !0) {
|
|
15
|
-
if (!(!t || r.context.can("sessions", t) === !1)) {
|
|
16
|
-
y(t, {
|
|
17
|
-
...v(t),
|
|
18
|
-
loading: !0,
|
|
19
|
-
error: void 0
|
|
20
|
-
});
|
|
21
|
-
try {
|
|
22
|
-
await f(t);
|
|
23
|
-
let e = await r.context.http.request({
|
|
24
|
-
method: "GET",
|
|
25
|
-
path: `/iam.user/${encodeURIComponent(t)}/sessions`
|
|
26
|
-
});
|
|
27
|
-
if (!n(t)) return;
|
|
28
|
-
y(t, {
|
|
29
|
-
records: e,
|
|
30
|
-
loading: !1,
|
|
31
|
-
error: void 0
|
|
32
|
-
});
|
|
33
|
-
} catch (i) {
|
|
34
|
-
if (!n(t)) return;
|
|
35
|
-
let a = e(i, {
|
|
36
|
-
source: `${r.source}-sessions`,
|
|
37
|
-
phase: "load"
|
|
38
|
-
});
|
|
39
|
-
y(t, {
|
|
40
|
-
...v(t),
|
|
41
|
-
loading: !1,
|
|
42
|
-
error: a.message
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
async function f(t) {
|
|
48
|
-
try {
|
|
49
|
-
await r.context.recordActions(t);
|
|
50
|
-
} catch (t) {
|
|
51
|
-
e(t, {
|
|
52
|
-
source: `${r.source}-sessions`,
|
|
53
|
-
phase: "load"
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function p(e, t) {
|
|
58
|
-
let n = String(e.id ?? "");
|
|
59
|
-
n && (i.value = t ? Array.from(new Set([...i.value, n])) : i.value.filter((e) => e !== n), t && v(n).records.length === 0 && l.enqueue(n));
|
|
60
|
-
}
|
|
61
|
-
function m(e) {
|
|
62
|
-
o.value = e.map((e) => String(e.id ?? "")).filter(Boolean), c.enqueue(o.value);
|
|
63
|
-
}
|
|
64
|
-
function h(e) {
|
|
65
|
-
if (e.type !== "iam.user.session.collectionChanged" || e.moduleAlias !== "iam.user") return;
|
|
66
|
-
let t = String(e.recordId ?? "");
|
|
67
|
-
t && (o.value.includes(t) && c.enqueue(t), i.value.includes(t) && l.enqueue(t));
|
|
68
|
-
}
|
|
69
|
-
async function g(t, n = () => !0) {
|
|
70
|
-
let i = Array.from(new Set(t.filter(Boolean)));
|
|
71
|
-
if (i.length !== 0) try {
|
|
72
|
-
let e = (await r.context.http.request({
|
|
73
|
-
method: "POST",
|
|
74
|
-
path: "/iam.user/sessions/status",
|
|
75
|
-
body: { userIds: i }
|
|
76
|
-
})).filter((e) => n(e.userId));
|
|
77
|
-
if (e.length === 0) return;
|
|
78
|
-
s.value = {
|
|
79
|
-
...s.value,
|
|
80
|
-
...Object.fromEntries(e.map((e) => [e.userId, e]))
|
|
81
|
-
};
|
|
82
|
-
} catch (t) {
|
|
83
|
-
e(t, {
|
|
84
|
-
source: `${r.source}-online-status`,
|
|
85
|
-
phase: "load"
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
function _(e) {
|
|
90
|
-
let t = String(e.id ?? ""), n = s.value[t];
|
|
91
|
-
if (!n) return "-";
|
|
92
|
-
if (n.present) {
|
|
93
|
-
let e = n.presentSessionCount ?? 0, t = n.idleSessionCount ?? 0;
|
|
94
|
-
return e > 0 && t >= e ? `闲置 (${e}/${n.activeSessionCount})` : `使用中 (${Math.max(0, e - t)}/${n.activeSessionCount})`;
|
|
95
|
-
}
|
|
96
|
-
return n.online ? `在线 (${n.activeSessionCount})` : "离线";
|
|
97
|
-
}
|
|
98
|
-
function v(e) {
|
|
99
|
-
return e ? a.value[e] ?? {
|
|
100
|
-
records: [],
|
|
101
|
-
loading: !1
|
|
102
|
-
} : {
|
|
103
|
-
records: [],
|
|
104
|
-
loading: !1
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
function y(e, t) {
|
|
108
|
-
a.value = {
|
|
109
|
-
...a.value,
|
|
110
|
-
[e]: t
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
function b() {
|
|
114
|
-
c.reset(), l.reset(), i.value = [], a.value = {}, o.value = [], s.value = {};
|
|
115
|
-
}
|
|
116
|
-
return {
|
|
117
|
-
expandedUserKeys: i,
|
|
118
|
-
handleUserListLoaded: m,
|
|
119
|
-
handleUserRowExpand: p,
|
|
120
|
-
handleUserSessionBusinessEvent: h,
|
|
121
|
-
loadUserSessions: u,
|
|
122
|
-
resetUserSessionRows: b,
|
|
123
|
-
userOnlineStatusTitle: _,
|
|
124
|
-
userSessionState: v
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
//#endregion
|
|
128
|
-
export { r as t };
|