@byteluck-fe/runtime-engine 1.1.3 → 1.1.5
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 +4 -2
- package/dist/runtime-engine.js +2644 -2149
- package/dist/src/components/meKeepAlive/core/renderer.d.ts +10 -10
- package/dist/src/components/meKeepAlive/core/vnode.d.ts +3 -3
- package/dist/src/components/meKeepAlive/index.d.ts +1 -1
- package/dist/src/components/update-log/utils.d.ts +2 -2
- package/dist/src/constant/page/address.d.ts +12 -12
- package/dist/src/entry_desktop/controls/components/base-table/hooks/useTableContext.d.ts +2 -2
- package/dist/src/entry_desktop/controls/components/base-table/types/table.d.ts +2 -2
- package/dist/src/entry_desktop/controls/components/subtable-ag-grid/hooks/useWCModalComponentChangeValue.d.ts +1 -1
- package/dist/src/entry_desktop/controls/rok-amount/hook.d.ts +1 -1
- package/dist/src/entry_desktop/controls/rok-attachment/hook.d.ts +1 -1
- package/dist/src/entry_desktop/controls/rok-date-picker/hook.d.ts +1 -1
- package/dist/src/entry_desktop/controls/rok-date-range/hook.d.ts +1 -1
- package/dist/src/entry_desktop/controls/rok-employee/hook.d.ts +1 -1
- package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useColumns.d.ts +1 -1
- package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useOperate.d.ts +2 -2
- package/dist/src/entry_desktop/controls/rok-image/hook.d.ts +1 -1
- package/dist/src/entry_desktop/controls/rok-search-number-range/hook.d.ts +1 -1
- package/dist/src/entry_desktop/hooks/useInitPage.d.ts +2 -2
- package/dist/src/entry_mobile/components/VanSuperForm/VanSuperForm.d.ts +2 -2
- package/dist/src/entry_mobile/components/VanSuperForm/index.d.ts +1 -1
- package/dist/src/entry_mobile/controls/components/table/types/table.d.ts +1 -1
- package/dist/src/entry_mobile/controls/rok-amount/hook.d.ts +1 -1
- package/dist/src/entry_mobile/controls/rok-attachment/upload.type.d.ts +5 -5
- package/dist/src/entry_mobile/controls/rok-employee/src/constant/index.d.ts +4 -4
- package/dist/src/entry_mobile/controls/rok-employee2/src/constant/index.d.ts +4 -4
- package/dist/src/entry_mobile/controls/rok-image/image.type.d.ts +3 -3
- package/dist/src/entry_mobile/controls/rok-search-number-range/hook.d.ts +1 -1
- package/dist/src/entry_mobile/views/page-render/useCancel.d.ts +1 -1
- package/dist/src/hooks/atomic/useEventListener.d.ts +1 -1
- package/dist/src/hooks/components/listEngineModal/useListSelection.d.ts +2 -2
- package/dist/src/hooks/components/useLayout.d.ts +2 -2
- package/dist/src/hooks/components/useLayoutChildren.d.ts +2 -2
- package/dist/src/hooks/context/useRowSelectionContext.d.ts +1 -1
- package/dist/src/hooks/controls/ElectronicSignature/useElectronicSignature.d.ts +1 -1
- package/dist/src/hooks/controls/amount/useAmount.d.ts +1 -1
- package/dist/src/hooks/controls/listSelectButton/useEngineFillState.d.ts +1 -1
- package/dist/src/hooks/controls/listView/useModel.d.ts +2 -2
- package/dist/src/hooks/controls/number/useNumber.d.ts +1 -1
- package/dist/src/hooks/controls/selecRelation/selectRelation.d.ts +1 -1
- package/dist/src/hooks/controls/simpleSearch/useSimpleSearch.d.ts +2 -1
- package/dist/src/hooks/controls/subtable/useSubtableFormEngineModal.d.ts +1 -1
- package/dist/src/hooks/form/useBatchPrint.d.ts +1 -1
- package/dist/src/hooks/form/useFormEvents.d.ts +4 -4
- package/dist/src/hooks/views/useApprovalForm.d.ts +1 -1
- package/dist/src/hooks/views/useProcessForm.d.ts +1 -1
- package/dist/src/locales/index.d.ts +2 -2
- package/dist/src/plugins/engine/ActionUtilsPlugin.d.ts +2 -2
- package/dist/src/plugins/engine/CustomVueControlPlugin.d.ts +1 -1
- package/dist/src/plugins/engine/DataSourceManagePlugin.d.ts +1 -1
- package/dist/src/plugins/engine/DataViewPlugin.d.ts +1 -1
- package/dist/src/plugins/engine/DatasourceSearchPlugin.d.ts +1 -1
- package/dist/src/plugins/engine/EventListenerPlugin/type.d.ts +5 -5
- package/dist/src/plugins/engine/MultistageFillingPlugin.d.ts +1 -1
- package/dist/src/store/index.d.ts +1 -1
- package/dist/src/types/PageContext.d.ts +1 -1
- package/dist/src/types/approval-submit.d.ts +1 -1
- package/dist/src/types/type.d.ts +8 -8
- package/dist/src/utils/controls/attachmentUtils.d.ts +1 -1
- package/dist/src/utils/controls/formCopy.d.ts +1 -1
- package/dist/src/utils/controls/imageUtils.d.ts +1 -1
- package/dist/src/utils/core/crossMessageProcessor.d.ts +1 -1
- package/dist/src/utils/core/math.d.ts +1 -1
- package/dist/src/utils/model/operateCache.d.ts +2 -2
- package/dist/src/utils/tools/asyncInterval.d.ts +1 -1
- package/dist/src/utils/tools/subtableAgGridUtils.d.ts +1 -1
- package/package.json +7 -37
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Engine } from '@byteluck-fe/model-driven-engine';
|
|
2
2
|
import { FieldFilterCondition, FieldFilterConditions, DataSourceOrderItem } from '@byteluck-fe/model-driven-core-all';
|
|
3
|
-
export type ControlsEvent = {
|
|
3
|
+
export declare type ControlsEvent = {
|
|
4
4
|
[controlId: string]: BaitedaEventListener[];
|
|
5
5
|
};
|
|
6
|
-
export type FormattedControlEvent = {
|
|
6
|
+
export declare type FormattedControlEvent = {
|
|
7
7
|
[controlId: string]: Record<string, BaitedaEventListener>;
|
|
8
8
|
};
|
|
9
|
-
export type EventKeys = Parameters<Engine['on']>[0];
|
|
9
|
+
export declare type EventKeys = Parameters<Engine['on']>[0];
|
|
10
10
|
export declare class BaitedaEventListener {
|
|
11
11
|
eventKey: string;
|
|
12
12
|
enabledCase: boolean;
|
|
@@ -79,7 +79,7 @@ export declare enum ModelMode {
|
|
|
79
79
|
subtable = "subtable",
|
|
80
80
|
current = "current"
|
|
81
81
|
}
|
|
82
|
-
export type UnnkownValue = {
|
|
82
|
+
export declare type UnnkownValue = {
|
|
83
83
|
[x: string]: string | [] | number | undefined | unknown;
|
|
84
84
|
};
|
|
85
85
|
export declare enum ImageType {
|
|
@@ -88,7 +88,7 @@ export declare enum ImageType {
|
|
|
88
88
|
local = "local",
|
|
89
89
|
fileId = "fileId"
|
|
90
90
|
}
|
|
91
|
-
export type PropItem = {
|
|
91
|
+
export declare type PropItem = {
|
|
92
92
|
prop: string;
|
|
93
93
|
value: any;
|
|
94
94
|
propName: string;
|
package/dist/src/types/type.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { PropType, VNodeChild } from 'vue';
|
|
2
|
-
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
2
|
+
export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
3
3
|
export declare const tuple: <T extends string[]>(...args: T) => T;
|
|
4
4
|
export declare const tupleNum: <T extends number[]>(...args: T) => T;
|
|
5
5
|
/**
|
|
6
6
|
* https://stackoverflow.com/a/59187769
|
|
7
7
|
* Extract the type of an element of an array/tuple without performing indexing
|
|
8
8
|
*/
|
|
9
|
-
export type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never;
|
|
9
|
+
export declare type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never;
|
|
10
10
|
/**
|
|
11
11
|
* https://github.com/Microsoft/TypeScript/issues/29729
|
|
12
12
|
*/
|
|
13
|
-
export type LiteralUnion<T extends U, U> = T | (U & {});
|
|
14
|
-
export type Data = Record<string, unknown>;
|
|
15
|
-
export type ObjectData = Record<string, any>;
|
|
16
|
-
export type Key = string | number;
|
|
17
|
-
type DefaultFactory<T> = (props: Data) => T | null | undefined;
|
|
13
|
+
export declare type LiteralUnion<T extends U, U> = T | (U & {});
|
|
14
|
+
export declare type Data = Record<string, unknown>;
|
|
15
|
+
export declare type ObjectData = Record<string, any>;
|
|
16
|
+
export declare type Key = string | number;
|
|
17
|
+
declare type DefaultFactory<T> = (props: Data) => T | null | undefined;
|
|
18
18
|
export interface PropOptions<T = any, D = T> {
|
|
19
19
|
type?: PropType<T> | true | null;
|
|
20
20
|
required?: boolean;
|
|
21
21
|
default?: D | DefaultFactory<D> | null | undefined | object;
|
|
22
22
|
validator?(value: unknown): boolean;
|
|
23
23
|
}
|
|
24
|
-
export type VueNode = VNodeChild | JSX.Element;
|
|
24
|
+
export declare type VueNode = VNodeChild | JSX.Element;
|
|
25
25
|
export declare const withInstall: <T>(comp: any) => T & Plugin;
|
|
26
26
|
export {};
|
|
@@ -2,6 +2,6 @@ declare const MAX_FILE_SIZE = 104857600;
|
|
|
2
2
|
declare const ALL_ACCEPT_TYPE: string[];
|
|
3
3
|
declare const getFileType: (filePath: string) => string;
|
|
4
4
|
declare const validFileType: (fileName: string, fileTypeList: string[]) => boolean;
|
|
5
|
-
declare const validAttachmentType: (fileName: string, type?: string[]) => boolean;
|
|
5
|
+
declare const validAttachmentType: (fileName: string, type?: string[] | undefined) => boolean;
|
|
6
6
|
export * from '../../constant/global';
|
|
7
7
|
export { MAX_FILE_SIZE, ALL_ACCEPT_TYPE, getFileType, validFileType, validAttachmentType, };
|
|
@@ -2,7 +2,7 @@ declare const MAX_IMAGE_SIZE = 10485760;
|
|
|
2
2
|
declare const INITAL_IMAGE_TYPE: string[];
|
|
3
3
|
declare const IMAGE_ACCEPT_TYPE_ARR: string[];
|
|
4
4
|
declare const IMAGE_ACCEPT_TYPE: string;
|
|
5
|
-
declare const validImageType: (fileName: string, type?: string[]) => boolean;
|
|
5
|
+
declare const validImageType: (fileName: string, type?: string[] | undefined) => boolean;
|
|
6
6
|
declare const isImage: (suffix: string) => boolean;
|
|
7
7
|
export * from '../../constant/global';
|
|
8
8
|
export { MAX_IMAGE_SIZE, INITAL_IMAGE_TYPE, IMAGE_ACCEPT_TYPE_ARR, IMAGE_ACCEPT_TYPE, validImageType, isImage, };
|
|
@@ -3,4 +3,4 @@ export declare const add: (arg1: Decimal.Value, arg2: Decimal.Value) => string;
|
|
|
3
3
|
export declare const subtract: (arg1: Decimal.Value, arg2: Decimal.Value) => string;
|
|
4
4
|
export declare const multiply: (arg1: Decimal.Value, arg2: Decimal.Value) => string;
|
|
5
5
|
export declare const divide: (arg1: Decimal.Value, arg2: Decimal.Value) => string;
|
|
6
|
-
export declare const toFixed: (num: Decimal.Value, dp?: number) => string;
|
|
6
|
+
export declare const toFixed: (num: Decimal.Value, dp?: number | undefined) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
2
2
|
export declare const useOperateCache: (instance: ControlRuntimeInstance<'department'> | ControlRuntimeInstance<'department2'> | ControlRuntimeInstance<'employee'> | ControlRuntimeInstance<'employee2'> | ControlRuntimeInstance<'select'> | ControlRuntimeInstance<'select-multiple'> | ControlRuntimeInstance<'radio'> | ControlRuntimeInstance<'amount'> | ControlRuntimeInstance<'tree'> | ControlRuntimeInstance<'checkbox'>) => {
|
|
3
3
|
updateStorageCache: (value: string[], data: any[] | unknown) => void;
|
|
4
|
-
getCacheDisplayValue: (value?: unknown[] | string[] |
|
|
5
|
-
updateCacheDisplay: (data: any, valueCode?: string, displayCode?: string) => void;
|
|
4
|
+
getCacheDisplayValue: (value?: string | unknown[] | string[] | undefined) => any[];
|
|
5
|
+
updateCacheDisplay: (data: any, valueCode?: string | undefined, displayCode?: string | undefined) => void;
|
|
6
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type handlerType = (...args: any[]) => Promise<any>;
|
|
1
|
+
declare type handlerType = (...args: any[]) => Promise<any>;
|
|
2
2
|
export declare function delay(ms: number): Promise<unknown>;
|
|
3
3
|
export declare function clearAsyncInterval(intervalId?: number): Promise<void>;
|
|
4
4
|
export declare function setAsyncInterval(handler: handlerType, interval?: number): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const setControlsClass: (controlId: string, rowIndex: number | undefined, className: string, subtaleContorlId?: string, isAdd?: boolean) => void;
|
|
1
|
+
export declare const setControlsClass: (controlId: string, rowIndex: number | undefined, className: string, subtaleContorlId?: string | undefined, isAdd?: boolean) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/runtime-engine",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/runtime-engine.js",
|
|
@@ -27,45 +27,15 @@
|
|
|
27
27
|
"@vue/runtime-core": "3.3.4",
|
|
28
28
|
"@vue/shared": "^3.3.4"
|
|
29
29
|
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@byteluck-fe/custom-control-sdk": "^1.1.0",
|
|
32
|
-
"@byteluck-fe/global-shared": "2.10.4",
|
|
33
|
-
"@byteluck-fe/model-driven-core-all": "2.5.0-beta.11",
|
|
34
|
-
"@byteluck-fe/model-driven-engine": "2.5.0-beta.12",
|
|
35
|
-
"ant-design-vue": "2.2.8",
|
|
36
|
-
"core-js": "^3.24.1",
|
|
37
|
-
"decimal.js": "^10.4.2",
|
|
38
|
-
"moment": "2.27.0",
|
|
39
|
-
"vue": "3.3.4"
|
|
40
|
-
},
|
|
30
|
+
"dependencies": {},
|
|
41
31
|
"devDependencies": {
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"@rollup/plugin-commonjs": "^25.0.4",
|
|
47
|
-
"@rollup/plugin-json": "^6.0.0",
|
|
48
|
-
"@rollup/plugin-node-resolve": "^15.2.1",
|
|
49
|
-
"@rollup/plugin-typescript": "11.1.2",
|
|
50
|
-
"@types/node": "^16.0.0",
|
|
51
|
-
"rollup": "^2.79.1",
|
|
52
|
-
"rollup-plugin-glob-import": "^0.5.0",
|
|
53
|
-
"rollup-plugin-json": "^4.0.0",
|
|
54
|
-
"rollup-plugin-require-context": "^1.0.1",
|
|
55
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
56
|
-
"rollup-plugin-typescript2": "0.35.0",
|
|
32
|
+
"@vitejs/plugin-vue": "^4.2.3",
|
|
33
|
+
"@vitejs/plugin-vue-jsx": "^3.0.2",
|
|
34
|
+
"rollup-plugin-dts": "^6.0.0",
|
|
35
|
+
"rollup-plugin-typescript2": "^0.35.0",
|
|
57
36
|
"rollup-plugin-visualizer": "^5.9.2",
|
|
58
|
-
"rollup-plugin-vue": "^6.0.0",
|
|
59
|
-
"tslib": "^2.6.1",
|
|
60
|
-
"typescript": "^4.7.0",
|
|
61
|
-
"vue-clipboard3": "2.0.0",
|
|
62
|
-
"vue-eslint-parser": "^8.3.0",
|
|
63
|
-
"vue-router": "^4.1.3",
|
|
64
|
-
"vue-wechat-title": "^2.0.7",
|
|
65
37
|
"vite": "^4.4.5",
|
|
66
|
-
"vite-plugin-dts": "^3.5.2"
|
|
67
|
-
"@vitejs/plugin-vue": "^4.2.3",
|
|
68
|
-
"@vitejs/plugin-vue-jsx": "^3.0.2"
|
|
38
|
+
"vite-plugin-dts": "^3.5.2"
|
|
69
39
|
},
|
|
70
40
|
"keywords": [],
|
|
71
41
|
"author": "",
|