@farris/ui-vue 1.7.3 → 1.7.5

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 (392) hide show
  1. package/components/accordion/index.esm.js +312 -61
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +1482 -56
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +752 -8
  6. package/components/binding-selector/index.umd.cjs +1 -1
  7. package/components/button-group/index.esm.js +266 -110
  8. package/components/button-group/index.umd.cjs +1 -1
  9. package/components/calendar/index.esm.js +129 -128
  10. package/components/calendar/index.umd.cjs +2 -2
  11. package/components/code-editor/index.esm.js +237 -169
  12. package/components/code-editor/index.umd.cjs +3 -3
  13. package/components/collection-property-editor/index.esm.js +134 -133
  14. package/components/collection-property-editor/index.umd.cjs +2 -2
  15. package/components/color-picker/index.esm.js +812 -502
  16. package/components/color-picker/index.umd.cjs +1 -1
  17. package/components/combo-list/index.esm.js +323 -291
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +355 -174
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/comment/index.esm.js +134 -133
  22. package/components/comment/index.umd.cjs +2 -2
  23. package/components/common/index.esm.js +1 -1
  24. package/components/common/index.umd.cjs +1 -1
  25. package/components/component/index.esm.js +3791 -2760
  26. package/components/component/index.umd.cjs +8 -1
  27. package/components/condition/index.esm.js +2482 -492
  28. package/components/condition/index.umd.cjs +8 -1
  29. package/components/data-view/index.esm.js +1816 -1790
  30. package/components/data-view/index.umd.cjs +1 -1
  31. package/components/date-picker/index.esm.js +1 -1
  32. package/components/date-picker/index.umd.cjs +1 -1
  33. package/components/designer-canvas/index.esm.js +2975 -2615
  34. package/components/designer-canvas/index.umd.cjs +1 -1
  35. package/components/drawer/index.esm.js +397 -387
  36. package/components/drawer/index.umd.cjs +2 -2
  37. package/components/dropdown/index.esm.js +373 -124
  38. package/components/dropdown/index.umd.cjs +2 -2
  39. package/components/dynamic-form/index.esm.js +592 -1894
  40. package/components/dynamic-form/index.umd.cjs +1 -1
  41. package/components/dynamic-resolver/index.esm.js +250 -248
  42. package/components/dynamic-resolver/index.umd.cjs +2 -2
  43. package/components/dynamic-view/index.esm.js +427 -466
  44. package/components/dynamic-view/index.umd.cjs +1 -1
  45. package/components/event-parameter/index.esm.js +1 -1
  46. package/components/event-parameter/index.umd.cjs +1 -1
  47. package/components/events-editor/index.esm.js +1890 -1473
  48. package/components/events-editor/index.umd.cjs +3 -3
  49. package/components/expression-editor/index.css +1 -1
  50. package/components/expression-editor/index.esm.js +7371 -2
  51. package/components/expression-editor/index.umd.cjs +427 -1
  52. package/components/fieldset/index.esm.js +1 -1
  53. package/components/fieldset/index.umd.cjs +1 -1
  54. package/components/filter-bar/index.esm.js +2 -3
  55. package/components/filter-bar/index.umd.cjs +2 -2
  56. package/components/filter-condition-editor/index.css +1 -1
  57. package/components/filter-condition-editor/index.esm.js +9044 -425
  58. package/components/filter-condition-editor/index.umd.cjs +427 -1
  59. package/components/html-template/index.esm.js +33 -36
  60. package/components/html-template/index.umd.cjs +1 -1
  61. package/components/image-cropper/index.esm.js +615 -361
  62. package/components/image-cropper/index.umd.cjs +1 -1
  63. package/components/json-editor/index.esm.js +325 -247
  64. package/components/json-editor/index.umd.cjs +1 -1
  65. package/components/language-textbox/index.esm.js +269 -269
  66. package/components/language-textbox/index.umd.cjs +2 -2
  67. package/components/layout/index.esm.js +549 -163
  68. package/components/layout/index.umd.cjs +1 -1
  69. package/components/list-nav/index.esm.js +837 -39
  70. package/components/list-nav/index.umd.cjs +1 -1
  71. package/components/list-view/index.esm.js +427 -646
  72. package/components/list-view/index.umd.cjs +6 -6
  73. package/components/lookup/index.esm.js +3624 -3625
  74. package/components/lookup/index.umd.cjs +1 -1
  75. package/components/menu-lookup/index.esm.js +577 -536
  76. package/components/menu-lookup/index.umd.cjs +6 -6
  77. package/components/nav/index.esm.js +311 -31
  78. package/components/nav/index.umd.cjs +1 -1
  79. package/components/number-range/index.esm.js +1634 -189
  80. package/components/number-range/index.umd.cjs +1 -1
  81. package/components/number-spinner/index.esm.js +82 -82
  82. package/components/number-spinner/index.umd.cjs +1 -1
  83. package/components/order/index.esm.js +1190 -850
  84. package/components/order/index.umd.cjs +6 -6
  85. package/components/page-footer/index.esm.js +331 -48
  86. package/components/page-footer/index.umd.cjs +1 -1
  87. package/components/page-header/index.esm.js +110 -116
  88. package/components/page-header/index.umd.cjs +1 -1
  89. package/components/pagination/index.esm.js +509 -232
  90. package/components/pagination/index.umd.cjs +1 -1
  91. package/components/progress/index.esm.js +353 -148
  92. package/components/progress/index.umd.cjs +3 -3
  93. package/components/property-editor/index.esm.js +157 -153
  94. package/components/property-editor/index.umd.cjs +1 -1
  95. package/components/property-panel/index.esm.js +1825 -871
  96. package/components/property-panel/index.umd.cjs +12 -5
  97. package/components/query-solution/index.css +1 -1
  98. package/components/query-solution/index.esm.js +6075 -3863
  99. package/components/query-solution/index.umd.cjs +13 -6
  100. package/components/response-layout/index.esm.js +1 -1
  101. package/components/response-layout/index.umd.cjs +1 -1
  102. package/components/schema-selector/index.esm.js +2447 -2221
  103. package/components/schema-selector/index.umd.cjs +7 -7
  104. package/components/search-box/index.esm.js +244 -72
  105. package/components/search-box/index.umd.cjs +1 -1
  106. package/components/section/index.esm.js +134 -133
  107. package/components/section/index.umd.cjs +2 -2
  108. package/components/smoke-detector/index.esm.js +179 -8
  109. package/components/smoke-detector/index.umd.cjs +1 -1
  110. package/components/sort-condition-editor/index.css +1 -0
  111. package/components/sort-condition-editor/index.esm.js +9488 -4
  112. package/components/sort-condition-editor/index.umd.cjs +427 -1
  113. package/components/splitter/index.esm.js +1172 -142
  114. package/components/splitter/index.umd.cjs +1 -1
  115. package/components/step/index.esm.js +47 -48
  116. package/components/step/index.umd.cjs +1 -1
  117. package/components/tabs/index.esm.js +490 -419
  118. package/components/tabs/index.umd.cjs +1 -1
  119. package/components/text/index.esm.js +217 -73
  120. package/components/text/index.umd.cjs +1 -1
  121. package/components/textarea/index.esm.js +29 -27
  122. package/components/textarea/index.umd.cjs +2 -2
  123. package/components/transfer/index.esm.js +760 -543
  124. package/components/transfer/index.umd.cjs +5 -5
  125. package/components/tree-grid/index.esm.js +105 -104
  126. package/components/tree-grid/index.umd.cjs +1 -1
  127. package/components/tree-view/index.esm.js +320 -153
  128. package/components/tree-view/index.umd.cjs +1 -1
  129. package/components/uploader/index.esm.js +1125 -634
  130. package/components/uploader/index.umd.cjs +2 -2
  131. package/components/verify-detail/index.esm.js +359 -106
  132. package/components/verify-detail/index.umd.cjs +1 -1
  133. package/components/video/index.esm.js +222 -89
  134. package/components/video/index.umd.cjs +1 -1
  135. package/components/weather/index.esm.js +290 -199
  136. package/components/weather/index.umd.cjs +1 -1
  137. package/designer/data-grid/index.esm.js +5192 -4408
  138. package/designer/data-grid/index.umd.cjs +17 -10
  139. package/designer/drawer/index.esm.js +576 -567
  140. package/designer/drawer/index.umd.cjs +2 -2
  141. package/designer/dynamic-form/index.esm.js +1418 -1154
  142. package/designer/dynamic-form/index.umd.cjs +8 -1
  143. package/designer/farris-designer.all.esm.js +12665 -12117
  144. package/designer/farris-designer.all.umd.cjs +12 -12
  145. package/designer/list-view/index.esm.js +327 -327
  146. package/designer/list-view/index.umd.cjs +3 -3
  147. package/designer/modal/index.esm.js +29 -137
  148. package/designer/modal/index.umd.cjs +1 -1
  149. package/designer/radio-group/index.esm.js +0 -1
  150. package/designer/radio-group/index.umd.cjs +1 -1
  151. package/designer/response-toolbar/index.esm.js +9 -9
  152. package/designer/response-toolbar/index.umd.cjs +1 -1
  153. package/designer/section/index.esm.js +1 -6
  154. package/designer/section/index.umd.cjs +1 -1
  155. package/designer/tabs/index.esm.js +2829 -2540
  156. package/designer/tabs/index.umd.cjs +2 -2
  157. package/designer/tree-grid/index.esm.js +822 -464
  158. package/designer/tree-grid/index.umd.cjs +1 -1
  159. package/farris.all.esm.js +68724 -67244
  160. package/farris.all.umd.cjs +92 -92
  161. package/index.css +1 -1
  162. package/package.json +1 -1
  163. package/types/accordion/src/accordion.props.d.ts +1 -0
  164. package/types/accordion/src/components/accordion-item.props.d.ts +1 -0
  165. package/types/avatar/src/avatar.props.d.ts +1 -0
  166. package/types/binding-selector/index.d.ts +54 -0
  167. package/types/binding-selector/src/binding-selector.props.d.ts +1 -0
  168. package/types/button-group/index.d.ts +0 -15
  169. package/types/button-group/src/button-group.props.d.ts +1 -0
  170. package/types/code-editor/index.d.ts +1 -0
  171. package/types/code-editor/src/code-textbox.component.d.ts +6 -6
  172. package/types/code-editor/src/code-textbox.props.d.ts +2 -0
  173. package/types/color-picker/index.d.ts +15 -0
  174. package/types/color-picker/src/color-picker.props.d.ts +1 -0
  175. package/types/combo-list/src/composition/use-data-source.d.ts +2 -1
  176. package/types/combo-list/src/property-config/combo-list.property-config.d.ts +14 -2
  177. package/types/combo-tree/src/combo-tree.props.d.ts +1 -0
  178. package/types/component/index.d.ts +2 -0
  179. package/types/component/src/component.props.d.ts +8 -0
  180. package/types/components.d.ts +6 -1
  181. package/types/condition/index.d.ts +55 -0
  182. package/types/designer-toolbox/index.d.ts +3 -0
  183. package/types/designer-toolbox/src/toolbox.component.d.ts +14 -0
  184. package/types/designer-toolbox/src/toolbox.props.d.ts +29 -0
  185. package/types/designer-toolbox/src/types.d.ts +21 -0
  186. package/types/designer.d.ts +13 -0
  187. package/types/dropdown/index.d.ts +6 -27
  188. package/types/dropdown/src/dropdown.item.component.d.ts +1 -1
  189. package/types/dropdown/src/dropdown.props.d.ts +1 -0
  190. package/types/dynamic-form/designer.d.ts +1 -3
  191. package/types/dynamic-form/index.d.ts +3 -9
  192. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
  193. package/types/dynamic-resolver/index.d.ts +0 -3
  194. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
  195. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
  196. package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
  197. package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
  198. package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
  199. package/types/dynamic-view/src/components/maps.d.ts +104 -92
  200. package/types/{binding-selector/designer.d.ts → expression-editor/index.d.ts} +6 -6
  201. package/types/filter-condition-editor/index.d.ts +9 -0
  202. package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
  203. package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
  204. package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +1 -0
  205. package/types/flow-canvas/index.d.ts +3 -0
  206. package/types/{dynamic-form/src/component/form-control/form-control.component.d.ts → flow-canvas/src/components/flow-node-item.component.d.ts} +1 -1
  207. package/types/flow-canvas/src/components/flow-node-item.props.d.ts +3 -0
  208. package/types/flow-canvas/src/composition/types.d.ts +42 -0
  209. package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +2 -0
  210. package/types/flow-canvas/src/composition/use-connections.d.ts +2 -0
  211. package/types/flow-canvas/src/composition/use-curve.d.ts +4 -0
  212. package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +2 -0
  213. package/types/flow-canvas/src/composition/use-drawing.d.ts +4 -0
  214. package/types/flow-canvas/src/flow-canvas.component.d.ts +8 -0
  215. package/types/flow-canvas/src/flow-canvas.props.d.ts +3 -0
  216. package/types/image-cropper/src/image-cropper.props.d.ts +1 -0
  217. package/types/index.d.ts +1 -0
  218. package/types/json-editor/src/json-editor.props.d.ts +1 -0
  219. package/types/layout/index.d.ts +0 -1
  220. package/types/layout/src/components/layout-pane.props.d.ts +1 -0
  221. package/types/layout/src/layout.props.d.ts +1 -0
  222. package/types/list-nav/index.d.ts +5 -24
  223. package/types/list-nav/src/list-nav.props.d.ts +1 -0
  224. package/types/list-view/index.d.ts +0 -1
  225. package/types/list-view/src/composition/use-draggable.d.ts +1 -1
  226. package/types/lookup/index.d.ts +1 -1
  227. package/types/lookup/src/components/popup-container.component.d.ts +3 -3
  228. package/types/menu-lookup/src/menu-lookup.props.d.ts +1 -0
  229. package/types/modal/designer.d.ts +0 -2
  230. package/types/nav/index.d.ts +20 -24
  231. package/types/nav/src/nav.props.d.ts +1 -0
  232. package/types/number-range/src/number-range.props.d.ts +1 -0
  233. package/types/order/index.d.ts +5 -36
  234. package/types/order/src/designer/order.design.component.d.ts +1 -1
  235. package/types/order/src/order.props.d.ts +1 -0
  236. package/types/page-footer/index.d.ts +2 -0
  237. package/types/page-footer/src/page-footer.props.d.ts +1 -0
  238. package/types/pagination/index.d.ts +0 -15
  239. package/types/pagination/src/pagination.props.d.ts +1 -0
  240. package/types/progress/src/progress.props.d.ts +1 -0
  241. package/types/query-solution/index.d.ts +1 -1
  242. package/types/radio-group/designer.d.ts +1 -2
  243. package/types/search-box/index.d.ts +17 -1
  244. package/types/search-box/src/search-box.props.d.ts +1 -0
  245. package/types/section/designer.d.ts +0 -1
  246. package/types/smoke-detector/index.d.ts +2 -0
  247. package/types/smoke-detector/src/smoke-detector.props.d.ts +1 -0
  248. package/types/sort-condition-editor/index.d.ts +7 -2
  249. package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +1 -0
  250. package/types/splitter/index.d.ts +0 -1
  251. package/types/splitter/src/components/splitter-pane.props.d.ts +1 -0
  252. package/types/splitter/src/splitter.props.d.ts +1 -0
  253. package/types/tabs/designer.d.ts +0 -1
  254. package/types/tabs/index.d.ts +1 -0
  255. package/types/text/index.d.ts +20 -24
  256. package/types/text/src/text.props.d.ts +1 -0
  257. package/types/transfer/src/transfer.props.d.ts +1 -0
  258. package/types/tree-view/src/tree-view.props.d.ts +1 -0
  259. package/types/uploader/src/uploader.props.d.ts +1 -0
  260. package/types/verify-detail/index.d.ts +5 -58
  261. package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
  262. package/types/verify-detail/src/verify-detail.props.d.ts +1 -0
  263. package/types/video/index.d.ts +20 -24
  264. package/types/video/src/video.props.d.ts +1 -0
  265. package/components/dynamic-form/index.css +0 -1
  266. package/designer/accordion/index.esm.js +0 -257
  267. package/designer/accordion/index.umd.cjs +0 -1
  268. package/designer/avatar/index.esm.js +0 -1460
  269. package/designer/avatar/index.umd.cjs +0 -1
  270. package/designer/binding-selector/index.esm.js +0 -792
  271. package/designer/binding-selector/index.umd.cjs +0 -1
  272. package/designer/button-group/index.esm.js +0 -282
  273. package/designer/button-group/index.umd.cjs +0 -1
  274. package/designer/code-editor/index.esm.js +0 -75
  275. package/designer/code-editor/index.umd.cjs +0 -1
  276. package/designer/color-picker/index.esm.js +0 -1096
  277. package/designer/color-picker/index.umd.cjs +0 -1
  278. package/designer/combo-list/index.esm.js +0 -1095
  279. package/designer/combo-list/index.umd.cjs +0 -1
  280. package/designer/combo-tree/index.esm.js +0 -186
  281. package/designer/combo-tree/index.umd.cjs +0 -1
  282. package/designer/component/index.css +0 -1
  283. package/designer/component/index.esm.js +0 -5002
  284. package/designer/component/index.umd.cjs +0 -1
  285. package/designer/condition/index.esm.js +0 -1899
  286. package/designer/condition/index.umd.cjs +0 -1
  287. package/designer/dropdown/index.esm.js +0 -261
  288. package/designer/dropdown/index.umd.cjs +0 -1
  289. package/designer/expression-editor/index.css +0 -1
  290. package/designer/expression-editor/index.esm.js +0 -7006
  291. package/designer/expression-editor/index.umd.cjs +0 -427
  292. package/designer/filter-condition-editor/index.css +0 -1
  293. package/designer/filter-condition-editor/index.esm.js +0 -4795
  294. package/designer/filter-condition-editor/index.umd.cjs +0 -1
  295. package/designer/html-template/index.esm.js +0 -718
  296. package/designer/html-template/index.umd.cjs +0 -1
  297. package/designer/image-cropper/index.esm.js +0 -765
  298. package/designer/image-cropper/index.umd.cjs +0 -1
  299. package/designer/json-editor/index.esm.js +0 -83
  300. package/designer/json-editor/index.umd.cjs +0 -1
  301. package/designer/language-textbox/index.esm.js +0 -783
  302. package/designer/language-textbox/index.umd.cjs +0 -8
  303. package/designer/layout/index.esm.js +0 -430
  304. package/designer/layout/index.umd.cjs +0 -1
  305. package/designer/list-nav/index.esm.js +0 -802
  306. package/designer/list-nav/index.umd.cjs +0 -1
  307. package/designer/lookup/index.esm.js +0 -2083
  308. package/designer/lookup/index.umd.cjs +0 -1
  309. package/designer/menu-lookup/index.esm.js +0 -46
  310. package/designer/menu-lookup/index.umd.cjs +0 -1
  311. package/designer/nav/index.esm.js +0 -284
  312. package/designer/nav/index.umd.cjs +0 -1
  313. package/designer/number-range/index.esm.js +0 -1616
  314. package/designer/number-range/index.umd.cjs +0 -1
  315. package/designer/order/index.css +0 -1
  316. package/designer/order/index.esm.js +0 -2196
  317. package/designer/order/index.umd.cjs +0 -18
  318. package/designer/page-footer/index.esm.js +0 -290
  319. package/designer/page-footer/index.umd.cjs +0 -1
  320. package/designer/page-header/index.esm.js +0 -1003
  321. package/designer/page-header/index.umd.cjs +0 -1
  322. package/designer/pagination/index.esm.js +0 -591
  323. package/designer/pagination/index.umd.cjs +0 -1
  324. package/designer/progress/index.esm.js +0 -213
  325. package/designer/progress/index.umd.cjs +0 -1
  326. package/designer/search-box/index.esm.js +0 -245
  327. package/designer/search-box/index.umd.cjs +0 -1
  328. package/designer/smoke-detector/index.css +0 -1
  329. package/designer/smoke-detector/index.esm.js +0 -178
  330. package/designer/smoke-detector/index.umd.cjs +0 -1
  331. package/designer/sort-condition-editor/index.esm.js +0 -138
  332. package/designer/sort-condition-editor/index.umd.cjs +0 -1
  333. package/designer/splitter/index.esm.js +0 -1120
  334. package/designer/splitter/index.umd.cjs +0 -1
  335. package/designer/step/index.esm.js +0 -226
  336. package/designer/step/index.umd.cjs +0 -1
  337. package/designer/text/index.esm.js +0 -147
  338. package/designer/text/index.umd.cjs +0 -1
  339. package/designer/transfer/index.esm.js +0 -254
  340. package/designer/transfer/index.umd.cjs +0 -1
  341. package/designer/tree-view/index.esm.js +0 -313
  342. package/designer/tree-view/index.umd.cjs +0 -1
  343. package/designer/uploader/index.esm.js +0 -1190
  344. package/designer/uploader/index.umd.cjs +0 -2
  345. package/designer/verify-detail/index.esm.js +0 -258
  346. package/designer/verify-detail/index.umd.cjs +0 -1
  347. package/designer/video/index.esm.js +0 -136
  348. package/designer/video/index.umd.cjs +0 -1
  349. package/designer/weather/index.css +0 -1
  350. package/designer/weather/index.esm.js +0 -6244
  351. package/designer/weather/index.umd.cjs +0 -14
  352. package/types/accordion/designer.d.ts +0 -44
  353. package/types/avatar/designer.d.ts +0 -29
  354. package/types/button-group/designer.d.ts +0 -29
  355. package/types/code-editor/designer.d.ts +0 -5
  356. package/types/color-picker/designer.d.ts +0 -29
  357. package/types/combo-list/designer.d.ts +0 -29
  358. package/types/combo-list/src/designer/combo-list.design.props.d.ts +0 -6
  359. package/types/combo-tree/designer.d.ts +0 -5
  360. package/types/component/designer.d.ts +0 -35
  361. package/types/condition/designer.d.ts +0 -56
  362. package/types/dropdown/designer.d.ts +0 -6
  363. package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +0 -11
  364. package/types/expression-editor/designer.d.ts +0 -9
  365. package/types/filter-condition-editor/designer.d.ts +0 -10
  366. package/types/html-template/designer.d.ts +0 -31
  367. package/types/html-template/src/designer/html-template.design.props.d.ts +0 -9
  368. package/types/image-cropper/designer.d.ts +0 -4
  369. package/types/json-editor/designer.d.ts +0 -5
  370. package/types/layout/designer.d.ts +0 -32
  371. package/types/list-nav/designer.d.ts +0 -6
  372. package/types/menu-lookup/designer.d.ts +0 -5
  373. package/types/nav/designer.d.ts +0 -6
  374. package/types/number-range/designer.d.ts +0 -29
  375. package/types/order/designer.d.ts +0 -6
  376. package/types/page-footer/designer.d.ts +0 -6
  377. package/types/page-header/src/designer/page-header.design.props.d.ts +0 -20
  378. package/types/pagination/designer.d.ts +0 -29
  379. package/types/progress/designer.d.ts +0 -29
  380. package/types/search-box/designer.d.ts +0 -52
  381. package/types/smoke-detector/designer.d.ts +0 -6
  382. package/types/sort-condition-editor/designer.d.ts +0 -9
  383. package/types/splitter/designer.d.ts +0 -32
  384. package/types/step/designer.d.ts +0 -6
  385. package/types/text/designer.d.ts +0 -6
  386. package/types/transfer/designer.d.ts +0 -35
  387. package/types/tree-view/designer.d.ts +0 -29
  388. package/types/uploader/designer.d.ts +0 -141
  389. package/types/verify-detail/designer.d.ts +0 -6
  390. package/types/video/designer.d.ts +0 -6
  391. /package/{designer → components}/condition/index.css +0 -0
  392. /package/{designer → components}/uploader/index.css +0 -0
@@ -1,23 +1,97 @@
1
- import { inject as W, ref as F, defineComponent as ee, createVNode as n, onMounted as se, computed as q, createTextVNode as Y, Fragment as Me, onBeforeMount as He, reactive as De, withDirectives as _e, resolveDirective as ze, watch as je, onUnmounted as Ye, provide as ye } from "vue";
2
- import { resolveAppearance as Qe, createPropsResolver as Xe, schemaMap as qe } from "../dynamic-resolver/index.esm.js";
3
- import { cloneDeep as _ } from "lodash-es";
4
- import { useGuid as Ue, ControllerSchemaRepositorySymbol as Ze } from "../common/index.esm.js";
5
- import { DgControl as en } from "../designer-canvas/index.esm.js";
6
- import { FNotifyService as re } from "../notify/index.esm.js";
7
- import { FTreeView as nn } from "../tree-view/index.esm.js";
8
- import { FSchemaSelector as on } from "../schema-selector/index.esm.js";
9
- import { F_MODAL_SERVICE_TOKEN as tn } from "../modal/index.esm.js";
10
- import an from "../input-group/index.esm.js";
11
- import ln from "../combo-list/index.esm.js";
12
- import We from "../event-parameter/index.esm.js";
13
- import { FDynamicFormGroup as cn } from "../../designer/dynamic-form/index.esm.js";
14
- const rn = /* @__PURE__ */ new Map([
15
- ["appearance", Qe]
1
+ import { inject as X, ref as b, defineComponent as te, createVNode as n, onMounted as he, computed as K, createTextVNode as Y, Fragment as Ie, onBeforeMount as nn, reactive as Ge, withDirectives as He, resolveDirective as We, watch as me, mergeProps as rn, onUnmounted as cn, provide as Be } from "vue";
2
+ import { resolveAppearance as sn, createPropsResolver as on, schemaMap as Je, schemaResolverMap as un, propertyEffectMap as dn, propertyConfigSchemaMap as mn } from "../dynamic-resolver/index.esm.js";
3
+ import { cloneDeep as W } from "lodash-es";
4
+ import { useGuid as Qe, ControllerSchemaRepositorySymbol as fn, useThirdComponent as vn, isMobilePhone as hn } from "../common/index.esm.js";
5
+ import { DgControl as gn } from "../designer-canvas/index.esm.js";
6
+ import { FNotifyService as fe } from "../notify/index.esm.js";
7
+ import Cn, { FTreeView as pn } from "../tree-view/index.esm.js";
8
+ import bn, { FSchemaSelector as wn } from "../schema-selector/index.esm.js";
9
+ import { F_MODAL_SERVICE_TOKEN as Sn } from "../modal/index.esm.js";
10
+ import Fn from "../input-group/index.esm.js";
11
+ import tn from "../combo-list/index.esm.js";
12
+ import Ye from "../event-parameter/index.esm.js";
13
+ import { LocaleService as yn } from "../locale/index.esm.js";
14
+ import En from "../accordion/index.esm.js";
15
+ import Nn from "../avatar/index.esm.js";
16
+ import Pn from "../../designer/button-edit/index.esm.js";
17
+ import Mn from "../button-group/index.esm.js";
18
+ import Vn from "../calendar/index.esm.js";
19
+ import Ln from "../../designer/capsule/index.esm.js";
20
+ import Xe from "../../designer/checkbox/index.esm.js";
21
+ import Ze from "../../designer/checkbox-group/index.esm.js";
22
+ import xn from "../combo-tree/index.esm.js";
23
+ import Bn from "../component/index.esm.js";
24
+ import In from "../color-picker/index.esm.js";
25
+ import Tn from "../content-container/index.esm.js";
26
+ import kn from "../../designer/date-picker/index.esm.js";
27
+ import An from "../../designer/data-grid/index.esm.js";
28
+ import $n from "../dropdown/index.esm.js";
29
+ import On from "../../designer/dynamic-form/index.esm.js";
30
+ import Dn from "../events-editor/index.esm.js";
31
+ import Rn from "../filter-bar/index.esm.js";
32
+ import jn from "../field-selector/index.esm.js";
33
+ import Un from "../binding-selector/index.esm.js";
34
+ import qn from "../image-cropper/index.esm.js";
35
+ import Gn from "../../designer/input-group/index.esm.js";
36
+ import _n from "../layout/index.esm.js";
37
+ import zn from "../list-nav/index.esm.js";
38
+ import Hn from "../../designer/list-view/index.esm.js";
39
+ import Wn from "../lookup/index.esm.js";
40
+ import Kn from "../mapping-editor/index.esm.js";
41
+ import Jn from "../nav/index.esm.js";
42
+ import Qn from "../number-range/index.esm.js";
43
+ import Yn from "../../designer/number-spinner/index.esm.js";
44
+ import Xn from "../order/index.esm.js";
45
+ import Zn from "../page-header/index.esm.js";
46
+ import eo from "../page-footer/index.esm.js";
47
+ import no from "../pagination/index.esm.js";
48
+ import oo from "../progress/index.esm.js";
49
+ import to from "../query-solution/index.esm.js";
50
+ import ao from "../../designer/radio-group/index.esm.js";
51
+ import lo from "../../designer/rate/index.esm.js";
52
+ import ro from "../../designer/response-toolbar/index.esm.js";
53
+ import io from "../response-layout/index.esm.js";
54
+ import co from "../../designer/response-layout-editor/index.esm.js";
55
+ import so from "../search-box/index.esm.js";
56
+ import uo from "../../designer/section/index.esm.js";
57
+ import mo from "../smoke-detector/index.esm.js";
58
+ import fo from "../splitter/index.esm.js";
59
+ import vo from "../step/index.esm.js";
60
+ import ho from "../../designer/switch/index.esm.js";
61
+ import go from "../../designer/tabs/index.esm.js";
62
+ import Co from "../../designer/tags/index.esm.js";
63
+ import po from "../text/index.esm.js";
64
+ import bo from "../../designer/time-picker/index.esm.js";
65
+ import wo from "../transfer/index.esm.js";
66
+ import So from "../uploader/index.esm.js";
67
+ import Fo from "../verify-detail/index.esm.js";
68
+ import yo from "../video/index.esm.js";
69
+ import Eo from "../../designer/textarea/index.esm.js";
70
+ import No from "../../designer/tree-grid/index.esm.js";
71
+ import Po from "../filter-condition-editor/index.esm.js";
72
+ import Mo from "../fieldset/index.esm.js";
73
+ import Vo from "../sort-condition-editor/index.esm.js";
74
+ import Lo from "../menu-lookup/index.esm.js";
75
+ import xo from "../../designer/drawer/index.esm.js";
76
+ import Bo from "../json-editor/index.esm.js";
77
+ import Io from "../property-editor/index.esm.js";
78
+ import To from "../expression-editor/index.esm.js";
79
+ import ko from "../code-editor/index.esm.js";
80
+ import Ao from "../html-template/index.esm.js";
81
+ import $o from "../collection-property-editor/index.esm.js";
82
+ import Oo from "../../designer/modal/index.esm.js";
83
+ import Do from "../external-container/index.esm.js";
84
+ import Ro from "../language-textbox/index.esm.js";
85
+ import jo from "../image/index.esm.js";
86
+ import Uo from "../comment/index.esm.js";
87
+ import "../property-panel/index.esm.js";
88
+ const qo = /* @__PURE__ */ new Map([
89
+ ["appearance", sn]
16
90
  ]);
17
- function un(e, B, N) {
18
- return B;
91
+ function Go(e, E, g) {
92
+ return E;
19
93
  }
20
- const sn = "https://json-schema.org/draft/2020-12/schema", dn = "https://farris-design.gitee.io/events-editor.schema.json", mn = "events-editor", fn = "A Farris Component", vn = "object", hn = {
94
+ const _o = "https://json-schema.org/draft/2020-12/schema", zo = "https://farris-design.gitee.io/events-editor.schema.json", Ho = "events-editor", Wo = "A Farris Component", Ko = "object", Jo = {
21
95
  id: {
22
96
  description: "The unique identifier for events-editor",
23
97
  type: "string"
@@ -37,23 +111,23 @@ const sn = "https://json-schema.org/draft/2020-12/schema", dn = "https://farris-
37
111
  type: "function",
38
112
  default: null
39
113
  }
40
- }, Cn = [
114
+ }, Qo = [
41
115
  "id",
42
116
  "type"
43
- ], gn = {
44
- $schema: sn,
45
- $id: dn,
46
- title: mn,
47
- description: fn,
48
- type: vn,
49
- properties: hn,
50
- required: Cn
51
- }, pn = "events-editor", bn = "A Farris Component", wn = "object", Sn = {}, En = {
52
- title: pn,
53
- description: bn,
54
- type: wn,
55
- categories: Sn
56
- }, Ge = [
117
+ ], Yo = {
118
+ $schema: _o,
119
+ $id: zo,
120
+ title: Ho,
121
+ description: Wo,
122
+ type: Ko,
123
+ properties: Jo,
124
+ required: Qo
125
+ }, Xo = "events-editor", Zo = "A Farris Component", et = "object", nt = {}, ot = {
126
+ title: Xo,
127
+ description: Zo,
128
+ type: et,
129
+ categories: nt
130
+ }, en = [
57
131
  {
58
132
  label: "pageChange",
59
133
  name: "MockMock切换页码"
@@ -74,7 +148,7 @@ const sn = "https://json-schema.org/draft/2020-12/schema", dn = "https://farris-
74
148
  label: "onDeleteClicked",
75
149
  name: "Mock操作列点击删除"
76
150
  }
77
- ], Fn = {
151
+ ], tt = {
78
152
  propertyID: "data-grid-component-viewmodel",
79
153
  propertyType: "events",
80
154
  /** 内置构件显示的命令列表 */
@@ -138,7 +212,7 @@ const sn = "https://json-schema.org/draft/2020-12/schema", dn = "https://farris-
138
212
  }
139
213
  ],
140
214
  /** (事件设定)可绑定事件默认列表; */
141
- events: Ge,
215
+ events: en,
142
216
  /** 已绑定的事件(拼接已有的参数值,拼接当前事件->待集成-从dom结构中取值,事件及对应的字符串) */
143
217
  boundEventsList: [],
144
218
  /** 视图模型已有命令 */
@@ -156,21 +230,21 @@ const sn = "https://json-schema.org/draft/2020-12/schema", dn = "https://farris-
156
230
  /** 初始为空,用于存储用户点击「导入新命令」的控制器值 */
157
231
  newController: [],
158
232
  isAddControllerMethod: !1,
159
- getEventList: () => ({ events: Ge, boundEventsList: [] })
160
- }, Ke = {
161
- initialData: { type: Object, default: Fn },
233
+ getEventList: () => ({ events: en, boundEventsList: [] })
234
+ }, an = {
235
+ initialData: { type: Object, default: tt },
162
236
  viewSourceHandle: { type: Function, default: () => {
163
237
  } }
164
- }, Nn = Xe(
165
- Ke,
166
- gn,
167
- rn,
168
- un,
169
- En
238
+ }, at = on(
239
+ an,
240
+ Yo,
241
+ qo,
242
+ Go,
243
+ ot
170
244
  );
171
- function Je() {
172
- function e(N, b) {
173
- const u = [
245
+ function ln() {
246
+ function e(g, h) {
247
+ const a = [
174
248
  {
175
249
  controllerId: "45be24f9-c1f7-44f7-b447-fe2ada458a61",
176
250
  controllerLabel: "AdvancedListCardController",
@@ -448,148 +522,148 @@ function Je() {
448
522
  ]
449
523
  }
450
524
  ];
451
- let h = -1;
452
- const V = u.findIndex((w) => N === w.controllerId);
453
- return V !== -1 && (h = u[V].commands.findIndex((w) => b === w.handlerName)), h !== -1;
525
+ let d = -1;
526
+ const F = a.findIndex((C) => g === C.controllerId);
527
+ return F !== -1 && (d = a[F].commands.findIndex((C) => h === C.handlerName)), d !== -1;
454
528
  }
455
- function B(N, b, u) {
456
- const h = e(N.controllerName.id, b.handlerName);
457
- return u.componentLists.length !== 0 && h && (b.hasPath = !0, b.targetComponent = b.targetComponent || u.componentLists[0].componentId, b.componentLists = _(u.componentLists)), b;
529
+ function E(g, h, a) {
530
+ const d = e(g.controllerName.id, h.handlerName);
531
+ return a.componentLists.length !== 0 && d && (h.hasPath = !0, h.targetComponent = h.targetComponent || a.componentLists[0].componentId, h.componentLists = W(a.componentLists)), h;
458
532
  }
459
- return { isContextDependent: e, setComponentLists: B };
533
+ return { isContextDependent: e, setComponentLists: E };
460
534
  }
461
- var ie = /* @__PURE__ */ ((e) => (e.Frame = "frame", e.dataGrid = "data-grid", e.listView = "list-view", e.form = "form", e.uploader = "uploader", e.calendar = "calendar", e.page = "page", e))(ie || {});
462
- function Pn(e, B) {
463
- const N = W("designerContext"), b = N && N.dgControl ? N.dgControl : en, u = F(""), h = F("");
464
- function V(a) {
465
- var i, v, y, t;
466
- let d = "controlIcon fd-i-Family ", s = "";
467
- switch (a == null ? void 0 : a.type) {
535
+ var de = /* @__PURE__ */ ((e) => (e.Frame = "frame", e.dataGrid = "data-grid", e.listView = "list-view", e.form = "form", e.uploader = "uploader", e.calendar = "calendar", e.page = "page", e))(de || {});
536
+ function lt(e, E) {
537
+ const g = X("designerContext"), h = g && g.dgControl ? g.dgControl : gn, a = b(""), d = b("");
538
+ function F(l) {
539
+ var c, S, T, t;
540
+ let v = "controlIcon fd-i-Family ", f = "";
541
+ switch (l == null ? void 0 : l.type) {
468
542
  case "form-group": {
469
- s = ((i = b[a.type]) == null ? void 0 : i.icon) || ((v = a.editor) == null ? void 0 : v.type) || "", (y = b[a.editor.type]) != null && y.icon && (s = b[a.editor.type].icon);
543
+ f = ((c = h[l.type]) == null ? void 0 : c.icon) || ((S = l.editor) == null ? void 0 : S.type) || "", (T = h[l.editor.type]) != null && T.icon && (f = h[l.editor.type].icon);
470
544
  break;
471
545
  }
472
546
  default:
473
- s = ((t = b[a.type]) == null ? void 0 : t.icon) || a.type;
547
+ f = ((t = h[l.type]) == null ? void 0 : t.icon) || l.type;
474
548
  }
475
- const r = `fd_pc-${s}`;
476
- return d += r, d;
549
+ const u = `fd_pc-${f}`;
550
+ return v += u, v;
477
551
  }
478
- function w(a, d) {
479
- var i;
480
- let s = a.id;
481
- const r = d == null ? void 0 : d.contents;
482
- if ((d == null ? void 0 : d.type) === "splitter" && r && r.length === 2) {
483
- const v = d.direction !== "column";
484
- a.id === ((i = r[0]) == null ? void 0 : i.id) ? s = v ? "左侧区域" : "上方区域" : s = v ? "右侧区域" : "下方区域";
552
+ function C(l, v) {
553
+ var c;
554
+ let f = l.id;
555
+ const u = v == null ? void 0 : v.contents;
556
+ if ((v == null ? void 0 : v.type) === "splitter" && u && u.length === 2) {
557
+ const S = v.direction !== "column";
558
+ l.id === ((c = u[0]) == null ? void 0 : c.id) ? f = S ? "左侧区域" : "上方区域" : f = S ? "右侧区域" : "下方区域";
485
559
  }
486
- return s;
560
+ return f;
487
561
  }
488
- function T(a) {
489
- if (a.isLikeCardContainer)
562
+ function $(l) {
563
+ if (l.isLikeCardContainer)
490
564
  return "区块";
491
- const d = a.appearance && a.appearance.class || "", s = d.split(" ");
492
- return a.id === "page-header" && d && d === "f-page-header" ? "页头" : s.includes("f-page-header-base") ? "页头容器" : s.includes("f-page-header-extend") ? "页头扩展容器" : s.includes("f-title") ? "标题容器" : s.includes("f-page") ? "根容器" : s.includes("f-page-main") ? "内容区域" : s.includes("f-scrollspy-content") && a.isScrollspyContainer ? "滚动监听容器" : s.includes("f-grid-is-sub") ? "表格容器" : s.includes("f-filter-container") ? "筛选条容器" : "容器";
565
+ const v = l.appearance && l.appearance.class || "", f = v.split(" ");
566
+ return l.id === "page-header" && v && v === "f-page-header" ? "页头" : f.includes("f-page-header-base") ? "页头容器" : f.includes("f-page-header-extend") ? "页头扩展容器" : f.includes("f-title") ? "标题容器" : f.includes("f-page") ? "根容器" : f.includes("f-page-main") ? "内容区域" : f.includes("f-scrollspy-content") && l.isScrollspyContainer ? "滚动监听容器" : f.includes("f-grid-is-sub") ? "表格容器" : f.includes("f-filter-container") ? "筛选条容器" : "容器";
493
567
  }
494
- function $(a) {
495
- const { componentType: d } = a;
496
- switch (d) {
497
- case ie.Frame:
568
+ function j(l) {
569
+ const { componentType: v } = l;
570
+ switch (v) {
571
+ case de.Frame:
498
572
  return "根组件";
499
- case ie.dataGrid:
500
- return (e == null ? void 0 : e.formSchemaUtils.selectNode(a, (r) => r.type === (b["tree-grid"] && b["tree-grid"].type))) ? "树表格组件" : "表格组件";
501
- case ie.uploader:
573
+ case de.dataGrid:
574
+ return (e == null ? void 0 : e.formSchemaUtils.selectNode(l, (u) => u.type === (h["tree-grid"] && h["tree-grid"].type))) ? "树表格组件" : "表格组件";
575
+ case de.uploader:
502
576
  return "附件组件";
503
- case ie.listView:
577
+ case de.listView:
504
578
  return "列表视图组件";
505
- case ie.form:
579
+ case de.form:
506
580
  return "卡片组件";
507
- case ie.calendar:
581
+ case de.calendar:
508
582
  return "日历组件";
509
- case ie.page:
510
- return a.name || "页面";
583
+ case de.page:
584
+ return l.name || "页面";
511
585
  default:
512
586
  return "组件";
513
587
  }
514
588
  }
515
- function C(a, d) {
516
- const s = a.name || a.text || a.label || a.title || a.mainTitle;
517
- if (a.type !== "component" && s && typeof s == "string")
518
- return s.trim();
519
- switch (a.type) {
589
+ function w(l, v) {
590
+ const f = l.name || l.text || l.label || l.title || l.mainTitle;
591
+ if (l.type !== "component" && f && typeof f == "string")
592
+ return f.trim();
593
+ switch (l.type) {
520
594
  case "content-container":
521
- return T(a);
595
+ return $(l);
522
596
  case "splitter-pane":
523
- return w(a, d);
597
+ return C(l, v);
524
598
  case "component":
525
- return $(a);
599
+ return j(l);
526
600
  default:
527
- return b[a.type] && b[a.type].name || a.id;
601
+ return h[l.type] && h[l.type].name || l.id;
528
602
  }
529
603
  }
530
- function P(a, d) {
531
- const s = a.length ? a[0] : null;
532
- if (!s)
604
+ function P(l, v) {
605
+ const f = l.length ? l[0] : null;
606
+ if (!f)
533
607
  return;
534
- h.value = "", u.value = s.originalId;
535
- const r = s ? `${s.originalId}-design-item` : "", i = document.getElementById(r);
536
- i && i.click(), B.emit("selectionChanged", s);
608
+ d.value = "", a.value = f.originalId;
609
+ const u = f ? `${f.originalId}-design-item` : "", c = document.getElementById(u);
610
+ c && c.click(), E.emit("selectionChanged", f);
537
611
  }
538
- function f(a) {
539
- if (!a)
612
+ function p(l) {
613
+ if (!l)
540
614
  return;
541
- const d = `${a}-design-item`, s = document.getElementById(d);
542
- s && s.click();
615
+ const v = `${l}-design-item`, f = document.getElementById(v);
616
+ f && f.click();
543
617
  }
544
- return { getIcon: V, getTitle: C, onChanged: P, currentSelectedNodeId: u, currentSelectedOutsideNodeId: h, triggerOutsideClick: f };
618
+ return { getIcon: F, getTitle: w, onChanged: P, currentSelectedNodeId: a, currentSelectedOutsideNodeId: d, triggerOutsideClick: p };
545
619
  }
546
- function yn(e, B) {
547
- const { getIcon: N, getTitle: b } = B;
548
- function u(C, P, f, a, d) {
549
- var r;
550
- const s = (r = e.data.module) == null ? void 0 : r.components.find((i) => i.id === C.component);
551
- s && h([s], P, f, a, d);
552
- }
553
- function h(C, P, f, a, d) {
554
- return C.forEach((s) => {
555
- if (s.type === "component" && (d = s.id), s.type === "component-ref") {
556
- u(s, P, f, a, d);
620
+ function rt(e, E) {
621
+ const { getIcon: g, getTitle: h } = E;
622
+ function a(w, P, p, l, v) {
623
+ var u;
624
+ const f = (u = e.data.module) == null ? void 0 : u.components.find((c) => c.id === w.component);
625
+ f && d([f], P, p, l, v);
626
+ }
627
+ function d(w, P, p, l, v) {
628
+ return w.forEach((f) => {
629
+ if (f.type === "component" && (v = f.id), f.type === "component-ref") {
630
+ a(f, P, p, l, v);
557
631
  return;
558
632
  }
559
- const r = {
560
- originalId: s.id,
561
- layer: f,
562
- originalParent: a == null ? void 0 : a.id,
563
- componentId: d,
564
- name: b(s, a),
565
- type: s.type,
566
- controlIcon: N(s),
567
- rawSchema: s
633
+ const u = {
634
+ originalId: f.id,
635
+ layer: p,
636
+ originalParent: l == null ? void 0 : l.id,
637
+ componentId: v,
638
+ name: h(f, l),
639
+ type: f.type,
640
+ controlIcon: g(f),
641
+ rawSchema: f
568
642
  };
569
- P.push(_(r)), (s.contents || s.buttons) && h(s.contents || s.buttons, P, f + 1, s, d);
643
+ P.push(W(u)), (f.contents || f.buttons) && d(f.contents || f.buttons, P, p + 1, f, v);
570
644
  }), P;
571
645
  }
572
- function V(C) {
573
- const P = [], f = C.find((r) => r.layer === 0);
574
- C = C.filter((r) => r.layer !== 0), P.push(f);
575
- let a = f.originalId, d = 0, s = 1e3;
576
- for (; C.length !== 0 || s === 0; ) {
577
- const r = C.find((i) => i.originalParent === a);
578
- r ? (P.push(r), a = r.originalId, C = C.filter((i) => i.originalId !== a), d = 0) : (d -= 1, a = P.slice(d)[0].originalId), s -= 1;
646
+ function F(w) {
647
+ const P = [], p = w.find((u) => u.layer === 0);
648
+ w = w.filter((u) => u.layer !== 0), P.push(p);
649
+ let l = p.originalId, v = 0, f = 1e3;
650
+ for (; w.length !== 0 || f === 0; ) {
651
+ const u = w.find((c) => c.originalParent === l);
652
+ u ? (P.push(u), l = u.originalId, w = w.filter((c) => c.originalId !== l), v = 0) : (v -= 1, l = P.slice(v)[0].originalId), f -= 1;
579
653
  }
580
654
  return P;
581
655
  }
582
- function w(C) {
583
- return C.forEach((P, f) => {
584
- P.id = (f + 1).toString();
585
- }), C.forEach((P) => {
586
- var f;
587
- P.parent = ((f = C.find((a) => a.originalId === P.originalParent)) == null ? void 0 : f.id) || "";
588
- }), C.forEach((P) => {
589
- P.hasChildren = C.findIndex((f) => f.parent === P.id) > 0;
590
- }), C;
591
- }
592
- function T(C) {
656
+ function C(w) {
657
+ return w.forEach((P, p) => {
658
+ P.id = (p + 1).toString();
659
+ }), w.forEach((P) => {
660
+ var p;
661
+ P.parent = ((p = w.find((l) => l.originalId === P.originalParent)) == null ? void 0 : p.id) || "";
662
+ }), w.forEach((P) => {
663
+ P.hasChildren = w.findIndex((p) => p.parent === P.id) > 0;
664
+ }), w;
665
+ }
666
+ function $(w) {
593
667
  const P = {
594
668
  originalId: e.data.module.id,
595
669
  layer: 0,
@@ -598,151 +672,151 @@ function yn(e, B) {
598
672
  type: "module",
599
673
  controlIcon: "controlIcon fd-i-Family fd_pc-module",
600
674
  rawSchema: e.data.module
601
- }, f = [];
602
- return C.forEach((a) => {
603
- a[0].originalParent = P.originalId, f.push(...a);
604
- }), f.unshift(P), f;
605
- }
606
- function $() {
607
- const C = e.data.module ? F(e.data.module.components) : F([e.data]);
608
- if (!C.value)
675
+ }, p = [];
676
+ return w.forEach((l) => {
677
+ l[0].originalParent = P.originalId, p.push(...l);
678
+ }), p.unshift(P), p;
679
+ }
680
+ function j() {
681
+ const w = e.data.module ? b(e.data.module.components) : b([e.data]);
682
+ if (!w.value)
609
683
  return;
610
684
  const P = [];
611
- C.value.forEach((s) => {
612
- if (s) {
613
- const r = [];
614
- r.push(s);
615
- const y = h(r, [], 1, null, s.id);
616
- P.push(y);
685
+ w.value.forEach((f) => {
686
+ if (f) {
687
+ const u = [];
688
+ u.push(f);
689
+ const T = d(u, [], 1, null, f.id);
690
+ P.push(T);
617
691
  }
618
692
  });
619
- const f = T(P), a = V(f);
620
- return w(a);
693
+ const p = $(P), l = F(p);
694
+ return C(l);
621
695
  }
622
- return { getData: $ };
696
+ return { getData: j };
623
697
  }
624
- function ve(e) {
625
- const B = W("sourceOutlineData") || [], N = F(), b = F(!1), u = F([]), h = F();
626
- function V(r, i, v, y) {
627
- var t, U, z, k;
698
+ function be(e) {
699
+ const E = X("sourceOutlineData") || [], g = b(), h = b(!1), a = b([]), d = b();
700
+ function F(u, c, S, T) {
701
+ var t, _, H, R;
628
702
  return {
629
- id: Ue().guid(),
630
- source: y || {
631
- formId: (t = r.sourceCommunication) == null ? void 0 : t.formId,
632
- formCode: (U = r.sourceCommunication) == null ? void 0 : U.formCode,
633
- componentId: (z = r.sourceCommunication) == null ? void 0 : z.componentId,
634
- externalContainerId: (k = r.sourceCommunication) == null ? void 0 : k.externalContainerId,
635
- event: i || "onCommunication"
703
+ id: Qe().guid(),
704
+ source: T || {
705
+ formId: (t = u.sourceCommunication) == null ? void 0 : t.formId,
706
+ formCode: (_ = u.sourceCommunication) == null ? void 0 : _.formCode,
707
+ componentId: (H = u.sourceCommunication) == null ? void 0 : H.componentId,
708
+ externalContainerId: (R = u.sourceCommunication) == null ? void 0 : R.externalContainerId,
709
+ event: c || "onCommunication"
636
710
  },
637
711
  target: {
638
- formId: (v == null ? void 0 : v.formId) || "",
639
- formCode: (v == null ? void 0 : v.formCode) || "",
640
- externalContainerId: (v == null ? void 0 : v.externalContainerId) || "",
641
- commandCode: (v == null ? void 0 : v.commandCode) || "",
642
- commandViewmodelId: (v == null ? void 0 : v.commandViewmodelId) || ""
712
+ formId: (S == null ? void 0 : S.formId) || "",
713
+ formCode: (S == null ? void 0 : S.formCode) || "",
714
+ externalContainerId: (S == null ? void 0 : S.externalContainerId) || "",
715
+ commandCode: (S == null ? void 0 : S.commandCode) || "",
716
+ commandViewmodelId: (S == null ? void 0 : S.commandViewmodelId) || ""
643
717
  },
644
718
  paramMappings: []
645
719
  };
646
720
  }
647
- function w(r) {
648
- var i, v;
649
- (i = r == null ? void 0 : r.communication) != null && i.length && ((v = r == null ? void 0 : r.communication) == null || v.map((y) => {
650
- var t, U;
651
- if (y != null && y.id && !((t = y == null ? void 0 : y.source) != null && t.componentId)) {
652
- const z = (U = e.getFormSchema().module.communications) == null ? void 0 : U.find((k) => k.id === (y == null ? void 0 : y.id));
653
- z && Object.assign(y, z);
721
+ function C(u) {
722
+ var c, S;
723
+ (c = u == null ? void 0 : u.communication) != null && c.length && ((S = u == null ? void 0 : u.communication) == null || S.map((T) => {
724
+ var t, _;
725
+ if (T != null && T.id && !((t = T == null ? void 0 : T.source) != null && t.componentId)) {
726
+ const H = (_ = e.getFormSchema().module.communications) == null ? void 0 : _.find((R) => R.id === (T == null ? void 0 : T.id));
727
+ H && Object.assign(T, H);
654
728
  }
655
729
  }));
656
730
  }
657
- function T(r) {
658
- const i = e.getFormSchema(), { communications: v } = i.module;
659
- v || (i.module.communications = []);
660
- const y = i.module.communications.findIndex((t) => t.id === r.id);
661
- y === -1 ? i.module.communications.push(r) : Object.assign(i.module.communications[y], r);
731
+ function $(u) {
732
+ const c = e.getFormSchema(), { communications: S } = c.module;
733
+ S || (c.module.communications = []);
734
+ const T = c.module.communications.findIndex((t) => t.id === u.id);
735
+ T === -1 ? c.module.communications.push(u) : Object.assign(c.module.communications[T], u);
662
736
  }
663
- function $(r) {
664
- var i;
665
- if ((i = r == null ? void 0 : r.communication) != null && i.length) {
666
- const v = e.getFormSchema();
667
- r.communication.map((y) => {
668
- v.module.communications && y && (v.module.communications = v.module.communications.filter((t) => t.id !== y.id));
669
- }), r.communication = [];
737
+ function j(u) {
738
+ var c;
739
+ if ((c = u == null ? void 0 : u.communication) != null && c.length) {
740
+ const S = e.getFormSchema();
741
+ u.communication.map((T) => {
742
+ S.module.communications && T && (S.module.communications = S.module.communications.filter((t) => t.id !== T.id));
743
+ }), u.communication = [];
670
744
  }
671
745
  }
672
- function C(r) {
673
- var v;
674
- const i = e.getFormSchema();
675
- r && ((v = i.module.communications) != null && v.length) && (i.module.communications = i.module.communications.filter((y) => y.id !== r));
746
+ function w(u) {
747
+ var S;
748
+ const c = e.getFormSchema();
749
+ u && ((S = c.module.communications) != null && S.length) && (c.module.communications = c.module.communications.filter((T) => T.id !== u));
676
750
  }
677
- function P(r, i, v) {
678
- const y = Pn(r, i), t = e.externalFormSchema.get(v);
751
+ function P(u, c, S) {
752
+ const T = lt(u, c), t = e.externalFormSchema.get(S);
679
753
  if (t != null && t.content) {
680
- const U = { data: t.content }, { getData: z } = yn(U, y);
681
- return z();
754
+ const _ = { data: t.content }, { getData: H } = rt(_, T);
755
+ return H();
682
756
  }
683
757
  return [];
684
758
  }
685
- function f(r) {
686
- var v;
687
- if (!((v = r == null ? void 0 : r.source) != null && v.componentId)) {
688
- b.value = !1;
759
+ function p(u) {
760
+ var S;
761
+ if (!((S = u == null ? void 0 : u.source) != null && S.componentId)) {
762
+ h.value = !1;
689
763
  return;
690
764
  }
691
- const i = B.find((y) => y.originalId === r.source.componentId);
692
- i ? (b.value = !1, N.value = i) : (b.value = !0, N.value = { id: r.source.componentId });
765
+ const c = E.find((T) => T.originalId === u.source.componentId);
766
+ c ? (h.value = !1, g.value = c) : (h.value = !0, g.value = { id: u.source.componentId });
693
767
  }
694
- function a(r) {
695
- var t, U, z, k;
696
- u.value = [];
697
- const i = (t = N.value) == null ? void 0 : t.rawSchema;
698
- if (!i) {
699
- h.value = null;
768
+ function l(u) {
769
+ var t, _, H, R;
770
+ a.value = [];
771
+ const c = (t = g.value) == null ? void 0 : t.rawSchema;
772
+ if (!c) {
773
+ d.value = null;
700
774
  return;
701
775
  }
702
- const v = i.type === "form-group" && i.editor ? i.editor.type : i.type, y = (U = qe[v]) == null ? void 0 : U.events;
703
- y && Object.keys(y).forEach((p) => {
704
- u.value.push({ eventCode: p, eventName: y[p] });
705
- }), (z = r.source) != null && z.event && ((k = u.value) != null && k.length) && (h.value = u.value.find((p) => {
706
- var I;
707
- return p.eventCode === ((I = r.source) == null ? void 0 : I.event);
776
+ const S = c.type === "form-group" && c.editor ? c.editor.type : c.type, T = (_ = Je[S]) == null ? void 0 : _.events;
777
+ T && Object.keys(T).forEach((y) => {
778
+ a.value.push({ eventCode: y, eventName: T[y] });
779
+ }), (H = u.source) != null && H.event && ((R = a.value) != null && R.length) && (d.value = a.value.find((y) => {
780
+ var A;
781
+ return y.eventCode === ((A = u.source) == null ? void 0 : A.event);
708
782
  }));
709
783
  }
710
- function d(r) {
711
- var y, t, U, z, k, p, I, c;
712
- if (!(r != null && r.length))
784
+ function v(u) {
785
+ var T, t, _, H, R, y, A, i;
786
+ if (!(u != null && u.length))
713
787
  return;
714
- f(r[0]), a(r[0]);
715
- let i = "", v = "";
716
- return b.value ? i = `${((y = r[0].source) == null ? void 0 : y.componentId) || ""}-${((t = r[0].source) == null ? void 0 : t.event) || ""}` : (i = (U = N.value) == null ? void 0 : U.name, i && ((z = h.value) != null && z.eventName) && (i += `-${(k = h.value) == null ? void 0 : k.eventName}`), v = `${(p = N.value) == null ? void 0 : p.name} (${(I = N.value) == null ? void 0 : I.originalId})`, v = `${v}
717
- ${(c = h.value) == null ? void 0 : c.eventName} (${h.value.eventCode})`), { title: i, titleTip: v, isControlInvalid: b.value };
788
+ p(u[0]), l(u[0]);
789
+ let c = "", S = "";
790
+ return h.value ? c = `${((T = u[0].source) == null ? void 0 : T.componentId) || ""}-${((t = u[0].source) == null ? void 0 : t.event) || ""}` : (c = (_ = g.value) == null ? void 0 : _.name, c && ((H = d.value) != null && H.eventName) && (c += `-${(R = d.value) == null ? void 0 : R.eventName}`), S = `${(y = g.value) == null ? void 0 : y.name} (${(A = g.value) == null ? void 0 : A.originalId})`, S = `${S}
791
+ ${(i = d.value) == null ? void 0 : i.eventName} (${d.value.eventCode})`), { title: c, titleTip: S, isControlInvalid: h.value };
718
792
  }
719
- function s(r) {
720
- var i;
721
- if ((i = r == null ? void 0 : r.communication) != null && i.length) {
722
- const v = r == null ? void 0 : r.communication[0];
723
- return v == null ? void 0 : v.source;
793
+ function f(u) {
794
+ var c;
795
+ if ((c = u == null ? void 0 : u.communication) != null && c.length) {
796
+ const S = u == null ? void 0 : u.communication[0];
797
+ return S == null ? void 0 : S.source;
724
798
  }
725
799
  }
726
800
  return {
727
- createNewCommunication: V,
728
- resolveCommunication: w,
729
- clearAllCommunication: $,
730
- clearCommunicationById: C,
731
- saveCommunication: T,
801
+ createNewCommunication: F,
802
+ resolveCommunication: C,
803
+ clearAllCommunication: j,
804
+ clearCommunicationById: w,
805
+ saveCommunication: $,
732
806
  assembleSourceOutline: P,
733
- resolveSourceControlEventTitle: d,
734
- resolveCommunicationSource: s
807
+ resolveSourceControlEventTitle: v,
808
+ resolveCommunicationSource: f
735
809
  };
736
810
  }
737
- function Mn(e, B, N) {
738
- const b = F([]), { boundEvents: u, unBoundEvent: h } = B;
739
- function V(f) {
740
- var d, s;
811
+ function it(e, E, g) {
812
+ const h = b([]), { boundEvents: a, unBoundEvent: d } = E;
813
+ function F(p) {
814
+ var v, f;
741
815
  return {
742
816
  /** 当前事件名称及label */
743
817
  event: {
744
- label: (d = f.boundEvents) == null ? void 0 : d.label,
745
- name: (s = f.boundEvents) == null ? void 0 : s.name
818
+ label: (v = p.boundEvents) == null ? void 0 : v.label,
819
+ name: (f = p.boundEvents) == null ? void 0 : f.name
746
820
  },
747
821
  /** 控制组件的展示及顺序:
748
822
  * 0:事件下拉框
@@ -757,252 +831,252 @@ function Mn(e, B, N) {
757
831
  showSwitchNumber: 2
758
832
  }],
759
833
  /** 方法列表 */
760
- command: _(f.command),
834
+ command: W(p.command),
761
835
  /** 当前的控制器 */
762
- controller: _(f.controller),
836
+ controller: W(p.controller),
763
837
  /** 通讯 */
764
- communication: f.communication
838
+ communication: p.communication
765
839
  };
766
840
  }
767
- function w() {
768
- var f;
769
- b.value = (f = u.value) == null ? void 0 : f.map((a) => V(a));
841
+ function C() {
842
+ var p;
843
+ h.value = (p = a.value) == null ? void 0 : p.map((l) => F(l));
770
844
  }
771
- function T(f, a) {
772
- const s = V({
773
- boundEvents: f,
845
+ function $(p, l) {
846
+ const f = F({
847
+ boundEvents: p,
774
848
  command: null,
775
849
  controller: { id: "", name: "", label: "" },
776
- communication: a ? [a] : []
850
+ communication: l ? [l] : []
777
851
  });
778
- if (a) {
779
- s.showSwitch[0].showSwitchNumber = 2, s.showSwitch[0].showSection[2][2] = !1, s.showSwitch[0].showSection[2][3] = !1, s.needSelectCommunicationCommand = !0, b.value.unshift(s);
852
+ if (l) {
853
+ f.showSwitch[0].showSwitchNumber = 2, f.showSwitch[0].showSection[2][2] = !1, f.showSwitch[0].showSection[2][3] = !1, f.needSelectCommunicationCommand = !0, h.value.unshift(f);
780
854
  return;
781
855
  }
782
- f && (s.showSwitch[0].showSwitchNumber = 1, s.showSwitch[0].showSection[2][3] = !0, b.value.unshift(s));
856
+ p && (f.showSwitch[0].showSwitchNumber = 1, f.showSwitch[0].showSection[2][3] = !0, h.value.unshift(f));
783
857
  }
784
- function $() {
785
- var f;
786
- (f = b.value) == null || f.forEach((a) => {
787
- a.showSwitch.forEach((d) => {
788
- d.showSection[2][3] = !1;
789
- }), a.shouldShowCommunicationPanel = !1;
858
+ function j() {
859
+ var p;
860
+ (p = h.value) == null || p.forEach((l) => {
861
+ l.showSwitch.forEach((v) => {
862
+ v.showSection[2][3] = !1;
863
+ }), l.shouldShowCommunicationPanel = !1;
790
864
  });
791
865
  }
792
- function C(f) {
793
- b.value[f].showSwitch.forEach((a) => {
794
- a.showSection[2][3] = !a.showSection[2][3];
866
+ function w(p) {
867
+ h.value[p].showSwitch.forEach((l) => {
868
+ l.showSection[2][3] = !l.showSection[2][3];
795
869
  });
796
870
  }
797
- function P(f) {
798
- if (f >= 0 && f <= b.value.length - 1) {
799
- const a = b.value[f];
800
- h(a.event), b.value.splice(f, 1);
801
- const { clearAllCommunication: d } = ve(e);
802
- d(a);
871
+ function P(p) {
872
+ if (p >= 0 && p <= h.value.length - 1) {
873
+ const l = h.value[p];
874
+ d(l.event), h.value.splice(p, 1);
875
+ const { clearAllCommunication: v } = be(e);
876
+ v(l);
803
877
  }
804
878
  }
805
879
  return {
806
- addNewInteraction: T,
807
- collapseInteractions: $,
880
+ addNewInteraction: $,
881
+ collapseInteractions: j,
808
882
  deleteInteracton: P,
809
- toggleMethodInInteraction: C,
810
- interactions: b,
811
- loadInteractions: w
883
+ toggleMethodInInteraction: w,
884
+ interactions: h,
885
+ loadInteractions: C
812
886
  };
813
887
  }
814
- function In(e) {
815
- const B = F([]), N = F([]), b = F([]), { isContextDependent: u } = Je();
816
- function h() {
817
- const { allComponentList: f } = e.value;
818
- e.value.componentLists.length && e.value.viewModel && e.value.viewModel.forEach((a) => {
819
- a.controllerList.forEach((d) => {
820
- if (d.targetComponent) {
821
- const s = f.find((i) => i.componentId === d.targetComponent);
822
- if ((s ? s.viewModelId : void 0) === e.value.viewModelId)
823
- d.hasPath = !1;
888
+ function ct(e) {
889
+ const E = b([]), g = b([]), h = b([]), { isContextDependent: a } = ln();
890
+ function d() {
891
+ const { allComponentList: p } = e.value;
892
+ e.value.componentLists.length && e.value.viewModel && e.value.viewModel.forEach((l) => {
893
+ l.controllerList.forEach((v) => {
894
+ if (v.targetComponent) {
895
+ const f = p.find((c) => c.componentId === v.targetComponent);
896
+ if ((f ? f.viewModelId : void 0) === e.value.viewModelId)
897
+ v.hasPath = !1;
824
898
  else {
825
- const i = u(a.controllerName.id, d.handlerName);
826
- d.hasPath = i ? !0 : d.hasPath, d.componentLists = i ? _(e.value.componentLists) : d.componentLists;
899
+ const c = a(l.controllerName.id, v.handlerName);
900
+ v.hasPath = c ? !0 : v.hasPath, v.componentLists = c ? W(e.value.componentLists) : v.componentLists;
827
901
  }
828
902
  }
829
903
  });
830
- }), e.value.componentLists.length && e.value.boundEventsList && e.value.boundEventsList.forEach((a) => {
831
- var d;
832
- if ((d = a.command) != null && d.targetComponent) {
833
- const s = f.find(
834
- (i) => {
835
- var v;
836
- return i.componentId === (((v = a.command) == null ? void 0 : v.targetComponent) || "");
904
+ }), e.value.componentLists.length && e.value.boundEventsList && e.value.boundEventsList.forEach((l) => {
905
+ var v;
906
+ if ((v = l.command) != null && v.targetComponent) {
907
+ const f = p.find(
908
+ (c) => {
909
+ var S;
910
+ return c.componentId === (((S = l.command) == null ? void 0 : S.targetComponent) || "");
837
911
  }
838
912
  );
839
- if ((s ? s.viewModelId : void 0) === e.value.viewModelId)
840
- a.command.hasPath = !1;
913
+ if ((f ? f.viewModelId : void 0) === e.value.viewModelId)
914
+ l.command.hasPath = !1;
841
915
  else {
842
- const i = u(
843
- a.controller.id,
844
- a.command.handlerName
916
+ const c = a(
917
+ l.controller.id,
918
+ l.command.handlerName
845
919
  );
846
- a.command.hasPath = i ? !0 : a.command.hasPath, a.command.componentLists = i ? _(e.value.componentLists) : a.command.componentLists;
920
+ l.command.hasPath = c ? !0 : l.command.hasPath, l.command.componentLists = c ? W(e.value.componentLists) : l.command.componentLists;
847
921
  }
848
922
  }
849
923
  });
850
924
  }
851
- function V() {
852
- const f = N.value.reduce(
853
- (d, s) => (d.set(s.boundEvents.label, !0), d),
925
+ function F() {
926
+ const p = g.value.reduce(
927
+ (v, f) => (v.set(f.boundEvents.label, !0), v),
854
928
  /* @__PURE__ */ new Map()
855
929
  );
856
- return B.value.filter((d) => !f.has(d.label));
930
+ return E.value.filter((v) => !p.has(v.label));
857
931
  }
858
- function w() {
859
- var a;
860
- const f = ((a = N.value) == null ? void 0 : a.length) > 0;
861
- b.value = f ? V() : B.value;
932
+ function C() {
933
+ var l;
934
+ const p = ((l = g.value) == null ? void 0 : l.length) > 0;
935
+ h.value = p ? F() : E.value;
862
936
  }
863
- function T() {
864
- h(), B.value = e.value.events, N.value = e.value.boundEventsList, w();
937
+ function $() {
938
+ d(), E.value = e.value.events, g.value = e.value.boundEventsList, C();
865
939
  }
866
- function $(f) {
867
- b.value = b.value.filter((a) => a.label !== f.label);
940
+ function j(p) {
941
+ h.value = h.value.filter((l) => l.label !== p.label);
868
942
  }
869
- function C(f) {
870
- N.value = N.value.filter((a) => a.boundEvents.label !== f.label), w();
943
+ function w(p) {
944
+ g.value = g.value.filter((l) => l.boundEvents.label !== p.label), C();
871
945
  }
872
946
  function P() {
873
- var d;
874
- const f = (d = e.value) == null ? void 0 : d.getEventList(), { events: a } = f;
875
- f && (e.value.events = _(a), e.value.boundEventsList = f.boundEventsList), e.value.boundEventsList && (e.value.boundEventsList = e.value.boundEventsList.filter(function(s) {
876
- return a.find((r) => r.label === s.boundEvents.label);
947
+ var v;
948
+ const p = (v = e.value) == null ? void 0 : v.getEventList(), { events: l } = p;
949
+ p && (e.value.events = W(l), e.value.boundEventsList = p.boundEventsList), e.value.boundEventsList && (e.value.boundEventsList = e.value.boundEventsList.filter(function(f) {
950
+ return l.find((u) => u.label === f.boundEvents.label);
877
951
  }));
878
952
  }
879
953
  return {
880
- allEvents: B,
881
- boundEvents: N,
882
- candidateEvents: b,
883
- excludeFromCandidates: $,
884
- loadEvents: T,
954
+ allEvents: E,
955
+ boundEvents: g,
956
+ candidateEvents: h,
957
+ excludeFromCandidates: j,
958
+ loadEvents: $,
885
959
  resetBoundEvents: P,
886
- unBoundEvent: C
960
+ unBoundEvent: w
887
961
  };
888
962
  }
889
- const Ln = {
963
+ const st = {
890
964
  sourceCommunication: { type: Object, default: {} }
891
- }, Bn = {
965
+ }, ut = {
892
966
  events: { type: Array, default: [] }
893
- }, xn = /* @__PURE__ */ ee({
967
+ }, dt = /* @__PURE__ */ te({
894
968
  name: "FEventList",
895
- props: Bn,
969
+ props: ut,
896
970
  emits: ["click"],
897
- setup(e, B) {
898
- const N = F(e.events);
899
- function b(h) {
900
- B.emit("click", h);
971
+ setup(e, E) {
972
+ const g = b(e.events);
973
+ function h(d) {
974
+ E.emit("click", d);
901
975
  }
902
- function u(h) {
976
+ function a(d) {
903
977
  return n("div", {
904
978
  class: "f-page-events-editor-first-bound-event"
905
979
  }, [n("div", {
906
- onClick: () => b(h),
980
+ onClick: () => h(d),
907
981
  class: "f-page-events-editor-first-bound-event-name"
908
- }, [h.name])]);
982
+ }, [d.name])]);
909
983
  }
910
984
  return () => n("div", {
911
985
  class: "f-page-events-editor-events"
912
- }, [N.value.map((h) => u(h))]);
986
+ }, [g.value.map((d) => a(d))]);
913
987
  }
914
- }), he = {
988
+ }), we = {
915
989
  /** 通讯id */
916
990
  communication: { type: Object },
917
991
  /** 通讯来源 */
918
992
  sourceCommunication: { type: Object, default: {} },
919
993
  /** 当前事件编号 */
920
994
  event: { type: String, default: "" }
921
- }, Vn = /* @__PURE__ */ ee({
995
+ }, mt = /* @__PURE__ */ te({
922
996
  name: "FSelectSourceControl",
923
- props: he,
997
+ props: we,
924
998
  emits: ["selectSourceEvent", "deleteControl"],
925
- setup(e, B) {
926
- const N = W("useFormSchema"), {
927
- createNewCommunication: b
928
- } = ve(N), u = F();
929
- u.value = b(e);
930
- const h = F([{
999
+ setup(e, E) {
1000
+ const g = X("useFormSchema"), {
1001
+ createNewCommunication: h
1002
+ } = be(g), a = b();
1003
+ a.value = h(e);
1004
+ const d = b([{
931
1005
  field: "name",
932
1006
  title: "",
933
1007
  dataType: "string"
934
- }]), V = F([]), w = F(), T = F(), $ = F(!0), C = F(!1), P = F([]), f = F(), a = F(!0), d = F(!1);
935
- function s() {
936
- const p = W("sourceOutlineData");
937
- V.value = p || [], T.value.updateDataSource(V.value);
1008
+ }]), F = b([]), C = b(), $ = b(), j = b(!0), w = b(!1), P = b([]), p = b(), l = b(!0), v = b(!1);
1009
+ function f() {
1010
+ const y = X("sourceOutlineData");
1011
+ F.value = y || [], $.value.updateDataSource(F.value);
938
1012
  }
939
- function r() {
940
- var I, c, o;
941
- if (!((c = (I = u.value) == null ? void 0 : I.source) != null && c.componentId)) {
942
- d.value = !1;
1013
+ function u() {
1014
+ var A, i, o;
1015
+ if (!((i = (A = a.value) == null ? void 0 : A.source) != null && i.componentId)) {
1016
+ v.value = !1;
943
1017
  return;
944
1018
  }
945
- const p = (o = V.value) == null ? void 0 : o.find((l) => l.originalId === u.value.source.componentId);
946
- p ? (T.value.selectItemById(p.id), d.value = !1) : (d.value = !0, w.value = {
947
- id: u.value.source.componentId
1019
+ const y = (o = F.value) == null ? void 0 : o.find((r) => r.originalId === a.value.source.componentId);
1020
+ y ? ($.value.selectItemById(y.id), v.value = !1) : (v.value = !0, C.value = {
1021
+ id: a.value.source.componentId
948
1022
  });
949
1023
  }
950
- function i() {
951
- var p, I, c;
952
- (I = (p = u.value) == null ? void 0 : p.source) != null && I.event && ((c = P.value) != null && c.length) && (f.value = P.value.find((o) => {
953
- var l, g;
954
- return o.eventCode === ((g = (l = u.value) == null ? void 0 : l.source) == null ? void 0 : g.event);
1024
+ function c() {
1025
+ var y, A, i;
1026
+ (A = (y = a.value) == null ? void 0 : y.source) != null && A.event && ((i = P.value) != null && i.length) && (p.value = P.value.find((o) => {
1027
+ var r, s;
1028
+ return o.eventCode === ((s = (r = a.value) == null ? void 0 : r.source) == null ? void 0 : s.event);
955
1029
  }));
956
1030
  }
957
- se(() => {
958
- s(), r(), i(), a.value = !1;
1031
+ he(() => {
1032
+ f(), u(), c(), l.value = !1;
959
1033
  });
960
- function v() {
1034
+ function S() {
961
1035
  var o;
962
1036
  P.value = [];
963
- const p = w.value.rawSchema, I = p.type === "form-group" && p.editor ? p.editor.type : p.type, c = (o = qe[I]) == null ? void 0 : o.events;
964
- c && Object.keys(c).forEach((l) => {
1037
+ const y = C.value.rawSchema, A = y.type === "form-group" && y.editor ? y.editor.type : y.type, i = (o = Je[A]) == null ? void 0 : o.events;
1038
+ i && Object.keys(i).forEach((r) => {
965
1039
  P.value.push({
966
- eventCode: l,
967
- eventName: c[l]
1040
+ eventCode: r,
1041
+ eventName: i[r]
968
1042
  });
969
1043
  });
970
1044
  }
971
- function y(p) {
972
- $.value = !1, d.value = !1;
973
- const I = w.value !== p[0];
974
- I && (w.value = p[0], v()), a.value || (C.value = !0), !a.value && I && (f.value = null);
1045
+ function T(y) {
1046
+ j.value = !1, v.value = !1;
1047
+ const A = C.value !== y[0];
1048
+ A && (C.value = y[0], S()), l.value || (w.value = !0), !l.value && A && (p.value = null);
975
1049
  }
976
- const t = q(() => ({
1050
+ const t = K(() => ({
977
1051
  "item-list": !0,
978
- "d-none": !$.value
979
- })), U = q(() => (p) => {
980
- var I;
1052
+ "d-none": !j.value
1053
+ })), _ = K(() => (y) => {
1054
+ var A;
981
1055
  return {
982
1056
  item: !0,
983
- selected: ((I = f.value) == null ? void 0 : I.eventCode) === p
1057
+ selected: ((A = p.value) == null ? void 0 : A.eventCode) === y
984
1058
  };
985
1059
  });
986
- function z(p) {
987
- var I;
988
- $.value = !1, C.value = !1, f.value = p, u.value.source.componentId = w.value.rawSchema.id, u.value.source.event = (I = f.value) == null ? void 0 : I.eventCode, B.emit("selectSourceEvent", u.value);
1060
+ function H(y) {
1061
+ var A;
1062
+ j.value = !1, w.value = !1, p.value = y, a.value.source.componentId = C.value.rawSchema.id, a.value.source.event = (A = p.value) == null ? void 0 : A.eventCode, E.emit("selectSourceEvent", a.value);
989
1063
  }
990
- const k = q(() => ({
1064
+ const R = K(() => ({
991
1065
  "form-container": !0,
992
1066
  "position-relative": !0,
993
- invalid: d.value
1067
+ invalid: v.value
994
1068
  }));
995
1069
  return () => n("div", {
996
- class: k.value
1070
+ class: R.value
997
1071
  }, [n("div", {
998
1072
  class: t.value,
999
1073
  style: "min-height:220px;"
1000
1074
  }, [n("span", {
1001
1075
  class: "tip"
1002
- }, [Y("请选择源控件")]), n(nn, {
1003
- ref: T,
1004
- data: V.value,
1005
- columns: h.value,
1076
+ }, [Y("请选择源控件")]), n(pn, {
1077
+ ref: $,
1078
+ data: F.value,
1079
+ columns: d.value,
1006
1080
  columnOption: {
1007
1081
  fitColumns: !0,
1008
1082
  fitMode: "expand"
@@ -1010,66 +1084,66 @@ const Ln = {
1010
1084
  showTreeNodeIcons: !0,
1011
1085
  fit: !0,
1012
1086
  iconField: "controlIcon",
1013
- onSelectionChange: y
1014
- }, null)]), C.value && n(Me, null, [n("div", {
1087
+ onSelectionChange: T
1088
+ }, null)]), w.value && n(Ie, null, [n("div", {
1015
1089
  class: "item-list"
1016
1090
  }, [n("span", {
1017
1091
  class: "tip"
1018
- }, [Y("请选择事件")]), P.value.map((p) => n("span", {
1019
- class: U.value(p.eventCode),
1020
- onClick: () => z(p)
1021
- }, [p.eventName]))])])]);
1092
+ }, [Y("请选择事件")]), P.value.map((y) => n("span", {
1093
+ class: _.value(y.eventCode),
1094
+ onClick: () => H(y)
1095
+ }, [y.eventName]))])])]);
1022
1096
  }
1023
- }), Tn = /* @__PURE__ */ ee({
1097
+ }), ft = /* @__PURE__ */ te({
1024
1098
  name: "FInteractionButton",
1025
- props: Ln,
1099
+ props: st,
1026
1100
  emits: ["clickEventItem", "selectSourceControl"],
1027
- setup(e, B) {
1028
- const N = new re(), b = W("useEventsComposition"), u = W("useInteractionCompostion"), {
1029
- candidateEvents: h
1030
- } = b, {
1031
- collapseInteractions: V
1032
- } = u, w = F(!1), T = F(!1);
1033
- function $(d) {
1034
- h.value = h.value.filter((s) => s.label !== d.label);
1035
- }
1036
- function C() {
1037
- var d;
1038
- (d = e.sourceCommunication) != null && d.needSelectSourceControl ? T.value = !T.value : w.value = !w.value;
1039
- }
1040
- function P(d) {
1041
- C(), $(d), B.emit("clickEventItem", d);
1101
+ setup(e, E) {
1102
+ const g = new fe(), h = X("useEventsComposition"), a = X("useInteractionCompostion"), {
1103
+ candidateEvents: d
1104
+ } = h, {
1105
+ collapseInteractions: F
1106
+ } = a, C = b(!1), $ = b(!1);
1107
+ function j(v) {
1108
+ d.value = d.value.filter((f) => f.label !== v.label);
1109
+ }
1110
+ function w() {
1111
+ var v;
1112
+ (v = e.sourceCommunication) != null && v.needSelectSourceControl ? $.value = !$.value : C.value = !C.value;
1042
1113
  }
1043
- function f() {
1044
- var d;
1045
- if (!((d = e.sourceCommunication) != null && d.needSelectSourceControl) && h.value.length === 0) {
1046
- N.info({
1114
+ function P(v) {
1115
+ w(), j(v), E.emit("clickEventItem", v);
1116
+ }
1117
+ function p() {
1118
+ var v;
1119
+ if (!((v = e.sourceCommunication) != null && v.needSelectSourceControl) && d.value.length === 0) {
1120
+ g.info({
1047
1121
  position: "top-center",
1048
1122
  message: "事件已全部绑定"
1049
1123
  });
1050
1124
  return;
1051
1125
  }
1052
- V(), C();
1126
+ F(), w();
1053
1127
  }
1054
- function a(d) {
1055
- T.value = !1, B.emit("selectSourceControl", d);
1128
+ function l(v) {
1129
+ $.value = !1, E.emit("selectSourceControl", v);
1056
1130
  }
1057
- return () => n(Me, null, [n("div", {
1131
+ return () => n(Ie, null, [n("div", {
1058
1132
  class: "f-page-events-editor-top-button"
1059
1133
  }, [n("button", {
1060
1134
  class: "f-page-events-editor-button",
1061
- onClick: f
1135
+ onClick: p
1062
1136
  }, [n("span", {
1063
1137
  class: "f-page-events-editor-text"
1064
- }, [Y("新建交互事件")])])]), w.value && n(xn, {
1065
- events: h.value,
1138
+ }, [Y("新建交互事件")])])]), C.value && n(dt, {
1139
+ events: d.value,
1066
1140
  onClick: P
1067
- }, null), T.value && n(Vn, {
1141
+ }, null), $.value && n(mt, {
1068
1142
  sourceCommunication: e.sourceCommunication,
1069
- onSelectSourceEvent: a
1143
+ onSelectSourceEvent: l
1070
1144
  }, null)]);
1071
1145
  }
1072
- }), kn = {
1146
+ }), vt = {
1073
1147
  collapsed: { type: Boolean, default: !0 },
1074
1148
  displayOrder: { type: Number, default: -1 },
1075
1149
  interaction: { type: Object, default: {} },
@@ -1079,7 +1153,7 @@ const Ln = {
1079
1153
  } },
1080
1154
  /** 接收是否显示「可选择方法」功能 */
1081
1155
  haveBoundCommand: { Type: Boolean, default: !1 }
1082
- }, An = {
1156
+ }, ht = {
1083
1157
  /** 判断是否为新引入的方法 */
1084
1158
  newImport: { Type: Boolean, default: !1 },
1085
1159
  /** 新增的内置构件列表 */
@@ -1096,47 +1170,47 @@ const Ln = {
1096
1170
  event: { Type: Object },
1097
1171
  /** 通讯来源 */
1098
1172
  sourceCommunication: { type: Object, default: {} }
1099
- }, $n = {
1173
+ }, gt = {
1100
1174
  controllers: { type: Array, default: [] }
1101
- }, On = /* @__PURE__ */ ee({
1175
+ }, Ct = /* @__PURE__ */ te({
1102
1176
  name: "FCommandList",
1103
- props: $n,
1177
+ props: gt,
1104
1178
  emits: ["selectMethod"],
1105
- setup(e, B) {
1106
- function N(w) {
1107
- return w.controllerList.length !== 0;
1179
+ setup(e, E) {
1180
+ function g(C) {
1181
+ return C.controllerList.length !== 0;
1108
1182
  }
1109
- function b(w) {
1110
- return N(w) && n("div", {
1183
+ function h(C) {
1184
+ return g(C) && n("div", {
1111
1185
  class: "f-page-internals-controller"
1112
1186
  }, [n("div", {
1113
1187
  class: "f-page-internals-controller-name",
1114
- title: w.controllerName.name
1115
- }, [w.controllerName.name])]);
1188
+ title: C.controllerName.name
1189
+ }, [C.controllerName.name])]);
1116
1190
  }
1117
- function u(w, T) {
1118
- B.emit("selectMethod", {
1119
- method: w,
1120
- controller: T
1191
+ function a(C, $) {
1192
+ E.emit("selectMethod", {
1193
+ method: C,
1194
+ controller: $
1121
1195
  });
1122
1196
  }
1123
- function h(w) {
1124
- return w.controllerList.map((T) => n("div", {
1197
+ function d(C) {
1198
+ return C.controllerList.map(($) => n("div", {
1125
1199
  class: "f-page-internals-command",
1126
- onClick: () => u(T, w)
1200
+ onClick: () => a($, C)
1127
1201
  }, [n("div", {
1128
1202
  class: "f-page-internals-command-name",
1129
- title: T.label
1130
- }, [T.name])]));
1203
+ title: $.label
1204
+ }, [$.name])]));
1131
1205
  }
1132
- function V(w) {
1133
- return n("div", null, [b(w), h(w)]);
1206
+ function F(C) {
1207
+ return n("div", null, [h(C), d(C)]);
1134
1208
  }
1135
1209
  return () => n("div", {
1136
1210
  class: "f-page-internals"
1137
- }, [e.controllers.map((w) => V(w))]);
1211
+ }, [e.controllers.map((C) => F(C))]);
1138
1212
  }
1139
- }), Dn = {
1213
+ }), pt = {
1140
1214
  getEventPath: { type: Function, default: null },
1141
1215
  notifyService: { type: Object },
1142
1216
  useFormSchema: { type: Object },
@@ -1144,61 +1218,61 @@ const Ln = {
1144
1218
  sourceCommunication: { type: Object, default: {} },
1145
1219
  /** 当前编辑的事件编号、事件名称 */
1146
1220
  event: { Type: Object }
1147
- }, Rn = /* @__PURE__ */ ee({
1221
+ }, bt = /* @__PURE__ */ te({
1148
1222
  name: "FBoundEventSelector",
1149
- props: Dn,
1223
+ props: pt,
1150
1224
  emits: ["cancel", "submit"],
1151
- setup(e, B) {
1152
- var M, R;
1153
- const N = F(), b = F([]), u = F('<i class="f-icon f-icon-search"></i>'), h = e.useFormSchema.getFormMetadataBasicInfo(), V = F(""), w = F(), T = ((M = e.sourceCommunication) == null ? void 0 : M.unSupportedEventCodes) || [], $ = F(!T.includes(e.event.label) && ((R = e.useFormSchema.externalFormSchema) == null ? void 0 : R.size) > 0), C = F(), P = F([]);
1154
- He(() => {
1225
+ setup(e, E) {
1226
+ var N, D;
1227
+ const g = b(), h = b([]), a = b('<i class="f-icon f-icon-search"></i>'), d = e.useFormSchema.getFormMetadataBasicInfo(), F = b(""), C = b(), $ = ((N = e.sourceCommunication) == null ? void 0 : N.unSupportedEventCodes) || [], j = b(!$.includes(e.event.label) && ((D = e.useFormSchema.externalFormSchema) == null ? void 0 : D.size) > 0), w = b(), P = b([]);
1228
+ nn(() => {
1155
1229
  if (e.getEventPath) {
1156
1230
  const m = e.getEventPath();
1157
- N.value = m.viewModelDisplay;
1231
+ g.value = m.viewModelDisplay;
1158
1232
  const {
1159
- actionWithPath: L
1233
+ actionWithPath: k
1160
1234
  } = m;
1161
- L.forEach((x) => {
1162
- x.sourceComponent.map.forEach((D) => {
1163
- D.active = !1, D.hide = !1;
1235
+ k.forEach((O) => {
1236
+ O.sourceComponent.map.forEach((q) => {
1237
+ q.active = !1, q.hide = !1;
1164
1238
  });
1165
- }), b.value = _(L);
1239
+ }), h.value = W(k);
1166
1240
  }
1167
1241
  });
1168
- function f(m = "") {
1169
- m = m.replace(/ /g, "").replace(/>/g, "").toLowerCase(), m === "" && (m = " "), b.value.forEach((L) => {
1170
- const x = L.path;
1171
- L.sourceComponent.map.forEach((D) => {
1172
- const G = D.command.name, X = D.event.name, S = D.command.label;
1173
- `${x}${G}${X}${S}`.toLowerCase().includes(m) ? D.hide = !1 : D.hide = !0;
1242
+ function p(m = "") {
1243
+ m = m.replace(/ /g, "").replace(/>/g, "").toLowerCase(), m === "" && (m = " "), h.value.forEach((k) => {
1244
+ const O = k.path;
1245
+ k.sourceComponent.map.forEach((q) => {
1246
+ const J = q.command.name, ne = q.event.name, M = q.command.label;
1247
+ `${O}${J}${ne}${M}`.toLowerCase().includes(m) ? q.hide = !1 : q.hide = !0;
1174
1248
  });
1175
1249
  });
1176
1250
  }
1177
- function a(m = "") {
1178
- m = m.replace(/ /g, "").replace(/>/g, "").toLowerCase(), P.value.forEach((L) => {
1179
- if (!L.isCommandNode)
1251
+ function l(m = "") {
1252
+ m = m.replace(/ /g, "").replace(/>/g, "").toLowerCase(), P.value.forEach((k) => {
1253
+ if (!k.isCommandNode)
1180
1254
  return;
1181
- const x = L.name || "", D = L.code || "", G = L.viewmodelName || "", X = `${x}${D}${G}`.toLowerCase();
1182
- m && !X.includes(m) ? L.hide = !0 : L.hide = !1;
1255
+ const O = k.name || "", q = k.code || "", J = k.viewmodelName || "", ne = `${O}${q}${J}`.toLowerCase();
1256
+ m && !ne.includes(m) ? k.hide = !0 : k.hide = !1;
1183
1257
  });
1184
1258
  }
1185
- function d(m = "") {
1186
- !C.value || C.value.id === h.id ? f(m) : a(m);
1259
+ function v(m = "") {
1260
+ !w.value || w.value.id === d.id ? p(m) : l(m);
1187
1261
  }
1188
- function s() {
1262
+ function f() {
1189
1263
  const m = n("div", {
1190
1264
  class: "f-vm-search"
1191
1265
  }, [n("div", {
1192
1266
  class: "f-vm-searchBar"
1193
- }, [n(an, {
1267
+ }, [n(Fn, {
1194
1268
  updateOn: "change",
1195
- groupText: u.value,
1196
- modelValue: V.value,
1197
- "onUpdate:modelValue": (L) => V.value = L,
1198
- onChange: d,
1269
+ groupText: a.value,
1270
+ modelValue: F.value,
1271
+ "onUpdate:modelValue": (k) => F.value = k,
1272
+ onChange: v,
1199
1273
  placeholder: "请输入名称/编号/路径搜索"
1200
1274
  }, null)])]);
1201
- return $.value ? n("div", {
1275
+ return j.value ? n("div", {
1202
1276
  class: "f-navSelector-header"
1203
1277
  }, [n("div", {
1204
1278
  class: "f-navSelector-recommand"
@@ -1210,35 +1284,35 @@ const Ln = {
1210
1284
  class: "f-vm-search"
1211
1285
  }, [m])])]) : m;
1212
1286
  }
1213
- function r(m) {
1287
+ function u(m) {
1214
1288
  return {
1215
1289
  "f-vm-item": !0,
1216
1290
  "f-vm-item-focus": m.active
1217
1291
  };
1218
1292
  }
1219
- function i(m, L) {
1220
- let x = 0;
1221
- b.value.forEach((D) => {
1222
- D.sourceComponent.map.forEach((G) => {
1223
- !G.command.isInvalid && m.controller.id === G.controller.id && m.command.id === G.command.id && m.event.label === G.event.label && L.sourceComponent.id === D.sourceComponent.id ? (m.active = !m.active, w.value = _(m)) : (G.command.isInvalid && m.controller.id === G.controller.id && m.command.id === G.command.id && m.event.label === G.event.label && L.sourceComponent.id === D.sourceComponent.id && (x++, x === 1 && (new re().info({
1293
+ function c(m, k) {
1294
+ let O = 0;
1295
+ h.value.forEach((q) => {
1296
+ q.sourceComponent.map.forEach((J) => {
1297
+ !J.command.isInvalid && m.controller.id === J.controller.id && m.command.id === J.command.id && m.event.label === J.event.label && k.sourceComponent.id === q.sourceComponent.id ? (m.active = !m.active, C.value = W(m)) : (J.command.isInvalid && m.controller.id === J.controller.id && m.command.id === J.command.id && m.event.label === J.event.label && k.sourceComponent.id === q.sourceComponent.id && (O++, O === 1 && (new fe().info({
1224
1298
  position: "top-center",
1225
1299
  message: "该方法已失效"
1226
- }), w.value = null)), G.active = !1);
1300
+ }), C.value = null)), J.active = !1);
1227
1301
  });
1228
1302
  });
1229
1303
  }
1230
- function v(m) {
1304
+ function S(m) {
1231
1305
  return {
1232
1306
  "f-event-func": !m.command.isInvalid,
1233
1307
  "f-event-func-invalid": m.command.isInvalid
1234
1308
  };
1235
1309
  }
1236
- function y(m) {
1237
- return m.sourceComponent.map.filter((L) => !L.hide).map((L) => {
1238
- if (!L.command.isInvalid)
1310
+ function T(m) {
1311
+ return m.sourceComponent.map.filter((k) => !k.hide).map((k) => {
1312
+ if (!k.command.isInvalid)
1239
1313
  return n("div", {
1240
- class: r(L),
1241
- onClick: () => i(L, m)
1314
+ class: u(k),
1315
+ onClick: () => c(k, m)
1242
1316
  }, [n("div", {
1243
1317
  class: "f-event-commandItem"
1244
1318
  }, [n("div", {
@@ -1247,16 +1321,16 @@ const Ln = {
1247
1321
  class: "f-icon f-icon-source-code",
1248
1322
  style: "font-size:10px;color:#30B471;"
1249
1323
  }, [Y(" ")])]), n("div", {
1250
- class: v(L)
1251
- }, [L.command.name, Y("("), L.command.label, Y(")")])]), n("div", {
1324
+ class: S(k)
1325
+ }, [k.command.name, Y("("), k.command.label, Y(")")])]), n("div", {
1252
1326
  class: "f-event-path"
1253
- }, [m.path, L.event.name])]);
1327
+ }, [m.path, k.event.name])]);
1254
1328
  });
1255
1329
  }
1256
1330
  function t() {
1257
- return b.value.length > 0 ? n("div", {
1331
+ return h.value.length > 0 ? n("div", {
1258
1332
  class: "f-vm-viewModel flex-fill"
1259
- }, [b.value.map((m) => y(m))]) : n("div", {
1333
+ }, [h.value.map((m) => T(m))]) : n("div", {
1260
1334
  class: "f-list-view-emptydata",
1261
1335
  style: "height: 360px;position: relative;"
1262
1336
  }, [n("div", {
@@ -1265,93 +1339,93 @@ const Ln = {
1265
1339
  class: "f-datagrid-norecords-content"
1266
1340
  }, [Y(" 暂无数据")])])]);
1267
1341
  }
1268
- function U() {
1269
- B.emit("cancel");
1342
+ function _() {
1343
+ E.emit("cancel");
1270
1344
  }
1271
- function z() {
1272
- if (!w.value) {
1345
+ function H() {
1346
+ if (!C.value) {
1273
1347
  e.notifyService.info({
1274
1348
  position: "top-center",
1275
1349
  message: "请选择需要绑定的方法"
1276
1350
  });
1277
1351
  return;
1278
1352
  }
1279
- B.emit("submit", {
1280
- selectedCommand: w.value,
1281
- selectedForm: C.value
1353
+ E.emit("submit", {
1354
+ selectedCommand: C.value,
1355
+ selectedForm: w.value
1282
1356
  });
1283
1357
  }
1284
- function k() {
1285
- const m = e.useFormSchema.externalFormSchema, L = [];
1286
- return L.push({
1358
+ function R() {
1359
+ const m = e.useFormSchema.externalFormSchema, k = [];
1360
+ return k.push({
1287
1361
  containerId: "",
1288
- id: h.id,
1289
- code: h.code,
1290
- name: h.name
1291
- }), Array.from(m.keys()).forEach((x) => {
1292
- const D = m.get(x);
1293
- L.push({
1294
- containerId: x,
1295
- id: D.id,
1296
- code: D.code,
1297
- name: D.name
1362
+ id: d.id,
1363
+ code: d.code,
1364
+ name: d.name
1365
+ }), Array.from(m.keys()).forEach((O) => {
1366
+ const q = m.get(O);
1367
+ k.push({
1368
+ containerId: O,
1369
+ id: q.id,
1370
+ code: q.code,
1371
+ name: q.name
1298
1372
  });
1299
- }), L;
1373
+ }), k;
1300
1374
  }
1301
- const p = q(() => ({
1375
+ const y = K(() => ({
1302
1376
  "f-vm-all": !0,
1303
1377
  " h-100": !0,
1304
- "has-page-list": $.value
1378
+ "has-page-list": j.value
1305
1379
  }));
1306
- function I(m) {
1307
- var G, X;
1380
+ function A(m) {
1381
+ var J, ne;
1308
1382
  const {
1309
- viewmodels: L,
1310
- components: x
1383
+ viewmodels: k,
1384
+ components: O
1311
1385
  } = m.module;
1312
- if ((L == null ? void 0 : L.length) === 0 || (x == null ? void 0 : x.length) === 0)
1386
+ if ((k == null ? void 0 : k.length) === 0 || (O == null ? void 0 : O.length) === 0)
1313
1387
  return [];
1314
1388
  P.value = [];
1315
- const D = (X = (G = e.sourceCommunication) == null ? void 0 : G.parameterData) == null ? void 0 : X.getViewModelName;
1316
- L.forEach((S) => {
1317
- if (!S || !S.commands || S.commands.length === 0)
1389
+ const q = (ne = (J = e.sourceCommunication) == null ? void 0 : J.parameterData) == null ? void 0 : ne.getViewModelName;
1390
+ k.forEach((M) => {
1391
+ if (!M || !M.commands || M.commands.length === 0)
1318
1392
  return [];
1319
- const H = x.find((ae) => ae.viewModel === S.id), Q = D && H ? D(H, S.name, m) : "";
1393
+ const Q = O.find((ce) => ce.viewModel === M.id), oe = q && Q ? q(Q, M.name, m) : "";
1320
1394
  P.value.push({
1321
- id: S.id,
1322
- code: S.code,
1323
- name: Q || S.name
1324
- }), S.commands.forEach((ae) => {
1325
- ae.isInvalid || P.value.push({
1326
- ...ae,
1327
- viewmodelId: S.id,
1328
- viewmodelName: Q || S.name,
1395
+ id: M.id,
1396
+ code: M.code,
1397
+ name: oe || M.name
1398
+ }), M.commands.forEach((ce) => {
1399
+ ce.isInvalid || P.value.push({
1400
+ ...ce,
1401
+ viewmodelId: M.id,
1402
+ viewmodelName: oe || M.name,
1329
1403
  isCommandNode: !0
1330
1404
  });
1331
1405
  });
1332
1406
  });
1333
1407
  }
1334
- function c(m) {
1335
- var L, x, D;
1336
- if (!(m.id === C.value.id && m.containerId === C.value.containerId))
1337
- if (C.value = m, V.value = "", w.value = null, C.value.id !== h.id) {
1338
- const G = (x = e.useFormSchema.externalFormSchema) == null ? void 0 : x.get((L = C.value) == null ? void 0 : L.containerId);
1339
- (D = G == null ? void 0 : G.content) != null && D.module && I(G.content);
1408
+ function i(m) {
1409
+ var k, O, q;
1410
+ if (!(m.id === w.value.id && m.containerId === w.value.containerId))
1411
+ if (w.value = m, F.value = "", C.value = null, w.value.id !== d.id) {
1412
+ const J = (O = e.useFormSchema.externalFormSchema) == null ? void 0 : O.get((k = w.value) == null ? void 0 : k.containerId);
1413
+ (q = J == null ? void 0 : J.content) != null && q.module && A(J.content);
1340
1414
  } else
1341
- b.value.map((G) => {
1342
- G.sourceComponent.map.map((X) => {
1343
- X.hide = !1, X.active = !1;
1415
+ h.value.map((J) => {
1416
+ J.sourceComponent.map.map((ne) => {
1417
+ ne.hide = !1, ne.active = !1;
1344
1418
  });
1345
1419
  });
1346
1420
  }
1347
1421
  function o() {
1348
- const m = k();
1349
- C.value || (C.value = m[0]);
1350
- const L = q(() => (x) => {
1351
- var D;
1422
+ const m = R();
1423
+ w.value || (w.value = m[0]);
1424
+ const k = K(() => (O) => {
1425
+ var q;
1352
1426
  return {
1353
1427
  "f-list-view-group-item": !0,
1354
- "f-listview-active": x.id === ((D = C.value) == null ? void 0 : D.id) && x.containerId === C.value.containerId
1428
+ "f-listview-active": O.id === ((q = w.value) == null ? void 0 : q.id) && O.containerId === w.value.containerId
1355
1429
  };
1356
1430
  });
1357
1431
  return n("div", {
@@ -1363,30 +1437,30 @@ const Ln = {
1363
1437
  }, [n("ul", {
1364
1438
  class: "f-list-view-group",
1365
1439
  style: "list-style: none;"
1366
- }, [m.map((x) => {
1367
- let D = x.name;
1368
- return x.containerId && (D += `, 所属外部容器:${x.containerId}`), n("li", {
1369
- class: L.value(x),
1370
- onClick: () => c(x)
1440
+ }, [m.map((O) => {
1441
+ let q = O.name;
1442
+ return O.containerId && (q += `, 所属外部容器:${O.containerId}`), n("li", {
1443
+ class: k.value(O),
1444
+ onClick: () => i(O)
1371
1445
  }, [n("div", {
1372
1446
  class: "f-list-content"
1373
1447
  }, [n("div", {
1374
1448
  class: "f-navSelector-leftCategory",
1375
- title: D
1376
- }, [x.name])])]);
1449
+ title: q
1450
+ }, [O.name])])]);
1377
1451
  })])])])]);
1378
1452
  }
1379
- function l(m) {
1380
- P.value.map((L) => L.active = !1), m.active = !0, w.value = m;
1453
+ function r(m) {
1454
+ P.value.map((k) => k.active = !1), m.active = !0, C.value = m;
1381
1455
  }
1382
- function g() {
1456
+ function s() {
1383
1457
  return n("div", {
1384
1458
  class: "f-vm-viewModel flex-fill"
1385
1459
  }, [P.value.filter((m) => !m.hide).map((m) => {
1386
1460
  if (m.isCommandNode)
1387
1461
  return n("div", {
1388
- class: r(m),
1389
- onClick: () => l(m)
1462
+ class: u(m),
1463
+ onClick: () => r(m)
1390
1464
  }, [n("div", {
1391
1465
  class: "f-event-commandItem"
1392
1466
  }, [n("div", {
@@ -1402,125 +1476,125 @@ const Ln = {
1402
1476
  })]);
1403
1477
  }
1404
1478
  return () => n("div", {
1405
- class: p.value
1479
+ class: y.value
1406
1480
  }, [n("div", {
1407
1481
  class: "d-flex f-utils-fill-flex-row splitter"
1408
- }, [$.value ? o() : "", n("div", {
1482
+ }, [j.value ? o() : "", n("div", {
1409
1483
  class: "f-utils-fill-flex-column"
1410
- }, [s(), !C.value || C.value.id === h.id ? t() : g()])]), n("div", {
1484
+ }, [f(), !w.value || w.value.id === d.id ? t() : s()])]), n("div", {
1411
1485
  class: "modal-footer"
1412
1486
  }, [n("button", {
1413
1487
  type: "button",
1414
1488
  class: "btn btn-secondary",
1415
- onClick: U
1489
+ onClick: _
1416
1490
  }, [Y("取消")]), n("button", {
1417
1491
  type: "button",
1418
1492
  class: "btn btn-primary",
1419
- onClick: z
1493
+ onClick: H
1420
1494
  }, [Y("确定")])])]);
1421
1495
  }
1422
- }), jn = /* @__PURE__ */ ee({
1496
+ }), wt = /* @__PURE__ */ te({
1423
1497
  name: "FCommandSource",
1424
- props: An,
1498
+ props: ht,
1425
1499
  emits: ["addInternalCommandListChanged", "newImportChanged", "selectBoundMethod", "click", "existChanged", "newFunctionChanged", "close", "selectMethod", "addCommunication"],
1426
- setup(e, B) {
1427
- const N = W("useMethodsComposition"), b = W("useFormCommand"), u = new re(), {
1428
- checkIfNewControllerExists: h,
1429
- addNewController: V
1430
- } = N, w = F(e.controllers), T = W("useFormSchema"), $ = W(tn);
1431
- let C, P;
1432
- const f = F(!1);
1433
- se(() => {
1434
- f.value = T.externalFormSchema.size > 0;
1500
+ setup(e, E) {
1501
+ const g = X("useMethodsComposition"), h = X("useFormCommand"), a = new fe(), {
1502
+ checkIfNewControllerExists: d,
1503
+ addNewController: F
1504
+ } = g, C = b(e.controllers), $ = X("useFormSchema"), j = X(Sn);
1505
+ let w, P;
1506
+ const p = b(!1);
1507
+ he(() => {
1508
+ p.value = $.externalFormSchema.size > 0;
1435
1509
  });
1436
- function a(l, g, M) {
1437
- if (V(l), l.Commands) {
1438
- const R = b.getInternalControllerFromControllerMetadata(l, g, M);
1439
- h(R) && u.info({
1510
+ function l(r, s, N) {
1511
+ if (F(r), r.Commands) {
1512
+ const D = h.getInternalControllerFromControllerMetadata(r, s, N);
1513
+ d(D) && a.info({
1440
1514
  position: "top-center",
1441
1515
  message: "该控制器已存在"
1442
1516
  });
1443
1517
  }
1444
1518
  }
1445
- async function d(l) {
1446
- b.getSupportedControllerMetadata(l).then((g) => {
1447
- g && a(g.controller, g.code, g.nameSpace);
1519
+ async function v(r) {
1520
+ h.getSupportedControllerMetadata(r).then((s) => {
1521
+ s && l(s.controller, s.code, s.nameSpace);
1448
1522
  }).finally(() => {
1449
- C && C.destroy && C.destroy();
1523
+ w && w.destroy && w.destroy();
1450
1524
  });
1451
1525
  }
1452
- function s(l) {
1453
- C && C.destroy && C.destroy();
1526
+ function f(r) {
1527
+ w && w.destroy && w.destroy();
1454
1528
  }
1455
- function r() {
1456
- const l = {
1457
- formBasicInfo: T == null ? void 0 : T.getFormMetadataBasicInfo()
1529
+ function u() {
1530
+ const r = {
1531
+ formBasicInfo: $ == null ? void 0 : $.getFormMetadataBasicInfo()
1458
1532
  };
1459
- return n(on, {
1460
- injectSymbolToken: Ze,
1533
+ return n(wn, {
1534
+ injectSymbolToken: fn,
1461
1535
  "view-type": "NavList",
1462
- editorParams: l,
1536
+ editorParams: r,
1463
1537
  showFooter: !0,
1464
- onCancel: s,
1465
- onSubmit: d
1538
+ onCancel: f,
1539
+ onSubmit: v
1466
1540
  }, null);
1467
1541
  }
1468
- function i() {
1469
- C = $.open({
1542
+ function c() {
1543
+ w = j.open({
1470
1544
  title: "选择控制器",
1471
1545
  width: 950,
1472
- render: r,
1546
+ render: u,
1473
1547
  showButtons: !1
1474
1548
  });
1475
1549
  }
1476
- function v() {
1477
- B.emit("newFunctionChanged");
1550
+ function S() {
1551
+ E.emit("newFunctionChanged");
1478
1552
  }
1479
- function y() {
1553
+ function T() {
1480
1554
  P && P.destroy && P.destroy();
1481
1555
  }
1482
- function t(l) {
1556
+ function t(r) {
1483
1557
  const {
1484
- selectedCommand: g,
1485
- selectedForm: M
1486
- } = l;
1487
- !M || (M == null ? void 0 : M.id) === T.getFormMetadataBasicInfo().id ? (N.selectBoundCommand(g, e.iteractionDisplayOrder), B.emit("selectBoundMethod")) : B.emit("addCommunication", l), y();
1558
+ selectedCommand: s,
1559
+ selectedForm: N
1560
+ } = r;
1561
+ !N || (N == null ? void 0 : N.id) === $.getFormMetadataBasicInfo().id ? (g.selectBoundCommand(s, e.iteractionDisplayOrder), E.emit("selectBoundMethod")) : E.emit("addCommunication", r), T();
1488
1562
  }
1489
- function U() {
1563
+ function _() {
1490
1564
  const {
1491
- getEventPath: l
1492
- } = N;
1493
- return n(Rn, {
1494
- getEventPath: l,
1495
- notifyService: u,
1496
- useFormSchema: T,
1565
+ getEventPath: r
1566
+ } = g;
1567
+ return n(bt, {
1568
+ getEventPath: r,
1569
+ notifyService: a,
1570
+ useFormSchema: $,
1497
1571
  sourceCommunication: e.sourceCommunication,
1498
1572
  event: e.event,
1499
- onCancel: y,
1573
+ onCancel: T,
1500
1574
  onSubmit: t
1501
1575
  }, null);
1502
1576
  }
1503
- function z() {
1504
- P = $.open({
1577
+ function H() {
1578
+ P = j.open({
1505
1579
  title: "已有方法",
1506
1580
  width: 950,
1507
1581
  height: 500,
1508
1582
  fitContent: !1,
1509
- render: U,
1583
+ render: _,
1510
1584
  showButtons: !1,
1511
1585
  enableEsc: !1,
1512
1586
  draggable: !0
1513
1587
  });
1514
1588
  }
1515
- function k() {
1516
- B.emit("close", null);
1589
+ function R() {
1590
+ E.emit("close", null);
1517
1591
  }
1518
- function p() {
1592
+ function y() {
1519
1593
  return n("div", {
1520
1594
  class: "f-command-breakline"
1521
1595
  }, [Y("------------------------------------------------------------")]);
1522
1596
  }
1523
- function I() {
1597
+ function A() {
1524
1598
  return n("div", {
1525
1599
  class: "f-page-internals-new-command"
1526
1600
  }, [n("div", {
@@ -1529,71 +1603,71 @@ const Ln = {
1529
1603
  class: "f-icon f-icon-panel-retraction"
1530
1604
  }, null), n("div", {
1531
1605
  class: "f-function-class",
1532
- onClick: () => i()
1606
+ onClick: () => c()
1533
1607
  }, [Y("引入控制器")])]), n("div", {
1534
1608
  class: "f-page-internals-new-command-func2"
1535
1609
  }, [n("div", {
1536
1610
  class: "f-icon f-icon-new-edit"
1537
1611
  }, null), n("div", {
1538
1612
  class: "f-function-class",
1539
- onClick: () => v()
1540
- }, [Y("添加新方法")])]), (e.haveBoundCommand || f.value) && n("div", {
1613
+ onClick: () => S()
1614
+ }, [Y("添加新方法")])]), (e.haveBoundCommand || p.value) && n("div", {
1541
1615
  class: "f-page-internals-new-command-func3"
1542
1616
  }, [n("div", {
1543
1617
  class: "f-icon f-icon-licensed"
1544
1618
  }, null), n("div", {
1545
1619
  class: "f-function-class",
1546
- onClick: () => z()
1620
+ onClick: () => H()
1547
1621
  }, [Y("已有方法")])])]);
1548
1622
  }
1549
- function c(l) {
1550
- B.emit("selectMethod", l);
1623
+ function i(r) {
1624
+ E.emit("selectMethod", r);
1551
1625
  }
1552
1626
  function o() {
1553
1627
  return n("div", {
1554
1628
  class: "f-page-command-source-choice"
1555
- }, [n(On, {
1556
- controllers: w.value,
1557
- onSelectMethod: c
1629
+ }, [n(Ct, {
1630
+ controllers: C.value,
1631
+ onSelectMethod: i
1558
1632
  }, null)]);
1559
1633
  }
1560
1634
  return () => n("div", {
1561
1635
  class: "f-page-events-editor-command-source"
1562
- }, [o(), p(), I(), p(), n("div", null, [n("div", {
1636
+ }, [o(), y(), A(), y(), n("div", null, [n("div", {
1563
1637
  class: "f-page-internals-close",
1564
- onClick: k
1638
+ onClick: R
1565
1639
  }, [Y("取消")])])]);
1566
1640
  }
1567
- }), Un = {
1641
+ }), St = {
1568
1642
  command: { type: Object, default: {} },
1569
1643
  showParameter: { type: Boolean, default: !1 },
1570
1644
  controller: { type: Object, default: {} },
1571
1645
  /** 是否显示删除按钮 */
1572
1646
  showDeleteIcon: { type: Boolean, default: !1 }
1573
- }, _n = /* @__PURE__ */ ee({
1647
+ }, Ft = /* @__PURE__ */ te({
1574
1648
  name: "FParameterEditor",
1575
- props: Un,
1649
+ props: St,
1576
1650
  emits: ["confirm", "change", "targetChange", "viewSource", "deleteCommand"],
1577
- setup(e, B) {
1578
- const N = new re(), b = W("FMessageBoxService"), u = F(_(e.command)), h = F(e.controller), V = F(0), w = q(() => u.value.id === "abandoned"), T = q(() => u.value.id === "deleted"), $ = q(() => e.showDeleteIcon), C = q(() => u.value !== null), P = W("useMethodsComposition"), f = F(e.showParameter), a = W("useFormSchema"), d = q(() => u.value.componentLists && u.value.hasPath), s = q(() => {
1579
- const S = u.value.id !== "abandoned" && u.value.id !== "deleted", H = d.value, Q = u.value.property && u.value.property.length > 0;
1580
- return S && (H || Q);
1651
+ setup(e, E) {
1652
+ const g = new fe(), h = X("FMessageBoxService"), a = b(W(e.command)), d = b(e.controller), F = b(0), C = K(() => a.value.id === "abandoned"), $ = K(() => a.value.id === "deleted"), j = K(() => e.showDeleteIcon), w = K(() => a.value !== null), P = X("useMethodsComposition"), p = b(e.showParameter), l = X("useFormSchema"), v = K(() => a.value.componentLists && a.value.hasPath), f = K(() => {
1653
+ const M = a.value.id !== "abandoned" && a.value.id !== "deleted", Q = v.value, oe = a.value.property && a.value.property.length > 0;
1654
+ return M && (Q || oe);
1581
1655
  });
1582
- function r() {
1656
+ function u() {
1583
1657
  const {
1584
- targetComponent: S
1585
- } = u.value;
1586
- let H = "";
1587
- return u.value.componentLists && u.value.componentLists.forEach((Q) => {
1588
- if (Q.componentId === S) {
1589
- H = Q.viewModelId;
1658
+ targetComponent: M
1659
+ } = a.value;
1660
+ let Q = "";
1661
+ return a.value.componentLists && a.value.componentLists.forEach((oe) => {
1662
+ if (oe.componentId === M) {
1663
+ Q = oe.viewModelId;
1590
1664
  return;
1591
1665
  }
1592
- }), H;
1666
+ }), Q;
1593
1667
  }
1594
- const i = F(r()), v = q(() => u.value.targetComponent || "");
1595
- function y() {
1596
- N.info({
1668
+ const c = b(u()), S = K(() => a.value.targetComponent || "");
1669
+ function T() {
1670
+ g.info({
1597
1671
  position: "top-center",
1598
1672
  message: "方法已被移除,请重新绑定"
1599
1673
  });
@@ -1603,38 +1677,38 @@ const Ln = {
1603
1677
  title: "方法已被移除,请重新绑定",
1604
1678
  class: "f-icon f-icon-flowline-warning text-danger text-center ",
1605
1679
  style: "font-size: 13px;margin-right:10px;width: 30px;height: 20px;",
1606
- onClick: () => y()
1680
+ onClick: () => T()
1607
1681
  }, null);
1608
1682
  }
1609
- function U() {
1610
- N.info({
1683
+ function _() {
1684
+ g.info({
1611
1685
  position: "top-center",
1612
1686
  message: "方法已失效,请重新绑定"
1613
1687
  });
1614
1688
  }
1615
- function z() {
1689
+ function H() {
1616
1690
  return n("div", {
1617
1691
  title: "'方法已被删除,请绑定其他方法'",
1618
1692
  class: "f-icon f-icon-flowline-warning text-danger text-center ",
1619
1693
  style: "font-size: 13px;margin-right:10px;width: 30px;height: 20px;",
1620
- onClick: () => U()
1694
+ onClick: () => _()
1621
1695
  }, null);
1622
1696
  }
1623
- function k(S) {
1624
- f.value = !f.value;
1697
+ function R(M) {
1698
+ p.value = !p.value;
1625
1699
  }
1626
- function p() {
1700
+ function y() {
1627
1701
  return n("div", {
1628
1702
  class: "f-icon f-icon-edit-button",
1629
1703
  style: "font-size: 13px;margin-right:10px;",
1630
- onClick: () => k(V.value)
1704
+ onClick: () => R(F.value)
1631
1705
  }, null);
1632
1706
  }
1633
- function I(S, H) {
1634
- u.value.targetComponent = S[0].componentId, B.emit("targetChange", u.value);
1707
+ function A(M, Q) {
1708
+ a.value.targetComponent = M[0].componentId, E.emit("targetChange", a.value);
1635
1709
  }
1636
- function c() {
1637
- const S = De({
1710
+ function i() {
1711
+ const M = Ge({
1638
1712
  content: "将此方法添加到指定的组件",
1639
1713
  placement: "top"
1640
1714
  });
@@ -1642,316 +1716,659 @@ const Ln = {
1642
1716
  class: "f-page-parameter-editor-targetComponent"
1643
1717
  }, [n("div", {
1644
1718
  class: "f-page-parameter-editor-targetComponent-topic"
1645
- }, [Y("挂载到目标组件"), _e(n("span", {
1719
+ }, [Y("挂载到目标组件"), He(n("span", {
1646
1720
  class: "farris-label-tips ml-2"
1647
1721
  }, [n("i", {
1648
1722
  class: "f-icon f-icon-description-tips"
1649
- }, null)]), [[ze("tooltip"), S]])]), n("div", {
1723
+ }, null)]), [[We("tooltip"), M]])]), n("div", {
1650
1724
  class: "f-page-parameter-editor-targetComponent-dropdown"
1651
- }, [n(ln, {
1652
- modelValue: i.value,
1653
- "onUpdate:modelValue": (H) => i.value = H,
1725
+ }, [n(tn, {
1726
+ modelValue: c.value,
1727
+ "onUpdate:modelValue": (Q) => c.value = Q,
1654
1728
  enableClear: !1,
1655
1729
  idField: "viewModelId",
1656
1730
  valueField: "viewModelId",
1657
1731
  textField: "componentId",
1658
- data: u.value.componentLists,
1732
+ data: a.value.componentLists,
1659
1733
  editable: !1,
1660
- onChange: I
1734
+ onChange: A
1661
1735
  }, null)])])]);
1662
1736
  }
1663
- function o(S, H) {
1664
- H.value = S;
1737
+ function o(M, Q) {
1738
+ Q.value = M;
1665
1739
  }
1666
- function l() {
1667
- B.emit("change", u.value);
1668
- }
1669
- function g() {
1670
- let S = "";
1671
- return v.value ? S = a.getViewModelIdByComponentId(v.value) : S = P.getViewModeId(), S;
1672
- }
1673
- function M(S, H) {
1674
- var Ce, ge, pe, be, de, me, E, A, O, j, K, Z, ne, oe, te, we, Se, Ee, ce, Fe, Ne;
1675
- const Q = g(), Ie = a.getViewModelById(Q).commands.find((J) => {
1676
- var le;
1677
- return (J == null ? void 0 : J.id) === ((le = e.command) == null ? void 0 : le.id);
1678
- }), Le = De(S.context.data), {
1679
- assembleSchemaFieldsByComponent: Be,
1680
- assembleOutline: xe,
1681
- assembleStateVariables: Ve,
1682
- assembleSchemaFieldsUnderBoundEntity: Te,
1683
- getEditor: ke
1684
- } = S.context.generalData, {
1685
- designerMode: Ae
1686
- } = a, $e = (J) => {
1687
- o(J, S), l();
1688
- }, Oe = (J) => {
1689
- var le, fe, ue, Pe;
1690
- return ((Pe = (ue = (fe = (le = S == null ? void 0 : S.origin) == null ? void 0 : le.controlSource) == null ? void 0 : fe.context) == null ? void 0 : ue.data) == null ? void 0 : Pe.value) === ":Entity" || J.raw.children && J.raw.children.length && (J.disabled = !0), J;
1740
+ function r() {
1741
+ E.emit("change", a.value);
1742
+ }
1743
+ function s() {
1744
+ let M = "";
1745
+ return S.value ? M = l.getViewModelIdByComponentId(S.value) : M = P.getViewModeId(), M;
1746
+ }
1747
+ function N(M, Q) {
1748
+ var Se, Fe, ye, Ee, ge, Ce, B, U, G, z, Z, ae, le, re, ie, Ne, Pe, Me, ue, Ve, Le;
1749
+ const oe = s(), Te = l.getViewModelById(oe).commands.find((ee) => {
1750
+ var se;
1751
+ return (ee == null ? void 0 : ee.id) === ((se = e.command) == null ? void 0 : se.id);
1752
+ }), ke = Ge(M.context.data), {
1753
+ assembleSchemaFieldsByComponent: Ae,
1754
+ assembleOutline: $e,
1755
+ assembleStateVariables: Oe,
1756
+ assembleSchemaFieldsUnderBoundEntity: De,
1757
+ getEditor: Re
1758
+ } = M.context.generalData, {
1759
+ designerMode: je
1760
+ } = l, Ue = (ee) => {
1761
+ o(ee, M), r();
1762
+ }, qe = (ee) => {
1763
+ var se, pe, ve, xe;
1764
+ return ((xe = (ve = (pe = (se = M == null ? void 0 : M.origin) == null ? void 0 : se.controlSource) == null ? void 0 : pe.context) == null ? void 0 : ve.data) == null ? void 0 : xe.value) === ":Entity" || ee.raw.children && ee.raw.children.length && (ee.disabled = !0), ee;
1691
1765
  };
1692
- return n(We, {
1693
- readonly: Ae === "PC_RTC" && !H.isRtcCommand,
1694
- defaultValue: S == null ? void 0 : S.origin.defaultValue,
1695
- modelValue: S.value,
1696
- "onUpdate:modelValue": (J) => S.value = J,
1697
- data: Le,
1698
- editor: ke(S.value, S, Ie, Q, $e),
1699
- fieldData: Be(),
1700
- formData: xe(),
1701
- varData: Ve(),
1702
- activeViewModelFieldData: Te(v.value),
1703
- editorControlSource: (Ce = S == null ? void 0 : S.origin) == null ? void 0 : Ce.controlSource,
1704
- customRowStatus: Oe,
1705
- idField: ((de = (be = (pe = (ge = S == null ? void 0 : S.origin) == null ? void 0 : ge.controlSource) == null ? void 0 : pe.context) == null ? void 0 : be.data) == null ? void 0 : de.value) === ":Entity" ? "bindTo" : ((O = (A = (E = (me = S == null ? void 0 : S.origin) == null ? void 0 : me.controlSource) == null ? void 0 : E.context) == null ? void 0 : A.valueField) == null ? void 0 : O.value) || ((ne = (Z = (K = (j = S == null ? void 0 : S.origin) == null ? void 0 : j.controlSource) == null ? void 0 : K.context) == null ? void 0 : Z.idField) == null ? void 0 : ne.value) || "id",
1706
- textField: ((Se = (we = (te = (oe = S == null ? void 0 : S.origin) == null ? void 0 : oe.controlSource) == null ? void 0 : te.context) == null ? void 0 : we.textField) == null ? void 0 : Se.value) || "label",
1707
- editable: (Ne = (Fe = (ce = (Ee = S == null ? void 0 : S.origin) == null ? void 0 : Ee.controlSource) == null ? void 0 : ce.context) == null ? void 0 : Fe.editable) == null ? void 0 : Ne.value,
1708
- onConfirm: (J) => {
1709
- o(J, S), l();
1766
+ return n(Ye, {
1767
+ readonly: je === "PC_RTC" && !Q.isRtcCommand,
1768
+ defaultValue: M == null ? void 0 : M.origin.defaultValue,
1769
+ modelValue: M.value,
1770
+ "onUpdate:modelValue": (ee) => M.value = ee,
1771
+ data: ke,
1772
+ editor: Re(M.value, M, Te, oe, Ue),
1773
+ fieldData: Ae(),
1774
+ formData: $e(),
1775
+ varData: Oe(),
1776
+ activeViewModelFieldData: De(S.value),
1777
+ editorControlSource: (Se = M == null ? void 0 : M.origin) == null ? void 0 : Se.controlSource,
1778
+ customRowStatus: qe,
1779
+ idField: ((ge = (Ee = (ye = (Fe = M == null ? void 0 : M.origin) == null ? void 0 : Fe.controlSource) == null ? void 0 : ye.context) == null ? void 0 : Ee.data) == null ? void 0 : ge.value) === ":Entity" ? "bindTo" : ((G = (U = (B = (Ce = M == null ? void 0 : M.origin) == null ? void 0 : Ce.controlSource) == null ? void 0 : B.context) == null ? void 0 : U.valueField) == null ? void 0 : G.value) || ((le = (ae = (Z = (z = M == null ? void 0 : M.origin) == null ? void 0 : z.controlSource) == null ? void 0 : Z.context) == null ? void 0 : ae.idField) == null ? void 0 : le.value) || "id",
1780
+ textField: ((Pe = (Ne = (ie = (re = M == null ? void 0 : M.origin) == null ? void 0 : re.controlSource) == null ? void 0 : ie.context) == null ? void 0 : Ne.textField) == null ? void 0 : Pe.value) || "label",
1781
+ editable: (Le = (Ve = (ue = (Me = M == null ? void 0 : M.origin) == null ? void 0 : Me.controlSource) == null ? void 0 : ue.context) == null ? void 0 : Ve.editable) == null ? void 0 : Le.value,
1782
+ onConfirm: (ee) => {
1783
+ o(ee, M), r();
1710
1784
  },
1711
- onValueChange: (J) => {
1712
- var le, fe;
1713
- if (((le = S.origin) == null ? void 0 : le.Code) === "lookupId") {
1714
- const ue = (fe = u.value.property) == null ? void 0 : fe.find((Pe) => Pe.name === "mappingFields");
1715
- ue && ue.value && (ue.value = "");
1785
+ onValueChange: (ee) => {
1786
+ var se, pe;
1787
+ if (((se = M.origin) == null ? void 0 : se.Code) === "lookupId") {
1788
+ const ve = (pe = a.value.property) == null ? void 0 : pe.find((xe) => xe.name === "mappingFields");
1789
+ ve && ve.value && (ve.value = "");
1716
1790
  }
1717
- o(J, S), l();
1791
+ o(ee, M), r();
1718
1792
  }
1719
1793
  }, null);
1720
1794
  }
1721
- function R() {
1722
- var S;
1723
- return (S = u.value.property) == null ? void 0 : S.map((H, Q) => {
1724
- const ae = De({
1725
- content: H.description,
1795
+ function D() {
1796
+ var M;
1797
+ return (M = a.value.property) == null ? void 0 : M.map((Q, oe) => {
1798
+ const ce = Ge({
1799
+ content: Q.description,
1726
1800
  placement: "top"
1727
1801
  });
1728
1802
  return n("div", {
1729
- key: H.name + Q
1803
+ key: Q.name + oe
1730
1804
  }, [n("div", {
1731
1805
  class: "f-page-parameter-editor-row1"
1732
1806
  }, [n("div", {
1733
1807
  class: "f-page-parameter-editor-parameter-name"
1734
- }, [H.shownName, H.description && _e(n("div", {
1808
+ }, [Q.shownName, Q.description && He(n("div", {
1735
1809
  class: "ml-2 farris-label-tips"
1736
1810
  }, [n("i", {
1737
1811
  class: "f-icon f-icon-description-tips"
1738
- }, null)]), [[ze("tooltip"), ae]])])]), n("div", {
1812
+ }, null)]), [[We("tooltip"), ce]])])]), n("div", {
1739
1813
  class: "f-page-parameter-editor-row2"
1740
- }, [M(H, u.value)])]);
1814
+ }, [N(Q, a.value)])]);
1741
1815
  });
1742
1816
  }
1743
1817
  function m() {
1744
1818
  return n("div", {
1745
1819
  class: "f-page-parameter-editor-group"
1746
- }, [d.value && c(), R()]);
1820
+ }, [v.value && i(), D()]);
1747
1821
  }
1748
- function L(S) {
1749
- S.stopPropagation(), B.emit("viewSource", {
1750
- command: u.value,
1751
- event: S
1822
+ function k(M) {
1823
+ M.stopPropagation(), E.emit("viewSource", {
1824
+ command: a.value,
1825
+ event: M
1752
1826
  });
1753
1827
  }
1754
- function x() {
1755
- b.question(`确定删除命令【${u.value.name}】吗?`, "", () => {
1756
- B.emit("deleteCommand");
1828
+ function O() {
1829
+ h.question(`确定删除命令【${a.value.name}】吗?`, "", () => {
1830
+ E.emit("deleteCommand");
1757
1831
  });
1758
1832
  }
1759
- function D() {
1833
+ function q() {
1760
1834
  return n("div", {
1761
1835
  class: "f-icon f-icon-yxs_delete",
1762
1836
  title: "删除命令",
1763
- onClick: (S) => x()
1837
+ onClick: (M) => O()
1764
1838
  }, null);
1765
1839
  }
1766
- const G = q(() => {
1767
- var S;
1840
+ const J = K(() => {
1841
+ var M;
1768
1842
  return {
1769
- cursor: w.value || h.value.isCommon || ((S = h.value) == null ? void 0 : S.label.indexOf(a == null ? void 0 : a.getModule().code)) === -1 ? "default" : "pointer"
1843
+ cursor: C.value || d.value.isCommon || ((M = d.value) == null ? void 0 : M.label.indexOf(l == null ? void 0 : l.getModule().code)) === -1 ? "default" : "pointer"
1770
1844
  };
1771
1845
  });
1772
- function X() {
1846
+ function ne() {
1773
1847
  return n("div", null, [n("div", {
1774
1848
  class: "f-page-parameter-editor-first-row"
1775
1849
  }, [n("span", {
1776
1850
  class: "f-page-parameter-editor-command-name",
1777
- style: G.value,
1778
- title: u.value.label,
1779
- onDblclick: L
1780
- }, [u.value.name]), n("div", {
1851
+ style: J.value,
1852
+ title: a.value.label,
1853
+ onDblclick: k
1854
+ }, [a.value.name]), n("div", {
1781
1855
  class: "f-page-parameter-editor-first-row-icon"
1782
- }, [w.value && t(), T.value && z(), s.value && p(), $.value && D()])]), f.value && m()]);
1856
+ }, [C.value && t(), $.value && H(), f.value && y(), j.value && q()])]), p.value && m()]);
1783
1857
  }
1784
1858
  return () => n("div", {
1785
1859
  class: "f-page-parameter-editor"
1786
- }, [C.value && X()]);
1860
+ }, [w.value && ne()]);
1861
+ }
1862
+ }), yt = {
1863
+ customClass: { type: String, default: "" },
1864
+ customStyle: { type: String, defaut: "" },
1865
+ /** 控制是否可见 */
1866
+ visible: { type: Boolean, default: !0 },
1867
+ /** 内部控件布局是否响应国际化 */
1868
+ adaptForLanguage: { type: Boolean, default: !0 }
1869
+ }, _e = /* @__PURE__ */ te({
1870
+ name: "FResponseForm",
1871
+ props: yt,
1872
+ emits: [],
1873
+ setup(e, E) {
1874
+ const g = b(), h = K(() => {
1875
+ const a = yn.getLocale(), d = e.customClass.split(" "), F = {
1876
+ "drag-container": !0
1877
+ };
1878
+ return d.reduce((C, $) => (C[$] = !0, C), F), e.adaptForLanguage && a && (F["farris-form-controls-inline"] = a !== "en"), F;
1879
+ });
1880
+ return () => e.visible && He(n("div", {
1881
+ ref: g,
1882
+ class: h.value,
1883
+ style: e.customStyle
1884
+ }, [E.slots.default && E.slots.default()]), [[We("area-response")]]);
1885
+ }
1886
+ }), Et = {
1887
+ id: { type: String, default: "" },
1888
+ customClass: { type: String, default: "" },
1889
+ customStyle: { type: String, default: "" },
1890
+ /** 筛选组件配置器,具体配置项可查看各组件文档 */
1891
+ editor: { type: Object, default: {} },
1892
+ label: { type: String, default: "" },
1893
+ /** value is uncertain because type is uncertain, default value should not be set */
1894
+ modelValue: { type: [String, Boolean, Array, Number] },
1895
+ // readonly: { type: Boolean, default: false },
1896
+ visible: { type: Boolean, default: !0 },
1897
+ required: { type: Boolean, default: !1 },
1898
+ showLabel: { type: Boolean, default: !0 },
1899
+ /**
1900
+ * visible相当于showLabel为true,none相当于showLabel为false
1901
+ */
1902
+ showLabelType: { type: String, default: "visible" },
1903
+ type: { type: String, default: "input-group" },
1904
+ componentId: { type: String, default: "" },
1905
+ errors: { type: Object, default: null },
1906
+ fill: { type: Boolean, default: !1 }
1907
+ }, Nt = {
1908
+ id: { type: String },
1909
+ required: { type: Boolean, default: !1 },
1910
+ text: { type: String, default: "" },
1911
+ title: { type: String },
1912
+ valid: { type: Boolean, default: !0 },
1913
+ inValidTip: { type: String, default: "" },
1914
+ /**
1915
+ * 实际支持 'visible'可见 | 'reserve-space' 占位不显示
1916
+ */
1917
+ showType: { type: String, default: "visible" }
1918
+ }, Pt = /* @__PURE__ */ te({
1919
+ name: "FDynamicFormLabel",
1920
+ props: Nt,
1921
+ emits: [],
1922
+ setup(e, E) {
1923
+ b(e.title || e.text);
1924
+ const g = b(e.required), h = b(e.text), a = b(e.valid), d = b(e.inValidTip);
1925
+ me(() => e.text, () => {
1926
+ h.value = e.text;
1927
+ }), me(() => e.required, (w, P) => {
1928
+ w !== P && (g.value = w);
1929
+ }), me([() => e.valid, () => e.inValidTip], ([w, P]) => {
1930
+ a.value = w, d.value = P;
1931
+ });
1932
+ const F = K(() => a.value ? h.value : d.value), C = K(() => a.value ? "" : "color:red"), $ = K(() => ({
1933
+ "col-form-label": !0,
1934
+ // 指定必填,当显示模式是隐藏或者没有指定标签名时,宽度不限定
1935
+ "f-width-auto": g.value && (e.showType === "none" || !h.value)
1936
+ })), j = K(() => e.showType === "force-none" ? !1 : e.showType === "reserve-space" || g.value || !!h.value && e.showType !== "none");
1937
+ return () => j.value && n("label", {
1938
+ class: $.value,
1939
+ title: F.value,
1940
+ style: C.value
1941
+ }, [!a.value && n("span", {
1942
+ class: "f-icon f-icon-warning mr-1",
1943
+ style: "color: red; min-width: 16px;",
1944
+ title: d.value
1945
+ }, null), n("span", {
1946
+ class: "farris-label-text"
1947
+ }, [g.value && n("span", {
1948
+ class: "farris-label-info text-danger"
1949
+ }, [Y("*")]), e.showType === "visible" && h.value])]);
1950
+ }
1951
+ }), { globalStorageKey: Mt } = vn(), V = {}, L = {}, x = {}, I = {};
1952
+ async function Vt() {
1953
+ {
1954
+ const e = {
1955
+ schemaMap: Je,
1956
+ propertyConfigSchemaMap: mn,
1957
+ propertyEffectMap: dn,
1958
+ schemaResolverMap: un
1959
+ };
1960
+ Nn.register(V, L, x, I), En.register(V, L, x, I), Pn.register(V, L, x, I), Mn.register(V, L, x, I), Vn.register(V, L, x, I, e), Ln.register(V, L, x, I), Xe.register(V, L, x, I, e), Ze.register(V, L, x, I, e), Xe.register(V, L, x, I, e), Ze.register(V, L, x, I, e), tn.register(V, L, x, I, e), xn.register(V, L, x, I), Bn.register(V, L, x, I), Tn.register(V, L, x, I, e), In.register(V, L, x, I), kn.register(V, L, x, I, e), An.register(V, L, x, I, e), $n.register(V, L, x, I), On.register(V, L, x, I, e), Dn.register(V, L, x, I), To.register(V, L, x, I), Rn.register(V, L, x, I), jn.register(V, L, x, I), Po.register(V, L, x, I), qn.register(V, L, x, I), Gn.register(V, L, x, I, e), _n.register(V, L, x, I, e), Hn.register(V, L, x, I, e), zn.register(V, L, x, I), Wn.register(V, L, x, I, e), Kn.register(V, L, x, I), Jn.register(V, L, x, I), Qn.register(V, L, x, I), Yn.register(V, L, x, I, e), Xn.register(V, L, x, I), Zn.register(V, L, x, I, e), eo.register(V, L, x, I), no.register(V, L, x, I), oo.register(V, L, x, I), to.register(V, L, x, I, e), ao.register(V, L, x, I, e), lo.register(V, L, x, I), io.register(V, L, x, I, e), co.register(V, L, x, I), ro.register(V, L, x, I), bn.register(V, L, x), so.register(V, L, x, I), uo.register(V, L, x, I, e), mo.register(V, L, x, I), fo.register(V, L, x, I), vo.register(V, L, x, I), ho.register(V, L, x, I, e), Vo.register(V, L, x, I), go.register(V, L, x, I, e), Co.register(V, L, x, I), po.register(V, L, x, I), bo.register(V, L, x, I, e), wo.register(V, L, x, I), Cn.register(V, L, x, I), Fo.register(V, L, x, I), So.register(V, L, x, I), yo.register(V, L, x, I), Eo.register(V, L, x, I, e), No.register(V, L, x, I), Un.register(V, L, x, I), Ye.register(V, L, x, I), Mo.register(V, L, x, I, e), Lo.register(V, L, x, I), xo.register(V, L, x, I), Bo.register(V, L, x, I), Io.register(V, L, x, I), ko.register(V, L, x, I), Ao.register(V, L, x, I, e), $o.register(V, L, x, I), Oo.register(V, L, x, I), Do.register(V, L, x, I), Ro.register(V, L, x, I, e), jo.register(V, L, x, I, e), Uo.register(V, L, x, I);
1961
+ const E = window[Mt];
1962
+ if (E)
1963
+ for (const g in E)
1964
+ E[g].createPropsResolver = on, E[g].register(V, L, x);
1965
+ }
1966
+ }
1967
+ function Lt() {
1968
+ Vt();
1969
+ function e(F) {
1970
+ const C = V[F];
1971
+ if (!C)
1972
+ throw new Error(`Could not find the editor of type '${F}'`);
1973
+ return C;
1974
+ }
1975
+ function E(F, C) {
1976
+ const $ = L[F];
1977
+ return $ ? $(C) : {};
1978
+ }
1979
+ function g(F) {
1980
+ switch (F) {
1981
+ case "check-box":
1982
+ return "onChangeValue";
1983
+ case "switch":
1984
+ return "onModelValueChanged";
1985
+ case "check-group":
1986
+ return "onChangeValue";
1987
+ case "combo-list":
1988
+ case "combo-tree":
1989
+ return "onChange";
1990
+ case "combo-lookup":
1991
+ return "";
1992
+ case "year-range":
1993
+ case "year-picker":
1994
+ case "month-range":
1995
+ case "month-picker":
1996
+ case "date-range":
1997
+ case "datetime-range":
1998
+ case "datetime-picker":
1999
+ return "onDatePicked";
2000
+ case "date-picker":
2001
+ return "onUpdate:modelValue";
2002
+ case "time-picker":
2003
+ return "onValueChange";
2004
+ case "input-group":
2005
+ return "onChange";
2006
+ case "lookup":
2007
+ case "sort-condition-editor":
2008
+ case "filter-condition-editor":
2009
+ case "code-editor":
2010
+ case "language-textbox":
2011
+ case "rich-text-editor":
2012
+ return "onUpdate:modelValue";
2013
+ case "number-range":
2014
+ return "onValueChange";
2015
+ case "number-spinner":
2016
+ return "onValueChange";
2017
+ case "radio-group":
2018
+ return "onChangeValue";
2019
+ case "text":
2020
+ return "";
2021
+ case "events-editor":
2022
+ return "onSavedCommandListChanged";
2023
+ case "grid-field-editor":
2024
+ case "item-collection-editor":
2025
+ case "response-form-layout-setting":
2026
+ case "response-layout-editor-setting":
2027
+ case "response-layout-splitter":
2028
+ case "menu-lookup":
2029
+ case "json-editor":
2030
+ return "onChange";
2031
+ case "field-selector":
2032
+ case "binding-selector":
2033
+ return "onFieldSelected";
2034
+ case "schema-selector":
2035
+ return "onSchemaSelected";
2036
+ case "mapping-editor":
2037
+ return "onMappingFieldsChanged";
2038
+ case "textarea":
2039
+ return "onChange";
2040
+ case "query-solution-config":
2041
+ case "solution-preset":
2042
+ case "filter-bar-config":
2043
+ return "onFieldsChanged";
2044
+ case "property-editor":
2045
+ return "onValueChange";
2046
+ case "expression-editor":
2047
+ return "onExpressionChanged";
2048
+ case "collection-property-editor":
2049
+ return "onValueChange";
2050
+ default:
2051
+ return "onUpdate:modelValue";
2052
+ }
2053
+ }
2054
+ function h(F) {
2055
+ switch (F) {
2056
+ case "combo-list":
2057
+ case "input-group":
2058
+ case "textarea":
2059
+ return "onClear";
2060
+ }
2061
+ }
2062
+ function a(F) {
2063
+ switch (F) {
2064
+ case "input-group":
2065
+ case "textarea":
2066
+ return "onMousedownEvent";
2067
+ }
2068
+ }
2069
+ function d(F) {
2070
+ switch (F) {
2071
+ case "input-group":
2072
+ case "textarea":
2073
+ return "onMouseupEvent";
2074
+ }
2075
+ }
2076
+ return { resolveEditorProps: E, resolveEditorType: e, getChangeFunctionName: g, getClearFunctionName: h, getMousedownFunctionName: a, getMouseupFunctionName: d };
2077
+ }
2078
+ const xt = {
2079
+ /**
2080
+ * 显示的错误信息
2081
+ */
2082
+ errors: {
2083
+ type: Object,
2084
+ default: null
2085
+ }
2086
+ }, Bt = /* @__PURE__ */ te({
2087
+ name: "FValidationMessage",
2088
+ props: xt,
2089
+ emits: [],
2090
+ setup(e, E) {
2091
+ const g = b(e.errors);
2092
+ me(() => e.errors, (d) => {
2093
+ g.value = d;
2094
+ });
2095
+ const h = b(!0), a = K(() => {
2096
+ if (g.value) {
2097
+ const d = Object.keys(g.value).map((F) => {
2098
+ var C;
2099
+ return (C = g.value[F]) == null ? void 0 : C.name;
2100
+ });
2101
+ return d.length ? d.join(" ") : "";
2102
+ }
2103
+ return "";
2104
+ });
2105
+ return () => a.value && n("div", {
2106
+ class: "farris-feedback f-state-invalid",
2107
+ onClick: () => h.value = !h.value
2108
+ }, [!h.value && n("span", {
2109
+ class: "f-icon f-icon-message_warning f-feedback-icon"
2110
+ }, null), h.value && n("span", {
2111
+ class: "f-feedback-message"
2112
+ }, [a.value])]);
2113
+ }
2114
+ }), Ke = /* @__PURE__ */ te({
2115
+ name: "FDynamicFormGroup",
2116
+ props: Et,
2117
+ emits: ["change", "update:modelValue"],
2118
+ setup(e, E) {
2119
+ var r;
2120
+ const g = b(e.id), h = b(e.customClass), a = b(e.editor), d = b(e.label), F = b(e.modelValue), C = b(e.readonly), $ = b(((r = e.editor) == null ? void 0 : r.required) || e.required), j = b(e.showLabel), w = b(e.visible);
2121
+ b(e.type);
2122
+ const P = b(), p = b(e.errors), l = hn(), v = b(e.editor.type || "input-group"), f = K(() => j.value ? e.showLabelType : "none"), {
2123
+ resolveEditorProps: u,
2124
+ resolveEditorType: c,
2125
+ getChangeFunctionName: S,
2126
+ getClearFunctionName: T
2127
+ } = Lt(), t = K(() => {
2128
+ const s = {
2129
+ "form-group": !0,
2130
+ "farris-form-group": !0,
2131
+ "common-group": !0,
2132
+ "q-state-readonly": C.value,
2133
+ "form-group--in-mobile": l
2134
+ };
2135
+ return s["form-group--has-" + v.value] = !0, s;
2136
+ }), _ = K(() => {
2137
+ if (e.fill)
2138
+ return {
2139
+ maxWidth: "none"
2140
+ };
2141
+ });
2142
+ function H(s, N, D) {
2143
+ F.value = N !== void 0 ? N : s, E.emit("update:modelValue", F.value), E.emit("change", F.value, {
2144
+ newValue: s,
2145
+ newModelValue: N,
2146
+ parameters: D
2147
+ });
2148
+ }
2149
+ function R() {
2150
+ E.emit("update:modelValue", "");
2151
+ }
2152
+ function y(s) {
2153
+ return (...N) => {
2154
+ R(), typeof s == "function" && s(...N);
2155
+ };
2156
+ }
2157
+ function A(s) {
2158
+ return (N, D, m) => {
2159
+ H(N, D, m), typeof s == "function" && s(N, D, m);
2160
+ };
2161
+ }
2162
+ const i = K(() => {
2163
+ const s = a.value.type || "input-group", N = c(s), D = u(s, a.value), m = S(s), k = T(a.value.type);
2164
+ return k && (D[k] = y(D[k])), m && (D[m] = A(D[m])), (D.id == null || D.id === "") && (D.id = g.value), s === "number-range" && a.value.onBeginValueChange && typeof a.value.onBeginValueChange == "function" ? (a.value.onBeginValueChange && typeof a.value.onBeginValueChange == "function" && (D.onBeginValueChange = a.value.onBeginValueChange), a.value.onEndValueChange && typeof a.value.onEndValueChange == "function" && (D.onEndValueChange = a.value.onEndValueChange)) : s === "lookup" && a.value["onUpdate:idValue"] && typeof a.value["onUpdate:idValue"] == "function" ? (D["onUpdate:idValue"] = a.value["onUpdate:idValue"], D.id = g.value) : s === "collection-property-editor" && a.value.onSelectionChange && typeof a.value.onSelectionChange == "function" ? D.onSelectionChange = a.value.onSelectionChange : s === "property-editor" && (D.onBeforeOpenVariables = a.value.onBeforeOpenVariables), () => n(N, rn({
2165
+ ref: P
2166
+ }, D, {
2167
+ modelValue: F.value,
2168
+ "onUpdate:modelValue": (O) => F.value = O
2169
+ }), E.slots);
2170
+ });
2171
+ function o() {
2172
+ return n(Bt, {
2173
+ id: `${g.value}-validation-message`,
2174
+ errors: p.value
2175
+ }, null);
2176
+ }
2177
+ return me([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([s, N, D, m, k, O, q, J, ne, M]) => {
2178
+ var Q;
2179
+ g.value = s, h.value = N, a.value = D, d.value = m, F.value = k, C.value = O, $.value = ((Q = a.value) == null ? void 0 : Q.required) || q, j.value = J, w.value = ne, p.value = M;
2180
+ }), E.expose({
2181
+ editorRef: P
2182
+ }), () => w.value && n("div", {
2183
+ id: `${g.value}-form-group`,
2184
+ class: h.value,
2185
+ style: e.customStyle
2186
+ }, [n("div", {
2187
+ class: "farris-group-wrap",
2188
+ style: _.value
2189
+ }, [n("div", {
2190
+ class: t.value
2191
+ }, [n(Pt, {
2192
+ id: `${g.value}-lable`,
2193
+ showType: f.value,
2194
+ required: $.value,
2195
+ text: d.value,
2196
+ title: d.value
2197
+ }, null), n("div", {
2198
+ class: "farris-input-wrap"
2199
+ }, [i.value(), o()])])])]);
1787
2200
  }
1788
- }), zn = /* @__PURE__ */ ee({
2201
+ });
2202
+ _e.install = (e) => {
2203
+ e.component(_e.name, _e).component(Ke.name, Ke);
2204
+ };
2205
+ const It = /* @__PURE__ */ te({
1789
2206
  name: "FSelectParameters",
1790
- props: he,
2207
+ props: we,
1791
2208
  emits: ["changed"],
1792
- setup(e, B) {
1793
- var c;
1794
- const N = new re();
1795
- N.globalConfig = {
2209
+ setup(e, E) {
2210
+ var i;
2211
+ const g = new fe();
2212
+ g.globalConfig = {
1796
2213
  position: "top-center"
1797
2214
  };
1798
- const b = W("FMessageBoxService"), u = F(e.communication), h = F(((c = u.value) == null ? void 0 : c.paramMappings) || []), V = W("useFormSchema"), w = V.getFormMetadataBasicInfo(), T = F([]), $ = F([]), C = F({}), P = F({}), f = q(() => (o) => {
1799
- let l = "", g = "";
2215
+ const h = X("FMessageBoxService"), a = b(e.communication), d = b(((i = a.value) == null ? void 0 : i.paramMappings) || []), F = X("useFormSchema"), C = F.getFormMetadataBasicInfo(), $ = b([]), j = b([]), w = b({}), P = b({}), p = K(() => (o) => {
2216
+ let r = "", s = "";
1800
2217
  if (o.sourceValue && o.targetVariable) {
1801
- const M = $.value.find((R) => R.statePath === `${o.targetVariableViewModelId}.${o.targetVariable}`);
1802
- M && M.name ? (P.value[o.targetVariable] = !1, l = `${o.sourceValue}--->${M.name}`, g = `将 ${o.sourceValue} 赋值给 ${M.name}`) : (P.value[o.targetVariable] = !0, l = `${o.sourceValue}--->${o.targetVariable}`, g = `将 ${o.sourceValue} 赋值给 ${o.targetVariable}`);
2218
+ const N = j.value.find((D) => D.statePath === `${o.targetVariableViewModelId}.${o.targetVariable}`);
2219
+ N && N.name ? (P.value[o.targetVariable] = !1, r = `${o.sourceValue}--->${N.name}`, s = `将 ${o.sourceValue} 赋值给 ${N.name}`) : (P.value[o.targetVariable] = !0, r = `${o.sourceValue}--->${o.targetVariable}`, s = `将 ${o.sourceValue} 赋值给 ${o.targetVariable}`);
1803
2220
  }
1804
2221
  return {
1805
- displayText: l,
1806
- displayTextTip: g
2222
+ displayText: r,
2223
+ displayTextTip: s
1807
2224
  };
1808
2225
  });
1809
- je(() => e.communication, (o) => {
1810
- u.value = o, h.value = u.value.paramMappings || [];
2226
+ me(() => e.communication, (o) => {
2227
+ a.value = o, d.value = a.value.paramMappings || [];
1811
2228
  }, {
1812
2229
  deep: !0
1813
2230
  });
1814
- function a() {
1815
- var l;
1816
- const o = h.value.length || 0;
1817
- h.value.length && (h.value = h.value.filter((g) => !(!g.sourceValue && !g.targetVariable))), u.value.paramMappings = h.value, o !== ((l = u.value.paramMappings) == null ? void 0 : l.length) && B.emit("changed");
2231
+ function l() {
2232
+ var r;
2233
+ const o = d.value.length || 0;
2234
+ d.value.length && (d.value = d.value.filter((s) => !(!s.sourceValue && !s.targetVariable))), a.value.paramMappings = d.value, o !== ((r = a.value.paramMappings) == null ? void 0 : r.length) && E.emit("changed");
1818
2235
  }
1819
- Ye(() => {
1820
- a();
2236
+ cn(() => {
2237
+ l();
1821
2238
  });
1822
- function d(o) {
1823
- var m, L;
2239
+ function v(o) {
2240
+ var m, k;
1824
2241
  const {
1825
- viewmodels: l,
1826
- components: g
2242
+ viewmodels: r,
2243
+ components: s
1827
2244
  } = o.module;
1828
- if ((l == null ? void 0 : l.length) === 0 || (g == null ? void 0 : g.length) === 0)
2245
+ if ((r == null ? void 0 : r.length) === 0 || (s == null ? void 0 : s.length) === 0)
1829
2246
  return [];
1830
- const M = [];
1831
- $.value = [];
1832
- const R = (L = (m = e.sourceCommunication) == null ? void 0 : m.parameterData) == null ? void 0 : L.getViewModelName;
1833
- return l.forEach((x) => {
1834
- if (!x || !x.states || x.states.length === 0)
2247
+ const N = [];
2248
+ j.value = [];
2249
+ const D = (k = (m = e.sourceCommunication) == null ? void 0 : m.parameterData) == null ? void 0 : k.getViewModelName;
2250
+ return r.forEach((O) => {
2251
+ if (!O || !O.states || O.states.length === 0)
1835
2252
  return [];
1836
- const D = [], G = g.find((H) => H.viewModel === x.id), X = R && G ? R(G, x.name, o) : "";
1837
- x.states.forEach((H) => {
1838
- const Q = {
1839
- ...H,
1840
- statePath: x.id + "." + H.code
2253
+ const q = [], J = s.find((Q) => Q.viewModel === O.id), ne = D && J ? D(J, O.name, o) : "";
2254
+ O.states.forEach((Q) => {
2255
+ const oe = {
2256
+ ...Q,
2257
+ statePath: O.id + "." + Q.code
1841
2258
  };
1842
- D.push({
1843
- data: Q,
2259
+ q.push({
2260
+ data: oe,
1844
2261
  children: []
1845
- }), $.value.push(Q);
2262
+ }), j.value.push(oe);
1846
2263
  });
1847
- const S = {
2264
+ const M = {
1848
2265
  data: {
1849
- id: x.id,
1850
- code: x.code,
1851
- name: X || x.name,
1852
- statePath: x.id
2266
+ id: O.id,
2267
+ code: O.code,
2268
+ name: ne || O.name,
2269
+ statePath: O.id
1853
2270
  },
1854
- children: D
2271
+ children: q
1855
2272
  };
1856
- M.push(S);
1857
- }), M;
2273
+ N.push(M);
2274
+ }), N;
1858
2275
  }
1859
- function s() {
1860
- var o, l;
1861
- if (!((o = u.value) != null && o.target.formId))
2276
+ function f() {
2277
+ var o, r;
2278
+ if (!((o = a.value) != null && o.target.formId))
1862
2279
  return [];
1863
- if (u.value.target.formId === w.id)
1864
- T.value = d(V.getFormSchema());
2280
+ if (a.value.target.formId === C.id)
2281
+ $.value = v(F.getFormSchema());
1865
2282
  else {
1866
- const g = V.externalFormSchema.get(u.value.target.externalContainerId);
1867
- (l = g == null ? void 0 : g.content) != null && l.module && (T.value = d(g == null ? void 0 : g.content));
2283
+ const s = F.externalFormSchema.get(a.value.target.externalContainerId);
2284
+ (r = s == null ? void 0 : s.content) != null && r.module && ($.value = v(s == null ? void 0 : s.content));
1868
2285
  }
1869
2286
  }
1870
- function r() {
1871
- Object.keys(C.value).forEach((o) => {
1872
- C.value[o] = !1;
2287
+ function u() {
2288
+ Object.keys(w.value).forEach((o) => {
2289
+ w.value[o] = !1;
1873
2290
  });
1874
2291
  }
1875
- function i() {
1876
- r();
1877
- const o = Ue().guid();
1878
- h.value.push({
2292
+ function c() {
2293
+ u();
2294
+ const o = Qe().guid();
2295
+ d.value.push({
1879
2296
  id: o,
1880
2297
  sourceValue: "",
1881
2298
  targetVariable: "",
1882
2299
  targetVariableViewModelId: ""
1883
- }), u.value.paramMappings = h.value, C.value[o] = !0;
2300
+ }), a.value.paramMappings = d.value, w.value[o] = !0;
1884
2301
  }
1885
- function v(o, l, g) {
2302
+ function S(o, r, s) {
1886
2303
  o.stopPropagation();
1887
- function M() {
1888
- h.value = h.value.filter((R) => R.id !== l.id), u.value.paramMappings = h.value, r(), B.emit("changed");
2304
+ function N() {
2305
+ d.value = d.value.filter((D) => D.id !== r.id), a.value.paramMappings = d.value, u(), E.emit("changed");
1889
2306
  }
1890
- g ? b.question(`确定删除参数【${g}】吗?`, "", () => {
1891
- M();
1892
- }) : M();
2307
+ s ? h.question(`确定删除参数【${s}】吗?`, "", () => {
2308
+ N();
2309
+ }) : N();
1893
2310
  }
1894
- function y(o) {
1895
- C.value[o.id] || (r(), C.value[o.id] = !0);
2311
+ function T(o) {
2312
+ w.value[o.id] || (u(), w.value[o.id] = !0);
1896
2313
  }
1897
- function t(o, l) {
1898
- if (!l.sourceValue) {
1899
- N.warning("请选择源参数");
2314
+ function t(o, r) {
2315
+ if (!r.sourceValue) {
2316
+ g.warning("请选择源参数");
1900
2317
  return;
1901
2318
  }
1902
- if (!l.targetVariable) {
1903
- N.warning("请选择目标参数");
2319
+ if (!r.targetVariable) {
2320
+ g.warning("请选择目标参数");
1904
2321
  return;
1905
2322
  }
1906
- C.value[o.id] = !1, Object.assign(o, l), delete o.statePath, B.emit("changed");
2323
+ w.value[o.id] = !1, Object.assign(o, r), delete o.statePath, E.emit("changed");
1907
2324
  }
1908
- function U(o) {
1909
- C.value[o.id] = !1, !o.sourceValue && !o.targetVariable && !o.targetVariableViewModelId && (h.value = h.value.filter((l) => l.id !== o.id), u.value.paramMappings = h.value, B.emit("changed"));
2325
+ function _(o) {
2326
+ w.value[o.id] = !1, !o.sourceValue && !o.targetVariable && !o.targetVariableViewModelId && (d.value = d.value.filter((r) => r.id !== o.id), a.value.paramMappings = d.value, E.emit("changed"));
1910
2327
  }
1911
- se(() => {
1912
- s();
1913
- }), je(() => e.communication, (o) => {
1914
- s();
2328
+ he(() => {
2329
+ f();
2330
+ }), me(() => e.communication, (o) => {
2331
+ f();
1915
2332
  }, {
1916
2333
  deep: !0
1917
2334
  });
1918
- function z(o, l, g) {
1919
- var M;
1920
- if ((M = g.newValue) != null && M.length) {
2335
+ function H(o, r, s) {
2336
+ var N;
2337
+ if ((N = s.newValue) != null && N.length) {
1921
2338
  const {
1922
- statePath: R
1923
- } = g.newValue[0];
1924
- if ((R == null ? void 0 : R.indexOf(".")) > 0) {
1925
- const m = R.split(".");
1926
- l.targetVariableViewModelId = m[0], l.targetVariable = m[1];
2339
+ statePath: D
2340
+ } = s.newValue[0];
2341
+ if ((D == null ? void 0 : D.indexOf(".")) > 0) {
2342
+ const m = D.split(".");
2343
+ r.targetVariableViewModelId = m[0], r.targetVariable = m[1];
1927
2344
  }
1928
2345
  }
1929
2346
  }
1930
- function k(o) {
2347
+ function R(o) {
1931
2348
  return {
1932
2349
  type: "combo-tree",
1933
2350
  textField: "name",
1934
2351
  valueField: "statePath",
1935
2352
  idField: "statePath",
1936
- data: T.value,
2353
+ data: $.value,
1937
2354
  editable: !1,
1938
2355
  enableClear: !1,
1939
- customRowStatus: (l) => l.raw.parent ? (h.value.find((M) => M.id !== o.id && `${M.targetVariableViewModelId}.${M.targetVariable}` === l.raw.statePath) && (l.disabled = !0), l) : (l.disabled = !0, l)
2356
+ customRowStatus: (r) => r.raw.parent ? (d.value.find((N) => N.id !== o.id && `${N.targetVariableViewModelId}.${N.targetVariable}` === r.raw.statePath) && (r.disabled = !0), r) : (r.disabled = !0, r)
1940
2357
  };
1941
2358
  }
1942
- function p(o) {
1943
- const l = _(o);
1944
- l.statePath = `${l.targetVariableViewModelId}.${l.targetVariable}`;
1945
- const g = k(o);
1946
- let M = V.getFormSchema();
1947
- if (u.value.source.formId !== w.id) {
1948
- const x = V.externalFormSchema.get(u.value.source.externalContainerId);
1949
- x != null && x.content && (M = x == null ? void 0 : x.content);
2359
+ function y(o) {
2360
+ const r = W(o);
2361
+ r.statePath = `${r.targetVariableViewModelId}.${r.targetVariable}`;
2362
+ const s = R(o);
2363
+ let N = F.getFormSchema();
2364
+ if (a.value.source.formId !== C.id) {
2365
+ const O = F.externalFormSchema.get(a.value.source.externalContainerId);
2366
+ O != null && O.content && (N = O == null ? void 0 : O.content);
1950
2367
  }
1951
2368
  const {
1952
- assembleSchemaFieldsByComponent: R,
2369
+ assembleSchemaFieldsByComponent: D,
1953
2370
  assembleOutline: m,
1954
- assembleStateVariables: L
2371
+ assembleStateVariables: k
1955
2372
  } = e.sourceCommunication.parameterData;
1956
2373
  return n("div", {
1957
2374
  class: "param-panel"
@@ -1966,55 +2383,55 @@ const Ln = {
1966
2383
  title: "源参数"
1967
2384
  }, [n("span", {
1968
2385
  class: "farris-label-text"
1969
- }, [Y("源参数")])])])])]), n(We, {
2386
+ }, [Y("源参数")])])])])]), n(Ye, {
1970
2387
  class: "col-12 mb-2",
1971
- modelValue: l.sourceValue,
1972
- "onUpdate:modelValue": (x) => l.sourceValue = x,
1973
- fieldData: R(M),
1974
- formData: m(M),
1975
- varData: L(M),
2388
+ modelValue: r.sourceValue,
2389
+ "onUpdate:modelValue": (O) => r.sourceValue = O,
2390
+ fieldData: D(N),
2391
+ formData: m(N),
2392
+ varData: k(N),
1976
2393
  editorType: "Default",
1977
2394
  editable: !0
1978
- }, null), n(cn, {
2395
+ }, null), n(Ke, {
1979
2396
  label: "目标参数",
1980
- modelValue: l.statePath,
1981
- "onUpdate:modelValue": (x) => l.statePath = x,
2397
+ modelValue: r.statePath,
2398
+ "onUpdate:modelValue": (O) => r.statePath = O,
1982
2399
  customClass: "col-12 mb-2",
1983
- editor: g,
1984
- onChange: (x, D) => z(x, l, D)
2400
+ editor: s,
2401
+ onChange: (O, q) => H(O, r, q)
1985
2402
  }, null), n("div", {
1986
2403
  class: "d-flex justify-content-end"
1987
2404
  }, [n("button", {
1988
2405
  class: "btn btn-secondary mr-2",
1989
- onClick: () => U(o)
2406
+ onClick: () => _(o)
1990
2407
  }, [Y("取消")]), n("button", {
1991
2408
  class: "btn btn-primary",
1992
- onClick: () => t(o, l)
2409
+ onClick: () => t(o, r)
1993
2410
  }, [Y("确定")])])]);
1994
2411
  }
1995
- B.expose({
1996
- addParameter: i,
1997
- closeAllParameterPanel: r
2412
+ E.expose({
2413
+ addParameter: c,
2414
+ closeAllParameterPanel: u
1998
2415
  });
1999
- const I = q(() => (o) => ({
2416
+ const A = K(() => (o) => ({
2000
2417
  "param-container": !0,
2001
2418
  "ml-3": !0,
2002
2419
  invalid: o
2003
2420
  }));
2004
- return () => h.value.length ? h.value.map((o) => {
2421
+ return () => d.value.length ? d.value.map((o) => {
2005
2422
  const {
2006
- displayText: l,
2007
- displayTextTip: g
2008
- } = f.value(o), M = P.value[o.targetVariable];
2423
+ displayText: r,
2424
+ displayTextTip: s
2425
+ } = p.value(o), N = P.value[o.targetVariable];
2009
2426
  return n("div", {
2010
- class: I.value(M)
2427
+ class: A.value(N)
2011
2428
  }, [n("div", {
2012
2429
  class: "selected-item position-relative"
2013
2430
  }, [n("span", {
2014
2431
  class: "form-control mr-3",
2015
- title: g,
2016
- onClick: () => y(o)
2017
- }, [l || "请配置参数"]), M ? n("span", {
2432
+ title: s,
2433
+ onClick: () => T(o)
2434
+ }, [r || "请配置参数"]), N ? n("span", {
2018
2435
  title: "目标参数已失效,请重新选择"
2019
2436
  }, [n("i", {
2020
2437
  class: "f-icon f-icon-flowline-warning text-danger text-tip"
@@ -2023,465 +2440,465 @@ const Ln = {
2023
2440
  }, [n("div", {
2024
2441
  class: "f-icon f-icon-yxs_delete",
2025
2442
  title: "删除参数",
2026
- onClick: (R) => v(R, o, l)
2027
- }, null)])]), C.value[o.id] ? p(o) : ""]);
2443
+ onClick: (D) => S(D, o, r)
2444
+ }, null)])]), w.value[o.id] ? y(o) : ""]);
2028
2445
  }) : "";
2029
2446
  }
2030
- }), Gn = /* @__PURE__ */ ee({
2447
+ }), Tt = /* @__PURE__ */ te({
2031
2448
  name: "FCommunicationCommandItem",
2032
- props: he,
2449
+ props: we,
2033
2450
  emits: ["addParameter", "deleteCommand", "toggleParameterPanel"],
2034
- setup(e, B) {
2035
- const N = F(e.communication), b = W("FMessageBoxService"), u = W("useFormSchema"), h = u.getFormMetadataBasicInfo(), V = F([]), w = F(), T = F(!1), $ = F([]), C = F(), P = F(!1), f = F(e.communication.paramMappings && e.communication.paramMappings.length > 0), a = q(() => {
2036
- var c, o, l, g;
2037
- if (!w.value)
2451
+ setup(e, E) {
2452
+ const g = b(e.communication), h = X("FMessageBoxService"), a = X("useFormSchema"), d = a.getFormMetadataBasicInfo(), F = b([]), C = b(), $ = b(!1), j = b([]), w = b(), P = b(!1), p = b(e.communication.paramMappings && e.communication.paramMappings.length > 0), l = K(() => {
2453
+ var i, o, r, s;
2454
+ if (!C.value)
2038
2455
  return "";
2039
- const p = ((c = w.value) == null ? void 0 : c.name) || ((o = w.value) == null ? void 0 : o.code) || "", I = ((l = C.value) == null ? void 0 : l.name) || ((g = C.value) == null ? void 0 : g.code) || "";
2040
- return `${p}-${I}`;
2041
- }), d = q(() => {
2042
- var g, M, R, m, L, x;
2043
- if (!w.value)
2456
+ const y = ((i = C.value) == null ? void 0 : i.name) || ((o = C.value) == null ? void 0 : o.code) || "", A = ((r = w.value) == null ? void 0 : r.name) || ((s = w.value) == null ? void 0 : s.code) || "";
2457
+ return `${y}-${A}`;
2458
+ }), v = K(() => {
2459
+ var s, N, D, m, k, O;
2460
+ if (!C.value)
2044
2461
  return "";
2045
- const p = ((g = w.value) == null ? void 0 : g.name) || ((M = w.value) == null ? void 0 : M.code) || "", I = ((R = C.value) == null ? void 0 : R.name) || ((m = C.value) == null ? void 0 : m.code) || "", c = ((L = w.value) == null ? void 0 : L.code) || "", o = ((x = C.value) == null ? void 0 : x.code) || "", l = w.value.containerId ? `, 所属外部容器: ${w.value.containerId}` : "";
2046
- return `${p} (${c}${l})
2047
- ${I} (${o})`;
2048
- }), s = q(() => T.value ? "目标表单已失效,请删除当前方法。" : P.value ? "目标命令已失效,请删除当前方法。" : "");
2049
- function r() {
2050
- var p, I;
2051
- if ((I = (p = N.value) == null ? void 0 : p.target) != null && I.formId) {
2052
- const c = V.value.find((o) => o.id === N.value.target.formId && o.containerId === N.value.target.externalContainerId);
2053
- T.value = !c, w.value = c || {
2054
- containerId: N.value.target.externalContainerId,
2055
- id: N.value.target.formId,
2056
- code: N.value.target.formCode
2462
+ const y = ((s = C.value) == null ? void 0 : s.name) || ((N = C.value) == null ? void 0 : N.code) || "", A = ((D = w.value) == null ? void 0 : D.name) || ((m = w.value) == null ? void 0 : m.code) || "", i = ((k = C.value) == null ? void 0 : k.code) || "", o = ((O = w.value) == null ? void 0 : O.code) || "", r = C.value.containerId ? `, 所属外部容器: ${C.value.containerId}` : "";
2463
+ return `${y} (${i}${r})
2464
+ ${A} (${o})`;
2465
+ }), f = K(() => $.value ? "目标表单已失效,请删除当前方法。" : P.value ? "目标命令已失效,请删除当前方法。" : "");
2466
+ function u() {
2467
+ var y, A;
2468
+ if ((A = (y = g.value) == null ? void 0 : y.target) != null && A.formId) {
2469
+ const i = F.value.find((o) => o.id === g.value.target.formId && o.containerId === g.value.target.externalContainerId);
2470
+ $.value = !i, C.value = i || {
2471
+ containerId: g.value.target.externalContainerId,
2472
+ id: g.value.target.formId,
2473
+ code: g.value.target.formCode
2057
2474
  };
2058
2475
  } else
2059
- T.value = !1;
2476
+ $.value = !1;
2060
2477
  }
2061
- function i() {
2062
- var I, c;
2063
- const p = u.externalFormSchema;
2064
- Array.from(p.keys()).forEach((o) => {
2065
- var g, M;
2066
- const l = p.get(o);
2067
- ((M = (g = N.value) == null ? void 0 : g.source) == null ? void 0 : M.externalContainerId) !== o && V.value.push({
2478
+ function c() {
2479
+ var A, i;
2480
+ const y = a.externalFormSchema;
2481
+ Array.from(y.keys()).forEach((o) => {
2482
+ var s, N;
2483
+ const r = y.get(o);
2484
+ ((N = (s = g.value) == null ? void 0 : s.source) == null ? void 0 : N.externalContainerId) !== o && F.value.push({
2068
2485
  containerId: o,
2069
- id: l.id,
2070
- code: l.code,
2071
- name: l.name
2486
+ id: r.id,
2487
+ code: r.code,
2488
+ name: r.name
2072
2489
  });
2073
- }), ((c = (I = N.value) == null ? void 0 : I.source) == null ? void 0 : c.formId) !== h.id && V.value.unshift({
2490
+ }), ((i = (A = g.value) == null ? void 0 : A.source) == null ? void 0 : i.formId) !== d.id && F.value.unshift({
2074
2491
  containerId: "",
2075
- id: h.id,
2076
- code: h.code,
2077
- name: h.name
2078
- }), r();
2079
- }
2080
- function v() {
2081
- var p, I;
2082
- if ((I = (p = N.value) == null ? void 0 : p.target) != null && I.commandCode) {
2492
+ id: d.id,
2493
+ code: d.code,
2494
+ name: d.name
2495
+ }), u();
2496
+ }
2497
+ function S() {
2498
+ var y, A;
2499
+ if ((A = (y = g.value) == null ? void 0 : y.target) != null && A.commandCode) {
2083
2500
  const {
2084
- commandCode: c,
2501
+ commandCode: i,
2085
2502
  commandViewmodelId: o
2086
- } = N.value.target, l = $.value.find((g) => g.code === c && g.viewmodelId === o);
2087
- C.value = l || {
2088
- code: N.value.target.commandCode
2089
- }, P.value = !l;
2503
+ } = g.value.target, r = j.value.find((s) => s.code === i && s.viewmodelId === o);
2504
+ w.value = r || {
2505
+ code: g.value.target.commandCode
2506
+ }, P.value = !r;
2090
2507
  } else
2091
- C.value = null, P.value = !1;
2508
+ w.value = null, P.value = !1;
2092
2509
  }
2093
- function y(p) {
2094
- var l, g;
2510
+ function T(y) {
2511
+ var r, s;
2095
2512
  const {
2096
- viewmodels: I,
2097
- components: c
2098
- } = p.module;
2099
- if ((I == null ? void 0 : I.length) === 0 || (c == null ? void 0 : c.length) === 0)
2513
+ viewmodels: A,
2514
+ components: i
2515
+ } = y.module;
2516
+ if ((A == null ? void 0 : A.length) === 0 || (i == null ? void 0 : i.length) === 0)
2100
2517
  return [];
2101
- $.value = [];
2102
- const o = (g = (l = e.sourceCommunication) == null ? void 0 : l.parameterData) == null ? void 0 : g.getViewModelName;
2103
- I.forEach((M) => {
2104
- if (!M || !M.commands || M.commands.length === 0)
2518
+ j.value = [];
2519
+ const o = (s = (r = e.sourceCommunication) == null ? void 0 : r.parameterData) == null ? void 0 : s.getViewModelName;
2520
+ A.forEach((N) => {
2521
+ if (!N || !N.commands || N.commands.length === 0)
2105
2522
  return [];
2106
- const R = c.find((L) => L.viewModel === M.id), m = o && R ? o(R, M.name, p) : "";
2107
- $.value.push({
2108
- id: M.id,
2109
- code: M.code,
2110
- name: m || M.name
2111
- }), M.commands.forEach((L) => {
2112
- L.isInvalid || $.value.push({
2113
- ...L,
2114
- viewmodelId: M.id,
2523
+ const D = i.find((k) => k.viewModel === N.id), m = o && D ? o(D, N.name, y) : "";
2524
+ j.value.push({
2525
+ id: N.id,
2526
+ code: N.code,
2527
+ name: m || N.name
2528
+ }), N.commands.forEach((k) => {
2529
+ k.isInvalid || j.value.push({
2530
+ ...k,
2531
+ viewmodelId: N.id,
2115
2532
  isCommandNode: !0
2116
2533
  });
2117
2534
  });
2118
2535
  });
2119
2536
  }
2120
2537
  function t() {
2121
- var p, I, c;
2122
- if (!((p = w.value) != null && p.id))
2538
+ var y, A, i;
2539
+ if (!((y = C.value) != null && y.id))
2123
2540
  return [];
2124
- if (w.value.id === h.id)
2125
- y(u.getFormSchema());
2541
+ if (C.value.id === d.id)
2542
+ T(a.getFormSchema());
2126
2543
  else {
2127
- const o = u.externalFormSchema.get((I = w.value) == null ? void 0 : I.containerId);
2128
- (c = o == null ? void 0 : o.content) != null && c.module && y(o.content);
2544
+ const o = a.externalFormSchema.get((A = C.value) == null ? void 0 : A.containerId);
2545
+ (i = o == null ? void 0 : o.content) != null && i.module && T(o.content);
2129
2546
  }
2130
- v();
2547
+ S();
2131
2548
  }
2132
- se(() => {
2133
- i(), t();
2134
- }), je(() => e.communication, (p) => {
2135
- f.value = e.communication.paramMappings && e.communication.paramMappings.length > 0, r(), t();
2549
+ he(() => {
2550
+ c(), t();
2551
+ }), me(() => e.communication, (y) => {
2552
+ p.value = e.communication.paramMappings && e.communication.paramMappings.length > 0, u(), t();
2136
2553
  }, {
2137
2554
  deep: !0
2138
2555
  });
2139
- function U() {
2140
- B.emit("addParameter");
2556
+ function _() {
2557
+ E.emit("addParameter");
2141
2558
  }
2142
- function z() {
2143
- b.question(`确定删除命令【${a.value}】吗?`, "", () => {
2144
- B.emit("deleteCommand");
2559
+ function H() {
2560
+ h.question(`确定删除命令【${l.value}】吗?`, "", () => {
2561
+ E.emit("deleteCommand");
2145
2562
  });
2146
2563
  }
2147
- function k() {
2148
- B.emit("toggleParameterPanel");
2564
+ function R() {
2565
+ E.emit("toggleParameterPanel");
2149
2566
  }
2150
2567
  return () => n("div", {
2151
2568
  class: "form-container position-relative"
2152
- }, [a.value && n("div", {
2569
+ }, [l.value && n("div", {
2153
2570
  class: "f-page-parameter-editor-first-row"
2154
2571
  }, [n("span", {
2155
2572
  class: "f-page-parameter-editor-command-name",
2156
- title: d.value
2157
- }, [a.value]), n("div", {
2573
+ title: v.value
2574
+ }, [l.value]), n("div", {
2158
2575
  class: "f-page-parameter-editor-first-row-icon"
2159
- }, [T.value || P.value ? n("div", null, [n("span", {
2160
- title: s.value
2576
+ }, [$.value || P.value ? n("div", null, [n("span", {
2577
+ title: f.value
2161
2578
  }, [n("i", {
2162
2579
  class: "ml-2 f-icon f-icon-flowline-warning text-danger text-tip"
2163
2580
  }, null)]), n("div", {
2164
2581
  class: "f-icon f-icon-yxs_delete",
2165
2582
  title: "删除命令",
2166
- onClick: (p) => z()
2167
- }, null)]) : n(Me, null, [n("div", {
2583
+ onClick: (y) => H()
2584
+ }, null)]) : n(Ie, null, [n("div", {
2168
2585
  class: "f-icon f-icon-home-add",
2169
2586
  title: "新增参数",
2170
2587
  style: "font-size: 11px;",
2171
- onClick: U
2172
- }, null), f.value && n("div", {
2588
+ onClick: _
2589
+ }, null), p.value && n("div", {
2173
2590
  class: "f-icon f-icon-edit-button",
2174
2591
  title: "收折参数",
2175
- onClick: () => k()
2592
+ onClick: () => R()
2176
2593
  }, null), n("div", {
2177
2594
  class: "f-icon f-icon-yxs_delete",
2178
2595
  title: "删除命令",
2179
- onClick: (p) => z()
2596
+ onClick: (y) => H()
2180
2597
  }, null)])])])]);
2181
2598
  }
2182
- }), Hn = /* @__PURE__ */ ee({
2599
+ }), kt = /* @__PURE__ */ te({
2183
2600
  name: "FCombineForm",
2184
- props: he,
2601
+ props: we,
2185
2602
  emits: ["changed", "deleteCommand", "addCommand"],
2186
- setup(e, B) {
2187
- const N = W("useFormSchema"), {
2188
- saveCommunication: b
2189
- } = ve(N), u = F(e.communication), h = q(() => {
2190
- var r, i, v, y;
2191
- return ((i = (r = u.value) == null ? void 0 : r.source) == null ? void 0 : i.componentId) && ((y = (v = u.value) == null ? void 0 : v.source) == null ? void 0 : y.event);
2192
- }), V = F(!0), w = F(!0), T = F(), $ = F();
2193
- function C() {
2194
- b(u.value), B.emit("changed", u.value);
2603
+ setup(e, E) {
2604
+ const g = X("useFormSchema"), {
2605
+ saveCommunication: h
2606
+ } = be(g), a = b(e.communication), d = K(() => {
2607
+ var u, c, S, T;
2608
+ return ((c = (u = a.value) == null ? void 0 : u.source) == null ? void 0 : c.componentId) && ((T = (S = a.value) == null ? void 0 : S.source) == null ? void 0 : T.event);
2609
+ }), F = b(!0), C = b(!0), $ = b(), j = b();
2610
+ function w() {
2611
+ h(a.value), E.emit("changed", a.value);
2195
2612
  }
2196
2613
  function P() {
2197
- T.value && T.value.addParameter(), w.value = !1;
2614
+ $.value && $.value.addParameter(), C.value = !1;
2198
2615
  }
2199
- function f() {
2200
- B.emit("deleteCommand");
2616
+ function p() {
2617
+ E.emit("deleteCommand");
2201
2618
  }
2202
- function a() {
2203
- w.value = !w.value;
2619
+ function l() {
2620
+ C.value = !C.value;
2204
2621
  }
2205
- const d = q(() => ({
2206
- "d-none": w.value
2622
+ const v = K(() => ({
2623
+ "d-none": C.value
2207
2624
  }));
2208
- function s() {
2209
- T.value && T.value.closeAllParameterPanel();
2625
+ function f() {
2626
+ $.value && $.value.closeAllParameterPanel();
2210
2627
  }
2211
- return B.expose({
2212
- closeAllParameterPanel: s
2628
+ return E.expose({
2629
+ closeAllParameterPanel: f
2213
2630
  }), () => n("div", {
2214
2631
  class: "combine-form-container pb-2"
2215
- }, [h.value && n(Me, null, [n(Gn, {
2216
- ref: $,
2217
- communication: u.value,
2632
+ }, [d.value && n(Ie, null, [n(Tt, {
2633
+ ref: j,
2634
+ communication: a.value,
2218
2635
  sourceCommunication: e.sourceCommunication,
2219
2636
  onAddParameter: P,
2220
- onDeleteCommand: f,
2221
- onToggleParameterPanel: a
2222
- }, null), V.value && n("div", {
2223
- class: d.value
2224
- }, [n(zn, {
2225
- ref: T,
2226
- communication: u.value,
2227
- onChanged: C,
2637
+ onDeleteCommand: p,
2638
+ onToggleParameterPanel: l
2639
+ }, null), F.value && n("div", {
2640
+ class: v.value
2641
+ }, [n(It, {
2642
+ ref: $,
2643
+ communication: a.value,
2644
+ onChanged: w,
2228
2645
  sourceCommunication: e.sourceCommunication
2229
2646
  }, null)])])]);
2230
2647
  }
2231
- }), qn = /* @__PURE__ */ ee({
2648
+ }), At = /* @__PURE__ */ te({
2232
2649
  name: "FSelectCommunicationCommand",
2233
- props: he,
2650
+ props: we,
2234
2651
  emits: ["selectCommand", "addParameter", "deleteCommand", "toggleParameterPanel"],
2235
- setup(e, B) {
2236
- const N = W("useFormSchema"), b = N.getFormMetadataBasicInfo(), u = F([]), h = F(), V = F([]), w = F(), T = F(!0), $ = F(!1);
2237
- function C() {
2238
- var v;
2239
- const i = N.externalFormSchema;
2240
- Array.from(i.keys()).forEach((y) => {
2241
- var U;
2242
- const t = i.get(y);
2243
- ((U = e.sourceCommunication) == null ? void 0 : U.externalContainerId) !== y && u.value.push({
2244
- containerId: y,
2652
+ setup(e, E) {
2653
+ const g = X("useFormSchema"), h = g.getFormMetadataBasicInfo(), a = b([]), d = b(), F = b([]), C = b(), $ = b(!0), j = b(!1);
2654
+ function w() {
2655
+ var S;
2656
+ const c = g.externalFormSchema;
2657
+ Array.from(c.keys()).forEach((T) => {
2658
+ var _;
2659
+ const t = c.get(T);
2660
+ ((_ = e.sourceCommunication) == null ? void 0 : _.externalContainerId) !== T && a.value.push({
2661
+ containerId: T,
2245
2662
  id: t.id,
2246
2663
  code: t.code,
2247
2664
  name: t.name
2248
2665
  });
2249
- }), ((v = e.sourceCommunication) == null ? void 0 : v.formId) !== b.id && u.value.unshift({
2666
+ }), ((S = e.sourceCommunication) == null ? void 0 : S.formId) !== h.id && a.value.unshift({
2250
2667
  containerId: "",
2251
- id: b.id,
2252
- code: b.code,
2253
- name: b.name
2668
+ id: h.id,
2669
+ code: h.code,
2670
+ name: h.name
2254
2671
  });
2255
2672
  }
2256
- function P(i) {
2257
- var U, z;
2673
+ function P(c) {
2674
+ var _, H;
2258
2675
  const {
2259
- viewmodels: v,
2260
- components: y
2261
- } = i.module;
2262
- if ((v == null ? void 0 : v.length) === 0 || (y == null ? void 0 : y.length) === 0)
2676
+ viewmodels: S,
2677
+ components: T
2678
+ } = c.module;
2679
+ if ((S == null ? void 0 : S.length) === 0 || (T == null ? void 0 : T.length) === 0)
2263
2680
  return [];
2264
- V.value = [];
2265
- const t = (z = (U = e.sourceCommunication) == null ? void 0 : U.parameterData) == null ? void 0 : z.getViewModelName;
2266
- v.forEach((k) => {
2267
- if (!k || !k.commands || k.commands.length === 0)
2681
+ F.value = [];
2682
+ const t = (H = (_ = e.sourceCommunication) == null ? void 0 : _.parameterData) == null ? void 0 : H.getViewModelName;
2683
+ S.forEach((R) => {
2684
+ if (!R || !R.commands || R.commands.length === 0)
2268
2685
  return [];
2269
- const p = y.find((c) => c.viewModel === k.id), I = t && p ? t(p, k.name, i) : "";
2270
- V.value.push({
2271
- id: k.id,
2272
- code: k.code,
2273
- name: I || k.name
2274
- }), k.commands.forEach((c) => {
2275
- c.isInvalid || V.value.push({
2276
- ...c,
2277
- viewmodelId: k.id,
2686
+ const y = T.find((i) => i.viewModel === R.id), A = t && y ? t(y, R.name, c) : "";
2687
+ F.value.push({
2688
+ id: R.id,
2689
+ code: R.code,
2690
+ name: A || R.name
2691
+ }), R.commands.forEach((i) => {
2692
+ i.isInvalid || F.value.push({
2693
+ ...i,
2694
+ viewmodelId: R.id,
2278
2695
  isCommandNode: !0
2279
2696
  });
2280
2697
  });
2281
2698
  });
2282
2699
  }
2283
- function f() {
2284
- var i, v, y;
2285
- if (!((i = h.value) != null && i.id))
2700
+ function p() {
2701
+ var c, S, T;
2702
+ if (!((c = d.value) != null && c.id))
2286
2703
  return [];
2287
- if (h.value.id === b.id)
2288
- P(N.getFormSchema());
2704
+ if (d.value.id === h.id)
2705
+ P(g.getFormSchema());
2289
2706
  else {
2290
- const t = N.externalFormSchema.get((v = h.value) == null ? void 0 : v.containerId);
2291
- (y = t == null ? void 0 : t.content) != null && y.module && P(t.content);
2707
+ const t = g.externalFormSchema.get((S = d.value) == null ? void 0 : S.containerId);
2708
+ (T = t == null ? void 0 : t.content) != null && T.module && P(t.content);
2292
2709
  }
2293
2710
  }
2294
- se(() => {
2295
- C(), f();
2711
+ he(() => {
2712
+ w(), p();
2296
2713
  });
2297
- function a(i) {
2298
- h.value = i, T.value = !1, $.value = !0, f();
2714
+ function l(c) {
2715
+ d.value = c, $.value = !1, j.value = !0, p();
2299
2716
  }
2300
- const d = q(() => (i) => {
2301
- var v, y;
2717
+ const v = K(() => (c) => {
2718
+ var S, T;
2302
2719
  return {
2303
2720
  item: !0,
2304
- selected: ((v = h.value) == null ? void 0 : v.id) === i.id && ((y = h.value) == null ? void 0 : y.containerId) === i.containerId
2721
+ selected: ((S = d.value) == null ? void 0 : S.id) === c.id && ((T = d.value) == null ? void 0 : T.containerId) === c.containerId
2305
2722
  };
2306
- }), s = q(() => (i) => {
2307
- var v;
2723
+ }), f = K(() => (c) => {
2724
+ var S;
2308
2725
  return {
2309
2726
  item: !0,
2310
- selected: ((v = w.value) == null ? void 0 : v.id) === i.id,
2311
- "pl-4": i.isCommandNode,
2312
- disabled: !i.isCommandNode
2727
+ selected: ((S = C.value) == null ? void 0 : S.id) === c.id,
2728
+ "pl-4": c.isCommandNode,
2729
+ disabled: !c.isCommandNode
2313
2730
  };
2314
2731
  });
2315
- function r(i) {
2316
- i.isCommandNode && ($.value = !1, w.value = i, B.emit("selectCommand", {
2317
- targetForm: h.value,
2318
- targetCommand: i
2732
+ function u(c) {
2733
+ c.isCommandNode && (j.value = !1, C.value = c, E.emit("selectCommand", {
2734
+ targetForm: d.value,
2735
+ targetCommand: c
2319
2736
  }));
2320
2737
  }
2321
2738
  return () => n("div", {
2322
2739
  class: "form-container position-relative"
2323
- }, [T.value && n("div", {
2740
+ }, [$.value && n("div", {
2324
2741
  class: "item-list"
2325
2742
  }, [n("span", {
2326
2743
  class: "tip"
2327
- }, [Y("请选择目标页面")]), u.value.map((i) => n("span", {
2328
- class: d.value(i),
2329
- onClick: () => a(i),
2330
- title: i.containerId ? `所属外部容器:${i.containerId}` : "当前页面"
2331
- }, [i.name]))]), $.value ? n("div", {
2744
+ }, [Y("请选择目标页面")]), a.value.map((c) => n("span", {
2745
+ class: v.value(c),
2746
+ onClick: () => l(c),
2747
+ title: c.containerId ? `所属外部容器:${c.containerId}` : "当前页面"
2748
+ }, [c.name]))]), j.value ? n("div", {
2332
2749
  class: "item-list"
2333
2750
  }, [n("span", {
2334
2751
  class: "tip"
2335
- }, [Y("请选择目标命令")]), V.value.map((i) => n("span", {
2336
- class: s.value(i),
2337
- title: i.code,
2338
- onClick: () => r(i)
2339
- }, [i.name]))]) : ""]);
2752
+ }, [Y("请选择目标命令")]), F.value.map((c) => n("span", {
2753
+ class: f.value(c),
2754
+ title: c.code,
2755
+ onClick: () => u(c)
2756
+ }, [c.name]))]) : ""]);
2340
2757
  }
2341
- }), Wn = /* @__PURE__ */ ee({
2758
+ }), $t = /* @__PURE__ */ te({
2342
2759
  name: "FInteractionItem",
2343
- props: kn,
2760
+ props: vt,
2344
2761
  emits: ["addAction", "delete", "toggle"],
2345
- setup(e, B) {
2346
- var de, me;
2762
+ setup(e, E) {
2763
+ var ge, Ce;
2347
2764
  const {
2348
- guid: N
2349
- } = Ue(), b = W("FMessageBoxService"), u = W("useMethodsComposition"), {
2350
- toggleSelectingMethod: h,
2351
- emitFinalState: V,
2352
- getViewModeId: w,
2353
- getMethodsOnViewModel: T,
2354
- getComponentList: $,
2355
- updateTarget: C,
2765
+ guid: g
2766
+ } = Qe(), h = X("FMessageBoxService"), a = X("useMethodsComposition"), {
2767
+ toggleSelectingMethod: d,
2768
+ emitFinalState: F,
2769
+ getViewModeId: C,
2770
+ getMethodsOnViewModel: $,
2771
+ getComponentList: j,
2772
+ updateTarget: w,
2356
2773
  updateCommandHasPath: P
2357
- } = u, f = W("useFormSchema"), {
2358
- clearCommunicationById: a,
2359
- resolveSourceControlEventTitle: d,
2360
- resolveCommunication: s,
2361
- createNewCommunication: r,
2362
- saveCommunication: i,
2363
- resolveCommunicationSource: v
2364
- } = ve(f), y = F(e.controllers), t = F(e.interaction), U = F(!1), z = q(() => {
2365
- const E = t.value.showSwitch[0];
2366
- return E.showSection[E.showSwitchNumber][2];
2367
- }), k = F(e.sourceCommunication.needSelectSourceControl);
2368
- t.value.shouldShowCommunicationPanel = t.value.shouldShowCommunicationPanel === !1 ? !1 : !!((me = (de = t.value) == null ? void 0 : de.communication) != null && me.length) || k.value;
2369
- const p = q(() => {
2370
- var j;
2371
- const E = !!((j = t.value.command) != null && j.id), A = t.value.showSwitch[0], O = A.showSection[A.showSwitchNumber][3];
2372
- return E && O;
2373
- }), I = F(t.value.needSelectCommunicationCommand || !1), c = F(), o = F(), l = F(!1), g = F(), M = F([]);
2374
- function R() {
2375
- if (k.value) {
2376
- const E = d(t.value.communication);
2377
- if (E) {
2774
+ } = a, p = X("useFormSchema"), {
2775
+ clearCommunicationById: l,
2776
+ resolveSourceControlEventTitle: v,
2777
+ resolveCommunication: f,
2778
+ createNewCommunication: u,
2779
+ saveCommunication: c,
2780
+ resolveCommunicationSource: S
2781
+ } = be(p), T = b(e.controllers), t = b(e.interaction), _ = b(!1), H = K(() => {
2782
+ const B = t.value.showSwitch[0];
2783
+ return B.showSection[B.showSwitchNumber][2];
2784
+ }), R = b(e.sourceCommunication.needSelectSourceControl);
2785
+ t.value.shouldShowCommunicationPanel = t.value.shouldShowCommunicationPanel === !1 ? !1 : !!((Ce = (ge = t.value) == null ? void 0 : ge.communication) != null && Ce.length) || R.value;
2786
+ const y = K(() => {
2787
+ var z;
2788
+ const B = !!((z = t.value.command) != null && z.id), U = t.value.showSwitch[0], G = U.showSection[U.showSwitchNumber][3];
2789
+ return B && G;
2790
+ }), A = b(t.value.needSelectCommunicationCommand || !1), i = b(), o = b(), r = b(!1), s = b(), N = b([]);
2791
+ function D() {
2792
+ if (R.value) {
2793
+ const B = v(t.value.communication);
2794
+ if (B) {
2378
2795
  const {
2379
- title: A,
2380
- titleTip: O,
2381
- isControlInvalid: j
2382
- } = E;
2383
- c.value = A, o.value = j ? "源表单或事件已失效,请删除" : O || A, l.value = j;
2796
+ title: U,
2797
+ titleTip: G,
2798
+ isControlInvalid: z
2799
+ } = B;
2800
+ i.value = U, o.value = z ? "源表单或事件已失效,请删除" : G || U, r.value = z;
2384
2801
  }
2385
2802
  } else
2386
- o.value = t.value.event.label, c.value = t.value.event.name;
2803
+ o.value = t.value.event.label, i.value = t.value.event.name;
2387
2804
  }
2388
- He(() => {
2389
- s(t.value), R(), g.value = v(t.value) || e.sourceCommunication;
2805
+ nn(() => {
2806
+ f(t.value), D(), s.value = S(t.value) || e.sourceCommunication;
2390
2807
  });
2391
- const m = q(() => ({
2808
+ const m = K(() => ({
2392
2809
  "f-icon": !0,
2393
- "f-icon-arrow-chevron-down": p.value || t.value.shouldShowCommunicationPanel,
2394
- "f-icon-arrow-chevron-left": !p.value && !t.value.shouldShowCommunicationPanel
2810
+ "f-icon-arrow-chevron-down": y.value || t.value.shouldShowCommunicationPanel,
2811
+ "f-icon-arrow-chevron-left": !y.value && !t.value.shouldShowCommunicationPanel
2395
2812
  }));
2396
- function L() {
2397
- var O, j;
2398
- let E = (O = t.value.command) != null && O.id ? 1 : 0;
2399
- E = E + (((j = t.value.communication) == null ? void 0 : j.length) || 0);
2400
- const A = `确定删除【${c.value}】吗?`;
2401
- b.question(A, "", () => {
2402
- B.emit("delete", e.displayOrder);
2813
+ function k() {
2814
+ var G, z;
2815
+ let B = (G = t.value.command) != null && G.id ? 1 : 0;
2816
+ B = B + (((z = t.value.communication) == null ? void 0 : z.length) || 0);
2817
+ const U = `确定删除【${i.value}】吗?`;
2818
+ h.question(U, "", () => {
2819
+ E.emit("delete", e.displayOrder);
2403
2820
  });
2404
2821
  }
2405
- function x() {
2406
- var j;
2407
- const E = t.value.showSwitch[0], A = !!((j = t.value.command) != null && j.id);
2408
- t.value.communication && t.value.communication.length > 0 && (t.value.shouldShowCommunicationPanel = !t.value.shouldShowCommunicationPanel), A && (E.showSection[E.showSwitchNumber][3] = !E.showSection[E.showSwitchNumber][3], B.emit("toggle", e.displayOrder));
2409
- }
2410
- function D() {
2411
- var j, K;
2412
- const E = !!((j = t.value.command) != null && j.id), A = t.value.communication && t.value.communication.length > 0;
2413
- if (k.value) {
2414
- I.value = !I.value, (K = M.value) != null && K.length && M.value.map((Z) => {
2415
- Z.closeAllParameterPanel();
2822
+ function O() {
2823
+ var z;
2824
+ const B = t.value.showSwitch[0], U = !!((z = t.value.command) != null && z.id);
2825
+ t.value.communication && t.value.communication.length > 0 && (t.value.shouldShowCommunicationPanel = !t.value.shouldShowCommunicationPanel), U && (B.showSection[B.showSwitchNumber][3] = !B.showSection[B.showSwitchNumber][3], E.emit("toggle", e.displayOrder));
2826
+ }
2827
+ function q() {
2828
+ var z, Z;
2829
+ const B = !!((z = t.value.command) != null && z.id), U = t.value.communication && t.value.communication.length > 0;
2830
+ if (R.value) {
2831
+ A.value = !A.value, (Z = N.value) != null && Z.length && N.value.map((ae) => {
2832
+ ae.closeAllParameterPanel();
2416
2833
  });
2417
2834
  return;
2418
2835
  }
2419
- A && (t.value.shouldShowCommunicationPanel = !t.value.shouldShowCommunicationPanel);
2420
- const O = t.value.showSwitch[0];
2421
- h(O, E), B.emit("addAction", e.displayOrder);
2422
- }
2423
- function G(E) {
2424
- const A = t.value.communication !== void 0;
2425
- E === null && t.value.command === null && !A && B.emit("delete", e.displayOrder), t.value.communication && (t.value.shouldShowCommunicationPanel = z.value);
2426
- const O = t.value.showSwitch[0];
2427
- h(O, A);
2428
- }
2429
- function X(E, A, O) {
2430
- let j = `${A}${O}${E}`, K = -1;
2431
- const Z = T();
2432
- for (; K === -1; ) {
2433
- let ne = !1;
2434
- for (let oe = 0; oe < Z.length; oe++)
2435
- Z[oe].controllerList.forEach((te) => {
2436
- te.label || te.label === "" ? ne = te.label.toLowerCase() === j.toLowerCase() ? !0 : ne : ne = !1;
2836
+ U && (t.value.shouldShowCommunicationPanel = !t.value.shouldShowCommunicationPanel);
2837
+ const G = t.value.showSwitch[0];
2838
+ d(G, B), E.emit("addAction", e.displayOrder);
2839
+ }
2840
+ function J(B) {
2841
+ const U = t.value.communication !== void 0;
2842
+ B === null && t.value.command === null && !U && E.emit("delete", e.displayOrder), t.value.communication && (t.value.shouldShowCommunicationPanel = H.value);
2843
+ const G = t.value.showSwitch[0];
2844
+ d(G, U);
2845
+ }
2846
+ function ne(B, U, G) {
2847
+ let z = `${U}${G}${B}`, Z = -1;
2848
+ const ae = $();
2849
+ for (; Z === -1; ) {
2850
+ let le = !1;
2851
+ for (let re = 0; re < ae.length; re++)
2852
+ ae[re].controllerList.forEach((ie) => {
2853
+ ie.label || ie.label === "" ? le = ie.label.toLowerCase() === z.toLowerCase() ? !0 : le : le = !1;
2437
2854
  });
2438
- if (ne)
2439
- E += 1, j = `${A}${O}${E}`;
2855
+ if (le)
2856
+ B += 1, z = `${U}${G}${B}`;
2440
2857
  else {
2441
- K = 0;
2858
+ Z = 0;
2442
2859
  break;
2443
2860
  }
2444
2861
  }
2445
2862
  return {
2446
- newName: j,
2447
- suffix: E
2863
+ newName: z,
2864
+ suffix: B
2448
2865
  };
2449
2866
  }
2450
- function S(E) {
2867
+ function M(B) {
2451
2868
  const {
2452
- method: A,
2453
- controller: O
2454
- } = E, {
2455
- label: j,
2456
- handlerName: K,
2457
- property: Z,
2458
- componentLists: ne,
2459
- hasPath: oe
2460
- } = A, te = w().replace(/-/g, "").replace("component", "").replace("viewmodel", ""), we = j.slice(0, 1).toUpperCase() + j.slice(1), {
2461
- newName: Se,
2462
- suffix: Ee
2463
- } = X(1, te, we), {
2464
- controllerName: ce
2465
- } = O, Fe = ce.id, Ne = {
2466
- id: N(),
2467
- label: Se,
2468
- name: `${A.name}${Ee}`,
2469
- handlerName: K,
2470
- hasPath: oe,
2471
- cmpId: Fe,
2472
- property: Z,
2473
- componentLists: ne
2869
+ method: U,
2870
+ controller: G
2871
+ } = B, {
2872
+ label: z,
2873
+ handlerName: Z,
2874
+ property: ae,
2875
+ componentLists: le,
2876
+ hasPath: re
2877
+ } = U, ie = C().replace(/-/g, "").replace("component", "").replace("viewmodel", ""), Ne = z.slice(0, 1).toUpperCase() + z.slice(1), {
2878
+ newName: Pe,
2879
+ suffix: Me
2880
+ } = ne(1, ie, Ne), {
2881
+ controllerName: ue
2882
+ } = G, Ve = ue.id, Le = {
2883
+ id: g(),
2884
+ label: Pe,
2885
+ name: `${U.name}${Me}`,
2886
+ handlerName: Z,
2887
+ hasPath: re,
2888
+ cmpId: Ve,
2889
+ property: ae,
2890
+ componentLists: le
2474
2891
  };
2475
- t.value.command = P(O, Ne), t.value.command && f.designerMode === "PC_RTC" && (t.value.command.isRtcCommand = !0), t.value.controller = {
2476
- id: ce.id,
2477
- label: ce.label,
2478
- name: ce.name,
2479
- isCommon: ce.isCommon
2892
+ t.value.command = P(G, Le), t.value.command && p.designerMode === "PC_RTC" && (t.value.command.isRtcCommand = !0), t.value.controller = {
2893
+ id: ue.id,
2894
+ label: ue.label,
2895
+ name: ue.name,
2896
+ isCommon: ue.isCommon
2480
2897
  };
2481
- const J = t.value.showSwitch[0];
2482
- J.showSwitchNumber = 2, J.showSection[J.showSwitchNumber][2] = !1, J.showSection[J.showSwitchNumber][3] = !0, U.value = !0, t.value.communication && t.value.communication.length > 0 && (t.value.shouldShowCommunicationPanel = !0), V(!1, null);
2898
+ const ee = t.value.showSwitch[0];
2899
+ ee.showSwitchNumber = 2, ee.showSection[ee.showSwitchNumber][2] = !1, ee.showSection[ee.showSwitchNumber][3] = !0, _.value = !0, t.value.communication && t.value.communication.length > 0 && (t.value.shouldShowCommunicationPanel = !0), F(!1, null);
2483
2900
  }
2484
- function H() {
2901
+ function Q() {
2485
2902
  t.value.command = {
2486
2903
  id: "abandoned",
2487
2904
  label: "未绑定方法",
@@ -2491,7 +2908,7 @@ ${I} (${o})`;
2491
2908
  handlerName: "未绑定方法",
2492
2909
  cmpId: "",
2493
2910
  shortcut: {},
2494
- isRtcCommand: f.designerMode === "PC_RTC" ? !0 : void 0,
2911
+ isRtcCommand: p.designerMode === "PC_RTC" ? !0 : void 0,
2495
2912
  isNewGenerated: void 0,
2496
2913
  extensions: [],
2497
2914
  isInvalid: !1
@@ -2499,140 +2916,140 @@ ${I} (${o})`;
2499
2916
  label: "",
2500
2917
  name: "",
2501
2918
  id: ""
2502
- }, V(!0, t.value.event);
2503
- const E = t.value.showSwitch[0];
2504
- h(E, !0);
2505
- }
2506
- function Q(E, A) {
2507
- var K;
2508
- if (t.value.communication || (t.value.communication = []), t.value.communication.find((Z) => {
2509
- var ne, oe, te;
2510
- return ((ne = Z.target) == null ? void 0 : ne.formId) === E.formId && ((oe = Z.target) == null ? void 0 : oe.externalContainerId) === E.externalContainerId && ((te = Z.target) == null ? void 0 : te.commandCode) === E.commandCode;
2919
+ }, F(!0, t.value.event);
2920
+ const B = t.value.showSwitch[0];
2921
+ d(B, !0);
2922
+ }
2923
+ function oe(B, U) {
2924
+ var Z;
2925
+ if (t.value.communication || (t.value.communication = []), t.value.communication.find((ae) => {
2926
+ var le, re, ie;
2927
+ return ((le = ae.target) == null ? void 0 : le.formId) === B.formId && ((re = ae.target) == null ? void 0 : re.externalContainerId) === B.externalContainerId && ((ie = ae.target) == null ? void 0 : ie.commandCode) === B.commandCode;
2511
2928
  })) {
2512
- new re().info({
2929
+ new fe().info({
2513
2930
  position: "top-center",
2514
2931
  message: "方法已存在,请勿重复添加。"
2515
2932
  });
2516
2933
  return;
2517
2934
  }
2518
- let j;
2519
- t.value.communication.length === 1 && !((K = t.value.communication[0].target) != null && K.formId) ? (Object.assign(t.value.communication[0].target, E), j = t.value.communication[0]) : (j = r(e, t.value.event.label, E, A), t.value.communication.push(j)), V(!1, null), i(j);
2935
+ let z;
2936
+ t.value.communication.length === 1 && !((Z = t.value.communication[0].target) != null && Z.formId) ? (Object.assign(t.value.communication[0].target, B), z = t.value.communication[0]) : (z = u(e, t.value.event.label, B, U), t.value.communication.push(z)), F(!1, null), c(z);
2520
2937
  }
2521
- function ae(E) {
2522
- var O;
2523
- const A = t.value.showSwitch[0];
2524
- if (A.showSection[A.showSwitchNumber][2] = !1, (O = t.value.command) != null && O.id && (A.showSection[A.showSwitchNumber][3] = !0), t.value.shouldShowCommunicationPanel = !0, E) {
2938
+ function ce(B) {
2939
+ var G;
2940
+ const U = t.value.showSwitch[0];
2941
+ if (U.showSection[U.showSwitchNumber][2] = !1, (G = t.value.command) != null && G.id && (U.showSection[U.showSwitchNumber][3] = !0), t.value.shouldShowCommunicationPanel = !0, B) {
2525
2942
  const {
2526
- selectedCommand: j,
2527
- selectedForm: K
2528
- } = E, Z = {
2529
- formId: (K == null ? void 0 : K.id) || "",
2530
- formCode: (K == null ? void 0 : K.code) || "",
2531
- externalContainerId: (K == null ? void 0 : K.containerId) || "",
2532
- commandCode: (j == null ? void 0 : j.code) || "",
2533
- commandViewmodelId: (j == null ? void 0 : j.viewmodelId) || ""
2943
+ selectedCommand: z,
2944
+ selectedForm: Z
2945
+ } = B, ae = {
2946
+ formId: (Z == null ? void 0 : Z.id) || "",
2947
+ formCode: (Z == null ? void 0 : Z.code) || "",
2948
+ externalContainerId: (Z == null ? void 0 : Z.containerId) || "",
2949
+ commandCode: (z == null ? void 0 : z.code) || "",
2950
+ commandViewmodelId: (z == null ? void 0 : z.viewmodelId) || ""
2534
2951
  };
2535
- Q(Z);
2952
+ oe(ae);
2536
2953
  }
2537
2954
  }
2538
- function Ie() {
2539
- const E = t.value.showSwitch[0];
2540
- E.showSwitchNumber = 2, E.showSection[E.showSwitchNumber][2] = !1, E.showSection[E.showSwitchNumber][3] = !0, U.value = !1, t.value.communication && t.value.communication.length > 0 && (t.value.shouldShowCommunicationPanel = !0), V(!1, null);
2955
+ function Te() {
2956
+ const B = t.value.showSwitch[0];
2957
+ B.showSwitchNumber = 2, B.showSection[B.showSwitchNumber][2] = !1, B.showSection[B.showSwitchNumber][3] = !0, _.value = !1, t.value.communication && t.value.communication.length > 0 && (t.value.shouldShowCommunicationPanel = !0), F(!1, null);
2541
2958
  }
2542
- function Le() {
2543
- return n(jn, {
2544
- controllers: y.value,
2959
+ function ke() {
2960
+ return n(wt, {
2961
+ controllers: T.value,
2545
2962
  sourceCommunication: e.sourceCommunication,
2546
- onClose: G,
2547
- onSelectMethod: S,
2548
- onNewFunctionChanged: () => H(),
2549
- onAddCommunication: ae,
2963
+ onClose: J,
2964
+ onSelectMethod: M,
2965
+ onNewFunctionChanged: () => Q(),
2966
+ onAddCommunication: ce,
2550
2967
  haveBoundCommand: e.haveBoundCommand,
2551
2968
  iteractionDisplayOrder: e.displayOrder,
2552
- onSelectBoundMethod: Ie,
2969
+ onSelectBoundMethod: Te,
2553
2970
  event: t.value.event
2554
2971
  }, null);
2555
2972
  }
2556
- function Be() {
2557
- const E = t.value.showSwitch[0];
2558
- E.showSection[E.showSwitchNumber][3] = !1;
2973
+ function Ae() {
2974
+ const B = t.value.showSwitch[0];
2975
+ B.showSection[B.showSwitchNumber][3] = !1;
2559
2976
  }
2560
- function xe(E) {
2561
- t.value.command = _(E), V(!1, null);
2977
+ function $e(B) {
2978
+ t.value.command = W(B), F(!1, null);
2562
2979
  }
2563
- function Ve(E) {
2564
- E.componentLists = $(), C(E), t.value.command = _(E), V(!1, null);
2980
+ function Oe(B) {
2981
+ B.componentLists = j(), w(B), t.value.command = W(B), F(!1, null);
2565
2982
  }
2566
- function Te(E) {
2567
- var O;
2983
+ function De(B) {
2984
+ var G;
2568
2985
  const {
2569
- controller: A
2986
+ controller: U
2570
2987
  } = t.value;
2571
- A.isCommon || (O = e.viewSourceHandle) == null || O.call(e, {
2572
- ...E,
2988
+ U.isCommon || (G = e.viewSourceHandle) == null || G.call(e, {
2989
+ ...B,
2573
2990
  ...t.value
2574
2991
  });
2575
2992
  }
2576
- function ke() {
2577
- t.value.command = null, V(!1, null);
2993
+ function Re() {
2994
+ t.value.command = null, F(!1, null);
2578
2995
  }
2579
- function Ae() {
2580
- return n(_n, {
2996
+ function je() {
2997
+ return n(Ft, {
2581
2998
  command: t.value.command,
2582
2999
  controller: t.value.controller,
2583
- showParameter: U.value,
3000
+ showParameter: _.value,
2584
3001
  showDeleteIcon: t.value.communication && t.value.communication.length > 0,
2585
- onConfirm: () => Be(),
2586
- onChange: (E) => xe(E),
2587
- onTargetChange: (E) => Ve(E),
2588
- onViewSource: (E) => Te(E),
2589
- onDeleteCommand: ke
3002
+ onConfirm: () => Ae(),
3003
+ onChange: (B) => $e(B),
3004
+ onTargetChange: (B) => Oe(B),
3005
+ onViewSource: (B) => De(B),
3006
+ onDeleteCommand: Re
2590
3007
  }, null);
2591
3008
  }
2592
- function $e(E, A) {
2593
- t.value.communication && t.value.communication.length > A && (t.value.communication[A] = E, V(!1, null));
3009
+ function Ue(B, U) {
3010
+ t.value.communication && t.value.communication.length > U && (t.value.communication[U] = B, F(!1, null));
2594
3011
  }
2595
- function Oe(E, A) {
2596
- var O;
2597
- t.value.communication && t.value.communication.length > A && (t.value.communication.splice(A, 1), a(E.id), t.value.communication.length === 0 && !((O = t.value.command) != null && O.id) ? B.emit("delete", e.displayOrder) : V(!1, null));
3012
+ function qe(B, U) {
3013
+ var G;
3014
+ t.value.communication && t.value.communication.length > U && (t.value.communication.splice(U, 1), l(B.id), t.value.communication.length === 0 && !((G = t.value.command) != null && G.id) ? E.emit("delete", e.displayOrder) : F(!1, null));
2598
3015
  }
2599
- function Ce(E, A) {
3016
+ function Se(B, U) {
2600
3017
  const {
2601
- source: O,
2602
- target: j
2603
- } = E;
2604
- Q(j, O), t.value.shouldShowCommunicationPanel = !0;
2605
- }
2606
- function ge(E, A) {
2607
- return n(Hn, {
2608
- ref: (O) => {
2609
- O && (M.value[A] = O);
3018
+ source: G,
3019
+ target: z
3020
+ } = B;
3021
+ oe(z, G), t.value.shouldShowCommunicationPanel = !0;
3022
+ }
3023
+ function Fe(B, U) {
3024
+ return n(kt, {
3025
+ ref: (G) => {
3026
+ G && (N.value[U] = G);
2610
3027
  },
2611
- communication: E,
3028
+ communication: B,
2612
3029
  event: t.value.event.label,
2613
3030
  sourceCommunication: e.sourceCommunication,
2614
- onChanged: (O) => $e(O, A),
2615
- onDeleteCommand: () => Oe(E, A),
2616
- onAddCommand: (O) => Ce(O)
3031
+ onChanged: (G) => Ue(G, U),
3032
+ onDeleteCommand: () => qe(B, U),
3033
+ onAddCommand: (G) => Se(G)
2617
3034
  }, null);
2618
3035
  }
2619
- function pe(E) {
3036
+ function ye(B) {
2620
3037
  const {
2621
- targetForm: A,
2622
- targetCommand: O
2623
- } = E, j = {
2624
- formId: A.id,
2625
- formCode: A.code,
2626
- externalContainerId: A.containerId,
2627
- commandCode: O.code,
2628
- commandViewmodelId: O.viewmodelId
3038
+ targetForm: U,
3039
+ targetCommand: G
3040
+ } = B, z = {
3041
+ formId: U.id,
3042
+ formCode: U.code,
3043
+ externalContainerId: U.containerId,
3044
+ commandCode: G.code,
3045
+ commandViewmodelId: G.viewmodelId
2629
3046
  };
2630
- Q(j, g.value), t.value.shouldShowCommunicationPanel = !0, I.value = !1, t.value.needSelectCommunicationCommand = !1;
3047
+ oe(z, s.value), t.value.shouldShowCommunicationPanel = !0, A.value = !1, t.value.needSelectCommunicationCommand = !1;
2631
3048
  }
2632
- function be() {
2633
- return n(qn, {
3049
+ function Ee() {
3050
+ return n(At, {
2634
3051
  sourceCommunication: e.sourceCommunication,
2635
- onSelectCommand: (E) => pe(E)
3052
+ onSelectCommand: (B) => ye(B)
2636
3053
  }, null);
2637
3054
  }
2638
3055
  return () => n("div", {
@@ -2642,85 +3059,85 @@ ${I} (${o})`;
2642
3059
  }, [n("div", {
2643
3060
  class: "f-page-events-editor-bound-event-name",
2644
3061
  title: o.value
2645
- }, [c.value]), !l.value && n("div", {
3062
+ }, [i.value]), !r.value && n("div", {
2646
3063
  style: "float:right;margin:5px;"
2647
3064
  }, [n("div", {
2648
3065
  class: m.value,
2649
3066
  style: "font-size: 10px;",
2650
- onClick: x
3067
+ onClick: O
2651
3068
  }, null)]), n("div", {
2652
3069
  class: "f-icon f-icon-yxs_delete",
2653
3070
  style: "font-size: 13px;float: right; margin:8px;",
2654
- onClick: L
2655
- }, null), !l.value && n("div", {
3071
+ onClick: k
3072
+ }, null), !r.value && n("div", {
2656
3073
  class: "f-icon f-icon-home-add",
2657
3074
  style: "float:right; font-size: 10px; margin:8px;",
2658
- onClick: D
2659
- }, null), l.value && n("div", {
3075
+ onClick: q
3076
+ }, null), r.value && n("div", {
2660
3077
  class: "f-icon f-icon-flowline-warning text-danger text-tip",
2661
3078
  title: "源表单或事件已失效,请删除",
2662
3079
  style: "float:right; font-size: 13px; margin:8px;"
2663
- }, null)]), z.value && Le(), I.value && be(), p.value && Ae(), !l.value && t.value.shouldShowCommunicationPanel && t.value.communication && t.value.communication.length > 0 ? t.value.communication.map((E, A) => ge(E, A)) : ""]);
3080
+ }, null)]), H.value && ke(), A.value && Ee(), y.value && je(), !r.value && t.value.shouldShowCommunicationPanel && t.value.communication && t.value.communication.length > 0 ? t.value.communication.map((B, U) => Fe(B, U)) : ""]);
2664
3081
  }
2665
3082
  });
2666
- function Kn(e, B, N) {
2667
- const { interactions: b } = B, { setComponentLists: u } = Je(), h = F(e.value.internalCommandList);
2668
- function V(c) {
2669
- b.value[c].showSwitch = [], b.value[c].showSwitch.push(_({
3083
+ function Ot(e, E, g) {
3084
+ const { interactions: h } = E, { setComponentLists: a } = ln(), d = b(e.value.internalCommandList);
3085
+ function F(i) {
3086
+ h.value[i].showSwitch = [], h.value[i].showSwitch.push(W({
2670
3087
  // 存储所有的展示设定
2671
3088
  showSection: [[!1, !1, !1, !1, !1], [!1, !1, !0, !1, !1], [!1, !0, !1, !0, !1]],
2672
3089
  // 展示哪个部分
2673
3090
  showSwitchNumber: 2
2674
- })), b.value = _(b.value);
3091
+ })), h.value = W(h.value);
2675
3092
  }
2676
- function w(c) {
2677
- var l;
3093
+ function C(i) {
3094
+ var r;
2678
3095
  const o = [];
2679
- return (l = e.value.newController) == null || l.forEach((g) => {
2680
- c.forEach((M) => {
2681
- g.Code === M.controller.label && o.push(_(g));
3096
+ return (r = e.value.newController) == null || r.forEach((s) => {
3097
+ i.forEach((N) => {
3098
+ s.Code === N.controller.label && o.push(W(s));
2682
3099
  });
2683
3100
  }), o;
2684
3101
  }
2685
- function T(c) {
3102
+ function $(i) {
2686
3103
  if (e.value.repititionCommand.length !== 0)
2687
3104
  return e.value.repititionCommand.forEach((o) => {
2688
- c.forEach((l) => {
2689
- var g, M, R, m;
2690
- if (o.command.id === ((g = l.command) == null ? void 0 : g.id)) {
2691
- o.command.params = _((M = l.command) == null ? void 0 : M.property);
2692
- const L = (R = l.command) == null ? void 0 : R.targetComponent;
2693
- (m = l.command) == null || m.componentLists.forEach((x) => {
2694
- o.targetComponent = x.componentId === L ? {
2695
- id: x.componentId,
2696
- viewModelId: x.viewModelId
3105
+ i.forEach((r) => {
3106
+ var s, N, D, m;
3107
+ if (o.command.id === ((s = r.command) == null ? void 0 : s.id)) {
3108
+ o.command.params = W((N = r.command) == null ? void 0 : N.property);
3109
+ const k = (D = r.command) == null ? void 0 : D.targetComponent;
3110
+ (m = r.command) == null || m.componentLists.forEach((O) => {
3111
+ o.targetComponent = O.componentId === k ? {
3112
+ id: O.componentId,
3113
+ viewModelId: O.viewModelId
2697
3114
  } : o.targetComponent;
2698
3115
  });
2699
3116
  }
2700
3117
  });
2701
3118
  }), e.value.repititionCommand;
2702
3119
  }
2703
- function $(c = !1, o = null) {
3120
+ function j(i = !1, o = null) {
2704
3121
  var m;
2705
- e.value.newFuncEvents = o ? _(o) : null, e.value.isAddControllerMethod = c;
2706
- const l = [], g = _(e.value.internalCommandList);
2707
- b.value.map((L) => {
2708
- const x = _(L.controller), D = _(L.command), G = _(L.event), X = _(L.communication), S = { controller: x, command: D, boundEvents: G, communication: X };
2709
- l.push(_(S));
3122
+ e.value.newFuncEvents = o ? W(o) : null, e.value.isAddControllerMethod = i;
3123
+ const r = [], s = W(e.value.internalCommandList);
3124
+ h.value.map((k) => {
3125
+ const O = W(k.controller), q = W(k.command), J = W(k.event), ne = W(k.communication), M = { controller: O, command: q, boundEvents: J, communication: ne };
3126
+ r.push(W(M));
2710
3127
  });
2711
- const M = (m = e.value.newController) != null && m.length && l.length ? _(w(l)) : [];
2712
- e.value.repititionCommand && (e.value.repititionCommand = T(l));
2713
- const R = {
3128
+ const N = (m = e.value.newController) != null && m.length && r.length ? W(C(r)) : [];
3129
+ e.value.repititionCommand && (e.value.repititionCommand = $(r));
3130
+ const D = {
2714
3131
  /** 拼接名称时的前缀 */
2715
3132
  viewModelId: e.value.viewModelId,
2716
3133
  /** 视图模型绑定的事件下的方法列表 */
2717
- savedCommand: _(e.value.viewModel),
3134
+ savedCommand: W(e.value.viewModel),
2718
3135
  /** 当前界面显示的绑定事件 */
2719
- boundEventsList: _(l),
3136
+ boundEventsList: W(r),
2720
3137
  /** 可选择的绑定事件列表 */
2721
- events: _(e.value.events),
3138
+ events: W(e.value.events),
2722
3139
  /** 内置构件列表; */
2723
- internalCommandList: _(g),
3140
+ internalCommandList: W(s),
2724
3141
  /** 所有可选的组件 */
2725
3142
  componentLists: [],
2726
3143
  /** 接收formBasicService.formMetaBasicInfo.relativePath */
@@ -2728,7 +3145,7 @@ function Kn(e, B, N) {
2728
3145
  /** 接收formBasicService.envType */
2729
3146
  envType: e.value.envType,
2730
3147
  /** 初始为空,用于存储用户点击「导入新方法」的控制器值 */
2731
- newController: _(M),
3148
+ newController: W(N),
2732
3149
  /** 切换到代码视图标识 */
2733
3150
  isAddControllerMethod: e.value.isAddControllerMethod,
2734
3151
  /** 用户选择「已有方法」 */
@@ -2738,222 +3155,222 @@ function Kn(e, B, N) {
2738
3155
  /** 新增方法的对应事件 */
2739
3156
  newFuncEvents: e.value.newFuncEvents
2740
3157
  };
2741
- N.emit("savedCommandListChanged", R);
3158
+ g.emit("savedCommandListChanged", D);
2742
3159
  }
2743
- function C(c) {
2744
- c.showSection[c.showSwitchNumber][2] = !0;
3160
+ function w(i) {
3161
+ i.showSection[i.showSwitchNumber][2] = !0;
2745
3162
  }
2746
- function P(c) {
2747
- c.showSection[c.showSwitchNumber][2] = !1;
3163
+ function P(i) {
3164
+ i.showSection[i.showSwitchNumber][2] = !1;
2748
3165
  }
2749
- function f(c) {
2750
- c.showSection[c.showSwitchNumber][3] = !0;
3166
+ function p(i) {
3167
+ i.showSection[i.showSwitchNumber][3] = !0;
2751
3168
  }
2752
- function a(c) {
2753
- c.showSection[c.showSwitchNumber][3] = !1;
3169
+ function l(i) {
3170
+ i.showSection[i.showSwitchNumber][3] = !1;
2754
3171
  }
2755
- function d(c, o = !1) {
2756
- c.showSection[c.showSwitchNumber][2] ? (P(c), o && f(c)) : (C(c), o && a(c));
3172
+ function v(i, o = !1) {
3173
+ i.showSection[i.showSwitchNumber][2] ? (P(i), o && p(i)) : (w(i), o && l(i));
2757
3174
  }
2758
- function s() {
3175
+ function f() {
2759
3176
  return e.value.componentLists;
2760
3177
  }
2761
- function r(c) {
3178
+ function u(i) {
2762
3179
  e.value.viewModel.forEach((o) => {
2763
- for (let l = 0; l < o.controllerList.length; l++)
2764
- o.controllerList[l].label === c.label && (o.controllerList[l] = _(c));
3180
+ for (let r = 0; r < o.controllerList.length; r++)
3181
+ o.controllerList[r].label === i.label && (o.controllerList[r] = W(i));
2765
3182
  });
2766
3183
  }
2767
- function i() {
3184
+ function c() {
2768
3185
  return e.value.viewModelId;
2769
3186
  }
2770
- function v() {
3187
+ function S() {
2771
3188
  return e.value.getEventPath ? e.value.getEventPath().viewModelDisplay : [];
2772
3189
  }
2773
- function y(c, o) {
2774
- return u(c, o, e.value);
3190
+ function T(i, o) {
3191
+ return a(i, o, e.value);
2775
3192
  }
2776
- function t(c) {
2777
- e.value.newController = e.value.newController || [], e.value.newController.push(_(c));
3193
+ function t(i) {
3194
+ e.value.newController = e.value.newController || [], e.value.newController.push(W(i));
2778
3195
  const o = e.value.newController;
2779
- for (let l = 0; l < o.length; l++)
2780
- for (let g = l + 1; g < o.length; g++)
2781
- o[l].Id === o[g].Id && (o.splice(g, 1), g--);
3196
+ for (let r = 0; r < o.length; r++)
3197
+ for (let s = r + 1; s < o.length; s++)
3198
+ o[r].Id === o[s].Id && (o.splice(s, 1), s--);
2782
3199
  }
2783
- function U(c) {
3200
+ function _(i) {
2784
3201
  let o = !1;
2785
- return e.value.internalCommandList.forEach((l) => {
2786
- if (l.controllerName.label === c.controllerName.label) {
3202
+ return e.value.internalCommandList.forEach((r) => {
3203
+ if (r.controllerName.label === i.controllerName.label) {
2787
3204
  o = !0;
2788
3205
  return;
2789
3206
  }
2790
- }), o || e.value.internalCommandList.push(c), o;
3207
+ }), o || e.value.internalCommandList.push(i), o;
2791
3208
  }
2792
- function z() {
2793
- var c;
2794
- if ((c = e.value) != null && c.getEventPath)
3209
+ function H() {
3210
+ var i;
3211
+ if ((i = e.value) != null && i.getEventPath)
2795
3212
  return e.value.getEventPath();
2796
3213
  }
2797
- function k(c, o) {
2798
- b.value.forEach((l) => {
2799
- var g;
2800
- ((g = l.command) == null ? void 0 : g.label) === o.label && (l.command = o);
3214
+ function R(i, o) {
3215
+ h.value.forEach((r) => {
3216
+ var s;
3217
+ ((s = r.command) == null ? void 0 : s.label) === o.label && (r.command = o);
2801
3218
  });
2802
3219
  }
2803
- function p(c, o) {
2804
- k(c, o);
3220
+ function y(i, o) {
3221
+ R(i, o);
2805
3222
  }
2806
- function I(c, o) {
2807
- const l = b.value[o];
2808
- c.event = c.event.label ? c.event : _(l.event);
2809
- let g = !1;
3223
+ function A(i, o) {
3224
+ const r = h.value[o];
3225
+ i.event = i.event.label ? i.event : W(r.event);
3226
+ let s = !1;
2810
3227
  e.value.repititionCommand || (e.value.repititionCommand = []), e.value.repititionCommand.forEach((m) => {
2811
- m.command.id === c.command.id && m.event.label === c.event.label && m.targetComponent.viewModelId === c.targetComponent.viewModelId && (g = !0), m.command.id === c.command.id && m.event.label === c.event.label && m.targetComponent.viewModelId !== c.targetComponent.viewModelId && (m = _(c));
2812
- }), g || e.value.repititionCommand.push(_(c));
2813
- let M = {
2814
- id: c.command.id,
2815
- label: c.command.label,
2816
- name: c.command.name,
2817
- handlerName: c.command.handlerName,
2818
- cmpId: c.controller.id,
3228
+ m.command.id === i.command.id && m.event.label === i.event.label && m.targetComponent.viewModelId === i.targetComponent.viewModelId && (s = !0), m.command.id === i.command.id && m.event.label === i.event.label && m.targetComponent.viewModelId !== i.targetComponent.viewModelId && (m = W(i));
3229
+ }), s || e.value.repititionCommand.push(W(i));
3230
+ let N = {
3231
+ id: i.command.id,
3232
+ label: i.command.label,
3233
+ name: i.command.name,
3234
+ handlerName: i.command.handlerName,
3235
+ cmpId: i.controller.id,
2819
3236
  componentLists: [],
2820
3237
  hasPath: !1,
2821
- targetComponent: c.targetComponent.id,
2822
- property: _(c.command.params),
3238
+ targetComponent: i.targetComponent.id,
3239
+ property: W(i.command.params),
2823
3240
  shortcut: {},
2824
- isRtcCommand: c.command.isRtcCommand,
2825
- isNewGenerated: c.command.isNewGenerated || !1,
3241
+ isRtcCommand: i.command.isRtcCommand,
3242
+ isNewGenerated: i.command.isNewGenerated || !1,
2826
3243
  isInvalid: !1
2827
3244
  };
2828
- const R = {
2829
- controllerName: c.controller
3245
+ const D = {
3246
+ controllerName: i.controller
2830
3247
  };
2831
- M = u(R, M, e.value), l.command = _(M), l.controller = _(c.controller), p(l, M);
3248
+ N = a(D, N, e.value), r.command = W(N), r.controller = W(i.controller), y(r, N);
2832
3249
  }
2833
3250
  return {
2834
- controllers: h,
2835
- onClosed: V,
2836
- emitFinalState: $,
2837
- toggleSelectingMethod: d,
2838
- getViewModeId: i,
2839
- getComponentList: s,
2840
- updateTarget: r,
2841
- updateCommandHasPath: y,
3251
+ controllers: d,
3252
+ onClosed: F,
3253
+ emitFinalState: j,
3254
+ toggleSelectingMethod: v,
3255
+ getViewModeId: c,
3256
+ getComponentList: f,
3257
+ updateTarget: u,
3258
+ updateCommandHasPath: T,
2842
3259
  addNewController: t,
2843
- checkIfNewControllerExists: U,
2844
- getMethodsOnViewModel: v,
2845
- getEventPath: z,
2846
- selectBoundCommand: I
3260
+ checkIfNewControllerExists: _,
3261
+ getMethodsOnViewModel: S,
3262
+ getEventPath: H,
3263
+ selectBoundCommand: A
2847
3264
  };
2848
3265
  }
2849
- const Re = /* @__PURE__ */ ee({
3266
+ const ze = /* @__PURE__ */ te({
2850
3267
  name: "FEventsEditor",
2851
- props: Ke,
3268
+ props: an,
2852
3269
  emits: ["savedCommandListChanged"],
2853
- setup(e, B) {
2854
- const N = F(e.initialData), b = W("designer-host-service"), u = In(N), {
2855
- loadEvents: h,
2856
- resetBoundEvents: V
2857
- } = u, w = W("useFormSchema"), T = Mn(w, u), {
2858
- addNewInteraction: $,
2859
- deleteInteracton: C,
3270
+ setup(e, E) {
3271
+ const g = b(e.initialData), h = X("designer-host-service"), a = ct(g), {
3272
+ loadEvents: d,
3273
+ resetBoundEvents: F
3274
+ } = a, C = X("useFormSchema"), $ = it(C, a), {
3275
+ addNewInteraction: j,
3276
+ deleteInteracton: w,
2860
3277
  interactions: P,
2861
- loadInteractions: f
2862
- } = T, a = Kn(N, T, B), {
2863
- emitFinalState: d,
2864
- controllers: s
2865
- } = a;
2866
- ye("useEventsComposition", u), ye("useInteractionCompostion", T), ye("useMethodsComposition", a);
2867
- function r() {
2868
- N.value.isAddControllerMethod = !1;
3278
+ loadInteractions: p
3279
+ } = $, l = Ot(g, $, E), {
3280
+ emitFinalState: v,
3281
+ controllers: f
3282
+ } = l;
3283
+ Be("useEventsComposition", a), Be("useInteractionCompostion", $), Be("useMethodsComposition", l);
3284
+ function u() {
3285
+ g.value.isAddControllerMethod = !1;
2869
3286
  }
2870
- function i() {
2871
- var p, I;
2872
- const k = (I = (p = N.value) == null ? void 0 : p.sourceCommunication) == null ? void 0 : I.externalContainerId;
2873
- if (k) {
3287
+ function c() {
3288
+ var y, A;
3289
+ const R = (A = (y = g.value) == null ? void 0 : y.sourceCommunication) == null ? void 0 : A.externalContainerId;
3290
+ if (R) {
2874
3291
  const {
2875
- assembleSourceOutline: c
2876
- } = ve(w), o = c(b, B, k);
2877
- ye("sourceOutlineData", o);
3292
+ assembleSourceOutline: i
3293
+ } = be(C), o = i(h, E, R);
3294
+ Be("sourceOutlineData", o);
2878
3295
  }
2879
3296
  }
2880
- se(() => {
2881
- r(), V(), h(), f(), i();
3297
+ he(() => {
3298
+ u(), F(), d(), p(), c();
2882
3299
  });
2883
- function v(k) {
2884
- C(k), d(!1, null);
3300
+ function S(R) {
3301
+ w(R), v(!1, null);
2885
3302
  }
2886
- function y(k, p) {
2887
- const I = k.showSwitch[0], c = I.showSection[I.showSwitchNumber][3];
3303
+ function T(R, y) {
3304
+ const A = R.showSwitch[0], i = A.showSection[A.showSwitchNumber][3];
2888
3305
  let o = !1;
2889
- return e.initialData.getEventPath && (e.initialData.getEventPath().actionWithPath.length !== 0 ? o = !0 : o = !1), n(Wn, {
2890
- key: `${p}`,
2891
- controllers: s.value,
2892
- interaction: k,
2893
- displayOrder: p,
2894
- collapsed: c,
2895
- onDelete: v,
2896
- sourceCommunication: N.value.sourceCommunication,
3306
+ return e.initialData.getEventPath && (e.initialData.getEventPath().actionWithPath.length !== 0 ? o = !0 : o = !1), n($t, {
3307
+ key: `${y}`,
3308
+ controllers: f.value,
3309
+ interaction: R,
3310
+ displayOrder: y,
3311
+ collapsed: i,
3312
+ onDelete: S,
3313
+ sourceCommunication: g.value.sourceCommunication,
2897
3314
  viewSourceHandle: e.viewSourceHandle,
2898
3315
  haveBoundCommand: o
2899
3316
  }, null);
2900
3317
  }
2901
3318
  function t() {
2902
- var k;
2903
- return (k = P.value) == null ? void 0 : k.map((p, I) => {
3319
+ var R;
3320
+ return (R = P.value) == null ? void 0 : R.map((y, A) => {
2904
3321
  var o;
2905
- let c = p.event.label;
2906
- return (o = p.communication) != null && o.length && (c = `${p.communication.map((g) => g.id).join("-")}_${c}`), n("div", {
3322
+ let i = y.event.label;
3323
+ return (o = y.communication) != null && o.length && (i = `${y.communication.map((s) => s.id).join("-")}_${i}`), n("div", {
2907
3324
  class: "events-display-order",
2908
- key: `${c}_${I}`
2909
- }, [y(p, I)]);
3325
+ key: `${i}_${A}`
3326
+ }, [T(y, A)]);
2910
3327
  });
2911
3328
  }
2912
- function U(k) {
2913
- $(k);
3329
+ function _(R) {
3330
+ j(R);
2914
3331
  }
2915
- function z(k) {
2916
- const p = k.source;
2917
- if (P.value.find((c) => {
3332
+ function H(R) {
3333
+ const y = R.source;
3334
+ if (P.value.find((i) => {
2918
3335
  var o;
2919
- if ((o = c.communication) != null && o.length && c.communication.find((g) => {
2920
- var M, R, m;
2921
- return ((M = g.source) == null ? void 0 : M.formId) === p.formId && ((R = g.source) == null ? void 0 : R.componentId) === p.componentId && ((m = g.source) == null ? void 0 : m.event) === p.event;
3336
+ if ((o = i.communication) != null && o.length && i.communication.find((s) => {
3337
+ var N, D, m;
3338
+ return ((N = s.source) == null ? void 0 : N.formId) === y.formId && ((D = s.source) == null ? void 0 : D.componentId) === y.componentId && ((m = s.source) == null ? void 0 : m.event) === y.event;
2922
3339
  }))
2923
3340
  return !0;
2924
3341
  })) {
2925
- new re().info({
3342
+ new fe().info({
2926
3343
  position: "top-center",
2927
3344
  message: "事件已存在,请勿重复添加。"
2928
3345
  });
2929
3346
  return;
2930
3347
  }
2931
- $({
3348
+ j({
2932
3349
  label: "onCommunication",
2933
3350
  name: "组件通讯"
2934
- }, k);
3351
+ }, R);
2935
3352
  }
2936
3353
  return () => n("div", {
2937
3354
  class: "f-page-events-editor"
2938
3355
  }, [n("div", {
2939
3356
  class: "f-page-events-editor-content"
2940
- }, [n(Tn, {
2941
- sourceCommunication: N.value.sourceCommunication,
2942
- onClickEventItem: U,
2943
- onSelectSourceControl: z
3357
+ }, [n(ft, {
3358
+ sourceCommunication: g.value.sourceCommunication,
3359
+ onClickEventItem: _,
3360
+ onSelectSourceControl: H
2944
3361
  }, null), t()])]);
2945
3362
  }
2946
- }), ro = {
3363
+ }), Cl = {
2947
3364
  install(e) {
2948
- e.component(Re.name, Re);
3365
+ e.component(ze.name, ze);
2949
3366
  },
2950
- register(e, B, N, b) {
2951
- e["events-editor"] = Re, B["events-editor"] = Nn;
3367
+ register(e, E, g, h) {
3368
+ e["events-editor"] = ze, E["events-editor"] = at;
2952
3369
  }
2953
3370
  };
2954
3371
  export {
2955
- Re as FEventsEditor,
2956
- ro as default,
2957
- Ke as eventsEditorProps,
2958
- Nn as propsResolver
3372
+ ze as FEventsEditor,
3373
+ Cl as default,
3374
+ an as eventsEditorProps,
3375
+ at as propsResolver
2959
3376
  };