@ximatai/muyun-web-app 0.26.17 → 0.26.18
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-9RrW-RKb.js → BusinessActivityLogView-CNW817Sf.js} +2 -2
- package/dist/BusinessLogListDrawer-YiJxOlnD.js +864 -0
- package/dist/CodeConfigurationView-DU8tjPMt.js +1667 -0
- package/dist/{ConfigurationTranslationView-Bh_ekuMP.js → ConfigurationTranslationView-CbBt5s1q.js} +22 -22
- package/dist/{LoginAuditLogView-DG6iBXEn.js → LoginAuditLogView-CZF1Jfq_.js} +2 -2
- package/dist/ModuleActionManagementView-CaiXH1l_.js +755 -0
- package/dist/{ModuleGovernanceView-C53RnUzc.js → ModuleGovernanceView-CcwGyO3x.js} +3856 -4000
- package/dist/{RequestErrorLogView-Ba5p0hLE.js → RequestErrorLogView-DpudZrC2.js} +2 -2
- package/dist/RoleDetailWorkspaceView-DNMGsAJC.js +1435 -0
- package/dist/{RuntimeLogView-BFEABm8G.js → RuntimeLogView-444BL_xs.js} +60 -60
- package/dist/WorkflowAdministrationView-C-VIjvwB.js +650 -0
- package/dist/{WorkflowConfigurationView-A0m5tBX9.js → WorkflowConfigurationView-DLFY2x7V.js} +302 -289
- package/dist/WorkflowWorkbenchView-Gr02dbBc.js +759 -0
- package/dist/codeConfiguration-ChJ6ktRR.js +208 -0
- package/dist/index.css +1 -1
- package/dist/index.js +473 -463
- package/dist/{moduleGovernanceWorkspaceView-DNKzYX0x.js → moduleMenuWorkspace-B8DKwC3L.js} +224 -265
- package/dist/{platform-components-BBfyINHa.js → platform-components-5AE0j2_3.js} +4597 -4630
- package/dist/{platform-workbench-C1hmkOUD.js → platform-workbench-BhZPARiH.js} +4887 -4929
- package/dist/types/app/DevelopmentTopbarActions.vue.d.ts +9 -0
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +5 -1
- package/dist/types/consumer/index.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +2 -2
- package/dist/types/platform-admin-runtime/ModuleCodeConfigurationStatus.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/moduleCodeConfiguration.d.ts +15 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +4 -2
- package/dist/types/platform-components/RecordRelationActionButton.vue.d.ts +16 -0
- package/dist/types/{dynamic-page-runtime → platform-components}/TenantScopeExplorer.vue.d.ts +1 -1
- package/dist/types/platform-components/index.d.ts +2 -0
- package/dist/types/platform-components/managementWorkspaceLayout.d.ts +10 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +4 -0
- package/dist/types/platform-components/useBusinessCodeForm.d.ts +36 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +6 -2
- package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +13 -1
- package/dist/types/views/CodeConfigurationView.vue.d.ts +8 -0
- package/dist/types/views/CodeRuleFormatEditor.vue.d.ts +17 -0
- package/dist/types/views/codeConfiguration.d.ts +127 -0
- package/dist/types/views/codeConfigurationWorkspaceView.d.ts +5 -0
- package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiDatePicker.vue.d.ts +33 -0
- package/dist/types/vue-ui-antdv/components/UiHelp.vue.d.ts +16 -0
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiPopover.vue.d.ts +12 -4
- package/dist/types/vue-ui-antdv/datePickerCalendar.d.ts +472 -0
- package/dist/types/vue-ui-antdv/datePickerValue.d.ts +6 -0
- package/dist/types/vue-ui-antdv/index.d.ts +3 -0
- package/dist/types/vue-ui-antdv/languageLocales.d.ts +2 -0
- package/dist/types/web-contracts/index.d.ts +14 -0
- package/dist/{workspaceViews-BpH71LKQ.js → workspaceViews-DeBqozVb.js} +1046 -902
- package/package.json +4 -1
- package/dist/BusinessLogListDrawer-DYVx9tiQ.js +0 -864
- package/dist/ModuleActionManagementView-DgHqhoMN.js +0 -755
- package/dist/RoleDetailWorkspaceView-C3TBqksY.js +0 -1435
- package/dist/WorkflowAdministrationView-BOHG2e-I.js +0 -650
- package/dist/WorkflowWorkbenchView-DGpNDt5V.js +0 -759
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CurrentUser } from '../web-contracts/index';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
currentUser?: CurrentUser;
|
|
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<{}>, {
|
|
6
|
+
currentUser: CurrentUser;
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -17,10 +17,14 @@ type __VLS_Props = {
|
|
|
17
17
|
themeAppearance?: 'light' | 'dark';
|
|
18
18
|
};
|
|
19
19
|
declare var __VLS_19: {
|
|
20
|
+
currentUser?: import("./index.ts").CurrentUser;
|
|
21
|
+
}, __VLS_22: {
|
|
20
22
|
pageDescriptor: PageDescriptor | undefined;
|
|
21
23
|
};
|
|
22
24
|
type __VLS_Slots = {} & {
|
|
23
|
-
|
|
25
|
+
'topbar-actions'?: (props: typeof __VLS_19) => any;
|
|
26
|
+
} & {
|
|
27
|
+
default?: (props: typeof __VLS_22) => any;
|
|
24
28
|
};
|
|
25
29
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
30
|
navigate: (navigation: AppWorkbenchNavigation) => any;
|
|
@@ -16,7 +16,8 @@ export { restoreLockedTabPreference, saveLockedTabPreference } from '../app/lock
|
|
|
16
16
|
export { configureModulePageEnhancementContributions, configureModulePageEnhancements, createModulePageEnhancementRegistry, modulePageWorkspaceViews, } from '../dynamic-page-runtime/modulePageEnhancements';
|
|
17
17
|
export { refreshModulePageList } from '../dynamic-page-runtime/modulePageListRefresh';
|
|
18
18
|
export type { ModuleListEnhancement, ModuleDetailEnhancement, ModulePageActionContext, ModulePageActionContribution, ModulePageActionStateContext, ModulePageBatchActionContext, ModulePageBatchActionContribution, ModulePageColumnContribution, ModulePageDetailDrawer, ModulePageDetailSection, ModulePageDetailSectionContext, ModulePageDrawer, ModulePageDrawerContext, ModulePageRecordViewContext, ModulePageEnhancement, ModulePageEnhancementTarget, ModulePageLockedNavigatorEntry, ModulePageNavigatorEnhancement, ModulePageNavigatorExtension, ModulePageNavigatorExtensionContext, ModulePageRecordActionContext, ModulePageRecordActionContribution, ModulePageScopeContext, ModulePageWorkspaceView, ModulePageWorkspaceViewInput, } from '../dynamic-page-runtime/modulePageEnhancements';
|
|
19
|
-
export { UiButton, confirmAction, UiDataTable, UiSidePanel, UiTree, UiTreeSelect, UiInput, UiSwitch, UiTextArea, } from '../vue-ui-antdv/index';
|
|
19
|
+
export { UiButton, UiDropdown, UiIcon, confirmAction, UiDataTable, UiSidePanel, UiTree, UiTreeSelect, UiInput, UiDatePicker, UiSwitch, UiTextArea, } from '../vue-ui-antdv/index';
|
|
20
|
+
export type { UiDropdownItem, UiIconName, UiDatePickerMode, UiDatePickerPrecision, } from '../vue-ui-antdv/index';
|
|
20
21
|
export { default as PlatformAdminOutlet } from './PlatformAdminOutlet.vue';
|
|
21
22
|
export { default as AppWorkbenchShell } from './AppWorkbenchShell.vue';
|
|
22
23
|
export { default as LoginView } from '../app/LoginView.vue';
|
|
@@ -2134,6 +2134,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
2134
2134
|
pickerConfigs?: Record<string, import("../platform-components/index").RecordFormFieldPickerConfig>;
|
|
2135
2135
|
optionContext?: import("../web-core/index").ModuleContext<unknown>;
|
|
2136
2136
|
optionEntityAlias?: string;
|
|
2137
|
+
codeParentRecord?: import("../platform-components/index").RecordFormRecord;
|
|
2137
2138
|
contentRelation?: import("../web-core/index").BusinessContentRelationScope;
|
|
2138
2139
|
fileTransferContext?: import("../web-core/index").ModuleContext<unknown>;
|
|
2139
2140
|
formSessionKey?: string | number;
|
|
@@ -2170,6 +2171,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
2170
2171
|
layoutTransitionPrefix: string;
|
|
2171
2172
|
optionEntityAlias: string;
|
|
2172
2173
|
pickerConfigs: Record<string, import("../platform-components/index").RecordFormFieldPickerConfig>;
|
|
2174
|
+
codeParentRecord: import("../platform-components/index").RecordFormRecord;
|
|
2173
2175
|
validationRequestKey: number;
|
|
2174
2176
|
showLabels: boolean;
|
|
2175
2177
|
disabledOf: (fieldName: string, field: import("../platform-components/index").RecordFormFieldState) => boolean;
|
|
@@ -2193,6 +2195,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
2193
2195
|
pickerConfigs?: Record<string, import("../platform-components/index").RecordFormFieldPickerConfig>;
|
|
2194
2196
|
optionContext?: import("../web-core/index").ModuleContext<unknown>;
|
|
2195
2197
|
optionEntityAlias?: string;
|
|
2198
|
+
codeParentRecord?: import("../platform-components/index").RecordFormRecord;
|
|
2196
2199
|
contentRelation?: import("../web-core/index").BusinessContentRelationScope;
|
|
2197
2200
|
fileTransferContext?: import("../web-core/index").ModuleContext<unknown>;
|
|
2198
2201
|
formSessionKey?: string | number;
|
|
@@ -2224,6 +2227,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
2224
2227
|
layoutTransitionPrefix: string;
|
|
2225
2228
|
optionEntityAlias: string;
|
|
2226
2229
|
pickerConfigs: Record<string, import("../platform-components/index").RecordFormFieldPickerConfig>;
|
|
2230
|
+
codeParentRecord: import("../platform-components/index").RecordFormRecord;
|
|
2227
2231
|
validationRequestKey: number;
|
|
2228
2232
|
showLabels: boolean;
|
|
2229
2233
|
disabledOf: (fieldName: string, field: import("../platform-components/index").RecordFormFieldState) => boolean;
|
|
@@ -2244,6 +2248,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
2244
2248
|
pickerConfigs?: Record<string, import("../platform-components/index").RecordFormFieldPickerConfig>;
|
|
2245
2249
|
optionContext?: import("../web-core/index").ModuleContext<unknown>;
|
|
2246
2250
|
optionEntityAlias?: string;
|
|
2251
|
+
codeParentRecord?: import("../platform-components/index").RecordFormRecord;
|
|
2247
2252
|
contentRelation?: import("../web-core/index").BusinessContentRelationScope;
|
|
2248
2253
|
fileTransferContext?: import("../web-core/index").ModuleContext<unknown>;
|
|
2249
2254
|
formSessionKey?: string | number;
|
|
@@ -2280,6 +2285,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
2280
2285
|
layoutTransitionPrefix: string;
|
|
2281
2286
|
optionEntityAlias: string;
|
|
2282
2287
|
pickerConfigs: Record<string, import("../platform-components/index").RecordFormFieldPickerConfig>;
|
|
2288
|
+
codeParentRecord: import("../platform-components/index").RecordFormRecord;
|
|
2283
2289
|
validationRequestKey: number;
|
|
2284
2290
|
showLabels: boolean;
|
|
2285
2291
|
disabledOf: (fieldName: string, field: import("../platform-components/index").RecordFormFieldState) => boolean;
|
|
@@ -301,8 +301,8 @@ export interface ModulePageActionContribution extends RecordActionItem {
|
|
|
301
301
|
}
|
|
302
302
|
export interface ModulePageRecordActionContribution extends RecordActionItem {
|
|
303
303
|
key: string;
|
|
304
|
-
/** Resolves record-specific visibility or enabled state
|
|
305
|
-
state?(record: QueryListRecord): Partial<Pick<RecordActionItem, 'visible' | 'disabled'>> | undefined;
|
|
304
|
+
/** Resolves record-specific visibility or enabled state. The optional page context identifies authorized auxiliary facts loaded by activate(). */
|
|
305
|
+
state?(record: QueryListRecord, context?: ModulePageActionStateContext): Partial<Pick<RecordActionItem, 'visible' | 'disabled'>> | undefined;
|
|
306
306
|
run(context: ModulePageRecordActionContext): void | Promise<void>;
|
|
307
307
|
}
|
|
308
308
|
export interface ModulePageBatchActionContribution extends RecordActionItem {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ModulePageCardAssistantContext } from '../dynamic-page-runtime/index';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
context: ModulePageCardAssistantContext;
|
|
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;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ModuleContext } from '../web-core/index';
|
|
2
|
+
import type { QueryListRecord } from '../platform-components/index';
|
|
3
|
+
import { type CodeConfigurationAvailability } from '../views/codeConfiguration';
|
|
4
|
+
type AvailabilityState = CodeConfigurationAvailability & {
|
|
5
|
+
phase: 'loading' | 'ready' | 'failed';
|
|
6
|
+
error?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function moduleCodeCatalog(module: ModuleContext<QueryListRecord>): {
|
|
9
|
+
states: import("vue").Ref<Record<string, AvailabilityState>, Record<string, AvailabilityState>>;
|
|
10
|
+
refresh: (alias: string) => Promise<void>;
|
|
11
|
+
dispose: () => void;
|
|
12
|
+
};
|
|
13
|
+
export declare function activateModuleCodeCatalog(module: ModuleContext<QueryListRecord>): () => void;
|
|
14
|
+
export declare function canConfigureModuleCodes(module: ModuleContext<QueryListRecord>, alias: string): boolean;
|
|
15
|
+
export {};
|
|
@@ -18,6 +18,7 @@ type __VLS_Props = {
|
|
|
18
18
|
* Ordinary module forms intentionally leave this absent.
|
|
19
19
|
*/
|
|
20
20
|
optionEntityAlias?: string;
|
|
21
|
+
codeParentRecord?: RecordFormRecord;
|
|
21
22
|
contentRelation?: import('../web-core/index').BusinessContentRelationScope;
|
|
22
23
|
fileTransferContext?: ModuleContext<unknown>;
|
|
23
24
|
formSessionKey?: string | number;
|
|
@@ -38,7 +39,7 @@ declare var __VLS_1: {
|
|
|
38
39
|
group: import("../web-contracts/index").FormGroupDescriptor | undefined;
|
|
39
40
|
}, __VLS_12: {
|
|
40
41
|
field: RecordFormFieldState;
|
|
41
|
-
},
|
|
42
|
+
}, __VLS_217: {
|
|
42
43
|
field: RecordFormFieldState;
|
|
43
44
|
};
|
|
44
45
|
type __VLS_Slots = {} & {
|
|
@@ -48,7 +49,7 @@ type __VLS_Slots = {} & {
|
|
|
48
49
|
} & {
|
|
49
50
|
'field-actions'?: (props: typeof __VLS_12) => any;
|
|
50
51
|
} & {
|
|
51
|
-
'after-field'?: (props: typeof
|
|
52
|
+
'after-field'?: (props: typeof __VLS_217) => any;
|
|
52
53
|
};
|
|
53
54
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
54
55
|
"validity-change": (validity: RecordFormValidity) => any;
|
|
@@ -74,6 +75,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
74
75
|
layoutTransitionPrefix: string;
|
|
75
76
|
optionEntityAlias: string;
|
|
76
77
|
pickerConfigs: Record<string, RecordFormFieldPickerConfig>;
|
|
78
|
+
codeParentRecord: RecordFormRecord;
|
|
77
79
|
validationRequestKey: number;
|
|
78
80
|
showLabels: boolean;
|
|
79
81
|
disabledOf: (fieldName: string, field: RecordFormFieldState) => boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { UiIconName } from '../vue-ui-antdv/index';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
iconName: UiIconName;
|
|
4
|
+
title: string;
|
|
5
|
+
ariaLabel?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
danger?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
click: (event: MouseEvent) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
package/dist/types/{dynamic-page-runtime → platform-components}/TenantScopeExplorer.vue.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ModuleContext } from '../web-core/index';
|
|
2
|
-
import {
|
|
2
|
+
import type { QueryListRecord } from './RecordQueryListPanel.vue';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
context: ModuleContext<QueryListRecord>;
|
|
5
5
|
selectedId?: string;
|
|
@@ -46,6 +46,7 @@ export { default as RecordDetailExtensionSection } from './RecordDetailExtension
|
|
|
46
46
|
export { default as RecordRelationTabs } from './RecordRelationTabs.vue';
|
|
47
47
|
export { default as DetailRelationListPanel } from './DetailRelationListPanel.vue';
|
|
48
48
|
export { default as RecordDetailPanel } from './RecordDetailPanel.vue';
|
|
49
|
+
export { default as RecordRelationActionButton } from './RecordRelationActionButton.vue';
|
|
49
50
|
export { default as RecordPanelButton } from './RecordPanelButton.vue';
|
|
50
51
|
export { default as RecordSelectionCheckbox } from './RecordSelectionCheckbox.vue';
|
|
51
52
|
export { default as RecordPanelState } from './RecordPanelState.vue';
|
|
@@ -158,3 +159,4 @@ export { default as WorkflowParticipantEditor } from './WorkflowParticipantEdito
|
|
|
158
159
|
export { default as WorkflowBusinessTaskEditor } from './WorkflowBusinessTaskEditor.vue';
|
|
159
160
|
export { default as WorkflowDesignProperties } from './WorkflowDesignProperties.vue';
|
|
160
161
|
export { default as RecordDataExchangeSurface } from './RecordDataExchangeSurface.vue';
|
|
162
|
+
export { default as TenantScopeExplorer } from './TenantScopeExplorer.vue';
|
|
@@ -26,3 +26,13 @@ export declare const MANAGEMENT_COLLAPSED_EXPLORER_LAYOUT: {
|
|
|
26
26
|
};
|
|
27
27
|
export declare function collapsedExplorerTabHeight(title: string): number;
|
|
28
28
|
export declare function listDetailWorkspaceMinWidth(explorerCount: number): number;
|
|
29
|
+
/** Width-based folds are independent of manual folds: closing a navigator must
|
|
30
|
+
* enlarge the primary surface, rather than unexpectedly restoring another one. */
|
|
31
|
+
export declare function workspaceAutoCollapsedIds(options: {
|
|
32
|
+
width: number;
|
|
33
|
+
explorerCount: number;
|
|
34
|
+
explorers: readonly {
|
|
35
|
+
id: string;
|
|
36
|
+
}[];
|
|
37
|
+
primaryMinWidth: number;
|
|
38
|
+
}): string[];
|
|
@@ -6,6 +6,7 @@ import type { RecordPickerMode } from './recordPickerModel';
|
|
|
6
6
|
import type { ScopedTreePickerProvider } from './scopedTreePickerModel';
|
|
7
7
|
import type { ReferencePickerColumn, ReferencePickerProvider } from './referencePickerModel';
|
|
8
8
|
export type RecordFormFieldDescriptor = (ViewFieldDefinition | ResolvedViewFieldDescriptor) & {
|
|
9
|
+
businessCode?: ResolvedViewFieldDescriptor['businessCode'];
|
|
9
10
|
content?: ResolvedViewFieldDescriptor['content'];
|
|
10
11
|
inputRequirements?: ResolvedViewFieldDescriptor['inputRequirements'];
|
|
11
12
|
calculationTiming?: ResolvedViewFieldDescriptor['calculationTiming'];
|
|
@@ -97,6 +98,9 @@ export interface RecordFormFieldPickerConfig {
|
|
|
97
98
|
};
|
|
98
99
|
}
|
|
99
100
|
export interface RecordFormFieldState {
|
|
101
|
+
businessCode?: ResolvedViewFieldDescriptor['businessCode'];
|
|
102
|
+
/** Original input requirement, applied only when the server selects manual entry. */
|
|
103
|
+
businessCodeRequired?: boolean;
|
|
100
104
|
content?: ResolvedViewFieldDescriptor['content'];
|
|
101
105
|
calculationPending?: boolean;
|
|
102
106
|
inputRequirements?: ResolvedViewFieldDescriptor['inputRequirements'];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type LanguageContext, type ModuleContext } from '../web-core/index';
|
|
2
|
+
import type { BusinessCodeFieldState } from '../web-contracts/index';
|
|
3
|
+
import type { RecordFormFieldDescriptor, RecordFormFieldState, RecordFormRecord } from './recordFormFieldModel';
|
|
4
|
+
/** Candidates live here, separate from the mutation draft and from user-entered manual codes. */
|
|
5
|
+
export declare function useBusinessCodeForm(options: {
|
|
6
|
+
record: () => RecordFormRecord;
|
|
7
|
+
parent: () => RecordFormRecord | undefined;
|
|
8
|
+
context: () => ModuleContext<unknown> | undefined;
|
|
9
|
+
entityAlias: () => string | undefined;
|
|
10
|
+
fields: () => Map<string, RecordFormFieldDescriptor> | undefined;
|
|
11
|
+
fieldNames: () => string[];
|
|
12
|
+
mode: () => 'create' | 'edit' | 'view';
|
|
13
|
+
session: () => string | number | undefined;
|
|
14
|
+
language: LanguageContext;
|
|
15
|
+
}): {
|
|
16
|
+
field: (base: RecordFormFieldState) => RecordFormFieldState;
|
|
17
|
+
errorOf: (name: string) => string | undefined;
|
|
18
|
+
policies: import("vue").Ref<Map<string, {
|
|
19
|
+
fieldName: string;
|
|
20
|
+
mode?: "AUTO" | "MANUAL" | "AUTO_WITH_MANUAL_EDIT" | null | undefined;
|
|
21
|
+
trigger: "SAVE" | "EXPLICIT";
|
|
22
|
+
readOnly: boolean;
|
|
23
|
+
configured: boolean;
|
|
24
|
+
preview?: string | null | undefined;
|
|
25
|
+
}> & Omit<Map<string, BusinessCodeFieldState>, keyof Map<any, any>>, Map<string, BusinessCodeFieldState> | (Map<string, {
|
|
26
|
+
fieldName: string;
|
|
27
|
+
mode?: "AUTO" | "MANUAL" | "AUTO_WITH_MANUAL_EDIT" | null | undefined;
|
|
28
|
+
trigger: "SAVE" | "EXPLICIT";
|
|
29
|
+
readOnly: boolean;
|
|
30
|
+
configured: boolean;
|
|
31
|
+
preview?: string | null | undefined;
|
|
32
|
+
}> & Omit<Map<string, BusinessCodeFieldState>, keyof Map<any, any>>)>;
|
|
33
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
34
|
+
error: import("vue").Ref<string, string>;
|
|
35
|
+
retry: () => Promise<void>;
|
|
36
|
+
};
|
|
@@ -19,13 +19,17 @@ type __VLS_Props = {
|
|
|
19
19
|
assistantWorkspaceContribution?: AssistantWorkspaceContribution;
|
|
20
20
|
assistantWaitForPageReady?: () => Promise<string>;
|
|
21
21
|
};
|
|
22
|
-
declare var
|
|
22
|
+
declare var __VLS_53: {
|
|
23
|
+
currentUser?: import("../web-contracts/index").CurrentUser;
|
|
24
|
+
}, __VLS_90: {
|
|
23
25
|
activeTab: MenuTab;
|
|
24
26
|
target: MenuNavigationTarget | undefined;
|
|
25
27
|
pageDescriptor: PageDescriptor | undefined;
|
|
26
28
|
};
|
|
27
29
|
type __VLS_Slots = {} & {
|
|
28
|
-
|
|
30
|
+
'topbar-actions'?: (props: typeof __VLS_53) => any;
|
|
31
|
+
} & {
|
|
32
|
+
default?: (props: typeof __VLS_90) => any;
|
|
29
33
|
};
|
|
30
34
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
35
|
closeTabs: (keys: string[]) => any;
|
|
@@ -5,12 +5,24 @@ type __VLS_Props = {
|
|
|
5
5
|
assistantAvailable: boolean;
|
|
6
6
|
assistantOpen: boolean;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type __VLS_Slots = {
|
|
9
|
+
/** Host-owned global actions, rendered immediately before the account menu. */
|
|
10
|
+
'topbar-actions'(props: {
|
|
11
|
+
currentUser?: CurrentUser;
|
|
12
|
+
}): unknown;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
15
|
toggleAssistant: () => any;
|
|
10
16
|
userCommand: (key: string) => any;
|
|
11
17
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
18
|
onToggleAssistant?: (() => any) | undefined;
|
|
13
19
|
onUserCommand?: ((key: string) => any) | undefined;
|
|
14
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
22
|
declare const _default: typeof __VLS_export;
|
|
16
23
|
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
moduleAlias?: string;
|
|
3
|
+
moduleTitle?: string;
|
|
4
|
+
embedded?: boolean;
|
|
5
|
+
};
|
|
6
|
+
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>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type CodeRule, type CodeSource, type CodeTrigger } from './codeConfiguration';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
sources: CodeSource[];
|
|
4
|
+
editable: boolean;
|
|
5
|
+
trigger?: CodeTrigger;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_ModelProps = {
|
|
8
|
+
'rule': CodeRule;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:rule": (value: CodeRule) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:rule"?: ((value: CodeRule) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { type LanguageContext, type HttpClient } from '../web-core/index';
|
|
2
|
+
import type { TextPresentation } from '../web-contracts/index';
|
|
3
|
+
export type CodeMode = 'AUTO' | 'MANUAL' | 'AUTO_WITH_MANUAL_EDIT';
|
|
4
|
+
export type CodeRole = 'PRIMARY' | 'NORMAL';
|
|
5
|
+
export type CodeTrigger = 'SAVE' | 'EXPLICIT';
|
|
6
|
+
export declare const codeSegmentTypes: readonly ["CONSTANT", "FIELD_VALUE", "CONTEXT_VAR", "SYSTEM_TIME", "SEQUENCE", "VALUE_MAPPING", "FORMULA"];
|
|
7
|
+
export type CodeSegmentType = (typeof codeSegmentTypes)[number];
|
|
8
|
+
export interface CodeSource {
|
|
9
|
+
fieldName: string;
|
|
10
|
+
title: string;
|
|
11
|
+
titleText?: TextPresentation;
|
|
12
|
+
ownerTitle?: string | null;
|
|
13
|
+
type: string;
|
|
14
|
+
length?: number | null;
|
|
15
|
+
}
|
|
16
|
+
export declare function codeSourceTitle(source: CodeSource, language?: LanguageContext): string;
|
|
17
|
+
export interface CodeField {
|
|
18
|
+
fieldName: string;
|
|
19
|
+
title: string;
|
|
20
|
+
length?: number | null;
|
|
21
|
+
metadataFieldId?: string | null;
|
|
22
|
+
bindingId?: string | null;
|
|
23
|
+
bindingVersion?: number | null;
|
|
24
|
+
role?: CodeRole | null;
|
|
25
|
+
trigger?: CodeTrigger | null;
|
|
26
|
+
}
|
|
27
|
+
export interface CodeTarget {
|
|
28
|
+
moduleAlias: string;
|
|
29
|
+
moduleTitle?: string;
|
|
30
|
+
moduleTitleText?: TextPresentation;
|
|
31
|
+
entityAlias: string;
|
|
32
|
+
title: string;
|
|
33
|
+
source: 'STATIC' | 'DYNAMIC';
|
|
34
|
+
relationId?: string | null;
|
|
35
|
+
fields: CodeField[];
|
|
36
|
+
sources: CodeSource[];
|
|
37
|
+
}
|
|
38
|
+
export interface CodeConfigurationAvailability {
|
|
39
|
+
configurable: boolean;
|
|
40
|
+
reason?: 'no-model' | 'no-fields' | 'not-declared' | 'unavailable' | null;
|
|
41
|
+
}
|
|
42
|
+
export declare function readCodeConfigurationAvailability(http: HttpClient, moduleAlias: string): Promise<CodeConfigurationAvailability>;
|
|
43
|
+
export interface CodeMapping {
|
|
44
|
+
id?: string;
|
|
45
|
+
version?: number;
|
|
46
|
+
sourceValue: string;
|
|
47
|
+
targetValue: string;
|
|
48
|
+
defaultMapping: boolean;
|
|
49
|
+
enabled: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface CodeSegment {
|
|
52
|
+
id?: string;
|
|
53
|
+
version?: number;
|
|
54
|
+
segmentType: CodeSegmentType;
|
|
55
|
+
sourceRef?: string | null;
|
|
56
|
+
fixedValue?: string | null;
|
|
57
|
+
formulaExpr?: string | null;
|
|
58
|
+
dateFormat?: string | null;
|
|
59
|
+
length?: number | null;
|
|
60
|
+
padMode?: string;
|
|
61
|
+
padChar?: string | null;
|
|
62
|
+
separator?: string | null;
|
|
63
|
+
sequenceBasis?: boolean;
|
|
64
|
+
nullPolicy?: string;
|
|
65
|
+
truncatePolicy?: string;
|
|
66
|
+
sortOrder: number;
|
|
67
|
+
mappings: CodeMapping[];
|
|
68
|
+
}
|
|
69
|
+
export interface CodeSequencePolicy {
|
|
70
|
+
id?: string;
|
|
71
|
+
version?: number;
|
|
72
|
+
startValue: number | null;
|
|
73
|
+
stepValue: number | null;
|
|
74
|
+
sequenceLength: number | null;
|
|
75
|
+
maxValue?: number | null;
|
|
76
|
+
resetPolicy: string;
|
|
77
|
+
overflowPolicy: string;
|
|
78
|
+
}
|
|
79
|
+
export interface CodeRule {
|
|
80
|
+
id?: string;
|
|
81
|
+
version?: number;
|
|
82
|
+
title: string;
|
|
83
|
+
moduleAlias: string;
|
|
84
|
+
entityAlias: string;
|
|
85
|
+
fieldName: string;
|
|
86
|
+
moduleMetadataFieldId?: string | null;
|
|
87
|
+
metadataFieldId?: string | null;
|
|
88
|
+
fieldRole?: CodeRole;
|
|
89
|
+
fieldTrigger?: CodeTrigger;
|
|
90
|
+
mode: CodeMode;
|
|
91
|
+
enabled: boolean;
|
|
92
|
+
linkedUpdate: boolean;
|
|
93
|
+
allowRecycle: boolean;
|
|
94
|
+
orgScopeType: 'GLOBAL' | 'ORG';
|
|
95
|
+
orgScopeId?: string | null;
|
|
96
|
+
globalDefault: boolean;
|
|
97
|
+
effectiveFrom?: string | null;
|
|
98
|
+
effectiveTo?: string | null;
|
|
99
|
+
segments: CodeSegment[];
|
|
100
|
+
sequencePolicy: CodeSequencePolicy | null;
|
|
101
|
+
}
|
|
102
|
+
export interface CodePreview {
|
|
103
|
+
value: string;
|
|
104
|
+
segments: Array<{
|
|
105
|
+
value: string;
|
|
106
|
+
segmentType: CodeSegmentType;
|
|
107
|
+
}>;
|
|
108
|
+
}
|
|
109
|
+
export declare function newCodeSegment(type?: CodeSegmentType): CodeSegment;
|
|
110
|
+
export declare function newCodeSequence(): CodeSequencePolicy;
|
|
111
|
+
export declare function newCodeRule(target: CodeTarget, field: CodeField): CodeRule;
|
|
112
|
+
/** Match the rule's supported dependency kinds without parsing formula expressions in the browser. */
|
|
113
|
+
export declare function codeRuleSupportsRenumbering(rule: CodeRule): boolean;
|
|
114
|
+
export declare function prepareCodeRule(rule: CodeRule, language?: LanguageContext): CodeRule;
|
|
115
|
+
/** Direct inputs only; formula samples can be added from the source catalog without parsing formulas in the browser. */
|
|
116
|
+
export declare function codeTrialSources(target: CodeTarget, rule?: CodeRule): CodeSource[];
|
|
117
|
+
/** Source types are shared by static Java declarations and dynamic column metadata. */
|
|
118
|
+
export declare function codeTrialSourceKind(source: CodeSource): 'boolean' | 'number' | 'date' | 'datetime' | 'text';
|
|
119
|
+
/** No formula evaluation in the browser; only coerce explicitly entered trial values. */
|
|
120
|
+
export declare function codeTrialContext(sources: readonly CodeSource[], values: Record<string, string>, language?: LanguageContext): Record<string, unknown>;
|
|
121
|
+
export declare function createCodeConfigurationClient(http: HttpClient, language?: LanguageContext): {
|
|
122
|
+
targets: (moduleAlias?: string) => Promise<CodeTarget[]>;
|
|
123
|
+
rules: (target: CodeTarget) => Promise<CodeRule[]>;
|
|
124
|
+
bind(target: CodeTarget, field: CodeField, role: CodeRole | null, trigger: CodeTrigger): Promise<CodeTarget>;
|
|
125
|
+
save(rule: CodeRule): Promise<CodeRule>;
|
|
126
|
+
preview(rule: CodeRule, context: Record<string, unknown>, sequenceValue: number, signal?: AbortSignal): Promise<CodePreview>;
|
|
127
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export interface CodeConfigurationWorkspaceInput {
|
|
2
|
+
moduleAlias?: string;
|
|
3
|
+
moduleTitle?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const codeConfigurationWorkspaceView: import("../platform-workbench/workspaceViewContract.ts").WorkspaceViewDefinition<CodeConfigurationWorkspaceInput>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const moduleGovernanceTabs: readonly ["overview", "metadata", "actions", "rules", "ui", "menu", "preview"];
|
|
1
|
+
export declare const moduleGovernanceTabs: readonly ["overview", "metadata", "actions", "rules", "codes", "ui", "menu", "preview"];
|
|
2
2
|
export type ModuleGovernanceTab = (typeof moduleGovernanceTabs)[number];
|
|
3
3
|
export interface ModuleGovernanceWorkspaceViewInput {
|
|
4
4
|
moduleAlias: string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type UiDatePickerMode, type UiDatePickerPrecision } from '../datePickerValue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
value?: string | null;
|
|
4
|
+
mode?: UiDatePickerMode;
|
|
5
|
+
precision?: UiDatePickerPrecision;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
invalid?: boolean;
|
|
9
|
+
allowClear?: boolean;
|
|
10
|
+
autofocus?: boolean;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
id?: string;
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
focus: (event: FocusEvent) => any;
|
|
17
|
+
"update:value": (value: string) => any;
|
|
18
|
+
blur: (event: FocusEvent) => any;
|
|
19
|
+
keydown: (event: KeyboardEvent) => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
22
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
23
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
24
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
mode: UiDatePickerMode;
|
|
28
|
+
allowClear: boolean;
|
|
29
|
+
invalid: boolean;
|
|
30
|
+
precision: UiDatePickerPrecision;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label: string;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_17: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_17) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: 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>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type UiIconName = 'app' | 'language' | 'assistant' | 'check' | 'close' | 'delete' | 'download' | 'down' | 'edit' | 'export' | 'eye' | 'eye-off' | 'filter' | 'help' | 'left' | 'lock' | 'menu-collapse' | 'menu-expand' | 'minus' | 'notification' | 'open-in-new' | 'plus' | 'pin-off' | 'pin' | 'power' | 'reload' | 'right' | 'save' | 'search' | 'skin' | 'settings' | 'swap' | 'swap-vertical' | 'user';
|
|
1
|
+
export type UiIconName = 'app' | 'language' | 'assistant' | 'check' | 'close' | 'delete' | 'download' | 'down' | 'up' | 'edit' | 'export' | 'eye' | 'eye-off' | 'filter' | 'help' | 'left' | 'lock' | 'menu-collapse' | 'menu-expand' | 'minus' | 'notification' | 'open-in-new' | 'plus' | 'pin-off' | 'pin' | 'power' | 'reload' | 'right' | 'save' | 'search' | 'skin' | 'settings' | 'swap' | 'swap-vertical' | 'user';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
name: UiIconName;
|
|
4
4
|
};
|
|
@@ -2,13 +2,21 @@ type __VLS_Props = {
|
|
|
2
2
|
trigger?: 'click' | 'hover' | 'focus';
|
|
3
3
|
placement?: 'top' | 'topLeft' | 'topRight' | 'right' | 'rightTop' | 'rightBottom' | 'bottom' | 'bottomLeft' | 'bottomRight' | 'left' | 'leftTop' | 'leftBottom';
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
type __VLS_ModelProps = {
|
|
6
|
+
'open'?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
|
+
declare var __VLS_10: {}, __VLS_13: {};
|
|
6
10
|
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof
|
|
11
|
+
default?: (props: typeof __VLS_10) => any;
|
|
8
12
|
} & {
|
|
9
|
-
content?: (props: typeof
|
|
13
|
+
content?: (props: typeof __VLS_13) => any;
|
|
10
14
|
};
|
|
11
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
"update:open": (value: boolean | undefined) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
"onUpdate:open"?: ((value: boolean | undefined) => any) | undefined;
|
|
19
|
+
}>, {
|
|
12
20
|
trigger: "click" | "hover" | "focus";
|
|
13
21
|
placement: "top" | "topLeft" | "topRight" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "left" | "leftTop" | "leftBottom";
|
|
14
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|