@byteluck-fe/runtime-engine 7.0.0-beta.2 → 7.0.0-beta.21
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 +15833 -63879
- 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/entry_mobile/controls/rok-attachment/hook-file-base.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 +14 -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/api.d.ts +2 -0
- package/dist/src/services/portalCustom.d.ts +22 -0
- package/dist/src/utils/controls/formCopy.d.ts +2 -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/tools/getCachedApplyRender.d.ts +2 -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 {};
|
|
@@ -7,6 +7,7 @@ import { default as __DTS_DEFAULT_3__ } from '../../../services/infoAuto';
|
|
|
7
7
|
import { default as __DTS_DEFAULT_4__ } from '../../../services/widgets';
|
|
8
8
|
import { default as __DTS_DEFAULT_5__ } from '../../../services/template';
|
|
9
9
|
import { default as __DTS_DEFAULT_6__ } from '../../../services/appsCustom';
|
|
10
|
+
import { default as __DTS_DEFAULT_7__ } from '../../../services/portalCustom';
|
|
10
11
|
import { FetchService } from '@byteluck-fe/global-shared';
|
|
11
12
|
import { Engine } from '@byteluck-fe/model-driven-engine';
|
|
12
13
|
|
|
@@ -19,6 +20,7 @@ export default function (instanceProps: ShallowRef<ControlPropertyInstance<'atta
|
|
|
19
20
|
widgetsAuto: __DTS_DEFAULT_4__;
|
|
20
21
|
templateAuto: __DTS_DEFAULT_5__;
|
|
21
22
|
appsCustomAuto: __DTS_DEFAULT_6__;
|
|
23
|
+
portalCustomAuto: __DTS_DEFAULT_7__;
|
|
22
24
|
httpClient: FetchService;
|
|
23
25
|
};
|
|
24
26
|
context: Ref<Engine> | undefined;
|
|
@@ -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
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Ref, ComputedRef } from 'vue';
|
|
2
|
+
|
|
3
|
+
export declare function useTitleStar(options?: Recordable<any>): {
|
|
4
|
+
canStar: ComputedRef<boolean>;
|
|
5
|
+
isCollection: Ref<boolean>;
|
|
6
|
+
starLoading: Ref<boolean>;
|
|
7
|
+
starDialogVisible: Ref<boolean>;
|
|
8
|
+
starFormName: Ref<string>;
|
|
9
|
+
starFormIcon: Ref<string>;
|
|
10
|
+
starIconOptions: Ref<string[]>;
|
|
11
|
+
cancelStarDialog: () => void;
|
|
12
|
+
confirmStarDialog: () => Promise<void>;
|
|
13
|
+
toggleStar: () => Promise<void>;
|
|
14
|
+
};
|
|
@@ -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;
|
|
@@ -5,6 +5,7 @@ import { default as infoAuto } from './infoAuto';
|
|
|
5
5
|
import { default as Widgets } from './widgets';
|
|
6
6
|
import { default as template } from './template';
|
|
7
7
|
import { default as AppsCustom } from './appsCustom';
|
|
8
|
+
import { default as PortalCustom } from './portalCustom';
|
|
8
9
|
import { FetchService } from '../utils';
|
|
9
10
|
|
|
10
11
|
export declare class HttpServiceRunningInterceptor {
|
|
@@ -29,5 +30,6 @@ export declare function apiInit(): {
|
|
|
29
30
|
widgetsAuto: Widgets;
|
|
30
31
|
templateAuto: template;
|
|
31
32
|
appsCustomAuto: AppsCustom;
|
|
33
|
+
portalCustomAuto: PortalCustom;
|
|
32
34
|
httpClient: FetchService;
|
|
33
35
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FetchService } from '../utils';
|
|
2
|
+
|
|
3
|
+
export default class {
|
|
4
|
+
http: FetchService;
|
|
5
|
+
constructor(http: FetchService);
|
|
6
|
+
SaveCollectUserPrivateV2POST(params: {
|
|
7
|
+
payload?: {
|
|
8
|
+
app_id?: string;
|
|
9
|
+
resource_id?: string;
|
|
10
|
+
resource_name?: string;
|
|
11
|
+
resource_type?: 'form' | 'list';
|
|
12
|
+
op_type?: '1' | '0';
|
|
13
|
+
icon?: string;
|
|
14
|
+
};
|
|
15
|
+
}): Promise<typing.portal.PlainResult>;
|
|
16
|
+
CollectResourceCollectedUserPrivateV2POST(params: {
|
|
17
|
+
payload?: {
|
|
18
|
+
app_id?: string;
|
|
19
|
+
resource_id?: string;
|
|
20
|
+
};
|
|
21
|
+
}): Promise<typing.portal.PlainResult>;
|
|
22
|
+
}
|
|
@@ -2,8 +2,10 @@ export declare const formCopy: {
|
|
|
2
2
|
clearValueFieldCodeStates: {
|
|
3
3
|
dataCode: string;
|
|
4
4
|
fieldCode: string;
|
|
5
|
+
clearOnlyWhenEmpty?: boolean | undefined;
|
|
5
6
|
}[];
|
|
6
7
|
isCopy(type?: string): boolean;
|
|
8
|
+
isEmptyValue(value: unknown): boolean;
|
|
7
9
|
setClearValueFieldCode(schema: any): void;
|
|
8
10
|
resetDataSet(dataSet: any): void;
|
|
9
11
|
};
|
|
@@ -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;
|
|
@@ -5,6 +5,7 @@ import { default as __DTS_DEFAULT_3__ } from '../../services/infoAuto';
|
|
|
5
5
|
import { default as __DTS_DEFAULT_4__ } from '../../services/widgets';
|
|
6
6
|
import { default as __DTS_DEFAULT_5__ } from '../../services/template';
|
|
7
7
|
import { default as __DTS_DEFAULT_6__ } from '../../services/appsCustom';
|
|
8
|
+
import { default as __DTS_DEFAULT_7__ } from '../../services/portalCustom';
|
|
8
9
|
import { FetchService } from '@byteluck-fe/global-shared';
|
|
9
10
|
declare const api: {
|
|
10
11
|
default: __DTS_DEFAULT_0__;
|
|
@@ -14,6 +15,7 @@ declare const api: {
|
|
|
14
15
|
widgetsAuto: __DTS_DEFAULT_4__;
|
|
15
16
|
templateAuto: __DTS_DEFAULT_5__;
|
|
16
17
|
appsCustomAuto: __DTS_DEFAULT_6__;
|
|
18
|
+
portalCustomAuto: __DTS_DEFAULT_7__;
|
|
17
19
|
httpClient: FetchService;
|
|
18
20
|
};
|
|
19
21
|
export declare function getCachedApplyRender(method: typeof api.default.ApplyRenderCodeShortPagePrivateV1ApiAppsPOST | typeof api.default.ApplyRenderPagePrivateV1ApiAppsPOST, args: any, modalInForm?: boolean): Promise<typing.PlainResult$ApplyPageBo$>;
|
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.21",
|
|
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"
|