@ibiz-template/runtime 0.7.38-alpha.45 → 0.7.39

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 (309) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +230 -0
  3. package/dist/index.esm.js +10783 -8339
  4. package/dist/index.system.min.js +1 -1
  5. package/out/app-hub.js +2 -2
  6. package/out/application.d.ts +18 -1
  7. package/out/application.d.ts.map +1 -1
  8. package/out/application.js +30 -0
  9. package/out/command/app/app-func/app-func.d.ts +10 -0
  10. package/out/command/app/app-func/app-func.d.ts.map +1 -1
  11. package/out/command/app/app-func/app-func.js +21 -0
  12. package/out/command/app/open-app-view/open-app-view.d.ts +15 -12
  13. package/out/command/app/open-app-view/open-app-view.d.ts.map +1 -1
  14. package/out/command/app/open-app-view/open-app-view.js +20 -17
  15. package/out/config/global-config.d.ts +5 -1
  16. package/out/config/global-config.d.ts.map +1 -1
  17. package/out/config/global-config.js +14 -0
  18. package/out/controller/common/base.controller.d.ts +1 -0
  19. package/out/controller/common/base.controller.d.ts.map +1 -1
  20. package/out/controller/common/base.controller.js +3 -0
  21. package/out/controller/common/control/md-control.controller.d.ts +23 -0
  22. package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
  23. package/out/controller/common/control/md-control.controller.js +69 -5
  24. package/out/controller/common/editor/code-list-editor.controller.d.ts.map +1 -1
  25. package/out/controller/common/editor/code-list-editor.controller.js +2 -0
  26. package/out/controller/common/editor/editor.controller.d.ts +16 -1
  27. package/out/controller/common/editor/editor.controller.d.ts.map +1 -1
  28. package/out/controller/common/editor/editor.controller.js +32 -0
  29. package/out/controller/common/view/view.controller.d.ts +62 -0
  30. package/out/controller/common/view/view.controller.d.ts.map +1 -1
  31. package/out/controller/common/view/view.controller.js +104 -3
  32. package/out/controller/control/app-menu/app-menu.controller.d.ts +6 -0
  33. package/out/controller/control/app-menu/app-menu.controller.d.ts.map +1 -1
  34. package/out/controller/control/app-menu/app-menu.controller.js +34 -1
  35. package/out/controller/control/calendar/calendar.controller.d.ts +21 -0
  36. package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
  37. package/out/controller/control/calendar/calendar.controller.js +52 -0
  38. package/out/controller/control/calendar/calendar.service.d.ts +10 -0
  39. package/out/controller/control/calendar/calendar.service.d.ts.map +1 -1
  40. package/out/controller/control/calendar/calendar.service.js +76 -9
  41. package/out/controller/control/chart/chart.controller.d.ts.map +1 -1
  42. package/out/controller/control/chart/chart.controller.js +8 -1
  43. package/out/controller/control/chart/generator/area-series-generator.d.ts +20 -0
  44. package/out/controller/control/chart/generator/area-series-generator.d.ts.map +1 -0
  45. package/out/controller/control/chart/generator/area-series-generator.js +39 -0
  46. package/out/controller/control/chart/generator/base-series-generator.d.ts +8 -0
  47. package/out/controller/control/chart/generator/base-series-generator.d.ts.map +1 -1
  48. package/out/controller/control/chart/generator/base-series-generator.js +11 -1
  49. package/out/controller/control/chart/generator/candlestick-series-generator.d.ts +89 -0
  50. package/out/controller/control/chart/generator/candlestick-series-generator.d.ts.map +1 -0
  51. package/out/controller/control/chart/generator/candlestick-series-generator.js +269 -0
  52. package/out/controller/control/chart/generator/chart-options-generator.d.ts.map +1 -1
  53. package/out/controller/control/chart/generator/chart-options-generator.js +12 -0
  54. package/out/controller/control/chart/generator/gauge-series-generator.d.ts +24 -0
  55. package/out/controller/control/chart/generator/gauge-series-generator.d.ts.map +1 -0
  56. package/out/controller/control/chart/generator/gauge-series-generator.js +34 -0
  57. package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.d.ts.map +1 -1
  58. package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.js +2 -1
  59. package/out/controller/control/data-view/data-view.controller.d.ts.map +1 -1
  60. package/out/controller/control/data-view/data-view.controller.js +3 -0
  61. package/out/controller/control/form/edit-form/edit-form.controller.d.ts +24 -0
  62. package/out/controller/control/form/edit-form/edit-form.controller.d.ts.map +1 -1
  63. package/out/controller/control/form/edit-form/edit-form.controller.js +138 -25
  64. package/out/controller/control/form/edit-form/edit-form.service.d.ts +0 -8
  65. package/out/controller/control/form/edit-form/edit-form.service.d.ts.map +1 -1
  66. package/out/controller/control/form/edit-form/edit-form.service.js +8 -22
  67. package/out/controller/control/form/form/form.controller.d.ts +18 -1
  68. package/out/controller/control/form/form/form.controller.d.ts.map +1 -1
  69. package/out/controller/control/form/form/form.controller.js +63 -3
  70. package/out/controller/control/form/form/form.service.d.ts +25 -0
  71. package/out/controller/control/form/form/form.service.d.ts.map +1 -1
  72. package/out/controller/control/form/form/form.service.js +67 -1
  73. package/out/controller/control/form/form-detail/form-button/form-button.controller.d.ts.map +1 -1
  74. package/out/controller/control/form/form-detail/form-button/form-button.controller.js +2 -1
  75. package/out/controller/control/form/form-detail/form-button-list/form-button-list.controller.d.ts +42 -2
  76. package/out/controller/control/form/form-detail/form-button-list/form-button-list.controller.d.ts.map +1 -1
  77. package/out/controller/control/form/form-detail/form-button-list/form-button-list.controller.js +87 -3
  78. package/out/controller/control/form/form-detail/form-detail/form-detail.controller.js +1 -1
  79. package/out/controller/control/form/form-detail/form-group-panel/form-group-panel.controller.d.ts.map +1 -1
  80. package/out/controller/control/form/form-detail/form-group-panel/form-group-panel.controller.js +1 -0
  81. package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts +23 -2
  82. package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts.map +1 -1
  83. package/out/controller/control/form/form-detail/form-item/form-item.controller.js +80 -12
  84. package/out/controller/control/form/form-detail/form-item/form-item.state.d.ts +14 -0
  85. package/out/controller/control/form/form-detail/form-item/form-item.state.d.ts.map +1 -1
  86. package/out/controller/control/form/form-detail/form-item/form-item.state.js +14 -0
  87. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts +7 -0
  88. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.d.ts.map +1 -1
  89. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.js +19 -1
  90. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-md.controller.d.ts +7 -0
  91. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-md.controller.d.ts.map +1 -1
  92. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-md.controller.js +16 -0
  93. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.d.ts.map +1 -1
  94. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.js +4 -0
  95. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.d.ts +7 -0
  96. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.d.ts.map +1 -1
  97. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.js +11 -0
  98. package/out/controller/control/form/form-detail/form-tab-panel/form-tab-panel.controller.d.ts +8 -0
  99. package/out/controller/control/form/form-detail/form-tab-panel/form-tab-panel.controller.d.ts.map +1 -1
  100. package/out/controller/control/form/form-detail/form-tab-panel/form-tab-panel.controller.js +26 -0
  101. package/out/controller/control/form/search-form/search-form.controller.d.ts +17 -0
  102. package/out/controller/control/form/search-form/search-form.controller.d.ts.map +1 -1
  103. package/out/controller/control/form/search-form/search-form.controller.js +35 -1
  104. package/out/controller/control/form/search-form/search-form.service.d.ts +0 -8
  105. package/out/controller/control/form/search-form/search-form.service.d.ts.map +1 -1
  106. package/out/controller/control/form/search-form/search-form.service.js +0 -16
  107. package/out/controller/control/gantt/gantt.controller.d.ts +1 -1
  108. package/out/controller/control/gantt/gantt.controller.d.ts.map +1 -1
  109. package/out/controller/control/gantt/gantt.controller.js +8 -5
  110. package/out/controller/control/gantt/gantt.service.d.ts.map +1 -1
  111. package/out/controller/control/gantt/gantt.service.js +41 -7
  112. package/out/controller/control/grid/grid/auto-grid.util.d.ts +30 -0
  113. package/out/controller/control/grid/grid/auto-grid.util.d.ts.map +1 -0
  114. package/out/controller/control/grid/grid/auto-grid.util.js +319 -0
  115. package/out/controller/control/grid/grid/grid-row.state.js +1 -1
  116. package/out/controller/control/grid/grid/grid.controller.d.ts +35 -9
  117. package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
  118. package/out/controller/control/grid/grid/grid.controller.js +106 -23
  119. package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.d.ts.map +1 -1
  120. package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.js +7 -0
  121. package/out/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.d.ts +2 -1
  122. package/out/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.d.ts.map +1 -1
  123. package/out/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.js +3 -2
  124. package/out/controller/control/grid/grid-column/grid-ua-column/grid-ua-column.controller.d.ts.map +1 -1
  125. package/out/controller/control/grid/grid-column/grid-ua-column/grid-ua-column.controller.js +1 -0
  126. package/out/controller/control/kanban/kanban.controller.d.ts.map +1 -1
  127. package/out/controller/control/kanban/kanban.controller.js +1 -0
  128. package/out/controller/control/list/list.controller.d.ts.map +1 -1
  129. package/out/controller/control/list/list.controller.js +1 -0
  130. package/out/controller/control/map/map.controller.d.ts +20 -6
  131. package/out/controller/control/map/map.controller.d.ts.map +1 -1
  132. package/out/controller/control/map/map.controller.js +22 -25
  133. package/out/controller/control/md-ctrl/md-ctrl.controller.d.ts.map +1 -1
  134. package/out/controller/control/md-ctrl/md-ctrl.controller.js +1 -0
  135. package/out/controller/control/toolbar/toolbar.controller.d.ts +8 -1
  136. package/out/controller/control/toolbar/toolbar.controller.d.ts.map +1 -1
  137. package/out/controller/control/toolbar/toolbar.controller.js +22 -5
  138. package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
  139. package/out/controller/control/tree/tree.controller.js +9 -3
  140. package/out/controller/control/tree/tree.service.d.ts +73 -1
  141. package/out/controller/control/tree/tree.service.d.ts.map +1 -1
  142. package/out/controller/control/tree/tree.service.js +190 -9
  143. package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.d.ts +2 -9
  144. package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.d.ts.map +1 -1
  145. package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.js +4 -12
  146. package/out/controller/control/tree-grid-ex/tree-grid-ex-row.state.js +1 -1
  147. package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.d.ts +26 -9
  148. package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.d.ts.map +1 -1
  149. package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.js +45 -12
  150. package/out/controller/control/wizard-panel/wizard-panel.controller.d.ts.map +1 -1
  151. package/out/controller/control/wizard-panel/wizard-panel.controller.js +0 -1
  152. package/out/controller/notification/add-in-changed.controller.d.ts +35 -0
  153. package/out/controller/notification/add-in-changed.controller.d.ts.map +1 -0
  154. package/out/controller/notification/add-in-changed.controller.js +52 -0
  155. package/out/controller/notification/internal-message.controller.d.ts.map +1 -1
  156. package/out/controller/notification/internal-message.controller.js +25 -12
  157. package/out/controller/notification/notice.controller.d.ts +2 -0
  158. package/out/controller/notification/notice.controller.d.ts.map +1 -1
  159. package/out/controller/notification/notice.controller.js +3 -0
  160. package/out/controller/utils/data-file-util/data-file-util.d.ts +5 -3
  161. package/out/controller/utils/data-file-util/data-file-util.d.ts.map +1 -1
  162. package/out/controller/utils/data-file-util/data-file-util.js +34 -8
  163. package/out/engine/de-main-view.engine.d.ts +12 -5
  164. package/out/engine/de-main-view.engine.d.ts.map +1 -1
  165. package/out/engine/de-main-view.engine.js +51 -12
  166. package/out/engine/md-view.engine.d.ts.map +1 -1
  167. package/out/engine/md-view.engine.js +8 -0
  168. package/out/global/global-util/global-util.d.ts +15 -0
  169. package/out/global/global-util/global-util.d.ts.map +1 -1
  170. package/out/global/global-util/global-util.js +14 -0
  171. package/out/interface/common/i-app-service/i-app-service.d.ts +9 -1
  172. package/out/interface/common/i-app-service/i-app-service.d.ts.map +1 -1
  173. package/out/interface/common/i-global-config/i-global-common-config.d.ts +35 -0
  174. package/out/interface/common/i-global-config/i-global-common-config.d.ts.map +1 -0
  175. package/out/interface/common/i-global-config/i-global-common-config.js +1 -0
  176. package/out/interface/common/i-global-config/i-global-config.d.ts +33 -0
  177. package/out/interface/common/i-global-config/i-global-config.d.ts.map +1 -1
  178. package/out/interface/common/i-global-config/i-global-grid-config.d.ts +8 -0
  179. package/out/interface/common/i-global-config/i-global-grid-config.d.ts.map +1 -1
  180. package/out/interface/common/i-global-config/i-global-tree-config.d.ts +16 -0
  181. package/out/interface/common/i-global-config/i-global-tree-config.d.ts.map +1 -0
  182. package/out/interface/common/i-global-config/i-global-tree-config.js +1 -0
  183. package/out/interface/common/i-global-config/i-global-view-config.d.ts +7 -0
  184. package/out/interface/common/i-global-config/i-global-view-config.d.ts.map +1 -1
  185. package/out/interface/common/i-global-config/index.d.ts +2 -0
  186. package/out/interface/common/i-global-config/index.d.ts.map +1 -1
  187. package/out/interface/common/i-global-config/index.js +2 -0
  188. package/out/interface/common/i-open-view-options/i-open-view-options.d.ts +9 -0
  189. package/out/interface/common/i-open-view-options/i-open-view-options.d.ts.map +1 -1
  190. package/out/interface/common/i-overlay-container-options/i-overlay-container-options.d.ts +20 -0
  191. package/out/interface/common/i-overlay-container-options/i-overlay-container-options.d.ts.map +1 -0
  192. package/out/interface/common/i-overlay-container-options/i-overlay-container-options.js +1 -0
  193. package/out/interface/common/index.d.ts +2 -1
  194. package/out/interface/common/index.d.ts.map +1 -1
  195. package/out/interface/controller/controller/control/i-md-control.controller.d.ts +21 -0
  196. package/out/interface/controller/controller/control/i-md-control.controller.d.ts.map +1 -1
  197. package/out/interface/controller/controller/i.controller.d.ts +9 -0
  198. package/out/interface/controller/controller/i.controller.d.ts.map +1 -1
  199. package/out/interface/controller/controller/notice/i-add-in-changed.controller.d.ts +9 -0
  200. package/out/interface/controller/controller/notice/i-add-in-changed.controller.d.ts.map +1 -0
  201. package/out/interface/controller/controller/notice/i-add-in-changed.controller.js +1 -0
  202. package/out/interface/controller/controller/notice/i-notice.controller.d.ts +8 -0
  203. package/out/interface/controller/controller/notice/i-notice.controller.d.ts.map +1 -1
  204. package/out/interface/controller/controller/notice/index.d.ts +1 -0
  205. package/out/interface/controller/controller/notice/index.d.ts.map +1 -1
  206. package/out/interface/controller/controller/view/i-view.controller.d.ts +6 -0
  207. package/out/interface/controller/controller/view/i-view.controller.d.ts.map +1 -1
  208. package/out/interface/controller/event/control/i-control.event.d.ts +16 -0
  209. package/out/interface/controller/event/control/i-control.event.d.ts.map +1 -1
  210. package/out/interface/controller/event/control/i-dashboard.event.d.ts +12 -12
  211. package/out/interface/controller/event/control/i-dashboard.event.d.ts.map +1 -1
  212. package/out/interface/controller/event/control/i-map.event.d.ts +58 -6
  213. package/out/interface/controller/event/control/i-map.event.d.ts.map +1 -1
  214. package/out/interface/controller/event/view/i-view.event.d.ts +13 -0
  215. package/out/interface/controller/event/view/i-view.event.d.ts.map +1 -1
  216. package/out/interface/controller/state/control/i-app-menu.state.d.ts +8 -0
  217. package/out/interface/controller/state/control/i-app-menu.state.d.ts.map +1 -1
  218. package/out/interface/controller/state/control/i-chart.state.d.ts +7 -0
  219. package/out/interface/controller/state/control/i-chart.state.d.ts.map +1 -1
  220. package/out/interface/controller/state/control/i-grid.state.d.ts +7 -0
  221. package/out/interface/controller/state/control/i-grid.state.d.ts.map +1 -1
  222. package/out/interface/controller/state/control/i-map.state.d.ts +6 -0
  223. package/out/interface/controller/state/control/i-map.state.d.ts.map +1 -1
  224. package/out/interface/controller/state/control/i-md-control.state.d.ts +7 -0
  225. package/out/interface/controller/state/control/i-md-control.state.d.ts.map +1 -1
  226. package/out/interface/service/service/i-app-de.service.d.ts +12 -1
  227. package/out/interface/service/service/i-app-de.service.d.ts.map +1 -1
  228. package/out/interface/util/i-app-util/i-app-util.d.ts +69 -0
  229. package/out/interface/util/i-app-util/i-app-util.d.ts.map +1 -1
  230. package/out/interface/util/i-notice-util/i-notice-util.d.ts +7 -0
  231. package/out/interface/util/i-notice-util/i-notice-util.d.ts.map +1 -1
  232. package/out/interface/util/i-open-view-util/i-open-view-util.d.ts +31 -13
  233. package/out/interface/util/i-open-view-util/i-open-view-util.d.ts.map +1 -1
  234. package/out/interface/util/i-voice-util/i-voice-util.d.ts +1 -1
  235. package/out/interface/util/i-voice-util/i-voice-util.d.ts.map +1 -1
  236. package/out/interface/util/index.d.ts +1 -1
  237. package/out/interface/util/index.d.ts.map +1 -1
  238. package/out/locale/en/index.d.ts +6 -0
  239. package/out/locale/en/index.d.ts.map +1 -1
  240. package/out/locale/en/index.js +6 -0
  241. package/out/locale/zh-CN/index.d.ts +6 -0
  242. package/out/locale/zh-CN/index.d.ts.map +1 -1
  243. package/out/locale/zh-CN/index.js +6 -0
  244. package/out/logic-scheduler/executor/app-ui-logic-executor.js +1 -1
  245. package/out/logic-scheduler/scheduler/logic-scheduler.d.ts.map +1 -1
  246. package/out/logic-scheduler/scheduler/logic-scheduler.js +6 -1
  247. package/out/model/utils/util.d.ts.map +1 -1
  248. package/out/model/utils/util.js +4 -1
  249. package/out/platform/provider/platform-provider-base.js +2 -2
  250. package/out/register/helper/grid-column-register.d.ts +9 -0
  251. package/out/register/helper/grid-column-register.d.ts.map +1 -1
  252. package/out/register/helper/grid-column-register.js +52 -0
  253. package/out/register/helper/panel-item-register.d.ts.map +1 -1
  254. package/out/register/helper/panel-item-register.js +1 -7
  255. package/out/service/dto/method.dto.d.ts.map +1 -1
  256. package/out/service/dto/method.dto.js +15 -12
  257. package/out/service/mqtt/collaborate.service.js +1 -1
  258. package/out/service/mqtt/mqtt.service.d.ts +27 -1
  259. package/out/service/mqtt/mqtt.service.d.ts.map +1 -1
  260. package/out/service/mqtt/mqtt.service.js +51 -3
  261. package/out/service/service/auth/v7-auth.service.d.ts.map +1 -1
  262. package/out/service/service/auth/v7-auth.service.js +49 -39
  263. package/out/service/service/control/control.service.js +1 -1
  264. package/out/service/service/entity/de.service.d.ts +12 -1
  265. package/out/service/service/entity/de.service.d.ts.map +1 -1
  266. package/out/service/service/entity/de.service.js +31 -5
  267. package/out/service/service/entity/method/de-action.d.ts.map +1 -1
  268. package/out/service/service/entity/method/de-action.js +23 -10
  269. package/out/service/service/entity/method/fetch.d.ts.map +1 -1
  270. package/out/service/service/entity/method/fetch.js +7 -3
  271. package/out/service/service/entity/method/method-renturn.js +1 -1
  272. package/out/service/service/third-auth/third-auth.service.d.ts.map +1 -1
  273. package/out/service/service/third-auth/third-auth.service.js +30 -13
  274. package/out/service/utils/de-dq-cond/ps-de-dq-cond-engine.d.ts.map +1 -1
  275. package/out/service/utils/de-dq-cond/ps-de-dq-cond-engine.js +7 -1
  276. package/out/service/utils/de-dq-cond/ps-model-single-cond-base.d.ts +11 -0
  277. package/out/service/utils/de-dq-cond/ps-model-single-cond-base.d.ts.map +1 -1
  278. package/out/service/utils/de-dq-cond/ps-model-single-cond-base.js +10 -0
  279. package/out/service/utils/de-dq-cond-util/de-dq-cond-util.d.ts.map +1 -1
  280. package/out/service/utils/de-dq-cond-util/de-dq-cond-util.js +6 -2
  281. package/out/service/utils/util/util.js +1 -1
  282. package/out/service/vo/control.vo.d.ts.map +1 -1
  283. package/out/service/vo/control.vo.js +12 -2
  284. package/out/service/vo/map-data/map-data.d.ts.map +1 -1
  285. package/out/service/vo/map-data/map-data.js +33 -3
  286. package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts +20 -2
  287. package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts.map +1 -1
  288. package/out/service/vo/tree-node-data/tree-data-set-node-data.js +38 -12
  289. package/out/service/vo/ui-map-field.d.ts +9 -0
  290. package/out/service/vo/ui-map-field.d.ts.map +1 -1
  291. package/out/service/vo/ui-map-field.js +11 -0
  292. package/out/ui-action/provider/backend-ui-action-provider.js +2 -2
  293. package/out/ui-action/provider/front-ui-action-provider.d.ts +10 -2
  294. package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
  295. package/out/ui-action/provider/front-ui-action-provider.js +46 -9
  296. package/out/ui-action/provider/ui-action-provider-base.d.ts.map +1 -1
  297. package/out/ui-action/provider/ui-action-provider-base.js +6 -1
  298. package/out/ui-action/uiaction-util.d.ts.map +1 -1
  299. package/out/ui-action/uiaction-util.js +2 -1
  300. package/out/utils/file-util/file-util.d.ts.map +1 -1
  301. package/out/utils/file-util/file-util.js +8 -5
  302. package/out/utils/theme-util/theme-util.js +1 -1
  303. package/out/utils/ui-domain/ui-domain.d.ts +22 -6
  304. package/out/utils/ui-domain/ui-domain.d.ts.map +1 -1
  305. package/out/utils/ui-domain/ui-domain.js +20 -7
  306. package/out/utils/ui-domain-manager/ui-domain-manager.d.ts +4 -4
  307. package/out/utils/ui-domain-manager/ui-domain-manager.d.ts.map +1 -1
  308. package/out/utils/ui-domain-manager/ui-domain-manager.js +4 -4
  309. package/package.json +10 -12
@@ -8,19 +8,17 @@ import { SysUIActionTag } from '../../constant';
8
8
  /**
9
9
  * 前台调用界面行为适配器
10
10
  *
11
- * @author lxm
12
- * @date 2022-10-25 15:10:51
13
11
  * @export
14
12
  * @class FrontUIActionProvider
15
13
  * @implements {IUIActionProvider}
16
14
  */
17
15
  export class FrontUIActionProvider extends UIActionProviderBase {
18
16
  async execAction(action, args) {
19
- const { context, params, data, event, noWaitRoute } = args;
17
+ const { context, params, data, event, noWaitRoute, view } = args;
20
18
  let actionResult = {};
21
19
  switch (action.frontProcessType) {
22
20
  case 'OPENHTMLPAGE': {
23
- const url = StringUtil.fill(action.htmlPageUrl, context, data === null || data === void 0 ? void 0 : data[0]);
21
+ const url = StringUtil.fill(action.htmlPageUrl, context, params, data === null || data === void 0 ? void 0 : data[0]);
24
22
  window.open(url, '_blank');
25
23
  break;
26
24
  }
@@ -34,7 +32,7 @@ export class FrontUIActionProvider extends UIActionProviderBase {
34
32
  const { resultContext, resultParams } = await this.handleParams(action, context, data, params);
35
33
  // 解析自定义 视图 option 参数
36
34
  const options = this.handleViewOptionParams(resultParams);
37
- const res = await ibiz.commands.execute(OpenAppViewCommand.TAG, frontPSAppView, resultContext, resultParams, Object.assign({ event, noWaitRoute }, options));
35
+ const res = await ibiz.commands.execute(OpenAppViewCommand.TAG, frontPSAppView, resultContext, resultParams, Object.assign({ ctx: view.getCtx(), event, noWaitRoute }, options));
38
36
  // 打开视图取消操作
39
37
  if (!(res === null || res === void 0 ? void 0 : res.ok)) {
40
38
  actionResult.cancel = true;
@@ -64,6 +62,9 @@ export class FrontUIActionProvider extends UIActionProviderBase {
64
62
  case 'QUICKEDIT':
65
63
  actionResult = await this.openQuickEdit(action, args);
66
64
  break;
65
+ case 'CHAT':
66
+ actionResult = await this.openAiChat(action, args);
67
+ break;
67
68
  default:
68
69
  throw new ModelError(action, ibiz.i18n.t('runtime.uiAction.frontProcessingModes', {
69
70
  frontProcessType: action.frontProcessType,
@@ -185,23 +186,29 @@ export class FrontUIActionProvider extends UIActionProviderBase {
185
186
  async executeDataExport(action, args) {
186
187
  var _a;
187
188
  // 处理参数
188
- const { resultParams } = await this.handleParams(action, args.context, args.data, args.params);
189
+ const { resultContext, resultParams } = await this.handleParams(action, args.context, args.data, args.params);
189
190
  const appDataEntity = await ibiz.hub.getAppDataEntity(action.appDataEntityId, action.appId);
190
191
  const appDEDataExport = (_a = appDataEntity.appDEDataExports) === null || _a === void 0 ? void 0 : _a.find(dataExport => {
191
192
  return dataExport.id === action.appDEDataExportId;
192
193
  });
193
194
  if (appDEDataExport) {
194
195
  // TODO 临时写死fetchdefault,应该从appDEDataExport的主表格上获取加载行为,但现在缺主表格模型,后续优化
195
- const url = `/${appDataEntity.deapicodeName2}/exportdata/fetchdefault?srfexporttag=${appDEDataExport.codeName}`;
196
+ const url = `/${appDataEntity.deapicodeName2}/exportdata/fetchdefault`;
197
+ // 查询参数
198
+ const queryParam = { srfexporttag: appDEDataExport.codeName };
199
+ if (resultContext === null || resultContext === void 0 ? void 0 : resultContext.srfdatatype) {
200
+ Object.assign(queryParam, { srfdatatype: resultContext.srfdatatype });
201
+ }
196
202
  // 参数
197
203
  const params = Object.assign(Object.assign({ page: 0, size: appDEDataExport.maxRowCount ? appDEDataExport.maxRowCount : 1000 }, args.params), resultParams);
198
204
  const res = await ibiz.net.request(url, {
199
205
  method: 'post',
206
+ responseType: 'blob',
207
+ params: queryParam,
200
208
  data: params,
201
209
  });
202
210
  if (res.status === 200) {
203
- let fileName = `${appDataEntity.logicName}表.xlsx`;
204
- fileName = decodeURIComponent(fileName);
211
+ const fileName = ibiz.util.file.getFileName(res);
205
212
  const blob = new Blob([res.data], {
206
213
  type: 'application/vnd.ms-excel',
207
214
  });
@@ -337,4 +344,34 @@ export class FrontUIActionProvider extends UIActionProviderBase {
337
344
  }
338
345
  return tempFormModel;
339
346
  }
347
+ /**
348
+ * 打开AI聊天框
349
+ *
350
+ * @protected
351
+ * @param {IAppDEUIAction} action
352
+ * @param {IUILogicParams} args
353
+ * @return {*} {Promise<IUIActionResult>}
354
+ * @memberof FrontUIActionProvider
355
+ */
356
+ async openAiChat(action, args) {
357
+ var _a;
358
+ if (!ibiz.env.enableAI)
359
+ throw new RuntimeError(ibiz.i18n.t('runtime.uiAction.noEnableAI'));
360
+ const { appDEACModeId, appDataEntityId, appId } = action;
361
+ const { resultContext, resultParams } = await this.handleParams(action, args.context, args.data, args.params);
362
+ const context = Object.assign(resultContext, { srfappid: appId });
363
+ if (!appDataEntityId || !appDEACModeId) {
364
+ throw new RuntimeError(ibiz.i18n.t('runtime.uiAction.noEntityOrAcMode'));
365
+ }
366
+ const data = await ibiz.appUtil.openAiChat({
367
+ appDEACModeId,
368
+ appDataEntityId,
369
+ context,
370
+ view: args.view,
371
+ ctrl: args.ctrl,
372
+ params: resultParams,
373
+ data: (_a = args.data) === null || _a === void 0 ? void 0 : _a[0],
374
+ });
375
+ return { data };
376
+ }
340
377
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ui-action-provider-base.d.ts","sourceRoot":"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;;;;;;OASG;IACH,SAAS,CAAC,WAAW,CACnB,IAAI,EAAE,SAAS,GAAG,SAAS,EAC3B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,MAAM,GAAG,SAAS;IA4CrB;;;;;;;;OAQG;IACH,sBAAsB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK;CAc5C"}
1
+ {"version":3,"file":"ui-action-provider-base.d.ts","sourceRoot":"","sources":["../../../src/ui-action/provider/ui-action-provider-base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAgC,MAAM,kBAAkB,CAAC;AAChF,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAMzB;;;;;;;GAOG;AACH,8BAAsB,oBAAqB,YAAW,iBAAiB;IACrE;;;;;;;OAOG;IACG,IAAI,CACR,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;IAgF3B;;;;;;;;OAQG;IACH,SAAS,CAAC,iBAAiB,CACzB,IAAI,EAAE,cAAc,EACpB,MAAM,EAAE,eAAe,GACtB,cAAc;IASjB;;;;;;;;OAQG;IACH,SAAS,CAAC,WAAW,CACnB,MAAM,EAAE,eAAe,EACvB,IAAI,EAAE,eAAe,GACpB,eAAe;IAUlB;;;;;;;OAOG;IACG,SAAS,CACb,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,OAAO,CAAC;IAWnB;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,UAAU,CACjB,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,eAAe,CAAC;IAE3B;;;;;;;;;;;OAWG;IACG,YAAY,CAChB,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC;IAOvC;;;;;;;;;;;;;;;;OAgBG;cACa,YAAY,CAC1B,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EAAE,EACb,MAAM,EAAE,OAAO,GACd,OAAO,CAAC;QACT,aAAa,EAAE,QAAQ,CAAC;QACxB,UAAU,EAAE,KAAK,EAAE,CAAC;QACpB,YAAY,EAAE,OAAO,CAAC;KACvB,CAAC;IAmGF;;;;;;;;;OASG;IACH,SAAS,CAAC,WAAW,CACnB,IAAI,EAAE,SAAS,GAAG,SAAS,EAC3B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,MAAM,GAAG,SAAS;IA4CrB;;;;;;;;OAQG;IACH,sBAAsB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK;CAc5C"}
@@ -41,6 +41,7 @@ export class UIActionProviderBase {
41
41
  }
42
42
  // **用户操作确认**
43
43
  if (!(await this.isConfirm(action, args))) {
44
+ result.cancel = true;
44
45
  return this.returnError(result, view);
45
46
  }
46
47
  // ** 执行不同类型的界面行为独有逻辑,并且合并result
@@ -66,7 +67,11 @@ export class UIActionProviderBase {
66
67
  else {
67
68
  const nextResult = await this.doNextAction(action, nextActionParams, action.appId);
68
69
  if (nextResult) {
69
- Object.assign(result, nextResult);
70
+ // 合并非空项
71
+ Object.keys(nextResult).forEach(key => {
72
+ if (nextResult[key] !== undefined)
73
+ result[key] = nextResult[key];
74
+ });
70
75
  if (nextResult.cancel === true) {
71
76
  return this.returnError(result, view);
72
77
  }
@@ -1 +1 @@
1
- {"version":3,"file":"uiaction-util.d.ts","sourceRoot":"","sources":["../../src/ui-action/uiaction-util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI/D;;;;;;;GAOG;AACH,qBAAa,YAAY;IACvB;;;;;;;;;OASG;WACU,IAAI,CACf,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,eAAe,CAAC;IAkB3B;;;;;;;OAOG;WACU,eAAe,CAC1B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC;IA6BhB;;;;;;;;;OASG;mBACkB,iBAAiB;IAMtC;;;;;;;;;;OAUG;mBACkB,sBAAsB;CAW5C"}
1
+ {"version":3,"file":"uiaction-util.d.ts","sourceRoot":"","sources":["../../src/ui-action/uiaction-util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI/D;;;;;;;GAOG;AACH,qBAAa,YAAY;IACvB;;;;;;;;;OASG;WACU,IAAI,CACf,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,eAAe,CAAC;IAkB3B;;;;;;;OAOG;WACU,eAAe,CAC1B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC;IA8BhB;;;;;;;;;OASG;mBACkB,iBAAiB;IAMtC;;;;;;;;;;OAUG;mBACkB,sBAAsB;CAW5C"}
@@ -48,7 +48,8 @@ export class UIActionUtil {
48
48
  var _a, _b;
49
49
  const result = await this.exec(actionId, params, appId);
50
50
  if (result.closeView) {
51
- params.view.modal.ignoreDismissCheck = true;
51
+ // 修复编辑器失焦后,调整数据后直接点击关闭按钮导致无法触发自动保存
52
+ // params.view.modal.ignoreDismissCheck = true;
52
53
  params.view.closeView({ ok: true });
53
54
  }
54
55
  else if (result.refresh) {
@@ -1 +1 @@
1
- {"version":3,"file":"file-util.d.ts","sourceRoot":"","sources":["../../../src/utils/file-util/file-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EAGd,MAAM,qBAAqB,CAAC;AAK7B,qBAAa,QAAQ;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,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,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAuB7D;;;;;;;;;;OAUG;IACG,UAAU,CACd,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,KAAK,GACb,OAAO,CAAC,KAAK,CAAC;IAiBjB;;;;;;OAMG;IACH,WAAW,CAAC,QAAQ,EAAE,aAAa,CAAC,KAAK,CAAC,GAAG,MAAM;IAmBnD;;;;;;;;;OASG;IACG,mBAAmB,CACvB,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,KAAK,EACX,MAAM,GAAE,KAAU,GACjB,OAAO,CAAC,KAAK,EAAE,CAAC;IA+BnB;;;;;;;OAOG;IACH,UAAU,CACR,MAAM,GAAE,MAAW,EACnB,QAAQ,GAAE,OAAe,GACxB,OAAO,CAAC,QAAQ,CAAC;CAuBrB"}
@@ -1,6 +1,5 @@
1
- import { CoreConst, RuntimeError, downloadFileFromBlob, } from '@ibiz-template/core';
1
+ import { CoreConst, RuntimeError, downloadFileFromBlob, getAppCookie, } from '@ibiz-template/core';
2
2
  import qs from 'qs';
3
- import { getCookie } from 'qx-util';
4
3
  import { convertNavData } from '../nav-params/nav-params';
5
4
  export class FileUtil {
6
5
  /**
@@ -154,9 +153,13 @@ export class FileUtil {
154
153
  const urls = ibiz.util.file.calcFileUpDownUrl(context, params, data);
155
154
  const files = await ibiz.util.file.chooseFile(accept, multiple);
156
155
  let promises = [];
157
- const headers = {
158
- [`${ibiz.env.tokenHeader}Authorization`]: `${ibiz.env.tokenPrefix}Bearer ${getCookie(CoreConst.TOKEN)}`,
159
- };
156
+ const headers = {};
157
+ const token = getAppCookie(CoreConst.TOKEN);
158
+ if (token) {
159
+ Object.assign(headers, {
160
+ [`${ibiz.env.tokenHeader}Authorization`]: `${ibiz.env.tokenPrefix}Bearer ${token}`,
161
+ });
162
+ }
160
163
  if (showUploadManager) {
161
164
  promises = await ibiz.notification.uploadManager({
162
165
  uploadUrl: urls.uploadUrl,
@@ -45,7 +45,7 @@ export class ThemeUtil {
45
45
  */
46
46
  async loadTheme(theme, type = 'COLOR') {
47
47
  const data = clone(theme.themeParams || {});
48
- const path = data['theme-package-path'];
48
+ const path = data['theme-package-path'] || theme.themeUrl;
49
49
  delete data.appId;
50
50
  delete data['theme-package-path'];
51
51
  await ibiz.plugin.loadPlugin({
@@ -1,4 +1,5 @@
1
1
  import { IAppDERS } from '@ibiz/model-core';
2
+ import { QXEvent } from 'qx-util';
2
3
  import { Transaction } from './transaction';
3
4
  /**
4
5
  * 界面域
@@ -27,6 +28,19 @@ export declare class UIDomain {
27
28
  readonly state: {
28
29
  rsInit: boolean;
29
30
  };
31
+ /**
32
+ * 事件对象
33
+ *
34
+ * @author tony001
35
+ * @param state:界面域是否发生数据变更,isTrusted:是否可信任(用户脚本执行不可信任,预置逻辑可信任)
36
+ * @date 2025-03-27 11:03:31
37
+ */
38
+ readonly evt: QXEvent<{
39
+ stateChange: (params: {
40
+ state: boolean;
41
+ isTrusted: boolean;
42
+ }) => void;
43
+ }>;
30
44
  /**
31
45
  * DTO 子父关系映射
32
46
  *
@@ -71,17 +85,19 @@ export declare class UIDomain {
71
85
  /**
72
86
  * 界面域数据发生变更
73
87
  *
74
- * @author chitanda
75
- * @date 2024-03-04 14:03:06
88
+ * @author tony001
89
+ * @date 2025-03-27 11:03:09
90
+ * @param {boolean} [isTrusted=true] 是否可信任(用户脚本执行不可信任,预置逻辑可信任)
76
91
  */
77
- dataChange(): void;
92
+ dataChange(isTrusted?: boolean): void;
78
93
  /**
79
94
  * 界面域数据变更已提交
80
95
  *
81
- * @author chitanda
82
- * @date 2024-03-04 14:03:15
96
+ * @author tony001
97
+ * @date 2025-03-27 11:03:54
98
+ * @param {boolean} [isTrusted=true]
83
99
  */
84
- dataChangeCompleted(): void;
100
+ dataChangeCompleted(isTrusted?: boolean): void;
85
101
  /**
86
102
  * 设置当前界面域下,指定实体的相关父关系以及属性。在 DTO 包解析时设置此参数,销毁时清空
87
103
  *
@@ -1 +1 @@
1
- {"version":3,"file":"ui-domain.d.ts","sourceRoot":"","sources":["../../../src/utils/ui-domain/ui-domain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;GAOG;AACH,qBAAa,QAAQ;IACnB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAEpB;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,OAAO,CAAA;KAAE,CAAqB;IAExD;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAa;IAErD;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAa;IAEtD;;;;;;OAMG;IACH,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAqB;IAEtD;;;;;OAKG;IACH,gBAAgB,UAAS;IAEzB;;;;;;OAMG;gBACS,EAAE,CAAC,EAAE,MAAM;IAQvB;;;;;OAKG;IACH,UAAU,IAAI,IAAI;IAIlB;;;;;OAKG;IACH,mBAAmB,IAAI,IAAI;IAI3B;;;;;;;OAOG;IACH,YAAY,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,E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;IAK3C;;;;;;OAMG;IACH,mBAAmB,CAAC,SAAS,GAAE,OAAc,GAAG,IAAI;IAKpD;;;;;;;OAOG;IACH,YAAY,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI;IAIhE;;;;;;;OAOG;IACH,YAAY,CAAC,eAAe,EAAE,MAAM,GAAG,QAAQ,EAAE;IAOjD;;;;;;;OAOG;IACH,mBAAmB,CAAC,eAAe,EAAE,MAAM,GAAG,QAAQ,EAAE;IAOxD;;;;;OAKG;IACH,YAAY,IAAI,IAAI;IAcpB;;;;;OAKG;IACH,OAAO,IAAI,IAAI;CAYhB"}
@@ -1,4 +1,4 @@
1
- import { createUUID } from 'qx-util';
1
+ import { QXEvent, createUUID } from 'qx-util';
2
2
  import { Transaction } from './transaction';
3
3
  /**
4
4
  * 界面域
@@ -25,6 +25,14 @@ export class UIDomain {
25
25
  * @type {{ rsInit: boolean }} 关系是否已经初始化
26
26
  */
27
27
  this.state = { rsInit: false };
28
+ /**
29
+ * 事件对象
30
+ *
31
+ * @author tony001
32
+ * @param state:界面域是否发生数据变更,isTrusted:是否可信任(用户脚本执行不可信任,预置逻辑可信任)
33
+ * @date 2025-03-27 11:03:31
34
+ */
35
+ this.evt = new QXEvent();
28
36
  /**
29
37
  * DTO 子父关系映射
30
38
  *
@@ -68,20 +76,24 @@ export class UIDomain {
68
76
  /**
69
77
  * 界面域数据发生变更
70
78
  *
71
- * @author chitanda
72
- * @date 2024-03-04 14:03:06
79
+ * @author tony001
80
+ * @date 2025-03-27 11:03:09
81
+ * @param {boolean} [isTrusted=true] 是否可信任(用户脚本执行不可信任,预置逻辑可信任)
73
82
  */
74
- dataChange() {
83
+ dataChange(isTrusted = true) {
75
84
  this.dataModification = true;
85
+ this.evt.emit('stateChange', { state: this.dataModification, isTrusted });
76
86
  }
77
87
  /**
78
88
  * 界面域数据变更已提交
79
89
  *
80
- * @author chitanda
81
- * @date 2024-03-04 14:03:15
90
+ * @author tony001
91
+ * @date 2025-03-27 11:03:54
92
+ * @param {boolean} [isTrusted=true]
82
93
  */
83
- dataChangeCompleted() {
94
+ dataChangeCompleted(isTrusted = true) {
84
95
  this.dataModification = false;
96
+ this.evt.emit('stateChange', { state: this.dataModification, isTrusted });
85
97
  }
86
98
  /**
87
99
  * 设置当前界面域下,指定实体的相关父关系以及属性。在 DTO 包解析时设置此参数,销毁时清空
@@ -157,5 +169,6 @@ export class UIDomain {
157
169
  srfsessionid: this.id,
158
170
  });
159
171
  });
172
+ this.evt.reset();
160
173
  }
161
174
  }
@@ -29,12 +29,12 @@ export declare class UIDomainManager {
29
29
  /**
30
30
  * 获取域
31
31
  *
32
- * @author chitanda
33
- * @date 2023-12-22 15:12:17
32
+ * @author tony001
33
+ * @date 2025-01-02 17:01:52
34
34
  * @param {string} id
35
- * @return {*} {UIDomain}
35
+ * @return {*} {(UIDomain | undefined)}
36
36
  */
37
- get(id: string): UIDomain;
37
+ get(id: string): UIDomain | undefined;
38
38
  /**
39
39
  * 判断是否存在指定界面域
40
40
  *
@@ -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;IAWzB;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIxB;;;;;;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,GAAG,SAAS;IAWrC;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIxB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;CAM1B"}
@@ -35,16 +35,16 @@ export class UIDomainManager {
35
35
  /**
36
36
  * 获取域
37
37
  *
38
- * @author chitanda
39
- * @date 2023-12-22 15:12:17
38
+ * @author tony001
39
+ * @date 2025-01-02 17:01:52
40
40
  * @param {string} id
41
- * @return {*} {UIDomain}
41
+ * @return {*} {(UIDomain | undefined)}
42
42
  */
43
43
  get(id) {
44
44
  if (this.domainMap.has(id)) {
45
45
  return this.domainMap.get(id);
46
46
  }
47
- throw new Error(ibiz.i18n.t('runtime.utils.uiDomainManager.invalidInterfaceDomain', {
47
+ ibiz.log.error(ibiz.i18n.t('runtime.utils.uiDomainManager.invalidInterfaceDomain', {
48
48
  id,
49
49
  }));
50
50
  }
package/package.json CHANGED
@@ -1,18 +1,15 @@
1
1
  {
2
2
  "name": "@ibiz-template/runtime",
3
- "version": "0.7.38-alpha.45",
4
- "description": "控制器包",
3
+ "version": "0.7.39",
4
+ "description": "运行时逻辑库",
5
5
  "type": "module",
6
6
  "main": "out/index.js",
7
7
  "types": "out/index.d.ts",
8
8
  "system": "./dist/system/index.system.js",
9
- "repository": {
10
- "type": "git",
11
- "url": "https://gitee.com/iBizModeling/ibiz-template.git"
12
- },
13
9
  "files": [
14
10
  "dist",
15
- "out"
11
+ "out",
12
+ "README.md"
16
13
  ],
17
14
  "scripts": {
18
15
  "dev": "tsc --watch",
@@ -30,7 +27,7 @@
30
27
  "publish:npm": "npm run build && npm publish --access public --registry=https://registry.npmjs.org/",
31
28
  "publish:local": "npm run build && npm publish --access public --registry=http://172.16.240.221:8081/repository/local/"
32
29
  },
33
- "author": "chitanda",
30
+ "author": "iBiz",
34
31
  "license": "MIT",
35
32
  "dependencies": {
36
33
  "animejs": "^3.2.2",
@@ -40,8 +37,8 @@
40
37
  "jsencrypt": "^3.3.2"
41
38
  },
42
39
  "devDependencies": {
43
- "@ibiz-template/core": "^0.7.38-alpha.43",
44
- "@ibiz/model-core": "^0.1.64",
40
+ "@ibiz-template/core": "^0.7.39",
41
+ "@ibiz/model-core": "^0.1.68",
45
42
  "@types/animejs": "^3.1.12",
46
43
  "@types/path-browserify": "^1.0.2",
47
44
  "@types/qs": "^6.9.11",
@@ -59,7 +56,7 @@
59
56
  },
60
57
  "peerDependencies": {
61
58
  "@ibiz-template/core": "^0.6.0",
62
- "@ibiz/model-core": "^0.1.64",
59
+ "@ibiz/model-core": "^0.1.68",
63
60
  "async-validator": "^4.2.5",
64
61
  "dayjs": "^1.11.7",
65
62
  "echarts": "^5.4.3",
@@ -70,5 +67,6 @@
70
67
  "qs": "^6.11.0",
71
68
  "qx-util": "^0.4.8",
72
69
  "ramda": "^0.29.0"
73
- }
70
+ },
71
+ "gitHead": "763fadf3223009ad5ac7bbb63fc03b6c7b0d6905"
74
72
  }