halo-fe 1.0.18 → 1.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. package/dist/main.js +984 -980
  2. package/esm/@types/CreateFeOptions.d.ts +25 -0
  3. package/esm/@types/index.d.ts +2 -0
  4. package/esm/coms/@types/ScrollerProps.d.ts +15 -0
  5. package/esm/coms/@types/index.d.ts +2 -0
  6. package/esm/coms/Scroller.vue.d.ts +1 -1
  7. package/esm/coms/conditions/@types/ConditionGroupProps.d.ts +11 -0
  8. package/esm/coms/conditions/@types/ConditionProps.d.ts +18 -0
  9. package/esm/coms/conditions/@types/index.d.ts +3 -0
  10. package/esm/coms/conditions/Condition.vue.d.ts +1 -1
  11. package/esm/coms/conditions/Index.vue.d.ts +1 -1
  12. package/esm/coms/{types → controls/@types}/CodeEmit.d.ts +1 -1
  13. package/esm/coms/controls/@types/CodeProps.d.ts +28 -0
  14. package/esm/coms/controls/@types/Range.d.ts +26 -0
  15. package/esm/coms/controls/@types/index.d.ts +6 -0
  16. package/esm/coms/controls/Code.vue.d.ts +1 -1
  17. package/esm/coms/controls/RichText.vue.d.ts +1 -1
  18. package/esm/coms/controls/index.d.ts +1 -1
  19. package/esm/coms/index.d.ts +1 -1
  20. package/esm/coms/layouts/@types/index.d.ts +2 -0
  21. package/esm/coms/layouts/Row.vue.d.ts +1 -1
  22. package/esm/coms/layouts/index.d.ts +1 -1
  23. package/esm/coms/progresses/@types/SocketProgressProps.d.ts +23 -0
  24. package/esm/coms/progresses/@types/index.d.ts +2 -0
  25. package/esm/coms/progresses/SocketProgress.vue.d.ts +1 -1
  26. package/esm/coms/tabs/@types/TabProps.d.ts +7 -0
  27. package/esm/coms/tabs/@types/index.d.ts +2 -0
  28. package/esm/coms/tabs/Tab.vue.d.ts +1 -1
  29. package/esm/drivers/@types/IDispose.d.ts +10 -0
  30. package/esm/drivers/@types/IOpen.d.ts +10 -0
  31. package/esm/drivers/@types/index.d.ts +4 -0
  32. package/esm/drivers/bridges/IBridge.d.ts +1 -1
  33. package/esm/drivers/builders/IBuilder.d.ts +1 -1
  34. package/esm/drivers/builders/types/ProviderTable.d.ts +6 -0
  35. package/esm/drivers/builders/types/index.d.ts +2 -0
  36. package/esm/drivers/cdns/ICdn.d.ts +1 -1
  37. package/esm/drivers/excels/IExcel.d.ts +1 -1
  38. package/esm/drivers/explainers/IExplainer.d.ts +1 -1
  39. package/esm/drivers/features/IFeature.d.ts +1 -1
  40. package/esm/drivers/https/IHttp.d.ts +1 -1
  41. package/esm/drivers/i18ns/I18n.d.ts +38 -0
  42. package/esm/drivers/i18ns/I18nFactory.d.ts +13 -0
  43. package/esm/drivers/i18ns/II18n.d.ts +72 -0
  44. package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +13 -0
  45. package/esm/drivers/i18ns/index.d.ts +3 -0
  46. package/esm/drivers/index.d.ts +2 -1
  47. package/esm/drivers/messengers/IMessenger.d.ts +1 -1
  48. package/esm/drivers/providers/IProvider.d.ts +1 -1
  49. package/esm/drivers/ssos/ISso.d.ts +1 -1
  50. package/esm/drivers/tasks/ITask.d.ts +1 -1
  51. package/esm/drivers/templates/ITemplate.d.ts +1 -1
  52. package/esm/drivers/videos/IVideo.d.ts +1 -1
  53. package/esm/drivers/voices/IVoice.d.ts +1 -1
  54. package/esm/factorying/Factories.d.ts +15 -11
  55. package/esm/factorying/Factory.d.ts +1 -1
  56. package/esm/factorying/index.d.ts +17 -5
  57. package/esm/helpers/@types/JsonConfig.d.ts +10 -0
  58. package/esm/helpers/@types/TreeNodeProp.d.ts +9 -0
  59. package/esm/helpers/@types/index.d.ts +3 -0
  60. package/esm/helpers/JsonHelper.d.ts +6 -2
  61. package/esm/main.d.ts +2 -2
  62. package/esm/repos/IRepo.d.ts +4 -0
  63. package/esm/repos/RepoFactory.d.ts +5 -0
  64. package/esm/repos/implements/SettingRepo.d.ts +15 -0
  65. package/esm/repos/index.d.ts +1 -1
  66. package/esm/svcs/@types/Dictionary.d.ts +4 -0
  67. package/esm/svcs/@types/index.d.ts +2 -0
  68. package/esm/svcs/implement/ConfigSvc.d.ts +1 -1
  69. package/esm/svcs/implement/I18nSvc.d.ts +1 -1
  70. package/esm/svcs/implement/LogSvc.d.ts +3 -0
  71. package/esm/svcs/implement/index.d.ts +1 -2
  72. package/esm/svcs/index.d.ts +2 -8
  73. package/esm/types/CreateFeOptions.d.ts +6 -5
  74. package/esm/utilities/@types/DragEvent.d.ts +11 -0
  75. package/esm/utilities/@types/DragOptions.d.ts +28 -0
  76. package/esm/utilities/@types/Position.d.ts +15 -0
  77. package/esm/utilities/@types/Rect.d.ts +10 -0
  78. package/esm/utilities/@types/index.d.ts +5 -0
  79. package/esm/utilities/EventUtility.d.ts +1 -1
  80. package/esm/utilities/SaveUtility.d.ts +15 -0
  81. package/esm/utilities/index.d.ts +3 -2
  82. package/package.json +2 -3
  83. package/dist/assets/@intlify-BISCQg1h.js +0 -2189
  84. package/dist/assets/@vue-aVYGocXp.js +0 -93
  85. package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
  86. package/esm/coms/Code.vue.d.ts +0 -41
  87. package/esm/coms/Col.vue.d.ts +0 -11
  88. package/esm/coms/Compare.vue.d.ts +0 -40
  89. package/esm/coms/Container.vue.d.ts +0 -23
  90. package/esm/coms/RichText.vue.d.ts +0 -24
  91. package/esm/coms/Row.vue.d.ts +0 -21
  92. package/esm/coms/types/CodeProps.d.ts +0 -18
  93. package/esm/drivers/cdns/implements/BootCdn.d.ts +0 -12
  94. package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +0 -15
  95. package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +0 -21
  96. package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +0 -12
  97. package/esm/drivers/factories/DriverFactory.d.ts +0 -64
  98. package/esm/drivers/factories/Factory.d.ts +0 -18
  99. package/esm/drivers/factories/IFactory.d.ts +0 -18
  100. package/esm/drivers/factories/index.d.ts +0 -42
  101. package/esm/drivers/providers/implements/StorageHelper.d.ts +0 -34
  102. package/esm/helpers/ScriptHelper.d.ts +0 -19
  103. package/esm/helpers/array-helper.d.ts +0 -97
  104. package/esm/helpers/component-helper.d.ts +0 -18
  105. package/esm/helpers/cookie-helper.d.ts +0 -6
  106. package/esm/helpers/dictionary-helper.d.ts +0 -18
  107. package/esm/helpers/dom-helper.d.ts +0 -86
  108. package/esm/helpers/event-helper.d.ts +0 -30
  109. package/esm/helpers/file-helper.d.ts +0 -22
  110. package/esm/helpers/html-helper.d.ts +0 -10
  111. package/esm/helpers/i18n-helper.d.ts +0 -14
  112. package/esm/helpers/image-helper.d.ts +0 -10
  113. package/esm/helpers/json-helper.d.ts +0 -39
  114. package/esm/helpers/math-helper.d.ts +0 -46
  115. package/esm/helpers/micro-helper.d.ts +0 -10
  116. package/esm/helpers/mount-helper.d.ts +0 -14
  117. package/esm/helpers/object-helper.d.ts +0 -38
  118. package/esm/helpers/script-helper.d.ts +0 -31
  119. package/esm/helpers/scroll-helper.d.ts +0 -14
  120. package/esm/helpers/sign-helper.d.ts +0 -14
  121. package/esm/helpers/storage-helper.d.ts +0 -34
  122. package/esm/helpers/string-helper.d.ts +0 -94
  123. package/esm/helpers/task-helper.d.ts +0 -26
  124. package/esm/helpers/time-helper.d.ts +0 -66
  125. package/esm/helpers/tree-helper.d.ts +0 -54
  126. package/esm/helpers/type-helper.d.ts +0 -26
  127. package/esm/helpers/url-helper.d.ts +0 -96
  128. package/esm/plugins/HtmlTransform.d.ts +0 -6
  129. package/esm/plugins/types/IMessager.d.ts +0 -34
  130. package/esm/plugins/types/index.d.ts +0 -7
  131. package/esm/services/ConfigService.d.ts +0 -66
  132. package/esm/services/DriverService.d.ts +0 -36
  133. package/esm/services/EnvService.d.ts +0 -14
  134. package/esm/services/LogService.d.ts +0 -19
  135. package/esm/services/SettingService.d.ts +0 -42
  136. package/esm/services/SocketService.d.ts +0 -23
  137. package/esm/services/UserService.d.ts +0 -47
  138. package/esm/services/index.d.ts +0 -15
  139. package/esm/services/types/IMessage.d.ts +0 -14
  140. package/esm/services/types/IMessager.d.ts +0 -34
  141. package/esm/services/types/index.d.ts +0 -2
  142. package/esm/servs/ConfigServ.d.ts +0 -66
  143. package/esm/servs/DriverServ.d.ts +0 -36
  144. package/esm/servs/EnvServ.d.ts +0 -14
  145. package/esm/servs/IServ.d.ts +0 -6
  146. package/esm/servs/LogServ.d.ts +0 -19
  147. package/esm/servs/Serv.d.ts +0 -4
  148. package/esm/servs/ServFactory.d.ts +0 -11
  149. package/esm/servs/SettingServ.d.ts +0 -42
  150. package/esm/servs/SocketServ.d.ts +0 -38
  151. package/esm/servs/UserServ.d.ts +0 -47
  152. package/esm/servs/implement/ConfigServ.d.ts +0 -66
  153. package/esm/servs/implement/DriverServ.d.ts +0 -36
  154. package/esm/servs/implement/EnvServ.d.ts +0 -14
  155. package/esm/servs/implement/LogServ.d.ts +0 -19
  156. package/esm/servs/implement/SettingServ.d.ts +0 -42
  157. package/esm/servs/implement/SocketServ.d.ts +0 -38
  158. package/esm/servs/implement/UserServ.d.ts +0 -47
  159. package/esm/servs/index.d.ts +0 -15
  160. package/esm/stores/config.d.ts +0 -63
  161. package/esm/stores/driver.d.ts +0 -37
  162. package/esm/stores/env.d.ts +0 -12
  163. package/esm/stores/index.d.ts +0 -8
  164. package/esm/stores/log.d.ts +0 -20
  165. package/esm/stores/setting.d.ts +0 -43
  166. package/esm/stores/socket.d.ts +0 -27
  167. package/esm/stores/user.d.ts +0 -40
  168. package/esm/types/CreateOptions.d.ts +0 -18
  169. /package/esm/coms/{types → controls/@types}/RichTextOptions.d.ts +0 -0
  170. /package/esm/coms/{types → controls/@types}/RichTextProps.d.ts +0 -0
  171. /package/esm/coms/{types → layouts/@types}/RowProps.d.ts +0 -0
  172. /package/esm/drivers/{IDriver.d.ts → @types/IDriver.d.ts} +0 -0
@@ -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,11 +0,0 @@
1
- declare function __VLS_template(): {
2
- default?(_: {}): any;
3
- };
4
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
5
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
6
- export default _default;
7
- type __VLS_WithTemplateSlots<T, S> = T & {
8
- new (): {
9
- $slots: S;
10
- };
11
- };
@@ -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,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,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;
@@ -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;