@ximatai/muyun-web-app 0.26.12 → 0.26.14

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 (152) hide show
  1. package/dist/BusinessActivityLogView-BUg5WTm-.js +16 -0
  2. package/dist/BusinessLogListDrawer-BOTE_7aT.js +825 -0
  3. package/dist/LoginAuditLogView-DBNtvmIy.js +16 -0
  4. package/dist/{ModuleActionManagementView-BHEooZ5L.js → ModuleActionManagementView-Bq1VO51Y.js} +207 -206
  5. package/dist/{ModuleGovernanceView-DB3TWlMy.js → ModuleGovernanceView-B8u4_erd.js} +4036 -3213
  6. package/dist/RequestErrorLogView-BrtH3ptj.js +16 -0
  7. package/dist/RoleDetailWorkspaceView-6LW3tLA1.js +1397 -0
  8. package/dist/RuntimeLogView-s3X5CdHB.js +297 -0
  9. package/dist/index.css +1 -1
  10. package/dist/index.js +499 -469
  11. package/dist/{moduleGovernanceWorkspaceView-C5pqJOEJ.js → moduleGovernanceWorkspaceView-BRgJbUjJ.js} +2 -2
  12. package/dist/platform-components-Dt859Hbr.js +18627 -0
  13. package/dist/platform-workbench-DfqFnlm-.js +14701 -0
  14. package/dist/sse-mGbuCAax.js +187 -0
  15. package/dist/types/consumer/index.d.ts +7 -0
  16. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +2418 -0
  17. package/dist/types/dynamic-page-runtime/ModulePageBusinessState.vue.d.ts +11 -0
  18. package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +20 -4
  19. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +4643 -0
  20. package/dist/types/dynamic-page-runtime/ModulePageHostSession.vue.d.ts +43 -0
  21. package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -2
  22. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +3 -0
  23. package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +42 -0
  24. package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +2 -2
  25. package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -2
  26. package/dist/types/dynamic-page-runtime/TenantScopeExplorer.vue.d.ts +21 -0
  27. package/dist/types/dynamic-page-runtime/assistantRecordEditorPolicy.d.ts +6 -0
  28. package/dist/types/dynamic-page-runtime/composables/useModulePageActions.d.ts +1 -1
  29. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +5 -0
  30. package/dist/types/dynamic-page-runtime/composables/useModulePageListSession.d.ts +1 -0
  31. package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +1 -0
  32. package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +2 -0
  33. package/dist/types/dynamic-page-runtime/formActionResult.d.ts +2 -0
  34. package/dist/types/dynamic-page-runtime/index.d.ts +3 -0
  35. package/dist/types/dynamic-page-runtime/inputValidationActionStatus.d.ts +20 -0
  36. package/dist/types/dynamic-page-runtime/modulePageAssistantScope.d.ts +8 -0
  37. package/dist/types/dynamic-page-runtime/modulePageAssistantSurface.d.ts +6 -0
  38. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +7 -3
  39. package/dist/types/dynamic-page-runtime/modulePageUnsavedState.d.ts +10 -0
  40. package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +1 -0
  41. package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +3 -2
  42. package/dist/types/dynamic-page-runtime/referenceRecordProjection.d.ts +6 -0
  43. package/dist/types/dynamic-page-runtime/sessionViewBindings.d.ts +3 -0
  44. package/dist/types/dynamic-page-runtime/sourceReferencePickerConfig.d.ts +26 -0
  45. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +1833 -0
  46. package/dist/types/dynamic-page-runtime/useTenantScopeController.d.ts +19 -0
  47. package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +5 -0
  48. package/dist/types/platform-admin-runtime/role/roleScopeSelectionClient.d.ts +52 -0
  49. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +13 -2
  50. package/dist/types/platform-components/DictionaryOptionDialog.vue.d.ts +37 -0
  51. package/dist/types/platform-components/DictionaryOptionDialogChoiceList.vue.d.ts +21 -0
  52. package/dist/types/platform-components/DictionaryPicker.vue.d.ts +47 -0
  53. package/dist/types/platform-components/DictionaryRadioGroup.vue.d.ts +20 -0
  54. package/dist/types/platform-components/EmployeePicker.vue.d.ts +40 -0
  55. package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
  56. package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +34 -0
  57. package/dist/types/platform-components/QueryCriteriaComposer.vue.d.ts +29 -0
  58. package/dist/types/platform-components/QueryCriteriaGroupEditor.vue.d.ts +36 -0
  59. package/dist/types/platform-components/QueryValueEditor.vue.d.ts +33 -0
  60. package/dist/types/platform-components/ReadonlyReferenceValue.vue.d.ts +11 -0
  61. package/dist/types/platform-components/RecordContentSectionHeading.vue.d.ts +4 -2
  62. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +8 -3
  63. package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +7 -3
  64. package/dist/types/platform-components/RecordDetailFields.vue.d.ts +4 -6
  65. package/dist/types/platform-components/RecordFormFields.vue.d.ts +6 -6
  66. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +11 -3
  67. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +2 -2
  68. package/dist/types/platform-components/RecordPicker.vue.d.ts +2 -2
  69. package/dist/types/platform-components/RecordQueryListCell.vue.d.ts +1 -1
  70. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +26 -4
  71. package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +20 -0
  72. package/dist/types/platform-components/ReferencePicker.vue.d.ts +47 -0
  73. package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +55 -0
  74. package/dist/types/platform-components/ScopedTreePicker.vue.d.ts +31 -0
  75. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +5 -2
  76. package/dist/types/platform-components/UserPicker.vue.d.ts +47 -0
  77. package/dist/types/platform-components/dictionaryOptionDialogModel.d.ts +23 -0
  78. package/dist/types/platform-components/employeePickerModel.d.ts +19 -0
  79. package/dist/types/platform-components/identityPickerModel.d.ts +18 -0
  80. package/dist/types/platform-components/index.d.ts +32 -2
  81. package/dist/types/platform-components/optionFieldOptionCache.d.ts +1 -1
  82. package/dist/types/platform-components/queryCriteriaDraft.d.ts +24 -0
  83. package/dist/types/platform-components/queryReferencePickerProvider.d.ts +19 -0
  84. package/dist/types/platform-components/querySettlementController.d.ts +5 -0
  85. package/dist/types/platform-components/readonlyReferenceDisplay.d.ts +19 -0
  86. package/dist/types/platform-components/recordEditorSessionState.d.ts +11 -4
  87. package/dist/types/platform-components/recordFormFieldModel.d.ts +28 -2
  88. package/dist/types/platform-components/recordQueryListColumnModel.d.ts +10 -1
  89. package/dist/types/platform-components/recordQueryListQueryController.d.ts +36 -0
  90. package/dist/types/platform-components/recordTreeQueryController.d.ts +18 -0
  91. package/dist/types/platform-components/referencePickerModel.d.ts +105 -0
  92. package/dist/types/platform-components/referencePickerReadError.d.ts +24 -0
  93. package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +48 -0
  94. package/dist/types/platform-components/scopedTreePickerModel.d.ts +46 -0
  95. package/dist/types/platform-components/sourceReferencePickerProvider.d.ts +26 -0
  96. package/dist/types/platform-components/staticCrudManagementState.d.ts +7 -6
  97. package/dist/types/platform-components/userPickerModel.d.ts +45 -0
  98. package/dist/types/platform-components/userReferencePicker.d.ts +17 -0
  99. package/dist/types/platform-workbench/AssistantMarkdownContent.vue.d.ts +6 -0
  100. package/dist/types/platform-workbench/AssistantSelectionCard.vue.d.ts +15 -0
  101. package/dist/types/platform-workbench/Workbench.vue.d.ts +7 -2
  102. package/dist/types/platform-workbench/WorkbenchAssistantPanel.vue.d.ts +12 -0
  103. package/dist/types/platform-workbench/assistantMarkdown.d.ts +1 -0
  104. package/dist/types/platform-workbench/index.d.ts +1 -0
  105. package/dist/types/platform-workbench/useWorkspaceViewUnsavedState.d.ts +1 -1
  106. package/dist/types/platform-workbench/workbenchAssistantCapabilities.d.ts +3 -0
  107. package/dist/types/platform-workbench/workspaceViewHost.d.ts +1 -1
  108. package/dist/types/platform-workbench/workspaceViewUnsavedState.d.ts +3 -1
  109. package/dist/types/views/BusinessActivityLogView.vue.d.ts +3 -0
  110. package/dist/types/views/BusinessLogListDrawer.vue.d.ts +9 -0
  111. package/dist/types/views/BusinessLogRetentionControl.vue.d.ts +7 -0
  112. package/dist/types/views/LoginAuditLogView.vue.d.ts +3 -0
  113. package/dist/types/views/RequestErrorLogView.vue.d.ts +3 -0
  114. package/dist/types/views/RuntimeLogView.vue.d.ts +3 -0
  115. package/dist/types/views/businessLogClient.d.ts +88 -0
  116. package/dist/types/views/businessLogRetentionClient.d.ts +25 -0
  117. package/dist/types/views/dictionaryRadioEligibility.d.ts +18 -0
  118. package/dist/types/views/dictionaryRadioFactRequestEpoch.d.ts +10 -0
  119. package/dist/types/views/metadataGovernanceAssistantSurface.d.ts +122 -0
  120. package/dist/types/views/metadataModelChangeSetClient.d.ts +36 -0
  121. package/dist/types/views/metadataModelEditSession.d.ts +10 -1
  122. package/dist/types/views/metadataNaming.d.ts +4 -0
  123. package/dist/types/views/pageCompositionDraftState.d.ts +29 -0
  124. package/dist/types/views/roleDetailWorkspaceSession.d.ts +1 -0
  125. package/dist/types/views/roleGrantClient.d.ts +0 -1
  126. package/dist/types/views/runtimeLogClient.d.ts +12 -0
  127. package/dist/types/views/runtimeLogSse.d.ts +3 -0
  128. package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +15 -0
  129. package/dist/types/vue-ui-antdv/components/UiSearchInput.vue.d.ts +16 -2
  130. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +23 -1
  131. package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +9 -2
  132. package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +2 -0
  133. package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +1 -1
  134. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +23 -1
  135. package/dist/types/vue-ui-antdv/drawerDismissal.d.ts +18 -0
  136. package/dist/types/vue-ui-antdv/drawerWidth.d.ts +22 -0
  137. package/dist/types/vue-ui-antdv/index.d.ts +4 -0
  138. package/dist/types/web-contracts/assistant.d.ts +59 -0
  139. package/dist/types/web-contracts/index.d.ts +67 -6
  140. package/dist/types/web-core/assistantRuntime.d.ts +77 -0
  141. package/dist/types/web-core/assistantSurface.d.ts +92 -0
  142. package/dist/types/web-core/assistantTurnClient.d.ts +8 -0
  143. package/dist/types/web-core/http.d.ts +2 -0
  144. package/dist/types/web-core/index.d.ts +4 -0
  145. package/dist/types/web-core/module/moduleContext.d.ts +15 -2
  146. package/dist/types/web-core/module/runtimeContext.d.ts +3 -2
  147. package/dist/types/web-core/module/staticModuleClient.d.ts +5 -1
  148. package/dist/types/web-core/sse.d.ts +9 -0
  149. package/dist/{workspaceViews-DI_1vYX9.js → workspaceViews-DijY4n32.js} +1190 -1085
  150. package/package.json +1 -1
  151. package/dist/RoleDetailWorkspaceView-D6X7pAj5.js +0 -1379
  152. package/dist/platform-workbench-DJj42YQP.js +0 -22911
@@ -0,0 +1,187 @@
1
+ import { Pr as e, jr as t } from "./platform-components-Dt859Hbr.js";
2
+ //#region src/web-core/http.ts
3
+ function n(e, t, n) {
4
+ let i = () => {
5
+ let e = typeof t == "function" ? t() : t, n = {};
6
+ for (let [t, r] of Object.entries(e)) typeof r == "string" && r.trim().length > 0 && (n[t] = r);
7
+ return n;
8
+ }, a = (e) => {
9
+ if (n && !n(e)) return e;
10
+ let t = i();
11
+ if (Object.keys(t).length === 0) return e;
12
+ let r = new Set(Object.keys(t).map((e) => e.toLowerCase())), a = Object.fromEntries(Object.entries(e.headers ?? {}).filter(([e]) => !r.has(e.toLowerCase())));
13
+ return {
14
+ ...e,
15
+ headers: {
16
+ ...a,
17
+ ...t
18
+ }
19
+ };
20
+ }, o = { request(t) {
21
+ return e.request(a(t));
22
+ } };
23
+ return r(e) ? {
24
+ ...o,
25
+ stream(t) {
26
+ return e.stream(a(t));
27
+ }
28
+ } : o;
29
+ }
30
+ function r(e) {
31
+ return typeof e.stream == "function";
32
+ }
33
+ function i(n = {}) {
34
+ return {
35
+ async request(e) {
36
+ let t = await a(n, e);
37
+ return t.ok ? await p(t) : o(n, t);
38
+ },
39
+ async stream(r) {
40
+ let i = await a(n, r, { Accept: u(r.headers, "accept") ?? "text/event-stream" });
41
+ if (!i.ok) return o(n, i);
42
+ if (!i.body) throw new t("Response stream is unavailable", { code: e.networkError });
43
+ return i.body;
44
+ }
45
+ };
46
+ }
47
+ async function a(n, r, i) {
48
+ try {
49
+ return await fetch(c(n.baseUrl, r), {
50
+ method: r.method ?? "GET",
51
+ credentials: n.credentials,
52
+ headers: {
53
+ ...l(n, r),
54
+ ...i
55
+ },
56
+ body: d(r.body),
57
+ signal: r.signal
58
+ });
59
+ } catch (n) {
60
+ throw n instanceof DOMException && n.name === "AbortError" ? n : new t("Network request failed", {
61
+ code: e.networkError,
62
+ details: { cause: n instanceof Error ? n.message : String(n) }
63
+ });
64
+ }
65
+ }
66
+ async function o(n, r) {
67
+ let i;
68
+ try {
69
+ i = await f(r);
70
+ } catch (n) {
71
+ i = new t(`Request failed with status ${r.status}`, {
72
+ code: e.httpError,
73
+ status: r.status,
74
+ traceId: r.headers.get("X-MuYun-Trace-Id") ?? void 0,
75
+ details: { cause: n instanceof Error ? n.message : String(n) }
76
+ });
77
+ }
78
+ throw s(n, i), i;
79
+ }
80
+ function s(t, n) {
81
+ n.status === 401 && n.code !== e.loginBadCredentials && (n.globallyHandled = t.onAuthenticationRequired?.(n, t.token) === !0);
82
+ }
83
+ function c(e, t) {
84
+ let n = e?.replace(/\/$/, "") ?? "", r = t.path.startsWith("/") ? t.path : `/${t.path}`, i = typeof window > "u" ? "http://localhost" : window.location.origin, a = new URL(`${n}${r}`, i);
85
+ return Object.entries(t.query ?? {}).forEach(([e, t]) => {
86
+ let n = Array.isArray(t) ? t : [t];
87
+ for (let t of n) t != null && a.searchParams.append(e, String(t));
88
+ }), a;
89
+ }
90
+ function l(e, t) {
91
+ let n = {
92
+ Accept: "application/json",
93
+ ...e.headers
94
+ };
95
+ return t.body !== void 0 && !(t.body instanceof FormData) && (n["Content-Type"] = "application/json"), e.token && (n.Authorization = `Bearer ${e.token}`), e.traceId && (n["X-MuYun-Trace-Id"] = e.traceId), Object.assign(n, t.headers), n;
96
+ }
97
+ function u(e, t) {
98
+ return Object.entries(e ?? {}).find(([e]) => e.toLowerCase() === t)?.[1];
99
+ }
100
+ function d(e) {
101
+ if (e !== void 0) return e instanceof FormData ? e : JSON.stringify(e);
102
+ }
103
+ async function f(n) {
104
+ let r = await p(n), i = _(r), a = i?.text ?? m(r) ?? `Request failed with status ${n.status}`, o = i?.code ?? h(r) ?? e.httpError;
105
+ return new t(a, {
106
+ code: o,
107
+ status: n.status,
108
+ traceId: g(r) ?? n.headers.get("X-MuYun-Trace-Id") ?? void 0,
109
+ scope: y(r, "scope"),
110
+ targets: v(r),
111
+ details: y(r, "details") ?? (x(r) ? r : void 0),
112
+ messageArgs: y(r, "messageArgs") ?? i?.messageArgs,
113
+ actionMessage: i
114
+ });
115
+ }
116
+ async function p(e) {
117
+ if (e.status === 204) return;
118
+ let t = await e.text();
119
+ if (t) return (e.headers.get("content-type") ?? "").includes("application/json") ? JSON.parse(t) : t;
120
+ }
121
+ function m(e) {
122
+ return b(e, "message");
123
+ }
124
+ function h(e) {
125
+ return b(e, "code");
126
+ }
127
+ function g(e) {
128
+ return b(e, "traceId");
129
+ }
130
+ function _(e) {
131
+ if (!x(e) || !x(e.actionMessage)) return;
132
+ let t = b(e.actionMessage, "text");
133
+ if (!t) return;
134
+ let n = b(e.actionMessage, "code"), r = b(e.actionMessage, "type"), i = y(e.actionMessage, "messageArgs");
135
+ return {
136
+ text: t,
137
+ code: n,
138
+ type: r,
139
+ ...i ? { messageArgs: i } : {}
140
+ };
141
+ }
142
+ function v(e) {
143
+ return !x(e) || !Array.isArray(e.targets) ? [] : e.targets.filter(x);
144
+ }
145
+ function y(e, t) {
146
+ if (x(e) && x(e[t])) return e[t];
147
+ }
148
+ function b(e, t) {
149
+ if (!x(e) || !(t in e)) return;
150
+ let n = e[t];
151
+ return typeof n == "string" ? n : void 0;
152
+ }
153
+ function x(e) {
154
+ return !!e && typeof e == "object" && !Array.isArray(e);
155
+ }
156
+ //#endregion
157
+ //#region src/web-core/sse.ts
158
+ function S(e) {
159
+ let t = "", n = "message", r = [];
160
+ function i() {
161
+ r.length > 0 && e({
162
+ event: n,
163
+ data: r.join("\n")
164
+ }), n = "message", r = [];
165
+ }
166
+ function a(e) {
167
+ if (e === "") {
168
+ i();
169
+ return;
170
+ }
171
+ if (e.startsWith(":")) return;
172
+ let t = e.indexOf(":"), a = t >= 0 ? e.slice(0, t) : e, o = t >= 0 ? e.slice(t + 1).replace(/^ /, "") : "";
173
+ a === "event" ? n = o || "message" : a === "data" && r.push(o);
174
+ }
175
+ return {
176
+ push(e) {
177
+ t += e;
178
+ let n = t.indexOf("\n");
179
+ for (; n >= 0;) a(t.slice(0, n).replace(/\r$/, "")), t = t.slice(n + 1), n = t.indexOf("\n");
180
+ },
181
+ finish() {
182
+ t &&= (a(t.replace(/\r$/, "")), ""), i();
183
+ }
184
+ };
185
+ }
186
+ //#endregion
187
+ export { n as i, i as n, r, S as t };
@@ -39,3 +39,10 @@ export { uploadedFileId } from '../platform-components/fileReferenceTransfer';
39
39
  export { presentPlatformError, presentPlatformInfo, presentPlatformMessage, presentPlatformSuccess, } from '../platform-components/platformErrorFeedback';
40
40
  export { createBrowserFileTransferUpload, unwrapResponsePayload, } from '../platform-components/fileTransferUpload';
41
41
  export type { FileTransferUploadAccess, FileTransferUploadReceipt, FileTransferUploadTask, } from '../platform-components/fileTransferUpload';
42
+ export { default as ReferencePicker } from '../platform-components/ReferencePicker.vue';
43
+ export { default as ReferenceRecordDetailBrowser } from '../platform-components/ReferenceRecordDetailBrowser.vue';
44
+ export { default as ModuleReferenceRecordDetailBrowser } from '../dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue';
45
+ export { default as ReadonlyReferenceValue } from '../platform-components/ReadonlyReferenceValue.vue';
46
+ export { ReferencePickerReadError } from '../platform-components/referencePickerReadError';
47
+ export type { ReferencePickerReadErrorKind } from '../platform-components/referencePickerReadError';
48
+ export type { ReferencePickerAxisSelection, ReferencePickerBrowseScope, ReferencePickerCandidate, ReferencePickerColumn, ReferencePickerConfig, ReferencePickerId, ReferencePickerNavigationAxis, ReferencePickerNavigationItem, ReferencePickerPage, ReferencePickerPageRequest, ReferencePickerProvider, ReferencePickerSelectionSummary, ReferencePickerSourceIdentity, ReferencePickerTreeNode, ReferencePickerValidity, } from '../platform-components/referencePickerModel';