@farris/ui-vue 1.7.0-beta.4 → 1.7.0

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