@ibiz-template/runtime 0.7.11 → 0.7.12

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 (300) hide show
  1. package/dist/index.esm.js +1467 -415
  2. package/dist/index.system.min.js +1 -1
  3. package/out/app-hub.d.ts.map +1 -1
  4. package/out/app-hub.js +4 -4
  5. package/out/command/app/app-func/app-func.js +3 -3
  6. package/out/command/app/open-app-view/open-app-view.d.ts.map +1 -1
  7. package/out/command/app/open-app-view/open-app-view.js +6 -4
  8. package/out/constant/sys-uiaction-tag.d.ts +5 -1
  9. package/out/constant/sys-uiaction-tag.d.ts.map +1 -1
  10. package/out/constant/sys-uiaction-tag.js +4 -0
  11. package/out/controller/common/editor/code-list-editor.controller.js +1 -1
  12. package/out/controller/common/view/view.controller.d.ts +7 -0
  13. package/out/controller/common/view/view.controller.d.ts.map +1 -1
  14. package/out/controller/common/view/view.controller.js +18 -1
  15. package/out/controller/control/app-menu/app-menu.controller.js +1 -1
  16. package/out/controller/control/app-menu-icon-view/app-menu-icon-view.controller.js +1 -1
  17. package/out/controller/control/calendar/calendar.service.js +2 -2
  18. package/out/controller/control/chart/chart.controller.js +2 -2
  19. package/out/controller/control/chart/generator/bar-series-generator.js +2 -2
  20. package/out/controller/control/chart/generator/chart-options-generator.js +2 -2
  21. package/out/controller/control/chart/generator/line-series-generator.js +2 -2
  22. package/out/controller/control/chart/generator/scatter-series-generator.js +2 -2
  23. package/out/controller/control/dashboard/custom-dashboard.controller.d.ts +2 -2
  24. package/out/controller/control/dashboard/custom-dashboard.controller.d.ts.map +1 -1
  25. package/out/controller/control/data-view/data-view.controller.js +2 -2
  26. package/out/controller/control/exp-bar/tree-exp-bar.controller.js +1 -1
  27. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-md.controller.js +1 -1
  28. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.js +1 -1
  29. package/out/controller/control/gantt/gantt.controller.js +2 -2
  30. package/out/controller/control/gantt/gantt.service.js +1 -1
  31. package/out/controller/control/grid/grid/grid.controller.js +4 -4
  32. package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.js +1 -1
  33. package/out/controller/control/kanban/kanban.controller.js +2 -2
  34. package/out/controller/control/md-ctrl/md-ctrl.controller.js +2 -2
  35. package/out/controller/control/report-panel/generator/generator-factory.js +1 -1
  36. package/out/controller/control/search-bar/search-bar-filter-items.controller.js +1 -1
  37. package/out/controller/control/toolbar/toolbar.controllerr.js +1 -1
  38. package/out/controller/control/tree/tree.controller.js +2 -2
  39. package/out/controller/control/tree/tree.service.js +1 -1
  40. package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.js +2 -2
  41. package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.js +2 -2
  42. package/out/controller/utils/data-file-util/data-file-util.js +1 -1
  43. package/out/controller/utils/value-default/value-default.js +2 -2
  44. package/out/controller/utils/view-msg/view-msg-controller.d.ts.map +1 -1
  45. package/out/controller/utils/view-msg/view-msg-controller.js +2 -2
  46. package/out/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.d.ts.map +1 -1
  47. package/out/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.js +6 -3
  48. package/out/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.d.ts.map +1 -1
  49. package/out/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.js +10 -4
  50. package/out/de-logic/de-logic-node/append-param-node/append-param-node.d.ts.map +1 -1
  51. package/out/de-logic/de-logic-node/append-param-node/append-param-node.js +4 -2
  52. package/out/de-logic/de-logic-node/bind-param-node/bind-param-node.d.ts.map +1 -1
  53. package/out/de-logic/de-logic-node/bind-param-node/bind-param-node.js +5 -2
  54. package/out/de-logic/de-logic-node/copy-param-node/copy-param-node.d.ts.map +1 -1
  55. package/out/de-logic/de-logic-node/copy-param-node/copy-param-node.js +5 -2
  56. package/out/de-logic/de-logic-node/data-set-node/data-set-node.d.ts.map +1 -1
  57. package/out/de-logic/de-logic-node/data-set-node/data-set-node.js +6 -1
  58. package/out/de-logic/de-logic-node/de-action-node/de-action-node.d.ts.map +1 -1
  59. package/out/de-logic/de-logic-node/de-action-node/de-action-node.js +8 -3
  60. package/out/de-logic/de-logic-node/end-node/end-node.d.ts.map +1 -1
  61. package/out/de-logic/de-logic-node/end-node/end-node.js +7 -2
  62. package/out/de-logic/de-logic-node/prepare-param-node/prepare-param-node.d.ts.map +1 -1
  63. package/out/de-logic/de-logic-node/prepare-param-node/prepare-param-node.js +8 -2
  64. package/out/de-logic/de-logic-node/renew-param-node/renew-param-node.d.ts.map +1 -1
  65. package/out/de-logic/de-logic-node/renew-param-node/renew-param-node.js +5 -2
  66. package/out/de-logic/de-logic-node/reset-param-node/reset-param-node.d.ts.map +1 -1
  67. package/out/de-logic/de-logic-node/reset-param-node/reset-param-node.js +5 -2
  68. package/out/de-logic/de-logic-node/sort-param-node/sort-param-node.d.ts.map +1 -1
  69. package/out/de-logic/de-logic-node/sort-param-node/sort-param-node.js +7 -2
  70. package/out/de-logic/de-logic-node/start-node/start-node.d.ts.map +1 -1
  71. package/out/de-logic/de-logic-node/start-node/start-node.js +3 -1
  72. package/out/de-logic/de-logic-node/throw-exception-node/throw-exception-node.d.ts.map +1 -1
  73. package/out/de-logic/de-logic-node/throw-exception-node/throw-exception-node.js +5 -1
  74. package/out/de-logic/de-logic-param/de-logic-param.d.ts.map +1 -1
  75. package/out/de-logic/de-logic-param/de-logic-param.js +10 -10
  76. package/out/de-logic/de-logic.d.ts.map +1 -1
  77. package/out/de-logic/de-logic.js +6 -4
  78. package/out/de-logic/index.d.ts.map +1 -1
  79. package/out/de-logic/index.js +12 -3
  80. package/out/de-logic/utils/handle-src-val.d.ts.map +1 -1
  81. package/out/de-logic/utils/handle-src-val.js +7 -3
  82. package/out/engine/engine-factory.d.ts.map +1 -1
  83. package/out/engine/engine-factory.js +1 -1
  84. package/out/engine/md-view.engine.d.ts.map +1 -1
  85. package/out/engine/md-view.engine.js +3 -3
  86. package/out/engine/view-base.engine.d.ts +1 -0
  87. package/out/engine/view-base.engine.d.ts.map +1 -1
  88. package/out/engine/view-base.engine.js +42 -5
  89. package/out/global/global-util/global-util.d.ts +9 -1
  90. package/out/global/global-util/global-util.d.ts.map +1 -1
  91. package/out/global/global-util/global-util.js +11 -3
  92. package/out/hub/config/app-view-config-service.js +2 -2
  93. package/out/interface/controller/state/view/i-view.state.d.ts +7 -0
  94. package/out/interface/controller/state/view/i-view.state.d.ts.map +1 -1
  95. package/out/interface/service/service/i-auth.service.d.ts +1 -1
  96. package/out/interface/service/service/i-auth.service.d.ts.map +1 -1
  97. package/out/interface/util/i-short-cut/i-short-cut.d.ts +58 -0
  98. package/out/interface/util/i-short-cut/i-short-cut.d.ts.map +1 -0
  99. package/out/interface/util/i-short-cut/i-short-cut.js +1 -0
  100. package/out/interface/util/index.d.ts +1 -0
  101. package/out/interface/util/index.d.ts.map +1 -1
  102. package/out/logic-scheduler/executor/app-de-ui-logic-executor.d.ts.map +1 -1
  103. package/out/logic-scheduler/executor/app-de-ui-logic-executor.js +1 -1
  104. package/out/logic-scheduler/executor/app-ui-action-executor.js +1 -1
  105. package/out/logic-scheduler/executor/app-ui-logic-executor.d.ts.map +1 -1
  106. package/out/logic-scheduler/executor/app-ui-logic-executor.js +24 -16
  107. package/out/logic-scheduler/executor/logic-executor-factory.d.ts.map +1 -1
  108. package/out/logic-scheduler/executor/logic-executor-factory.js +3 -1
  109. package/out/logic-scheduler/executor/logic-executor.d.ts.map +1 -1
  110. package/out/logic-scheduler/executor/logic-executor.js +1 -1
  111. package/out/logic-scheduler/trigger/item-dyna-logic-trigger.js +1 -1
  112. package/out/logic-scheduler/trigger/logic-trigger-factory.d.ts.map +1 -1
  113. package/out/logic-scheduler/trigger/logic-trigger-factory.js +3 -1
  114. package/out/logic-scheduler/trigger/logic-trigger.d.ts.map +1 -1
  115. package/out/logic-scheduler/trigger/logic-trigger.js +3 -1
  116. package/out/logic-scheduler/trigger/timer-trigger.d.ts.map +1 -1
  117. package/out/logic-scheduler/trigger/timer-trigger.js +2 -2
  118. package/out/model/utils/util.d.ts.map +1 -1
  119. package/out/model/utils/util.js +3 -3
  120. package/out/model/view/view.d.ts.map +1 -1
  121. package/out/model/view/view.js +3 -1
  122. package/out/platform/provider/platform-provider-base.d.ts.map +1 -1
  123. package/out/platform/provider/platform-provider-base.js +4 -4
  124. package/out/register/helper/app-counter-register.d.ts.map +1 -1
  125. package/out/register/helper/app-counter-register.js +7 -3
  126. package/out/register/helper/app-menu-item-register.d.ts.map +1 -1
  127. package/out/register/helper/app-menu-item-register.js +3 -1
  128. package/out/register/helper/async-action-register.d.ts.map +1 -1
  129. package/out/register/helper/async-action-register.js +3 -1
  130. package/out/register/helper/common-register.d.ts.map +1 -1
  131. package/out/register/helper/common-register.js +3 -1
  132. package/out/register/helper/control-register.d.ts.map +1 -1
  133. package/out/register/helper/control-register.js +13 -4
  134. package/out/register/helper/de-method-register.d.ts.map +1 -1
  135. package/out/register/helper/de-method-register.js +6 -2
  136. package/out/register/helper/editor-register.d.ts.map +1 -1
  137. package/out/register/helper/editor-register.js +14 -4
  138. package/out/register/helper/form-detail-register.d.ts.map +1 -1
  139. package/out/register/helper/form-detail-register.js +9 -3
  140. package/out/register/helper/grid-column-register.d.ts.map +1 -1
  141. package/out/register/helper/grid-column-register.js +9 -3
  142. package/out/register/helper/internal-message-register.d.ts.map +1 -1
  143. package/out/register/helper/internal-message-register.js +3 -1
  144. package/out/register/helper/panel-item-register.d.ts.map +1 -1
  145. package/out/register/helper/panel-item-register.js +17 -5
  146. package/out/register/helper/portlet-register.d.ts.map +1 -1
  147. package/out/register/helper/portlet-register.js +6 -2
  148. package/out/register/helper/tree-grid-ex-column-register.d.ts.map +1 -1
  149. package/out/register/helper/tree-grid-ex-column-register.js +6 -2
  150. package/out/register/helper/ui-action-register.d.ts.map +1 -1
  151. package/out/register/helper/ui-action-register.js +6 -2
  152. package/out/register/helper/ui-logic-node-register.d.ts.map +1 -1
  153. package/out/register/helper/ui-logic-node-register.js +3 -1
  154. package/out/register/helper/view-register.d.ts.map +1 -1
  155. package/out/register/helper/view-register.js +7 -2
  156. package/out/service/app-data-entity/app-data-entity.d.ts.map +1 -1
  157. package/out/service/app-data-entity/app-data-entity.js +9 -3
  158. package/out/service/de-service-util.js +1 -1
  159. package/out/service/dto/method.dto.d.ts.map +1 -1
  160. package/out/service/dto/method.dto.js +4 -2
  161. package/out/service/service/auth/v7-auth.service.d.ts +1 -1
  162. package/out/service/service/auth/v7-auth.service.d.ts.map +1 -1
  163. package/out/service/service/auth/v7-auth.service.js +5 -5
  164. package/out/service/service/authority/authority.service.js +1 -1
  165. package/out/service/service/authority/de-authority.service.d.ts.map +1 -1
  166. package/out/service/service/authority/de-authority.service.js +13 -6
  167. package/out/service/service/code-list/code-list.service.d.ts.map +1 -1
  168. package/out/service/service/code-list/code-list.service.js +2 -2
  169. package/out/service/service/counter/counter.service.d.ts.map +1 -1
  170. package/out/service/service/counter/counter.service.js +1 -1
  171. package/out/service/service/entity/de.service.d.ts.map +1 -1
  172. package/out/service/service/entity/de.service.js +12 -4
  173. package/out/service/service/entity/method/de-action.d.ts.map +1 -1
  174. package/out/service/service/entity/method/de-action.js +10 -5
  175. package/out/service/service/entity/method/fetch.d.ts.map +1 -1
  176. package/out/service/service/entity/method/fetch.js +4 -2
  177. package/out/service/service/entity/method/method.d.ts.map +1 -1
  178. package/out/service/service/entity/method/method.js +3 -3
  179. package/out/service/service/util/util.service.d.ts.map +1 -1
  180. package/out/service/service/util/util.service.js +6 -3
  181. package/out/service/service/work-flow/work-flow.service.d.ts.map +1 -1
  182. package/out/service/service/work-flow/work-flow.service.js +1 -1
  183. package/out/service/utils/app-counter/app-counter.js +1 -1
  184. package/out/service/utils/app-counter/app-de-counter.d.ts.map +1 -1
  185. package/out/service/utils/app-counter/app-de-counter.js +1 -1
  186. package/out/service/utils/de-cache/de-cache.d.ts.map +1 -1
  187. package/out/service/utils/de-cache/de-cache.js +18 -6
  188. package/out/service/utils/de-dq-cond/ps-de-dq-cond-engine.d.ts.map +1 -1
  189. package/out/service/utils/de-dq-cond/ps-de-dq-cond-engine.js +3 -3
  190. package/out/service/utils/de-dq-cond/ps-model-group-cond-base.js +1 -1
  191. package/out/service/utils/de-dq-cond-util/de-dq-cond-util.d.ts.map +1 -1
  192. package/out/service/utils/de-dq-cond-util/de-dq-cond-util.js +3 -1
  193. package/out/service/utils/dynamic-code-list/dynamic-code-list.d.ts.map +1 -1
  194. package/out/service/utils/dynamic-code-list/dynamic-code-list.js +4 -4
  195. package/out/service/utils/service-exist-util/service-exist-util.d.ts.map +1 -1
  196. package/out/service/utils/service-exist-util/service-exist-util.js +2 -2
  197. package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts.map +1 -1
  198. package/out/service/vo/tree-node-data/tree-data-set-node-data.js +1 -1
  199. package/out/service/vo/ui-map-field.d.ts.map +1 -1
  200. package/out/service/vo/ui-map-field.js +3 -1
  201. package/out/ui-action/provider/backend-ui-action-provider.d.ts.map +1 -1
  202. package/out/ui-action/provider/backend-ui-action-provider.js +1 -1
  203. package/out/ui-action/provider/front-ui-action-provider.d.ts +1 -1
  204. package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
  205. package/out/ui-action/provider/front-ui-action-provider.js +20 -13
  206. package/out/ui-action/provider/loginout-ui-action-provider.js +2 -2
  207. package/out/ui-action/provider/ui-action-provider-base.d.ts.map +1 -1
  208. package/out/ui-action/provider/ui-action-provider-base.js +7 -4
  209. package/out/ui-action/provider/wf-withdraw-ui-action-provider.js +2 -2
  210. package/out/ui-action/uiaction-util.d.ts.map +1 -1
  211. package/out/ui-action/uiaction-util.js +1 -1
  212. package/out/ui-logic/index.d.ts.map +1 -1
  213. package/out/ui-logic/index.js +12 -3
  214. package/out/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.d.ts.map +1 -1
  215. package/out/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.js +6 -3
  216. package/out/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.d.ts.map +1 -1
  217. package/out/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.js +10 -4
  218. package/out/ui-logic/ui-logic-link/ui-logic-link.d.ts.map +1 -1
  219. package/out/ui-logic/ui-logic-link/ui-logic-link.js +4 -4
  220. package/out/ui-logic/ui-logic-node/append-param-node/append-param-node.js +2 -2
  221. package/out/ui-logic/ui-logic-node/bind-param-node/bind-param-node.d.ts.map +1 -1
  222. package/out/ui-logic/ui-logic-node/bind-param-node/bind-param-node.js +5 -2
  223. package/out/ui-logic/ui-logic-node/copy-param-node/copy-param-node.d.ts.map +1 -1
  224. package/out/ui-logic/ui-logic-node/copy-param-node/copy-param-node.js +5 -2
  225. package/out/ui-logic/ui-logic-node/data-set-node/data-set-node.d.ts.map +1 -1
  226. package/out/ui-logic/ui-logic-node/data-set-node/data-set-node.js +7 -2
  227. package/out/ui-logic/ui-logic-node/de-action-node/de-action-node.d.ts.map +1 -1
  228. package/out/ui-logic/ui-logic-node/de-action-node/de-action-node.js +8 -3
  229. package/out/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.d.ts.map +1 -1
  230. package/out/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.js +7 -2
  231. package/out/ui-logic/ui-logic-node/debug-param-node/debug-param-node.d.ts.map +1 -1
  232. package/out/ui-logic/ui-logic-node/debug-param-node/debug-param-node.js +2 -2
  233. package/out/ui-logic/ui-logic-node/end-node/end-node.d.ts.map +1 -1
  234. package/out/ui-logic/ui-logic-node/end-node/end-node.js +5 -2
  235. package/out/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.d.ts.map +1 -1
  236. package/out/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.js +10 -5
  237. package/out/ui-logic/ui-logic-node/msg-box-node/msg-box-node.d.ts.map +1 -1
  238. package/out/ui-logic/ui-logic-node/msg-box-node/msg-box-node.js +16 -10
  239. package/out/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.d.ts.map +1 -1
  240. package/out/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.js +4 -1
  241. package/out/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.d.ts.map +1 -1
  242. package/out/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.js +10 -4
  243. package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.d.ts.map +1 -1
  244. package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.js +3 -1
  245. package/out/ui-logic/ui-logic-node/renew-param-node/renew-param-node.d.ts.map +1 -1
  246. package/out/ui-logic/ui-logic-node/renew-param-node/renew-param-node.js +5 -2
  247. package/out/ui-logic/ui-logic-node/reset-param-node/reset-param-node.d.ts.map +1 -1
  248. package/out/ui-logic/ui-logic-node/reset-param-node/reset-param-node.js +5 -2
  249. package/out/ui-logic/ui-logic-node/sort-param-node/sort-param-node.d.ts.map +1 -1
  250. package/out/ui-logic/ui-logic-node/sort-param-node/sort-param-node.js +7 -2
  251. package/out/ui-logic/ui-logic-node/start-node/start-node.d.ts.map +1 -1
  252. package/out/ui-logic/ui-logic-node/start-node/start-node.js +3 -1
  253. package/out/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.d.ts.map +1 -1
  254. package/out/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.js +4 -1
  255. package/out/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.d.ts.map +1 -1
  256. package/out/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.js +12 -6
  257. package/out/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.d.ts.map +1 -1
  258. package/out/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.js +17 -7
  259. package/out/ui-logic/ui-logic-param/ui-logic-param.d.ts.map +1 -1
  260. package/out/ui-logic/ui-logic-param/ui-logic-param.js +10 -4
  261. package/out/ui-logic/ui-logic.d.ts.map +1 -1
  262. package/out/ui-logic/ui-logic.js +5 -3
  263. package/out/ui-logic/utils/handle-src-val.d.ts.map +1 -1
  264. package/out/ui-logic/utils/handle-src-val.js +6 -2
  265. package/out/utils/anime/anime-element-util.js +1 -1
  266. package/out/utils/anime/anime-util/anime-util.d.ts.map +1 -1
  267. package/out/utils/anime/anime-util/anime-util.js +2 -2
  268. package/out/utils/error-handler/default-error-handler.d.ts.map +1 -1
  269. package/out/utils/error-handler/default-error-handler.js +1 -1
  270. package/out/utils/error-handler/error-handler-center.d.ts.map +1 -1
  271. package/out/utils/error-handler/error-handler-center.js +1 -1
  272. package/out/utils/file-util/file-util.d.ts.map +1 -1
  273. package/out/utils/file-util/file-util.js +3 -3
  274. package/out/utils/handlebars/handlebars.js +1 -1
  275. package/out/utils/index.d.ts +1 -0
  276. package/out/utils/index.d.ts.map +1 -1
  277. package/out/utils/index.js +1 -0
  278. package/out/utils/modal/modal.d.ts.map +1 -1
  279. package/out/utils/modal/modal.js +2 -2
  280. package/out/utils/open-redirect-view/open-redirect-view.d.ts.map +1 -1
  281. package/out/utils/open-redirect-view/open-redirect-view.js +22 -9
  282. package/out/utils/script/script-function.d.ts.map +1 -1
  283. package/out/utils/script/script-function.js +1 -1
  284. package/out/utils/short-cut/index.d.ts +2 -0
  285. package/out/utils/short-cut/index.d.ts.map +1 -0
  286. package/out/utils/short-cut/index.js +1 -0
  287. package/out/utils/short-cut/short-cut-util.d.ts +89 -0
  288. package/out/utils/short-cut/short-cut-util.d.ts.map +1 -0
  289. package/out/utils/short-cut/short-cut-util.js +141 -0
  290. package/out/utils/ui-domain/transaction.js +2 -2
  291. package/out/utils/ui-domain-manager/ui-domain-manager.d.ts.map +1 -1
  292. package/out/utils/ui-domain-manager/ui-domain-manager.js +3 -1
  293. package/out/utils/verify/de-rule-verify.js +11 -11
  294. package/out/utils/verify/form-dynamic-logic.d.ts.map +1 -1
  295. package/out/utils/verify/form-dynamic-logic.js +4 -2
  296. package/out/utils/verify/panel-dynamic-logic.d.ts.map +1 -1
  297. package/out/utils/verify/panel-dynamic-logic.js +4 -2
  298. package/out/utils/verify/verify.d.ts.map +1 -1
  299. package/out/utils/verify/verify.js +3 -3
  300. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ui-logic-param.d.ts","sourceRoot":"","sources":["../../../src/ui-logic/ui-logic-param/ui-logic-param.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;;;;;GAOG;AACH,qBAAa,YAAY;IAQJ,KAAK,EAAE,eAAe;IAPzC;;;;;;OAMG;gBACgB,KAAK,EAAE,eAAe;IAEzC;;;;;;OAMG;IACH,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI;IAgH/B;;;;;OAKG;IACH,KAAK,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI;CAiBjC"}
1
+ {"version":3,"file":"ui-logic-param.d.ts","sourceRoot":"","sources":["../../../src/ui-logic/ui-logic-param/ui-logic-param.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;;;;;GAOG;AACH,qBAAa,YAAY;IAQJ,KAAK,EAAE,eAAe;IAPzC;;;;;;OAMG;gBACgB,KAAK,EAAE,eAAe;IAEzC;;;;;;OAMG;IACH,IAAI,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI;IA0H/B;;;;;OAKG;IACH,KAAK,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI;CAsBjC"}
@@ -62,7 +62,9 @@ export class UILogicParam {
62
62
  ctx.params[tag] = control;
63
63
  }
64
64
  else {
65
- ibiz.log.error(`视图逻辑初始化参数,未找到${m.codeName}指定部件对象`);
65
+ ibiz.log.error(ibiz.i18n.t('runtime.uiLogic.viewLogicInitializationParameter', {
66
+ codeName: m.codeName,
67
+ }));
66
68
  }
67
69
  }
68
70
  else if (m.activeViewParam) {
@@ -154,7 +156,9 @@ export class UILogicParam {
154
156
  // 操作会话变量
155
157
  ctx.params[tag] = ctx.session;
156
158
  }
157
- ibiz.log.debug(`计算界面逻辑参数,标识:${tag}`, `-值:`, ctx.params[tag]);
159
+ ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.calculateInterfaceLogicParameters', {
160
+ tag,
161
+ }), ibiz.i18n.t('runtime.deLogic.deLogicNode.value'), ctx.params[tag]);
158
162
  }
159
163
  /**
160
164
  * 重新建立变量
@@ -172,8 +176,10 @@ export class UILogicParam {
172
176
  ctx.params[tag] = {};
173
177
  }
174
178
  else {
175
- throw new ModelError(m, `未支持的逻辑参数类型重新建立变量`);
179
+ throw new ModelError(m, ibiz.i18n.t('runtime.deLogic.deLogicNode.recreatingVariables'));
176
180
  }
177
- ibiz.log.debug(`重新建立界面逻辑参数,标识:${tag}`, `-值:`, ctx.params[tag]);
181
+ ibiz.log.debug(ibiz.i18n.t('runtime.uiLogic.restablishInterfaceLogic', {
182
+ tag,
183
+ }), ibiz.i18n.t('runtime.deLogic.deLogicNode.value'), ctx.params[tag]);
178
184
  }
179
185
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ui-logic.d.ts","sourceRoot":"","sources":["../../src/ui-logic/ui-logic.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAmBL,WAAW,EAGZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D;;;;;;;GAOG;AACH,qBAAa,OAAO;IA2BN,SAAS,CAAC,KAAK,EAAE,UAAU;IA1BvC;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAa;IAEtD;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAa;IAExD;;;;;OAKG;gBACmB,KAAK,EAAE,UAAU;IAuFvC;;;;;;;;;;OAUG;IACH,SAAS,CAAC,eAAe,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI;IASpD;;;;;;;;;OASG;IACG,IAAI,CAAC,UAAU,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAmBxD;;;;;;;;;;;;;OAaG;cACa,QAAQ,CACtB,IAAI,EAAE,WAAW,EACjB,GAAG,EAAE,cAAc,GAClB,OAAO,CAAC,IAAI,CAAC;CAiBjB"}
1
+ {"version":3,"file":"ui-logic.d.ts","sourceRoot":"","sources":["../../src/ui-logic/ui-logic.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAmBL,WAAW,EAGZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D;;;;;;;GAOG;AACH,qBAAa,OAAO;IA2BN,SAAS,CAAC,KAAK,EAAE,UAAU;IA1BvC;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAa;IAEtD;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAa;IAExD;;;;;OAKG;gBACmB,KAAK,EAAE,UAAU;IA+FvC;;;;;;;;;;OAUG;IACH,SAAS,CAAC,eAAe,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI;IASpD;;;;;;;;;OASG;IACG,IAAI,CAAC,UAAU,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAsBxD;;;;;;;;;;;;;OAaG;cACa,QAAQ,CACtB,IAAI,EAAE,WAAW,EACjB,GAAG,EAAE,cAAc,GAClB,OAAO,CAAC,IAAI,CAAC;CAiBjB"}
@@ -40,7 +40,7 @@ export class UILogic {
40
40
  */
41
41
  this.params = new Map();
42
42
  if (!((_a = model.deuilogicNodes) === null || _a === void 0 ? void 0 : _a.length)) {
43
- throw new RuntimeModelError(model, '界面逻辑没有配置逻辑节点');
43
+ throw new RuntimeModelError(model, ibiz.i18n.t('runtime.uiLogic.noLogicalNodesConfigured'));
44
44
  }
45
45
  model.deuilogicNodes.forEach(node => {
46
46
  const { logicNodeType } = node;
@@ -107,7 +107,9 @@ export class UILogic {
107
107
  logicNode = new RawJSCodeNode(node);
108
108
  break;
109
109
  default:
110
- throw new ModelError(node, `未支持的逻辑节点类型: ${logicNodeType}`);
110
+ throw new ModelError(node, ibiz.i18n.t('runtime.deLogic.deLogicNode.unsupportedLogical', {
111
+ logicNodeType,
112
+ }));
111
113
  }
112
114
  this.nodes.set(node.id, logicNode);
113
115
  });
@@ -162,7 +164,7 @@ export class UILogic {
162
164
  await this.deepExec(start, ctx);
163
165
  }
164
166
  else {
165
- throw new RuntimeModelError(this.model, `未设置起始节点`);
167
+ throw new RuntimeModelError(this.model, ibiz.i18n.t('runtime.deLogic.deLogicNode.noSetStartNode'));
166
168
  }
167
169
  if (ctx.isEndNode) {
168
170
  return ctx.result;
@@ -1 +1 @@
1
- {"version":3,"file":"handle-src-val.d.ts","sourceRoot":"","sources":["../../../src/ui-logic/utils/handle-src-val.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,KAAK,YAAY,GAAG;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAC1B,GAAG,EAAE,cAAc,EACnB,YAAY,EAAE,YAAY,GACzB,OAAO,CA6DT"}
1
+ {"version":3,"file":"handle-src-val.d.ts","sourceRoot":"","sources":["../../../src/ui-logic/utils/handle-src-val.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,KAAK,YAAY,GAAG;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAC1B,GAAG,EAAE,cAAc,EACnB,YAAY,EAAE,YAAY,GACzB,OAAO,CAuET"}
@@ -46,7 +46,9 @@ export function handleSrcVal(ctx, srcValParams) {
46
46
  value = clone(ibiz.env);
47
47
  break;
48
48
  default:
49
- throw new ModelError(srcValParams, `暂未支持源值类型${srcValueType}`);
49
+ throw new ModelError(srcValParams, ibiz.i18n.t('runtime.deLogic.deLogicNode.sourceValueType', {
50
+ srcValueType,
51
+ }));
50
52
  }
51
53
  if (value && srcField) {
52
54
  try {
@@ -61,7 +63,9 @@ export function handleSrcVal(ctx, srcValParams) {
61
63
  }
62
64
  }
63
65
  catch (error) {
64
- ibiz.log.error(`从源参数取属性${srcField}报错,源参数:`, value);
66
+ ibiz.log.error(ibiz.i18n.t('runtime.deLogic.deLogicNode.fetchingAttribute', {
67
+ srcField,
68
+ }), value);
65
69
  throw error;
66
70
  }
67
71
  }
@@ -6,7 +6,7 @@ const baseStyle = {
6
6
  export function cloneElement(clone, teleport = document.body, isRemoveChild = true) {
7
7
  const element = getAnimationElement(clone);
8
8
  if (element == null) {
9
- throw new Error('Cannot clone a null or undefined element.');
9
+ throw new Error(ibiz.i18n.t('runtime.utils.anime.noClone'));
10
10
  }
11
11
  // 使用 DOM 的 cloneNode 方法深复制元素
12
12
  const clonedElement = element.cloneNode(true);
@@ -1 +1 @@
1
- {"version":3,"file":"anime-util.d.ts","sourceRoot":"","sources":["../../../../src/utils/anime/anime-util/anime-util.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,KAAK,WAAW,GAAG,MAAM,GAAG,WAAW,CAAC;AAExC;;;;;;;GAOG;AACH,qBAAa,SAAS;IACpB;;;;;;;;;;OAUG;IACU,SAAS,CACpB,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,WAAW,EACrB,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,OAAO,CAAC;IA8BnB;;;;;;;;;;OAUG;IACI,YAAY,CACjB,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,WAAW,EACtB,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,OAAO,CAAC;IAInB;;;;;;;;OAQG;IACI,MAAM,CACX,OAAO,EAAE,WAAW,GAAG,WAAW,EAAE,EACpC,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,OAAO,CAAC;IAInB;;;;;;;;;;OAUG;IACU,aAAa,CACxB,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,WAAW,EACtB,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,OAAO,CAAC;CAOpB"}
1
+ {"version":3,"file":"anime-util.d.ts","sourceRoot":"","sources":["../../../../src/utils/anime/anime-util/anime-util.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,KAAK,WAAW,GAAG,MAAM,GAAG,WAAW,CAAC;AAExC;;;;;;;GAOG;AACH,qBAAa,SAAS;IACpB;;;;;;;;;;OAUG;IACU,SAAS,CACpB,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,WAAW,EACrB,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,OAAO,CAAC;IAgCnB;;;;;;;;;;OAUG;IACI,YAAY,CACjB,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,WAAW,EACtB,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,OAAO,CAAC;IAInB;;;;;;;;OAQG;IACI,MAAM,CACX,OAAO,EAAE,WAAW,GAAG,WAAW,EAAE,EACpC,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,OAAO,CAAC;IAInB;;;;;;;;;;OAUG;IACU,aAAa,CACxB,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,WAAW,EACtB,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,OAAO,CAAC;CAOpB"}
@@ -24,13 +24,13 @@ export class AnimeUtil {
24
24
  // 获取移动终点元素
25
25
  const targetElement = getAnimationElement(tElement);
26
26
  if (!targetElement) {
27
- ibiz.log.debug('终点元素不存在');
27
+ ibiz.log.debug(ibiz.i18n.t('runtime.utils.anime.noExistEndpointElement'));
28
28
  return false;
29
29
  }
30
30
  // 创建移动动画元素
31
31
  const moveElement = cloneElement(element, document.body);
32
32
  if (!moveElement) {
33
- ibiz.log.debug('动画元素不存在');
33
+ ibiz.log.debug(ibiz.i18n.t('runtime.utils.anime.noExistAnimationElement'));
34
34
  return false;
35
35
  }
36
36
  const { padding, width, height } = getElementAttribute(moveElement);
@@ -1 +1 @@
1
- {"version":3,"file":"default-error-handler.d.ts","sourceRoot":"","sources":["../../../src/utils/error-handler/default-error-handler.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;;;GAOG;AACH,qBAAa,mBAAoB,YAAW,aAAa;IACvD,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS;CAuB5C"}
1
+ {"version":3,"file":"default-error-handler.d.ts","sourceRoot":"","sources":["../../../src/utils/error-handler/default-error-handler.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;;;GAOG;AACH,qBAAa,mBAAoB,YAAW,aAAa;IACvD,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS;CAyB5C"}
@@ -14,7 +14,7 @@ export class DefaultErrorHandler {
14
14
  }
15
15
  else if (error instanceof HttpError) {
16
16
  if (error.status === 401) {
17
- ibiz.message.error('没有注册无权限错误处理器');
17
+ ibiz.message.error(ibiz.i18n.t('runtime.utils.errorHandler.noPermissionless'));
18
18
  }
19
19
  else if (error.status === 404) {
20
20
  ibiz.mc.error.send(error);
@@ -1 +1 @@
1
- {"version":3,"file":"error-handler-center.d.ts","sourceRoot":"","sources":["../../../src/utils/error-handler/error-handler-center.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;;;GAOG;AACH,qBAAa,kBAAkB;IAC7B;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAM;IAEzC;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAItC;;;;;;OAMG;IACH,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAS5C;;;;;OAKG;IACH,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;CAS7B"}
1
+ {"version":3,"file":"error-handler-center.d.ts","sourceRoot":"","sources":["../../../src/utils/error-handler/error-handler-center.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;;;GAOG;AACH,qBAAa,kBAAkB;IAC7B;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAM;IAEzC;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAItC;;;;;;OAMG;IACH,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAY5C;;;;;OAKG;IACH,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;CAS7B"}
@@ -37,7 +37,7 @@ export class ErrorHandlerCenter {
37
37
  return !!item.handle(error);
38
38
  });
39
39
  if (!find) {
40
- ibiz.log.error('没有找到能处理该错误的处理器', error);
40
+ ibiz.log.error(ibiz.i18n.t('runtime.utils.errorHandler.noProcessor'), error);
41
41
  }
42
42
  }
43
43
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"file-util.d.ts","sourceRoot":"","sources":["../../../src/utils/file-util/file-util.ts"],"names":[],"mappings":"AAIA,qBAAa,QAAQ;IACnB;;;;;;;;;OASG;IACH,SAAS,CAAC,aAAa,CACrB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,QAAQ,EACjB,UAAU,CAAC,EAAE,MAAM,GAClB,MAAM;IAWT;;;;;;;;;;;;;;;;;OAiBG;IACH,iBAAiB,CACf,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,OAAO,EACf,IAAI,GAAE,KAAU,EAChB,WAAW,GAAE,KAAU,GACtB;QACD,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;KACrB;IA0BD;;;;;;;OAOG;IACG,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAqB5D;;;;;;;;;;OAUG;IACG,UAAU,CACd,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,KAAK,GACb,OAAO,CAAC,KAAK,CAAC;CAclB"}
1
+ {"version":3,"file":"file-util.d.ts","sourceRoot":"","sources":["../../../src/utils/file-util/file-util.ts"],"names":[],"mappings":"AAIA,qBAAa,QAAQ;IACnB;;;;;;;;;OASG;IACH,SAAS,CAAC,aAAa,CACrB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,QAAQ,EACjB,UAAU,CAAC,EAAE,MAAM,GAClB,MAAM;IAWT;;;;;;;;;;;;;;;;;OAiBG;IACH,iBAAiB,CACf,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,OAAO,EACf,IAAI,GAAE,KAAU,EAChB,WAAW,GAAE,KAAU,GACtB;QACD,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;KACrB;IA0BD;;;;;;;OAOG;IACG,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAqB5D;;;;;;;;;;OAUG;IACG,UAAU,CACd,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,KAAK,GACb,OAAO,CAAC,KAAK,CAAC;CAgBlB"}
@@ -73,11 +73,11 @@ export class FileUtil {
73
73
  baseURL: '', // 已经有baseURL了,这里无需再写
74
74
  });
75
75
  if (response.status !== 200) {
76
- throw new RuntimeError('下载文件失败');
76
+ throw new RuntimeError(ibiz.i18n.t('runtime.platform.failedDownload'));
77
77
  }
78
78
  // 请求成功,后台返回的是一个文件流
79
79
  if (!response.data) {
80
- throw new RuntimeError('文件流数据不存在');
80
+ throw new RuntimeError(ibiz.i18n.t('runtime.platform.fileStreamData'));
81
81
  }
82
82
  else {
83
83
  // 获取文件名
@@ -106,7 +106,7 @@ export class FileUtil {
106
106
  data: formData,
107
107
  });
108
108
  if (res.status !== 200) {
109
- throw new RuntimeError('文件上传失败');
109
+ throw new RuntimeError(ibiz.i18n.t('runtime.utils.fileUtil.fileUploadFailed'));
110
110
  }
111
111
  return res.data;
112
112
  }
@@ -80,7 +80,7 @@ export class HandlebarsUtil {
80
80
  */
81
81
  syncRender(template, data) {
82
82
  if (!this.hsb) {
83
- throw new Error('handlebars not init');
83
+ throw new Error(ibiz.i18n.t('runtime.utils.handlebars.noInitHandlebars'));
84
84
  }
85
85
  const tmp = this.hsb.compile(template);
86
86
  return tmp(data);
@@ -18,4 +18,5 @@ export { ViewStack } from './view-stack/view-stack';
18
18
  export { handleAllSettled } from './promise/promise';
19
19
  export { AnimeUtil } from './anime';
20
20
  export { FileUtil } from './file-util';
21
+ export { ShortCutUtil } from './short-cut';
21
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,cAAc,yBAAyB,CAAC;AACxC,OAAO,EACL,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,yCAAyC,CAAC;AACjD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,cAAc,yBAAyB,CAAC;AACxC,OAAO,EACL,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,yCAAyC,CAAC;AACjD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
@@ -18,3 +18,4 @@ export { ViewStack } from './view-stack/view-stack';
18
18
  export { handleAllSettled } from './promise/promise';
19
19
  export { AnimeUtil } from './anime';
20
20
  export { FileUtil } from './file-util';
21
+ export { ShortCutUtil } from './short-cut';
@@ -1 +1 @@
1
- {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/utils/modal/modal.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAErD,KAAK,eAAe,GAAG;IACrB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;CACtC,CAAC;AACF,qBAAa,KAAM,YAAW,MAAM;IAClC,IAAI,EAAE,QAAQ,CAAkB;IAEhC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,SAAS,EAAE,MAAM,CAAK;IAEtB,kBAAkB,EAAE,OAAO,CAAS;IAEpC,KAAK;;;;;MAGH;gBAEU,IAAI,EAAE,eAAe;IAejC;;;;OAIG;IACH,QAAQ,SAAU,UAAU,KAAG,IAAI,CAEjC;IAEF;;;;;OAKG;IACH,aAAa,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,GAAG,IAAI;IAIlD,OAAO,CAAC,IAAI,GAAE,UAAoC,GAAG,OAAO,CAAC,OAAO,CAAC;IAoB3E;;;;;OAKG;IACH,SAAS,CAAC,OAAO,IAAI,IAAI;CAI1B"}
1
+ {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/utils/modal/modal.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAErD,KAAK,eAAe,GAAG;IACrB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;CACtC,CAAC;AACF,qBAAa,KAAM,YAAW,MAAM;IAClC,IAAI,EAAE,QAAQ,CAAkB;IAEhC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,SAAS,EAAE,MAAM,CAAK;IAEtB,kBAAkB,EAAE,OAAO,CAAS;IAEpC,KAAK;;;;;MAGH;gBAEU,IAAI,EAAE,eAAe;IAejC;;;;OAIG;IACH,QAAQ,SAAU,UAAU,KAAG,IAAI,CAKjC;IAEF;;;;;OAKG;IACH,aAAa,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,GAAG,IAAI;IAIlD,OAAO,CAAC,IAAI,GAAE,UAAoC,GAAG,OAAO,CAAC,OAAO,CAAC;IAoB3E;;;;;OAKG;IACH,SAAS,CAAC,OAAO,IAAI,IAAI;CAI1B"}
@@ -16,7 +16,7 @@ export class Modal {
16
16
  * @date 2023-05-12 07:06:56
17
17
  */
18
18
  this._dismiss = (data) => {
19
- ibiz.log.error('外部关闭能力未注册', data);
19
+ ibiz.log.error(ibiz.i18n.t('runtime.utils.modal.externalClosureCapability'), data);
20
20
  };
21
21
  if (opts.mode) {
22
22
  this.mode = opts.mode;
@@ -47,7 +47,7 @@ export class Modal {
47
47
  await this.hooks.shouldDismiss.call(context);
48
48
  }
49
49
  if (context.allowClose === false) {
50
- ibiz.log.debug('shouldDismiss结果为false,关闭中断。');
50
+ ibiz.log.debug(ibiz.i18n.t('runtime.utils.modal.shouldDismissResult'));
51
51
  return false;
52
52
  }
53
53
  // 执行关闭前操作
@@ -1 +1 @@
1
- {"version":3,"file":"open-redirect-view.d.ts","sourceRoot":"","sources":["../../../src/utils/open-redirect-view/open-redirect-view.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAK/D;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG;IACjD,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAiCA;AAED,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,EACpB,IAAI,GAAE,gBAAqB,GAC1B,OAAO,CAAC,UAAU,CAAC,CAOrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,gBAAqB,GAC1B,OAAO,CAAC,IAAI,CAAC,CASf;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,gBAAqB,GAC1B,OAAO,CAAC,YAAY,CAAC,CAoDvB;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,EACpB,IAAI,GAAE,gBAAqB,GAC1B,OAAO,CAAC,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,CAAC,GAAG;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,CA4H3E;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,EACpB,IAAI,GAAE,gBAAqB,GAC1B,OAAO,CAAC,UAAU,CAAC,CA+BrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,KAAK,GACV,OAAO,CAAC,MAAM,CAAC,CAiDjB"}
1
+ {"version":3,"file":"open-redirect-view.d.ts","sourceRoot":"","sources":["../../../src/utils/open-redirect-view/open-redirect-view.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAK/D;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG;IACjD,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAuCA;AAED,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,EACpB,IAAI,GAAE,gBAAqB,GAC1B,OAAO,CAAC,UAAU,CAAC,CAOrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,gBAAqB,GAC1B,OAAO,CAAC,IAAI,CAAC,CASf;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,gBAAqB,GAC1B,OAAO,CAAC,YAAY,CAAC,CA0DvB;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,EACpB,IAAI,GAAE,gBAAqB,GAC1B,OAAO,CAAC,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,CAAC,GAAG;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,CA8I3E;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,EACpB,IAAI,GAAE,gBAAqB,GAC1B,OAAO,CAAC,UAAU,CAAC,CA+BrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,KAAK,GACV,OAAO,CAAC,MAAM,CAAC,CAoDjB"}
@@ -28,7 +28,7 @@ export function parseViewProtocol(urlStr) {
28
28
  Object.assign(context, JSON.parse(navCtx));
29
29
  }
30
30
  catch (error) {
31
- ibiz.log.error(`重定向[${urlStr}] 中 srfnavctx 参数解析失败`, error);
31
+ ibiz.log.error(ibiz.i18n.t('runtime.utils.openRedirectView.parseSrfnavctxParameter', { urlStr }), error);
32
32
  }
33
33
  url.searchParams.delete('srfnavctx');
34
34
  }
@@ -100,12 +100,14 @@ export async function getLocalOpenWFRedirectView(context, linkUrl, opts = {}) {
100
100
  // 工作流给的实体name名称(小写)
101
101
  const deName = params.srfdename || '';
102
102
  if (!deName) {
103
- throw new RuntimeError('重定向参数缺少实体名称');
103
+ throw new RuntimeError(ibiz.i18n.t('runtime.utils.openRedirectView.missingEntityName'));
104
104
  }
105
105
  const app = ibiz.hub.getApp(context.srfappid);
106
106
  const deCodeName = app.deName2DeCodeName.get(deName.toUpperCase()); // 实体codeName
107
107
  if (!deCodeName) {
108
- throw new RuntimeError(`未找到指定实体的codeName: ${deName}`);
108
+ throw new RuntimeError(ibiz.i18n.t('runtime.utils.openRedirectView.noFoundSpecifiedEntity', {
109
+ deName,
110
+ }));
109
111
  }
110
112
  // 把视图参数里的实体name主键换成codeName主键
111
113
  params[deCodeName.toLowerCase()] = params[deName.toLowerCase()];
@@ -189,7 +191,9 @@ export async function getDERedirectToView(appView, context, params = {}, opts =
189
191
  const toView = await getLocalOpenWFRedirectView(context, linkUrl, opts);
190
192
  return Object.assign({ type: 'view' }, toView);
191
193
  }
192
- throw new RuntimeError(`未支持的linkUrl格式:${linkUrl}`);
194
+ throw new RuntimeError(ibiz.i18n.t('runtime.utils.openRedirectView.unsupportedLinkUrl', {
195
+ linkUrl,
196
+ }));
193
197
  }
194
198
  }
195
199
  }
@@ -239,15 +243,19 @@ export async function getDERedirectToView(appView, context, params = {}, opts =
239
243
  opts: Object.assign(Object.assign({}, opts), { data: [curData] }),
240
244
  };
241
245
  }
242
- throw new RuntimeModelError(refView, `未配置实际引用视图`);
246
+ throw new RuntimeModelError(refView, ibiz.i18n.t('runtime.utils.openRedirectView.noConfiguredActualReference'));
243
247
  }
244
248
  else {
245
- ibiz.log.error('重定向视图引用有:', allRefViews === null || allRefViews === void 0 ? void 0 : allRefViews.map(({ refAppViewId, name, realTitle }) => ({
249
+ ibiz.log.error(ibiz.i18n.t('runtime.utils.openRedirectView.redirectingViewReferences'), allRefViews === null || allRefViews === void 0 ? void 0 : allRefViews.map(({ refAppViewId, name, realTitle }) => ({
246
250
  viewId: refAppViewId,
247
251
  tag: name,
248
252
  title: realTitle,
249
253
  })));
250
- throw new RuntimeModelError(appView, `未找到重定向标识[${rdTag}]或[${deRdTag}]或工作流[${wfRdTag}]对应视图`);
254
+ throw new RuntimeModelError(appView, ibiz.i18n.t('runtime.utils.openRedirectView.redirectionIdentifier', {
255
+ rdTag,
256
+ deRdTag,
257
+ wfRdTag,
258
+ }));
251
259
  }
252
260
  }
253
261
  if (viewId) {
@@ -259,7 +267,9 @@ export async function getDERedirectToView(appView, context, params = {}, opts =
259
267
  opts: Object.assign(Object.assign({}, opts), { data: [curData] }),
260
268
  };
261
269
  }
262
- throw new RuntimeModelError(appView, `标识[${rdTag}]未匹配到实际引用视图`);
270
+ throw new RuntimeModelError(appView, ibiz.i18n.t('runtime.utils.openRedirectView.noMatchActualReferenceView', {
271
+ rdTag,
272
+ }));
263
273
  }
264
274
  /**
265
275
  * 打开实体重定向视图
@@ -326,7 +336,10 @@ export async function calcDERdTag(entity, rdView, params, data) {
326
336
  // 因为平台发布出来的标识全都是大写,所以这里也全部转大写
327
337
  return `${value.toUpperCase()}`;
328
338
  }
329
- ibiz.log.warn(`重定向视图[${rdView.name}]自定义类别属性[${typeFieldId}]值为空`, data);
339
+ ibiz.log.warn(ibiz.i18n.t('runtime.utils.openRedirectView.redirectionView', {
340
+ name: rdView.name,
341
+ typeFieldId,
342
+ }), data);
330
343
  }
331
344
  const defView = `${ibiz.env.isMob ? 'MOB' : ''}EDITVIEW`;
332
345
  // 如果流程步骤存在,按照工作流优先
@@ -1 +1 @@
1
- {"version":3,"file":"script-function.d.ts","sourceRoot":"","sources":["../../../src/utils/script/script-function.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAmB,MAAM,iBAAiB,CAAC;AASvE,qBAAa,cAAc;IACzB,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAE7B,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,CAAM;IAEjC,SAAS,CAAC,OAAO,EAAE,mBAAmB,CAAC;gBAGrC,OAAO,EAAE,MAAM,EAAE,EACjB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,mBAAoC;IAgB/C;;;;;;;;OAQG;IACH,SAAS,CAAC,UAAU,CAClB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,mBAAmB,GAC3B,MAAM;IAWT;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,mBAAmB,GAAG,IAAI;IA6B5E;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,GAAG,EAAE;IAuB7C;;;;;;;OAOG;IACH,SAAS,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAkD9D;;;;;;OAMG;IACH,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO;CAI/B"}
1
+ {"version":3,"file":"script-function.d.ts","sourceRoot":"","sources":["../../../src/utils/script/script-function.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAmB,MAAM,iBAAiB,CAAC;AASvE,qBAAa,cAAc;IACzB,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAE7B,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,CAAM;IAEjC,SAAS,CAAC,OAAO,EAAE,mBAAmB,CAAC;gBAGrC,OAAO,EAAE,MAAM,EAAE,EACjB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,mBAAoC;IAmB/C;;;;;;;;OAQG;IACH,SAAS,CAAC,UAAU,CAClB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,mBAAmB,GAC3B,MAAM;IAWT;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,mBAAmB,GAAG,IAAI;IA6B5E;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,GAAG,EAAE;IAuB7C;;;;;;;OAOG;IACH,SAAS,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAkD9D;;;;;;OAMG;IACH,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO;CAI/B"}
@@ -20,7 +20,7 @@ export class ScriptFunction {
20
20
  return fn.apply({}, args);
21
21
  }
22
22
  catch (error) {
23
- ibiz.log.error('报错脚本', code);
23
+ ibiz.log.error(ibiz.i18n.t('runtime.utils.script.errorReportingScript'), code);
24
24
  throw error;
25
25
  }
26
26
  };
@@ -0,0 +1,2 @@
1
+ export { ShortCutUtil } from './short-cut-util';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/short-cut/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1 @@
1
+ export { ShortCutUtil } from './short-cut-util';
@@ -0,0 +1,89 @@
1
+ import { IShortCut } from '../../interface';
2
+ /**
3
+ * 快捷方式全局工具类
4
+ *
5
+ * @export
6
+ * @class ShortCutUtil
7
+ */
8
+ export declare class ShortCutUtil {
9
+ /**
10
+ * 快捷方式
11
+ *
12
+ * @private
13
+ * @type {IShortCut[]}
14
+ * @memberof ShortCutUtil
15
+ */
16
+ private $ShortCut;
17
+ /**
18
+ * 快捷方式数据
19
+ *
20
+ * @memberof ShortCutUtil
21
+ */
22
+ get data(): IShortCut[];
23
+ /**
24
+ * Creates an instance of ShortCutUtil.
25
+ * @memberof ShortCutUtil
26
+ */
27
+ constructor();
28
+ /**
29
+ * 初始化快捷方式数据
30
+ *
31
+ * @private
32
+ * @memberof ShortCutUtil
33
+ */
34
+ private initShortCut;
35
+ /**
36
+ * 持久化保存快捷方式
37
+ *
38
+ * @memberof ShortCutUtil
39
+ */
40
+ private saveShortCut;
41
+ /**
42
+ * 计算快捷方式key
43
+ *
44
+ * @param {{
45
+ * context: IContext;
46
+ * appViewId: string;
47
+ * }} {
48
+ * context,
49
+ * appViewId,
50
+ * }
51
+ * @return {*} {Promise<string>}
52
+ * @memberof ShortCutUtil
53
+ */
54
+ calcShortCutKey({ context, appViewId, }: {
55
+ context: IContext;
56
+ appViewId: string;
57
+ }): Promise<string>;
58
+ /**
59
+ * 添加快捷方式
60
+ *
61
+ * @param {IShortcut} shortcut
62
+ * @memberof ShortCutUtil
63
+ */
64
+ addShortCut(shortCut: IShortCut): void;
65
+ /**
66
+ * 删除快捷方式
67
+ *
68
+ * @param {string} key
69
+ * @memberof ShortcutUtil
70
+ */
71
+ removeShortCut(key: string): void;
72
+ /**
73
+ * 改变顺序
74
+ *
75
+ * @param {number} newIndex 新位置索引
76
+ * @param {number} oldIndex 旧位置索引
77
+ * @memberof ShortcutUtil
78
+ */
79
+ changeIndex(newIndex: number, oldIndex: number): void;
80
+ /**
81
+ * 是否存在最小化
82
+ *
83
+ * @param {string} key
84
+ * @return {*} {boolean}
85
+ * @memberof ShortCutUtil
86
+ */
87
+ isExist(key: string): boolean;
88
+ }
89
+ //# sourceMappingURL=short-cut-util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"short-cut-util.d.ts","sourceRoot":"","sources":["../../../src/utils/short-cut/short-cut-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C;;;;;GAKG;AACH,qBAAa,YAAY;IACvB;;;;;;OAMG;IACH,OAAO,CAAC,SAAS,CAAmB;IAEpC;;;;OAIG;IACH,IAAI,IAAI,IAAI,SAAS,EAAE,CAEtB;IAED;;;OAGG;;IAKH;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAOpB;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAIpB;;;;;;;;;;;;OAYG;IACG,eAAe,CAAC,EACpB,OAAO,EACP,SAAS,GACV,EAAE;QACD,OAAO,EAAE,QAAQ,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUnB;;;;;OAKG;IACH,WAAW,CAAC,QAAQ,EAAE,SAAS,GAAG,IAAI;IAUtC;;;;;OAKG;IACH,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAQjC;;;;;;OAMG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IAsBrD;;;;;;OAMG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;CAO9B"}
@@ -0,0 +1,141 @@
1
+ import { calcDeCodeNameById } from '../../model';
2
+ /**
3
+ * 快捷方式全局工具类
4
+ *
5
+ * @export
6
+ * @class ShortCutUtil
7
+ */
8
+ export class ShortCutUtil {
9
+ /**
10
+ * 快捷方式数据
11
+ *
12
+ * @memberof ShortCutUtil
13
+ */
14
+ get data() {
15
+ return this.$ShortCut;
16
+ }
17
+ /**
18
+ * Creates an instance of ShortCutUtil.
19
+ * @memberof ShortCutUtil
20
+ */
21
+ constructor() {
22
+ /**
23
+ * 快捷方式
24
+ *
25
+ * @private
26
+ * @type {IShortCut[]}
27
+ * @memberof ShortCutUtil
28
+ */
29
+ this.$ShortCut = [];
30
+ this.initShortCut();
31
+ }
32
+ /**
33
+ * 初始化快捷方式数据
34
+ *
35
+ * @private
36
+ * @memberof ShortCutUtil
37
+ */
38
+ initShortCut() {
39
+ const shortcut = window.localStorage.getItem('IbizShortCut');
40
+ if (shortcut) {
41
+ this.$ShortCut = JSON.parse(shortcut);
42
+ }
43
+ }
44
+ /**
45
+ * 持久化保存快捷方式
46
+ *
47
+ * @memberof ShortCutUtil
48
+ */
49
+ saveShortCut() {
50
+ window.localStorage.setItem('IbizShortCut', JSON.stringify(this.$ShortCut));
51
+ }
52
+ /**
53
+ * 计算快捷方式key
54
+ *
55
+ * @param {{
56
+ * context: IContext;
57
+ * appViewId: string;
58
+ * }} {
59
+ * context,
60
+ * appViewId,
61
+ * }
62
+ * @return {*} {Promise<string>}
63
+ * @memberof ShortCutUtil
64
+ */
65
+ async calcShortCutKey({ context, appViewId, }) {
66
+ const appView = await ibiz.hub.config.view.get(appViewId);
67
+ let key = `${context.srfappid}-${context.srfuserid}-${appViewId}`;
68
+ if (appView.appDataEntityId) {
69
+ const deName = calcDeCodeNameById(appView.appDataEntityId);
70
+ key += `-${deName}-${context[deName]}`;
71
+ }
72
+ return key;
73
+ }
74
+ /**
75
+ * 添加快捷方式
76
+ *
77
+ * @param {IShortcut} shortcut
78
+ * @memberof ShortCutUtil
79
+ */
80
+ addShortCut(shortCut) {
81
+ const index = this.$ShortCut.findIndex(item => item.key === shortCut.key);
82
+ if (index > -1) {
83
+ this.$ShortCut.splice(index, 1, shortCut);
84
+ }
85
+ else {
86
+ this.$ShortCut.push(shortCut);
87
+ }
88
+ this.saveShortCut();
89
+ }
90
+ /**
91
+ * 删除快捷方式
92
+ *
93
+ * @param {string} key
94
+ * @memberof ShortcutUtil
95
+ */
96
+ removeShortCut(key) {
97
+ const index = this.$ShortCut.findIndex(item => item.key === key);
98
+ if (index > -1) {
99
+ this.$ShortCut.splice(index, 1);
100
+ this.saveShortCut();
101
+ }
102
+ }
103
+ /**
104
+ * 改变顺序
105
+ *
106
+ * @param {number} newIndex 新位置索引
107
+ * @param {number} oldIndex 旧位置索引
108
+ * @memberof ShortcutUtil
109
+ */
110
+ changeIndex(newIndex, oldIndex) {
111
+ const { length } = this.$ShortCut;
112
+ // 确保索引在数组范围内
113
+ if (oldIndex < 0 ||
114
+ oldIndex >= length ||
115
+ newIndex < 0 ||
116
+ newIndex >= length) {
117
+ throw new Error(ibiz.i18n.t('runtime.utils.shortCut.invalidIndexNewIndex', {
118
+ newIndex,
119
+ oldIndex,
120
+ length,
121
+ }));
122
+ }
123
+ const removedItem = this.$ShortCut.splice(oldIndex, 1)[0];
124
+ this.$ShortCut.splice(newIndex, 0, removedItem);
125
+ this.saveShortCut();
126
+ }
127
+ /**
128
+ * 是否存在最小化
129
+ *
130
+ * @param {string} key
131
+ * @return {*} {boolean}
132
+ * @memberof ShortCutUtil
133
+ */
134
+ isExist(key) {
135
+ const index = this.$ShortCut.findIndex(item => item.key === key);
136
+ if (index >= 0) {
137
+ return true;
138
+ }
139
+ return false;
140
+ }
141
+ }
@@ -37,7 +37,7 @@ export class Transaction {
37
37
  */
38
38
  open() {
39
39
  if (this.state.isOpen) {
40
- ibiz.log.warn('事务已经开启, 单个界面域只能开启一个事务');
40
+ ibiz.log.warn(ibiz.i18n.t('runtime.utils.uiDomain.transactionOpen'));
41
41
  return;
42
42
  }
43
43
  this.state.isOpen = true;
@@ -87,7 +87,7 @@ export class Transaction {
87
87
  */
88
88
  close() {
89
89
  if (this.state.isChange) {
90
- throw new Error('当前事务未提交,不可以直接关闭事务');
90
+ throw new Error(ibiz.i18n.t('runtime.utils.uiDomain.currentTransaction'));
91
91
  }
92
92
  this.state.isOpen = false;
93
93
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ui-domain-manager.d.ts","sourceRoot":"","sources":["../../../src/utils/ui-domain-manager/ui-domain-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD;;;;;;;GAOG;AACH,qBAAa,eAAe;IAC1B;;;;;;;OAOG;IACH,SAAS,CAAC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAa;IAEvD;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,QAAQ;IAM7B;;;;;;;OAOG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ;IAOzB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;CAM1B"}
1
+ {"version":3,"file":"ui-domain-manager.d.ts","sourceRoot":"","sources":["../../../src/utils/ui-domain-manager/ui-domain-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD;;;;;;;GAOG;AACH,qBAAa,eAAe;IAC1B;;;;;;;OAOG;IACH,SAAS,CAAC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAa;IAEvD;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,QAAQ;IAM7B;;;;;;;OAOG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ;IAWzB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;CAM1B"}