@byteluck-fe/runtime-engine 7.0.1-beta.2 → 7.0.1-beta.4
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/runtime-engine.js +5419 -5288
- package/dist/src/entry_desktop/controls/rok-simple-search/layout.d.ts +12 -0
- package/dist/src/entry_desktop/controls/rok-simple-search/useSearchContainerHeight.d.ts +3 -0
- package/dist/src/entry_desktop/hooks/formClosePolicy.d.ts +27 -0
- package/dist/src/entry_desktop/hooks/formSuccessClose.d.ts +8 -0
- package/dist/src/entry_desktop/vue-components/uploadMethodBridge.d.ts +1 -0
- package/dist/src/entry_mobile/controls/rok-date-range/hook.d.ts +1 -1
- package/dist/src/hooks/controls/wps/wpsFileType.d.ts +3 -0
- package/dist/src/plugins/engine/EventListenerPlugin/externalSubmitClosePolicy.d.ts +6 -0
- package/dist/src/utils/controls/selectOptions.d.ts +2 -0
- package/dist/src/utils/core/externalFormUrl.d.ts +1 -0
- package/package.json +1 -1
- package/dist/src/entry_mobile/controls/rok-subtable/hooks/useSubtableList.d.ts +0 -120
- package/dist/src/hooks/controls/subtable/useSubtableInstanceSchemaChange.d.ts +0 -66
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
export declare const SIMPLE_SEARCH_DEFAULT_CHILD_MIN_WIDTH = 230;
|
|
2
|
+
export declare const SIMPLE_SEARCH_DEFAULT_COL_GAP = 24;
|
|
3
|
+
export type NormalizedSimpleSearchLayoutProps = {
|
|
4
|
+
childMinWidth: number;
|
|
5
|
+
colGap: number;
|
|
6
|
+
labelPosition: 'top' | 'left';
|
|
7
|
+
};
|
|
8
|
+
export declare function normalizeSimpleSearchLayoutProps(params: {
|
|
9
|
+
childMinWidth?: unknown;
|
|
10
|
+
colGap?: unknown;
|
|
11
|
+
labelPosition?: unknown;
|
|
12
|
+
}): NormalizedSimpleSearchLayoutProps;
|
|
1
13
|
export type SimpleSearchLayoutParams = {
|
|
2
14
|
searchWidth?: number;
|
|
3
15
|
childMinWidth?: number;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const PROCESS_DRAFT_CLOSE_ACTION: {
|
|
2
|
+
readonly PRESERVE_EXISTING: "preserve-existing";
|
|
3
|
+
readonly CLOSE_INTERNAL_TAB: "close-internal-tab";
|
|
4
|
+
readonly CLOSE_EXTERNAL_CONTAINER: "close-external-container";
|
|
5
|
+
};
|
|
6
|
+
export type ProcessDraftCloseAction = (typeof PROCESS_DRAFT_CLOSE_ACTION)[keyof typeof PROCESS_DRAFT_CLOSE_ACTION];
|
|
7
|
+
type ProcessDraftCloseInput = {
|
|
8
|
+
routeName: unknown;
|
|
9
|
+
btn?: any;
|
|
10
|
+
isProcessing: boolean;
|
|
11
|
+
isInternal: boolean;
|
|
12
|
+
};
|
|
13
|
+
type InternalTabKeyInput = {
|
|
14
|
+
activeKey?: unknown;
|
|
15
|
+
queryMenuId?: unknown;
|
|
16
|
+
routePath?: unknown;
|
|
17
|
+
};
|
|
18
|
+
type ProcessDraftCloseHandlers = {
|
|
19
|
+
closeInternalTab: () => void | Promise<void>;
|
|
20
|
+
closeExternalContainer: () => void | Promise<void>;
|
|
21
|
+
};
|
|
22
|
+
export declare function isDraftSaveOperation(btn?: any): boolean;
|
|
23
|
+
export declare function resolveProcessDraftCloseAction({ routeName, btn, isProcessing, isInternal, }: ProcessDraftCloseInput): ProcessDraftCloseAction;
|
|
24
|
+
export declare function resolveInternalTabKey({ activeKey, queryMenuId, routePath, }: InternalTabKeyInput): string;
|
|
25
|
+
export declare function hasRefreshProcessCenter(query?: Record<string, unknown>): boolean;
|
|
26
|
+
export declare function executeProcessDraftClose(action: ProcessDraftCloseAction, handlers: ProcessDraftCloseHandlers): Promise<boolean>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type FormSuccessCloseOptions = {
|
|
2
|
+
close: () => void | Promise<void>;
|
|
3
|
+
reset: () => void;
|
|
4
|
+
settle: () => void;
|
|
5
|
+
onError?: (error: unknown) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function settleFormSuccessClose({ close, reset, settle, onError, }: FormSuccessCloseOptions): Promise<void>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const invokeComponentMethod: (component: any, method: string, ...args: any[]) => any;
|
|
@@ -8,7 +8,7 @@ export default function (instanceProps: ShallowRef<ControlPropertyInstance<'date
|
|
|
8
8
|
isDisabled: ComputedRef<boolean>;
|
|
9
9
|
dateType: ComputedRef<DateType>;
|
|
10
10
|
formatValue: (value: any) => string[] | "";
|
|
11
|
-
labelValue: (val
|
|
11
|
+
labelValue: (val?: any) => any;
|
|
12
12
|
updateCtrlValue: (val: any) => void;
|
|
13
13
|
isReadonly: ComputedRef<boolean>;
|
|
14
14
|
rules: ComputedRef<PropertyRuntimeRules>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function markSuccessfulFormSubmit(actionsGlobals: Record<string, unknown> | undefined, submitType: unknown): boolean;
|
|
2
|
+
export declare function shouldIgnoreExternalSubmitClose({ url, operation, actionsGlobals, }: {
|
|
3
|
+
url: string;
|
|
4
|
+
operation: unknown;
|
|
5
|
+
actionsGlobals?: Record<string, unknown>;
|
|
6
|
+
}): boolean;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export type SelectOptionLike = {
|
|
2
2
|
label?: unknown;
|
|
3
|
+
children?: unknown;
|
|
3
4
|
value?: unknown;
|
|
4
5
|
[key: string]: unknown;
|
|
5
6
|
};
|
|
7
|
+
export declare function resolveSelectOptionLabel(option: SelectOptionLike | undefined, cachedDisplayValue: unknown, selectedValue: unknown): {};
|
|
6
8
|
export declare function filterSelectOptionsByLabel<T extends SelectOptionLike>(options: T[], query: string): T[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isExternalUrl(url: string): boolean;
|
package/package.json
CHANGED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { ControlRuntimeInstance, PAGE_STATUS, CONTROL_TYPE, ControlsKeys, ControlPropertyInstance, BaseControlTypes, FieldTypes } from '@byteluck-fe/model-driven-core-all';
|
|
2
|
-
import { GridApi } from '@ag-grid-community/core';
|
|
3
|
-
import { ComputedRef, StyleValue, Ref, ShallowRef } from 'vue';
|
|
4
|
-
import { SubtablePropsInterface } from '../../../../constant/controls/props/list/subtable';
|
|
5
|
-
import { default as __DTS_DEFAULT_0__ } from '../utils/vs-full';
|
|
6
|
-
|
|
7
|
-
declare const useSubtableList: (props: SubtablePropsInterface, instanceProps: ShallowRef<ControlPropertyInstance<CONTROL_TYPE.SUBTABLE>>) => {
|
|
8
|
-
gridColumns: ComputedRef<({
|
|
9
|
-
headerName: string;
|
|
10
|
-
dataIndex: string;
|
|
11
|
-
field: string;
|
|
12
|
-
resizable: boolean;
|
|
13
|
-
editable: boolean;
|
|
14
|
-
width: number;
|
|
15
|
-
suppressSizeToFit: boolean;
|
|
16
|
-
suppressMovable: boolean;
|
|
17
|
-
pinned: string;
|
|
18
|
-
cellClass: string;
|
|
19
|
-
cellRenderer: ({ rowIndex }: {
|
|
20
|
-
rowIndex: number;
|
|
21
|
-
}) => HTMLDivElement;
|
|
22
|
-
} | {
|
|
23
|
-
id: string;
|
|
24
|
-
field: string;
|
|
25
|
-
dataIndex: string;
|
|
26
|
-
type: string;
|
|
27
|
-
hide: boolean;
|
|
28
|
-
headerName: string;
|
|
29
|
-
controlType: CONTROL_TYPE;
|
|
30
|
-
})[]>;
|
|
31
|
-
rotateFull: () => void;
|
|
32
|
-
closeFullScreen: () => void;
|
|
33
|
-
isBroadwiseFull: Ref<boolean>;
|
|
34
|
-
broadwiseFull: Ref< __DTS_DEFAULT_0__ | undefined>;
|
|
35
|
-
displayHeaders: Ref<{
|
|
36
|
-
controlType: "layout";
|
|
37
|
-
children: {
|
|
38
|
-
id: string;
|
|
39
|
-
type: ControlsKeys;
|
|
40
|
-
props: {
|
|
41
|
-
isHide: boolean;
|
|
42
|
-
className?: string[] | undefined;
|
|
43
|
-
style: {
|
|
44
|
-
width: number | "";
|
|
45
|
-
height: number | "";
|
|
46
|
-
widthConfig: "fill" | "px" | "%" | "hug";
|
|
47
|
-
heightConfig: "fill" | "px" | "%" | "hug";
|
|
48
|
-
};
|
|
49
|
-
caption: string;
|
|
50
|
-
defaultState: "default" | "readonly";
|
|
51
|
-
};
|
|
52
|
-
controlType: BaseControlTypes;
|
|
53
|
-
fieldType?: FieldTypes | undefined;
|
|
54
|
-
pageStatus?: PAGE_STATUS | undefined;
|
|
55
|
-
}[];
|
|
56
|
-
id: string;
|
|
57
|
-
type: "subtable-column";
|
|
58
|
-
props: {
|
|
59
|
-
metaAutoWidth: {
|
|
60
|
-
pc: {
|
|
61
|
-
width: number;
|
|
62
|
-
widthType: "auto" | "px";
|
|
63
|
-
minWidth: number;
|
|
64
|
-
maxWidth?: number | undefined;
|
|
65
|
-
flex: number;
|
|
66
|
-
};
|
|
67
|
-
mobile: {
|
|
68
|
-
width: number;
|
|
69
|
-
widthType: "auto" | "px";
|
|
70
|
-
minWidth: number;
|
|
71
|
-
maxWidth?: number | undefined;
|
|
72
|
-
flex: number;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
caption: string;
|
|
76
|
-
fixed: boolean;
|
|
77
|
-
isShowCaptionTip: boolean;
|
|
78
|
-
captionTip: string;
|
|
79
|
-
isHideCaption: boolean;
|
|
80
|
-
isHide: boolean;
|
|
81
|
-
className?: string[] | undefined;
|
|
82
|
-
style: {
|
|
83
|
-
width: number | "";
|
|
84
|
-
height: number | "";
|
|
85
|
-
widthConfig: "fill" | "px" | "%" | "hug";
|
|
86
|
-
heightConfig: "fill" | "px" | "%" | "hug";
|
|
87
|
-
};
|
|
88
|
-
defaultState: "default" | "readonly";
|
|
89
|
-
};
|
|
90
|
-
fieldType?: FieldTypes | undefined;
|
|
91
|
-
pageStatus?: PAGE_STATUS | undefined;
|
|
92
|
-
}[]>;
|
|
93
|
-
initGridApi: (api: GridApi) => void;
|
|
94
|
-
verticalFull: Ref< __DTS_DEFAULT_0__ | undefined>;
|
|
95
|
-
publicPath: string | undefined;
|
|
96
|
-
subtableRef: Ref<any>;
|
|
97
|
-
isVerticalFull: Ref<boolean>;
|
|
98
|
-
hideInstances: ControlRuntimeInstance<ControlsKeys>[] | undefined;
|
|
99
|
-
subtableStyle: ComputedRef<StyleValue>;
|
|
100
|
-
currentAggridApi: ShallowRef<GridApi<any> | undefined>;
|
|
101
|
-
rules: ComputedRef<{
|
|
102
|
-
validator: () => Promise<void>;
|
|
103
|
-
}[]>;
|
|
104
|
-
isRotate: ComputedRef<boolean>;
|
|
105
|
-
dataSource: ComputedRef<any[]>;
|
|
106
|
-
rotateImgsrc: ComputedRef<string>;
|
|
107
|
-
isEdit: ComputedRef<boolean>;
|
|
108
|
-
bodyScrollEnd: () => void;
|
|
109
|
-
agGridListStyle: ComputedRef<{
|
|
110
|
-
padding: string;
|
|
111
|
-
}>;
|
|
112
|
-
bodyScroll: () => void;
|
|
113
|
-
subtableStyle1: ComputedRef<StyleValue>;
|
|
114
|
-
isBodyScrollIng: Ref<boolean>;
|
|
115
|
-
getTotal: ComputedRef<number>;
|
|
116
|
-
serverPagination: ComputedRef<boolean>;
|
|
117
|
-
setLastPage: (isDelete?: boolean) => Promise<void>;
|
|
118
|
-
spinning: Ref<boolean>;
|
|
119
|
-
};
|
|
120
|
-
export { useSubtableList };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { ShallowRef, Ref } from 'vue';
|
|
2
|
-
import { Engine } from '@byteluck-fe/model-driven-engine';
|
|
3
|
-
import { GridApi } from '@ag-grid-community/core';
|
|
4
|
-
import { SubtablePropsInterface } from '../../../constant/controls/props/list/subtable';
|
|
5
|
-
import { ControlsKeys, BaseControlTypes, FieldTypes, PAGE_STATUS } from '@byteluck-fe/model-driven-core-all';
|
|
6
|
-
|
|
7
|
-
export declare const useSubtableInstanceSchemaChange: (props: SubtablePropsInterface, context: Ref<Engine> | undefined, currentAggridApi?: ShallowRef<GridApi | undefined>) => {
|
|
8
|
-
displayHeaders: Ref<{
|
|
9
|
-
controlType: "layout";
|
|
10
|
-
children: {
|
|
11
|
-
id: string;
|
|
12
|
-
type: ControlsKeys;
|
|
13
|
-
props: {
|
|
14
|
-
isHide: boolean;
|
|
15
|
-
className?: string[] | undefined;
|
|
16
|
-
style: {
|
|
17
|
-
width: number | "";
|
|
18
|
-
height: number | "";
|
|
19
|
-
widthConfig: "fill" | "px" | "%" | "hug";
|
|
20
|
-
heightConfig: "fill" | "px" | "%" | "hug";
|
|
21
|
-
};
|
|
22
|
-
caption: string;
|
|
23
|
-
defaultState: "default" | "readonly";
|
|
24
|
-
};
|
|
25
|
-
controlType: BaseControlTypes;
|
|
26
|
-
fieldType?: FieldTypes | undefined;
|
|
27
|
-
pageStatus?: PAGE_STATUS | undefined;
|
|
28
|
-
}[];
|
|
29
|
-
id: string;
|
|
30
|
-
type: "subtable-column";
|
|
31
|
-
props: {
|
|
32
|
-
metaAutoWidth: {
|
|
33
|
-
pc: {
|
|
34
|
-
width: number;
|
|
35
|
-
widthType: "auto" | "px";
|
|
36
|
-
minWidth: number;
|
|
37
|
-
maxWidth?: number | undefined;
|
|
38
|
-
flex: number;
|
|
39
|
-
};
|
|
40
|
-
mobile: {
|
|
41
|
-
width: number;
|
|
42
|
-
widthType: "auto" | "px";
|
|
43
|
-
minWidth: number;
|
|
44
|
-
maxWidth?: number | undefined;
|
|
45
|
-
flex: number;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
caption: string;
|
|
49
|
-
fixed: boolean;
|
|
50
|
-
isShowCaptionTip: boolean;
|
|
51
|
-
captionTip: string;
|
|
52
|
-
isHideCaption: boolean;
|
|
53
|
-
isHide: boolean;
|
|
54
|
-
className?: string[] | undefined;
|
|
55
|
-
style: {
|
|
56
|
-
width: number | "";
|
|
57
|
-
height: number | "";
|
|
58
|
-
widthConfig: "fill" | "px" | "%" | "hug";
|
|
59
|
-
heightConfig: "fill" | "px" | "%" | "hug";
|
|
60
|
-
};
|
|
61
|
-
defaultState: "default" | "readonly";
|
|
62
|
-
};
|
|
63
|
-
fieldType?: FieldTypes | undefined;
|
|
64
|
-
pageStatus?: PAGE_STATUS | undefined;
|
|
65
|
-
}[]>;
|
|
66
|
-
};
|