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
@@ -1,15 +1,14 @@
1
- declare var __VLS_0: {};
2
- declare var __VLS_inheritedAttrs: {};
3
- declare const __VLS_templateResult: {
1
+ import { RowProps } from "./@types";
2
+ declare function __VLS_template(): {
4
3
  slots: {
5
- default?(_: typeof __VLS_0): any;
4
+ default?(_: {}): any;
6
5
  };
7
6
  refs: {};
8
- attrs: Partial<typeof __VLS_inheritedAttrs>;
7
+ attrs: Partial<{}>;
9
8
  };
10
- type __VLS_Slots = typeof __VLS_templateResult['slots'];
11
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
12
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import("vue").DefineComponent<RowProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RowProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
12
  export default _default;
14
13
  type __VLS_WithTemplateSlots<T, S> = T & {
15
14
  new (): {
@@ -0,0 +1,9 @@
1
+ import { PagerProps } from "../@types";
2
+ declare const _default: import("vue").DefineComponent<PagerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ change: (value: number) => any;
4
+ "size-change": (value: number) => any;
5
+ }, string, import("vue").PublicProps, Readonly<PagerProps> & Readonly<{
6
+ onChange?: (value: number) => any;
7
+ "onSize-change"?: (value: number) => any;
8
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import HaPager from "Index.vue";
2
+ export { HaPager };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,9 @@
1
+ type __VLS_PublicProps = {
2
+ modelValue?: boolean;
3
+ };
4
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ "update:modelValue": (modelValue: boolean) => any;
6
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
7
+ "onUpdate:modelValue"?: (modelValue: boolean) => any;
8
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
+ export default _default;
@@ -1,16 +1,14 @@
1
- import { SocketProgressProps } from "./@types";
2
- declare var __VLS_0: {};
3
- declare var __VLS_inheritedAttrs: {};
4
- declare const __VLS_templateResult: {
1
+ import { SocketProgressProps } from "../@types";
2
+ declare function __VLS_template(): {
5
3
  slots: {
6
- default?(_: typeof __VLS_0): any;
4
+ default?(_: {}): any;
7
5
  };
8
6
  refs: {};
9
- attrs: Partial<typeof __VLS_inheritedAttrs>;
7
+ attrs: Partial<{}>;
10
8
  };
11
- type __VLS_Slots = typeof __VLS_templateResult['slots'];
12
- declare const __VLS_component: import("vue").DefineComponent<SocketProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SocketProgressProps & {}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}>;
13
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import("vue").DefineComponent<SocketProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SocketProgressProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
12
  export default _default;
15
13
  type __VLS_WithTemplateSlots<T, S> = T & {
16
14
  new (): {
@@ -0,0 +1,20 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ title: {
3
+ type: StringConstructor;
4
+ };
5
+ content: {
6
+ type: StringConstructor;
7
+ };
8
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ retry: (...args: any[]) => void;
10
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ title: {
12
+ type: StringConstructor;
13
+ };
14
+ content: {
15
+ type: StringConstructor;
16
+ };
17
+ }>> & Readonly<{
18
+ onRetry?: (...args: any[]) => any;
19
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
20
+ export default _default;
@@ -1,3 +1,4 @@
1
- import HaProgress from "./Progress.vue";
1
+ import HaProgress from "./Index.vue";
2
2
  import HaSocketProgress from "./SocketProgress.vue";
3
- export { HaProgress, HaSocketProgress };
3
+ import HaSpinner from "./Spinner.vue";
4
+ export { HaProgress, HaSocketProgress, HaSpinner, };
@@ -0,0 +1,33 @@
1
+ import { TableProps } from "../@types";
2
+ declare let __VLS_typeProps: TableProps;
3
+ type __VLS_PublicProps = {
4
+ 'page'?: number;
5
+ 'size'?: number;
6
+ } & typeof __VLS_typeProps;
7
+ declare function __VLS_template(): {
8
+ slots: {
9
+ default?(_: {
10
+ row: any;
11
+ }): any;
12
+ };
13
+ refs: {};
14
+ attrs: Partial<{}>;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ "update:page": (page: number) => any;
19
+ "update:size": (size: number) => any;
20
+ } & {
21
+ scroll: (value: number) => any;
22
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ onScroll?: (value: number) => any;
24
+ "onUpdate:page"?: (page: number) => any;
25
+ "onUpdate:size"?: (size: number) => any;
26
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -1,3 +1,3 @@
1
- import { TabProps } from "./@types";
2
- declare const _default: import("vue").DefineComponent<TabProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TabProps & {}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}>;
1
+ import { TabProps } from "../@types";
2
+ declare const _default: import("vue").DefineComponent<TabProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TabProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
2
  export default _default;
@@ -5,6 +5,6 @@ interface IOpen {
5
5
  /**
6
6
  * 开启,子类当中定义open箭头函数字段,调用父类open方法时,可以保持this指向为当前对象
7
7
  */
8
- open(conn?: string): Promise<void>;
8
+ openAsync(conn?: string): Promise<void>;
9
9
  }
10
10
  export default IOpen;
@@ -1,4 +1,4 @@
1
- import Factory from "../../factorying/Factory";
1
+ import Factory from "../../factory/Factory";
2
2
  import IBuilder from "./IBuilder";
3
3
  /**
4
4
  * 构建器工厂
@@ -9,25 +9,23 @@ declare abstract class Cdn implements ICdn {
9
9
  * 任务实例,用于控制并发
10
10
  */
11
11
  task: ITask;
12
- open(conn: string): Promise<void>;
12
+ openAsync(conn: string): Promise<void>;
13
13
  abstract getCrypto(): Promise<any>;
14
- getECharts(basePath?: string): Promise<any>;
14
+ abstract getECharts(): Promise<any>;
15
15
  abstract getElementPlus(): Promise<any>;
16
16
  abstract getFortAwesome(): Promise<any>;
17
17
  getMonaco(baseUrl?: string): Promise<any>;
18
- getQuill(basePath?: string): Promise<any>;
18
+ getQuill(): Promise<any>;
19
19
  abstract getWeiXin(): Promise<any>;
20
20
  abstract getXlsx(): Promise<any>;
21
- loadFilesAsync(path: string, files: string[]): Promise<void>;
22
- loadAsync(path: string | string[]): Promise<HTMLElement[]>;
23
21
  /**
24
- * 异步加载脚本/样式内容,把内容处理为行内html
25
- * 这种方式,依赖的内部资源,会从当前站点加载
22
+ * 使用并发限制顺序加载资源,并防止monaco-editor的define函数冲突
26
23
  */
27
- loadContentAsync: (src: string | string[]) => Promise<void[]>;
24
+ loadByOrder(basePath: string, paths: string[], name: string): Promise<any>;
25
+ loadFilesAsync(path: string, files: string[]): Promise<void>;
28
26
  /**
29
27
  * 通过注入DOM标签异步加载脚本或样式表,已防重
30
28
  */
31
- loadResourceAsync: (url: string | string[]) => Promise<HTMLElement[]>;
29
+ loadAsync: (url: string | string[]) => Promise<HTMLElement[]>;
32
30
  }
33
31
  export default Cdn;
@@ -1,5 +1,5 @@
1
1
  import ICdn from "./ICdn";
2
- import Factory from "../../factorying/Factory";
2
+ import Factory from "../../factory/Factory";
3
3
  /**
4
4
  * CDN工厂类
5
5
  */
@@ -1,16 +1,12 @@
1
- import { IDriver } from "../@types";
1
+ import { IDriver, IOpen } from "../@types";
2
2
  /**
3
3
  * CDN接口
4
4
  */
5
- interface ICdn extends IDriver {
5
+ interface ICdn extends IDriver, IOpen {
6
6
  /**
7
7
  * CDN类型
8
8
  */
9
9
  type: string;
10
- /**
11
- * 开启
12
- */
13
- open(conn: string): Promise<void>;
14
10
  /**
15
11
  * 加解密
16
12
  */
@@ -47,10 +43,5 @@ interface ICdn extends IDriver {
47
43
  * 异步加载单个路径下的多个文件
48
44
  */
49
45
  loadFilesAsync(path: string, files: string[]): Promise<void>;
50
- /**
51
- * 加载资源,已防重
52
- * VIP:同一异步方法被并发调用时,后续的调用会直接完成
53
- */
54
- loadAsync(name: string | string[]): Promise<HTMLElement[]>;
55
46
  }
56
47
  export default ICdn;
@@ -4,7 +4,7 @@ import IEncoder from "./IEncoder";
4
4
  */
5
5
  declare abstract class Encoder implements IEncoder {
6
6
  type: string;
7
- abstract open(conn: string): Promise<void>;
7
+ abstract openAsync(conn: string): Promise<void>;
8
8
  encode(value: string | object): string;
9
9
  /**
10
10
  * 编码字符串
@@ -1,10 +1,10 @@
1
1
  import IEncoder from "./IEncoder";
2
- import Factory from "../../factorying/Factory";
2
+ import Factory from "../../factory/Factory";
3
3
  /**
4
4
  * 编码器工厂
5
5
  */
6
6
  declare class EncoderFactory extends Factory<IEncoder> {
7
- get instances(): IEncoder[];
7
+ open(): void;
8
8
  /**
9
9
  * 创建执行类型的Hash实例
10
10
  */
@@ -13,5 +13,6 @@ declare class EncoderFactory extends Factory<IEncoder> {
13
13
  * 获取Base64 编码器对象
14
14
  */
15
15
  getBase64(): Promise<IEncoder>;
16
+ get url(): IEncoder;
16
17
  }
17
18
  export default EncoderFactory;
@@ -1,15 +1,12 @@
1
+ import { IOpen } from "../@types";
1
2
  /**
2
3
  * 编码器接口
3
4
  */
4
- interface IEncoder {
5
+ interface IEncoder extends IOpen {
5
6
  /**
6
7
  * 类型
7
8
  */
8
9
  type: string;
9
- /**
10
- * 开启
11
- */
12
- open(conn: string): Promise<void>;
13
10
  /**
14
11
  * 编码字符串/实体,得到字符串
15
12
  */
@@ -5,7 +5,7 @@ import Encoder from "../Encoder";
5
5
  declare class Base64Encoder extends Encoder {
6
6
  type: string;
7
7
  crypto: any;
8
- open(conn: string): Promise<void>;
8
+ openAsync(conn: string): Promise<void>;
9
9
  encodeString(value: string): string;
10
10
  decode(value: string): string;
11
11
  }
@@ -0,0 +1,7 @@
1
+ import Encoder from "../Encoder";
2
+ declare class UrlEncoder extends Encoder {
3
+ type: string;
4
+ encodeString(value: string): string;
5
+ decode(value: string): string;
6
+ }
7
+ export default UrlEncoder;
@@ -4,7 +4,7 @@ import IExcel from "./IExcel";
4
4
  */
5
5
  declare abstract class Excel implements IExcel {
6
6
  type: string;
7
- abstract open(conn?: string): Promise<void>;
7
+ abstract openAsync(conn?: string): Promise<void>;
8
8
  abstract export(dataRows: any[], name: string): any;
9
9
  }
10
10
  export default Excel;
@@ -1,5 +1,5 @@
1
1
  import IExcel from "./IExcel";
2
- import Factory from "../../factorying/Factory";
2
+ import Factory from "../../factory/Factory";
3
3
  /**
4
4
  * Excel工厂
5
5
  */
@@ -5,7 +5,7 @@ import Excel from "../Excel";
5
5
  declare class XlsxExcel extends Excel {
6
6
  type: string;
7
7
  xlsx: any;
8
- open(conn: string): Promise<void>;
8
+ openAsync(conn: string): Promise<void>;
9
9
  export(dataRows: any[], name: string): any;
10
10
  }
11
11
  export default XlsxExcel;
@@ -1,6 +1,6 @@
1
- import Factory from "../../factorying/Factory";
1
+ import Factory from "../../factory/Factory";
2
2
  import IExplainer from "./IExplainer";
3
3
  declare class ExplainerFactory extends Factory<IExplainer> {
4
- get instances(): IExplainer[];
4
+ open(): void;
5
5
  }
6
6
  export default ExplainerFactory;
@@ -1,10 +1,10 @@
1
1
  import IFeature from "./IFeature";
2
- import Factory from "../../factorying/Factory";
2
+ import Factory from "../../factory/Factory";
3
3
  /**
4
4
  * 特征工厂类
5
5
  */
6
6
  declare class FeatureFactory extends Factory<IFeature> {
7
- get instances(): IFeature[];
7
+ open(): void;
8
8
  /**
9
9
  * 获取指定特征实例
10
10
  */
@@ -1,12 +1,8 @@
1
- import { IDriver } from "../@types";
1
+ import { IDriver, IOpen } from "../@types";
2
2
  /**
3
3
  * 特征接口
4
4
  */
5
- interface IFeature extends IDriver {
6
- /**
7
- * 开启特征
8
- */
9
- open(param: string): void;
5
+ interface IFeature extends IDriver, IOpen {
10
6
  /**
11
7
  * 添加事件
12
8
  */
@@ -4,7 +4,7 @@ import IFeature from "../IFeature";
4
4
  */
5
5
  declare class ExpressionFeature implements IFeature {
6
6
  type: string;
7
- open(param: string): void;
7
+ openAsync(param: string): void;
8
8
  add(table: any, field: any, data: {}, row: {}): void;
9
9
  insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
10
10
  copy(table: any, field: any, data: object): void;
@@ -4,7 +4,7 @@ import IFeature from "../IFeature";
4
4
  */
5
5
  declare class I18NFeature implements IFeature {
6
6
  type: string;
7
- open(param: string): void;
7
+ openAsync(param: string): void;
8
8
  add(table: any, field: any, data: {}, row: {}): void;
9
9
  insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
10
10
  copy(table: any, field: any, data: object): void;
@@ -4,7 +4,7 @@ import IFeature from "../IFeature";
4
4
  */
5
5
  declare class SortFeature implements IFeature {
6
6
  type: string;
7
- open(param: string): void;
7
+ openAsync(param: string): void;
8
8
  add(table: any, field: any, data: object, row: object): void;
9
9
  insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
10
10
  copy(table: any, field: any, data: object): void;
@@ -4,7 +4,7 @@ import IHasher from "./IHasher";
4
4
  */
5
5
  declare abstract class Hasher implements IHasher {
6
6
  type: string;
7
- abstract open(conn: string): Promise<void>;
7
+ abstract openAsync(conn: string): Promise<void>;
8
8
  abstract compute(value: string): Promise<string>;
9
9
  }
10
10
  export default Hasher;
@@ -1,10 +1,10 @@
1
1
  import IHasher from "./IHasher";
2
- import Factory from "../../factorying/Factory";
2
+ import Factory from "../../factory/Factory";
3
3
  /**
4
4
  * 哈希工厂
5
5
  */
6
6
  declare class HasherFactory extends Factory<IHasher> {
7
- get instances(): IHasher[];
7
+ open(): void;
8
8
  createAsync(type: string, conn?: string): Promise<IHasher>;
9
9
  /**
10
10
  * 获取MD5 Hash对象
@@ -1,15 +1,12 @@
1
+ import { IOpen } from "../@types";
1
2
  /**
2
3
  * Hash接口
3
4
  */
4
- interface IHasher {
5
+ interface IHasher extends IOpen {
5
6
  /**
6
7
  * 类型
7
8
  */
8
9
  type: string;
9
- /**
10
- * 开启
11
- */
12
- open(conn: string): Promise<void>;
13
10
  /**
14
11
  * 计算字符串Hash值
15
12
  */
@@ -5,7 +5,7 @@ import Hasher from "../Hasher";
5
5
  declare class Md5Hasher extends Hasher {
6
6
  type: string;
7
7
  crypto: any;
8
- open(conn: string): Promise<void>;
8
+ openAsync(conn: string): Promise<void>;
9
9
  compute: (value: string) => Promise<string>;
10
10
  }
11
11
  export default Md5Hasher;
@@ -4,7 +4,7 @@ import Hasher from "../Hasher";
4
4
  */
5
5
  declare class Sha256Hasher extends Hasher {
6
6
  type: string;
7
- open(conn: string): Promise<void>;
7
+ openAsync(conn: string): Promise<void>;
8
8
  compute: (value: string) => Promise<string>;
9
9
  }
10
10
  export default Sha256Hasher;
@@ -1,6 +1,8 @@
1
1
  import IHttp from "./IHttp";
2
2
  import HttpRequest from "./entities/HttpRequest";
3
3
  import HttpResponse from "./entities/HttpResponse";
4
+ import { ITemplate } from "../templates";
5
+ import { IEncoder } from "../encoders";
4
6
  /**
5
7
  * 请求器基类
6
8
  */
@@ -10,21 +12,34 @@ declare abstract class Http implements IHttp {
10
12
  * 默认请求器
11
13
  */
12
14
  http: IHttp;
13
- open(conn: string): Promise<void>;
15
+ /**
16
+ * 模板引擎
17
+ */
18
+ template: ITemplate;
19
+ /**
20
+ * 编码器
21
+ */
22
+ encoder: IEncoder;
23
+ /**
24
+ * 原型方法,保证子类可以通过super调用
25
+ * VIP:箭头函数定义的是实例方法,不在原型链上,子类无法通过super调用
26
+ */
27
+ openAsync(conn: string): Promise<void>;
14
28
  get onRequest(): (request: HttpRequest) => Promise<void>;
15
29
  set onRequest(value: (request: HttpRequest) => Promise<void>);
16
30
  get onResponse(): (response: HttpResponse) => Promise<void>;
17
31
  set onResponse(value: (response: HttpResponse) => Promise<void>);
32
+ prepareAsync(request: HttpRequest, variables: string[]): Promise<void>;
18
33
  get: (path: string, params?: any) => Promise<any>;
19
- sendGet: (path: string, params?: any) => Promise<HttpResponse>;
34
+ getAsync: (path: string, params?: any) => Promise<HttpResponse>;
20
35
  post: (path: string, body: any) => Promise<any>;
21
- sendPost: (path: string, body?: any) => Promise<HttpResponse>;
22
- patch: (path: string) => Promise<any>;
23
- sendPatch: (path: string, pairs?: any) => Promise<HttpResponse>;
24
- abstract send(request: HttpRequest): Promise<HttpResponse>;
36
+ postAsync: (path: string, body?: any) => Promise<HttpResponse>;
37
+ patch: (path: string, body?: any) => Promise<any>;
38
+ patchAsync: (path: string, body?: any) => Promise<HttpResponse>;
39
+ sendAsync: (request: HttpRequest) => Promise<HttpResponse>;
25
40
  /**
26
41
  * 获取请求消息
27
42
  */
28
- getRequest: (method: string, contentType: string, path: string, body?: any) => HttpRequest;
43
+ getRequest: (method: string, contentType: string, path: string, body?: any) => Promise<HttpRequest>;
29
44
  }
30
45
  export default Http;
@@ -1,15 +1,10 @@
1
1
  import IHttp from "./IHttp";
2
- import Factory from "../../factorying/Factory";
3
- import { Ref } from "../../plugins";
2
+ import Factory from "../../factory/Factory";
4
3
  /**
5
4
  * 请求器工厂类
6
5
  */
7
6
  declare class HttpFactory extends Factory<IHttp> {
8
- get instances(): IHttp[];
9
- /**
10
- * 创建并开启
11
- */
12
- createById(id: number, driverRef?: Ref<any>): Promise<IHttp>;
7
+ open(): void;
13
8
  /**
14
9
  * 获取默认请求器
15
10
  */
@@ -14,32 +14,36 @@ interface IHttp extends IDriver, IOpen {
14
14
  */
15
15
  onResponse: (response: HttpResponse) => Promise<void>;
16
16
  /**
17
- * 发送GET请求,并得到响应体
17
+ * 请求准备
18
+ */
19
+ prepareAsync(request: HttpRequest, variables: string[]): Promise<void>;
20
+ /**
21
+ * 发送GET请求,得到响应体
18
22
  */
19
23
  get(path: string, params?: any): Promise<any>;
20
24
  /**
21
- * 发送GET请求
25
+ * 发送GET请求,得到响应
22
26
  */
23
- sendGet(path: string, params?: any): Promise<HttpResponse>;
27
+ getAsync(path: string, params?: any): Promise<HttpResponse>;
24
28
  /**
25
- * 发送Post请求,并得到响应体
29
+ * 发送Post请求,得到响应体
26
30
  */
27
31
  post(path: string, body?: any): Promise<any>;
28
32
  /**
29
- * 发送Post请求
33
+ * 发送Post请求,得到响应
30
34
  */
31
- sendPost(path: string, body?: any): Promise<HttpResponse>;
35
+ postAsync(path: string, body?: any): Promise<HttpResponse>;
32
36
  /**
33
- * 发送Patch请求,并得到响应体
37
+ * 发送Patch请求,得到响应体
34
38
  */
35
- patch(path: string, pairs: any): Promise<any>;
39
+ patch(path: string, body: any): Promise<any>;
36
40
  /**
37
- * 发送Patch请求
41
+ * 发送Patch请求,得到响应
38
42
  */
39
- sendPatch(path: string, pairs: any): Promise<HttpResponse>;
43
+ patchAsync(path: string, body: any): Promise<HttpResponse>;
40
44
  /**
41
- * 发送请求
45
+ * 发送请求,得到响应
42
46
  */
43
- send(request: HttpRequest): Promise<HttpResponse>;
47
+ sendAsync(request: HttpRequest): Promise<HttpResponse>;
44
48
  }
45
49
  export default IHttp;
@@ -0,0 +1,12 @@
1
+ import HttpRequest from "./HttpRequest";
2
+ /**
3
+ * Http请求模型
4
+ */
5
+ declare class HttpModel {
6
+ request: HttpRequest;
7
+ model: string[];
8
+ encoded: any;
9
+ timestamp: any;
10
+ time: any;
11
+ }
12
+ export default HttpModel;
@@ -7,7 +7,7 @@ declare class HttpResponse extends HttpMessage {
7
7
  /**
8
8
  * 是否成功
9
9
  */
10
- success: boolean;
10
+ ok: boolean;
11
11
  /**
12
12
  * 错误消息
13
13
  */
@@ -16,6 +16,10 @@ declare class HttpResponse extends HttpMessage {
16
16
  * 请求耗时(ms)
17
17
  */
18
18
  elapsed: number;
19
+ /**
20
+ * 内容长度
21
+ */
22
+ length: number;
19
23
  /**
20
24
  * 响应状态码
21
25
  */
@@ -14,7 +14,7 @@ declare class DefaultHttp extends Http {
14
14
  set onRequest(value: (request: HttpRequest) => Promise<void>);
15
15
  get onResponse(): (response: HttpResponse) => Promise<void>;
16
16
  set onResponse(value: (response: HttpResponse) => Promise<void>);
17
- send(request: HttpRequest): Promise<HttpResponse>;
17
+ sendAsync: (request: HttpRequest) => Promise<HttpResponse>;
18
18
  /**
19
19
  * 使用Fetch发送请求,谷歌插件场景专用
20
20
  */