halo-fe 1.0.21 → 1.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. package/dist/main.js +4165 -3630
  2. package/dist/style.css +1 -1
  3. package/esm/coms/Code.vue.d.ts +41 -0
  4. package/esm/coms/Col.vue.d.ts +11 -0
  5. package/esm/coms/Compare.vue.d.ts +40 -0
  6. package/esm/coms/Container.vue.d.ts +23 -0
  7. package/esm/coms/RichText.vue.d.ts +24 -0
  8. package/esm/coms/Row.vue.d.ts +21 -0
  9. package/esm/coms/index.d.ts +1 -1
  10. package/esm/coms/progresses/SocketProgress.vue.d.ts +10 -1
  11. package/esm/coms/types/CodeEmit.d.ts +23 -0
  12. package/esm/coms/types/CodeProps.d.ts +18 -0
  13. package/esm/coms/types/RichTextOptions.d.ts +14 -0
  14. package/esm/coms/types/RichTextProps.d.ts +12 -0
  15. package/esm/coms/types/RowProps.d.ts +14 -0
  16. package/esm/drivers/@types/IOpen.d.ts +1 -1
  17. package/esm/drivers/IDriver.d.ts +10 -0
  18. package/esm/drivers/cdns/Cdn.d.ts +1 -1
  19. package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
  20. package/esm/drivers/cdns/implements/BootCdn.d.ts +12 -0
  21. package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +15 -0
  22. package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +21 -0
  23. package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +12 -0
  24. package/esm/drivers/encoders/EncoderFactory.d.ts +1 -1
  25. package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
  26. package/esm/drivers/factories/DriverFactory.d.ts +64 -0
  27. package/esm/drivers/factories/Factory.d.ts +18 -0
  28. package/esm/drivers/factories/IFactory.d.ts +18 -0
  29. package/esm/drivers/factories/index.d.ts +42 -0
  30. package/esm/drivers/features/FeatureFactory.d.ts +1 -1
  31. package/esm/drivers/hashers/HasherFactory.d.ts +4 -1
  32. package/esm/drivers/hashers/implement/Md5Hasher.d.ts +1 -1
  33. package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +1 -1
  34. package/esm/drivers/helpers/@types/JsonConfig.d.ts +10 -0
  35. package/esm/drivers/helpers/@types/TreeNodeProp.d.ts +9 -0
  36. package/esm/drivers/helpers/@types/index.d.ts +3 -0
  37. package/esm/drivers/helpers/Helper.d.ts +8 -0
  38. package/esm/drivers/helpers/HelperFactory.d.ts +32 -0
  39. package/esm/drivers/helpers/IHelper.d.ts +4 -0
  40. package/esm/drivers/helpers/implements/ArrayHelper.d.ts +124 -0
  41. package/esm/drivers/helpers/implements/BrowserHelper.d.ts +12 -0
  42. package/esm/drivers/helpers/implements/ComponentHelper.d.ts +20 -0
  43. package/esm/drivers/helpers/implements/DictionaryHelper.d.ts +40 -0
  44. package/esm/drivers/helpers/implements/DomHelper.d.ts +118 -0
  45. package/esm/drivers/helpers/implements/EventHelper.d.ts +32 -0
  46. package/esm/drivers/helpers/implements/FileHelper.d.ts +24 -0
  47. package/esm/drivers/helpers/implements/HtmlHelper.d.ts +16 -0
  48. package/esm/drivers/helpers/implements/ImageHelper.d.ts +12 -0
  49. package/esm/drivers/helpers/implements/JsonHelper.d.ts +49 -0
  50. package/esm/drivers/helpers/implements/MathHelper.d.ts +52 -0
  51. package/esm/drivers/helpers/implements/MicroHelper.d.ts +12 -0
  52. package/esm/drivers/helpers/implements/MountHelper.d.ts +16 -0
  53. package/esm/drivers/helpers/implements/ObjectHelper.d.ts +44 -0
  54. package/esm/drivers/helpers/implements/ScrollHelper.d.ts +16 -0
  55. package/esm/drivers/helpers/implements/SignHelper.d.ts +16 -0
  56. package/esm/drivers/helpers/implements/StringHelper.d.ts +104 -0
  57. package/esm/drivers/helpers/implements/TaskHelper.d.ts +28 -0
  58. package/esm/drivers/helpers/implements/TimeHelper.d.ts +68 -0
  59. package/esm/drivers/helpers/implements/TreeHelper.d.ts +56 -0
  60. package/esm/drivers/helpers/implements/TypeHelper.d.ts +28 -0
  61. package/esm/drivers/helpers/implements/UrlHelper.d.ts +90 -0
  62. package/esm/drivers/helpers/index.d.ts +24 -0
  63. package/esm/drivers/https/HttpFactory.d.ts +1 -1
  64. package/esm/drivers/https/implements/HaloHttp.d.ts +1 -4
  65. package/esm/drivers/https/implements/MkHttp.d.ts +1 -1
  66. package/esm/drivers/i18ns/I18n.d.ts +9 -5
  67. package/esm/drivers/i18ns/II18n.d.ts +6 -2
  68. package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +1 -1
  69. package/esm/drivers/index.d.ts +1 -0
  70. package/esm/drivers/providers/ProviderFactory.d.ts +1 -1
  71. package/esm/drivers/providers/implements/StorageHelper.d.ts +34 -0
  72. package/esm/drivers/signers/SignerFactory.d.ts +1 -1
  73. package/esm/drivers/signers/implements/DefaultSigner.d.ts +1 -1
  74. package/esm/drivers/ssos/SsoFactory.d.ts +1 -1
  75. package/esm/factorying/Factories.d.ts +11 -7
  76. package/esm/factorying/Factory.d.ts +10 -5
  77. package/esm/factorying/Helpers.d.ts +29 -0
  78. package/esm/factorying/IFactory.d.ts +13 -5
  79. package/esm/factorying/index.d.ts +3 -1
  80. package/esm/helpers/MathHelper.d.ts +0 -4
  81. package/esm/helpers/ScriptHelper.d.ts +19 -0
  82. package/esm/helpers/StringHelper.d.ts +26 -18
  83. package/esm/helpers/array-helper.d.ts +97 -0
  84. package/esm/helpers/component-helper.d.ts +18 -0
  85. package/esm/helpers/cookie-helper.d.ts +6 -0
  86. package/esm/helpers/dictionary-helper.d.ts +18 -0
  87. package/esm/helpers/dom-helper.d.ts +86 -0
  88. package/esm/helpers/event-helper.d.ts +30 -0
  89. package/esm/helpers/file-helper.d.ts +22 -0
  90. package/esm/helpers/html-helper.d.ts +10 -0
  91. package/esm/helpers/i18n-helper.d.ts +14 -0
  92. package/esm/helpers/image-helper.d.ts +10 -0
  93. package/esm/helpers/json-helper.d.ts +39 -0
  94. package/esm/helpers/math-helper.d.ts +46 -0
  95. package/esm/helpers/micro-helper.d.ts +10 -0
  96. package/esm/helpers/mount-helper.d.ts +14 -0
  97. package/esm/helpers/object-helper.d.ts +38 -0
  98. package/esm/helpers/script-helper.d.ts +31 -0
  99. package/esm/helpers/scroll-helper.d.ts +14 -0
  100. package/esm/helpers/sign-helper.d.ts +14 -0
  101. package/esm/helpers/storage-helper.d.ts +34 -0
  102. package/esm/helpers/string-helper.d.ts +94 -0
  103. package/esm/helpers/task-helper.d.ts +26 -0
  104. package/esm/helpers/time-helper.d.ts +66 -0
  105. package/esm/helpers/tree-helper.d.ts +54 -0
  106. package/esm/helpers/type-helper.d.ts +26 -0
  107. package/esm/helpers/url-helper.d.ts +96 -0
  108. package/esm/main.d.ts +1 -2
  109. package/esm/plugins/HtmlTransform.d.ts +6 -0
  110. package/esm/plugins/types/IMessager.d.ts +34 -0
  111. package/esm/plugins/types/index.d.ts +7 -0
  112. package/esm/services/ConfigService.d.ts +66 -0
  113. package/esm/services/DriverService.d.ts +36 -0
  114. package/esm/services/EnvService.d.ts +14 -0
  115. package/esm/services/LogService.d.ts +19 -0
  116. package/esm/services/SettingService.d.ts +42 -0
  117. package/esm/services/SocketService.d.ts +23 -0
  118. package/esm/services/UserService.d.ts +47 -0
  119. package/esm/services/index.d.ts +15 -0
  120. package/esm/services/types/IMessage.d.ts +14 -0
  121. package/esm/services/types/IMessager.d.ts +34 -0
  122. package/esm/services/types/index.d.ts +2 -0
  123. package/esm/servs/ConfigServ.d.ts +66 -0
  124. package/esm/servs/DriverServ.d.ts +36 -0
  125. package/esm/servs/EnvServ.d.ts +14 -0
  126. package/esm/servs/IServ.d.ts +6 -0
  127. package/esm/servs/LogServ.d.ts +19 -0
  128. package/esm/servs/Serv.d.ts +4 -0
  129. package/esm/servs/ServFactory.d.ts +11 -0
  130. package/esm/servs/SettingServ.d.ts +42 -0
  131. package/esm/servs/SocketServ.d.ts +38 -0
  132. package/esm/servs/UserServ.d.ts +47 -0
  133. package/esm/servs/implement/ConfigServ.d.ts +66 -0
  134. package/esm/servs/implement/DriverServ.d.ts +36 -0
  135. package/esm/servs/implement/EnvServ.d.ts +14 -0
  136. package/esm/servs/implement/LogServ.d.ts +19 -0
  137. package/esm/servs/implement/SettingServ.d.ts +42 -0
  138. package/esm/servs/implement/SocketServ.d.ts +38 -0
  139. package/esm/servs/implement/UserServ.d.ts +47 -0
  140. package/esm/servs/index.d.ts +15 -0
  141. package/esm/stores/config.d.ts +63 -0
  142. package/esm/stores/driver.d.ts +37 -0
  143. package/esm/stores/env.d.ts +12 -0
  144. package/esm/stores/index.d.ts +8 -0
  145. package/esm/stores/log.d.ts +20 -0
  146. package/esm/stores/setting.d.ts +43 -0
  147. package/esm/stores/socket.d.ts +27 -0
  148. package/esm/stores/user.d.ts +40 -0
  149. package/esm/svcs/implement/ConfigSvc.d.ts +6 -2
  150. package/esm/svcs/implement/DriverSvc.d.ts +4 -0
  151. package/esm/svcs/implement/I18nSvc.d.ts +1 -1
  152. package/esm/svcs/implement/SettingSvc.d.ts +1 -1
  153. package/esm/svcs/implement/UserSvc.d.ts +8 -4
  154. package/esm/svcs/index.d.ts +26 -30
  155. package/esm/types/CreateOptions.d.ts +18 -0
  156. package/esm/utilities/RandomUtility.d.ts +40 -0
  157. package/esm/utilities/index.d.ts +2 -1
  158. package/package.json +1 -1
  159. package/esm/drivers/builders/types/ProviderTable.d.ts +0 -6
  160. package/esm/drivers/builders/types/index.d.ts +0 -2
  161. package/esm/svcs/@types/Dictionary.d.ts +0 -4
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-fill{width: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-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{line-height:20px;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.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;line-height:24px;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}.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.error .progress-percentage{background:#f56c6c}.ha-socket-progress.error .progress-text{color:#f56c6c}
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%}.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-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;line-height:24px;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}.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.error .progress-percentage{background:#f56c6c}.ha-socket-progress.error .progress-text{color:#f56c6c}
@@ -0,0 +1,41 @@
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
+ };
@@ -0,0 +1,11 @@
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
+ };
@@ -0,0 +1,40 @@
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;
@@ -0,0 +1,23 @@
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
+ };
@@ -0,0 +1,24 @@
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
+ };
@@ -0,0 +1,21 @@
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
+ };
@@ -2,11 +2,11 @@ import HaEmpty from "./Empty.vue";
2
2
  import HaFill from "./Fill.vue";
3
3
  import HaScroller from "./Scroller.vue";
4
4
  import HaTimer from "./Timer.vue";
5
+ export * from "./@types";
5
6
  export * from "./conditions";
6
7
  export * from "./controls";
7
8
  export * from "./layouts";
8
9
  export * from "./progresses";
9
10
  export * from "./tables";
10
11
  export * from "./tabs";
11
- export * from "./@types";
12
12
  export { HaEmpty, HaFill, HaScroller, HaTimer };
@@ -1,6 +1,15 @@
1
1
  import { SocketProgressProps } from "./@types";
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<SocketProgressProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<SocketProgressProps>>>, {}, {}>;
2
+ declare function __VLS_template(): {
3
+ default?(_: {}): any;
4
+ };
5
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<SocketProgressProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<SocketProgressProps>>>, {}, {}>;
6
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
3
7
  export default _default;
8
+ type __VLS_WithTemplateSlots<T, S> = T & {
9
+ new (): {
10
+ $slots: S;
11
+ };
12
+ };
4
13
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
5
14
  type __VLS_TypePropsToOption<T> = {
6
15
  [K in keyof T]-?: {} extends Pick<T, K> ? {
@@ -0,0 +1,23 @@
1
+ import { Monaco } from "../../plugins";
2
+ /**
3
+ * 代码控件事件
4
+ */
5
+ interface CodeEmit {
6
+ /**
7
+ * 挂载完毕事件
8
+ */
9
+ (event: 'mounted', monaco: typeof Monaco, editor: Monaco.editor.IStandaloneCodeEditor): void;
10
+ /**
11
+ * 值变动事件
12
+ */
13
+ (event: 'change', value: string): void;
14
+ /**
15
+ * 滚动事件
16
+ */
17
+ (event: 'scroll', scrollTop: number): void;
18
+ /**
19
+ * 值更新
20
+ */
21
+ (event: 'update:modelValue', value: any): void;
22
+ }
23
+ export default CodeEmit;
@@ -0,0 +1,18 @@
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;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 富文本选项配置
3
+ */
4
+ export interface RichTextOptions {
5
+ /**
6
+ * 是否只读
7
+ */
8
+ readonly?: boolean;
9
+ /**
10
+ * 滚动条距离顶部的距离
11
+ */
12
+ scrollTop?: number;
13
+ }
14
+ export default RichTextOptions;
@@ -0,0 +1,12 @@
1
+ import { RichTextOptions } from "./RichTextOptions";
2
+ /**
3
+ * 富文本属性
4
+ */
5
+ interface RichTextProps {
6
+ /**
7
+ * 默认配置选项
8
+ * 必填,否则内部状态变化,会导致响应状态丢失
9
+ */
10
+ options: RichTextOptions;
11
+ }
12
+ export default RichTextProps;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 行属性
3
+ */
4
+ interface RowProps {
5
+ /**
6
+ * 单元格间隙
7
+ */
8
+ gap?: number;
9
+ /**
10
+ * 对齐方向(right)
11
+ */
12
+ direction?: string;
13
+ }
14
+ export default RowProps;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  interface IOpen {
5
5
  /**
6
- * 开启
6
+ * 开启,子类当中定义open箭头函数字段,调用父类open方法时,可以保持this指向为当前对象
7
7
  */
8
8
  open(conn?: string): Promise<void>;
9
9
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 驱动接口
3
+ */
4
+ interface IDriver {
5
+ /**
6
+ * 类型
7
+ */
8
+ type: string;
9
+ }
10
+ export default IDriver;
@@ -11,7 +11,7 @@ declare abstract class Cdn implements ICdn {
11
11
  task: ITask;
12
12
  open(conn: string): Promise<void>;
13
13
  abstract getCrypto(): Promise<any>;
14
- abstract getECharts(): Promise<any>;
14
+ getECharts(basePath?: string): Promise<any>;
15
15
  abstract getElementPlus(): Promise<any>;
16
16
  abstract getFortAwesome(): Promise<any>;
17
17
  getMonaco(baseUrl?: string): Promise<any>;
@@ -8,6 +8,6 @@ declare class CdnFactory extends Factory<ICdn> {
8
8
  /**
9
9
  * 获取指定CDN实例
10
10
  */
11
- create(type: string, conn?: string): Promise<ICdn>;
11
+ createAsync(type: string, conn?: string): Promise<ICdn>;
12
12
  }
13
13
  export default CdnFactory;
@@ -0,0 +1,12 @@
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;
@@ -0,0 +1,15 @@
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;
@@ -0,0 +1,21 @@
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;
@@ -0,0 +1,12 @@
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;
@@ -8,7 +8,7 @@ declare class EncoderFactory extends Factory<IEncoder> {
8
8
  /**
9
9
  * 创建执行类型的Hash实例
10
10
  */
11
- create(type: string, conn?: string): Promise<IEncoder>;
11
+ createAsync(type: string, conn?: string): Promise<IEncoder>;
12
12
  /**
13
13
  * 获取Base64 编码器对象
14
14
  */
@@ -8,6 +8,6 @@ declare class ExcelFactory extends Factory<IExcel> {
8
8
  /**
9
9
  * 获取Excel实例
10
10
  */
11
- create(type: string, conn?: string): Promise<IExcel>;
11
+ createAsync(type: string, conn?: string): Promise<IExcel>;
12
12
  }
13
13
  export default ExcelFactory;
@@ -0,0 +1,64 @@
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;
@@ -0,0 +1,18 @@
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;
@@ -0,0 +1,18 @@
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;
@@ -0,0 +1,42 @@
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 };
@@ -8,6 +8,6 @@ declare class FeatureFactory extends Factory<IFeature> {
8
8
  /**
9
9
  * 获取指定特征实例
10
10
  */
11
- create(type: string, conn?: string): Promise<IFeature>;
11
+ createAsync(type: string, conn?: string): Promise<IFeature>;
12
12
  }
13
13
  export default FeatureFactory;
@@ -1,8 +1,11 @@
1
1
  import IHasher from "./IHasher";
2
2
  import Factory from "../../factorying/Factory";
3
+ /**
4
+ * 哈希工厂
5
+ */
3
6
  declare class HasherFactory extends Factory<IHasher> {
4
7
  get instances(): IHasher[];
5
- create(type: string, conn?: string): Promise<IHasher>;
8
+ createAsync(type: string, conn?: string): Promise<IHasher>;
6
9
  /**
7
10
  * 获取MD5 Hash对象
8
11
  */
@@ -6,6 +6,6 @@ declare class Md5Hasher extends Hasher {
6
6
  type: string;
7
7
  crypto: any;
8
8
  open(conn: string): Promise<void>;
9
- compute(value: string): Promise<string>;
9
+ compute: (value: string) => Promise<string>;
10
10
  }
11
11
  export default Md5Hasher;
@@ -5,6 +5,6 @@ import Hasher from "../Hasher";
5
5
  declare class Sha256Hasher extends Hasher {
6
6
  type: string;
7
7
  open(conn: string): Promise<void>;
8
- compute(value: string): Promise<string>;
8
+ compute: (value: string) => Promise<string>;
9
9
  }
10
10
  export default Sha256Hasher;
@@ -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 };
@@ -0,0 +1,8 @@
1
+ import IHelper from "./IHelper";
2
+ /**
3
+ * 帮助类基类
4
+ */
5
+ declare abstract class Helper implements IHelper {
6
+ type: string;
7
+ }
8
+ export default Helper;