@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.
Files changed (25) hide show
  1. package/dist/packages/runtime-engine/src/runtimeEngine.d.ts +5 -5
  2. package/dist/runtime-engine.js +16175 -63977
  3. package/dist/src/biz_logic/bizAction/buttonBizActionExecutor.d.ts +8 -0
  4. package/dist/src/components/controls/index.d.ts +2 -1
  5. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useColumns.d.ts +8 -1
  6. package/dist/src/entry_desktop/qiankun-entry.d.ts +2 -0
  7. package/dist/src/entry_desktop/setupQiankunBootstrap.d.ts +0 -0
  8. package/dist/src/entry_desktop/setupQiankunRuntimeGlobals.d.ts +1 -0
  9. package/dist/src/entry_desktop/utils/antdLocale.d.ts +2 -0
  10. package/dist/src/hooks/components/useApprovelAi.d.ts +6 -0
  11. package/dist/src/hooks/controls/address/useAddress.d.ts +1 -1
  12. package/dist/src/hooks/controls/button/useButton.d.ts +6 -3
  13. package/dist/src/hooks/controls/title/index.d.ts +1 -0
  14. package/dist/src/hooks/controls/title/useTitleStar.d.ts +8 -0
  15. package/dist/src/plugins/engine/AiConversationModalPlugin.d.ts +1 -0
  16. package/dist/src/plugins/engine/DataViewPlugin.d.ts +2 -2
  17. package/dist/src/plugins/engine/EventListenerPlugin/index.d.ts +2 -0
  18. package/dist/src/plugins/engine/MultistageFillingPlugin.d.ts +1 -0
  19. package/dist/src/plugins/engine/StatisticsPlugin.d.ts +1 -0
  20. package/dist/src/services/appsCustom.d.ts +13 -0
  21. package/dist/src/utils/controls/listViewTitle.d.ts +1 -0
  22. package/dist/src/utils/core/crossMessageProcessor.d.ts +5 -0
  23. package/dist/src/utils/tools/beforeCreateInstance.d.ts +1 -0
  24. package/dist/src/utils/vite/createGlobRequireContext.d.ts +7 -0
  25. package/package.json +7 -6
@@ -0,0 +1,8 @@
1
+ import { Engine } from '@byteluck-fe/model-driven-engine';
2
+
3
+ export declare function executeButtonBizAction(params: {
4
+ engine?: Engine;
5
+ instance: any;
6
+ rowIndex?: number;
7
+ store?: any;
8
+ }): Promise<boolean>;
@@ -1,2 +1,3 @@
1
- declare const rokComPonentContext: any;
1
+ import { GlobRequireContext } from '../../utils/vite/createGlobRequireContext';
2
+ declare const rokComPonentContext: GlobRequireContext;
2
3
  export default rokComPonentContext;
@@ -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: ColDef[], customConfig?: typing.ListHeaderConfigVo[]) => ColDef<any, any>[];
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 {};
@@ -0,0 +1,2 @@
1
+
2
+ export { bootstrap, mount, unmount, update } from './main';
@@ -0,0 +1,2 @@
1
+ export declare const getAntdLocaleName: (locale?: string | null) => string;
2
+ export declare const loadAntdLocale: (locale?: string | null) => Promise<unknown>;
@@ -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,3 +1,3 @@
1
1
  export default function useAddress(addressType?: any): {
2
- handleDealData: (value?: any) => string;
2
+ handleDealData: (value?: any, currentAddressType?: any) => string;
3
3
  };
@@ -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: DebouncedFunc<(event: Event) => Promise<void>>;
31
+ clickHandle: (event: Event) => void;
32
+ isLoading: Ref<boolean>;
33
+ isOperateDisabled: Ref<boolean>;
31
34
  };
@@ -1 +1,2 @@
1
1
  export * from './useTitleCopyDocument';
2
+ export * from './useTitleStar';
@@ -0,0 +1,8 @@
1
+ import { Ref, ComputedRef } from 'vue';
2
+
3
+ export declare function useTitleStar(thirdComponent?: Recordable<any>): {
4
+ canStar: ComputedRef<boolean>;
5
+ isCollection: Ref<boolean>;
6
+ starLoading: Ref<boolean>;
7
+ toggleStar: () => Promise<void>;
8
+ };
@@ -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;
@@ -17,6 +17,7 @@ export declare class MultistageFillingPlugin implements Plugin {
17
17
  private formatFieldsValue;
18
18
  private updateStore;
19
19
  private convertValueBeforeUpdate;
20
+ private normalizeArrayControlFieldValue;
20
21
  private checkFill;
21
22
  }
22
23
  export {};
@@ -30,6 +30,7 @@ export declare class StatisticsPlugin implements Plugin {
30
30
  */
31
31
  private checkToFetchDataByParams;
32
32
  private fetchData;
33
+ private getErrorMessage;
33
34
  private changeCountTipStatus;
34
35
  /**
35
36
  * @description 监听事件,触发显隐
@@ -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;
@@ -0,0 +1,7 @@
1
+ type GlobModuleMap = Record<string, unknown>;
2
+ export interface GlobRequireContext {
3
+ (key: string): unknown;
4
+ keys(): string[];
5
+ }
6
+ export declare function createGlobRequireContext(modules: GlobModuleMap): GlobRequireContext;
7
+ export {};
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@byteluck-fe/runtime-engine",
3
- "version": "7.0.0-beta.2",
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
- "lint": "vue-cli-service lint",
12
- "release:patch": "vite build && standard-version --release-as patch",
13
- "release:minor": "vite build && standard-version --release-as minor",
14
- "release:major": "vite build && standard-version --release-as major"
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"