@fly-vue/lcdp-iview 1.7.5 → 1.7.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. package/@types/module/action-nodes/impl/index.d.ts +1 -3
  2. package/@types/module/components/attribute/designer/prop-value-editor/var-input/index.vue.d.ts +3 -3
  3. package/@types/module/components/components/IvTableGrid/index.vue.d.ts +4 -1
  4. package/@types/module/components/components/iam/lib/modal.d.ts +1 -1
  5. package/@types/module/components/components/iam/lib/query-methods-builder.d.ts +6 -3
  6. package/@types/module/components/components/iam/mixins/build-query-methods.d.ts +6 -19
  7. package/@types/module/components/for-designer/index.d.ts +2 -2
  8. package/@types/module/components/for-renderer/data-exporter/csv.d.ts +1 -0
  9. package/@types/module/components/for-renderer/data-exporter/export-csv.d.ts +1 -0
  10. package/@types/module/components/for-renderer/data-exporter/index.vue.d.ts +62 -0
  11. package/@types/module/components/for-renderer/data-exporter/types.d.ts +9 -0
  12. package/@types/module/components/for-renderer/event-container/context.d.ts +48 -0
  13. package/@types/module/components/for-renderer/event-container/form-context.d.ts +9 -0
  14. package/@types/module/components/for-renderer/event-container/index.d.ts +3 -0
  15. package/@types/module/components/for-renderer/event-container/use-channel.d.ts +4 -0
  16. package/@types/module/components/for-renderer/event-container/use-form.d.ts +10 -0
  17. package/@types/module/components/for-renderer/excel-importer/failed-list.vue.d.ts +33 -0
  18. package/@types/module/components/for-renderer/excel-importer/index.vue.d.ts +166 -0
  19. package/@types/module/components/for-renderer/excel-importer/successful-list.vue.d.ts +22 -0
  20. package/@types/module/components/for-renderer/excel-importer/test-data.d.ts +15 -0
  21. package/@types/module/components/for-renderer/excel-importer/to-import-list.vue.d.ts +29 -0
  22. package/@types/module/components/for-renderer/excel-importer/types.d.ts +17 -0
  23. package/@types/module/components/for-renderer/excel-importer/use-check-all.d.ts +4 -0
  24. package/@types/module/components/for-renderer/excel-importer/use-pager.d.ts +6 -0
  25. package/@types/module/components/for-renderer/excel-importer/use-records-handler.d.ts +34 -0
  26. package/@types/module/components/for-renderer/excel-importer/use-urls.d.ts +5 -0
  27. package/@types/module/components/for-renderer/index.d.ts +7 -1
  28. package/@types/module/components/for-renderer/layout/iv-header-collapse.vue.d.ts +12 -0
  29. package/@types/module/components/for-renderer/layout/iv-trigger-container.vue.d.ts +18 -0
  30. package/@types/module/components/index.d.ts +125 -92
  31. package/@types/module/components/utils.d.ts +8 -0
  32. package/@types/module/index.d.ts +2 -1
  33. package/@types/module/plugins/sub-system-plugin.d.ts +3 -0
  34. package/@types/module/schema-extend/components/actions.d.ts +1 -21
  35. package/@types/module/schema-extend/components/excel-importer.d.ts +16 -0
  36. package/@types/module/schema-extend/components/form.d.ts +7 -12
  37. package/@types/module/schema-extend/components/iv-table.d.ts +13 -1
  38. package/@types/module/schema-extend/components/layout.d.ts +1 -7
  39. package/@types/module/schema-extend/components/lcdp-event-receiver.d.ts +17 -0
  40. package/@types/module/schema-extend/components/others.d.ts +7 -0
  41. package/@types/module/schema-extend/components/table.d.ts +5 -0
  42. package/@types/module/schema-extend/components/tinymce.d.ts +27 -0
  43. package/@types/module/schema-extend/components/tree.d.ts +3 -0
  44. package/@types/module/schema-extend/components/upload.d.ts +5 -0
  45. package/@types/module/validate-processor.d.ts +1 -1
  46. package/bingo-builder-manifest.json +15 -13
  47. package/index.js +4 -4
  48. package/modules/fly_vue_lcdp_iview/assets/css/app.css +2 -2
  49. package/modules/fly_vue_lcdp_iview/assets/css/lcdp-iview-attrcomponent.c8863f62.css +1 -0
  50. package/modules/fly_vue_lcdp_iview/assets/css/lcdp-iview-component-ice.a6489154.css +1 -0
  51. package/modules/fly_vue_lcdp_iview/assets/css/lcdp-iview-component.4fba6e5a.css +1 -0
  52. package/modules/fly_vue_lcdp_iview/assets/css/lcdp-renderer-components.2d6051ce.css +1 -0
  53. package/modules/fly_vue_lcdp_iview/assets/css/vendors~lcdp-iview-component-ice.0609a048.css +1 -0
  54. package/modules/fly_vue_lcdp_iview/chunk-732b533d.71fdd8a16be619fb2828.js +1 -0
  55. package/modules/fly_vue_lcdp_iview/dll.js +8 -12
  56. package/modules/fly_vue_lcdp_iview/lcdp-designer-components.71fdd8a16be619fb2828.js +1 -0
  57. package/modules/fly_vue_lcdp_iview/lcdp-iview-attrcomponent.71fdd8a16be619fb2828.js +1 -0
  58. package/modules/fly_vue_lcdp_iview/lcdp-iview-basecomponent.71fdd8a16be619fb2828.js +1 -0
  59. package/modules/fly_vue_lcdp_iview/lcdp-iview-component-ice.71fdd8a16be619fb2828.js +1 -0
  60. package/modules/fly_vue_lcdp_iview/{lcdp-iview-component.e6ed3307f2094e1adbff.js → lcdp-iview-component-region.71fdd8a16be619fb2828.js} +2 -2
  61. package/modules/fly_vue_lcdp_iview/lcdp-iview-component.71fdd8a16be619fb2828.js +1 -0
  62. package/modules/fly_vue_lcdp_iview/lcdp-renderer-components.71fdd8a16be619fb2828.js +1 -0
  63. package/modules/fly_vue_lcdp_iview/vendors~lcdp-iview-component-ice.71fdd8a16be619fb2828.js +1 -0
  64. package/modules/fly_vue_lcdp_iview/vendors~lcdp-renderer-components.71fdd8a16be619fb2828.js +7 -0
  65. package/package.json +16 -15
  66. package/@types/module/action-nodes/impl/call-component-method.d.ts +0 -9
  67. package/@types/module/action-nodes/impl/condition.d.ts +0 -9
  68. package/@types/module/action-nodes/impl/d-component-emit.d.ts +0 -9
  69. package/@types/module/action-nodes/impl/data-source-data-reload.d.ts +0 -9
  70. package/@types/module/action-nodes/impl/foreach.d.ts +0 -6
  71. package/@types/module/action-nodes/impl/form.d.ts +0 -8
  72. package/@types/module/action-nodes/impl/http.d.ts +0 -6
  73. package/@types/module/action-nodes/impl/open-url.d.ts +0 -6
  74. package/@types/module/action-nodes/impl/output.d.ts +0 -6
  75. package/@types/module/action-nodes/impl/script.d.ts +0 -6
  76. package/@types/module/action-nodes/impl/set-page-variable.d.ts +0 -6
  77. package/@types/module/action-nodes/service-type-transport.d.ts +0 -7
  78. package/@types/module/components/for-designer/LcdpInlineRenderer.vue.d.ts +0 -2
  79. package/@types/module/components/for-designer/SlotContainer.vue.d.ts +0 -4
  80. package/@types/module/components/for-renderer/inline-renderer/index.vue.d.ts +0 -70
  81. package/modules/fly_vue_lcdp_iview/assets/css/lcdp-designer-components.9ef3fc1b.css +0 -1
  82. package/modules/fly_vue_lcdp_iview/assets/css/lcdp-iview-attrcomponent.5b64e92e.css +0 -1
  83. package/modules/fly_vue_lcdp_iview/assets/css/lcdp-iview-component.28c2f15b.css +0 -1
  84. package/modules/fly_vue_lcdp_iview/chunk-732b533d.e6ed3307f2094e1adbff.js +0 -1
  85. package/modules/fly_vue_lcdp_iview/lcdp-designer-components.e6ed3307f2094e1adbff.js +0 -1
  86. package/modules/fly_vue_lcdp_iview/lcdp-iview-attrcomponent.e6ed3307f2094e1adbff.js +0 -1
  87. package/modules/fly_vue_lcdp_iview/lcdp-iview-basecomponent.e6ed3307f2094e1adbff.js +0 -1
  88. package/modules/fly_vue_lcdp_iview/lcdp-renderer-components.e6ed3307f2094e1adbff.js +0 -1
@@ -1,4 +1,2 @@
1
- declare const _default: {
2
- id: string;
3
- }[];
1
+ declare const _default: any[];
4
2
  export default _default;
@@ -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;
@@ -201,7 +201,7 @@ declare const _default: import("vue").DefineComponent<{
201
201
  deleteRow: (num: number | number[], callback: any) => any;
202
202
  getSelectData: (id: any) => any;
203
203
  gridTable: import("vue").Ref<any>;
204
- onContextmenu: (row: any, event: any, position: any) => void;
204
+ onContextmenu: (row: any, event: any) => void;
205
205
  handlePagePrev: (val: any) => void;
206
206
  handlePageNext: (val: any) => void;
207
207
  handlePageSizeChange: (val: any) => void;
@@ -213,6 +213,9 @@ declare const _default: import("vue").DefineComponent<{
213
213
  * @param {*} index: 选中行
214
214
  */
215
215
  onRowClick(selection: any, index: any): void;
216
+ exportCsv(params: any): void;
217
+ clearCurrentRow(): void;
218
+ selectAll(status: any): void;
216
219
  }, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
217
220
  pagerProps: {
218
221
  type: PropType<PagerProps>;
@@ -1,2 +1,2 @@
1
1
  export declare function modalHeight(bias: any, width: any): number;
2
- export declare function modalWidth(): 90 | 70 | 80 | 60;
2
+ export declare function modalWidth(): 80 | 60 | 70 | 90;
@@ -1,7 +1,10 @@
1
- declare function build(userApiUrl: any, orgApiUrl: any, userSelectOptions?: any, orgSelectOptions?: any, globalQueryOptions?: any, globalConfig?: any): {
1
+ declare function build(userApiUrl: any, orgApiUrl: any, userSelectOptions?: any, orgSelectOptions?: any, globalQueryOptions?: any, globalConfig?: any, inboundOrgUrl?: any): {
2
2
  queryExternalOrg: () => any;
3
3
  queryRootOrg: () => any;
4
- queryRootOrgByUrl: (url: any) => 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: (orgIds: any, userIds: any, pageParams: any, filters?: string) => Promise<unknown>;
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;
@@ -12,6 +12,12 @@ declare const _default: {
12
12
  userUrl: {
13
13
  type: StringConstructor;
14
14
  };
15
+ /**
16
+ * 外部企业基础地址,不传会读取默认的
17
+ */
18
+ inboundOrgUrl: {
19
+ type: StringConstructor;
20
+ };
15
21
  };
16
22
  methods: {
17
23
  buildQueryMethods(globalQueryOptions?: any, globalConfig?: any): {
@@ -27,25 +33,6 @@ declare const _default: {
27
33
  getOrgParentField: () => any;
28
34
  userOptions: any;
29
35
  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
36
  };
50
37
  validateProps(queryMethods: any): void;
51
38
  };
@@ -1,5 +1,5 @@
1
+ /// <reference types="vue-shims" />
1
2
  declare const _default: {
2
- DesignSlotContainer: () => Promise<typeof import("./SlotContainer.vue")>;
3
- DesignLcdpInlineRenderer: () => Promise<typeof import("./LcdpInlineRenderer.vue")>;
3
+ DesignPageView: () => Promise<typeof import("*.vue")>;
4
4
  };
5
5
  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,9 @@
1
+ export declare type ExportCandidateField = {
2
+ fieldName: string;
3
+ fieldDisplayName: string;
4
+ fieldValueExp?: string;
5
+ };
6
+ export declare type ExportCandidateFields = {
7
+ type: string;
8
+ value: ExportCandidateField[];
9
+ };
@@ -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,9 @@
1
+ import { EventContainerContext } from './context';
2
+ export declare class FormEventContainerContext extends EventContainerContext {
3
+ formData: {};
4
+ constructor({ data }: {
5
+ data: any;
6
+ });
7
+ setFormData(_formData: any): void;
8
+ getFormData(): {};
9
+ }
@@ -0,0 +1,3 @@
1
+ export * from './use-form';
2
+ export * from './context';
3
+ export * from './form-context';
@@ -0,0 +1,4 @@
1
+ import { EventContainerContext } from './context';
2
+ export declare function useChannel(channelId: any): {
3
+ eventContainerContext: EventContainerContext;
4
+ };
@@ -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
+ }[];
@@ -0,0 +1,29 @@
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
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "change-item-field"[], string, Readonly<import("vue").ExtractPropTypes<{
23
+ mappings: any;
24
+ records: any;
25
+ }>>, {
26
+ mappings: any;
27
+ records: any;
28
+ }>;
29
+ export default _default;
@@ -0,0 +1,17 @@
1
+ export declare type ColumnMapping = {
2
+ columnIndex: number;
3
+ columnHeaderText: string;
4
+ fieldName: string;
5
+ fieldDisplayName: string;
6
+ };
7
+ export declare type ColumnsMapping = ColumnMapping[];
8
+ export declare type ImportRecord = {
9
+ _uid_: string;
10
+ _selected_?: boolean;
11
+ _importResult_?: string;
12
+ _importError_?: string;
13
+ _editing_?: string;
14
+ _editingValue_?: string;
15
+ [otherKey: string]: any;
16
+ };
17
+ export declare type ImportRecords = ImportRecord[];
@@ -0,0 +1,4 @@
1
+ export declare function useCheckAll(pagedRecords: any, emit: any): {
2
+ currentPageAllSelected: import("vue").Ref<boolean>;
3
+ toggleSelectedAll: (isChecked: any) => void;
4
+ };
@@ -0,0 +1,6 @@
1
+ export declare function usePager(props: any): {
2
+ onPageSizeChanged: (_pageSize: any) => void;
3
+ pagedRecords: import("vue").ComputedRef<any[]>;
4
+ page: import("vue").Ref<number>;
5
+ pageSize: import("vue").Ref<number>;
6
+ };
@@ -0,0 +1,34 @@
1
+ import { ImportRecords, ImportRecord, ColumnsMapping } from './types';
2
+ /**
3
+ * 附加_uid_、_selected_属性到records的每一项中
4
+ */
5
+ export declare const preprocessRecords: (records: ImportRecords) => {
6
+ _uid_: string;
7
+ _selected_: boolean;
8
+ _importResult_?: string;
9
+ _importError_?: string;
10
+ _editing_?: string;
11
+ _editingValue_?: string;
12
+ }[];
13
+ /**
14
+ * 清除records每一项的_uid_、_selected_等非业务属性
15
+ */
16
+ export declare const cleanRecords: (records: ImportRecords) => ImportRecords;
17
+ export declare const filterSelected: (records: ImportRecords) => {
18
+ _uid_: string;
19
+ _selected_?: boolean;
20
+ _importResult_?: string;
21
+ _importError_?: string;
22
+ _editing_?: string;
23
+ _editingValue_?: string;
24
+ }[];
25
+ export declare const filterFailed: (records: ImportRecords, mappings: ColumnsMapping) => any[];
26
+ export declare const filterSuccessful: (records: ImportRecords) => ImportRecord[];
27
+ export declare const rangeRecords: (records: ImportRecords, fromIndex: any, toIndex: any) => any[];
28
+ /**
29
+ * 本地分页获取records的数据
30
+ * @param records - 当前所有记录数
31
+ * @param page - 当前页,从1开始
32
+ * @param pageSize - 每页记录数
33
+ */
34
+ export declare const getPagedRecords: (records: ImportRecords, page: number, pageSize: number) => any[];
@@ -0,0 +1,5 @@
1
+ export declare function useUrls(entityName: string): {
2
+ parseExcelUrl: string;
3
+ importUrl: string;
4
+ headers: {};
5
+ };
@@ -1,4 +1,10 @@
1
+ /// <reference types="vue-shims" />
1
2
  declare const _default: {
2
- LcdpInlineRenderer: () => Promise<typeof import("./inline-renderer/index.vue")>;
3
+ LcdpDataImporter: () => Promise<typeof import("./excel-importer/index.vue")>;
4
+ LcdpDataExporter: () => Promise<typeof import("./data-exporter/index.vue")>;
5
+ IvHeaderCollapse: () => Promise<typeof import("./layout/iv-header-collapse.vue")>;
6
+ IvPageLayout: () => Promise<typeof import("*.vue")>;
7
+ IvPageView: () => Promise<typeof import("*.vue")>;
8
+ IvTriggerContainer: () => Promise<typeof import("./layout/iv-trigger-container.vue")>;
3
9
  };
4
10
  export default _default;
@@ -0,0 +1,12 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ darkMode: {
3
+ type: BooleanConstructor;
4
+ };
5
+ }, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
6
+ darkMode: {
7
+ type: BooleanConstructor;
8
+ };
9
+ }>>, {
10
+ darkMode: boolean;
11
+ }>;
12
+ export default _default;