halo-fe 1.0.19 → 1.0.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. package/dist/main.js +676 -667
  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/controls/@types/CodeEmit.d.ts +23 -0
  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/RichTextOptions.d.ts +14 -0
  16. package/esm/coms/controls/@types/RichTextProps.d.ts +12 -0
  17. package/esm/coms/controls/@types/index.d.ts +6 -0
  18. package/esm/coms/controls/Code.vue.d.ts +1 -1
  19. package/esm/coms/controls/RichText.vue.d.ts +1 -1
  20. package/esm/coms/controls/index.d.ts +1 -1
  21. package/esm/coms/index.d.ts +1 -1
  22. package/esm/coms/layouts/@types/RowProps.d.ts +14 -0
  23. package/esm/coms/layouts/@types/index.d.ts +2 -0
  24. package/esm/coms/layouts/Row.vue.d.ts +1 -1
  25. package/esm/coms/layouts/index.d.ts +1 -1
  26. package/esm/coms/progresses/@types/SocketProgressProps.d.ts +23 -0
  27. package/esm/coms/progresses/@types/index.d.ts +2 -0
  28. package/esm/coms/progresses/SocketProgress.vue.d.ts +1 -1
  29. package/esm/coms/tabs/@types/TabProps.d.ts +7 -0
  30. package/esm/coms/tabs/@types/index.d.ts +2 -0
  31. package/esm/coms/tabs/Tab.vue.d.ts +1 -1
  32. package/esm/drivers/@types/IDispose.d.ts +10 -0
  33. package/esm/drivers/@types/IDriver.d.ts +10 -0
  34. package/esm/drivers/@types/IOpen.d.ts +10 -0
  35. package/esm/drivers/@types/index.d.ts +4 -0
  36. package/esm/drivers/bridges/IBridge.d.ts +1 -1
  37. package/esm/drivers/builders/IBuilder.d.ts +1 -1
  38. package/esm/drivers/cdns/ICdn.d.ts +1 -1
  39. package/esm/drivers/excels/IExcel.d.ts +1 -1
  40. package/esm/drivers/explainers/IExplainer.d.ts +1 -1
  41. package/esm/drivers/features/IFeature.d.ts +1 -1
  42. package/esm/drivers/https/Http.d.ts +15 -9
  43. package/esm/drivers/https/IHttp.d.ts +1 -1
  44. package/esm/drivers/https/implements/DefaultHttp.d.ts +6 -0
  45. package/esm/drivers/https/implements/HaloHttp.d.ts +3 -8
  46. package/esm/drivers/https/implements/MkHttp.d.ts +1 -6
  47. package/esm/drivers/i18ns/I18n.d.ts +0 -3
  48. package/esm/drivers/i18ns/I18nFactory.d.ts +0 -4
  49. package/esm/drivers/i18ns/II18n.d.ts +16 -2
  50. package/esm/drivers/index.d.ts +1 -1
  51. package/esm/drivers/messengers/IMessenger.d.ts +1 -1
  52. package/esm/drivers/providers/IProvider.d.ts +1 -1
  53. package/esm/drivers/signers/Signer.d.ts +3 -0
  54. package/esm/drivers/ssos/ISso.d.ts +1 -1
  55. package/esm/drivers/tasks/ITask.d.ts +1 -1
  56. package/esm/drivers/templates/ITemplate.d.ts +1 -1
  57. package/esm/drivers/videos/IVideo.d.ts +1 -1
  58. package/esm/drivers/voices/IVoice.d.ts +1 -1
  59. package/esm/factorying/Factory.d.ts +1 -1
  60. package/esm/factorying/index.d.ts +3 -7
  61. package/esm/helpers/@types/JsonConfig.d.ts +10 -0
  62. package/esm/helpers/@types/TreeNodeProp.d.ts +9 -0
  63. package/esm/helpers/@types/index.d.ts +3 -0
  64. package/esm/helpers/JsonHelper.d.ts +1 -1
  65. package/esm/main.d.ts +2 -2
  66. package/esm/svcs/@types/Dictionary.d.ts +4 -0
  67. package/esm/svcs/@types/index.d.ts +1 -0
  68. package/esm/svcs/implement/ConfigSvc.d.ts +2 -2
  69. package/esm/svcs/implement/LogSvc.d.ts +3 -0
  70. package/esm/svcs/index.d.ts +1 -1
  71. package/esm/utilities/@types/DragEvent.d.ts +11 -0
  72. package/esm/utilities/@types/DragOptions.d.ts +28 -0
  73. package/esm/utilities/@types/Position.d.ts +15 -0
  74. package/esm/utilities/@types/Rect.d.ts +10 -0
  75. package/esm/utilities/@types/index.d.ts +5 -0
  76. package/esm/utilities/EventUtility.d.ts +1 -1
  77. package/esm/utilities/index.d.ts +1 -1
  78. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { IDriver } from "../types";
1
+ import { IDriver } from "../@types";
2
2
  import SsoUser from "./entities/SsoUser";
3
3
  /**
4
4
  * SSO接口
@@ -1,4 +1,4 @@
1
- import { IDriver, IDispose } from "../types";
1
+ import { IDriver, IDispose } from "../@types";
2
2
  /**
3
3
  * 任务接口
4
4
  */
@@ -1,4 +1,4 @@
1
- import { IDriver } from "../types";
1
+ import { IDriver } from "../@types";
2
2
  /**
3
3
  * 模板引擎接口
4
4
  */
@@ -1,4 +1,4 @@
1
- import { IDriver } from "../types";
1
+ import { IDriver } from "../@types";
2
2
  interface IVideo extends IDriver {
3
3
  }
4
4
  export default IVideo;
@@ -1,4 +1,4 @@
1
- import { IDriver } from "../types";
1
+ import { IDriver } from "../@types";
2
2
  export interface IVoice extends IDriver {
3
3
  /**
4
4
  * 开始录音
@@ -1,5 +1,5 @@
1
1
  import IFactory from "./IFactory";
2
- import IDriver from "../drivers/types/IDriver";
2
+ import { IDriver } from "../drivers/@types";
3
3
  import { Ref } from "../plugins";
4
4
  /**
5
5
  * 工厂基类
@@ -1,6 +1,6 @@
1
1
  import Factories from "./Factories";
2
2
  import { ICdn, IEncoder, IHasher, II18n, IHttp, IMessenger, ITemplate } from "../drivers";
3
- import { CreateFeOptions } from "../types";
3
+ import { CreateFeOptions } from "../@types";
4
4
  /**
5
5
  * 默认base64编码
6
6
  */
@@ -33,12 +33,8 @@ declare let messenger: IMessenger;
33
33
  * 初始化默认驱动实例
34
34
  */
35
35
  declare let initDriver: (options: CreateFeOptions) => Promise<void>;
36
- /**
37
- * 设置好请求器后,才可以设置多语言
38
- */
39
- declare let initI18n: () => Promise<void>;
40
36
  /**
41
37
  * 提取可导出的翻译方法,当i18n实例变化后,导出的方案会跟着变化?
42
38
  */
43
- declare let t: {}, t_exists: {}, t_sys: {}, t_enum: {}, t_field: {}, t_field_choose_placeholder: {}, t_field_placeholder: {}, t_table: {}, t_module: {}, t_menu: {};
44
- export { base64, cdn, http, i18n, md5, template, messenger, initDriver, initI18n, Factories, t, t_exists, t_sys, t_enum, t_field, t_field_choose_placeholder, t_field_placeholder, t_table, t_module, t_menu };
39
+ declare let t: typeof i18n.t, t_exists: typeof i18n.t_exists, t_sys: typeof i18n.t_sys, t_enum: typeof i18n.t_enum, t_field: typeof i18n.t_field, t_field_choose_placeholder: typeof i18n.t_field_choose_placeholder, t_field_placeholder: typeof i18n.t_field_placeholder, t_table: typeof i18n.t_table, t_module: typeof i18n.t_module, t_menu: typeof i18n.t_menu;
40
+ export { base64, cdn, http, i18n, md5, template, messenger, initDriver, Factories, t, t_exists, t_sys, t_enum, t_field, t_field_choose_placeholder, t_field_placeholder, t_table, t_module, t_menu };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Json配置
3
+ */
4
+ declare class JsonConfig {
5
+ /**
6
+ * 是否美化
7
+ */
8
+ beautify: boolean;
9
+ }
10
+ export default JsonConfig;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 树节点属性
3
+ */
4
+ interface TreeNodeProp {
5
+ key: string;
6
+ type: string;
7
+ remark: string;
8
+ }
9
+ export default TreeNodeProp;
@@ -0,0 +1,3 @@
1
+ import JsonConfig from "./JsonConfig";
2
+ import TreeNodeProp from "./TreeNodeProp";
3
+ export { JsonConfig, type TreeNodeProp };
@@ -1,4 +1,4 @@
1
- import { JsonConfig, TreeNodeProp } from "./types";
1
+ import { JsonConfig, TreeNodeProp } from "./@types";
2
2
  /**
3
3
  * JSON帮助类
4
4
  */
package/esm/main.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CreateFeOptions } from "./types";
1
+ import { CreateFeOptions } from "./@types";
2
2
  import "./styles/index.scss";
3
3
  export * from "./coms";
4
4
  export * from "./drivers";
@@ -7,7 +7,7 @@ export * from "./helpers";
7
7
  export * from "./plugins";
8
8
  export * from "./repos";
9
9
  export * from "./svcs";
10
- export * from "./types";
10
+ export * from "./@types";
11
11
  export * from "./utilities";
12
12
  /**
13
13
  * 初始化前端基础框架
@@ -0,0 +1,4 @@
1
+ interface IDictionary {
2
+ [key: string]: any;
3
+ }
4
+ export default IDictionary;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,10 +1,10 @@
1
- import { IDictionary } from "../types";
2
1
  import { SysConfig, UserConfig } from "../entities";
3
2
  import Svc from "../Svc";
4
3
  /**
5
4
  * 不一定跟用户相关,此时如果使用配置仓储,使用的是配置文件的配置,非接口配置
6
5
  */
7
- declare class ConfigSvc extends Svc implements IDictionary {
6
+ declare class ConfigSvc extends Svc {
7
+ [key: string]: any;
8
8
  type: string;
9
9
  /**
10
10
  * 用户系统配置
@@ -2,6 +2,9 @@
2
2
  * 日志服务
3
3
  */
4
4
  declare class LogSvc {
5
+ /**
6
+ * 日志集合
7
+ */
5
8
  logs: any[];
6
9
  /**
7
10
  * 手动添加日志
@@ -4,7 +4,7 @@ import LogSvc from "./implement/LogSvc";
4
4
  import SocketSvc from "./implement/SocketSvc";
5
5
  import UserSvc from "./implement/UserSvc";
6
6
  import SvcFactory from "./SvcFactory";
7
- import { CreateFeOptions } from "../types";
7
+ import { CreateFeOptions } from "../@types";
8
8
  /**
9
9
  * 驱动服务实例
10
10
  */
@@ -0,0 +1,11 @@
1
+ import Position from "./Position";
2
+ /**
3
+ * 自定义拖拽事件
4
+ */
5
+ declare class DragEvent extends Position {
6
+ /**
7
+ * 吸附的方向
8
+ */
9
+ affix?: string;
10
+ }
11
+ export default DragEvent;
@@ -0,0 +1,28 @@
1
+ import Rect from "./Rect";
2
+ import DragEvent from "./DragEvent";
3
+ /**
4
+ * 拖拽选项
5
+ */
6
+ interface DragOptions {
7
+ /**
8
+ * 拖拽初始化
9
+ */
10
+ init: (event: MouseEvent) => any;
11
+ /**
12
+ * 拖拽事件
13
+ */
14
+ handler: (dragEvent: DragEvent, start: MouseEvent, data: any, first: boolean, event: MouseEvent) => void;
15
+ /**
16
+ * 拖拽结束事件
17
+ */
18
+ end?: (event: MouseEvent) => void;
19
+ /**
20
+ * 可拖拽范围
21
+ */
22
+ range?: Rect;
23
+ /**
24
+ * 吸附检测的距离,设置吸附位置必须设置拖拽范围(依赖宽度等信息)
25
+ */
26
+ affix?: number;
27
+ }
28
+ export default DragOptions;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 位置
3
+ */
4
+ declare class Position {
5
+ /**
6
+ * 距窗口左边的距离
7
+ */
8
+ x: number;
9
+ /**
10
+ * 距窗口顶部的距离
11
+ */
12
+ y: number;
13
+ constructor(x?: number, y?: number);
14
+ }
15
+ export default Position;
@@ -0,0 +1,10 @@
1
+ import Position from "./Position";
2
+ /**
3
+ * 区域类
4
+ */
5
+ declare class Rect extends Position {
6
+ width: number;
7
+ height: number;
8
+ constructor(x: number, y: number, width: number, height: number);
9
+ }
10
+ export default Rect;
@@ -0,0 +1,5 @@
1
+ import DragOptions from "./DragOptions";
2
+ import DragEvent from "./DragEvent";
3
+ import Position from "./Position";
4
+ import Rect from "./Rect";
5
+ export { type DragOptions, DragEvent, Position, Rect };
@@ -1,4 +1,4 @@
1
- import { DragOptions } from "./types";
1
+ import { DragOptions } from "./@types";
2
2
  /**
3
3
  * 事件工具类
4
4
  */
@@ -3,5 +3,5 @@ import KeyboardUtility from "./KeyboardUtility";
3
3
  import ListDelta from "./ListDelta";
4
4
  import MouseUtility from "./MouseUtility";
5
5
  import SaveUtility from "./SaveUtility";
6
- export * from "./types";
6
+ export * from "./@types";
7
7
  export { EventUtility, KeyboardUtility, ListDelta, MouseUtility, SaveUtility };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "halo-fe",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "Halo front end sdk",
5
5
  "scripts": {
6
6
  "halo-fe:tsc": "vue-tsc",