halo-fe 1.0.23 → 1.0.24
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/{liquidjs-C-LVcoaY.js → liquidjs-B8dqQyVv.js} +639 -632
- package/dist/main.js +2084 -2005
- package/esm/coms/Empty.vue.d.ts +15 -13
- package/esm/coms/Fill.vue.d.ts +14 -5
- package/esm/coms/Scroller.vue.d.ts +19 -16
- package/esm/coms/Timer.vue.d.ts +12 -5
- package/esm/coms/conditions/Condition.vue.d.ts +1 -10
- package/esm/coms/conditions/Index.vue.d.ts +1 -10
- package/esm/coms/controls/Code.vue.d.ts +19 -17
- package/esm/coms/controls/Compare.vue.d.ts +11 -19
- package/esm/coms/controls/Option.vue.d.ts +1 -1
- package/esm/coms/controls/RichText.vue.d.ts +6 -15
- package/esm/coms/controls/Select.vue.d.ts +1 -1
- package/esm/coms/layouts/Col.vue.d.ts +11 -4
- package/esm/coms/layouts/Container.vue.d.ts +15 -11
- package/esm/coms/layouts/Row.vue.d.ts +11 -14
- package/esm/coms/progresses/Progress.vue.d.ts +4 -16
- package/esm/coms/progresses/SocketProgress.vue.d.ts +11 -13
- package/esm/coms/tables/Table.vue.d.ts +1 -1
- package/esm/coms/tabs/Tab.vue.d.ts +1 -10
- package/esm/coms/tabs/TabPane.vue.d.ts +1 -1
- package/esm/drivers/builders/types/ProviderTable.d.ts +6 -0
- package/esm/drivers/builders/types/index.d.ts +2 -0
- package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
- package/esm/drivers/helpers/implements/ArrayHelper.d.ts +1 -2
- package/esm/drivers/helpers/implements/DomHelper.d.ts +1 -1
- package/esm/drivers/index.d.ts +1 -0
- package/esm/drivers/utilities/@types/DragEvent.d.ts +11 -0
- package/esm/drivers/utilities/@types/DragOptions.d.ts +28 -0
- package/esm/drivers/utilities/@types/Position.d.ts +15 -0
- package/esm/drivers/utilities/@types/Rect.d.ts +10 -0
- package/esm/drivers/utilities/@types/index.d.ts +5 -0
- package/esm/drivers/utilities/IUtility.d.ts +4 -0
- package/esm/drivers/utilities/Utility.d.ts +5 -0
- package/esm/drivers/utilities/UtilityFactory.d.ts +43 -0
- package/esm/drivers/utilities/implement/AffixUtility.d.ts +11 -0
- package/esm/drivers/utilities/implement/DeltaUtility.d.ts +11 -0
- package/esm/drivers/utilities/implement/EventUtility.d.ts +73 -0
- package/esm/drivers/utilities/implement/KeyboardUtility.d.ts +74 -0
- package/esm/drivers/utilities/implement/MouseUtility.d.ts +25 -0
- package/esm/drivers/utilities/implement/RandomUtility.d.ts +41 -0
- package/esm/drivers/utilities/implement/SaveUtility.d.ts +16 -0
- package/esm/drivers/utilities/index.d.ts +9 -0
- package/esm/factorying/Factories.d.ts +5 -1
- package/esm/factorying/{Helpers.d.ts → Helps.d.ts} +2 -2
- package/esm/factorying/Utils.d.ts +14 -0
- package/esm/factorying/index.d.ts +2 -2
- package/esm/helpers/DictionaryHelper.d.ts +6 -0
- package/esm/main.d.ts +1 -1
- package/esm/svcs/@types/Dictionary.d.ts +4 -0
- package/esm/svcs/implement/DriverSvc.d.ts +4 -0
- package/esm/svcs/implement/I18nSvc.d.ts +1 -1
- package/esm/svcs/index.d.ts +1 -0
- package/esm/utilities/MathUtility.d.ts +35 -0
- package/package.json +9 -9
- package/esm/coms/Code.vue.d.ts +0 -41
- package/esm/coms/Col.vue.d.ts +0 -11
- package/esm/coms/Compare.vue.d.ts +0 -40
- package/esm/coms/Container.vue.d.ts +0 -23
- package/esm/coms/RichText.vue.d.ts +0 -24
- package/esm/coms/Row.vue.d.ts +0 -21
- package/esm/coms/types/CodeEmit.d.ts +0 -23
- package/esm/coms/types/CodeProps.d.ts +0 -18
- package/esm/coms/types/RichTextOptions.d.ts +0 -14
- package/esm/coms/types/RichTextProps.d.ts +0 -12
- package/esm/coms/types/RowProps.d.ts +0 -14
- package/esm/drivers/IDriver.d.ts +0 -10
- package/esm/drivers/cdns/implements/BootCdn.d.ts +0 -12
- package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +0 -15
- package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +0 -21
- package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +0 -12
- package/esm/drivers/factories/DriverFactory.d.ts +0 -64
- package/esm/drivers/factories/Factory.d.ts +0 -18
- package/esm/drivers/factories/IFactory.d.ts +0 -18
- package/esm/drivers/factories/index.d.ts +0 -42
- package/esm/drivers/providers/implements/StorageHelper.d.ts +0 -34
- package/esm/helpers/ScriptHelper.d.ts +0 -19
- package/esm/helpers/array-helper.d.ts +0 -97
- package/esm/helpers/component-helper.d.ts +0 -18
- package/esm/helpers/cookie-helper.d.ts +0 -6
- package/esm/helpers/dictionary-helper.d.ts +0 -18
- package/esm/helpers/dom-helper.d.ts +0 -86
- package/esm/helpers/event-helper.d.ts +0 -30
- package/esm/helpers/file-helper.d.ts +0 -22
- package/esm/helpers/html-helper.d.ts +0 -10
- package/esm/helpers/i18n-helper.d.ts +0 -14
- package/esm/helpers/image-helper.d.ts +0 -10
- package/esm/helpers/json-helper.d.ts +0 -39
- package/esm/helpers/math-helper.d.ts +0 -46
- package/esm/helpers/micro-helper.d.ts +0 -10
- package/esm/helpers/mount-helper.d.ts +0 -14
- package/esm/helpers/object-helper.d.ts +0 -38
- package/esm/helpers/script-helper.d.ts +0 -31
- package/esm/helpers/scroll-helper.d.ts +0 -14
- package/esm/helpers/sign-helper.d.ts +0 -14
- package/esm/helpers/storage-helper.d.ts +0 -34
- package/esm/helpers/string-helper.d.ts +0 -94
- package/esm/helpers/task-helper.d.ts +0 -26
- package/esm/helpers/time-helper.d.ts +0 -66
- package/esm/helpers/tree-helper.d.ts +0 -54
- package/esm/helpers/type-helper.d.ts +0 -26
- package/esm/helpers/url-helper.d.ts +0 -96
- package/esm/plugins/HtmlTransform.d.ts +0 -6
- package/esm/plugins/types/IMessager.d.ts +0 -34
- package/esm/plugins/types/index.d.ts +0 -7
- package/esm/services/ConfigService.d.ts +0 -66
- package/esm/services/DriverService.d.ts +0 -36
- package/esm/services/EnvService.d.ts +0 -14
- package/esm/services/LogService.d.ts +0 -19
- package/esm/services/SettingService.d.ts +0 -42
- package/esm/services/SocketService.d.ts +0 -23
- package/esm/services/UserService.d.ts +0 -47
- package/esm/services/index.d.ts +0 -15
- package/esm/services/types/IMessage.d.ts +0 -14
- package/esm/services/types/IMessager.d.ts +0 -34
- package/esm/services/types/index.d.ts +0 -2
- package/esm/servs/ConfigServ.d.ts +0 -66
- package/esm/servs/DriverServ.d.ts +0 -36
- package/esm/servs/EnvServ.d.ts +0 -14
- package/esm/servs/IServ.d.ts +0 -6
- package/esm/servs/LogServ.d.ts +0 -19
- package/esm/servs/Serv.d.ts +0 -4
- package/esm/servs/ServFactory.d.ts +0 -11
- package/esm/servs/SettingServ.d.ts +0 -42
- package/esm/servs/SocketServ.d.ts +0 -38
- package/esm/servs/UserServ.d.ts +0 -47
- package/esm/servs/implement/ConfigServ.d.ts +0 -66
- package/esm/servs/implement/DriverServ.d.ts +0 -36
- package/esm/servs/implement/EnvServ.d.ts +0 -14
- package/esm/servs/implement/LogServ.d.ts +0 -19
- package/esm/servs/implement/SettingServ.d.ts +0 -42
- package/esm/servs/implement/SocketServ.d.ts +0 -38
- package/esm/servs/implement/UserServ.d.ts +0 -47
- package/esm/servs/index.d.ts +0 -15
- package/esm/stores/config.d.ts +0 -63
- package/esm/stores/driver.d.ts +0 -37
- package/esm/stores/env.d.ts +0 -12
- package/esm/stores/index.d.ts +0 -8
- package/esm/stores/log.d.ts +0 -20
- package/esm/stores/setting.d.ts +0 -43
- package/esm/stores/socket.d.ts +0 -27
- package/esm/stores/user.d.ts +0 -40
- package/esm/types/CreateOptions.d.ts +0 -18
@@ -0,0 +1,43 @@
|
|
1
|
+
import { Factory } from "../../factorying";
|
2
|
+
import IUtility from "./IUtility";
|
3
|
+
import AffixUtility from "./implement/AffixUtility";
|
4
|
+
import DeltaUtility from "./implement/DeltaUtility";
|
5
|
+
import EventUtility from "./implement/EventUtility";
|
6
|
+
import KeyboardUtility from "./implement/KeyboardUtility";
|
7
|
+
import RandomUtility from "./implement/RandomUtility";
|
8
|
+
import SaveUtility from "./implement/SaveUtility";
|
9
|
+
import MouseUtility from "./implement/MouseUtility";
|
10
|
+
/**
|
11
|
+
* 工具类工厂
|
12
|
+
*/
|
13
|
+
declare class UtilityFactory extends Factory<IUtility> {
|
14
|
+
/**
|
15
|
+
* 创建固定工具
|
16
|
+
*/
|
17
|
+
affix(ele: Element, parent: Element): AffixUtility;
|
18
|
+
/**
|
19
|
+
* 创建对比工具
|
20
|
+
*/
|
21
|
+
delta(): DeltaUtility;
|
22
|
+
/**
|
23
|
+
* 创建固定工具
|
24
|
+
*/
|
25
|
+
event(): EventUtility;
|
26
|
+
/**
|
27
|
+
* 键盘工具
|
28
|
+
*/
|
29
|
+
keyboard(): KeyboardUtility;
|
30
|
+
/**
|
31
|
+
* 鼠标工具
|
32
|
+
*/
|
33
|
+
mouse(container: HTMLElement, closeTriggers?: any[]): MouseUtility;
|
34
|
+
/**
|
35
|
+
* 随机工具
|
36
|
+
*/
|
37
|
+
random(): RandomUtility;
|
38
|
+
/**
|
39
|
+
* 随机工具
|
40
|
+
*/
|
41
|
+
save(): SaveUtility;
|
42
|
+
}
|
43
|
+
export default UtilityFactory;
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import { DragOptions } from "../@types";
|
2
|
+
import Utility from "../Utility";
|
3
|
+
/**
|
4
|
+
* 事件工具类
|
5
|
+
*/
|
6
|
+
declare class EventUtility extends Utility {
|
7
|
+
resizeObserver: ResizeObserver;
|
8
|
+
element: Element;
|
9
|
+
resizeHandler: any;
|
10
|
+
/**
|
11
|
+
* 大小改变事件,已防抖
|
12
|
+
*/
|
13
|
+
resize: (element: Element, handler: (entries: ResizeObserverEntry[]) => void, debounceMs?: number) => void;
|
14
|
+
scrollElement: Element;
|
15
|
+
scrollHandler: (event: Event) => void;
|
16
|
+
/**
|
17
|
+
* 滚动事件
|
18
|
+
*/
|
19
|
+
scroll(element: Element, handler: (event: Event) => void): void;
|
20
|
+
/**
|
21
|
+
* 拖拽起始位置
|
22
|
+
*/
|
23
|
+
dragStart: MouseEvent;
|
24
|
+
/**
|
25
|
+
* 拖拽起始数据,每次拖拽时,都会回调到拖拽方法的参数中
|
26
|
+
*/
|
27
|
+
dragStartData: any;
|
28
|
+
dragElement: Element;
|
29
|
+
dragMouseDownHandler: (event: MouseEvent) => void;
|
30
|
+
/**
|
31
|
+
* 拖拽事件
|
32
|
+
*/
|
33
|
+
drag(element: Element, options: DragOptions): void;
|
34
|
+
observeElement: Element;
|
35
|
+
observer: MutationObserver;
|
36
|
+
/**
|
37
|
+
* 观察DOM变动
|
38
|
+
*/
|
39
|
+
observe(element: Element, handler: (mutations: MutationRecord[]) => void): void;
|
40
|
+
mouseDownElement: Element;
|
41
|
+
mouseDownHandler: (event: MouseEvent) => void;
|
42
|
+
mouseUpHandler: (event: MouseEvent) => void;
|
43
|
+
/**
|
44
|
+
* 鼠标按下
|
45
|
+
*/
|
46
|
+
mouseDown(element: Element, mouseDown: (event: MouseEvent) => void, mouseUp: (event: MouseEvent) => void): void;
|
47
|
+
lastDebounceTime: number;
|
48
|
+
lastDebounceTimeout: any;
|
49
|
+
/**
|
50
|
+
* 事件防抖: time ms没重复触发才执行指定操作
|
51
|
+
*/
|
52
|
+
debounce: (func: (args: any) => void, time: number, args?: any) => void;
|
53
|
+
dispatchElement: HTMLElement;
|
54
|
+
/**
|
55
|
+
* 创建分发事件元素
|
56
|
+
*/
|
57
|
+
createDispatch: (id: string, name: string, handler: (e: Event) => void) => void;
|
58
|
+
/**
|
59
|
+
* 分发事件,并传递参数
|
60
|
+
*/
|
61
|
+
dispatch(name: string, data: {
|
62
|
+
[key: string]: string;
|
63
|
+
}): void;
|
64
|
+
/**
|
65
|
+
* 事件节流: 指定时间段内只第一次操作被触发
|
66
|
+
*/
|
67
|
+
throttle: () => void;
|
68
|
+
/**
|
69
|
+
* 移除大小改变事件
|
70
|
+
*/
|
71
|
+
dispose: () => void;
|
72
|
+
}
|
73
|
+
export default EventUtility;
|
@@ -0,0 +1,74 @@
|
|
1
|
+
import Utility from "../Utility";
|
2
|
+
/**
|
3
|
+
* 键盘帮助类
|
4
|
+
*/
|
5
|
+
declare class KeyboardUtility extends Utility {
|
6
|
+
events: Object;
|
7
|
+
/**
|
8
|
+
* 注册事件
|
9
|
+
*/
|
10
|
+
add: (element: any, cb: Function, condition: Function, key: string, prevent: boolean, type: string) => void;
|
11
|
+
/**
|
12
|
+
* 移除事件
|
13
|
+
*/
|
14
|
+
remove: (element: any, key: string, type: string) => void;
|
15
|
+
/**
|
16
|
+
* 监听键盘按下事件
|
17
|
+
*/
|
18
|
+
keydown: (element: any, cb: Function, condition: Function, key: string, prevent?: boolean) => void;
|
19
|
+
/**
|
20
|
+
* 移除键盘按下事件
|
21
|
+
*/
|
22
|
+
removeKeydown: (element: any, key: string) => void;
|
23
|
+
/**
|
24
|
+
* 当触发保存时执行
|
25
|
+
* 想在div上绑定ctrlS事件,需要div处于focus状态,才可以触发已绑定的ctrlS事件
|
26
|
+
* div设置tabindex=-1,才可以手动触发焦点
|
27
|
+
*/
|
28
|
+
ctrlS: (element: any, cb: Function) => void;
|
29
|
+
/**
|
30
|
+
* 移除保存事件
|
31
|
+
*/
|
32
|
+
removeCtrlS: (element: any) => void;
|
33
|
+
/**
|
34
|
+
* 触发Ctrl回车事件
|
35
|
+
*/
|
36
|
+
ctrlEnter: (element: any, cb: Function) => void;
|
37
|
+
/**
|
38
|
+
* 移除Ctrl回车事件
|
39
|
+
*/
|
40
|
+
removeCtrlEnter: (element: any) => void;
|
41
|
+
lastKeyTime: number;
|
42
|
+
isKeyLastUp: boolean;
|
43
|
+
/**
|
44
|
+
* 双击事件
|
45
|
+
*/
|
46
|
+
doubleKey: (element: any, cb: Function, key: string, prevent?: boolean) => void;
|
47
|
+
/**
|
48
|
+
* 移除双击事件
|
49
|
+
*/
|
50
|
+
removeDoubleKey: (element: any, key: string) => void;
|
51
|
+
/**
|
52
|
+
* 监听键盘抬起事件
|
53
|
+
*/
|
54
|
+
keyup: (element: any, cb: Function, condition: Function, key: string, prevent?: boolean) => void;
|
55
|
+
/**
|
56
|
+
* 移除键盘抬起事件
|
57
|
+
*/
|
58
|
+
removeKeyup: (element: any, key: string) => void;
|
59
|
+
/**
|
60
|
+
* 监控是否按下Ctrl
|
61
|
+
*/
|
62
|
+
isCtrl: boolean;
|
63
|
+
ctrl: (document: any) => void;
|
64
|
+
/**
|
65
|
+
* 删除Ctrl事件
|
66
|
+
*/
|
67
|
+
removeCtrl: (document: any) => void;
|
68
|
+
timer: number;
|
69
|
+
touchStart: Function;
|
70
|
+
touchEnd(): void;
|
71
|
+
touch: (element: any, cb: Function) => void;
|
72
|
+
removeTouch: (element: any) => void;
|
73
|
+
}
|
74
|
+
export default KeyboardUtility;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import Utility from "../Utility";
|
2
|
+
/**
|
3
|
+
* 鼠标工具类
|
4
|
+
*/
|
5
|
+
declare class MouseUtility extends Utility {
|
6
|
+
container: HTMLElement;
|
7
|
+
closeTriggers: HTMLElement[];
|
8
|
+
/**
|
9
|
+
* 初始化,并绑定自动关闭上下文菜单事件
|
10
|
+
*/
|
11
|
+
constructor(container: HTMLElement, closeTriggers?: any[]);
|
12
|
+
/**
|
13
|
+
* 手动关闭右键上下文菜单
|
14
|
+
*/
|
15
|
+
close: () => void;
|
16
|
+
/**
|
17
|
+
* 根据鼠标事件,显示右键上下文弹窗
|
18
|
+
*/
|
19
|
+
show: (event: MouseEvent) => void;
|
20
|
+
/**
|
21
|
+
* 资源释放,防止内存泄漏
|
22
|
+
*/
|
23
|
+
dispose: () => void;
|
24
|
+
}
|
25
|
+
export default MouseUtility;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import Utility from "../Utility";
|
2
|
+
/**
|
3
|
+
* 随机数工具类
|
4
|
+
* 带状态,如随机数记录了已经使用过的随机数
|
5
|
+
*/
|
6
|
+
declare class RandomUtility extends Utility {
|
7
|
+
/**
|
8
|
+
* 随机数总长度
|
9
|
+
*/
|
10
|
+
length: number;
|
11
|
+
/**
|
12
|
+
* 当前显示元素之前的数组
|
13
|
+
*/
|
14
|
+
history: number[];
|
15
|
+
/**
|
16
|
+
* 即将要显示的数组(未空表示用户还没看过,可随机生成)
|
17
|
+
*/
|
18
|
+
future: number[];
|
19
|
+
/**
|
20
|
+
* 当前元素指针,索引值,用于指示当前显示的数在所有数组中的位置
|
21
|
+
*/
|
22
|
+
current: number;
|
23
|
+
/**
|
24
|
+
* 是否有上一个数
|
25
|
+
*/
|
26
|
+
get hasPrev(): boolean;
|
27
|
+
/**
|
28
|
+
* 是否有下一个数
|
29
|
+
*/
|
30
|
+
get hasNext(): boolean;
|
31
|
+
/**
|
32
|
+
* 获取轨迹中的上一个数的索引,箭头函数可能会导致数据更新,但是UI不更新
|
33
|
+
*/
|
34
|
+
prev(): number;
|
35
|
+
/**
|
36
|
+
* 获取下一个数
|
37
|
+
* 优先从轨迹获取,轨迹没有则取随机数
|
38
|
+
*/
|
39
|
+
next(): number;
|
40
|
+
}
|
41
|
+
export default RandomUtility;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import Utility from "../Utility";
|
2
|
+
/**
|
3
|
+
* 自动保存工具
|
4
|
+
* 函数式编程,从而可以让方法被多处使用
|
5
|
+
*/
|
6
|
+
declare class SaveUtility extends Utility {
|
7
|
+
/**
|
8
|
+
* 开启表单监控
|
9
|
+
*/
|
10
|
+
open(form: any, store: string, id: string): Promise<void>;
|
11
|
+
/**
|
12
|
+
* 资源释放
|
13
|
+
*/
|
14
|
+
dispose(): void;
|
15
|
+
}
|
16
|
+
export default SaveUtility;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import EventUtility from "./implement/EventUtility";
|
2
|
+
import KeyboardUtility from "./implement/KeyboardUtility";
|
3
|
+
import DeltaUtility from "./implement/DeltaUtility";
|
4
|
+
import MouseUtility from "./implement/MouseUtility";
|
5
|
+
import RandomUtility from "./implement/RandomUtility";
|
6
|
+
import SaveUtility from "./implement/SaveUtility";
|
7
|
+
import UtilityFactory from "./UtilityFactory";
|
8
|
+
export * from "./@types";
|
9
|
+
export { EventUtility, KeyboardUtility, DeltaUtility, MouseUtility, RandomUtility, SaveUtility, UtilityFactory };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BuilderFactory, CdnFactory, EncoderFactory, ExcelFactory, ExplainerFactory, FeatureFactory, HasherFactory, HelperFactory, I18nFactory, HttpFactory, MessengerFactory, ProviderFactory, SignerFactory, SsoFactory, TaskFactory, TemplateFactory } from "../drivers";
|
1
|
+
import { BuilderFactory, CdnFactory, EncoderFactory, ExcelFactory, ExplainerFactory, FeatureFactory, HasherFactory, HelperFactory, I18nFactory, HttpFactory, MessengerFactory, ProviderFactory, SignerFactory, SsoFactory, TaskFactory, TemplateFactory, UtilityFactory } from "../drivers";
|
2
2
|
import { SvcFactory } from "../svcs";
|
3
3
|
/**
|
4
4
|
* 驱动工厂类
|
@@ -74,6 +74,10 @@ declare class Factories {
|
|
74
74
|
* 模板工厂
|
75
75
|
*/
|
76
76
|
static get template(): TemplateFactory;
|
77
|
+
/**
|
78
|
+
* 工具类工厂
|
79
|
+
*/
|
80
|
+
static get utility(): UtilityFactory;
|
77
81
|
/**
|
78
82
|
* 服务工厂
|
79
83
|
*/
|
@@ -2,7 +2,7 @@ import { ArrayHelper, ComponentHelper, DomHelper, DictionaryHelper, EventHelper,
|
|
2
2
|
/**
|
3
3
|
* 帮助类工厂
|
4
4
|
*/
|
5
|
-
declare class
|
5
|
+
declare class Helps {
|
6
6
|
static get array(): ArrayHelper;
|
7
7
|
static get browser(): BrowserHelper;
|
8
8
|
static get component(): ComponentHelper;
|
@@ -26,4 +26,4 @@ declare class Helpers {
|
|
26
26
|
static get url(): UrlHelper;
|
27
27
|
static get sign(): SignHelper;
|
28
28
|
}
|
29
|
-
export default
|
29
|
+
export default Helps;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* 工具类集合
|
3
|
+
*/
|
4
|
+
declare class Utils {
|
5
|
+
static get utility(): import("../drivers").UtilityFactory;
|
6
|
+
static affix(ele: Element, parent: Element): import("../drivers/utilities/implement/AffixUtility").default;
|
7
|
+
static delta(): import("../drivers").DeltaUtility;
|
8
|
+
static event(): import("../drivers").EventUtility;
|
9
|
+
static keyboard(): import("../drivers").KeyboardUtility;
|
10
|
+
static mouse(container: HTMLElement, closeTriggers?: any[]): import("../drivers").MouseUtility;
|
11
|
+
static random(): import("../drivers").RandomUtility;
|
12
|
+
static save(): import("../drivers").SaveUtility;
|
13
|
+
}
|
14
|
+
export default Utils;
|
@@ -2,7 +2,7 @@ import Factories from "./Factories";
|
|
2
2
|
import Factory from "./Factory";
|
3
3
|
import { ICdn, IEncoder, IHasher, II18n, IHttp, IMessenger, ITemplate } from "../drivers";
|
4
4
|
import { CreateFeOptions } from "../@types";
|
5
|
-
import
|
5
|
+
import Helps from "./Helps";
|
6
6
|
/**
|
7
7
|
* 默认base64编码
|
8
8
|
*/
|
@@ -39,4 +39,4 @@ declare let initDriver: (options: CreateFeOptions) => Promise<void>;
|
|
39
39
|
* 提取可导出的翻译方法,当i18n实例变化后,导出的方案会跟着变化?
|
40
40
|
*/
|
41
41
|
declare let t: typeof i18n.t, t_exists: typeof i18n.t_exists, t_sys: typeof i18n.t_sys, t_enum: typeof i18n.t_enum, t_field: typeof i18n.t_field, t_field_choose_placeholder: typeof i18n.t_field_choose_placeholder, t_field_placeholder: typeof i18n.t_field_placeholder, t_table: typeof i18n.t_table, t_module: typeof i18n.t_module, t_menu: typeof i18n.t_menu;
|
42
|
-
export { base64, cdn, http, i18n, md5, template, messenger, initDriver, Factories, Factory,
|
42
|
+
export { base64, cdn, http, i18n, md5, template, messenger, initDriver, Factories, Factory, Helps, t, t_exists, t_sys, t_enum, t_field, t_field_choose_placeholder, t_field_placeholder, t_table, t_module, t_menu };
|
package/esm/main.d.ts
CHANGED
package/esm/svcs/index.d.ts
CHANGED
@@ -53,6 +53,7 @@ declare let driverSvc: {
|
|
53
53
|
loadApps: (reload?: boolean) => Promise<void>;
|
54
54
|
loadEnvs: (reload?: boolean) => Promise<void>;
|
55
55
|
loadDrivers: (app: string, env: string, kind: string) => Promise<any[]>;
|
56
|
+
loadSchema: (id: number, schema: string) => Promise<any[]>;
|
56
57
|
};
|
57
58
|
declare let envSvc: EnvSvc;
|
58
59
|
declare let logSvc: LogSvc;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/**
|
2
|
+
* 数字工具类
|
3
|
+
* 带状态,如随机数记录了已经使用过的随机数
|
4
|
+
*/
|
5
|
+
declare class MathUtility {
|
6
|
+
/**
|
7
|
+
* 随机数总长度
|
8
|
+
*/
|
9
|
+
length: number;
|
10
|
+
/**
|
11
|
+
* 所有使用过的随机数历史
|
12
|
+
*/
|
13
|
+
history: number[];
|
14
|
+
/**
|
15
|
+
* 是否有上一个数
|
16
|
+
*/
|
17
|
+
hasPrev: boolean;
|
18
|
+
/**
|
19
|
+
* 是否有下一个数
|
20
|
+
*/
|
21
|
+
hasNext: boolean;
|
22
|
+
/**
|
23
|
+
* 上一个使用的索引
|
24
|
+
*/
|
25
|
+
lastIndex: number;
|
26
|
+
/**
|
27
|
+
* 获取上一个随机数
|
28
|
+
*/
|
29
|
+
prev: () => number;
|
30
|
+
/**
|
31
|
+
* 获取下一个随机数
|
32
|
+
*/
|
33
|
+
next: () => number;
|
34
|
+
}
|
35
|
+
export default MathUtility;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "halo-fe",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.24",
|
4
4
|
"description": "Halo front end sdk",
|
5
5
|
"scripts": {
|
6
6
|
"halo-fe:tsc": "vue-tsc",
|
@@ -29,27 +29,27 @@
|
|
29
29
|
"registry": "https://registry.npmjs.org"
|
30
30
|
},
|
31
31
|
"peerDependencies": {
|
32
|
-
"vue": "3.
|
32
|
+
"vue": "3.5.0"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
35
|
"clone": "2.1.2",
|
36
36
|
"file-saver": "2.0.5",
|
37
|
-
"liquidjs": "10.16.
|
37
|
+
"liquidjs": "10.16.7",
|
38
38
|
"moment": "2.30.1",
|
39
|
-
"monaco-editor": "0.50.0",
|
40
39
|
"underscore": "1.13.7",
|
41
40
|
"underscore.string": "3.3.6"
|
42
41
|
},
|
43
42
|
"devDependencies": {
|
44
|
-
"@types/node": "22.3
|
45
|
-
"@vitejs/plugin-vue": "5.1.
|
43
|
+
"@types/node": "22.5.3",
|
44
|
+
"@vitejs/plugin-vue": "5.1.3",
|
46
45
|
"@vitejs/plugin-vue-jsx": "4.0.1",
|
47
46
|
"crypto-js": "4.2.0",
|
48
47
|
"echarts": "5.5.1",
|
48
|
+
"monaco-editor": "0.51.0",
|
49
49
|
"quill": "2.0.2",
|
50
|
-
"sass": "1.
|
51
|
-
"vite": "5.4.
|
52
|
-
"vue-tsc": "2.
|
50
|
+
"sass": "1.78.0",
|
51
|
+
"vite": "5.4.3",
|
52
|
+
"vue-tsc": "2.1.4",
|
53
53
|
"xlsx-js-style": "1.2.0"
|
54
54
|
}
|
55
55
|
}
|
package/esm/coms/Code.vue.d.ts
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
import { type Monaco } from "../plugins";
|
2
|
-
import { CodeProps } from "./types";
|
3
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<CodeProps>, {
|
4
|
-
config: {};
|
5
|
-
}>, {
|
6
|
-
layout: () => void;
|
7
|
-
getEditor: () => Monaco.editor.IStandaloneCodeEditor;
|
8
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
9
|
-
mounted: (monaco: typeof Monaco, editor: Monaco.editor.IStandaloneCodeEditor) => void;
|
10
|
-
change: (value: string) => void;
|
11
|
-
scroll: (scrollTop: number) => void;
|
12
|
-
"update:modelValue": (value: any) => void;
|
13
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CodeProps>, {
|
14
|
-
config: {};
|
15
|
-
}>>> & {
|
16
|
-
onChange?: (value: string) => any;
|
17
|
-
onScroll?: (scrollTop: number) => any;
|
18
|
-
onMounted?: (monaco: typeof Monaco, editor: Monaco.editor.IStandaloneCodeEditor) => any;
|
19
|
-
"onUpdate:modelValue"?: (value: any) => any;
|
20
|
-
}, {
|
21
|
-
config: any;
|
22
|
-
}, {}>;
|
23
|
-
export default _default;
|
24
|
-
|
25
|
-
type __VLS_WithDefaults<P, D> = {
|
26
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
27
|
-
default: D[K];
|
28
|
-
}> : P[K];
|
29
|
-
};
|
30
|
-
type __VLS_Prettify<T> = {
|
31
|
-
[K in keyof T]: T[K];
|
32
|
-
} & {};
|
33
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
34
|
-
type __VLS_TypePropsToOption<T> = {
|
35
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
36
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
37
|
-
} : {
|
38
|
-
type: import('vue').PropType<T[K]>;
|
39
|
-
required: true;
|
40
|
-
};
|
41
|
-
};
|
package/esm/coms/Col.vue.d.ts
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
declare function __VLS_template(): {
|
2
|
-
default?(_: {}): any;
|
3
|
-
};
|
4
|
-
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
6
|
-
export default _default;
|
7
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
8
|
-
new (): {
|
9
|
-
$slots: S;
|
10
|
-
};
|
11
|
-
};
|
@@ -1,40 +0,0 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
2
|
-
inline: {
|
3
|
-
type: BooleanConstructor;
|
4
|
-
default: boolean;
|
5
|
-
};
|
6
|
-
language: {
|
7
|
-
type: StringConstructor;
|
8
|
-
};
|
9
|
-
original: {
|
10
|
-
type: StringConstructor;
|
11
|
-
};
|
12
|
-
modelValue: {
|
13
|
-
type: StringConstructor;
|
14
|
-
};
|
15
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
16
|
-
change: (...args: any[]) => void;
|
17
|
-
"update:modelValue": (...args: any[]) => void;
|
18
|
-
"update:original": (...args: any[]) => void;
|
19
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
20
|
-
inline: {
|
21
|
-
type: BooleanConstructor;
|
22
|
-
default: boolean;
|
23
|
-
};
|
24
|
-
language: {
|
25
|
-
type: StringConstructor;
|
26
|
-
};
|
27
|
-
original: {
|
28
|
-
type: StringConstructor;
|
29
|
-
};
|
30
|
-
modelValue: {
|
31
|
-
type: StringConstructor;
|
32
|
-
};
|
33
|
-
}>> & {
|
34
|
-
onChange?: (...args: any[]) => any;
|
35
|
-
"onUpdate:modelValue"?: (...args: any[]) => any;
|
36
|
-
"onUpdate:original"?: (...args: any[]) => any;
|
37
|
-
}, {
|
38
|
-
inline: boolean;
|
39
|
-
}, {}>;
|
40
|
-
export default _default;
|
@@ -1,23 +0,0 @@
|
|
1
|
-
declare function __VLS_template(): {
|
2
|
-
default?(_: {}): any;
|
3
|
-
};
|
4
|
-
declare const __VLS_component: import("vue").DefineComponent<{
|
5
|
-
container: {
|
6
|
-
type: BooleanConstructor;
|
7
|
-
default: boolean;
|
8
|
-
};
|
9
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
10
|
-
container: {
|
11
|
-
type: BooleanConstructor;
|
12
|
-
default: boolean;
|
13
|
-
};
|
14
|
-
}>>, {
|
15
|
-
container: boolean;
|
16
|
-
}, {}>;
|
17
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
18
|
-
export default _default;
|
19
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
20
|
-
new (): {
|
21
|
-
$slots: S;
|
22
|
-
};
|
23
|
-
};
|