halo-fe 1.0.24 → 1.0.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. package/README.md +3 -1
  2. package/dist/assets/{liquidjs-B8dqQyVv.js → liquidjs-C2HVw1Ra.js} +82 -81
  3. package/dist/main.js +4888 -4397
  4. package/dist/style.css +1 -1
  5. package/esm/@types/CreateFeOptions.d.ts +4 -0
  6. package/esm/coms/@types/PagerEmit.d.ts +11 -0
  7. package/esm/coms/@types/PagerProps.d.ts +18 -0
  8. package/esm/coms/@types/SocketProgressProps.d.ts +31 -0
  9. package/esm/coms/@types/TabProps.d.ts +11 -0
  10. package/esm/coms/@types/TableEmit.d.ts +10 -0
  11. package/esm/coms/@types/TableProps.d.ts +34 -0
  12. package/esm/coms/@types/index.d.ts +7 -1
  13. package/esm/coms/Empty.vue.d.ts +12 -10
  14. package/esm/coms/Fill.vue.d.ts +8 -10
  15. package/esm/coms/Scroller.vue.d.ts +11 -13
  16. package/esm/coms/Timer.vue.d.ts +7 -9
  17. package/esm/coms/cards/Index.vue.d.ts +16 -0
  18. package/esm/coms/cards/index.d.ts +2 -0
  19. package/esm/coms/conditions/Condition.vue.d.ts +1 -1
  20. package/esm/coms/conditions/Index.vue.d.ts +1 -1
  21. package/esm/coms/controls/@types/CodeIntelli.d.ts +6 -0
  22. package/esm/coms/controls/@types/CodeProps.d.ts +31 -2
  23. package/esm/coms/controls/@types/Range.d.ts +1 -1
  24. package/esm/coms/controls/Code.vue.d.ts +16 -28
  25. package/esm/coms/controls/Compare.vue.d.ts +16 -8
  26. package/esm/coms/controls/Input.vue.d.ts +2 -0
  27. package/esm/coms/controls/Option.vue.d.ts +1 -1
  28. package/esm/coms/controls/RichText.vue.d.ts +2 -4
  29. package/esm/coms/controls/Select.vue.d.ts +1 -1
  30. package/esm/coms/controls/index.d.ts +2 -1
  31. package/esm/coms/index.d.ts +1 -0
  32. package/esm/coms/layouts/Col.vue.d.ts +6 -8
  33. package/esm/coms/layouts/Container.vue.d.ts +12 -11
  34. package/esm/coms/layouts/Desc.vue.d.ts +2 -0
  35. package/esm/coms/layouts/Row.vue.d.ts +7 -8
  36. package/esm/coms/pagers/Index.vue.d.ts +9 -0
  37. package/esm/coms/pagers/index.d.ts +2 -0
  38. package/esm/coms/progresses/Circle.vue.d.ts +2 -0
  39. package/esm/coms/progresses/Index.vue.d.ts +9 -0
  40. package/esm/coms/progresses/SocketProgress.vue.d.ts +7 -9
  41. package/esm/coms/progresses/Spinner.vue.d.ts +20 -0
  42. package/esm/coms/progresses/index.d.ts +3 -2
  43. package/esm/coms/tables/Index.vue.d.ts +33 -0
  44. package/esm/coms/tabs/Tab.vue.d.ts +2 -2
  45. package/esm/coms/tabs/TabPane.vue.d.ts +1 -1
  46. package/esm/drivers/@types/IOpen.d.ts +1 -1
  47. package/esm/drivers/builders/BuilderFactory.d.ts +1 -1
  48. package/esm/drivers/cdns/Cdn.d.ts +7 -9
  49. package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
  50. package/esm/drivers/cdns/ICdn.d.ts +2 -11
  51. package/esm/drivers/encoders/Encoder.d.ts +1 -1
  52. package/esm/drivers/encoders/EncoderFactory.d.ts +3 -2
  53. package/esm/drivers/encoders/IEncoder.d.ts +2 -5
  54. package/esm/drivers/encoders/implement/Base64Encoder.d.ts +1 -1
  55. package/esm/drivers/encoders/implement/UrlEncoder.d.ts +7 -0
  56. package/esm/drivers/excels/Excel.d.ts +1 -1
  57. package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
  58. package/esm/drivers/excels/implements/XlsxExcel.d.ts +1 -1
  59. package/esm/drivers/explainers/ExplainerFactory.d.ts +2 -2
  60. package/esm/drivers/features/FeatureFactory.d.ts +2 -2
  61. package/esm/drivers/features/IFeature.d.ts +2 -6
  62. package/esm/drivers/features/implements/ExpressionFeature.d.ts +1 -1
  63. package/esm/drivers/features/implements/I18NFeature.d.ts +1 -1
  64. package/esm/drivers/features/implements/SortFeature.d.ts +1 -1
  65. package/esm/drivers/hashers/Hasher.d.ts +1 -1
  66. package/esm/drivers/hashers/HasherFactory.d.ts +2 -2
  67. package/esm/drivers/hashers/IHasher.d.ts +2 -5
  68. package/esm/drivers/hashers/implement/Md5Hasher.d.ts +1 -1
  69. package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +1 -1
  70. package/esm/drivers/https/Http.d.ts +22 -7
  71. package/esm/drivers/https/HttpFactory.d.ts +2 -7
  72. package/esm/drivers/https/IHttp.d.ts +16 -12
  73. package/esm/drivers/https/entities/HttpModel.d.ts +12 -0
  74. package/esm/drivers/https/entities/HttpResponse.d.ts +5 -1
  75. package/esm/drivers/https/implements/DefaultHttp.d.ts +1 -1
  76. package/esm/drivers/https/implements/HaloHttp.d.ts +2 -10
  77. package/esm/drivers/https/implements/MkHttp.d.ts +2 -3
  78. package/esm/drivers/i18ns/I18n.d.ts +1 -1
  79. package/esm/drivers/i18ns/I18nFactory.d.ts +1 -1
  80. package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +1 -1
  81. package/esm/drivers/index.d.ts +52 -1
  82. package/esm/drivers/messengers/MessengerFactory.d.ts +2 -2
  83. package/esm/drivers/providers/IProvider.d.ts +19 -15
  84. package/esm/drivers/providers/Provider.d.ts +11 -9
  85. package/esm/drivers/providers/ProviderFactory.d.ts +5 -9
  86. package/esm/drivers/providers/implements/CookieProvider.d.ts +8 -8
  87. package/esm/drivers/providers/implements/IndexedDbProvider.d.ts +20 -10
  88. package/esm/drivers/providers/implements/StorageProvider.d.ts +8 -8
  89. package/esm/drivers/signers/ISigner.d.ts +1 -1
  90. package/esm/drivers/signers/Signer.d.ts +1 -1
  91. package/esm/drivers/signers/SignerFactory.d.ts +2 -2
  92. package/esm/drivers/signers/implements/DefaultSigner.d.ts +1 -1
  93. package/esm/drivers/sockets/@types/SubscribedWindow.d.ts +16 -0
  94. package/esm/drivers/sockets/@types/index.d.ts +2 -0
  95. package/esm/drivers/sockets/ISocket.d.ts +39 -0
  96. package/esm/drivers/sockets/Socket.d.ts +17 -0
  97. package/esm/drivers/sockets/SocketFactory.d.ts +13 -0
  98. package/esm/drivers/sockets/entities/SocketProgress.d.ts +34 -0
  99. package/esm/drivers/sockets/entities/SocketResponse.d.ts +26 -0
  100. package/esm/drivers/sockets/entities/index.d.ts +3 -0
  101. package/esm/drivers/sockets/implement/DefaultSocket.d.ts +37 -0
  102. package/esm/drivers/sockets/index.d.ts +4 -0
  103. package/esm/drivers/ssos/ISso.d.ts +1 -1
  104. package/esm/drivers/ssos/Sso.d.ts +1 -1
  105. package/esm/drivers/ssos/SsoFactory.d.ts +2 -2
  106. package/esm/drivers/ssos/implements/AnonymousSso.d.ts +1 -1
  107. package/esm/drivers/ssos/implements/BearerSso.d.ts +1 -1
  108. package/esm/drivers/ssos/implements/NioSso.d.ts +1 -1
  109. package/esm/drivers/ssos/implements/SecretSso.d.ts +1 -1
  110. package/esm/drivers/ssos/implements/WeiXinSso.d.ts +1 -1
  111. package/esm/drivers/tasks/ITask.d.ts +10 -3
  112. package/esm/drivers/tasks/Task.d.ts +2 -1
  113. package/esm/drivers/tasks/TaskFactory.d.ts +2 -2
  114. package/esm/drivers/tasks/implement/MemoryTask.d.ts +5 -3
  115. package/esm/drivers/templates/TemplateFactory.d.ts +2 -2
  116. package/esm/drivers/util/@types/JsonConfig.d.ts +10 -0
  117. package/esm/drivers/util/@types/TreeNodeProp.d.ts +9 -0
  118. package/esm/drivers/util/@types/index.d.ts +3 -0
  119. package/esm/drivers/util/IUtil.d.ts +8 -0
  120. package/esm/drivers/util/Util.d.ts +8 -0
  121. package/esm/drivers/util/UtilFactory.d.ts +32 -0
  122. package/esm/drivers/util/implements/ArrayUtil.d.ts +123 -0
  123. package/esm/drivers/util/implements/BrowserUtil.d.ts +12 -0
  124. package/esm/drivers/util/implements/ComponentUtil.d.ts +20 -0
  125. package/esm/drivers/util/implements/DictionaryUtil.d.ts +40 -0
  126. package/esm/drivers/util/implements/DomUtil.d.ts +118 -0
  127. package/esm/drivers/util/implements/EventUtil.d.ts +32 -0
  128. package/esm/drivers/util/implements/FileUtil.d.ts +24 -0
  129. package/esm/drivers/util/implements/HtmlUtil.d.ts +16 -0
  130. package/esm/drivers/util/implements/ImageUtil.d.ts +12 -0
  131. package/esm/drivers/util/implements/JsonUtil.d.ts +58 -0
  132. package/esm/drivers/util/implements/MathUtil.d.ts +52 -0
  133. package/esm/drivers/util/implements/MicroUtil.d.ts +12 -0
  134. package/esm/drivers/util/implements/MountUtil.d.ts +16 -0
  135. package/esm/drivers/util/implements/ObjectUtil.d.ts +44 -0
  136. package/esm/drivers/util/implements/ScrollUtil.d.ts +16 -0
  137. package/esm/drivers/util/implements/SignUtil.d.ts +16 -0
  138. package/esm/drivers/util/implements/StringUtil.d.ts +104 -0
  139. package/esm/drivers/util/implements/TaskUtil.d.ts +28 -0
  140. package/esm/drivers/util/implements/TimeUtil.d.ts +72 -0
  141. package/esm/drivers/util/implements/TreeUtil.d.ts +56 -0
  142. package/esm/drivers/util/implements/TypeUtil.d.ts +28 -0
  143. package/esm/drivers/util/implements/UrlUtil.d.ts +90 -0
  144. package/esm/drivers/util/index.d.ts +24 -0
  145. package/esm/drivers/utilities/IUtility.d.ts +3 -0
  146. package/esm/drivers/utilities/Utility.d.ts +3 -0
  147. package/esm/drivers/utilities/UtilityFactory.d.ts +6 -6
  148. package/esm/drivers/utilities/implement/EventUtility.d.ts +3 -6
  149. package/esm/drivers/utilities/implement/SaveUtility.d.ts +48 -3
  150. package/esm/drivers/videos/VideoFactory.d.ts +2 -2
  151. package/esm/drivers/voices/VoiceFactory.d.ts +2 -2
  152. package/esm/factory/Factories.d.ts +99 -0
  153. package/esm/factory/Factory.d.ts +41 -0
  154. package/esm/factory/IFactory.d.ts +40 -0
  155. package/esm/factory/Utils.d.ts +29 -0
  156. package/esm/factory/index.d.ts +4 -0
  157. package/esm/factorying/Factories.d.ts +9 -5
  158. package/esm/factorying/Factory.d.ts +7 -10
  159. package/esm/factorying/IFactory.d.ts +7 -3
  160. package/esm/factorying/Utils.d.ts +24 -9
  161. package/esm/factorying/index.d.ts +7 -2
  162. package/esm/main.d.ts +1 -2
  163. package/esm/repos/Repo.d.ts +5 -0
  164. package/esm/repos/RepoFactory.d.ts +20 -1
  165. package/esm/repos/implements/PageRepo.d.ts +30 -0
  166. package/esm/repos/implements/QueryRepo.d.ts +64 -0
  167. package/esm/repos/implements/SettingRepo.d.ts +1 -0
  168. package/esm/repos/index.d.ts +10 -1
  169. package/esm/svcs/SvcFactory.d.ts +1 -1
  170. package/esm/svcs/implement/ConfigSvc.d.ts +8 -8
  171. package/esm/svcs/implement/DriverSvc.d.ts +1 -35
  172. package/esm/svcs/index.d.ts +6 -17
  173. package/package.json +10 -10
@@ -24,9 +24,9 @@ declare class ConfigSvc extends Svc {
24
24
  */
25
25
  schemas: any[];
26
26
  /**
27
- * 智能提示是否注册信息,防止重复注册
27
+ * 全局默认智能提示字典,防止重复注册
28
28
  */
29
- completions: {};
29
+ intelli: {};
30
30
  };
31
31
  /**
32
32
  * 初始化绑定基础配置信息
@@ -35,7 +35,7 @@ declare class ConfigSvc extends Svc {
35
35
  /**
36
36
  * 初始化配置值(不一定跟登录用户相关,这也是单独分离的好处)
37
37
  */
38
- bind: (configs: UserConfig[]) => Promise<void>;
38
+ bindAsync: (configs: UserConfig[]) => Promise<void>;
39
39
  /**
40
40
  * 尝试添加架构
41
41
  */
@@ -43,7 +43,7 @@ declare class ConfigSvc extends Svc {
43
43
  /**
44
44
  * 获取本地配置
45
45
  */
46
- get(kind: string, type: string): Promise<any>;
46
+ getAsync(kind: string, type: string): Promise<any>;
47
47
  /**
48
48
  * 设置背景
49
49
  */
@@ -51,19 +51,19 @@ declare class ConfigSvc extends Svc {
51
51
  /**
52
52
  * 保存用户应用配置
53
53
  */
54
- saveApp(form: any): Promise<void>;
54
+ saveAppAsync(form: any): Promise<void>;
55
55
  /**
56
56
  * 加载用户配置
57
57
  */
58
- load(kind: string, type: string, cached?: boolean): Promise<any>;
58
+ loadAsync(kind: string, type: string, cached?: boolean): Promise<any>;
59
59
  /**
60
60
  * 全量保存用户配置
61
61
  */
62
- save(kind: string, type: string, data: any, cached?: boolean): Promise<boolean>;
62
+ saveAsync(kind: string, type: string, data: any, cached?: boolean): Promise<boolean>;
63
63
  /**
64
64
  * 部分保存用户配置
65
65
  */
66
- patch(kind: string, type: string, pairs: any): Promise<boolean>;
66
+ patchAsync(kind: string, type: string, body: any): Promise<boolean>;
67
67
  /**
68
68
  * 获取当前语言
69
69
  */
@@ -4,43 +4,9 @@ import Svc from "../Svc";
4
4
  */
5
5
  declare class DriverSvc extends Svc {
6
6
  type: string;
7
- /**
8
- * 加载完毕状态记录
9
- */
10
- loaded: {
11
- apps: boolean;
12
- envs: boolean;
13
- };
14
- /**
15
- * 是否加载中状态,用于并发场景 防止重复拉取接口
16
- */
17
- loading: {
18
- apps: boolean;
19
- envs: boolean;
20
- };
21
- /**
22
- * 应用集合,存储到Store中,防止每一个Driver实例重复加载
23
- */
24
- apps: any[];
25
- /**
26
- * 环境集合,存储到Store中,防止每一个Driver实例重复加载
27
- */
28
- envs: any[];
29
- /**
30
- * 加载应用选项
31
- */
32
- loadApps(reload?: boolean): Promise<void>;
33
- /**
34
- * 加载环境选项
35
- */
36
- loadEnvs(reload?: boolean): Promise<void>;
37
- /**
38
- * 加载驱动选项
39
- */
40
- loadDrivers(app: string, env: string, kind: string): Promise<any[]>;
41
7
  /**
42
8
  * 加载数据库架构
43
9
  */
44
- loadSchema(id: number, schema: string): Promise<any[]>;
10
+ loadSchemaAsync(id: number, schema: string): Promise<any[]>;
45
11
  }
46
12
  export default DriverSvc;
@@ -1,9 +1,12 @@
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";
6
+ /**
7
+ * 初始化服务
8
+ */
9
+ declare let initSvcAsync: () => Promise<void>;
7
10
  declare let settingSvc: {
8
11
  loaded: boolean;
9
12
  particles: boolean;
@@ -40,24 +43,10 @@ declare let configSvc: ConfigSvc;
40
43
  */
41
44
  declare let driverSvc: {
42
45
  type: string;
43
- loaded: {
44
- apps: boolean;
45
- envs: boolean;
46
- };
47
- loading: {
48
- apps: boolean;
49
- envs: boolean;
50
- };
51
- apps: any[];
52
- envs: any[];
53
- loadApps: (reload?: boolean) => Promise<void>;
54
- loadEnvs: (reload?: boolean) => Promise<void>;
55
- loadDrivers: (app: string, env: string, kind: string) => Promise<any[]>;
56
- loadSchema: (id: number, schema: string) => Promise<any[]>;
46
+ loadSchemaAsync: (id: number, schema: string) => Promise<any[]>;
57
47
  };
58
48
  declare let envSvc: EnvSvc;
59
49
  declare let logSvc: LogSvc;
60
- declare let socketSvc: SocketSvc;
61
50
  declare let userSvc: UserSvc;
62
51
  export * from "./implement";
63
- export { configSvc, driverSvc, envSvc, logSvc, settingSvc, socketSvc, userSvc, SvcFactory };
52
+ export { initSvcAsync, configSvc, driverSvc, envSvc, logSvc, settingSvc, userSvc, SvcFactory };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "halo-fe",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
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.5.0"
33
32
  },
34
33
  "dependencies": {
35
34
  "clone": "2.1.2",
36
35
  "file-saver": "2.0.5",
37
- "liquidjs": "10.16.7",
36
+ "liquidjs": "10.17.0",
38
37
  "moment": "2.30.1",
39
38
  "underscore": "1.13.7",
40
- "underscore.string": "3.3.6"
39
+ "underscore.string": "3.3.6",
40
+ "vue": "3.5.9"
41
41
  },
42
42
  "devDependencies": {
43
- "@types/node": "22.5.3",
44
- "@vitejs/plugin-vue": "5.1.3",
43
+ "@types/node": "22.7.3",
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
- "monaco-editor": "0.51.0",
48
+ "monaco-editor": "0.52.0",
49
49
  "quill": "2.0.2",
50
- "sass": "1.78.0",
51
- "vite": "5.4.3",
52
- "vue-tsc": "2.1.4",
50
+ "sass": "1.79.3",
51
+ "vite": "5.4.8",
52
+ "vue-tsc": "2.1.6",
53
53
  "xlsx-js-style": "1.2.0"
54
54
  }
55
55
  }