halo-fe 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.js +1518 -984
- package/dist/style.css +1 -0
- package/esm/coms/Code.vue.d.ts +41 -0
- package/esm/coms/Col.vue.d.ts +11 -0
- package/esm/coms/Compare.vue.d.ts +40 -0
- package/esm/coms/Container.vue.d.ts +23 -0
- package/esm/coms/Empty.vue.d.ts +26 -0
- package/esm/coms/Progress.vue.d.ts +8 -0
- package/esm/coms/Row.vue.d.ts +21 -0
- package/esm/coms/index.d.ts +8 -0
- package/esm/coms/types/CodeEmit.d.ts +23 -0
- package/esm/coms/types/CodeProps.d.ts +18 -0
- package/esm/coms/types/RowProps.d.ts +14 -0
- package/esm/coms/types/index.d.ts +4 -0
- package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
- package/esm/drivers/cdns/index.d.ts +2 -0
- package/esm/drivers/encoders/EncoderFactory.d.ts +2 -2
- package/esm/drivers/encoders/index.d.ts +2 -0
- package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
- package/esm/drivers/excels/index.d.ts +2 -1
- package/esm/drivers/explainers/index.d.ts +2 -0
- package/esm/drivers/factories/DriverFactory.d.ts +13 -12
- package/esm/drivers/factories/Factory.d.ts +1 -1
- package/esm/drivers/factories/IFactory.d.ts +1 -1
- package/esm/drivers/factories/index.d.ts +13 -1
- package/esm/drivers/features/FeatureFactory.d.ts +1 -1
- package/esm/drivers/features/index.d.ts +2 -1
- package/esm/drivers/hashers/HasherFactory.d.ts +2 -2
- package/esm/drivers/hashers/index.d.ts +2 -1
- package/esm/drivers/https/Http.d.ts +24 -0
- package/esm/drivers/https/HttpFactory.d.ts +20 -0
- package/esm/drivers/https/IHttp.d.ts +49 -0
- package/esm/drivers/https/entities/HttpMessage.d.ts +32 -0
- package/esm/drivers/https/entities/HttpRequest.d.ts +19 -0
- package/esm/drivers/{requesters → https}/entities/HttpResponse.d.ts +2 -5
- package/esm/drivers/{requesters/implements/DefaultRequester.d.ts → https/implements/DefaultHttp.d.ts} +4 -4
- package/esm/drivers/https/implements/HaloHttp.d.ts +37 -0
- package/esm/drivers/{requesters/implements/MkRequester.d.ts → https/implements/MkHttp.d.ts} +7 -7
- package/esm/drivers/https/index.d.ts +6 -0
- package/esm/drivers/index.d.ts +8 -10
- package/esm/drivers/providers/Provider.d.ts +17 -0
- package/esm/drivers/providers/ProviderFactory.d.ts +3 -3
- package/esm/drivers/providers/implements/IndexedDbProvider.d.ts +2 -2
- package/esm/drivers/providers/implements/StorageProvider.d.ts +4 -0
- package/esm/drivers/providers/index.d.ts +2 -1
- package/esm/drivers/signers/ISigner.d.ts +2 -2
- package/esm/drivers/signers/Signer.d.ts +13 -0
- package/esm/drivers/signers/SignerFactory.d.ts +1 -1
- package/esm/drivers/signers/implements/DefaultSigner.d.ts +4 -4
- package/esm/drivers/signers/index.d.ts +2 -1
- package/esm/drivers/ssos/ISso.d.ts +1 -1
- package/esm/drivers/ssos/SsoFactory.d.ts +1 -1
- package/esm/drivers/ssos/implements/AnonymousSso.d.ts +1 -1
- package/esm/drivers/ssos/implements/BearerSso.d.ts +1 -3
- package/esm/drivers/ssos/implements/NioSso.d.ts +1 -1
- package/esm/drivers/ssos/implements/SecretSso.d.ts +3 -3
- package/esm/drivers/ssos/implements/WeiXinSso.d.ts +1 -1
- package/esm/drivers/ssos/index.d.ts +2 -1
- package/esm/helpers/json-helper.d.ts +12 -4
- package/esm/helpers/object-helper.d.ts +4 -0
- package/esm/helpers/types/index.d.ts +0 -0
- package/esm/helpers/url-helper.d.ts +2 -2
- package/esm/main.d.ts +14 -3
- package/esm/services/index.d.ts +6 -12
- package/esm/services/types/IMessage.d.ts +14 -0
- package/esm/services/types/IMessager.d.ts +14 -0
- package/esm/services/types/index.d.ts +2 -0
- package/esm/stores/config.d.ts +10 -6
- package/esm/stores/driver.d.ts +2 -6
- package/esm/stores/index.d.ts +3 -2
- package/esm/stores/setting.d.ts +0 -4
- package/esm/stores/user.d.ts +3 -7
- package/esm/utilities/AffixUtility.d.ts +10 -0
- package/esm/utilities/EventUtility.d.ts +30 -0
- package/esm/utilities/KeyboardUtility.d.ts +73 -0
- package/esm/utilities/MouseUtility.d.ts +24 -0
- package/esm/utilities/index.d.ts +4 -0
- package/package.json +7 -7
- package/dist/vendor-axios-ud9O0vdJ.js +0 -1670
- package/esm/drivers/driver-helper.d.ts +0 -46
- package/esm/drivers/requesters/IRequester.d.ts +0 -25
- package/esm/drivers/requesters/Requester.d.ts +0 -13
- package/esm/drivers/requesters/RequesterFactory.d.ts +0 -21
- package/esm/drivers/requesters/entities/HttpRequest.d.ts +0 -34
- package/esm/drivers/requesters/implements/LocalRequester.d.ts +0 -43
- package/esm/drivers/requesters/index.d.ts +0 -5
- /package/esm/{thirds → plugins}/index.d.ts +0 -0
@@ -0,0 +1,73 @@
|
|
1
|
+
/**
|
2
|
+
* 键盘帮助类
|
3
|
+
*/
|
4
|
+
declare class KeyboardUtility {
|
5
|
+
events: Object;
|
6
|
+
/**
|
7
|
+
* 注册事件
|
8
|
+
*/
|
9
|
+
add: (element: any, cb: Function, condition: Function, key: string, prevent: boolean, type: string) => void;
|
10
|
+
/**
|
11
|
+
* 移除事件
|
12
|
+
*/
|
13
|
+
remove: (element: any, key: string, type: string) => void;
|
14
|
+
/**
|
15
|
+
* 监听键盘按下事件
|
16
|
+
*/
|
17
|
+
keydown: (element: any, cb: Function, condition: Function, key: string, prevent?: boolean) => void;
|
18
|
+
/**
|
19
|
+
* 移除键盘按下事件
|
20
|
+
*/
|
21
|
+
removeKeydown: (element: any, key: string) => void;
|
22
|
+
/**
|
23
|
+
* 当触发保存时执行
|
24
|
+
* 想在div上绑定ctrlS事件,需要div处于focus状态,才可以触发已绑定的ctrlS事件
|
25
|
+
* div设置tabindex=-1,才可以手动触发焦点
|
26
|
+
*/
|
27
|
+
ctrlS: (element: any, cb: Function) => void;
|
28
|
+
/**
|
29
|
+
* 移除保存事件
|
30
|
+
*/
|
31
|
+
removeCtrlS: (element: any) => void;
|
32
|
+
/**
|
33
|
+
* 触发Ctrl回车事件
|
34
|
+
*/
|
35
|
+
ctrlEnter: (element: any, cb: Function) => void;
|
36
|
+
/**
|
37
|
+
* 移除Ctrl回车事件
|
38
|
+
*/
|
39
|
+
removeCtrlEnter: (element: any) => void;
|
40
|
+
lastKeyTime: number;
|
41
|
+
isKeyLastUp: boolean;
|
42
|
+
/**
|
43
|
+
* 双击事件
|
44
|
+
*/
|
45
|
+
doubleKey: (element: any, cb: Function, key: string, prevent?: boolean) => void;
|
46
|
+
/**
|
47
|
+
* 移除双击事件
|
48
|
+
*/
|
49
|
+
removeDoubleKey: (element: any, key: string) => void;
|
50
|
+
/**
|
51
|
+
* 监听键盘抬起事件
|
52
|
+
*/
|
53
|
+
keyup: (element: any, cb: Function, condition: Function, key: string, prevent?: boolean) => void;
|
54
|
+
/**
|
55
|
+
* 移除键盘抬起事件
|
56
|
+
*/
|
57
|
+
removeKeyup: (element: any, key: string) => void;
|
58
|
+
/**
|
59
|
+
* 监控是否按下Ctrl
|
60
|
+
*/
|
61
|
+
isCtrl: boolean;
|
62
|
+
ctrl: (document: any) => void;
|
63
|
+
/**
|
64
|
+
* 删除Ctrl事件
|
65
|
+
*/
|
66
|
+
removeCtrl: (document: any) => void;
|
67
|
+
timer: number;
|
68
|
+
touchStart: Function;
|
69
|
+
touchEnd(): void;
|
70
|
+
touch: (element: any, cb: Function) => void;
|
71
|
+
removeTouch: (element: any) => void;
|
72
|
+
}
|
73
|
+
export default KeyboardUtility;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/**
|
2
|
+
* 鼠标工具类
|
3
|
+
*/
|
4
|
+
declare class MouseUtility {
|
5
|
+
container: HTMLElement;
|
6
|
+
closeTriggers: HTMLElement[];
|
7
|
+
/**
|
8
|
+
* 初始化,并绑定自动关闭上下文菜单事件
|
9
|
+
*/
|
10
|
+
constructor(container: HTMLElement, closeTriggers?: any[]);
|
11
|
+
/**
|
12
|
+
* 手动关闭右键上下文菜单
|
13
|
+
*/
|
14
|
+
close: () => void;
|
15
|
+
/**
|
16
|
+
* 根据鼠标事件,显示右键上下文弹窗
|
17
|
+
*/
|
18
|
+
show: (event: MouseEvent) => void;
|
19
|
+
/**
|
20
|
+
* 资源释放,防止内存泄漏
|
21
|
+
*/
|
22
|
+
dispose: () => void;
|
23
|
+
}
|
24
|
+
export default MouseUtility;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "halo-fe",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.3",
|
4
4
|
"description": "Halo front end sdk",
|
5
5
|
"scripts": {
|
6
6
|
"halo-fe:tsc": "vue-tsc",
|
@@ -31,22 +31,22 @@
|
|
31
31
|
"axios": "1.7.2",
|
32
32
|
"clone": "2.1.2",
|
33
33
|
"crypto-js": "4.2.0",
|
34
|
-
"echarts": "5.5.
|
34
|
+
"echarts": "5.5.1",
|
35
35
|
"file-saver": "2.0.5",
|
36
36
|
"moment": "2.30.1",
|
37
|
-
"monaco-editor": "0.
|
37
|
+
"monaco-editor": "0.50.0",
|
38
38
|
"pinia": "2.1.7",
|
39
39
|
"underscore": "1.13.6",
|
40
40
|
"underscore.string": "3.3.6",
|
41
|
-
"vue": "3.4.
|
41
|
+
"vue": "3.4.31",
|
42
42
|
"xlsx-js-style": "1.2.0"
|
43
43
|
},
|
44
44
|
"devDependencies": {
|
45
|
-
"@types/node": "20.14.
|
45
|
+
"@types/node": "20.14.10",
|
46
46
|
"@vitejs/plugin-vue": "5.0.5",
|
47
47
|
"@vitejs/plugin-vue-jsx": "4.0.0",
|
48
48
|
"sass": "1.77.6",
|
49
|
-
"vite": "5.3.
|
50
|
-
"vue-tsc": "2.0.
|
49
|
+
"vite": "5.3.3",
|
50
|
+
"vue-tsc": "2.0.26"
|
51
51
|
}
|
52
52
|
}
|