@farris/ui-vue 1.8.0-alpha.0 → 1.8.0-beta.1

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