@byteluck-fe/runtime-engine 1.1.2 → 1.1.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/packages/runtime-engine/src/runtimeEngine.d.ts +9 -2
- package/dist/runtime-engine.js +5290 -4892
- package/dist/src/entry_desktop/controls/rok-attachment/hook-file-base.d.ts +3 -25
- package/dist/src/entry_desktop/hooks/useInitPage.d.ts +11 -0
- package/dist/src/entry_mobile/components/VanSuperForm/index.d.ts +1 -1
- package/dist/src/entry_mobile/controls/rok-attachment/hook-file-base.d.ts +2 -37
- package/dist/src/entry_mobile/controls/rok-attachment/hook.d.ts +2 -28
- package/dist/src/entry_mobile/controls/rok-date-picker/hook.d.ts +2 -149
- package/dist/src/entry_mobile/controls/rok-date-range/hook.d.ts +2 -150
- package/dist/src/entry_mobile/controls/rok-department/hook.d.ts +1 -20
- package/dist/src/entry_mobile/controls/rok-department2/hook.d.ts +1 -21
- package/dist/src/entry_mobile/controls/rok-employee/hook.d.ts +1 -111
- package/dist/src/entry_mobile/controls/rok-image/hook.d.ts +2 -20
- package/dist/src/entry_mobile/controls/rok-organization-selection/hook.d.ts +1 -21
- package/dist/src/entry_mobile/controls/rok-search-date-range/hook.d.ts +2 -147
- package/dist/src/entry_mobile/controls/rok-subtable/hooks/useFull.d.ts +3 -1
- package/dist/src/hooks/components/useLayout.d.ts +2 -1
- package/dist/src/hooks/controls/department2/useDepartmentDatasource.d.ts +5 -0
- package/dist/src/hooks/controls/simpleSearch/useSimpleSearch.d.ts +1 -2
- package/dist/src/locales/index.d.ts +2 -2
- package/dist/src/plugins/engine/ActionUtilsPlugin.d.ts +1 -1
- package/dist/src/plugins/engine/EventListenerPlugin/type.d.ts +2 -2
- package/dist/src/store/index.d.ts +3 -1
- package/dist/src/utils/controls/dateUtils.d.ts +1 -1
- package/dist/src/utils/core/expressionTools.d.ts +22 -0
- package/dist/src/utils/core/index.d.ts +1 -0
- package/package.json +4 -4
- package/dist/src/entry_desktop/controls/components/base-table/props.d.ts +0 -52
- package/dist/src/entry_desktop/controls/components/subtable-ag-grid/props.d.ts +0 -98
- package/dist/src/entry_desktop/controls/rok-grid-table/components/components/ImportModal.d.ts +0 -87
- package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useInstance.d.ts +0 -9
- package/dist/src/entry_desktop/controls/rok-list-view/useShrinkMode.d.ts +0 -16
- package/dist/src/entry_desktop/controls/rok-subtable/components/import-modal/import-modal.d.ts +0 -79
- package/dist/src/entry_desktop/controls/rok-subtable/hooks/useSubtable.d.ts +0 -41
- package/dist/src/entry_desktop/controls/rok-subtable/utils/cellRenderColumn.d.ts +0 -8
- package/dist/src/entry_mobile/controls/rok-grid-table/hooks/useRender.d.ts +0 -3
- package/dist/src/entry_mobile/controls/rok-subtable/hooks/useOperate.d.ts +0 -33
- package/dist/src/entry_mobile/controls/rok-subtable/utils/cellRenderColumn.d.ts +0 -6
- package/dist/src/hooks/components/useList.d.ts +0 -10
- package/dist/src/hooks/controls/button/useButton.d.ts +0 -19
- package/dist/src/hooks/controls/calc/useCalc.d.ts +0 -18
- package/dist/src/hooks/controls/dataView/useDataView.d.ts +0 -34
- package/dist/src/hooks/controls/input/useInput.d.ts +0 -32
- package/dist/src/hooks/controls/tab/useTab.d.ts +0 -15
- package/dist/src/hooks/controls/useDateRange.d.ts +0 -139
- package/dist/src/hooks/controls/useNumberValue.d.ts +0 -16
- package/dist/src/hooks/controls/useRichText.d.ts +0 -27
- package/dist/src/hooks/controls/wps/useWps.d.ts +0 -55
- package/dist/src/hooks/form/useBaseForm.d.ts +0 -26
- package/dist/src/utils/controls/subtableDealTableColumn.d.ts +0 -156
|
@@ -1,147 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { PAGE_STATUS, DateType, LimitDate, ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
4
|
-
export default function (instance: ControlRuntimeInstance<'search-date-range'>, rowIndex: number | undefined): {
|
|
5
|
-
pageStatus: ComputedRef<PAGE_STATUS>;
|
|
6
|
-
placeholder: ComputedRef<string[]>;
|
|
7
|
-
isDisabled: ComputedRef<boolean>;
|
|
8
|
-
dateType: ComputedRef<DateType>;
|
|
9
|
-
formatValue: (value: any) => string[] | "";
|
|
10
|
-
labelValue: (val: any) => any;
|
|
11
|
-
updateCtrlValue: (val: any) => void;
|
|
12
|
-
isReadonly: ComputedRef<boolean>;
|
|
13
|
-
rules: ComputedRef<PropertyRuntimeRules>;
|
|
14
|
-
minDate: Ref<{
|
|
15
|
-
toString: () => string;
|
|
16
|
-
toDateString: () => string;
|
|
17
|
-
toTimeString: () => string;
|
|
18
|
-
toLocaleString: {
|
|
19
|
-
(): string;
|
|
20
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
21
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
22
|
-
};
|
|
23
|
-
toLocaleDateString: {
|
|
24
|
-
(): string;
|
|
25
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
26
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
27
|
-
};
|
|
28
|
-
toLocaleTimeString: {
|
|
29
|
-
(): string;
|
|
30
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
31
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
32
|
-
};
|
|
33
|
-
valueOf: () => number;
|
|
34
|
-
getTime: () => number;
|
|
35
|
-
getFullYear: () => number;
|
|
36
|
-
getUTCFullYear: () => number;
|
|
37
|
-
getMonth: () => number;
|
|
38
|
-
getUTCMonth: () => number;
|
|
39
|
-
getDate: () => number;
|
|
40
|
-
getUTCDate: () => number;
|
|
41
|
-
getDay: () => number;
|
|
42
|
-
getUTCDay: () => number;
|
|
43
|
-
getHours: () => number;
|
|
44
|
-
getUTCHours: () => number;
|
|
45
|
-
getMinutes: () => number;
|
|
46
|
-
getUTCMinutes: () => number;
|
|
47
|
-
getSeconds: () => number;
|
|
48
|
-
getUTCSeconds: () => number;
|
|
49
|
-
getMilliseconds: () => number;
|
|
50
|
-
getUTCMilliseconds: () => number;
|
|
51
|
-
getTimezoneOffset: () => number;
|
|
52
|
-
setTime: (time: number) => number;
|
|
53
|
-
setMilliseconds: (ms: number) => number;
|
|
54
|
-
setUTCMilliseconds: (ms: number) => number;
|
|
55
|
-
setSeconds: (sec: number, ms?: number | undefined) => number;
|
|
56
|
-
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
|
57
|
-
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
|
58
|
-
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
|
59
|
-
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
|
60
|
-
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
|
61
|
-
setDate: (date: number) => number;
|
|
62
|
-
setUTCDate: (date: number) => number;
|
|
63
|
-
setMonth: (month: number, date?: number | undefined) => number;
|
|
64
|
-
setUTCMonth: (month: number, date?: number | undefined) => number;
|
|
65
|
-
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
|
66
|
-
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
|
67
|
-
toUTCString: () => string;
|
|
68
|
-
toISOString: () => string;
|
|
69
|
-
toJSON: (key?: any) => string;
|
|
70
|
-
[Symbol.toPrimitive]: {
|
|
71
|
-
(hint: "default"): string;
|
|
72
|
-
(hint: "string"): string;
|
|
73
|
-
(hint: "number"): number;
|
|
74
|
-
(hint: string): string | number;
|
|
75
|
-
};
|
|
76
|
-
}>;
|
|
77
|
-
maxDate: Ref<{
|
|
78
|
-
toString: () => string;
|
|
79
|
-
toDateString: () => string;
|
|
80
|
-
toTimeString: () => string;
|
|
81
|
-
toLocaleString: {
|
|
82
|
-
(): string;
|
|
83
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
84
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
85
|
-
};
|
|
86
|
-
toLocaleDateString: {
|
|
87
|
-
(): string;
|
|
88
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
89
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
90
|
-
};
|
|
91
|
-
toLocaleTimeString: {
|
|
92
|
-
(): string;
|
|
93
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
94
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
|
95
|
-
};
|
|
96
|
-
valueOf: () => number;
|
|
97
|
-
getTime: () => number;
|
|
98
|
-
getFullYear: () => number;
|
|
99
|
-
getUTCFullYear: () => number;
|
|
100
|
-
getMonth: () => number;
|
|
101
|
-
getUTCMonth: () => number;
|
|
102
|
-
getDate: () => number;
|
|
103
|
-
getUTCDate: () => number;
|
|
104
|
-
getDay: () => number;
|
|
105
|
-
getUTCDay: () => number;
|
|
106
|
-
getHours: () => number;
|
|
107
|
-
getUTCHours: () => number;
|
|
108
|
-
getMinutes: () => number;
|
|
109
|
-
getUTCMinutes: () => number;
|
|
110
|
-
getSeconds: () => number;
|
|
111
|
-
getUTCSeconds: () => number;
|
|
112
|
-
getMilliseconds: () => number;
|
|
113
|
-
getUTCMilliseconds: () => number;
|
|
114
|
-
getTimezoneOffset: () => number;
|
|
115
|
-
setTime: (time: number) => number;
|
|
116
|
-
setMilliseconds: (ms: number) => number;
|
|
117
|
-
setUTCMilliseconds: (ms: number) => number;
|
|
118
|
-
setSeconds: (sec: number, ms?: number | undefined) => number;
|
|
119
|
-
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
|
120
|
-
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
|
121
|
-
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
|
122
|
-
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
|
123
|
-
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
|
124
|
-
setDate: (date: number) => number;
|
|
125
|
-
setUTCDate: (date: number) => number;
|
|
126
|
-
setMonth: (month: number, date?: number | undefined) => number;
|
|
127
|
-
setUTCMonth: (month: number, date?: number | undefined) => number;
|
|
128
|
-
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
|
129
|
-
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
|
130
|
-
toUTCString: () => string;
|
|
131
|
-
toISOString: () => string;
|
|
132
|
-
toJSON: (key?: any) => string;
|
|
133
|
-
[Symbol.toPrimitive]: {
|
|
134
|
-
(hint: "default"): string;
|
|
135
|
-
(hint: "string"): string;
|
|
136
|
-
(hint: "number"): number;
|
|
137
|
-
(hint: string): string | number;
|
|
138
|
-
};
|
|
139
|
-
}>;
|
|
140
|
-
columns: any;
|
|
141
|
-
disabledDates: {
|
|
142
|
-
min: Date;
|
|
143
|
-
max: Date;
|
|
144
|
-
}[];
|
|
145
|
-
limitDateList: ComputedRef<LimitDate[]>;
|
|
146
|
-
isMobileEditable: ComputedRef<boolean>;
|
|
147
|
-
};
|
|
1
|
+
import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
2
|
+
export default function (instance: ControlRuntimeInstance<'search-date-range'>, rowIndex: number | undefined): any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import Full from '../utils/vs-full';
|
|
3
|
+
import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
3
4
|
interface FullParams {
|
|
4
5
|
el: string;
|
|
5
6
|
toggle?: string;
|
|
@@ -7,8 +8,9 @@ interface FullParams {
|
|
|
7
8
|
autoRotate?: boolean;
|
|
8
9
|
disableScroll?: boolean;
|
|
9
10
|
nativeFirst?: boolean;
|
|
11
|
+
instance?: ControlRuntimeInstance<'subtable'>;
|
|
10
12
|
}
|
|
11
|
-
declare const useFull: (params: FullParams
|
|
13
|
+
declare const useFull: (params: FullParams) => {
|
|
12
14
|
full: Ref<Full | undefined>;
|
|
13
15
|
isFull: Ref<boolean>;
|
|
14
16
|
closeFullScreen: () => void;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComputedRef, ShallowRef, Ref } from 'vue';
|
|
2
2
|
import { Engine } from '@byteluck-fe/model-driven-engine';
|
|
3
3
|
import { RuntimeLayoutControl } from '@byteluck-fe/model-driven-core-all';
|
|
4
4
|
import { RuntimeControl } from '@byteluck-fe/model-driven-core-all';
|
|
5
5
|
export declare function useLayout(instance: RuntimeLayoutControl, params?: {
|
|
6
6
|
lazyCount: number;
|
|
7
7
|
}): {
|
|
8
|
+
isHide: ComputedRef<boolean>;
|
|
8
9
|
context: Ref<Engine> | undefined;
|
|
9
10
|
getState: (id: string, rowIndex?: number) => {};
|
|
10
11
|
getDisplay: (control: any, rowIndex?: number) => any;
|
|
@@ -23,7 +23,12 @@ export declare function useDepartmentDatasource(props: {
|
|
|
23
23
|
}>;
|
|
24
24
|
departmentType: ComputedRef<string>;
|
|
25
25
|
showType: ComputedRef<"tree" | "default">;
|
|
26
|
+
displayCache: ComputedRef<any[]>;
|
|
26
27
|
displayLevel: ComputedRef<number>;
|
|
27
28
|
mainOrgId: ComputedRef<any>;
|
|
28
29
|
secrecy: ComputedRef<any>;
|
|
30
|
+
getRootDept: (query: string, level: string, orgList: string[], page: any) => Promise<{
|
|
31
|
+
code: string;
|
|
32
|
+
data: never[];
|
|
33
|
+
}>;
|
|
29
34
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Rules } from 'async-validator';
|
|
2
1
|
import { ShallowRef, Ref, ComputedRef } from 'vue';
|
|
3
|
-
import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
2
|
+
import { Rules, ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
4
3
|
import { Engine } from '@byteluck-fe/model-driven-engine';
|
|
5
4
|
import { ISearchType } from '../../../types/controls/simple-search';
|
|
6
5
|
export default function useOperate(instance: ControlRuntimeInstance<'simple-search'>, emit: EmitType, formModel: ComputedRef<Record<string, any>>, context?: Engine): {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { OkI18n } from 'ok-i18n/lib/i18n';
|
|
3
3
|
import { useI18n } from './vue-i18n';
|
|
4
4
|
declare const LOCALE_KEY = "local";
|
|
5
5
|
declare enum LocaleEnum {
|
|
@@ -9,7 +9,7 @@ declare enum LocaleEnum {
|
|
|
9
9
|
}
|
|
10
10
|
declare const locale: string;
|
|
11
11
|
declare const i18n: {
|
|
12
|
-
global:
|
|
12
|
+
global: OkI18n;
|
|
13
13
|
locale: string;
|
|
14
14
|
$t: (path: string, fallback: string, variables?: Record<string, string | number> | undefined) => string;
|
|
15
15
|
install(app: App<any>): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FetchService } from '
|
|
1
|
+
import { FetchService } from '../../utils/core';
|
|
2
2
|
import { Engine, Plugin } from '@byteluck-fe/model-driven-engine';
|
|
3
3
|
import { ControlRuntimeInstance, ControlsKeys } from '@byteluck-fe/model-driven-core-all';
|
|
4
4
|
type ActionUtilType = {
|
|
@@ -79,8 +79,8 @@ export declare enum ModelMode {
|
|
|
79
79
|
subtable = "subtable",
|
|
80
80
|
current = "current"
|
|
81
81
|
}
|
|
82
|
-
export type
|
|
83
|
-
[x: string]: string | [] | number | undefined;
|
|
82
|
+
export type UnnkownValue = {
|
|
83
|
+
[x: string]: string | [] | number | undefined | unknown;
|
|
84
84
|
};
|
|
85
85
|
export declare enum ImageType {
|
|
86
86
|
source = "source",
|
|
@@ -2,5 +2,5 @@ declare const formatDateValue: (value: any) => any;
|
|
|
2
2
|
declare const computedDisabledDate: (current: any, limitDateList: any, dateType: 'date' | 'datetime' | 'datemin' | 'datehour' | 'month' | 'year') => any;
|
|
3
3
|
declare const boundaryTime: (value: number | string, type?: string) => string[] | "";
|
|
4
4
|
declare const boundaryRange: (range: any, type: any) => string[];
|
|
5
|
-
declare const getSystemTime: (type: any) =>
|
|
5
|
+
declare const getSystemTime: (type: any) => number;
|
|
6
6
|
export { computedDisabledDate, boundaryTime, boundaryRange, formatDateValue, getSystemTime };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Expression } from '@byteluck/expression-parser';
|
|
2
|
+
interface FX {
|
|
3
|
+
[controlId: string]: {
|
|
4
|
+
[propertyKey: string]: {
|
|
5
|
+
expression_display: string;
|
|
6
|
+
expression: string;
|
|
7
|
+
expression_detail: string;
|
|
8
|
+
expression_detail_split: string[];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare class ExpressionTools {
|
|
13
|
+
expressionParser: Expression;
|
|
14
|
+
private userInfo;
|
|
15
|
+
expressionArr: any;
|
|
16
|
+
constructor(userInfo: any, config: FX);
|
|
17
|
+
parserFXConfig(config: FX): void;
|
|
18
|
+
registerSystemVariables(): void;
|
|
19
|
+
getCurrentSystemVariables(keys: string[]): any;
|
|
20
|
+
getSessionVariables(keys: string[]): string | null;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
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.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/runtime-engine.js",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"build": "rollup -c",
|
|
12
12
|
"build:vite": "vite build",
|
|
13
13
|
"lint": "vue-cli-service lint",
|
|
14
|
-
"release:patch": "
|
|
15
|
-
"release:minor": "
|
|
16
|
-
"release:major": "
|
|
14
|
+
"release:patch": "vite build && standard-version --release-as patch",
|
|
15
|
+
"release:minor": "vite build && standard-version --release-as minor",
|
|
16
|
+
"release:major": "vite build && standard-version --release-as major"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"dist"
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { VueTypeValidableDef } from 'vue-types';
|
|
2
|
-
import { default as __DTS_1__ } from '@byteluck-fe/model-driven-controls/dist/types/listControls/GridTable/runtime';
|
|
3
|
-
import { PropType } from 'vue';
|
|
4
|
-
import { BasicColumn } from './types';
|
|
5
|
-
import { PaginationProps } from '../../../../types/PaginationProps';
|
|
6
|
-
export declare const basicProps: {
|
|
7
|
-
instance: {
|
|
8
|
-
type: PropType<__DTS_1__>;
|
|
9
|
-
};
|
|
10
|
-
dataSource: {
|
|
11
|
-
type: (StringConstructor | ArrayConstructor)[];
|
|
12
|
-
default: () => never[];
|
|
13
|
-
};
|
|
14
|
-
columns: {
|
|
15
|
-
type: PropType<BasicColumn[]>;
|
|
16
|
-
default: () => never[];
|
|
17
|
-
};
|
|
18
|
-
loading: {
|
|
19
|
-
type: BooleanConstructor;
|
|
20
|
-
};
|
|
21
|
-
pagination: {
|
|
22
|
-
type: PropType<boolean | PaginationProps>;
|
|
23
|
-
};
|
|
24
|
-
scroll: {
|
|
25
|
-
type: PropType<{
|
|
26
|
-
x?: number | true | undefined;
|
|
27
|
-
y?: number | undefined;
|
|
28
|
-
}>;
|
|
29
|
-
};
|
|
30
|
-
rowKey: {
|
|
31
|
-
type: PropType<string | ((record: Recordable) => string)>;
|
|
32
|
-
default: string;
|
|
33
|
-
};
|
|
34
|
-
fixedPagination: {
|
|
35
|
-
type: BooleanConstructor;
|
|
36
|
-
};
|
|
37
|
-
onEditChange: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
38
|
-
default: (...args: any[]) => any;
|
|
39
|
-
};
|
|
40
|
-
onEditEnd: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
41
|
-
default: (...args: any[]) => any;
|
|
42
|
-
};
|
|
43
|
-
onEditCancel: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
44
|
-
default: (...args: any[]) => any;
|
|
45
|
-
};
|
|
46
|
-
onEditRowEnd: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
47
|
-
default: (...args: any[]) => any;
|
|
48
|
-
};
|
|
49
|
-
onHeaderChange: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
50
|
-
default: (...args: any[]) => any;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { default as __DTS_1__ } from '@byteluck-fe/model-driven-controls/dist/types/listControls/SubTable/runtime';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
4
|
-
import { ITooltipParams, SuppressKeyboardEventParams } from 'ag-grid-community';
|
|
5
|
-
export declare const basicProps: {
|
|
6
|
-
instance: PropType<__DTS_1__>;
|
|
7
|
-
originInstance: PropType<__DTS_1__>;
|
|
8
|
-
columns: ArrayConstructor;
|
|
9
|
-
dataSource: ArrayConstructor;
|
|
10
|
-
selectState: PropType<{
|
|
11
|
-
selectedRows: any[];
|
|
12
|
-
selectedRowKeys: string[];
|
|
13
|
-
}>;
|
|
14
|
-
primaryKey: StringConstructor;
|
|
15
|
-
setSelecState: FunctionConstructor;
|
|
16
|
-
loading: BooleanConstructor;
|
|
17
|
-
isRowSelectable: FunctionConstructor;
|
|
18
|
-
agGridInterface: PropType<ExtendsAgGridInterfaceType>;
|
|
19
|
-
agGridHeight: StringConstructor;
|
|
20
|
-
isPrintMode: BooleanConstructor;
|
|
21
|
-
getPagination: FunctionConstructor;
|
|
22
|
-
isEditable: BooleanConstructor;
|
|
23
|
-
};
|
|
24
|
-
export type BasicType = {
|
|
25
|
-
instance: ControlRuntimeInstance<'subtable'>;
|
|
26
|
-
originInstance: ControlRuntimeInstance<'subtable'>;
|
|
27
|
-
columns: any[];
|
|
28
|
-
dataSource: any[];
|
|
29
|
-
selectState: {
|
|
30
|
-
selectedRows: any[];
|
|
31
|
-
selectedRowKeys: string[];
|
|
32
|
-
};
|
|
33
|
-
primaryKey: String;
|
|
34
|
-
setSelecState: Function;
|
|
35
|
-
loading: boolean;
|
|
36
|
-
isRowSelectable: Function;
|
|
37
|
-
agGridInterface: ExtendsAgGridInterfaceType;
|
|
38
|
-
agGridHeight: String;
|
|
39
|
-
isPrintMode: boolean;
|
|
40
|
-
getPagination: Function;
|
|
41
|
-
isEditable: boolean;
|
|
42
|
-
};
|
|
43
|
-
type ExtendsAgGridInterfaceType = {
|
|
44
|
-
paginationPageSize?: number;
|
|
45
|
-
onPaginationChanged?: (event: any) => void;
|
|
46
|
-
};
|
|
47
|
-
export declare function getAgGridProps(props: Recordable<any>): {
|
|
48
|
-
gridInterface: {
|
|
49
|
-
rowSelection: string;
|
|
50
|
-
headerHeight: number;
|
|
51
|
-
rowHeight: number;
|
|
52
|
-
enableBrowserTooltips: boolean;
|
|
53
|
-
suppressRowDeselection: boolean;
|
|
54
|
-
suppressRowClickSelection: boolean;
|
|
55
|
-
singleClickEdit: boolean;
|
|
56
|
-
defaultColDef: {
|
|
57
|
-
sortable: boolean;
|
|
58
|
-
editable: boolean;
|
|
59
|
-
resizable: boolean;
|
|
60
|
-
comparator: (p: any, n: any) => number;
|
|
61
|
-
tooltipComponent: DefineComponent<{
|
|
62
|
-
params: PropType<ITooltipParams<any, any>>;
|
|
63
|
-
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
64
|
-
params: PropType<ITooltipParams<any, any>>;
|
|
65
|
-
}>>, {}, {}>;
|
|
66
|
-
autoHeaderHeight: boolean;
|
|
67
|
-
suppressKeyboardEvent: (params: SuppressKeyboardEventParams) => boolean;
|
|
68
|
-
wrapHeaderText: boolean;
|
|
69
|
-
};
|
|
70
|
-
noRowsOverlayComponentFramework: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
71
|
-
noRowsOverlayComponentParams: null;
|
|
72
|
-
stopEditingWhenCellsLoseFocus: boolean;
|
|
73
|
-
suppressScrollOnNewData: boolean;
|
|
74
|
-
suppressPaginationPanel: boolean;
|
|
75
|
-
enterMovesDown: boolean;
|
|
76
|
-
pagination: boolean;
|
|
77
|
-
animateRows: boolean;
|
|
78
|
-
tooltipShowDelay: number;
|
|
79
|
-
tooltipMouseTrack: boolean;
|
|
80
|
-
enableCellTextSelection: boolean;
|
|
81
|
-
ensureDomOrder: boolean;
|
|
82
|
-
enableCellChangeFlash: boolean;
|
|
83
|
-
frameworkComponents: {
|
|
84
|
-
agColumnHeader: DefineComponent<{
|
|
85
|
-
params: {
|
|
86
|
-
type: ObjectConstructor;
|
|
87
|
-
required: true;
|
|
88
|
-
};
|
|
89
|
-
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
90
|
-
params: {
|
|
91
|
-
type: ObjectConstructor;
|
|
92
|
-
required: true;
|
|
93
|
-
};
|
|
94
|
-
}>>, {}, {}>;
|
|
95
|
-
};
|
|
96
|
-
} & ExtendsAgGridInterfaceType;
|
|
97
|
-
};
|
|
98
|
-
export {};
|
package/dist/src/entry_desktop/controls/rok-grid-table/components/components/ImportModal.d.ts
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { DebouncedFunc } from 'lodash';
|
|
2
|
-
import { OptionsType } from '../interface/data';
|
|
3
|
-
import { VueTypeValidableDef } from 'vue-types';
|
|
4
|
-
import { default as __DTS_1__ } from '@byteluck-fe/model-driven-controls/dist/types/baseControls/ImportRecordListButton/runtime';
|
|
5
|
-
import { DefineComponent, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Ref } from 'vue';
|
|
6
|
-
import { Engine } from '@byteluck-fe/model-driven-engine';
|
|
7
|
-
import { BasicColumn } from '../../../../../entry_desktop/controls/components/base-table/types';
|
|
8
|
-
declare const ImportModal: DefineComponent<{
|
|
9
|
-
instance: PropType<__DTS_1__>;
|
|
10
|
-
onUpdateList: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
11
|
-
default: (...args: any[]) => any;
|
|
12
|
-
};
|
|
13
|
-
onClose: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
14
|
-
default: (...args: any[]) => any;
|
|
15
|
-
};
|
|
16
|
-
}, {
|
|
17
|
-
activeTabKey: Ref<string>;
|
|
18
|
-
asyncTask: Ref<number>;
|
|
19
|
-
current: Ref<number>;
|
|
20
|
-
getLoading: ComputedRef<any>;
|
|
21
|
-
importLoading: Ref<boolean>;
|
|
22
|
-
setLoading: (loading: boolean) => void;
|
|
23
|
-
engineContext: Ref<Engine> | undefined;
|
|
24
|
-
externalParams: any;
|
|
25
|
-
importDataObj: Ref<Recordable<any>>;
|
|
26
|
-
importVisible: Ref<boolean>;
|
|
27
|
-
modelOptions: Ref<OptionsType[]>;
|
|
28
|
-
modelOptionsComp: ComputedRef<{
|
|
29
|
-
options: ({
|
|
30
|
-
disabled: boolean;
|
|
31
|
-
} | {
|
|
32
|
-
label: string;
|
|
33
|
-
value: string;
|
|
34
|
-
})[];
|
|
35
|
-
dropdownClassName: string;
|
|
36
|
-
transitionName: string;
|
|
37
|
-
}>;
|
|
38
|
-
modelImportComp: ComputedRef<string[]>;
|
|
39
|
-
matchedModel: Ref<Recordable<string | number>>;
|
|
40
|
-
matchedModelData: Ref<Recordable<any>[]>;
|
|
41
|
-
matchedField: Ref<Recordable<string | number>>;
|
|
42
|
-
matchFieldColumns: Ref<BasicColumn[]>;
|
|
43
|
-
matchedFieldData: Ref<Recordable<any>[]>;
|
|
44
|
-
updateFieldOptions: ComputedRef<OptionsType[]>;
|
|
45
|
-
fieldOptionsComp: ComputedRef<{
|
|
46
|
-
options: ({
|
|
47
|
-
disabled: boolean;
|
|
48
|
-
} | {
|
|
49
|
-
label: string;
|
|
50
|
-
value: string;
|
|
51
|
-
})[];
|
|
52
|
-
dropdownClassName: string;
|
|
53
|
-
transitionName: string;
|
|
54
|
-
} | null>;
|
|
55
|
-
importResult: Ref<Recordable<any>>;
|
|
56
|
-
validating: Ref<boolean>;
|
|
57
|
-
validateResult: Ref<Recordable<any>>;
|
|
58
|
-
fetchDataRelationList: () => Promise<void>;
|
|
59
|
-
handleDealField: (key?: string | number) => Promise<any>;
|
|
60
|
-
handleBasedChange: (value: any) => void;
|
|
61
|
-
handleFileChange: (resData: Recordable) => void;
|
|
62
|
-
handleModelMatch: (data: Recordable) => void;
|
|
63
|
-
handleFieldMatch: (data: Recordable) => void;
|
|
64
|
-
handlePrev: () => void;
|
|
65
|
-
handleNext: DebouncedFunc<() => Promise<void>>;
|
|
66
|
-
handleFieldGather: () => void;
|
|
67
|
-
handleValidateBased: () => boolean;
|
|
68
|
-
}, unknown, {}, {
|
|
69
|
-
handleCancel(): void;
|
|
70
|
-
handleComplete(): void;
|
|
71
|
-
handleTabChange(activeKey: string): void;
|
|
72
|
-
handleDownloadTemplate(): Promise<void>;
|
|
73
|
-
handleDownloadResult(resFile: Recordable): void;
|
|
74
|
-
renderTabs(): JSX.Element[];
|
|
75
|
-
}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
76
|
-
instance: PropType<__DTS_1__>;
|
|
77
|
-
onUpdateList: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
78
|
-
default: (...args: any[]) => any;
|
|
79
|
-
};
|
|
80
|
-
onClose: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
81
|
-
default: (...args: any[]) => any;
|
|
82
|
-
};
|
|
83
|
-
}>>, {
|
|
84
|
-
onClose: (...args: any[]) => any;
|
|
85
|
-
onUpdateList: (...args: any[]) => any;
|
|
86
|
-
}, {}>;
|
|
87
|
-
export default ImportModal;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as __DTS_2__ } from '@byteluck-fe/model-driven-core/dist/types/common/ColumnControl/runtime';
|
|
2
|
-
import { default as __DTS_1__ } from '@byteluck-fe/model-driven-controls/dist/types/listControls/GridTable/property';
|
|
3
|
-
import { ComputedRef, Ref } from 'vue';
|
|
4
|
-
import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
5
|
-
import { ColFlagType } from './data';
|
|
6
|
-
export declare function useInstance(instance: ControlRuntimeInstance<'grid-table'>, colFlag: ColFlagType, viewData: any, isShowCustomColumns: Ref<boolean>): {
|
|
7
|
-
instanceProps: Ref<__DTS_1__<"Runtime", __DTS_2__>>;
|
|
8
|
-
filterInstance: ComputedRef<__DTS_2__[]>;
|
|
9
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as __DTS_5__ } from '@byteluck-fe/model-driven-core/dist/types/common/SearchViewControl/runtime';
|
|
2
|
-
import { default as __DTS_4__ } from '@byteluck-fe/model-driven-core/dist/types/common/BaseControl/runtime';
|
|
3
|
-
import { default as __DTS_3__ } from '@byteluck-fe/model-driven-core/dist/types/common/ListControl/runtime';
|
|
4
|
-
import { default as __DTS_2__ } from '@byteluck-fe/model-driven-controls/dist/types/formControls/Tree/runtime';
|
|
5
|
-
import { default as __DTS_1__ } from '@byteluck-fe/model-driven-controls/dist/types/baseControls/ListViewSelect/runtime';
|
|
6
|
-
import { Engine } from '@byteluck-fe/model-driven-engine';
|
|
7
|
-
import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
8
|
-
import { ComputedRef, Ref } from 'vue';
|
|
9
|
-
export declare function useShrinkMode(instance: ControlRuntimeInstance<'list-view'>, context?: Ref<Engine>): {
|
|
10
|
-
shrinkListControl: ComputedRef<__DTS_1__ | __DTS_2__ | __DTS_3__<__DTS_4__> | __DTS_5__<__DTS_4__> | undefined>;
|
|
11
|
-
shrinkSearchControl: ComputedRef<__DTS_1__ | __DTS_2__ | __DTS_3__<__DTS_4__> | __DTS_5__<__DTS_4__> | undefined>;
|
|
12
|
-
shrinkTitle: any;
|
|
13
|
-
clickFullScreen: () => void;
|
|
14
|
-
showFullScreen: ComputedRef<boolean>;
|
|
15
|
-
shrinkHasSearchItem: ComputedRef<boolean>;
|
|
16
|
-
};
|
package/dist/src/entry_desktop/controls/rok-subtable/components/import-modal/import-modal.d.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { OptionsType } from '../../../../../types/controls/table-import';
|
|
2
|
-
import { VueTypeValidableDef } from 'vue-types';
|
|
3
|
-
import { default as __DTS_1__ } from '@byteluck-fe/model-driven-controls/dist/types/listControls/SubTable/runtime';
|
|
4
|
-
import { DefineComponent, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, Ref, PropType } from 'vue';
|
|
5
|
-
import { Engine } from '@byteluck-fe/model-driven-engine';
|
|
6
|
-
import { BasicColumn } from '../../../../../entry_desktop/controls/components/base-table/types';
|
|
7
|
-
declare const ImportModal: DefineComponent<{
|
|
8
|
-
instance: {
|
|
9
|
-
type: PropType<__DTS_1__>;
|
|
10
|
-
required: true;
|
|
11
|
-
};
|
|
12
|
-
onClose: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
13
|
-
default: (...args: any[]) => any;
|
|
14
|
-
};
|
|
15
|
-
onDealData: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
16
|
-
default: (...args: any[]) => any;
|
|
17
|
-
};
|
|
18
|
-
}, {
|
|
19
|
-
current: Ref<number>;
|
|
20
|
-
asyncTask: Ref<number>;
|
|
21
|
-
getLoading: ComputedRef<any>;
|
|
22
|
-
setLoading: (loading: boolean) => void;
|
|
23
|
-
validating: Ref<boolean>;
|
|
24
|
-
activeTabKey: Ref<string>;
|
|
25
|
-
dataCodeComp: ComputedRef<string>;
|
|
26
|
-
fieldOptions: Ref<OptionsType[]>;
|
|
27
|
-
importResult: Ref<{
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
uid: string;
|
|
30
|
-
}[]>;
|
|
31
|
-
importResultNum: Ref<number>;
|
|
32
|
-
matchedField: Ref<Recordable<string | number>>;
|
|
33
|
-
importLoading: Ref<boolean>;
|
|
34
|
-
importDataObj: Ref<Recordable<any>>;
|
|
35
|
-
importVisible: Ref<boolean>;
|
|
36
|
-
engineContext: Ref<Engine> | undefined;
|
|
37
|
-
externalParams: any;
|
|
38
|
-
validateResult: Ref<Recordable<any>>;
|
|
39
|
-
fieldOptionsComp: ComputedRef<{
|
|
40
|
-
options: ({
|
|
41
|
-
disabled: boolean;
|
|
42
|
-
label: string;
|
|
43
|
-
value: string | number;
|
|
44
|
-
hide?: boolean | undefined;
|
|
45
|
-
} | {
|
|
46
|
-
label: string;
|
|
47
|
-
value: string;
|
|
48
|
-
})[];
|
|
49
|
-
dropdownClassName: string;
|
|
50
|
-
transitionName: string;
|
|
51
|
-
} | null>;
|
|
52
|
-
matchedFieldData: Ref<Recordable<any>[]>;
|
|
53
|
-
matchFieldColumns: Ref<BasicColumn[]>;
|
|
54
|
-
handlePrev: () => void;
|
|
55
|
-
handleFileChange: (resData: Recordable) => Promise<void>;
|
|
56
|
-
handleFieldMatch: (data: Recordable) => void;
|
|
57
|
-
handleFieldGather: () => void;
|
|
58
|
-
}, unknown, {}, {
|
|
59
|
-
handleCancel(): void;
|
|
60
|
-
handleComplete(): void;
|
|
61
|
-
handleDownloadTemplate(): Promise<void>;
|
|
62
|
-
handleDownloadResult(resFile: Recordable): void;
|
|
63
|
-
renderTable(): JSX.Element;
|
|
64
|
-
}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
65
|
-
instance: {
|
|
66
|
-
type: PropType<__DTS_1__>;
|
|
67
|
-
required: true;
|
|
68
|
-
};
|
|
69
|
-
onClose: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
70
|
-
default: (...args: any[]) => any;
|
|
71
|
-
};
|
|
72
|
-
onDealData: VueTypeValidableDef<(...args: any[]) => any> & {
|
|
73
|
-
default: (...args: any[]) => any;
|
|
74
|
-
};
|
|
75
|
-
}>>, {
|
|
76
|
-
onClose: (...args: any[]) => any;
|
|
77
|
-
onDealData: (...args: any[]) => any;
|
|
78
|
-
}, {}>;
|
|
79
|
-
export default ImportModal;
|