@ibiz-template/runtime 0.7.41-alpha.52 → 0.7.41-alpha.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/dist/index.esm.js +53 -11
  2. package/dist/index.system.min.js +1 -1
  3. package/out/controller/control/chart/chart.controller.d.ts.map +1 -1
  4. package/out/controller/control/chart/chart.controller.js +3 -2
  5. package/out/controller/control/form/form/form.controller.d.ts +7 -0
  6. package/out/controller/control/form/form/form.controller.d.ts.map +1 -1
  7. package/out/controller/control/form/form/form.controller.js +11 -0
  8. package/out/controller/control/form/form-detail/form-button/form-button.controller.d.ts.map +1 -1
  9. package/out/controller/control/form/form-detail/form-button/form-button.controller.js +31 -7
  10. package/out/controller/control/report-panel/generator/base-generator.d.ts +3 -2
  11. package/out/controller/control/report-panel/generator/base-generator.d.ts.map +1 -1
  12. package/out/controller/control/report-panel/generator/base-generator.js +1 -0
  13. package/out/controller/ctx/ctx.d.ts +6 -4
  14. package/out/controller/ctx/ctx.d.ts.map +1 -1
  15. package/out/controller/ctx/ctx.js +1 -0
  16. package/out/controller/hub.controller.d.ts +8 -4
  17. package/out/controller/hub.controller.d.ts.map +1 -1
  18. package/out/controller/hub.controller.js +5 -3
  19. package/out/interface/api/app/i-api-app-hub-controller.d.ts +23 -19
  20. package/out/interface/api/app/i-api-app-hub-controller.d.ts.map +1 -1
  21. package/out/interface/api/app/i-api-app-hub-service.d.ts +9 -9
  22. package/out/interface/api/app/i-micro-app-config-center.d.ts +3 -3
  23. package/out/interface/api/call/i-api-data-view.call.d.ts +2 -2
  24. package/out/interface/api/call/i-api-edit-view.call.d.ts +2 -2
  25. package/out/interface/api/call/i-api-grid-view.call.d.ts +2 -2
  26. package/out/interface/api/call/i-api-list-view.call.d.ts +2 -2
  27. package/out/interface/api/call/i-api-login-view.call.d.ts +21 -5
  28. package/out/interface/api/call/i-api-login-view.call.d.ts.map +1 -1
  29. package/out/interface/api/call/i-api-md-custom-view.call.d.ts +3 -3
  30. package/out/interface/api/call/i-api-md-view.call.d.ts +6 -6
  31. package/out/interface/api/call/i-api-mob-wf-dyna-edit-view.call.d.ts +1 -1
  32. package/out/interface/api/call/i-api-tree-exp-view.call.d.ts +4 -4
  33. package/out/interface/api/call/i-api-tree-grid-ex-view.call.d.ts +1 -1
  34. package/out/interface/api/call/i-api-tree-grid-view.call.d.ts +4 -7
  35. package/out/interface/api/call/i-api-tree-grid-view.call.d.ts.map +1 -1
  36. package/out/interface/api/call/i-api-tree-view.call.d.ts +4 -4
  37. package/out/interface/api/call/i-api-view.call.d.ts +1 -1
  38. package/out/interface/api/common/i-api-ctx.d.ts +41 -0
  39. package/out/interface/api/common/i-api-ctx.d.ts.map +1 -0
  40. package/out/interface/api/common/i-api-ctx.js +1 -0
  41. package/out/interface/api/common/i-api-error-handler.d.ts +15 -0
  42. package/out/interface/api/common/i-api-error-handler.d.ts.map +1 -0
  43. package/out/interface/api/common/i-api-error-handler.js +1 -0
  44. package/out/interface/api/common/i-api-modal-option.d.ts +50 -0
  45. package/out/interface/api/common/i-api-modal-option.d.ts.map +1 -0
  46. package/out/interface/api/common/i-api-modal-option.js +1 -0
  47. package/out/interface/api/common/i-api-overlay-container-options.d.ts +3 -3
  48. package/out/interface/api/common/i-api-overlay-container-options.d.ts.map +1 -1
  49. package/out/interface/api/common/i-api-ui-action-result.d.ts +51 -0
  50. package/out/interface/api/common/i-api-ui-action-result.d.ts.map +1 -0
  51. package/out/interface/api/common/i-api-ui-action-result.js +1 -0
  52. package/out/interface/api/common/i-api-ui-logic-params.d.ts +52 -0
  53. package/out/interface/api/common/i-api-ui-logic-params.d.ts.map +1 -0
  54. package/out/interface/api/common/i-api-ui-logic-params.js +1 -0
  55. package/out/interface/api/common/index.d.ts +5 -0
  56. package/out/interface/api/common/index.d.ts.map +1 -1
  57. package/out/interface/api/controller/common/i-api-enforceable.controller.d.ts +1 -1
  58. package/out/interface/api/controller/control/form-detail/i-api-form-button-controller.d.ts +3 -3
  59. package/out/interface/api/controller/control/form-detail/i-api-form-button-list.controller.d.ts +6 -6
  60. package/out/interface/api/controller/control/form-detail/i-api-form-detail.controller.d.ts +1 -0
  61. package/out/interface/api/controller/control/form-detail/i-api-form-detail.controller.d.ts.map +1 -1
  62. package/out/interface/api/controller/control/form-detail/i-api-form-group-panel.controller.d.ts +3 -3
  63. package/out/interface/api/controller/control/form-detail/i-api-form-mdctrl-form.controller.d.ts +1 -7
  64. package/out/interface/api/controller/control/form-detail/i-api-form-mdctrl-form.controller.d.ts.map +1 -1
  65. package/out/interface/api/controller/control/form-detail/i-api-form-mdctrl-repeater.controller.d.ts +2 -2
  66. package/out/interface/api/controller/control/form-detail/i-api-form-mdctrl.controller.d.ts +2 -2
  67. package/out/interface/api/controller/control/grid-column/i-api-grid-column.controller.d.ts +1 -1
  68. package/out/interface/api/controller/control/grid-column/i-api-grid-field-column.controller.d.ts +6 -6
  69. package/out/interface/api/controller/control/grid-column/i-api-grid-field-edit-column.controller.d.ts +3 -3
  70. package/out/interface/api/controller/control/grid-column/i-api-grid-ua-column.controller.d.ts +3 -3
  71. package/out/interface/api/controller/control/i-api-calendar.controller.d.ts +1 -1
  72. package/out/interface/api/controller/control/i-api-control.controller.d.ts +2 -2
  73. package/out/interface/api/controller/control/i-api-data-view-control.controller.d.ts +1 -1
  74. package/out/interface/api/controller/control/i-api-drbar.controller.d.ts +1 -1
  75. package/out/interface/api/controller/control/i-api-drtab.controller.d.ts +1 -1
  76. package/out/interface/api/controller/control/i-api-edit-form.controller.d.ts +7 -6
  77. package/out/interface/api/controller/control/i-api-edit-form.controller.d.ts.map +1 -1
  78. package/out/interface/api/controller/control/i-api-exp-bar-control.controller.d.ts +3 -3
  79. package/out/interface/api/controller/control/i-api-form.controller.d.ts +2 -2
  80. package/out/interface/api/controller/control/i-api-gantt.controller.d.ts +3 -3
  81. package/out/interface/api/controller/control/i-api-grid.controller.d.ts +4 -4
  82. package/out/interface/api/controller/control/i-api-grid.controller.d.ts.map +1 -1
  83. package/out/interface/api/controller/control/i-api-kanban.controller.d.ts +2 -3
  84. package/out/interface/api/controller/control/i-api-kanban.controller.d.ts.map +1 -1
  85. package/out/interface/api/controller/control/i-api-list.controller.d.ts +1 -1
  86. package/out/interface/api/controller/control/i-api-map.controller.d.ts +1 -1
  87. package/out/interface/api/controller/control/i-api-md-control.controller.d.ts +7 -7
  88. package/out/interface/api/controller/control/i-api-medit-view-panel.controller.d.ts +1 -1
  89. package/out/interface/api/controller/control/i-api-mob-md-ctrl.controller.d.ts +1 -1
  90. package/out/interface/api/controller/control/i-api-mob-md-ctrl.controller.d.ts.map +1 -1
  91. package/out/interface/api/controller/control/i-api-pickup-view-panel.controller.d.ts +1 -1
  92. package/out/interface/api/controller/control/i-api-report-panel.controller.d.ts +4 -3
  93. package/out/interface/api/controller/control/i-api-report-panel.controller.d.ts.map +1 -1
  94. package/out/interface/api/controller/control/i-api-search-bar.controller.d.ts +2 -2
  95. package/out/interface/api/controller/control/i-api-search-form.controller.d.ts +2 -1
  96. package/out/interface/api/controller/control/i-api-search-form.controller.d.ts.map +1 -1
  97. package/out/interface/api/controller/control/i-api-tab-exp-panel.controller.d.ts +1 -1
  98. package/out/interface/api/controller/control/i-api-toolbar.controller.d.ts +4 -4
  99. package/out/interface/api/controller/control/i-api-tree-grid-ex.controller.d.ts +1 -1
  100. package/out/interface/api/controller/control/i-api-tree-grid.controller.d.ts +1 -1
  101. package/out/interface/api/controller/control/i-api-tree-grid.controller.d.ts.map +1 -1
  102. package/out/interface/api/controller/control/i-api-tree.controller.d.ts +3 -3
  103. package/out/interface/api/controller/control/index.d.ts +2 -1
  104. package/out/interface/api/controller/control/index.d.ts.map +1 -1
  105. package/out/interface/api/controller/control/index.js +1 -0
  106. package/out/interface/api/controller/control/portlet/i-api-portlet.controller.d.ts +11 -7
  107. package/out/interface/api/controller/control/portlet/i-api-portlet.controller.d.ts.map +1 -1
  108. package/out/interface/api/controller/control/report-panel/i-api-report-panel-generator.d.ts +33 -0
  109. package/out/interface/api/controller/control/report-panel/i-api-report-panel-generator.d.ts.map +1 -0
  110. package/out/interface/api/controller/control/report-panel/i-api-report-panel-generator.js +1 -0
  111. package/out/interface/api/controller/control/report-panel/index.d.ts +2 -0
  112. package/out/interface/api/controller/control/report-panel/index.d.ts.map +1 -0
  113. package/out/interface/api/controller/control/report-panel/index.js +1 -0
  114. package/out/interface/api/controller/view/i-api-view.controller.d.ts +3 -3
  115. package/out/interface/api/service/i-api-app-de.service.d.ts +46 -44
  116. package/out/interface/api/service/i-api-app-de.service.d.ts.map +1 -1
  117. package/out/interface/api/service/i-api-auth-result.d.ts +4 -4
  118. package/out/interface/api/service/i-api-auth-result.d.ts.map +1 -1
  119. package/out/interface/api/service/i-api-code-list.service.d.ts +5 -5
  120. package/out/interface/api/service/i-api-de-service-util.d.ts +7 -7
  121. package/out/interface/api/service/index.d.ts +1 -0
  122. package/out/interface/api/service/index.d.ts.map +1 -1
  123. package/out/interface/api/service/vo/i-api-control.vo.d.ts +89 -0
  124. package/out/interface/api/service/vo/i-api-control.vo.d.ts.map +1 -0
  125. package/out/interface/api/service/vo/i-api-control.vo.js +1 -0
  126. package/out/interface/api/service/vo/i-api-ui-map-field.d.ts +54 -0
  127. package/out/interface/api/service/vo/i-api-ui-map-field.d.ts.map +1 -0
  128. package/out/interface/api/service/vo/i-api-ui-map-field.js +1 -0
  129. package/out/interface/api/service/vo/index.d.ts +3 -0
  130. package/out/interface/api/service/vo/index.d.ts.map +1 -0
  131. package/out/interface/api/service/vo/index.js +1 -0
  132. package/out/interface/api/state/common/i-api-button-container.state.d.ts +1 -1
  133. package/out/interface/api/state/common/i-api-button.state.d.ts +1 -1
  134. package/out/interface/api/state/control/i-api-app-menu.state.d.ts +1 -1
  135. package/out/interface/api/state/control/i-api-calendar.state.d.ts +33 -2
  136. package/out/interface/api/state/control/i-api-calendar.state.d.ts.map +1 -1
  137. package/out/interface/api/state/control/i-api-chart.state.d.ts +48 -9
  138. package/out/interface/api/state/control/i-api-chart.state.d.ts.map +1 -1
  139. package/out/interface/api/state/control/i-api-control.state.d.ts +0 -1
  140. package/out/interface/api/state/control/i-api-control.state.d.ts.map +1 -1
  141. package/out/interface/api/state/control/i-api-grid.state.d.ts +4 -3
  142. package/out/interface/api/state/control/i-api-grid.state.d.ts.map +1 -1
  143. package/out/interface/api/state/control/i-api-medit-view-panel.state.d.ts +8 -8
  144. package/out/interface/api/state/control/i-api-medit-view-panel.state.d.ts.map +1 -1
  145. package/out/interface/api/state/control/portlet/i-api-portlet.state.d.ts +1 -1
  146. package/out/interface/api/state/view/i-api-view-session.d.ts +1 -1
  147. package/out/interface/api/util/i-api-ai-chat-util.d.ts +99 -22
  148. package/out/interface/api/util/i-api-ai-chat-util.d.ts.map +1 -1
  149. package/out/interface/api/util/i-api-app-util.d.ts +31 -27
  150. package/out/interface/api/util/i-api-app-util.d.ts.map +1 -1
  151. package/out/interface/api/util/i-api-confirm-util.d.ts +4 -4
  152. package/out/interface/api/util/i-api-encryption-util.d.ts +15 -0
  153. package/out/interface/api/util/i-api-encryption-util.d.ts.map +1 -0
  154. package/out/interface/api/util/i-api-encryption-util.js +1 -0
  155. package/out/interface/api/util/i-api-error-handle-center.d.ts +21 -0
  156. package/out/interface/api/util/i-api-error-handle-center.d.ts.map +1 -0
  157. package/out/interface/api/util/i-api-error-handle-center.js +1 -0
  158. package/out/interface/api/util/i-api-excel-util.d.ts +25 -0
  159. package/out/interface/api/util/i-api-excel-util.d.ts.map +1 -0
  160. package/out/interface/api/util/i-api-excel-util.js +1 -0
  161. package/out/interface/api/util/i-api-file-util.d.ts +17 -17
  162. package/out/interface/api/util/i-api-file-util.d.ts.map +1 -1
  163. package/out/interface/api/util/i-api-fullscreen-util.d.ts +5 -4
  164. package/out/interface/api/util/i-api-fullscreen-util.d.ts.map +1 -1
  165. package/out/interface/api/util/i-api-global-util.d.ts +58 -1
  166. package/out/interface/api/util/i-api-global-util.d.ts.map +1 -1
  167. package/out/interface/api/util/i-api-handlebars-util.d.ts +4 -4
  168. package/out/interface/api/util/i-api-html2canvas-util.d.ts +4 -4
  169. package/out/interface/api/util/i-api-inline-ai-util.d.ts +11 -11
  170. package/out/interface/api/util/i-api-json-util.d.ts +8 -8
  171. package/out/interface/api/util/i-api-message-util.d.ts +2 -3
  172. package/out/interface/api/util/i-api-message-util.d.ts.map +1 -1
  173. package/out/interface/api/util/i-api-modal-util.d.ts +6 -6
  174. package/out/interface/api/util/i-api-notification-util.d.ts +5 -5
  175. package/out/interface/api/util/i-api-open-view-util.d.ts +33 -29
  176. package/out/interface/api/util/i-api-open-view-util.d.ts.map +1 -1
  177. package/out/interface/api/util/i-api-qrcode-util.d.ts +5 -4
  178. package/out/interface/api/util/i-api-qrcode-util.d.ts.map +1 -1
  179. package/out/interface/api/util/i-api-raw-value-util.d.ts +2 -2
  180. package/out/interface/api/util/i-api-short-cut-util.d.ts +24 -8
  181. package/out/interface/api/util/i-api-short-cut-util.d.ts.map +1 -1
  182. package/out/interface/api/util/i-api-text-util.d.ts +7 -0
  183. package/out/interface/api/util/i-api-text-util.d.ts.map +1 -1
  184. package/out/interface/api/util/i-api-ui-action-util.d.ts +36 -0
  185. package/out/interface/api/util/i-api-ui-action-util.d.ts.map +1 -0
  186. package/out/interface/api/util/i-api-ui-action-util.js +1 -0
  187. package/out/interface/api/util/i-api-voice-util.d.ts +3 -4
  188. package/out/interface/api/util/i-api-voice-util.d.ts.map +1 -1
  189. package/out/interface/api/util/i-api-water-mark-util.d.ts +3 -3
  190. package/out/interface/api/util/i-api-wechat-util.d.ts +11 -3
  191. package/out/interface/api/util/i-api-wechat-util.d.ts.map +1 -1
  192. package/out/interface/api/util/index.d.ts +4 -0
  193. package/out/interface/api/util/index.d.ts.map +1 -1
  194. package/out/interface/common/i-error-handler/i-error-handler.d.ts +3 -8
  195. package/out/interface/common/i-error-handler/i-error-handler.d.ts.map +1 -1
  196. package/out/interface/common/i-modal-options/i-modal-options.d.ts +2 -55
  197. package/out/interface/common/i-modal-options/i-modal-options.d.ts.map +1 -1
  198. package/out/interface/common/i-ui-action-result/i-ui-action-result.d.ts +3 -57
  199. package/out/interface/common/i-ui-action-result/i-ui-action-result.d.ts.map +1 -1
  200. package/out/interface/common/i-ui-logic-params/i-ui-logic-params.d.ts +3 -36
  201. package/out/interface/common/i-ui-logic-params/i-ui-logic-params.d.ts.map +1 -1
  202. package/out/interface/util/i-encryption-uitl/i-encryption-uitl.d.ts +3 -10
  203. package/out/interface/util/i-encryption-uitl/i-encryption-uitl.d.ts.map +1 -1
  204. package/out/interface/util/i-excel-util/i-excel-util.d.ts +3 -12
  205. package/out/interface/util/i-excel-util/i-excel-util.d.ts.map +1 -1
  206. package/out/utils/error-handler/error-handler-center.d.ts +3 -2
  207. package/out/utils/error-handler/error-handler-center.d.ts.map +1 -1
  208. package/out/utils/error-handler/error-handler-center.js +1 -0
  209. package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -1
  210. package/out/utils/open-redirect-view/open-redirect-view.js +4 -0
  211. package/package.json +3 -3
@@ -79,11 +79,11 @@ export interface IApiAppUtil {
79
79
  *
80
80
  * @author tony001
81
81
  * @date 2024-05-14 15:05:07
82
- * @param {string} loginName
83
- * @param {string} password
84
- * @param {boolean} [remember]
85
- * @param {IApiData} [headers]
86
- * @param {IApiData} [opts]
82
+ * @param {string} loginName 登录名
83
+ * @param {string} password 密码
84
+ * @param {boolean} [remember] 是否记住登录状态
85
+ * @param {IApiData} [headers] 请求头
86
+ * @param {IApiData} [opts] 登录配置
87
87
  * @return {*} {Promise<boolean>}
88
88
  */
89
89
  login(loginName: string, password: string, remember?: boolean, headers?: IApiData, opts?: IApiData): Promise<boolean>;
@@ -92,7 +92,7 @@ export interface IApiAppUtil {
92
92
  *
93
93
  * @author tony001
94
94
  * @date 2024-05-14 15:05:24
95
- * @param {IApiData} [opts]
95
+ * @param {IApiData} [opts] 登出配置
96
96
  * @return {*} {Promise<boolean>}
97
97
  */
98
98
  logout(opts?: IApiData): Promise<boolean>;
@@ -101,20 +101,24 @@ export interface IApiAppUtil {
101
101
  *
102
102
  * @author tony001
103
103
  * @date 2024-05-14 15:05:33
104
- * @param {string} oldPwd
105
- * @param {string} newPwd
106
- * @param {IApiData} [opts]
104
+ * @param {string} oldPwd 旧密码
105
+ * @param {string} newPwd 新密码
106
+ * @param {{
107
+ * surePwd: string; // 确认密码
108
+ * }} [opts] 变更密码配置
107
109
  * @return {*} {Promise<IApiAuthResult>}
108
110
  */
109
- changePwd(oldPwd: string, newPwd: string, opts?: IApiData): Promise<IApiAuthResult>;
111
+ changePwd(oldPwd: string, newPwd: string, opts?: {
112
+ surePwd: string;
113
+ }): Promise<IApiAuthResult>;
110
114
  /**
111
115
  * 切换组织
112
116
  *
113
117
  * @author tony001
114
118
  * @date 2024-05-14 15:05:51
115
- * @param {string} oldOrgId
116
- * @param {string} newOrgId
117
- * @param {IApiData} [opts]
119
+ * @param {string} oldOrgId 旧组织id
120
+ * @param {string} newOrgId 新组织id
121
+ * @param {IApiData} [opts] 切换组织配置
118
122
  * @return {*} {Promise<boolean>}
119
123
  */
120
124
  switchOrg(oldOrgId: string, newOrgId: string, opts?: IApiData): Promise<boolean>;
@@ -123,9 +127,9 @@ export interface IApiAppUtil {
123
127
  *
124
128
  * @author tony001
125
129
  * @date 2024-05-14 16:05:06
126
- * @param {string} oldTheme
127
- * @param {string} newTheme
128
- * @param {IApiData} [opts]
130
+ * @param {string} oldTheme 旧主题
131
+ * @param {string} newTheme 新主题
132
+ * @param {IApiData} [opts] 切换主题配置
129
133
  * @return {*} {Promise<boolean>}
130
134
  */
131
135
  switchTheme(oldTheme: string, newTheme: string, opts?: IApiData): Promise<boolean>;
@@ -134,9 +138,9 @@ export interface IApiAppUtil {
134
138
  *
135
139
  * @author tony001
136
140
  * @date 2024-05-14 16:05:20
137
- * @param {string} oldLanguage
138
- * @param {string} newLanguage
139
- * @param {IApiData} [opts]
141
+ * @param {string} oldLanguage 旧语言
142
+ * @param {string} newLanguage 新语言
143
+ * @param {IApiData} [opts] 切换语言配置
140
144
  * @return {*} {Promise<boolean>}
141
145
  */
142
146
  switchLanguage(oldLanguage: string, newLanguage: string, opts?: IApiData): Promise<boolean>;
@@ -150,7 +154,7 @@ export interface IApiAppUtil {
150
154
  /**
151
155
  * 打开AI聊天
152
156
  *
153
- * @param {IApiAiChatParam} params
157
+ * @param {IApiAiChatParam} params 聊天配置
154
158
  * @return {*} {Promise<IApiChatMessage[]>}
155
159
  * @memberof IApiAppUtil
156
160
  */
@@ -163,7 +167,7 @@ export interface IApiAppUtil {
163
167
  viewCacheCenter: Map<string, IApiViewController>;
164
168
  /**
165
169
  * @description 当前路由转换成路由路径对象
166
- * @param {boolean} [isRouteModal]
170
+ * @param {boolean} [isRouteModal] 是否是路由模态
167
171
  * @returns {*} {{
168
172
  * appContext: IApiParams;
169
173
  * pathNodes: {
@@ -187,14 +191,14 @@ export interface IApiAppUtil {
187
191
  /**
188
192
  * @description 路由路径对象转化为路由路径
189
193
  * @param {{
190
- * appContext?: IApiParams;
194
+ * appContext?: IApiParams; // 应用上下文
191
195
  * pathNodes: {
192
- * viewName: string;
193
- * context?: IApiParams;
194
- * params?: IApiParams;
195
- * srfnav?: string;
196
+ * viewName: string; // 视图名称
197
+ * context?: IApiParams; // 上下文参数
198
+ * params?: IApiParams; // 视图参数
199
+ * srfnav?: string; // 导航参数
196
200
  * }[];
197
- * }} routePath
201
+ * }} routePath 路由路径对象
198
202
  * @returns {*} {string}
199
203
  * @memberof IApiAppUtil
200
204
  */
@@ -1 +1 @@
1
- {"version":3,"file":"i-api-app-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-app-util.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,QAAQ,EACR,UAAU,EACV,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AAE/E;;;;;GAKG;AACH,MA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;OASG;IACH,cAAc,CACZ,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,QAAQ,GACd,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpB;;;;;OAKG;IACH,aAAa,IAAI,UAAU,GAAG,SAAS,CAAC;IAExC;;;;;;OAMG;IACH,UAAU,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;IAEhE;;;;OAIG;IACH,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAEjD;;;;;;;;;;;;;OAaG;IACH,iBAAiB,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG;QACzC,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,SAAS,EAAE;YACT,QAAQ,EAAE,MAAM,CAAC;YACjB,OAAO,CAAC,EAAE,UAAU,CAAC;YACrB,MAAM,CAAC,EAAE,UAAU,CAAC;YACpB,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,EAAE,CAAC;KACL,CAAC;IAEF;;;;;;;;;;;;;OAaG;IACH,kBAAkB,CAAC,SAAS,EAAE;QAC5B,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,SAAS,EAAE;YACT,QAAQ,EAAE,MAAM,CAAC;YACjB,OAAO,CAAC,EAAE,UAAU,CAAC;YACrB,MAAM,CAAC,EAAE,UAAU,CAAC;YACpB,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,EAAE,CAAC;KACL,GAAG,MAAM,CAAC;CACZ"}
1
+ {"version":3,"file":"i-api-app-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-app-util.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,QAAQ,EACR,UAAU,EACV,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AAE/E;;;;;GAKG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CAAC,OAAO,CAAC,CAAC;IAEpB;;;;;;;;;OASG;IACH,cAAc,CACZ,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,QAAQ,GACd,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpB;;;;;OAKG;IACH,aAAa,IAAI,UAAU,GAAG,SAAS,CAAC;IAExC;;;;;;OAMG;IACH,UAAU,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;IAEhE;;;;OAIG;IACH,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAEjD;;;;;;;;;;;;;OAaG;IACH,iBAAiB,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG;QACzC,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,SAAS,EAAE;YACT,QAAQ,EAAE,MAAM,CAAC;YACjB,OAAO,CAAC,EAAE,UAAU,CAAC;YACrB,MAAM,CAAC,EAAE,UAAU,CAAC;YACpB,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,EAAE,CAAC;KACL,CAAC;IAEF;;;;;;;;;;;;;OAaG;IACH,kBAAkB,CAAC,SAAS,EAAE;QAC5B,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,SAAS,EAAE;YACT,QAAQ,EAAE,MAAM,CAAC;YACjB,OAAO,CAAC,EAAE,UAAU,CAAC;YACrB,MAAM,CAAC,EAAE,UAAU,CAAC;YACpB,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,EAAE,CAAC;KACL,GAAG,MAAM,CAAC;CACZ"}
@@ -32,28 +32,28 @@ export interface IApiConfirmParams {
32
32
  export interface IApiConfirmUtil {
33
33
  /**
34
34
  * @description 弹出普通信息
35
- * @param {IApiConfirmParams} params
35
+ * @param {IApiConfirmParams} params 确认框参数
36
36
  * @returns {*} {Promise<boolean>}
37
37
  * @memberof IApiConfirmUtil
38
38
  */
39
39
  info(params: IApiConfirmParams): Promise<boolean>;
40
40
  /**
41
41
  * @description 弹出成功信息
42
- * @param {IApiConfirmParams} params
42
+ * @param {IApiConfirmParams} params 确认框参数
43
43
  * @returns {*} {Promise<boolean>}
44
44
  * @memberof IApiConfirmUtil
45
45
  */
46
46
  success(params: IApiConfirmParams): Promise<boolean>;
47
47
  /**
48
48
  * @description 弹出警告信息
49
- * @param {IApiConfirmParams} params
49
+ * @param {IApiConfirmParams} params 确认框参数
50
50
  * @returns {*} {Promise<boolean>}
51
51
  * @memberof IApiConfirmUtil
52
52
  */
53
53
  warning(params: IApiConfirmParams): Promise<boolean>;
54
54
  /**
55
55
  * @description 弹出错误信息
56
- * @param {IApiConfirmParams} params
56
+ * @param {IApiConfirmParams} params 确认框参数
57
57
  * @returns {*} {Promise<boolean>}
58
58
  * @memberof IApiConfirmUtil
59
59
  */
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @description 加密工具类
3
+ * @export
4
+ * @interface IApiEncryptionUtil
5
+ */
6
+ export interface IApiEncryptionUtil {
7
+ /**
8
+ * @description RSA加密
9
+ * @param {string} plainText 待加密文本
10
+ * @returns {*} {Promise<string>}
11
+ * @memberof IApiEncryptionUtil
12
+ */
13
+ encryptByRSA(plainText: string): Promise<string>;
14
+ }
15
+ //# sourceMappingURL=i-api-encryption-util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-api-encryption-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-encryption-util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAClD"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ import { IApiErrorHandler } from '../common';
2
+ /**
3
+ * @description 错误处理工具类
4
+ * @export
5
+ * @interface IApiErrorHandlerCenter
6
+ */
7
+ export interface IApiErrorHandlerCenter {
8
+ /**
9
+ * @description 注册处理器(后注册的优先级更高)
10
+ * @param {IApiErrorHandler} handler 错误处理器
11
+ * @memberof IApiErrorHandlerCenter
12
+ */
13
+ register(handler: IApiErrorHandler): void;
14
+ /**
15
+ * @description 按顺序检测处理器,最先满足条件的处理该异常
16
+ * @param {unknown} error
17
+ * @memberof IApiErrorHandlerCenter
18
+ */
19
+ handle(error: unknown): void;
20
+ }
21
+ //# sourceMappingURL=i-api-error-handle-center.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-api-error-handle-center.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-error-handle-center.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAE1C;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CAC9B"}
@@ -0,0 +1,25 @@
1
+ import { IApiData } from '@ibiz-template/core';
2
+ /**
3
+ * @description Excel工具类
4
+ * @export
5
+ * @interface IApiExcelUtil
6
+ */
7
+ export interface IApiExcelUtil {
8
+ /**
9
+ * @description 导出成Excel文件
10
+ * @param {{
11
+ * header: string[]; // 表头内容
12
+ * data: IApiData[]; // 数据内容
13
+ * filename: string; // 文件名称
14
+ * autoWidth: boolean; // 单元格是否自适应
15
+ * }} args 导出配置
16
+ * @memberof IApiExcelUtil
17
+ */
18
+ exportJsonToExcel(args: {
19
+ header: string[];
20
+ data: IApiData[];
21
+ filename: string;
22
+ autoWidth: boolean;
23
+ }): void;
24
+ }
25
+ //# sourceMappingURL=i-api-excel-util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-api-excel-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-excel-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;;;OASG;IACH,iBAAiB,CAAC,IAAI,EAAE;QACtB,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,IAAI,EAAE,QAAQ,EAAE,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,OAAO,CAAC;KACpB,GAAG,IAAI,CAAC;CACV"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- import { IApiContext, IApiData, IApiParams } from '@ibiz-template/core';
1
+ import { IApiContext, IApiData, IApiParams, IHttpResponse } from '@ibiz-template/core';
2
2
  import { IApiDownloadTicket } from '../common';
3
3
  /**
4
4
  * @description 扩展参数接口,用于计算附件的上传和下载路径
@@ -39,7 +39,7 @@ export interface IApiFileUpDownExtraParams {
39
39
  export interface IApiFileUtil {
40
40
  /**
41
41
  * @description 设置文件上传请求头数据
42
- * @param {Record<string, string>} args
42
+ * @param {Record<string, string>} args 请求头数据
43
43
  * @memberof IApiFileUtil
44
44
  */
45
45
  setUploadHeaders(args: Record<string, string>): void;
@@ -71,11 +71,11 @@ export interface IApiFileUtil {
71
71
  * @returns {*} {string}
72
72
  * @memberof IApiFileUtil
73
73
  */
74
- getFileName(response: IApiData): string;
74
+ getFileName(response: IHttpResponse): string;
75
75
  /**
76
76
  * @description 文件下载
77
- * @param {string} url
78
- * @param {string} [name]
77
+ * @param {string} url 下载地址
78
+ * @param {string} [name] 文件名
79
79
  * @param {({
80
80
  * context: IApiContext;
81
81
  * params: IApiParams;
@@ -104,10 +104,10 @@ export interface IApiFileUtil {
104
104
  }, enableDownloadTicket?: boolean, enableNoAccess?: boolean): Promise<void>;
105
105
  /**
106
106
  * @description 获取下载凭证
107
- * @param {IApiContext} context
108
- * @param {IApiParams} params
109
- * @param {IApiData} data
110
- * @param {({ fileId: string } & IApiData)}
107
+ * @param {IApiContext} context 上下文参数
108
+ * @param {IApiParams} params 视图参数
109
+ * @param {IApiData} data 业务数据
110
+ * @param {({ fileId: string } & IApiData)} file 文件信息
111
111
  * @param {{ appEntityTag?: string; dataFieldTag?: string }} [downloadTicketParams] 存在appEntityTag,则调用appEntityTag映射的实体服务创建下载凭证能力,否则调用当前界面域主实体的实体服务;存在dataFieldTag,则按照业务数据(data)、上下文(context)、视图参数(params)顺序找对应的属性值作为创建下载凭证数据主键,没有则使用上下文中找对应的数据主键
112
112
  * @returns {*} {(Promise<IApiDownloadTicket | undefined>)}
113
113
  * @memberof IApiFileUtil
@@ -120,25 +120,25 @@ export interface IApiFileUtil {
120
120
  }): Promise<IApiDownloadTicket | undefined>;
121
121
  /**
122
122
  * @description 设置下载票据
123
- * @param {string} fileId
124
- * @param {IApiData} downloadTicket
123
+ * @param {string} fileId 文件标识
124
+ * @param {IApiData} downloadTicket 下载凭证数据
125
125
  * @memberof IApiFileUtil
126
126
  */
127
127
  setDownloadTicket(fileId: string, downloadTicket: IApiData): void;
128
128
  /**
129
129
  * @description 文件上传
130
- * @param {string} uploadUrl
131
- * @param {Blob} file
132
- * @param {IApiData} headers
130
+ * @param {string} uploadUrl 上传地址
131
+ * @param {Blob} file 文件
132
+ * @param {IApiData} headers 请求头
133
133
  * @returns {*} {Promise<IApiData>}
134
134
  * @memberof IApiFileUtil
135
135
  */
136
136
  fileUpload(uploadUrl: string, file: Blob, headers: IApiData): Promise<IApiData>;
137
137
  /**
138
138
  * @description 选择并上传文件
139
- * @param {IApiContext} context
140
- * @param {IApiParams} params
141
- * @param {IApiData} data
139
+ * @param {IApiContext} context 上下文参数
140
+ * @param {IApiParams} params 视图参数
141
+ * @param {IApiData} data 业务数据
142
142
  * @param {{
143
143
  * accept: string;
144
144
  * multiple?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"i-api-file-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-file-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,Q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;IACH,WAAW,CACT,GAAG,EAAE,MAAM,EACX,YAAY,CAAC,EAAE,0BAA0B,EACzC,cAAc,CAAC,EAAE;QACf,OAAO,EAAE,WAAW,CAAC;QACrB,MAAM,EAAE,UAAU,CAAC;QACnB,IAAI,EAAE,QAAQ,CAAC;QACf,IAAI,EAAE;YAAE,MAAM,EAAE,MAAM,CAAA;SAAE,GAAG,QAAQ,CAAC;QACpC,WAAW,CAAC,EAAE,yBAAyB,CAAC;QACxC,oBAAoB,CAAC,EAAE;YAAE,YAAY,CAAC,EAAE,MAAM,CAAC;YAAC,YAAY,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACzE,EACD,oBAAoB,CAAC,EAAE,OAAO,EAC9B,cAAc,CAAC,EAAE,OAAO,GACvB,OAAO,CAAC,QAAQ,CAAC,CAAC;IAErB;;;;;;;OAOG;IACH,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtE;;;;;OAKG;IACH,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC"}
1
+ {"version":3,"file":"i-api-file-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-file-util.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,QAAQ,EACR,UAAU,EACV,aAAa,EACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WA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,MAAM,CAAA;SAAE,CAAC;KACzE,EACD,oBAAoB,CAAC,EAAE,OAAO,EAC9B,cAAc,CAAC,EAAE,OAAO,GACvB,OAAO,CAAC,QAAQ,CAAC,CAAC;IAErB;;;;;;;OAOG;IACH,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtE;;;;;OAKG;IACH,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC"}
@@ -1,4 +1,3 @@
1
- import { IApiData } from '@ibiz-template/core';
2
1
  /**
3
2
  * @description 全屏工具类
4
3
  * @export
@@ -7,11 +6,13 @@ import { IApiData } from '@ibiz-template/core';
7
6
  export interface IApiFullscreenUtil {
8
7
  /**
9
8
  * @description 指定元素全屏
10
- * @param {HTMLDivElement} div
11
- * @param {IApiData} [data]
9
+ * @param {HTMLDivElement} div 元素
10
+ * @param {{ class?: string }} [data] 全屏配置,class: 全屏CSS类名
12
11
  * @memberof IApiFullscreenUtil
13
12
  */
14
- openElementFullscreen(div: HTMLDivElement, data?: IApiData): void;
13
+ openElementFullscreen(div: HTMLDivElement, data?: {
14
+ class?: string;
15
+ }): void;
15
16
  /**
16
17
  * @description 退出全屏
17
18
  * @memberof IApiFullscreenUtil
@@ -1 +1 @@
1
- {"version":3,"file":"i-api-fullscreen-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-fullscreen-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,qBAAqB,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAElE;;;OAGG;IACH,sBAAsB,IAAI,IAAI,CAAC;CAChC"}
1
+ {"version":3,"file":"i-api-fullscreen-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-fullscreen-util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,qBAAqB,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAE5E;;;OAGG;IACH,sBAAsB,IAAI,IAAI,CAAC;CAChC"}
@@ -1,3 +1,4 @@
1
+ import { IApiParams } from '@ibiz-template/core';
1
2
  import { Base64 } from 'js-base64';
2
3
  import { IApiHandlebarsUtil } from './i-api-handlebars-util';
3
4
  import { IApiTextUtil } from './i-api-text-util';
@@ -10,6 +11,10 @@ import { IApiVoiceUtil } from './i-api-voice-util';
10
11
  import { IApiWaterMarkUtil } from './i-api-water-mark-util';
11
12
  import { IApiWeChatUtil } from './i-api-wechat-util';
12
13
  import { IApiJsonUtil } from './i-api-json-util';
14
+ import { IApiUIActionUtil } from './i-api-ui-action-util';
15
+ import { IApiErrorHandlerCenter } from './i-api-error-handle-center';
16
+ import { IApiEncryptionUtil } from './i-api-encryption-util';
17
+ import { IApiExcelUtil } from './i-api-excel-util';
13
18
  /**
14
19
  * @description 全局工具接口
15
20
  * @export
@@ -46,6 +51,18 @@ export interface IApiGlobalUtil {
46
51
  * @memberof IApiGlobalUtil
47
52
  */
48
53
  readonly rawValue: IApiRawValueUtil;
54
+ /**
55
+ * @description 界面行为工具
56
+ * @type {IApiUIActionUtil}
57
+ * @memberof IApiGlobalUtil
58
+ */
59
+ readonly action: IApiUIActionUtil;
60
+ /**
61
+ * @description 错误处理工具
62
+ * @type {IApiErrorHandlerCenter}
63
+ * @memberof IApiGlobalUtil
64
+ */
65
+ readonly error: IApiErrorHandlerCenter;
49
66
  /**
50
67
  * @description 最小化工具类
51
68
  * @type {IApiShortCutUtil}
@@ -70,6 +87,12 @@ export interface IApiGlobalUtil {
70
87
  * @memberof IApiGlobalUtil
71
88
  */
72
89
  readonly voice: IApiVoiceUtil;
90
+ /**
91
+ * @description 加密工具类
92
+ * @type {IApiEncryptionUtil}
93
+ * @memberof IApiGlobalUtil
94
+ */
95
+ readonly encryption: IApiEncryptionUtil;
73
96
  /**
74
97
  * @description 水印工具类
75
98
  * @type {IApiWaterMarkUtil}
@@ -88,11 +111,45 @@ export interface IApiGlobalUtil {
88
111
  * @memberof IApiGlobalUtil
89
112
  */
90
113
  readonly jsonUtil: IApiJsonUtil;
114
+ /**
115
+ * @description 获取Excel工具类
116
+ * @memberof IApiGlobalUtil
117
+ */
118
+ getExcelUtil?: () => Promise<IApiExcelUtil>;
119
+ /**
120
+ * @description 显示应用级别的加载提示
121
+ * @memberof IApiGlobalUtil
122
+ */
123
+ showAppLoading(): void;
124
+ /**
125
+ * @description 隐藏应用级别的加载提示
126
+ * @memberof IApiGlobalUtil
127
+ */
128
+ hiddenAppLoading(): void;
91
129
  /**
92
130
  * @description 设置浏览器标题
93
- * @param {string} title
131
+ * @param {string} title 浏览器标题
94
132
  * @memberof IApiGlobalUtil
95
133
  */
96
134
  setBrowserTitle(title: string): void;
135
+ /**
136
+ * @description 获取应用全局变量
137
+ * @returns {*} {IApiParams}
138
+ * @memberof IApiGlobalUtil
139
+ */
140
+ getGlobalParam(): IApiParams;
141
+ /**
142
+ * @description 获取视图路由参数变量
143
+ * @returns {*} {IApiParams[]}
144
+ * @memberof IApiGlobalUtil
145
+ */
146
+ getRouterParams(): IApiParams[];
147
+ /**
148
+ * @description 注册全局功能类扩展,用于替换预置能力
149
+ * @param {keyof IApiGlobalUtil} key 全局功能名称
150
+ * @param {*} value 全局功能实现
151
+ * @memberof IApiGlobalUtil
152
+ */
153
+ registerExtension(key: keyof IApiGlobalUtil, value: any): void;
97
154
  }
98
155
  //# sourceMappingURL=i-api-global-util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"i-api-global-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-global-util.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7B;;;;OAIG;IACH,eAAe,IAAI,UAAU,EAAE,CAAC;IAEhC;;;;;OAKG;IACH,iBAAiB,CAAC,GAAG,EAAE,MAAM,cAAc,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CAAC;CAChE"}
@@ -7,16 +7,16 @@ import { IApiData } from '@ibiz-template/core';
7
7
  export interface IApiHandlebarsUtil {
8
8
  /**
9
9
  * @description 异步绘制模板,返回渲染后的字符串
10
- * @param {string} template
11
- * @param {IApiData} data
10
+ * @param {string} template 模板字符串
11
+ * @param {IApiData} data 业务数据
12
12
  * @returns {*} {Promise<string>}
13
13
  * @memberof IApiHandlebarsUtil
14
14
  */
15
15
  render(template: string, data: IApiData): Promise<string>;
16
16
  /**
17
17
  * @description 同步绘制模板,返回渲染后的字符串
18
- * @param {string} template
19
- * @param {IApiData} data
18
+ * @param {string} template 模板字符串
19
+ * @param {IApiData} data 业务数据
20
20
  * @returns {*} {string}
21
21
  * @memberof IApiHandlebarsUtil
22
22
  */
@@ -138,16 +138,16 @@ export interface IApiHtml2canvasOption {
138
138
  export interface IApiHtml2canvasUtil {
139
139
  /**
140
140
  * @description 导出canvas
141
- * @param {HTMLElement} dom
142
- * @param {IApiHtml2canvasOption} [option]
141
+ * @param {HTMLElement} dom 元素
142
+ * @param {IApiHtml2canvasOption} [option] html2canvas配置
143
143
  * @returns {*} {Promise<void>}
144
144
  * @memberof IApiHtml2canvasUtil
145
145
  */
146
146
  exportCanvas(dom: HTMLElement, option?: IApiHtml2canvasOption): Promise<void>;
147
147
  /**
148
148
  * @description 获取节点转化的canvas
149
- * @param {HTMLElement} dom
150
- * @param {IApiHtml2canvasOption} [option]
149
+ * @param {HTMLElement} dom 元素
150
+ * @param {IApiHtml2canvasOption} [option] html2canvas配置
151
151
  * @returns {*} {Promise<HTMLCanvasElement>}
152
152
  * @memberof IApiHtml2canvasUtil
153
153
  */
@@ -43,7 +43,7 @@ export interface IApiInLineAiChatOptions {
43
43
  export interface IApiInLineAIUtil {
44
44
  /**
45
45
  * @description 计算上下文菜单
46
- * @param {IAppDEACMode | undefined} deACMode 界面行为组成员
46
+ * @param {IAppDEACMode | undefined} deACMode 自填模式
47
47
  * @param {(tag: string) => void} clickCallBack 项点击回调
48
48
  * @returns {IApiData[]}
49
49
  * @memberof IApiInLineAIUtil
@@ -51,21 +51,21 @@ export interface IApiInLineAIUtil {
51
51
  calcContextMenus(deACMode: IAppDEACMode | undefined, clickCallBack: (tag: string) => void): IApiData[];
52
52
  /**
53
53
  * @description 显示上下文菜单
54
- * @param {number} x
55
- * @param {number} y
56
- * @param {IApiData[]} menus
57
- * @param {IData} [options]
54
+ * @param {number} x 距离左侧距离
55
+ * @param {number} y 距离上方距离
56
+ * @param {IApiData[]} menus 菜单集合
57
+ * @param {IData} [options] 菜单配置
58
58
  * @memberof IApiInLineAIUtil
59
59
  */
60
60
  showContextMenus(x: number, y: number, menus: IApiData[], options?: IApiData): void;
61
61
  /**
62
62
  * @description 显示AI聊天
63
- * @param {IApiContext} context
64
- * @param {IApiParams} params
65
- * @param {IApiData} data
66
- * @param {string} selectText
67
- * @param {IAppDEACMode} deACMode
68
- * @param {IApiInLineAiChatOptions} options
63
+ * @param {IApiContext} context 上下文参数
64
+ * @param {IApiParams} params 视图参数
65
+ * @param {IApiData} data 业务数据
66
+ * @param {string} selectText 选中文本
67
+ * @param {IAppDEACMode} deACMode 自填模式
68
+ * @param {IApiInLineAiChatOptions} options 聊天配置
69
69
  * @memberof IApiInLineAIUtil
70
70
  */
71
71
  showAIChat(context: IApiContext, params: IApiParams, data: IApiData, selectText: string, deACMode: IAppDEACMode, options: IApiInLineAiChatOptions): void;
@@ -57,38 +57,38 @@ export interface IApiJsonRepairResult {
57
57
  export interface IApiJsonUtil {
58
58
  /**
59
59
  * @description json修复,用于提取大语言模型中的json数据
60
- * @param {string} value
61
- * @param {IApiJsonRepairOption} [options]
60
+ * @param {string} value json字符串
61
+ * @param {IApiJsonRepairOption} [options] 修复配置
62
62
  * @returns {*} {(IApiData | IApiData[] | string)}
63
63
  * @memberof IApiJsonUtil
64
64
  */
65
65
  repairJson(value: string, options?: IApiJsonRepairOption): IApiData | IApiData[] | string;
66
66
  /**
67
67
  * @description 加载字符串中的JSON数据,直接返回json数据对象
68
- * @param {string} value
69
- * @param {IApiJsonRepairOption} [options]
68
+ * @param {string} value json字符串
69
+ * @param {IApiJsonRepairOption} [options] 修复配置
70
70
  * @returns {*} {IApiData | IApiData[]}
71
71
  * @memberof IApiJsonUtil
72
72
  */
73
73
  loads(value: string, options?: IApiJsonRepairOption): IApiData | IApiData[];
74
74
  /**
75
75
  * @description 判断是否为json对象
76
- * @param {*} value
76
+ * @param {*} value 待判断值
77
77
  * @returns {boolean}
78
78
  * @memberof IApiJsonUtil
79
79
  */
80
80
  isJsonObject(value: unknown): boolean;
81
81
  /**
82
82
  * @description 检测是否为json数组
83
- * @param {*} value
83
+ * @param {*} value 待检测值
84
84
  * @returns {boolean}
85
85
  * @memberof IApiJsonUtil
86
86
  */
87
87
  isJsonArray(value: unknown): boolean;
88
88
  /**
89
89
  * @description 解析字符串中的json数据,用于获取大语言模型中的json数据
90
- * @param {string} value
91
- * @param {IApiJsonRepairOption} [options]
90
+ * @param {string} value json字符串
91
+ * @param {IApiJsonRepairOption} [options] 修复配置
92
92
  * @returns {*} {IApiJsonRepairResult}
93
93
  * @memberof IApiJsonUtil
94
94
  */
@@ -1,4 +1,3 @@
1
- import { IApiData } from '@ibiz-template/core';
2
1
  /**
3
2
  * @description 消息提示参数接口
4
3
  * @export
@@ -76,9 +75,9 @@ export interface IApiMessageUtil {
76
75
  error(msg: string, duration?: number, closable?: boolean): void;
77
76
  /**
78
77
  * @description 通用消息方法
79
- * @param {IApiData} params 配置详细的参数,详情参见:https://element-plus.org/zh-CN/component/message.html#message-%E9%85%8D%E7%BD%AE%E9%A1%B9
78
+ * @param {IApiMessageParams} params 配置详细的参数,详情参见:https://element-plus.org/zh-CN/component/message.html#message-%E9%85%8D%E7%BD%AE%E9%A1%B9
80
79
  * @memberof IApiMessageUtil
81
80
  */
82
- notice(params: IApiData): void;
81
+ notice(params: IApiMessageParams): void;
83
82
  }
84
83
  //# sourceMappingURL=i-api-message-util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"i-api-message-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-message-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAChD;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE/D;;;;;;OAMG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAElE;;;;;;OAMG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAClE;;;;;;OAMG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAChE;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE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