@ximatai/muyun-web-app 0.26.28 → 0.26.31
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/{BusinessActivityLogView-DlNB97pu.js → BusinessActivityLogView-Dw_SjtBi.js} +2 -2
- package/dist/BusinessLogListDrawer-Bkws0k6G.js +868 -0
- package/dist/{CodeConfigurationView-91B9dHjD.js → CodeConfigurationView-D-S2nX4C.js} +703 -703
- package/dist/{ConfigurationTranslationView-ClovkYJt.js → ConfigurationTranslationView-CzLoZCo5.js} +21 -21
- package/dist/{LoginAuditLogView-Blg9giRX.js → LoginAuditLogView-DxAlmQ9Q.js} +2 -2
- package/dist/ModuleActionManagementView-CfsGwDOn.js +780 -0
- package/dist/{ModuleGovernanceView-BNlRHqSj.js → ModuleGovernanceView-Bt2UhO-A.js} +2352 -2352
- package/dist/{RequestErrorLogView-CGczIKQy.js → RequestErrorLogView--g3Uwvzx.js} +2 -2
- package/dist/RoleDetailWorkspaceView-Bv21G3CF.js +1435 -0
- package/dist/{RuntimeLogView-DF-1k-9y.js → RuntimeLogView-CM47CKiD.js} +38 -38
- package/dist/WorkflowAdministrationView-CYq7bXS5.js +650 -0
- package/dist/{WorkflowConfigurationView-BqSfYua2.js → WorkflowConfigurationView-D1ve8wHF.js} +189 -189
- package/dist/WorkflowWorkbenchView-CJXy2iRP.js +759 -0
- package/dist/{codeConfiguration-BRxveKen.js → codeConfiguration-Bls4mHm3.js} +28 -28
- package/dist/{configurationEditorNavigation-DeXvfJyr.js → configurationEditorNavigation-DteTknF3.js} +2 -2
- package/dist/index.css +1 -1
- package/dist/index.js +704 -646
- package/dist/{moduleMenuWorkspace-D_A94ZgR.js → moduleMenuWorkspace-CsYcDzfq.js} +197 -197
- package/dist/{platform-components-DSMqalgQ.js → platform-components-CT5wnPa0.js} +2987 -2646
- package/dist/{platform-workbench-B53hydzq.js → platform-workbench-CBLyxlvV.js} +5350 -5264
- package/dist/types/app/useLoginFailureFeedback.d.ts +8 -0
- package/dist/types/consumer/index.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +30 -26
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +32 -26
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/modulePageActionControls.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +16 -5
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +15 -13
- package/dist/types/dynamic-page-runtime/useModuleRecordDataChanges.d.ts +4 -1
- package/dist/types/platform-components/ActionControlHost.vue.d.ts +16 -0
- package/dist/types/platform-components/AdaptiveHeaderActionBar.vue.d.ts +3 -0
- package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +13 -0
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +7 -29
- package/dist/types/platform-components/RecordPicker.vue.d.ts +7 -31
- package/dist/types/platform-components/RecordReferencePicker.vue.d.ts +24 -0
- package/dist/types/platform-components/ReferencePicker.vue.d.ts +1 -1
- package/dist/types/platform-components/ReferenceSelectionPanel.vue.d.ts +20 -0
- package/dist/types/platform-components/UserPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/actionControl.d.ts +28 -0
- package/dist/types/platform-components/adaptiveHeaderActionLayout.d.ts +4 -2
- package/dist/types/platform-components/index.d.ts +1 -0
- package/dist/types/platform-components/recordActionBarModel.d.ts +5 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +2 -0
- package/dist/types/platform-components/recordReferencePickerProvider.d.ts +26 -0
- package/dist/types/platform-components/workflowAccountOptions.d.ts +3 -3
- package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +13 -2
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +8 -2
- package/dist/{useWorkflowConfigurationContext-BuBDdUcQ.js → useWorkflowConfigurationContext-DsuGHZ0U.js} +9 -9
- package/dist/{workspaceViews-BSVtjZj1.js → workspaceViews-BxEz6u5n.js} +523 -523
- package/package.json +1 -1
- package/dist/BusinessLogListDrawer-ByiwQP1m.js +0 -868
- package/dist/ModuleActionManagementView-Chr_XTJ3.js +0 -780
- package/dist/RoleDetailWorkspaceView-CPH9cga9.js +0 -1435
- package/dist/WorkflowAdministrationView-CCXry0G4.js +0 -650
- package/dist/WorkflowWorkbenchView-DUFfO3Gf.js +0 -759
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
/** A frontend-owned control, mounted once in the platform action bar. */
|
|
3
|
+
export interface ActionControl {
|
|
4
|
+
component: Component;
|
|
5
|
+
moduleAlias: string;
|
|
6
|
+
record: Readonly<Record<string, unknown>>;
|
|
7
|
+
sessionKey: string | number;
|
|
8
|
+
/** Identity of the owning page scope, including its tenant boundary. */
|
|
9
|
+
scopeKey: object;
|
|
10
|
+
active: boolean;
|
|
11
|
+
refresh(): void;
|
|
12
|
+
}
|
|
13
|
+
/** The component receives this read-only value as its `context` prop. */
|
|
14
|
+
export interface ActionControlContext {
|
|
15
|
+
actionKey: string;
|
|
16
|
+
title: string;
|
|
17
|
+
moduleAlias: string;
|
|
18
|
+
record: Readonly<Record<string, unknown>>;
|
|
19
|
+
sessionKey: string | number;
|
|
20
|
+
active: boolean;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
disabledReason?: string;
|
|
23
|
+
loading: boolean;
|
|
24
|
+
/** Aborted on inactivity, disablement, record/session changes and unmount. */
|
|
25
|
+
signal: AbortSignal;
|
|
26
|
+
/** Refreshes record data, action availability and its list while this session is usable. */
|
|
27
|
+
refresh(): void;
|
|
28
|
+
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Business-facing action importance. The shell decides whether an action is
|
|
3
|
-
* rendered directly or collected under "更多"
|
|
4
|
-
*
|
|
3
|
+
* rendered directly or collected under "更多". Control adjacency is a separate
|
|
4
|
+
* constraint and does not promote a business operation's importance.
|
|
5
5
|
*/
|
|
6
6
|
export type HeaderActionLevel = 'primary' | 'standard' | 'secondary';
|
|
7
7
|
export interface HeaderActionLayoutItem {
|
|
8
8
|
key: string;
|
|
9
9
|
level?: HeaderActionLevel;
|
|
10
10
|
width: number;
|
|
11
|
+
keepDirect?: boolean;
|
|
12
|
+
placement?: 'after-primary';
|
|
11
13
|
}
|
|
12
14
|
export interface HeaderActionLayout {
|
|
13
15
|
directKeys: string[];
|
|
@@ -31,6 +31,7 @@ export { reconcileSelectedKey, reconcileSelectedKeys } from './selectionRefresh'
|
|
|
31
31
|
export { MANAGEMENT_WORKSPACE_LAYOUT, listDetailWorkspaceMinWidth } from './managementWorkspaceLayout';
|
|
32
32
|
export { providePageLayout, usePageLayout } from './pageLayoutContext';
|
|
33
33
|
export { default as RecordActionBar } from './RecordActionBar.vue';
|
|
34
|
+
export type { ActionControl, ActionControlContext } from './actionControl';
|
|
34
35
|
export { default as RecordQueryListSurface } from './RecordQueryListSurface.vue';
|
|
35
36
|
export { default as RecordQueryEnumFilter } from './RecordQueryEnumFilter.vue';
|
|
36
37
|
export { default as QueryGroupedSummary } from './QueryGroupedSummary.vue';
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { type LanguageContext } from '../web-core/index';
|
|
2
2
|
import type { ModuleContext } from '../web-core/index';
|
|
3
3
|
import type { UiIconName } from '../vue-ui-antdv/index';
|
|
4
|
+
import type { ActionControl } from './actionControl';
|
|
4
5
|
export interface RecordActionItem {
|
|
6
|
+
/** Frontend-only interactive presentation; never converted to a menu click. */
|
|
7
|
+
control?: ActionControl;
|
|
8
|
+
/** Follow the first visible primary action; append if no primary action exists. */
|
|
9
|
+
placement?: 'after-primary';
|
|
5
10
|
key?: string;
|
|
6
11
|
actionCode?: string;
|
|
7
12
|
title: string;
|
|
@@ -5,6 +5,7 @@ import type { WebTreeNode } from '../web-contracts/index';
|
|
|
5
5
|
import type { RecordPickerMode } from './recordPickerModel';
|
|
6
6
|
import type { ScopedTreePickerProvider } from './scopedTreePickerModel';
|
|
7
7
|
import type { ReferencePickerColumn, ReferencePickerProvider } from './referencePickerModel';
|
|
8
|
+
import type { RecordReferencePickerSource } from './recordReferencePickerProvider';
|
|
8
9
|
export type RecordFormFieldDescriptor = (ViewFieldDefinition | ResolvedViewFieldDescriptor) & {
|
|
9
10
|
businessCode?: ResolvedViewFieldDescriptor['businessCode'];
|
|
10
11
|
content?: ResolvedViewFieldDescriptor['content'];
|
|
@@ -75,6 +76,7 @@ export interface RecordFormFieldPickerConfig {
|
|
|
75
76
|
/** Candidate columns are presentation only; identity and authorization stay with the provider. */
|
|
76
77
|
columns?: readonly ReferencePickerColumn[];
|
|
77
78
|
loadOptions?: (keyword: string) => Promise<RecordPickerRecord[]>;
|
|
79
|
+
loadPage?: RecordReferencePickerSource['loadPage'];
|
|
78
80
|
loadTree?: () => Promise<WebTreeNode<RecordPickerRecord>[]>;
|
|
79
81
|
resolveOptions?: (values: string[]) => Promise<RecordPickerRecord[]>;
|
|
80
82
|
reloadKey?: string | number;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ModuleContext, LanguageContext } from '../web-core/index';
|
|
2
|
+
import type { WebTreeNode } from '../web-contracts/index';
|
|
3
|
+
import type { PickerConstraint, RecordPickerRecord } from './recordPickerConstraints';
|
|
4
|
+
import type { RecordPickerMode } from './recordPickerModel';
|
|
5
|
+
import type { ReferencePickerCandidate, ReferencePickerPageRequest, ReferencePickerProvider } from './referencePickerModel';
|
|
6
|
+
export interface RecordPickerPage {
|
|
7
|
+
records: RecordPickerRecord[];
|
|
8
|
+
total: number;
|
|
9
|
+
}
|
|
10
|
+
/** Existing record-oriented callers retain their source and their event payloads. */
|
|
11
|
+
export interface RecordReferencePickerSource {
|
|
12
|
+
context: ModuleContext<RecordPickerRecord>;
|
|
13
|
+
loadOptions?: (keyword: string) => Promise<RecordPickerRecord[]>;
|
|
14
|
+
loadPage?: (request: ReferencePickerPageRequest) => Promise<RecordPickerPage>;
|
|
15
|
+
loadTree?: () => Promise<WebTreeNode<RecordPickerRecord>[]>;
|
|
16
|
+
resolveOptions?: (values: string[]) => Promise<RecordPickerRecord[]>;
|
|
17
|
+
mode?: RecordPickerMode;
|
|
18
|
+
constraints?: PickerConstraint<RecordPickerRecord>[];
|
|
19
|
+
titleOf?: (record: RecordPickerRecord) => string;
|
|
20
|
+
descriptionOf?: (record: RecordPickerRecord) => string | undefined;
|
|
21
|
+
filterOption?: (record: RecordPickerRecord, keyword: string) => boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface RecordReferenceCandidate extends ReferencePickerCandidate {
|
|
24
|
+
record?: RecordPickerRecord;
|
|
25
|
+
}
|
|
26
|
+
export declare function createRecordReferencePickerProvider(source: RecordReferencePickerSource, language: LanguageContext): Promise<ReferencePickerProvider<RecordReferenceCandidate>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { HttpClient } from '../web-core/index';
|
|
2
|
-
import type {
|
|
3
|
-
/**
|
|
4
|
-
export declare function
|
|
2
|
+
import type { RecordReferencePickerSource } from './recordReferencePickerProvider';
|
|
3
|
+
/** Paged delivery retains the IAM selector's own authorization and candidate rules. */
|
|
4
|
+
export declare function workflowAccountPage(http: HttpClient): NonNullable<RecordReferencePickerSource['loadPage']>;
|
|
@@ -7,6 +7,8 @@ type __VLS_Props = {
|
|
|
7
7
|
invalid?: boolean;
|
|
8
8
|
autofocus?: boolean;
|
|
9
9
|
allowClear?: boolean;
|
|
10
|
+
/** Enables the reveal/hide icon for password inputs; visibility is local to the mounted input. */
|
|
11
|
+
visibilityToggle?: boolean;
|
|
10
12
|
autocomplete?: string;
|
|
11
13
|
required?: boolean;
|
|
12
14
|
step?: string | number;
|
|
@@ -3,6 +3,10 @@ type __VLS_Props = {
|
|
|
3
3
|
value?: OptionValue | OptionValueList | null;
|
|
4
4
|
options: Option[];
|
|
5
5
|
mode?: 'multiple';
|
|
6
|
+
maxTagCount?: number | 'responsive';
|
|
7
|
+
maxTagTextLength?: number;
|
|
8
|
+
/** Optional controlled popup state for compact selectors that browse in a dialog. */
|
|
9
|
+
open?: boolean;
|
|
6
10
|
placeholder?: string;
|
|
7
11
|
disabled?: boolean;
|
|
8
12
|
allowClear?: boolean;
|
|
@@ -17,22 +21,26 @@ type __VLS_Props = {
|
|
|
17
21
|
id?: string;
|
|
18
22
|
ariaLabel?: string;
|
|
19
23
|
};
|
|
20
|
-
declare var
|
|
24
|
+
declare var __VLS_13: {};
|
|
21
25
|
type __VLS_Slots = {} & {
|
|
22
|
-
suffixAction?: (props: typeof
|
|
26
|
+
suffixAction?: (props: typeof __VLS_13) => any;
|
|
23
27
|
};
|
|
24
28
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
29
|
search: (keyword: string) => any;
|
|
26
30
|
"update:value": (value: OptionValue | OptionValueList | null) => any;
|
|
27
31
|
blur: (event: FocusEvent) => any;
|
|
28
32
|
"update:searchValue": (value: string) => any;
|
|
33
|
+
"reach-end": () => any;
|
|
29
34
|
dblclick: (event: MouseEvent) => any;
|
|
35
|
+
keydown: (event: KeyboardEvent) => any;
|
|
30
36
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
37
|
onSearch?: ((keyword: string) => any) | undefined;
|
|
32
38
|
"onUpdate:value"?: ((value: OptionValue | OptionValueList | null) => any) | undefined;
|
|
33
39
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
34
40
|
"onUpdate:searchValue"?: ((value: string) => any) | undefined;
|
|
41
|
+
"onReach-end"?: (() => any) | undefined;
|
|
35
42
|
onDblclick?: ((event: MouseEvent) => any) | undefined;
|
|
43
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
36
44
|
}>, {
|
|
37
45
|
disabled: boolean;
|
|
38
46
|
value: OptionValue | OptionValueList | null;
|
|
@@ -40,8 +48,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
40
48
|
mode: "multiple";
|
|
41
49
|
loading: boolean;
|
|
42
50
|
ariaLabel: string;
|
|
51
|
+
open: boolean;
|
|
43
52
|
placeholder: string;
|
|
44
53
|
allowClear: boolean;
|
|
54
|
+
maxTagCount: number | "responsive";
|
|
55
|
+
maxTagTextLength: number;
|
|
45
56
|
showSearch: boolean;
|
|
46
57
|
searchValue: string;
|
|
47
58
|
filterOption: boolean;
|
|
@@ -9,6 +9,8 @@ type __VLS_Props = {
|
|
|
9
9
|
value?: OptionValue | OptionValueList | null;
|
|
10
10
|
treeData: UiTreeSelectNode[];
|
|
11
11
|
mode?: 'multiple';
|
|
12
|
+
maxTagCount?: number | 'responsive';
|
|
13
|
+
maxTagTextLength?: number;
|
|
12
14
|
placeholder?: string;
|
|
13
15
|
disabled?: boolean;
|
|
14
16
|
allowClear?: boolean;
|
|
@@ -21,21 +23,23 @@ type __VLS_Props = {
|
|
|
21
23
|
invalid?: boolean;
|
|
22
24
|
unmatched?: boolean;
|
|
23
25
|
};
|
|
24
|
-
declare var
|
|
26
|
+
declare var __VLS_12: {};
|
|
25
27
|
type __VLS_Slots = {} & {
|
|
26
|
-
suffixAction?: (props: typeof
|
|
28
|
+
suffixAction?: (props: typeof __VLS_12) => any;
|
|
27
29
|
};
|
|
28
30
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
31
|
search: (keyword: string) => any;
|
|
30
32
|
"update:value": (value: OptionValue | OptionValueList | null) => any;
|
|
31
33
|
blur: (event: FocusEvent) => any;
|
|
32
34
|
"update:searchValue": (value: string) => any;
|
|
35
|
+
"reach-end": () => any;
|
|
33
36
|
dblclick: (event: MouseEvent) => any;
|
|
34
37
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
35
38
|
onSearch?: ((keyword: string) => any) | undefined;
|
|
36
39
|
"onUpdate:value"?: ((value: OptionValue | OptionValueList | null) => any) | undefined;
|
|
37
40
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
38
41
|
"onUpdate:searchValue"?: ((value: string) => any) | undefined;
|
|
42
|
+
"onReach-end"?: (() => any) | undefined;
|
|
39
43
|
onDblclick?: ((event: MouseEvent) => any) | undefined;
|
|
40
44
|
}>, {
|
|
41
45
|
disabled: boolean;
|
|
@@ -44,6 +48,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
44
48
|
loading: boolean;
|
|
45
49
|
placeholder: string;
|
|
46
50
|
allowClear: boolean;
|
|
51
|
+
maxTagCount: number | "responsive";
|
|
52
|
+
maxTagTextLength: number;
|
|
47
53
|
showSearch: boolean;
|
|
48
54
|
searchValue: string;
|
|
49
55
|
invalid: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as e, b as t, y as n } from "./platform-workbench-
|
|
2
|
-
import {
|
|
1
|
+
import { D as e, b as t, y as n } from "./platform-workbench-CBLyxlvV.js";
|
|
2
|
+
import { Br as r, Ht as i, Zr as a, ei as o, io as s, ri as c, xn as l } from "./platform-components-CT5wnPa0.js";
|
|
3
3
|
import { computed as u, inject as d, onMounted as f, toValue as p, watch as m } from "vue";
|
|
4
4
|
//#region src/views/useWorkflowConfigurationContext.ts
|
|
5
5
|
function h(h) {
|
|
6
|
-
let g = s(), _ =
|
|
6
|
+
let g = s(), _ = o({ moduleAlias: "platform.workflow.definition" }), v = r(_.http, p(h)), y = () => r(_.http, p(h)), b = {
|
|
7
7
|
loadFunctions: async () => (await y().formulaFunctions()).map((e) => ({
|
|
8
8
|
name: e.name,
|
|
9
9
|
title: e.title,
|
|
@@ -16,12 +16,12 @@ function h(h) {
|
|
|
16
16
|
p(h),
|
|
17
17
|
x?.value,
|
|
18
18
|
S?.value
|
|
19
|
-
])), w = u(() => (C.value,
|
|
19
|
+
])), w = u(() => (C.value, a({
|
|
20
20
|
http: _.http,
|
|
21
21
|
language: g,
|
|
22
22
|
moduleAlias: p(h),
|
|
23
23
|
runtimeAccess: "VIEW"
|
|
24
|
-
}))), T = u(() => x?.value?.tenantId ?
|
|
24
|
+
}))), T = u(() => x?.value?.tenantId ? a({
|
|
25
25
|
http: _.http,
|
|
26
26
|
language: g,
|
|
27
27
|
moduleAlias: "iam.organization",
|
|
@@ -34,14 +34,14 @@ function h(h) {
|
|
|
34
34
|
try {
|
|
35
35
|
await w.value.runtime.refreshTexts?.();
|
|
36
36
|
} catch (e) {
|
|
37
|
-
|
|
37
|
+
l(e, {
|
|
38
38
|
source: "workflow-design",
|
|
39
39
|
phase: "load"
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
|
-
let E = u(() => c(w.value.runtime)), D = u(() => !w.value.runtime.snapshot() && !w.value.runtime.error()), O = u(() => [...
|
|
44
|
+
let E = u(() => c(w.value.runtime)), D = u(() => !w.value.runtime.snapshot() && !w.value.runtime.error()), O = u(() => [...i(E.value?.uiDescriptor)].map(([e, t]) => ({
|
|
45
45
|
name: e,
|
|
46
46
|
label: t.label ?? e,
|
|
47
47
|
valueType: t.valueType,
|
|
@@ -53,13 +53,13 @@ function h(h) {
|
|
|
53
53
|
try {
|
|
54
54
|
await w.value.runtime.ready;
|
|
55
55
|
} catch (e) {
|
|
56
|
-
|
|
56
|
+
l(e, {
|
|
57
57
|
source: "workflow-design",
|
|
58
58
|
phase: "load"
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
}), m(C, () => {
|
|
62
|
-
w.value.runtime.ready.catch((e) =>
|
|
62
|
+
w.value.runtime.ready.catch((e) => l(e, {
|
|
63
63
|
source: "workflow-design",
|
|
64
64
|
phase: "load"
|
|
65
65
|
}));
|