halo-fe 1.0.25 → 1.0.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) 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 +3482 -3071
  4. package/dist/style.css +1 -1
  5. package/esm/coms/@types/PagerEmit.d.ts +11 -0
  6. package/esm/coms/@types/PagerProps.d.ts +18 -0
  7. package/esm/coms/@types/SocketProgressProps.d.ts +8 -0
  8. package/esm/coms/@types/TableEmit.d.ts +10 -0
  9. package/esm/coms/@types/TableProps.d.ts +14 -2
  10. package/esm/coms/@types/index.d.ts +4 -1
  11. package/esm/coms/controls/@types/CodeIntelli.d.ts +6 -0
  12. package/esm/coms/controls/@types/CodeProps.d.ts +31 -2
  13. package/esm/coms/controls/@types/Range.d.ts +1 -1
  14. package/esm/coms/controls/Code.vue.d.ts +15 -25
  15. package/esm/coms/layouts/Row.vue.d.ts +2 -1
  16. package/esm/coms/pagers/Index.vue.d.ts +8 -1
  17. package/esm/coms/pagers/index.d.ts +2 -2
  18. package/esm/coms/progresses/Circle.vue.d.ts +2 -0
  19. package/esm/coms/progresses/Index.vue.d.ts +6 -3
  20. package/esm/coms/progresses/Spinner.vue.d.ts +20 -0
  21. package/esm/coms/progresses/index.d.ts +2 -1
  22. package/esm/coms/tables/Index.vue.d.ts +22 -3
  23. package/esm/drivers/@types/IOpen.d.ts +1 -1
  24. package/esm/drivers/builders/BuilderFactory.d.ts +1 -1
  25. package/esm/drivers/cdns/Cdn.d.ts +1 -1
  26. package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
  27. package/esm/drivers/cdns/ICdn.d.ts +2 -6
  28. package/esm/drivers/encoders/Encoder.d.ts +1 -1
  29. package/esm/drivers/encoders/EncoderFactory.d.ts +2 -2
  30. package/esm/drivers/encoders/IEncoder.d.ts +2 -5
  31. package/esm/drivers/encoders/implement/Base64Encoder.d.ts +1 -1
  32. package/esm/drivers/excels/Excel.d.ts +1 -1
  33. package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
  34. package/esm/drivers/excels/implements/XlsxExcel.d.ts +1 -1
  35. package/esm/drivers/explainers/ExplainerFactory.d.ts +2 -2
  36. package/esm/drivers/features/FeatureFactory.d.ts +2 -2
  37. package/esm/drivers/features/IFeature.d.ts +2 -6
  38. package/esm/drivers/features/implements/ExpressionFeature.d.ts +1 -1
  39. package/esm/drivers/features/implements/I18NFeature.d.ts +1 -1
  40. package/esm/drivers/features/implements/SortFeature.d.ts +1 -1
  41. package/esm/drivers/hashers/Hasher.d.ts +1 -1
  42. package/esm/drivers/hashers/HasherFactory.d.ts +2 -2
  43. package/esm/drivers/hashers/IHasher.d.ts +2 -5
  44. package/esm/drivers/hashers/implement/Md5Hasher.d.ts +1 -1
  45. package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +1 -1
  46. package/esm/drivers/https/Http.d.ts +10 -6
  47. package/esm/drivers/https/HttpFactory.d.ts +2 -7
  48. package/esm/drivers/https/IHttp.d.ts +12 -12
  49. package/esm/drivers/https/entities/HttpResponse.d.ts +5 -1
  50. package/esm/drivers/https/implements/DefaultHttp.d.ts +1 -1
  51. package/esm/drivers/https/implements/HaloHttp.d.ts +1 -1
  52. package/esm/drivers/https/implements/MkHttp.d.ts +1 -1
  53. package/esm/drivers/i18ns/I18n.d.ts +1 -1
  54. package/esm/drivers/i18ns/I18nFactory.d.ts +1 -1
  55. package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +1 -1
  56. package/esm/drivers/index.d.ts +50 -0
  57. package/esm/drivers/messengers/MessengerFactory.d.ts +2 -2
  58. package/esm/drivers/providers/IProvider.d.ts +19 -15
  59. package/esm/drivers/providers/Provider.d.ts +11 -9
  60. package/esm/drivers/providers/ProviderFactory.d.ts +5 -9
  61. package/esm/drivers/providers/implements/CookieProvider.d.ts +8 -8
  62. package/esm/drivers/providers/implements/IndexedDbProvider.d.ts +20 -10
  63. package/esm/drivers/providers/implements/StorageProvider.d.ts +8 -8
  64. package/esm/drivers/signers/ISigner.d.ts +1 -1
  65. package/esm/drivers/signers/Signer.d.ts +1 -1
  66. package/esm/drivers/signers/SignerFactory.d.ts +2 -2
  67. package/esm/drivers/signers/implements/DefaultSigner.d.ts +1 -1
  68. package/esm/drivers/sockets/@types/SubscribedWindow.d.ts +16 -0
  69. package/esm/drivers/sockets/@types/index.d.ts +2 -0
  70. package/esm/drivers/sockets/ISocket.d.ts +7 -3
  71. package/esm/drivers/sockets/Socket.d.ts +10 -1
  72. package/esm/drivers/sockets/SocketFactory.d.ts +1 -1
  73. package/esm/drivers/sockets/entities/SocketProgress.d.ts +34 -0
  74. package/esm/drivers/sockets/entities/SocketResponse.d.ts +26 -0
  75. package/esm/drivers/sockets/entities/index.d.ts +3 -0
  76. package/esm/drivers/sockets/implement/DefaultSocket.d.ts +0 -2
  77. package/esm/drivers/sockets/index.d.ts +3 -1
  78. package/esm/drivers/ssos/ISso.d.ts +1 -1
  79. package/esm/drivers/ssos/Sso.d.ts +1 -1
  80. package/esm/drivers/ssos/SsoFactory.d.ts +2 -2
  81. package/esm/drivers/ssos/implements/AnonymousSso.d.ts +1 -1
  82. package/esm/drivers/ssos/implements/BearerSso.d.ts +1 -1
  83. package/esm/drivers/ssos/implements/NioSso.d.ts +1 -1
  84. package/esm/drivers/ssos/implements/SecretSso.d.ts +1 -1
  85. package/esm/drivers/ssos/implements/WeiXinSso.d.ts +1 -1
  86. package/esm/drivers/tasks/ITask.d.ts +7 -3
  87. package/esm/drivers/tasks/Task.d.ts +2 -1
  88. package/esm/drivers/tasks/TaskFactory.d.ts +2 -2
  89. package/esm/drivers/tasks/implement/MemoryTask.d.ts +5 -3
  90. package/esm/drivers/templates/TemplateFactory.d.ts +2 -2
  91. package/esm/drivers/util/UtilFactory.d.ts +1 -1
  92. package/esm/drivers/util/implements/ArrayUtil.d.ts +5 -5
  93. package/esm/drivers/util/implements/EventUtil.d.ts +6 -6
  94. package/esm/drivers/util/implements/JsonUtil.d.ts +5 -0
  95. package/esm/drivers/util/implements/SignUtil.d.ts +1 -1
  96. package/esm/drivers/util/implements/StringUtil.d.ts +1 -1
  97. package/esm/drivers/utilities/IUtility.d.ts +3 -0
  98. package/esm/drivers/utilities/Utility.d.ts +3 -0
  99. package/esm/drivers/utilities/UtilityFactory.d.ts +6 -6
  100. package/esm/drivers/utilities/implement/EventUtility.d.ts +3 -6
  101. package/esm/drivers/utilities/implement/SaveUtility.d.ts +48 -3
  102. package/esm/drivers/videos/VideoFactory.d.ts +2 -2
  103. package/esm/drivers/voices/VoiceFactory.d.ts +2 -2
  104. package/esm/factory/Factories.d.ts +99 -0
  105. package/esm/factory/Factory.d.ts +41 -0
  106. package/esm/factory/IFactory.d.ts +40 -0
  107. package/esm/factory/Utils.d.ts +29 -0
  108. package/esm/factory/index.d.ts +4 -0
  109. package/esm/factorying/Factory.d.ts +3 -3
  110. package/esm/factorying/IFactory.d.ts +1 -1
  111. package/esm/main.d.ts +1 -2
  112. package/esm/repos/Repo.d.ts +5 -0
  113. package/esm/repos/RepoFactory.d.ts +20 -1
  114. package/esm/repos/implements/PageRepo.d.ts +30 -0
  115. package/esm/repos/implements/QueryRepo.d.ts +64 -0
  116. package/esm/repos/implements/SettingRepo.d.ts +1 -0
  117. package/esm/repos/index.d.ts +10 -1
  118. package/esm/svcs/SvcFactory.d.ts +1 -1
  119. package/esm/svcs/implement/ConfigSvc.d.ts +9 -9
  120. package/esm/svcs/implement/DriverSvc.d.ts +1 -35
  121. package/esm/svcs/index.d.ts +6 -15
  122. package/package.json +9 -9
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;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;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%;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}
@@ -0,0 +1,11 @@
1
+ interface PagerEmit {
2
+ /**
3
+ * 页码改变事件
4
+ */
5
+ (event: 'change', value: number): void;
6
+ /**
7
+ * 分页大小改变事件
8
+ */
9
+ (event: 'size-change', value: number): void;
10
+ }
11
+ export default PagerEmit;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * 分页属性
3
+ */
4
+ interface PagerProps {
5
+ /**
6
+ * 当前页码
7
+ */
8
+ page: number;
9
+ /**
10
+ * 分页大小
11
+ */
12
+ size: number;
13
+ /**
14
+ * 总数量
15
+ */
16
+ count: number;
17
+ }
18
+ export default PagerProps;
@@ -14,10 +14,18 @@ interface SocketProgressProps {
14
14
  * 异常数量
15
15
  */
16
16
  errored: number;
17
+ /**
18
+ * 已处理数量
19
+ */
20
+ handled: number;
17
21
  /**
18
22
  * 总数量
19
23
  */
20
24
  total: number;
25
+ /**
26
+ * 耗时(ms)
27
+ */
28
+ elapsed?: number;
21
29
  };
22
30
  }
23
31
  export default SocketProgressProps;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 表格触发事件
3
+ */
4
+ interface TableEmit {
5
+ /**
6
+ * 滚动事件
7
+ */
8
+ (event: 'scroll', value: number): void;
9
+ }
10
+ export default TableEmit;
@@ -7,16 +7,28 @@ interface TableProps {
7
7
  */
8
8
  data: any[];
9
9
  /**
10
- * 数据更新时间间隔
10
+ * 数据更新防抖时间
11
11
  */
12
- interval?: number;
12
+ debounce?: number;
13
13
  /**
14
14
  * 排序配置
15
15
  */
16
16
  sort?: any;
17
+ /**
18
+ * 滚动条距顶部距离
19
+ */
20
+ scrollTop?: number;
21
+ /**
22
+ * 当前高亮行的主键值
23
+ */
24
+ currentRow?: string;
17
25
  /**
18
26
  * 自动调整高度
19
27
  */
20
28
  autoHeight?: boolean;
29
+ /**
30
+ * 尺寸
31
+ */
32
+ size?: string;
21
33
  }
22
34
  export default TableProps;
@@ -1,5 +1,8 @@
1
+ import PagerEmit from "./PagerEmit";
2
+ import PagerProps from "./PagerProps";
1
3
  import ScrollerProps from "./ScrollerProps";
2
4
  import SocketProgressProps from "./SocketProgressProps";
5
+ import TableEmit from "./TableEmit";
3
6
  import TableProps from "./TableProps";
4
7
  import TabProps from "./TabProps";
5
- export { type ScrollerProps, type SocketProgressProps, type TableProps, type TabProps };
8
+ export { type PagerEmit, type PagerProps, type ScrollerProps, type SocketProgressProps, type TableEmit, type TableProps, type TabProps };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 代码智能提示信息
3
+ */
4
+ interface CodeIntelli {
5
+ }
6
+ export default CodeIntelli;
@@ -1,4 +1,5 @@
1
1
  import Range from "./Range";
2
+ import CodeIntelli from "./CodeIntelli";
2
3
  /**
3
4
  * 代码属性
4
5
  */
@@ -6,15 +7,43 @@ interface CodeProps {
6
7
  /**
7
8
  * 配置
8
9
  */
9
- config?: {
10
+ options?: {
11
+ /**
12
+ * 是否只读
13
+ */
10
14
  readonly?: boolean;
15
+ /**
16
+ * 是否显示行号
17
+ */
11
18
  lineNumbers?: string;
19
+ /**
20
+ * 是否启用小地图
21
+ */
12
22
  minimap?: boolean;
23
+ /**
24
+ * 分类
25
+ */
13
26
  category?: string;
14
- schema?: any;
27
+ /**
28
+ * 当前语言
29
+ */
15
30
  language?: string;
31
+ /**
32
+ * 滚动条距离顶部位置
33
+ */
16
34
  scrollTop?: number;
35
+ /**
36
+ * 选区信息
37
+ */
17
38
  selection?: Range;
39
+ /**
40
+ * 架构提示信息
41
+ */
42
+ schema?: any;
43
+ /**
44
+ * 用户自定义智能提示信息
45
+ */
46
+ intelli?: CodeIntelli;
18
47
  };
19
48
  /**
20
49
  * 是否显示边框
@@ -1,5 +1,5 @@
1
1
  /**
2
- * 范围
2
+ * 范围类
3
3
  */
4
4
  declare class Range {
5
5
  /**
@@ -1,40 +1,30 @@
1
1
  import { type Monaco } from "../../plugins";
2
2
  import { CodeProps } from "./@types";
3
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CodeProps>, {
4
- config: any;
5
- }>>, {
3
+ declare const _default: import("vue").DefineComponent<CodeProps, {
6
4
  layout: () => void;
7
5
  getEditor: () => Monaco.editor.IStandaloneCodeEditor;
8
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ registerIntelli: (language: string, keywords: string[]) => void;
7
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
8
  scroll: (scrollTop: number) => any;
10
9
  change: (value: string) => any;
11
10
  mounted: (monaco: typeof Monaco, editor: Monaco.editor.IStandaloneCodeEditor) => any;
12
11
  "update:modelValue": (value: any) => any;
13
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CodeProps>, {
14
- config: any;
15
- }>>> & Readonly<{
12
+ }, string, import("vue").PublicProps, Readonly<CodeProps> & Readonly<{
16
13
  onScroll?: (scrollTop: number) => any;
17
14
  onChange?: (value: string) => any;
18
15
  onMounted?: (monaco: typeof Monaco, editor: Monaco.editor.IStandaloneCodeEditor) => any;
19
16
  "onUpdate:modelValue"?: (value: any) => any;
20
17
  }>, {
21
- config: any;
18
+ options: {
19
+ readonly?: boolean;
20
+ lineNumbers?: string;
21
+ minimap?: boolean;
22
+ category?: string;
23
+ language?: string;
24
+ scrollTop?: number;
25
+ selection?: import("./@types").Range;
26
+ schema?: any;
27
+ intelli?: import("./@types/CodeIntelli").default;
28
+ };
22
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
23
30
  export default _default;
24
- type __VLS_WithDefaults<P, D> = {
25
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
26
- default: D[K];
27
- }> : P[K];
28
- };
29
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
- type __VLS_TypePropsToOption<T> = {
31
- [K in keyof T]-?: {} extends Pick<T, K> ? {
32
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
33
- } : {
34
- type: import('vue').PropType<T[K]>;
35
- required: true;
36
- };
37
- };
38
- type __VLS_PrettifyLocal<T> = {
39
- [K in keyof T]: T[K];
40
- } & {};
@@ -1,3 +1,4 @@
1
+ import { RowProps } from "./@types";
1
2
  declare function __VLS_template(): {
2
3
  slots: {
3
4
  default?(_: {}): any;
@@ -6,7 +7,7 @@ declare function __VLS_template(): {
6
7
  attrs: Partial<{}>;
7
8
  };
8
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
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>;
10
11
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
11
12
  export default _default;
12
13
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,2 +1,9 @@
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>;
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>;
2
9
  export default _default;
@@ -1,2 +1,2 @@
1
- import HaPagination from "Index.vue";
2
- export { HaPagination };
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;
@@ -1,6 +1,9 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
- 'update:modelValue': (modelValue: boolean) => any;
3
- }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
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<{
4
7
  "onUpdate:modelValue"?: (modelValue: boolean) => any;
5
8
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
9
  export default _default;
@@ -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
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, };
@@ -4,11 +4,30 @@ type __VLS_PublicProps = {
4
4
  'page'?: number;
5
5
  'size'?: number;
6
6
  } & typeof __VLS_typeProps;
7
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
- 'update:page': (page: number) => any;
9
- 'update:size': (size: number) => any;
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;
10
22
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ onScroll?: (value: number) => any;
11
24
  "onUpdate:page"?: (page: number) => any;
12
25
  "onUpdate:size"?: (size: number) => any;
13
26
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
28
  export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -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,7 +9,7 @@ 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
14
  abstract getECharts(): Promise<any>;
15
15
  abstract getElementPlus(): Promise<any>;
@@ -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
  */
@@ -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
  */
@@ -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
  }
@@ -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;