halo-fe 1.0.8 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (235) hide show
  1. package/dist/assets/@intlify-BISCQg1h.js +2189 -0
  2. package/dist/{vendor-@monaco-editor-DKC4UNw_.js → assets/@monaco-editor-BCDRi0Ti.js} +1 -1
  3. package/dist/assets/@vue-aVYGocXp.js +93 -0
  4. package/dist/assets/clone-DtpAsLoe.js +139 -0
  5. package/dist/{vendor-file-saver-DKXzEV2Q.js → assets/file-saver-Cnua3zoa.js} +1 -1
  6. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  7. package/dist/{vendor-underscore.string-vrHhfBaT.js → assets/underscore.string-oDfap0sE.js} +3 -3
  8. package/dist/{vendor-util-deprecate-BfbfwJhs.js → assets/util-deprecate-BqFawLoO.js} +1 -1
  9. package/dist/assets/vue-i18n-CLr3brPz.js +1670 -0
  10. package/dist/main.js +2383 -1579
  11. package/dist/style.css +1 -1
  12. package/esm/coms/Empty.vue.d.ts +1 -0
  13. package/esm/coms/conditions/Condition.vue.d.ts +12 -0
  14. package/esm/coms/conditions/Index.vue.d.ts +12 -0
  15. package/esm/coms/conditions/index.d.ts +3 -0
  16. package/esm/coms/conditions/types/ConditionGroupProps.d.ts +11 -0
  17. package/esm/coms/conditions/types/ConditionProps.d.ts +18 -0
  18. package/esm/coms/conditions/types/index.d.ts +3 -0
  19. package/esm/coms/{Code.vue.d.ts → controls/Code.vue.d.ts} +11 -3
  20. package/esm/coms/controls/Option.vue.d.ts +2 -0
  21. package/esm/coms/controls/Select.vue.d.ts +2 -0
  22. package/esm/coms/controls/index.d.ts +7 -0
  23. package/esm/coms/{types → controls/types}/CodeEmit.d.ts +1 -1
  24. package/esm/coms/controls/types/CodeProps.d.ts +28 -0
  25. package/esm/coms/controls/types/Range.d.ts +26 -0
  26. package/esm/coms/controls/types/index.d.ts +6 -0
  27. package/esm/coms/index.d.ts +5 -8
  28. package/esm/coms/layouts/index.d.ts +5 -0
  29. package/esm/coms/layouts/types/index.d.ts +2 -0
  30. package/esm/coms/types/index.d.ts +1 -6
  31. package/esm/drivers/bridges/IBridge.d.ts +7 -1
  32. package/esm/drivers/builders/Builder.d.ts +4 -1
  33. package/esm/drivers/builders/BuilderFactory.d.ts +1 -1
  34. package/esm/drivers/builders/IBuilder.d.ts +9 -0
  35. package/esm/drivers/builders/entities/ProviderTable.d.ts +22 -0
  36. package/esm/drivers/builders/entities/index.d.ts +2 -0
  37. package/esm/drivers/builders/implement/JsonBuilder.d.ts +3 -0
  38. package/esm/drivers/builders/implement/MongoBuilder.d.ts +6 -0
  39. package/esm/drivers/builders/implement/MySqlBuilder.d.ts +3 -0
  40. package/esm/drivers/builders/implement/SqlBuilder.d.ts +6 -0
  41. package/esm/drivers/builders/index.d.ts +3 -1
  42. package/esm/drivers/builders/types/ProviderTable.d.ts +6 -0
  43. package/esm/drivers/builders/types/index.d.ts +2 -0
  44. package/esm/drivers/cdns/Cdn.d.ts +20 -7
  45. package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
  46. package/esm/drivers/cdns/ICdn.d.ts +28 -11
  47. package/esm/drivers/cdns/implements/LocalCdn.d.ts +13 -6
  48. package/esm/drivers/cdns/implements/ThirdCdn.d.ts +34 -0
  49. package/esm/drivers/cdns/index.d.ts +2 -1
  50. package/esm/drivers/encoders/Encoder.d.ts +1 -1
  51. package/esm/drivers/encoders/EncoderFactory.d.ts +1 -1
  52. package/esm/drivers/encoders/IEncoder.d.ts +1 -1
  53. package/esm/drivers/encoders/implement/Base64Encoder.d.ts +2 -1
  54. package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
  55. package/esm/drivers/excels/implements/XlsxExcel.d.ts +1 -0
  56. package/esm/drivers/explainers/ExplainerFactory.d.ts +1 -1
  57. package/esm/drivers/features/FeatureFactory.d.ts +1 -1
  58. package/esm/drivers/hashers/Hasher.d.ts +1 -1
  59. package/esm/drivers/hashers/HasherFactory.d.ts +1 -1
  60. package/esm/drivers/hashers/IHasher.d.ts +1 -1
  61. package/esm/drivers/hashers/implement/Md5Hasher.d.ts +2 -1
  62. package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +1 -1
  63. package/esm/drivers/https/Http.d.ts +2 -2
  64. package/esm/drivers/https/HttpFactory.d.ts +1 -1
  65. package/esm/drivers/https/entities/HttpMessage.d.ts +14 -3
  66. package/esm/drivers/https/entities/HttpRequest.d.ts +6 -2
  67. package/esm/drivers/https/implements/DefaultHttp.d.ts +9 -1
  68. package/esm/drivers/index.d.ts +2 -0
  69. package/esm/{plugins/types → drivers/messengers}/IMessenger.d.ts +2 -1
  70. package/esm/drivers/messengers/Messenger.d.ts +15 -0
  71. package/esm/drivers/messengers/MessengerFactory.d.ts +13 -0
  72. package/esm/drivers/messengers/implement/ConsoleMessenger.d.ts +15 -0
  73. package/esm/drivers/messengers/index.d.ts +4 -0
  74. package/esm/drivers/providers/IProvider.d.ts +6 -2
  75. package/esm/drivers/providers/Provider.d.ts +2 -0
  76. package/esm/drivers/providers/ProviderFactory.d.ts +1 -1
  77. package/esm/drivers/providers/helpers/SqlHelper.d.ts +11 -0
  78. package/esm/drivers/providers/helpers/index.d.ts +2 -0
  79. package/esm/drivers/providers/implements/CookieProvider.d.ts +2 -0
  80. package/esm/drivers/providers/implements/IndexedDbProvider.d.ts +2 -0
  81. package/esm/drivers/providers/implements/StorageProvider.d.ts +3 -9
  82. package/esm/drivers/providers/index.d.ts +1 -0
  83. package/esm/drivers/signers/SignerFactory.d.ts +1 -1
  84. package/esm/drivers/ssos/SsoFactory.d.ts +1 -1
  85. package/esm/drivers/tasks/ITask.d.ts +5 -0
  86. package/esm/drivers/tasks/Task.d.ts +1 -0
  87. package/esm/drivers/tasks/TaskFactory.d.ts +1 -1
  88. package/esm/drivers/tasks/implement/MemoryTask.d.ts +15 -0
  89. package/esm/drivers/templates/ITemplate.d.ts +11 -0
  90. package/esm/drivers/templates/Template.d.ts +6 -0
  91. package/esm/drivers/templates/TemplateFactory.d.ts +9 -0
  92. package/esm/drivers/templates/implement/LiquidTemplate.d.ts +6 -0
  93. package/esm/drivers/templates/index.d.ts +3 -0
  94. package/esm/drivers/videos/VideoFactory.d.ts +1 -1
  95. package/esm/drivers/voices/VoiceFactory.d.ts +1 -1
  96. package/esm/factorying/Factories.d.ts +27 -13
  97. package/esm/factorying/Factory.d.ts +16 -8
  98. package/esm/factorying/IFactory.d.ts +6 -6
  99. package/esm/factorying/index.d.ts +12 -3
  100. package/esm/helpers/DictionaryHelper.d.ts +3 -1
  101. package/esm/helpers/DomHelper.d.ts +24 -3
  102. package/esm/helpers/JsonHelper.d.ts +18 -10
  103. package/esm/helpers/ObjectHelper.d.ts +7 -3
  104. package/esm/helpers/TreeHelper.d.ts +1 -1
  105. package/esm/helpers/index.d.ts +1 -2
  106. package/esm/helpers/types/JsonConfig.d.ts +10 -0
  107. package/esm/helpers/types/TreeNodeProp.d.ts +3 -0
  108. package/esm/helpers/types/index.d.ts +2 -1
  109. package/esm/main.d.ts +2 -2
  110. package/esm/plugins/index.d.ts +0 -1
  111. package/esm/svcs/ISvc.d.ts +2 -1
  112. package/esm/svcs/Svc.d.ts +1 -0
  113. package/esm/svcs/SvcFactory.d.ts +4 -1
  114. package/esm/svcs/implement/ConfigSvc.d.ts +4 -0
  115. package/esm/svcs/implement/I18nSvc.d.ts +83 -0
  116. package/esm/svcs/implement/SettingSvc.d.ts +4 -0
  117. package/esm/svcs/implement/index.d.ts +2 -0
  118. package/esm/svcs/index.d.ts +14 -1
  119. package/esm/types/CreateFeOptions.d.ts +24 -0
  120. package/esm/types/{CreateOptions.d.ts → CreatePcOptions.d.ts} +2 -5
  121. package/esm/types/index.d.ts +3 -2
  122. package/esm/utilities/EventUtility.d.ts +11 -0
  123. package/esm/utilities/types/DragOptions.d.ts +2 -2
  124. package/esm/utilities/types/Rect.d.ts +4 -0
  125. package/esm/utilities/types/index.d.ts +2 -2
  126. package/package.json +16 -12
  127. package/dist/vendor-clone-NGbTzSwJ.js +0 -159
  128. package/dist/vendor-crypto-js-DWn5nTKL.js +0 -4997
  129. package/dist/vendor-xlsx-js-style-DMPNZPOx.js +0 -11862
  130. package/esm/coms/types/CodeProps.d.ts +0 -18
  131. package/esm/drivers/IDisposable.d.ts +0 -10
  132. package/esm/drivers/IDriver.d.ts +0 -10
  133. package/esm/drivers/cdns/implements/BootCdn.d.ts +0 -12
  134. package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +0 -13
  135. package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +0 -16
  136. package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +0 -10
  137. package/esm/drivers/driver-helper.d.ts +0 -46
  138. package/esm/drivers/factories/DriverFactory.d.ts +0 -64
  139. package/esm/drivers/factories/Factories.d.ts +0 -55
  140. package/esm/drivers/factories/Factory.d.ts +0 -25
  141. package/esm/drivers/factories/IFactory.d.ts +0 -18
  142. package/esm/drivers/factories/implement/CdnFactory.d.ts +0 -13
  143. package/esm/drivers/factories/implement/EncoderFactory.d.ts +0 -17
  144. package/esm/drivers/factories/implement/ExcelFactory.d.ts +0 -13
  145. package/esm/drivers/factories/implement/ExplainerFactory.d.ts +0 -6
  146. package/esm/drivers/factories/implement/FeatureFactory.d.ts +0 -13
  147. package/esm/drivers/factories/implement/HasherFactory.d.ts +0 -11
  148. package/esm/drivers/factories/implement/HttpFactory.d.ts +0 -18
  149. package/esm/drivers/factories/implement/ProviderFactory.d.ts +0 -18
  150. package/esm/drivers/factories/implement/SignerFactory.d.ts +0 -13
  151. package/esm/drivers/factories/implement/SsoFactory.d.ts +0 -17
  152. package/esm/drivers/factories/implement/TaskFactory.d.ts +0 -9
  153. package/esm/drivers/factories/implement/VideoFactory.d.ts +0 -3
  154. package/esm/drivers/factories/implement/VoiceFactory.d.ts +0 -6
  155. package/esm/drivers/factories/implement/index.d.ts +0 -11
  156. package/esm/drivers/factories/index.d.ts +0 -21
  157. package/esm/drivers/providers/implements/StorageHelper.d.ts +0 -34
  158. package/esm/drivers/requesters/IRequester.d.ts +0 -25
  159. package/esm/drivers/requesters/Requester.d.ts +0 -13
  160. package/esm/drivers/requesters/RequesterFactory.d.ts +0 -21
  161. package/esm/drivers/requesters/entities/HttpRequest.d.ts +0 -34
  162. package/esm/drivers/requesters/entities/HttpResponse.d.ts +0 -19
  163. package/esm/drivers/requesters/implements/DefaultRequester.d.ts +0 -12
  164. package/esm/drivers/requesters/implements/LocalRequester.d.ts +0 -43
  165. package/esm/drivers/requesters/implements/MkRequester.d.ts +0 -40
  166. package/esm/drivers/requesters/index.d.ts +0 -5
  167. package/esm/factories/Factories.d.ts +0 -55
  168. package/esm/factories/Factory.d.ts +0 -38
  169. package/esm/factories/IFactory.d.ts +0 -27
  170. package/esm/factories/index.d.ts +0 -26
  171. package/esm/helpers/ScriptHelper.d.ts +0 -31
  172. package/esm/helpers/array-helper.d.ts +0 -97
  173. package/esm/helpers/component-helper.d.ts +0 -10
  174. package/esm/helpers/cookie-helper.d.ts +0 -6
  175. package/esm/helpers/dictionary-helper.d.ts +0 -18
  176. package/esm/helpers/dom-helper.d.ts +0 -86
  177. package/esm/helpers/event-helper.d.ts +0 -30
  178. package/esm/helpers/file-helper.d.ts +0 -22
  179. package/esm/helpers/html-helper.d.ts +0 -10
  180. package/esm/helpers/i18n-helper.d.ts +0 -14
  181. package/esm/helpers/image-helper.d.ts +0 -10
  182. package/esm/helpers/json-helper.d.ts +0 -31
  183. package/esm/helpers/math-helper.d.ts +0 -46
  184. package/esm/helpers/micro-helper.d.ts +0 -10
  185. package/esm/helpers/mount-helper.d.ts +0 -14
  186. package/esm/helpers/object-helper.d.ts +0 -34
  187. package/esm/helpers/script-helper.d.ts +0 -31
  188. package/esm/helpers/scroll-helper.d.ts +0 -14
  189. package/esm/helpers/sign-helper.d.ts +0 -14
  190. package/esm/helpers/storage-helper.d.ts +0 -34
  191. package/esm/helpers/string-helper.d.ts +0 -94
  192. package/esm/helpers/task-helper.d.ts +0 -26
  193. package/esm/helpers/time-helper.d.ts +0 -62
  194. package/esm/helpers/tree-helper.d.ts +0 -54
  195. package/esm/helpers/type-helper.d.ts +0 -26
  196. package/esm/helpers/url-helper.d.ts +0 -96
  197. package/esm/plugins/types/IMessager.d.ts +0 -34
  198. package/esm/plugins/types/index.d.ts +0 -10
  199. package/esm/services/SettingService.d.ts +0 -5
  200. package/esm/services/index.d.ts +0 -15
  201. package/esm/servs/IServ.d.ts +0 -6
  202. package/esm/servs/Serv.d.ts +0 -4
  203. package/esm/servs/ServFactory.d.ts +0 -11
  204. package/esm/servs/implement/ConfigServ.d.ts +0 -66
  205. package/esm/servs/implement/DriverServ.d.ts +0 -36
  206. package/esm/servs/implement/EnvServ.d.ts +0 -14
  207. package/esm/servs/implement/LogServ.d.ts +0 -19
  208. package/esm/servs/implement/SettingServ.d.ts +0 -42
  209. package/esm/servs/implement/SocketServ.d.ts +0 -38
  210. package/esm/servs/implement/UserServ.d.ts +0 -47
  211. package/esm/servs/index.d.ts +0 -15
  212. package/esm/stores/config.d.ts +0 -59
  213. package/esm/stores/driver.d.ts +0 -41
  214. package/esm/stores/env.d.ts +0 -12
  215. package/esm/stores/index.d.ts +0 -7
  216. package/esm/stores/log.d.ts +0 -20
  217. package/esm/stores/setting.d.ts +0 -47
  218. package/esm/stores/socket.d.ts +0 -27
  219. package/esm/stores/user.d.ts +0 -44
  220. package/esm/svcs/proxies/driverSvc.d.ts +0 -18
  221. package/esm/svcs/proxies/index.d.ts +0 -2
  222. package/esm/thirds/index.d.ts +0 -8
  223. package/esm/vite.config.d.ts +0 -6
  224. /package/dist/{vendor-moment-h96o7c8I.js → assets/moment-h96o7c8I.js} +0 -0
  225. /package/dist/{vendor-sprintf-js-BPTdvBYM.js → assets/sprintf-js-BPTdvBYM.js} +0 -0
  226. /package/dist/{vendor-state-local-CEworIRt.js → assets/state-local-CEworIRt.js} +0 -0
  227. /package/dist/{vendor-underscore-B0BCaBxV.js → assets/underscore-B0BCaBxV.js} +0 -0
  228. /package/esm/coms/{Compare.vue.d.ts → controls/Compare.vue.d.ts} +0 -0
  229. /package/esm/coms/{RichText.vue.d.ts → controls/RichText.vue.d.ts} +0 -0
  230. /package/esm/coms/{types → controls/types}/RichTextOptions.d.ts +0 -0
  231. /package/esm/coms/{types → controls/types}/RichTextProps.d.ts +0 -0
  232. /package/esm/coms/{Col.vue.d.ts → layouts/Col.vue.d.ts} +0 -0
  233. /package/esm/coms/{Container.vue.d.ts → layouts/Container.vue.d.ts} +0 -0
  234. /package/esm/coms/{Row.vue.d.ts → layouts/Row.vue.d.ts} +0 -0
  235. /package/esm/coms/{types → layouts/types}/RowProps.d.ts +0 -0
@@ -1,10 +0,0 @@
1
- /**
2
- * 微前端帮助类
3
- */
4
- declare class MicroHelper {
5
- /**
6
- * 加载乾坤子应用
7
- */
8
- static load: (name: any, entry: any, dom: any, props: any) => void;
9
- }
10
- export default MicroHelper;
@@ -1,14 +0,0 @@
1
- /**
2
- * 事件挂载帮助类
3
- */
4
- declare class MountHelper {
5
- /**
6
- * 激发主框架事件
7
- */
8
- static emit: (event: string, payload: any) => void;
9
- /**
10
- * 批量激发主框架事件
11
- */
12
- static emits: (events: any) => void;
13
- }
14
- export default MountHelper;
@@ -1,34 +0,0 @@
1
- /**
2
- * 对象帮助类
3
- */
4
- declare class ObjectHelper {
5
- /**
6
- * 净化对象,返回不带默认属性的对象
7
- */
8
- static pure(input: object): {};
9
- /**
10
- * 过滤key,并输出新对象
11
- */
12
- static filter(input: object, filter: (n: any) => boolean, valueHandler: (n: any) => {}): any[];
13
- /**
14
- * 把数组转换成对象
15
- */
16
- static toObject(array: any[], keySelector: (n: any) => string, valueSelector: (n: any) => string): {};
17
- /**
18
- * 手动复制,并对字段执行指定自定义处理
19
- */
20
- static copy: (obj: any, handler?: {}) => any[] | any;
21
- /**
22
- * 对对象进行深度克隆,同时可以移除Proxy对象
23
- */
24
- static clone: (obj: any, handler?: (n: any) => void) => any;
25
- /**
26
- * 合并来源对象到目标对象上
27
- */
28
- static mergeTo: (target: any, from: any) => any;
29
- /**
30
- * 给对象添加属性集合,并赋值
31
- */
32
- static addProperties: (obj: object, keys: string[], value: string) => void;
33
- }
34
- export default ObjectHelper;
@@ -1,31 +0,0 @@
1
- /**
2
- * 脚本帮助类
3
- */
4
- declare class ScriptHelper {
5
- /**
6
- * 异步加载脚本/样式内容,把内容处理为行内html
7
- * 这种方式,依赖的内部资源,会从当前站点加载
8
- */
9
- static loadContentAsync: (src: string | string[]) => Promise<void[]>;
10
- /**
11
- * 异步加载单个路径下的多个文件
12
- */
13
- static loadPathAsync: (path: string, files: string[]) => Promise<void>;
14
- /**
15
- * 通过注入DOM标签异步加载脚本或样式表
16
- */
17
- static loadAsync: (src: string | string[]) => Promise<void>;
18
- /**
19
- * 注意:箭头函数没有参数
20
- */
21
- static loadAll: (...args: any[]) => Promise<any[]>;
22
- /**
23
- * 根据路径获取标签(无src)
24
- */
25
- static getInnerTagByUrl: (url: string) => HTMLStyleElement | HTMLScriptElement;
26
- /**
27
- * 根据路径获取待加载的元素,同时包含Url
28
- */
29
- static getOuterTagByUrl: (url: string) => HTMLLinkElement | HTMLScriptElement;
30
- }
31
- export default ScriptHelper;
@@ -1,14 +0,0 @@
1
- /**
2
- * 滚动帮助类
3
- */
4
- declare class ScrollHelper {
5
- /**
6
- * 判断指定元素滚动条位置,是否到了页面底部
7
- */
8
- static isBottom: (selector: any) => boolean;
9
- /**
10
- * 滚动指定元素的滚动条到页面底部
11
- */
12
- static scrollToBottom: (selector: any) => void;
13
- }
14
- export default ScrollHelper;
@@ -1,14 +0,0 @@
1
- /**
2
- * 签名帮助类
3
- */
4
- declare class SignHelper {
5
- /**
6
- * 清空对象中的空值
7
- */
8
- static clean(obj: object): void;
9
- /**
10
- * 签名字典
11
- */
12
- static signDictionary(dictionary: object, encoding?: boolean): string;
13
- }
14
- export default SignHelper;
@@ -1,34 +0,0 @@
1
- /**
2
- * 存储帮助类
3
- */
4
- declare class StorageHelper {
5
- /**
6
- * 获取本地存储
7
- */
8
- static get: (key: string, value?: any) => any;
9
- /**
10
- * 设置本地存储
11
- */
12
- static set: (key: string, value: string) => void;
13
- /**
14
- * 获取本地存储
15
- */
16
- static getObject: (key: string) => any;
17
- /**
18
- * 设置本地存储
19
- */
20
- static setObject: (key: string, value: any) => void;
21
- /**
22
- * 移除存储数据
23
- */
24
- static remove: (key: string) => void;
25
- /**
26
- * 以5M为基准,获取剩余可用容量(KB)
27
- */
28
- static getLeftStorage: () => number;
29
- /**
30
- * 判断指定值是否能够存储到storage中
31
- */
32
- static canStorage: (value: object) => boolean;
33
- }
34
- export default StorageHelper;
@@ -1,94 +0,0 @@
1
- /**
2
- * 字符串帮助类
3
- */
4
- declare class StringHelper {
5
- /**
6
- * 生成唯一字符串
7
- */
8
- static getUniqueId: () => string;
9
- /**
10
- * 填充字符串到指定长度,使用pad填充
11
- */
12
- static padLeft: (value: string, length: number, pad: string) => any;
13
- /**
14
- * 去掉头部字符串
15
- */
16
- static trimStart: (value: string, trim: string) => string;
17
- /**
18
- * 去掉尾部字符串
19
- */
20
- static trimEnd: (value: string, trim: string) => string;
21
- /**
22
- * 去掉头尾字符串
23
- */
24
- static trim: (value: string, start: string, end: string) => string;
25
- /**
26
- * 获取中划线命名法
27
- */
28
- static getDashName: (value: string) => string;
29
- /**
30
- * 忽略大小写包含判断,支持从数组中搜索关键词
31
- */
32
- static containsIgnoreCase: (keywords: string, value: string | string[]) => boolean;
33
- /**
34
- * 从html中提取纯文本
35
- */
36
- static getTextFromHtml: (html: string) => string;
37
- /**
38
- * 判断是否是数字类型,这样支持0
39
- */
40
- static isNumber: (value: any) => boolean;
41
- /**
42
- * 验证是否是邮箱格式
43
- */
44
- static isEmail: (email: string) => boolean;
45
- /**
46
- * 判断是否是json
47
- */
48
- static isJson: (value: string) => boolean;
49
- /**
50
- * 判断是否是isJsonp
51
- */
52
- static isJsonp: (value: string) => boolean;
53
- /**
54
- * 判断是否是html
55
- */
56
- static isHtml: (value: string) => boolean;
57
- /**
58
- * 获取内容类型
59
- */
60
- static getContentType: (value: string) => "json" | "html" | "text";
61
- /**
62
- * 判断字符串是否为空或空串
63
- */
64
- static isNullOrEmpty: (value: string) => boolean;
65
- /**
66
- * 判断字符串是否为空或空串
67
- */
68
- static isEmpty: (value: string) => value is "";
69
- /**
70
- * 判断是否符合密码要求
71
- */
72
- static isPassword: (value: string) => boolean;
73
- /**
74
- * 获取数据值或者空
75
- */
76
- static getNumberOrNull: (value: any) => number;
77
- /**
78
- * 格式化成留指定位数的小数
79
- */
80
- static format: (value: string, digits: number) => any;
81
- /**
82
- * 获取两个字符串之间的字符串
83
- */
84
- static getBetween: (value: string, start: string, end: string) => string;
85
- /**
86
- * 根据字符串或数组,自动返回数组
87
- */
88
- static getArray(name: string | string[]): string[];
89
- /**
90
- * 忽略大小写比较
91
- */
92
- static equalsIgnoreCase(value: any, valueCompare: string): boolean;
93
- }
94
- export default StringHelper;
@@ -1,26 +0,0 @@
1
- /**
2
- * 任务执行帮助类
3
- */
4
- declare class TaskHelper {
5
- /**
6
- * 延时指定ms后执行指定任务
7
- */
8
- static delay: (fun: Function, ms: number) => number;
9
- /**
10
- * 在执行指定延时后,每隔指定ms执行指定任务
11
- */
12
- static execute: (fun: Function, ms: number, delay: number) => Promise<unknown>;
13
- /**
14
- * 清空定时器
15
- */
16
- static clearInterval: (id: number) => void;
17
- /**
18
- * 防抖(指定时间内只触发一次)
19
- */
20
- static debounce: (fun: Function, delay: number) => (e: any) => void;
21
- /**
22
- * 节流:https://segmentfault.com/a/1190000018428170
23
- */
24
- static throttle: (fun: Function, delay: number) => (e: any) => boolean;
25
- }
26
- export default TaskHelper;
@@ -1,62 +0,0 @@
1
- /**
2
- * 时间帮助类
3
- */
4
- declare class TimeHelper {
5
- /**
6
- * 获取相对于1970年1月1日的时间戳(ms),不同时区结果相同
7
- */
8
- static getTimestamp: (value?: any) => number;
9
- /**
10
- * 根据字符串获取可对比的时间
11
- */
12
- static getTime: (value?: any) => Date;
13
- /**
14
- * 格式化时间
15
- */
16
- static format: (value: string, format: string) => string;
17
- /**
18
- * 获取当前日期时间的字符串
19
- */
20
- static getDateTimeString: () => string;
21
- /**
22
- * 获取当前时间的字符串
23
- */
24
- static getDateString: () => string;
25
- /**
26
- * 获取当前时间的字符串
27
- */
28
- static getTimeString: () => string;
29
- /**
30
- * 对时间值进行时间格式化
31
- */
32
- static formatSecondTime: (value: any) => string;
33
- /**
34
- * 对时间值进行时间格式化
35
- */
36
- static formatMillisecondTime: (value: string) => string;
37
- /**
38
- * 格式化成24小时时间格式
39
- */
40
- static formatTime: (value: any) => string;
41
- /**
42
- * 对时间值进行日期格式化
43
- */
44
- static formatDate: (value: any) => string;
45
- /**
46
- * 添加天数
47
- */
48
- static addDays: (value: any, days: number) => string;
49
- /**
50
- * 添加月份
51
- */
52
- static addMonths: (value: any, months: number) => string;
53
- /**
54
- * 判断指定时间是否是周末
55
- */
56
- static isWeekend: (value: any) => boolean;
57
- /**
58
- * 把中国时间,转换为当地时间
59
- */
60
- static localeTime: (time: any) => string;
61
- }
62
- export default TimeHelper;
@@ -1,54 +0,0 @@
1
- /**
2
- * 树帮助类
3
- */
4
- declare class TreeHelper {
5
- /**
6
- * 从树结构数据中,递归获取指定主键的对象
7
- */
8
- static getById: (id: any, idProp: string, tree: any[], childProp: string) => any;
9
- /**
10
- * 树节点
11
- */
12
- static getByIds: (ids: any[], idProp: string, tree: any[], childProp: string) => any[];
13
- /**
14
- * 找出指定层级集合中,指定对象的下一个对象
15
- */
16
- static getNextById: (id: any, idProp: string, tree: any[], childProp: string) => any;
17
- /**
18
- * 获取兄弟节点
19
- */
20
- static getSiblingsById: (id: any, idProp: string, tree: any[], childProp: string) => any;
21
- /**
22
- * 获取父节点
23
- */
24
- static getParentById: (id: any, idProp: string, tree: any[], childProp: string) => any;
25
- /**
26
- * 从树结构数据中,递归获取指定主键的父元素集合
27
- */
28
- static getParentsById: (id: any, idProp: string, tree: any[], childProp: string, hasSelf?: boolean) => any[];
29
- /**
30
- * 获取当前节点的所有孩子节点的集合
31
- */
32
- static getChildrenById: (id: any, idProp: string, tree: any[], childProp: string, hasSelf?: boolean) => any[];
33
- /**
34
- * 获取当前节点的所有孩子节点的集合
35
- */
36
- static getChildren: (element: any, childProp: string, hasSelf?: boolean) => any[];
37
- /**
38
- * 搜索指定文本的树结构
39
- */
40
- static searchTree: (keywords: string, tree: any[], childProp: string, searchProps: any) => any[];
41
- /**
42
- * 删除指定子元素
43
- */
44
- static removeById: (id: any, idProp: string, tree: any[], childProp: string) => void;
45
- /**
46
- * 获取树结构扁平化后的节点信息
47
- */
48
- static getFlat: (tree: any[], childProp: string) => any[];
49
- /**
50
- * 对树结点的数据进行重新映射,映射得到新的Tree数组
51
- */
52
- static map: (tree: any[], prevChildProp: string, childProp: string, fun: Function) => any[];
53
- }
54
- export default TreeHelper;
@@ -1,26 +0,0 @@
1
- /**
2
- * 类型帮助类
3
- */
4
- declare class TypeHelper {
5
- /**
6
- * 判断输入类型是否是字符串类型 null -> false
7
- */
8
- static isString: (input: any) => boolean;
9
- /**
10
- * 判断输入类型是否是Object类型
11
- */
12
- static isObject: (input: any) => boolean;
13
- /**
14
- * 判断输入类型是否是Array类型
15
- */
16
- static isArray: (input: any) => boolean;
17
- /**
18
- * 判断输入类型是否是Number类型,null -> false
19
- */
20
- static isNumber: (input: any) => boolean;
21
- /**
22
- * 判断输入类型是否是isBoolean类型
23
- */
24
- static isBoolean: (input: any) => boolean;
25
- }
26
- export default TypeHelper;
@@ -1,96 +0,0 @@
1
- /**
2
- * Url帮助类
3
- */
4
- declare class UrlHelper {
5
- /**
6
- * 获取指定地址路由对象
7
- */
8
- static getToRoute(url: string, withReturnUrl?: boolean): any;
9
- /**
10
- * 获取要跳转的Url地址信息,自动涵盖后退地址
11
- */
12
- static getToUrl(url: string, withReturnUrl?: boolean): string;
13
- /**
14
- * 获取菜单参数
15
- */
16
- static getM(url: string): any;
17
- /**
18
- * 获取后退地址路由
19
- */
20
- static getBackRoute(): any;
21
- /**
22
- * 获取要后退的地址URL
23
- */
24
- static getBackUrl(): string;
25
- /**
26
- * 获取指定地址的路由对象,自动合并qs,并解码
27
- */
28
- static getRoute(url: string, queryObj?: object): any;
29
- /**
30
- * 处理实体,得到url query参数形式
31
- * 如:app=Tool&compare[language]=json&compare[sql]=App%3D%27Tool%27+and+[Table]+like+%27Ctl_%25%27+order+by+[Table],+Name
32
- */
33
- static getQuery(value: any): string;
34
- /**
35
- * 处理键值对的值
36
- */
37
- private static handleQueryValue;
38
- /**
39
- * 自动根据后面路径,决定是否要合并Url
40
- */
41
- static concatUrl: (url: string, path: string) => string;
42
- /**
43
- * 合并路径和查询对象(自动编码,并支持覆盖现有参数),得到完整URL地址,并会省略默认值
44
- * ? 对url参数不编码,只对 queryObj 参数编码,防止用户的参数被改成编码形式
45
- * ? 目前,对Url参数对象和目标对象都编码,因为源对象属性是经过解码的
46
- */
47
- static getUrl: (url: string, params?: any) => string;
48
- /**
49
- * 获取超链接配置对象
50
- */
51
- static getAnchor: (url: string, params?: any) => {
52
- href: any;
53
- target: any;
54
- };
55
- /**
56
- * 从Url中提取路径
57
- */
58
- static getPath(url: string): string;
59
- /**
60
- * 获取path中最后一个片段信息
61
- */
62
- static getLastSegment(url: string): string;
63
- /**
64
- * 获取地址中的查询参数
65
- */
66
- static getQueryParam(url: string, key: string): string;
67
- /**
68
- * 从Url中提取查询对象
69
- */
70
- static deserialize(url: string): object;
71
- /**
72
- * 把查询字符串转换成对象(自动解码成源数据)
73
- */
74
- static deserializeQs(qs: string, decode?: boolean): any;
75
- /**
76
- * 把对象转换成查询字符串,自动编码
77
- */
78
- static serialize(obj: object, encoding?: boolean): string;
79
- /**
80
- * URL编码
81
- */
82
- static encode(val: string): string;
83
- /**
84
- * 把指定对象转换成base64字符串
85
- */
86
- static base64(obj: object): string;
87
- /**
88
- * 把指定base64字符串解析为原对象
89
- */
90
- static base64Decode(val: string): any;
91
- /**
92
- * 是否是http或https开头的地址
93
- */
94
- static httpOrHttps(url: string): boolean;
95
- }
96
- export default UrlHelper;
@@ -1,34 +0,0 @@
1
- /**
2
- * 消息提示接口,下游自己定义
3
- */
4
- interface IMessager {
5
- /**
6
- * 显示全局成功消息
7
- */
8
- success(message: string): void;
9
- /**
10
- * 显示全局警告消息
11
- */
12
- warning(message: string | number): void;
13
- /**
14
- * 显示全局信息消息
15
- */
16
- info(message: string): void;
17
- /**
18
- * 显示全局错误消息
19
- */
20
- error(message: string): void;
21
- /**
22
- * 显示全局错误消息
23
- */
24
- confirm(title: string, message: string, options?: any): Promise<any>;
25
- /**
26
- * 显示警告框
27
- */
28
- alert(title: string, message: string, options?: any): void;
29
- /**
30
- * 通知
31
- */
32
- notify(title: string, message: string, type: string): void;
33
- }
34
- export default IMessager;
@@ -1,10 +0,0 @@
1
- import type IMessenger from "./IMessenger";
2
- /**
3
- * 初始化消息对象,保证后续更新能够被同步更新
4
- */
5
- declare let messenger: IMessenger;
6
- /**
7
- * 设置消息对象
8
- */
9
- declare let initMessenger: (msgr: IMessenger) => void;
10
- export { IMessenger, messenger, initMessenger };
@@ -1,5 +0,0 @@
1
- /**
2
- * 获取前端配置
3
- */
4
- declare let SettingService: any;
5
- export default SettingService;
@@ -1,15 +0,0 @@
1
- import SettingService from "./SettingService";
2
- /**
3
- * 消息提示接口,下游自己定义
4
- */
5
- interface IMessageService {
6
- /**
7
- * 成功消息提示
8
- */
9
- success(message: string): void;
10
- /**
11
- * 错误消息提示
12
- */
13
- error(message: string): void;
14
- }
15
- export { IMessageService, SettingService };
@@ -1,6 +0,0 @@
1
- /**
2
- * 服务接口
3
- */
4
- interface IServ {
5
- }
6
- export default IServ;
@@ -1,4 +0,0 @@
1
- import IServ from "./IServ";
2
- declare abstract class Serv implements IServ {
3
- }
4
- export default Serv;
@@ -1,11 +0,0 @@
1
- /**
2
- * 服务工厂类
3
- */
4
- declare class ServFactory {
5
- static(): void;
6
- /**
7
- * 获取路由服务
8
- */
9
- static getRouter(): void;
10
- }
11
- export default ServFactory;
@@ -1,66 +0,0 @@
1
- /**
2
- * 不一定跟用户相关,此时如果使用配置仓储,使用的是配置文件的配置,非接口配置
3
- */
4
- declare class ConfigServ {
5
- /**
6
- * 默认背景
7
- */
8
- background: string;
9
- /**
10
- * 当前主题
11
- */
12
- theme: string;
13
- /**
14
- * 当前布局方式
15
- */
16
- layout: string;
17
- /**
18
- * 当前语言
19
- */
20
- language: string;
21
- /**
22
- * 字体
23
- */
24
- font: string;
25
- /**
26
- * 文件布局方式
27
- */
28
- fileLayout: string;
29
- editor: {
30
- schemas: any[];
31
- completions: {};
32
- };
33
- /**
34
- * 初始化配置值(不一定跟登录用户相关,这也是单独分离的好处)
35
- */
36
- init(configs: any[]): void;
37
- /**
38
- * 尝试添加架构
39
- */
40
- tryAddSchema(uri: string, fileMatch: string, schema: object): void;
41
- /**
42
- * 获取本地配置
43
- */
44
- getLocalConfig(type: string): Promise<any>;
45
- /**
46
- * 设置背景
47
- */
48
- setBackground(background: string): void;
49
- /**
50
- * 加载用户配置
51
- */
52
- loadConfig(type: string, cached?: boolean): Promise<any>;
53
- /**
54
- * 全量保存用户配置
55
- */
56
- saveConfig(type: string, data: any, cached?: boolean): Promise<boolean>;
57
- /**
58
- * 部分保存用户配置
59
- */
60
- patchConfig(type: string, pairs: any): Promise<boolean>;
61
- /**
62
- * 获取当前语言
63
- */
64
- getLanguage(): string;
65
- }
66
- export default ConfigServ;