@farris/ui-vue 1.7.1 → 1.7.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (431) hide show
  1. package/components/accordion/index.esm.js +312 -61
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +1492 -59
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +752 -8
  6. package/components/binding-selector/index.umd.cjs +1 -1
  7. package/components/button-edit/index.esm.js +1 -1
  8. package/components/button-edit/index.umd.cjs +1 -1
  9. package/components/button-group/index.esm.js +266 -110
  10. package/components/button-group/index.umd.cjs +1 -1
  11. package/components/calendar/index.esm.js +344 -341
  12. package/components/calendar/index.umd.cjs +3 -3
  13. package/components/code-editor/index.esm.js +237 -169
  14. package/components/code-editor/index.umd.cjs +3 -3
  15. package/components/collection-property-editor/index.esm.js +302 -299
  16. package/components/collection-property-editor/index.umd.cjs +2 -2
  17. package/components/color-picker/index.esm.js +812 -502
  18. package/components/color-picker/index.umd.cjs +1 -1
  19. package/components/combo-list/index.esm.js +329 -292
  20. package/components/combo-list/index.umd.cjs +1 -1
  21. package/components/combo-tree/index.esm.js +355 -174
  22. package/components/combo-tree/index.umd.cjs +1 -1
  23. package/components/comment/index.esm.js +294 -291
  24. package/components/comment/index.umd.cjs +6 -6
  25. package/components/common/index.esm.js +1 -1
  26. package/components/common/index.umd.cjs +1 -1
  27. package/components/component/index.esm.js +4390 -2708
  28. package/components/component/index.umd.cjs +8 -1
  29. package/components/condition/index.esm.js +3140 -487
  30. package/components/condition/index.umd.cjs +8 -1
  31. package/components/data-grid/index.esm.js +4 -2
  32. package/components/data-grid/index.umd.cjs +1 -1
  33. package/components/data-view/index.esm.js +1859 -1832
  34. package/components/data-view/index.umd.cjs +1 -1
  35. package/components/date-picker/index.esm.js +1 -1
  36. package/components/date-picker/index.umd.cjs +1 -1
  37. package/components/designer-canvas/index.esm.js +3731 -2717
  38. package/components/designer-canvas/index.umd.cjs +1 -1
  39. package/components/drawer/index.esm.js +417 -405
  40. package/components/drawer/index.umd.cjs +2 -2
  41. package/components/dropdown/index.esm.js +373 -124
  42. package/components/dropdown/index.umd.cjs +2 -2
  43. package/components/dynamic-form/index.esm.js +1245 -1895
  44. package/components/dynamic-form/index.umd.cjs +1 -1
  45. package/components/dynamic-resolver/index.esm.js +275 -271
  46. package/components/dynamic-resolver/index.umd.cjs +2 -2
  47. package/components/dynamic-view/index.esm.js +529 -450
  48. package/components/dynamic-view/index.umd.cjs +1 -1
  49. package/components/event-parameter/index.esm.js +1 -1
  50. package/components/event-parameter/index.umd.cjs +1 -1
  51. package/components/events-editor/index.esm.js +2613 -1544
  52. package/components/events-editor/index.umd.cjs +3 -3
  53. package/components/expression-editor/index.css +1 -1
  54. package/components/expression-editor/index.esm.js +7376 -2
  55. package/components/expression-editor/index.umd.cjs +427 -1
  56. package/components/fieldset/index.esm.js +1 -1
  57. package/components/fieldset/index.umd.cjs +1 -1
  58. package/components/filter-bar/index.esm.js +423 -415
  59. package/components/filter-bar/index.umd.cjs +2 -2
  60. package/components/filter-condition-editor/index.css +1 -1
  61. package/components/filter-condition-editor/index.esm.js +9049 -425
  62. package/components/filter-condition-editor/index.umd.cjs +427 -1
  63. package/components/html-template/index.esm.js +33 -36
  64. package/components/html-template/index.umd.cjs +1 -1
  65. package/components/image/index.esm.js +364 -355
  66. package/components/image/index.umd.cjs +2 -2
  67. package/components/image-cropper/index.esm.js +615 -361
  68. package/components/image-cropper/index.umd.cjs +1 -1
  69. package/components/json-editor/index.esm.js +325 -247
  70. package/components/json-editor/index.umd.cjs +1 -1
  71. package/components/language-textbox/index.esm.js +411 -409
  72. package/components/language-textbox/index.umd.cjs +2 -2
  73. package/components/layout/index.esm.js +549 -163
  74. package/components/layout/index.umd.cjs +1 -1
  75. package/components/list-nav/index.esm.js +837 -39
  76. package/components/list-nav/index.umd.cjs +1 -1
  77. package/components/list-view/index.esm.js +427 -646
  78. package/components/list-view/index.umd.cjs +6 -6
  79. package/components/lookup/index.esm.js +3624 -3625
  80. package/components/lookup/index.umd.cjs +1 -1
  81. package/components/mapping-editor/index.esm.js +5 -3
  82. package/components/mapping-editor/index.umd.cjs +1 -1
  83. package/components/menu-lookup/index.esm.js +577 -536
  84. package/components/menu-lookup/index.umd.cjs +6 -6
  85. package/components/nav/index.esm.js +311 -31
  86. package/components/nav/index.umd.cjs +1 -1
  87. package/components/number-range/index.esm.js +1641 -189
  88. package/components/number-range/index.umd.cjs +1 -1
  89. package/components/number-spinner/index.esm.js +82 -82
  90. package/components/number-spinner/index.umd.cjs +1 -1
  91. package/components/order/index.esm.js +1196 -851
  92. package/components/order/index.umd.cjs +6 -6
  93. package/components/page-footer/index.esm.js +331 -48
  94. package/components/page-footer/index.umd.cjs +1 -1
  95. package/components/page-header/index.esm.js +110 -116
  96. package/components/page-header/index.umd.cjs +1 -1
  97. package/components/pagination/index.esm.js +509 -232
  98. package/components/pagination/index.umd.cjs +1 -1
  99. package/components/progress/index.esm.js +353 -148
  100. package/components/progress/index.umd.cjs +3 -3
  101. package/components/property-editor/index.esm.js +157 -153
  102. package/components/property-editor/index.umd.cjs +1 -1
  103. package/components/property-panel/index.esm.js +1817 -854
  104. package/components/property-panel/index.umd.cjs +12 -5
  105. package/components/query-solution/index.css +1 -1
  106. package/components/query-solution/index.esm.js +6858 -3984
  107. package/components/query-solution/index.umd.cjs +13 -6
  108. package/components/response-layout/index.esm.js +1 -1
  109. package/components/response-layout/index.umd.cjs +1 -1
  110. package/components/schema-selector/index.esm.js +2448 -2222
  111. package/components/schema-selector/index.umd.cjs +7 -7
  112. package/components/search-box/index.esm.js +244 -72
  113. package/components/search-box/index.umd.cjs +1 -1
  114. package/components/section/index.esm.js +212 -209
  115. package/components/section/index.umd.cjs +2 -2
  116. package/components/smoke-detector/index.esm.js +179 -8
  117. package/components/smoke-detector/index.umd.cjs +1 -1
  118. package/components/sort-condition-editor/index.css +1 -0
  119. package/components/sort-condition-editor/index.esm.js +9493 -4
  120. package/components/sort-condition-editor/index.umd.cjs +427 -1
  121. package/components/splitter/index.esm.js +1172 -142
  122. package/components/splitter/index.umd.cjs +1 -1
  123. package/components/step/index.esm.js +47 -48
  124. package/components/step/index.umd.cjs +1 -1
  125. package/components/tabs/index.esm.js +490 -419
  126. package/components/tabs/index.umd.cjs +1 -1
  127. package/components/text/index.esm.js +217 -73
  128. package/components/text/index.umd.cjs +1 -1
  129. package/components/textarea/index.esm.js +29 -27
  130. package/components/textarea/index.umd.cjs +2 -2
  131. package/components/transfer/index.esm.js +760 -543
  132. package/components/transfer/index.umd.cjs +5 -5
  133. package/components/tree-grid/index.esm.js +129 -128
  134. package/components/tree-grid/index.umd.cjs +1 -1
  135. package/components/tree-view/index.esm.js +320 -153
  136. package/components/tree-view/index.umd.cjs +1 -1
  137. package/components/uploader/index.esm.js +1112 -607
  138. package/components/uploader/index.umd.cjs +2 -2
  139. package/components/verify-detail/index.esm.js +359 -106
  140. package/components/verify-detail/index.umd.cjs +1 -1
  141. package/components/video/index.esm.js +222 -89
  142. package/components/video/index.umd.cjs +1 -1
  143. package/components/weather/index.esm.js +290 -199
  144. package/components/weather/index.umd.cjs +1 -1
  145. package/designer/data-grid/index.esm.js +5301 -4507
  146. package/designer/data-grid/index.umd.cjs +17 -10
  147. package/designer/drawer/index.esm.js +626 -615
  148. package/designer/drawer/index.umd.cjs +2 -2
  149. package/designer/dynamic-form/index.esm.js +2043 -1290
  150. package/designer/dynamic-form/index.umd.cjs +8 -1
  151. package/designer/farris-designer.all.esm.js +14263 -12505
  152. package/designer/farris-designer.all.umd.cjs +16 -16
  153. package/designer/list-view/index.esm.js +327 -327
  154. package/designer/list-view/index.umd.cjs +3 -3
  155. package/designer/modal/index.esm.js +29 -137
  156. package/designer/modal/index.umd.cjs +1 -1
  157. package/designer/radio-group/index.esm.js +238 -232
  158. package/designer/radio-group/index.umd.cjs +1 -1
  159. package/designer/response-layout-editor/index.esm.js +178 -171
  160. package/designer/response-layout-editor/index.umd.cjs +1 -1
  161. package/designer/response-toolbar/index.esm.js +1 -1
  162. package/designer/response-toolbar/index.umd.cjs +1 -1
  163. package/designer/section/index.esm.js +1 -6
  164. package/designer/section/index.umd.cjs +1 -1
  165. package/designer/tabs/index.esm.js +3431 -2493
  166. package/designer/tabs/index.umd.cjs +2 -2
  167. package/designer/time-picker/index.esm.js +195 -188
  168. package/designer/time-picker/index.umd.cjs +1 -1
  169. package/designer/tree-grid/index.esm.js +822 -464
  170. package/designer/tree-grid/index.umd.cjs +1 -1
  171. package/farris.all.esm.js +77525 -74884
  172. package/farris.all.umd.cjs +93 -93
  173. package/index.css +1 -1
  174. package/package.json +1 -1
  175. package/types/accordion/src/accordion.props.d.ts +1 -0
  176. package/types/accordion/src/components/accordion-item.props.d.ts +1 -0
  177. package/types/avatar/src/avatar.props.d.ts +1 -0
  178. package/types/binding-selector/index.d.ts +54 -0
  179. package/types/binding-selector/src/binding-selector.props.d.ts +1 -0
  180. package/types/button-group/index.d.ts +0 -15
  181. package/types/button-group/src/button-group.props.d.ts +1 -0
  182. package/types/code-editor/index.d.ts +1 -0
  183. package/types/code-editor/src/code-textbox.component.d.ts +6 -6
  184. package/types/code-editor/src/code-textbox.props.d.ts +2 -0
  185. package/types/color-picker/index.d.ts +15 -0
  186. package/types/color-picker/src/color-picker.props.d.ts +1 -0
  187. package/types/combo-list/src/composition/use-data-source.d.ts +2 -1
  188. package/types/combo-tree/src/combo-tree.props.d.ts +1 -0
  189. package/types/component/index.d.ts +2 -0
  190. package/types/component/src/component.props.d.ts +8 -0
  191. package/types/components.d.ts +8 -1
  192. package/types/condition/index.d.ts +55 -0
  193. package/types/condition/src/composition/condition-value/dropdown-value.d.ts +4 -0
  194. package/types/data-view/composition/types.d.ts +1 -1
  195. package/types/designer-canvas/src/composition/dg-control.d.ts +24 -0
  196. package/types/designer-toolbox/index.d.ts +3 -0
  197. package/types/designer-toolbox/src/toolbox.component.d.ts +14 -0
  198. package/types/designer-toolbox/src/toolbox.props.d.ts +29 -0
  199. package/types/designer-toolbox/src/types.d.ts +21 -0
  200. package/types/designer.d.ts +13 -0
  201. package/types/dropdown/index.d.ts +6 -27
  202. package/types/dropdown/src/dropdown.item.component.d.ts +1 -1
  203. package/types/dropdown/src/dropdown.props.d.ts +1 -0
  204. package/types/dynamic-form/designer.d.ts +1 -4
  205. package/types/dynamic-form/index.d.ts +6 -11
  206. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
  207. package/types/dynamic-form/src/designer/dynamic-form.design.component.d.ts +8 -0
  208. package/types/dynamic-form/src/designer/response-form.design.props.d.ts +14 -0
  209. package/types/dynamic-form/src/designer/use-dynamic-form-rules.d.ts +2 -0
  210. package/types/dynamic-form/src/dynamic-form.component.d.ts +8 -0
  211. package/types/dynamic-form/src/response-form.props.d.ts +13 -1
  212. package/types/dynamic-form/src/schema/response-form-schema-resolver.d.ts +1 -0
  213. package/types/dynamic-form/src/types.d.ts +1 -0
  214. package/types/dynamic-resolver/index.d.ts +0 -3
  215. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
  216. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
  217. package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
  218. package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
  219. package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
  220. package/types/dynamic-resolver/src/types.d.ts +1 -0
  221. package/types/dynamic-view/index.d.ts +43 -3
  222. package/types/dynamic-view/src/components/maps.d.ts +110 -98
  223. package/types/dynamic-view/src/composition/index.d.ts +5 -0
  224. package/types/dynamic-view/src/composition/use-utils.d.ts +12 -0
  225. package/types/dynamic-view/src/dynamic-view.component.d.ts +6 -6
  226. package/types/{binding-selector/designer.d.ts → expression-editor/index.d.ts} +6 -6
  227. package/types/filter-condition-editor/index.d.ts +9 -0
  228. package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
  229. package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
  230. package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +1 -0
  231. package/types/flow-canvas/index.d.ts +3 -0
  232. package/types/flow-canvas/src/components/flow-node-item.component.d.ts +8 -0
  233. package/types/flow-canvas/src/components/flow-node-item.props.d.ts +3 -0
  234. package/types/flow-canvas/src/composition/types.d.ts +42 -0
  235. package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +2 -0
  236. package/types/flow-canvas/src/composition/use-connections.d.ts +2 -0
  237. package/types/flow-canvas/src/composition/use-curve.d.ts +4 -0
  238. package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +2 -0
  239. package/types/flow-canvas/src/composition/use-drawing.d.ts +4 -0
  240. package/types/flow-canvas/src/flow-canvas.component.d.ts +8 -0
  241. package/types/flow-canvas/src/flow-canvas.props.d.ts +3 -0
  242. package/types/image-cropper/src/image-cropper.props.d.ts +1 -0
  243. package/types/index.d.ts +1 -0
  244. package/types/json-editor/src/json-editor.props.d.ts +1 -0
  245. package/types/language-textbox/index.d.ts +3 -3
  246. package/types/language-textbox/src/components/language-contents.component.d.ts +1 -1
  247. package/types/language-textbox/src/language-textbox.component.d.ts +1 -1
  248. package/types/layout/index.d.ts +0 -1
  249. package/types/layout/src/components/layout-pane.props.d.ts +1 -0
  250. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +2 -0
  251. package/types/layout/src/designer/layout-pane.design.component.d.ts +8 -0
  252. package/types/layout/src/designer/layout-use-designer-rules.d.ts +2 -0
  253. package/types/layout/src/designer/layout.design.component.d.ts +8 -0
  254. package/types/layout/src/layout.props.d.ts +1 -0
  255. package/types/layout/src/schema/schema-mapper.d.ts +2 -0
  256. package/types/layout/src/schema/schema-resolver.d.ts +2 -0
  257. package/types/list-nav/index.d.ts +5 -24
  258. package/types/list-nav/src/designer/use-designer-rules.d.ts +2 -0
  259. package/types/list-nav/src/list-nav.props.d.ts +1 -0
  260. package/types/list-nav/src/property-config/list-nav.property-config.d.ts +8 -0
  261. package/types/list-nav/src/schema/schema-mapper.d.ts +2 -0
  262. package/types/list-nav/src/schema/schema-resolver.d.ts +2 -0
  263. package/types/list-view/index.d.ts +0 -1
  264. package/types/list-view/src/composition/use-draggable.d.ts +1 -1
  265. package/types/lookup/index.d.ts +1 -1
  266. package/types/lookup/src/components/popup-container.component.d.ts +3 -3
  267. package/types/menu-lookup/src/menu-lookup.props.d.ts +1 -0
  268. package/types/modal/designer.d.ts +0 -2
  269. package/types/nav/index.d.ts +20 -24
  270. package/types/nav/src/nav.props.d.ts +1 -0
  271. package/types/number-range/src/number-range.props.d.ts +1 -0
  272. package/types/order/index.d.ts +5 -36
  273. package/types/order/src/designer/order.design.component.d.ts +1 -1
  274. package/types/order/src/order.props.d.ts +1 -0
  275. package/types/page-footer/index.d.ts +2 -0
  276. package/types/page-footer/src/page-footer.props.d.ts +1 -0
  277. package/types/pagination/index.d.ts +0 -15
  278. package/types/pagination/src/pagination.props.d.ts +1 -0
  279. package/types/progress/src/progress.props.d.ts +1 -0
  280. package/types/property-panel/src/property-panel.component.d.ts +3 -3
  281. package/types/query-solution/index.d.ts +2 -1
  282. package/types/radio-group/designer.d.ts +1 -2
  283. package/types/search-box/index.d.ts +17 -1
  284. package/types/search-box/src/search-box.props.d.ts +1 -0
  285. package/types/section/designer.d.ts +0 -1
  286. package/types/smoke-detector/index.d.ts +2 -0
  287. package/types/smoke-detector/src/smoke-detector.props.d.ts +1 -0
  288. package/types/sort-condition-editor/index.d.ts +7 -2
  289. package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +1 -0
  290. package/types/splitter/index.d.ts +0 -1
  291. package/types/splitter/src/components/splitter-pane.props.d.ts +1 -0
  292. package/types/splitter/src/splitter.props.d.ts +1 -0
  293. package/types/tabs/designer.d.ts +0 -1
  294. package/types/tabs/index.d.ts +1 -0
  295. package/types/text/index.d.ts +20 -24
  296. package/types/text/src/text.props.d.ts +1 -0
  297. package/types/transfer/src/transfer.props.d.ts +1 -0
  298. package/types/tree-view/src/tree-view.props.d.ts +1 -0
  299. package/types/uploader/src/uploader.props.d.ts +1 -0
  300. package/types/verify-detail/index.d.ts +5 -58
  301. package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
  302. package/types/verify-detail/src/verify-detail.props.d.ts +1 -0
  303. package/types/video/index.d.ts +20 -24
  304. package/types/video/src/video.props.d.ts +1 -0
  305. package/components/dynamic-form/index.css +0 -1
  306. package/designer/accordion/index.esm.js +0 -257
  307. package/designer/accordion/index.umd.cjs +0 -1
  308. package/designer/avatar/index.esm.js +0 -1460
  309. package/designer/avatar/index.umd.cjs +0 -1
  310. package/designer/binding-selector/index.esm.js +0 -792
  311. package/designer/binding-selector/index.umd.cjs +0 -1
  312. package/designer/button-group/index.esm.js +0 -282
  313. package/designer/button-group/index.umd.cjs +0 -1
  314. package/designer/code-editor/index.esm.js +0 -75
  315. package/designer/code-editor/index.umd.cjs +0 -1
  316. package/designer/color-picker/index.esm.js +0 -1096
  317. package/designer/color-picker/index.umd.cjs +0 -1
  318. package/designer/combo-list/index.esm.js +0 -1095
  319. package/designer/combo-list/index.umd.cjs +0 -1
  320. package/designer/combo-tree/index.esm.js +0 -186
  321. package/designer/combo-tree/index.umd.cjs +0 -1
  322. package/designer/component/index.css +0 -1
  323. package/designer/component/index.esm.js +0 -5002
  324. package/designer/component/index.umd.cjs +0 -1
  325. package/designer/condition/index.esm.js +0 -1899
  326. package/designer/condition/index.umd.cjs +0 -1
  327. package/designer/dropdown/index.esm.js +0 -261
  328. package/designer/dropdown/index.umd.cjs +0 -1
  329. package/designer/expression-editor/index.css +0 -1
  330. package/designer/expression-editor/index.esm.js +0 -7006
  331. package/designer/expression-editor/index.umd.cjs +0 -427
  332. package/designer/filter-condition-editor/index.css +0 -1
  333. package/designer/filter-condition-editor/index.esm.js +0 -4795
  334. package/designer/filter-condition-editor/index.umd.cjs +0 -1
  335. package/designer/html-template/index.esm.js +0 -718
  336. package/designer/html-template/index.umd.cjs +0 -1
  337. package/designer/image-cropper/index.esm.js +0 -765
  338. package/designer/image-cropper/index.umd.cjs +0 -1
  339. package/designer/json-editor/index.esm.js +0 -83
  340. package/designer/json-editor/index.umd.cjs +0 -1
  341. package/designer/language-textbox/index.esm.js +0 -783
  342. package/designer/language-textbox/index.umd.cjs +0 -8
  343. package/designer/layout/index.esm.js +0 -430
  344. package/designer/layout/index.umd.cjs +0 -1
  345. package/designer/list-nav/index.esm.js +0 -802
  346. package/designer/list-nav/index.umd.cjs +0 -1
  347. package/designer/lookup/index.esm.js +0 -2083
  348. package/designer/lookup/index.umd.cjs +0 -1
  349. package/designer/menu-lookup/index.esm.js +0 -46
  350. package/designer/menu-lookup/index.umd.cjs +0 -1
  351. package/designer/nav/index.esm.js +0 -284
  352. package/designer/nav/index.umd.cjs +0 -1
  353. package/designer/number-range/index.esm.js +0 -1616
  354. package/designer/number-range/index.umd.cjs +0 -1
  355. package/designer/order/index.css +0 -1
  356. package/designer/order/index.esm.js +0 -2196
  357. package/designer/order/index.umd.cjs +0 -18
  358. package/designer/page-footer/index.esm.js +0 -290
  359. package/designer/page-footer/index.umd.cjs +0 -1
  360. package/designer/page-header/index.esm.js +0 -1003
  361. package/designer/page-header/index.umd.cjs +0 -1
  362. package/designer/pagination/index.esm.js +0 -591
  363. package/designer/pagination/index.umd.cjs +0 -1
  364. package/designer/progress/index.esm.js +0 -213
  365. package/designer/progress/index.umd.cjs +0 -1
  366. package/designer/search-box/index.esm.js +0 -245
  367. package/designer/search-box/index.umd.cjs +0 -1
  368. package/designer/smoke-detector/index.css +0 -1
  369. package/designer/smoke-detector/index.esm.js +0 -178
  370. package/designer/smoke-detector/index.umd.cjs +0 -1
  371. package/designer/sort-condition-editor/index.esm.js +0 -138
  372. package/designer/sort-condition-editor/index.umd.cjs +0 -1
  373. package/designer/splitter/index.esm.js +0 -1120
  374. package/designer/splitter/index.umd.cjs +0 -1
  375. package/designer/step/index.esm.js +0 -226
  376. package/designer/step/index.umd.cjs +0 -1
  377. package/designer/text/index.esm.js +0 -147
  378. package/designer/text/index.umd.cjs +0 -1
  379. package/designer/transfer/index.esm.js +0 -254
  380. package/designer/transfer/index.umd.cjs +0 -1
  381. package/designer/tree-view/index.esm.js +0 -313
  382. package/designer/tree-view/index.umd.cjs +0 -1
  383. package/designer/uploader/index.esm.js +0 -1190
  384. package/designer/uploader/index.umd.cjs +0 -2
  385. package/designer/verify-detail/index.esm.js +0 -258
  386. package/designer/verify-detail/index.umd.cjs +0 -1
  387. package/designer/video/index.esm.js +0 -136
  388. package/designer/video/index.umd.cjs +0 -1
  389. package/designer/weather/index.css +0 -1
  390. package/designer/weather/index.esm.js +0 -6244
  391. package/designer/weather/index.umd.cjs +0 -14
  392. package/types/accordion/designer.d.ts +0 -44
  393. package/types/avatar/designer.d.ts +0 -29
  394. package/types/button-group/designer.d.ts +0 -29
  395. package/types/code-editor/designer.d.ts +0 -5
  396. package/types/color-picker/designer.d.ts +0 -29
  397. package/types/combo-list/designer.d.ts +0 -29
  398. package/types/combo-list/src/designer/combo-list.design.props.d.ts +0 -6
  399. package/types/combo-tree/designer.d.ts +0 -5
  400. package/types/component/designer.d.ts +0 -35
  401. package/types/condition/designer.d.ts +0 -56
  402. package/types/dropdown/designer.d.ts +0 -6
  403. package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +0 -11
  404. package/types/expression-editor/designer.d.ts +0 -9
  405. package/types/filter-condition-editor/designer.d.ts +0 -10
  406. package/types/html-template/designer.d.ts +0 -31
  407. package/types/html-template/src/designer/html-template.design.props.d.ts +0 -9
  408. package/types/image-cropper/designer.d.ts +0 -4
  409. package/types/json-editor/designer.d.ts +0 -5
  410. package/types/menu-lookup/designer.d.ts +0 -5
  411. package/types/nav/designer.d.ts +0 -6
  412. package/types/number-range/designer.d.ts +0 -29
  413. package/types/order/designer.d.ts +0 -6
  414. package/types/page-footer/designer.d.ts +0 -6
  415. package/types/page-header/src/designer/page-header.design.props.d.ts +0 -20
  416. package/types/pagination/designer.d.ts +0 -29
  417. package/types/progress/designer.d.ts +0 -29
  418. package/types/search-box/designer.d.ts +0 -52
  419. package/types/smoke-detector/designer.d.ts +0 -6
  420. package/types/sort-condition-editor/designer.d.ts +0 -9
  421. package/types/splitter/designer.d.ts +0 -32
  422. package/types/step/designer.d.ts +0 -6
  423. package/types/text/designer.d.ts +0 -6
  424. package/types/transfer/designer.d.ts +0 -35
  425. package/types/tree-view/designer.d.ts +0 -29
  426. package/types/uploader/designer.d.ts +0 -141
  427. package/types/verify-detail/designer.d.ts +0 -6
  428. package/types/video/designer.d.ts +0 -6
  429. /package/{designer → components}/condition/index.css +0 -0
  430. /package/{designer → components}/uploader/index.css +0 -0
  431. /package/types/{dynamic-form/src/component/form-control/form-control.component.d.ts → list-nav/src/designer/list-nav.design.component.d.ts} +0 -0
@@ -1,13 +1,89 @@
1
- var Le = Object.defineProperty;
2
- var Ne = (d, n, e) => n in d ? Le(d, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[n] = e;
3
- var I = (d, n, e) => Ne(d, typeof n != "symbol" ? n + "" : n, e);
4
- import { defineComponent as X, ref as F, computed as se, watch as D, reactive as Ue, createVNode as m, withDirectives as re, resolveDirective as $e, Fragment as oe, inject as ee, onMounted as te, onBeforeMount as Ae, vModelText as Oe, createTextVNode as Re, nextTick as le } from "vue";
5
- import { getPropertyConfigBySchemaForDesigner as _ } from "../dynamic-resolver/index.esm.js";
6
- import { FDynamicFormGroup as qe } from "../../designer/dynamic-form/index.esm.js";
7
- import { debounce as We, cloneDeep as Ge } from "lodash-es";
8
- import { DgControl as l, canvasChanged as W, refreshCanvas as De } from "../designer-canvas/index.esm.js";
9
- import { FormSchemaEntityField$Type as ie, FormSchemaEntityFieldType$Type as je } from "../common/index.esm.js";
10
- const Ke = {
1
+ var Ge = Object.defineProperty;
2
+ var We = (e, n, t) => n in e ? Ge(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
+ var V = (e, n, t) => We(e, typeof n != "symbol" ? n + "" : n, t);
4
+ import { ref as I, computed as X, defineComponent as re, watch as Z, createVNode as w, createTextVNode as Ee, mergeProps as ze, reactive as _e, withDirectives as Pe, resolveDirective as Xe, Fragment as xe, inject as ve, onMounted as he, onBeforeMount as He, vModelText as Je, nextTick as Te } from "vue";
5
+ import { isPlainObject as ye, cloneDeep as fe, debounce as Qe } from "lodash-es";
6
+ import Ye from "../accordion/index.esm.js";
7
+ import Ze from "../avatar/index.esm.js";
8
+ import Ke from "../../designer/button-edit/index.esm.js";
9
+ import et from "../button-group/index.esm.js";
10
+ import tt from "../calendar/index.esm.js";
11
+ import nt from "../../designer/capsule/index.esm.js";
12
+ import be from "../../designer/checkbox/index.esm.js";
13
+ import Ce from "../../designer/checkbox-group/index.esm.js";
14
+ import rt from "../combo-list/index.esm.js";
15
+ import it from "../combo-tree/index.esm.js";
16
+ import ot from "../component/index.esm.js";
17
+ import st from "../color-picker/index.esm.js";
18
+ import at from "../content-container/index.esm.js";
19
+ import lt from "../../designer/date-picker/index.esm.js";
20
+ import dt from "../../designer/data-grid/index.esm.js";
21
+ import ct from "../dropdown/index.esm.js";
22
+ import ut from "../../designer/dynamic-form/index.esm.js";
23
+ import pt from "../events-editor/index.esm.js";
24
+ import mt from "../filter-bar/index.esm.js";
25
+ import ft from "../field-selector/index.esm.js";
26
+ import gt from "../binding-selector/index.esm.js";
27
+ import vt from "../image-cropper/index.esm.js";
28
+ import ht from "../../designer/input-group/index.esm.js";
29
+ import yt from "../layout/index.esm.js";
30
+ import bt from "../list-nav/index.esm.js";
31
+ import Ct from "../../designer/list-view/index.esm.js";
32
+ import Ft from "../lookup/index.esm.js";
33
+ import wt from "../mapping-editor/index.esm.js";
34
+ import St from "../nav/index.esm.js";
35
+ import Et from "../number-range/index.esm.js";
36
+ import Pt from "../../designer/number-spinner/index.esm.js";
37
+ import xt from "../order/index.esm.js";
38
+ import Tt from "../page-header/index.esm.js";
39
+ import It from "../page-footer/index.esm.js";
40
+ import kt from "../pagination/index.esm.js";
41
+ import Vt from "../progress/index.esm.js";
42
+ import Mt from "../query-solution/index.esm.js";
43
+ import Lt from "../../designer/radio-group/index.esm.js";
44
+ import Bt from "../../designer/rate/index.esm.js";
45
+ import Nt from "../../designer/response-toolbar/index.esm.js";
46
+ import Ot from "../response-layout/index.esm.js";
47
+ import $t from "../../designer/response-layout-editor/index.esm.js";
48
+ import Rt from "../search-box/index.esm.js";
49
+ import Ut from "../../designer/section/index.esm.js";
50
+ import At from "../smoke-detector/index.esm.js";
51
+ import qt from "../splitter/index.esm.js";
52
+ import jt from "../step/index.esm.js";
53
+ import Dt from "../../designer/switch/index.esm.js";
54
+ import Gt from "../../designer/tabs/index.esm.js";
55
+ import Wt from "../../designer/tags/index.esm.js";
56
+ import zt from "../text/index.esm.js";
57
+ import _t from "../../designer/time-picker/index.esm.js";
58
+ import Xt from "../transfer/index.esm.js";
59
+ import Ht from "../tree-view/index.esm.js";
60
+ import Jt from "../uploader/index.esm.js";
61
+ import Qt from "../verify-detail/index.esm.js";
62
+ import Yt from "../video/index.esm.js";
63
+ import Zt from "../../designer/textarea/index.esm.js";
64
+ import Kt from "../schema-selector/index.esm.js";
65
+ import en from "../../designer/tree-grid/index.esm.js";
66
+ import tn from "../event-parameter/index.esm.js";
67
+ import nn from "../filter-condition-editor/index.esm.js";
68
+ import rn from "../fieldset/index.esm.js";
69
+ import on from "../sort-condition-editor/index.esm.js";
70
+ import sn from "../menu-lookup/index.esm.js";
71
+ import an from "../../designer/drawer/index.esm.js";
72
+ import ln from "../json-editor/index.esm.js";
73
+ import dn from "../property-editor/index.esm.js";
74
+ import cn from "../expression-editor/index.esm.js";
75
+ import un from "../code-editor/index.esm.js";
76
+ import pn from "../html-template/index.esm.js";
77
+ import mn from "../collection-property-editor/index.esm.js";
78
+ import fn from "../../designer/modal/index.esm.js";
79
+ import gn from "../external-container/index.esm.js";
80
+ import vn from "../language-textbox/index.esm.js";
81
+ import hn from "../image/index.esm.js";
82
+ import yn from "../comment/index.esm.js";
83
+ import { schemaResolverMap as bn, propertyEffectMap as Cn, propertyConfigSchemaMap as Fn, schemaMap as wn, createPropsResolver as Sn } from "../dynamic-resolver/index.esm.js";
84
+ import { useThirdComponent as En, isMobilePhone as Pn, FormSchemaEntityField$Type as Fe, FormSchemaEntityFieldType$Type as xn } from "../common/index.esm.js";
85
+ import { DgControl as v, canvasChanged as ce, refreshCanvas as Tn } from "../designer-canvas/index.esm.js";
86
+ const In = {
11
87
  width: { type: String, default: "300px" },
12
88
  height: { type: Number, default: 10 },
13
89
  isWidePanel: { type: Boolean, default: !1 },
@@ -35,7 +111,572 @@ const Ke = {
35
111
  schema: { type: Object, default: {} },
36
112
  /** 属性变更后事件 */
37
113
  propertyChanged: { type: Function }
38
- }, ze = {
114
+ };
115
+ function kn(e = {}) {
116
+ function n(m, p, s, c) {
117
+ if (typeof s == "number")
118
+ return c[m].length === s;
119
+ if (typeof s == "object") {
120
+ const f = Object.keys(s)[0], l = s[f];
121
+ if (f === "not")
122
+ return Number(c[m].length) !== Number(l);
123
+ if (f === "moreThan")
124
+ return Number(c[m].length) >= Number(l);
125
+ if (f === "lessThan")
126
+ return Number(c[m].length) <= Number(l);
127
+ }
128
+ return !1;
129
+ }
130
+ function t(m, p, s, c) {
131
+ return c[m] && c[m].propertyValue && String(c[m].propertyValue.value) === String(s);
132
+ }
133
+ const r = /* @__PURE__ */ new Map([
134
+ ["length", n],
135
+ ["getProperty", t]
136
+ ]);
137
+ Object.keys(e).reduce((m, p) => (m.set(p, e[p]), m), r);
138
+ function i(m, p) {
139
+ const s = m;
140
+ return typeof p == "number" ? [{ target: s, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: s, operator: "getProperty", param: m, value: !!p }] : typeof p == "object" ? Object.keys(p).map((c) => {
141
+ if (c === "length")
142
+ return { target: s, operator: "length", param: null, value: p[c] };
143
+ const f = c, l = p[c];
144
+ return { target: s, operator: "getProperty", param: f, value: l };
145
+ }) : [];
146
+ }
147
+ function o(m) {
148
+ return Object.keys(m).reduce((s, c) => {
149
+ const f = i(c, m[c]);
150
+ return s.push(...f), s;
151
+ }, []);
152
+ }
153
+ function a(m, p) {
154
+ if (r.has(m.operator)) {
155
+ const s = r.get(m.operator);
156
+ return s && s(m.target, m.param, m.value, p) || !1;
157
+ }
158
+ return !1;
159
+ }
160
+ function g(m, p) {
161
+ return o(m).reduce((f, l) => f && a(l, p), !0);
162
+ }
163
+ function d(m, p) {
164
+ const s = Object.keys(m), c = s.includes("allOf"), f = s.includes("anyOf"), l = c || f, E = (l ? m[l ? c ? "allOf" : "anyOf" : "allOf"] : [m]).map((U) => g(U, p));
165
+ return c ? !E.includes(!1) : E.includes(!0);
166
+ }
167
+ return { parseValueSchema: d };
168
+ }
169
+ const Vn = {
170
+ convertTo: (e, n, t, r) => {
171
+ e.appearance || (e.appearance = {}), e.appearance[n] = t;
172
+ },
173
+ convertFrom: (e, n, t) => e.appearance ? e.appearance[n] : e[n]
174
+ }, Mn = {
175
+ convertFrom: (e, n, t) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
176
+ }, Ln = {
177
+ convertTo: (e, n, t, r) => {
178
+ e.editor && (e.editor[n] = t);
179
+ },
180
+ convertFrom: (e, n, t) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, n) ? e.editor[n] : e[n]
181
+ }, Bn = {
182
+ button: { type: "button", name: "按钮" },
183
+ "response-toolbar": { type: "response-toolbar", name: "工具栏" },
184
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
185
+ "content-container": { type: "content-container", name: "容器" },
186
+ "input-group": { type: "input-group", name: "文本" },
187
+ textarea: { type: "textarea", name: "多行文本" },
188
+ lookup: { type: "lookup", name: "帮助" },
189
+ "number-spinner": { type: "number-spinner", name: "数值" },
190
+ "date-picker": { type: "date-picker", name: "日期" },
191
+ switch: { type: "switch", name: "开关" },
192
+ "radio-group": { type: "radio-group", name: "单选组" },
193
+ "check-box": { type: "check-box", name: "复选框" },
194
+ "check-group": { type: "check-group", name: "复选框组" },
195
+ "combo-list": { type: "combo-list", name: "下拉列表" },
196
+ "response-form": { type: "response-form", name: "卡片面板" },
197
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "response-layout-3" },
198
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "response-layout-1" },
199
+ "tree-grid": { type: "tree-grid", name: "树表格" },
200
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
201
+ "data-grid": { type: "data-grid", name: "表格" },
202
+ "data-grid-column": { type: "data-grid-column", name: "表格列" },
203
+ module: { type: "Module", name: "模块" },
204
+ component: { type: "component", name: "组件" },
205
+ tabs: { type: "tabs", name: "标签页" },
206
+ "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
207
+ "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮" },
208
+ "drawer-toolbar-item": { type: "drawer-toolbar-item", name: "抽屉工具栏按钮" },
209
+ "html-template": { type: "html-template", name: "模板容器" },
210
+ "time-picker": { type: "time-picker", name: "时间选择" },
211
+ section: { type: "section", name: "分组面板" },
212
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
213
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
214
+ splitter: { type: "splitter", name: "分栏面板" },
215
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
216
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
217
+ uploader: { type: "uploader", name: "附件上传" },
218
+ "page-header": { type: "page-header", name: "页头" },
219
+ "page-footer": { type: "page-footer", name: "页脚" },
220
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏" },
221
+ "drawer-toolbar": { type: "drawer-toolbar", name: "抽屉工具栏" },
222
+ fieldset: { type: "fieldset", name: "分组" },
223
+ "query-solution": { type: "query-solution", name: "筛选方案" },
224
+ drawer: { type: "drawer", name: "抽屉" },
225
+ "external-container": { type: "external-container", name: "外部容器", icon: "content-container" },
226
+ "list-nav": { type: "list-nav", name: "列表导航" },
227
+ "list-view": { type: "list-view", name: "列表" },
228
+ "filter-bar": { type: "filter-bar", name: "筛选条" },
229
+ "language-textbox": { type: "language-textbox", name: "多语输入框" },
230
+ image: { type: "image", name: "图像" },
231
+ "discussion-editor": { type: "discussion-editor", name: "评论编辑区" },
232
+ "discussion-list": { type: "discussion-list", name: "评论列表" },
233
+ comment: { type: "comment", name: "评论区" },
234
+ "rich-text-editor": { type: "rich-text-editor", name: "富文本", icon: "rich-text-box" },
235
+ calendar: { type: "calendar", name: "日历", icon: "date-picker" },
236
+ wizard: { type: "wizard", name: "向导", icon: "wizard" },
237
+ "wizard-page": { type: "wizard-page", name: "向导页", icon: "wizard" },
238
+ "wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
239
+ step: { type: "step", name: "步骤条", icon: "step" },
240
+ "dynamic-form": { type: "dynamic-form", name: "动态表单" }
241
+ }, Nn = {
242
+ convertFrom: (e, n, t) => {
243
+ var i;
244
+ const r = e.editor && e.editor[n] ? e.editor[n] : e[n];
245
+ return ((i = Bn[r]) == null ? void 0 : i.name) || r;
246
+ }
247
+ }, On = {
248
+ convertTo: (e, n, t, r) => {
249
+ e[n] = e[n];
250
+ },
251
+ convertFrom: (e, n, t) => e.editor ? t.getRealEditorType(e.editor.type) : ""
252
+ }, $n = {
253
+ convertTo: (e, n, t, r) => {
254
+ (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[n] = t : e.formatter = {
255
+ [n]: t
256
+ });
257
+ },
258
+ convertFrom: (e, n, t) => {
259
+ if (e.formatter) {
260
+ if (n === "trueText")
261
+ return e.formatter.trueText;
262
+ if (n === "falseText")
263
+ return e.formatter.falseText;
264
+ if (n === "prefix")
265
+ return e.formatter.prefix;
266
+ if (n === "suffix")
267
+ return e.formatter.suffix;
268
+ if (n === "precision")
269
+ return e.formatter.precision;
270
+ if (n === "decimal")
271
+ return e.formatter.decimal;
272
+ if (n === "thousand")
273
+ return e.formatter.thousand;
274
+ if (n === "dateFormat")
275
+ return e.formatter.dateFormat || "yyyy-MM-dd";
276
+ if (n === "customFormat")
277
+ return e.formatter.customFormat;
278
+ if (n === "type")
279
+ return e.formatter.type || "none";
280
+ if (n === "customFormat")
281
+ return e.formmater.customFormat;
282
+ }
283
+ return "none";
284
+ }
285
+ }, Rn = {
286
+ convertTo: (e, n, t, r) => {
287
+ e.command ? e.command[n] = t : e.command = {
288
+ [n]: t
289
+ }, n === "enableType" && t === "default" && (e.command.enable = !0, e.command.commands = [
290
+ {
291
+ text: "编辑",
292
+ type: "primary",
293
+ command: "edit"
294
+ },
295
+ {
296
+ text: "删除",
297
+ type: "danger",
298
+ command: "remove"
299
+ }
300
+ ]), n === "enableType" && t === "custom" && (e.command.enable = !0, e.command.commands = [
301
+ {
302
+ value: "add",
303
+ text: "增加",
304
+ type: "link"
305
+ },
306
+ {
307
+ value: "edit",
308
+ text: "编辑",
309
+ type: "danger"
310
+ },
311
+ {
312
+ value: "remove",
313
+ text: "删除",
314
+ type: "remove"
315
+ }
316
+ ]), n === "enableType" && t === "unable" && (e.command.enable = !1);
317
+ },
318
+ convertFrom: (e, n, t) => {
319
+ var r, i;
320
+ if (e.command) {
321
+ if (n === "enableType") {
322
+ const o = (i = (r = e.command) == null ? void 0 : r.commands) == null ? void 0 : i.find((a) => a.command === "edit" && a.type === "primary");
323
+ return e.command.enable ? o ? "default" : "custom" : "unable";
324
+ }
325
+ if (n === "commands")
326
+ return e.command.enableType === "custom" ? e.command.commands : [];
327
+ if (n === "formatter")
328
+ return e.command.formatter;
329
+ if (n === "count")
330
+ return e.command.count;
331
+ if (n === "columnWidth")
332
+ return e.command.columnWidth || 150;
333
+ }
334
+ return "";
335
+ }
336
+ }, Un = {
337
+ convertTo: (e, n, t, r) => {
338
+ e.column ? e.column[n] = t : e.column = {
339
+ [n]: t
340
+ }, n === "fitColumns" && t && (e.column.fitMode || (e.column.fitMode = "average"));
341
+ },
342
+ convertFrom: (e, n, t) => {
343
+ if (e.column) {
344
+ if (n === "fitColumns")
345
+ return e.column.fitColumns;
346
+ if (n === "fitMode")
347
+ return e.column.fitMode;
348
+ }
349
+ return "";
350
+ }
351
+ }, An = {
352
+ convertTo: (e, n, t, r) => {
353
+ e.summary ? e.summary[n] = t : e.summary = {
354
+ [n]: t
355
+ }, n === "enable" && t && (e.summary ? e.summary.groupFields || (e.summary.groupFields = []) : e.summary = {
356
+ enable: t,
357
+ groupFields: []
358
+ });
359
+ },
360
+ convertFrom: (e, n, t) => {
361
+ var r;
362
+ return n === "customSummaryStyle" ? e.summary.customSummaryStyle : n === "position" ? ((r = e.summary) == null ? void 0 : r[n]) || "bottom" : e.summary && n === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "";
363
+ }
364
+ }, qn = {
365
+ convertTo: (e, n, t, r) => {
366
+ e.group ? e.group[n] = t : e.group = {
367
+ [n]: t
368
+ }, n === "enable" && t && (e.group ? e.group.groupFields || (e.group.groupFields = []) : e.group = {
369
+ enable: t,
370
+ groupFields: [],
371
+ showSummary: !1
372
+ });
373
+ },
374
+ convertFrom: (e, n, t) => {
375
+ if (e.group) {
376
+ if (n === "enable")
377
+ return e.group.enable;
378
+ if (n === "showSummary")
379
+ return e.group.showSummary;
380
+ }
381
+ }
382
+ }, jn = {
383
+ convertFrom: (e, n) => e.binding ? e.binding.path : "",
384
+ convertTo: (e, n, t) => {
385
+ if (t && t.length > 0) {
386
+ const r = t[0];
387
+ e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = r.bindingField, e.binding.field = r.id, e.binding.fullPath = r.path, e.path = r.bindingPath;
388
+ }
389
+ }
390
+ }, Dn = {
391
+ convertTo: (e, n, t, r) => {
392
+ e.pagination || (e.pagination = {}), n === "sizeLimits" ? e.pagination.sizeLimits = t.split(",") : e.pagination[n] = t;
393
+ },
394
+ convertFrom: (e, n, t) => e.pagination ? n === "sizeLimits" ? e.pagination.sizeLimits.join(",") : e.pagination[n] : e[n]
395
+ }, Gn = {
396
+ convertTo: (e, n, t, r) => {
397
+ e.rowNumber || (e.rowNumber = {}), e.rowNumber[n] = t;
398
+ },
399
+ convertFrom: (e, n, t) => e.rowNumber ? e.rowNumber[n] : e[n]
400
+ }, Wn = {
401
+ convertTo: (e, n, t, r) => {
402
+ e.selection || (e.selection = {}), e.selection[n] = t;
403
+ },
404
+ convertFrom: (e, n, t) => {
405
+ var r, i;
406
+ return n === "showCheckbox" ? (r = e.selection) != null && r.multiSelect ? !0 : (i = e.selection) == null ? void 0 : i.showCheckbox : e.selection ? e.selection[n] : e[n];
407
+ }
408
+ }, zn = {
409
+ convertFrom: (e, n, t) => e[n] && e[n].length ? `共 ${e[n].length} 项` : ""
410
+ }, _n = {
411
+ convertFrom: (e, n) => e[n] || "",
412
+ convertTo: (e, n, t) => {
413
+ e[n] = t;
414
+ }
415
+ }, Xn = {
416
+ convertTo: (e, n, t, r) => {
417
+ e.size || (e.size = {}), e.size[n] = t;
418
+ },
419
+ convertFrom: (e, n, t) => e.size ? e.size[n] : e[n]
420
+ }, Hn = {
421
+ convertFrom: (e, n, t) => {
422
+ var r, i;
423
+ return (r = e.formatter) != null && r.data && n === "formatterEnumData" && !e.formatterEnumData ? (i = e.formatter) == null ? void 0 : i.data : e.formatterEnumData;
424
+ }
425
+ }, Jn = {
426
+ convertTo: (e, n, t, r) => {
427
+ e.sort || (e.sort = {}), e.sort[n] = t;
428
+ },
429
+ convertFrom: (e, n, t) => {
430
+ var r, i;
431
+ if (n === "mode")
432
+ return ((r = e.sort) == null ? void 0 : r.mode) || "client";
433
+ if (n === "multiSort")
434
+ return !!((i = e.sort) != null && i.multiSort);
435
+ }
436
+ }, Qn = {
437
+ convertTo: (e, n, t, r) => {
438
+ e.filter || (e.filter = {}), e.filter[n] = t;
439
+ },
440
+ convertFrom: (e, n, t) => {
441
+ var r;
442
+ if (n === "mode")
443
+ return ((r = e.filter) == null ? void 0 : r.mode) || "client";
444
+ }
445
+ }, Yn = {
446
+ convertTo: (e, n, t, r) => {
447
+ e.rowOption ? e.rowOption[n] = t : e.rowOption = {
448
+ [n]: t
449
+ };
450
+ },
451
+ convertFrom: (e, n, t) => {
452
+ if (e.rowOption) {
453
+ if (n === "customRowStyle")
454
+ return e.rowOption.customRowStyle;
455
+ if (n === "customCellStyle")
456
+ return e.rowOption.customCellStyle;
457
+ if (n === "height")
458
+ return e.rowOption.height;
459
+ }
460
+ return "";
461
+ }
462
+ }, Zn = {
463
+ convertTo: (e, n, t, r) => {
464
+ (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[n] = t, n === "columnTemplateType" && t === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
465
+ <span class="f-pretend-link f-cursor-pointer"
466
+ @click="(ctx)=>viewModel.current.${e.onClickLinkCommand || ""}({id: rowData.id,context: ctx})">
467
+ {{rowData.${e.field}}}
468
+ </span>` : e.columnTemplate = `
469
+ <span class="f-pretend-link f-cursor-pointer">
470
+ {{rowData.${e.field}}}
471
+ </span>`), n === "columnTemplateType" && t === "default" && (e.columnTemplate = ""), n === "columnTemplateType" && t === "custom" && (e.columnTemplate = ""));
472
+ },
473
+ convertFrom: (e, n, t) => n === "columnTemplate" ? e.columnTemplate : n === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
474
+ };
475
+ function Kn(e, n, t) {
476
+ const r = /* @__PURE__ */ new Map([
477
+ ["/converter/appearance.converter", Vn],
478
+ ["/converter/buttons.converter", Mn],
479
+ ["/converter/property-editor.converter", Ln],
480
+ ["/converter/items-count.converter", zn],
481
+ ["/converter/type.converter", Nn],
482
+ ["/converter/change-editor.converter", On],
483
+ ["/converter/change-formatter.converter", $n],
484
+ ["/converter/column-command.converter", Rn],
485
+ ["/converter/column-option.converter", Un],
486
+ ["/converter/summary.converter", An],
487
+ ["/converter/group.converter", qn],
488
+ ["/converter/form-group-label.converter", _n],
489
+ ["/converter/field-selector.converter", jn],
490
+ ["/converter/pagination.converter", Dn],
491
+ ["/converter/row-number.converter", Gn],
492
+ ["/converter/grid-selection.converter", Wn],
493
+ ["/converter/size.converter", Xn],
494
+ ["/converter/change-formatter-enum.converter", Hn],
495
+ ["/converter/grid-sort.converter", Jn],
496
+ ["/converter/grid-filter.converter", Qn],
497
+ ["/converter/row-option.converter", Yn],
498
+ ["/converter/change-formatter-type.converter", Zn]
499
+ ]), i = /* @__PURE__ */ new Map([
500
+ ["string", { type: "input-group", enableClear: !1 }],
501
+ ["boolean", {
502
+ type: "combo-list",
503
+ textField: "name",
504
+ valueField: "value",
505
+ idField: "value",
506
+ enableClear: !1,
507
+ editable: !1,
508
+ data: [
509
+ {
510
+ value: !0,
511
+ name: "是"
512
+ },
513
+ {
514
+ value: !1,
515
+ name: "否"
516
+ }
517
+ ]
518
+ }],
519
+ ["enum", { type: "combo-list", maxHeight: 128, enableClear: !1, editable: !1 }],
520
+ ["array", { type: "button-edit" }],
521
+ ["number", { type: "number-spinner", placeholder: "" }],
522
+ ["events-editor", { type: "events-editor", hide: !0 }]
523
+ ]), o = kn();
524
+ function a(l, u) {
525
+ return () => o.parseValueSchema(l, u);
526
+ }
527
+ function g(l, u, h) {
528
+ return l.includes("visible") && u.visible !== void 0 ? typeof u.visible == "boolean" ? () => !!u.visible : u.visible === void 0 ? !0 : a(u.visible, h) : () => !0;
529
+ }
530
+ function d(l, u, h) {
531
+ return l.includes("readonly") && u.readonly !== void 0 ? typeof u.readonly == "boolean" ? () => !!u.readonly : a(u.readonly, h) : () => !1;
532
+ }
533
+ function m(l, u) {
534
+ const h = l.$converter || u;
535
+ return typeof h == "string" && h && r.has(h) ? r.get(h) || null : h || null;
536
+ }
537
+ function p(l, u, h, E, k, U = "", A = "") {
538
+ return Object.keys(l).map((B) => {
539
+ const M = I(1), j = B, N = l[B], T = Object.keys(N), J = N.title, _ = N.type, L = i.get(_) || { type: "input-group", enableClear: !1 }, q = N.editor ? Object.assign({}, L, N.editor) : Object.assign({}, L), O = g(T, N, u), G = d(T, N, u);
540
+ q.readonly = q.readonly === void 0 ? G() : q.readonly;
541
+ const W = N.type === "cascade" ? p(N.properties, u, h, E, k, U, A) : [], Q = !0;
542
+ let z = m(N, A);
543
+ const ie = X({
544
+ get() {
545
+ if (M.value) {
546
+ if (["class", "style"].find((ae) => ae === j) && !z && (z = r.get("/converter/appearance.converter") || null), z && z.convertFrom)
547
+ return z.convertFrom(h, B, k, U);
548
+ const H = h[B];
549
+ return Object.prototype.hasOwnProperty.call(N, "defaultValue") && (H === void 0 || typeof H == "string" && H === "") ? N.type === "boolean" ? N.defaultValue : N.defaultValue || "" : H;
550
+ }
551
+ return null;
552
+ },
553
+ set(H) {
554
+ M.value += 1, z && z.convertTo ? (z.convertTo(E, B, H, k, U), z.convertTo(h, B, H, k, U)) : (E[B] = H, h[B] = H);
555
+ }
556
+ }), { refreshPanelAfterChanged: oe, description: K, isExpand: te, parentPropertyID: ee } = N, se = { propertyID: j, propertyName: J, propertyType: _, propertyValue: ie, editor: q, visible: O, readonly: G, cascadeConfig: W, hideCascadeTitle: Q, refreshPanelAfterChanged: oe, description: K, isExpand: te, parentPropertyID: ee };
557
+ return u[j] = se, se;
558
+ });
559
+ }
560
+ function s(l, u, h = {}) {
561
+ const E = {}, k = e[l];
562
+ return k && k.categories ? Object.keys(k.categories).map((A) => {
563
+ const R = k.categories[A], B = R == null ? void 0 : R.title, M = p(R.properties || {}, E, {}, h, u);
564
+ return { categoryId: A, categoryName: B, properties: M };
565
+ }) : [];
566
+ }
567
+ function c(l, u, h, E, k = "") {
568
+ const U = u.$ref.schema, A = u.$ref.converter, R = h[U], B = R.type, M = t(R), j = {}, N = e[B];
569
+ if (N && N.categories) {
570
+ const T = N.categories[l], J = T == null ? void 0 : T.title;
571
+ A && Object.keys(T.properties).forEach((q) => {
572
+ T.properties[q].$converter = A;
573
+ });
574
+ const _ = (T == null ? void 0 : T.properties) || {}, L = p(_, j, M, R, E, k);
575
+ return { categoryId: l, categoryName: J, properties: L };
576
+ }
577
+ return { categoryId: l, categoryName: "", properties: [] };
578
+ }
579
+ function f(l, u, h, E, k) {
580
+ const U = l.type, A = t(l), R = {};
581
+ let B = k || e[U];
582
+ if (!(B && Object.keys(B).length > 0) && h && h.getPropConfig && (B = h.getPropConfig(E)), B && B.categories) {
583
+ const j = [];
584
+ return Object.keys(B.categories).map((N) => {
585
+ const T = B.categories[N];
586
+ if (T.$ref) {
587
+ j.push(c(N, T, l, u, E));
588
+ return;
589
+ }
590
+ const J = T == null ? void 0 : T.title, _ = T == null ? void 0 : T.tabId, L = T == null ? void 0 : T.tabName, q = T == null ? void 0 : T.hide, O = T == null ? void 0 : T.hideTitle, G = p(T.properties || {}, R, A, l, u, E, T.$converter), { setPropertyRelates: W } = T, Q = T == null ? void 0 : T.parentPropertyID;
591
+ j.push({ categoryId: N, categoryName: J, tabId: _, tabName: L, hide: q, properties: G, hideTitle: O, setPropertyRelates: W, parentPropertyID: Q });
592
+ }), j;
593
+ }
594
+ return [];
595
+ }
596
+ return {
597
+ getPropertyConfigBySchema: f,
598
+ getPropertyConfigByType: s,
599
+ propertyConverterMap: r
600
+ };
601
+ }
602
+ function er(e, n) {
603
+ let t;
604
+ function r(s) {
605
+ const { properties: c, title: f, ignore: l } = s, u = l && Array.isArray(l), h = Object.keys(c).reduce((E, k) => ((!u || !l.find((U) => U === k)) && (E[k] = c[k].type === "object" && c[k].properties ? r(c[k]) : fe(c[k].default)), E), {});
606
+ if (f && (!u || !l.find((E) => E === "id"))) {
607
+ const E = f.toLowerCase().replace(/-/g, "_");
608
+ h.id = `${E}_${Math.random().toString().slice(2, 6)}`;
609
+ }
610
+ return h;
611
+ }
612
+ function i(s) {
613
+ const { properties: c, title: f, required: l } = s;
614
+ if (l && Array.isArray(l)) {
615
+ const u = l.reduce((h, E) => (h[E] = c[E].type === "object" && c[E].properties ? r(c[E]) : fe(c[E].default), h), {});
616
+ if (f && l.find((h) => h === "id")) {
617
+ const h = f.toLowerCase().replace(/-/g, "_");
618
+ u.id = `${h}_${Math.random().toString().slice(2, 6)}`;
619
+ }
620
+ return u;
621
+ }
622
+ return {
623
+ type: f
624
+ };
625
+ }
626
+ function o(s, c = {}, f) {
627
+ const l = e[s];
628
+ if (l) {
629
+ let u = i(l);
630
+ const h = n[s];
631
+ return u = h ? h({ getSchemaByType: o }, u, c, f) : u, t != null && t.appendIdentifyForNewControl && t.appendIdentifyForNewControl(u), u;
632
+ }
633
+ return null;
634
+ }
635
+ function a(s, c) {
636
+ const f = r(c);
637
+ return Object.keys(f).reduce((l, u) => (Object.prototype.hasOwnProperty.call(s, u) && (l[u] && ye(l[u]) && ye(s[u] || !s[u]) ? Object.assign(l[u], s[u] || {}) : l[u] = s[u]), l), f), f;
638
+ }
639
+ function g(s, c) {
640
+ return Object.keys(s).filter((l) => s[l] != null).reduce((l, u) => {
641
+ if (c.has(u)) {
642
+ const h = c.get(u);
643
+ if (typeof h == "string")
644
+ l[h] = s[u];
645
+ else {
646
+ const E = h(u, s[u], s);
647
+ Object.assign(l, E);
648
+ }
649
+ } else
650
+ l[u] = s[u];
651
+ return l;
652
+ }, {});
653
+ }
654
+ function d(s, c, f = /* @__PURE__ */ new Map()) {
655
+ const l = a(s, c);
656
+ return g(l, f);
657
+ }
658
+ function m(s) {
659
+ var f;
660
+ const c = s.type;
661
+ if (c) {
662
+ const l = e[c];
663
+ if (!l)
664
+ return s;
665
+ const u = a(s, l), h = ((f = s.editor) == null ? void 0 : f.type) || "";
666
+ if (h) {
667
+ const E = e[h], k = a(s.editor, E);
668
+ u.editor = k;
669
+ }
670
+ return u;
671
+ }
672
+ return s;
673
+ }
674
+ function p(s) {
675
+ t = s;
676
+ }
677
+ return { getSchemaByType: o, resolveSchemaWithDefaultValue: m, resolveSchemaToProps: d, mappingSchemaToProps: g, setDesignerContext: p };
678
+ }
679
+ const tr = {}, nr = {}, { resolveSchemaWithDefaultValue: rr } = er(tr, nr), ir = {}, or = {}, { getPropertyConfigBySchema: me } = Kn(ir, or, rr), sr = {
39
680
  /** 某一分类下的属性配置 */
40
681
  // as PropType<ElementPropertyConfig>
41
682
  category: { type: Object, default: {} },
@@ -44,513 +685,828 @@ const Ke = {
44
685
  propertyData: { type: Object, default: {} },
45
686
  valueChanged: { type: Function },
46
687
  triggerRefreshPanel: { type: Function }
47
- }, _e = {
688
+ }, ar = {
48
689
  elementConfig: { type: Object, default: {} },
49
690
  category: { type: Object, default: {} }
50
- }, Xe = /* @__PURE__ */ X({
691
+ }, lr = {
692
+ id: { type: String, default: "" },
693
+ customClass: { type: String, default: "" },
694
+ customStyle: { type: String, default: "" },
695
+ /** 筛选组件配置器,具体配置项可查看各组件文档 */
696
+ editor: { type: Object, default: {} },
697
+ label: { type: String, default: "" },
698
+ /** value is uncertain because type is uncertain, default value should not be set */
699
+ modelValue: { type: [String, Boolean, Array, Number], default: null },
700
+ // readonly: { type: Boolean, default: false },
701
+ visible: { type: Boolean, default: !0 },
702
+ required: { type: Boolean, default: !1 },
703
+ showLabel: { type: Boolean, default: !0 },
704
+ /**
705
+ * visible相当于showLabel为true,none相当于showLabel为false
706
+ */
707
+ showLabelType: { type: String, default: "visible" },
708
+ type: { type: String, default: "input-group" },
709
+ componentId: { type: String, default: "" },
710
+ errors: { type: Object, default: null },
711
+ fill: { type: Boolean, default: !1 }
712
+ }, dr = {
713
+ id: { type: String },
714
+ required: { type: Boolean, default: !1 },
715
+ text: { type: String, default: "" },
716
+ title: { type: String },
717
+ valid: { type: Boolean, default: !0 },
718
+ inValidTip: { type: String, default: "" },
719
+ /**
720
+ * 实际支持 'visible'可见 | 'reserve-space' 占位不显示
721
+ */
722
+ showType: { type: String, default: "visible" }
723
+ }, cr = /* @__PURE__ */ re({
724
+ name: "FDynamicFormLabel",
725
+ props: dr,
726
+ emits: [],
727
+ setup(e, n) {
728
+ I(e.title || e.text);
729
+ const t = I(e.required), r = I(e.text), i = I(e.valid), o = I(e.inValidTip);
730
+ Z(() => e.text, () => {
731
+ r.value = e.text;
732
+ }), Z(() => e.required, (p, s) => {
733
+ p !== s && (t.value = p);
734
+ }), Z([() => e.valid, () => e.inValidTip], ([p, s]) => {
735
+ i.value = p, o.value = s;
736
+ });
737
+ const a = X(() => i.value ? r.value : o.value), g = X(() => i.value ? "" : "color:red"), d = X(() => ({
738
+ "col-form-label": !0,
739
+ // 指定必填,当显示模式是隐藏或者没有指定标签名时,宽度不限定
740
+ "f-width-auto": t.value && (e.showType === "none" || !r.value)
741
+ })), m = X(() => e.showType === "force-none" ? !1 : e.showType === "reserve-space" || t.value || !!r.value && e.showType !== "none");
742
+ return () => m.value && w("label", {
743
+ class: d.value,
744
+ title: a.value,
745
+ style: g.value
746
+ }, [!i.value && w("span", {
747
+ class: "f-icon f-icon-warning mr-1",
748
+ style: "color: red; min-width: 16px;",
749
+ title: o.value
750
+ }, null), w("span", {
751
+ class: "farris-label-text"
752
+ }, [t.value && w("span", {
753
+ class: "farris-label-info text-danger"
754
+ }, [Ee("*")]), e.showType === "visible" && r.value])]);
755
+ }
756
+ }), { globalStorageKey: ur } = En(), y = {}, b = {}, C = {}, F = {};
757
+ async function pr() {
758
+ {
759
+ const e = {
760
+ schemaMap: wn,
761
+ propertyConfigSchemaMap: Fn,
762
+ propertyEffectMap: Cn,
763
+ schemaResolverMap: bn
764
+ };
765
+ Ze.register(y, b, C, F), Ye.register(y, b, C, F), Ke.register(y, b, C, F), et.register(y, b, C, F), tt.register(y, b, C, F, e), nt.register(y, b, C, F), be.register(y, b, C, F, e), Ce.register(y, b, C, F, e), be.register(y, b, C, F, e), Ce.register(y, b, C, F, e), rt.register(y, b, C, F, e), it.register(y, b, C, F), ot.register(y, b, C, F), at.register(y, b, C, F, e), st.register(y, b, C, F), lt.register(y, b, C, F, e), dt.register(y, b, C, F, e), ct.register(y, b, C, F), ut.register(y, b, C, F, e), pt.register(y, b, C, F), cn.register(y, b, C, F), mt.register(y, b, C, F), ft.register(y, b, C, F), nn.register(y, b, C, F), vt.register(y, b, C, F), ht.register(y, b, C, F, e), yt.register(y, b, C, F, e), Ct.register(y, b, C, F, e), bt.register(y, b, C, F), Ft.register(y, b, C, F, e), wt.register(y, b, C, F), St.register(y, b, C, F), Et.register(y, b, C, F), Pt.register(y, b, C, F, e), xt.register(y, b, C, F), Tt.register(y, b, C, F, e), It.register(y, b, C, F), kt.register(y, b, C, F), Vt.register(y, b, C, F), Mt.register(y, b, C, F, e), Lt.register(y, b, C, F, e), Bt.register(y, b, C, F), Ot.register(y, b, C, F, e), $t.register(y, b, C, F), Nt.register(y, b, C, F), Kt.register(y, b, C), Rt.register(y, b, C, F), Ut.register(y, b, C, F, e), At.register(y, b, C, F), qt.register(y, b, C, F), jt.register(y, b, C, F), Dt.register(y, b, C, F, e), on.register(y, b, C, F), Gt.register(y, b, C, F, e), Wt.register(y, b, C, F), zt.register(y, b, C, F), _t.register(y, b, C, F, e), Xt.register(y, b, C, F), Ht.register(y, b, C, F), Qt.register(y, b, C, F), Jt.register(y, b, C, F), Yt.register(y, b, C, F), Zt.register(y, b, C, F, e), en.register(y, b, C, F), gt.register(y, b, C, F), tn.register(y, b, C, F), rn.register(y, b, C, F, e), sn.register(y, b, C, F), an.register(y, b, C, F), ln.register(y, b, C, F), dn.register(y, b, C, F), un.register(y, b, C, F), pn.register(y, b, C, F, e), mn.register(y, b, C, F), fn.register(y, b, C, F), gn.register(y, b, C, F), vn.register(y, b, C, F, e), hn.register(y, b, C, F, e), yn.register(y, b, C, F);
766
+ const n = window[ur];
767
+ if (n)
768
+ for (const t in n)
769
+ n[t].createPropsResolver = Sn, n[t].register(y, b, C);
770
+ }
771
+ }
772
+ function mr() {
773
+ pr();
774
+ function e(a) {
775
+ const g = y[a];
776
+ if (!g)
777
+ throw new Error(`Could not find the editor of type '${a}'`);
778
+ return g;
779
+ }
780
+ function n(a, g) {
781
+ const d = b[a];
782
+ return d ? d(g) : {};
783
+ }
784
+ function t(a) {
785
+ switch (a) {
786
+ case "check-box":
787
+ return "onChangeValue";
788
+ case "switch":
789
+ return "onModelValueChanged";
790
+ case "check-group":
791
+ return "onChangeValue";
792
+ case "combo-list":
793
+ case "combo-tree":
794
+ return "onChange";
795
+ case "combo-lookup":
796
+ return "";
797
+ case "year-range":
798
+ case "year-picker":
799
+ case "month-range":
800
+ case "month-picker":
801
+ case "date-range":
802
+ case "datetime-range":
803
+ case "datetime-picker":
804
+ return "onDatePicked";
805
+ case "date-picker":
806
+ return "onUpdate:modelValue";
807
+ case "time-picker":
808
+ return "onValueChange";
809
+ case "input-group":
810
+ return "onChange";
811
+ case "lookup":
812
+ case "sort-condition-editor":
813
+ case "filter-condition-editor":
814
+ case "code-editor":
815
+ case "language-textbox":
816
+ case "rich-text-editor":
817
+ return "onUpdate:modelValue";
818
+ case "number-range":
819
+ return "onValueChange";
820
+ case "number-spinner":
821
+ return "onValueChange";
822
+ case "radio-group":
823
+ return "onChangeValue";
824
+ case "text":
825
+ return "";
826
+ case "events-editor":
827
+ return "onSavedCommandListChanged";
828
+ case "grid-field-editor":
829
+ case "item-collection-editor":
830
+ case "response-form-layout-setting":
831
+ case "response-layout-editor-setting":
832
+ case "response-layout-splitter":
833
+ case "menu-lookup":
834
+ case "json-editor":
835
+ return "onChange";
836
+ case "field-selector":
837
+ case "binding-selector":
838
+ return "onFieldSelected";
839
+ case "schema-selector":
840
+ return "onSchemaSelected";
841
+ case "mapping-editor":
842
+ return "onMappingFieldsChanged";
843
+ case "textarea":
844
+ return "onChange";
845
+ case "query-solution-config":
846
+ case "solution-preset":
847
+ case "filter-bar-config":
848
+ return "onFieldsChanged";
849
+ case "property-editor":
850
+ return "onValueChange";
851
+ case "expression-editor":
852
+ return "onExpressionChanged";
853
+ case "collection-property-editor":
854
+ return "onValueChange";
855
+ default:
856
+ return "onUpdate:modelValue";
857
+ }
858
+ }
859
+ function r(a) {
860
+ switch (a) {
861
+ case "combo-list":
862
+ case "input-group":
863
+ case "textarea":
864
+ return "onClear";
865
+ }
866
+ }
867
+ function i(a) {
868
+ switch (a) {
869
+ case "input-group":
870
+ case "textarea":
871
+ return "onMousedownEvent";
872
+ }
873
+ }
874
+ function o(a) {
875
+ switch (a) {
876
+ case "input-group":
877
+ case "textarea":
878
+ return "onMouseupEvent";
879
+ }
880
+ }
881
+ return { resolveEditorProps: n, resolveEditorType: e, getChangeFunctionName: t, getClearFunctionName: r, getMousedownFunctionName: i, getMouseupFunctionName: o };
882
+ }
883
+ const fr = {
884
+ /**
885
+ * 显示的错误信息
886
+ */
887
+ errors: {
888
+ type: Object,
889
+ default: null
890
+ }
891
+ }, gr = /* @__PURE__ */ re({
892
+ name: "FValidationMessage",
893
+ props: fr,
894
+ emits: [],
895
+ setup(e, n) {
896
+ const t = I(e.errors);
897
+ Z(() => e.errors, (o) => {
898
+ t.value = o;
899
+ });
900
+ const r = I(!0), i = X(() => {
901
+ if (t.value) {
902
+ const o = Object.keys(t.value).map((a) => {
903
+ var g;
904
+ return (g = t.value[a]) == null ? void 0 : g.name;
905
+ });
906
+ return o.length ? o.join(" ") : "";
907
+ }
908
+ return "";
909
+ });
910
+ return () => i.value && w("div", {
911
+ class: "farris-feedback f-state-invalid",
912
+ onClick: () => r.value = !r.value
913
+ }, [!r.value && w("span", {
914
+ class: "f-icon f-icon-message_warning f-feedback-icon"
915
+ }, null), r.value && w("span", {
916
+ class: "f-feedback-message"
917
+ }, [i.value])]);
918
+ }
919
+ }), vr = /* @__PURE__ */ re({
920
+ name: "FDynamicFormGroup",
921
+ props: lr,
922
+ emits: ["change", "update:modelValue"],
923
+ setup(e, n) {
924
+ var _;
925
+ const t = I(e.id), r = I(e.customClass), i = I(e.editor), o = I(e.label), a = I(e.modelValue), g = I(e.readonly), d = I(((_ = e.editor) == null ? void 0 : _.required) || e.required), m = I(e.showLabel), p = I(e.visible);
926
+ I(e.type);
927
+ const s = I(), c = I(e.errors), f = Pn(), l = I(e.editor.type || "input-group"), u = X(() => m.value ? e.showLabelType : "none"), {
928
+ resolveEditorProps: h,
929
+ resolveEditorType: E,
930
+ getChangeFunctionName: k,
931
+ getClearFunctionName: U
932
+ } = mr(), A = X(() => {
933
+ const L = {
934
+ "form-group": !0,
935
+ "farris-form-group": !0,
936
+ "common-group": !0,
937
+ "q-state-readonly": g.value,
938
+ "form-group--in-mobile": f
939
+ };
940
+ return L["form-group--has-" + l.value] = !0, L;
941
+ }), R = X(() => {
942
+ if (e.fill)
943
+ return {
944
+ maxWidth: "none"
945
+ };
946
+ });
947
+ function B(L, q, O) {
948
+ a.value = q !== void 0 ? q : L, n.emit("update:modelValue", a.value), n.emit("change", a.value, {
949
+ newValue: L,
950
+ newModelValue: q,
951
+ parameters: O
952
+ });
953
+ }
954
+ function M() {
955
+ n.emit("update:modelValue", "");
956
+ }
957
+ function j(L) {
958
+ return (...q) => {
959
+ M(), typeof L == "function" && L(...q);
960
+ };
961
+ }
962
+ function N(L) {
963
+ return (q, O, G) => {
964
+ B(q, O, G), typeof L == "function" && L(q, O, G);
965
+ };
966
+ }
967
+ const T = X(() => {
968
+ const L = i.value.type || "input-group", q = E(L), O = h(L, i.value), G = k(L), W = U(i.value.type);
969
+ return W && (O[W] = j(O[W])), G && (O[G] = N(O[G])), (O.id == null || O.id === "") && (O.id = t.value), L === "number-range" && i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" ? (i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" && (O.onBeginValueChange = i.value.onBeginValueChange), i.value.onEndValueChange && typeof i.value.onEndValueChange == "function" && (O.onEndValueChange = i.value.onEndValueChange)) : L === "lookup" && i.value["onUpdate:idValue"] && typeof i.value["onUpdate:idValue"] == "function" ? (O["onUpdate:idValue"] = i.value["onUpdate:idValue"], O.id = t.value) : L === "collection-property-editor" && i.value.onSelectionChange && typeof i.value.onSelectionChange == "function" ? O.onSelectionChange = i.value.onSelectionChange : L === "property-editor" && (O.onBeforeOpenVariables = i.value.onBeforeOpenVariables), () => w(q, ze({
970
+ ref: s
971
+ }, O, {
972
+ modelValue: a.value,
973
+ "onUpdate:modelValue": (Q) => a.value = Q
974
+ }), n.slots);
975
+ });
976
+ function J() {
977
+ return w(gr, {
978
+ id: `${t.value}-validation-message`,
979
+ errors: c.value
980
+ }, null);
981
+ }
982
+ return Z([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([L, q, O, G, W, Q, z, ie, oe, K]) => {
983
+ var te;
984
+ t.value = L, r.value = q, i.value = O, o.value = G, a.value = W, g.value = Q, d.value = ((te = i.value) == null ? void 0 : te.required) || z, m.value = ie, p.value = oe, c.value = K;
985
+ }), n.expose({
986
+ editorRef: s
987
+ }), () => p.value && w("div", {
988
+ id: `${t.value}-form-group`,
989
+ class: r.value,
990
+ style: e.customStyle
991
+ }, [w("div", {
992
+ class: "farris-group-wrap",
993
+ style: R.value
994
+ }, [w("div", {
995
+ class: A.value
996
+ }, [w(cr, {
997
+ id: `${t.value}-lable`,
998
+ showType: u.value,
999
+ required: d.value,
1000
+ text: o.value,
1001
+ title: o.value
1002
+ }, null), w("div", {
1003
+ class: "farris-input-wrap"
1004
+ }, [T.value(), J()])])])]);
1005
+ }
1006
+ }), hr = /* @__PURE__ */ re({
51
1007
  name: "FPropertyPanelItem",
52
- props: _e,
1008
+ props: ar,
53
1009
  emits: ["propertyChange", "triggerRefreshPanel"],
54
- setup(d, n) {
55
- var a;
56
- const e = F((a = d.category) == null ? void 0 : a.categoryId), i = F(d.elementConfig.propertyID), t = F(d.elementConfig.propertyName);
57
- F(d.elementConfig.editor);
58
- const s = F(d.elementConfig.propertyValue), r = se(() => {
59
- const h = d.elementConfig.visible;
1010
+ setup(e, n) {
1011
+ var s;
1012
+ const t = I((s = e.category) == null ? void 0 : s.categoryId), r = I(e.elementConfig.propertyID), i = I(e.elementConfig.propertyName);
1013
+ I(e.elementConfig.editor);
1014
+ const o = I(e.elementConfig.propertyValue), a = X(() => {
1015
+ const c = e.elementConfig.visible;
60
1016
  return {
61
1017
  "farris-group-wrap": !0,
62
1018
  "property-item": !0,
63
- "d-none": !(typeof h == "boolean" ? h : h === void 0 ? !0 : h())
1019
+ "d-none": !(typeof c == "boolean" ? c : c === void 0 ? !0 : c())
64
1020
  };
65
1021
  });
66
- D(() => {
67
- var h;
68
- return (h = d.elementConfig) == null ? void 0 : h.propertyValue;
69
- }, (h) => {
70
- s.value = h;
71
- }), D(() => {
72
- var h;
73
- return (h = d.elementConfig) == null ? void 0 : h.propertyName;
74
- }, (h) => {
75
- t.value = h;
1022
+ Z(() => {
1023
+ var c;
1024
+ return (c = e.elementConfig) == null ? void 0 : c.propertyValue;
1025
+ }, (c) => {
1026
+ o.value = c;
1027
+ }), Z(() => {
1028
+ var c;
1029
+ return (c = e.elementConfig) == null ? void 0 : c.propertyName;
1030
+ }, (c) => {
1031
+ i.value = c;
76
1032
  });
77
- function g(h, u) {
1033
+ function g(c, f) {
78
1034
  const {
79
- parameters: c
80
- } = u;
81
- d.elementConfig.propertyValue = h;
82
- const b = {
83
- propertyID: d.elementConfig.propertyID,
84
- propertyValue: h
1035
+ parameters: l
1036
+ } = f;
1037
+ e.elementConfig.propertyValue = c;
1038
+ const u = {
1039
+ propertyID: e.elementConfig.propertyID,
1040
+ propertyValue: c
85
1041
  };
86
- n.emit("propertyChange", b, c), d.elementConfig.refreshPanelAfterChanged && n.emit("triggerRefreshPanel");
1042
+ n.emit("propertyChange", u, l), e.elementConfig.refreshPanelAfterChanged && n.emit("triggerRefreshPanel");
87
1043
  }
88
- const o = d.elementConfig.description ? `<div style="color: gray; "> 描述 :${d.elementConfig.description}</div>` : "", f = Ue({
1044
+ const d = e.elementConfig.description ? `<div style="color: gray; "> 描述 :${e.elementConfig.description}</div>` : "", m = _e({
89
1045
  content: `
90
1046
  <div>
91
- <div style="color: black; ">${d.elementConfig.propertyName}</div>
92
- <div style="color: gray; ">ID:${d.elementConfig.propertyID}</div>
93
- ${o}
1047
+ <div style="color: black; ">${e.elementConfig.propertyName}</div>
1048
+ <div style="color: gray; ">ID:${e.elementConfig.propertyID}</div>
1049
+ ${d}
94
1050
  </div>`,
95
1051
  placement: "left"
96
- }), p = F("");
97
- return p.value = `${e.value}-${i.value}`, () => m("div", {
98
- class: r.value
99
- }, [d.elementConfig.propertyName && re(m("label", {
1052
+ }), p = I("");
1053
+ return p.value = `${t.value}-${r.value}`, () => w("div", {
1054
+ class: a.value
1055
+ }, [e.elementConfig.propertyName && Pe(w("label", {
100
1056
  class: `col-form-label ${p.value}`
101
- }, [m("span", {
1057
+ }, [w("span", {
102
1058
  class: "farris-label-text"
103
- }, [t.value])]), [[$e("tooltip"), f]]), m(qe, {
1059
+ }, [i.value])]), [[Xe("tooltip"), m]]), w(vr, {
104
1060
  id: p.value,
105
1061
  showLabel: !1,
106
- editor: d.elementConfig.editor,
107
- modelValue: s.value,
1062
+ editor: e.elementConfig.editor,
1063
+ modelValue: o.value,
108
1064
  onChange: g,
109
- editorParams: d.elementConfig.editorParams
1065
+ editorParams: e.elementConfig.editorParams
110
1066
  }, null)]);
111
1067
  }
112
- }), He = /* @__PURE__ */ X({
1068
+ }), yr = /* @__PURE__ */ re({
113
1069
  name: "FPropertyPanelItemList",
114
- props: ze,
1070
+ props: sr,
115
1071
  emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
116
- setup(d, n) {
117
- const e = F(d.category);
118
- function i(u) {
119
- if (!u.hideCascadeTitle)
120
- return m("div", {
1072
+ setup(e, n) {
1073
+ const t = I(e.category);
1074
+ function r(f) {
1075
+ if (!f.hideCascadeTitle)
1076
+ return w("div", {
121
1077
  class: "farris-input-wrap"
122
- }, [m("input", {
1078
+ }, [w("input", {
123
1079
  title: "summary",
124
1080
  type: "input",
125
1081
  class: "form-control form-control-sm",
126
- value: u.cascadeSummary,
1082
+ value: f.cascadeSummary,
127
1083
  readonly: !0
128
1084
  }, null)]);
129
1085
  }
130
- function t(u, c) {
131
- c.isExpand = !c.isExpand;
1086
+ function i(f, l) {
1087
+ l.isExpand = !l.isExpand;
132
1088
  }
133
- function s(u) {
134
- return m("div", {
1089
+ function o(f) {
1090
+ return w("div", {
135
1091
  class: "landscape"
136
- }, [m("button", {
1092
+ }, [w("button", {
137
1093
  title: "expand-button",
138
1094
  class: ["btn f-btn-collapse-expand f-btn-mx px-1", {
139
- "f-state-expand": u.isExpand
1095
+ "f-state-expand": f.isExpand
140
1096
  }],
141
- onClick: (c) => t(c, u)
142
- }, [m("span", null, null)])]);
1097
+ onClick: (l) => i(l, f)
1098
+ }, [w("span", null, null)])]);
143
1099
  }
144
- function r(u) {
145
- return m("div", {
146
- class: `f-section-formgroup-legend ${e.value.categoryId}-${u.propertyID}`
147
- }, [m("div", {
1100
+ function a(f) {
1101
+ return w("div", {
1102
+ class: `f-section-formgroup-legend ${t.value.categoryId}-${f.propertyID}`
1103
+ }, [w("div", {
148
1104
  class: "f-header px-0 my-0 col-form-label",
149
1105
  style: "font-size: inherit;"
150
- }, [m("div", {
1106
+ }, [w("div", {
151
1107
  class: "wrap"
152
- }, [m("span", {
1108
+ }, [w("span", {
153
1109
  class: ["f-icon mr-1", {
154
- "f-icon-arrow-60-right": !u.isExpand,
155
- "f-icon-arrow-60-down": u.isExpand
1110
+ "f-icon-arrow-60-right": !f.isExpand,
1111
+ "f-icon-arrow-60-down": f.isExpand
156
1112
  }]
157
- }, null), m("span", {
1113
+ }, null), w("span", {
158
1114
  class: "farris-label-text"
159
- }, [u.propertyName])])])]);
1115
+ }, [f.propertyName])])])]);
160
1116
  }
161
- function g(u) {
162
- return `${d.categoryKey}_${u.propertyID}`;
1117
+ function g(f) {
1118
+ return `${e.categoryKey}_${f.propertyID}`;
163
1119
  }
164
- function o(u, c) {
165
- u.categoryId = e.value.categoryId, e.value.enableCascade && (u.propertyPath = e.value.parentPropertyID), e.value.setPropertyRelates && e.value.setPropertyRelates(u, d.propertyData, c), n.emit("valueChanged", {
166
- changeObject: u
1120
+ function d(f, l) {
1121
+ f.categoryId = t.value.categoryId, t.value.enableCascade && (f.propertyPath = t.value.parentPropertyID), t.value.setPropertyRelates && t.value.setPropertyRelates(f, e.propertyData, l), n.emit("valueChanged", {
1122
+ changeObject: f
167
1123
  });
168
1124
  }
169
- function f() {
1125
+ function m() {
170
1126
  n.emit("triggerRefreshPanel");
171
1127
  }
172
- function p(u) {
173
- return m("div", {
1128
+ function p(f) {
1129
+ return w("div", {
174
1130
  class: "px-2 mb-2"
175
- }, [m(Xe, {
176
- key: g(u),
177
- elementConfig: u,
178
- category: e.value,
179
- onPropertyChange: o,
180
- onTriggerRefreshPanel: f
1131
+ }, [w(hr, {
1132
+ key: g(f),
1133
+ elementConfig: f,
1134
+ category: t.value,
1135
+ onPropertyChange: d,
1136
+ onTriggerRefreshPanel: m
181
1137
  }, null)]);
182
1138
  }
183
- function a(u) {
184
- var c;
185
- return m("div", {
1139
+ function s(f) {
1140
+ var l;
1141
+ return w("div", {
186
1142
  class: "propertyCascadeItem farris-panel px-2 mb-2"
187
- }, [m("div", {
1143
+ }, [w("div", {
188
1144
  class: ["farris-panel-item card", {
189
- hidden: !u.isExpand
1145
+ hidden: !f.isExpand
190
1146
  }]
191
- }, [m("div", {
1147
+ }, [w("div", {
192
1148
  class: "card-header",
193
- onClick: (b) => t(b, u)
194
- }, [m("div", {
1149
+ onClick: (u) => i(u, f)
1150
+ }, [w("div", {
195
1151
  class: "panel-item-title"
196
- }, [m("div", {
1152
+ }, [w("div", {
197
1153
  class: "form-group farris-form-group line-item"
198
- }, [r(u), i(u), s(u)])])]), m("div", {
1154
+ }, [a(f), r(f), o(f)])])]), w("div", {
199
1155
  class: ["card-body", {
200
- hidden: !u.isExpand
1156
+ hidden: !f.isExpand
201
1157
  }]
202
- }, [(c = u.cascadeConfig) == null ? void 0 : c.map((b) => p(b))])])]);
1158
+ }, [(l = f.cascadeConfig) == null ? void 0 : l.map((u) => p(u))])])]);
203
1159
  }
204
- D(() => d.category, () => {
205
- e.value = d.category;
1160
+ Z(() => e.category, () => {
1161
+ t.value = e.category;
206
1162
  });
207
- function h(u) {
208
- return u.propertyType === "cascade" ? a : p;
1163
+ function c(f) {
1164
+ return f.propertyType === "cascade" ? s : p;
209
1165
  }
210
- return () => m(oe, null, [e.value.properties.map((u) => h(u)(u))]);
1166
+ return () => w(xe, null, [t.value.properties.map((f) => c(f)(f))]);
211
1167
  }
212
- }), ne = /* @__PURE__ */ X({
1168
+ }), we = /* @__PURE__ */ re({
213
1169
  name: "FPropertyPanel",
214
- props: Ke,
1170
+ props: In,
215
1171
  emits: ["propertyChanged"],
216
- setup(d, n) {
217
- const e = F(d.width), i = F(d.isWidePanel), t = F(d.enableSearch), s = F(d.mode), r = F(d.isPersitOpenState), g = F(d.isShowPanel), o = F(), f = F(), p = F(d.showCloseBtn), a = F(d.selectedTabId), h = F(!0), u = F(d.isWhiteTheme);
218
- let c = [], b = [];
219
- const E = F(""), x = F(), M = F(), L = ee("SchemaService");
220
- let k = [], S = null, N = "";
221
- const P = F(), U = F(0), K = se(() => c.map((C) => !C.hide).length === 1), B = ee("designerContext");
222
- function de() {
223
- b = [], P.value && P.value.categoryList && Array.isArray(P.value.categoryList) && P.value.categoryList.length > 0 && P.value.categoryList.forEach((v) => {
224
- if (v.properties && Array.isArray(v.properties) && v.properties.length > 0) {
225
- const y = v.properties.map((w) => (w.category = v, w.propertyType === "cascade" && w.cascadeConfig && w.cascadeConfig.map((V) => {
226
- V.category = v, V.cascadeParent = w, b = b.concat(V);
227
- }), w));
228
- b = b.concat(y);
1172
+ setup(e, n) {
1173
+ const t = I(e.width), r = I(e.isWidePanel), i = I(e.enableSearch), o = I(e.mode), a = I(e.isPersitOpenState), g = I(e.isShowPanel), d = I(), m = I(), p = I(e.showCloseBtn), s = I(e.selectedTabId), c = I(!0), f = I(e.isWhiteTheme);
1174
+ let l = [], u = [];
1175
+ const h = I(""), E = I(), k = I(), U = ve("SchemaService");
1176
+ let A = [], R = null, B = "";
1177
+ const M = I(), j = I(0), N = X(() => l.map((x) => !x.hide).length === 1), T = ve("designerContext");
1178
+ function J() {
1179
+ u = [], M.value && M.value.categoryList && Array.isArray(M.value.categoryList) && M.value.categoryList.length > 0 && M.value.categoryList.forEach((P) => {
1180
+ if (P.properties && Array.isArray(P.properties) && P.properties.length > 0) {
1181
+ const S = P.properties.map(($) => ($.category = P, $.propertyType === "cascade" && $.cascadeConfig && $.cascadeConfig.map((D) => {
1182
+ D.category = P, D.cascadeParent = $, u = u.concat(D);
1183
+ }), $));
1184
+ u = u.concat(S);
229
1185
  }
230
1186
  });
231
1187
  }
232
- function H(C) {
233
- let v = C.offsetTop, y = C.offsetParent;
234
- for (; y !== null; )
235
- v += y.offsetTop, y = y.offsetParent;
236
- return v;
237
- }
238
- function ce(C, v) {
239
- C && v && Object.keys(v).length > 0 && Object.keys(v).forEach((y) => {
240
- var V;
241
- const w = v[y];
242
- (V = C.style) == null || V.setProperty(y, w);
1188
+ function _(x) {
1189
+ let P = x.offsetTop, S = x.offsetParent;
1190
+ for (; S !== null; )
1191
+ P += S.offsetTop, S = S.offsetParent;
1192
+ return P;
1193
+ }
1194
+ function L(x, P) {
1195
+ x && P && Object.keys(P).length > 0 && Object.keys(P).forEach((S) => {
1196
+ var D;
1197
+ const $ = P[S];
1198
+ (D = x.style) == null || D.setProperty(S, $);
243
1199
  });
244
1200
  }
245
- function ue() {
246
- return b.filter((v) => {
247
- if (typeof v.visible == "function" && !v.visible() || typeof v.visible == "boolean" && !v.visible)
1201
+ function q() {
1202
+ return u.filter((P) => {
1203
+ if (typeof P.visible == "function" && !P.visible() || typeof P.visible == "boolean" && !P.visible)
248
1204
  return !1;
249
- const y = v.propertyID.toLowerCase(), w = v.propertyName.toLowerCase();
250
- return !!(y && y.includes(E.value.toLowerCase()) || w && w.includes(E.value.toLowerCase()));
1205
+ const S = P.propertyID.toLowerCase(), $ = P.propertyName.toLowerCase();
1206
+ return !!(S && S.includes(h.value.toLowerCase()) || $ && $.includes(h.value.toLowerCase()));
251
1207
  });
252
1208
  }
253
- function J(C, v, y) {
254
- if (C === 0) {
255
- const w = H(v), R = H(y) - w - 5;
256
- v == null || v.scroll({
257
- top: R,
1209
+ function O(x, P, S) {
1210
+ if (x === 0) {
1211
+ const $ = _(P), le = _(S) - $ - 5;
1212
+ P == null || P.scroll({
1213
+ top: le,
258
1214
  behavior: "smooth"
259
1215
  });
260
1216
  }
261
1217
  }
262
- function Q(C) {
263
- k && k.length > 0 && (k.forEach((y) => {
264
- y.style.cssText = "";
265
- }), k = []);
266
- const v = M.value;
267
- if (!E.value)
268
- x.value && v && (v.scrollTop = 0);
269
- else if (de(), b && b.length > 0) {
270
- const y = ue();
271
- y && y.length > 0 && setTimeout(() => {
272
- let w = null, V = -1, R = !1;
273
- y.forEach((T, Te) => {
274
- const Be = T.propertyType === "cascade" ? `.${T.category.categoryId}-${T.propertyID} .farris-label-text` : `.property-item .${T.category.categoryId}-${T.propertyID}.col-form-label`, q = document.querySelector(Be);
275
- q && (T.category.status !== "open" && (T.category.status = "open", R = V < 0), T.cascadeParent && (T.cascadeParent.isExpand = !0), V < 0 && (w = q, V = Te), ce(q, {
1218
+ function G(x) {
1219
+ A && A.length > 0 && (A.forEach((S) => {
1220
+ S.style.cssText = "";
1221
+ }), A = []);
1222
+ const P = k.value;
1223
+ if (!h.value)
1224
+ E.value && P && (P.scrollTop = 0);
1225
+ else if (J(), u && u.length > 0) {
1226
+ const S = q();
1227
+ S && S.length > 0 && setTimeout(() => {
1228
+ let $ = null, D = -1, le = !1;
1229
+ S.forEach((Y, je) => {
1230
+ const De = Y.propertyType === "cascade" ? `.${Y.category.categoryId}-${Y.propertyID} .farris-label-text` : `.property-item .${Y.category.categoryId}-${Y.propertyID}.col-form-label`, de = document.querySelector(De);
1231
+ de && (Y.category.status !== "open" && (Y.category.status = "open", le = D < 0), Y.cascadeParent && (Y.cascadeParent.isExpand = !0), D < 0 && ($ = de, D = je), L(de, {
276
1232
  color: "#5B89FE"
277
- }), k.push(q));
278
- }), V > -1 && (R ? le(() => {
279
- J(V, v, w);
280
- }) : J(V, v, w));
1233
+ }), A.push(de));
1234
+ }), D > -1 && (le ? Te(() => {
1235
+ O(D, P, $);
1236
+ }) : O(D, P, $));
281
1237
  }, 50);
282
1238
  }
283
1239
  }
284
- function A(C) {
285
- Q();
1240
+ function W(x) {
1241
+ G();
286
1242
  }
287
- const pe = We(A, 200);
288
- function fe(C) {
1243
+ const Q = Qe(W, 200);
1244
+ function z(x) {
289
1245
  const {
290
- value: v
291
- } = C.target;
292
- pe(v);
1246
+ value: P
1247
+ } = x.target;
1248
+ Q(P);
293
1249
  }
294
- function ge(C) {
295
- A(E.value);
1250
+ function ie(x) {
1251
+ W(h.value);
296
1252
  }
297
- function he() {
298
- r.value || (h.value = !1), n.emit("closePropertyPanel");
1253
+ function oe() {
1254
+ a.value || (c.value = !1), n.emit("closePropertyPanel");
299
1255
  }
300
- function z(C) {
301
- E.value = "", Q();
1256
+ function K(x) {
1257
+ h.value = "", G();
302
1258
  }
303
- function me(C) {
304
- !C.status || C.status === "open" ? C.status = "closed" : C.status = "open";
1259
+ function te(x) {
1260
+ !x.status || x.status === "open" ? x.status = "closed" : x.status = "open";
305
1261
  }
306
- function O() {
307
- var C, v;
308
- if (c = [], !o.value || o.value.length === 0) {
309
- c = [{
1262
+ function ee() {
1263
+ var x, P;
1264
+ if (l = [], !d.value || d.value.length === 0) {
1265
+ l = [{
310
1266
  tabId: "default",
311
1267
  tabName: "属性",
312
1268
  categoryList: []
313
- }], P.value = null;
1269
+ }], M.value = null;
314
1270
  return;
315
1271
  }
316
- if ((C = o == null ? void 0 : o.value) == null || C.forEach((y) => {
317
- if (y.tabId) {
318
- const w = c.find((V) => V.tabId === y.tabId);
319
- w ? (w.categoryList.push(y), w.hide && (w.hide = y.hide || y.properties.length === 0)) : c.push({
320
- tabId: y.tabId,
321
- tabName: y.tabName,
322
- categoryList: [y],
323
- hide: y.hide || y.properties.length === 0
1272
+ if ((x = d == null ? void 0 : d.value) == null || x.forEach((S) => {
1273
+ if (S.tabId) {
1274
+ const $ = l.find((D) => D.tabId === S.tabId);
1275
+ $ ? ($.categoryList.push(S), $.hide && ($.hide = S.hide || S.properties.length === 0)) : l.push({
1276
+ tabId: S.tabId,
1277
+ tabName: S.tabName,
1278
+ categoryList: [S],
1279
+ hide: S.hide || S.properties.length === 0
324
1280
  });
325
1281
  } else {
326
- const w = c.find((V) => V.tabId === "default");
327
- w ? w.categoryList.push(y) : c.push({
1282
+ const $ = l.find((D) => D.tabId === "default");
1283
+ $ ? $.categoryList.push(S) : l.push({
328
1284
  tabId: "default",
329
1285
  tabName: "属性",
330
- categoryList: [y]
1286
+ categoryList: [S]
331
1287
  });
332
1288
  }
333
- }), a.value) {
334
- const y = c == null ? void 0 : c.find((w) => w.tabId === a.value && !w.hide);
335
- P.value = y || c[0];
1289
+ }), s.value) {
1290
+ const S = l == null ? void 0 : l.find(($) => $.tabId === s.value && !$.hide);
1291
+ M.value = S || l[0];
336
1292
  } else
337
- P.value = c[0];
338
- a.value = (v = P.value) == null ? void 0 : v.tabId;
1293
+ M.value = l[0];
1294
+ s.value = (P = M.value) == null ? void 0 : P.tabId;
339
1295
  }
340
- D(() => [d.schema, d.isShowPanel], () => {
341
- f.value = d.schema, !d.schema || !d.schema.type ? o.value = [] : (o.value = _(f.value, L, S, N), B.filterPropertyEntity && (o.value = B.filterPropertyEntity(o.value, f.value))), O(), z(E.value), U.value++;
342
- }), te(() => {
343
- O();
1296
+ Z(() => [e.schema, e.isShowPanel], () => {
1297
+ m.value = e.schema, !e.schema || !e.schema.type ? d.value = [] : (d.value = me(m.value, U, R, B), T.filterPropertyEntity && (d.value = T.filterPropertyEntity(d.value, m.value))), ee(), K(h.value), j.value++;
1298
+ }), he(() => {
1299
+ ee();
344
1300
  });
345
- function ye(C, v, y = !0) {
346
- (!f.value || v) && (f.value = v || d.schema), o.value = _(f.value, L, S, N, C), B.filterPropertyEntity && (o.value = B.filterPropertyEntity(o.value, f.value)), O(), t.value && z(E.value), y && U.value++;
1301
+ function se(x, P, S = !0) {
1302
+ (!m.value || P) && (m.value = P || e.schema), d.value = me(m.value, U, R, B, x), T.filterPropertyEntity && (d.value = T.filterPropertyEntity(d.value, m.value)), ee(), i.value && K(h.value), S && j.value++;
347
1303
  }
348
- function ve(C, v) {
349
- S = C, N = v;
1304
+ function H(x, P) {
1305
+ R = x, B = P;
350
1306
  }
351
- function Y() {
352
- s.value = s.value === "panel" ? "sidebar" : "panel", s.value === "panel" ? (setTimeout(() => {
353
- A();
354
- }, 100), e.value = "300px") : e.value = "41px";
1307
+ function ae() {
1308
+ o.value = o.value === "panel" ? "sidebar" : "panel", o.value === "panel" ? (setTimeout(() => {
1309
+ W();
1310
+ }, 100), t.value = "300px") : t.value = "41px";
355
1311
  }
356
- function be() {
1312
+ function ke() {
357
1313
  if (p.value)
358
- return m("div", {
1314
+ return w("div", {
359
1315
  class: "title-actions"
360
- }, [m("div", {
1316
+ }, [w("div", {
361
1317
  class: "monaco-toolbar"
362
- }, [m("div", {
1318
+ }, [w("div", {
363
1319
  class: "monaco-action-bar animated"
364
- }, [m("ul", {
1320
+ }, [w("ul", {
365
1321
  class: "actions-container",
366
1322
  role: "toolbar"
367
- }, [m("li", {
1323
+ }, [w("li", {
368
1324
  class: "action-item",
369
- onClick: he
370
- }, [m("span", {
1325
+ onClick: oe
1326
+ }, [w("span", {
371
1327
  class: "f-icon f-icon-close"
372
1328
  }, null)])])])])]);
373
1329
  }
374
- function Z() {
375
- o.value = _(f.value, L, S, N), B.filterPropertyEntity && (o.value = B.filterPropertyEntity(o.value, f.value)), O();
1330
+ function ge() {
1331
+ d.value = me(m.value, U, R, B), T.filterPropertyEntity && (d.value = T.filterPropertyEntity(d.value, m.value)), ee();
376
1332
  }
377
- function Ce() {
378
- var C;
379
- if (t.value && ((C = P.value) == null ? void 0 : C.tabId) !== "commands")
380
- return m("div", {
1333
+ function Ve() {
1334
+ var x;
1335
+ if (i.value && ((x = M.value) == null ? void 0 : x.tabId) !== "commands")
1336
+ return w("div", {
381
1337
  class: "search"
382
- }, [m("div", {
1338
+ }, [w("div", {
383
1339
  class: "input-group f-state-editable border-left-0 border-right-0"
384
- }, [re(m("input", {
1340
+ }, [Pe(w("input", {
385
1341
  class: "form-control f-utils-fill text-left pt-3 pb-3 textbox",
386
1342
  type: "text",
387
1343
  placeholder: "输入属性名称或编号快速定位",
388
1344
  autocomplete: "off",
389
- onKeyup: (v) => fe(v),
390
- "onUpdate:modelValue": (v) => E.value = v
391
- }, null), [[Oe, E.value]]), m("div", {
1345
+ onKeyup: (P) => z(P),
1346
+ "onUpdate:modelValue": (P) => h.value = P
1347
+ }, null), [[Je, h.value]]), w("div", {
392
1348
  class: "input-group-append",
393
1349
  style: "margin-left: 0px; background:none;"
394
- }, [m("span", {
1350
+ }, [w("span", {
395
1351
  class: "input-group-text input-group-clear",
396
1352
  style: [{
397
- display: E.value && E.value.length > 0 ? "" : "none"
1353
+ display: h.value && h.value.length > 0 ? "" : "none"
398
1354
  }],
399
- onClick: (v) => z()
400
- }, [m("i", {
1355
+ onClick: (P) => K()
1356
+ }, [w("i", {
401
1357
  class: "f-icon modal_close"
402
- }, null)]), m("span", {
1358
+ }, null)]), w("span", {
403
1359
  class: "input-group-text input-group-clear",
404
- onClick: (v) => ge()
405
- }, [m("i", {
1360
+ onClick: (P) => ie()
1361
+ }, [w("i", {
406
1362
  class: "f-icon f-icon-search"
407
1363
  }, null)])])])]);
408
1364
  }
409
- function Ie(C) {
410
- return `${d.propertyName}_${C.categoryId}`;
1365
+ function Me(x) {
1366
+ return `${e.propertyName}_${x.categoryId}`;
411
1367
  }
412
- function Ee(C) {
1368
+ function Le(x) {
413
1369
  n.emit("propertyChanged", {
414
- ...C,
415
- designerItem: S
1370
+ ...x,
1371
+ designerItem: R
416
1372
  });
417
1373
  }
418
- function we() {
419
- var C, v;
420
- if (P.value)
421
- return m("div", {
1374
+ function Be() {
1375
+ var x, P;
1376
+ if (M.value)
1377
+ return w("div", {
422
1378
  class: "panel-body",
423
- ref: M
424
- }, [m("ul", {
1379
+ ref: k
1380
+ }, [w("ul", {
425
1381
  class: ["property-grid", {
426
- "wide-panel": i.value
1382
+ "wide-panel": r.value
427
1383
  }]
428
- }, [(v = (C = P.value) == null ? void 0 : C.categoryList) == null ? void 0 : v.map((y) => !y.hide && m("li", {
429
- key: Ie(y),
430
- "data-category-id": y == null ? void 0 : y.categoryId
431
- }, [!y.hideTitle && m("span", {
1384
+ }, [(P = (x = M.value) == null ? void 0 : x.categoryList) == null ? void 0 : P.map((S) => !S.hide && w("li", {
1385
+ key: Me(S),
1386
+ "data-category-id": S == null ? void 0 : S.categoryId
1387
+ }, [!S.hideTitle && w("span", {
432
1388
  class: "group-label",
433
- onClick: () => me(y)
434
- }, [m("span", {
1389
+ onClick: () => te(S)
1390
+ }, [w("span", {
435
1391
  class: ["f-icon mr-2", {
436
- "f-legend-show": y.status === "closed"
1392
+ "f-legend-show": S.status === "closed"
437
1393
  }, {
438
- "f-legend-collapse": y.status === "open" || y.status === void 0
1394
+ "f-legend-collapse": S.status === "open" || S.status === void 0
439
1395
  }]
440
- }, null), y.categoryName]), m("div", {
441
- hidden: y.status === "closed"
442
- }, [m(He, {
443
- key: `${y == null ? void 0 : y.categoryId}-${U.value}`,
444
- category: y,
445
- propertyData: f.value,
446
- onTriggerRefreshPanel: Z,
447
- onValueChanged: Ee
1396
+ }, null), S.categoryName]), w("div", {
1397
+ hidden: S.status === "closed"
1398
+ }, [w(yr, {
1399
+ key: `${S == null ? void 0 : S.categoryId}-${j.value}`,
1400
+ category: S,
1401
+ propertyData: m.value,
1402
+ onTriggerRefreshPanel: ge,
1403
+ onValueChanged: Le
448
1404
  }, null)])]))])]);
449
1405
  }
450
- function Fe() {
451
- if (s.value === "sidebar")
452
- return m("div", {
1406
+ function Ne() {
1407
+ if (o.value === "sidebar")
1408
+ return w("div", {
453
1409
  class: "side-panel h-100",
454
- onClick: Y
455
- }, [m("i", {
1410
+ onClick: ae
1411
+ }, [w("i", {
456
1412
  class: "f-icon f-icon-engineering w-100 icon"
457
- }, null), m("span", null, [Re("属性")])]);
1413
+ }, null), w("span", null, [Ee("属性")])]);
458
1414
  }
459
- function Pe() {
1415
+ function Oe() {
460
1416
  return {
461
- display: h.value ? "block" : "none",
462
- width: e.value
1417
+ display: c.value ? "block" : "none",
1418
+ width: t.value
463
1419
  };
464
1420
  }
465
- function xe() {
466
- return m("div", {
1421
+ function $e() {
1422
+ return w("div", {
467
1423
  class: "switcher"
468
- }, [m("i", {
1424
+ }, [w("i", {
469
1425
  class: "f-icon f-icon-exhale-discount",
470
1426
  style: [{
471
- transform: s.value === "sidebar" ? "none" : "rotate(180deg)"
1427
+ transform: o.value === "sidebar" ? "none" : "rotate(180deg)"
472
1428
  }],
473
- onClick: Y
1429
+ onClick: ae
474
1430
  }, null)]);
475
1431
  }
476
- function Ve(C) {
477
- P.value && P.value.tabId === C.tabId || (P.value = C, a.value = P.value.tabId, E.value = "");
1432
+ function Re(x) {
1433
+ M.value && M.value.tabId === x.tabId || (M.value = x, s.value = M.value.tabId, h.value = "");
478
1434
  }
479
- function Me() {
480
- return c.map((C) => m("div", {
1435
+ function Ue() {
1436
+ return l.map((x) => w("div", {
481
1437
  class: ["title-label", {
482
- active: P.value && P.value.tabId === C.tabId
1438
+ active: M.value && M.value.tabId === x.tabId
483
1439
  }, {
484
- "d-none": C.hide
1440
+ "d-none": x.hide
485
1441
  }],
486
- onClick: () => Ve(C)
487
- }, [m("span", null, [C.tabName])]));
1442
+ onClick: () => Re(x)
1443
+ }, [w("span", null, [x.tabName])]));
488
1444
  }
489
- te(() => {
490
- A(E.value);
491
- }), Ae(() => {
492
- r.value && (h.value = g.value), O(), A(E.value);
1445
+ he(() => {
1446
+ W(h.value);
1447
+ }), He(() => {
1448
+ a.value && (c.value = g.value), ee(), W(h.value);
493
1449
  });
494
- function Se() {
495
- U.value++;
1450
+ function Ae() {
1451
+ j.value++;
496
1452
  }
497
- function ke() {
498
- Z();
1453
+ function qe() {
1454
+ ge();
499
1455
  }
500
1456
  return n.expose({
501
- updatePropertyConfig: ye,
502
- updateDesignerItem: ve,
503
- reloadPropertyPanel: Se,
504
- refreshPanel: ke
505
- }), () => m(oe, null, [m("div", {
506
- ref: x,
1457
+ updatePropertyConfig: se,
1458
+ updateDesignerItem: H,
1459
+ reloadPropertyPanel: Ae,
1460
+ refreshPanel: qe
1461
+ }), () => w(xe, null, [w("div", {
1462
+ ref: E,
507
1463
  class: ["property-panel", {
508
- "white-theme": u.value
1464
+ "white-theme": f.value
509
1465
  }],
510
- style: Pe()
511
- }, [m("div", {
1466
+ style: Oe()
1467
+ }, [w("div", {
512
1468
  class: "propertyPanel panel flex-column",
513
- hidden: s.value !== "panel"
514
- }, [m("div", {
1469
+ hidden: o.value !== "panel"
1470
+ }, [w("div", {
515
1471
  class: ["title d-flex", {
516
1472
  "p-right": p.value
517
1473
  }, {
518
- only: K.value
1474
+ only: N.value
519
1475
  }]
520
- }, [Me(), be()]), Ce(), we()]), xe(), Fe()])]);
1476
+ }, [Ue(), ke()]), Ve(), Be()]), $e(), Ne()])]);
521
1477
  }
522
1478
  });
523
- function Je(d) {
524
- const { formSchemaUtils: n, formStateMachineUtils: e } = d;
525
- function i(o, f = "") {
1479
+ function br(e) {
1480
+ const { formSchemaUtils: n, formStateMachineUtils: t } = e;
1481
+ function r(d, m = "") {
526
1482
  return {
527
- path: f + o.code,
528
- field: o.id,
529
- fullPath: o.code
1483
+ path: m + d.code,
1484
+ field: d.id,
1485
+ fullPath: d.code
530
1486
  };
531
1487
  }
532
- function t(o, f = "") {
533
- const p = n.getViewModelById(o);
534
- return p ? p.states.map((a) => i(a, f)) : [];
1488
+ function i(d, m = "") {
1489
+ const p = n.getViewModelById(d);
1490
+ return p ? p.states.map((s) => r(s, m)) : [];
535
1491
  }
536
- function s(o) {
537
- const f = n.getRootViewModelId(), p = t(o);
538
- if (o === f)
1492
+ function o(d) {
1493
+ const m = n.getRootViewModelId(), p = i(d);
1494
+ if (d === m)
539
1495
  return p;
540
- const a = t(f, "root-component.");
541
- return [...p, ...a];
1496
+ const s = i(m, "root-component.");
1497
+ return [...p, ...s];
542
1498
  }
543
- function r(o) {
544
- return o.binding && o.binding.path || o.id || "";
1499
+ function a(d) {
1500
+ return d.binding && d.binding.path || d.id || "";
545
1501
  }
546
1502
  function g() {
547
- return e && e.getRenderStates() || [];
1503
+ return t && t.getRenderStates() || [];
548
1504
  }
549
- return { getVariables: s, getControlName: r, getStateMachines: g };
1505
+ return { getVariables: o, getControlName: a, getStateMachines: g };
550
1506
  }
551
- class ae {
1507
+ class Ie {
552
1508
  constructor(n) {
553
- I(this, "sessionVariables", [
1509
+ V(this, "sessionVariables", [
554
1510
  {
555
1511
  key: "CurrentSysOrgName",
556
1512
  name: "当前组织Name",
@@ -587,7 +1543,7 @@ class ae {
587
1543
  description: "当前登录的语言编号,例如简体中文返回'zh-CHS',英文返回'en',繁体中文'zh-CHT'"
588
1544
  }
589
1545
  ]);
590
- I(this, "expressionNames", {
1546
+ V(this, "expressionNames", {
591
1547
  compute: "计算表达式",
592
1548
  dependency: "依赖表达式",
593
1549
  validate: "验证表达式",
@@ -596,102 +1552,102 @@ class ae {
596
1552
  readonly: "只读表达式",
597
1553
  required: "必填表达式"
598
1554
  });
599
- I(this, "getExpressionConverter", (n, e) => ({
600
- convertFrom: (i, t, s, r) => {
601
- const g = s.getExpressionRuleValue(n, e || t);
1555
+ V(this, "getExpressionConverter", (n, t) => ({
1556
+ convertFrom: (r, i, o, a) => {
1557
+ const g = o.getExpressionRuleValue(n, t || i);
602
1558
  return g && g.value || "";
603
1559
  },
604
- convertTo: (i, t, s, r, g) => {
605
- var o;
606
- if (t === "dataPicking" && (s != null && s.target)) {
607
- const f = `${s.target}_dataPicking`;
608
- ((o = s.rules) == null ? void 0 : o.some(
609
- (a) => a.id === f && a.value
610
- )) ? i.dictPickingExpressionId = f : delete i.dictPickingExpressionId;
1560
+ convertTo: (r, i, o, a, g) => {
1561
+ var d;
1562
+ if (i === "dataPicking" && (o != null && o.target)) {
1563
+ const m = `${o.target}_dataPicking`;
1564
+ ((d = o.rules) == null ? void 0 : d.some(
1565
+ (s) => s.id === m && s.value
1566
+ )) ? r.dictPickingExpressionId = m : delete r.dictPickingExpressionId;
611
1567
  }
612
- r.updateExpression(s);
1568
+ a.updateExpression(o);
613
1569
  }
614
1570
  }));
615
1571
  this.formSchemaService = n;
616
1572
  }
617
- getExpressionRule(n, e) {
618
- const i = this.formSchemaService.getExpressions();
619
- if (!i)
1573
+ getExpressionRule(n, t) {
1574
+ const r = this.formSchemaService.getExpressions();
1575
+ if (!r)
620
1576
  return "";
621
- const t = i.find((r) => r.target === n);
622
- if (!t)
1577
+ const i = r.find((a) => a.target === n);
1578
+ if (!i)
623
1579
  return "";
624
- const s = t.rules.find((r) => r.type === e);
625
- return s || "";
1580
+ const o = i.rules.find((a) => a.type === t);
1581
+ return o || "";
626
1582
  }
627
1583
  // 获取上下文表单变量
628
1584
  getContextFormVariables() {
629
1585
  const { module: n } = this.formSchemaService.getFormSchema();
630
1586
  if (!n.viewmodels || n.viewmodels.length === 0)
631
1587
  return [];
632
- const e = this.formSchemaService.getRootViewModelId(), i = this.formSchemaService.getViewModelById(e);
633
- if (!i || !i.states || i.states.length === 0)
1588
+ const t = this.formSchemaService.getRootViewModelId(), r = this.formSchemaService.getViewModelById(t);
1589
+ if (!r || !r.states || r.states.length === 0)
634
1590
  return [];
635
- const t = [];
636
- return i.states.filter((s) => s.category === "remote").forEach((s) => {
637
- t.push({
638
- key: s.code,
639
- name: s.name,
640
- description: s.name,
641
- category: s.category
1591
+ const i = [];
1592
+ return r.states.filter((o) => o.category === "remote").forEach((o) => {
1593
+ i.push({
1594
+ key: o.code,
1595
+ name: o.name,
1596
+ description: o.name,
1597
+ category: o.category
642
1598
  });
643
- }), t;
1599
+ }), i;
644
1600
  }
645
- createTreeNode(n, e, i = "label") {
1601
+ createTreeNode(n, t, r = "label") {
646
1602
  return {
647
1603
  id: n.id,
648
1604
  name: n.name,
649
- bindingPath: n[i],
650
- parents: e,
1605
+ bindingPath: n[r],
1606
+ parents: t,
651
1607
  type: "field"
652
1608
  };
653
1609
  }
654
- buildEntityFieldsTreeData(n = null, e) {
655
- const i = [];
656
- return n == null || n.forEach((t) => {
1610
+ buildEntityFieldsTreeData(n = null, t) {
1611
+ const r = [];
1612
+ return n == null || n.forEach((i) => {
657
1613
  var g;
658
- const s = this.createTreeNode(t, e);
659
- let r = [];
660
- (g = t.type) != null && g.fields && (r = this.buildEntityFieldsTreeData(t.type.fields, [...e, t.label])), i.push({
661
- data: s,
662
- children: r,
1614
+ const o = this.createTreeNode(i, t);
1615
+ let a = [];
1616
+ (g = i.type) != null && g.fields && (a = this.buildEntityFieldsTreeData(i.type.fields, [...t, i.label])), r.push({
1617
+ data: o,
1618
+ children: a,
663
1619
  expanded: !0
664
1620
  });
665
- }), i;
666
- }
667
- buildChildEntityTreeData(n = null, e) {
668
- const i = [];
669
- return n == null || n.forEach((t) => {
670
- var o, f;
671
- const s = this.createTreeNode(t, e);
672
- s.type = "entity";
673
- const r = this.buildEntityFieldsTreeData((o = t.type) == null ? void 0 : o.fields, [...e, t.label]), g = this.buildChildEntityTreeData((f = t.type) == null ? void 0 : f.entities, [...e, t.label]);
674
- g != null && g.length && (r == null || r.push(...g)), i.push({
675
- data: s,
676
- children: r || [],
1621
+ }), r;
1622
+ }
1623
+ buildChildEntityTreeData(n = null, t) {
1624
+ const r = [];
1625
+ return n == null || n.forEach((i) => {
1626
+ var d, m;
1627
+ const o = this.createTreeNode(i, t);
1628
+ o.type = "entity";
1629
+ const a = this.buildEntityFieldsTreeData((d = i.type) == null ? void 0 : d.fields, [...t, i.label]), g = this.buildChildEntityTreeData((m = i.type) == null ? void 0 : m.entities, [...t, i.label]);
1630
+ g != null && g.length && (a == null || a.push(...g)), r.push({
1631
+ data: o,
1632
+ children: a || [],
677
1633
  // 空值回退
678
1634
  expanded: !0
679
1635
  });
680
- }), i;
1636
+ }), r;
681
1637
  }
682
1638
  getEntitiesTreeData() {
683
1639
  const n = this.formSchemaService.getSchemaEntities();
684
1640
  if (!(n != null && n.length))
685
1641
  return [];
686
- const e = n[0];
687
- if (!(e != null && e.type))
1642
+ const t = n[0];
1643
+ if (!(t != null && t.type))
688
1644
  return [];
689
- const i = this.buildEntityFieldsTreeData(e.type.fields, [e.code]), t = this.buildChildEntityTreeData(e.type.entities, [e.code]);
690
- return t != null && t.length && (i == null || i.push(...t)), {
691
- entityCode: e.code,
1645
+ const r = this.buildEntityFieldsTreeData(t.type.fields, [t.code]), i = this.buildChildEntityTreeData(t.type.entities, [t.code]);
1646
+ return i != null && i.length && (r == null || r.push(...i)), {
1647
+ entityCode: t.code,
692
1648
  fields: [{
693
- data: this.createTreeNode(e, [], "code"),
694
- children: i || []
1649
+ data: this.createTreeNode(t, [], "code"),
1650
+ children: r || []
695
1651
  }]
696
1652
  };
697
1653
  }
@@ -712,147 +1668,147 @@ class ae {
712
1668
  }
713
1669
  };
714
1670
  }
715
- onBeforeOpenExpression(n, e, i) {
716
- const t = i === "Field" ? n.binding.field : n.id, s = this.getExpressionRule(t, e), r = this.getEntitiesAndVariables(), g = {
717
- message: ["validate", "required", "dataPicking"].includes(e) && s ? s.message : "",
718
- ...r
1671
+ onBeforeOpenExpression(n, t, r) {
1672
+ const i = r === "Field" ? n.binding.field : n.id, o = this.getExpressionRule(i, t), a = this.getEntitiesAndVariables(), g = {
1673
+ message: ["validate", "required", "dataPicking"].includes(t) && o ? o.message : "",
1674
+ ...a
719
1675
  };
720
- return s.messageType != null && (g.messageType = s.messageType), g;
1676
+ return o.messageType != null && (g.messageType = o.messageType), g;
721
1677
  }
722
- buildRule(n, e, i, t) {
723
- const { expression: s, message: r, messageType: g } = e, o = {
724
- id: `${n}_${i}`,
725
- type: i,
726
- value: s
1678
+ buildRule(n, t, r, i) {
1679
+ const { expression: o, message: a, messageType: g } = t, d = {
1680
+ id: `${n}_${r}`,
1681
+ type: r,
1682
+ value: o
727
1683
  };
728
- return (i === "validate" || i === "dataPicking" || i === "required") && (o.message = r), i === "dataPicking" && (o.messageType = g), i === "validate" && t && (o.elementId = t), o;
1684
+ return (r === "validate" || r === "dataPicking" || r === "required") && (d.message = a), r === "dataPicking" && (d.messageType = g), r === "validate" && i && (d.elementId = i), d;
729
1685
  }
730
1686
  getExpressionData() {
731
1687
  const { expressions: n } = this.formSchemaService.getFormSchema().module;
732
1688
  return n || [];
733
1689
  }
734
- updateExpression(n, e, i, t) {
735
- const s = e === "Field" ? n.binding.field : n.id, r = this.buildRule(s, i, t, n.type === "form-group" ? n.id : "");
736
- let o = this.getExpressionData().find((p) => p.targetType === e && p.target === s);
737
- const f = (p) => p.value.trim() === "";
738
- if (o) {
739
- const p = o.rules.find((a) => a.id === r.id);
1690
+ updateExpression(n, t, r, i) {
1691
+ const o = t === "Field" ? n.binding.field : n.id, a = this.buildRule(o, r, i, n.type === "form-group" ? n.id : "");
1692
+ let d = this.getExpressionData().find((p) => p.targetType === t && p.target === o);
1693
+ const m = (p) => p.value.trim() === "";
1694
+ if (d) {
1695
+ const p = d.rules.find((s) => s.id === a.id);
740
1696
  if (p)
741
- f(r) ? o.rules = o.rules.filter((a) => a.id !== r.id) : (Object.assign(p, r), t === "validate" && n.type === "form-group" && (p.elementId = n.id));
1697
+ m(a) ? d.rules = d.rules.filter((s) => s.id !== a.id) : (Object.assign(p, a), i === "validate" && n.type === "form-group" && (p.elementId = n.id));
742
1698
  else {
743
- if (f(r))
1699
+ if (m(a))
744
1700
  return null;
745
- o.rules = o.rules || [], o.rules.push(r);
1701
+ d.rules = d.rules || [], d.rules.push(a);
746
1702
  }
747
1703
  } else {
748
- if (f(r))
1704
+ if (m(a))
749
1705
  return null;
750
- o = {
751
- target: `${s}`,
752
- rules: [r],
753
- targetType: e
1706
+ d = {
1707
+ target: `${o}`,
1708
+ rules: [a],
1709
+ targetType: t
754
1710
  };
755
1711
  }
756
- return o;
757
- }
758
- getExpressionEditorOptions(n, e, i, t) {
759
- return i.reduce((s, r) => {
760
- var o, f;
761
- const g = e === "Field" ? (o = n == null ? void 0 : n.binding) == null ? void 0 : o.field : n.id;
762
- return s[r] = {
763
- hide: e === "Field" ? !!((f = n == null ? void 0 : n.binding) != null && f.field) : !1,
1712
+ return d;
1713
+ }
1714
+ getExpressionEditorOptions(n, t, r, i) {
1715
+ return r.reduce((o, a) => {
1716
+ var d, m;
1717
+ const g = t === "Field" ? (d = n == null ? void 0 : n.binding) == null ? void 0 : d.field : n.id;
1718
+ return o[a] = {
1719
+ hide: t === "Field" ? !!((m = n == null ? void 0 : n.binding) != null && m.field) : !1,
764
1720
  description: "",
765
- title: this.expressionNames[r],
1721
+ title: this.expressionNames[a],
766
1722
  type: "string",
767
1723
  $converter: this.getExpressionConverter(g),
768
1724
  refreshPanelAfterChanged: !0,
769
1725
  editor: {
770
1726
  type: "expression-editor",
771
1727
  singleExpand: !1,
772
- dialogTitle: `${this.expressionNames[r]}编辑器`,
773
- showMessage: r === "validate" || r === "dataPicking" || r === "required",
774
- showMessageType: r === "dataPicking",
775
- beforeOpen: () => this.onBeforeOpenExpression(n, r, e),
1728
+ dialogTitle: `${this.expressionNames[a]}编辑器`,
1729
+ showMessage: a === "validate" || a === "dataPicking" || a === "required",
1730
+ showMessageType: a === "dataPicking",
1731
+ beforeOpen: () => this.onBeforeOpenExpression(n, a, t),
776
1732
  onSubmitModal: (p) => {
777
- const a = this.updateExpression(n, e, p, r);
778
- if (t) {
779
- const h = this.buildRule(g, p, r);
780
- t(h);
1733
+ const s = this.updateExpression(n, t, p, a);
1734
+ if (i) {
1735
+ const c = this.buildRule(g, p, a);
1736
+ i(c);
781
1737
  }
782
- return a;
1738
+ return s;
783
1739
  }
784
1740
  }
785
- }, s;
1741
+ }, o;
786
1742
  }, {});
787
1743
  }
788
- getExpressionInfo(n, e, i) {
789
- const t = e === "Field" ? n.binding.field : n.id, s = this.getExpressionRule(t, i), r = {
790
- value: s && s.value,
791
- targetId: t,
792
- targetType: e,
793
- expressionType: i
1744
+ getExpressionInfo(n, t, r) {
1745
+ const i = t === "Field" ? n.binding.field : n.id, o = this.getExpressionRule(i, r), a = {
1746
+ value: o && o.value,
1747
+ targetId: i,
1748
+ targetType: t,
1749
+ expressionType: r
794
1750
  };
795
- return s && s.message && (r.message = s.message), r;
1751
+ return o && o.message && (a.message = o.message), a;
796
1752
  }
797
- getExpressionConfig(n, e, i = ["compute", "dependency", "validate"], t) {
1753
+ getExpressionConfig(n, t, r = ["compute", "dependency", "validate"], i) {
798
1754
  return {
799
1755
  description: "表达式",
800
1756
  title: "表达式",
801
1757
  hide: !n.binding,
802
1758
  properties: {
803
- ...this.getExpressionEditorOptions(n, e, i, t)
1759
+ ...this.getExpressionEditorOptions(n, t, r, i)
804
1760
  }
805
1761
  };
806
1762
  }
807
- getExpressionOptions(n, e, i) {
808
- const t = this.getExpressionInfo(n, e, i);
1763
+ getExpressionOptions(n, t, r) {
1764
+ const i = this.getExpressionInfo(n, t, r);
809
1765
  return {
810
- dialogTitle: `${this.expressionNames[i]}编辑器`,
1766
+ dialogTitle: `${this.expressionNames[r]}编辑器`,
811
1767
  singleExpand: !1,
812
- showMessage: i === "required",
813
- beforeOpen: () => this.onBeforeOpenExpression(n, i, e),
814
- expressionInfo: t
1768
+ showMessage: r === "required",
1769
+ beforeOpen: () => this.onBeforeOpenExpression(n, r, t),
1770
+ expressionInfo: i
815
1771
  };
816
1772
  }
817
1773
  }
818
- class Qe {
819
- constructor(n, e) {
820
- I(this, "componentId");
821
- I(this, "viewModelId");
822
- I(this, "eventsEditorUtils");
823
- I(this, "formSchemaUtils");
824
- I(this, "formMetadataConverter");
825
- I(this, "designViewModelUtils");
826
- I(this, "designViewModelField");
827
- I(this, "controlCreatorUtils");
828
- I(this, "designerHostService");
829
- I(this, "designerContext");
830
- I(this, "schemaService", null);
831
- I(this, "metadataService", null);
832
- I(this, "propertyConfig", {
1774
+ class Cr {
1775
+ constructor(n, t) {
1776
+ V(this, "componentId");
1777
+ V(this, "viewModelId");
1778
+ V(this, "eventsEditorUtils");
1779
+ V(this, "formSchemaUtils");
1780
+ V(this, "formMetadataConverter");
1781
+ V(this, "designViewModelUtils");
1782
+ V(this, "designViewModelField");
1783
+ V(this, "controlCreatorUtils");
1784
+ V(this, "designerHostService");
1785
+ V(this, "designerContext");
1786
+ V(this, "schemaService", null);
1787
+ V(this, "metadataService", null);
1788
+ V(this, "propertyConfig", {
833
1789
  type: "object",
834
1790
  categories: {}
835
1791
  });
836
- var i;
837
- this.componentId = n, this.designerHostService = e, this.eventsEditorUtils = e.eventsEditorUtils, this.formSchemaUtils = e.formSchemaUtils, this.formMetadataConverter = e.formMetadataConverter, this.viewModelId = ((i = this.formSchemaUtils) == null ? void 0 : i.getViewModelIdByComponentId(n)) || "", this.designViewModelUtils = e.designViewModelUtils, this.controlCreatorUtils = e.controlCreatorUtils, this.metadataService = e.metadataService, this.schemaService = e.schemaService, this.designerContext = e.designerContext;
1792
+ var r;
1793
+ this.componentId = n, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(n)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService, this.designerContext = t.designerContext;
838
1794
  }
839
1795
  getFormDesignerInstance() {
840
- var n, e;
841
- return (e = (n = this.designerContext) == null ? void 0 : n.instances) == null ? void 0 : e.formDesigner.value;
1796
+ var n, t;
1797
+ return (t = (n = this.designerContext) == null ? void 0 : n.instances) == null ? void 0 : t.formDesigner.value;
842
1798
  }
843
1799
  getTableInfo() {
844
1800
  var n;
845
1801
  return (n = this.schemaService) == null ? void 0 : n.getTableInfoByViewModelId(this.viewModelId);
846
1802
  }
847
1803
  setDesignViewModelField(n) {
848
- var i;
849
- const e = n.binding && n.binding.type === "Form" && n.binding.field;
850
- if (e) {
1804
+ var r;
1805
+ const t = n.binding && n.binding.type === "Form" && n.binding.field;
1806
+ if (t) {
851
1807
  if (!this.designViewModelField) {
852
- const t = this.designViewModelUtils.getDgViewModel(this.viewModelId);
853
- this.designViewModelField = t.fields.find((s) => s.id === e);
1808
+ const i = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1809
+ this.designViewModelField = i.fields.find((o) => o.id === t);
854
1810
  }
855
- n.updateOn = (i = this.designViewModelField) == null ? void 0 : i.updateOn;
1811
+ n.updateOn = (r = this.designViewModelField) == null ? void 0 : r.updateOn;
856
1812
  }
857
1813
  }
858
1814
  getBasicPropConfig(n) {
@@ -876,17 +1832,17 @@ class Qe {
876
1832
  valueField: "value",
877
1833
  idField: "value",
878
1834
  editable: !1,
879
- data: [{ value: n.type, name: l[n.type] && l[n.type].name }]
1835
+ data: [{ value: n.type, name: v[n.type] && v[n.type].name }]
880
1836
  }
881
1837
  }
882
1838
  }
883
1839
  };
884
1840
  }
885
- getAppearanceConfig(n = null, e = {}, i) {
886
- const t = {
1841
+ getAppearanceConfig(n = null, t = {}, r) {
1842
+ const i = {
887
1843
  title: "外观",
888
1844
  description: "Appearance"
889
- }, s = {
1845
+ }, o = {
890
1846
  class: {
891
1847
  title: "class样式",
892
1848
  type: "string",
@@ -902,21 +1858,21 @@ class Qe {
902
1858
  parentPropertyID: "appearance"
903
1859
  }
904
1860
  };
905
- for (const r in e)
906
- s[r] = Object.assign(s[r] || {}, e[r]);
1861
+ for (const a in t)
1862
+ o[a] = Object.assign(o[a] || {}, t[a]);
907
1863
  return {
908
- ...t,
909
- properties: { ...s },
910
- setPropertyRelates(r, g) {
911
- if (r) {
912
- switch (r && r.propertyID) {
1864
+ ...i,
1865
+ properties: { ...o },
1866
+ setPropertyRelates(a, g) {
1867
+ if (a) {
1868
+ switch (a && a.propertyID) {
913
1869
  case "class":
914
1870
  case "style": {
915
- W.value++;
1871
+ ce.value++;
916
1872
  break;
917
1873
  }
918
1874
  }
919
- i && i(r, n, g);
1875
+ r && r(a, n, g);
920
1876
  }
921
1877
  }
922
1878
  };
@@ -931,49 +1887,49 @@ class Qe {
931
1887
  * @param expressionType 指定表达式类型,存在属性和表达式类型不一致的情况
932
1888
  * @returns
933
1889
  */
934
- getPropertyEditorParams(n, e = [], i = "visible", t = {}, s = {}, r = "") {
935
- const { getVariables: g, getControlName: o, getStateMachines: f } = Je(this.designerHostService), p = this.getRealTargetType(n), a = e && e.length > 0 ? e : ["Const", "Variable", "StateMachine", "Expression"], h = {
1890
+ getPropertyEditorParams(n, t = [], r = "visible", i = {}, o = {}, a = "") {
1891
+ const { getVariables: g, getControlName: d, getStateMachines: m } = br(this.designerHostService), p = this.getRealTargetType(n), s = t && t.length > 0 ? t : ["Const", "Variable", "StateMachine", "Expression"], c = {
936
1892
  type: "property-editor",
937
- propertyTypes: a
1893
+ propertyTypes: s
938
1894
  };
939
- return a.map((u) => {
940
- switch (u) {
1895
+ return s.map((f) => {
1896
+ switch (f) {
941
1897
  case "Const":
942
- Object.assign(h, {
1898
+ Object.assign(c, {
943
1899
  constType: "enum",
944
1900
  constEnums: [{ id: !0, name: "是" }, { id: !1, name: "否" }]
945
- }, t);
1901
+ }, i);
946
1902
  break;
947
1903
  case "Expression":
948
- h.expressionConfig = this.getExpressionOptions(n, p, r || i);
1904
+ c.expressionConfig = this.getExpressionOptions(n, p, a || r);
949
1905
  break;
950
1906
  case "StateMachine":
951
- h.stateMachines = f();
1907
+ c.stateMachines = m();
952
1908
  break;
953
1909
  case "Variable":
954
- Object.assign(h, {
955
- controlName: o(n),
1910
+ Object.assign(c, {
1911
+ controlName: d(n),
956
1912
  newVariablePrefix: "is",
957
1913
  newVariableType: "Boolean",
958
1914
  variables: g(this.viewModelId),
959
1915
  parentComponentId: this.componentId === "root-component" ? "" : "root-component",
960
- onBeforeOpenVariables: (c) => {
961
- c.value = g(this.viewModelId);
1916
+ onBeforeOpenVariables: (l) => {
1917
+ l.value = g(this.viewModelId);
962
1918
  }
963
- }, s), this.designerContext.designerMode === "PC_RTC" && (h.newVariablePrefix = "ext_" + h.newVariablePrefix);
1919
+ }, o), this.designerContext.designerMode === "PC_RTC" && (c.newVariablePrefix = "ext_" + c.newVariablePrefix);
964
1920
  break;
965
1921
  }
966
- }), h;
1922
+ }), c;
967
1923
  }
968
- getVisibleProperty(n, e = "") {
969
- var s;
970
- let i = ["Const", "Variable", "StateMachine", "Expression"];
971
- return e === "gridFieldEditor" ? i = ["Const", "Expression"] : e === "form-group" && !((s = n.binding) != null && s.field) && (i = ["Const", "Variable", "StateMachine"]), {
1924
+ getVisibleProperty(n, t = "") {
1925
+ var o;
1926
+ let r = ["Const", "Variable", "StateMachine", "Expression"];
1927
+ return t === "gridFieldEditor" ? r = ["Const", "Expression"] : t === "form-group" && !((o = n.binding) != null && o.field) && (r = ["Const", "Variable", "StateMachine"]), {
972
1928
  visible: {
973
1929
  title: "是否可见",
974
1930
  type: "boolean",
975
1931
  description: "运行时组件是否可见",
976
- editor: this.getPropertyEditorParams(n, i, "visible")
1932
+ editor: this.getPropertyEditorParams(n, r, "visible")
977
1933
  }
978
1934
  };
979
1935
  }
@@ -983,27 +1939,27 @@ class Qe {
983
1939
  * @param viewModelId
984
1940
  * @returns
985
1941
  */
986
- getBehaviorConfig(n, e = "", i = {}, t) {
987
- const s = {
1942
+ getBehaviorConfig(n, t = "", r = {}, i) {
1943
+ const o = {
988
1944
  title: "行为",
989
1945
  description: ""
990
- }, r = this.getVisibleProperty(n, e);
991
- for (const o in i)
992
- r[o] = Object.assign(r[o] || {}, i[o]);
1946
+ }, a = this.getVisibleProperty(n, t);
1947
+ for (const d in r)
1948
+ a[d] = Object.assign(a[d] || {}, r[d]);
993
1949
  const g = this;
994
1950
  return {
995
- ...s,
996
- properties: { ...r },
997
- setPropertyRelates(o, f) {
998
- if (o) {
999
- switch (o.propertyID) {
1951
+ ...o,
1952
+ properties: { ...a },
1953
+ setPropertyRelates(d, m) {
1954
+ if (d) {
1955
+ switch (d.propertyID) {
1000
1956
  case "disabled":
1001
1957
  case "readonly":
1002
1958
  case "visible":
1003
- g.afterMutilEditorChanged(n, o);
1959
+ g.afterMutilEditorChanged(n, d);
1004
1960
  break;
1005
1961
  }
1006
- t && t(o, f);
1962
+ i && i(d, m);
1007
1963
  }
1008
1964
  }
1009
1965
  };
@@ -1013,8 +1969,8 @@ class Qe {
1013
1969
  * @param propertyData
1014
1970
  * @param changeObject
1015
1971
  */
1016
- afterMutilEditorChanged(n, e) {
1017
- this.addNewVariableToViewModel(e, this.viewModelId), this.updateExpressionValue(e), this.clearExpression(e, n);
1972
+ afterMutilEditorChanged(n, t) {
1973
+ this.addNewVariableToViewModel(t, this.viewModelId), this.updateExpressionValue(t), this.clearExpression(t, n);
1018
1974
  }
1019
1975
  /**
1020
1976
  *
@@ -1022,12 +1978,12 @@ class Qe {
1022
1978
  * @param componentInstance
1023
1979
  * @returns
1024
1980
  */
1025
- updateElementByParentContainer(n, e) {
1026
- const i = e && e.parent && e.parent.schema;
1027
- if (!i)
1981
+ updateElementByParentContainer(n, t) {
1982
+ const r = t && t.parent && t.parent.schema;
1983
+ if (!r)
1028
1984
  return;
1029
- const t = i.contents.findIndex((r) => r.id === n), s = Ge(i.contents[t]);
1030
- i.contents.splice(t, 1), i.contents.splice(t, 0, s), De();
1985
+ const i = r.contents.findIndex((a) => a.id === n), o = fe(r.contents[i]);
1986
+ r.contents.splice(i, 1), r.contents.splice(i, 0, o), Tn();
1031
1987
  }
1032
1988
  /**
1033
1989
  * 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
@@ -1035,41 +1991,41 @@ class Qe {
1035
1991
  * @param viewModelId
1036
1992
  * @returns
1037
1993
  */
1038
- addNewVariableToViewModel(n, e) {
1039
- const i = n.propertyValue;
1040
- if (!(i && typeof i == "object") || !(i.type === "Variable" && i.isNewVariable))
1994
+ addNewVariableToViewModel(n, t) {
1995
+ const r = n.propertyValue;
1996
+ if (!(r && typeof r == "object") || !(r.type === "Variable" && r.isNewVariable))
1041
1997
  return;
1042
- const r = {
1043
- id: i.field,
1998
+ const a = {
1999
+ id: r.field,
1044
2000
  category: "locale",
1045
- code: i.fullPath,
1046
- name: i.fullPath,
1047
- type: i.newVariableType || "String",
2001
+ code: r.fullPath,
2002
+ name: r.fullPath,
2003
+ type: r.newVariableType || "String",
1048
2004
  isRtcVariable: this.designerContext.designerMode === "PC_RTC" ? !0 : void 0
1049
2005
  };
1050
- delete i.newVariableType, delete i.isNewVariable, this.formSchemaUtils.getVariableByCode(r.code) || this.formSchemaUtils.getViewModelById("root-viewmodel").states.push(r);
2006
+ delete r.newVariableType, delete r.isNewVariable, this.formSchemaUtils.getVariableByCode(a.code) || this.formSchemaUtils.getViewModelById("root-viewmodel").states.push(a);
1051
2007
  }
1052
2008
  /**
1053
2009
  * 更新表达式到expressions节点
1054
2010
  * @param changeObject
1055
2011
  */
1056
2012
  updateExpressionValue(n) {
1057
- const e = n.propertyValue;
1058
- if (!((e && e.type) === "Expression" && e.expressionInfo))
2013
+ const t = n.propertyValue;
2014
+ if (!((t && t.type) === "Expression" && t.expressionInfo))
1059
2015
  return;
1060
- const { expressionId: s, expressionInfo: r } = e, { targetId: g, targetType: o, expressionType: f, value: p, message: a } = r, h = this.formSchemaUtils.getModule();
1061
- h.expressions = h.expressions || [];
1062
- const { expressions: u } = h;
1063
- let c = u.find((E) => E.target === g);
1064
- c || (c = { target: g, rules: [], targetType: o }, u.push(c));
1065
- const b = c.rules.find((E) => E.type === f);
1066
- if (b)
1067
- b.value = p, b.message = a;
2016
+ const { expressionId: o, expressionInfo: a } = t, { targetId: g, targetType: d, expressionType: m, value: p, message: s } = a, c = this.formSchemaUtils.getModule();
2017
+ c.expressions = c.expressions || [];
2018
+ const { expressions: f } = c;
2019
+ let l = f.find((h) => h.target === g);
2020
+ l || (l = { target: g, rules: [], targetType: d }, f.push(l));
2021
+ const u = l.rules.find((h) => h.type === m);
2022
+ if (u)
2023
+ u.value = p, u.message = s;
1068
2024
  else {
1069
- const E = { id: s, type: f, value: p, message: a };
1070
- c.rules.push(E);
2025
+ const h = { id: o, type: m, value: p, message: s };
2026
+ l.rules.push(h);
1071
2027
  }
1072
- delete e.expressionInfo;
2028
+ delete t.expressionInfo;
1073
2029
  }
1074
2030
  /**
1075
2031
  * 属性类型切换为非表达式后,清除原表达式
@@ -1077,55 +2033,55 @@ class Qe {
1077
2033
  * @param propertyData
1078
2034
  * @returns
1079
2035
  */
1080
- clearExpression(n, e) {
1081
- const i = n.propertyValue;
1082
- if (i && i.type === "Expression")
2036
+ clearExpression(n, t) {
2037
+ const r = n.propertyValue;
2038
+ if (r && r.type === "Expression")
1083
2039
  return;
1084
- const s = n.propertyID, r = this.formSchemaUtils.getExpressions(), g = e.binding ? e.binding.field : e.id, o = r.find((f) => f.target === g);
1085
- !o || !o.rules || (o.rules = o.rules.filter((f) => f.type !== s));
2040
+ const o = n.propertyID, a = this.formSchemaUtils.getExpressions(), g = t.binding ? t.binding.field : t.id, d = a.find((m) => m.target === g);
2041
+ !d || !d.rules || (d.rules = d.rules.filter((m) => m.type !== o));
1086
2042
  }
1087
- getExpressionOptions(n, e, i) {
1088
- return new ae(this.formSchemaUtils).getExpressionOptions(n, e, i);
2043
+ getExpressionOptions(n, t, r) {
2044
+ return new Ie(this.formSchemaUtils).getExpressionOptions(n, t, r);
1089
2045
  }
1090
2046
  getRealTargetType(n) {
1091
2047
  return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item", "drawer-toolbar-item"].indexOf(n.type) > -1 ? "Button" : n.binding && n.binding.field ? "Field" : "Container";
1092
2048
  }
1093
2049
  createBaseEventProperty(n) {
1094
- const e = {};
1095
- return e[this.viewModelId] = {
2050
+ const t = {};
2051
+ return t[this.viewModelId] = {
1096
2052
  type: "events-editor",
1097
2053
  editor: {
1098
2054
  initialData: n,
1099
- viewSourceHandle: (i) => {
1100
- var t;
1101
- ((t = i.controller) == null ? void 0 : t.label.indexOf(this.formSchemaUtils.getModule().code)) > -1 && this.eventsEditorUtils.jumpToMethod(i);
2055
+ viewSourceHandle: (r) => {
2056
+ var i;
2057
+ ((i = r.controller) == null ? void 0 : i.label.indexOf(this.formSchemaUtils.getModule().code)) > -1 && this.eventsEditorUtils.jumpToMethod(r);
1102
2058
  }
1103
2059
  }
1104
- }, e;
2060
+ }, t;
1105
2061
  }
1106
2062
  }
1107
- const $ = class $ {
2063
+ const ne = class ne {
1108
2064
  /**
1109
2065
  * 根据绑定字段类型获取可用的输入类控件
1110
2066
  */
1111
- static getEditorTypesByMDataType(n, e = !1, i = "") {
1112
- if (e)
1113
- return [{ key: l["language-textbox"].type, value: l["language-textbox"].name }];
1114
- let t = $.fieldControlTypeMapping[n];
1115
- if (i === "data-grid-column" && (t != null && t.length)) {
1116
- const s = [l["check-group"].type, l["radio-group"].type, l.image.type, l["rich-text-editor"].type];
1117
- t = t.filter((r) => !s.includes(r.key));
2067
+ static getEditorTypesByMDataType(n, t = !1, r = "") {
2068
+ if (t)
2069
+ return [{ key: v["language-textbox"].type, value: v["language-textbox"].name }];
2070
+ let i = ne.fieldControlTypeMapping[n];
2071
+ if (r === "data-grid-column" && (i != null && i.length)) {
2072
+ const o = [v["check-group"].type, v["radio-group"].type, v.image.type, v["rich-text-editor"].type];
2073
+ i = i.filter((a) => !o.includes(a.key));
1118
2074
  }
1119
- return t;
2075
+ return i;
1120
2076
  }
1121
2077
  /**
1122
2078
  * 获取所有输入类控件
1123
2079
  */
1124
2080
  static getAllInputTypes() {
1125
2081
  const n = [];
1126
- for (const e in $.fieldControlTypeMapping)
1127
- $.fieldControlTypeMapping[e].forEach((i) => {
1128
- n.find((t) => t.key === i.key && t.value === i.value) || n.push({ key: i.key, value: i.value });
2082
+ for (const t in ne.fieldControlTypeMapping)
2083
+ ne.fieldControlTypeMapping[t].forEach((r) => {
2084
+ n.find((i) => i.key === r.key && i.value === r.value) || n.push({ key: r.key, value: r.value });
1129
2085
  });
1130
2086
  return n;
1131
2087
  }
@@ -1133,205 +2089,212 @@ const $ = class $ {
1133
2089
  * 提供schema字段基础属性和DOM控件属性的映射
1134
2090
  * @param control 控件元数据
1135
2091
  */
1136
- static mappingDomPropAndSchemaProp(n, e) {
1137
- var s;
1138
- const i = (s = n.editor) == null ? void 0 : s.type, t = [];
1139
- return (n.type === l["data-grid-column"].type || n.type === l["tree-grid-column"].type) && e && e.categoryId && e.categoryId.indexOf("gridFieldEditor") < 0 && t.push({ domField: "title", schemaField: "name" }), t.push({ domField: "label", schemaField: "name" }), t.push({ domField: "editor.required", schemaField: "require" }), t.push({ domField: "editor.readonly", schemaField: "readonly" }), (i === l["input-group"].type || i === l.textarea.type || i === l["number-spinner"].type) && t.push({ domField: "editor.maxLength", schemaField: "type.length" }), i === l["number-spinner"].type && t.push({ domField: "editor.precision", schemaField: "type.precision" }), (n.type === l["data-grid-column"].type || n.type === l["tree-grid-column"].type) && t.push({ domField: "formatter.precision", schemaField: "type.precision" }), (i === l["combo-list"].type || i === l["radio-group"].type) && t.push({ domField: "editor.data", schemaField: "type.enumValues" }), (n.type === l["data-grid-column"].type || n.type === l["tree-grid-column"].type) && t.push({ domField: "formatter.data", schemaField: "type.enumValues" }), i === l["date-picker"].type && (t.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), t.push({ domField: "editor.fieldType", schemaField: "type.name" })), i === l["number-spinner"].type && (t.push({ domField: "editor.max", schemaField: "editor.maxValue" }), t.push({ domField: "editor.min", schemaField: "editor.minValue" })), i === l.lookup.type && (t.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), t.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), t.push({ domField: "editor.textField", schemaField: "editor.textField" }), t.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), t.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), t.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), t.push({ domField: "path", schemaField: "bindingPath" }), t.push({ domField: "binding.path", schemaField: "bindingField" }), t.push({ domField: "binding.fullPath", schemaField: "path" }), (n.type === l["data-grid-column"].type || n.type === l["tree-grid-column"].type) && t.push({ domField: "field", schemaField: "bindingPath" }), t;
2092
+ static mappingDomPropAndSchemaProp(n, t) {
2093
+ var o;
2094
+ const r = (o = n.editor) == null ? void 0 : o.type, i = [];
2095
+ return (n.type === v["data-grid-column"].type || n.type === v["tree-grid-column"].type) && t && t.categoryId && t.categoryId.indexOf("gridFieldEditor") < 0 && i.push({ domField: "title", schemaField: "name" }), i.push({ domField: "label", schemaField: "name" }), i.push({ domField: "editor.required", schemaField: "require" }), i.push({ domField: "editor.readonly", schemaField: "readonly" }), (r === v["input-group"].type || r === v.textarea.type || r === v["number-spinner"].type) && i.push({ domField: "editor.maxLength", schemaField: "type.length" }), r === v["number-spinner"].type && i.push({ domField: "editor.precision", schemaField: "type.precision" }), (n.type === v["data-grid-column"].type || n.type === v["tree-grid-column"].type) && i.push({ domField: "formatter.precision", schemaField: "type.precision" }), (r === v["combo-list"].type || r === v["radio-group"].type) && i.push({ domField: "editor.data", schemaField: "type.enumValues" }), (n.type === v["data-grid-column"].type || n.type === v["tree-grid-column"].type) && i.push({ domField: "formatter.data", schemaField: "type.enumValues" }), r === v["date-picker"].type && (i.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), i.push({ domField: "editor.fieldType", schemaField: "type.name" })), r === v["number-spinner"].type && (i.push({ domField: "editor.max", schemaField: "editor.maxValue" }), i.push({ domField: "editor.min", schemaField: "editor.minValue" })), r === v.lookup.type && (i.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), i.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), i.push({ domField: "editor.textField", schemaField: "editor.textField" }), i.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), i.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), i.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), i.push({ domField: "path", schemaField: "bindingPath" }), i.push({ domField: "binding.path", schemaField: "bindingField" }), i.push({ domField: "binding.fullPath", schemaField: "path" }), (n.type === v["data-grid-column"].type || n.type === v["tree-grid-column"].type) && i.push({ domField: "field", schemaField: "bindingPath" }), i;
1140
2096
  }
1141
2097
  };
1142
2098
  /**
1143
2099
  * <字段类型,可配置的控件类型列表>的映射
1144
2100
  */
1145
- I($, "fieldControlTypeMapping", {
2101
+ V(ne, "fieldControlTypeMapping", {
1146
2102
  String: [
1147
- { key: l["input-group"].type, value: l["input-group"].name },
1148
- { key: l.lookup.type, value: l.lookup.name },
1149
- { key: l.image.type, value: l.image.name },
1150
- { key: l["date-picker"].type, value: l["date-picker"].name },
1151
- { key: l.switch.type, value: l.switch.name },
1152
- { key: l["check-box"].type, value: l["check-box"].name },
1153
- { key: l["check-group"].type, value: l["check-group"].name },
1154
- { key: l["radio-group"].type, value: l["radio-group"].name },
1155
- { key: l["combo-list"].type, value: l["combo-list"].name },
1156
- { key: l.textarea.type, value: l.textarea.name },
1157
- { key: l["time-picker"].type, value: l["time-picker"].name }
2103
+ { key: v["input-group"].type, value: v["input-group"].name },
2104
+ { key: v.lookup.type, value: v.lookup.name },
2105
+ { key: v.image.type, value: v.image.name },
2106
+ { key: v["date-picker"].type, value: v["date-picker"].name },
2107
+ { key: v.switch.type, value: v.switch.name },
2108
+ { key: v["check-box"].type, value: v["check-box"].name },
2109
+ { key: v["check-group"].type, value: v["check-group"].name },
2110
+ { key: v["radio-group"].type, value: v["radio-group"].name },
2111
+ { key: v["combo-list"].type, value: v["combo-list"].name },
2112
+ { key: v.textarea.type, value: v.textarea.name },
2113
+ { key: v["time-picker"].type, value: v["time-picker"].name }
1158
2114
  ],
1159
2115
  Text: [
1160
- { key: l.textarea.type, value: l.textarea.name },
1161
- { key: l.lookup.type, value: l.lookup.name },
1162
- { key: l.image.type, value: l.image.name },
1163
- { key: l["rich-text-editor"].type, value: l["rich-text-editor"].name }
2116
+ { key: v.textarea.type, value: v.textarea.name },
2117
+ { key: v.lookup.type, value: v.lookup.name },
2118
+ { key: v.image.type, value: v.image.name },
2119
+ { key: v["rich-text-editor"].type, value: v["rich-text-editor"].name }
1164
2120
  ],
1165
2121
  Decimal: [
1166
- { key: l["number-spinner"].type, value: l["number-spinner"].name }
2122
+ { key: v["number-spinner"].type, value: v["number-spinner"].name }
1167
2123
  ],
1168
2124
  Integer: [
1169
- { key: l["number-spinner"].type, value: l["number-spinner"].name }
2125
+ { key: v["number-spinner"].type, value: v["number-spinner"].name }
1170
2126
  ],
1171
2127
  Number: [
1172
- { key: l["number-spinner"].type, value: l["number-spinner"].name },
1173
- { key: l.switch.type, value: l.switch.name },
1174
- { key: l["check-box"].type, value: l["check-box"].name }
2128
+ { key: v["number-spinner"].type, value: v["number-spinner"].name },
2129
+ { key: v.switch.type, value: v.switch.name },
2130
+ { key: v["check-box"].type, value: v["check-box"].name }
1175
2131
  ],
1176
2132
  BigNumber: [
1177
- { key: l["number-spinner"].type, value: l["number-spinner"].name }
2133
+ { key: v["number-spinner"].type, value: v["number-spinner"].name }
1178
2134
  ],
1179
2135
  Date: [
1180
- { key: l["date-picker"].type, value: l["date-picker"].name }
2136
+ { key: v["date-picker"].type, value: v["date-picker"].name }
1181
2137
  ],
1182
2138
  DateTime: [
1183
- { key: l["date-picker"].type, value: l["date-picker"].name }
2139
+ { key: v["date-picker"].type, value: v["date-picker"].name }
1184
2140
  ],
1185
2141
  Boolean: [
1186
- { key: l.switch.type, value: l.switch.name },
1187
- { key: l["check-box"].type, value: l["check-box"].name }
2142
+ { key: v.switch.type, value: v.switch.name },
2143
+ { key: v["check-box"].type, value: v["check-box"].name }
1188
2144
  ],
1189
2145
  Enum: [
1190
- { key: l["combo-list"].type, value: l["combo-list"].name },
1191
- { key: l["radio-group"].type, value: l["radio-group"].name }
2146
+ { key: v["combo-list"].type, value: v["combo-list"].name },
2147
+ { key: v["radio-group"].type, value: v["radio-group"].name }
1192
2148
  ],
1193
2149
  Object: [
1194
- { key: l.lookup.type, value: l.lookup.name },
1195
- { key: l["combo-list"].type, value: l["combo-list"].name },
1196
- { key: l["radio-group"].type, value: l["radio-group"].name }
2150
+ { key: v.lookup.type, value: v.lookup.name },
2151
+ { key: v["combo-list"].type, value: v["combo-list"].name },
2152
+ { key: v["radio-group"].type, value: v["radio-group"].name }
1197
2153
  ]
1198
2154
  });
1199
- let j = $;
1200
- var Ye = /* @__PURE__ */ ((d) => (d.string = "string", d.boolean = "boolean", d.number = "number", d.select = "select", d.boolOrExp = "boolOrExp", d.editableSelect = "editableSelect", d.multiSelect = "multiSelect", d.date = "date", d.datetime = "datetime", d.modal = "modal", d.cascade = "cascade", d.custom = "custom", d.unity = "unity", d.events = "events", d.switch = "switch", d.multiLanguage = "multiLanguage", d))(Ye || {}), G = /* @__PURE__ */ ((d) => (d.Form = "Form", d.Variable = "Variable", d))(G || {});
1201
- class Ze {
2155
+ let pe = ne;
2156
+ var Fr = /* @__PURE__ */ ((e) => (e.string = "string", e.boolean = "boolean", e.number = "number", e.select = "select", e.boolOrExp = "boolOrExp", e.editableSelect = "editableSelect", e.multiSelect = "multiSelect", e.date = "date", e.datetime = "datetime", e.modal = "modal", e.cascade = "cascade", e.custom = "custom", e.unity = "unity", e.events = "events", e.switch = "switch", e.multiLanguage = "multiLanguage", e))(Fr || {}), ue = /* @__PURE__ */ ((e) => (e.Form = "Form", e.Variable = "Variable", e))(ue || {});
2157
+ class Se {
1202
2158
  constructor() {
1203
2159
  /** 控件标题 */
1204
- I(this, "label", "");
2160
+ V(this, "label", "");
1205
2161
  /** 控件id */
1206
- I(this, "id", "");
2162
+ V(this, "id", "");
1207
2163
  /** 每个控件占用的栅格数 */
1208
- I(this, "columnInSM", 12);
1209
- I(this, "columnInMD", 6);
1210
- I(this, "columnInLG", 3);
1211
- I(this, "columnInEL", 2);
2164
+ V(this, "columnInSM", 12);
2165
+ V(this, "columnInMD", 6);
2166
+ V(this, "columnInLG", 3);
2167
+ V(this, "columnInEL", 2);
1212
2168
  /** 每个控件占用的列数 */
1213
- I(this, "displayWidthInSM", 1);
1214
- I(this, "displayWidthInMD", 1);
1215
- I(this, "displayWidthInLG", 1);
1216
- I(this, "displayWidthInEL", 1);
2169
+ V(this, "displayWidthInSM", 1);
2170
+ V(this, "displayWidthInMD", 1);
2171
+ V(this, "displayWidthInLG", 1);
2172
+ V(this, "displayWidthInEL", 1);
1217
2173
  /** 编辑器内部默认显示的屏幕大小-----可以去掉 */
1218
- I(this, "displayColumnCountAtBreakPoint", "md");
2174
+ V(this, "displayColumnCountAtBreakPoint", "md");
1219
2175
  /** 控件所在行,传0即可-----编辑器内部使用 */
1220
- I(this, "tagRow", 0);
2176
+ V(this, "tagRow", 0);
1221
2177
  /** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
1222
- I(this, "showTopBorder", 0);
2178
+ V(this, "showTopBorder", 0);
1223
2179
  /** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
1224
- I(this, "group", 1);
2180
+ V(this, "group", 1);
1225
2181
  /** 控件是否符合标准的class配置(设计器用的) */
1226
- I(this, "isSupportedClass", !0);
2182
+ V(this, "isSupportedClass", !0);
1227
2183
  /** 控件所在分组id(设计器用的) */
1228
- I(this, "fieldSetId", "");
2184
+ V(this, "fieldSetId", "");
1229
2185
  }
1230
2186
  }
1231
- function et(d) {
1232
- let n, e;
1233
- const i = /* @__PURE__ */ new Map();
1234
- let t = [];
1235
- function s(p, a) {
1236
- const u = p.split(" ").filter((M) => M.startsWith("col-"));
1237
- if (u.length === 0) {
1238
- a.isSupportedClass = !1;
2187
+ function wr(e) {
2188
+ let n, t;
2189
+ const r = /* @__PURE__ */ new Map();
2190
+ let i = [];
2191
+ function o(p, s) {
2192
+ const f = ((p == null ? void 0 : p.split(" ")) || []).filter((k) => k.startsWith("col-"));
2193
+ if (f.length === 0) {
2194
+ s.isSupportedClass = !1;
1239
2195
  return;
1240
2196
  }
1241
- let c = u.find((M) => /^col-([1-9]|10|11|12)$/.test(M)), b = u.find((M) => /^col-md-([1-9]|10|11|12)$/.test(M)), E = u.find((M) => /^col-xl-([1-9]|10|11|12)$/.test(M)), x = u.find((M) => /^col-el-([1-9]|10|11|12)$/.test(M));
1242
- c = c || "col-12", a.columnInSM = parseInt(c.replace("col-", ""), 10), a.displayWidthInSM = a.columnInSM / 12, a.displayWidthInSM !== 1 && (a.isSupportedClass = !1), b = b || "col-md-" + a.columnInSM, a.columnInMD = parseInt(b.replace("col-md-", ""), 10), a.displayWidthInMD = a.columnInMD / 6, [1, 2].includes(a.displayWidthInMD) || (a.isSupportedClass = !1), E = E || "col-xl-" + a.columnInMD, a.columnInLG = parseInt(E.replace("col-xl-", ""), 10), a.displayWidthInLG = a.columnInLG / 3, [1, 2, 3, 4].includes(a.displayWidthInLG) || (a.isSupportedClass = !1), x = x || "col-el-" + a.columnInLG, a.columnInEL = parseInt(x.replace("col-el-", ""), 10), a.displayWidthInEL = a.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(a.displayWidthInEL) || (a.isSupportedClass = !1);
1243
- }
1244
- function r(p, a, h, u = !1) {
1245
- let c = !1;
1246
- p.contents.forEach((b) => {
1247
- if (b.type === "fieldset") {
1248
- h += 1, r(b, a, h, !0), c = !0;
2197
+ let l = f.find((k) => /^col-([1-9]|10|11|12)$/.test(k)), u = f.find((k) => /^col-md-([1-9]|10|11|12)$/.test(k)), h = f.find((k) => /^col-xl-([1-9]|10|11|12)$/.test(k)), E = f.find((k) => /^col-el-([1-9]|10|11|12)$/.test(k));
2198
+ l = l || "col-12", s.columnInSM = parseInt(l.replace("col-", ""), 10), s.displayWidthInSM = s.columnInSM / 12, s.displayWidthInSM !== 1 && (s.isSupportedClass = !1), u = u || "col-md-" + s.columnInSM, s.columnInMD = parseInt(u.replace("col-md-", ""), 10), s.displayWidthInMD = s.columnInMD / 6, [1, 2].includes(s.displayWidthInMD) || (s.isSupportedClass = !1), h = h || "col-xl-" + s.columnInMD, s.columnInLG = parseInt(h.replace("col-xl-", ""), 10), s.displayWidthInLG = s.columnInLG / 3, [1, 2, 3, 4].includes(s.displayWidthInLG) || (s.isSupportedClass = !1), E = E || "col-el-" + s.columnInLG, s.columnInEL = parseInt(E.replace("col-el-", ""), 10), s.displayWidthInEL = s.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(s.displayWidthInEL) || (s.isSupportedClass = !1);
2199
+ }
2200
+ function a(p, s, c, f = !1) {
2201
+ let l = !1;
2202
+ if (!p.contents || p.contents.length === 0) {
2203
+ const u = new Se();
2204
+ o(p.layout, u), s.push(u);
2205
+ return;
2206
+ }
2207
+ p.contents.forEach((u) => {
2208
+ if (u.type === "fieldset") {
2209
+ c += 1, a(u, s, c, !0), l = !0;
1249
2210
  return;
1250
2211
  }
1251
- c && (h += 1, c = !1);
1252
- const E = b.appearance && b.appearance.class, x = new Ze();
1253
- E ? s(E, x) : x.isSupportedClass = !1, x.label = b.label || b.id, x.id = b.id, x.group = h, u && (x.fieldSetId = p.id), e === b.id && (n = h), i.set(b.id, b), a.push(x);
2212
+ if (u.type === "dynamic-form")
2213
+ return;
2214
+ l && (c += 1, l = !1);
2215
+ const h = u.appearance && u.appearance.class, E = new Se();
2216
+ h ? o(h, E) : E.isSupportedClass = !1, E.label = u.label || u.id, E.id = u.id, E.group = c, f && (E.fieldSetId = p.id), t === u.id && (n = c), r.set(u.id, u), s.push(E);
1254
2217
  });
1255
2218
  }
1256
2219
  function g(p) {
1257
- const a = d.getComponentById(p);
1258
- if (!a || !a.componentType || !a.componentType.startsWith("form"))
2220
+ const s = e.getComponentById(p);
2221
+ if (!s || !s.componentType || !s.componentType.startsWith("form"))
1259
2222
  return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
1260
- const h = d.selectNode(a, (u) => u.type === l["response-form"].type);
1261
- return !h || !h.contents || h.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: h };
1262
- }
1263
- function o(p, a) {
1264
- a = a || p.id;
1265
- const { result: h, message: u, formNode: c } = g(a);
1266
- if (!h)
1267
- return { result: h, message: u };
1268
- e = p.id, t = [], i.clear();
1269
- const b = c.contents[0].type === l.fieldset.type ? 0 : 1;
1270
- r(c, t, b);
1271
- const E = t.find((M) => !M.isSupportedClass);
2223
+ const c = e.selectNode(s, (f) => f.type === v["response-form"].type);
2224
+ return !c || !c.contents || c.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: c };
2225
+ }
2226
+ function d(p, s) {
2227
+ s = s || p.id;
2228
+ const { result: c, message: f, formNode: l } = g(s);
2229
+ if (!c)
2230
+ return { result: c, message: f };
2231
+ t = p.id, i = [], r.clear();
2232
+ const u = l.contents[0].type === v.fieldset.type ? 0 : 1;
2233
+ a(l, i, u);
2234
+ const h = i.find((k) => !k.isSupportedClass);
1272
2235
  return {
1273
2236
  defaultState: {
1274
2237
  defaultGroupNumber: n || 1,
1275
- model: E ? "customize" : "standard"
2238
+ model: h ? "customize" : "standard"
1276
2239
  },
1277
- importData: t
2240
+ importData: i
1278
2241
  };
1279
2242
  }
1280
- function f(p, a) {
1281
- a = a;
1282
- const { result: h, formNode: u } = g(a);
1283
- if (!h)
2243
+ function m(p, s) {
2244
+ s = s;
2245
+ const { result: c, formNode: f } = g(s);
2246
+ if (!c)
1284
2247
  return "";
1285
- const c = [];
1286
- return p.forEach((b) => {
1287
- var M;
1288
- const E = i.get(b.id), x = E.appearance && E.appearance.class;
1289
- if (x) {
1290
- const k = x.split(" ").filter((B) => !B.startsWith("col-")), S = "col-" + b.columnInSM, N = "col-md-" + b.columnInMD, P = "col-xl-" + b.columnInLG, U = "col-el-" + b.columnInEL, K = [S, N, P, U].concat(k);
1291
- E.appearance.class = K.join(" ");
2248
+ const l = [];
2249
+ return p.forEach((u) => {
2250
+ var k;
2251
+ const h = r.get(u.id), E = h.appearance && h.appearance.class;
2252
+ if (E) {
2253
+ const A = E.split(" ").filter((T) => !T.startsWith("col-")), R = "col-" + u.columnInSM, B = "col-md-" + u.columnInMD, M = "col-xl-" + u.columnInLG, j = "col-el-" + u.columnInEL, N = [R, B, M, j].concat(A);
2254
+ h.appearance.class = N.join(" ");
1292
2255
  }
1293
- if (b.fieldSetId) {
1294
- const L = u.contents.find((S) => S.id === b.fieldSetId), k = c.find((S) => S.id === b.fieldSetId);
1295
- k ? (M = k.contents) == null || M.push(E) : (c.push(L), L.contents = [E]);
2256
+ if (u.fieldSetId) {
2257
+ const U = f.contents.find((R) => R.id === u.fieldSetId), A = l.find((R) => R.id === u.fieldSetId);
2258
+ A ? (k = A.contents) == null || k.push(h) : (l.push(U), U.contents = [h]);
1296
2259
  } else
1297
- c.push(E);
1298
- }), u.contents = c, u.id;
2260
+ l.push(h);
2261
+ }), f.contents = l, f.id;
1299
2262
  }
1300
2263
  return {
1301
2264
  checkCanFindFormNode: g,
1302
- checkCanOpenLayoutEditor: o,
1303
- changeFormControlsByResponseLayoutConfig: f,
1304
- getResonseFormLayoutConfig: r
2265
+ checkCanOpenLayoutEditor: d,
2266
+ changeFormControlsByResponseLayoutConfig: m,
2267
+ getResonseFormLayoutConfig: a
1305
2268
  };
1306
2269
  }
1307
- class at extends Qe {
1308
- constructor(e, i) {
1309
- super(e, i);
1310
- I(this, "responseLayoutEditorFunction");
2270
+ class Zi extends Cr {
2271
+ constructor(t, r) {
2272
+ super(t, r);
2273
+ V(this, "responseLayoutEditorFunction");
1311
2274
  /** 控件绑定的变量 */
1312
- I(this, "bindingVarible");
1313
- I(this, "numberEditorOptions", {
2275
+ V(this, "bindingVarible");
2276
+ V(this, "numberEditorOptions", {
1314
2277
  type: "number-spinner",
1315
2278
  useThousands: !1,
1316
2279
  keyboard: !1,
1317
2280
  showButton: !1
1318
2281
  });
1319
- this.responseLayoutEditorFunction = et(this.formSchemaUtils);
2282
+ this.responseLayoutEditorFunction = wr(this.formSchemaUtils);
1320
2283
  }
1321
- getCommonPropertyConfig(e, i, t = "Card") {
1322
- this.propertyConfig.categories.basic = this.getBasicProperties(e, i, t), this.propertyConfig.categories.appearance = this.getAppearanceProperties(e, i), this.propertyConfig.categories.behavior = this.getBehaviorConfig(e, "form-group");
2284
+ getCommonPropertyConfig(t, r, i = "Card") {
2285
+ this.propertyConfig.categories.basic = this.getBasicProperties(t, r, i), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t, r), this.propertyConfig.categories.behavior = this.getBehaviorConfig(t, "form-group");
1323
2286
  }
1324
- getPropertyConfig(e, i) {
1325
- return this.getCommonPropertyConfig(e, i, "Card"), this.propertyConfig.categories.editor = this.getEditorProperties(e), this.propertyConfig.categories.expressions = this.getExpressionConfig(e, "Field"), this.propertyConfig.categories.eventsEditor = this.getEventPropertyConfig(e), this.propertyConfig;
2287
+ getPropertyConfig(t, r) {
2288
+ return this.getCommonPropertyConfig(t, r, "Card"), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig.categories.expressions = this.getExpressionConfig(t, "Field"), this.propertyConfig.categories.eventsEditor = this.getEventPropertyConfig(t), this.propertyConfig;
1326
2289
  }
1327
- getGridFieldEdtiorPropConfig(e, i) {
1328
- return this.propertyConfig.categories = {}, this.getCommonPropertyConfig(e, i, "Grid"), this.getGridFieldEdtiorProperties ? this.propertyConfig.categories.editor = this.getGridFieldEdtiorProperties(e) : this.propertyConfig.categories.editor = this.getEditorProperties(e), this.propertyConfig.categories.expressons = this.getExpressionConfig(e, "Field"), this.propertyConfig.categories;
2290
+ getGridFieldEdtiorPropConfig(t, r) {
2291
+ return this.propertyConfig.categories = {}, this.getCommonPropertyConfig(t, r, "Grid"), this.getGridFieldEdtiorProperties ? this.propertyConfig.categories.editor = this.getGridFieldEdtiorProperties(t) : this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig.categories.expressons = this.getExpressionConfig(t, "Field"), this.propertyConfig.categories;
1329
2292
  }
1330
- getBasicProperties(e, i, t = "Card") {
1331
- var f;
1332
- const s = this;
1333
- this.setDesignViewModelField(e);
1334
- const { canChangeControlType: r, editorTypeList: g } = this.getAvailableEditorType(e), o = {
2293
+ getBasicProperties(t, r, i = "Card") {
2294
+ var m;
2295
+ const o = this;
2296
+ this.setDesignViewModelField(t);
2297
+ const { canChangeControlType: a, editorTypeList: g } = this.getAvailableEditorType(t), d = {
1335
2298
  description: "Basic Information",
1336
2299
  title: "基本信息",
1337
2300
  properties: {
@@ -1354,7 +2317,7 @@ class at extends Qe {
1354
2317
  idField: "key",
1355
2318
  editable: !1,
1356
2319
  data: g,
1357
- readonly: !r
2320
+ readonly: !a
1358
2321
  }
1359
2322
  },
1360
2323
  label: {
@@ -1369,7 +2332,7 @@ class at extends Qe {
1369
2332
  editor: {
1370
2333
  data: [{ id: "visible", name: "显示" }, { id: "reserve-space", name: "占位" }, { id: "none", name: "不显示" }]
1371
2334
  },
1372
- defaultValue: ((f = e.editor) == null ? void 0 : f.type) === "image" ? "none" : "visible"
2335
+ defaultValue: ((m = t.editor) == null ? void 0 : m.type) === "image" ? "none" : "visible"
1373
2336
  },
1374
2337
  binding: {
1375
2338
  description: "绑定的表单字段",
@@ -1378,7 +2341,7 @@ class at extends Qe {
1378
2341
  type: "binding-selector",
1379
2342
  bindingType: { enable: !1 },
1380
2343
  editorParams: {
1381
- componentSchema: e,
2344
+ componentSchema: t,
1382
2345
  needSyncToViewModel: !0,
1383
2346
  viewModelId: this.viewModelId,
1384
2347
  designerHostService: this.designerHostService,
@@ -1387,14 +2350,14 @@ class at extends Qe {
1387
2350
  textField: "bindingField"
1388
2351
  },
1389
2352
  refreshPanelAfterChanged: !0,
1390
- readonly: this.formSchemaUtils.designerMode === "PC_RTC" && !e.isRtcControl
2353
+ readonly: this.formSchemaUtils.designerMode === "PC_RTC" && !t.isRtcControl
1391
2354
  }
1392
2355
  },
1393
- setPropertyRelates(p, a, h) {
2356
+ setPropertyRelates(p, s, c) {
1394
2357
  if (p)
1395
2358
  switch (p && p.propertyID) {
1396
2359
  case "type": {
1397
- s.changeControlType(e, p, i);
2360
+ o.changeControlType(t, p, r);
1398
2361
  break;
1399
2362
  }
1400
2363
  case "label": {
@@ -1402,50 +2365,50 @@ class at extends Qe {
1402
2365
  break;
1403
2366
  }
1404
2367
  case "binding": {
1405
- s.changeBindingField(e, p, h);
2368
+ o.changeBindingField(t, p, c);
1406
2369
  break;
1407
2370
  }
1408
2371
  }
1409
2372
  }
1410
2373
  };
1411
- return t.toLocaleLowerCase() !== "card" && delete o.properties.showLabelType, o;
2374
+ return i.toLocaleLowerCase() !== "card" && delete d.properties.showLabelType, d;
1412
2375
  }
1413
2376
  /**
1414
2377
  * 校验控件是否支持切换类型
1415
2378
  * @param control 控件
1416
2379
  */
1417
- checkCanChangeControlType(e, i) {
1418
- if (!e.binding)
2380
+ checkCanChangeControlType(t, r) {
2381
+ if (!t.binding)
1419
2382
  return !1;
1420
- if (e.binding.type === "Variable") {
1421
- if (this.bindingVarible = this.formSchemaUtils.getVariableById(e.binding.field), !this.bindingVarible)
2383
+ if (t.binding.type === "Variable") {
2384
+ if (this.bindingVarible = this.formSchemaUtils.getVariableById(t.binding.field), !this.bindingVarible)
1422
2385
  return !1;
1423
- } else if (!this.designViewModelField || this.designViewModelField.$type !== ie.SimpleField)
2386
+ } else if (!this.designViewModelField || this.designViewModelField.$type !== Fe.SimpleField)
1424
2387
  return !1;
1425
2388
  return !0;
1426
2389
  }
1427
2390
  /**
1428
2391
  * 获取可选的编辑器类型
1429
2392
  */
1430
- getAvailableEditorType(e) {
1431
- var s;
1432
- const i = this.checkCanChangeControlType(e, this.viewModelId);
1433
- if (!i)
2393
+ getAvailableEditorType(t) {
2394
+ var o, a;
2395
+ const r = this.checkCanChangeControlType(t, this.viewModelId);
2396
+ if (!r)
1434
2397
  return {
1435
2398
  canChangeControlType: !1,
1436
2399
  editorTypeList: [{
1437
- key: e.editor.type,
1438
- value: ((s = l[e.editor.type]) == null ? void 0 : s.name) || e.editor.type
2400
+ key: t.editor.type,
2401
+ value: ((o = v[t.editor.type]) == null ? void 0 : o.name) || t.editor.type
1439
2402
  }]
1440
2403
  };
1441
- let t = [];
1442
- return this.designViewModelField && this.designViewModelField.$type === ie.SimpleField ? t = j.getEditorTypesByMDataType(this.designViewModelField.type.name, this.designViewModelField.multiLanguage) : this.bindingVarible && (t = j.getEditorTypesByMDataType(this.bindingVarible.type, this.designViewModelField.multiLanguage)), { canChangeControlType: i, editorTypeList: t };
2404
+ let i = [];
2405
+ return this.designViewModelField && this.designViewModelField.$type === Fe.SimpleField ? i = pe.getEditorTypesByMDataType(this.designViewModelField.type.name, this.designViewModelField.multiLanguage) : this.bindingVarible && (i = pe.getEditorTypesByMDataType(this.bindingVarible.type, !!((a = this.designViewModelField) != null && a.multiLanguage))), { canChangeControlType: r, editorTypeList: i };
1443
2406
  }
1444
- changeBindingField(e, i, t) {
1445
- i.needRefreshEntityTree = !0;
2407
+ changeBindingField(t, r, i) {
2408
+ r.needRefreshEntityTree = !0;
1446
2409
  }
1447
- getAppearanceProperties(e, i) {
1448
- const t = this;
2410
+ getAppearanceProperties(t, r) {
2411
+ const i = this;
1449
2412
  return {
1450
2413
  title: "外观",
1451
2414
  description: "Appearance",
@@ -1479,84 +2442,84 @@ class at extends Qe {
1479
2442
  refreshPanelAfterChanged: !0,
1480
2443
  editor: {
1481
2444
  type: "response-layout-editor-setting",
1482
- beforeOpen: () => t.responseLayoutEditorFunction.checkCanOpenLayoutEditor(e, t.componentId)
2445
+ beforeOpen: () => i.responseLayoutEditorFunction.checkCanOpenLayoutEditor(t, i.componentId)
1483
2446
  }
1484
2447
  }
1485
2448
  },
1486
- setPropertyRelates(s, r) {
1487
- if (s)
1488
- switch (s && s.propertyID) {
2449
+ setPropertyRelates(o, a) {
2450
+ if (o)
2451
+ switch (o && o.propertyID) {
1489
2452
  case "responseLayout":
1490
- t.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(s.propertyValue, t.componentId || e.id), t.updateUnifiedLayoutAfterResponseLayoutChanged(t.componentId), t.updateElementByParentContainer(e.id, i), delete e.responseLayout;
2453
+ i.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(o.propertyValue, i.componentId || t.id), i.updateUnifiedLayoutAfterResponseLayoutChanged(i.componentId), i.updateElementByParentContainer(t.id, r), delete t.responseLayout;
1491
2454
  break;
1492
2455
  case "class":
1493
- t.updateUnifiedLayoutAfterControlChanged(s.propertyValue, e.id, this.componentId), W.value++;
2456
+ i.updateUnifiedLayoutAfterControlChanged(o.propertyValue, t.id, this.componentId), ce.value++;
1494
2457
  break;
1495
2458
  case "style": {
1496
- W.value++;
2459
+ ce.value++;
1497
2460
  break;
1498
2461
  }
1499
2462
  }
1500
2463
  }
1501
2464
  };
1502
2465
  }
1503
- getEditorProperties(e) {
1504
- return this.getComponentConfig(e);
2466
+ getEditorProperties(t) {
2467
+ return this.getComponentConfig(t);
1505
2468
  }
1506
2469
  /**
1507
2470
  * 卡片控件:切换控件类型后事件
1508
2471
  * @param propertyData 控件DOM属性
1509
2472
  * @param newControlType 新控件类型
1510
2473
  */
1511
- changeControlType(e, i, t) {
1512
- const s = i.propertyValue, r = t && t.parent && t.parent.schema;
1513
- if (!r)
2474
+ changeControlType(t, r, i) {
2475
+ const o = r.propertyValue, a = i && i.parent && i.parent.schema;
2476
+ if (!a)
1514
2477
  return;
1515
- const g = r.contents.findIndex((p) => p.id === e.id);
2478
+ const g = a.contents.findIndex((p) => p.id === t.id);
1516
2479
  if (g === -1)
1517
2480
  return;
1518
- const o = r.contents[g];
1519
- let f;
2481
+ const d = a.contents[g];
2482
+ let m;
1520
2483
  if (this.designViewModelField) {
1521
- const h = this.formSchemaUtils.getViewModelById(this.viewModelId).fields.find((c) => c.id === this.designViewModelField.id).fieldSchema || {};
1522
- h.editor || (h.editor = {}), h.editor.$type = s, this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, h, !1), f = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, s);
1523
- }
1524
- f || (f = this.controlCreatorUtils.createFormGroupWithoutField(s)), Object.assign(f, {
1525
- id: o.id,
1526
- appearance: o.appearance,
1527
- size: o.size,
1528
- label: o.label,
1529
- binding: o.binding
1530
- }), Object.prototype.hasOwnProperty.call(o, "visible") && Object.assign(f, { visible: o.visible }), o.editor && ["readonly", "required", "placeholder"].map((p) => {
1531
- Object.prototype.hasOwnProperty.call(o.editor, p) && (f.editor[p] = o.editor[p]);
1532
- }), t != null && t.updateContextSchema ? t.updateContextSchema(f) : (t.schema = Object.assign(o, f), Object.assign(e, f)), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
2484
+ const c = this.formSchemaUtils.getViewModelById(this.viewModelId).fields.find((l) => l.id === this.designViewModelField.id).fieldSchema || {};
2485
+ c.editor || (c.editor = {}), c.editor.$type = o, this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, c, !1), m = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, o);
2486
+ }
2487
+ m || (m = this.controlCreatorUtils.createFormGroupWithoutField(o)), Object.assign(m, {
2488
+ id: d.id,
2489
+ appearance: d.appearance,
2490
+ size: d.size,
2491
+ label: d.label,
2492
+ binding: d.binding
2493
+ }), Object.prototype.hasOwnProperty.call(d, "visible") && Object.assign(m, { visible: d.visible }), d.editor && ["readonly", "required", "placeholder"].map((p) => {
2494
+ Object.prototype.hasOwnProperty.call(d.editor, p) && (m.editor[p] = d.editor[p]);
2495
+ }), i != null && i.updateContextSchema ? i.updateContextSchema(m) : (i.schema = Object.assign(d, m), Object.assign(t, m)), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
1533
2496
  (p) => p.classList.remove("dgComponentSelected")
1534
2497
  ), Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
1535
2498
  (p) => p.classList.remove("dgComponentFocused")
1536
- ), W.value++, le(() => {
2499
+ ), ce.value++, Te(() => {
1537
2500
  this.getFormDesignerInstance().reloadPropertyPanel();
1538
2501
  });
1539
2502
  }
1540
- getComponentConfig(e, i = {}, t = {}, s) {
1541
- var h, u;
1542
- const r = Object.assign({
2503
+ getComponentConfig(t, r = {}, i = {}, o) {
2504
+ var c, f;
2505
+ const a = Object.assign({
1543
2506
  description: "编辑器",
1544
2507
  title: "编辑器",
1545
2508
  type: "input-group",
1546
2509
  $converter: "/converter/property-editor.converter",
1547
2510
  parentPropertyID: "editor"
1548
- }, i), g = (h = e.binding) != null && h.field ? [] : ["Const", "Variable", "StateMachine"], o = this.getPropertyEditorParams(e, g, "readonly"), f = this.getPropertyEditorParams(e, g, "required"), p = {
2511
+ }, r), g = (c = t.binding) != null && c.field ? [] : ["Const", "Variable", "StateMachine"], d = this.getPropertyEditorParams(t, g, "readonly"), m = this.getPropertyEditorParams(t, g, "required"), p = {
1549
2512
  readonly: {
1550
2513
  description: "",
1551
2514
  title: "只读",
1552
- editor: o
2515
+ editor: d
1553
2516
  },
1554
2517
  required: {
1555
2518
  description: "",
1556
2519
  title: "必填",
1557
2520
  type: "boolean",
1558
- editor: f,
1559
- visible: !!((u = e.binding) != null && u.field)
2521
+ editor: m,
2522
+ visible: !!((f = t.binding) != null && f.field)
1560
2523
  },
1561
2524
  placeholder: {
1562
2525
  description: "当控件没有值时在输入框中显示的文本",
@@ -1564,21 +2527,21 @@ class at extends Qe {
1564
2527
  type: "string"
1565
2528
  }
1566
2529
  };
1567
- for (const c in t)
1568
- p[c] = Object.assign(p[c] || {}, t[c]);
1569
- const a = this;
2530
+ for (const l in i)
2531
+ p[l] = Object.assign(p[l] || {}, i[l]);
2532
+ const s = this;
1570
2533
  return {
1571
- ...r,
2534
+ ...a,
1572
2535
  properties: { ...p },
1573
- setPropertyRelates(c, b) {
1574
- if (c) {
1575
- switch (c.propertyID) {
2536
+ setPropertyRelates(l, u) {
2537
+ if (l) {
2538
+ switch (l.propertyID) {
1576
2539
  case "readonly":
1577
2540
  case "required":
1578
- a.afterMutilEditorChanged(e, c);
2541
+ s.afterMutilEditorChanged(t, l);
1579
2542
  break;
1580
2543
  }
1581
- s && s.bind(a)(c, e, b);
2544
+ o && o.bind(s)(l, t, u);
1582
2545
  }
1583
2546
  }
1584
2547
  };
@@ -1589,47 +2552,47 @@ class at extends Qe {
1589
2552
  * @param controlId 控件Id
1590
2553
  * @param componentId 控件所在组件id
1591
2554
  */
1592
- updateUnifiedLayoutAfterControlChanged(e, i, t) {
1593
- const s = e.split(" ");
1594
- let r = s.find((a) => /^col-([1-9]|10|11|12)$/.test(a)), g = s.find((a) => /^col-md-([1-9]|10|11|12)$/.test(a)), o = s.find((a) => /^col-xl-([1-9]|10|11|12)$/.test(a)), f = s.find((a) => /^col-el-([1-9]|10|11|12)$/.test(a));
1595
- r = r || "col-12", g = g || "col-md-" + r.replace("col-", ""), o = o || "col-xl-" + g.replace("col-md-", ""), f = f || "col-el-" + o.replace("col-xl-", "");
2555
+ updateUnifiedLayoutAfterControlChanged(t, r, i) {
2556
+ const o = t.split(" ");
2557
+ let a = o.find((s) => /^col-([1-9]|10|11|12)$/.test(s)), g = o.find((s) => /^col-md-([1-9]|10|11|12)$/.test(s)), d = o.find((s) => /^col-xl-([1-9]|10|11|12)$/.test(s)), m = o.find((s) => /^col-el-([1-9]|10|11|12)$/.test(s));
2558
+ a = a || "col-12", g = g || "col-md-" + a.replace("col-", ""), d = d || "col-xl-" + g.replace("col-md-", ""), m = m || "col-el-" + d.replace("col-xl-", "");
1596
2559
  const p = {
1597
- id: i,
1598
- columnInSM: parseInt(r.replace("col-", ""), 10),
2560
+ id: r,
2561
+ columnInSM: parseInt(a.replace("col-", ""), 10),
1599
2562
  columnInMD: parseInt(g.replace("col-md-", ""), 10),
1600
- columnInLG: parseInt(o.replace("col-xl-", ""), 10),
1601
- columnInEL: parseInt(f.replace("col-el-", ""), 10)
2563
+ columnInLG: parseInt(d.replace("col-xl-", ""), 10),
2564
+ columnInEL: parseInt(m.replace("col-el-", ""), 10)
1602
2565
  };
1603
- this.updateUnifiedLayoutAfterResponseLayoutChanged(t, p);
2566
+ this.updateUnifiedLayoutAfterResponseLayoutChanged(i, p);
1604
2567
  }
1605
2568
  /**
1606
2569
  * 修改控件布局配置后更新Form统一布局配置
1607
2570
  * @param componentId 组件Id
1608
2571
  * @param controlLayoutConfig 某单独变动的控件配置项,FormResponseLayoutContext类型
1609
2572
  */
1610
- updateUnifiedLayoutAfterResponseLayoutChanged(e, i) {
1611
- const { formNode: t } = this.responseLayoutEditorFunction.checkCanFindFormNode(e);
1612
- if (!t || !t.unifiedLayout)
2573
+ updateUnifiedLayoutAfterResponseLayoutChanged(t, r) {
2574
+ const { formNode: i } = this.responseLayoutEditorFunction.checkCanFindFormNode(t);
2575
+ if (!i || !i.unifiedLayout)
1613
2576
  return;
1614
- const s = [];
1615
- if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(t, s, 1), i) {
1616
- const c = s.find((b) => b.id === i.id);
1617
- Object.assign(c || {}, i);
2577
+ const o = [];
2578
+ if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(i, o, 1), r) {
2579
+ const l = o.find((u) => u.id === r.id);
2580
+ Object.assign(l || {}, r);
1618
2581
  }
1619
- const r = s.map((c) => c.columnInSM), g = s.map((c) => c.columnInMD), o = s.map((c) => c.columnInLG), f = s.map((c) => c.columnInEL), p = this.checkIsUniqueColumn(r) ? r[0] : null, a = this.checkIsUniqueColumn(g) ? g[0] : null, h = this.checkIsUniqueColumn(o) ? o[0] : null, u = this.checkIsUniqueColumn(f) ? f[0] : null;
1620
- Object.assign(t.unifiedLayout, {
2582
+ const a = o.map((l) => l.columnInSM), g = o.map((l) => l.columnInMD), d = o.map((l) => l.columnInLG), m = o.map((l) => l.columnInEL), p = this.checkIsUniqueColumn(a) ? a[0] : null, s = this.checkIsUniqueColumn(g) ? g[0] : null, c = this.checkIsUniqueColumn(d) ? d[0] : null, f = this.checkIsUniqueColumn(m) ? m[0] : null;
2583
+ Object.assign(i.unifiedLayout, {
1621
2584
  uniqueColClassInSM: p,
1622
- uniqueColClassInMD: a,
1623
- uniqueColClassInLG: h,
1624
- uniqueColClassInEL: u
2585
+ uniqueColClassInMD: s,
2586
+ uniqueColClassInLG: c,
2587
+ uniqueColClassInEL: f
1625
2588
  });
1626
2589
  }
1627
2590
  /**
1628
2591
  * 校验宽度样式值是否一致
1629
2592
  */
1630
- checkIsUniqueColumn(e) {
1631
- const i = new Set(e);
1632
- return Array.from(i).length === 1;
2593
+ checkIsUniqueColumn(t) {
2594
+ const r = new Set(t);
2595
+ return Array.from(r).length === 1;
1633
2596
  }
1634
2597
  /**
1635
2598
  * 枚举项编辑器
@@ -1638,20 +2601,20 @@ class at extends Qe {
1638
2601
  * @param textField
1639
2602
  * @returns
1640
2603
  */
1641
- getItemCollectionEditor(e, i, t) {
1642
- return i = i || "value", t = t || "name", {
2604
+ getItemCollectionEditor(t, r, i) {
2605
+ return r = r || "value", i = i || "name", {
1643
2606
  editor: {
1644
2607
  columns: [
1645
- { field: i, title: "值", dataType: "string" },
1646
- { field: t, title: "名称", dataType: "string" }
2608
+ { field: r, title: "值", dataType: "string" },
2609
+ { field: i, title: "名称", dataType: "string" }
1647
2610
  // { field: 'disabled', title: '禁用', dataType: 'boolean', editor: { type: 'switch' } },
1648
2611
  ],
1649
2612
  type: "item-collection-editor",
1650
- valueField: i,
1651
- nameField: t,
1652
- requiredFields: [i, t],
1653
- uniqueFields: [i, t],
1654
- readonly: this.checkEnumDataReadonly(e)
2613
+ valueField: r,
2614
+ nameField: i,
2615
+ requiredFields: [r, i],
2616
+ uniqueFields: [r, i],
2617
+ readonly: this.checkEnumDataReadonly(t)
1655
2618
  }
1656
2619
  };
1657
2620
  }
@@ -1661,26 +2624,26 @@ class at extends Qe {
1661
2624
  * 2、绑定类型为字段,且字段为枚举字段,则不可新增、删除、修改枚举值。只能从be修改然后同步到表单上。
1662
2625
  * @param propertyData 下拉框控件属性值
1663
2626
  */
1664
- checkEnumDataReadonly(e) {
1665
- return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type === je.EnumType);
2627
+ checkEnumDataReadonly(t) {
2628
+ return !t.binding || t.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type === xn.EnumType);
1666
2629
  }
1667
2630
  /**
1668
2631
  * 将字段值变化前事件、变化后事件追加到交互面板
1669
2632
  * 注意:因为绑定字段值变化后事件与下拉框的值变化事件(valueChanged)重名,所以这里将事件label都重命名下
1670
2633
  */
1671
- appendFieldValueChangeEvents(e, i) {
1672
- e.binding && e.binding.type === G.Form && e.binding.field ? (i.find((t) => t.label === "fieldValueChanging"), i.find((t) => t.label === "fieldValueChanged"), this.designViewModelField && (e.fieldValueChanging = this.designViewModelField.valueChanging, e.fieldValueChanged = this.designViewModelField.valueChanged)) : i = i.filter((t) => t.label !== "fieldValueChanging" && t.label !== "fieldValueChanged");
1673
- }
1674
- getControlMethodType(e) {
1675
- if (!e.binding)
1676
- return e.type;
1677
- switch (e.binding.type) {
1678
- case G.Form:
1679
- return e.binding.path || e.type;
1680
- case G.Variable:
1681
- return e.binding.fullPath || e.type;
2634
+ appendFieldValueChangeEvents(t, r) {
2635
+ t.binding && t.binding.type === ue.Form && t.binding.field ? (r.find((i) => i.label === "fieldValueChanging"), r.find((i) => i.label === "fieldValueChanged"), this.designViewModelField && (t.fieldValueChanging = this.designViewModelField.valueChanging, t.fieldValueChanged = this.designViewModelField.valueChanged)) : r = r.filter((i) => i.label !== "fieldValueChanging" && i.label !== "fieldValueChanged");
2636
+ }
2637
+ getControlMethodType(t) {
2638
+ if (!t.binding)
2639
+ return t.type;
2640
+ switch (t.binding.type) {
2641
+ case ue.Form:
2642
+ return t.binding.path || t.type;
2643
+ case ue.Variable:
2644
+ return t.binding.fullPath || t.type;
1682
2645
  }
1683
- return e.type;
2646
+ return t.type;
1684
2647
  }
1685
2648
  /**
1686
2649
  * 组装输入类控件的交互面板:包含标签超链、绑定字段值变化前后事件等。
@@ -1689,10 +2652,10 @@ class at extends Qe {
1689
2652
  * @param showPosition 面板展示位置
1690
2653
  * @param customEvent 输入控件特有的事件配置
1691
2654
  */
1692
- getEventPropertyConfig(e, i = "card", t, s) {
1693
- const r = this;
2655
+ getEventPropertyConfig(t, r = "card", i, o) {
2656
+ const a = this;
1694
2657
  let g = [];
1695
- if (t && (g = g.concat(t)), g.length === 0)
2658
+ if (i && (g = g.concat(i)), g.length === 0)
1696
2659
  return {
1697
2660
  title: "事件",
1698
2661
  hideTitle: !0,
@@ -1701,28 +2664,28 @@ class at extends Qe {
1701
2664
  tabName: "交互",
1702
2665
  hide: !0
1703
2666
  };
1704
- this.appendFieldValueChangeEvents(e, g);
1705
- const o = r.eventsEditorUtils.formProperties(e, r.viewModelId, g);
2667
+ this.appendFieldValueChangeEvents(t, g);
2668
+ const d = a.eventsEditorUtils.formProperties(t, a.viewModelId, g);
1706
2669
  return {
1707
2670
  title: "事件",
1708
2671
  hideTitle: !0,
1709
- properties: r.createBaseEventProperty(o),
2672
+ properties: a.createBaseEventProperty(d),
1710
2673
  tabId: "commands",
1711
2674
  tabName: "交互",
1712
- setPropertyRelates(a, h) {
1713
- const u = a.propertyValue;
1714
- delete e[r.viewModelId], u && (u.setPropertyRelates = this.setPropertyRelates, u.controlInfo = { type: r.getControlMethodType(e), name: e.title }, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, u.events, u)), s && s(a, h, u);
1715
- const c = r.designViewModelUtils.getDgViewModel(r.viewModelId);
1716
- c && r.designViewModelField && c.changeField(r.designViewModelField.id, { valueChanging: e.fieldValueChanging, valueChanged: e.fieldValueChanged });
2675
+ setPropertyRelates(s, c) {
2676
+ const f = s.propertyValue;
2677
+ delete t[a.viewModelId], f && (f.setPropertyRelates = this.setPropertyRelates, f.controlInfo = { type: a.getControlMethodType(t), name: t.title }, a.eventsEditorUtils.saveRelatedParameters(t, a.viewModelId, f.events, f)), o && o(s, c, f);
2678
+ const l = a.designViewModelUtils.getDgViewModel(a.viewModelId);
2679
+ l && a.designViewModelField && l.changeField(a.designViewModelField.id, { valueChanging: t.fieldValueChanging, valueChanged: t.fieldValueChanged });
1717
2680
  }
1718
2681
  };
1719
2682
  }
1720
- getExpressionConfig(e, i, t = ["compute", "dependency", "validate"], s) {
1721
- return new ae(this.formSchemaUtils).getExpressionConfig(
1722
- e,
1723
- i,
2683
+ getExpressionConfig(t, r, i = ["compute", "dependency", "validate"], o) {
2684
+ return new Ie(this.formSchemaUtils).getExpressionConfig(
1724
2685
  t,
1725
- s
2686
+ r,
2687
+ i,
2688
+ o
1726
2689
  );
1727
2690
  }
1728
2691
  getBindingDataType() {
@@ -1731,39 +2694,39 @@ class at extends Qe {
1731
2694
  getEditor() {
1732
2695
  return this.getBindingDataType() === "number" ? this.numberEditorOptions : {};
1733
2696
  }
1734
- updatePropertyValue(e, i, t) {
1735
- var s;
1736
- e.editor[i] !== t ? e.editor[i] = t : (s = this.getFormDesignerInstance()) == null || s.reloadPropertyPanel();
2697
+ updatePropertyValue(t, r, i) {
2698
+ var o;
2699
+ t.editor[r] !== i ? t.editor[r] = i : (o = this.getFormDesignerInstance()) == null || o.reloadPropertyPanel();
1737
2700
  }
1738
- setBooleanValue(e, i, t) {
1739
- let s = t;
1740
- this.getBindingDataType() === "string" && (s = (s || "").trim() || (i === "trueValue" ? "true" : "false"));
1741
- const g = i === "trueValue" ? "falseValue" : "trueValue";
1742
- e.editor[g] === s && (s = s + 1), this.updatePropertyValue(e, i, s);
2701
+ setBooleanValue(t, r, i) {
2702
+ let o = i;
2703
+ this.getBindingDataType() === "string" && (o = (o || "").trim() || (r === "trueValue" ? "true" : "false"));
2704
+ const g = r === "trueValue" ? "falseValue" : "trueValue";
2705
+ t.editor[g] === o && (o = o + 1), this.updatePropertyValue(t, r, o);
1743
2706
  }
1744
2707
  getBooleanValueConverter() {
1745
2708
  return {
1746
- convertFrom: (e, i) => e.editor[i],
1747
- convertTo: (e, i, t) => {
1748
- this.setBooleanValue(e, i, t);
2709
+ convertFrom: (t, r) => t.editor[r],
2710
+ convertTo: (t, r, i) => {
2711
+ this.setBooleanValue(t, r, i);
1749
2712
  }
1750
2713
  };
1751
2714
  }
1752
2715
  }
1753
- const dt = {
1754
- install(d) {
1755
- d.component(ne.name, ne);
2716
+ const Ki = {
2717
+ install(e) {
2718
+ e.component(we.name, we);
1756
2719
  }
1757
2720
  };
1758
2721
  export {
1759
- Qe as BaseControlProperty,
1760
- ae as ExpressionProperty,
1761
- ne as FPropertyPanel,
1762
- G as FormBindingType,
1763
- at as InputBaseProperty,
1764
- Ye as PropertyType,
1765
- j as SchemaDOMMapping,
1766
- dt as default,
1767
- _e as propertyPanelItemProps,
1768
- Ke as propertyPanelProps
2722
+ Cr as BaseControlProperty,
2723
+ Ie as ExpressionProperty,
2724
+ we as FPropertyPanel,
2725
+ ue as FormBindingType,
2726
+ Zi as InputBaseProperty,
2727
+ Fr as PropertyType,
2728
+ pe as SchemaDOMMapping,
2729
+ Ki as default,
2730
+ ar as propertyPanelItemProps,
2731
+ In as propertyPanelProps
1769
2732
  };