@byteluck-fe/runtime-engine 1.1.1 → 1.1.2

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.
@@ -7,9 +7,9 @@ import { CellClickedEvent, GridApi } from 'ag-grid-community';
7
7
  import { Engine } from '@byteluck-fe/model-driven-engine';
8
8
  import { clearEditingCell } from '../utils';
9
9
  declare const _props: {
10
- readonly instance: __DTS_1__;
11
10
  readonly name: string;
12
11
  readonly value: unknown[];
12
+ readonly instance: __DTS_1__;
13
13
  };
14
14
  export default function useSubtable(props: typeof _props, selectState: {
15
15
  selectedRowKeys: (string | number | undefined)[];
@@ -22,7 +22,7 @@ export declare function useDepartmentDatasource(props: {
22
22
  data: never[];
23
23
  }>;
24
24
  departmentType: ComputedRef<string>;
25
- showType: ComputedRef<"default" | "tree">;
25
+ showType: ComputedRef<"tree" | "default">;
26
26
  displayLevel: ComputedRef<number>;
27
27
  mainOrgId: ComputedRef<any>;
28
28
  secrecy: ComputedRef<any>;
@@ -0,0 +1,13 @@
1
+ import { Engine, Plugin } from '@byteluck-fe/model-driven-engine';
2
+ export declare class FormStateChangePlugin implements Plugin {
3
+ options: {
4
+ store: any;
5
+ };
6
+ pluginName: string;
7
+ private engine;
8
+ private store;
9
+ constructor(options: {
10
+ store: any;
11
+ });
12
+ apply(engine: Engine): void;
13
+ }
@@ -16,3 +16,4 @@ export * from './ExpressionBasePlugin';
16
16
  export * from './ExpressionPlugin';
17
17
  export * from './TitleSettingPlugin';
18
18
  export * from './EventListenerPlugin';
19
+ export * from './FormStateChangePlugin';
@@ -45,7 +45,7 @@ export declare const subTableCellRenderColumn: (item: any, headers: typeof Heade
45
45
  default: undefined;
46
46
  };
47
47
  colIndex: {
48
- type: (SymbolConstructor | NumberConstructor | StringConstructor)[];
48
+ type: (SymbolConstructor | StringConstructor | NumberConstructor)[];
49
49
  required: true;
50
50
  default: undefined;
51
51
  };
@@ -88,7 +88,7 @@ export declare const subTableCellRenderColumn: (item: any, headers: typeof Heade
88
88
  default: undefined;
89
89
  };
90
90
  colIndex: {
91
- type: (SymbolConstructor | NumberConstructor | StringConstructor)[];
91
+ type: (SymbolConstructor | StringConstructor | NumberConstructor)[];
92
92
  required: true;
93
93
  default: undefined;
94
94
  };
@@ -116,8 +116,8 @@ export declare const subTableCellRenderColumn: (item: any, headers: typeof Heade
116
116
  }>>, {
117
117
  col: Record<string, any>;
118
118
  pageStatus: string;
119
- rowRecord: Record<string, any>;
120
119
  openType: string;
120
+ rowRecord: Record<string, any>;
121
121
  index: number;
122
122
  colIndex: string | number | symbol;
123
123
  editableData: Record<string, any>;
@@ -1,2 +1,2 @@
1
- import { Engine } from "@byteluck-fe/model-driven-engine";
2
- export declare function initContext(props: any, printUrl?: string, inject?: any): Engine;
1
+ import { Engine } from '@byteluck-fe/model-driven-engine';
2
+ export declare function initContext(props: any, printUrl?: any, inject?: any): Engine;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/runtime-engine",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime-engine.js",
@@ -1,43 +0,0 @@
1
- import { MessageType } from 'ant-design-vue/lib/message';
2
- import { DebouncedFunc } from 'lodash';
3
- import { default as __DTS_3__ } from '@byteluck-fe/model-driven-controls/dist/types/layoutControls/SubTableColumn/runtime';
4
- import { default as __DTS_2__ } from '@byteluck-fe/model-driven-controls/dist/types/listControls/SubTable/property';
5
- import { default as __DTS_1__ } from '@byteluck-fe/model-driven-controls/dist/types/listControls/SubTable/runtime';
6
- import { ComputedRef, Ref } from 'vue';
7
- import { Engine } from '@byteluck-fe/model-driven-engine';
8
- import { GridApi } from 'ag-grid-community';
9
- declare const _props: {
10
- readonly instance: __DTS_1__;
11
- readonly name: string;
12
- readonly value: any;
13
- readonly selectState: any;
14
- readonly currentAggridApi: GridApi<any> | undefined;
15
- };
16
- export default function useLogic(props: typeof _props, emits: EmitType): {
17
- instanceProps: Ref<__DTS_2__<"Runtime", __DTS_3__>>;
18
- handleAddRow: DebouncedFunc<() => Promise<any>>;
19
- handlerExportSubtable: () => void;
20
- handleCancelSelect: () => void;
21
- handleDeleteRow: () => Promise<void>;
22
- handleClearData: () => void;
23
- handleInvertSelect: () => void;
24
- handleCloneRow: DebouncedFunc<() => MessageType | undefined>;
25
- handleInsertRow: () => MessageType | undefined;
26
- exportLoading: Ref<boolean>;
27
- handleImportRow: () => void;
28
- importVisible: Ref<boolean>;
29
- exportBtnVisibility: ComputedRef<boolean>;
30
- handleCloseModal: () => void;
31
- handleDealImportData: (data: any, cover?: boolean) => Promise<void>;
32
- isEditInTable: ComputedRef<boolean>;
33
- onModalCloseError: () => Promise<void | boolean>;
34
- handlerOpenModal: (rowIndex?: number | undefined) => Promise<unknown>;
35
- visible: Ref<boolean>;
36
- formKey: ComputedRef<string>;
37
- uid: Ref<any>;
38
- readonly: ComputedRef<boolean>;
39
- isEditInModal: ComputedRef<boolean>;
40
- onEngineSubmitted: (context: Engine, payload: any) => void;
41
- onEngineMounted: (context: any) => void;
42
- };
43
- export {};