@fly-vue/lcdp-iview 1.7.5 → 1.7.6
Sign up to get free protection for your applications and to get access to all the features.
- package/@types/module/action-nodes/impl/http.d.ts +4 -0
- package/@types/module/action-nodes/service-type-transport.d.ts +6 -1
- package/@types/module/components/attribute/designer/prop-value-editor/var-input/index.vue.d.ts +3 -3
- package/@types/module/components/components/iam/lib/query-methods-builder.d.ts +5 -2
- package/@types/module/components/components/iam/mixins/build-query-methods.d.ts +0 -19
- package/@types/module/components/for-designer/event-container/channel.vue.d.ts +30 -0
- package/@types/module/components/for-designer/index.d.ts +3 -0
- package/@types/module/components/for-renderer/data-exporter/csv.d.ts +1 -0
- package/@types/module/components/for-renderer/data-exporter/export-csv.d.ts +1 -0
- package/@types/module/components/for-renderer/data-exporter/index.vue.d.ts +62 -0
- package/@types/module/components/for-renderer/data-exporter/types.d.ts +9 -0
- package/@types/module/components/for-renderer/event-container/channel.vue.d.ts +41 -0
- package/@types/module/components/for-renderer/event-container/context.d.ts +48 -0
- package/@types/module/components/for-renderer/event-container/form-context.d.ts +9 -0
- package/@types/module/components/for-renderer/event-container/form-dispatcher.vue.d.ts +24 -0
- package/@types/module/components/for-renderer/event-container/form-receiver.vue.d.ts +51 -0
- package/@types/module/components/for-renderer/event-container/index.d.ts +3 -0
- package/@types/module/components/for-renderer/event-container/use-channel.d.ts +4 -0
- package/@types/module/components/for-renderer/event-container/use-form.d.ts +10 -0
- package/@types/module/components/for-renderer/excel-importer/failed-list.vue.d.ts +33 -0
- package/@types/module/components/for-renderer/excel-importer/index.vue.d.ts +166 -0
- package/@types/module/components/for-renderer/excel-importer/successful-list.vue.d.ts +22 -0
- package/@types/module/components/for-renderer/excel-importer/test-data.d.ts +15 -0
- package/@types/module/components/for-renderer/excel-importer/to-import-list.vue.d.ts +29 -0
- package/@types/module/components/for-renderer/excel-importer/types.d.ts +17 -0
- package/@types/module/components/for-renderer/excel-importer/use-check-all.d.ts +4 -0
- package/@types/module/components/for-renderer/excel-importer/use-pager.d.ts +6 -0
- package/@types/module/components/for-renderer/excel-importer/use-records-handler.d.ts +34 -0
- package/@types/module/components/for-renderer/excel-importer/use-urls.d.ts +5 -0
- package/@types/module/components/for-renderer/index.d.ts +5 -0
- package/@types/module/components/for-renderer/inline-renderer/index.vue.d.ts +13 -5
- package/@types/module/components/index.d.ts +118 -69
- package/@types/module/components/utils.d.ts +8 -0
- package/@types/module/index.d.ts +1 -0
- package/@types/module/schema-extend/components/excel-importer.d.ts +16 -0
- package/@types/module/schema-extend/components/form.d.ts +7 -7
- package/@types/module/schema-extend/components/iv-table.d.ts +5 -0
- package/@types/module/schema-extend/components/layout.d.ts +1 -7
- package/@types/module/schema-extend/components/lcdp-event-receiver.d.ts +17 -0
- package/@types/module/schema-extend/components/others.d.ts +7 -0
- package/@types/module/schema-extend/components/tinymce.d.ts +27 -0
- package/@types/module/schema-extend/components/tree.d.ts +3 -0
- package/@types/module/schema-extend/components/upload.d.ts +5 -0
- package/bingo-builder-manifest.json +15 -13
- package/index.js +4 -4
- package/modules/fly_vue_lcdp_iview/assets/css/app.css +2 -2
- package/modules/fly_vue_lcdp_iview/assets/css/lcdp-iview-attrcomponent.c8863f62.css +1 -0
- package/modules/fly_vue_lcdp_iview/assets/css/lcdp-iview-component-ice.a6489154.css +1 -0
- package/modules/fly_vue_lcdp_iview/assets/css/lcdp-iview-component.cb2d58ef.css +1 -0
- package/modules/fly_vue_lcdp_iview/assets/css/vendors~lcdp-iview-component-ice.e98f8f0c.css +1 -0
- package/modules/fly_vue_lcdp_iview/chunk-732b533d.084b452e18e2a435fae5.js +1 -0
- package/modules/fly_vue_lcdp_iview/dll.js +10 -10
- package/modules/fly_vue_lcdp_iview/lcdp-designer-components.084b452e18e2a435fae5.js +1 -0
- package/modules/fly_vue_lcdp_iview/lcdp-iview-attrcomponent.084b452e18e2a435fae5.js +1 -0
- package/modules/fly_vue_lcdp_iview/lcdp-iview-basecomponent.084b452e18e2a435fae5.js +1 -0
- package/modules/fly_vue_lcdp_iview/lcdp-iview-component-ice.084b452e18e2a435fae5.js +1 -0
- package/modules/fly_vue_lcdp_iview/{lcdp-iview-component.e6ed3307f2094e1adbff.js → lcdp-iview-component-region.084b452e18e2a435fae5.js} +2 -2
- package/modules/fly_vue_lcdp_iview/lcdp-iview-component.084b452e18e2a435fae5.js +1 -0
- package/modules/fly_vue_lcdp_iview/lcdp-renderer-components.084b452e18e2a435fae5.js +1 -0
- package/modules/fly_vue_lcdp_iview/vendors~lcdp-iview-component-ice.084b452e18e2a435fae5.js +1 -0
- package/package.json +16 -15
- package/modules/fly_vue_lcdp_iview/assets/css/lcdp-iview-attrcomponent.5b64e92e.css +0 -1
- package/modules/fly_vue_lcdp_iview/assets/css/lcdp-iview-component.28c2f15b.css +0 -1
- package/modules/fly_vue_lcdp_iview/chunk-732b533d.e6ed3307f2094e1adbff.js +0 -1
- package/modules/fly_vue_lcdp_iview/lcdp-designer-components.e6ed3307f2094e1adbff.js +0 -1
- package/modules/fly_vue_lcdp_iview/lcdp-iview-attrcomponent.e6ed3307f2094e1adbff.js +0 -1
- package/modules/fly_vue_lcdp_iview/lcdp-iview-basecomponent.e6ed3307f2094e1adbff.js +0 -1
- package/modules/fly_vue_lcdp_iview/lcdp-renderer-components.e6ed3307f2094e1adbff.js +0 -1
@@ -2,6 +2,11 @@ import { AxiosRequestConfig } from 'axios';
|
|
2
2
|
export declare type ServiceTypeTransport = (config: AxiosRequestConfig) => {
|
3
3
|
data: any;
|
4
4
|
error: boolean;
|
5
|
-
|
5
|
+
headers?: any;
|
6
|
+
} | Promise<{
|
7
|
+
data: any;
|
8
|
+
error: boolean;
|
9
|
+
headers?: any;
|
10
|
+
}>;
|
6
11
|
export declare function registerServiceTypeTransport(serviceType: string, transport: ServiceTypeTransport): void;
|
7
12
|
export declare function getServiceTypeTransport(serviceType: string): ServiceTypeTransport;
|
package/@types/module/components/attribute/designer/prop-value-editor/var-input/index.vue.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { PropType } from 'vue';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
3
|
value: {
|
4
|
-
type: StringConstructor;
|
4
|
+
type: (BooleanConstructor | NumberConstructor | StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
5
5
|
};
|
6
6
|
showBindInput: {
|
7
7
|
type: BooleanConstructor;
|
@@ -28,12 +28,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
28
28
|
};
|
29
29
|
}, {
|
30
30
|
slots: import("vue/types/v3-setup-context").Slots;
|
31
|
-
innerValue: import("vue").Ref<string>;
|
31
|
+
innerValue: import("vue").Ref<string | number | boolean | Record<string, any> | unknown[]>;
|
32
32
|
showVarBindModal: () => void;
|
33
33
|
isValueExpr(value: any): any;
|
34
34
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
35
35
|
value: {
|
36
|
-
type: StringConstructor;
|
36
|
+
type: (BooleanConstructor | NumberConstructor | StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
37
37
|
};
|
38
38
|
showBindInput: {
|
39
39
|
type: BooleanConstructor;
|
@@ -1,7 +1,10 @@
|
|
1
1
|
declare function build(userApiUrl: any, orgApiUrl: any, userSelectOptions?: any, orgSelectOptions?: any, globalQueryOptions?: any, globalConfig?: any): {
|
2
2
|
queryExternalOrg: () => any;
|
3
3
|
queryRootOrg: () => any;
|
4
|
-
queryRootOrgByUrl: (url: any) =>
|
4
|
+
queryRootOrgByUrl: (url: any) => Promise<{
|
5
|
+
data: any;
|
6
|
+
hasMoreData: boolean;
|
7
|
+
}>;
|
5
8
|
queryOrgByParent: (parentId: any) => any;
|
6
9
|
queryOrgByKeyword: (keyword: any, orgIds: any) => Promise<unknown>;
|
7
10
|
queryOrgByIds: (orgIds: any) => any;
|
@@ -11,7 +14,7 @@ declare function build(userApiUrl: any, orgApiUrl: any, userSelectOptions?: any,
|
|
11
14
|
}>;
|
12
15
|
queryUserByKeyword: (keyword: any, userIds: any) => Promise<unknown>;
|
13
16
|
queryUserByIds: (userIds: any) => any;
|
14
|
-
pageQueryUserByOrg: (
|
17
|
+
pageQueryUserByOrg: (orgId: any, userIds: any, params: any) => Promise<unknown>;
|
15
18
|
pageQueryUserByKeyword: (queryKeyword: any, userIds: any, pageParams: any) => Promise<unknown>;
|
16
19
|
getOrgIdField: () => any;
|
17
20
|
getOrgParentField: () => any;
|
@@ -27,25 +27,6 @@ declare const _default: {
|
|
27
27
|
getOrgParentField: () => any;
|
28
28
|
userOptions: any;
|
29
29
|
orgOptions: any;
|
30
|
-
} | {
|
31
|
-
queryExternalOrg: () => any;
|
32
|
-
queryRootOrg: () => any;
|
33
|
-
queryRootOrgByUrl: (url: any) => any;
|
34
|
-
queryOrgByParent: (parentId: any) => any;
|
35
|
-
queryOrgByKeyword: (keyword: any, orgIds: any) => Promise<unknown>;
|
36
|
-
queryOrgByIds: (orgIds: any) => any;
|
37
|
-
queryOrgTotal: () => Promise<{
|
38
|
-
activeCount: number;
|
39
|
-
delCount: number;
|
40
|
-
}>;
|
41
|
-
queryUserByKeyword: (keyword: any, userIds: any) => Promise<unknown>;
|
42
|
-
queryUserByIds: (userIds: any) => any;
|
43
|
-
pageQueryUserByOrg: (orgIds: any, userIds: any, pageParams: any, filters?: string) => Promise<unknown>;
|
44
|
-
pageQueryUserByKeyword: (queryKeyword: any, userIds: any, pageParams: any) => Promise<unknown>;
|
45
|
-
getOrgIdField: () => any;
|
46
|
-
getOrgParentField: () => any;
|
47
|
-
userOptions: any;
|
48
|
-
orgOptions: any;
|
49
30
|
};
|
50
31
|
validateProps(queryMethods: any): void;
|
51
32
|
};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
channelId: {
|
3
|
+
default: any;
|
4
|
+
};
|
5
|
+
message: {
|
6
|
+
default: any;
|
7
|
+
};
|
8
|
+
autoSend: {
|
9
|
+
type: BooleanConstructor;
|
10
|
+
default: boolean;
|
11
|
+
};
|
12
|
+
}, {
|
13
|
+
__sfc: boolean;
|
14
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
15
|
+
channelId: {
|
16
|
+
default: any;
|
17
|
+
};
|
18
|
+
message: {
|
19
|
+
default: any;
|
20
|
+
};
|
21
|
+
autoSend: {
|
22
|
+
type: BooleanConstructor;
|
23
|
+
default: boolean;
|
24
|
+
};
|
25
|
+
}>>, {
|
26
|
+
channelId: any;
|
27
|
+
message: any;
|
28
|
+
autoSend: boolean;
|
29
|
+
}>;
|
30
|
+
export default _default;
|
@@ -1,5 +1,8 @@
|
|
1
|
+
/// <reference types="vue-shims" />
|
1
2
|
declare const _default: {
|
2
3
|
DesignSlotContainer: () => Promise<typeof import("./SlotContainer.vue")>;
|
3
4
|
DesignLcdpInlineRenderer: () => Promise<typeof import("./LcdpInlineRenderer.vue")>;
|
5
|
+
DesignLcdpChannel: () => Promise<typeof import("./event-container/channel.vue")>;
|
6
|
+
DesignCommonContainer: () => Promise<typeof import("*.vue")>;
|
4
7
|
};
|
5
8
|
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function csv(columns: any, datas: any, options: any, noHeader?: boolean): string;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const exportCsv: (filename: any, text: any) => void;
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { LcdpDataSource } from '@fly-vue/lcdp-engine';
|
2
|
+
import { ExportCandidateFields } from './types';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
dataSource: any;
|
5
|
+
candidateFields: {
|
6
|
+
default: () => {
|
7
|
+
type: string;
|
8
|
+
value: any[];
|
9
|
+
};
|
10
|
+
};
|
11
|
+
pageSize: {
|
12
|
+
default: number;
|
13
|
+
};
|
14
|
+
maxExportRecords: {
|
15
|
+
default: number;
|
16
|
+
};
|
17
|
+
exportFileName: {
|
18
|
+
default: string;
|
19
|
+
};
|
20
|
+
}, {
|
21
|
+
__sfc: boolean;
|
22
|
+
props: {
|
23
|
+
dataSource?: LcdpDataSource;
|
24
|
+
candidateFields: ExportCandidateFields;
|
25
|
+
pageSize: number;
|
26
|
+
maxExportRecords: number;
|
27
|
+
exportFileName: string;
|
28
|
+
};
|
29
|
+
checkAll: import("vue").Ref<boolean>;
|
30
|
+
checkedFields: import("vue").Ref<string[]>;
|
31
|
+
checkAllChange: (checked: any) => void;
|
32
|
+
checkFieldChange: (data: any) => void;
|
33
|
+
$evalSingleByRenderContext: any;
|
34
|
+
doExport: () => Promise<void>;
|
35
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
36
|
+
dataSource: any;
|
37
|
+
candidateFields: {
|
38
|
+
default: () => {
|
39
|
+
type: string;
|
40
|
+
value: any[];
|
41
|
+
};
|
42
|
+
};
|
43
|
+
pageSize: {
|
44
|
+
default: number;
|
45
|
+
};
|
46
|
+
maxExportRecords: {
|
47
|
+
default: number;
|
48
|
+
};
|
49
|
+
exportFileName: {
|
50
|
+
default: string;
|
51
|
+
};
|
52
|
+
}>>, {
|
53
|
+
dataSource: any;
|
54
|
+
pageSize: number;
|
55
|
+
candidateFields: {
|
56
|
+
type: string;
|
57
|
+
value: any[];
|
58
|
+
};
|
59
|
+
maxExportRecords: number;
|
60
|
+
exportFileName: string;
|
61
|
+
}>;
|
62
|
+
export default _default;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
channelId: {
|
3
|
+
default: any;
|
4
|
+
};
|
5
|
+
message: {
|
6
|
+
default: any;
|
7
|
+
};
|
8
|
+
autoSend: {
|
9
|
+
type: BooleanConstructor;
|
10
|
+
default: boolean;
|
11
|
+
};
|
12
|
+
}, {
|
13
|
+
__sfc: boolean;
|
14
|
+
props: {
|
15
|
+
channelId: string;
|
16
|
+
message: any;
|
17
|
+
autoSend: boolean;
|
18
|
+
};
|
19
|
+
emit: (event: 'on-message', params: {
|
20
|
+
message: any;
|
21
|
+
}) => void;
|
22
|
+
eventContainerContext: import("./context").EventContainerContext;
|
23
|
+
$selfIdentifier: string;
|
24
|
+
onMessage: (ctx: any, params: any) => void;
|
25
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "on-message"[], string, Readonly<import("vue").ExtractPropTypes<{
|
26
|
+
channelId: {
|
27
|
+
default: any;
|
28
|
+
};
|
29
|
+
message: {
|
30
|
+
default: any;
|
31
|
+
};
|
32
|
+
autoSend: {
|
33
|
+
type: BooleanConstructor;
|
34
|
+
default: boolean;
|
35
|
+
};
|
36
|
+
}>>, {
|
37
|
+
channelId: any;
|
38
|
+
message: any;
|
39
|
+
autoSend: boolean;
|
40
|
+
}>;
|
41
|
+
export default _default;
|
@@ -0,0 +1,48 @@
|
|
1
|
+
export declare type EventMap = {
|
2
|
+
[eventName: string]: ((ctx: any, params?: any) => any)[];
|
3
|
+
};
|
4
|
+
/**
|
5
|
+
* 事件容器组件上下文
|
6
|
+
*/
|
7
|
+
export declare class EventContainerContext {
|
8
|
+
data: {};
|
9
|
+
bizData: {};
|
10
|
+
private _customEvent;
|
11
|
+
constructor({ data }: {
|
12
|
+
data: any;
|
13
|
+
});
|
14
|
+
/**
|
15
|
+
* 自定义操作事件注册
|
16
|
+
* @param {String} name - 事件名称
|
17
|
+
* @param {Function} cb - 函数
|
18
|
+
* @return {*}
|
19
|
+
*/
|
20
|
+
on: (name: any, cb: any) => void;
|
21
|
+
/**
|
22
|
+
* 移除已注册的操作事件回调
|
23
|
+
* @param {String} name - 事件名称
|
24
|
+
* @param {Function} cb - 函数
|
25
|
+
* @return {*}
|
26
|
+
*/
|
27
|
+
off: (name: any, cb: any) => void;
|
28
|
+
/** 自定义事件派发:执行所有已注册的自定义事件
|
29
|
+
* @param {String} name - 事件名称
|
30
|
+
* @param {String} params - 事件参数
|
31
|
+
* @return {Boolean}
|
32
|
+
*/
|
33
|
+
emit: (name: any, params?: any) => Promise<any>;
|
34
|
+
/**
|
35
|
+
* 更新响应式全局数据
|
36
|
+
* @param _data - 待更新的数据
|
37
|
+
*/
|
38
|
+
setData(_data: any): void;
|
39
|
+
/**
|
40
|
+
* 更新非响应式全局业务数据
|
41
|
+
* @param _data - 待更新的数据
|
42
|
+
*/
|
43
|
+
setBizData(key: any, _data: any): void;
|
44
|
+
/**
|
45
|
+
* 获取指定key的更新非响应式全局业务数据
|
46
|
+
*/
|
47
|
+
getBizData(key: any): any;
|
48
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { FormEventContainerContext } from './form-context';
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
data: any;
|
4
|
+
init: any;
|
5
|
+
}, {
|
6
|
+
__sfc: boolean;
|
7
|
+
props: {
|
8
|
+
data?: any;
|
9
|
+
init?: ($args: {
|
10
|
+
eventContainerContext: FormEventContainerContext;
|
11
|
+
}) => any;
|
12
|
+
};
|
13
|
+
emit: (event: 'on-form-data-change', params: {
|
14
|
+
formData: any;
|
15
|
+
}) => void;
|
16
|
+
eventContainerContext: FormEventContainerContext;
|
17
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "on-form-data-change"[], string, Readonly<import("vue").ExtractPropTypes<{
|
18
|
+
data: any;
|
19
|
+
init: any;
|
20
|
+
}>>, {
|
21
|
+
data: any;
|
22
|
+
init: any;
|
23
|
+
}>;
|
24
|
+
export default _default;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { FormEventContainerContext } from './form-context';
|
2
|
+
import { LcdpRenderContext } from '@fly-vue/lcdp-engine';
|
3
|
+
declare type ReceiverEvents = {
|
4
|
+
name: string;
|
5
|
+
handler: ($args: any) => any;
|
6
|
+
}[];
|
7
|
+
declare const _default: import("vue").DefineComponent<{
|
8
|
+
formDataKey: any;
|
9
|
+
beforeInit: any;
|
10
|
+
init: any;
|
11
|
+
beforeSubmit: any;
|
12
|
+
afterSubmit: any;
|
13
|
+
events: any;
|
14
|
+
}, {
|
15
|
+
__sfc: boolean;
|
16
|
+
props: {
|
17
|
+
formDataKey?: string;
|
18
|
+
beforeInit?: ($args: {
|
19
|
+
eventContainerContext: FormEventContainerContext;
|
20
|
+
}) => any;
|
21
|
+
init?: ($args: {
|
22
|
+
eventContainerContext: FormEventContainerContext;
|
23
|
+
}) => any;
|
24
|
+
beforeSubmit?: ($args: {
|
25
|
+
eventContainerContext: FormEventContainerContext;
|
26
|
+
params?: any;
|
27
|
+
}) => any;
|
28
|
+
afterSubmit?: ($args: {
|
29
|
+
eventContainerContext: FormEventContainerContext;
|
30
|
+
params?: any;
|
31
|
+
}) => any;
|
32
|
+
events: ReceiverEvents;
|
33
|
+
};
|
34
|
+
eventContainerContext: FormEventContainerContext;
|
35
|
+
renderContext: LcdpRenderContext;
|
36
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
37
|
+
formDataKey: any;
|
38
|
+
beforeInit: any;
|
39
|
+
init: any;
|
40
|
+
beforeSubmit: any;
|
41
|
+
afterSubmit: any;
|
42
|
+
events: any;
|
43
|
+
}>>, {
|
44
|
+
init: any;
|
45
|
+
beforeInit: any;
|
46
|
+
beforeSubmit: any;
|
47
|
+
afterSubmit: any;
|
48
|
+
formDataKey: any;
|
49
|
+
events: any;
|
50
|
+
}>;
|
51
|
+
export default _default;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { LcdpRenderContext } from '@fly-vue/lcdp-engine';
|
2
|
+
import { FormEventContainerContext } from './form-context';
|
3
|
+
export declare function useForm(renderContext: LcdpRenderContext, formDataKey: string, ctx: FormEventContainerContext): {
|
4
|
+
initForm: ({ beforeInit, afterInit }: {
|
5
|
+
beforeInit: any;
|
6
|
+
afterInit: any;
|
7
|
+
}) => Promise<void>;
|
8
|
+
validateForm: () => Promise<boolean>;
|
9
|
+
watchFormData: () => void;
|
10
|
+
};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { ColumnsMapping, ImportRecords } from './types';
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
mappings: any;
|
4
|
+
records: any;
|
5
|
+
}, {
|
6
|
+
__sfc: boolean;
|
7
|
+
props: {
|
8
|
+
mappings: ColumnsMapping;
|
9
|
+
records: ImportRecords;
|
10
|
+
};
|
11
|
+
emit: (event: 'change-item-field', params: {
|
12
|
+
uid: string;
|
13
|
+
fieldName: string;
|
14
|
+
fieldValue: any;
|
15
|
+
}) => void;
|
16
|
+
page: import("vue").Ref<number>;
|
17
|
+
pageSize: import("vue").Ref<number>;
|
18
|
+
pagedRecords: import("vue").ComputedRef<any[]>;
|
19
|
+
onPageSizeChanged: (_pageSize: any) => void;
|
20
|
+
currentPageAllSelected: import("vue").Ref<boolean>;
|
21
|
+
toggleSelectedAll: (isChecked: any) => void;
|
22
|
+
editCell: (index: any, m: any) => void;
|
23
|
+
onEdit: (val: any, index: any) => void;
|
24
|
+
confirmEdit: (index: any, fieldName: any, fieldValue: any) => void;
|
25
|
+
cancelEdit: (index: any) => void;
|
26
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "change-item-field"[], string, Readonly<import("vue").ExtractPropTypes<{
|
27
|
+
mappings: any;
|
28
|
+
records: any;
|
29
|
+
}>>, {
|
30
|
+
mappings: any;
|
31
|
+
records: any;
|
32
|
+
}>;
|
33
|
+
export default _default;
|
@@ -0,0 +1,166 @@
|
|
1
|
+
import { ColumnsMapping, ImportRecords } from './types';
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
entityName: any;
|
4
|
+
excelTemplateUrl: any;
|
5
|
+
autoImportMaxRecords: {
|
6
|
+
default: number;
|
7
|
+
};
|
8
|
+
maxFileSize: {
|
9
|
+
default: number;
|
10
|
+
};
|
11
|
+
importUrl: any;
|
12
|
+
}, {
|
13
|
+
__sfc: boolean;
|
14
|
+
props: {
|
15
|
+
entityName: string;
|
16
|
+
excelTemplateUrl: string;
|
17
|
+
autoImportMaxRecords: number;
|
18
|
+
maxFileSize: number;
|
19
|
+
importUrl?: string;
|
20
|
+
};
|
21
|
+
parseExcelUrl: string;
|
22
|
+
defaultImportUrl: string;
|
23
|
+
headers: {};
|
24
|
+
importUrl: string;
|
25
|
+
mappings: import("vue").Ref<{
|
26
|
+
columnIndex: number;
|
27
|
+
columnHeaderText: string;
|
28
|
+
fieldName: string;
|
29
|
+
fieldDisplayName: string;
|
30
|
+
}[]>;
|
31
|
+
toImportListRecords: import("vue").Ref<{
|
32
|
+
[x: string]: any;
|
33
|
+
_uid_: string;
|
34
|
+
_selected_?: boolean;
|
35
|
+
_importResult_?: string;
|
36
|
+
_importError_?: string;
|
37
|
+
_editing_?: string;
|
38
|
+
_editingValue_?: string;
|
39
|
+
}[]>;
|
40
|
+
successfulListRecords: import("vue").Ref<{
|
41
|
+
[x: string]: any;
|
42
|
+
_uid_: string;
|
43
|
+
_selected_?: boolean;
|
44
|
+
_importResult_?: string;
|
45
|
+
_importError_?: string;
|
46
|
+
_editing_?: string;
|
47
|
+
_editingValue_?: string;
|
48
|
+
}[]>;
|
49
|
+
failedListRecords: import("vue").Ref<{
|
50
|
+
[x: string]: any;
|
51
|
+
_uid_: string;
|
52
|
+
_selected_?: boolean;
|
53
|
+
_importResult_?: string;
|
54
|
+
_importError_?: string;
|
55
|
+
_editing_?: string;
|
56
|
+
_editingValue_?: string;
|
57
|
+
}[]>;
|
58
|
+
fileName: any;
|
59
|
+
handleOnSuccess: (response: any, file: any) => void;
|
60
|
+
afterImported: (currentRecords: any, res: any) => void;
|
61
|
+
importing: import("vue").Ref<boolean>;
|
62
|
+
importingPercent: import("vue").Ref<number>;
|
63
|
+
showImportingPercent: import("vue").Ref<boolean>;
|
64
|
+
importData: () => void;
|
65
|
+
whichTable: import("vue").Ref<string>;
|
66
|
+
correcting: boolean;
|
67
|
+
correctData: () => void;
|
68
|
+
changeToImportListItemField: (e: any) => void;
|
69
|
+
changeFailedListItemField: (e: any) => void;
|
70
|
+
handleMaxSize: () => void;
|
71
|
+
ToImportList: import("vue").DefineComponent<{
|
72
|
+
mappings: any;
|
73
|
+
records: any;
|
74
|
+
}, {
|
75
|
+
__sfc: boolean;
|
76
|
+
props: {
|
77
|
+
mappings: ColumnsMapping;
|
78
|
+
records: ImportRecords;
|
79
|
+
};
|
80
|
+
emit: (event: "change-item-field", params: {
|
81
|
+
uid: string;
|
82
|
+
fieldName: string;
|
83
|
+
fieldValue: any;
|
84
|
+
}) => void;
|
85
|
+
page: import("vue").Ref<number>;
|
86
|
+
pageSize: import("vue").Ref<number>;
|
87
|
+
pagedRecords: import("vue").ComputedRef<any[]>;
|
88
|
+
onPageSizeChanged: (_pageSize: any) => void;
|
89
|
+
currentPageAllSelected: import("vue").Ref<boolean>;
|
90
|
+
toggleSelectedAll: (isChecked: any) => void;
|
91
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "change-item-field"[], string, Readonly<import("vue").ExtractPropTypes<{
|
92
|
+
mappings: any;
|
93
|
+
records: any;
|
94
|
+
}>>, {
|
95
|
+
mappings: any;
|
96
|
+
records: any;
|
97
|
+
}>;
|
98
|
+
SuccessfulList: import("vue").DefineComponent<{
|
99
|
+
mappings: any;
|
100
|
+
records: any;
|
101
|
+
}, {
|
102
|
+
__sfc: boolean;
|
103
|
+
props: {
|
104
|
+
mappings: ColumnsMapping;
|
105
|
+
records: ImportRecords;
|
106
|
+
};
|
107
|
+
page: import("vue").Ref<number>;
|
108
|
+
pageSize: import("vue").Ref<number>;
|
109
|
+
pagedRecords: import("vue").ComputedRef<any[]>;
|
110
|
+
onPageSizeChanged: (_pageSize: any) => void;
|
111
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
112
|
+
mappings: any;
|
113
|
+
records: any;
|
114
|
+
}>>, {
|
115
|
+
mappings: any;
|
116
|
+
records: any;
|
117
|
+
}>;
|
118
|
+
FailedList: import("vue").DefineComponent<{
|
119
|
+
mappings: any;
|
120
|
+
records: any;
|
121
|
+
}, {
|
122
|
+
__sfc: boolean;
|
123
|
+
props: {
|
124
|
+
mappings: ColumnsMapping;
|
125
|
+
records: ImportRecords;
|
126
|
+
};
|
127
|
+
emit: (event: "change-item-field", params: {
|
128
|
+
uid: string;
|
129
|
+
fieldName: string;
|
130
|
+
fieldValue: any;
|
131
|
+
}) => void;
|
132
|
+
page: import("vue").Ref<number>;
|
133
|
+
pageSize: import("vue").Ref<number>;
|
134
|
+
pagedRecords: import("vue").ComputedRef<any[]>;
|
135
|
+
onPageSizeChanged: (_pageSize: any) => void;
|
136
|
+
currentPageAllSelected: import("vue").Ref<boolean>;
|
137
|
+
toggleSelectedAll: (isChecked: any) => void;
|
138
|
+
editCell: (index: any, m: any) => void;
|
139
|
+
onEdit: (val: any, index: any) => void;
|
140
|
+
confirmEdit: (index: any, fieldName: any, fieldValue: any) => void;
|
141
|
+
cancelEdit: (index: any) => void;
|
142
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "change-item-field"[], string, Readonly<import("vue").ExtractPropTypes<{
|
143
|
+
mappings: any;
|
144
|
+
records: any;
|
145
|
+
}>>, {
|
146
|
+
mappings: any;
|
147
|
+
records: any;
|
148
|
+
}>;
|
149
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
150
|
+
entityName: any;
|
151
|
+
excelTemplateUrl: any;
|
152
|
+
autoImportMaxRecords: {
|
153
|
+
default: number;
|
154
|
+
};
|
155
|
+
maxFileSize: {
|
156
|
+
default: number;
|
157
|
+
};
|
158
|
+
importUrl: any;
|
159
|
+
}>>, {
|
160
|
+
entityName: any;
|
161
|
+
excelTemplateUrl: any;
|
162
|
+
autoImportMaxRecords: number;
|
163
|
+
maxFileSize: number;
|
164
|
+
importUrl: any;
|
165
|
+
}>;
|
166
|
+
export default _default;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { ColumnsMapping, ImportRecords } from './types';
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
mappings: any;
|
4
|
+
records: any;
|
5
|
+
}, {
|
6
|
+
__sfc: boolean;
|
7
|
+
props: {
|
8
|
+
mappings: ColumnsMapping;
|
9
|
+
records: ImportRecords;
|
10
|
+
};
|
11
|
+
page: import("vue").Ref<number>;
|
12
|
+
pageSize: import("vue").Ref<number>;
|
13
|
+
pagedRecords: import("vue").ComputedRef<any[]>;
|
14
|
+
onPageSizeChanged: (_pageSize: any) => void;
|
15
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
16
|
+
mappings: any;
|
17
|
+
records: any;
|
18
|
+
}>>, {
|
19
|
+
mappings: any;
|
20
|
+
records: any;
|
21
|
+
}>;
|
22
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare const columnsMappingTestData: {
|
2
|
+
columnIndex: number;
|
3
|
+
columnHeaderText: string;
|
4
|
+
fieldName: string;
|
5
|
+
fieldDisplayName: string;
|
6
|
+
}[];
|
7
|
+
export declare const toImportListTestData: {
|
8
|
+
_uid_: string;
|
9
|
+
_selected_: boolean;
|
10
|
+
_importError_: any;
|
11
|
+
name: string;
|
12
|
+
username: string;
|
13
|
+
phoneNumber: string;
|
14
|
+
mobile: string;
|
15
|
+
}[];
|