@byteluck-fe/runtime-engine 7.0.0-beta.7 → 7.0.0-beta.9

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.
@@ -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 {};
@@ -1,7 +1,6 @@
1
1
  import { Ref, ComputedRef } from 'vue';
2
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>;
@@ -29,5 +28,6 @@ export declare function useButton(props: PropsInstanceType<CONTROL_TYPE.BUTTON>,
29
28
  isShowPopover: Ref<boolean>;
30
29
  showContent: ComputedRef<string>;
31
30
  buttonContent: ComputedRef<string>;
32
- clickHandle: DebouncedFunc<(event: Event) => Promise<void>>;
31
+ clickHandle: (event: Event) => void;
32
+ isLoading: Ref<boolean>;
33
33
  };
@@ -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 {};
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/runtime-engine",
3
- "version": "7.0.0-beta.7",
3
+ "version": "7.0.0-beta.9",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime-engine.js",