halo-fe 1.0.23 → 1.0.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) hide show
  1. package/dist/assets/{liquidjs-C-LVcoaY.js → liquidjs-B8dqQyVv.js} +639 -632
  2. package/dist/main.js +4365 -4206
  3. package/dist/style.css +1 -1
  4. package/esm/@types/CreateFeOptions.d.ts +4 -0
  5. package/esm/coms/@types/SocketProgressProps.d.ts +23 -0
  6. package/esm/coms/@types/TabProps.d.ts +11 -0
  7. package/esm/coms/@types/TableProps.d.ts +22 -0
  8. package/esm/coms/@types/index.d.ts +4 -1
  9. package/esm/coms/Empty.vue.d.ts +11 -7
  10. package/esm/coms/Fill.vue.d.ts +11 -4
  11. package/esm/coms/Scroller.vue.d.ts +16 -15
  12. package/esm/coms/Timer.vue.d.ts +9 -4
  13. package/esm/coms/{Col.vue.d.ts → cards/Index.vue.d.ts} +8 -3
  14. package/esm/coms/cards/index.d.ts +2 -0
  15. package/esm/coms/conditions/Condition.vue.d.ts +1 -10
  16. package/esm/coms/conditions/Index.vue.d.ts +1 -10
  17. package/esm/coms/controls/Code.vue.d.ts +15 -15
  18. package/esm/coms/controls/Compare.vue.d.ts +5 -5
  19. package/esm/coms/controls/Input.vue.d.ts +2 -0
  20. package/esm/coms/controls/Option.vue.d.ts +1 -1
  21. package/esm/coms/controls/RichText.vue.d.ts +4 -15
  22. package/esm/coms/controls/Select.vue.d.ts +1 -1
  23. package/esm/coms/controls/index.d.ts +2 -1
  24. package/esm/coms/index.d.ts +1 -0
  25. package/esm/coms/layouts/Col.vue.d.ts +8 -3
  26. package/esm/coms/layouts/Container.vue.d.ts +11 -6
  27. package/esm/coms/layouts/Desc.vue.d.ts +2 -0
  28. package/esm/coms/layouts/Row.vue.d.ts +8 -13
  29. package/esm/coms/pagers/Index.vue.d.ts +2 -0
  30. package/esm/coms/pagers/index.d.ts +2 -0
  31. package/esm/coms/progresses/Index.vue.d.ts +6 -0
  32. package/esm/coms/progresses/Progress.vue.d.ts +4 -16
  33. package/esm/coms/progresses/SocketProgress.vue.d.ts +9 -13
  34. package/esm/coms/progresses/index.d.ts +1 -1
  35. package/esm/coms/tables/Index.vue.d.ts +14 -0
  36. package/esm/coms/tables/Table.vue.d.ts +1 -1
  37. package/esm/coms/tabs/Tab.vue.d.ts +2 -11
  38. package/esm/coms/tabs/TabPane.vue.d.ts +1 -1
  39. package/esm/drivers/builders/types/ProviderTable.d.ts +6 -0
  40. package/esm/drivers/builders/types/index.d.ts +2 -0
  41. package/esm/drivers/cdns/Cdn.d.ts +6 -8
  42. package/esm/drivers/cdns/ICdn.d.ts +0 -5
  43. package/esm/drivers/encoders/EncoderFactory.d.ts +1 -0
  44. package/esm/drivers/encoders/implement/UrlEncoder.d.ts +7 -0
  45. package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
  46. package/esm/drivers/helpers/implements/ArrayHelper.d.ts +1 -2
  47. package/esm/drivers/helpers/implements/DomHelper.d.ts +1 -1
  48. package/esm/drivers/https/Http.d.ts +13 -2
  49. package/esm/drivers/https/IHttp.d.ts +4 -0
  50. package/esm/drivers/https/entities/HttpModel.d.ts +12 -0
  51. package/esm/drivers/https/implements/DefaultHttp.d.ts +1 -1
  52. package/esm/drivers/https/implements/HaloHttp.d.ts +1 -9
  53. package/esm/drivers/https/implements/MkHttp.d.ts +1 -2
  54. package/esm/drivers/index.d.ts +3 -1
  55. package/esm/drivers/sockets/ISocket.d.ts +35 -0
  56. package/esm/drivers/sockets/Socket.d.ts +8 -0
  57. package/esm/drivers/sockets/SocketFactory.d.ts +13 -0
  58. package/esm/drivers/sockets/implement/DefaultSocket.d.ts +39 -0
  59. package/esm/drivers/sockets/index.d.ts +2 -0
  60. package/esm/drivers/tasks/ITask.d.ts +3 -0
  61. package/esm/drivers/util/@types/JsonConfig.d.ts +10 -0
  62. package/esm/drivers/util/@types/TreeNodeProp.d.ts +9 -0
  63. package/esm/drivers/util/@types/index.d.ts +3 -0
  64. package/esm/drivers/util/IUtil.d.ts +8 -0
  65. package/esm/drivers/util/Util.d.ts +8 -0
  66. package/esm/drivers/util/UtilFactory.d.ts +32 -0
  67. package/esm/drivers/util/implements/ArrayUtil.d.ts +123 -0
  68. package/esm/drivers/util/implements/BrowserUtil.d.ts +12 -0
  69. package/esm/drivers/util/implements/ComponentUtil.d.ts +20 -0
  70. package/esm/drivers/util/implements/DictionaryUtil.d.ts +40 -0
  71. package/esm/drivers/util/implements/DomUtil.d.ts +118 -0
  72. package/esm/drivers/util/implements/EventUtil.d.ts +32 -0
  73. package/esm/drivers/util/implements/FileUtil.d.ts +24 -0
  74. package/esm/drivers/util/implements/HtmlUtil.d.ts +16 -0
  75. package/esm/drivers/util/implements/ImageUtil.d.ts +12 -0
  76. package/esm/drivers/util/implements/JsonUtil.d.ts +53 -0
  77. package/esm/drivers/util/implements/MathUtil.d.ts +52 -0
  78. package/esm/drivers/util/implements/MicroUtil.d.ts +12 -0
  79. package/esm/drivers/util/implements/MountUtil.d.ts +16 -0
  80. package/esm/drivers/util/implements/ObjectUtil.d.ts +44 -0
  81. package/esm/drivers/util/implements/ScrollUtil.d.ts +16 -0
  82. package/esm/drivers/util/implements/SignUtil.d.ts +16 -0
  83. package/esm/drivers/util/implements/StringUtil.d.ts +104 -0
  84. package/esm/drivers/util/implements/TaskUtil.d.ts +28 -0
  85. package/esm/{helpers/time-helper.d.ts → drivers/util/implements/TimeUtil.d.ts} +30 -24
  86. package/esm/drivers/util/implements/TreeUtil.d.ts +56 -0
  87. package/esm/{helpers/type-helper.d.ts → drivers/util/implements/TypeUtil.d.ts} +9 -7
  88. package/esm/{helpers/url-helper.d.ts → drivers/util/implements/UrlUtil.d.ts} +23 -29
  89. package/esm/drivers/util/index.d.ts +24 -0
  90. package/esm/drivers/utilities/@types/DragEvent.d.ts +11 -0
  91. package/esm/drivers/utilities/@types/DragOptions.d.ts +28 -0
  92. package/esm/drivers/utilities/@types/Position.d.ts +15 -0
  93. package/esm/drivers/utilities/@types/Rect.d.ts +10 -0
  94. package/esm/drivers/utilities/@types/index.d.ts +5 -0
  95. package/esm/drivers/utilities/IUtility.d.ts +4 -0
  96. package/esm/drivers/utilities/Utility.d.ts +5 -0
  97. package/esm/drivers/utilities/UtilityFactory.d.ts +43 -0
  98. package/esm/drivers/utilities/implement/AffixUtility.d.ts +11 -0
  99. package/esm/drivers/utilities/implement/DeltaUtility.d.ts +11 -0
  100. package/esm/drivers/utilities/implement/EventUtility.d.ts +73 -0
  101. package/esm/drivers/utilities/implement/KeyboardUtility.d.ts +74 -0
  102. package/esm/drivers/utilities/implement/MouseUtility.d.ts +25 -0
  103. package/esm/drivers/utilities/implement/RandomUtility.d.ts +41 -0
  104. package/esm/drivers/utilities/implement/SaveUtility.d.ts +16 -0
  105. package/esm/drivers/utilities/index.d.ts +9 -0
  106. package/esm/factorying/Factories.d.ts +13 -5
  107. package/esm/factorying/Factory.d.ts +4 -7
  108. package/esm/factorying/{Helpers.d.ts → Helps.d.ts} +2 -2
  109. package/esm/factorying/IFactory.d.ts +6 -2
  110. package/esm/factorying/Utils.d.ts +29 -0
  111. package/esm/factorying/index.d.ts +7 -2
  112. package/esm/helpers/DictionaryHelper.d.ts +6 -0
  113. package/esm/main.d.ts +1 -1
  114. package/esm/svcs/@types/Dictionary.d.ts +4 -0
  115. package/esm/svcs/implement/ConfigSvc.d.ts +1 -1
  116. package/esm/svcs/implement/DriverSvc.d.ts +4 -0
  117. package/esm/svcs/implement/I18nSvc.d.ts +1 -1
  118. package/esm/svcs/index.d.ts +2 -3
  119. package/esm/utilities/MathUtility.d.ts +35 -0
  120. package/package.json +9 -9
  121. package/esm/coms/Code.vue.d.ts +0 -41
  122. package/esm/coms/Compare.vue.d.ts +0 -40
  123. package/esm/coms/Container.vue.d.ts +0 -23
  124. package/esm/coms/RichText.vue.d.ts +0 -24
  125. package/esm/coms/Row.vue.d.ts +0 -21
  126. package/esm/coms/types/CodeEmit.d.ts +0 -23
  127. package/esm/coms/types/CodeProps.d.ts +0 -18
  128. package/esm/coms/types/RichTextOptions.d.ts +0 -14
  129. package/esm/coms/types/RichTextProps.d.ts +0 -12
  130. package/esm/coms/types/RowProps.d.ts +0 -14
  131. package/esm/drivers/IDriver.d.ts +0 -10
  132. package/esm/drivers/cdns/implements/BootCdn.d.ts +0 -12
  133. package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +0 -15
  134. package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +0 -21
  135. package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +0 -12
  136. package/esm/drivers/factories/DriverFactory.d.ts +0 -64
  137. package/esm/drivers/factories/Factory.d.ts +0 -18
  138. package/esm/drivers/factories/IFactory.d.ts +0 -18
  139. package/esm/drivers/factories/index.d.ts +0 -42
  140. package/esm/drivers/providers/implements/StorageHelper.d.ts +0 -34
  141. package/esm/helpers/ScriptHelper.d.ts +0 -19
  142. package/esm/helpers/array-helper.d.ts +0 -97
  143. package/esm/helpers/component-helper.d.ts +0 -18
  144. package/esm/helpers/cookie-helper.d.ts +0 -6
  145. package/esm/helpers/dictionary-helper.d.ts +0 -18
  146. package/esm/helpers/dom-helper.d.ts +0 -86
  147. package/esm/helpers/event-helper.d.ts +0 -30
  148. package/esm/helpers/file-helper.d.ts +0 -22
  149. package/esm/helpers/html-helper.d.ts +0 -10
  150. package/esm/helpers/i18n-helper.d.ts +0 -14
  151. package/esm/helpers/image-helper.d.ts +0 -10
  152. package/esm/helpers/json-helper.d.ts +0 -39
  153. package/esm/helpers/math-helper.d.ts +0 -46
  154. package/esm/helpers/micro-helper.d.ts +0 -10
  155. package/esm/helpers/mount-helper.d.ts +0 -14
  156. package/esm/helpers/object-helper.d.ts +0 -38
  157. package/esm/helpers/script-helper.d.ts +0 -31
  158. package/esm/helpers/scroll-helper.d.ts +0 -14
  159. package/esm/helpers/sign-helper.d.ts +0 -14
  160. package/esm/helpers/storage-helper.d.ts +0 -34
  161. package/esm/helpers/string-helper.d.ts +0 -94
  162. package/esm/helpers/task-helper.d.ts +0 -26
  163. package/esm/helpers/tree-helper.d.ts +0 -54
  164. package/esm/plugins/HtmlTransform.d.ts +0 -6
  165. package/esm/plugins/types/IMessager.d.ts +0 -34
  166. package/esm/plugins/types/index.d.ts +0 -7
  167. package/esm/services/ConfigService.d.ts +0 -66
  168. package/esm/services/DriverService.d.ts +0 -36
  169. package/esm/services/EnvService.d.ts +0 -14
  170. package/esm/services/LogService.d.ts +0 -19
  171. package/esm/services/SettingService.d.ts +0 -42
  172. package/esm/services/SocketService.d.ts +0 -23
  173. package/esm/services/UserService.d.ts +0 -47
  174. package/esm/services/index.d.ts +0 -15
  175. package/esm/services/types/IMessage.d.ts +0 -14
  176. package/esm/services/types/IMessager.d.ts +0 -34
  177. package/esm/services/types/index.d.ts +0 -2
  178. package/esm/servs/ConfigServ.d.ts +0 -66
  179. package/esm/servs/DriverServ.d.ts +0 -36
  180. package/esm/servs/EnvServ.d.ts +0 -14
  181. package/esm/servs/IServ.d.ts +0 -6
  182. package/esm/servs/LogServ.d.ts +0 -19
  183. package/esm/servs/Serv.d.ts +0 -4
  184. package/esm/servs/ServFactory.d.ts +0 -11
  185. package/esm/servs/SettingServ.d.ts +0 -42
  186. package/esm/servs/SocketServ.d.ts +0 -38
  187. package/esm/servs/UserServ.d.ts +0 -47
  188. package/esm/servs/implement/ConfigServ.d.ts +0 -66
  189. package/esm/servs/implement/DriverServ.d.ts +0 -36
  190. package/esm/servs/implement/EnvServ.d.ts +0 -14
  191. package/esm/servs/implement/LogServ.d.ts +0 -19
  192. package/esm/servs/implement/SettingServ.d.ts +0 -42
  193. package/esm/servs/implement/SocketServ.d.ts +0 -38
  194. package/esm/servs/implement/UserServ.d.ts +0 -47
  195. package/esm/servs/index.d.ts +0 -15
  196. package/esm/stores/config.d.ts +0 -63
  197. package/esm/stores/driver.d.ts +0 -37
  198. package/esm/stores/env.d.ts +0 -12
  199. package/esm/stores/index.d.ts +0 -8
  200. package/esm/stores/log.d.ts +0 -20
  201. package/esm/stores/setting.d.ts +0 -43
  202. package/esm/stores/socket.d.ts +0 -27
  203. package/esm/stores/user.d.ts +0 -40
  204. package/esm/types/CreateOptions.d.ts +0 -18
@@ -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, UtilFactory, I18nFactory, HttpFactory, MessengerFactory, ProviderFactory, SignerFactory, SocketFactory, SsoFactory, TaskFactory, TemplateFactory, UtilityFactory } from "../drivers";
2
2
  import { SvcFactory } from "../svcs";
3
3
  /**
4
4
  * 驱动工厂类
@@ -46,10 +46,6 @@ declare class Factories {
46
46
  * 多语言工厂
47
47
  */
48
48
  static get i18n(): I18nFactory;
49
- /**
50
- * 帮助类工厂
51
- */
52
- static get helper(): HelperFactory;
53
49
  /**
54
50
  * 消息提示请求工厂
55
51
  */
@@ -62,6 +58,10 @@ declare class Factories {
62
58
  * 签名工厂
63
59
  */
64
60
  static get signer(): SignerFactory;
61
+ /**
62
+ * 通信工厂
63
+ */
64
+ static get socket(): SocketFactory;
65
65
  /**
66
66
  * SSO工厂
67
67
  */
@@ -74,6 +74,14 @@ declare class Factories {
74
74
  * 模板工厂
75
75
  */
76
76
  static get template(): TemplateFactory;
77
+ /**
78
+ * 工具工厂
79
+ */
80
+ static get util(): UtilFactory;
81
+ /**
82
+ * 工具类工厂
83
+ */
84
+ static get utility(): UtilityFactory;
77
85
  /**
78
86
  * 服务工厂
79
87
  */
@@ -21,20 +21,18 @@ declare abstract class Factory<T extends IDriver> implements IFactory<T> {
21
21
  * 实例缓存集合
22
22
  * 或者使用:Record<string, string>
23
23
  */
24
- private mappings;
25
- /**
26
- * 开启
27
- */
24
+ private cached;
28
25
  open(): void;
26
+ register(entity: T): void;
29
27
  /**
30
28
  * 根据主键创建驱动,并返回加载后的驱动信息
31
29
  */
32
30
  createById(id: number, driverRef?: Ref<any>): Promise<T>;
33
- createIfAbsent(type: string): T;
31
+ createCache(type: string): T;
34
32
  /**
35
33
  * 从缓存中获取指定名称的驱动,不存在则创建并执行初始化
36
34
  */
37
- createIfAbsentAsync(type?: string, open?: (entity: T) => Promise<void>): Promise<T>;
35
+ createCacheAsync(type?: string, open?: (entity: T) => Promise<void>): Promise<T>;
38
36
  /**
39
37
  * 创建指定类型驱动
40
38
  */
@@ -47,6 +45,5 @@ declare abstract class Factory<T extends IDriver> implements IFactory<T> {
47
45
  * 加载驱动明细
48
46
  */
49
47
  loadDriver(id: number): Promise<any>;
50
- addType(entity: T): void;
51
48
  }
52
49
  export default Factory;
@@ -2,7 +2,7 @@ import { ArrayHelper, ComponentHelper, DomHelper, DictionaryHelper, EventHelper,
2
2
  /**
3
3
  * 帮助类工厂
4
4
  */
5
- declare class Helpers {
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 Helpers;
29
+ export default Helps;
@@ -11,6 +11,10 @@ interface IFactory<T> {
11
11
  * 开启工厂
12
12
  */
13
13
  open(): void;
14
+ /**
15
+ * 注册新类型
16
+ */
17
+ register(entity: T): any;
14
18
  /**
15
19
  * 根据主键创建驱动,并返回加载后的驱动信息
16
20
  */
@@ -18,11 +22,11 @@ interface IFactory<T> {
18
22
  /**
19
23
  * 从缓存中获取指定类型的驱动,不存在则创建,用于Helper类等简单类型
20
24
  */
21
- createIfAbsent(type: string): T;
25
+ createCache(type: string): T;
22
26
  /**
23
27
  * 从缓存中获取指定名称的驱动,不存在则创建并执行初始化
24
28
  */
25
- createIfAbsentAsync(type: string, open?: (entity: T) => Promise<void>): Promise<T>;
29
+ createCacheAsync(type: string, open?: (entity: T) => Promise<void>): Promise<T>;
26
30
  /**
27
31
  * 创建指定类型的实例
28
32
  */
@@ -0,0 +1,29 @@
1
+ import { ArrayUtil, ComponentUtil, DomUtil, DictionaryUtil, EventUtil, FileUtil, HtmlUtil, ImageUtil, MathUtil, MountUtil, ObjectUtil, MicroUtil, StringUtil, TaskUtil, TypeUtil, TimeUtil, TreeUtil, ScrollUtil, JsonUtil, BrowserUtil, UrlUtil, SignUtil } from "../drivers/helpers";
2
+ /**
3
+ * 工具工厂(无状态)
4
+ */
5
+ declare class Utils {
6
+ static get array(): ArrayUtil;
7
+ static get browser(): BrowserUtil;
8
+ static get component(): ComponentUtil;
9
+ static get dom(): DomUtil;
10
+ static get dictionary(): DictionaryUtil;
11
+ static get event(): EventUtil;
12
+ static get file(): FileUtil;
13
+ static get html(): HtmlUtil;
14
+ static get image(): ImageUtil;
15
+ static get json(): JsonUtil;
16
+ static get math(): MathUtil;
17
+ static get mount(): MountUtil;
18
+ static get object(): ObjectUtil;
19
+ static get micro(): MicroUtil;
20
+ static get scroll(): ScrollUtil;
21
+ static get string(): StringUtil;
22
+ static get task(): TaskUtil;
23
+ static get type(): TypeUtil;
24
+ static get time(): TimeUtil;
25
+ static get tree(): TreeUtil;
26
+ static get url(): UrlUtil;
27
+ static get sign(): SignUtil;
28
+ }
29
+ export default Utils;
@@ -2,7 +2,8 @@ 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 Helpers from "./Helpers";
5
+ import Utils from "./Utils";
6
+ import ISocket from "../drivers/sockets/ISocket";
6
7
  /**
7
8
  * 默认base64编码
8
9
  */
@@ -23,6 +24,10 @@ declare let i18n: II18n;
23
24
  * MD5 hash计算
24
25
  */
25
26
  declare let md5: IHasher;
27
+ /**
28
+ * Socket通信
29
+ */
30
+ declare let socket: ISocket;
26
31
  /**
27
32
  * 默认模板引擎
28
33
  */
@@ -39,4 +44,4 @@ declare let initDriver: (options: CreateFeOptions) => Promise<void>;
39
44
  * 提取可导出的翻译方法,当i18n实例变化后,导出的方案会跟着变化?
40
45
  */
41
46
  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, Helpers, t, t_exists, t_sys, t_enum, t_field, t_field_choose_placeholder, t_field_placeholder, t_table, t_module, t_menu };
47
+ export { base64, cdn, http, i18n, md5, socket, template, messenger, initDriver, Factories, Factory, Utils, 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;
package/esm/main.d.ts CHANGED
@@ -7,7 +7,7 @@ export * from "./factorying";
7
7
  export * from "./plugins";
8
8
  export * from "./repos";
9
9
  export * from "./svcs";
10
- export * from "./utilities";
10
+ export * from "./drivers/utilities";
11
11
  /**
12
12
  * 初始化前端基础框架
13
13
  */
@@ -0,0 +1,4 @@
1
+ interface IDictionary {
2
+ [key: string]: any;
3
+ }
4
+ export default IDictionary;
@@ -67,6 +67,6 @@ declare class ConfigSvc extends Svc {
67
67
  /**
68
68
  * 获取当前语言
69
69
  */
70
- getLanguage(): string;
70
+ getLanguage(): any;
71
71
  }
72
72
  export default ConfigSvc;
@@ -38,5 +38,9 @@ declare class DriverSvc extends Svc {
38
38
  * 加载驱动选项
39
39
  */
40
40
  loadDrivers(app: string, env: string, kind: string): Promise<any[]>;
41
+ /**
42
+ * 加载数据库架构
43
+ */
44
+ loadSchema(id: number, schema: string): Promise<any[]>;
41
45
  }
42
46
  export default DriverSvc;
@@ -17,7 +17,7 @@ declare class I18nSvc {
17
17
  /**
18
18
  * 翻译指定key,不存在使用默认值
19
19
  */
20
- t(key: string, params?: any): any;
20
+ t(key: string, params?: any, display?: string): any;
21
21
  /**
22
22
  * 判断指定key是否存在
23
23
  */
@@ -1,7 +1,6 @@
1
1
  import ConfigSvc from "./implement/ConfigSvc";
2
2
  import EnvSvc from "./implement/EnvSvc";
3
3
  import LogSvc from "./implement/LogSvc";
4
- import SocketSvc from "./implement/SocketSvc";
5
4
  import UserSvc from "./implement/UserSvc";
6
5
  import SvcFactory from "./SvcFactory";
7
6
  declare let settingSvc: {
@@ -53,10 +52,10 @@ declare let driverSvc: {
53
52
  loadApps: (reload?: boolean) => Promise<void>;
54
53
  loadEnvs: (reload?: boolean) => Promise<void>;
55
54
  loadDrivers: (app: string, env: string, kind: string) => Promise<any[]>;
55
+ loadSchema: (id: number, schema: string) => Promise<any[]>;
56
56
  };
57
57
  declare let envSvc: EnvSvc;
58
58
  declare let logSvc: LogSvc;
59
- declare let socketSvc: SocketSvc;
60
59
  declare let userSvc: UserSvc;
61
60
  export * from "./implement";
62
- export { configSvc, driverSvc, envSvc, logSvc, settingSvc, socketSvc, userSvc, SvcFactory };
61
+ export { configSvc, driverSvc, envSvc, logSvc, settingSvc, userSvc, SvcFactory };
@@ -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.23",
3
+ "version": "1.0.25",
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.3"
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.4",
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.6",
53
53
  "xlsx-js-style": "1.2.0"
54
54
  }
55
55
  }
@@ -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
- };
@@ -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
- };
@@ -1,24 +0,0 @@
1
- import { RichTextProps } from "./types";
2
- declare let __VLS_typeProps: RichTextProps;
3
- type __VLS_PublicProps = {
4
- modelValue?: string;
5
- } & typeof __VLS_typeProps;
6
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- "update:modelValue": (modelValue: string) => void;
8
- scroll: (...args: any[]) => void;
9
- change: (...args: any[]) => void;
10
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
11
- onChange?: (...args: any[]) => any;
12
- onScroll?: (...args: any[]) => any;
13
- "onUpdate:modelValue"?: (modelValue: string) => any;
14
- }, {}, {}>;
15
- export default _default;
16
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
- type __VLS_TypePropsToOption<T> = {
18
- [K in keyof T]-?: {} extends Pick<T, K> ? {
19
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
- } : {
21
- type: import('vue').PropType<T[K]>;
22
- required: true;
23
- };
24
- };
@@ -1,21 +0,0 @@
1
- import { RowProps } from "./types";
2
- declare function __VLS_template(): {
3
- default?(_: {}): any;
4
- };
5
- declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<RowProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<RowProps>>>, {}, {}>;
6
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
7
- export default _default;
8
- type __VLS_WithTemplateSlots<T, S> = T & {
9
- new (): {
10
- $slots: S;
11
- };
12
- };
13
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
- type __VLS_TypePropsToOption<T> = {
15
- [K in keyof T]-?: {} extends Pick<T, K> ? {
16
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
- } : {
18
- type: import('vue').PropType<T[K]>;
19
- required: true;
20
- };
21
- };
@@ -1,23 +0,0 @@
1
- import { Monaco } from "../../plugins";
2
- /**
3
- * 代码控件事件
4
- */
5
- interface CodeEmit {
6
- /**
7
- * 挂载完毕事件
8
- */
9
- (event: 'mounted', monaco: typeof Monaco, editor: Monaco.editor.IStandaloneCodeEditor): void;
10
- /**
11
- * 值变动事件
12
- */
13
- (event: 'change', value: string): void;
14
- /**
15
- * 滚动事件
16
- */
17
- (event: 'scroll', scrollTop: number): void;
18
- /**
19
- * 值更新
20
- */
21
- (event: 'update:modelValue', value: any): void;
22
- }
23
- export default CodeEmit;
@@ -1,18 +0,0 @@
1
- /**
2
- * 代码属性
3
- */
4
- interface CodeProps {
5
- /**
6
- * 配置
7
- */
8
- config?: any;
9
- /**
10
- * 是否显示边框
11
- */
12
- border?: boolean;
13
- /**
14
- * 值
15
- */
16
- modelValue?: string;
17
- }
18
- export default CodeProps;
@@ -1,14 +0,0 @@
1
- /**
2
- * 富文本选项配置
3
- */
4
- export interface RichTextOptions {
5
- /**
6
- * 是否只读
7
- */
8
- readonly?: boolean;
9
- /**
10
- * 滚动条距离顶部的距离
11
- */
12
- scrollTop?: number;
13
- }
14
- export default RichTextOptions;
@@ -1,12 +0,0 @@
1
- import { RichTextOptions } from "./RichTextOptions";
2
- /**
3
- * 富文本属性
4
- */
5
- interface RichTextProps {
6
- /**
7
- * 默认配置选项
8
- * 必填,否则内部状态变化,会导致响应状态丢失
9
- */
10
- options: RichTextOptions;
11
- }
12
- export default RichTextProps;
@@ -1,14 +0,0 @@
1
- /**
2
- * 行属性
3
- */
4
- interface RowProps {
5
- /**
6
- * 单元格间隙
7
- */
8
- gap?: number;
9
- /**
10
- * 对齐方向(right)
11
- */
12
- direction?: string;
13
- }
14
- export default RowProps;
@@ -1,10 +0,0 @@
1
- /**
2
- * 驱动接口
3
- */
4
- interface IDriver {
5
- /**
6
- * 类型
7
- */
8
- type: string;
9
- }
10
- export default IDriver;
@@ -1,12 +0,0 @@
1
- import Cdn from "../Cdn";
2
- declare class BootCdn extends Cdn {
3
- type: string;
4
- baseUrl: string;
5
- open(conn: string): Promise<void>;
6
- getElementPlus(): Promise<any>;
7
- getFortAwesome(): Promise<any>;
8
- getMonaco(): Promise<any>;
9
- getMonacoPath(): string;
10
- getQuill(): Promise<any>;
11
- }
12
- export default BootCdn;
@@ -1,15 +0,0 @@
1
- import Cdn from "../Cdn";
2
- /**
3
- * Jsdelivr资源
4
- */
5
- declare class JsdelivrCdn extends Cdn {
6
- type: string;
7
- baseUrl: string;
8
- open(conn: string): Promise<void>;
9
- getElementPlus(): Promise<any>;
10
- getFortAwesome(): Promise<any>;
11
- getMonaco(): Promise<any>;
12
- getMonacoPath(): string;
13
- getQuill(): Promise<any>;
14
- }
15
- export default JsdelivrCdn;
@@ -1,21 +0,0 @@
1
- import Cdn from "../Cdn";
2
- import { ITask } from "../../tasks";
3
- /**
4
- * StaticFile
5
- */
6
- declare class StaticFileCdn extends Cdn {
7
- type: string;
8
- baseUrl: string;
9
- /**
10
- * 任务实例,用于控制并发
11
- */
12
- task: ITask;
13
- open(conn: string): Promise<void>;
14
- getCrypto(): Promise<any>;
15
- getElementPlus(): Promise<any>;
16
- getFortAwesome(): Promise<any>;
17
- getMonacoPath(): string;
18
- getMonaco(): Promise<any>;
19
- getQuill(): Promise<any>;
20
- }
21
- export default StaticFileCdn;
@@ -1,12 +0,0 @@
1
- import Cdn from "../Cdn";
2
- declare class UnpkgCdn extends Cdn {
3
- type: string;
4
- baseUrl: string;
5
- open(conn: string): Promise<void>;
6
- getElementPlus(): Promise<any>;
7
- getFortAwesome(): Promise<any>;
8
- getMonaco(): Promise<any>;
9
- getMonacoPath(): string;
10
- getQuill(): Promise<any>;
11
- }
12
- export default UnpkgCdn;