@gsp-svc/formdoc-upload-vue 1.0.0

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.
Files changed (54) hide show
  1. package/components/index.d.ts +4 -0
  2. package/components/upload-vue-demo/FileUpload.vue.d.ts +50 -0
  3. package/components/upload-vue-demo/index.d.ts +134 -0
  4. package/constants.d.ts +1 -0
  5. package/edp-bif-formdoc-upload-vue.esm.js +5019 -0
  6. package/edp-bif-formdoc-upload-vue.umd.cjs +5020 -0
  7. package/entity/changeinstancerequest.d.ts +6 -0
  8. package/entity/completemultiuploadrequest.d.ts +10 -0
  9. package/entity/copyfilerequest.d.ts +5 -0
  10. package/entity/doctype.d.ts +10 -0
  11. package/entity/droplistentity.d.ts +4 -0
  12. package/entity/expropertyrequest.d.ts +5 -0
  13. package/entity/extensionstoragefileinfo.d.ts +4 -0
  14. package/entity/fileinfo.d.ts +24 -0
  15. package/entity/filestate.d.ts +4 -0
  16. package/entity/gspdocmetaproperty.d.ts +7 -0
  17. package/entity/gspdocsecuritybaseinfo.d.ts +5 -0
  18. package/entity/gspformdocinfo.d.ts +12 -0
  19. package/entity/gspformdocoperateentity.d.ts +4 -0
  20. package/entity/gspformremovelistentity.d.ts +7 -0
  21. package/entity/gspformstreamentity.d.ts +13 -0
  22. package/entity/gspformuploadentity.d.ts +9 -0
  23. package/entity/gspformuploadlistentity.d.ts +9 -0
  24. package/entity/index.d.ts +25 -0
  25. package/entity/initmultiuploadrequest.d.ts +7 -0
  26. package/entity/multiuploadrequest.d.ts +8 -0
  27. package/entity/multiuploadresult.d.ts +4 -0
  28. package/entity/operatingmodes.d.ts +4 -0
  29. package/entity/securityentity.d.ts +6 -0
  30. package/entity/storageextension.d.ts +6 -0
  31. package/entity/uploadfileinfo.d.ts +11 -0
  32. package/entity/uploadlimit.d.ts +8 -0
  33. package/i18n/index.d.ts +1 -0
  34. package/i18n/lang.resource.d.ts +142 -0
  35. package/index.d.ts +12 -0
  36. package/package.json +34 -0
  37. package/pipe/index.d.ts +1 -0
  38. package/pipe/locale.pipe.d.ts +7 -0
  39. package/providers.d.ts +19 -0
  40. package/services/DownloadServiceInternal.d.ts +11 -0
  41. package/services/UploadDialogServiceInternal.d.ts +13 -0
  42. package/services/UploadService.d.ts +25 -0
  43. package/style.css +242 -0
  44. package/utils/BrowserUtil.d.ts +5 -0
  45. package/utils/ErrorUtil.d.ts +4 -0
  46. package/utils/HttpUtils.d.ts +16 -0
  47. package/utils/ObjectUtils.d.ts +2 -0
  48. package/utils/basePath.d.ts +1 -0
  49. package/utils/guid-util.d.ts +3 -0
  50. package/utils/index.d.ts +6 -0
  51. package/utils/with-install.d.ts +3 -0
  52. package/webcmp/DownloadService.d.ts +11 -0
  53. package/webcmp/UploadDialogService.d.ts +21 -0
  54. package/webcmp/index.d.ts +2 -0
@@ -0,0 +1,6 @@
1
+ import { ExStorageFileInfo } from './extensionstoragefileinfo';
2
+
3
+ export declare class ChangeInstanceRequest {
4
+ fileInfoList: ExStorageFileInfo[];
5
+ rootId: string;
6
+ }
@@ -0,0 +1,10 @@
1
+ import { MultiUploadResult } from './multiuploadresult';
2
+
3
+ export declare class CompleteMultiUploadRequest {
4
+ metadataId: string;
5
+ rootId: string;
6
+ uploadId: string;
7
+ size: number;
8
+ partList: MultiUploadResult[];
9
+ exPropertyName: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ export declare class CopyFileRequest {
2
+ metadataId: string;
3
+ rootId: string;
4
+ path: string;
5
+ }
@@ -0,0 +1,10 @@
1
+ export declare enum DocType {
2
+ Word = 0,
3
+ Excel = 1,
4
+ Powerpoint = 2,
5
+ Pdf = 3,
6
+ Txt = 4,
7
+ Image = 5,
8
+ Other = 6,
9
+ Zip = 7
10
+ }
@@ -0,0 +1,4 @@
1
+ export declare class DropListEntity {
2
+ id: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare class ExPropertyRequest {
2
+ id: string;
3
+ rootId: string;
4
+ exProperty: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare class ExStorageFileInfo {
2
+ metadataId: string;
3
+ exPropertyName: string;
4
+ }
@@ -0,0 +1,24 @@
1
+ import { SecurityEntity } from './securityentity';
2
+
3
+ export declare class FileInfo {
4
+ id: string;
5
+ name: string;
6
+ type: string;
7
+ source: any;
8
+ picListDisplayName: string;
9
+ queueListDisplayName: string;
10
+ size: string;
11
+ fileSize: number;
12
+ hasUploaded: boolean;
13
+ mouseOn: boolean;
14
+ selectd: boolean;
15
+ isUploading: boolean;
16
+ uploadResult: boolean;
17
+ uploadProcess: number;
18
+ errorMessage: string;
19
+ extensionDropListId: number;
20
+ extensionName: string;
21
+ securityDropListId: number;
22
+ securityInfo: SecurityEntity;
23
+ style: any;
24
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum FileState {
2
+ New = 0,
3
+ Update = 1
4
+ }
@@ -0,0 +1,7 @@
1
+ export declare class GspDocMetaProperty {
2
+ extProperties1: string;
3
+ extProperties2: string;
4
+ extProperties3: string;
5
+ extProperties4: string;
6
+ extProperties5: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ export declare class GspDocSecurityBaseInfo {
2
+ securityId: string;
3
+ securityLevel: number;
4
+ name: string;
5
+ }
@@ -0,0 +1,12 @@
1
+ import { GspDocMetaProperty } from './gspdocmetaproperty';
2
+
3
+ export declare class GspFormDocInfo {
4
+ metadataId: string;
5
+ fileName: string;
6
+ fileContent: string;
7
+ index: number;
8
+ total: number;
9
+ size: number;
10
+ exPropertyName: string;
11
+ extProperty: GspDocMetaProperty;
12
+ }
@@ -0,0 +1,4 @@
1
+ export declare class GspFormDocOperateEntity {
2
+ metadataIdList: string[];
3
+ rootId: string;
4
+ }
@@ -0,0 +1,7 @@
1
+ import { OperatingModes } from './operatingmodes';
2
+
3
+ export declare class GspFormRemoveListEntity {
4
+ metadataIdList: string[];
5
+ mode: OperatingModes;
6
+ rootId: string;
7
+ }
@@ -0,0 +1,13 @@
1
+ import { GspDocMetaProperty } from './gspdocmetaproperty';
2
+ import { OperatingModes } from './operatingmodes';
3
+
4
+ export declare class GspFormStreamEntity {
5
+ formId: string;
6
+ metadataId: string;
7
+ rootId: string;
8
+ fileName: string;
9
+ size: number;
10
+ mode: OperatingModes;
11
+ exPropertyName: string;
12
+ extProperty: GspDocMetaProperty;
13
+ }
@@ -0,0 +1,9 @@
1
+ import { OperatingModes } from './operatingmodes';
2
+ import { GspFormDocInfo } from './gspformdocinfo';
3
+
4
+ export declare class GspFormUploadEntity {
5
+ formId: string;
6
+ docInfo: GspFormDocInfo;
7
+ mode: OperatingModes;
8
+ rootId: string;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { GspFormDocInfo } from './gspformdocinfo';
2
+ import { OperatingModes } from './operatingmodes';
3
+
4
+ export declare class GspFormUploadListEntity {
5
+ formId: string;
6
+ docInfoList: GspFormDocInfo[];
7
+ mode: OperatingModes;
8
+ rootId: string;
9
+ }
@@ -0,0 +1,25 @@
1
+ export * from './changeinstancerequest';
2
+ export * from './completemultiuploadrequest';
3
+ export * from './copyfilerequest';
4
+ export * from './doctype';
5
+ export * from './droplistentity';
6
+ export * from './expropertyrequest';
7
+ export * from './extensionstoragefileinfo';
8
+ export * from './fileinfo';
9
+ export * from './filestate';
10
+ export * from './gspdocmetaproperty';
11
+ export * from './gspdocsecuritybaseinfo';
12
+ export * from './gspformdocinfo';
13
+ export * from './gspformdocoperateentity';
14
+ export * from './gspformremovelistentity';
15
+ export * from './gspformstreamentity';
16
+ export * from './gspformuploadentity';
17
+ export * from './gspformuploadlistentity';
18
+ export * from './initmultiuploadrequest';
19
+ export * from './multiuploadrequest';
20
+ export * from './multiuploadresult';
21
+ export * from './operatingmodes';
22
+ export * from './securityentity';
23
+ export * from './storageextension';
24
+ export * from './uploadfileinfo';
25
+ export * from './uploadlimit';
@@ -0,0 +1,7 @@
1
+ export declare class InitMultiUploadRequest {
2
+ path: string;
3
+ metadataId: string;
4
+ rootId: string;
5
+ fileName: string;
6
+ size: number;
7
+ }
@@ -0,0 +1,8 @@
1
+ export declare class MultiUploadRequest {
2
+ metadataId: string;
3
+ total: number;
4
+ size: number;
5
+ index: number;
6
+ rootId: string;
7
+ uploadId: string;
8
+ }
@@ -0,0 +1,4 @@
1
+ export declare class MultiUploadResult {
2
+ index: number;
3
+ tag: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum OperatingModes {
2
+ Formal = 0,
3
+ Temp = 1
4
+ }
@@ -0,0 +1,6 @@
1
+ export declare class SecurityEntity {
2
+ id: string;
3
+ securityId: string;
4
+ securityLevel: number;
5
+ name: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ export declare class StorageExtension {
2
+ id: string;
3
+ extensionName: string;
4
+ defaultPropertyName: string;
5
+ extensionPropertyNameList: string[];
6
+ }
@@ -0,0 +1,11 @@
1
+ import { FileState } from './filestate';
2
+ import { SecurityEntity } from './securityentity';
3
+
4
+ export declare class UploadFileInfo {
5
+ metadataId: string;
6
+ fileName: string;
7
+ fileSize: string;
8
+ originalSize: number;
9
+ state: FileState;
10
+ securityInfo: SecurityEntity;
11
+ }
@@ -0,0 +1,8 @@
1
+ import { GspDocSecurityBaseInfo } from './gspdocsecuritybaseinfo';
2
+
3
+ export declare class UploadLimit {
4
+ fileType: string;
5
+ fileCount: number;
6
+ securityInfo: GspDocSecurityBaseInfo;
7
+ fileNameLength: number;
8
+ }
@@ -0,0 +1 @@
1
+ export * from './lang.resource';
@@ -0,0 +1,142 @@
1
+ export declare const LANG_RESOURCES: {
2
+ 'zh-CHS': {
3
+ uploadFile: string;
4
+ uploading: string;
5
+ selectedCount: string;
6
+ limitCount: string;
7
+ rechooseFile: string;
8
+ save: string;
9
+ cancel: string;
10
+ haveSameName: string;
11
+ rename: string;
12
+ replace: string;
13
+ sizeZero: string;
14
+ sizeMax: string;
15
+ uploadFailure: string;
16
+ uploadSucceed: string;
17
+ wait: string;
18
+ saveTo: string;
19
+ delete: string;
20
+ selectAll: string;
21
+ selectNull: string;
22
+ detail: string;
23
+ fileName: string;
24
+ state: string;
25
+ operation: string;
26
+ size: string;
27
+ close: string;
28
+ loading: string;
29
+ mismatchChunkSize: string;
30
+ invalidCharacters: string;
31
+ invalidExtNames: string;
32
+ whiteExtNames: string;
33
+ blackExtNames: string;
34
+ UnrecognizedFileType: string;
35
+ fileNameOverSize: string;
36
+ };
37
+ 'en-US': {
38
+ uploadFile: string;
39
+ uploading: string;
40
+ selectedCount: string;
41
+ limitCount: string;
42
+ rechooseFile: string;
43
+ save: string;
44
+ cancel: string;
45
+ haveSameName: string;
46
+ rename: string;
47
+ replace: string;
48
+ sizeZero: string;
49
+ sizeMax: string;
50
+ uploadFailure: string;
51
+ uploadSucceed: string;
52
+ wait: string;
53
+ saveTo: string;
54
+ delete: string;
55
+ selectAll: string;
56
+ selectNull: string;
57
+ detail: string;
58
+ fileName: string;
59
+ state: string;
60
+ operation: string;
61
+ size: string;
62
+ close: string;
63
+ loading: string;
64
+ mismatchChunkSize: string;
65
+ invalidCharacters: string;
66
+ invalidExtNames: string;
67
+ whiteExtNames: string;
68
+ blackExtNames: string;
69
+ UnrecognizedFileType: string;
70
+ fileNameOverSize: string;
71
+ };
72
+ en: {
73
+ uploadFile: string;
74
+ uploading: string;
75
+ selectedCount: string;
76
+ limitCount: string;
77
+ rechooseFile: string;
78
+ save: string;
79
+ cancel: string;
80
+ haveSameName: string;
81
+ rename: string;
82
+ replace: string;
83
+ sizeZero: string;
84
+ sizeMax: string;
85
+ uploadFailure: string;
86
+ uploadSucceed: string;
87
+ wait: string;
88
+ saveTo: string;
89
+ delete: string;
90
+ selectAll: string;
91
+ selectNull: string;
92
+ detail: string;
93
+ fileName: string;
94
+ state: string;
95
+ operation: string;
96
+ size: string;
97
+ close: string;
98
+ loading: string;
99
+ mismatchChunkSize: string;
100
+ invalidCharacters: string;
101
+ invalidExtNames: string;
102
+ whiteExtNames: string;
103
+ blackExtNames: string;
104
+ UnrecognizedFileType: string;
105
+ fileNameOverSize: string;
106
+ };
107
+ 'zh-CHT': {
108
+ uploadFile: string;
109
+ uploading: string;
110
+ selectedCount: string;
111
+ limitCount: string;
112
+ rechooseFile: string;
113
+ save: string;
114
+ cancel: string;
115
+ haveSameName: string;
116
+ rename: string;
117
+ replace: string;
118
+ sizeZero: string;
119
+ sizeMax: string;
120
+ uploadFailure: string;
121
+ uploadSucceed: string;
122
+ wait: string;
123
+ saveTo: string;
124
+ delete: string;
125
+ selectAll: string;
126
+ selectNull: string;
127
+ detail: string;
128
+ fileName: string;
129
+ state: string;
130
+ operation: string;
131
+ size: string;
132
+ close: string;
133
+ loading: string;
134
+ mismatchChunkSize: string;
135
+ invalidCharacters: string;
136
+ invalidExtNames: string;
137
+ whiteExtNames: string;
138
+ blackExtNames: string;
139
+ UnrecognizedFileType: string;
140
+ fileNameOverSize: string;
141
+ };
142
+ };
package/index.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ import { App } from 'vue';
2
+
3
+ export * from './constants';
4
+ export * from './entity';
5
+ export * from './components';
6
+ export * from './providers';
7
+ export * from './utils';
8
+ export * from './webcmp';
9
+ export declare const UploadRuntimeApiVue: {
10
+ install(app: App): void;
11
+ };
12
+ export default UploadRuntimeApiVue;
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@gsp-svc/formdoc-upload-vue",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "dependencies": {
9
+ "@edp-aif/common-api": "^1.1.0",
10
+ "@edp-bif/common-api": "^1.2.0",
11
+ "@edp-pmf/mxgraph-ts": "^0.0.7",
12
+ "@farris/bef-vue": "^0.0.3",
13
+ "@farris/command-services-vue": "^0.0.3",
14
+ "@farris/devkit-vue": "^0.0.5",
15
+ "@farris/ui-vue": "^1.3.7",
16
+ "@vue/shared": "^3.2.0",
17
+ "@vueuse/core": "^9.2.0",
18
+ "async-validator": "^4.2.0",
19
+ "bignumber.js": "^9.1.2",
20
+ "lodash": "^4.17.21",
21
+ "lodash-es": "^4.17.11",
22
+ "moment": "^2.29.1",
23
+ "mxgraph": "^4.2.2",
24
+ "rxjs": "^7.4.0",
25
+ "vue": "^3.2.37",
26
+ "vue-router": "^4.3.0",
27
+ "axios": "^1.10.0"
28
+ },
29
+ "main": "./edp-bif-formdoc-upload-vue.umd.cjs",
30
+ "module": "./edp-bif-formdoc-upload-vue.esm.js",
31
+ "types": "./index.d.ts",
32
+ "style": "./style.css",
33
+ "private": false
34
+ }
@@ -0,0 +1 @@
1
+ export * from './locale.pipe';
@@ -0,0 +1,7 @@
1
+ export declare class LocalLangPipe {
2
+ private readonly defaultLang;
3
+ langCode: string;
4
+ private lang;
5
+ constructor();
6
+ transform(name: string): any;
7
+ }
package/providers.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ import { StaticProvider } from '@farris/devkit-vue';
2
+
3
+ /**
4
+ * 下载服务注入到组件上的Providers
5
+ */
6
+ declare const DownloadServiceProviders: StaticProvider[];
7
+ /**
8
+ * 上传弹窗注入到组件上的Providers
9
+ */
10
+ declare const UploadDialogServiceProviders: StaticProvider[];
11
+ /**
12
+ * 附件上传注入到组件上的Providers
13
+ */
14
+ declare const UploadDevkitProviders: StaticProvider[];
15
+ /**
16
+ * 附件上传注入到模块上的Providers
17
+ */
18
+ declare const UploadDevkitRootProviders: StaticProvider[];
19
+ export { DownloadServiceProviders, UploadDialogServiceProviders, UploadDevkitProviders, UploadDevkitRootProviders };
@@ -0,0 +1,11 @@
1
+ declare class DownloadServiceInternal {
2
+ getDownloadUrl(metadataId: string, rootId: string): string;
3
+ getStreamDownloadUrl(metadataId: string, rootId: string): string;
4
+ getMultipleDownloadUrl(metadataIdList: any, rootId: string): string;
5
+ getMultipleDownloadUrlWithName(metadataIdList: any, rootId: string, zipName: string): string;
6
+ getHistoryDownloadUrl(metadataId: string, rootId: string, version: string): string;
7
+ mergeString(str: string, str1: string): string;
8
+ getToken(str: string): string;
9
+ switchStr(str1: string, str2: string, str3: string, i: number): string;
10
+ }
11
+ export default DownloadServiceInternal;
@@ -0,0 +1,13 @@
1
+ import { UploadLimit } from '../entity/uploadlimit';
2
+
3
+ declare class UploadDialogServiceInternal {
4
+ private modalService;
5
+ private t;
6
+ constructor();
7
+ private dlg;
8
+ private fileInfoList;
9
+ showDialog(formId?: string, rootId?: string): Promise<unknown>;
10
+ uploadFile(formId: string, rootId: string, oldIdList?: string[]): Promise<unknown>;
11
+ uploadFileWithLimit(formId: string, rootId: string, limit: UploadLimit, oldIdList?: string[]): Promise<unknown>;
12
+ }
13
+ export default UploadDialogServiceInternal;
@@ -0,0 +1,25 @@
1
+ import { GspFormUploadListEntity } from '../entity/gspformuploadlistentity';
2
+ import { GspFormUploadEntity } from '../entity/gspformuploadentity';
3
+ import { ExStorageFileInfo } from '../entity/extensionstoragefileinfo';
4
+ import { GspDocSecurityBaseInfo } from '../entity/gspdocsecuritybaseinfo';
5
+ import { UploadFileInfo } from '../entity/uploadfileinfo';
6
+
7
+ declare class UploadService {
8
+ private http;
9
+ private handleError;
10
+ uploadList(docListInfo: GspFormUploadListEntity, rootId: string): Promise<any>;
11
+ commit(metadataIdList: string[], rootId: string): Promise<any>;
12
+ cancel(metadataIdList: string[], rootId: string): Promise<any>;
13
+ removeList(idList: string[], rootId: string): Promise<any>;
14
+ getFile(metadataId: string, rootId: string): Promise<any>;
15
+ uploadFile(docInfo: GspFormUploadEntity): Promise<any>;
16
+ uploadSliceFile(formdata: FormData): Promise<any>;
17
+ getStorageExtensionInfo(): Promise<any>;
18
+ getSecurityInfoList(baseInfo: GspDocSecurityBaseInfo): Promise<any>;
19
+ changeStorageInstance(storageInfoList: ExStorageFileInfo[], rootId: string): Promise<any>;
20
+ copyFile(metadataId: string, rootId: string, path: string): Promise<any>;
21
+ saveSecurityInfo(uploadFileInfoList: UploadFileInfo[], rootId: string): Promise<any>;
22
+ getUploadedFileInfoList(formId: string, rootId: string): Promise<any>;
23
+ getUploadInfo(rootId: string): Promise<any>;
24
+ }
25
+ export { UploadService };