@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.
- package/components/index.d.ts +4 -0
- package/components/upload-vue-demo/FileUpload.vue.d.ts +50 -0
- package/components/upload-vue-demo/index.d.ts +134 -0
- package/constants.d.ts +1 -0
- package/edp-bif-formdoc-upload-vue.esm.js +5019 -0
- package/edp-bif-formdoc-upload-vue.umd.cjs +5020 -0
- package/entity/changeinstancerequest.d.ts +6 -0
- package/entity/completemultiuploadrequest.d.ts +10 -0
- package/entity/copyfilerequest.d.ts +5 -0
- package/entity/doctype.d.ts +10 -0
- package/entity/droplistentity.d.ts +4 -0
- package/entity/expropertyrequest.d.ts +5 -0
- package/entity/extensionstoragefileinfo.d.ts +4 -0
- package/entity/fileinfo.d.ts +24 -0
- package/entity/filestate.d.ts +4 -0
- package/entity/gspdocmetaproperty.d.ts +7 -0
- package/entity/gspdocsecuritybaseinfo.d.ts +5 -0
- package/entity/gspformdocinfo.d.ts +12 -0
- package/entity/gspformdocoperateentity.d.ts +4 -0
- package/entity/gspformremovelistentity.d.ts +7 -0
- package/entity/gspformstreamentity.d.ts +13 -0
- package/entity/gspformuploadentity.d.ts +9 -0
- package/entity/gspformuploadlistentity.d.ts +9 -0
- package/entity/index.d.ts +25 -0
- package/entity/initmultiuploadrequest.d.ts +7 -0
- package/entity/multiuploadrequest.d.ts +8 -0
- package/entity/multiuploadresult.d.ts +4 -0
- package/entity/operatingmodes.d.ts +4 -0
- package/entity/securityentity.d.ts +6 -0
- package/entity/storageextension.d.ts +6 -0
- package/entity/uploadfileinfo.d.ts +11 -0
- package/entity/uploadlimit.d.ts +8 -0
- package/i18n/index.d.ts +1 -0
- package/i18n/lang.resource.d.ts +142 -0
- package/index.d.ts +12 -0
- package/package.json +34 -0
- package/pipe/index.d.ts +1 -0
- package/pipe/locale.pipe.d.ts +7 -0
- package/providers.d.ts +19 -0
- package/services/DownloadServiceInternal.d.ts +11 -0
- package/services/UploadDialogServiceInternal.d.ts +13 -0
- package/services/UploadService.d.ts +25 -0
- package/style.css +242 -0
- package/utils/BrowserUtil.d.ts +5 -0
- package/utils/ErrorUtil.d.ts +4 -0
- package/utils/HttpUtils.d.ts +16 -0
- package/utils/ObjectUtils.d.ts +2 -0
- package/utils/basePath.d.ts +1 -0
- package/utils/guid-util.d.ts +3 -0
- package/utils/index.d.ts +6 -0
- package/utils/with-install.d.ts +3 -0
- package/webcmp/DownloadService.d.ts +11 -0
- package/webcmp/UploadDialogService.d.ts +21 -0
- package/webcmp/index.d.ts +2 -0
@@ -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,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,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,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,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
|
+
}
|
package/i18n/index.d.ts
ADDED
@@ -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
|
+
}
|
package/pipe/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './locale.pipe';
|
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 };
|