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,64 +0,0 @@
1
- import { HttpFactory } from "../https";
2
- import { EncoderFactory } from "../encoders";
3
- import { SignerFactory } from "../signers";
4
- import { SsoFactory } from "../ssos";
5
- import { CdnFactory } from "../cdns";
6
- import { ExplainerFactory } from "../explainers";
7
- import { ExcelFactory } from "../excels";
8
- import { FeatureFactory } from "../features";
9
- import { HasherFactory } from "../hashers";
10
- import { ProviderFactory } from "../providers";
11
- /**
12
- * 驱动工厂类
13
- */
14
- declare class DriverFactory {
15
- /**
16
- * 工厂缓存
17
- */
18
- static mappings: {};
19
- /**
20
- * 获取并缓存工厂实例
21
- */
22
- static create(name: string, type: any): any;
23
- /**
24
- *获取CDN工厂
25
- */
26
- static getCdn(): CdnFactory;
27
- /**
28
- *获取编码器工厂
29
- */
30
- static getEncoder(): EncoderFactory;
31
- /**
32
- *获取Excel工厂
33
- */
34
- static getExcel(): ExcelFactory;
35
- /**
36
- *获取Explainer工厂
37
- */
38
- static getExplainer(): ExplainerFactory;
39
- /**
40
- *获取特征工厂
41
- */
42
- static getFeature(): FeatureFactory;
43
- /**
44
- *获取哈希工厂
45
- */
46
- static getHasher(): HasherFactory;
47
- /**
48
- *获取提供程序工厂
49
- */
50
- static getProvider(): ProviderFactory;
51
- /**
52
- *获取Http请求工厂
53
- */
54
- static getHttp(): HttpFactory;
55
- /**
56
- *获取签名工厂
57
- */
58
- static getSigner(): SignerFactory;
59
- /**
60
- *获取SSO工厂
61
- */
62
- static getSso(): SsoFactory;
63
- }
64
- export default DriverFactory;
@@ -1,18 +0,0 @@
1
- import IFactory from "./IFactory";
2
- import IDriver from "../IDriver";
3
- /**
4
- * 工厂基类
5
- */
6
- declare abstract class Factory<T extends IDriver> implements IFactory<T> {
7
- private instances;
8
- /**
9
- * 获取当前驱动所有实例
10
- */
11
- abstract getInstances(): T[];
12
- /**
13
- * 创建指定类型驱动
14
- */
15
- create(type: string, conn?: string): Promise<T>;
16
- createIfAbsent(type: string): Promise<T>;
17
- }
18
- export default Factory;
@@ -1,18 +0,0 @@
1
- /**
2
- * 工厂接口
3
- */
4
- interface IFactory<T> {
5
- /**
6
- * 获取当前驱动所有实例
7
- */
8
- getInstances(): T[];
9
- /**
10
- * 创建指定类型的实例
11
- */
12
- create(type: string, conn?: string): Promise<T>;
13
- /**
14
- * 创建并缓存
15
- */
16
- createIfAbsent(type: string): Promise<T>;
17
- }
18
- export default IFactory;
@@ -1,42 +0,0 @@
1
- import DriverFactory from "./DriverFactory";
2
- import { HttpFactory, IHttp } from "../https";
3
- import { EncoderFactory, IEncoder } from "../encoders";
4
- import { CdnFactory } from "../cdns";
5
- import { ExplainerFactory } from "../explainers";
6
- import { ExcelFactory } from "../excels";
7
- import { FeatureFactory } from "../features";
8
- import { HasherFactory } from "../hashers";
9
- import { ProviderFactory } from "../providers";
10
- import { SignerFactory } from "../signers";
11
- import { SsoFactory } from "../ssos";
12
- import IHasher from "../hashers/IHasher";
13
- /**
14
- * 默认Http请求对象
15
- */
16
- declare let cdnFactory: CdnFactory;
17
- declare let encoderFactory: EncoderFactory;
18
- declare let excelFactory: ExcelFactory;
19
- declare let explainerFactory: ExplainerFactory;
20
- declare let featureFactory: FeatureFactory;
21
- declare let hasherFactory: HasherFactory;
22
- declare let httpFactory: HttpFactory;
23
- declare let providerFactory: ProviderFactory;
24
- declare let signerFactory: SignerFactory;
25
- declare let ssoFactory: SsoFactory;
26
- /**
27
- * 默认base64编码
28
- */
29
- declare let base64: IEncoder;
30
- /**
31
- * 默认Http请求对象
32
- */
33
- declare let http: IHttp;
34
- /**
35
- * MD5 hash计算
36
- */
37
- declare let md5: IHasher;
38
- /**
39
- * 初始化默认驱动实例
40
- */
41
- declare let initDriver: () => Promise<void>;
42
- export { cdnFactory, encoderFactory, excelFactory, explainerFactory, featureFactory, hasherFactory, httpFactory, providerFactory, signerFactory, ssoFactory, DriverFactory, base64, http, md5, initDriver };
@@ -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,19 +0,0 @@
1
- /**
2
- * 脚本帮助类
3
- */
4
- declare class ScriptHelper {
5
- /**
6
- * 异步加载脚本/样式内容,把内容处理为行内html
7
- * 这种方式,依赖的内部资源,会从当前站点加载
8
- */
9
- static loadContentAsync: (src: string | string[]) => Promise<void[]>;
10
- /**
11
- * 通过注入DOM标签异步加载脚本或样式表,已防重
12
- */
13
- static loadAsync: (url: string | string[]) => Promise<HTMLElement[]>;
14
- /**
15
- * 注意:箭头函数没有参数
16
- */
17
- static loadAll: (...args: any[]) => Promise<any[]>;
18
- }
19
- export default ScriptHelper;
@@ -1,97 +0,0 @@
1
- /**
2
- * 数组帮助类
3
- */
4
- declare class ArrayHelper {
5
- /**
6
- * 获取指定数组分成每片指定长度后的集合
7
- */
8
- static getChunks: (arr: any[], chunkSize: number) => any[];
9
- /**
10
- * 取两个集合的交集
11
- */
12
- static intersect: (arr1: any[], arr2: any[]) => any[];
13
- /**
14
- * 排除指定元素(差集)
15
- */
16
- static except: (from: any[], target: any[] | any, equals?: (a: any, b: any) => boolean) => any[];
17
- /**
18
- * 是否包含
19
- */
20
- static contains: (arr: any[], element: any) => boolean;
21
- /**
22
- * 判断指定集合中的指定属性的值,是否包含关键词
23
- */
24
- static filterContains: (arr: any[], props: string[], keywords: string) => any[];
25
- /**
26
- * 判断2个数组是否每个元素都相同
27
- */
28
- static same: (arr1: any[], arr2: any[]) => boolean;
29
- /**
30
- * 求最大值,数据类型的比较函数要自己转换为数值类型
31
- */
32
- static max: (arr: any[], func: Function) => any;
33
- /**
34
- * 求最小值,数据类型的比较函数要自己转换为数值类型
35
- */
36
- static min: (arr: any[], func: Function) => any;
37
- /**
38
- * 求和
39
- */
40
- static sum: (arr: any[], func: Function, digits?: number) => number;
41
- /**
42
- * 求平均值
43
- */
44
- static avg: (arr: any[], func: Function, digits?: number) => number;
45
- /**
46
- * 对数组元素根据指定函数进行去重,并返回去重后的值的新数组 n=>n.value
47
- */
48
- static distinct: (arr: any[], selector: Function) => any[];
49
- /**
50
- * 不存在某元素时才添加某元素
51
- */
52
- static pushIfNotExist: (arr: any[], element: any) => void;
53
- /**
54
- * 连接值构建成新数组,重复项也会自动构建,不存在的值,会自动创建为一个新项
55
- */
56
- static fromValues: (arrValues: any[], arr: any[], propertyValue: string, propertyText: string) => any[];
57
- /**
58
- * 删除指定元素,并返回删除后的字符串
59
- */
60
- static removeIndex: (str: string, index: number, split: string) => string;
61
- /**
62
- * 分割指定字符串为数组,字符串为空,返回空数组
63
- * @param input
64
- * @param split
65
- * @param element 转换后添加的默认元素
66
- */
67
- static split: (input: string, split: string, element?: any) => any[];
68
- /**
69
- * 合并多个数组中的每一项到新的二维数组中,没值的元素被有值的元素代替
70
- */
71
- static combine: (...args: any[]) => any[];
72
- /**
73
- * 在指定元素前插入新元素,返回插入元素的索引
74
- */
75
- static insert: (array: object[], selectedRow: object, row: object) => number;
76
- /**
77
- * 在指定元素后插入新元素,返回插入元素的索引
78
- */
79
- static append: (array: object[], selectedRow: object, row: object) => number;
80
- /**
81
- * 删除执行数组中的指定对象或者集合
82
- */
83
- static remove: (array: any[], elements: any[] | any) => void;
84
- /**
85
- * 按照指定函数对数组排序
86
- */
87
- static orderBy: (array: any[], funcs: any, asc?: boolean) => any[];
88
- /**
89
- * 分组
90
- */
91
- static groupByArray: (array: any[], keyFunc: (item: any) => any) => any[];
92
- /**
93
- * 分组,封装成字典而不是集合,大数据场景速度提升百倍
94
- */
95
- static groupBy: (array: any[], keyFunc: (item: any) => any, valueHandler?: (item: any) => any) => object;
96
- }
97
- export default ArrayHelper;
@@ -1,18 +0,0 @@
1
- /**
2
- * 组件帮助类
3
- */
4
- declare class ComponentHelper {
5
- /**
6
- * 根据动态加载的组件对象,得到组件集合
7
- */
8
- static getComponents(components: object, replace: string, prefix?: string): object;
9
- /**
10
- * 获取部分自定义组件名称
11
- */
12
- static getName: (url: string, prefix: string) => string;
13
- /**
14
- * 检测异步控件是否加载完毕
15
- */
16
- static detectLoaded(ref: any, cb: Function): void;
17
- }
18
- export default ComponentHelper;
@@ -1,6 +0,0 @@
1
- /**
2
- * Cookie帮助类
3
- */
4
- declare class CookieHelper {
5
- }
6
- export default CookieHelper;
@@ -1,18 +0,0 @@
1
- /**
2
- * 字典帮助类
3
- */
4
- declare class DictionaryHelper {
5
- /**
6
- * 从指定字典中提取忽略大小写的key的值
7
- */
8
- static getValueIgnoreCase(key: string, value: object): string;
9
- /**
10
- * 对字典进行排序,并得到新字典
11
- */
12
- static sort(obj: object): any;
13
- /**
14
- * 连接字典
15
- */
16
- static join(obj: object, valueHandler?: (value: string) => string, delimiter?: string, join?: string): string;
17
- }
18
- export default DictionaryHelper;
@@ -1,86 +0,0 @@
1
- /**
2
- * Dom帮助类
3
- */
4
- declare class DomHelper {
5
- /**
6
- * 根据字符串Ascii码得到固定颜色字典
7
- */
8
- static getColors(values: string[]): object;
9
- /**
10
- * 获取样式名
11
- */
12
- static getClass(...args: any[]): string;
13
- /**
14
- * 添加类
15
- */
16
- static addClass: (dom: Element, cls: string, choice?: any) => void;
17
- /**
18
- * 删除类
19
- */
20
- static removeClass: (selector: string | Element, className: string, except?: Element) => void;
21
- /**
22
- * 根据计算后的样式进行DOM过滤
23
- */
24
- static filterStyle(doms: any[], fun: (style: CSSStyleDeclaration) => boolean): any[];
25
- /**
26
- * 添加样式
27
- */
28
- static addStyle(dom: HTMLElement, prop: string, value: string): void;
29
- /**
30
- * 查找指定父节点
31
- */
32
- static parentUntil(dom: any, cls: string): any;
33
- /**
34
- * 查找第一个绝对定位的元素或backdrop元素,否则使用html元素
35
- */
36
- static parentAbsolute(dom: any): any;
37
- /**
38
- * 查找孩子节点
39
- */
40
- static find(dom: Element, cls: string): Element;
41
- /**
42
- * 获取dom宽度或高度
43
- */
44
- private static getWidthOrHeight;
45
- /**
46
- * 统计所有控件宽度,含外边距
47
- */
48
- static getWidth(value: Element | Element[]): number;
49
- /**
50
- * 获取元素可用宽度(移除内填充)
51
- */
52
- static getAvailableWidth(value: Element | Element[]): number;
53
- /**
54
- * 统计所有非固定定位控件高度,含内填充和外边距
55
- */
56
- static getHeight(value: Element | Element[]): number;
57
- /**
58
- * 获取元素可用高度(移除内填充)
59
- */
60
- static getAvailableHeight(value: Element | Element[]): number;
61
- /**
62
- * 获取指定元素在视口内的位置
63
- */
64
- static getViewportStyle(target: Element, title: string, subMenu: string, viewport: Element, position: string): any;
65
- /**
66
- * 获取指定选择器最大的索引
67
- */
68
- static getMaxIndex(selector: string): number;
69
- /**
70
- * 判断当前鼠标位置是否在指定范围之内
71
- */
72
- static inRange(event: MouseEvent, x: number, y: number, width: number, height: number): boolean;
73
- /**
74
- * 创建指定标签的dom,并设置内容
75
- */
76
- static create(name: string, cls?: string, html?: string): HTMLElement;
77
- /**
78
- * 不存在时创建dom,并自动追加到文档
79
- */
80
- static createIfAbsent(name: string, cls: string, html?: string): HTMLElement;
81
- /**
82
- * 获取文本宽度
83
- */
84
- static getTextWidth(value: string): number;
85
- }
86
- export default DomHelper;
@@ -1,30 +0,0 @@
1
- /**
2
- * 事件帮助类
3
- */
4
- declare class EventHelper {
5
- /**
6
- * 批量绑定事件,执行指定处理函数
7
- */
8
- static bind: (events: any[], dom: any, func: Function) => void;
9
- /**
10
- * 批量绑定事件,执行指定处理函数
11
- */
12
- static unbind: (events: any[], dom: any, func: Function) => void;
13
- /**
14
- * 绑定点击处理函数
15
- */
16
- static click: (dom: any, func: Function) => void;
17
- /**
18
- * 解除点击监听
19
- */
20
- static unclick: (dom: any, func: Function) => void;
21
- /**
22
- * 绑定滚动处理函数
23
- */
24
- static scroll: (dom: any, func: Function) => void;
25
- /**
26
- * 移除滚动处理函数,防止内存泄漏
27
- */
28
- static unscroll: (dom: any, func: Function) => void;
29
- }
30
- export default EventHelper;
@@ -1,22 +0,0 @@
1
- /**
2
- * 文件帮助类
3
- */
4
- declare class FileHelper {
5
- /**
6
- * 保存文件
7
- */
8
- static save: (base64: string, fileName: string) => void;
9
- /**
10
- * 获取文件扩展名
11
- */
12
- static getExtension: (name: string) => string;
13
- /**
14
- * 判断当前文件名是否是excel文件
15
- */
16
- static isExcel: (name: string) => boolean;
17
- /**
18
- * 判断当前文件是否是图片文件
19
- */
20
- static isImage: (url: string) => boolean;
21
- }
22
- export default FileHelper;
@@ -1,10 +0,0 @@
1
- /**
2
- * Html帮助类
3
- */
4
- declare class HtmlHelper {
5
- /**
6
- * 获取Html内容
7
- */
8
- static getHtml: (value: string) => string;
9
- }
10
- export default HtmlHelper;
@@ -1,14 +0,0 @@
1
- /**
2
- * 多语言帮助类
3
- */
4
- declare class I18nHelper {
5
- /**
6
- * 获取浏览器默认语言
7
- */
8
- static getBrowserLanguage(): "zh-cn" | "en";
9
- /**
10
- * 获取当前语言
11
- */
12
- static getCurrentLanguage(): any;
13
- }
14
- export default I18nHelper;
@@ -1,10 +0,0 @@
1
- /**
2
- * 图片帮助类
3
- */
4
- declare class ImageHelper {
5
- /**
6
- * 获取base64图片地址
7
- */
8
- static base64: (base64: string) => string;
9
- }
10
- export default ImageHelper;
@@ -1,39 +0,0 @@
1
- declare type Prop = {
2
- key: string;
3
- type: string;
4
- remark: string;
5
- };
6
- /**
7
- * JSON帮助类
8
- */
9
- declare class JsonHelper {
10
- /**
11
- * 把字符串格式化为Json字符串
12
- */
13
- static stringify(value: any): string;
14
- /**
15
- * 对非字符串进行序列化
16
- */
17
- static stringifyWithString(value: any): string;
18
- /**
19
- * 把字符串格式化为Json字符串
20
- */
21
- static stringifyString(value: string): string;
22
- /**
23
- * 反序列化成json对象
24
- */
25
- static parse(value: string): any;
26
- /**
27
- * 根据props中的.自动分割得到属性值
28
- */
29
- static getValue(value: string, props: string): string;
30
- /**
31
- * 把json字符串合并到目标对象上
32
- */
33
- static mergeTo(target: any, from: string): void;
34
- /**
35
- * 从树集合构建出Json对象
36
- */
37
- static buildObject(tree: any[], childProp: string, fun: (node: any) => Prop): string;
38
- }
39
- export default JsonHelper;
@@ -1,46 +0,0 @@
1
- /**
2
- * 数学帮助类
3
- */
4
- declare class MathHelper {
5
- /**
6
- * 过滤某一页数据
7
- */
8
- static filterPage: (rows: any[], page: number, size: number) => any[];
9
- /**
10
- * 总页数
11
- */
12
- static pageCount: (count: number, size: number) => number;
13
- /**
14
- * 四舍五入
15
- */
16
- static round: (value: number, digits: number) => string;
17
- /**
18
- * 天花板函数
19
- */
20
- static ceil: (value: number) => number;
21
- /**
22
- * 获取百分比
23
- */
24
- static getPercentage: (current: number, total: number) => number;
25
- /**
26
- * 获取百分比,保留2位小数
27
- */
28
- static getPercentageText: (current: number, total: number) => string;
29
- /**
30
- * 获取进度文本
31
- */
32
- static getProgressText: (current: number, total: number) => string;
33
- /**
34
- * 获取大小
35
- */
36
- static size: (bytes: number) => string;
37
- /**
38
- * 生成指定范围内的随机数
39
- */
40
- static random(start: number, end: number): number;
41
- /**
42
- * 获取最大值
43
- */
44
- static max(...values: number[]): number;
45
- }
46
- export default MathHelper;
@@ -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,38 +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
- * 获取对象不区分大小写的key
35
- */
36
- static getKey(value: object, key: string): string;
37
- }
38
- export default ObjectHelper;