halo-fe 1.0.22 → 1.0.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. package/dist/assets/{liquidjs-C-LVcoaY.js → liquidjs-B8dqQyVv.js} +639 -632
  2. package/dist/main.js +4156 -3643
  3. package/esm/coms/Empty.vue.d.ts +15 -13
  4. package/esm/coms/Fill.vue.d.ts +14 -5
  5. package/esm/coms/Scroller.vue.d.ts +19 -16
  6. package/esm/coms/Timer.vue.d.ts +12 -5
  7. package/esm/coms/conditions/Condition.vue.d.ts +1 -10
  8. package/esm/coms/conditions/Index.vue.d.ts +1 -10
  9. package/esm/coms/controls/Code.vue.d.ts +19 -17
  10. package/esm/coms/controls/Compare.vue.d.ts +11 -19
  11. package/esm/coms/controls/Option.vue.d.ts +1 -1
  12. package/esm/coms/controls/RichText.vue.d.ts +6 -15
  13. package/esm/coms/controls/Select.vue.d.ts +1 -1
  14. package/esm/coms/layouts/Col.vue.d.ts +11 -4
  15. package/esm/coms/layouts/Container.vue.d.ts +15 -11
  16. package/esm/coms/layouts/Row.vue.d.ts +11 -14
  17. package/esm/coms/progresses/Progress.vue.d.ts +4 -16
  18. package/esm/coms/progresses/SocketProgress.vue.d.ts +15 -8
  19. package/esm/coms/tables/Table.vue.d.ts +1 -1
  20. package/esm/coms/tabs/Tab.vue.d.ts +1 -10
  21. package/esm/coms/tabs/TabPane.vue.d.ts +1 -1
  22. package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
  23. package/esm/drivers/encoders/EncoderFactory.d.ts +1 -1
  24. package/esm/drivers/excels/ExcelFactory.d.ts +2 -2
  25. package/esm/drivers/features/FeatureFactory.d.ts +1 -1
  26. package/esm/drivers/hashers/HasherFactory.d.ts +4 -1
  27. package/esm/drivers/hashers/implement/Md5Hasher.d.ts +1 -1
  28. package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +1 -1
  29. package/esm/drivers/helpers/@types/JsonConfig.d.ts +10 -0
  30. package/esm/drivers/helpers/@types/TreeNodeProp.d.ts +9 -0
  31. package/esm/drivers/helpers/@types/index.d.ts +3 -0
  32. package/esm/drivers/helpers/Helper.d.ts +8 -0
  33. package/esm/drivers/helpers/HelperFactory.d.ts +32 -0
  34. package/esm/drivers/helpers/IHelper.d.ts +4 -0
  35. package/esm/drivers/helpers/implements/ArrayHelper.d.ts +123 -0
  36. package/esm/drivers/helpers/implements/BrowserHelper.d.ts +12 -0
  37. package/esm/drivers/helpers/implements/ComponentHelper.d.ts +20 -0
  38. package/esm/drivers/helpers/implements/DictionaryHelper.d.ts +40 -0
  39. package/esm/drivers/helpers/implements/DomHelper.d.ts +118 -0
  40. package/esm/drivers/helpers/implements/EventHelper.d.ts +32 -0
  41. package/esm/drivers/helpers/implements/FileHelper.d.ts +24 -0
  42. package/esm/drivers/helpers/implements/HtmlHelper.d.ts +16 -0
  43. package/esm/drivers/helpers/implements/ImageHelper.d.ts +12 -0
  44. package/esm/drivers/helpers/implements/JsonHelper.d.ts +49 -0
  45. package/esm/drivers/helpers/implements/MathHelper.d.ts +52 -0
  46. package/esm/drivers/helpers/implements/MicroHelper.d.ts +12 -0
  47. package/esm/drivers/helpers/implements/MountHelper.d.ts +16 -0
  48. package/esm/drivers/helpers/implements/ObjectHelper.d.ts +44 -0
  49. package/esm/drivers/helpers/implements/ScrollHelper.d.ts +16 -0
  50. package/esm/drivers/helpers/implements/SignHelper.d.ts +16 -0
  51. package/esm/drivers/helpers/implements/StringHelper.d.ts +104 -0
  52. package/esm/drivers/helpers/implements/TaskHelper.d.ts +28 -0
  53. package/esm/drivers/helpers/implements/TimeHelper.d.ts +68 -0
  54. package/esm/drivers/helpers/implements/TreeHelper.d.ts +56 -0
  55. package/esm/drivers/helpers/implements/TypeHelper.d.ts +28 -0
  56. package/esm/drivers/helpers/implements/UrlHelper.d.ts +90 -0
  57. package/esm/drivers/helpers/index.d.ts +24 -0
  58. package/esm/drivers/https/HttpFactory.d.ts +1 -1
  59. package/esm/drivers/i18ns/II18n.d.ts +1 -1
  60. package/esm/drivers/index.d.ts +2 -0
  61. package/esm/drivers/providers/ProviderFactory.d.ts +1 -1
  62. package/esm/drivers/signers/SignerFactory.d.ts +1 -1
  63. package/esm/drivers/signers/implements/DefaultSigner.d.ts +1 -1
  64. package/esm/drivers/ssos/SsoFactory.d.ts +1 -1
  65. package/esm/drivers/utilities/@types/DragEvent.d.ts +11 -0
  66. package/esm/drivers/utilities/@types/DragOptions.d.ts +28 -0
  67. package/esm/drivers/utilities/@types/Position.d.ts +15 -0
  68. package/esm/drivers/utilities/@types/Rect.d.ts +10 -0
  69. package/esm/drivers/utilities/@types/index.d.ts +5 -0
  70. package/esm/drivers/utilities/IUtility.d.ts +4 -0
  71. package/esm/drivers/utilities/Utility.d.ts +5 -0
  72. package/esm/drivers/utilities/UtilityFactory.d.ts +43 -0
  73. package/esm/drivers/utilities/implement/AffixUtility.d.ts +11 -0
  74. package/esm/drivers/utilities/implement/DeltaUtility.d.ts +11 -0
  75. package/esm/drivers/utilities/implement/EventUtility.d.ts +73 -0
  76. package/esm/drivers/utilities/implement/KeyboardUtility.d.ts +74 -0
  77. package/esm/drivers/utilities/implement/MouseUtility.d.ts +25 -0
  78. package/esm/drivers/utilities/implement/RandomUtility.d.ts +41 -0
  79. package/esm/drivers/utilities/implement/SaveUtility.d.ts +16 -0
  80. package/esm/drivers/utilities/index.d.ts +9 -0
  81. package/esm/factorying/Factories.d.ts +15 -7
  82. package/esm/factorying/Factory.d.ts +10 -5
  83. package/esm/factorying/Helps.d.ts +29 -0
  84. package/esm/factorying/IFactory.d.ts +13 -5
  85. package/esm/factorying/Utils.d.ts +14 -0
  86. package/esm/factorying/index.d.ts +3 -1
  87. package/esm/helpers/DictionaryHelper.d.ts +6 -0
  88. package/esm/helpers/MathHelper.d.ts +0 -4
  89. package/esm/main.d.ts +1 -2
  90. package/esm/svcs/implement/DriverSvc.d.ts +8 -0
  91. package/esm/svcs/implement/SettingSvc.d.ts +1 -1
  92. package/esm/svcs/implement/UserSvc.d.ts +8 -4
  93. package/esm/svcs/index.d.ts +2 -0
  94. package/package.json +9 -9
@@ -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,9 +1,15 @@
1
- import { BuilderFactory, CdnFactory, EncoderFactory, ExcelFactory, ExplainerFactory, FeatureFactory, HasherFactory, 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
  * 驱动工厂类
5
5
  */
6
6
  declare class Factories {
7
+ /**
8
+ * 工厂缓存
9
+ */
10
+ static mappings: {
11
+ [key: string]: any;
12
+ };
7
13
  /**
8
14
  * Builder工厂
9
15
  */
@@ -40,6 +46,10 @@ declare class Factories {
40
46
  * 多语言工厂
41
47
  */
42
48
  static get i18n(): I18nFactory;
49
+ /**
50
+ * 帮助类工厂
51
+ */
52
+ static get helper(): HelperFactory;
43
53
  /**
44
54
  * 消息提示请求工厂
45
55
  */
@@ -65,15 +75,13 @@ declare class Factories {
65
75
  */
66
76
  static get template(): TemplateFactory;
67
77
  /**
68
- * 服务工厂
78
+ * 工具类工厂
69
79
  */
70
- static get svc(): SvcFactory;
80
+ static get utility(): UtilityFactory;
71
81
  /**
72
- * 工厂缓存
82
+ * 服务工厂
73
83
  */
74
- static mappings: {
75
- [key: string]: any;
76
- };
84
+ static get svc(): SvcFactory;
77
85
  /**
78
86
  * 并缓存工厂实例
79
87
  */
@@ -26,18 +26,23 @@ declare abstract class Factory<T extends IDriver> implements IFactory<T> {
26
26
  * 开启
27
27
  */
28
28
  open(): void;
29
- /**
30
- * 创建指定类型驱动
31
- */
32
- create(type: string): Promise<T>;
33
29
  /**
34
30
  * 根据主键创建驱动,并返回加载后的驱动信息
35
31
  */
36
32
  createById(id: number, driverRef?: Ref<any>): Promise<T>;
33
+ createIfAbsent(type: string): T;
37
34
  /**
38
35
  * 从缓存中获取指定名称的驱动,不存在则创建并执行初始化
39
36
  */
40
- createIfAbsent(name: string, type?: string, open?: (entity: T) => Promise<void>): Promise<T>;
37
+ createIfAbsentAsync(type?: string, open?: (entity: T) => Promise<void>): Promise<T>;
38
+ /**
39
+ * 创建指定类型驱动
40
+ */
41
+ create(type: string): T;
42
+ /**
43
+ * 异步创建指定类型驱动
44
+ */
45
+ createAsync(type: string): Promise<T>;
41
46
  /**
42
47
  * 加载驱动明细
43
48
  */
@@ -0,0 +1,29 @@
1
+ import { ArrayHelper, ComponentHelper, DomHelper, DictionaryHelper, EventHelper, FileHelper, HtmlHelper, ImageHelper, MathHelper, MountHelper, ObjectHelper, MicroHelper, StringHelper, TaskHelper, TypeHelper, TimeHelper, TreeHelper, ScrollHelper, JsonHelper, BrowserHelper, UrlHelper, SignHelper } from "../drivers/helpers";
2
+ /**
3
+ * 帮助类工厂
4
+ */
5
+ declare class Helps {
6
+ static get array(): ArrayHelper;
7
+ static get browser(): BrowserHelper;
8
+ static get component(): ComponentHelper;
9
+ static get dom(): DomHelper;
10
+ static get dictionary(): DictionaryHelper;
11
+ static get event(): EventHelper;
12
+ static get file(): FileHelper;
13
+ static get html(): HtmlHelper;
14
+ static get image(): ImageHelper;
15
+ static get json(): JsonHelper;
16
+ static get math(): MathHelper;
17
+ static get mount(): MountHelper;
18
+ static get object(): ObjectHelper;
19
+ static get micro(): MicroHelper;
20
+ static get scroll(): ScrollHelper;
21
+ static get string(): StringHelper;
22
+ static get task(): TaskHelper;
23
+ static get type(): TypeHelper;
24
+ static get time(): TimeHelper;
25
+ static get tree(): TreeHelper;
26
+ static get url(): UrlHelper;
27
+ static get sign(): SignHelper;
28
+ }
29
+ export default Helps;
@@ -11,17 +11,25 @@ interface IFactory<T> {
11
11
  * 开启工厂
12
12
  */
13
13
  open(): void;
14
- /**
15
- * 创建指定类型的实例
16
- */
17
- create(type: string): Promise<T>;
18
14
  /**
19
15
  * 根据主键创建驱动,并返回加载后的驱动信息
20
16
  */
21
17
  createById(id: number, driverRef?: Ref<any>): Promise<T>;
18
+ /**
19
+ * 从缓存中获取指定类型的驱动,不存在则创建,用于Helper类等简单类型
20
+ */
21
+ createIfAbsent(type: string): T;
22
22
  /**
23
23
  * 从缓存中获取指定名称的驱动,不存在则创建并执行初始化
24
24
  */
25
- createIfAbsent(name: string, type: string, open?: (entity: T) => Promise<void>): Promise<T>;
25
+ createIfAbsentAsync(type: string, open?: (entity: T) => Promise<void>): Promise<T>;
26
+ /**
27
+ * 创建指定类型的实例
28
+ */
29
+ create(type: string): T;
30
+ /**
31
+ * 异步创建指定类型驱动
32
+ */
33
+ createAsync(type: string): Promise<T>;
26
34
  }
27
35
  export default IFactory;
@@ -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;
@@ -1,6 +1,8 @@
1
1
  import Factories from "./Factories";
2
+ import Factory from "./Factory";
2
3
  import { ICdn, IEncoder, IHasher, II18n, IHttp, IMessenger, ITemplate } from "../drivers";
3
4
  import { CreateFeOptions } from "../@types";
5
+ import Helps from "./Helps";
4
6
  /**
5
7
  * 默认base64编码
6
8
  */
@@ -37,4 +39,4 @@ declare let initDriver: (options: CreateFeOptions) => Promise<void>;
37
39
  * 提取可导出的翻译方法,当i18n实例变化后,导出的方案会跟着变化?
38
40
  */
39
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;
40
- export { base64, cdn, http, i18n, md5, template, messenger, initDriver, Factories, t, t_exists, t_sys, t_enum, t_field, t_field_choose_placeholder, t_field_placeholder, t_table, t_module, t_menu };
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 };
@@ -28,5 +28,11 @@ declare class DictionaryHelper {
28
28
  key: string;
29
29
  value: any[];
30
30
  }[];
31
+ /**
32
+ * 判断字典是否包含值
33
+ */
34
+ static containsValue(dic: {
35
+ [key: string]: any;
36
+ }, value: any): boolean;
31
37
  }
32
38
  export default DictionaryHelper;
@@ -38,10 +38,6 @@ declare class MathHelper {
38
38
  * 获取百分比
39
39
  */
40
40
  static getPercentage: (handled: number, total: number) => number;
41
- /**
42
- * 获取进度文本
43
- */
44
- static getProgressText: (handled: number, total: number) => string;
45
41
  /**
46
42
  * 获取百分比,保留2位小数
47
43
  */
package/esm/main.d.ts CHANGED
@@ -4,11 +4,10 @@ export * from "./@types";
4
4
  export * from "./coms";
5
5
  export * from "./drivers";
6
6
  export * from "./factorying";
7
- export * from "./helpers";
8
7
  export * from "./plugins";
9
8
  export * from "./repos";
10
9
  export * from "./svcs";
11
- export * from "./utilities";
10
+ export * from "./drivers/utilities";
12
11
  /**
13
12
  * 初始化前端基础框架
14
13
  */
@@ -34,5 +34,13 @@ declare class DriverSvc extends Svc {
34
34
  * 加载环境选项
35
35
  */
36
36
  loadEnvs(reload?: boolean): Promise<void>;
37
+ /**
38
+ * 加载驱动选项
39
+ */
40
+ loadDrivers(app: string, env: string, kind: string): Promise<any[]>;
41
+ /**
42
+ * 加载数据库架构
43
+ */
44
+ loadSchema(id: number, schema: string): Promise<any[]>;
37
45
  }
38
46
  export default DriverSvc;
@@ -65,6 +65,6 @@ declare class SettingSvc {
65
65
  /**
66
66
  * 加载设置
67
67
  */
68
- load(): Promise<any>;
68
+ load: () => Promise<any>;
69
69
  }
70
70
  export default SettingSvc;
@@ -27,14 +27,14 @@ declare class UserSvc {
27
27
  * 获取本地缓存中的用户信息;好处:即使手动更改storage数据,也可以里面获取到
28
28
  */
29
29
  getSso(): Promise<SsoUser>;
30
- /**
31
- * 登录后,获取用户信息
32
- */
33
- loadInfo(): Promise<any>;
34
30
  /**
35
31
  * 未登录,获取匿名登录信息
36
32
  */
37
33
  getAnonymous(): Promise<void>;
34
+ /**
35
+ * 登录后,获取用户信息
36
+ */
37
+ loadInfo(): Promise<any>;
38
38
  /**
39
39
  * 根据路径获取路由
40
40
  */
@@ -43,6 +43,10 @@ declare class UserSvc {
43
43
  * 加载服务端路由
44
44
  */
45
45
  loadMenus(): Promise<any[]>;
46
+ /**
47
+ * 加载用户选项
48
+ */
49
+ loadUsers(form: any): Promise<any>;
46
50
  /**
47
51
  * 退出登录
48
52
  */
@@ -52,6 +52,8 @@ declare let driverSvc: {
52
52
  envs: any[];
53
53
  loadApps: (reload?: boolean) => Promise<void>;
54
54
  loadEnvs: (reload?: boolean) => Promise<void>;
55
+ loadDrivers: (app: string, env: string, kind: string) => Promise<any[]>;
56
+ loadSchema: (id: number, schema: string) => Promise<any[]>;
55
57
  };
56
58
  declare let envSvc: EnvSvc;
57
59
  declare let logSvc: LogSvc;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "halo-fe",
3
- "version": "1.0.22",
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.4.37"
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.1",
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.0",
45
- "@vitejs/plugin-vue": "5.1.2",
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.77.8",
51
- "vite": "5.4.1",
52
- "vue-tsc": "2.0.29",
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
  }