xframelib 0.9.5 → 0.9.7

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 (50) hide show
  1. package/README.md +3 -1
  2. package/dist/assets/worker-XXTEA-lcP6QMJU.js +6 -0
  3. package/dist/assets/worker-xmath-BzVwWco5.js +15 -0
  4. package/dist/controls/ADivider.vue.d.ts +19 -6
  5. package/dist/controls/index.d.ts +1 -1
  6. package/dist/controls/layoutcontainer/LayoutManager.d.ts +17 -15
  7. package/dist/controls/layoutcontainer/index.d.ts +1 -1
  8. package/dist/controls/layoutcontainer/layout.vue.d.ts +52 -32
  9. package/dist/controls/routertransition/RouterTransition.vue.d.ts +1 -3
  10. package/dist/controls/routertransition/RouterTransitionAnimate.vue.d.ts +6 -26
  11. package/dist/controls/routertransition/SuspenseWithError.vue.d.ts +3 -3
  12. package/dist/controls/routertransition/index.d.ts +3 -3
  13. package/dist/controls/splitpanes/index.d.ts +2 -2
  14. package/dist/controls/splitpanes/pane.vue.d.ts +40 -0
  15. package/dist/controls/splitpanes/splitpanes.vue.d.ts +109 -0
  16. package/dist/controls/vuewindow/index.d.ts +1 -1
  17. package/dist/controls/vuewindow/window/Button.vue.d.ts +5 -5
  18. package/dist/controls/vuewindow/window/index.vue.d.ts +38 -12
  19. package/dist/controls/xwindow/XWindow.vue.d.ts +51 -11
  20. package/dist/controls/xwindow/XWindowManager.d.ts +2 -1
  21. package/dist/controls/xwindow/index.d.ts +2 -3
  22. package/dist/core/Global.d.ts +1 -1
  23. package/dist/core/IModel.d.ts +10 -4
  24. package/dist/core/Init.d.ts +1 -1
  25. package/dist/directives/dragDirective.d.ts +1 -1
  26. package/dist/directives/index.d.ts +3 -3
  27. package/dist/directives/repeatClick.d.ts +1 -1
  28. package/dist/directives/wowDirective.d.ts +1 -1
  29. package/dist/hprose/index.d.ts +2 -2
  30. package/dist/index.css +202 -161
  31. package/dist/index.d.ts +1 -0
  32. package/dist/index.js +8 -2
  33. package/dist/model/Config.d.ts +1 -1
  34. package/dist/model/Layout.d.ts +1 -1
  35. package/dist/permission/filter.d.ts +7 -0
  36. package/dist/utils/AxiosHelper.d.ts +1 -1
  37. package/dist/utils/H5Tool.d.ts +1 -1
  38. package/dist/utils/RouterURLTool.d.ts +8 -0
  39. package/dist/utils/TokenHelper.d.ts +1 -4
  40. package/dist/utils/XXTEA.d.ts +1 -0
  41. package/dist/utils/ZipTool.d.ts +1 -1
  42. package/dist/utils/index.d.ts +10 -10
  43. package/dist/workers/index.d.ts +13 -0
  44. package/dist/workers/worker-XXTEA.d.ts +1 -0
  45. package/dist/workers/worker-xmath.d.ts +45 -0
  46. package/package.json +13 -11
  47. package/dist/index.cjs +0 -7
  48. package/dist/utils/FileUpload_bak.d.ts +0 -90
  49. package/dist/utils/FileUpload/346/226/260.d.ts +0 -102
  50. package/dist/utils/URLTool.d.ts +0 -18
@@ -1,90 +0,0 @@
1
- import { XhrHeaders } from 'xhr';
2
- export type FileEventName = 'attempt' | 'attemptFailure' | 'chunkSuccess' | 'error' | 'offline' | 'online' | 'progress' | 'success';
3
- export type AllowedMethods = 'PUT' | 'POST' | 'PATCH';
4
- /**
5
- * 文件上传配置
6
- */
7
- export interface FileUploadOptions {
8
- endpoint: string | ((file?: File) => Promise<string>);
9
- file: File;
10
- method?: AllowedMethods;
11
- headers?: XhrHeaders;
12
- maxFileSize?: number;
13
- chunkSize?: number;
14
- attempts?: number;
15
- /**
16
- * 单位:秒
17
- */
18
- delayBeforeAttempt?: number;
19
- md5?: string;
20
- }
21
- /**
22
- * 文件上传类
23
- */
24
- export declare class FileUpload {
25
- endpoint: string | ((file?: File) => Promise<string>);
26
- file: File;
27
- headers: XhrHeaders;
28
- method: AllowedMethods;
29
- chunkSize: number;
30
- attempts: number;
31
- delayBeforeAttempt: number;
32
- md5: string;
33
- private chunk?;
34
- private chunkCount;
35
- private chunkByteSize;
36
- private maxFileBytes;
37
- private endpointValue?;
38
- private totalChunks;
39
- private attemptCount;
40
- private offline;
41
- private paused;
42
- private success;
43
- private currentXhr?;
44
- private reader;
45
- private eventTarget;
46
- private fileName;
47
- constructor(options: FileUploadOptions);
48
- /**
49
- * 订阅事件
50
- */
51
- on(FileEventName: FileEventName, fn: (event: any) => void): void;
52
- abort(): void;
53
- pause(): void;
54
- resume(): void;
55
- /**
56
- * 发送消息
57
- */
58
- private dispatch;
59
- /**
60
- *验证参数的正确性
61
- */
62
- private validateOptions;
63
- /**
64
- * Endpoint can either be a URL or a function that returns a promise that resolves to a string.
65
- */
66
- private getEndpoint;
67
- /**
68
- * Get portion of the file of x bytes corresponding to chunkSize
69
- */
70
- private getChunk;
71
- private xhrPromise;
72
- /**
73
- * Send chunk of the file with appropriate headers and add post parameters if it's last chunk
74
- */
75
- private sendChunk;
76
- /**
77
- * 失败处理和尝试
78
- */
79
- private manageRetries;
80
- /**
81
- * 进行分片上传,并处理错误和重试
82
- */
83
- private sendChunks;
84
- }
85
- /**
86
- * 创建文件上传对象方法
87
- * @param options
88
- * @returns
89
- */
90
- export declare const createFileUpload: (options: FileUploadOptions) => FileUpload;
@@ -1,102 +0,0 @@
1
- import { XhrHeaders } from 'xhr';
2
- export type FileEventName = 'attempt' | 'attemptFailure' | 'chunkSuccess' | 'error' | 'offline' | 'online' | 'progress' | 'success';
3
- export type AllowedMethods = 'PUT' | 'POST' | 'PATCH';
4
- /**
5
- * 文件分片传输返回结果
6
- */
7
- export interface ChunkResult {
8
- DATASOURCEID?: string;
9
- NAME: string;
10
- INDEX: number;
11
- STATE: boolean;
12
- END: boolean;
13
- FILEPATH?: string;
14
- }
15
- /**
16
- * 文件上传配置
17
- */
18
- export interface FileUploadOptions {
19
- endpoint: string | ((file?: File) => Promise<string>);
20
- file: File;
21
- method?: AllowedMethods;
22
- headers?: XhrHeaders;
23
- maxFileSize?: number;
24
- chunkSize?: number;
25
- attempts?: number;
26
- /**
27
- * 单位:秒
28
- */
29
- delayBeforeAttempt?: number;
30
- md5?: string;
31
- }
32
- /**
33
- * 文件上传类
34
- */
35
- export declare class FileUpload {
36
- endpoint: string | ((file?: File) => Promise<string>);
37
- file: File;
38
- headers: XhrHeaders;
39
- method: AllowedMethods;
40
- chunkSize: number;
41
- attempts: number;
42
- delayBeforeAttempt: number;
43
- md5: string;
44
- private chunkCount;
45
- private chunkByteSize;
46
- private cacheSize;
47
- private currentMaxIndex;
48
- private maxFileBytes;
49
- private endpointValue?;
50
- private totalChunks;
51
- private attemptCount;
52
- private offline;
53
- private paused;
54
- private success;
55
- private isResumed;
56
- private mapXhrRequest;
57
- private okRecordList;
58
- private eventTarget;
59
- private fileName;
60
- constructor(options: FileUploadOptions);
61
- /**
62
- * 订阅事件
63
- */
64
- on(FileEventName: FileEventName, fn: (event: any) => void): void;
65
- abort(): void;
66
- pause(): void;
67
- resume(): Promise<void>;
68
- /**
69
- * 发送消息
70
- */
71
- private dispatch;
72
- /**
73
- *验证参数的正确性
74
- */
75
- private validateOptions;
76
- /**
77
- * Endpoint can either be a URL or a function that returns a promise that resolves to a string.
78
- */
79
- private getEndpoint;
80
- /**
81
- * Get portion of the file of x bytes corresponding to chunkSize
82
- */
83
- private getChunk;
84
- private xhrPromise;
85
- /**
86
- * Send chunk of the file with appropriate headers and add post parameters if it's last chunk
87
- */
88
- private sendChunk;
89
- /**
90
- * 失败处理和尝试
91
- */
92
- /**
93
- * 进行分片上传,并处理错误和重试
94
- */
95
- private sendChunks;
96
- }
97
- /**
98
- * 创建文件上传对象方法
99
- * @param options
100
- * @returns
101
- */
102
- export declare const createFileUpload: (options: FileUploadOptions) => FileUpload;
@@ -1,18 +0,0 @@
1
- /**
2
- * 将对象添加当作参数拼接到URL上面
3
- * @param baseUrl 需要拼接的url
4
- * @param obj 参数对象
5
- * @returns {string} 拼接后的对象
6
- * 例子:
7
- * let obj = {a: '3', b: '4'}
8
- * setObjToUrlParams('www.baidu.com', obj)
9
- * ==>www.baidu.com?a=3&b=4
10
- */
11
- export declare function ObjToUrlParams(baseUrl: string, obj: object): string;
12
- /**
13
- * 深入拷贝对象, 将target合并到src里
14
- * @param src 原始对象
15
- * @param target 要合并的对象
16
- * @returns 更新后的原始对象
17
- */
18
- export declare function deepMerge<T = any>(src?: any, target?: any): T;