@ximatai/muyun-web-app 0.26.8 → 0.26.10

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 (182) hide show
  1. package/dist/{MetadataOrchestrationView-DKYVGMzy.js → MetadataOrchestrationView-BhtVwJII.js} +210 -204
  2. package/dist/{ModuleActionManagementView-DiVzuPdu.js → ModuleActionManagementView-DpZS-xAD.js} +74 -74
  3. package/dist/{RoleAuthorizationView-C0s4Bog7.js → RoleAuthorizationView-8lilhtMB.js} +193 -139
  4. package/dist/{RoleDetailWorkspaceView-dqHxKVfd.js → RoleDetailWorkspaceView-CFha6JHn.js} +1 -1
  5. package/dist/{RoleManagementView-D43pUCxi.js → RoleManagementView-0_KDrzgh.js} +572 -550
  6. package/dist/index.css +1 -1
  7. package/dist/index.js +536 -4427
  8. package/dist/{platform-components-CFU_zR7-.js → platform-components-oRIsIoxu.js} +5154 -3608
  9. package/dist/types/App.vue.d.ts +1 -0
  10. package/dist/types/app/StaticRoutePageHost.vue.d.ts +13 -0
  11. package/dist/types/app/loginTenant.d.ts +1 -1
  12. package/dist/types/app/menuRouteCompiler.d.ts +45 -0
  13. package/dist/types/app/menuRouteRuntime.d.ts +24 -0
  14. package/dist/types/app/pageRouteContext.d.ts +24 -0
  15. package/dist/types/app/routeDiagnosticsStore.d.ts +10 -0
  16. package/dist/types/app/router.d.ts +15 -0
  17. package/dist/types/app/staticRouteDefinitions.d.ts +25 -0
  18. package/dist/types/app/workbenchRouteSync.d.ts +1 -1
  19. package/dist/types/app/workbenchStartup.d.ts +3 -3
  20. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -2
  21. package/dist/types/consumer/index.d.ts +5 -3
  22. package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +3 -10
  23. package/dist/types/dynamic-page-runtime/DynamicRecordDetailActions.vue.d.ts +4 -3
  24. package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +42 -0
  25. package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +15 -0
  26. package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +28 -0
  27. package/dist/types/dynamic-page-runtime/ModulePageFormContributionRenderer.vue.d.ts +12 -0
  28. package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +14 -0
  29. package/dist/types/dynamic-page-runtime/ModulePageListExpansionSurface.vue.d.ts +20 -0
  30. package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +14 -0
  31. package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansions.vue.d.ts +17 -0
  32. package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +44 -0
  33. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +41 -0
  34. package/dist/types/dynamic-page-runtime/NavigatorManagementEditor.vue.d.ts +20 -1
  35. package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +17 -5
  36. package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +31 -0
  37. package/dist/types/dynamic-page-runtime/composables/useManagedDetailRelationRuntime.d.ts +30 -0
  38. package/dist/types/dynamic-page-runtime/composables/useModulePageActions.d.ts +13 -0
  39. package/dist/types/dynamic-page-runtime/composables/useModulePageBootstrap.d.ts +17 -0
  40. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +48 -0
  41. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +28 -0
  42. package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts +22 -0
  43. package/dist/types/dynamic-page-runtime/composables/useModulePageListSession.d.ts +41 -0
  44. package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +1378 -0
  45. package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +23 -0
  46. package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +5 -12
  47. package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +18 -0
  48. package/dist/types/dynamic-page-runtime/index.d.ts +4 -2
  49. package/dist/types/dynamic-page-runtime/listPageSizePreference.d.ts +10 -0
  50. package/dist/types/dynamic-page-runtime/moduleDetailStateModel.d.ts +12 -0
  51. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +215 -9
  52. package/dist/types/dynamic-page-runtime/navigatorEntrySelection.d.ts +18 -0
  53. package/dist/types/dynamic-page-runtime/navigatorVisibility.d.ts +6 -0
  54. package/dist/types/dynamic-page-runtime/pageContextRuntime.d.ts +10 -2
  55. package/dist/types/dynamic-page-runtime/pageNavigatorItemModel.d.ts +13 -0
  56. package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +12 -3
  57. package/dist/types/dynamic-page-runtime/relationFormComputeCoordinator.d.ts +9 -0
  58. package/dist/types/formula/FormulaRuntime.d.ts +29 -0
  59. package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +1 -0
  60. package/dist/types/{views/SystemUserManagementView.vue.d.ts → platform-admin-runtime/employee/EmployeeAccountDrawer.vue.d.ts} +2 -2
  61. package/dist/types/platform-admin-runtime/employeeModulePageEnhancement.d.ts +3 -0
  62. package/dist/types/platform-admin-runtime/index.d.ts +1 -1
  63. package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +2 -0
  64. package/dist/types/platform-admin-runtime/passwordPolicyPageEnhancement.d.ts +6 -0
  65. package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +1 -6
  66. package/dist/types/platform-admin-runtime/platformModulePageEnhancement.d.ts +15 -0
  67. package/dist/types/{views/EmployeeManagementView.vue.d.ts → platform-admin-runtime/tenant/TenantApplicationConfigurationDrawer.vue.d.ts} +2 -2
  68. package/dist/types/platform-admin-runtime/tenant/TenantApplicationsDetailSection.vue.d.ts +7 -0
  69. package/dist/types/platform-admin-runtime/tenantModulePageEnhancement.d.ts +7 -0
  70. package/dist/types/platform-admin-runtime/user/UserOnlineStatusCell.vue.d.ts +8 -0
  71. package/dist/types/platform-admin-runtime/user/UserPasswordDrawer.vue.d.ts +7 -0
  72. package/dist/types/platform-admin-runtime/user/UserSessionListExpansion.vue.d.ts +7 -0
  73. package/dist/types/platform-admin-runtime/user/useUserSessionRows.d.ts +23 -0
  74. package/dist/types/platform-admin-runtime/user/userOnlineStatusStore.d.ts +11 -0
  75. package/dist/types/platform-admin-runtime/userModulePageEnhancement.d.ts +7 -0
  76. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +8 -2
  77. package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +13 -0
  78. package/dist/types/{views/SystemUserDetailWorkspaceView.vue.d.ts → platform-components/DrawerTitleActions.vue.d.ts} +2 -2
  79. package/dist/types/platform-components/FileTransferUploader.vue.d.ts +7 -0
  80. package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +2 -0
  81. package/dist/types/platform-components/ModuleActionButton.vue.d.ts +5 -2
  82. package/dist/types/platform-components/RecordContentSectionHeading.vue.d.ts +17 -0
  83. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +5 -0
  84. package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +8 -3
  85. package/dist/types/platform-components/RecordDetailFields.vue.d.ts +5 -0
  86. package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +11 -3
  87. package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +14 -6
  88. package/dist/types/platform-components/RecordExpandedSubtable.vue.d.ts +3 -0
  89. package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +2 -0
  90. package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +4 -0
  91. package/dist/types/platform-components/RecordFormFields.vue.d.ts +29 -1
  92. package/dist/types/platform-components/RecordImageFileReferencePreview.vue.d.ts +11 -0
  93. package/dist/types/platform-components/RecordListExpansionSurface.vue.d.ts +13 -0
  94. package/dist/types/platform-components/RecordListExplorer.vue.d.ts +4 -2
  95. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +4 -1
  96. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +12 -2
  97. package/dist/types/platform-components/RecordPanelButton.vue.d.ts +2 -0
  98. package/dist/types/platform-components/RecordPicker.vue.d.ts +12 -2
  99. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +39 -5
  100. package/dist/types/{views/EmployeeEmploymentDrawer.vue.d.ts → platform-components/RecordRelationTabs.vue.d.ts} +7 -7
  101. package/dist/types/platform-components/RecordSelectionCheckbox.vue.d.ts +13 -0
  102. package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +2 -0
  103. package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +12 -4
  104. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +8 -2
  105. package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +2 -0
  106. package/dist/types/platform-components/drawerTitleActions.d.ts +11 -0
  107. package/dist/types/platform-components/index.d.ts +11 -5
  108. package/dist/types/platform-components/optionFieldOptionCache.d.ts +3 -0
  109. package/dist/types/platform-components/recordDetailFieldModel.d.ts +2 -0
  110. package/dist/types/platform-components/recordFormFieldModel.d.ts +82 -5
  111. package/dist/types/platform-components/recordPickerConstraints.d.ts +4 -0
  112. package/dist/types/platform-components/recordPickerModel.d.ts +6 -2
  113. package/dist/types/platform-workbench/Workbench.vue.d.ts +4 -2
  114. package/dist/types/platform-workbench/index.d.ts +3 -2
  115. package/dist/types/platform-workbench/legacyPageHostTypeCompatibility.d.ts +6 -0
  116. package/dist/types/platform-workbench/menuNavigation.d.ts +24 -2
  117. package/dist/types/platform-workbench/pageCacheKey.d.ts +2 -0
  118. package/dist/types/platform-workbench/pageHostRegistry.d.ts +1 -1
  119. package/dist/types/platform-workbench/workbenchNavigation.d.ts +14 -1
  120. package/dist/types/views/PasswordPolicyPreview.vue.d.ts +7 -0
  121. package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +1 -0
  122. package/dist/types/views/RoleAuthorizationView.vue.d.ts +2 -0
  123. package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +1 -0
  124. package/dist/types/views/{EmployeeDetailWorkspaceView.vue.d.ts → UserDetailRouteView.vue.d.ts} +3 -1
  125. package/dist/types/views/UserManagementView.vue.d.ts +1 -6
  126. package/dist/types/views/userDetailStateModel.d.ts +1 -3
  127. package/dist/types/views/userManagementRouteState.d.ts +11 -0
  128. package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +3 -0
  129. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  130. package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +2 -1
  131. package/dist/types/vue-ui-antdv/components/UiRadioGroup.vue.d.ts +18 -0
  132. package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +2 -2
  133. package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +4 -2
  134. package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +2 -0
  135. package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +4 -2
  136. package/dist/types/vue-ui-antdv/index.d.ts +4 -2
  137. package/dist/types/web-contracts/index.d.ts +375 -14
  138. package/dist/types/web-core/businessNotifications.d.ts +3 -2
  139. package/dist/types/web-core/http.d.ts +6 -0
  140. package/dist/types/web-core/index.d.ts +1 -0
  141. package/dist/types/web-core/module/abilities.d.ts +7 -7
  142. package/dist/types/web-core/module/index.d.ts +1 -1
  143. package/dist/types/web-core/module/moduleContext.d.ts +6 -3
  144. package/dist/types/web-core/module/runtimeContext.d.ts +2 -0
  145. package/dist/types/web-core/module/staticModuleClient.d.ts +42 -10
  146. package/dist/types/web-core/realtime.d.ts +8 -0
  147. package/dist/types/web-core/referenceResolveClient.d.ts +11 -0
  148. package/dist/workspaceViews-D-RiJ64o.js +9078 -0
  149. package/package.json +1 -1
  150. package/dist/EmployeeDetailWorkspaceView-DswEDSxH.js +0 -14
  151. package/dist/EmployeeManagementView-C9STtw08.js +0 -1777
  152. package/dist/SystemUserDetailWorkspaceView-CQ9WeLrR.js +0 -17
  153. package/dist/SystemUserManagementView-D75_ylYk.js +0 -758
  154. package/dist/UserDetailWorkspaceView-BCST01d2.js +0 -17
  155. package/dist/UserManagementView-CcdvDo_y.js +0 -964
  156. package/dist/pageRealtime-EAiGWKEo.js +0 -227
  157. package/dist/types/platform-components/scopedResourceTreeModuleContext.d.ts +0 -6
  158. package/dist/types/views/EmployeeDetailContent.vue.d.ts +0 -64
  159. package/dist/types/views/UserDetailWorkspaceView.vue.d.ts +0 -7
  160. package/dist/types/views/dictionaryManagementState.d.ts +0 -215
  161. package/dist/types/views/employeeDetailStateModel.d.ts +0 -39
  162. package/dist/types/views/employeeDetailWorkspaceSession.d.ts +0 -16
  163. package/dist/types/views/employeeDetailWorkspaceView.d.ts +0 -4
  164. package/dist/types/views/fieldUiControlManagementState.d.ts +0 -76
  165. package/dist/types/views/menuManagementState.d.ts +0 -178
  166. package/dist/types/views/moduleManagementState.d.ts +0 -76
  167. package/dist/types/views/positionManagementState.d.ts +0 -218
  168. package/dist/types/views/systemUserDetailWorkspaceSession.d.ts +0 -12
  169. package/dist/types/views/systemUserDetailWorkspaceView.d.ts +0 -5
  170. package/dist/types/views/tenantManagementState.d.ts +0 -74
  171. package/dist/types/views/useEmployeeEmploymentRows.d.ts +0 -20
  172. package/dist/types/views/userDetailWorkspaceSession.d.ts +0 -14
  173. package/dist/types/views/userDetailWorkspaceView.d.ts +0 -4
  174. package/dist/useUserSessionRows-DCpUZCzN.js +0 -128
  175. package/dist/workspaceViewSessions-Dj1LjdG1.js +0 -4984
  176. /package/dist/types/views/{DictionaryManagementView.vue.d.ts → DynamicModuleRouteView.vue.d.ts} +0 -0
  177. /package/dist/types/views/{FieldUiControlManagementView.vue.d.ts → ExternalRouteView.vue.d.ts} +0 -0
  178. /package/dist/types/views/{MenuManagementView.vue.d.ts → ModuleOpenApiRouteView.vue.d.ts} +0 -0
  179. /package/dist/types/views/{ModuleManagementView.vue.d.ts → OpenApiCatalogRouteView.vue.d.ts} +0 -0
  180. /package/dist/types/views/{PasswordManagementView.vue.d.ts → RouteDiagnosticsView.vue.d.ts} +0 -0
  181. /package/dist/types/views/{PositionManagementView.vue.d.ts → UserManagementListView.vue.d.ts} +0 -0
  182. /package/dist/types/views/{TenantManagementView.vue.d.ts → WorkspaceRouteView.vue.d.ts} +0 -0
@@ -1,227 +0,0 @@
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
- //#region src/platform-admin-runtime/authSession.ts
4
- var p = "muyun.auth.token", m = "muyun.auth.sessionId";
5
- function h(e) {
6
- return g() ?? x(e);
7
- }
8
- function g() {
9
- if (!(typeof window > "u")) return x(window.localStorage.getItem(p));
10
- }
11
- function _() {
12
- if (!(typeof window > "u")) return x(window.localStorage.getItem(m));
13
- }
14
- function v(e) {
15
- typeof window > "u" || window.localStorage.setItem(p, e);
16
- }
17
- function y(e) {
18
- if (typeof window > "u") return;
19
- let t = x(e);
20
- if (t) {
21
- window.localStorage.setItem(m, t);
22
- return;
23
- }
24
- window.localStorage.removeItem(m);
25
- }
26
- function b() {
27
- typeof window > "u" || (window.localStorage.removeItem(p), window.localStorage.removeItem(m));
28
- }
29
- function x(e) {
30
- return e?.trim() || void 0;
31
- }
32
- //#endregion
33
- //#region src/platform-admin-runtime/realtime.ts
34
- var S = i(), C = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Set(), T, E, D = 3e4;
35
- function O(e = {}) {
36
- return t({
37
- baseUrl: e.baseUrl ?? void 0,
38
- token: e.token ?? h(void 0),
39
- onStateChange: (t) => {
40
- e.onStateChange?.(t), t === "unauthorized" && e.onUnauthorized?.();
41
- }
42
- });
43
- }
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());
58
- } };
59
- return E = f, f;
60
- }
61
- async function A() {
62
- await E?.disconnect();
63
- }
64
- function j(e) {
65
- let t = 0, n = [
66
- "pointermove",
67
- "pointerdown",
68
- "keydown",
69
- "scroll"
70
- ], r = () => a(!1), i = () => {
71
- document.visibilityState === "visible" && a(!0);
72
- };
73
- return {
74
- start() {
75
- if (!(typeof window > "u" || typeof document > "u")) {
76
- for (let e of n) window.addEventListener(e, r, { passive: !0 });
77
- document.addEventListener("visibilitychange", i);
78
- }
79
- },
80
- stop() {
81
- if (!(typeof window > "u" || typeof document > "u")) {
82
- for (let e of n) window.removeEventListener(e, r);
83
- document.removeEventListener("visibilitychange", i);
84
- }
85
- }
86
- };
87
- function a(n) {
88
- if (e.state() !== "connected") return;
89
- let r = Date.now();
90
- if (!(!n && r - t < D)) {
91
- t = r;
92
- try {
93
- e.publish(c, { timestamp: new Date(r).toISOString() });
94
- } catch {}
95
- }
96
- }
97
- }
98
- function M(e) {
99
- let t = e.trim();
100
- if (!t) throw Error("Module data change subscription requires a moduleAlias");
101
- let n = C.get(t) ?? {
102
- moduleAlias: t,
103
- references: 0
104
- };
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));
107
- } };
108
- }
109
- function N(e) {
110
- return S.subscribe(e);
111
- }
112
- function P(e) {
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);
119
- }
120
- function I() {
121
- for (let e of C.values()) e.active?.unsubscribe(), e.active = void 0;
122
- }
123
- function L(e, t) {
124
- return e.subscribe(r(t), (e) => {
125
- S.dispatch(e);
126
- });
127
- }
128
- //#endregion
129
- //#region src/platform-admin-runtime/pageRealtime.ts
130
- function R(e) {
131
- return (t) => {
132
- let n = t.changes.filter((t) => K(t, e));
133
- n.length > 0 && e.handler(t, n);
134
- };
135
- }
136
- function z(e) {
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;
142
- return { unsubscribe() {
143
- t.unsubscribe(), n?.unsubscribe();
144
- } };
145
- });
146
- }
147
- function V(e) {
148
- let t = H(e);
149
- return B({
150
- moduleAlias: e.moduleAlias,
151
- handler: (e, n) => t.handleDataChanges(n)
152
- }), t;
153
- }
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);
159
- }
160
- function a() {
161
- t.value = void 0;
162
- }
163
- function o(t) {
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);
166
- }
167
- return {
168
- externalChangedRecordId: t,
169
- externallyChanged: r,
170
- markExternalRecordChanged: i,
171
- clearExternalChanged: a,
172
- handleDataChanges: o
173
- };
174
- }
175
- function U(e) {
176
- let t = W(e);
177
- return d(() => t.dispose()), t;
178
- }
179
- function W(e) {
180
- let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r, i = 0, a = !0;
181
- function o(n) {
182
- if (!a) return;
183
- let i = Array.isArray(n) ? n : [n];
184
- for (let e of i) e && t.add(e);
185
- t.size === 0 || r || (r = setTimeout(s, e.delay ?? 0));
186
- }
187
- function s() {
188
- if (r = void 0, !a || t.size === 0) return;
189
- let o = Array.from(t);
190
- t.clear(), i += 1;
191
- let s = i;
192
- o.forEach((e) => n.set(e, s)), e.load({
193
- keys: o,
194
- isLatest: (e) => a && n.get(e) === s,
195
- active: () => a
196
- });
197
- }
198
- function c() {
199
- a = !1, l();
200
- }
201
- function l() {
202
- r &&= (clearTimeout(r), void 0), t.clear(), n.clear();
203
- }
204
- return {
205
- enqueue: o,
206
- reset: l,
207
- dispose: c
208
- };
209
- }
210
- function G(e) {
211
- let t;
212
- u(() => {
213
- t = e();
214
- }), d(() => {
215
- t?.unsubscribe(), t = void 0;
216
- });
217
- }
218
- function K(e, t) {
219
- if (t.moduleAlias && e.moduleAlias !== t.moduleAlias) return !1;
220
- let n = q(t.recordId);
221
- return n && e.recordId !== n ? !1 : t.predicate?.(e) ?? !0;
222
- }
223
- function q(e) {
224
- return typeof e == "function" ? e() : e;
225
- }
226
- //#endregion
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 };
@@ -1,6 +0,0 @@
1
- import type { ModuleContext } from '../web-core/index';
2
- export interface ScopedResourceTreeModuleContextOptions {
3
- resourcePath?: string;
4
- emptyQueryScopeName?: string;
5
- }
6
- export declare function createScopedResourceTreeModuleContext<TRecord, TContextRecord = unknown>(context: ModuleContext<TContextRecord>, options: ScopedResourceTreeModuleContextOptions): ModuleContext<TRecord>;
@@ -1,64 +0,0 @@
1
- import { type RecordFormFieldFallback, type RecordFormFieldPickerConfig, type RecordFormFieldValue } from '../platform-components/index';
2
- import type { Department, Employee, EmployeeAccount, UserAccount } from '../web-contracts/index';
3
- import type { ModuleContext } from '../web-core/index';
4
- type __VLS_Props = {
5
- mode: 'view' | 'create' | 'edit';
6
- draft: Partial<Employee>;
7
- selectedEmployee?: Employee;
8
- selectedOrganization?: {
9
- id?: string;
10
- title?: string;
11
- };
12
- detailDepartment?: Department;
13
- loading: boolean;
14
- loadFailed: boolean;
15
- formDisabled: boolean;
16
- showContent: boolean;
17
- fields: Map<string, import('../platform-components/recordFormFieldModel').RecordFormFieldDescriptor>;
18
- fallback: Record<string, RecordFormFieldFallback>;
19
- pickerConfigs: Record<string, RecordFormFieldPickerConfig>;
20
- displayOf: (fieldName: string, value: unknown) => string | number | boolean | undefined | null;
21
- visibleOf: (fieldName: string) => boolean;
22
- labelOf: (fieldName: string) => string;
23
- requiredOf: (fieldName: string) => boolean;
24
- externallyChanged: boolean;
25
- account?: EmployeeAccount;
26
- accountUser?: UserAccount;
27
- loadingAccounts: boolean;
28
- accountsLoadFailed: boolean;
29
- savingAccount: boolean;
30
- canManageAccounts: boolean;
31
- showAccountProvisionForm: boolean;
32
- accountProvisionDraft: Partial<UserAccount>;
33
- accountUserTitle: string;
34
- accountUserDescription: string;
35
- accountStatusTitle: string;
36
- optionContext: ModuleContext<unknown>;
37
- };
38
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
- save: () => any;
40
- updateField: (fieldName: string, value: RecordFormFieldValue) => any;
41
- retry: () => any;
42
- reloadExternal: () => any;
43
- dismissExternal: () => any;
44
- retryAccounts: () => any;
45
- startAccountProvision: () => any;
46
- cancelAccountProvision: () => any;
47
- provisionAccount: () => any;
48
- removeAccount: () => any;
49
- updateAccountProvisionField: (fieldName: "username" | "password", value: string) => any;
50
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
51
- onSave?: (() => any) | undefined;
52
- onUpdateField?: ((fieldName: string, value: RecordFormFieldValue) => any) | undefined;
53
- onRetry?: (() => any) | undefined;
54
- onReloadExternal?: (() => any) | undefined;
55
- onDismissExternal?: (() => any) | undefined;
56
- onRetryAccounts?: (() => any) | undefined;
57
- onStartAccountProvision?: (() => any) | undefined;
58
- onCancelAccountProvision?: (() => any) | undefined;
59
- onProvisionAccount?: (() => any) | undefined;
60
- onRemoveAccount?: (() => any) | undefined;
61
- onUpdateAccountProvisionField?: ((fieldName: "username" | "password", value: string) => any) | undefined;
62
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
63
- declare const _default: typeof __VLS_export;
64
- export default _default;
@@ -1,7 +0,0 @@
1
- type __VLS_Props = {
2
- recordId: string;
3
- title?: string;
4
- };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
- declare const _default: typeof __VLS_export;
7
- export default _default;
@@ -1,215 +0,0 @@
1
- import type { DictionaryCategory, DictionaryCategoryKind, DictionaryItem } from '../web-contracts/index';
2
- import { type ModuleContext, type StaticModuleTreeClient } from '../web-core/index';
3
- import type { UiConfirmOptions } from '../vue-ui-antdv/index';
4
- import { type PlatformActionResultReactionHandler } from '../platform-components/index';
5
- export type DictionaryCategoryMode = 'view' | 'edit' | 'create-root' | 'create-child';
6
- export type DictionaryItemMode = 'view' | 'edit' | 'create';
7
- type ConfirmAction = (options: UiConfirmOptions) => Promise<boolean>;
8
- export interface DictionaryManagementStateOptions {
9
- categoryActionResultReactionHandlers?: Record<string, PlatformActionResultReactionHandler | undefined>;
10
- itemActionResultReactionHandlers?: Record<string, PlatformActionResultReactionHandler | undefined>;
11
- }
12
- export declare function createDictionaryManagementState(categoryContext: ModuleContext<DictionaryCategory>, categoryClientOf: () => StaticModuleTreeClient<DictionaryCategory>, itemClientOf: (categoryId: string) => StaticModuleTreeClient<DictionaryItem>, currentApplicationAlias: () => string | undefined, confirmAction: ConfirmAction, options?: DictionaryManagementStateOptions): {
13
- categoryReloadKey: import("vue").Ref<number, number>;
14
- itemReloadKey: import("vue").Ref<number, number>;
15
- categories: import("vue").Ref<{
16
- applicationAlias?: string | undefined;
17
- alias?: string | undefined;
18
- categoryKind?: DictionaryCategoryKind | undefined;
19
- enabled?: boolean | undefined;
20
- parentId?: string | undefined;
21
- sortOrder?: number | undefined;
22
- title?: string | undefined;
23
- id?: string | undefined;
24
- tenantId?: string | undefined;
25
- version?: number | undefined;
26
- deleted?: boolean | undefined;
27
- deletedAt?: string | undefined;
28
- createdBy?: string | undefined;
29
- createdAt?: string | undefined;
30
- updatedBy?: string | undefined;
31
- updatedAt?: string | undefined;
32
- }[], DictionaryCategory[] | {
33
- applicationAlias?: string | undefined;
34
- alias?: string | undefined;
35
- categoryKind?: DictionaryCategoryKind | undefined;
36
- enabled?: boolean | undefined;
37
- parentId?: string | undefined;
38
- sortOrder?: number | undefined;
39
- title?: string | undefined;
40
- id?: string | undefined;
41
- tenantId?: string | undefined;
42
- version?: number | undefined;
43
- deleted?: boolean | undefined;
44
- deletedAt?: string | undefined;
45
- createdBy?: string | undefined;
46
- createdAt?: string | undefined;
47
- updatedBy?: string | undefined;
48
- updatedAt?: string | undefined;
49
- }[]>;
50
- selectedCategory: import("vue").Ref<DictionaryCategory | undefined, DictionaryCategory | undefined>;
51
- categoryDraft: import("vue").Ref<{
52
- applicationAlias?: string | undefined;
53
- alias?: string | undefined;
54
- categoryKind?: DictionaryCategoryKind | undefined;
55
- enabled?: boolean | undefined;
56
- parentId?: string | undefined;
57
- sortOrder?: number | undefined;
58
- title?: string | undefined;
59
- id?: string | undefined;
60
- tenantId?: string | undefined;
61
- version?: number | undefined;
62
- deleted?: boolean | undefined;
63
- deletedAt?: string | undefined;
64
- createdBy?: string | undefined;
65
- createdAt?: string | undefined;
66
- updatedBy?: string | undefined;
67
- updatedAt?: string | undefined;
68
- }, DictionaryCategory | {
69
- applicationAlias?: string | undefined;
70
- alias?: string | undefined;
71
- categoryKind?: DictionaryCategoryKind | undefined;
72
- enabled?: boolean | undefined;
73
- parentId?: string | undefined;
74
- sortOrder?: number | undefined;
75
- title?: string | undefined;
76
- id?: string | undefined;
77
- tenantId?: string | undefined;
78
- version?: number | undefined;
79
- deleted?: boolean | undefined;
80
- deletedAt?: string | undefined;
81
- createdBy?: string | undefined;
82
- createdAt?: string | undefined;
83
- updatedBy?: string | undefined;
84
- updatedAt?: string | undefined;
85
- }>;
86
- categoryMode: import("vue").Ref<DictionaryCategoryMode, DictionaryCategoryMode>;
87
- categorySaving: import("vue").Ref<boolean, boolean>;
88
- categoryError: import("vue").Ref<string | undefined, string | undefined>;
89
- items: import("vue").Ref<{
90
- categoryId?: string | undefined;
91
- categoryAlias?: string | undefined;
92
- code?: string | undefined;
93
- enabled?: boolean | undefined;
94
- parentId?: string | undefined;
95
- sortOrder?: number | undefined;
96
- title?: string | undefined;
97
- id?: string | undefined;
98
- tenantId?: string | undefined;
99
- version?: number | undefined;
100
- deleted?: boolean | undefined;
101
- deletedAt?: string | undefined;
102
- createdBy?: string | undefined;
103
- createdAt?: string | undefined;
104
- updatedBy?: string | undefined;
105
- updatedAt?: string | undefined;
106
- }[], DictionaryItem[] | {
107
- categoryId?: string | undefined;
108
- categoryAlias?: string | undefined;
109
- code?: string | undefined;
110
- enabled?: boolean | undefined;
111
- parentId?: string | undefined;
112
- sortOrder?: number | undefined;
113
- title?: string | undefined;
114
- id?: string | undefined;
115
- tenantId?: string | undefined;
116
- version?: number | undefined;
117
- deleted?: boolean | undefined;
118
- deletedAt?: string | undefined;
119
- createdBy?: string | undefined;
120
- createdAt?: string | undefined;
121
- updatedBy?: string | undefined;
122
- updatedAt?: string | undefined;
123
- }[]>;
124
- selectedItem: import("vue").Ref<DictionaryItem | undefined, DictionaryItem | undefined>;
125
- itemDraft: import("vue").Ref<{
126
- categoryId?: string | undefined;
127
- categoryAlias?: string | undefined;
128
- code?: string | undefined;
129
- enabled?: boolean | undefined;
130
- parentId?: string | undefined;
131
- sortOrder?: number | undefined;
132
- title?: string | undefined;
133
- id?: string | undefined;
134
- tenantId?: string | undefined;
135
- version?: number | undefined;
136
- deleted?: boolean | undefined;
137
- deletedAt?: string | undefined;
138
- createdBy?: string | undefined;
139
- createdAt?: string | undefined;
140
- updatedBy?: string | undefined;
141
- updatedAt?: string | undefined;
142
- }, DictionaryItem | {
143
- categoryId?: string | undefined;
144
- categoryAlias?: string | undefined;
145
- code?: string | undefined;
146
- enabled?: boolean | undefined;
147
- parentId?: string | undefined;
148
- sortOrder?: number | undefined;
149
- title?: string | undefined;
150
- id?: string | undefined;
151
- tenantId?: string | undefined;
152
- version?: number | undefined;
153
- deleted?: boolean | undefined;
154
- deletedAt?: string | undefined;
155
- createdBy?: string | undefined;
156
- createdAt?: string | undefined;
157
- updatedBy?: string | undefined;
158
- updatedAt?: string | undefined;
159
- }>;
160
- itemMode: import("vue").Ref<DictionaryItemMode, DictionaryItemMode>;
161
- itemLoading: import("vue").Ref<boolean, boolean>;
162
- itemSaving: import("vue").Ref<boolean, boolean>;
163
- itemError: import("vue").Ref<string | undefined, string | undefined>;
164
- selectedCategoryId: import("vue").ComputedRef<string | undefined>;
165
- selectedCategoryTitle: import("vue").ComputedRef<string>;
166
- selectedCategoryIsDictionary: import("vue").ComputedRef<boolean>;
167
- canCreateCategory: import("vue").ComputedRef<boolean>;
168
- canUpdateCategory: import("vue").ComputedRef<boolean>;
169
- canDeleteCategory: import("vue").ComputedRef<boolean>;
170
- canToggleCategory: import("vue").ComputedRef<boolean>;
171
- canQueryItem: import("vue").ComputedRef<boolean>;
172
- canTreeItem: import("vue").ComputedRef<boolean>;
173
- canCreateItem: import("vue").ComputedRef<boolean>;
174
- canUpdateItem: import("vue").ComputedRef<boolean>;
175
- canDeleteItem: import("vue").ComputedRef<boolean>;
176
- canToggleItem: import("vue").ComputedRef<boolean>;
177
- categoryReadonly: import("vue").ComputedRef<boolean>;
178
- itemReadonly: import("vue").ComputedRef<boolean>;
179
- categoryEditorTitle: import("vue").ComputedRef<string>;
180
- itemCardTitle: import("vue").ComputedRef<string>;
181
- handleCategoriesLoaded: (records: DictionaryCategory[]) => void;
182
- handleSelectCategory: (record: DictionaryCategory) => void;
183
- startCreateRootCategory: () => void;
184
- startCreateChildCategory: () => void;
185
- startEditCategory: () => void;
186
- cancelCategoryEdit: () => void;
187
- saveCategory: () => Promise<void>;
188
- toggleCategory: () => Promise<void>;
189
- deleteCategory: () => Promise<void>;
190
- handleItemsLoaded: (records: DictionaryItem[]) => void;
191
- loadItems: () => Promise<void>;
192
- selectItem: (record: DictionaryItem) => void;
193
- startCreateItem: () => void;
194
- startCreateChildItem: (parent: DictionaryItem) => void;
195
- startEditItem: () => void;
196
- cancelItemEdit: () => void;
197
- saveItem: () => Promise<void>;
198
- toggleItem: () => Promise<void>;
199
- deleteItem: () => Promise<void>;
200
- resetForApplication: () => void;
201
- };
202
- export declare function dictionaryCategoryTitleOf(record: DictionaryCategory | undefined): string;
203
- export declare function dictionaryItemTitleOf(record: DictionaryItem | undefined): string;
204
- export declare function dictionaryCategoryKindTitle(record: DictionaryCategory | undefined): "目录" | "字典";
205
- export declare function isDictionaryCategory(record: DictionaryCategory | undefined): boolean;
206
- export declare function isFolderCategory(record: DictionaryCategory | undefined): boolean;
207
- export declare function emptyDictionaryCategoryDraft(parentId?: string, applicationAlias?: string): DictionaryCategory;
208
- export declare function copyDictionaryCategory(record: DictionaryCategory): DictionaryCategory;
209
- export declare function normalizeDictionaryCategoryDraft(record: DictionaryCategory, applicationAlias?: string | undefined): DictionaryCategory;
210
- export declare function isValidDictionaryCategory(record: DictionaryCategory): boolean;
211
- export declare function emptyDictionaryItemDraft(category?: DictionaryCategory): DictionaryItem;
212
- export declare function copyDictionaryItem(record: DictionaryItem): DictionaryItem;
213
- export declare function normalizeDictionaryItemDraft(record: DictionaryItem, category: DictionaryCategory | undefined): DictionaryItem;
214
- export declare function isValidDictionaryItem(record: DictionaryItem): boolean;
215
- export {};
@@ -1,39 +0,0 @@
1
- export type EmployeeDetailMode = 'view' | 'create' | 'edit';
2
- export interface EmployeeFormDisabledState {
3
- mode: EmployeeDetailMode;
4
- loadingDetail: boolean;
5
- saving: boolean;
6
- selectedEmployeeId?: string;
7
- }
8
- export interface EmployeeDetailRequestState {
9
- activeRequestSeq: number;
10
- requestSeq: number;
11
- selectedEmployeeKey?: string;
12
- recordId: string;
13
- }
14
- export interface EmployeeDetailContentState {
15
- mode: EmployeeDetailMode;
16
- loadingDetail: boolean;
17
- loadFailed: boolean;
18
- selectedEmployeeId?: string;
19
- }
20
- export interface EmployeeDetailContextSwitchState {
21
- saving: boolean;
22
- }
23
- export interface EmployeeDetailCancelState {
24
- mode: EmployeeDetailMode;
25
- selectedEmployeeId?: string;
26
- }
27
- export interface EmployeeRequiredFormFieldState {
28
- fieldName: string;
29
- label: string;
30
- required: boolean;
31
- visible: boolean;
32
- value: unknown;
33
- }
34
- export declare function isEmployeeFormDisabled(state: EmployeeFormDisabledState): boolean;
35
- export declare function shouldCommitEmployeeDetailRequest(state: EmployeeDetailRequestState): boolean;
36
- export declare function shouldShowEmployeeDetailContent(state: EmployeeDetailContentState): boolean;
37
- export declare function canSwitchEmployeeDetailContext(state: EmployeeDetailContextSwitchState): boolean;
38
- export declare function shouldCloseEmployeeDetailOnCancel(state: EmployeeDetailCancelState): boolean;
39
- export declare function validateEmployeeRequiredFormFields(fields: EmployeeRequiredFormFieldState[]): string | undefined;
@@ -1,16 +0,0 @@
1
- import type { Department, Employee, EmployeeAccount, Organization, UserAccount } from '../web-contracts/index';
2
- import type { EmployeeDetailWorkspaceViewInput } from './employeeDetailWorkspaceView';
3
- export interface EmployeeDetailWorkspaceSession {
4
- selectedEmployee: Employee;
5
- draft: Partial<Employee>;
6
- organization?: Organization;
7
- department?: Department;
8
- account?: EmployeeAccount;
9
- accountUser?: UserAccount;
10
- showAccountProvisionForm: boolean;
11
- accountProvisionDraft: Partial<UserAccount>;
12
- mode: 'view' | 'edit';
13
- }
14
- export declare function handOffEmployeeDetailWorkspaceSession(input: EmployeeDetailWorkspaceViewInput, session: EmployeeDetailWorkspaceSession): Promise<"accepted" | "rejected">;
15
- export declare function registerEmployeeDetailWorkspaceHandoffRecipient(input: EmployeeDetailWorkspaceViewInput, recipient: (session: EmployeeDetailWorkspaceSession) => boolean): () => void;
16
- export declare function takeEmployeeDetailWorkspaceSession(input: EmployeeDetailWorkspaceViewInput): EmployeeDetailWorkspaceSession | undefined;
@@ -1,4 +0,0 @@
1
- export interface EmployeeDetailWorkspaceViewInput {
2
- recordId: string;
3
- }
4
- export declare const employeeDetailWorkspaceView: import("../platform-workbench/workspaceViewContract.ts").WorkspaceViewDefinition<EmployeeDetailWorkspaceViewInput>;
@@ -1,76 +0,0 @@
1
- import type { FieldUiControl } from '../web-contracts/index';
2
- import type { ModuleContext } from '../web-core/index';
3
- import type { UiConfirmOptions } from '../vue-ui-antdv/index';
4
- import { type StaticCrudActionErrorHandler } from '../platform-components/staticCrudManagementState';
5
- import type { PlatformActionResultReactionHandler } from '../platform-components/platformActionResultFeedback';
6
- type ConfirmAction = (options: UiConfirmOptions) => Promise<boolean>;
7
- export interface FieldUiControlManagementStateOptions {
8
- actionErrorHandlers?: StaticCrudActionErrorHandler<FieldUiControl>[];
9
- actionResultReactionHandlers?: Record<string, PlatformActionResultReactionHandler | undefined>;
10
- }
11
- export declare function createFieldUiControlManagementState(fieldUiControlContext: ModuleContext<FieldUiControl>, confirmAction: ConfirmAction, options?: FieldUiControlManagementStateOptions): {
12
- controlAliasReadonly: import("vue").ComputedRef<boolean>;
13
- selected: import("vue").Ref<FieldUiControl | undefined, FieldUiControl | undefined>;
14
- draft: import("vue").Ref<{
15
- alias?: string | undefined;
16
- defaultFieldSpecAlias?: string | undefined;
17
- valueShape?: "SCALAR" | "COLLECTION" | "COMPOSITE" | undefined;
18
- primaryValueKey?: string | undefined;
19
- queryMode?: "DEFAULT" | "BETWEEN" | undefined;
20
- rendererType?: string | undefined;
21
- icon?: string | undefined;
22
- enabled?: boolean | undefined;
23
- sortOrder?: number | undefined;
24
- title?: string | undefined;
25
- id?: string | undefined;
26
- tenantId?: string | undefined;
27
- version?: number | undefined;
28
- deleted?: boolean | undefined;
29
- deletedAt?: string | undefined;
30
- createdBy?: string | undefined;
31
- createdAt?: string | undefined;
32
- updatedBy?: string | undefined;
33
- updatedAt?: string | undefined;
34
- }, FieldUiControl | {
35
- alias?: string | undefined;
36
- defaultFieldSpecAlias?: string | undefined;
37
- valueShape?: "SCALAR" | "COLLECTION" | "COMPOSITE" | undefined;
38
- primaryValueKey?: string | undefined;
39
- queryMode?: "DEFAULT" | "BETWEEN" | undefined;
40
- rendererType?: string | undefined;
41
- icon?: string | undefined;
42
- enabled?: boolean | undefined;
43
- sortOrder?: number | undefined;
44
- title?: string | undefined;
45
- id?: string | undefined;
46
- tenantId?: string | undefined;
47
- version?: number | undefined;
48
- deleted?: boolean | undefined;
49
- deletedAt?: string | undefined;
50
- createdBy?: string | undefined;
51
- createdAt?: string | undefined;
52
- updatedBy?: string | undefined;
53
- updatedAt?: string | undefined;
54
- }>;
55
- mode: import("vue").Ref<import("../platform-components").StaticCrudCardMode, import("../platform-components").StaticCrudCardMode>;
56
- reloadKey: import("vue").Ref<number, number>;
57
- saving: import("vue").Ref<boolean, boolean>;
58
- actionError: import("vue").Ref<string | undefined, string | undefined>;
59
- cardTitle: import("vue").ComputedRef<string>;
60
- readonly: import("vue").ComputedRef<boolean>;
61
- canCreate: import("vue").ComputedRef<boolean>;
62
- canUpdate: import("vue").ComputedRef<boolean>;
63
- canDelete: import("vue").ComputedRef<boolean>;
64
- canEnable: import("vue").ComputedRef<boolean>;
65
- canMutate: import("vue").ComputedRef<boolean>;
66
- handleListLoaded: (records: FieldUiControl[]) => void;
67
- handleReadonlyListLoaded: (records: FieldUiControl[]) => void;
68
- handleSelect: (record: FieldUiControl) => void;
69
- startCreate: () => void;
70
- startEdit: () => void;
71
- cancelEdit: () => void;
72
- save: () => Promise<boolean>;
73
- toggleEnabled: () => Promise<void>;
74
- removeSelected: () => Promise<void>;
75
- };
76
- export {};