@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
package/style.css ADDED
@@ -0,0 +1,242 @@
1
+
2
+ /* 样式可以参考原有的 CSS 文件 */
3
+ .pic_list ul li div img[data-v-528fbfc7] {
4
+ max-width: 60px;
5
+ max-height: 60px;
6
+ align-items: center;
7
+ margin: auto;
8
+ vertical-align: middle;
9
+ text-align: center;
10
+ }
11
+ .pic_list ul li span.filename[data-v-528fbfc7] {
12
+ width: 100px;
13
+ text-align: center;
14
+ overflow: hidden;
15
+ text-overflow: ellipsis;
16
+ white-space: nowrap;
17
+ }
18
+ .home_page[data-v-528fbfc7] {
19
+ text-align: center;
20
+ }
21
+ .home_page img[data-v-528fbfc7] {
22
+ position: absolute;
23
+ top: 180px;
24
+ margin-left: -35px;
25
+ width: 70px;
26
+ height: 56px;
27
+ }
28
+ .home_page div[data-v-528fbfc7] {
29
+ position: absolute;
30
+ left: 50%;
31
+ top: 255px;
32
+ margin-left: -75px;
33
+ width: 150px;
34
+ height: 32px;
35
+ overflow: hidden;
36
+ }
37
+ .home_page div span[data-v-528fbfc7] {
38
+ /* position: absolute;
39
+ top:255px;
40
+ margin-left: -75px; */
41
+ width: 150px;
42
+ height: 32px;
43
+ position: absolute;
44
+ z-index: 10;
45
+ left: 0px;
46
+ }
47
+ .home_page div input[data-v-528fbfc7] {
48
+ position: absolute;
49
+ left: 0px;
50
+ top: 0px;
51
+ opacity: 0;
52
+ filter: 'alpha(opacity=0)';
53
+ z-index: 11;
54
+ }
55
+ .upload_button[data-v-528fbfc7] {
56
+ width: 110px;
57
+ height: 32px;
58
+ overflow: hidden;
59
+ }
60
+ .upload_button span[data-v-528fbfc7] {
61
+ position: relative;
62
+ right: -4px;
63
+ top: 4px;
64
+ width: 56px;
65
+ height: 22px;
66
+ font-size: 14px;
67
+ }
68
+ .upload_button input[data-v-528fbfc7] {
69
+ height: 32px;
70
+ width: 110px;
71
+ position: absolute;
72
+ left: 22px;
73
+ top: 12px;
74
+ opacity: 0;
75
+ filter: 'alpha(opacity=0)';
76
+ overflow: hidden;
77
+ }
78
+ .upload_button img[data-v-528fbfc7] {
79
+ position: relative;
80
+ left: -6px;
81
+ top: 3px;
82
+ width: 14px;
83
+ height: 14px;
84
+ }
85
+ .button_group_upload[data-v-528fbfc7] {
86
+ position: absolute;
87
+ right: 18px;
88
+ top: 12px;
89
+ height: 26px;
90
+ width: 92px;
91
+ }
92
+ .button_group_upload button[data-v-528fbfc7] {
93
+ height: 26px;
94
+ width: 26px;
95
+ }
96
+ .fileinput-button[data-v-528fbfc7] {
97
+ position: absolute;
98
+ right: 60px;
99
+ bottom: 40px;
100
+ overflow: hidden;
101
+ width: 24px;
102
+ height: 24px;
103
+ border-radius: 12px;
104
+ transform: scale(2.5);
105
+ -ms-transform: scale(2.5);
106
+ -moz-transform: scale(2.5);
107
+ -webkit-transform: scale(2.5);
108
+ -o-transform: scale(2.5);
109
+ color: rgb(6, 134, 253);
110
+ }
111
+ .fileinput-button input[data-v-528fbfc7] {
112
+ position: absolute;
113
+ left: 0px;
114
+ top: 0px;
115
+ opacity: 0;
116
+ filter: 'alpha(opacity=0)';
117
+ }
118
+ .pic-droplist[data-v-528fbfc7] {
119
+ height: 24px;
120
+ color: #e0e1e2;
121
+ background-color: #e0e1e2;
122
+ }
123
+ .pic-droplist input-group[data-v-528fbfc7] {
124
+ display: table-cell;
125
+ width: 100px;
126
+ text-align: center;
127
+ border: 0;
128
+ }
129
+ .pic-droplist input-group div[data-v-528fbfc7] {
130
+ border: 0;
131
+ }
132
+ .pic-droplist input-group div input[data-v-528fbfc7] {
133
+ background-color: #e0e1e2;
134
+ }
135
+ .pic-droplist input-group div div[data-v-528fbfc7] {
136
+ background-color: #e0e1e2;
137
+ }
138
+ .pic_list[data-v-528fbfc7] {
139
+ padding: 0;
140
+ height: 406px;
141
+ overflow-y: auto;
142
+ overflow-x: hidden;
143
+ /* //border: 1px solid #ddd; */
144
+ /*多出来的ul要剪掉*/
145
+ }
146
+ .pic_list ul[data-v-528fbfc7] {
147
+ padding: 0;
148
+ list-style: none;
149
+ width: 100%;
150
+ margin: 20px 0 0 20px;
151
+ }
152
+ .pic_list ul li[data-v-528fbfc7] {
153
+ height: 179px;
154
+ width: 135px;
155
+ margin: 8px 0 8px 12px;
156
+ float: left;
157
+ overflow: hidden;
158
+ align-items: center;
159
+ position: relative;
160
+ }
161
+
162
+
163
+ /* .pic_list ul li button {
164
+ position: absolute;
165
+ top: 0;
166
+ right: 0px;
167
+ width: 24px;
168
+ height: 24px;
169
+ } */
170
+ .pic_list ul li div[data-v-528fbfc7] {
171
+ width: 135px;
172
+ height: 159px;
173
+ margin: 0 0 0 0;
174
+ margin: auto;
175
+ display: table-cell;
176
+ vertical-align: middle;
177
+ text-align: center;
178
+ position: relative;
179
+ }
180
+ .pic_list ul li div img[data-v-528fbfc7] {
181
+ max-width: 60px;
182
+ max-height: 60px;
183
+ align-items: center;
184
+ margin: auto;
185
+ vertical-align: middle;
186
+ text-align: center;
187
+ }
188
+ .pic_list ul li span.filename[data-v-528fbfc7] {
189
+ width: 100px;
190
+ text-align: center;
191
+ overflow: hidden;
192
+ text-overflow: ellipsis;
193
+ white-space: nowrap;
194
+ }
195
+ .queue_list[data-v-528fbfc7] {
196
+ display: block;
197
+ height: 420px;
198
+ overflow-y: auto;
199
+ }
200
+ .file_list[data-v-528fbfc7] {
201
+ list-style: none;
202
+ margin: 0;
203
+ padding: 0;
204
+ overflow-x: hidden;
205
+ overflow-y: auto;
206
+ }
207
+ .file_list li[data-v-528fbfc7] {
208
+ /* //background: #e6e6e6;
209
+ border-bottom: 1px solid #d3d3d3; */
210
+ height: 50px;
211
+ line-height: 35px;
212
+ font-size: 16px;
213
+ position: relative;
214
+ }
215
+ .file_list li button[data-v-528fbfc7] {
216
+ float: right;
217
+ top: 6px;
218
+ right: 10px;
219
+ width: 20px;
220
+ }
221
+ .file_list li p.title[data-v-528fbfc7] {
222
+ padding: 0 0 0 6px;
223
+ margin: 0 210px 0 0;
224
+ }
225
+ .file_list li p.size[data-v-528fbfc7] {
226
+ position: absolute;
227
+ width: 100px;
228
+ top: 0;
229
+ right: 100px;
230
+ }
231
+ input#file[data-v-528fbfc7]:disabled {
232
+ cursor : not-allowed;
233
+ }
234
+ .help_text[data-v-528fbfc7] {
235
+ color : rgba(0, 0, 0, 0.35);
236
+ position: absolute;
237
+ top : 16px;
238
+ right : 120px;
239
+ }
240
+ .farris-header[data-v-528fbfc7] {
241
+ box-shadow: 0 2px 4px 0 rgba(57, 66, 100, .08);
242
+ }
@@ -0,0 +1,5 @@
1
+ export interface BrowserType {
2
+ type?: "Opera" | "Safari" | "Chrome" | "IE" | "FF" | "Edge" | "Unknown";
3
+ IEVersion?: "IE7" | "IE8" | "IE9" | "IE10" | "IE11" | "Unknown";
4
+ }
5
+ export declare function judgeBrowserType(): BrowserType;
@@ -0,0 +1,4 @@
1
+ export declare class ErrorUtil {
2
+ static getErrorMessage(err: any): string;
3
+ private static getMessage;
4
+ }
@@ -0,0 +1,16 @@
1
+ import { HttpResponseType } from '@farris/devkit-vue/types/http/types';
2
+
3
+ export declare function getBifOptions(body: string): {
4
+ headers: {
5
+ "Content-Type": string;
6
+ };
7
+ responseType: HttpResponseType;
8
+ body: string;
9
+ } | {
10
+ headers: {
11
+ "Content-Type": string;
12
+ };
13
+ responseType: HttpResponseType;
14
+ body?: undefined;
15
+ };
16
+ export declare function appendQueryParam(url: string, k: string, v: any): string;
@@ -0,0 +1,2 @@
1
+ export declare function canJSONParse(str: string): boolean;
2
+ export declare function handleJsonParam(extParams: {} | string): any;
@@ -0,0 +1 @@
1
+ export declare function convertPath(url: string): string;
@@ -0,0 +1,3 @@
1
+ export declare class GuidUtils {
2
+ static generateGUID(): string;
3
+ }
@@ -0,0 +1,6 @@
1
+ export * from './BrowserUtil';
2
+ export * from './ObjectUtils';
3
+ export * from './HttpUtils';
4
+ export * from './with-install';
5
+ export * from './guid-util';
6
+ export * from './ErrorUtil';
@@ -0,0 +1,3 @@
1
+ import { Component, Plugin } from 'vue';
2
+
3
+ export declare const withInstall: <T extends Component>(component: T) => T & Plugin<[]>;
@@ -0,0 +1,11 @@
1
+ declare class DownloadService {
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 DownloadService;
@@ -0,0 +1,21 @@
1
+ import { UploadFileInfo } from '../entity/uploadfileinfo';
2
+ import { UploadLimit } from '../entity/uploadlimit';
3
+ import { HttpClient, Injector } from '@farris/devkit-vue';
4
+ import { FModalService } from '@farris/ui-vue';
5
+ import { LocalLangPipe } from '../pipe';
6
+
7
+ declare class UploadDialogService {
8
+ localePipe: LocalLangPipe;
9
+ viewModel: any;
10
+ injector: Injector;
11
+ httpClient: HttpClient;
12
+ t: (key: string) => string;
13
+ modalService: FModalService;
14
+ constructor(localePipe: LocalLangPipe, viewModel: any, injector: Injector, httpClient: HttpClient);
15
+ dlg: any;
16
+ fileInfoList: UploadFileInfo[];
17
+ showDialog(formId?: string, rootId?: string): Promise<unknown>;
18
+ uploadFile(formId: string, rootId: string, oldIdList?: string[]): Promise<unknown>;
19
+ uploadFileWithLimit(formId: string, rootId: string, limit: UploadLimit, oldIdList?: string[]): Promise<unknown>;
20
+ }
21
+ export default UploadDialogService;
@@ -0,0 +1,2 @@
1
+ export * from './UploadDialogService';
2
+ export * from './DownloadService';