@byteluck-fe/runtime-engine 7.0.0-beta.2 → 7.0.0-beta.20
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/packages/runtime-engine/src/runtimeEngine.d.ts +5 -5
- package/dist/runtime-engine.js +16175 -63977
- package/dist/src/biz_logic/bizAction/buttonBizActionExecutor.d.ts +8 -0
- package/dist/src/components/controls/index.d.ts +2 -1
- package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useColumns.d.ts +8 -1
- package/dist/src/entry_desktop/qiankun-entry.d.ts +2 -0
- package/dist/src/entry_desktop/setupQiankunBootstrap.d.ts +0 -0
- package/dist/src/entry_desktop/setupQiankunRuntimeGlobals.d.ts +1 -0
- package/dist/src/entry_desktop/utils/antdLocale.d.ts +2 -0
- package/dist/src/hooks/components/useApprovelAi.d.ts +6 -0
- package/dist/src/hooks/controls/address/useAddress.d.ts +1 -1
- package/dist/src/hooks/controls/button/useButton.d.ts +6 -3
- package/dist/src/hooks/controls/title/index.d.ts +1 -0
- package/dist/src/hooks/controls/title/useTitleStar.d.ts +8 -0
- package/dist/src/plugins/engine/AiConversationModalPlugin.d.ts +1 -0
- package/dist/src/plugins/engine/DataViewPlugin.d.ts +2 -2
- package/dist/src/plugins/engine/EventListenerPlugin/index.d.ts +2 -0
- package/dist/src/plugins/engine/MultistageFillingPlugin.d.ts +1 -0
- package/dist/src/plugins/engine/StatisticsPlugin.d.ts +1 -0
- package/dist/src/services/appsCustom.d.ts +13 -0
- package/dist/src/utils/controls/listViewTitle.d.ts +1 -0
- package/dist/src/utils/core/crossMessageProcessor.d.ts +5 -0
- package/dist/src/utils/tools/beforeCreateInstance.d.ts +1 -0
- package/dist/src/utils/vite/createGlobRequireContext.d.ts +7 -0
- package/package.json +7 -6
|
@@ -2,6 +2,12 @@ import { ComputedRef, Ref, ShallowRef } from 'vue';
|
|
|
2
2
|
import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
3
3
|
import { DragStoppedEvent, GridApi, ColDef, ColumnResizedEvent } from '@ag-grid-community/core';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* 扩展 ColDef 类型,支持合并表头的 children 属性
|
|
7
|
+
*/
|
|
8
|
+
interface ExtendedColDef extends ColDef {
|
|
9
|
+
children?: ExtendedColDef[];
|
|
10
|
+
}
|
|
5
11
|
export declare function useColumns(params: {
|
|
6
12
|
instance: ControlRuntimeInstance<'grid-table'> | ComputedRef<ControlRuntimeInstance<'grid-table'>>;
|
|
7
13
|
isShowSelection?: ComputedRef<boolean>;
|
|
@@ -16,7 +22,7 @@ export declare function useColumns(params: {
|
|
|
16
22
|
operationbtns: any;
|
|
17
23
|
onColumnsMounted: () => void;
|
|
18
24
|
onDragStopped: (params: DragStoppedEvent) => void;
|
|
19
|
-
handleSortsColumns: (viewColumns:
|
|
25
|
+
handleSortsColumns: (viewColumns: ExtendedColDef[], customConfig?: typing.ListHeaderConfigVo[]) => ExtendedColDef[];
|
|
20
26
|
isViewShowColumns: (item: ColDef) => any;
|
|
21
27
|
onColumnResized: (event: ColumnResizedEvent) => void;
|
|
22
28
|
onSetColumnVisible: (hideKeys: string[], type?: 'reset' | 'resetVisible') => void;
|
|
@@ -33,3 +39,4 @@ export declare function useColumns(params: {
|
|
|
33
39
|
isShowTreeGroupStatisticsBtn: ComputedRef<boolean | undefined>;
|
|
34
40
|
isMasterDetail: ComputedRef<boolean>;
|
|
35
41
|
};
|
|
42
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -27,6 +27,12 @@ export declare function useApprovelAi(props: any, decisionBtns: any, customId: a
|
|
|
27
27
|
};
|
|
28
28
|
platformInfo: {
|
|
29
29
|
app_type: string;
|
|
30
|
+
app_id: any;
|
|
31
|
+
form_key: any;
|
|
32
|
+
process_instance_id: any;
|
|
33
|
+
process_key: any;
|
|
34
|
+
process_definition_key: any;
|
|
35
|
+
node_id: any;
|
|
30
36
|
};
|
|
31
37
|
}>;
|
|
32
38
|
onSideAiMessage: (e: any) => void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Ref, ComputedRef } from 'vue';
|
|
2
|
-
import { CONTROL_TYPE, OptObject, BaseStyle } from '@byteluck-fe/model-driven-core-all';
|
|
2
|
+
import { CONTROL_TYPE, OptObject, ActionObject, BaseStyle } from '@byteluck-fe/model-driven-core-all';
|
|
3
3
|
import { PropsInstanceType } from '../../../constant';
|
|
4
|
-
import { DebouncedFunc } from 'lodash';
|
|
5
4
|
|
|
6
5
|
export declare function useButton(props: PropsInstanceType<CONTROL_TYPE.BUTTON>, emit?: Function): {
|
|
7
6
|
isPlain: ComputedRef<boolean>;
|
|
@@ -16,6 +15,8 @@ export declare function useButton(props: PropsInstanceType<CONTROL_TYPE.BUTTON>,
|
|
|
16
15
|
command: string;
|
|
17
16
|
isLoading: boolean;
|
|
18
17
|
optObj?: OptObject | undefined;
|
|
18
|
+
actionObj: ActionObject;
|
|
19
|
+
optButtonType: "button" | "businessAction";
|
|
19
20
|
isHide: boolean;
|
|
20
21
|
className?: string[] | undefined;
|
|
21
22
|
style: BaseStyle;
|
|
@@ -27,5 +28,7 @@ export declare function useButton(props: PropsInstanceType<CONTROL_TYPE.BUTTON>,
|
|
|
27
28
|
isShowPopover: Ref<boolean>;
|
|
28
29
|
showContent: ComputedRef<string>;
|
|
29
30
|
buttonContent: ComputedRef<string>;
|
|
30
|
-
clickHandle:
|
|
31
|
+
clickHandle: (event: Event) => void;
|
|
32
|
+
isLoading: Ref<boolean>;
|
|
33
|
+
isOperateDisabled: Ref<boolean>;
|
|
31
34
|
};
|
|
@@ -68,6 +68,7 @@ export declare class AiConversationModalPlugin implements Plugin {
|
|
|
68
68
|
apply(engine: Engine): void;
|
|
69
69
|
init(): void;
|
|
70
70
|
show(payload: Payload): void;
|
|
71
|
+
setAiConversationInfo(aiNode: VNode, aiSetting: Record<string, any>): void;
|
|
71
72
|
receiveAiMessage(e: any, payload: Payload, vnode: VNode): void;
|
|
72
73
|
checkToFill(payload: Payload, data: any): void;
|
|
73
74
|
getPrompt(payload: Payload): string;
|
|
@@ -35,13 +35,13 @@ export declare class DataViewPlugin implements Plugin {
|
|
|
35
35
|
handlerFormSubmit(payload: EventPayload & {
|
|
36
36
|
instance: ControlRuntimeInstance<'data-view'>;
|
|
37
37
|
isSubmit?: any;
|
|
38
|
-
}): Promise<typing.PlainResult$OptResDto$ | undefined>;
|
|
38
|
+
}): Promise<false | typing.PlainResult$OptResDto$ | undefined>;
|
|
39
39
|
private onBeforeSubmit;
|
|
40
40
|
private onBeforeSubmitFormatParams;
|
|
41
41
|
private onAfterSubmit;
|
|
42
42
|
resetIsShow(): void;
|
|
43
43
|
onClickHandle(payload: Required<EventPayload> & {
|
|
44
44
|
instance: ControlRuntimeInstance<'data-view'>;
|
|
45
|
-
}): Promise<typing.PlainResult$OptResDto$ | undefined>;
|
|
45
|
+
}): Promise<false | typing.PlainResult$OptResDto$ | undefined>;
|
|
46
46
|
}
|
|
47
47
|
export {};
|
|
@@ -17,6 +17,7 @@ export declare class EventListenerPlugin implements Plugin {
|
|
|
17
17
|
private openPageRelationControlIds;
|
|
18
18
|
private route;
|
|
19
19
|
private router;
|
|
20
|
+
private readonly actionBarClickWaitInterval;
|
|
20
21
|
constructor(config: ControlsEvent, app_id: string, userInfo: typing.CurrentUserInfo, store: any, route: RouteLocationNormalizedLoaded, router: Router);
|
|
21
22
|
apply(engine: Engine): void;
|
|
22
23
|
private getAllEventList;
|
|
@@ -24,6 +25,7 @@ export declare class EventListenerPlugin implements Plugin {
|
|
|
24
25
|
private configCamelizeKeys;
|
|
25
26
|
private formatConfig;
|
|
26
27
|
private engineAddEventListener;
|
|
28
|
+
private scheduleCheckToRunClickPayloadOfActionBar;
|
|
27
29
|
private checkToRunClickPayloadOfActionBar;
|
|
28
30
|
private checkIsNeedSaveActionBarClickPayload;
|
|
29
31
|
private checkHasEventListener;
|
|
@@ -11,4 +11,17 @@ export default class {
|
|
|
11
11
|
getOperationV3EditOnlinePrivateV1POST(params: {
|
|
12
12
|
payload?: typing.GetOperationUrlDto;
|
|
13
13
|
}): Promise<typing.PlainResult$string$>;
|
|
14
|
+
StarDemoPrivateV1POST(params: {
|
|
15
|
+
payload?: {
|
|
16
|
+
app_id?: string;
|
|
17
|
+
form_key?: string;
|
|
18
|
+
collection?: boolean;
|
|
19
|
+
};
|
|
20
|
+
}): Promise<typing.PlainResult>;
|
|
21
|
+
StarQueryPrivateV1POST(params: {
|
|
22
|
+
payload?: {
|
|
23
|
+
app_id?: string;
|
|
24
|
+
form_key?: string;
|
|
25
|
+
};
|
|
26
|
+
}): Promise<typing.PlainResult>;
|
|
14
27
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function normalizeListViewTitle(title: unknown, fallback?: string): string;
|
|
@@ -5,6 +5,11 @@ type CrossDomainMessageType = {
|
|
|
5
5
|
options: any;
|
|
6
6
|
};
|
|
7
7
|
export declare function tryRefreshOpener(message: CrossDomainMessageType): void;
|
|
8
|
+
export declare function refreshListByPath(listPath: string | undefined, options?: {
|
|
9
|
+
clearSelectedRows?: boolean;
|
|
10
|
+
source?: string;
|
|
11
|
+
refreshTree?: boolean;
|
|
12
|
+
}): boolean;
|
|
8
13
|
export declare function corssDomainMessageProcessor(route: any, store: any): void;
|
|
9
14
|
export declare function removeAppLauncherTab(message: any): void;
|
|
10
15
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ColumnControlsKeys, ControlsKeys, DataBindModelType, Schema } from '@byteluck-fe/model-driven-core-all';
|
|
2
2
|
|
|
3
|
+
export declare function normalizeRegularRules(schema: any): void;
|
|
3
4
|
export declare function findBindInfoInList(schema: any, modelBindInfoList?: DataBindModelType[]): DataBindModelType | undefined;
|
|
4
5
|
export declare function columnSchemaFillFieldCode(schema: Schema<ColumnControlsKeys>, dataBindModel: DataBindModelType): void;
|
|
5
6
|
export declare function schemaFillDataBindModel(schema: Schema<ControlsKeys>, dataBindModel: DataBindModelType): void;
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/runtime-engine",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/runtime-engine.js",
|
|
7
7
|
"types": "./dist/packages/runtime-engine/src/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
10
|
-
"build": "vite build",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"release:
|
|
14
|
-
"release:
|
|
10
|
+
"build": "vite build --mode ego",
|
|
11
|
+
"build:testEnv": "vite build --mode testEnv",
|
|
12
|
+
"lint": "eslint . --ext .ts,.tsx,.vue",
|
|
13
|
+
"release:patch": "pnpm build && standard-version --release-as patch",
|
|
14
|
+
"release:minor": "pnpm build && standard-version --release-as minor",
|
|
15
|
+
"release:major": "pnpm build && standard-version --release-as major"
|
|
15
16
|
},
|
|
16
17
|
"files": [
|
|
17
18
|
"dist"
|