halo-fe 1.0.26 → 1.0.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. package/dist/main.js +1314 -1082
  2. package/dist/style.css +1 -1
  3. package/esm/coms/@types/SocketProgressProps.d.ts +8 -0
  4. package/esm/coms/controls/@types/CodeProps.d.ts +1 -1
  5. package/esm/coms/controls/Code.vue.d.ts +1 -1
  6. package/esm/coms/index.d.ts +1 -0
  7. package/esm/coms/layouts/Row.vue.d.ts +6 -2
  8. package/esm/coms/texts/@types/DanceProps.d.ts +14 -0
  9. package/esm/coms/texts/@types/index.d.ts +2 -0
  10. package/esm/coms/texts/Dance.vue.d.ts +5 -0
  11. package/esm/coms/texts/index.d.ts +2 -0
  12. package/esm/drivers/builders/BuilderFactory.d.ts +1 -0
  13. package/esm/drivers/cdns/Cdn.d.ts +6 -6
  14. package/esm/drivers/cdns/CdnFactory.d.ts +1 -0
  15. package/esm/drivers/encoders/Encoder.d.ts +1 -1
  16. package/esm/drivers/encoders/EncoderFactory.d.ts +1 -0
  17. package/esm/drivers/excels/ExcelFactory.d.ts +1 -0
  18. package/esm/drivers/explainers/ExplainerFactory.d.ts +1 -0
  19. package/esm/drivers/features/Feature.d.ts +9 -0
  20. package/esm/drivers/features/FeatureFactory.d.ts +1 -0
  21. package/esm/drivers/features/implements/ExpressionFeature.d.ts +2 -3
  22. package/esm/drivers/features/implements/I18NFeature.d.ts +2 -3
  23. package/esm/drivers/features/implements/SortFeature.d.ts +2 -3
  24. package/esm/drivers/hashers/HasherFactory.d.ts +1 -0
  25. package/esm/drivers/https/Http.d.ts +1 -1
  26. package/esm/drivers/https/HttpFactory.d.ts +1 -0
  27. package/esm/drivers/https/implements/FeiShuHttp.d.ts +8 -0
  28. package/esm/drivers/i18ns/I18n.d.ts +1 -1
  29. package/esm/drivers/i18ns/I18nFactory.d.ts +1 -0
  30. package/esm/drivers/i18ns/II18n.d.ts +1 -1
  31. package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +1 -1
  32. package/esm/drivers/messengers/MessengerFactory.d.ts +1 -0
  33. package/esm/drivers/providers/ProviderFactory.d.ts +1 -0
  34. package/esm/drivers/signers/SignerFactory.d.ts +1 -0
  35. package/esm/drivers/sockets/SocketFactory.d.ts +1 -0
  36. package/esm/drivers/sockets/entities/SocketResponse.d.ts +18 -2
  37. package/esm/drivers/sockets/entities/index.d.ts +1 -1
  38. package/esm/drivers/ssos/SsoFactory.d.ts +1 -0
  39. package/esm/drivers/tasks/TaskFactory.d.ts +1 -0
  40. package/esm/drivers/templates/ITemplate.d.ts +1 -1
  41. package/esm/drivers/templates/Template.d.ts +1 -1
  42. package/esm/drivers/templates/TemplateFactory.d.ts +1 -0
  43. package/esm/drivers/templates/implement/LiquidTemplate.d.ts +1 -1
  44. package/esm/drivers/util/UtilFactory.d.ts +2 -2
  45. package/esm/drivers/util/implements/ObjectUtil.d.ts +21 -1
  46. package/esm/drivers/util/implements/TimeUtil.d.ts +1 -1
  47. package/esm/drivers/util/index.d.ts +1 -2
  48. package/esm/drivers/utilities/UtilityFactory.d.ts +1 -0
  49. package/esm/drivers/videos/VideoFactory.d.ts +1 -0
  50. package/esm/drivers/voices/VoiceFactory.d.ts +1 -0
  51. package/esm/factory/Factory.d.ts +11 -3
  52. package/esm/factory/IFactory.d.ts +13 -4
  53. package/esm/repos/RepoFactory.d.ts +3 -3
  54. package/esm/repos/entities/KeyboardType.d.ts +8 -0
  55. package/esm/repos/entities/index.d.ts +2 -0
  56. package/esm/repos/implements/ModuleRepo.d.ts +36 -0
  57. package/esm/repos/index.d.ts +4 -3
  58. package/package.json +5 -5
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- html{-webkit-user-select:initial;user-select:initial;font-size:14px;font-family:Consolas}a{text-decoration:none}p{margin:0;line-height:20px}input{outline:none;margin:0;font-family:inherit}ul,ol{margin:0;padding:0;outline:none}li{list-style-type:none}img{display:block}pre{margin:0;font-family:inherit}html.blue .ha-rich-text .ql-toolbar.ql-snow{border:1px solid #434e61;box-shadow:0 1px 4px #29374d;background-image:linear-gradient(to bottom,#354052,#354052)}html.blue .ha-rich-text .ql-container.ql-snow{border-color:#434e61;background:#354052}html.blue .ha-rich-text .ql-stroke{stroke:#ffffffb8}html.blue .ha-rich-text .ql-fill{fill:#ffffffb8}html.blue .ha-rich-text .ql-picker .ql-picker-label,html.blue .ha-rich-text .ql-date{color:#ffffffb8}html.light .ha-rich-text .ql-toolbar.ql-snow{border:1px solid #dcdfe6;box-shadow:0 1px 4px #ccc9;background-image:linear-gradient(to bottom,#fff,#f2f2f2)}html.light .ha-rich-text .ql-container.ql-snow{border-color:#dcdfe6}.ha-rich-text ol,.ha-rich-text ul{padding-left:1.5em}.ha-rich-text ol{counter-reset:my-counter}.ha-rich-text ol li{list-style-type:none;counter-increment:my-counter}.ha-rich-text ol li:before{content:counter(my-counter) "."}.ha-fill{width:100%;height:100%}.ha-scroller{position:relative;height:100%}.ha-scroller:hover .scroller-thumb{display:block}.ha-scroller.hover .scroller-thumb{display:block;opacity:.5}.ha-scroller .scroller-container{height:100%;overflow:auto;width:100%;scrollbar-width:none}.ha-scroller .scroller-track{position:absolute;top:0;right:0;width:8px;height:100%}.ha-scroller .scroller-thumb{display:none;position:absolute;cursor:pointer;height:30px;width:100%;-webkit-user-select:none;user-select:none;background:#a3a6ad;opacity:.3;border-radius:5px}.ha-scroller .scroller-thumb:hover{opacity:.5}.ha-card{padding:5px;border:1px solid #414243;background:#1d1e1f;box-shadow:0 0 12px #000000b8;border-radius:4px}.ha-code{width:100%;height:100%}.ha-code.border{width:calc(100% - 2px);height:calc(100% - 2px);border-radius:4px}.ha-code.border .monaco-editor,.ha-code.border .overflow-guard{border-radius:4px}.ha-code.border:has(.monaco-editor.focused){border:1px solid #007fd4}.ha-compare{width:100%;height:100%}.ha-rich-text{width:100%}.ha-rich-text .ql-date{font-family:"Font Awesome 6 Free"}.ha-rich-text .ql-date:before{content:""}.ha-rich-text .ql-toolbar{line-height:20px}.ha-rich-text .ql-toolbar.ql-snow{padding:3px;position:sticky;top:0;z-index:10;border-top-left-radius:4px;border-top-right-radius:4px}.ha-rich-text .ql-body{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.ha-rich-text .ql-container{height:auto}.ha-rich-text .ql-container.ql-snow{font-family:inherit;border:0}.ha-rich-text .ql-editor{padding:8px 8px 620px;word-break:break-word;overflow:initial}.ha-rich-text .ql-formats .ql-picker+.ql-picker{display:block!important}.ha-rich-text .ql-formats .ql-picker:has(+.ql-picker){display:none}.ha-rich-text:has(.ql-editor:focus) .ql-snow.ql-toolbar{border-color:#007fd4;border-bottom-color:#4c4d4f}.ha-rich-text:has(.ql-editor:focus) .ql-snow+.ql-body{border-color:#007fd4}.ha-condition{display:flex}.ha-col{display:flex;gap:5px}.ha-container{padding:10px;width:calc(100% - 20px);height:calc(100% - 20px)}.ha-container .ha-operation:nth-child(1){margin-top:0;margin-bottom:10px;padding:8px 10px;line-height:32px}.ha-row{display:flex;gap:5px}.ha-row.between{justify-content:space-between}.ha-progress{position:absolute;width:0;z-index:1}.ha-socket-progress{width:100%;display:flex;gap:5px}.ha-socket-progress .progress-tips{display:flex;gap:5px}.ha-socket-progress .progress-tip{font-size:12px;padding:0 8px;border-radius:4px}.ha-socket-progress .progress-tip.info{color:#409eff;background:#18222c;border:1px solid #1d3043}.ha-socket-progress .progress-tip.success{color:#67c23a;background:#1c2518;border:1px solid #25371c}.ha-socket-progress .progress-tip.error{color:#f56c6c;background:#2b1d1d;border:1px solid #412626}.ha-socket-progress .progress-chart{display:flex;flex:1;align-items:center;gap:5px;width:200px}.ha-socket-progress .progress-bar{height:6px;background:#363637;width:100%;border-radius:4px}.ha-socket-progress .progress-percentage{height:100%;background:#67c23a;transition:width .5s;border-radius:4px}.ha-socket-progress .progress-text{color:#cfd3dc}.ha-socket-progress.warning .progress-percentage{background:#e6a23c}.ha-socket-progress.warning .progress-text{color:#e6a23c}.ha-socket-progress.error .progress-percentage{background:#f56c6c}.ha-socket-progress.error .progress-text{color:#f56c6c}@keyframes antRotate{to{transform:rotate(405deg)}}@keyframes antSpinMove{to{opacity:1}}.ha-spinner .spinner-dots{position:relative;font-size:20px;width:20px;height:20px;transform:rotate(45deg);animation:antRotate 1.2s linear infinite;margin:0 auto}.ha-spinner .spinner-dots i{position:absolute;display:block;width:9px;height:9px;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove 1s linear infinite alternate}.ha-spinner .spinner-dots i:first-child{top:0;left:0}.ha-spinner .spinner-dots i:nth-child(2){top:0;right:0;animation-delay:.4s}.ha-spinner .spinner-dots i:nth-child(3){right:0;bottom:0;animation-delay:.8s}.ha-spinner .spinner-dots i:nth-child(4){bottom:0;left:0;animation-delay:1.2s}.ha-spinner .spinner-title{color:#f40}.ha-spinner .stack{color:#a3a6ad;white-space:pre-wrap}.ha-spinner .spinner-text{text-align:center;font-size:14px;margin-top:10px}.ha-spinner.is-loading{height:100%;display:flex;align-items:center;justify-content:center}.ha-spinner.is-error{padding:10px;font-size:14px;transition:none}.ha-spinner.is-error .retry{color:#38c;cursor:pointer;margin-left:5px}.ha-spinner.is-error .retry:active{color:#f40}
1
+ html{-webkit-user-select:initial;user-select:initial;font-size:14px;font-family:Consolas}a{text-decoration:none}p{margin:0;line-height:20px}input{outline:none;margin:0;font-family:inherit}ul,ol{margin:0;padding:0;outline:none}li{list-style-type:none}img{display:block}pre{margin:0;font-family:inherit}html.blue .ha-rich-text .ql-toolbar.ql-snow{border:1px solid #434e61;box-shadow:0 1px 4px #29374d;background-image:linear-gradient(to bottom,#354052,#354052)}html.blue .ha-rich-text .ql-container.ql-snow{border-color:#434e61;background:#354052}html.blue .ha-rich-text .ql-stroke{stroke:#ffffffb8}html.blue .ha-rich-text .ql-fill{fill:#ffffffb8}html.blue .ha-rich-text .ql-picker .ql-picker-label,html.blue .ha-rich-text .ql-date{color:#ffffffb8}html.light .ha-rich-text .ql-toolbar.ql-snow{border:1px solid #dcdfe6;box-shadow:0 1px 4px #ccc9;background-image:linear-gradient(to bottom,#fff,#f2f2f2)}html.light .ha-rich-text .ql-container.ql-snow{border-color:#dcdfe6}.ha-rich-text ol,.ha-rich-text ul{padding-left:1.5em}.ha-rich-text ol{counter-reset:my-counter}.ha-rich-text ol li{list-style-type:none;counter-increment:my-counter}.ha-rich-text ol li:before{content:counter(my-counter) "."}.ha-fill{width:100%;height:100%}.ha-scroller{position:relative;height:100%}.ha-scroller:hover .scroller-thumb{display:block}.ha-scroller.hover .scroller-thumb{display:block;opacity:.5}.ha-scroller .scroller-container{height:100%;overflow:auto;width:100%;scrollbar-width:none}.ha-scroller .scroller-track{position:absolute;top:0;right:0;width:8px;height:100%}.ha-scroller .scroller-thumb{display:none;position:absolute;cursor:pointer;height:30px;width:100%;-webkit-user-select:none;user-select:none;background:#a3a6ad;opacity:.3;border-radius:5px}.ha-scroller .scroller-thumb:hover{opacity:.5}.ha-card{padding:5px;border:1px solid #414243;background:#1d1e1f;box-shadow:0 0 12px #000000b8;border-radius:4px}.ha-code{width:100%;height:100%}.ha-code.border{width:calc(100% - 2px);height:calc(100% - 2px);border-radius:4px}.ha-code.border .monaco-editor,.ha-code.border .overflow-guard{border-radius:4px}.ha-code.border:has(.monaco-editor.focused){border:1px solid #007fd4}.ha-compare{width:100%;height:100%}.ha-rich-text{width:100%}.ha-rich-text .ql-date{font-family:"Font Awesome 6 Free"}.ha-rich-text .ql-date:before{content:""}.ha-rich-text .ql-toolbar{line-height:20px}.ha-rich-text .ql-toolbar.ql-snow{padding:3px;position:sticky;top:0;z-index:10;border-top-left-radius:4px;border-top-right-radius:4px}.ha-rich-text .ql-body{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.ha-rich-text .ql-container{height:auto}.ha-rich-text .ql-container.ql-snow{font-family:inherit;border:0}.ha-rich-text .ql-editor{padding:8px 8px 620px;word-break:break-word;overflow:initial}.ha-rich-text .ql-formats .ql-picker+.ql-picker{display:block!important}.ha-rich-text .ql-formats .ql-picker:has(+.ql-picker){display:none}.ha-rich-text:has(.ql-editor:focus) .ql-snow.ql-toolbar{border-color:#007fd4;border-bottom-color:#4c4d4f}.ha-rich-text:has(.ql-editor:focus) .ql-snow+.ql-body{border-color:#007fd4}.ha-condition{display:flex}.ha-col{display:flex;gap:5px}.ha-container{padding:10px;width:calc(100% - 20px);height:calc(100% - 20px)}.ha-container .ha-operation:nth-child(1){margin-top:0;margin-bottom:10px;padding:8px 10px;line-height:32px}.ha-row{display:flex;gap:5px}.ha-row.between{justify-content:space-between}.ha-progress{position:absolute;width:0;z-index:1}.ha-socket-progress{width:100%;display:flex;gap:5px}.ha-socket-progress .progress-tips{display:flex;gap:5px}.ha-socket-progress .progress-tip{font-size:12px;padding:0 8px;border-radius:4px;display:flex;align-items:center}.ha-socket-progress .progress-tip.info{color:#409eff;background:#18222c;border:1px solid #1d3043}.ha-socket-progress .progress-tip.success{color:#67c23a;background:#1c2518;border:1px solid #25371c}.ha-socket-progress .progress-tip.error{color:#f56c6c;background:#2b1d1d;border:1px solid #412626}.ha-socket-progress .progress-chart{display:flex;flex:1;align-items:center;gap:5px;width:400px}.ha-socket-progress .progress-bar{height:6px;background:#363637;width:100%;border-radius:4px}.ha-socket-progress .progress-percentage{height:100%;background:#67c23a;transition:width .5s;border-radius:4px}.ha-socket-progress .progress-info{font-size:12px;display:flex;justify-content:space-between;color:#aaa}.ha-socket-progress .progress-text{color:#cfd3dc}.ha-socket-progress.warning .progress-percentage{background:#e6a23c}.ha-socket-progress.warning .progress-text{color:#e6a23c}.ha-socket-progress.error .progress-percentage{background:#f56c6c}.ha-socket-progress.error .progress-text{color:#f56c6c}@keyframes antRotate{to{transform:rotate(405deg)}}@keyframes antSpinMove{to{opacity:1}}.ha-spinner .spinner-dots{position:relative;font-size:20px;width:20px;height:20px;transform:rotate(45deg);animation:antRotate 1.2s linear infinite;margin:0 auto}.ha-spinner .spinner-dots i{position:absolute;display:block;width:9px;height:9px;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove 1s linear infinite alternate}.ha-spinner .spinner-dots i:first-child{top:0;left:0}.ha-spinner .spinner-dots i:nth-child(2){top:0;right:0;animation-delay:.4s}.ha-spinner .spinner-dots i:nth-child(3){right:0;bottom:0;animation-delay:.8s}.ha-spinner .spinner-dots i:nth-child(4){bottom:0;left:0;animation-delay:1.2s}.ha-spinner .spinner-title{color:#f40}.ha-spinner .stack{color:#a3a6ad;white-space:pre-wrap}.ha-spinner .spinner-text{text-align:center;font-size:14px;margin-top:10px}.ha-spinner.is-loading{height:100%;display:flex;align-items:center;justify-content:center}.ha-spinner.is-error{padding:10px;font-size:14px;transition:none}.ha-spinner.is-error .retry{color:#38c;cursor:pointer;margin-left:5px}.ha-spinner.is-error .retry:active{color:#f40}.ha-dance{display:flex;align-items:center}.ha-dance .char{animation:animationText 1s ease-in-out infinite alternate}@keyframes animationText{0%{transform:matrix(1,0,0,1,0,-2)}to{transform:matrix(1,0,0,1,0,2)}}
@@ -2,6 +2,14 @@
2
2
  * 实时进度属性
3
3
  */
4
4
  interface SocketProgressProps {
5
+ /**
6
+ * 标题
7
+ */
8
+ title?: string;
9
+ /**
10
+ * 当前处理项的属性名
11
+ */
12
+ current?: string;
5
13
  /**
6
14
  * 进度数据
7
15
  */
@@ -15,7 +15,7 @@ interface CodeProps {
15
15
  /**
16
16
  * 是否显示行号
17
17
  */
18
- lineNumbers?: string;
18
+ lineNumbers?: boolean;
19
19
  /**
20
20
  * 是否启用小地图
21
21
  */
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<CodeProps, {
17
17
  }>, {
18
18
  options: {
19
19
  readonly?: boolean;
20
- lineNumbers?: string;
20
+ lineNumbers?: boolean;
21
21
  minimap?: boolean;
22
22
  category?: string;
23
23
  language?: string;
@@ -10,4 +10,5 @@ export * from "./layouts";
10
10
  export * from "./progresses";
11
11
  export * from "./tables";
12
12
  export * from "./tabs";
13
+ export * from "./texts";
13
14
  export { HaEmpty, HaFill, HaScroller, HaTimer };
@@ -3,11 +3,15 @@ declare function __VLS_template(): {
3
3
  slots: {
4
4
  default?(_: {}): any;
5
5
  };
6
- refs: {};
6
+ refs: {
7
+ rowRef: HTMLDivElement;
8
+ };
7
9
  attrs: Partial<{}>;
8
10
  };
9
11
  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>;
12
+ declare const __VLS_component: import("vue").DefineComponent<RowProps, {
13
+ ref: import("vue").Ref<any, any>;
14
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RowProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
15
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
16
  export default _default;
13
17
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 跳动属性
3
+ */
4
+ interface DanceProps {
5
+ /**
6
+ * 文本
7
+ */
8
+ text: string;
9
+ /**
10
+ * 动画开始延时
11
+ */
12
+ delay?: number;
13
+ }
14
+ export default DanceProps;
@@ -0,0 +1,2 @@
1
+ import DanceProps from "./DanceProps";
2
+ export { type DanceProps };
@@ -0,0 +1,5 @@
1
+ import { DanceProps } from "./@types";
2
+ declare const _default: import("vue").DefineComponent<DanceProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DanceProps> & Readonly<{}>, {
3
+ delay: number;
4
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import HaDance from "./Dance.vue";
2
+ export { HaDance };
@@ -4,6 +4,7 @@ import IBuilder from "./IBuilder";
4
4
  * 构建器工厂
5
5
  */
6
6
  declare class BuilderFactory extends Factory<IBuilder> {
7
+ type: string;
7
8
  open(): void;
8
9
  }
9
10
  export default BuilderFactory;
@@ -10,14 +10,14 @@ declare abstract class Cdn implements ICdn {
10
10
  */
11
11
  task: ITask;
12
12
  openAsync(conn: string): Promise<void>;
13
- abstract getCrypto(): Promise<any>;
14
- abstract getECharts(): Promise<any>;
15
- abstract getElementPlus(): Promise<any>;
16
- abstract getFortAwesome(): Promise<any>;
13
+ getCrypto(): Promise<any>;
14
+ getECharts(): Promise<any>;
15
+ getElementPlus(): Promise<any>;
16
+ getFortAwesome(): Promise<any>;
17
17
  getMonaco(baseUrl?: string): Promise<any>;
18
18
  getQuill(): Promise<any>;
19
- abstract getWeiXin(): Promise<any>;
20
- abstract getXlsx(): Promise<any>;
19
+ getWeiXin(): Promise<any>;
20
+ getXlsx(): Promise<any>;
21
21
  /**
22
22
  * 使用并发限制顺序加载资源,并防止monaco-editor的define函数冲突
23
23
  */
@@ -4,6 +4,7 @@ import Factory from "../../factory/Factory";
4
4
  * CDN工厂类
5
5
  */
6
6
  declare class CdnFactory extends Factory<ICdn> {
7
+ type: string;
7
8
  open(): void;
8
9
  /**
9
10
  * 获取指定CDN实例
@@ -4,7 +4,7 @@ import IEncoder from "./IEncoder";
4
4
  */
5
5
  declare abstract class Encoder implements IEncoder {
6
6
  type: string;
7
- abstract openAsync(conn: string): Promise<void>;
7
+ openAsync(conn: string): Promise<void>;
8
8
  encode(value: string | object): string;
9
9
  /**
10
10
  * 编码字符串
@@ -4,6 +4,7 @@ import Factory from "../../factory/Factory";
4
4
  * 编码器工厂
5
5
  */
6
6
  declare class EncoderFactory extends Factory<IEncoder> {
7
+ type: string;
7
8
  open(): void;
8
9
  /**
9
10
  * 创建执行类型的Hash实例
@@ -4,6 +4,7 @@ import Factory from "../../factory/Factory";
4
4
  * Excel工厂
5
5
  */
6
6
  declare class ExcelFactory extends Factory<IExcel> {
7
+ type: string;
7
8
  open(): void;
8
9
  /**
9
10
  * 获取Excel实例
@@ -1,6 +1,7 @@
1
1
  import Factory from "../../factory/Factory";
2
2
  import IExplainer from "./IExplainer";
3
3
  declare class ExplainerFactory extends Factory<IExplainer> {
4
+ type: string;
4
5
  open(): void;
5
6
  }
6
7
  export default ExplainerFactory;
@@ -0,0 +1,9 @@
1
+ import IFeature from "./IFeature";
2
+ declare abstract class Feature implements IFeature {
3
+ type: string;
4
+ openAsync(conn?: string): Promise<void>;
5
+ abstract add(table: any, field: any, data: object, row: object): void;
6
+ abstract copy(table: any, field: any, data: object): void;
7
+ abstract insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
8
+ }
9
+ export default Feature;
@@ -4,6 +4,7 @@ import Factory from "../../factory/Factory";
4
4
  * 特征工厂类
5
5
  */
6
6
  declare class FeatureFactory extends Factory<IFeature> {
7
+ type: string;
7
8
  open(): void;
8
9
  /**
9
10
  * 获取指定特征实例
@@ -1,10 +1,9 @@
1
- import IFeature from "../IFeature";
1
+ import Feature from "../Feature";
2
2
  /**
3
3
  * 表达式特征
4
4
  */
5
- declare class ExpressionFeature implements IFeature {
5
+ declare class ExpressionFeature extends Feature {
6
6
  type: string;
7
- openAsync(param: string): void;
8
7
  add(table: any, field: any, data: {}, row: {}): void;
9
8
  insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
10
9
  copy(table: any, field: any, data: object): void;
@@ -1,10 +1,9 @@
1
- import IFeature from "../IFeature";
1
+ import Feature from "../Feature";
2
2
  /**
3
3
  * 多语言特征
4
4
  */
5
- declare class I18NFeature implements IFeature {
5
+ declare class I18NFeature extends Feature {
6
6
  type: string;
7
- openAsync(param: string): void;
8
7
  add(table: any, field: any, data: {}, row: {}): void;
9
8
  insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
10
9
  copy(table: any, field: any, data: object): void;
@@ -1,10 +1,9 @@
1
- import IFeature from "../IFeature";
1
+ import Feature from "../Feature";
2
2
  /**
3
3
  * 排序特征
4
4
  */
5
- declare class SortFeature implements IFeature {
5
+ declare class SortFeature extends Feature {
6
6
  type: string;
7
- openAsync(param: string): void;
8
7
  add(table: any, field: any, data: object, row: object): void;
9
8
  insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
10
9
  copy(table: any, field: any, data: object): void;
@@ -4,6 +4,7 @@ import Factory from "../../factory/Factory";
4
4
  * 哈希工厂
5
5
  */
6
6
  declare class HasherFactory extends Factory<IHasher> {
7
+ type: string;
7
8
  open(): void;
8
9
  createAsync(type: string, conn?: string): Promise<IHasher>;
9
10
  /**
@@ -29,7 +29,7 @@ declare abstract class Http implements IHttp {
29
29
  set onRequest(value: (request: HttpRequest) => Promise<void>);
30
30
  get onResponse(): (response: HttpResponse) => Promise<void>;
31
31
  set onResponse(value: (response: HttpResponse) => Promise<void>);
32
- prepareAsync(request: HttpRequest, variables: string[]): Promise<void>;
32
+ prepareAsync(request: HttpRequest, variables?: string[]): Promise<void>;
33
33
  get: (path: string, params?: any) => Promise<any>;
34
34
  getAsync: (path: string, params?: any) => Promise<HttpResponse>;
35
35
  post: (path: string, body: any) => Promise<any>;
@@ -4,6 +4,7 @@ import Factory from "../../factory/Factory";
4
4
  * 请求器工厂类
5
5
  */
6
6
  declare class HttpFactory extends Factory<IHttp> {
7
+ type: string;
7
8
  open(): void;
8
9
  /**
9
10
  * 获取默认请求器
@@ -0,0 +1,8 @@
1
+ import Http from "../Http";
2
+ /**
3
+ * 飞书Http请求器
4
+ */
5
+ declare class FeiShuHttp extends Http {
6
+ type: string;
7
+ }
8
+ export default FeiShuHttp;
@@ -36,7 +36,7 @@ declare abstract class I18n implements II18n {
36
36
  addMessages: (messages: {
37
37
  [key: string]: string;
38
38
  }) => void;
39
- abstract load(lang: string): Promise<void>;
39
+ abstract loadAsync(lang: string): Promise<void>;
40
40
  switch: (lang: string) => Promise<void>;
41
41
  }
42
42
  export default I18n;
@@ -4,6 +4,7 @@ import II18n from "./II18n";
4
4
  * 多语言工厂
5
5
  */
6
6
  declare class I18nFactory extends Factory<II18n> {
7
+ type: string;
7
8
  open(): void;
8
9
  }
9
10
  export default I18nFactory;
@@ -75,7 +75,7 @@ interface II18n extends IDriver, IOpen {
75
75
  /**
76
76
  * 加载指定语言包,需http请求器先加载完毕
77
77
  */
78
- load(lang: string): Promise<void>;
78
+ loadAsync(lang: string): Promise<void>;
79
79
  /**
80
80
  * 切换语言,自动加载菜单
81
81
  */
@@ -8,6 +8,6 @@ declare class DefaultI18n extends I18n {
8
8
  openAsync(conn?: string): Promise<void>;
9
9
  translate: (key: string, params?: any) => string;
10
10
  t_exists: (key: string) => boolean;
11
- load: (lang: string) => Promise<void>;
11
+ loadAsync: (lang: string) => Promise<void>;
12
12
  }
13
13
  export default DefaultI18n;
@@ -4,6 +4,7 @@ import IMessenger from "./IMessenger";
4
4
  * 消息工厂
5
5
  */
6
6
  declare class MessengerFactory extends Factory<IMessenger> {
7
+ type: string;
7
8
  open(): void;
8
9
  /**
9
10
  * 获取控制台消息提示类型
@@ -4,6 +4,7 @@ import Factory from "../../factory/Factory";
4
4
  * 数据库提供程序工厂类
5
5
  */
6
6
  declare class ProviderFactory extends Factory<IProvider> {
7
+ type: string;
7
8
  open(): void;
8
9
  private _default;
9
10
  /**
@@ -4,6 +4,7 @@ import Factory from "../../factory/Factory";
4
4
  * 签名工厂类
5
5
  */
6
6
  declare class SignerFactory extends Factory<ISigner> {
7
+ type: string;
7
8
  open(): void;
8
9
  /**
9
10
  * 获取指定签名实例
@@ -4,6 +4,7 @@ import ISocket from "./ISocket";
4
4
  * Socket工厂
5
5
  */
6
6
  declare class SocketFactory extends Factory<ISocket> {
7
+ type: string;
7
8
  open(): void;
8
9
  /**
9
10
  * 默认通信对象
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Socket响应消息
3
3
  */
4
- interface SocketResponse<T> {
4
+ declare class SocketResponse<T> {
5
5
  /**
6
6
  * 是否执行成功
7
7
  */
@@ -10,10 +10,14 @@ interface SocketResponse<T> {
10
10
  * 异常消息
11
11
  */
12
12
  message: string;
13
+ /**
14
+ * 耗时
15
+ */
16
+ elapsed: number;
13
17
  /**
14
18
  * 消息类别
15
19
  */
16
- king: string;
20
+ kind: string;
17
21
  /**
18
22
  * 消息类型
19
23
  */
@@ -22,5 +26,17 @@ interface SocketResponse<T> {
22
26
  * 数据体
23
27
  */
24
28
  data: T;
29
+ /**
30
+ * 初始化并设置数据
31
+ */
32
+ constructor(kind: string, type: string, data: T);
33
+ /**
34
+ * 成功输出
35
+ */
36
+ onOk(message?: string): void;
37
+ /**
38
+ * 异常输出
39
+ */
40
+ onError(message: string): void;
25
41
  }
26
42
  export default SocketResponse;
@@ -1,3 +1,3 @@
1
1
  import SocketProgress from "./SocketProgress";
2
2
  import SocketResponse from "./SocketResponse";
3
- export { SocketProgress, type SocketResponse, };
3
+ export { SocketProgress, SocketResponse, };
@@ -4,6 +4,7 @@ import Factory from "../../factory/Factory";
4
4
  * SSO工厂类
5
5
  */
6
6
  declare class SsoFactory extends Factory<ISso> {
7
+ type: string;
7
8
  /**
8
9
  * 获取实例
9
10
  */
@@ -4,6 +4,7 @@ import ITask from "./ITask";
4
4
  * 任务工厂类
5
5
  */
6
6
  declare class TaskFactory extends Factory<ITask> {
7
+ type: string;
7
8
  open(): void;
8
9
  }
9
10
  export default TaskFactory;
@@ -6,6 +6,6 @@ interface ITemplate extends IDriver {
6
6
  /**
7
7
  * 模板渲染
8
8
  */
9
- render(template: string, model: any): Promise<string>;
9
+ renderAsync(template: string, model: any): Promise<string>;
10
10
  }
11
11
  export default ITemplate;
@@ -1,6 +1,6 @@
1
1
  import ITemplate from "./ITemplate";
2
2
  declare abstract class Template implements ITemplate {
3
3
  type: string;
4
- abstract render(template: string, model: any): Promise<string>;
4
+ abstract renderAsync(template: string, model: any): Promise<string>;
5
5
  }
6
6
  export default Template;
@@ -4,6 +4,7 @@ import ITemplate from "./ITemplate";
4
4
  * 模板工厂
5
5
  */
6
6
  declare class TemplateFactory extends Factory<ITemplate> {
7
+ type: string;
7
8
  open(): void;
8
9
  }
9
10
  export default TemplateFactory;
@@ -1,6 +1,6 @@
1
1
  import Template from "../Template";
2
2
  declare class LiquidTemplate extends Template {
3
3
  type: string;
4
- render(template: string, model: any): Promise<string>;
4
+ renderAsync(template: string, model: any): Promise<string>;
5
5
  }
6
6
  export default LiquidTemplate;
@@ -1,10 +1,11 @@
1
1
  import Factory from "../../factory/Factory";
2
2
  import IUtil from "./IUtil";
3
- import { ArrayUtil, BrowserUtil, ComponentUtil, DictionaryUtil, DomUtil, EventUtil, FileUtil, HtmlUtil, ImageUtil, JsonUtil, MathUtil, MicroUtil, MountUtil, ObjectUtil, ScrollUtil, SignUtil, StringUtil, TaskUtil, TimeUtil, TreeUtil, TypeUtil, UrlUtil } from "./";
3
+ import { ArrayUtil, BrowserUtil, ComponentUtil, DictionaryUtil, DomUtil, EventUtil, FileUtil, HtmlUtil, ImageUtil, JsonUtil, MathUtil, MicroUtil, MountUtil, ObjectUtil, ScrollUtil, SignUtil, StringUtil, TaskUtil, TimeUtil, TreeUtil, UrlUtil } from "./";
4
4
  /**
5
5
  * 帮助类工厂
6
6
  */
7
7
  declare class UtilFactory extends Factory<IUtil> {
8
+ type: string;
8
9
  open(): void;
9
10
  get array(): ArrayUtil;
10
11
  get browser(): BrowserUtil;
@@ -23,7 +24,6 @@ declare class UtilFactory extends Factory<IUtil> {
23
24
  get scroll(): ScrollUtil;
24
25
  get string(): StringUtil;
25
26
  get task(): TaskUtil;
26
- get type(): TypeUtil;
27
27
  get time(): TimeUtil;
28
28
  get tree(): TreeUtil;
29
29
  get url(): UrlUtil;
@@ -5,7 +5,27 @@ import Util from "../Util";
5
5
  declare class ObjectUtil extends Util {
6
6
  type: string;
7
7
  /**
8
- * 净化对象,返回不带默认属性的对象
8
+ * 判断输入类型是否是字符串类型 null -> false
9
+ */
10
+ isString: (input: any) => boolean;
11
+ /**
12
+ * 判断输入类型是否是Object类型
13
+ */
14
+ isObject: (input: any) => boolean;
15
+ /**
16
+ * 判断输入类型是否是Array类型
17
+ */
18
+ isArray: (input: any) => boolean;
19
+ /**
20
+ * 判断输入类型是否是Number类型,null -> false
21
+ */
22
+ isNumber: (input: any) => boolean;
23
+ /**
24
+ * 判断输入类型是否是isBoolean类型
25
+ */
26
+ isBoolean: (input: any) => boolean;
27
+ /**
28
+ * 净化对象,只清除默认值属性
9
29
  */
10
30
  pure(input: object): {};
11
31
  /**
@@ -35,7 +35,7 @@ declare class TimeUtil extends Util {
35
35
  /**
36
36
  * 格式化时间
37
37
  */
38
- formatDateTime: (value: number) => string;
38
+ formatDateTime: (value: any) => string;
39
39
  /**
40
40
  * 获取当前日期时间的字符串
41
41
  */
@@ -13,7 +13,6 @@ import MountUtil from "./implements/MountUtil";
13
13
  import ObjectUtil from "./implements/ObjectUtil";
14
14
  import StringUtil from "./implements/StringUtil";
15
15
  import TaskUtil from "./implements/TaskUtil";
16
- import TypeUtil from "./implements/TypeUtil";
17
16
  import TimeUtil from "./implements/TimeUtil";
18
17
  import TreeUtil from "./implements/TreeUtil";
19
18
  import ScrollUtil from "./implements/ScrollUtil";
@@ -21,4 +20,4 @@ import JsonUtil from "./implements/JsonUtil";
21
20
  import BrowserUtil from "./implements/BrowserUtil";
22
21
  import UrlUtil from "./implements/UrlUtil";
23
22
  import SignUtil from "./implements/SignUtil";
24
- export { UtilFactory, ArrayUtil, ComponentUtil, DomUtil, DictionaryUtil, EventUtil, FileUtil, HtmlUtil, ImageUtil, MathUtil, MountUtil, ObjectUtil, MicroUtil, StringUtil, TaskUtil, TypeUtil, TimeUtil, TreeUtil, ScrollUtil, JsonUtil, BrowserUtil, UrlUtil, SignUtil };
23
+ export { UtilFactory, ArrayUtil, ComponentUtil, DomUtil, DictionaryUtil, EventUtil, FileUtil, HtmlUtil, ImageUtil, MathUtil, MountUtil, ObjectUtil, MicroUtil, StringUtil, TaskUtil, TimeUtil, TreeUtil, ScrollUtil, JsonUtil, BrowserUtil, UrlUtil, SignUtil };
@@ -11,6 +11,7 @@ import MouseUtility from "./implement/MouseUtility";
11
11
  * 工具类工厂
12
12
  */
13
13
  declare class UtilityFactory extends Factory<IUtility> {
14
+ type: string;
14
15
  /**
15
16
  * 创建固定工具
16
17
  */
@@ -1,6 +1,7 @@
1
1
  import Factory from "../../factory/Factory";
2
2
  import IVideo from "./IVideo";
3
3
  declare class VideoFactory extends Factory<IVideo> {
4
+ type: string;
4
5
  open(): void;
5
6
  }
6
7
  export default VideoFactory;
@@ -1,6 +1,7 @@
1
1
  import Factory from "../../factory/Factory";
2
2
  import { IVoice } from "./IVoice";
3
3
  declare class VoiceFactory extends Factory<IVoice> {
4
+ type: string;
4
5
  open(): void;
5
6
  }
6
7
  export default VoiceFactory;
@@ -6,16 +6,24 @@ import { Ref } from "../plugins";
6
6
  */
7
7
  declare abstract class Factory<T extends IDriver> implements IFactory<T> {
8
8
  /**
9
- * 当前驱动所有类型,用于使用时实例化
9
+ * 工厂类型,可用于异常提示
10
10
  */
11
- types: any[];
11
+ type: string;
12
+ /**
13
+ * 当前驱动子类型名称和子类型的映射关系,用于快速实例化
14
+ */
15
+ types: {
16
+ [name: string]: any;
17
+ };
12
18
  /**
13
19
  * 实例缓存集合
14
20
  * 或者使用:Record<string, string>
15
21
  */
16
22
  private created;
17
23
  open(): void;
18
- register(type: any): void;
24
+ register(types: {
25
+ [name: string]: any;
26
+ }): void;
19
27
  /**
20
28
  * 根据主键创建并开启驱动,并返回加载后的驱动信息
21
29
  */