@ibiz-template/runtime 0.0.3-beta.0 → 0.0.3-beta.2

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 (405) hide show
  1. package/dist/system/index.system.js +1 -1
  2. package/out/application.d.ts +9 -1
  3. package/out/application.d.ts.map +1 -1
  4. package/out/application.js +3 -1
  5. package/out/controller/control/app-menu.d.ts +3 -0
  6. package/out/controller/control/app-menu.d.ts.map +1 -1
  7. package/out/controller/control/app-menu.js +4 -1
  8. package/out/controller/control/control.d.ts +8 -0
  9. package/out/controller/control/control.d.ts.map +1 -1
  10. package/out/controller/control/control.js +9 -1
  11. package/out/controller/control/form/edit-form.d.ts +2 -0
  12. package/out/controller/control/form/edit-form.d.ts.map +1 -1
  13. package/out/controller/control/form/edit-form.js +5 -3
  14. package/out/controller/control/form/form-button.d.ts +3 -0
  15. package/out/controller/control/form/form-button.d.ts.map +1 -1
  16. package/out/controller/control/form/form-button.js +5 -0
  17. package/out/controller/control/form/form-container.d.ts +3 -0
  18. package/out/controller/control/form/form-container.d.ts.map +1 -1
  19. package/out/controller/control/form/form-container.js +5 -0
  20. package/out/controller/control/form/form-detail.d.ts +18 -43
  21. package/out/controller/control/form/form-detail.d.ts.map +1 -1
  22. package/out/controller/control/form/form-detail.js +25 -66
  23. package/out/controller/control/form/form-druipart.d.ts +3 -24
  24. package/out/controller/control/form/form-druipart.d.ts.map +1 -1
  25. package/out/controller/control/form/form-druipart.js +12 -11
  26. package/out/controller/control/form/form-group-panel.d.ts +3 -0
  27. package/out/controller/control/form/form-group-panel.d.ts.map +1 -1
  28. package/out/controller/control/form/form-group-panel.js +5 -0
  29. package/out/controller/control/form/form-item.d.ts +3 -25
  30. package/out/controller/control/form/form-item.d.ts.map +1 -1
  31. package/out/controller/control/form/form-item.js +14 -41
  32. package/out/controller/control/form/form-page.d.ts +3 -8
  33. package/out/controller/control/form/form-page.d.ts.map +1 -1
  34. package/out/controller/control/form/form-page.js +4 -9
  35. package/out/controller/control/form/form-raw-item.d.ts +3 -0
  36. package/out/controller/control/form/form-raw-item.d.ts.map +1 -1
  37. package/out/controller/control/form/form-raw-item.js +5 -0
  38. package/out/controller/control/form/form-tab-page.d.ts +3 -0
  39. package/out/controller/control/form/form-tab-page.d.ts.map +1 -1
  40. package/out/controller/control/form/form-tab-page.js +5 -0
  41. package/out/controller/control/form/form-tab-panel.d.ts +3 -0
  42. package/out/controller/control/form/form-tab-panel.d.ts.map +1 -1
  43. package/out/controller/control/form/form-tab-panel.js +5 -0
  44. package/out/controller/control/form/form.d.ts +12 -17
  45. package/out/controller/control/form/form.d.ts.map +1 -1
  46. package/out/controller/control/form/form.js +17 -21
  47. package/out/controller/control/form/search-form.d.ts +2 -0
  48. package/out/controller/control/form/search-form.d.ts.map +1 -1
  49. package/out/controller/control/form/search-form.js +7 -2
  50. package/out/controller/control/grid/grid.d.ts +15 -0
  51. package/out/controller/control/grid/grid.d.ts.map +1 -1
  52. package/out/controller/control/grid/grid.js +33 -13
  53. package/out/controller/control/md.d.ts +46 -0
  54. package/out/controller/control/md.d.ts.map +1 -1
  55. package/out/controller/control/md.js +109 -19
  56. package/out/controller/control/tree.d.ts +20 -9
  57. package/out/controller/control/tree.d.ts.map +1 -1
  58. package/out/controller/control/tree.js +52 -14
  59. package/out/controller/control/view-panel.d.ts.map +1 -1
  60. package/out/controller/control/view-panel.js +0 -4
  61. package/out/controller/editor/editor.d.ts +1 -1
  62. package/out/controller/editor/picker.d.ts +13 -2
  63. package/out/controller/editor/picker.d.ts.map +1 -1
  64. package/out/controller/editor/picker.js +24 -11
  65. package/out/controller/editor/upload.js +2 -2
  66. package/out/controller/index.d.ts +2 -1
  67. package/out/controller/index.d.ts.map +1 -1
  68. package/out/controller/index.js +2 -1
  69. package/out/controller/interface/ability/view/i-dashboard-view-ability.d.ts +12 -0
  70. package/out/controller/interface/ability/view/i-dashboard-view-ability.d.ts.map +1 -0
  71. package/out/{service/vo/tree-node-data.js → controller/interface/ability/view/i-dashboard-view-ability.js} +0 -0
  72. package/out/controller/interface/ability/view/i-grid-exp-view-ability.d.ts +27 -0
  73. package/out/controller/interface/ability/view/i-grid-exp-view-ability.d.ts.map +1 -0
  74. package/out/controller/interface/ability/view/i-grid-exp-view-ability.js +1 -0
  75. package/out/controller/interface/ability/view/i-tree-exp-view-ability.d.ts +3 -3
  76. package/out/controller/interface/ability/view/i-tree-exp-view-ability.d.ts.map +1 -1
  77. package/out/controller/interface/ability/view/index.d.ts +2 -0
  78. package/out/controller/interface/ability/view/index.d.ts.map +1 -1
  79. package/out/controller/interface/ability/view/index.js +2 -0
  80. package/out/controller/interface/event/view/i-dashboard-view-event.d.ts +12 -0
  81. package/out/controller/interface/event/view/i-dashboard-view-event.d.ts.map +1 -0
  82. package/out/controller/interface/event/view/i-dashboard-view-event.js +1 -0
  83. package/out/controller/interface/event/view/i-grid-exp-view-event.d.ts +10 -0
  84. package/out/controller/interface/event/view/i-grid-exp-view-event.d.ts.map +1 -0
  85. package/out/controller/interface/event/view/i-grid-exp-view-event.js +1 -0
  86. package/out/controller/interface/event/view/i-tree-exp-view-event.d.ts +3 -3
  87. package/out/controller/interface/event/view/i-tree-exp-view-event.d.ts.map +1 -1
  88. package/out/controller/interface/event/view/index.d.ts +2 -0
  89. package/out/controller/interface/event/view/index.d.ts.map +1 -1
  90. package/out/controller/interface/event/view/index.js +2 -0
  91. package/out/controller/neuron/nerve/view/dashboard-view-nerve.d.ts +19 -0
  92. package/out/controller/neuron/nerve/view/dashboard-view-nerve.d.ts.map +1 -0
  93. package/out/controller/neuron/nerve/view/dashboard-view-nerve.js +28 -0
  94. package/out/controller/neuron/nerve/view/grid-exp-view-nerve.d.ts +28 -0
  95. package/out/controller/neuron/nerve/view/grid-exp-view-nerve.d.ts.map +1 -0
  96. package/out/controller/neuron/nerve/view/grid-exp-view-nerve.js +48 -0
  97. package/out/controller/neuron/nerve/view/index.d.ts +2 -0
  98. package/out/controller/neuron/nerve/view/index.d.ts.map +1 -1
  99. package/out/controller/neuron/nerve/view/index.js +2 -0
  100. package/out/controller/neuron/nerve/view/tree-exp-view-nerve.d.ts +2 -2
  101. package/out/controller/neuron/nerve/view/tree-exp-view-nerve.d.ts.map +1 -1
  102. package/out/controller/neuron/nerve/view/tree-exp-view-nerve.js +7 -2
  103. package/out/controller/neuron/neuron/view.d.ts +6 -2
  104. package/out/controller/neuron/neuron/view.d.ts.map +1 -1
  105. package/out/controller/neuron/neuron/view.js +4 -0
  106. package/out/controller/register/view-register.d.ts.map +1 -1
  107. package/out/controller/register/view-register.js +5 -4
  108. package/out/controller/state/control/app-menu-state.d.ts +24 -0
  109. package/out/controller/state/control/app-menu-state.d.ts.map +1 -0
  110. package/out/controller/state/control/app-menu-state.js +21 -0
  111. package/out/controller/state/control/control-state.d.ts +17 -0
  112. package/out/controller/state/control/control-state.d.ts.map +1 -0
  113. package/out/controller/state/control/control-state.js +18 -0
  114. package/out/controller/state/control/form/edit-form-state.d.ts +13 -0
  115. package/out/controller/state/control/form/edit-form-state.d.ts.map +1 -0
  116. package/out/controller/state/control/form/edit-form-state.js +12 -0
  117. package/out/controller/state/control/form/form-detail/form-button-state.d.ts +12 -0
  118. package/out/controller/state/control/form/form-detail/form-button-state.d.ts.map +1 -0
  119. package/out/controller/state/control/form/form-detail/form-button-state.js +13 -0
  120. package/out/controller/state/control/form/form-detail/form-container-state.d.ts +15 -0
  121. package/out/controller/state/control/form/form-detail/form-container-state.d.ts.map +1 -0
  122. package/out/controller/state/control/form/form-detail/form-container-state.js +16 -0
  123. package/out/controller/state/control/form/form-detail/form-detail-state.d.ts +43 -0
  124. package/out/controller/state/control/form/form-detail/form-detail-state.d.ts.map +1 -0
  125. package/out/controller/state/control/form/form-detail/form-detail-state.js +56 -0
  126. package/out/controller/state/control/form/form-detail/form-druipart-state.d.ts +36 -0
  127. package/out/controller/state/control/form/form-detail/form-druipart-state.d.ts.map +1 -0
  128. package/out/controller/state/control/form/form-detail/form-druipart-state.js +13 -0
  129. package/out/controller/state/control/form/form-detail/form-group-panel-state.d.ts +13 -0
  130. package/out/controller/state/control/form/form-detail/form-group-panel-state.d.ts.map +1 -0
  131. package/out/controller/state/control/form/form-detail/form-group-panel-state.js +12 -0
  132. package/out/controller/state/control/form/form-detail/form-item-state.d.ts +36 -0
  133. package/out/controller/state/control/form/form-detail/form-item-state.d.ts.map +1 -0
  134. package/out/controller/state/control/form/form-detail/form-item-state.js +44 -0
  135. package/out/controller/state/control/form/form-detail/form-page-state.d.ts +22 -0
  136. package/out/controller/state/control/form/form-detail/form-page-state.d.ts.map +1 -0
  137. package/out/controller/state/control/form/form-detail/form-page-state.js +23 -0
  138. package/out/controller/state/control/form/form-detail/form-raw-item-state.d.ts +12 -0
  139. package/out/controller/state/control/form/form-detail/form-raw-item-state.d.ts.map +1 -0
  140. package/out/controller/state/control/form/form-detail/form-raw-item-state.js +13 -0
  141. package/out/controller/state/control/form/form-detail/form-tab-page-state.d.ts +12 -0
  142. package/out/controller/state/control/form/form-detail/form-tab-page-state.d.ts.map +1 -0
  143. package/out/controller/state/control/form/form-detail/form-tab-page-state.js +13 -0
  144. package/out/controller/state/control/form/form-detail/form-tab-panel-state.d.ts +12 -0
  145. package/out/controller/state/control/form/form-detail/form-tab-panel-state.d.ts.map +1 -0
  146. package/out/controller/state/control/form/form-detail/form-tab-panel-state.js +13 -0
  147. package/out/controller/state/control/form/form-state.d.ts +30 -0
  148. package/out/controller/state/control/form/form-state.d.ts.map +1 -0
  149. package/out/controller/state/control/form/form-state.js +32 -0
  150. package/out/controller/state/control/form/search-form-state.d.ts +13 -0
  151. package/out/controller/state/control/form/search-form-state.d.ts.map +1 -0
  152. package/out/controller/state/control/form/search-form-state.js +12 -0
  153. package/out/controller/state/control/grid-state.d.ts +20 -0
  154. package/out/controller/state/control/grid-state.d.ts.map +1 -0
  155. package/out/controller/state/control/grid-state.js +21 -0
  156. package/out/controller/state/control/index.d.ts +19 -0
  157. package/out/controller/state/control/index.d.ts.map +1 -0
  158. package/out/controller/state/control/index.js +21 -0
  159. package/out/controller/state/control/md-state.d.ts +51 -0
  160. package/out/controller/state/control/md-state.d.ts.map +1 -0
  161. package/out/controller/state/control/md-state.js +52 -0
  162. package/out/controller/state/control/tree-state.d.ts +26 -0
  163. package/out/controller/state/control/tree-state.d.ts.map +1 -0
  164. package/out/controller/state/control/tree-state.js +30 -0
  165. package/out/controller/state/index.d.ts +3 -0
  166. package/out/controller/state/index.d.ts.map +1 -0
  167. package/out/controller/state/index.js +2 -0
  168. package/out/controller/state/view/edit-view-state.d.ts +13 -0
  169. package/out/controller/state/view/edit-view-state.d.ts.map +1 -0
  170. package/out/controller/state/view/edit-view-state.js +12 -0
  171. package/out/controller/state/view/edit-view3-state.d.ts +10 -0
  172. package/out/controller/state/view/edit-view3-state.d.ts.map +1 -0
  173. package/out/controller/state/view/edit-view3-state.js +9 -0
  174. package/out/controller/state/view/grid-exp-view-state.d.ts +17 -0
  175. package/out/controller/state/view/grid-exp-view-state.d.ts.map +1 -0
  176. package/out/controller/state/view/grid-exp-view-state.js +19 -0
  177. package/out/controller/state/view/grid-view-state.d.ts +11 -0
  178. package/out/controller/state/view/grid-view-state.d.ts.map +1 -0
  179. package/out/controller/state/view/grid-view-state.js +10 -0
  180. package/out/controller/state/view/index-view-state.d.ts +18 -0
  181. package/out/controller/state/view/index-view-state.d.ts.map +1 -0
  182. package/out/controller/state/view/index-view-state.js +20 -0
  183. package/out/controller/state/view/index.d.ts +10 -0
  184. package/out/controller/state/view/index.d.ts.map +1 -0
  185. package/out/controller/state/view/index.js +9 -0
  186. package/out/controller/state/view/md-view-state.d.ts +28 -0
  187. package/out/controller/state/view/md-view-state.d.ts.map +1 -0
  188. package/out/controller/state/view/md-view-state.js +30 -0
  189. package/out/controller/state/view/mpickup-view-state.d.ts +27 -0
  190. package/out/controller/state/view/mpickup-view-state.d.ts.map +1 -0
  191. package/out/controller/state/view/mpickup-view-state.js +29 -0
  192. package/out/controller/state/view/pickup-view-state.d.ts +11 -0
  193. package/out/controller/state/view/pickup-view-state.d.ts.map +1 -0
  194. package/out/controller/state/view/pickup-view-state.js +10 -0
  195. package/out/controller/state/view/tree-exp-view-state.d.ts +11 -0
  196. package/out/controller/state/view/tree-exp-view-state.d.ts.map +1 -0
  197. package/out/controller/state/view/tree-exp-view-state.js +10 -0
  198. package/out/controller/state/view/view-state.d.ts +41 -0
  199. package/out/controller/state/view/view-state.d.ts.map +1 -0
  200. package/out/controller/state/view/view-state.js +33 -0
  201. package/out/controller/utils/counter/counter.d.ts +1 -1
  202. package/out/controller/utils/counter/counter.d.ts.map +1 -1
  203. package/out/controller/utils/counter/counter.js +7 -2
  204. package/out/controller/utils/loading/loading-state.d.ts +1 -2
  205. package/out/controller/utils/loading/loading-state.d.ts.map +1 -1
  206. package/out/controller/utils/loading/loading-state.js +15 -17
  207. package/out/controller/view/dashboard-view.d.ts +18 -0
  208. package/out/controller/view/dashboard-view.d.ts.map +1 -0
  209. package/out/controller/view/dashboard-view.js +24 -0
  210. package/out/controller/view/edit-view.d.ts +2 -0
  211. package/out/controller/view/edit-view.d.ts.map +1 -1
  212. package/out/controller/view/edit-view.js +9 -5
  213. package/out/controller/view/edit-view3.d.ts +2 -0
  214. package/out/controller/view/edit-view3.d.ts.map +1 -1
  215. package/out/controller/view/edit-view3.js +2 -0
  216. package/out/controller/view/grid-exp-view.d.ts +60 -0
  217. package/out/controller/view/grid-exp-view.d.ts.map +1 -0
  218. package/out/controller/view/grid-exp-view.js +160 -0
  219. package/out/controller/view/grid-view.d.ts +2 -0
  220. package/out/controller/view/grid-view.d.ts.map +1 -1
  221. package/out/controller/view/grid-view.js +5 -0
  222. package/out/controller/view/index-view.d.ts +4 -1
  223. package/out/controller/view/index-view.d.ts.map +1 -1
  224. package/out/controller/view/index-view.js +4 -1
  225. package/out/controller/view/index.d.ts +2 -0
  226. package/out/controller/view/index.d.ts.map +1 -1
  227. package/out/controller/view/index.js +2 -0
  228. package/out/controller/view/main-view.d.ts.map +1 -1
  229. package/out/controller/view/main-view.js +3 -3
  230. package/out/controller/view/md-view.d.ts +5 -0
  231. package/out/controller/view/md-view.d.ts.map +1 -1
  232. package/out/controller/view/md-view.js +13 -9
  233. package/out/controller/view/mpickup-view.d.ts +3 -16
  234. package/out/controller/view/mpickup-view.d.ts.map +1 -1
  235. package/out/controller/view/mpickup-view.js +14 -22
  236. package/out/controller/view/pickup-view.d.ts +2 -0
  237. package/out/controller/view/pickup-view.d.ts.map +1 -1
  238. package/out/controller/view/pickup-view.js +5 -0
  239. package/out/controller/view/tab-exp-view.d.ts.map +1 -1
  240. package/out/controller/view/tab-exp-view.js +1 -2
  241. package/out/controller/view/tree-exp-view.d.ts +6 -2
  242. package/out/controller/view/tree-exp-view.d.ts.map +1 -1
  243. package/out/controller/view/tree-exp-view.js +53 -8
  244. package/out/controller/view/view.d.ts +11 -2
  245. package/out/controller/view/view.d.ts.map +1 -1
  246. package/out/controller/view/view.js +18 -6
  247. package/out/controller/view/wf-step-trace-view.d.ts.map +1 -1
  248. package/out/controller/view/wf-step-trace-view.js +1 -1
  249. package/out/service/dto/method.dto.d.ts.map +1 -1
  250. package/out/service/dto/method.dto.js +1 -1
  251. package/out/service/entity/entity.d.ts.map +1 -1
  252. package/out/service/entity/entity.js +2 -0
  253. package/out/service/index.d.ts +1 -2
  254. package/out/service/index.d.ts.map +1 -1
  255. package/out/service/index.js +1 -2
  256. package/out/service/interface/i-tree-node-data/i-tree-node-data.d.ts +66 -0
  257. package/out/service/interface/i-tree-node-data/i-tree-node-data.d.ts.map +1 -0
  258. package/out/service/interface/i-tree-node-data/i-tree-node-data.js +1 -0
  259. package/out/service/interface/index.d.ts +1 -0
  260. package/out/service/interface/index.d.ts.map +1 -1
  261. package/out/service/service/widget/control-service.d.ts +1 -1
  262. package/out/service/service/widget/control-service.d.ts.map +1 -1
  263. package/out/service/service/widget/control-service.js +2 -2
  264. package/out/service/service/widget/tree-service.d.ts +22 -14
  265. package/out/service/service/widget/tree-service.d.ts.map +1 -1
  266. package/out/service/service/widget/tree-service.js +51 -39
  267. package/out/service/service-util.d.ts +1 -1
  268. package/out/service/service-util.d.ts.map +1 -1
  269. package/out/service/service-util.js +3 -3
  270. package/out/service/utils/index.d.ts +3 -2
  271. package/out/service/utils/index.d.ts.map +1 -1
  272. package/out/service/utils/index.js +3 -2
  273. package/out/service/utils/route-context/route-context.d.ts +13 -0
  274. package/out/service/utils/route-context/route-context.d.ts.map +1 -0
  275. package/out/service/utils/route-context/route-context.js +37 -0
  276. package/out/service/utils/service-path-util/service-path-util.d.ts +20 -12
  277. package/out/service/utils/service-path-util/service-path-util.d.ts.map +1 -1
  278. package/out/service/utils/service-path-util/service-path-util.js +50 -37
  279. package/out/service/vo/control.vo.d.ts.map +1 -1
  280. package/out/service/vo/control.vo.js +2 -0
  281. package/out/service/vo/index.d.ts +3 -0
  282. package/out/service/vo/index.d.ts.map +1 -0
  283. package/out/service/vo/index.js +2 -0
  284. package/out/service/vo/tree-node-data/index.d.ts +3 -0
  285. package/out/service/vo/tree-node-data/index.d.ts.map +1 -0
  286. package/out/service/vo/tree-node-data/index.js +2 -0
  287. package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts +22 -0
  288. package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts.map +1 -0
  289. package/out/service/vo/tree-node-data/tree-data-set-node-data.js +23 -0
  290. package/out/service/vo/tree-node-data/tree-node-data.d.ts +36 -0
  291. package/out/service/vo/tree-node-data/tree-node-data.d.ts.map +1 -0
  292. package/out/service/vo/tree-node-data/tree-node-data.js +15 -0
  293. package/out/service/vo/tree-node-data/tree-static-node-data.d.ts +20 -0
  294. package/out/service/vo/tree-node-data/tree-static-node-data.d.ts.map +1 -0
  295. package/out/service/vo/tree-node-data/tree-static-node-data.js +22 -0
  296. package/out/view-logic/view-logic.d.ts.map +1 -1
  297. package/out/view-logic/view-logic.js +0 -1
  298. package/package.json +7 -7
  299. package/src/application.ts +17 -1
  300. package/src/controller/control/app-menu.ts +5 -1
  301. package/src/controller/control/control.ts +10 -1
  302. package/src/controller/control/form/edit-form.ts +6 -3
  303. package/src/controller/control/form/form-button.ts +7 -0
  304. package/src/controller/control/form/form-container.ts +8 -1
  305. package/src/controller/control/form/form-detail.ts +34 -74
  306. package/src/controller/control/form/form-druipart.ts +12 -36
  307. package/src/controller/control/form/form-group-panel.ts +8 -1
  308. package/src/controller/control/form/form-item.ts +16 -45
  309. package/src/controller/control/form/form-page.ts +5 -9
  310. package/src/controller/control/form/form-raw-item.ts +8 -1
  311. package/src/controller/control/form/form-tab-page.ts +8 -1
  312. package/src/controller/control/form/form-tab-panel.ts +8 -1
  313. package/src/controller/control/form/form.ts +20 -23
  314. package/src/controller/control/form/search-form.ts +5 -3
  315. package/src/controller/control/grid/grid.ts +42 -13
  316. package/src/controller/control/md.ts +123 -21
  317. package/src/controller/control/tree.ts +63 -18
  318. package/src/controller/control/view-panel.ts +0 -4
  319. package/src/controller/editor/editor.ts +1 -1
  320. package/src/controller/editor/picker.ts +38 -18
  321. package/src/controller/editor/upload.ts +2 -2
  322. package/src/controller/index.ts +2 -1
  323. package/src/controller/interface/ability/view/i-dashboard-view-ability.ts +12 -0
  324. package/src/controller/interface/ability/view/i-grid-exp-view-ability.ts +28 -0
  325. package/src/controller/interface/ability/view/i-tree-exp-view-ability.ts +3 -3
  326. package/src/controller/interface/ability/view/index.ts +2 -0
  327. package/src/controller/interface/event/view/i-dashboard-view-event.ts +12 -0
  328. package/src/controller/interface/event/view/i-grid-exp-view-event.ts +10 -0
  329. package/src/controller/interface/event/view/i-tree-exp-view-event.ts +3 -3
  330. package/src/controller/interface/event/view/index.ts +2 -0
  331. package/src/controller/neuron/nerve/view/dashboard-view-nerve.ts +38 -0
  332. package/src/controller/neuron/nerve/view/grid-exp-view-nerve.ts +87 -0
  333. package/src/controller/neuron/nerve/view/index.ts +2 -0
  334. package/src/controller/neuron/nerve/view/tree-exp-view-nerve.ts +13 -2
  335. package/src/controller/neuron/neuron/view.ts +12 -0
  336. package/src/controller/register/view-register.ts +5 -5
  337. package/src/controller/state/control/app-menu-state.ts +20 -0
  338. package/src/controller/state/control/control-state.ts +16 -0
  339. package/src/controller/state/control/form/edit-form-state.ts +12 -0
  340. package/src/controller/state/control/form/form-detail/form-button-state.ts +13 -0
  341. package/src/controller/state/control/form/form-detail/form-container-state.ts +16 -0
  342. package/src/controller/state/control/form/form-detail/form-detail-state.ts +63 -0
  343. package/src/controller/state/control/form/form-detail/form-druipart-state.ts +40 -0
  344. package/src/controller/state/control/form/form-detail/form-group-panel-state.ts +12 -0
  345. package/src/controller/state/control/form/form-detail/form-item-state.ts +48 -0
  346. package/src/controller/state/control/form/form-detail/form-page-state.ts +24 -0
  347. package/src/controller/state/control/form/form-detail/form-raw-item-state.ts +13 -0
  348. package/src/controller/state/control/form/form-detail/form-tab-page-state.ts +13 -0
  349. package/src/controller/state/control/form/form-detail/form-tab-panel-state.ts +13 -0
  350. package/src/controller/state/control/form/form-state.ts +31 -0
  351. package/src/controller/state/control/form/search-form-state.ts +12 -0
  352. package/src/controller/state/control/grid-state.ts +20 -0
  353. package/src/controller/state/control/index.ts +22 -0
  354. package/src/controller/state/control/md-state.ts +57 -0
  355. package/src/controller/state/control/tree-state.ts +29 -0
  356. package/src/controller/state/index.ts +2 -0
  357. package/src/controller/state/view/edit-view-state.ts +12 -0
  358. package/src/controller/state/view/edit-view3-state.ts +9 -0
  359. package/src/controller/state/view/grid-exp-view-state.ts +17 -0
  360. package/src/controller/state/view/grid-view-state.ts +10 -0
  361. package/src/controller/state/view/index-view-state.ts +18 -0
  362. package/src/controller/state/view/index.ts +9 -0
  363. package/src/controller/state/view/md-view-state.ts +30 -0
  364. package/src/controller/state/view/mpickup-view-state.ts +28 -0
  365. package/src/controller/state/view/pickup-view-state.ts +10 -0
  366. package/src/controller/state/view/tree-exp-view-state.ts +10 -0
  367. package/src/controller/state/view/view-state.ts +44 -0
  368. package/src/controller/utils/counter/counter.ts +6 -2
  369. package/src/controller/utils/loading/loading-state.ts +7 -10
  370. package/src/controller/view/dashboard-view.ts +33 -0
  371. package/src/controller/view/edit-view.ts +6 -5
  372. package/src/controller/view/edit-view3.ts +3 -0
  373. package/src/controller/view/grid-exp-view.ts +191 -0
  374. package/src/controller/view/grid-view.ts +3 -0
  375. package/src/controller/view/index-view.ts +5 -1
  376. package/src/controller/view/index.ts +2 -0
  377. package/src/controller/view/main-view.ts +2 -3
  378. package/src/controller/view/md-view.ts +14 -9
  379. package/src/controller/view/mpickup-view.ts +15 -23
  380. package/src/controller/view/pickup-view.ts +3 -0
  381. package/src/controller/view/tab-exp-view.ts +1 -2
  382. package/src/controller/view/tree-exp-view.ts +74 -8
  383. package/src/controller/view/view.ts +20 -6
  384. package/src/controller/view/wf-step-trace-view.ts +1 -4
  385. package/src/service/dto/method.dto.ts +1 -4
  386. package/src/service/entity/entity.ts +2 -0
  387. package/src/service/index.ts +1 -2
  388. package/src/service/interface/i-tree-node-data/i-tree-node-data.ts +74 -0
  389. package/src/service/interface/index.ts +1 -0
  390. package/src/service/service/widget/control-service.ts +1 -2
  391. package/src/service/service/widget/tree-service.ts +78 -56
  392. package/src/service/service-util.ts +3 -9
  393. package/src/service/utils/index.ts +3 -2
  394. package/src/service/utils/route-context/route-context.ts +42 -0
  395. package/src/service/utils/service-path-util/service-path-util.ts +34 -26
  396. package/src/service/vo/control.vo.ts +2 -0
  397. package/src/service/vo/index.ts +2 -0
  398. package/src/service/vo/tree-node-data/index.ts +2 -0
  399. package/src/service/vo/tree-node-data/tree-data-set-node-data.ts +38 -0
  400. package/src/service/vo/tree-node-data/tree-node-data.ts +46 -0
  401. package/src/service/vo/tree-node-data/tree-static-node-data.ts +35 -0
  402. package/src/view-logic/view-logic.ts +0 -1
  403. package/out/service/vo/tree-node-data.d.ts +0 -44
  404. package/out/service/vo/tree-node-data.d.ts.map +0 -1
  405. package/src/service/vo/tree-node-data.ts +0 -49
@@ -1,3 +1,4 @@
1
+ import { TreeDataSetNodeData, TreeStaticNodeData } from '../../vo';
1
2
  import { MDControlService } from './md-control-service';
2
3
  /**
3
4
  * 树部件服务
@@ -22,28 +23,29 @@ export class TreeService extends MDControlService {
22
23
  /**
23
24
  * 获取子节点数据
24
25
  *
25
- * @param {TreeNodeData} [parentNode] 父节点数据
26
+ * @param {ITreeNodeData} [parentNodeData] 父节点数据
26
27
  * @param {boolean} [hasQuery=false] 是否搜索
27
28
  * @returns {*}
28
29
  * @memberof TreeService
29
30
  */
30
- async fetchChildNodes(parentNode, opts) {
31
- const childNodeModels = this.model.getChildNodes((parentNode === null || parentNode === void 0 ? void 0 : parentNode.nodeId) || this.model.rootNode.id, opts.hasQuery);
32
- if (childNodeModels.length === 0) {
31
+ async fetchChildNodes(parentNodeData, opts) {
32
+ const childNodeRSs = this.model.getChildNodeRSs((parentNodeData === null || parentNodeData === void 0 ? void 0 : parentNodeData.nodeId) || this.model.rootNode.id, opts.hasQuery);
33
+ if (childNodeRSs.length === 0) {
33
34
  return;
34
35
  }
35
- const results = await Promise.allSettled(childNodeModels.map(async (childNode) => {
36
+ const results = await Promise.allSettled(childNodeRSs.map(async (childNodeRS) => {
37
+ const { childNode } = childNodeRS;
36
38
  if (childNode.treeNodeType === 'STATIC') {
37
- const nodeData = await this.getStaticNodeData(childNode.source, opts);
39
+ const nodeData = await this.getStaticNodeData(childNodeRS, parentNodeData, opts);
38
40
  return [nodeData];
39
41
  }
40
42
  if (childNode.treeNodeType === 'DE') {
41
- return this.getDENodeDatas(childNode.source, opts);
43
+ return this.getDENodeDatas(childNodeRS, parentNodeData, opts);
42
44
  }
43
45
  if (childNode.treeNodeType === 'CODELIST') {
44
- return this.getCodeListNodeDatas(childNode.source, opts);
46
+ return this.getCodeListNodeDatas(childNodeRS, parentNodeData, opts);
45
47
  }
46
- return null;
48
+ return undefined;
47
49
  }));
48
50
  const childrenNodes = [];
49
51
  results.forEach(result => {
@@ -54,56 +56,66 @@ export class TreeService extends MDControlService {
54
56
  return childrenNodes;
55
57
  // todo 查询回来之后,看是否默认打开,默认展开继续递归加载子节点。
56
58
  }
57
- getBaseNodeData(nodeModel, opts) {
58
- const nodeData = {
59
- nodeId: nodeModel.nodeType,
60
- id: nodeModel.nodeType,
61
- text: '',
62
- leaf: this.model.getChildNodes(nodeModel.nodeType, opts.hasQuery).length ===
63
- 0,
64
- };
65
- if (nodeData.leaf === false) {
66
- nodeData.children = [];
67
- // nodeData.loading = false;
68
- }
69
- return nodeData;
70
- }
71
59
  /**
72
60
  * 获取静态节点数据
73
61
  *
74
62
  * @protected
75
- * @param {IPSDETreeStaticNode} nodeModel
63
+ * @param {TreeStaticNodeModel} nodeModel
76
64
  * @param {boolean} [hasQuery=false]
77
65
  * @returns {*}
78
66
  * @memberof TreeService
79
67
  */
80
- async getStaticNodeData(nodeModel, opts) {
81
- const nodeData = this.getBaseNodeData(nodeModel, opts);
82
- nodeData.text = nodeModel.text;
68
+ async getStaticNodeData(nodeRS, parentNodeData, opts) {
69
+ const nodeModel = nodeRS.childNode;
70
+ const nodeData = new TreeStaticNodeData(nodeModel, parentNodeData, opts);
83
71
  // todo 仅展开首节点
84
72
  if (nodeModel.expanded) {
85
73
  nodeData.children = await this.fetchChildNodes(nodeData, opts);
86
74
  }
87
75
  return nodeData;
88
76
  }
77
+ /**
78
+ * 获取父值过滤的视图参数
79
+ *
80
+ * @param {TreeNodeRSModel} nodeRS 节点关系模型
81
+ * @param {(ITreeNodeData | undefined)} parentNodeData 父节点数据
82
+ * @returns {*} {(IParams | undefined)}
83
+ * @memberof TreeService
84
+ */
85
+ getParentFilterParams(nodeRS, parentNodeData) {
86
+ // 处理父值过滤项
87
+ const { parentFilter, parentValueLevel } = nodeRS;
88
+ if (parentNodeData && parentFilter) {
89
+ // 根据父值级别查找父数据的value
90
+ let parent = parentNodeData;
91
+ for (let index = 1; index < parentValueLevel; index++) {
92
+ parent = parent === null || parent === void 0 ? void 0 : parent.parent;
93
+ }
94
+ if (parent === null || parent === void 0 ? void 0 : parent.value) {
95
+ return { [`n_${parentFilter}_eq`]: parent.value };
96
+ }
97
+ }
98
+ }
89
99
  /**
90
100
  * 获取实体数据集数据
91
101
  *
92
102
  * @protected
93
- * @param {IPSDETreeDataSetNode} nodeModel
94
- * @param {boolean} [_hasQuery=false]
103
+ * @param {TreeNodeRSModel} nodeRS
104
+ * @param {TreeFetchOpts} opts
105
+ * @returns {*}
95
106
  * @memberof TreeService
96
107
  */
97
- async getDENodeDatas(nodeModel, opts) {
98
- const appde = nodeModel.getPSAppDataEntity();
99
- await appde.fill();
100
- const methodName = nodeModel.getPSAppDEDataSet().codeName;
101
- const service = await this.app.es.getService(appde.codeName);
102
- const response = await service.exec(methodName, opts.context, opts.params);
103
- const baseNodeData = this.getBaseNodeData(nodeModel, opts);
108
+ async getDENodeDatas(nodeRS, parentNodeData, opts) {
109
+ const nodeModel = nodeRS.childNode;
110
+ const { methodName, appEntity } = nodeModel;
111
+ const service = await this.app.es.getService(appEntity.codeName);
112
+ // 处理查询视图参数
113
+ const tempParams = Object.assign(Object.assign({}, opts.params), (this.getParentFilterParams(nodeRS, parentNodeData) || {}));
114
+ // 请求实体数据
115
+ const response = await service.exec(methodName, opts.context, tempParams);
104
116
  if (response.data.length) {
105
117
  const nodeDatas = response.data.map((item) => {
106
- return Object.assign(Object.assign({}, baseNodeData), { id: item.srfkey, text: item.srfmajortext });
118
+ return new TreeDataSetNodeData(nodeModel, parentNodeData, Object.assign(Object.assign({}, opts), { data: item }));
107
119
  });
108
120
  return nodeDatas;
109
121
  }
@@ -113,11 +125,11 @@ export class TreeService extends MDControlService {
113
125
  * 获取代码表节点数据
114
126
  *
115
127
  * @protected
116
- * @param {IPSDETreeCodeListNode} _nodeModel
128
+ * @param {TreeCodeListNodeModel} _nodeModel
117
129
  * @param {TreeFetchOpts} _opts
118
130
  * @memberof TreeService
119
131
  */
120
- async getCodeListNodeDatas(_nodeModel, _opts) {
132
+ async getCodeListNodeDatas(_nodeRS, _parentNodeData, _opts) {
121
133
  // todo 代码表查询
122
134
  }
123
135
  }
@@ -54,7 +54,7 @@ export declare class ServiceUtil {
54
54
  * @param {IContext} [context] 上下文,用于计算模型所属沙箱环境
55
55
  * @return {*} {Promise<EntityService>}
56
56
  */
57
- getService(entityCodeName: string, context?: IContext): Promise<EntityService>;
57
+ getService(entityCodeName: string): Promise<EntityService>;
58
58
  /**
59
59
  * 清理所有服务, 当前临时域下的所有临时数据缓存
60
60
  *
@@ -1 +1 @@
1
- {"version":3,"file":"service-util.d.ts","sourceRoot":"","sources":["../../src/service/service-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,YAAY,EACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG1C;;;;;;;GAOG;AACH,qBAAa,WAAW;IA4BV,SAAS,CAAC,YAAY,EAAE,YAAY;IA3BhD;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAa;IAExD;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAa;IAEjE;;;;;;OAMG;gBACmB,YAAY,EAAE,YAAY;IAEhD;;;;;;;OAOG;cACa,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAWhD;;;;;;;;OAQG;IACG,UAAU,CACd,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,QAAQ,GACjB,OAAO,CAAC,aAAa,CAAC;IAoBzB;;;;;;;OAOG;IACH,cAAc,CAAC,OAAO,EAAE,QAAQ,GAAG,IAAI;CAKxC"}
1
+ {"version":3,"file":"service-util.d.ts","sourceRoot":"","sources":["../../src/service/service-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,YAAY,EACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C;;;;;;;GAOG;AACH,qBAAa,WAAW;IA4BV,SAAS,CAAC,YAAY,EAAE,YAAY;IA3BhD;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAa;IAExD;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAa;IAEjE;;;;;;OAMG;gBACmB,YAAY,EAAE,YAAY;IAEhD;;;;;;;OAOG;cACa,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAWhD;;;;;;;;OAQG;IACG,UAAU,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAkBhE;;;;;;;OAOG;IACH,cAAc,CAAC,OAAO,EAAE,QAAQ,GAAG,IAAI;CAKxC"}
@@ -1,6 +1,5 @@
1
1
  import { AppEntityModel, } from '@ibiz-template/model';
2
2
  import { EntityService } from './service';
3
- import { ServicePathUtil } from './utils';
4
3
  /**
5
4
  * 应用服务工具类
6
5
  *
@@ -65,7 +64,7 @@ export class ServiceUtil {
65
64
  * @param {IContext} [context] 上下文,用于计算模型所属沙箱环境
66
65
  * @return {*} {Promise<EntityService>}
67
66
  */
68
- async getService(entityCodeName, context) {
67
+ async getService(entityCodeName) {
69
68
  if (!this.cache.has(entityCodeName)) {
70
69
  await this.initAllEntities();
71
70
  const entity = this.allEntities.get(entityCodeName);
@@ -75,7 +74,8 @@ export class ServiceUtil {
75
74
  await entity.fill(true);
76
75
  const entityModel = new AppEntityModel(entity);
77
76
  await entityModel.init();
78
- const paths = await ServicePathUtil.calcPaths(context || {}, entityCodeName);
77
+ const app = ibiz.hub.getApp(this.modelService.app);
78
+ const paths = app.resourcePathUtil.calcPaths(entityCodeName);
79
79
  const service = await new EntityService(entityModel, paths);
80
80
  this.cache.set(entityCodeName, service);
81
81
  }
@@ -3,8 +3,9 @@ export * from './de-dq-cond';
3
3
  export { DEDQCondUtil } from './de-dq-cond-util/de-dq-cond-util';
4
4
  export { DynamicCodeListCache } from './dynamic-code-list/dynamic-code-list';
5
5
  export { EntityCache } from './entity-cache/entity-cache';
6
+ export { IBizVerify } from './ibiz-verify/ibiz-verify';
7
+ export { calcResPath } from './res-path/res-path';
8
+ export { calcRouteContext } from './route-context/route-context';
6
9
  export { SearchFilter } from './search-filter/search-filter';
7
10
  export { ServicePathDeep, ServicePathItem, ServicePathUtil, } from './service-path-util/service-path-util';
8
- export { IBizVerify } from './ibiz-verify/ibiz-verify';
9
- export * from './res-path/res-path';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EACL,eAAe,EACf,eAAe,EACf,eAAe,GAChB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EACL,eAAe,EACf,eAAe,EACf,eAAe,GAChB,MAAM,uCAAuC,CAAC"}
@@ -3,7 +3,8 @@ export * from './de-dq-cond';
3
3
  export { DEDQCondUtil } from './de-dq-cond-util/de-dq-cond-util';
4
4
  export { DynamicCodeListCache } from './dynamic-code-list/dynamic-code-list';
5
5
  export { EntityCache } from './entity-cache/entity-cache';
6
+ export { IBizVerify } from './ibiz-verify/ibiz-verify';
7
+ export { calcResPath } from './res-path/res-path';
8
+ export { calcRouteContext } from './route-context/route-context';
6
9
  export { SearchFilter } from './search-filter/search-filter';
7
10
  export { ServicePathUtil, } from './service-path-util/service-path-util';
8
- export { IBizVerify } from './ibiz-verify/ibiz-verify';
9
- export * from './res-path/res-path';
@@ -0,0 +1,13 @@
1
+ import { ServicePathItem } from '../service-path-util/service-path-util';
2
+ /**
3
+ * 计算放置到路径中的资源上下文参数
4
+ *
5
+ * @author chitanda
6
+ * @date 2023-01-10 14:01:51
7
+ * @export
8
+ * @param {IContext} context
9
+ * @param {ServicePathItem[][]} pathItems
10
+ * @return {*} {Record<string, unknown>}
11
+ */
12
+ export declare function calcRouteContext(context: IContext, pathItems: ServicePathItem[][]): Record<string, unknown>;
13
+ //# sourceMappingURL=route-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route-context.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/route-context/route-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAEzE;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,QAAQ,EACjB,SAAS,EAAE,eAAe,EAAE,EAAE,GAC7B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0BzB"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * 计算放置到路径中的资源上下文参数
3
+ *
4
+ * @author chitanda
5
+ * @date 2023-01-10 14:01:51
6
+ * @export
7
+ * @param {IContext} context
8
+ * @param {ServicePathItem[][]} pathItems
9
+ * @return {*} {Record<string, unknown>}
10
+ */
11
+ export function calcRouteContext(context, pathItems) {
12
+ let paths = [];
13
+ pathItems.forEach(items => {
14
+ const values = [];
15
+ for (let i = 0; i < items.length; i++) {
16
+ const arr = [];
17
+ const item = items[i];
18
+ const val = context[item.name];
19
+ if (val) {
20
+ arr.push(item.name);
21
+ arr.push(val);
22
+ values.push(arr);
23
+ }
24
+ }
25
+ paths.push(values);
26
+ });
27
+ paths = paths.sort((a, b) => b.length - a.length);
28
+ const [pathArr] = paths;
29
+ if (pathArr) {
30
+ const obj = {};
31
+ pathArr.forEach(([key, val]) => {
32
+ obj[key] = val;
33
+ });
34
+ return obj;
35
+ }
36
+ return {};
37
+ }
@@ -1,4 +1,4 @@
1
- import { IPSAppDERS } from '@ibiz-template/model';
1
+ import { IPSAppDERS, ModelService } from '@ibiz-template/model';
2
2
  /**
3
3
  * 获取服务拼接递归对象
4
4
  */
@@ -41,7 +41,8 @@ export type ServicePathItem = {
41
41
  * @class ServicePathUtil
42
42
  */
43
43
  export declare class ServicePathUtil {
44
- protected static allDERss: IPSAppDERS[];
44
+ protected modelService: ModelService;
45
+ protected allDERss: IPSAppDERS[];
45
46
  /**
46
47
  * 应用实体关系
47
48
  *
@@ -50,7 +51,7 @@ export declare class ServicePathUtil {
50
51
  * @protected
51
52
  * @type {Map<string, IPSAppDERS[]>} <应用实体, 应用实体父关系>
52
53
  */
53
- protected static entityRsMap: Map<string, IPSAppDERS[]>;
54
+ protected entityRsMap: Map<string, IPSAppDERS[]>;
54
55
  /**
55
56
  * 实体资源路径
56
57
  *
@@ -59,27 +60,34 @@ export declare class ServicePathUtil {
59
60
  * @protected
60
61
  * @type {Map<string, ServicePathItem[][]>}
61
62
  */
62
- protected static entityRsPathMap: Map<string, ServicePathItem[][]>;
63
+ protected entityRsPathMap: Map<string, ServicePathItem[][]>;
64
+ /**
65
+ * Creates an instance of ServicePathUtil.
66
+ *
67
+ * @author chitanda
68
+ * @date 2023-01-10 16:01:18
69
+ * @param {ModelService} modelService 当前应用所归属的模型服务
70
+ */
71
+ constructor(modelService: ModelService);
63
72
  /**
64
73
  * 初始化工具参数
65
74
  *
66
75
  * @author chitanda
67
76
  * @date 2022-08-22 21:08:47
68
- * @protected
69
77
  * @param {IContext} context
70
78
  * @return {*} {Promise<void>}
71
79
  */
72
- protected static init(context: IContext): Promise<void>;
80
+ init(): Promise<void>;
73
81
  /**
74
82
  * 计算指定实体所有资源路径
75
83
  *
76
84
  * @author chitanda
77
85
  * @date 2022-08-22 22:08:54
78
86
  * @param {IParams} context
79
- * @param {string} deName
80
- * @return {*} {Promise<string[][]>} 返回顺序为 [祖父实体,爷爷实体,父实体,当前实体]
87
+ * @param {string} codeName
88
+ * @return {*} {Promise<ServicePathItem[][]>} 返回顺序为 [祖父实体,爷爷实体,父实体,当前实体]
81
89
  */
82
- static calcPaths(context: IParams, deName: string): Promise<ServicePathItem[][]>;
90
+ calcPaths(codeName: string): ServicePathItem[][];
83
91
  /**
84
92
  * 计算递归资源路径
85
93
  *
@@ -89,7 +97,7 @@ export declare class ServicePathUtil {
89
97
  * @param {IPSAppDERS[]} deRss
90
98
  * @return {*} {ServicePathDeep[]}
91
99
  */
92
- protected static calcDeepPath(deRss: IPSAppDERS[], num?: number): ServicePathDeep[];
100
+ protected calcDeepPath(deRss: IPSAppDERS[], num?: number): ServicePathDeep[];
93
101
  /**
94
102
  * 递归填充计算所有资源路径
95
103
  *
@@ -100,7 +108,7 @@ export declare class ServicePathUtil {
100
108
  * @param {string[]} pathNames
101
109
  * @param {ServicePathDeep[]} items
102
110
  */
103
- protected static deepFillPath(deName: string, pathNames: string[], items: ServicePathDeep[]): void;
111
+ protected deepFillPath(deName: string, pathNames: string[], items: ServicePathDeep[]): void;
104
112
  /**
105
113
  * 排序资源路径顺序
106
114
  *
@@ -110,6 +118,6 @@ export declare class ServicePathUtil {
110
118
  * @param {ServicePathItem[][]} paths
111
119
  * @return {*} {ServicePathItem[][]}
112
120
  */
113
- protected static sortPath(paths: ServicePathItem[][]): ServicePathItem[][];
121
+ protected sortPath(paths: ServicePathItem[][]): ServicePathItem[][];
114
122
  }
115
123
  //# sourceMappingURL=service-path-util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service-path-util.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/service-path-util/service-path-util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,UAAU,EAAE,eAAe,EAAE,CAAC,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;GAOG;AACH,qBAAa,eAAe;IAC1B,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE,UAAU,EAAE,CAAM;IAE7C;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC,CAAa;IAEpE;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,CAAC,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,EAAE,CAAC,CACtD;IAEZ;;;;;;;;OAQG;qBACoB,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAsB7D;;;;;;;;OAQG;WACU,SAAS,CACpB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC;IAqB/B;;;;;;;;OAQG;IACH,SAAS,CAAC,MAAM,CAAC,YAAY,CAC3B,KAAK,EAAE,UAAU,EAAE,EACnB,GAAG,GAAE,MAAU,GACd,eAAe,EAAE;IAapB;;;;;;;;;OASG;IACH,SAAS,CAAC,MAAM,CAAC,YAAY,CAC3B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EAAE,EACnB,KAAK,EAAE,eAAe,EAAE,GACvB,IAAI;IA+BP;;;;;;;;OAQG;IACH,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,GAAG,eAAe,EAAE,EAAE;CAK3E"}
1
+ {"version":3,"file":"service-path-util.d.ts","sourceRoot":"","sources":["../../../../src/service/utils/service-path-util/service-path-util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,UAAU,EAAE,eAAe,EAAE,CAAC,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;GAOG;AACH,qBAAa,eAAe;IA8Bd,SAAS,CAAC,YAAY,EAAE,YAAY;IA7BhD,SAAS,CAAC,QAAQ,EAAE,UAAU,EAAE,CAAM;IAEtC;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC,CAAa;IAE7D;;;;;;;OAOG;IACH,SAAS,CAAC,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,EAAE,CAAC,CAAa;IAExE;;;;;;OAMG;gBACmB,YAAY,EAAE,YAAY;IAEhD;;;;;;;OAOG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAqB3B;;;;;;;;OAQG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,EAAE,EAAE;IA0BhD;;;;;;;;OAQG;IACH,SAAS,CAAC,YAAY,CACpB,KAAK,EAAE,UAAU,EAAE,EACnB,GAAG,GAAE,MAAU,GACd,eAAe,EAAE;IAapB;;;;;;;;;OASG;IACH,SAAS,CAAC,YAAY,CACpB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EAAE,EACnB,KAAK,EAAE,eAAe,EAAE,GACvB,IAAI;IA+BP;;;;;;;;OAQG;IACH,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,GAAG,eAAe,EAAE,EAAE;CAKpE"}
@@ -8,21 +8,48 @@ import { pluralLower } from '@ibiz-template/core';
8
8
  * @class ServicePathUtil
9
9
  */
10
10
  export class ServicePathUtil {
11
+ /**
12
+ * Creates an instance of ServicePathUtil.
13
+ *
14
+ * @author chitanda
15
+ * @date 2023-01-10 16:01:18
16
+ * @param {ModelService} modelService 当前应用所归属的模型服务
17
+ */
18
+ constructor(modelService) {
19
+ this.modelService = modelService;
20
+ this.allDERss = [];
21
+ /**
22
+ * 应用实体关系
23
+ *
24
+ * @author chitanda
25
+ * @date 2022-08-22 22:08:18
26
+ * @protected
27
+ * @type {Map<string, IPSAppDERS[]>} <应用实体, 应用实体父关系>
28
+ */
29
+ this.entityRsMap = new Map();
30
+ /**
31
+ * 实体资源路径
32
+ *
33
+ * @author chitanda
34
+ * @date 2022-08-22 22:08:58
35
+ * @protected
36
+ * @type {Map<string, ServicePathItem[][]>}
37
+ */
38
+ this.entityRsPathMap = new Map();
39
+ }
11
40
  /**
12
41
  * 初始化工具参数
13
42
  *
14
43
  * @author chitanda
15
44
  * @date 2022-08-22 21:08:47
16
- * @protected
17
45
  * @param {IContext} context
18
46
  * @return {*} {Promise<void>}
19
47
  */
20
- static async init(context) {
48
+ async init() {
21
49
  if (this.allDERss.length > 0) {
22
50
  return;
23
51
  }
24
- const service = await ibiz.model.getModelService(context);
25
- const { app } = service;
52
+ const { app } = this.modelService;
26
53
  const allPSAppEntities = app.getAllPSAppDataEntities() || [];
27
54
  this.allDERss = app.getAllPSAppDERSs() || [];
28
55
  allPSAppEntities.forEach(entity => {
@@ -44,27 +71,32 @@ export class ServicePathUtil {
44
71
  * @author chitanda
45
72
  * @date 2022-08-22 22:08:54
46
73
  * @param {IParams} context
47
- * @param {string} deName
48
- * @return {*} {Promise<string[][]>} 返回顺序为 [祖父实体,爷爷实体,父实体,当前实体]
74
+ * @param {string} codeName
75
+ * @return {*} {Promise<ServicePathItem[][]>} 返回顺序为 [祖父实体,爷爷实体,父实体,当前实体]
49
76
  */
50
- static async calcPaths(context, deName) {
51
- if (this.entityRsPathMap.has(deName)) {
52
- return this.entityRsPathMap.get(deName);
77
+ calcPaths(codeName) {
78
+ if (this.entityRsPathMap.has(codeName)) {
79
+ return this.entityRsPathMap.get(codeName);
53
80
  }
54
- await this.init(context);
55
- const deRss = this.entityRsMap.get(deName);
81
+ const deRss = this.entityRsMap.get(codeName);
56
82
  if (deRss) {
57
83
  const arr = this.calcDeepPath(deRss);
58
- this.deepFillPath(deName, [deName], arr);
59
- const paths = this.entityRsPathMap.get(deName);
84
+ this.deepFillPath(codeName, [codeName], arr);
85
+ const paths = this.entityRsPathMap.get(codeName);
60
86
  if (paths) {
61
87
  const sortedPaths = this.sortPath(paths);
62
- this.entityRsPathMap.set(deName, sortedPaths);
88
+ this.entityRsPathMap.set(codeName, sortedPaths);
63
89
  return sortedPaths;
64
90
  }
65
91
  }
66
92
  return [
67
- [{ deName, name: deName.toLowerCase(), plural: pluralLower(deName) }],
93
+ [
94
+ {
95
+ deName: codeName,
96
+ name: codeName.toLowerCase(),
97
+ plural: pluralLower(codeName),
98
+ },
99
+ ],
68
100
  ];
69
101
  }
70
102
  /**
@@ -76,7 +108,7 @@ export class ServicePathUtil {
76
108
  * @param {IPSAppDERS[]} deRss
77
109
  * @return {*} {ServicePathDeep[]}
78
110
  */
79
- static calcDeepPath(deRss, num = 0) {
111
+ calcDeepPath(deRss, num = 0) {
80
112
  if (num > 10) {
81
113
  throw new Error('服务路径计算超过最大层级 10');
82
114
  }
@@ -98,7 +130,7 @@ export class ServicePathUtil {
98
130
  * @param {string[]} pathNames
99
131
  * @param {ServicePathDeep[]} items
100
132
  */
101
- static deepFillPath(deName, pathNames, items) {
133
+ deepFillPath(deName, pathNames, items) {
102
134
  items.forEach(item => {
103
135
  const [rs, children] = item;
104
136
  if (children.length > 0) {
@@ -135,28 +167,9 @@ export class ServicePathUtil {
135
167
  * @param {ServicePathItem[][]} paths
136
168
  * @return {*} {ServicePathItem[][]}
137
169
  */
138
- static sortPath(paths) {
170
+ sortPath(paths) {
139
171
  return paths.sort((a, b) => {
140
172
  return b.length - a.length;
141
173
  });
142
174
  }
143
175
  }
144
- ServicePathUtil.allDERss = [];
145
- /**
146
- * 应用实体关系
147
- *
148
- * @author chitanda
149
- * @date 2022-08-22 22:08:18
150
- * @protected
151
- * @type {Map<string, IPSAppDERS[]>} <应用实体, 应用实体父关系>
152
- */
153
- ServicePathUtil.entityRsMap = new Map();
154
- /**
155
- * 实体资源路径
156
- *
157
- * @author chitanda
158
- * @date 2022-08-22 22:08:58
159
- * @protected
160
- * @type {Map<string, ServicePathItem[][]>}
161
- */
162
- ServicePathUtil.entityRsPathMap = new Map();
@@ -1 +1 @@
1
- {"version":3,"file":"control.vo.d.ts","sourceRoot":"","sources":["../../../src/service/vo/control.vo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;;;GAOG;AACH,qBAAa,SAAS;IAEpB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAE5B;;;;;;;OAOG;IACK,OAAO,EAAE,KAAK,CAAC;IAEvB;;;;;;;OAOG;IACK,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAE5C;;;;;;OAMG;IACH,IAAI,KAAK,IAAI,KAAK,CAKjB;IAED;;;;;;OAMG;IACK,MAAM,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;IACK,YAAY,EAAE,MAAM,CAAC;IAE7B;;;;;;OAMG;gBACS,OAAO,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC;IA+BjE;;;;;;;;;;OAUG;IACH,OAAO,CAAC,YAAY;IAgCpB;;;;;;OAMG;IACH,SAAS;IAIT;;;;;;OAMG;IACH,cAAc;IAUd;;;;;;OAMG;IACH,SAAS,CAAC,IAAI,EAAE,KAAK,GAAG,SAAS;IAIjC;;;;;;OAMG;IACH,WAAW,CAAC,IAAI,EAAE,KAAK,GAAG,SAAS;IAOnC;;;;;OAKG;IACH,YAAY;CAQb"}
1
+ {"version":3,"file":"control.vo.d.ts","sourceRoot":"","sources":["../../../src/service/vo/control.vo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;;;GAOG;AACH,qBAAa,SAAS;IAEpB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAE5B;;;;;;;OAOG;IACK,OAAO,EAAE,KAAK,CAAC;IAEvB;;;;;;;OAOG;IACK,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAE5C;;;;;;OAMG;IACH,IAAI,KAAK,IAAI,KAAK,CAKjB;IAED;;;;;;OAMG;IACK,MAAM,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;IACK,YAAY,EAAE,MAAM,CAAC;IAE7B;;;;;;OAMG;gBACS,OAAO,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC;IAiCjE;;;;;;;;;;OAUG;IACH,OAAO,CAAC,YAAY;IAgCpB;;;;;;OAMG;IACH,SAAS;IAIT;;;;;;OAMG;IACH,cAAc;IAUd;;;;;;OAMG;IACH,SAAS,CAAC,IAAI,EAAE,KAAK,GAAG,SAAS;IAIjC;;;;;;OAMG;IACH,WAAW,CAAC,IAAI,EAAE,KAAK,GAAG,SAAS;IAOnC;;;;;OAKG;IACH,YAAY;CAQb"}
@@ -35,10 +35,12 @@ export class ControlVO {
35
35
  }
36
36
  Object.defineProperty(this, '$origin', {
37
37
  enumerable: false,
38
+ configurable: true,
38
39
  value: $origin || {},
39
40
  });
40
41
  Object.defineProperty(this, '$dataUIMap', {
41
42
  enumerable: false,
43
+ configurable: true,
42
44
  value: $dataUIMap || new Map(),
43
45
  });
44
46
  // 先转换映射的属性
@@ -0,0 +1,3 @@
1
+ export * from './control.vo';
2
+ export * from './tree-node-data';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/vo/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './control.vo';
2
+ export * from './tree-node-data';
@@ -0,0 +1,3 @@
1
+ export { TreeDataSetNodeData } from './tree-data-set-node-data';
2
+ export { TreeStaticNodeData } from './tree-static-node-data';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/service/vo/tree-node-data/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { TreeDataSetNodeData } from './tree-data-set-node-data';
2
+ export { TreeStaticNodeData } from './tree-static-node-data';
@@ -0,0 +1,22 @@
1
+ import { TreeDataSetNodeModel } from '@ibiz-template/model';
2
+ import { ITreeNodeData } from '../../interface';
3
+ import { TreeNodeData } from './tree-node-data';
4
+ /**
5
+ * 实体数据集树节点数据
6
+ *
7
+ * @export
8
+ * @class TreeDataSetNodeData
9
+ * @extends {TreeNodeData}
10
+ * @implements {ITreeNodeData}
11
+ */
12
+ export declare class TreeDataSetNodeData extends TreeNodeData implements ITreeNodeData {
13
+ text: string;
14
+ id: string;
15
+ value: string;
16
+ deData: IData;
17
+ constructor(model: TreeDataSetNodeModel, parentNodeData: ITreeNodeData | undefined, opts: {
18
+ hasQuery: boolean;
19
+ data: IData;
20
+ });
21
+ }
22
+ //# sourceMappingURL=tree-data-set-node-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tree-data-set-node-data.d.ts","sourceRoot":"","sources":["../../../../src/service/vo/tree-node-data/tree-data-set-node-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;;;;;;GAOG;AACH,qBAAa,mBAAoB,SAAQ,YAAa,YAAW,aAAa;IAC5E,IAAI,EAAE,MAAM,CAAC;IAEb,EAAE,EAAE,MAAM,CAAC;IAEX,KAAK,EAAE,MAAM,CAAC;IAEd,MAAM,EAAE,KAAK,CAAC;gBAGZ,KAAK,EAAE,oBAAoB,EAC3B,cAAc,EAAE,aAAa,GAAG,SAAS,EACzC,IAAI,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,KAAK,CAAA;KAAE;CAa3C"}
@@ -0,0 +1,23 @@
1
+ import { TreeNodeData } from './tree-node-data';
2
+ /**
3
+ * 实体数据集树节点数据
4
+ *
5
+ * @export
6
+ * @class TreeDataSetNodeData
7
+ * @extends {TreeNodeData}
8
+ * @implements {ITreeNodeData}
9
+ */
10
+ export class TreeDataSetNodeData extends TreeNodeData {
11
+ constructor(model, parentNodeData, opts) {
12
+ super(model, parentNodeData, opts);
13
+ const { data } = opts;
14
+ this.deData = data;
15
+ this.text = data.srfmajortext;
16
+ this.value = data.srfkey;
17
+ this.id = parentNodeData
18
+ ? `${parentNodeData.id}:${data.srfkey}`
19
+ : data.srfkey;
20
+ // id小写
21
+ this.id = this.id.toLowerCase();
22
+ }
23
+ }