halo-fe 1.0.30 → 1.0.32
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/{liquidjs-C2HVw1Ra.js → liquidjs-BfOWWjtJ.js} +119 -113
- package/dist/main.js +1501 -1282
- package/dist/style.css +1 -1
- package/esm/apps/index.d.ts +2 -0
- package/esm/coms/@types/SocketProgressProps.d.ts +4 -0
- package/esm/coms/index.d.ts +1 -0
- package/esm/coms/layouts/Container.vue.d.ts +6 -2
- package/esm/coms/tags/@types/TagProps.d.ts +7 -0
- package/esm/coms/tags/@types/index.d.ts +2 -0
- package/esm/coms/tags/Index.vue.d.ts +17 -0
- package/esm/coms/tags/index.d.ts +2 -0
- package/esm/drivers/cdns/Cdn.d.ts +6 -2
- package/esm/drivers/cdns/implements/LocalCdn.d.ts +0 -1
- package/esm/drivers/cryptors/Cryptor.d.ts +11 -0
- package/esm/drivers/cryptors/CryptorFactory.d.ts +13 -0
- package/esm/drivers/cryptors/ICryptor.d.ts +15 -0
- package/esm/drivers/cryptors/implements/AesCryptor.d.ts +10 -0
- package/esm/drivers/cryptors/index.d.ts +3 -0
- package/esm/drivers/encryptors/Encryptor.d.ts +11 -0
- package/esm/drivers/encryptors/EncryptorFactory.d.ts +13 -0
- package/esm/drivers/encryptors/IEncryptor.d.ts +15 -0
- package/esm/drivers/encryptors/implements/AesEncryptor.d.ts +10 -0
- package/esm/drivers/encryptors/index.d.ts +3 -0
- package/esm/drivers/hashers/Hasher.d.ts +1 -1
- package/esm/drivers/hashers/HasherFactory.d.ts +5 -1
- package/esm/drivers/hashers/IHasher.d.ts +1 -1
- package/esm/drivers/hashers/implement/Md5Hasher.d.ts +1 -1
- package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +1 -1
- package/esm/drivers/https/Http.d.ts +5 -1
- package/esm/drivers/https/HttpFactory.d.ts +2 -2
- package/esm/drivers/https/IHttp.d.ts +2 -2
- package/esm/drivers/https/entities/HttpProgress.d.ts +9 -0
- package/esm/drivers/https/entities/HttpRequest.d.ts +4 -0
- package/esm/drivers/https/entities/index.d.ts +4 -0
- package/esm/drivers/https/implements/DefaultHttp.d.ts +0 -1
- package/esm/drivers/https/implements/EiHttp.d.ts +32 -0
- package/esm/drivers/https/implements/HaloHttp.d.ts +1 -5
- package/esm/drivers/https/implements/MkHttp.d.ts +1 -5
- package/esm/drivers/https/index.d.ts +2 -3
- package/esm/drivers/index.d.ts +1 -0
- package/esm/drivers/providers/IProvider.d.ts +1 -1
- package/esm/drivers/providers/Provider.d.ts +10 -10
- package/esm/drivers/providers/ProviderFactory.d.ts +3 -3
- package/esm/drivers/providers/implements/CookieProvider.d.ts +7 -11
- package/esm/drivers/providers/implements/IndexedDbProvider.d.ts +10 -13
- package/esm/drivers/providers/implements/StorageProvider.d.ts +11 -11
- package/esm/drivers/sockets/entities/SocketProgress.d.ts +5 -1
- package/esm/drivers/util/implements/ArrayUtil.d.ts +1 -1
- package/esm/drivers/util/implements/JsonUtil.d.ts +1 -1
- package/esm/drivers/util/implements/ObjectUtil.d.ts +8 -0
- package/esm/drivers/util/implements/StringUtil.d.ts +4 -0
- package/esm/drivers/util/implements/TimeUtil.d.ts +19 -19
- package/esm/drivers/util/implements/UrlUtil.d.ts +16 -6
- package/esm/drivers/utilities/implement/EventUtility.d.ts +1 -1
- package/esm/factory/Factories.d.ts +5 -1
- package/esm/factory/Utils.d.ts +1 -2
- package/esm/repos/implements/ModuleRepo.d.ts +18 -1
- package/package.json +4 -4
@@ -4,18 +4,14 @@ import Provider from "../Provider";
|
|
4
4
|
*/
|
5
5
|
declare class StorageProvider extends Provider {
|
6
6
|
type: string;
|
7
|
-
|
8
|
-
|
7
|
+
getEntityAsync<T>(table: string, key: string): Promise<T>;
|
8
|
+
getAsync(table: string, key: any): Promise<any>;
|
9
9
|
getKeysAsync(table: string): Promise<any[]>;
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
updateAsync(kind: string, key: any, entity: any): Promise<any>;
|
16
|
-
deleteAsync(kind: string, key: any): Promise<any>;
|
17
|
-
commit(): void;
|
18
|
-
dispose(): void;
|
10
|
+
insertAsync(table: string, key: any, entity: any): Promise<any>;
|
11
|
+
saveEntity<T>(table: string, key: any, entity: T): Promise<any>;
|
12
|
+
saveAsync(table: string, key: any, entity: any): Promise<any>;
|
13
|
+
updateAsync(table: string, key: any, entity: any): Promise<any>;
|
14
|
+
deleteAsync(table: string, key: any): Promise<any>;
|
19
15
|
/**
|
20
16
|
* 以5M为基准,获取剩余可用容量(KB)
|
21
17
|
*/
|
@@ -24,5 +20,9 @@ declare class StorageProvider extends Provider {
|
|
24
20
|
* 判断指定值是否能够存储到storage中
|
25
21
|
*/
|
26
22
|
canStorage: (value: object) => boolean;
|
23
|
+
/**
|
24
|
+
* 获取唯一键
|
25
|
+
*/
|
26
|
+
getKey(table: string, type: string): string;
|
27
27
|
}
|
28
28
|
export default StorageProvider;
|
@@ -22,6 +22,10 @@ declare class SocketProgress<T> {
|
|
22
22
|
* 当前消息体
|
23
23
|
*/
|
24
24
|
current: T;
|
25
|
+
/**
|
26
|
+
* 初始化
|
27
|
+
*/
|
28
|
+
constructor(total: number);
|
25
29
|
/**
|
26
30
|
* 增加成功进度
|
27
31
|
*/
|
@@ -29,6 +33,6 @@ declare class SocketProgress<T> {
|
|
29
33
|
/**
|
30
34
|
* 增加异常进度
|
31
35
|
*/
|
32
|
-
error(current: T
|
36
|
+
error(current: T): void;
|
33
37
|
}
|
34
38
|
export default SocketProgress;
|
@@ -106,7 +106,7 @@ declare class ArrayUtil extends Util {
|
|
106
106
|
/**
|
107
107
|
* 按照指定函数对数组排序
|
108
108
|
*/
|
109
|
-
orderBy: (entities: any[], orderByFns: Function | Function[],
|
109
|
+
orderBy: (entities: any[], orderByFns: Function | Function[], asc?: boolean) => any[];
|
110
110
|
/**
|
111
111
|
* 分组,封装成字典而不是集合,大数据场景速度提升百倍
|
112
112
|
*/
|
@@ -56,6 +56,14 @@ declare class ObjectUtil extends Util {
|
|
56
56
|
* 给对象添加多层属性,并赋值
|
57
57
|
*/
|
58
58
|
addProperties: (obj: object, keys: string[], value: string) => void;
|
59
|
+
/**
|
60
|
+
* 排序并生成新对象
|
61
|
+
*/
|
62
|
+
sort(value: {
|
63
|
+
[key: string]: string;
|
64
|
+
}): {
|
65
|
+
[key: string]: string;
|
66
|
+
};
|
59
67
|
/**
|
60
68
|
* 获取对象不区分大小写的key
|
61
69
|
*/
|
@@ -100,5 +100,9 @@ declare class StringUtil extends Util {
|
|
100
100
|
* 格式化成留指定位数的小数
|
101
101
|
*/
|
102
102
|
formatDigits: (value: string, digits: number) => string;
|
103
|
+
/**
|
104
|
+
* 把字符串分割成多行
|
105
|
+
*/
|
106
|
+
splitLines: (content: string, separator?: string) => string[];
|
103
107
|
}
|
104
108
|
export default StringUtil;
|
@@ -12,54 +12,54 @@ declare class TimeUtil extends Util {
|
|
12
12
|
* 根据字符串获取可对比的时间
|
13
13
|
*/
|
14
14
|
getTime: (value?: any) => Date;
|
15
|
-
/**
|
16
|
-
* 格式化时间
|
17
|
-
*/
|
18
|
-
format: (value: number, format: string) => string;
|
19
15
|
/**
|
20
16
|
* 对时间值进行时间格式化
|
21
17
|
*/
|
22
|
-
|
18
|
+
formatMillisecondTime: (value?: string) => string;
|
23
19
|
/**
|
24
20
|
* 对时间值进行时间格式化
|
25
21
|
*/
|
26
|
-
|
22
|
+
formatSecondTime: (value?: any) => string;
|
27
23
|
/**
|
28
24
|
* 格式化成24小时时间格式
|
29
25
|
*/
|
30
|
-
formatTime: (value
|
26
|
+
formatTime: (value?: any) => string;
|
31
27
|
/**
|
32
28
|
* 对时间值进行日期格式化
|
33
29
|
*/
|
34
|
-
formatDate: (value
|
30
|
+
formatDate: (value?: any) => string;
|
35
31
|
/**
|
36
|
-
* 格式化时间
|
32
|
+
* 格式化时间 YYYY-MM-DD HH:mm:ss
|
37
33
|
*/
|
38
|
-
formatDateTime: (value
|
34
|
+
formatDateTime: (value?: any) => string;
|
39
35
|
/**
|
40
|
-
*
|
36
|
+
* 格式化时间
|
41
37
|
*/
|
42
|
-
|
38
|
+
format: (value: any, format: string) => string;
|
43
39
|
/**
|
44
|
-
*
|
40
|
+
* 添加小时
|
45
41
|
*/
|
46
|
-
|
42
|
+
addHours: (value: any, hours: number) => Date;
|
47
43
|
/**
|
48
|
-
*
|
44
|
+
* 添加天数
|
49
45
|
*/
|
50
|
-
|
46
|
+
addDays: (value: any, days: number) => Date;
|
51
47
|
/**
|
52
48
|
* 添加天数
|
53
49
|
*/
|
54
|
-
|
50
|
+
addWeeks: (value: any, weeks: number) => Date;
|
55
51
|
/**
|
56
52
|
* 添加月份
|
57
53
|
*/
|
58
54
|
addMonths: (value: any, months: number) => Date;
|
59
55
|
/**
|
60
|
-
*
|
56
|
+
* 添加年份
|
61
57
|
*/
|
62
|
-
|
58
|
+
addYears: (value: any, years: number) => Date;
|
59
|
+
/**
|
60
|
+
* 添加时间
|
61
|
+
*/
|
62
|
+
add: (value: any, amount: number, type: any) => Date;
|
63
63
|
/**
|
64
64
|
* 判断指定时间是否是周末
|
65
65
|
*/
|
@@ -33,10 +33,6 @@ declare class UrlUtil extends Util {
|
|
33
33
|
* 如:app=Tool&compare[language]=json&compare[sql]=App%3D%27Tool%27+and+[Table]+like+%27Ctl_%25%27+order+by+[Table],+Name
|
34
34
|
*/
|
35
35
|
getQuery(value: any): string;
|
36
|
-
/**
|
37
|
-
* 处理键值对的值
|
38
|
-
*/
|
39
|
-
private handleQueryValue;
|
40
36
|
/**
|
41
37
|
* 自动根据后面路径,决定是否要合并Url
|
42
38
|
*/
|
@@ -66,14 +62,24 @@ declare class UrlUtil extends Util {
|
|
66
62
|
* 获取地址中的查询参数
|
67
63
|
*/
|
68
64
|
getQueryParam(url: string, key: string): string;
|
65
|
+
/**
|
66
|
+
* 反序列化成排序对象
|
67
|
+
*/
|
68
|
+
deserializeSorted(url: string): {
|
69
|
+
[key: string]: string;
|
70
|
+
};
|
69
71
|
/**
|
70
72
|
* 从Url中提取查询对象
|
71
73
|
*/
|
72
|
-
deserialize(url: string):
|
74
|
+
deserialize(url: string): {
|
75
|
+
[key: string]: string;
|
76
|
+
};
|
73
77
|
/**
|
74
78
|
* 把查询字符串转换成对象(自动解码成源数据)
|
75
79
|
*/
|
76
|
-
deserializeQs(qs: string, decode?: boolean):
|
80
|
+
deserializeQs(qs: string, decode?: boolean): {
|
81
|
+
[key: string]: string;
|
82
|
+
};
|
77
83
|
/**
|
78
84
|
* 把对象转换成查询字符串,自动编码
|
79
85
|
*/
|
@@ -86,5 +92,9 @@ declare class UrlUtil extends Util {
|
|
86
92
|
* 是否是http或https开头的地址
|
87
93
|
*/
|
88
94
|
httpOrHttps(url: string): boolean;
|
95
|
+
/**
|
96
|
+
* 处理键值对的值
|
97
|
+
*/
|
98
|
+
private handleQueryValue;
|
89
99
|
}
|
90
100
|
export default UrlUtil;
|
@@ -13,7 +13,7 @@ declare class EventUtility extends Utility {
|
|
13
13
|
/**
|
14
14
|
* 大小改变事件,已防抖
|
15
15
|
*/
|
16
|
-
resize: (element: Element, handler: (entries: ResizeObserverEntry[]) => void
|
16
|
+
resize: (element: Element, handler: (entries: ResizeObserverEntry[]) => Promise<void>, debounceMs?: number) => void;
|
17
17
|
scrollElement: Element;
|
18
18
|
scrollHandler: (event: Event) => void;
|
19
19
|
/**
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BuilderFactory, CdnFactory, EncoderFactory, ExcelFactory, ExplainerFactory, FeatureFactory, HasherFactory, UtilFactory, I18nFactory, HttpFactory, MessengerFactory, ProviderFactory, SignerFactory, SocketFactory, SsoFactory, TaskFactory, TemplateFactory, UtilityFactory } from "../drivers";
|
1
|
+
import { BuilderFactory, CdnFactory, EncoderFactory, CryptorFactory, ExcelFactory, ExplainerFactory, FeatureFactory, HasherFactory, UtilFactory, I18nFactory, HttpFactory, MessengerFactory, ProviderFactory, SignerFactory, SocketFactory, SsoFactory, TaskFactory, TemplateFactory, UtilityFactory } from "../drivers";
|
2
2
|
import { RepoFactory } from "../repos";
|
3
3
|
import { SvcFactory } from "../svcs";
|
4
4
|
/**
|
@@ -23,6 +23,10 @@ declare class Factories {
|
|
23
23
|
* 编码器工厂
|
24
24
|
*/
|
25
25
|
static get encoder(): EncoderFactory;
|
26
|
+
/**
|
27
|
+
* 加解密工厂
|
28
|
+
*/
|
29
|
+
static get encryptor(): CryptorFactory;
|
26
30
|
/**
|
27
31
|
* Excel工厂
|
28
32
|
*/
|
package/esm/factory/Utils.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ArrayUtil, ComponentUtil, DomUtil, DictionaryUtil, EventUtil, FileUtil, HtmlUtil, ImageUtil, MathUtil, MountUtil, ObjectUtil, MicroUtil, StringUtil, TaskUtil,
|
1
|
+
import { ArrayUtil, ComponentUtil, DomUtil, DictionaryUtil, EventUtil, FileUtil, HtmlUtil, ImageUtil, MathUtil, MountUtil, ObjectUtil, MicroUtil, StringUtil, TaskUtil, TimeUtil, TreeUtil, ScrollUtil, JsonUtil, BrowserUtil, UrlUtil, SignUtil } from "../drivers/util";
|
2
2
|
/**
|
3
3
|
* 工具工厂(无状态)
|
4
4
|
*/
|
@@ -20,7 +20,6 @@ declare class Utils {
|
|
20
20
|
static get scroll(): ScrollUtil;
|
21
21
|
static get string(): StringUtil;
|
22
22
|
static get task(): TaskUtil;
|
23
|
-
static get type(): TypeUtil;
|
24
23
|
static get time(): TimeUtil;
|
25
24
|
static get tree(): TreeUtil;
|
26
25
|
static get url(): UrlUtil;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import Repo from "../Repo";
|
2
|
+
import { SocketResponse } from "../../drivers";
|
2
3
|
import { KeyboardType } from "../entities";
|
3
4
|
/**
|
4
5
|
* 模块仓储
|
@@ -27,10 +28,26 @@ declare class ModuleRepo extends Repo {
|
|
27
28
|
* 展开所有数据表的搜索字段信息
|
28
29
|
*/
|
29
30
|
expandSearch(schema: any[]): any[];
|
31
|
+
/**
|
32
|
+
* 触发刷新
|
33
|
+
*/
|
34
|
+
triggerRefresh: (ref: any) => boolean;
|
35
|
+
/**
|
36
|
+
* 页面关闭时触发
|
37
|
+
*/
|
38
|
+
triggerClose: (ref: any, event: BeforeUnloadEvent) => boolean;
|
30
39
|
/**
|
31
40
|
* 触发键盘事件
|
32
41
|
* 统一封装,方便重构
|
33
42
|
*/
|
34
|
-
|
43
|
+
triggerKeyboard: (ref: any, type: KeyboardType, event: KeyboardEvent) => boolean;
|
44
|
+
/**
|
45
|
+
* 触发Socket通信事件
|
46
|
+
*/
|
47
|
+
triggerSocket: (ref: any, socketRes: SocketResponse<any>) => void;
|
48
|
+
/**
|
49
|
+
* 触发页面大小调整事件
|
50
|
+
*/
|
51
|
+
triggerResize: (ref: any, event: ResizeObserverEntry) => boolean;
|
35
52
|
}
|
36
53
|
export default ModuleRepo;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "halo-fe",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.32",
|
4
4
|
"description": "Halo front end sdk",
|
5
5
|
"scripts": {
|
6
6
|
"halo-fe:tsc": "vue-tsc",
|
@@ -33,21 +33,21 @@
|
|
33
33
|
"dependencies": {
|
34
34
|
"clone": "2.1.2",
|
35
35
|
"file-saver": "2.0.5",
|
36
|
-
"liquidjs": "10.
|
36
|
+
"liquidjs": "10.18.0",
|
37
37
|
"moment": "2.30.1",
|
38
38
|
"underscore": "1.13.7",
|
39
39
|
"underscore.string": "3.3.6",
|
40
40
|
"vue": "3.5.12"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
|
-
"@types/node": "22.7.
|
43
|
+
"@types/node": "22.7.7",
|
44
44
|
"@vitejs/plugin-vue": "5.1.4",
|
45
45
|
"@vitejs/plugin-vue-jsx": "4.0.1",
|
46
46
|
"crypto-js": "4.2.0",
|
47
47
|
"echarts": "5.5.1",
|
48
48
|
"monaco-editor": "0.52.0",
|
49
49
|
"quill": "2.0.2",
|
50
|
-
"sass": "1.
|
50
|
+
"sass": "1.80.3",
|
51
51
|
"vite": "5.4.9",
|
52
52
|
"vue-tsc": "2.1.6",
|
53
53
|
"xlsx-js-style": "1.2.0"
|