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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (420) hide show
  1. package/components/accordion/index.esm.js +312 -61
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +1482 -56
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +752 -8
  6. package/components/binding-selector/index.umd.cjs +1 -1
  7. package/components/button-group/index.esm.js +266 -110
  8. package/components/button-group/index.umd.cjs +1 -1
  9. package/components/calendar/index.esm.js +129 -128
  10. package/components/calendar/index.umd.cjs +2 -2
  11. package/components/code-editor/index.esm.js +237 -169
  12. package/components/code-editor/index.umd.cjs +3 -3
  13. package/components/collection-property-editor/index.esm.js +134 -133
  14. package/components/collection-property-editor/index.umd.cjs +2 -2
  15. package/components/color-picker/index.esm.js +812 -502
  16. package/components/color-picker/index.umd.cjs +1 -1
  17. package/components/combo-list/index.esm.js +323 -291
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +355 -174
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/comment/index.esm.js +134 -133
  22. package/components/comment/index.umd.cjs +2 -2
  23. package/components/common/index.esm.js +1 -1
  24. package/components/common/index.umd.cjs +1 -1
  25. package/components/component/index.esm.js +3830 -2796
  26. package/components/component/index.umd.cjs +8 -1
  27. package/components/condition/index.esm.js +2482 -492
  28. package/components/condition/index.umd.cjs +8 -1
  29. package/components/data-grid/index.esm.js +431 -406
  30. package/components/data-grid/index.umd.cjs +1 -1
  31. package/components/data-view/index.esm.js +3306 -3165
  32. package/components/data-view/index.umd.cjs +1 -1
  33. package/components/date-picker/index.esm.js +1 -1
  34. package/components/date-picker/index.umd.cjs +1 -1
  35. package/components/designer-canvas/index.esm.js +3094 -2731
  36. package/components/designer-canvas/index.umd.cjs +1 -1
  37. package/components/drawer/index.esm.js +397 -387
  38. package/components/drawer/index.umd.cjs +2 -2
  39. package/components/dropdown/index.esm.js +373 -124
  40. package/components/dropdown/index.umd.cjs +2 -2
  41. package/components/dynamic-form/index.esm.js +592 -1894
  42. package/components/dynamic-form/index.umd.cjs +1 -1
  43. package/components/dynamic-resolver/index.esm.js +250 -248
  44. package/components/dynamic-resolver/index.umd.cjs +2 -2
  45. package/components/dynamic-view/index.esm.js +287 -284
  46. package/components/dynamic-view/index.umd.cjs +1 -1
  47. package/components/event-parameter/index.esm.js +1 -1
  48. package/components/event-parameter/index.umd.cjs +1 -1
  49. package/components/events-editor/index.esm.js +1890 -1473
  50. package/components/events-editor/index.umd.cjs +3 -3
  51. package/components/expression-editor/index.css +1 -1
  52. package/components/expression-editor/index.esm.js +7371 -2
  53. package/components/expression-editor/index.umd.cjs +427 -1
  54. package/components/fieldset/index.esm.js +1 -1
  55. package/components/fieldset/index.umd.cjs +1 -1
  56. package/components/filter-bar/index.esm.js +4 -5
  57. package/components/filter-bar/index.umd.cjs +2 -2
  58. package/components/filter-condition-editor/index.css +1 -1
  59. package/components/filter-condition-editor/index.esm.js +9044 -425
  60. package/components/filter-condition-editor/index.umd.cjs +427 -1
  61. package/components/html-template/index.esm.js +33 -36
  62. package/components/html-template/index.umd.cjs +1 -1
  63. package/components/image/index.esm.js +2 -2
  64. package/components/image/index.umd.cjs +1 -1
  65. package/components/image-cropper/index.esm.js +615 -361
  66. package/components/image-cropper/index.umd.cjs +1 -1
  67. package/components/json-editor/index.esm.js +325 -247
  68. package/components/json-editor/index.umd.cjs +1 -1
  69. package/components/language-textbox/index.esm.js +269 -269
  70. package/components/language-textbox/index.umd.cjs +2 -2
  71. package/components/layout/index.esm.js +549 -163
  72. package/components/layout/index.umd.cjs +1 -1
  73. package/components/list-nav/index.esm.js +837 -39
  74. package/components/list-nav/index.umd.cjs +1 -1
  75. package/components/list-view/index.esm.js +404 -622
  76. package/components/list-view/index.umd.cjs +6 -6
  77. package/components/lookup/index.esm.js +3624 -3625
  78. package/components/lookup/index.umd.cjs +1 -1
  79. package/components/mapping-editor/index.esm.js +1487 -1462
  80. package/components/mapping-editor/index.umd.cjs +1 -1
  81. package/components/menu-lookup/index.esm.js +577 -536
  82. package/components/menu-lookup/index.umd.cjs +6 -6
  83. package/components/nav/index.esm.js +311 -31
  84. package/components/nav/index.umd.cjs +1 -1
  85. package/components/number-range/index.esm.js +1634 -189
  86. package/components/number-range/index.umd.cjs +1 -1
  87. package/components/number-spinner/index.esm.js +82 -82
  88. package/components/number-spinner/index.umd.cjs +1 -1
  89. package/components/order/index.esm.js +1200 -859
  90. package/components/order/index.umd.cjs +6 -6
  91. package/components/page-footer/index.esm.js +331 -48
  92. package/components/page-footer/index.umd.cjs +1 -1
  93. package/components/page-header/index.esm.js +110 -116
  94. package/components/page-header/index.umd.cjs +1 -1
  95. package/components/pagination/index.esm.js +509 -232
  96. package/components/pagination/index.umd.cjs +1 -1
  97. package/components/progress/index.esm.js +353 -148
  98. package/components/progress/index.umd.cjs +3 -3
  99. package/components/property-editor/index.esm.js +157 -153
  100. package/components/property-editor/index.umd.cjs +1 -1
  101. package/components/property-panel/index.esm.js +1825 -871
  102. package/components/property-panel/index.umd.cjs +12 -5
  103. package/components/query-solution/index.css +1 -1
  104. package/components/query-solution/index.esm.js +6075 -3862
  105. package/components/query-solution/index.umd.cjs +13 -6
  106. package/components/response-layout/index.esm.js +1 -1
  107. package/components/response-layout/index.umd.cjs +1 -1
  108. package/components/schema-selector/index.esm.js +2603 -2376
  109. package/components/schema-selector/index.umd.cjs +5 -5
  110. package/components/search-box/index.esm.js +244 -72
  111. package/components/search-box/index.umd.cjs +1 -1
  112. package/components/section/index.esm.js +134 -133
  113. package/components/section/index.umd.cjs +2 -2
  114. package/components/smoke-detector/index.esm.js +179 -8
  115. package/components/smoke-detector/index.umd.cjs +1 -1
  116. package/components/sort-condition-editor/index.css +1 -0
  117. package/components/sort-condition-editor/index.esm.js +9488 -4
  118. package/components/sort-condition-editor/index.umd.cjs +427 -1
  119. package/components/splitter/index.esm.js +1172 -142
  120. package/components/splitter/index.umd.cjs +1 -1
  121. package/components/step/index.esm.js +47 -48
  122. package/components/step/index.umd.cjs +1 -1
  123. package/components/tabs/index.esm.js +490 -419
  124. package/components/tabs/index.umd.cjs +1 -1
  125. package/components/text/index.esm.js +217 -73
  126. package/components/text/index.umd.cjs +1 -1
  127. package/components/textarea/index.esm.js +29 -27
  128. package/components/textarea/index.umd.cjs +2 -2
  129. package/components/transfer/index.esm.js +762 -544
  130. package/components/transfer/index.umd.cjs +5 -5
  131. package/components/tree-grid/index.esm.js +287 -283
  132. package/components/tree-grid/index.umd.cjs +1 -1
  133. package/components/tree-view/index.esm.js +326 -157
  134. package/components/tree-view/index.umd.cjs +1 -1
  135. package/components/uploader/index.esm.js +1125 -634
  136. package/components/uploader/index.umd.cjs +2 -2
  137. package/components/verify-detail/index.esm.js +359 -106
  138. package/components/verify-detail/index.umd.cjs +1 -1
  139. package/components/video/index.esm.js +222 -89
  140. package/components/video/index.umd.cjs +1 -1
  141. package/components/weather/index.esm.js +290 -199
  142. package/components/weather/index.umd.cjs +1 -1
  143. package/designer/data-grid/index.esm.js +5798 -4905
  144. package/designer/data-grid/index.umd.cjs +16 -9
  145. package/designer/drawer/index.esm.js +576 -567
  146. package/designer/drawer/index.umd.cjs +2 -2
  147. package/designer/dynamic-form/index.esm.js +1418 -1154
  148. package/designer/dynamic-form/index.umd.cjs +8 -1
  149. package/designer/farris-designer.all.esm.js +11332 -10754
  150. package/designer/farris-designer.all.umd.cjs +17 -17
  151. package/designer/list-view/index.esm.js +647 -647
  152. package/designer/list-view/index.umd.cjs +6 -6
  153. package/designer/modal/index.esm.js +29 -137
  154. package/designer/modal/index.umd.cjs +1 -1
  155. package/designer/radio-group/index.esm.js +2 -3
  156. package/designer/radio-group/index.umd.cjs +1 -1
  157. package/designer/response-toolbar/index.esm.js +1 -1
  158. package/designer/response-toolbar/index.umd.cjs +1 -1
  159. package/designer/section/index.esm.js +1 -6
  160. package/designer/section/index.umd.cjs +1 -1
  161. package/designer/tabs/index.esm.js +2848 -2556
  162. package/designer/tabs/index.umd.cjs +2 -2
  163. package/designer/time-picker/index.esm.js +2 -2
  164. package/designer/time-picker/index.umd.cjs +1 -1
  165. package/designer/tree-grid/index.esm.js +826 -465
  166. package/designer/tree-grid/index.umd.cjs +1 -1
  167. package/farris.all.esm.js +75302 -73138
  168. package/farris.all.umd.cjs +94 -94
  169. package/index.css +1 -1
  170. package/package.json +1 -1
  171. package/types/accordion/src/accordion.props.d.ts +1 -0
  172. package/types/accordion/src/components/accordion-item.props.d.ts +1 -0
  173. package/types/avatar/src/avatar.props.d.ts +1 -0
  174. package/types/binding-selector/index.d.ts +54 -0
  175. package/types/binding-selector/src/binding-selector.props.d.ts +1 -0
  176. package/types/button-group/index.d.ts +0 -15
  177. package/types/button-group/src/button-group.props.d.ts +1 -0
  178. package/types/code-editor/index.d.ts +1 -0
  179. package/types/code-editor/src/code-textbox.component.d.ts +6 -6
  180. package/types/code-editor/src/code-textbox.props.d.ts +2 -0
  181. package/types/color-picker/index.d.ts +15 -0
  182. package/types/color-picker/src/color-picker.props.d.ts +1 -0
  183. package/types/combo-list/src/composition/use-data-source.d.ts +2 -1
  184. package/types/combo-tree/src/combo-tree.props.d.ts +1 -0
  185. package/types/component/index.d.ts +2 -0
  186. package/types/component/src/component.props.d.ts +8 -0
  187. package/types/components.d.ts +7 -0
  188. package/types/condition/index.d.ts +55 -0
  189. package/types/data-grid/index.d.ts +5 -2
  190. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  191. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  192. package/types/data-view/composition/appearance/use-cell-position.d.ts +1 -1
  193. package/types/data-view/composition/types.d.ts +5 -1
  194. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +2 -2
  195. package/types/data-view/composition/visualization/use-visual-data-bound.d.ts +3 -2
  196. package/types/data-view/composition/visualization/use-visual-data-row.d.ts +2 -1
  197. package/types/designer-toolbox/index.d.ts +3 -0
  198. package/types/designer-toolbox/src/toolbox.component.d.ts +14 -0
  199. package/types/designer-toolbox/src/toolbox.props.d.ts +29 -0
  200. package/types/designer-toolbox/src/types.d.ts +21 -0
  201. package/types/designer.d.ts +13 -0
  202. package/types/dropdown/index.d.ts +6 -27
  203. package/types/dropdown/src/dropdown.item.component.d.ts +1 -1
  204. package/types/dropdown/src/dropdown.props.d.ts +1 -0
  205. package/types/dynamic-form/designer.d.ts +1 -3
  206. package/types/dynamic-form/index.d.ts +3 -9
  207. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
  208. package/types/dynamic-resolver/index.d.ts +0 -3
  209. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
  210. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
  211. package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
  212. package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
  213. package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
  214. package/types/dynamic-view/src/components/maps.d.ts +104 -92
  215. package/types/{binding-selector/designer.d.ts → expression-editor/index.d.ts} +6 -6
  216. package/types/filter-condition-editor/index.d.ts +9 -0
  217. package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
  218. package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
  219. package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +1 -0
  220. package/types/flow-canvas/index.d.ts +3 -0
  221. package/types/flow-canvas/src/components/flow-node-item.component.d.ts +8 -0
  222. package/types/flow-canvas/src/components/flow-node-item.props.d.ts +3 -0
  223. package/types/flow-canvas/src/composition/types.d.ts +42 -0
  224. package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +2 -0
  225. package/types/flow-canvas/src/composition/use-connections.d.ts +2 -0
  226. package/types/flow-canvas/src/composition/use-curve.d.ts +4 -0
  227. package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +2 -0
  228. package/types/flow-canvas/src/composition/use-drawing.d.ts +4 -0
  229. package/types/flow-canvas/src/flow-canvas.component.d.ts +8 -0
  230. package/types/flow-canvas/src/flow-canvas.props.d.ts +3 -0
  231. package/types/image-cropper/src/image-cropper.props.d.ts +1 -0
  232. package/types/index.d.ts +1 -0
  233. package/types/json-editor/src/json-editor.props.d.ts +1 -0
  234. package/types/layout/index.d.ts +0 -1
  235. package/types/layout/src/components/layout-pane.props.d.ts +1 -0
  236. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +2 -0
  237. package/types/layout/src/designer/layout-pane.design.component.d.ts +8 -0
  238. package/types/layout/src/designer/layout-use-designer-rules.d.ts +2 -0
  239. package/types/layout/src/designer/layout.design.component.d.ts +8 -0
  240. package/types/layout/src/layout.props.d.ts +1 -0
  241. package/types/layout/src/schema/schema-mapper.d.ts +2 -0
  242. package/types/layout/src/schema/schema-resolver.d.ts +2 -0
  243. package/types/list-nav/index.d.ts +5 -24
  244. package/types/list-nav/src/designer/use-designer-rules.d.ts +2 -0
  245. package/types/list-nav/src/list-nav.props.d.ts +1 -0
  246. package/types/list-nav/src/property-config/list-nav.property-config.d.ts +8 -0
  247. package/types/list-nav/src/schema/schema-mapper.d.ts +2 -0
  248. package/types/list-nav/src/schema/schema-resolver.d.ts +2 -0
  249. package/types/list-view/index.d.ts +0 -1
  250. package/types/list-view/src/composition/use-draggable.d.ts +1 -1
  251. package/types/lookup/index.d.ts +1 -1
  252. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +1 -1
  253. package/types/lookup/src/components/popup-container.component.d.ts +6 -6
  254. package/types/menu-lookup/src/menu-lookup.props.d.ts +1 -0
  255. package/types/modal/designer.d.ts +0 -2
  256. package/types/nav/index.d.ts +20 -24
  257. package/types/nav/src/nav.props.d.ts +1 -0
  258. package/types/number-range/src/number-range.props.d.ts +1 -0
  259. package/types/order/index.d.ts +5 -36
  260. package/types/order/src/designer/order.design.component.d.ts +1 -1
  261. package/types/order/src/order.props.d.ts +1 -0
  262. package/types/page-footer/index.d.ts +2 -0
  263. package/types/page-footer/src/page-footer.props.d.ts +1 -0
  264. package/types/pagination/index.d.ts +0 -15
  265. package/types/pagination/src/pagination.props.d.ts +1 -0
  266. package/types/progress/src/progress.props.d.ts +1 -0
  267. package/types/query-solution/index.d.ts +2 -1
  268. package/types/radio-group/designer.d.ts +1 -2
  269. package/types/search-box/index.d.ts +17 -1
  270. package/types/search-box/src/search-box.props.d.ts +1 -0
  271. package/types/section/designer.d.ts +0 -1
  272. package/types/smoke-detector/index.d.ts +2 -0
  273. package/types/smoke-detector/src/smoke-detector.props.d.ts +1 -0
  274. package/types/sort-condition-editor/index.d.ts +7 -2
  275. package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +1 -0
  276. package/types/splitter/index.d.ts +0 -1
  277. package/types/splitter/src/components/splitter-pane.props.d.ts +1 -0
  278. package/types/splitter/src/splitter.props.d.ts +1 -0
  279. package/types/tabs/designer.d.ts +0 -1
  280. package/types/tabs/index.d.ts +1 -0
  281. package/types/text/index.d.ts +20 -24
  282. package/types/text/src/text.props.d.ts +1 -0
  283. package/types/transfer/src/transfer.props.d.ts +1 -0
  284. package/types/tree-grid/src/components/data/data-area.component.d.ts +2 -2
  285. package/types/tree-grid/src/tree-grid.props.d.ts +1 -0
  286. package/types/tree-view/src/components/data/tree-area.component.d.ts +1 -1
  287. package/types/tree-view/src/tree-view.props.d.ts +2 -0
  288. package/types/uploader/src/uploader.props.d.ts +1 -0
  289. package/types/verify-detail/index.d.ts +5 -58
  290. package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
  291. package/types/verify-detail/src/verify-detail.props.d.ts +1 -0
  292. package/types/video/index.d.ts +20 -24
  293. package/types/video/src/video.props.d.ts +1 -0
  294. package/components/dynamic-form/index.css +0 -1
  295. package/designer/accordion/index.esm.js +0 -257
  296. package/designer/accordion/index.umd.cjs +0 -1
  297. package/designer/avatar/index.esm.js +0 -1460
  298. package/designer/avatar/index.umd.cjs +0 -1
  299. package/designer/binding-selector/index.esm.js +0 -792
  300. package/designer/binding-selector/index.umd.cjs +0 -1
  301. package/designer/button-group/index.esm.js +0 -282
  302. package/designer/button-group/index.umd.cjs +0 -1
  303. package/designer/code-editor/index.esm.js +0 -75
  304. package/designer/code-editor/index.umd.cjs +0 -1
  305. package/designer/color-picker/index.esm.js +0 -1096
  306. package/designer/color-picker/index.umd.cjs +0 -1
  307. package/designer/combo-list/index.esm.js +0 -1095
  308. package/designer/combo-list/index.umd.cjs +0 -1
  309. package/designer/combo-tree/index.esm.js +0 -186
  310. package/designer/combo-tree/index.umd.cjs +0 -1
  311. package/designer/component/index.css +0 -1
  312. package/designer/component/index.esm.js +0 -5002
  313. package/designer/component/index.umd.cjs +0 -1
  314. package/designer/condition/index.esm.js +0 -1899
  315. package/designer/condition/index.umd.cjs +0 -1
  316. package/designer/dropdown/index.esm.js +0 -261
  317. package/designer/dropdown/index.umd.cjs +0 -1
  318. package/designer/expression-editor/index.css +0 -1
  319. package/designer/expression-editor/index.esm.js +0 -7006
  320. package/designer/expression-editor/index.umd.cjs +0 -427
  321. package/designer/filter-condition-editor/index.css +0 -1
  322. package/designer/filter-condition-editor/index.esm.js +0 -4795
  323. package/designer/filter-condition-editor/index.umd.cjs +0 -1
  324. package/designer/html-template/index.esm.js +0 -718
  325. package/designer/html-template/index.umd.cjs +0 -1
  326. package/designer/image-cropper/index.esm.js +0 -765
  327. package/designer/image-cropper/index.umd.cjs +0 -1
  328. package/designer/json-editor/index.esm.js +0 -83
  329. package/designer/json-editor/index.umd.cjs +0 -1
  330. package/designer/language-textbox/index.esm.js +0 -783
  331. package/designer/language-textbox/index.umd.cjs +0 -8
  332. package/designer/layout/index.esm.js +0 -430
  333. package/designer/layout/index.umd.cjs +0 -1
  334. package/designer/list-nav/index.esm.js +0 -802
  335. package/designer/list-nav/index.umd.cjs +0 -1
  336. package/designer/lookup/index.esm.js +0 -2083
  337. package/designer/lookup/index.umd.cjs +0 -1
  338. package/designer/menu-lookup/index.esm.js +0 -46
  339. package/designer/menu-lookup/index.umd.cjs +0 -1
  340. package/designer/nav/index.esm.js +0 -284
  341. package/designer/nav/index.umd.cjs +0 -1
  342. package/designer/number-range/index.esm.js +0 -1616
  343. package/designer/number-range/index.umd.cjs +0 -1
  344. package/designer/order/index.css +0 -1
  345. package/designer/order/index.esm.js +0 -2196
  346. package/designer/order/index.umd.cjs +0 -18
  347. package/designer/page-footer/index.esm.js +0 -290
  348. package/designer/page-footer/index.umd.cjs +0 -1
  349. package/designer/page-header/index.esm.js +0 -1003
  350. package/designer/page-header/index.umd.cjs +0 -1
  351. package/designer/pagination/index.esm.js +0 -591
  352. package/designer/pagination/index.umd.cjs +0 -1
  353. package/designer/progress/index.esm.js +0 -213
  354. package/designer/progress/index.umd.cjs +0 -1
  355. package/designer/search-box/index.esm.js +0 -245
  356. package/designer/search-box/index.umd.cjs +0 -1
  357. package/designer/smoke-detector/index.css +0 -1
  358. package/designer/smoke-detector/index.esm.js +0 -178
  359. package/designer/smoke-detector/index.umd.cjs +0 -1
  360. package/designer/sort-condition-editor/index.esm.js +0 -138
  361. package/designer/sort-condition-editor/index.umd.cjs +0 -1
  362. package/designer/splitter/index.esm.js +0 -1120
  363. package/designer/splitter/index.umd.cjs +0 -1
  364. package/designer/step/index.esm.js +0 -226
  365. package/designer/step/index.umd.cjs +0 -1
  366. package/designer/text/index.esm.js +0 -147
  367. package/designer/text/index.umd.cjs +0 -1
  368. package/designer/transfer/index.esm.js +0 -254
  369. package/designer/transfer/index.umd.cjs +0 -1
  370. package/designer/tree-view/index.esm.js +0 -313
  371. package/designer/tree-view/index.umd.cjs +0 -1
  372. package/designer/uploader/index.esm.js +0 -1190
  373. package/designer/uploader/index.umd.cjs +0 -2
  374. package/designer/verify-detail/index.esm.js +0 -258
  375. package/designer/verify-detail/index.umd.cjs +0 -1
  376. package/designer/video/index.esm.js +0 -136
  377. package/designer/video/index.umd.cjs +0 -1
  378. package/designer/weather/index.css +0 -1
  379. package/designer/weather/index.esm.js +0 -6244
  380. package/designer/weather/index.umd.cjs +0 -14
  381. package/types/accordion/designer.d.ts +0 -44
  382. package/types/avatar/designer.d.ts +0 -29
  383. package/types/button-group/designer.d.ts +0 -29
  384. package/types/code-editor/designer.d.ts +0 -5
  385. package/types/color-picker/designer.d.ts +0 -29
  386. package/types/combo-list/designer.d.ts +0 -29
  387. package/types/combo-list/src/designer/combo-list.design.props.d.ts +0 -6
  388. package/types/combo-tree/designer.d.ts +0 -5
  389. package/types/component/designer.d.ts +0 -35
  390. package/types/condition/designer.d.ts +0 -56
  391. package/types/dropdown/designer.d.ts +0 -6
  392. package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +0 -11
  393. package/types/expression-editor/designer.d.ts +0 -9
  394. package/types/filter-condition-editor/designer.d.ts +0 -10
  395. package/types/html-template/designer.d.ts +0 -31
  396. package/types/html-template/src/designer/html-template.design.props.d.ts +0 -9
  397. package/types/image-cropper/designer.d.ts +0 -4
  398. package/types/json-editor/designer.d.ts +0 -5
  399. package/types/menu-lookup/designer.d.ts +0 -5
  400. package/types/nav/designer.d.ts +0 -6
  401. package/types/number-range/designer.d.ts +0 -29
  402. package/types/order/designer.d.ts +0 -6
  403. package/types/page-footer/designer.d.ts +0 -6
  404. package/types/page-header/src/designer/page-header.design.props.d.ts +0 -20
  405. package/types/pagination/designer.d.ts +0 -29
  406. package/types/progress/designer.d.ts +0 -29
  407. package/types/search-box/designer.d.ts +0 -52
  408. package/types/smoke-detector/designer.d.ts +0 -6
  409. package/types/sort-condition-editor/designer.d.ts +0 -9
  410. package/types/splitter/designer.d.ts +0 -32
  411. package/types/step/designer.d.ts +0 -6
  412. package/types/text/designer.d.ts +0 -6
  413. package/types/transfer/designer.d.ts +0 -35
  414. package/types/tree-view/designer.d.ts +0 -29
  415. package/types/uploader/designer.d.ts +0 -141
  416. package/types/verify-detail/designer.d.ts +0 -6
  417. package/types/video/designer.d.ts +0 -6
  418. /package/{designer → components}/condition/index.css +0 -0
  419. /package/{designer → components}/uploader/index.css +0 -0
  420. /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,96 +1,92 @@
1
- var De = Object.defineProperty;
2
- var Ne = (t, e, o) => e in t ? De(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
3
- var se = (t, e, o) => Ne(t, typeof e != "symbol" ? e + "" : e, o);
4
- import Ue, { dynamicFormGroupProps as Ve, FDynamicFormLabel as $e, responseFormProps as Ae, dynamicFormInputProps as Re, FResponseForm as qe, FDynamicFormInput as Se } from "../../components/dynamic-form/index.esm.js";
5
- import { schemaResolverMap as Ge, propertyEffectMap as je, propertyConfigSchemaMap as Oe, schemaMap as Te, createPropsResolver as le, propertyConfigSchemaMapForDesigner as Ze, resolveAppearance as We, createFormGroupEditorResolver as Je } from "../../components/dynamic-resolver/index.esm.js";
6
- import { defineComponent as _, ref as B, watch as ae, computed as j, createVNode as b, createTextVNode as X, mergeProps as me, inject as Q, onMounted as ce, withDirectives as ze, resolveDirective as Xe } from "vue";
7
- import Ke from "../accordion/index.esm.js";
8
- import Qe from "../avatar/index.esm.js";
9
- import _e from "../button-edit/index.esm.js";
10
- import Ye from "../button-group/index.esm.js";
11
- import He from "../../components/calendar/index.esm.js";
12
- import et from "../capsule/index.esm.js";
13
- import he from "../checkbox/index.esm.js";
14
- import Ce from "../checkbox-group/index.esm.js";
15
- import tt from "../combo-list/index.esm.js";
16
- import ot from "../combo-tree/index.esm.js";
17
- import nt from "../component/index.esm.js";
18
- import rt from "../color-picker/index.esm.js";
19
- import it from "../../components/content-container/index.esm.js";
20
- import at from "../date-picker/index.esm.js";
21
- import st from "../data-grid/index.esm.js";
22
- import lt from "../dropdown/index.esm.js";
23
- import ut from "../../components/events-editor/index.esm.js";
24
- import ct from "../../components/filter-bar/index.esm.js";
25
- import pt from "../../components/field-selector/index.esm.js";
26
- import dt from "../binding-selector/index.esm.js";
27
- import mt from "../image-cropper/index.esm.js";
28
- import ft from "../input-group/index.esm.js";
29
- import yt from "../../components/layout/index.esm.js";
30
- import gt from "../../components/list-nav/index.esm.js";
31
- import ht from "../list-view/index.esm.js";
32
- import Ct from "../../components/lookup/index.esm.js";
33
- import vt from "../../components/mapping-editor/index.esm.js";
34
- import Ft from "../nav/index.esm.js";
35
- import bt from "../number-range/index.esm.js";
36
- import wt from "../number-spinner/index.esm.js";
37
- import It from "../order/index.esm.js";
38
- import Vt from "../../components/page-header/index.esm.js";
39
- import Tt from "../page-footer/index.esm.js";
40
- import kt from "../pagination/index.esm.js";
41
- import Mt from "../progress/index.esm.js";
42
- import Bt from "../../components/query-solution/index.esm.js";
43
- import xt from "../radio-group/index.esm.js";
44
- import Et from "../rate/index.esm.js";
45
- import Pt from "../response-toolbar/index.esm.js";
46
- import Lt from "../../components/response-layout/index.esm.js";
47
- import Dt, { useResponseLayoutEditorSetting as Nt } from "../response-layout-editor/index.esm.js";
48
- import Ut from "../search-box/index.esm.js";
49
- import $t from "../section/index.esm.js";
50
- import At from "../smoke-detector/index.esm.js";
51
- import Rt from "../splitter/index.esm.js";
52
- import qt from "../step/index.esm.js";
53
- import St from "../switch/index.esm.js";
54
- import Gt from "../tabs/index.esm.js";
55
- import jt from "../tags/index.esm.js";
56
- import Ot from "../text/index.esm.js";
57
- import Zt from "../time-picker/index.esm.js";
58
- import Wt from "../transfer/index.esm.js";
59
- import Jt from "../tree-view/index.esm.js";
60
- import zt from "../uploader/index.esm.js";
61
- import Xt from "../verify-detail/index.esm.js";
62
- import Kt from "../video/index.esm.js";
63
- import Qt from "../textarea/index.esm.js";
64
- import _t from "../../components/schema-selector/index.esm.js";
65
- import Yt from "../tree-grid/index.esm.js";
66
- import Ht from "../../components/event-parameter/index.esm.js";
67
- import eo from "../filter-condition-editor/index.esm.js";
68
- import to from "../../components/fieldset/index.esm.js";
69
- import oo from "../sort-condition-editor/index.esm.js";
70
- import no from "../menu-lookup/index.esm.js";
71
- import ro from "../drawer/index.esm.js";
72
- import io from "../json-editor/index.esm.js";
73
- import ao from "../../components/property-editor/index.esm.js";
74
- import so from "../expression-editor/index.esm.js";
75
- import lo from "../code-editor/index.esm.js";
76
- import uo from "../html-template/index.esm.js";
77
- import co from "../../components/collection-property-editor/index.esm.js";
78
- import po from "../modal/index.esm.js";
79
- import mo from "../../components/external-container/index.esm.js";
80
- import fo from "../../components/language-textbox/index.esm.js";
81
- import yo from "../../components/image/index.esm.js";
82
- import go from "../../components/comment/index.esm.js";
83
- import { useThirdComponent as ke, isMobilePhone as ho, useGuid as ve, areaResponseDirective as Co, useTextBoxDesign as vo, FormSchemaEntityField$Type as Fe, FormSchemaEntityFieldTypeName as be } from "../../components/common/index.esm.js";
84
- import { DgControl as a, refreshCanvas as Fo, UseTemplateDragAndDropRules as bo, useDragulaCommonRule as wo, useDesignerComponent as fe } from "../../components/designer-canvas/index.esm.js";
85
- import { BaseControlProperty as Io, FormBindingType as oe, InputBaseProperty as Vo } from "../../components/property-panel/index.esm.js";
1
+ var Me = Object.defineProperty;
2
+ var xe = (e, t, n) => t in e ? Me(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var te = (e, t, n) => xe(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { dynamicFormGroupProps as ve, FDynamicFormLabel as Be, responseFormProps as Pe, dynamicFormInputProps as Ee, FDynamicFormGroup as De, FResponseForm as $e, FDynamicFormInput as Ne } from "../../components/dynamic-form/index.esm.js";
5
+ import { schemaMap as Se, propertyConfigSchemaMapForDesigner as Le, resolveAppearance as Oe, createPropsResolver as re, createFormGroupEditorResolver as Ae } from "../../components/dynamic-resolver/index.esm.js";
6
+ import { defineComponent as ne, ref as A, inject as Y, onMounted as ie, computed as K, withDirectives as Re, createVNode as P, resolveDirective as Ue, mergeProps as be, watch as je, createTextVNode as Q } from "vue";
7
+ import { DgControl as u, refreshCanvas as qe, UseTemplateDragAndDropRules as Ge, useDragulaCommonRule as Ze, useDesignerComponent as ce } from "../../components/designer-canvas/index.esm.js";
8
+ import { useGuid as pe, areaResponseDirective as ze, useThirdComponent as he, useTextBoxDesign as We, FormSchemaEntityField$Type as de, FormSchemaEntityFieldTypeName as me } from "../../components/common/index.esm.js";
9
+ import { BaseControlProperty as Je, FormBindingType as H, InputBaseProperty as _e } from "../../components/property-panel/index.esm.js";
10
+ import { useResponseLayoutEditorSetting as Xe } from "../response-layout-editor/index.esm.js";
11
+ import "../../components/accordion/index.esm.js";
12
+ import "../../components/avatar/index.esm.js";
13
+ import "../button-edit/index.esm.js";
14
+ import "../../components/button-group/index.esm.js";
15
+ import "../../components/calendar/index.esm.js";
16
+ import "../capsule/index.esm.js";
17
+ import "../checkbox/index.esm.js";
18
+ import "../checkbox-group/index.esm.js";
19
+ import "../../components/color-picker/index.esm.js";
20
+ import oe from "../../components/combo-list/index.esm.js";
21
+ import "../../components/content-container/index.esm.js";
22
+ import "../data-grid/index.esm.js";
23
+ import "../date-picker/index.esm.js";
24
+ import "../../components/dropdown/index.esm.js";
86
25
  import "../dynamic-form/index.esm.js";
26
+ import "../../components/external-container/index.esm.js";
27
+ import "../../components/filter-bar/index.esm.js";
28
+ import "../../components/image-cropper/index.esm.js";
29
+ import "../input-group/index.esm.js";
30
+ import "../../components/layout/index.esm.js";
31
+ import "../../components/list-nav/index.esm.js";
32
+ import "../list-view/index.esm.js";
33
+ import "../../components/lookup/index.esm.js";
34
+ import "../../components/language-textbox/index.esm.js";
87
35
  import "../../components/nav/index.esm.js";
36
+ import "../number-spinner/index.esm.js";
37
+ import "../../components/number-range/index.esm.js";
38
+ import "../../components/order/index.esm.js";
39
+ import "../../components/page-header/index.esm.js";
40
+ import "../../components/page-footer/index.esm.js";
41
+ import "../../components/pagination/index.esm.js";
42
+ import "../../components/progress/index.esm.js";
43
+ import "../../components/query-solution/index.esm.js";
44
+ import "../radio-group/index.esm.js";
45
+ import "../rate/index.esm.js";
46
+ import "../response-toolbar/index.esm.js";
47
+ import "../../components/response-layout/index.esm.js";
48
+ import "../../components/search-box/index.esm.js";
49
+ import "../section/index.esm.js";
50
+ import "../../components/smoke-detector/index.esm.js";
51
+ import "../../components/splitter/index.esm.js";
88
52
  import "../../components/step/index.esm.js";
53
+ import "../switch/index.esm.js";
54
+ import "../tabs/index.esm.js";
55
+ import "../tags/index.esm.js";
56
+ import "../../components/text/index.esm.js";
57
+ import "../time-picker/index.esm.js";
58
+ import "../../components/transfer/index.esm.js";
59
+ import "../../components/tree-view/index.esm.js";
60
+ import "../../components/uploader/index.esm.js";
61
+ import "../../components/verify-detail/index.esm.js";
62
+ import "../../components/component/index.esm.js";
63
+ import "../../components/video/index.esm.js";
64
+ import "../textarea/index.esm.js";
65
+ import "../tree-grid/index.esm.js";
66
+ import "../../components/fieldset/index.esm.js";
67
+ import "../drawer/index.esm.js";
89
68
  import "../../components/html-template/index.esm.js";
90
- import { cloneDeep as To } from "lodash-es";
91
- import ue from "../../components/combo-list/index.esm.js";
92
- import { FMessageBoxService as ko } from "../../components/message-box/index.esm.js";
93
- const ye = {
69
+ import "../../components/image/index.esm.js";
70
+ import "../../components/comment/index.esm.js";
71
+ import { isPlainObject as fe, cloneDeep as ae } from "lodash-es";
72
+ import "../../components/combo-tree/index.esm.js";
73
+ import "../../components/events-editor/index.esm.js";
74
+ import "../../components/field-selector/index.esm.js";
75
+ import "../../components/binding-selector/index.esm.js";
76
+ import "../../components/mapping-editor/index.esm.js";
77
+ import "../../components/schema-selector/index.esm.js";
78
+ import "../../components/event-parameter/index.esm.js";
79
+ import "../../components/filter-condition-editor/index.esm.js";
80
+ import "../../components/sort-condition-editor/index.esm.js";
81
+ import "../../components/menu-lookup/index.esm.js";
82
+ import "../../components/json-editor/index.esm.js";
83
+ import "../../components/property-editor/index.esm.js";
84
+ import "../../components/expression-editor/index.esm.js";
85
+ import "../../components/code-editor/index.esm.js";
86
+ import "../../components/collection-property-editor/index.esm.js";
87
+ import "../modal/index.esm.js";
88
+ import { FMessageBoxService as Qe } from "../../components/message-box/index.esm.js";
89
+ const Ce = {
94
90
  id: { type: String, default: "" },
95
91
  customClass: { type: String, default: "" },
96
92
  customStyle: { type: String, default: "" },
@@ -111,711 +107,417 @@ const ye = {
111
107
  componentId: { type: String, default: "" },
112
108
  errors: { type: Object, default: null },
113
109
  fill: { type: Boolean, default: !1 }
114
- }, Mo = {
115
- id: { type: String },
116
- required: { type: Boolean, default: !1 },
117
- text: { type: String, default: "" },
118
- title: { type: String },
119
- valid: { type: Boolean, default: !0 },
120
- inValidTip: { type: String, default: "" },
121
- /**
122
- * 实际支持 'visible'可见 | 'reserve-space' 占位不显示
123
- */
124
- showType: { type: String, default: "visible" }
125
- }, Bo = /* @__PURE__ */ _({
126
- name: "FDynamicFormLabel",
127
- props: Mo,
128
- emits: [],
129
- setup(t, e) {
130
- B(t.title || t.text);
131
- const o = B(t.required), i = B(t.text), n = B(t.valid), l = B(t.inValidTip);
132
- ae(() => t.text, () => {
133
- i.value = t.text;
134
- }), ae(() => t.required, (F, m) => {
135
- F !== m && (o.value = F);
136
- }), ae([() => t.valid, () => t.inValidTip], ([F, m]) => {
137
- n.value = F, l.value = m;
138
- });
139
- const p = j(() => n.value ? i.value : l.value), C = j(() => n.value ? "" : "color:red"), g = j(() => ({
140
- "col-form-label": !0,
141
- // 指定必填,当显示模式是隐藏或者没有指定标签名时,宽度不限定
142
- "f-width-auto": o.value && (t.showType === "none" || !i.value)
143
- })), y = j(() => t.showType === "force-none" ? !1 : t.showType === "reserve-space" || o.value || !!i.value && t.showType !== "none");
144
- return () => y.value && b("label", {
145
- class: g.value,
146
- title: p.value,
147
- style: C.value
148
- }, [!n.value && b("span", {
149
- class: "f-icon f-icon-warning mr-1",
150
- style: "color: red; min-width: 16px;",
151
- title: l.value
152
- }, null), b("span", {
153
- class: "farris-label-text"
154
- }, [o.value && b("span", {
155
- class: "farris-label-info text-danger"
156
- }, [X("*")]), t.showType === "visible" && i.value])]);
157
- }
158
- }), { globalStorageKey: xo } = ke(), u = {}, c = {}, d = {}, f = {};
159
- async function Eo() {
160
- {
161
- const t = {
162
- schemaMap: Te,
163
- propertyConfigSchemaMap: Oe,
164
- propertyEffectMap: je,
165
- schemaResolverMap: Ge
166
- };
167
- Qe.register(u, c, d, f), Ke.register(u, c, d, f), _e.register(u, c, d, f), Ye.register(u, c, d, f), He.register(u, c, d, f, t), et.register(u, c, d, f), he.register(u, c, d, f, t), Ce.register(u, c, d, f, t), he.register(u, c, d, f, t), Ce.register(u, c, d, f, t), tt.register(u, c, d, f, t), ot.register(u, c, d, f), nt.register(u, c, d, f), it.register(u, c, d, f, t), rt.register(u, c, d, f), at.register(u, c, d, f, t), st.register(u, c, d, f, t), lt.register(u, c, d, f), Ue.register(u, c, d, f, t), ut.register(u, c, d, f), so.register(u, c, d, f), ct.register(u, c, d, f), pt.register(u, c, d, f), eo.register(u, c, d, f), mt.register(u, c, d, f), ft.register(u, c, d, f, t), yt.register(u, c, d, f, t), ht.register(u, c, d, f, t), gt.register(u, c, d, f), Ct.register(u, c, d, f, t), vt.register(u, c, d, f), Ft.register(u, c, d, f), bt.register(u, c, d, f), wt.register(u, c, d, f, t), It.register(u, c, d, f), Vt.register(u, c, d, f, t), Tt.register(u, c, d, f), kt.register(u, c, d, f), Mt.register(u, c, d, f), Bt.register(u, c, d, f, t), xt.register(u, c, d, f, t), Et.register(u, c, d, f), Lt.register(u, c, d, f, t), Dt.register(u, c, d, f), Pt.register(u, c, d, f), _t.register(u, c, d), Ut.register(u, c, d, f), $t.register(u, c, d, f, t), At.register(u, c, d, f), Rt.register(u, c, d, f), qt.register(u, c, d, f), St.register(u, c, d, f, t), oo.register(u, c, d, f), Gt.register(u, c, d, f, t), jt.register(u, c, d, f), Ot.register(u, c, d, f), Zt.register(u, c, d, f, t), Wt.register(u, c, d, f), Jt.register(u, c, d, f), Xt.register(u, c, d, f), zt.register(u, c, d, f), Kt.register(u, c, d, f), Qt.register(u, c, d, f, t), Yt.register(u, c, d, f), dt.register(u, c, d, f), Ht.register(u, c, d, f), to.register(u, c, d, f, t), no.register(u, c, d, f), ro.register(u, c, d, f), io.register(u, c, d, f), ao.register(u, c, d, f), lo.register(u, c, d, f), uo.register(u, c, d, f, t), co.register(u, c, d, f), po.register(u, c, d, f), mo.register(u, c, d, f), fo.register(u, c, d, f, t), yo.register(u, c, d, f, t), go.register(u, c, d, f);
168
- const e = window[xo];
169
- if (e)
170
- for (const o in e)
171
- e[o].createPropsResolver = le, e[o].register(u, c, d);
172
- }
173
- }
174
- function Po() {
175
- Eo();
176
- function t(p) {
177
- const C = u[p];
178
- if (!C)
179
- throw new Error(`Could not find the editor of type '${p}'`);
180
- return C;
181
- }
182
- function e(p, C) {
183
- const g = c[p];
184
- return g ? g(C) : {};
185
- }
186
- function o(p) {
187
- switch (p) {
188
- case "check-box":
189
- return "onChangeValue";
190
- case "switch":
191
- return "onModelValueChanged";
192
- case "check-group":
193
- return "onChangeValue";
194
- case "combo-list":
195
- case "combo-tree":
196
- return "onChange";
197
- case "combo-lookup":
198
- return "";
199
- case "year-range":
200
- case "year-picker":
201
- case "month-range":
202
- case "month-picker":
203
- case "date-range":
204
- case "datetime-range":
205
- case "datetime-picker":
206
- return "onDatePicked";
207
- case "date-picker":
208
- return "onUpdate:modelValue";
209
- case "time-picker":
210
- return "onValueChange";
211
- case "input-group":
212
- return "onChange";
213
- case "lookup":
214
- case "sort-condition-editor":
215
- case "filter-condition-editor":
216
- case "code-editor":
217
- case "language-textbox":
218
- case "rich-text-editor":
219
- return "onUpdate:modelValue";
220
- case "number-range":
221
- return "onValueChange";
222
- case "number-spinner":
223
- return "onValueChange";
224
- case "radio-group":
225
- return "onChangeValue";
226
- case "text":
227
- return "";
228
- case "events-editor":
229
- return "onSavedCommandListChanged";
230
- case "grid-field-editor":
231
- case "item-collection-editor":
232
- case "response-form-layout-setting":
233
- case "response-layout-editor-setting":
234
- case "response-layout-splitter":
235
- case "menu-lookup":
236
- case "json-editor":
237
- return "onChange";
238
- case "field-selector":
239
- case "binding-selector":
240
- return "onFieldSelected";
241
- case "schema-selector":
242
- return "onSchemaSelected";
243
- case "mapping-editor":
244
- return "onMappingFieldsChanged";
245
- case "textarea":
246
- return "onChange";
247
- case "query-solution-config":
248
- case "solution-preset":
249
- case "filter-bar-config":
250
- return "onFieldsChanged";
251
- case "property-editor":
252
- return "onValueChange";
253
- case "expression-editor":
254
- return "onExpressionChanged";
255
- case "collection-property-editor":
256
- return "onValueChange";
257
- default:
258
- return "onUpdate:modelValue";
259
- }
260
- }
261
- function i(p) {
262
- switch (p) {
263
- case "combo-list":
264
- case "input-group":
265
- case "textarea":
266
- return "onClear";
267
- }
268
- }
269
- function n(p) {
270
- switch (p) {
271
- case "input-group":
272
- case "textarea":
273
- return "onMousedownEvent";
274
- }
275
- }
276
- function l(p) {
277
- switch (p) {
278
- case "input-group":
279
- case "textarea":
280
- return "onMouseupEvent";
281
- }
282
- }
283
- return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: o, getClearFunctionName: i, getMousedownFunctionName: n, getMouseupFunctionName: l };
284
- }
285
- const Lo = {
286
- /**
287
- * 显示的错误信息
288
- */
289
- errors: {
290
- type: Object,
291
- default: null
292
- }
293
- }, Do = /* @__PURE__ */ _({
294
- name: "FValidationMessage",
295
- props: Lo,
296
- emits: [],
297
- setup(t, e) {
298
- const o = B(t.errors);
299
- ae(() => t.errors, (l) => {
300
- o.value = l;
301
- });
302
- const i = B(!0), n = j(() => {
303
- if (o.value) {
304
- const l = Object.keys(o.value).map((p) => {
305
- var C;
306
- return (C = o.value[p]) == null ? void 0 : C.name;
307
- });
308
- return l.length ? l.join(" ") : "";
309
- }
310
- return "";
311
- });
312
- return () => n.value && b("div", {
313
- class: "farris-feedback f-state-invalid",
314
- onClick: () => i.value = !i.value
315
- }, [!i.value && b("span", {
316
- class: "f-icon f-icon-message_warning f-feedback-icon"
317
- }, null), i.value && b("span", {
318
- class: "f-feedback-message"
319
- }, [n.value])]);
320
- }
321
- }), No = /* @__PURE__ */ _({
322
- name: "FDynamicFormGroup",
323
- props: ye,
324
- emits: ["change", "update:modelValue"],
325
- setup(t, e) {
326
- var re;
327
- const o = B(t.id), i = B(t.customClass), n = B(t.editor), l = B(t.label), p = B(t.modelValue), C = B(t.readonly), g = B(((re = t.editor) == null ? void 0 : re.required) || t.required), y = B(t.showLabel), F = B(t.visible);
328
- B(t.type);
329
- const m = B(), w = B(t.errors), E = ho(), L = B(t.editor.type || "input-group"), $ = j(() => y.value ? t.showLabelType : "none"), {
330
- resolveEditorProps: R,
331
- resolveEditorType: P,
332
- getChangeFunctionName: M,
333
- getClearFunctionName: q
334
- } = Po(), A = j(() => {
335
- const D = {
336
- "form-group": !0,
337
- "farris-form-group": !0,
338
- "common-group": !0,
339
- "q-state-readonly": C.value,
340
- "form-group--in-mobile": E
341
- };
342
- return D["form-group--has-" + L.value] = !0, D;
343
- }), O = j(() => {
344
- if (t.fill)
345
- return {
346
- maxWidth: "none"
347
- };
348
- });
349
- function S(D, G, r) {
350
- p.value = G !== void 0 ? G : D, e.emit("update:modelValue", p.value), e.emit("change", p.value, {
351
- newValue: D,
352
- newModelValue: G,
353
- parameters: r
354
- });
355
- }
356
- function ne() {
357
- e.emit("update:modelValue", "");
358
- }
359
- function W(D) {
360
- return (...G) => {
361
- ne(), typeof D == "function" && D(...G);
362
- };
363
- }
364
- function K(D) {
365
- return (G, r, s) => {
366
- S(G, r, s), typeof D == "function" && D(G, r, s);
367
- };
368
- }
369
- const Y = j(() => {
370
- const D = n.value.type || "input-group", G = P(D), r = R(D, n.value), s = M(D), h = q(n.value.type);
371
- return h && (r[h] = W(r[h])), s && (r[s] = K(r[s])), (r.id == null || r.id === "") && (r.id = o.value), D === "number-range" && n.value.onBeginValueChange && typeof n.value.onBeginValueChange == "function" ? (n.value.onBeginValueChange && typeof n.value.onBeginValueChange == "function" && (r.onBeginValueChange = n.value.onBeginValueChange), n.value.onEndValueChange && typeof n.value.onEndValueChange == "function" && (r.onEndValueChange = n.value.onEndValueChange)) : D === "lookup" && n.value["onUpdate:idValue"] && typeof n.value["onUpdate:idValue"] == "function" ? (r["onUpdate:idValue"] = n.value["onUpdate:idValue"], r.id = o.value) : D === "collection-property-editor" && n.value.onSelectionChange && typeof n.value.onSelectionChange == "function" ? r.onSelectionChange = n.value.onSelectionChange : D === "property-editor" && (r.onBeforeOpenVariables = n.value.onBeforeOpenVariables), () => b(G, me({
372
- ref: m
373
- }, r, {
374
- modelValue: p.value,
375
- "onUpdate:modelValue": (I) => p.value = I
376
- }), e.slots);
377
- });
378
- function H() {
379
- return b(Do, {
380
- id: `${o.value}-validation-message`,
381
- errors: w.value
382
- }, null);
383
- }
384
- return ae([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible, () => t.errors], ([D, G, r, s, h, I, T, k, x, V]) => {
385
- var v;
386
- o.value = D, i.value = G, n.value = r, l.value = s, p.value = h, C.value = I, g.value = ((v = n.value) == null ? void 0 : v.required) || T, y.value = k, F.value = x, w.value = V;
387
- }), e.expose({
388
- editorRef: m
389
- }), () => F.value && b("div", {
390
- id: `${o.value}-form-group`,
391
- class: i.value,
392
- style: t.customStyle
393
- }, [b("div", {
394
- class: "farris-group-wrap",
395
- style: O.value
396
- }, [b("div", {
397
- class: A.value
398
- }, [b(Bo, {
399
- id: `${o.value}-lable`,
400
- showType: $.value,
401
- required: g.value,
402
- text: l.value,
403
- title: l.value
404
- }, null), b("div", {
405
- class: "farris-input-wrap"
406
- }, [Y.value(), H()])])])]);
407
- }
408
- });
409
- function Uo(t, e) {
410
- function o(g, y = null) {
411
- if (y)
412
- return y;
413
- const F = t.getComponentById(e);
414
- return t.selectNode(F, (m) => m.id === g);
415
- }
416
- function i(g) {
417
- const y = t.getComponentById(g);
418
- return !(!y || !y.componentType || !y.componentType.startsWith("form"));
419
- }
420
- function n(g) {
421
- const y = new Set(g);
422
- return Array.from(y).length === 1;
423
- }
424
- function l(g) {
425
- const y = o(g.id), F = Nt(t), m = [];
426
- F.getResonseFormLayoutConfig(y, m, 1);
427
- const w = m.map((A) => A.columnInSM), E = m.map((A) => A.columnInMD), L = m.map((A) => A.columnInLG), $ = m.map((A) => A.columnInEL), R = n(w) ? w[0] : 0, P = n(E) ? E[0] : 0, M = n(L) ? L[0] : 0, q = n($) ? $[0] : 0;
110
+ };
111
+ function Ye(e, t) {
112
+ function n(h, a = null) {
113
+ if (a)
114
+ return a;
115
+ const f = e.getComponentById(t);
116
+ return e.selectNode(f, (i) => i.id === h);
117
+ }
118
+ function o(h) {
119
+ const a = e.getComponentById(h);
120
+ return !(!a || !a.componentType || !a.componentType.startsWith("form"));
121
+ }
122
+ function r(h) {
123
+ const a = new Set(h);
124
+ return Array.from(a).length === 1;
125
+ }
126
+ function m(h) {
127
+ const a = n(h.id), f = Xe(e), i = [];
128
+ f.getResonseFormLayoutConfig(a, i, 1);
129
+ const s = i.map(($) => $.columnInSM), g = i.map(($) => $.columnInMD), c = i.map(($) => $.columnInLG), p = i.map(($) => $.columnInEL), v = r(s) ? s[0] : 0, b = r(g) ? g[0] : 0, C = r(c) ? c[0] : 0, D = r(p) ? p[0] : 0;
428
130
  return {
429
- uniqueColClassInSM: R,
430
- uniqueColClassInMD: P,
431
- uniqueColClassInLG: M,
432
- uniqueColClassInEL: q
131
+ uniqueColClassInSM: v,
132
+ uniqueColClassInMD: b,
133
+ uniqueColClassInLG: C,
134
+ uniqueColClassInEL: D
433
135
  };
434
136
  }
435
- function p(g, y) {
436
- let F, m, w, E, L = [];
437
- if (g) {
438
- const A = g.split(" "), O = A.filter((S) => S.startsWith("col-"));
439
- F = O.find((S) => /^col-([1-9]|10|11|12)$/.test(S)), m = O.find((S) => /^col-md-([1-9]|10|11|12)$/.test(S)), w = O.find((S) => /^col-xl-([1-9]|10|11|12)$/.test(S)), E = O.find((S) => /^col-el-([1-9]|10|11|12)$/.test(S)), L = A.filter((S) => !S.startsWith("col-"));
137
+ function y(h, a) {
138
+ let f, i, s, g, c = [];
139
+ if (h) {
140
+ const $ = h.split(" "), O = $.filter((B) => B.startsWith("col-"));
141
+ f = O.find((B) => /^col-([1-9]|10|11|12)$/.test(B)), i = O.find((B) => /^col-md-([1-9]|10|11|12)$/.test(B)), s = O.find((B) => /^col-xl-([1-9]|10|11|12)$/.test(B)), g = O.find((B) => /^col-el-([1-9]|10|11|12)$/.test(B)), c = $.filter((B) => !B.startsWith("col-"));
440
142
  }
441
- const $ = y.uniqueColClassInSM ? "col-" + y.uniqueColClassInSM : F, R = y.uniqueColClassInMD ? "col-md-" + y.uniqueColClassInMD : m, P = y.uniqueColClassInLG ? "col-xl-" + y.uniqueColClassInLG : w, M = y.uniqueColClassInEL ? "col-el-" + y.uniqueColClassInEL : E;
442
- return [$, R, P, M].concat(L).join(" ");
143
+ const p = a.uniqueColClassInSM ? "col-" + a.uniqueColClassInSM : f, v = a.uniqueColClassInMD ? "col-md-" + a.uniqueColClassInMD : i, b = a.uniqueColClassInLG ? "col-xl-" + a.uniqueColClassInLG : s, C = a.uniqueColClassInEL ? "col-el-" + a.uniqueColClassInEL : g;
144
+ return [p, v, b, C].concat(c).join(" ");
443
145
  }
444
- function C(g, y, F) {
445
- g = o(F, g), g.contents.forEach((m) => {
446
- if (m.type === a.fieldset.type) {
447
- C(m, y, m.id);
146
+ function w(h, a, f) {
147
+ h = n(f, h), h.contents.forEach((i) => {
148
+ if (i.type === u.fieldset.type) {
149
+ w(i, a, i.id);
448
150
  return;
449
151
  }
450
- m.appearance || (m.appearance = {});
451
- const w = m.appearance.class;
452
- m.appearance.class = p(w, y);
152
+ i.appearance || (i.appearance = {});
153
+ const s = i.appearance.class;
154
+ i.appearance.class = y(s, a);
453
155
  });
454
156
  }
455
- return { checkIsInFormComponent: i, assembleUnifiedLayoutContext: l, changeFormControlsByUnifiedLayoutConfig: C };
157
+ return { checkIsInFormComponent: o, assembleUnifiedLayoutContext: m, changeFormControlsByUnifiedLayoutConfig: w };
456
158
  }
457
- class $o extends Io {
458
- constructor(e, o) {
459
- super(e, o);
460
- }
461
- getPropertyConfig(e, o) {
462
- const i = this;
463
- this.propertyConfig.categories.basic = this.getBasicPropConfig(e);
464
- const { checkIsInFormComponent: n, assembleUnifiedLayoutContext: l, changeFormControlsByUnifiedLayoutConfig: p } = Uo(this.formSchemaUtils, this.componentId), C = this.getAppearanceConfig(e), g = n(this.componentId);
465
- return C.properties.adaptForLanguage = {
159
+ class He extends Je {
160
+ constructor(t, n) {
161
+ super(t, n);
162
+ }
163
+ getPropertyConfig(t, n) {
164
+ const o = this;
165
+ this.propertyConfig.categories.basic = this.getBasicPropConfig(t);
166
+ const { checkIsInFormComponent: r, assembleUnifiedLayoutContext: m, changeFormControlsByUnifiedLayoutConfig: y } = Ye(this.formSchemaUtils, this.componentId), w = this.getAppearanceConfig(t), h = r(this.componentId);
167
+ return w.properties.adaptForLanguage = {
466
168
  title: "控件布局响应国际化",
467
169
  description: "启用国际化后:简体中文、繁体中文环境下控件标签与输入框在一行展示,其他语言环境下控件标签与输入框上下排列。",
468
- visible: g,
170
+ visible: h,
469
171
  type: "boolean"
470
- }, C.properties.labelAutoOverflow = {
172
+ }, w.properties.labelAutoOverflow = {
471
173
  title: "控件标签换行",
472
174
  description: "控件标签字数超长时,换行显示。控件标签与输入框在一行展示时,此属性有效。",
473
- visible: g,
175
+ visible: h,
474
176
  type: "boolean"
475
- }, C.properties.unifiedLayout = {
177
+ }, w.properties.unifiedLayout = {
476
178
  title: "统一布局配置",
477
179
  description: "统一配置卡片区域内所有控件的宽度,只支持标准模式",
478
- visible: g,
180
+ visible: h,
479
181
  refreshPanelAfterChanged: !0,
480
182
  editor: {
481
183
  type: "response-form-layout-setting",
482
- initialState: l(e)
184
+ initialState: m(t)
483
185
  }
484
- }, C.setPropertyRelates = function(y, F) {
485
- if (y)
486
- switch (y && y.propertyID) {
186
+ }, w.setPropertyRelates = function(a, f) {
187
+ if (a)
188
+ switch (a && a.propertyID) {
487
189
  case "unifiedLayout": {
488
- p(null, y.propertyValue, e.id), i.updateElementByParentContainer(e.id, o);
190
+ y(null, a.propertyValue, t.id), o.updateElementByParentContainer(t.id, n);
489
191
  break;
490
192
  }
491
193
  case "labelAutoOverflow": {
492
- i.setLabelAutoOverflow(e, y.propertyValue), Fo();
194
+ o.setLabelAutoOverflow(t, a.propertyValue), qe();
493
195
  break;
494
196
  }
495
197
  }
496
- }, this.propertyConfig.categories.appearance = C, this.propertyConfig.categories.behavior = this.getBehaviorConfig(e), this.propertyConfig;
198
+ }, this.propertyConfig.categories.appearance = w, this.propertyConfig.categories.behavior = this.getBehaviorConfig(t), this.propertyConfig;
497
199
  }
498
- setLabelAutoOverflow(e, o, i) {
499
- if (!i) {
500
- const n = this.formSchemaUtils.getComponentById(this.componentId);
501
- i = this.formSchemaUtils.selectNode(n, (l) => l.id === e.id);
200
+ setLabelAutoOverflow(t, n, o) {
201
+ if (!o) {
202
+ const r = this.formSchemaUtils.getComponentById(this.componentId);
203
+ o = this.formSchemaUtils.selectNode(r, (m) => m.id === t.id);
502
204
  }
503
- i && i.contents && i.contents.length && i.contents.forEach((n) => {
504
- if (n.type === a.fieldset.type) {
505
- this.setLabelAutoOverflow(null, o, n);
205
+ o && o.contents && o.contents.length && o.contents.forEach((r) => {
206
+ if (r.type === u.fieldset.type) {
207
+ this.setLabelAutoOverflow(null, n, r);
506
208
  return;
507
209
  }
508
- n.appearance || (n.appearance = {
210
+ r.appearance || (r.appearance = {
509
211
  class: ""
510
- }), n.appearance.class || (n.appearance.class = ""), o ? n.appearance.class.includes("farris-group-multi-label") || (n.appearance.class = n.appearance.class + " farris-group-multi-label") : n.appearance.class = n.appearance.class.replace("farris-group-multi-label", "").trim();
212
+ }), r.appearance.class || (r.appearance.class = ""), n ? r.appearance.class.includes("farris-group-multi-label") || (r.appearance.class = r.appearance.class + " farris-group-multi-label") : r.appearance.class = r.appearance.class.replace("farris-group-multi-label", "").trim();
511
213
  });
512
214
  }
513
215
  }
514
- function Ao(t, e) {
515
- const o = t.schema, i = new bo(), { canMove: n, canAccept: l, canDelete: p } = i.getTemplateRule(t, e);
516
- function C(r, s) {
517
- const { sourceElement: h } = r, { componentInstance: I } = h, T = e == null ? void 0 : e.formSchemaUtils;
518
- if (!T)
216
+ function Ke(e, t) {
217
+ const n = e.schema, o = new Ge(), { canMove: r, canAccept: m, canDelete: y } = o.getTemplateRule(e, t);
218
+ function w(l, d) {
219
+ const { sourceElement: F } = l, { componentInstance: k } = F, I = t == null ? void 0 : t.formSchemaUtils;
220
+ if (!I)
519
221
  return !0;
520
- const k = T.getComponentById(I.value.belongedComponentId), x = T.getViewModelById(k.viewModel), V = T.getComponentById(t.componentInstance.value.belongedComponentId), v = T.getViewModelById(V.viewModel);
521
- return s ? x != null && x.id && (v != null && v.id) && x.id !== v.id ? x.bindTo === v.bindTo : !0 : (x == null ? void 0 : x.id) === (v == null ? void 0 : v.id);
222
+ const x = I.getComponentById(k.value.belongedComponentId), E = I.getViewModelById(x.viewModel), V = I.getComponentById(e.componentInstance.value.belongedComponentId), T = I.getViewModelById(V.viewModel);
223
+ return d ? E != null && E.id && (T != null && T.id) && E.id !== T.id ? E.bindTo === T.bindTo : !0 : (E == null ? void 0 : E.id) === (T == null ? void 0 : T.id);
522
224
  }
523
- function g(r) {
524
- const { bindingTargetId: s } = r;
525
- if (!e)
225
+ function h(l) {
226
+ const { bindingTargetId: d } = l;
227
+ if (!t)
526
228
  return;
527
- const { formSchemaUtils: h, schemaService: I } = e, T = h.getComponentById(t.componentInstance.value.belongedComponentId), k = I.getFieldByIDAndVMID(s, T.viewModel);
528
- return !!(k != null && k.schemaField);
229
+ const { formSchemaUtils: F, schemaService: k } = t, I = F.getComponentById(e.componentInstance.value.belongedComponentId), x = k.getFieldByIDAndVMID(d, I.viewModel);
230
+ return !!(x != null && x.schemaField);
529
231
  }
530
- function y(r) {
531
- const s = i.getComponentContext(t);
532
- if (s && s.componentClassList && s.componentClassList.includes("f-form-layout") && s.componentClassList.includes("farris-form")) {
533
- if (r.sourceType === "control" && (r.componentCategory === "input" || r.componentType === "fieldset"))
232
+ function a(l) {
233
+ const d = o.getComponentContext(e);
234
+ if (d && d.componentClassList && d.componentClassList.includes("f-form-layout") && d.componentClassList.includes("farris-form")) {
235
+ if (l.sourceType === "control" && (l.componentCategory === "input" || l.componentType === "fieldset"))
534
236
  return !0;
535
- if (r.sourceType === "move") {
536
- if (r.componentType === "form-group")
537
- return C(r, !0);
538
- if (r.componentType === "fieldset")
539
- return C(r, !1);
237
+ if (l.sourceType === "move") {
238
+ if (l.componentType === "form-group")
239
+ return w(l, !0);
240
+ if (l.componentType === "fieldset")
241
+ return w(l, !1);
540
242
  }
541
- return r.sourceType === "field" && r.componentCategory === "input" ? g(r) : !1;
243
+ return l.sourceType === "field" && l.componentCategory === "input" ? h(l) : !1;
542
244
  }
543
245
  return !0;
544
246
  }
545
- function F(r) {
546
- return !(!wo().basalDragulaRuleForContainer(r, e) || !l || !y(r));
547
- }
548
- function m(r) {
549
- var v;
550
- const s = r.componentInstance, h = s.value.schema, I = e == null ? void 0 : e.formSchemaUtils, T = e == null ? void 0 : e.designViewModelUtils, k = I.getViewModelIdByComponentId(s.value.belongedComponentId), x = T.getDgViewModel(k), V = s.value.parent;
551
- if (V && a.fieldset && ((v = V.schema) == null ? void 0 : v.type) === a.fieldset.type && x) {
552
- const N = { groupId: null, groupName: null };
553
- switch (h.binding.type) {
554
- case oe.Form: {
555
- x.changeField(h.binding.field, N);
247
+ function f(l) {
248
+ return !(!Ze().basalDragulaRuleForContainer(l, t) || !m || !a(l));
249
+ }
250
+ function i(l) {
251
+ var T;
252
+ const d = l.componentInstance, F = d.value.schema, k = t == null ? void 0 : t.formSchemaUtils, I = t == null ? void 0 : t.designViewModelUtils, x = k.getViewModelIdByComponentId(d.value.belongedComponentId), E = I.getDgViewModel(x), V = d.value.parent;
253
+ if (V && u.fieldset && ((T = V.schema) == null ? void 0 : T.type) === u.fieldset.type && E) {
254
+ const S = { groupId: null, groupName: null };
255
+ switch (F.binding.type) {
256
+ case H.Form: {
257
+ E.changeField(F.binding.field, S);
556
258
  break;
557
259
  }
558
- case oe.Variable: {
559
- I.modifyViewModelFieldById(k, h.binding.field, N, !0);
260
+ case H.Variable: {
261
+ k.modifyViewModelFieldById(x, F.binding.field, S, !0);
560
262
  break;
561
263
  }
562
264
  }
563
265
  }
564
266
  }
565
- function w(r, s, h) {
566
- const I = s.fields.find((v) => v.id === r), T = e == null ? void 0 : e.designViewModelUtils, k = T.getDgViewModel(s.id), x = k.fields.find((v) => v.id === r);
567
- k.removeField([r]);
568
- const V = T.getDgViewModel(h);
569
- V.addField(x), I.fieldSchema && V.changeField(x.id, I.fieldSchema);
267
+ function s(l, d, F) {
268
+ const k = d.fields.find((T) => T.id === l), I = t == null ? void 0 : t.designViewModelUtils, x = I.getDgViewModel(d.id), E = x.fields.find((T) => T.id === l);
269
+ x.removeField([l]);
270
+ const V = I.getDgViewModel(F);
271
+ V.addField(E), k.fieldSchema && V.changeField(E.id, k.fieldSchema);
570
272
  }
571
- function E(r, s, h, I = []) {
572
- const T = s.id, k = r.binding.field, x = s.fields.findIndex((v) => v.id === k);
573
- if (x > -1 && (h.fields.push(s.fields[x]), s.fields.splice(x, 1)), T === "root-viewmodel" && h.id !== "root-viewmodel") {
574
- r.binding.path && !r.binding.path.includes("root-component.") && (r.binding.path = "root-component." + r.binding.path);
273
+ function g(l, d, F, k = []) {
274
+ const I = d.id, x = l.binding.field, E = d.fields.findIndex((T) => T.id === x);
275
+ if (E > -1 && (F.fields.push(d.fields[E]), d.fields.splice(E, 1)), I === "root-viewmodel" && F.id !== "root-viewmodel") {
276
+ l.binding.path && !l.binding.path.includes("root-component.") && (l.binding.path = "root-component." + l.binding.path);
575
277
  return;
576
278
  }
577
- if (h.id === "root-viewmodel" && T !== "root-viewmodel" && r.binding.path && r.binding.path.includes("root-component.")) {
578
- r.binding.path = r.binding.path.replace("root-component.", "");
279
+ if (F.id === "root-viewmodel" && I !== "root-viewmodel" && l.binding.path && l.binding.path.includes("root-component.")) {
280
+ l.binding.path = l.binding.path.replace("root-component.", "");
579
281
  return;
580
282
  }
581
- const V = s.states.find((v) => v.id === k);
582
- V && (h.states = h.states ? h.states : [], h.states.findIndex((v) => v.id === V.id) < 0 && (h.states.push(V), I.push(V.id)));
283
+ const V = d.states.find((T) => T.id === x);
284
+ V && (F.states = F.states ? F.states : [], F.states.findIndex((T) => T.id === V.id) < 0 && (F.states.push(V), k.push(V.id)));
583
285
  }
584
- function L(r, s, h, I = []) {
585
- var x;
586
- if (!r)
286
+ function c(l, d, F, k = []) {
287
+ var E;
288
+ if (!l)
587
289
  return;
588
- const T = s.id === "root-viewmodel" && h.id !== "root-viewmodel", k = h.id === "root-viewmodel" && s.id !== "root-viewmodel";
589
- Object.keys(r).forEach((V) => {
290
+ const I = d.id === "root-viewmodel" && F.id !== "root-viewmodel", x = F.id === "root-viewmodel" && d.id !== "root-viewmodel";
291
+ Object.keys(l).forEach((V) => {
590
292
  if (V === "binding")
591
293
  return;
592
- const v = r[V];
593
- if (v && typeof v == "object" && v.type === oe.Variable && v.field) {
594
- if (T) {
595
- v.path && !v.path.includes("root-component.") && (v.path = "root-component." + v.path);
294
+ const T = l[V];
295
+ if (T && typeof T == "object" && T.type === H.Variable && T.field) {
296
+ if (I) {
297
+ T.path && !T.path.includes("root-component.") && (T.path = "root-component." + T.path);
596
298
  return;
597
299
  }
598
- if (k && v.path && v.path.includes("root-component.")) {
599
- v.path = v.path.replace("root-component.", "");
300
+ if (x && T.path && T.path.includes("root-component.")) {
301
+ T.path = T.path.replace("root-component.", "");
600
302
  return;
601
303
  }
602
- const N = s.states.find((U) => U.id === v.field);
603
- if (N) {
604
- I.push(N.id), h.states = h.states ? h.states : [];
605
- const U = h.states.find((ee) => ee.code === N.code);
606
- if (U)
607
- v.field = U.id;
304
+ const S = d.states.find((L) => L.id === T.field);
305
+ if (S) {
306
+ k.push(S.id), F.states = F.states ? F.states : [];
307
+ const L = F.states.find((U) => U.code === S.code);
308
+ if (L)
309
+ T.field = L.id;
608
310
  else {
609
- const ee = Object.assign({}, { newId: ve().guid() }, N);
610
- h.states.push(ee), v.field = ee.newId;
311
+ const U = Object.assign({}, { newId: pe().guid() }, S);
312
+ F.states.push(U), T.field = U.newId;
611
313
  }
612
314
  }
613
315
  }
614
- }), (x = h.states) != null && x.length && h.states.map((V) => {
316
+ }), (E = F.states) != null && E.length && F.states.map((V) => {
615
317
  V.newId && (V.id = V.newId, delete V.newId);
616
318
  });
617
319
  }
618
- function $(r, s, h) {
619
- if (r && (s(r, h), r.contents))
620
- for (const I of r.contents)
621
- $(I, s, h);
320
+ function p(l, d, F) {
321
+ if (l && (d(l, F), l.contents))
322
+ for (const k of l.contents)
323
+ p(k, d, F);
622
324
  }
623
- function R(r = [], s) {
624
- if (!r.length)
325
+ function v(l = [], d) {
326
+ if (!l.length)
625
327
  return;
626
- const h = e == null ? void 0 : e.formSchemaUtils, I = h.getComponentByViewModelId(s), T = [], k = (V, v) => {
627
- V && (Object.keys(V).forEach((N) => {
628
- const U = V[N];
629
- U && typeof U == "object" && U.type === oe.Variable && r.includes(U.field) && !v.includes(U.field) && v.push(U.field);
630
- }), V.editor && k(V.editor, v));
328
+ const F = t == null ? void 0 : t.formSchemaUtils, k = F.getComponentByViewModelId(d), I = [], x = (V, T) => {
329
+ V && (Object.keys(V).forEach((S) => {
330
+ const L = V[S];
331
+ L && typeof L == "object" && L.type === H.Variable && l.includes(L.field) && !T.includes(L.field) && T.push(L.field);
332
+ }), V.editor && x(V.editor, T));
631
333
  };
632
- $(I, k, T);
633
- const x = h.getViewModelById(s);
634
- r.forEach((V) => {
635
- T.includes(V) || (x.states = x.states.filter((v) => v.id !== V));
334
+ p(k, x, I);
335
+ const E = F.getViewModelById(d);
336
+ l.forEach((V) => {
337
+ I.includes(V) || (E.states = E.states.filter((T) => T.id !== V));
636
338
  });
637
339
  }
638
- function P(r) {
639
- const s = ve().guid(), h = Object.assign({}, r, {
640
- id: s,
641
- code: r.code + s.slice(0, 4),
642
- name: r.name + s.slice(0, 4)
643
- }), k = (e == null ? void 0 : e.formSchemaUtils).getCommands().find((x) => x.id === r.cmpId);
644
- return k && k.refedHandlers.push({
645
- host: s,
646
- handler: r.handlerName
647
- }), h;
648
- }
649
- function M(r, s, h) {
650
- var N, U, ee;
651
- const I = {}, T = r.type === "form-group" && r.editor ? r.editor.type : r.type, k = (N = Te[T]) == null ? void 0 : N.events;
652
- if (!k)
340
+ function b(l) {
341
+ const d = pe().guid(), F = Object.assign({}, l, {
342
+ id: d,
343
+ code: l.code + d.slice(0, 4),
344
+ name: l.name + d.slice(0, 4)
345
+ }), x = (t == null ? void 0 : t.formSchemaUtils).getCommands().find((E) => E.id === l.cmpId);
346
+ return x && x.refedHandlers.push({
347
+ host: d,
348
+ handler: l.handlerName
349
+ }), F;
350
+ }
351
+ function C(l, d, F) {
352
+ var S, L, U;
353
+ const k = {}, I = l.type === "form-group" && l.editor ? l.editor.type : l.type, x = (S = Se[I]) == null ? void 0 : S.events;
354
+ if (!x)
653
355
  return;
654
- Object.keys(r).forEach((te) => {
655
- const z = Object.keys(k).find((J) => J === te);
656
- if (z && r[z]) {
657
- const J = s.commands.find((Z) => Z.code === r[z]);
658
- if (J) {
659
- let Z = I[J.code];
660
- Z || (Z = P(J), I[J.code] = Z, h.commands.push(Z)), r[z] = Z.code;
356
+ Object.keys(l).forEach((X) => {
357
+ const W = Object.keys(x).find((Z) => Z === X);
358
+ if (W && l[W]) {
359
+ const Z = d.commands.find((j) => j.code === l[W]);
360
+ if (Z) {
361
+ let j = k[Z.code];
362
+ j || (j = b(Z), k[Z.code] = j, F.commands.push(j)), l[W] = j.code;
661
363
  }
662
364
  }
663
365
  });
664
- const V = (e == null ? void 0 : e.designViewModelUtils).getDgViewModel(h.id), v = ["valueChanging", "valueChanged"];
665
- if (((U = r.binding) == null ? void 0 : U.type) === oe.Form) {
666
- const te = (ee = h.fields) == null ? void 0 : ee.find((z) => z.id === r.binding.field);
667
- te && v.forEach((z) => {
668
- if (te[z]) {
669
- const J = s.commands.find((Z) => Z.code === te[z]);
670
- if (!J)
366
+ const V = (t == null ? void 0 : t.designViewModelUtils).getDgViewModel(F.id), T = ["valueChanging", "valueChanged"];
367
+ if (((L = l.binding) == null ? void 0 : L.type) === H.Form) {
368
+ const X = (U = F.fields) == null ? void 0 : U.find((W) => W.id === l.binding.field);
369
+ X && T.forEach((W) => {
370
+ if (X[W]) {
371
+ const Z = d.commands.find((j) => j.code === X[W]);
372
+ if (!Z)
671
373
  return;
672
- if (I[J.code])
673
- V.changeField(te.id, { [z]: I[J.code].code });
374
+ if (k[Z.code])
375
+ V.changeField(X.id, { [W]: k[Z.code].code });
674
376
  else {
675
- const Z = P(J);
676
- I[J.code] = Z, h.commands.push(Z), V.changeField(te.id, { [z]: Z.code });
377
+ const j = b(Z);
378
+ k[Z.code] = j, F.commands.push(j), V.changeField(X.id, { [W]: j.code });
677
379
  }
678
380
  }
679
381
  });
680
382
  }
681
383
  }
682
- function q(r) {
683
- const s = e == null ? void 0 : e.formSchemaUtils, h = r.componentInstance, I = h.value.schema, T = s.getViewModelIdByComponentId(h.value.belongedComponentId), k = s.getViewModelById(T), x = s.getComponentById(t.componentInstance.value.belongedComponentId), V = s.getViewModelById(x.viewModel);
684
- if (T !== V.id) {
685
- const v = I.binding.type, N = I.binding.field, U = [];
686
- switch (v) {
687
- case oe.Form: {
688
- w(N, k, V.id);
384
+ function D(l) {
385
+ const d = t == null ? void 0 : t.formSchemaUtils, F = l.componentInstance, k = F.value.schema, I = d.getViewModelIdByComponentId(F.value.belongedComponentId), x = d.getViewModelById(I), E = d.getComponentById(e.componentInstance.value.belongedComponentId), V = d.getViewModelById(E.viewModel);
386
+ if (I !== V.id) {
387
+ const T = k.binding.type, S = k.binding.field, L = [];
388
+ switch (T) {
389
+ case H.Form: {
390
+ s(S, x, V.id);
689
391
  break;
690
392
  }
691
- case oe.Variable: {
692
- E(I, k, V, U);
393
+ case H.Variable: {
394
+ g(k, x, V, L);
693
395
  break;
694
396
  }
695
397
  }
696
- L(I, k, V, U), L(I.editor, k, V, U), M(I, k, V), T !== "root-viewmodel" && R(U, T);
398
+ c(k, x, V, L), c(k.editor, x, V, L), C(k, x, V), I !== "root-viewmodel" && v(L, I);
697
399
  }
698
400
  }
699
- function A(r) {
700
- if (!r || !r.componentInstance)
401
+ function $(l) {
402
+ if (!l || !l.componentInstance)
701
403
  return;
702
- const h = r.componentInstance.value.schema;
703
- !h.binding || !h.binding.field || (m(r), q(r));
404
+ const F = l.componentInstance.value.schema;
405
+ !F.binding || !F.binding.field || (i(l), D(l));
704
406
  }
705
407
  function O() {
706
- return o.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
408
+ return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
707
409
  }
708
- function S(r) {
709
- let s = "";
710
- switch (r) {
410
+ function B(l) {
411
+ let d = "";
412
+ switch (l) {
711
413
  case 1: {
712
- s = "col-12 col-md-12 col-xl-12 col-el-12";
414
+ d = "col-12 col-md-12 col-xl-12 col-el-12";
713
415
  break;
714
416
  }
715
417
  case 2: {
716
- s = "col-12 col-md-6 col-xl-6 col-el-6";
418
+ d = "col-12 col-md-6 col-xl-6 col-el-6";
717
419
  break;
718
420
  }
719
421
  case 3: {
720
- s = "col-12 col-md-6 col-xl-4 col-el-4";
422
+ d = "col-12 col-md-6 col-xl-4 col-el-4";
721
423
  break;
722
424
  }
723
425
  case 4: {
724
- s = "col-12 col-md-6 col-xl-3 col-el-2";
426
+ d = "col-12 col-md-6 col-xl-3 col-el-2";
725
427
  break;
726
428
  }
727
429
  }
728
- return s;
430
+ return d;
729
431
  }
730
- function ne(r, s) {
731
- let h = !1;
732
- if (t.schema && Object.prototype.hasOwnProperty.call(t.schema, "labelAutoOverflow"))
733
- h = t.schema.labelAutoOverflow;
432
+ function q(l, d) {
433
+ let F = !1;
434
+ if (e.schema && Object.prototype.hasOwnProperty.call(e.schema, "labelAutoOverflow"))
435
+ F = e.schema.labelAutoOverflow;
734
436
  else {
735
- const I = e == null ? void 0 : e.formSchemaUtils, T = I == null ? void 0 : I.selectNode(s, (k) => k.type === a["response-form"].type);
736
- T && (h = T.labelAutoOverflow);
437
+ const k = t == null ? void 0 : t.formSchemaUtils, I = k == null ? void 0 : k.selectNode(d, (x) => x.type === u["response-form"].type);
438
+ I && (F = I.labelAutoOverflow);
737
439
  }
738
- return h && (r += " farris-group-multi-label"), r;
739
- }
740
- function W(r) {
741
- const s = t.componentInstance.value.getBelongedComponentInstance(t.componentInstance);
742
- if (s && s.schema && s.schema.componentType) {
743
- const { formColumns: h } = s.schema;
744
- let I = S(h);
745
- I = e == null ? void 0 : e.formSchemaUtils.getControlClassByFormUnifiedLayout(I, s.schema.id, t.schema), I = ne(I, s.schema), r.appearance || (r.appearance = {}), r.appearance.class = I;
440
+ return F && (l += " farris-group-multi-label"), l;
441
+ }
442
+ function R(l) {
443
+ const d = e.componentInstance.value.getBelongedComponentInstance(e.componentInstance);
444
+ if (d && d.schema && d.schema.componentType) {
445
+ const { formColumns: F } = d.schema;
446
+ let k = B(F);
447
+ k = t == null ? void 0 : t.formSchemaUtils.getControlClassByFormUnifiedLayout(k, d.schema.id, e.schema), k = q(k, d.schema), l.appearance || (l.appearance = {}), l.appearance.class = k;
746
448
  }
747
449
  }
748
- function K(r, s, h, I) {
749
- const { bindingSourceContext: T, parentComponentInstance: k } = r;
750
- if (T != null && T.entityFieldNode && k) {
751
- const x = e == null ? void 0 : e.designViewModelUtils, v = (e == null ? void 0 : e.formSchemaUtils).getViewModelIdByComponentId(k.belongedComponentId), N = x.getDgViewModel(v);
752
- N.removeField([T.entityFieldNode.id]), N.addField(T.designViewModelField), s && N.changeField(T.entityFieldNode.id, { editor: { $type: s }, groupId: h, groupName: I });
450
+ function N(l, d, F, k) {
451
+ const { bindingSourceContext: I, parentComponentInstance: x } = l;
452
+ if (I != null && I.entityFieldNode && x) {
453
+ const E = t == null ? void 0 : t.designViewModelUtils, T = (t == null ? void 0 : t.formSchemaUtils).getViewModelIdByComponentId(x.belongedComponentId), S = E.getDgViewModel(T);
454
+ S.removeField([I.entityFieldNode.id]), S.addField(I.designViewModelField), d && S.changeField(I.entityFieldNode.id, { editor: { $type: d }, groupId: F, groupName: k });
753
455
  }
754
456
  }
755
- function Y(r, s) {
756
- var k, x, V;
757
- const h = o;
758
- if ((h.appearance && h.appearance.class || "").split(" ").includes("f-form-layout") && r.componentCategory === "input") {
759
- const { label: v } = r;
760
- let N;
761
- const U = e == null ? void 0 : e.controlCreatorUtils;
762
- return (k = r.bindingSourceContext) != null && k.entityFieldNode ? N = U.setFormFieldProperty((x = r.bindingSourceContext) == null ? void 0 : x.entityFieldNode, s == null ? void 0 : s.type) : (N = U.createFormGroupWithoutField(s == null ? void 0 : s.type), N.label = v), W(N), K(r, (V = N.editor) == null ? void 0 : V.type), N;
457
+ function M(l, d) {
458
+ var x, E, V;
459
+ const F = n;
460
+ if ((F.appearance && F.appearance.class || "").split(" ").includes("f-form-layout") && l.componentCategory === "input") {
461
+ const { label: T } = l;
462
+ let S;
463
+ const L = t == null ? void 0 : t.controlCreatorUtils;
464
+ return (x = l.bindingSourceContext) != null && x.entityFieldNode ? S = L.setFormFieldProperty((E = l.bindingSourceContext) == null ? void 0 : E.entityFieldNode, d == null ? void 0 : d.type) : (S = L.createFormGroupWithoutField(d == null ? void 0 : d.type), S.label = T), R(S), N(l, (V = S.editor) == null ? void 0 : V.type), S;
763
465
  }
764
- return s;
466
+ return d;
765
467
  }
766
- function H() {
767
- return n;
468
+ function z() {
469
+ return r;
768
470
  }
769
- function re() {
770
- return p;
471
+ function J() {
472
+ return y;
771
473
  }
772
- function D() {
474
+ function _() {
773
475
  return !1;
774
476
  }
775
- function G(r) {
776
- return new $o(r, e).getPropertyConfig(o, t.componentInstance.value);
477
+ function G(l) {
478
+ return new He(l, t).getPropertyConfig(n, e.componentInstance.value);
777
479
  }
778
480
  return {
779
- canAccepts: F,
780
- checkCanDeleteComponent: re,
781
- checkCanMoveComponent: H,
481
+ canAccepts: f,
482
+ checkCanDeleteComponent: J,
483
+ checkCanMoveComponent: z,
782
484
  getStyles: O,
783
485
  getPropsConfig: G,
784
- hideNestedPaddingInDesginerView: D,
785
- onAcceptMovedChildElement: A,
786
- onResolveNewComponentSchema: Y,
787
- moveInputBetweenComponent: q,
788
- resolveFormGroupAppearance: W,
789
- syncFieldToViewModel: K
486
+ hideNestedPaddingInDesginerView: _,
487
+ onAcceptMovedChildElement: $,
488
+ onResolveNewComponentSchema: M,
489
+ moveInputBetweenComponent: D,
490
+ resolveFormGroupAppearance: R,
491
+ syncFieldToViewModel: N
790
492
  };
791
493
  }
792
- const pe = /* @__PURE__ */ _({
494
+ const le = /* @__PURE__ */ ne({
793
495
  name: "FResponseFormDesign",
794
496
  directives: {
795
- "area-response": Co
497
+ "area-response": ze
796
498
  },
797
- props: ye,
499
+ props: Ce,
798
500
  emits: [],
799
- setup(t, e) {
800
- const o = B(), i = Q("design-item-context"), n = Q("designer-host-service"), l = Ao(i, n), p = fe(o, i, l);
801
- ce(() => {
802
- o.value.componentInstance = p;
803
- }), e.expose(p.value);
804
- const C = j(() => {
805
- const g = t.customClass.split(" "), y = {
501
+ setup(e, t) {
502
+ const n = A(), o = Y("design-item-context"), r = Y("designer-host-service"), m = Ke(o, r), y = ce(n, o, m);
503
+ ie(() => {
504
+ n.value.componentInstance = y;
505
+ }), t.expose(y.value);
506
+ const w = K(() => {
507
+ const h = e.customClass.split(" "), a = {
806
508
  "drag-container": !0
807
509
  };
808
- return g.reduce((F, m) => (F[m] = !0, F), y), y;
510
+ return h.reduce((f, i) => (f[i] = !0, f), a), a;
809
511
  });
810
- return () => ze(b("div", {
811
- ref: o,
812
- class: C.value,
813
- style: t.customClass,
814
- "data-dragref": `${i.schema.id}-container`,
815
- "data-associate": `${i.schema.id}-component`
816
- }, [e.slots.default && e.slots.default()]), [[Xe("area-response")]]);
817
- }
818
- }), Ro = {}, qo = {}, { globalStorageKey: mi } = ke(), So = {
512
+ return () => Re(P("div", {
513
+ ref: n,
514
+ class: w.value,
515
+ style: e.customClass,
516
+ "data-dragref": `${o.schema.id}-container`,
517
+ "data-associate": `${o.schema.id}-component`
518
+ }, [t.slots.default && t.slots.default()]), [[Ue("area-response")]]);
519
+ }
520
+ }), et = {}, tt = {}, { globalStorageKey: or } = he(), nt = {
819
521
  id: { Type: String, default: "" },
820
522
  /** 是否自动完成 */
821
523
  autocomplete: { Type: String, default: "off" },
@@ -898,7 +600,7 @@ const pe = /* @__PURE__ */ _({
898
600
  * 是否启用快捷键
899
601
  */
900
602
  keyboard: { type: Boolean, default: !0 }
901
- }, Me = [
603
+ }, Fe = [
902
604
  { key: "none", value: "无" },
903
605
  { key: "cellNumber", value: "手机号" },
904
606
  { key: "tel", value: "座机号/传真号" },
@@ -910,8 +612,8 @@ const pe = /* @__PURE__ */ _({
910
612
  { key: "subjectCode", value: "10位数字会计科目代码" },
911
613
  { key: "custom", value: "自定义" }
912
614
  ];
913
- function Go(t) {
914
- switch (t) {
615
+ function ot(e) {
616
+ switch (e) {
915
617
  case "none":
916
618
  return "";
917
619
  case "cellNumber":
@@ -937,36 +639,36 @@ function Go(t) {
937
639
  }
938
640
  return "";
939
641
  }
940
- function jo(t) {
941
- var e;
942
- return "请输入正确的" + ((e = Me.find((o) => o.key === t)) == null ? void 0 : e.value);
642
+ function rt(e) {
643
+ var t;
644
+ return "请输入正确的" + ((t = Fe.find((n) => n.key === e)) == null ? void 0 : t.value);
943
645
  }
944
- const Oo = {
945
- convertTo: (t, e, o, i) => {
946
- t.editor.formatValidation || (t.editor.formatValidation = { type: "none" }), t.editor.formatValidation.type = o, t.editor.formatValidation.expression = Go(o), t.editor.formatValidation.message = jo(o);
646
+ const it = {
647
+ convertTo: (e, t, n, o) => {
648
+ e.editor.formatValidation || (e.editor.formatValidation = { type: "none" }), e.editor.formatValidation.type = n, e.editor.formatValidation.expression = ot(n), e.editor.formatValidation.message = rt(n);
947
649
  },
948
- convertFrom: (t, e, o) => t.editor.formatValidation ? e === "type" ? t.editor.formatValidation[e] || "none" : t.editor.formatValidation[e] : "none"
949
- }, we = {
950
- convertTo: (t, e, o, i) => {
951
- t.editor.formatValidation || (t.editor.formatValidation = { type: "none" }), t.editor.formatValidation[e] = o;
650
+ convertFrom: (e, t, n) => e.editor.formatValidation ? t === "type" ? e.editor.formatValidation[t] || "none" : e.editor.formatValidation[t] : "none"
651
+ }, ye = {
652
+ convertTo: (e, t, n, o) => {
653
+ e.editor.formatValidation || (e.editor.formatValidation = { type: "none" }), e.editor.formatValidation[t] = n;
952
654
  },
953
- convertFrom: (t, e, o) => t.editor.formatValidation ? t.editor.formatValidation[e] : t.editor[e]
655
+ convertFrom: (e, t, n) => e.editor.formatValidation ? e.editor.formatValidation[t] : e.editor[t]
954
656
  };
955
- class Zo extends Vo {
956
- constructor(e, o) {
957
- super(e, o);
958
- }
959
- getPropertyConfig(e, o) {
960
- return super.getPropertyConfig(e, o), this.propertyConfig.categories.formatValidation = this.getFormatValidation(e), this.propertyConfig;
961
- }
962
- getEditorProperties(e) {
963
- var i, n;
964
- let o;
965
- if (((i = e == null ? void 0 : e.binding) == null ? void 0 : i.type) === "Form") {
966
- const l = this.schemaService.getFieldByIDAndVMID(e.binding.field, this.viewModelId);
967
- (n = l == null ? void 0 : l.schemaField) != null && n.type && (o = l.schemaField.type.length);
657
+ class at extends _e {
658
+ constructor(t, n) {
659
+ super(t, n);
660
+ }
661
+ getPropertyConfig(t, n) {
662
+ return super.getPropertyConfig(t, n), this.propertyConfig.categories.formatValidation = this.getFormatValidation(t), this.propertyConfig;
663
+ }
664
+ getEditorProperties(t) {
665
+ var o, r;
666
+ let n;
667
+ if (((o = t == null ? void 0 : t.binding) == null ? void 0 : o.type) === "Form") {
668
+ const m = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
669
+ (r = m == null ? void 0 : m.schemaField) != null && r.type && (n = m.schemaField.type.length);
968
670
  }
969
- return this.getComponentConfig(e, {}, {
671
+ return this.getComponentConfig(t, {}, {
970
672
  maxLength: {
971
673
  description: "文本字数最大长度",
972
674
  title: "最大长度",
@@ -975,7 +677,7 @@ class Zo extends Vo {
975
677
  nullable: !0,
976
678
  min: 0,
977
679
  useThousands: !1,
978
- max: o,
680
+ max: n,
979
681
  needValid: !0
980
682
  }
981
683
  },
@@ -996,19 +698,19 @@ class Zo extends Vo {
996
698
  enableViewPassword: {
997
699
  description: "",
998
700
  title: "能否查看密码",
999
- visible: e.editor.showType === "password",
701
+ visible: t.editor.showType === "password",
1000
702
  type: "boolean"
1001
703
  }
1002
704
  });
1003
705
  }
1004
- getGridFieldEdtiorProperties(e) {
1005
- var i, n;
1006
- let o;
1007
- if (((i = e == null ? void 0 : e.binding) == null ? void 0 : i.type) === "Form") {
1008
- const l = this.schemaService.getFieldByIDAndVMID(e.binding.field, this.viewModelId);
1009
- (n = l == null ? void 0 : l.schemaField) != null && n.type && (o = l.schemaField.type.length);
706
+ getGridFieldEdtiorProperties(t) {
707
+ var o, r;
708
+ let n;
709
+ if (((o = t == null ? void 0 : t.binding) == null ? void 0 : o.type) === "Form") {
710
+ const m = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
711
+ (r = m == null ? void 0 : m.schemaField) != null && r.type && (n = m.schemaField.type.length);
1010
712
  }
1011
- return this.getComponentConfig(e, {}, {
713
+ return this.getComponentConfig(t, {}, {
1012
714
  maxLength: {
1013
715
  description: "文本字数最大长度",
1014
716
  title: "最大长度",
@@ -1017,7 +719,7 @@ class Zo extends Vo {
1017
719
  nullable: !0,
1018
720
  min: 0,
1019
721
  useThousands: !1,
1020
- max: o
722
+ max: n
1021
723
  }
1022
724
  },
1023
725
  showType: {
@@ -1037,17 +739,17 @@ class Zo extends Vo {
1037
739
  enableViewPassword: {
1038
740
  description: "",
1039
741
  title: "能否查看密码",
1040
- visible: e.editor.showType === "password",
742
+ visible: t.editor.showType === "password",
1041
743
  type: "boolean"
1042
744
  }
1043
745
  });
1044
746
  }
1045
- getFormatValidation(e) {
1046
- var i, n, l, p;
1047
- const o = {
747
+ getFormatValidation(t) {
748
+ var o, r, m, y;
749
+ const n = {
1048
750
  title: "输入格式校验",
1049
751
  description: "输入校验",
1050
- hide: !((i = e.binding) != null && i.field),
752
+ hide: !((o = t.binding) != null && o.field),
1051
753
  properties: {
1052
754
  type: {
1053
755
  title: "格式类型",
@@ -1060,486 +762,1050 @@ class Zo extends Vo {
1060
762
  valueField: "key",
1061
763
  idField: "key",
1062
764
  editable: !1,
1063
- data: Me
765
+ data: Fe
1064
766
  },
1065
767
  refreshPanelAfterChanged: !0,
1066
- $converter: Oo,
768
+ $converter: it,
1067
769
  parentPropertyID: "formatValidation"
1068
770
  }
1069
771
  }
1070
772
  };
1071
- return (n = e.editor.formatValidation) != null && n.type && ((l = e.editor.formatValidation) == null ? void 0 : l.type) !== "none" && (o.properties.message = {
773
+ return (r = t.editor.formatValidation) != null && r.type && ((m = t.editor.formatValidation) == null ? void 0 : m.type) !== "none" && (n.properties.message = {
1072
774
  title: "输入错误提示",
1073
775
  type: "string",
1074
776
  description: "输入错误提示",
1075
- $converter: we,
777
+ $converter: ye,
1076
778
  parentPropertyID: "formatValidation"
1077
- }), ((p = e.editor.formatValidation) == null ? void 0 : p.type) === "custom" && (o.properties.expression = {
779
+ }), ((y = t.editor.formatValidation) == null ? void 0 : y.type) === "custom" && (n.properties.expression = {
1078
780
  title: "匹配正则",
1079
781
  type: "string",
1080
782
  description: "匹配正则",
1081
- $converter: we,
783
+ $converter: ye,
1082
784
  parentPropertyID: "formatValidation"
1083
- }), o;
785
+ }), n;
1084
786
  }
1085
787
  }
1086
- function Wo(t, e) {
1087
- const o = t.schema;
1088
- function i(n, l) {
1089
- return new Zo(n, e).getPropertyConfig(o, l);
788
+ function lt(e, t) {
789
+ const n = e.schema;
790
+ function o(r, m) {
791
+ return new at(r, t).getPropertyConfig(n, m);
1090
792
  }
1091
- return { getPropsConfig: i };
793
+ return { getPropsConfig: o };
1092
794
  }
1093
- const Jo = /* @__PURE__ */ _({
795
+ const st = /* @__PURE__ */ ne({
1094
796
  name: "FInputGroupDesign",
1095
- props: So,
797
+ props: nt,
1096
798
  emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
1097
- setup(t, e) {
1098
- const o = B(t.modelValue), i = B(t.modelValue), n = vo(t, e, o, i), {
1099
- inputGroupClass: l,
1100
- inputType: p,
1101
- inputGroupStyle: C
1102
- } = n, g = B(), y = Q("designer-host-service"), F = Q("design-item-context"), m = Wo(F, y), w = fe(g, F, m), E = j(() => t.showType === "password" ? "password" : "");
1103
- return ce(() => {
1104
- g.value.componentInstance = w;
1105
- }), e.expose(w.value), () => b("div", {
799
+ setup(e, t) {
800
+ const n = A(e.modelValue), o = A(e.modelValue), r = We(e, t, n, o), {
801
+ inputGroupClass: m,
802
+ inputType: y,
803
+ inputGroupStyle: w
804
+ } = r, h = A(), a = Y("designer-host-service"), f = Y("design-item-context"), i = lt(f, a), s = ce(h, f, i), g = K(() => e.showType === "password" ? "password" : "");
805
+ return ie(() => {
806
+ h.value.componentInstance = s;
807
+ }), t.expose(s.value), () => P("div", {
1106
808
  id: "inputGroup",
1107
- ref: g,
1108
- class: l.value,
1109
- style: C.value
1110
- }, [b("input", {
809
+ ref: h,
810
+ class: m.value,
811
+ style: w.value
812
+ }, [P("input", {
1111
813
  class: "form-control",
1112
- type: t.showType,
1113
- placeholder: t.placeholder,
1114
- value: E.value
1115
- }, null), t.showType === "password" && t.enableViewPassword && b("span", {
814
+ type: e.showType,
815
+ placeholder: e.placeholder,
816
+ value: g.value
817
+ }, null), e.showType === "password" && e.enableViewPassword && P("span", {
1116
818
  class: "input-group-append"
1117
- }, [b("span", {
819
+ }, [P("span", {
1118
820
  class: "input-group-text"
1119
- }, [b("span", {
821
+ }, [P("span", {
1120
822
  class: "f-icon f-icon-eye"
1121
823
  }, null)])])]);
1122
824
  }
1123
825
  });
1124
- function zo() {
1125
- function t(p, C) {
1126
- const g = qo[p];
1127
- return g ? g(C) : {};
826
+ function ct() {
827
+ function e(y, w) {
828
+ const h = tt[y];
829
+ return h ? h(w) : {};
830
+ }
831
+ function t(y) {
832
+ return et[y] || st;
833
+ }
834
+ function n(y) {
835
+ }
836
+ function o(y) {
837
+ }
838
+ function r(y) {
1128
839
  }
1129
- function e(p) {
1130
- return Ro[p] || Jo;
840
+ function m(y) {
1131
841
  }
1132
- function o(p) {
842
+ return { getChangeFunctionName: n, getClearFunctionName: o, resolveEditorProps: e, resolveEditorType: t, getMousedownFunctionName: r, getMouseupFunctionName: m };
843
+ }
844
+ function ut(e = {}) {
845
+ function t(a, f, i, s) {
846
+ if (typeof i == "number")
847
+ return s[a].length === i;
848
+ if (typeof i == "object") {
849
+ const g = Object.keys(i)[0], c = i[g];
850
+ if (g === "not")
851
+ return Number(s[a].length) !== Number(c);
852
+ if (g === "moreThan")
853
+ return Number(s[a].length) >= Number(c);
854
+ if (g === "lessThan")
855
+ return Number(s[a].length) <= Number(c);
856
+ }
857
+ return !1;
1133
858
  }
1134
- function i(p) {
859
+ function n(a, f, i, s) {
860
+ return s[a] && s[a].propertyValue && String(s[a].propertyValue.value) === String(i);
861
+ }
862
+ const o = /* @__PURE__ */ new Map([
863
+ ["length", t],
864
+ ["getProperty", n]
865
+ ]);
866
+ Object.keys(e).reduce((a, f) => (a.set(f, e[f]), a), o);
867
+ function r(a, f) {
868
+ const i = a;
869
+ return typeof f == "number" ? [{ target: i, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: i, operator: "getProperty", param: a, value: !!f }] : typeof f == "object" ? Object.keys(f).map((s) => {
870
+ if (s === "length")
871
+ return { target: i, operator: "length", param: null, value: f[s] };
872
+ const g = s, c = f[s];
873
+ return { target: i, operator: "getProperty", param: g, value: c };
874
+ }) : [];
875
+ }
876
+ function m(a) {
877
+ return Object.keys(a).reduce((i, s) => {
878
+ const g = r(s, a[s]);
879
+ return i.push(...g), i;
880
+ }, []);
881
+ }
882
+ function y(a, f) {
883
+ if (o.has(a.operator)) {
884
+ const i = o.get(a.operator);
885
+ return i && i(a.target, a.param, a.value, f) || !1;
886
+ }
887
+ return !1;
1135
888
  }
1136
- function n(p) {
889
+ function w(a, f) {
890
+ return m(a).reduce((g, c) => g && y(c, f), !0);
1137
891
  }
1138
- function l(p) {
892
+ function h(a, f) {
893
+ const i = Object.keys(a), s = i.includes("allOf"), g = i.includes("anyOf"), c = s || g, b = (c ? a[c ? s ? "allOf" : "anyOf" : "allOf"] : [a]).map((D) => w(D, f));
894
+ return s ? !b.includes(!1) : b.includes(!0);
1139
895
  }
1140
- return { getChangeFunctionName: o, getClearFunctionName: i, resolveEditorProps: t, resolveEditorType: e, getMousedownFunctionName: n, getMouseupFunctionName: l };
896
+ return { parseValueSchema: h };
1141
897
  }
1142
- const ie = class ie {
898
+ const pt = {
899
+ convertTo: (e, t, n, o) => {
900
+ e.appearance || (e.appearance = {}), e.appearance[t] = n;
901
+ },
902
+ convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
903
+ }, dt = {
904
+ convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
905
+ }, mt = {
906
+ convertTo: (e, t, n, o) => {
907
+ e.editor && (e.editor[t] = n);
908
+ },
909
+ convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
910
+ }, ft = {
911
+ button: { type: "button", name: "按钮" },
912
+ "response-toolbar": { type: "response-toolbar", name: "工具栏" },
913
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
914
+ "content-container": { type: "content-container", name: "容器" },
915
+ "input-group": { type: "input-group", name: "文本" },
916
+ textarea: { type: "textarea", name: "多行文本" },
917
+ lookup: { type: "lookup", name: "帮助" },
918
+ "number-spinner": { type: "number-spinner", name: "数值" },
919
+ "date-picker": { type: "date-picker", name: "日期" },
920
+ switch: { type: "switch", name: "开关" },
921
+ "radio-group": { type: "radio-group", name: "单选组" },
922
+ "check-box": { type: "check-box", name: "复选框" },
923
+ "check-group": { type: "check-group", name: "复选框组" },
924
+ "combo-list": { type: "combo-list", name: "下拉列表" },
925
+ "response-form": { type: "response-form", name: "卡片面板" },
926
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "response-layout-3" },
927
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "response-layout-1" },
928
+ "tree-grid": { type: "tree-grid", name: "树表格" },
929
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
930
+ "data-grid": { type: "data-grid", name: "表格" },
931
+ "data-grid-column": { type: "data-grid-column", name: "表格列" },
932
+ module: { type: "Module", name: "模块" },
933
+ component: { type: "component", name: "组件" },
934
+ tabs: { type: "tabs", name: "标签页" },
935
+ "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
936
+ "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮" },
937
+ "drawer-toolbar-item": { type: "drawer-toolbar-item", name: "抽屉工具栏按钮" },
938
+ "html-template": { type: "html-template", name: "模板容器" },
939
+ "time-picker": { type: "time-picker", name: "时间选择" },
940
+ section: { type: "section", name: "分组面板" },
941
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
942
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
943
+ splitter: { type: "splitter", name: "分栏面板" },
944
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
945
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
946
+ uploader: { type: "uploader", name: "附件上传" },
947
+ "page-header": { type: "page-header", name: "页头" },
948
+ "page-footer": { type: "page-footer", name: "页脚" },
949
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏" },
950
+ "drawer-toolbar": { type: "drawer-toolbar", name: "抽屉工具栏" },
951
+ fieldset: { type: "fieldset", name: "分组" },
952
+ "query-solution": { type: "query-solution", name: "筛选方案" },
953
+ drawer: { type: "drawer", name: "抽屉" },
954
+ "external-container": { type: "external-container", name: "外部容器", icon: "content-container" },
955
+ "list-nav": { type: "list-nav", name: "列表导航" },
956
+ "list-view": { type: "list-view", name: "列表" },
957
+ "filter-bar": { type: "filter-bar", name: "筛选条" },
958
+ "language-textbox": { type: "language-textbox", name: "多语输入框" },
959
+ image: { type: "image", name: "图像" },
960
+ "discussion-editor": { type: "discussion-editor", name: "评论编辑区" },
961
+ "discussion-list": { type: "discussion-list", name: "评论列表" },
962
+ comment: { type: "comment", name: "评论区" },
963
+ "rich-text-editor": { type: "rich-text-editor", name: "富文本", icon: "rich-text-box" },
964
+ calendar: { type: "calendar", name: "日历", icon: "date-picker" }
965
+ }, yt = {
966
+ convertFrom: (e, t, n) => {
967
+ var r;
968
+ const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
969
+ return ((r = ft[o]) == null ? void 0 : r.name) || o;
970
+ }
971
+ }, gt = {
972
+ convertTo: (e, t, n, o) => {
973
+ e[t] = e[t];
974
+ },
975
+ convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
976
+ }, vt = {
977
+ convertTo: (e, t, n, o) => {
978
+ (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = n : e.formatter = {
979
+ [t]: n
980
+ });
981
+ },
982
+ convertFrom: (e, t, n) => {
983
+ if (e.formatter) {
984
+ if (t === "trueText")
985
+ return e.formatter.trueText;
986
+ if (t === "falseText")
987
+ return e.formatter.falseText;
988
+ if (t === "prefix")
989
+ return e.formatter.prefix;
990
+ if (t === "suffix")
991
+ return e.formatter.suffix;
992
+ if (t === "precision")
993
+ return e.formatter.precision;
994
+ if (t === "decimal")
995
+ return e.formatter.decimal;
996
+ if (t === "thousand")
997
+ return e.formatter.thousand;
998
+ if (t === "dateFormat")
999
+ return e.formatter.dateFormat || "yyyy-MM-dd";
1000
+ if (t === "customFormat")
1001
+ return e.formatter.customFormat;
1002
+ if (t === "type")
1003
+ return e.formatter.type || "none";
1004
+ }
1005
+ return "none";
1006
+ }
1007
+ }, bt = {
1008
+ convertTo: (e, t, n, o) => {
1009
+ e.command ? e.command[t] = n : e.command = {
1010
+ [t]: n
1011
+ }, t === "enableType" && n === "default" && (e.command.enable = !0, e.command.commands = [
1012
+ {
1013
+ text: "编辑",
1014
+ type: "primary",
1015
+ command: "edit"
1016
+ },
1017
+ {
1018
+ text: "删除",
1019
+ type: "danger",
1020
+ command: "remove"
1021
+ }
1022
+ ]), t === "enableType" && n === "custom" && (e.command.enable = !0, e.command.commands = [
1023
+ {
1024
+ value: "add",
1025
+ text: {
1026
+ en: "add",
1027
+ "zh-CHS": "增加",
1028
+ "zh-CHT": "增加"
1029
+ },
1030
+ type: "link"
1031
+ },
1032
+ {
1033
+ value: "edit",
1034
+ text: {
1035
+ en: "edit",
1036
+ "zh-CHS": "编辑",
1037
+ "zh-CHT": "編輯"
1038
+ },
1039
+ type: "danger"
1040
+ },
1041
+ {
1042
+ value: "remove",
1043
+ text: {
1044
+ en: "remove",
1045
+ "zh-CHS": "删除",
1046
+ "zh-CHT": "刪除"
1047
+ },
1048
+ type: "remove"
1049
+ }
1050
+ ]), t === "enableType" && n === "unable" && (e.command.enable = !1);
1051
+ },
1052
+ convertFrom: (e, t, n) => {
1053
+ var o, r;
1054
+ if (e.command) {
1055
+ if (t === "enableType") {
1056
+ const m = (r = (o = e.command) == null ? void 0 : o.commands) == null ? void 0 : r.find((y) => y.command === "edit" && y.type === "primary");
1057
+ return e.command.enable ? m ? "default" : "custom" : "unable";
1058
+ }
1059
+ if (t === "commands")
1060
+ return e.command.enableType === "custom" ? e.command.commands : [];
1061
+ if (t === "formatter")
1062
+ return e.command.formatter;
1063
+ if (t === "count")
1064
+ return e.command.count;
1065
+ }
1066
+ return "";
1067
+ }
1068
+ }, ht = {
1069
+ convertTo: (e, t, n, o) => {
1070
+ e.column ? e.column[t] = n : e.column = {
1071
+ [t]: n
1072
+ }, t === "fitColumns" && n && (e.column.fitMode || (e.column.fitMode = "average"));
1073
+ },
1074
+ convertFrom: (e, t, n) => {
1075
+ if (e.column) {
1076
+ if (t === "fitColumns")
1077
+ return e.column.fitColumns;
1078
+ if (t === "fitMode")
1079
+ return e.column.fitMode;
1080
+ }
1081
+ return "";
1082
+ }
1083
+ }, Ct = {
1084
+ convertTo: (e, t, n, o) => {
1085
+ e.summary ? e.summary[t] = n : e.summary = {
1086
+ [t]: n
1087
+ }, t === "enable" && n && (e.summary ? e.summary.groupFields || (e.summary.groupFields = []) : e.summary = {
1088
+ enable: n,
1089
+ groupFields: []
1090
+ });
1091
+ },
1092
+ convertFrom: (e, t, n) => e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : ""
1093
+ }, Ft = {
1094
+ convertTo: (e, t, n, o) => {
1095
+ e.group ? e.group[t] = n : e.group = {
1096
+ [t]: n
1097
+ }, t === "enable" && n && (e.group ? e.group.groupFields || (e.group.groupFields = []) : e.group = {
1098
+ enable: n,
1099
+ groupFields: [],
1100
+ showSummary: !1
1101
+ });
1102
+ },
1103
+ convertFrom: (e, t, n) => {
1104
+ if (e.group) {
1105
+ if (t === "enable")
1106
+ return e.group.enable;
1107
+ if (t === "showSummary")
1108
+ return e.group.showSummary;
1109
+ }
1110
+ }
1111
+ }, wt = {
1112
+ convertFrom: (e, t) => e.binding ? e.binding.path : "",
1113
+ convertTo: (e, t, n) => {
1114
+ if (n && n.length > 0) {
1115
+ const o = n[0];
1116
+ e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
1117
+ }
1118
+ }
1119
+ }, Tt = {
1120
+ convertTo: (e, t, n, o) => {
1121
+ e.pagination || (e.pagination = {}), e.pagination[t] = n;
1122
+ },
1123
+ convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
1124
+ }, It = {
1125
+ convertTo: (e, t, n, o) => {
1126
+ e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
1127
+ },
1128
+ convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
1129
+ }, kt = {
1130
+ convertTo: (e, t, n, o) => {
1131
+ e.selection || (e.selection = {}), e.selection[t] = n;
1132
+ },
1133
+ convertFrom: (e, t, n) => {
1134
+ var o, r;
1135
+ return t === "showCheckbox" ? (o = e.selection) != null && o.multiSelect ? !0 : (r = e.selection) == null ? void 0 : r.showCheckbox : e.selection ? e.selection[t] : e[t];
1136
+ }
1137
+ }, Vt = {
1138
+ convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
1139
+ }, Mt = {
1140
+ convertFrom: (e, t) => e[t] || "",
1141
+ convertTo: (e, t, n) => {
1142
+ e[t] = n;
1143
+ }
1144
+ }, xt = {
1145
+ convertTo: (e, t, n, o) => {
1146
+ e.size || (e.size = {}), e.size[t] = n;
1147
+ },
1148
+ convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
1149
+ }, Bt = {
1150
+ convertFrom: (e, t, n) => {
1151
+ var o, r;
1152
+ return (o = e.formatter) != null && o.data && t === "formatterEnumData" && !e.formatterEnumData ? (r = e.formatter) == null ? void 0 : r.data : e.formatterEnumData;
1153
+ }
1154
+ }, Pt = {
1155
+ convertTo: (e, t, n, o) => {
1156
+ e.sort || (e.sort = {}), e.sort[t] = n;
1157
+ },
1158
+ convertFrom: (e, t, n) => {
1159
+ var o, r;
1160
+ if (t === "mode")
1161
+ return ((o = e.sort) == null ? void 0 : o.mode) || "client";
1162
+ if (t === "multiSort")
1163
+ return !!((r = e.sort) != null && r.multiSort);
1164
+ }
1165
+ }, Et = {
1166
+ convertTo: (e, t, n, o) => {
1167
+ e.filter || (e.filter = {}), e.filter[t] = n;
1168
+ },
1169
+ convertFrom: (e, t, n) => {
1170
+ var o;
1171
+ if (t === "mode")
1172
+ return ((o = e.filter) == null ? void 0 : o.mode) || "client";
1173
+ }
1174
+ }, Dt = {
1175
+ convertTo: (e, t, n, o) => {
1176
+ e.rowOption ? e.rowOption[t] = n : e.rowOption = {
1177
+ [t]: n
1178
+ };
1179
+ },
1180
+ convertFrom: (e, t, n) => {
1181
+ if (e.rowOption) {
1182
+ if (t === "customRowStyle")
1183
+ return e.rowOption.customRowStyle;
1184
+ if (t === "customCellStyle")
1185
+ return e.rowOption.customCellStyle;
1186
+ }
1187
+ return "";
1188
+ }
1189
+ }, $t = {
1190
+ convertTo: (e, t, n, o) => {
1191
+ (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[t] = n, t === "columnTemplateType" && n === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
1192
+ <span class="f-pretend-link f-cursor-pointer"
1193
+ @click="(ctx)=>viewModel.current.${e.onClickLinkCommand || ""}({id: rowData.id,context: ctx})">
1194
+ {{rowData.${e.field}}}
1195
+ </span>` : e.columnTemplate = `
1196
+ <span class="f-pretend-link f-cursor-pointer">
1197
+ {{rowData.${e.field}}}
1198
+ </span>`), t === "columnTemplateType" && n === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && n === "custom" && (e.columnTemplate = ""));
1199
+ },
1200
+ convertFrom: (e, t, n) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
1201
+ };
1202
+ function Nt(e, t, n) {
1203
+ const o = /* @__PURE__ */ new Map([
1204
+ ["/converter/appearance.converter", pt],
1205
+ ["/converter/buttons.converter", dt],
1206
+ ["/converter/property-editor.converter", mt],
1207
+ ["/converter/items-count.converter", Vt],
1208
+ ["/converter/type.converter", yt],
1209
+ ["/converter/change-editor.converter", gt],
1210
+ ["/converter/change-formatter.converter", vt],
1211
+ ["/converter/column-command.converter", bt],
1212
+ ["/converter/column-option.converter", ht],
1213
+ ["/converter/summary.converter", Ct],
1214
+ ["/converter/group.converter", Ft],
1215
+ ["/converter/form-group-label.converter", Mt],
1216
+ ["/converter/field-selector.converter", wt],
1217
+ ["/converter/pagination.converter", Tt],
1218
+ ["/converter/row-number.converter", It],
1219
+ ["/converter/grid-selection.converter", kt],
1220
+ ["/converter/size.converter", xt],
1221
+ ["/converter/change-formatter-enum.converter", Bt],
1222
+ ["/converter/grid-sort.converter", Pt],
1223
+ ["/converter/grid-filter.converter", Et],
1224
+ ["/converter/row-option.converter", Dt],
1225
+ ["/converter/change-formatter-type.converter", $t]
1226
+ ]), r = /* @__PURE__ */ new Map([
1227
+ ["string", { type: "input-group", enableClear: !1 }],
1228
+ ["boolean", {
1229
+ type: "combo-list",
1230
+ textField: "name",
1231
+ valueField: "value",
1232
+ idField: "value",
1233
+ enableClear: !1,
1234
+ editable: !1,
1235
+ data: [
1236
+ {
1237
+ value: !0,
1238
+ name: "是"
1239
+ },
1240
+ {
1241
+ value: !1,
1242
+ name: "否"
1243
+ }
1244
+ ]
1245
+ }],
1246
+ ["enum", { type: "combo-list", maxHeight: 128, enableClear: !1, editable: !1 }],
1247
+ ["array", { type: "button-edit" }],
1248
+ ["number", { type: "number-spinner", placeholder: "" }],
1249
+ ["events-editor", { type: "events-editor", hide: !0 }]
1250
+ ]), m = ut();
1251
+ function y(c, p) {
1252
+ return () => m.parseValueSchema(c, p);
1253
+ }
1254
+ function w(c, p, v) {
1255
+ return c.includes("visible") && p.visible !== void 0 ? typeof p.visible == "boolean" ? () => !!p.visible : p.visible === void 0 ? !0 : y(p.visible, v) : () => !0;
1256
+ }
1257
+ function h(c, p, v) {
1258
+ return c.includes("readonly") && p.readonly !== void 0 ? typeof p.readonly == "boolean" ? () => !!p.readonly : y(p.readonly, v) : () => !1;
1259
+ }
1260
+ function a(c, p) {
1261
+ const v = c.$converter || p;
1262
+ return typeof v == "string" && v && o.has(v) ? o.get(v) || null : v || null;
1263
+ }
1264
+ function f(c, p, v, b, C, D = "", $ = "") {
1265
+ return Object.keys(c).map((B) => {
1266
+ const q = A(1), R = B, N = c[B], M = Object.keys(N), z = N.title, J = N.type, _ = r.get(J) || { type: "input-group", enableClear: !1 }, G = N.editor ? Object.assign({}, _, N.editor) : Object.assign({}, _), l = w(M, N, p), d = h(M, N, p);
1267
+ G.readonly = G.readonly === void 0 ? d() : G.readonly;
1268
+ const F = N.type === "cascade" ? f(N.properties, p, v, b, C, D, $) : [], k = !0;
1269
+ let I = a(N, $);
1270
+ const x = K({
1271
+ get() {
1272
+ if (q.value) {
1273
+ if (["class", "style"].find((X) => X === R) && !I && (I = o.get("/converter/appearance.converter") || null), I && I.convertFrom)
1274
+ return I.convertFrom(v, B, C, D);
1275
+ const U = v[B];
1276
+ return Object.prototype.hasOwnProperty.call(N, "defaultValue") && (U === void 0 || typeof U == "string" && U === "") ? N.type === "boolean" ? N.defaultValue : N.defaultValue || "" : U;
1277
+ }
1278
+ return null;
1279
+ },
1280
+ set(U) {
1281
+ q.value += 1, I && I.convertTo ? (I.convertTo(b, B, U, C, D), I.convertTo(v, B, U, C, D)) : (b[B] = U, v[B] = U);
1282
+ }
1283
+ }), { refreshPanelAfterChanged: E, description: V, isExpand: T, parentPropertyID: S } = N, L = { propertyID: R, propertyName: z, propertyType: J, propertyValue: x, editor: G, visible: l, readonly: d, cascadeConfig: F, hideCascadeTitle: k, refreshPanelAfterChanged: E, description: V, isExpand: T, parentPropertyID: S };
1284
+ return p[R] = L, L;
1285
+ });
1286
+ }
1287
+ function i(c, p, v = {}) {
1288
+ const b = {}, C = e[c];
1289
+ return C && C.categories ? Object.keys(C.categories).map(($) => {
1290
+ const O = C.categories[$], B = O == null ? void 0 : O.title, q = f(O.properties || {}, b, {}, v, p);
1291
+ return { categoryId: $, categoryName: B, properties: q };
1292
+ }) : [];
1293
+ }
1294
+ function s(c, p, v, b, C = "") {
1295
+ const D = p.$ref.schema, $ = p.$ref.converter, O = v[D], B = O.type, q = n(O), R = {}, N = e[B];
1296
+ if (N && N.categories) {
1297
+ const M = N.categories[c], z = M == null ? void 0 : M.title;
1298
+ $ && Object.keys(M.properties).forEach((G) => {
1299
+ M.properties[G].$converter = $;
1300
+ });
1301
+ const J = (M == null ? void 0 : M.properties) || {}, _ = f(J, R, q, O, b, C);
1302
+ return { categoryId: c, categoryName: z, properties: _ };
1303
+ }
1304
+ return { categoryId: c, categoryName: "", properties: [] };
1305
+ }
1306
+ function g(c, p, v, b, C) {
1307
+ const D = c.type, $ = n(c), O = {};
1308
+ let B = C || e[D];
1309
+ if (!(B && Object.keys(B).length > 0) && v && v.getPropConfig && (B = v.getPropConfig(b)), B && B.categories) {
1310
+ const R = [];
1311
+ return Object.keys(B.categories).map((N) => {
1312
+ const M = B.categories[N];
1313
+ if (M.$ref) {
1314
+ R.push(s(N, M, c, p, b));
1315
+ return;
1316
+ }
1317
+ const z = M == null ? void 0 : M.title, J = M == null ? void 0 : M.tabId, _ = M == null ? void 0 : M.tabName, G = M == null ? void 0 : M.hide, l = M == null ? void 0 : M.hideTitle, d = f(M.properties || {}, O, $, c, p, b, M.$converter), { setPropertyRelates: F } = M, k = M == null ? void 0 : M.parentPropertyID;
1318
+ R.push({ categoryId: N, categoryName: z, tabId: J, tabName: _, hide: G, properties: d, hideTitle: l, setPropertyRelates: F, parentPropertyID: k });
1319
+ }), R;
1320
+ }
1321
+ return [];
1322
+ }
1323
+ return {
1324
+ getPropertyConfigBySchema: g,
1325
+ getPropertyConfigByType: i,
1326
+ propertyConverterMap: o
1327
+ };
1328
+ }
1329
+ function St(e, t) {
1330
+ let n;
1331
+ function o(i) {
1332
+ const { properties: s, title: g, ignore: c } = i, p = c && Array.isArray(c), v = Object.keys(s).reduce((b, C) => ((!p || !c.find((D) => D === C)) && (b[C] = s[C].type === "object" && s[C].properties ? o(s[C]) : ae(s[C].default)), b), {});
1333
+ if (g && (!p || !c.find((b) => b === "id"))) {
1334
+ const b = g.toLowerCase().replace(/-/g, "_");
1335
+ v.id = `${b}_${Math.random().toString().slice(2, 6)}`;
1336
+ }
1337
+ return v;
1338
+ }
1339
+ function r(i) {
1340
+ const { properties: s, title: g, required: c } = i;
1341
+ if (c && Array.isArray(c)) {
1342
+ const p = c.reduce((v, b) => (v[b] = s[b].type === "object" && s[b].properties ? o(s[b]) : ae(s[b].default), v), {});
1343
+ if (g && c.find((v) => v === "id")) {
1344
+ const v = g.toLowerCase().replace(/-/g, "_");
1345
+ p.id = `${v}_${Math.random().toString().slice(2, 6)}`;
1346
+ }
1347
+ return p;
1348
+ }
1349
+ return {
1350
+ type: g
1351
+ };
1352
+ }
1353
+ function m(i, s = {}, g) {
1354
+ const c = e[i];
1355
+ if (c) {
1356
+ let p = r(c);
1357
+ const v = t[i];
1358
+ return p = v ? v({ getSchemaByType: m }, p, s, g) : p, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(p), p;
1359
+ }
1360
+ return null;
1361
+ }
1362
+ function y(i, s) {
1363
+ const g = o(s);
1364
+ return Object.keys(g).reduce((c, p) => (Object.prototype.hasOwnProperty.call(i, p) && (c[p] && fe(c[p]) && fe(i[p] || !i[p]) ? Object.assign(c[p], i[p] || {}) : c[p] = i[p]), c), g), g;
1365
+ }
1366
+ function w(i, s) {
1367
+ return Object.keys(i).filter((c) => i[c] != null).reduce((c, p) => {
1368
+ if (s.has(p)) {
1369
+ const v = s.get(p);
1370
+ if (typeof v == "string")
1371
+ c[v] = i[p];
1372
+ else {
1373
+ const b = v(p, i[p], i);
1374
+ Object.assign(c, b);
1375
+ }
1376
+ } else
1377
+ c[p] = i[p];
1378
+ return c;
1379
+ }, {});
1380
+ }
1381
+ function h(i, s, g = /* @__PURE__ */ new Map()) {
1382
+ const c = y(i, s);
1383
+ return w(c, g);
1384
+ }
1385
+ function a(i) {
1386
+ var g;
1387
+ const s = i.type;
1388
+ if (s) {
1389
+ const c = e[s];
1390
+ if (!c)
1391
+ return i;
1392
+ const p = y(i, c), v = ((g = i.editor) == null ? void 0 : g.type) || "";
1393
+ if (v) {
1394
+ const b = e[v], C = y(i.editor, b);
1395
+ p.editor = C;
1396
+ }
1397
+ return p;
1398
+ }
1399
+ return i;
1400
+ }
1401
+ function f(i) {
1402
+ n = i;
1403
+ }
1404
+ return { getSchemaByType: m, resolveSchemaWithDefaultValue: a, resolveSchemaToProps: h, mappingSchemaToProps: w, setDesignerContext: f };
1405
+ }
1406
+ const Lt = {}, Ot = {}, { resolveSchemaWithDefaultValue: At } = St(Lt, Ot), Rt = {}, Ut = {};
1407
+ Nt(Rt, Ut, At);
1408
+ const { globalStorageKey: rr } = he(), ee = class ee {
1143
1409
  /**
1144
1410
  * 根据绑定字段类型获取可用的输入类控件
1145
1411
  */
1146
- static getEditorTypesByMDataType(e, o = !1, i = "") {
1147
- if (o)
1148
- return [{ key: a["language-textbox"].type, value: a["language-textbox"].name }];
1149
- let n = ie.fieldControlTypeMapping[e];
1150
- if (i === "data-grid-column" && (n != null && n.length)) {
1151
- const l = [a["check-group"].type, a["radio-group"].type, a.image.type, a["rich-text-editor"].type];
1152
- n = n.filter((p) => !l.includes(p.key));
1412
+ static getEditorTypesByMDataType(t, n = !1, o = "") {
1413
+ if (n)
1414
+ return [{ key: u["language-textbox"].type, value: u["language-textbox"].name }];
1415
+ let r = ee.fieldControlTypeMapping[t];
1416
+ if (o === "data-grid-column" && (r != null && r.length)) {
1417
+ const m = [u["check-group"].type, u["radio-group"].type, u.image.type, u["rich-text-editor"].type];
1418
+ r = r.filter((y) => !m.includes(y.key));
1153
1419
  }
1154
- return n;
1420
+ return r;
1155
1421
  }
1156
1422
  /**
1157
1423
  * 获取所有输入类控件
1158
1424
  */
1159
1425
  static getAllInputTypes() {
1160
- const e = [];
1161
- for (const o in ie.fieldControlTypeMapping)
1162
- ie.fieldControlTypeMapping[o].forEach((i) => {
1163
- e.find((n) => n.key === i.key && n.value === i.value) || e.push({ key: i.key, value: i.value });
1426
+ const t = [];
1427
+ for (const n in ee.fieldControlTypeMapping)
1428
+ ee.fieldControlTypeMapping[n].forEach((o) => {
1429
+ t.find((r) => r.key === o.key && r.value === o.value) || t.push({ key: o.key, value: o.value });
1164
1430
  });
1165
- return e;
1431
+ return t;
1166
1432
  }
1167
1433
  /**
1168
1434
  * 提供schema字段基础属性和DOM控件属性的映射
1169
1435
  * @param control 控件元数据
1170
1436
  */
1171
- static mappingDomPropAndSchemaProp(e, o) {
1172
- var l;
1173
- const i = (l = e.editor) == null ? void 0 : l.type, n = [];
1174
- return (e.type === a["data-grid-column"].type || e.type === a["tree-grid-column"].type) && o && o.categoryId && o.categoryId.indexOf("gridFieldEditor") < 0 && n.push({ domField: "title", schemaField: "name" }), n.push({ domField: "label", schemaField: "name" }), n.push({ domField: "editor.required", schemaField: "require" }), n.push({ domField: "editor.readonly", schemaField: "readonly" }), (i === a["input-group"].type || i === a.textarea.type || i === a["number-spinner"].type) && n.push({ domField: "editor.maxLength", schemaField: "type.length" }), i === a["number-spinner"].type && n.push({ domField: "editor.precision", schemaField: "type.precision" }), (e.type === a["data-grid-column"].type || e.type === a["tree-grid-column"].type) && n.push({ domField: "formatter.precision", schemaField: "type.precision" }), (i === a["combo-list"].type || i === a["radio-group"].type) && n.push({ domField: "editor.data", schemaField: "type.enumValues" }), (e.type === a["data-grid-column"].type || e.type === a["tree-grid-column"].type) && n.push({ domField: "formatter.data", schemaField: "type.enumValues" }), i === a["date-picker"].type && (n.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), n.push({ domField: "editor.fieldType", schemaField: "type.name" })), i === a["number-spinner"].type && (n.push({ domField: "editor.max", schemaField: "editor.maxValue" }), n.push({ domField: "editor.min", schemaField: "editor.minValue" })), i === a.lookup.type && (n.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), n.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), n.push({ domField: "editor.textField", schemaField: "editor.textField" }), n.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), n.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), n.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), n.push({ domField: "path", schemaField: "bindingPath" }), n.push({ domField: "binding.path", schemaField: "bindingField" }), n.push({ domField: "binding.fullPath", schemaField: "path" }), (e.type === a["data-grid-column"].type || e.type === a["tree-grid-column"].type) && n.push({ domField: "field", schemaField: "bindingPath" }), n;
1437
+ static mappingDomPropAndSchemaProp(t, n) {
1438
+ var m;
1439
+ const o = (m = t.editor) == null ? void 0 : m.type, r = [];
1440
+ return (t.type === u["data-grid-column"].type || t.type === u["tree-grid-column"].type) && n && n.categoryId && n.categoryId.indexOf("gridFieldEditor") < 0 && r.push({ domField: "title", schemaField: "name" }), r.push({ domField: "label", schemaField: "name" }), r.push({ domField: "editor.required", schemaField: "require" }), r.push({ domField: "editor.readonly", schemaField: "readonly" }), (o === u["input-group"].type || o === u.textarea.type || o === u["number-spinner"].type) && r.push({ domField: "editor.maxLength", schemaField: "type.length" }), o === u["number-spinner"].type && r.push({ domField: "editor.precision", schemaField: "type.precision" }), (t.type === u["data-grid-column"].type || t.type === u["tree-grid-column"].type) && r.push({ domField: "formatter.precision", schemaField: "type.precision" }), (o === u["combo-list"].type || o === u["radio-group"].type) && r.push({ domField: "editor.data", schemaField: "type.enumValues" }), (t.type === u["data-grid-column"].type || t.type === u["tree-grid-column"].type) && r.push({ domField: "formatter.data", schemaField: "type.enumValues" }), o === u["date-picker"].type && (r.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), r.push({ domField: "editor.fieldType", schemaField: "type.name" })), o === u["number-spinner"].type && (r.push({ domField: "editor.max", schemaField: "editor.maxValue" }), r.push({ domField: "editor.min", schemaField: "editor.minValue" })), o === u.lookup.type && (r.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), r.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), r.push({ domField: "editor.textField", schemaField: "editor.textField" }), r.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), r.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), r.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), r.push({ domField: "path", schemaField: "bindingPath" }), r.push({ domField: "binding.path", schemaField: "bindingField" }), r.push({ domField: "binding.fullPath", schemaField: "path" }), (t.type === u["data-grid-column"].type || t.type === u["tree-grid-column"].type) && r.push({ domField: "field", schemaField: "bindingPath" }), r;
1175
1441
  }
1176
1442
  };
1177
1443
  /**
1178
1444
  * <字段类型,可配置的控件类型列表>的映射
1179
1445
  */
1180
- se(ie, "fieldControlTypeMapping", {
1446
+ te(ee, "fieldControlTypeMapping", {
1181
1447
  String: [
1182
- { key: a["input-group"].type, value: a["input-group"].name },
1183
- { key: a.lookup.type, value: a.lookup.name },
1184
- { key: a.image.type, value: a.image.name },
1185
- { key: a["date-picker"].type, value: a["date-picker"].name },
1186
- { key: a.switch.type, value: a.switch.name },
1187
- { key: a["check-box"].type, value: a["check-box"].name },
1188
- { key: a["check-group"].type, value: a["check-group"].name },
1189
- { key: a["radio-group"].type, value: a["radio-group"].name },
1190
- { key: a["combo-list"].type, value: a["combo-list"].name },
1191
- { key: a.textarea.type, value: a.textarea.name },
1192
- { key: a["time-picker"].type, value: a["time-picker"].name }
1448
+ { key: u["input-group"].type, value: u["input-group"].name },
1449
+ { key: u.lookup.type, value: u.lookup.name },
1450
+ { key: u.image.type, value: u.image.name },
1451
+ { key: u["date-picker"].type, value: u["date-picker"].name },
1452
+ { key: u.switch.type, value: u.switch.name },
1453
+ { key: u["check-box"].type, value: u["check-box"].name },
1454
+ { key: u["check-group"].type, value: u["check-group"].name },
1455
+ { key: u["radio-group"].type, value: u["radio-group"].name },
1456
+ { key: u["combo-list"].type, value: u["combo-list"].name },
1457
+ { key: u.textarea.type, value: u.textarea.name },
1458
+ { key: u["time-picker"].type, value: u["time-picker"].name }
1193
1459
  ],
1194
1460
  Text: [
1195
- { key: a.textarea.type, value: a.textarea.name },
1196
- { key: a.lookup.type, value: a.lookup.name },
1197
- { key: a.image.type, value: a.image.name },
1198
- { key: a["rich-text-editor"].type, value: a["rich-text-editor"].name }
1461
+ { key: u.textarea.type, value: u.textarea.name },
1462
+ { key: u.lookup.type, value: u.lookup.name },
1463
+ { key: u.image.type, value: u.image.name },
1464
+ { key: u["rich-text-editor"].type, value: u["rich-text-editor"].name }
1199
1465
  ],
1200
1466
  Decimal: [
1201
- { key: a["number-spinner"].type, value: a["number-spinner"].name }
1467
+ { key: u["number-spinner"].type, value: u["number-spinner"].name }
1202
1468
  ],
1203
1469
  Integer: [
1204
- { key: a["number-spinner"].type, value: a["number-spinner"].name }
1470
+ { key: u["number-spinner"].type, value: u["number-spinner"].name }
1205
1471
  ],
1206
1472
  Number: [
1207
- { key: a["number-spinner"].type, value: a["number-spinner"].name },
1208
- { key: a.switch.type, value: a.switch.name },
1209
- { key: a["check-box"].type, value: a["check-box"].name }
1473
+ { key: u["number-spinner"].type, value: u["number-spinner"].name },
1474
+ { key: u.switch.type, value: u.switch.name },
1475
+ { key: u["check-box"].type, value: u["check-box"].name }
1210
1476
  ],
1211
1477
  BigNumber: [
1212
- { key: a["number-spinner"].type, value: a["number-spinner"].name }
1478
+ { key: u["number-spinner"].type, value: u["number-spinner"].name }
1213
1479
  ],
1214
1480
  Date: [
1215
- { key: a["date-picker"].type, value: a["date-picker"].name }
1481
+ { key: u["date-picker"].type, value: u["date-picker"].name }
1216
1482
  ],
1217
1483
  DateTime: [
1218
- { key: a["date-picker"].type, value: a["date-picker"].name }
1484
+ { key: u["date-picker"].type, value: u["date-picker"].name }
1219
1485
  ],
1220
1486
  Boolean: [
1221
- { key: a.switch.type, value: a.switch.name },
1222
- { key: a["check-box"].type, value: a["check-box"].name }
1487
+ { key: u.switch.type, value: u.switch.name },
1488
+ { key: u["check-box"].type, value: u["check-box"].name }
1223
1489
  ],
1224
1490
  Enum: [
1225
- { key: a["combo-list"].type, value: a["combo-list"].name },
1226
- { key: a["radio-group"].type, value: a["radio-group"].name }
1491
+ { key: u["combo-list"].type, value: u["combo-list"].name },
1492
+ { key: u["radio-group"].type, value: u["radio-group"].name }
1227
1493
  ],
1228
1494
  Object: [
1229
- { key: a.lookup.type, value: a.lookup.name },
1230
- { key: a["combo-list"].type, value: a["combo-list"].name },
1231
- { key: a["radio-group"].type, value: a["radio-group"].name }
1495
+ { key: u.lookup.type, value: u.lookup.name },
1496
+ { key: u["combo-list"].type, value: u["combo-list"].name },
1497
+ { key: u["radio-group"].type, value: u["radio-group"].name }
1232
1498
  ]
1233
1499
  });
1234
- let Ie = ie;
1235
- var de = /* @__PURE__ */ ((t) => (t.Form = "Form", t.Variable = "Variable", t))(de || {}), Be = /* @__PURE__ */ ((t) => (t.SimpleField = "SimpleField", t.ComplexField = "ComplexField", t))(Be || {});
1236
- function Xo(t, e, o) {
1237
- function i() {
1238
- const p = o.componentId;
1239
- if (!p)
1500
+ let ge = ee;
1501
+ var se = /* @__PURE__ */ ((e) => (e.Form = "Form", e.Variable = "Variable", e))(se || {}), we = /* @__PURE__ */ ((e) => (e.SimpleField = "SimpleField", e.ComplexField = "ComplexField", e))(we || {});
1502
+ function jt(e, t, n) {
1503
+ function o() {
1504
+ const y = n.componentId;
1505
+ if (!y)
1240
1506
  return !1;
1241
- const C = t.formSchemaUtils.getViewModelIdByComponentId(p);
1242
- if (!C)
1507
+ const w = e.formSchemaUtils.getViewModelIdByComponentId(y);
1508
+ if (!w)
1243
1509
  return !1;
1244
- const { schema: g } = e, { designViewModelUtils: y } = t, F = y.getDgViewModel(C), m = F == null ? void 0 : F.fields.find((w) => w.id === g.binding.field);
1245
- return !(!m || m.$type !== Be.SimpleField);
1246
- }
1247
- function n() {
1248
- const { schema: p } = e;
1249
- return !!t.formSchemaUtils.getVariableById(p.binding.field);
1250
- }
1251
- function l() {
1252
- var g;
1253
- const { schema: p } = e;
1254
- let C = !0;
1255
- if (!t || !((g = p.binding) != null && g.field))
1256
- return C;
1257
- switch (p.binding.type) {
1258
- case de.Form: {
1259
- C = i();
1510
+ const { schema: h } = t, { designViewModelUtils: a } = e, f = a.getDgViewModel(w), i = f == null ? void 0 : f.fields.find((s) => s.id === h.binding.field);
1511
+ return !(!i || i.$type !== we.SimpleField);
1512
+ }
1513
+ function r() {
1514
+ const { schema: y } = t;
1515
+ return !!e.formSchemaUtils.getVariableById(y.binding.field);
1516
+ }
1517
+ function m() {
1518
+ var h;
1519
+ const { schema: y } = t;
1520
+ let w = !0;
1521
+ if (!e || !((h = y.binding) != null && h.field))
1522
+ return w;
1523
+ switch (y.binding.type) {
1524
+ case se.Form: {
1525
+ w = o();
1260
1526
  break;
1261
1527
  }
1262
- case de.Variable:
1263
- C = n();
1528
+ case se.Variable:
1529
+ w = r();
1264
1530
  }
1265
- return C;
1531
+ return w;
1266
1532
  }
1267
- return { checkBindingFieldValidation: l };
1533
+ return { checkBindingFieldValidation: m };
1268
1534
  }
1269
- const Ko = /* @__PURE__ */ _({
1535
+ const qt = /* @__PURE__ */ ne({
1270
1536
  name: "FDynamicFormGroupDesign",
1271
- props: Ve,
1537
+ props: ve,
1272
1538
  emits: ["change", "update:modelValue"],
1273
- setup(t, e) {
1274
- var ne;
1275
- const o = B(t.id), i = B(t.customClass), n = B(t.editor), l = B(t.label), p = B(t.modelValue), C = B(!0), g = B(((ne = t.editor) == null ? void 0 : ne.required) === !0), y = B(t.showLabel);
1276
- B(t.type);
1277
- const F = B(), m = Q("designer-host-service"), w = Q("design-item-context"), E = j(() => y.value ? t.showLabelType : "none"), {
1278
- resolveEditorProps: L,
1279
- resolveEditorType: $
1280
- } = zo(), R = j(() => ({
1539
+ setup(e, t) {
1540
+ var q;
1541
+ const n = A(e.id), o = A(e.customClass), r = A(e.editor), m = A(e.label), y = A(e.modelValue), w = A(!0), h = A(((q = e.editor) == null ? void 0 : q.required) === !0), a = A(e.showLabel);
1542
+ A(e.type);
1543
+ const f = A(), i = Y("designer-host-service"), s = Y("design-item-context"), g = K(() => a.value ? e.showLabelType : "none"), {
1544
+ resolveEditorProps: c,
1545
+ resolveEditorType: p
1546
+ } = ct(), v = K(() => ({
1281
1547
  "form-group": !0,
1282
1548
  "farris-form-group": !0,
1283
1549
  "common-group": !0,
1284
- "q-state-readonly": C.value,
1550
+ "q-state-readonly": w.value,
1285
1551
  "form-group-in-canvas": !0
1286
- })), P = j(() => {
1287
- const W = n.value.type || "input-group", K = $(W), Y = L(W, n.value);
1288
- return () => b(K, me({
1289
- ref: F
1290
- }, Y, {
1291
- modelValue: p.value,
1292
- "onUpdate:modelValue": (H) => p.value = H
1552
+ })), b = K(() => {
1553
+ const R = r.value.type || "input-group", N = p(R), M = c(R, r.value);
1554
+ return () => P(N, be({
1555
+ ref: f
1556
+ }, M, {
1557
+ modelValue: y.value,
1558
+ "onUpdate:modelValue": (z) => y.value = z
1293
1559
  }), null);
1294
1560
  });
1295
- ae([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.showLabel], ([W, K, Y, H, re, D, G]) => {
1296
- var r;
1297
- o.value = W, i.value = K, n.value = {
1298
- ...Y
1299
- }, l.value = H, p.value = re, C.value = D, g.value = ((r = n.value) == null ? void 0 : r.required) === !0, y.value = G;
1561
+ je([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.showLabel], ([R, N, M, z, J, _, G]) => {
1562
+ var l;
1563
+ n.value = R, o.value = N, r.value = {
1564
+ ...M
1565
+ }, m.value = z, y.value = J, w.value = _, h.value = ((l = r.value) == null ? void 0 : l.required) === !0, a.value = G;
1300
1566
  }, {
1301
1567
  deep: !0
1302
1568
  });
1303
- const q = !Q("external-container-id"), {
1304
- checkBindingFieldValidation: A
1305
- } = Xo(m, w, t);
1569
+ const D = !Y("external-container-id"), {
1570
+ checkBindingFieldValidation: $
1571
+ } = jt(i, s, e);
1306
1572
  function O() {
1307
- const W = q ? A() : !0;
1308
- return b($e, {
1309
- id: `${o.value}-lable`,
1310
- showType: E.value,
1311
- required: g.value,
1312
- text: l.value,
1313
- title: l.value,
1314
- valid: W,
1573
+ const R = D ? $() : !0;
1574
+ return P(Be, {
1575
+ id: `${n.value}-lable`,
1576
+ showType: g.value,
1577
+ required: h.value,
1578
+ text: m.value,
1579
+ title: m.value,
1580
+ valid: R,
1315
1581
  inValidTip: "绑定信息已失效,请切换绑定或移除控件"
1316
1582
  }, null);
1317
1583
  }
1318
- const S = j(() => {
1319
- if (t.fill)
1584
+ const B = K(() => {
1585
+ if (e.fill)
1320
1586
  return {
1321
1587
  maxWidth: "none"
1322
1588
  };
1323
1589
  });
1324
- return e.expose({
1325
- editorRef: F
1326
- }), () => b("div", {
1327
- id: `${o.value}-input-group`,
1328
- class: i.value
1329
- }, [b("div", {
1590
+ return t.expose({
1591
+ editorRef: f
1592
+ }), () => P("div", {
1593
+ id: `${n.value}-input-group`,
1594
+ class: o.value
1595
+ }, [P("div", {
1330
1596
  class: "farris-group-wrap",
1331
- style: S.value
1332
- }, [b("div", {
1333
- class: R.value
1334
- }, [O(), b("div", {
1597
+ style: B.value
1598
+ }, [P("div", {
1599
+ class: v.value
1600
+ }, [O(), P("div", {
1335
1601
  class: "farris-input-wrap"
1336
- }, [P.value()])])])]);
1602
+ }, [b.value()])])])]);
1337
1603
  }
1338
1604
  });
1339
- function Qo(t, e) {
1340
- function o() {
1605
+ function Gt(e, t) {
1606
+ function n() {
1341
1607
  return !0;
1342
1608
  }
1343
- function i() {
1609
+ function o() {
1344
1610
  return !0;
1345
1611
  }
1346
- function n() {
1612
+ function r() {
1347
1613
  return !1;
1348
1614
  }
1349
- function l() {
1615
+ function m() {
1350
1616
  return !0;
1351
1617
  }
1352
- function p(m) {
1353
- var P;
1354
- const w = e == null ? void 0 : e.designViewModelUtils, E = e == null ? void 0 : e.formSchemaUtils, L = (P = t == null ? void 0 : t.componentInstance.value) == null ? void 0 : P.belongedComponentId;
1355
- if (!L || !w || !E)
1618
+ function y(i) {
1619
+ var b;
1620
+ const s = t == null ? void 0 : t.designViewModelUtils, g = t == null ? void 0 : t.formSchemaUtils, c = (b = e == null ? void 0 : e.componentInstance.value) == null ? void 0 : b.belongedComponentId;
1621
+ if (!c || !s || !g)
1356
1622
  return;
1357
- const $ = E.getViewModelIdByComponentId(L), R = w.getDgViewModel($);
1358
- R && R.removeField([m]);
1359
- }
1360
- function C(m, w) {
1361
- const E = e == null ? void 0 : e.formSchemaUtils, { schema: L } = t;
1362
- if (E.getComponents().find((R) => {
1363
- let P = E.getControlsInCmpWidthBinding(R.viewModel, m);
1364
- if (P = P.filter((M) => {
1365
- var A;
1366
- if (M.id === L.id)
1623
+ const p = g.getViewModelIdByComponentId(c), v = s.getDgViewModel(p);
1624
+ v && v.removeField([i]);
1625
+ }
1626
+ function w(i, s) {
1627
+ const g = t == null ? void 0 : t.formSchemaUtils, { schema: c } = e;
1628
+ if (g.getComponents().find((v) => {
1629
+ let b = g.getControlsInCmpWidthBinding(v.viewModel, i);
1630
+ if (b = b.filter((C) => {
1631
+ var $;
1632
+ if (C.id === c.id)
1367
1633
  return !1;
1368
- const q = w.type === "visible" ? M[w.type] : (A = M.editor) == null ? void 0 : A[w.type];
1369
- if (q && q.type === "Expression" && q.expressionId === w.id)
1634
+ const D = s.type === "visible" ? C[s.type] : ($ = C.editor) == null ? void 0 : $[s.type];
1635
+ if (D && D.type === "Expression" && D.expressionId === s.id)
1370
1636
  return !0;
1371
- }), P.length)
1637
+ }), b.length)
1372
1638
  return !0;
1373
1639
  }))
1374
1640
  return !0;
1375
1641
  }
1376
- function g(m) {
1377
- var L;
1378
- const w = e == null ? void 0 : e.formSchemaUtils, { schema: E } = t;
1379
- if (w.getExpressions().length) {
1380
- const $ = w.getExpressions(), R = $.findIndex((P) => P.target === m);
1381
- R > -1 && ((L = $[R].rules) == null || L.map((P) => {
1382
- var M;
1383
- switch (P.type) {
1642
+ function h(i) {
1643
+ var c;
1644
+ const s = t == null ? void 0 : t.formSchemaUtils, { schema: g } = e;
1645
+ if (s.getExpressions().length) {
1646
+ const p = s.getExpressions(), v = p.findIndex((b) => b.target === i);
1647
+ v > -1 && ((c = p[v].rules) == null || c.map((b) => {
1648
+ var C;
1649
+ switch (b.type) {
1384
1650
  case "visible":
1385
1651
  case "readonly":
1386
1652
  case "required": {
1387
- const q = P.type === "visible" ? E[P.type] : (M = E.editor) == null ? void 0 : M[P.type];
1388
- q && q.type === "Expression" && q.expressionId === P.id && (C(m, P) || (P.needDelete = !0));
1653
+ const D = b.type === "visible" ? g[b.type] : (C = g.editor) == null ? void 0 : C[b.type];
1654
+ D && D.type === "Expression" && D.expressionId === b.id && (w(i, b) || (b.needDelete = !0));
1389
1655
  break;
1390
1656
  }
1391
1657
  default:
1392
- C(m, P) || (P.needDelete = !0);
1658
+ w(i, b) || (b.needDelete = !0);
1393
1659
  }
1394
- }), $[R].rules = $[R].rules.filter((P) => !P.needDelete));
1660
+ }), p[v].rules = p[v].rules.filter((b) => !b.needDelete));
1395
1661
  }
1396
1662
  }
1397
- function y() {
1398
- var w, E;
1399
- const m = (w = t == null ? void 0 : t.parent) == null ? void 0 : w.componentInstance.value;
1400
- ((E = m == null ? void 0 : m.schema) == null ? void 0 : E.type) === a["response-layout-item"].type && (m != null && m.schema.appearance.class) && (m.schema.appearance.class = m.schema.appearance.class.replace("f-form-layout", ""), m.schema.appearance.class = m.schema.appearance.class.replace("farris-form", ""), m.schema.appearance.class = m.schema.appearance.class.replace("farris-form-controls-inline", ""), m.schema.appearance.class = m.schema.appearance.class.replace("farris-form-auto", ""), m.schema.appearance.class = m.schema.appearance.class.trim().replace(" ", " "));
1663
+ function a() {
1664
+ var s, g;
1665
+ const i = (s = e == null ? void 0 : e.parent) == null ? void 0 : s.componentInstance.value;
1666
+ ((g = i == null ? void 0 : i.schema) == null ? void 0 : g.type) === u["response-layout-item"].type && (i != null && i.schema.appearance.class) && (i.schema.appearance.class = i.schema.appearance.class.replace("f-form-layout", ""), i.schema.appearance.class = i.schema.appearance.class.replace("farris-form", ""), i.schema.appearance.class = i.schema.appearance.class.replace("farris-form-controls-inline", ""), i.schema.appearance.class = i.schema.appearance.class.replace("farris-form-auto", ""), i.schema.appearance.class = i.schema.appearance.class.trim().replace(" ", " "));
1401
1667
  }
1402
- function F() {
1403
- const { schema: m } = t, w = m.binding && m.binding.field;
1404
- w && (p(w), g(w)), y();
1668
+ function f() {
1669
+ const { schema: i } = e, s = i.binding && i.binding.field;
1670
+ s && (y(s), h(s)), a();
1405
1671
  }
1406
1672
  return {
1407
- canAccepts: n,
1408
- checkCanDeleteComponent: i,
1409
- checkCanMoveComponent: o,
1410
- hideNestedPaddingInDesginerView: l,
1411
- onRemoveComponent: F
1673
+ canAccepts: r,
1674
+ checkCanDeleteComponent: o,
1675
+ checkCanMoveComponent: n,
1676
+ hideNestedPaddingInDesginerView: m,
1677
+ onRemoveComponent: f
1412
1678
  };
1413
1679
  }
1414
- const _o = /* @__PURE__ */ _({
1680
+ const Zt = /* @__PURE__ */ ne({
1415
1681
  name: "FFormGroupDesign",
1416
- props: ye,
1682
+ props: Ce,
1417
1683
  emits: [],
1418
- setup(t, e) {
1419
- const o = B(), i = Q("design-item-context"), n = Q("designer-host-service"), l = Qo(i, n), p = fe(o, i, l);
1420
- return ce(() => {
1421
- o.value.componentInstance = p, p.value.getPropConfig = (...C) => {
1422
- var y, F, m;
1423
- let g = Ze[t.editor.type];
1424
- return g && Object.keys(g).length === 0 && ((y = o.value) != null && y.editorRef) && ((m = (F = o.value) == null ? void 0 : F.editorRef) != null && m.getPropConfig) && (g = o.value.editorRef.getPropConfig(...C, p.value)), g;
1684
+ setup(e, t) {
1685
+ const n = A(), o = Y("design-item-context"), r = Y("designer-host-service"), m = Gt(o, r), y = ce(n, o, m);
1686
+ return ie(() => {
1687
+ n.value.componentInstance = y, y.value.getPropConfig = (...w) => {
1688
+ var a, f, i;
1689
+ let h = Le[e.editor.type];
1690
+ return h && Object.keys(h).length === 0 && ((a = n.value) != null && a.editorRef) && ((i = (f = n.value) == null ? void 0 : f.editorRef) != null && i.getPropConfig) && (h = n.value.editorRef.getPropConfig(...w, y.value)), h;
1425
1691
  };
1426
- }), e.expose(p.value), () => b(Ko, me(t, {
1427
- ref: o
1692
+ }), t.expose(y.value), () => P(qt, be(e, {
1693
+ ref: n
1428
1694
  }), null);
1429
1695
  }
1430
- }), ge = /* @__PURE__ */ new Map([
1431
- ["appearance", We]
1432
- ]), Yo = /* @__PURE__ */ new Map([]), Ho = "root-viewmodel";
1433
- class en {
1434
- constructor(e, o) {
1435
- se(this, "formSchemaUtils");
1436
- se(this, "controlCreatorUtils");
1437
- se(this, "designViewModelUtils");
1438
- this.resolver = e, this.designerHostService = o, this.formSchemaUtils = this.designerHostService.formSchemaUtils, this.controlCreatorUtils = this.designerHostService.controlCreatorUtils, this.designViewModelUtils = this.designerHostService.designViewModelUtils;
1439
- }
1440
- createComponent(e) {
1441
- const o = this.createComponentRefNode(e), i = this.createComponentNode(e), n = this.createViewModeNode(e), l = this.formSchemaUtils.getFormSchema();
1442
- return l.module.viewmodels.push(n), l.module.components.push(i), this.designViewModelUtils.assembleDesignViewModel(), o;
1443
- }
1444
- createComponentRefNode(e) {
1445
- const o = this.resolver.getSchemaByType("component-ref");
1446
- return Object.assign(o, {
1447
- id: `${e.componentId}-component-ref`,
1448
- component: `${e.componentId}-component`
1449
- }), o;
1450
- }
1451
- createComponentNode(e) {
1452
- const o = this.resolver.getSchemaByType("component"), i = this.createFormComponentContents(e);
1453
- return Object.assign(o, {
1454
- id: `${e.componentId}-component`,
1455
- viewModel: `${e.componentId}-component-viewmodel`,
1456
- componentType: e.componentType,
1696
+ }), ue = /* @__PURE__ */ new Map([
1697
+ ["appearance", Oe]
1698
+ ]), zt = /* @__PURE__ */ new Map([]), Wt = "root-viewmodel";
1699
+ class Jt {
1700
+ constructor(t, n) {
1701
+ te(this, "formSchemaUtils");
1702
+ te(this, "controlCreatorUtils");
1703
+ te(this, "designViewModelUtils");
1704
+ this.resolver = t, this.designerHostService = n, this.formSchemaUtils = this.designerHostService.formSchemaUtils, this.controlCreatorUtils = this.designerHostService.controlCreatorUtils, this.designViewModelUtils = this.designerHostService.designViewModelUtils;
1705
+ }
1706
+ createComponent(t) {
1707
+ const n = this.createComponentRefNode(t), o = this.createComponentNode(t), r = this.createViewModeNode(t), m = this.formSchemaUtils.getFormSchema();
1708
+ return m.module.viewmodels.push(r), m.module.components.push(o), this.designViewModelUtils.assembleDesignViewModel(), n;
1709
+ }
1710
+ createComponentRefNode(t) {
1711
+ const n = this.resolver.getSchemaByType("component-ref");
1712
+ return Object.assign(n, {
1713
+ id: `${t.componentId}-component-ref`,
1714
+ component: `${t.componentId}-component`
1715
+ }), n;
1716
+ }
1717
+ createComponentNode(t) {
1718
+ const n = this.resolver.getSchemaByType("component"), o = this.createFormComponentContents(t);
1719
+ return Object.assign(n, {
1720
+ id: `${t.componentId}-component`,
1721
+ viewModel: `${t.componentId}-component-viewmodel`,
1722
+ componentType: t.componentType,
1457
1723
  appearance: {
1458
- class: this.getFormComponentClass(e)
1724
+ class: this.getFormComponentClass(t)
1459
1725
  },
1460
- formColumns: e.formColumns,
1461
- contents: i
1462
- }), o;
1726
+ formColumns: t.formColumns,
1727
+ contents: o
1728
+ }), n;
1463
1729
  }
1464
1730
  /**
1465
1731
  * 获取卡片组件层级的class样式
1466
1732
  */
1467
- getFormComponentClass(e) {
1468
- var i, n;
1469
- const { templateId: o } = this.formSchemaUtils.getFormSchema().module;
1470
- if (o === "double-list-in-tab-template" && ((n = (i = e.parentComponentInstance) == null ? void 0 : i.schema) == null ? void 0 : n.type) === "tab-page") {
1471
- const l = e.parentComponentInstance.parent && e.parentComponentInstance.parent.schema;
1472
- if ((l == null ? void 0 : l.type) === "tabs" && (l == null ? void 0 : l.fill) === !0)
1733
+ getFormComponentClass(t) {
1734
+ var o, r;
1735
+ const { templateId: n } = this.formSchemaUtils.getFormSchema().module;
1736
+ if (n === "double-list-in-tab-template" && ((r = (o = t.parentComponentInstance) == null ? void 0 : o.schema) == null ? void 0 : r.type) === "tab-page") {
1737
+ const m = t.parentComponentInstance.parent && t.parentComponentInstance.parent.schema;
1738
+ if ((m == null ? void 0 : m.type) === "tabs" && (m == null ? void 0 : m.fill) === !0)
1473
1739
  return "f-struct-wrapper f-utils-fill-flex-column";
1474
1740
  }
1475
1741
  return "f-struct-wrapper";
1476
1742
  }
1477
- createFormComponentContents(e) {
1478
- var C, g;
1479
- const o = this.resolver.getSchemaByType("section");
1480
- Object.assign(o, {
1481
- id: e.componentId + "-form-section",
1743
+ createFormComponentContents(t) {
1744
+ var w, h;
1745
+ const n = this.resolver.getSchemaByType("section");
1746
+ Object.assign(n, {
1747
+ id: t.componentId + "-form-section",
1482
1748
  appearance: {
1483
1749
  class: "f-section-form f-section-in-mainsubcard"
1484
1750
  },
1485
- mainTitle: e.componentName
1751
+ mainTitle: t.componentName
1486
1752
  });
1487
- const i = this.resolver.getSchemaByType("response-form"), n = [];
1488
- Object.assign(i, {
1489
- id: e.componentId + "-form",
1753
+ const o = this.resolver.getSchemaByType("response-form"), r = [];
1754
+ Object.assign(o, {
1755
+ id: t.componentId + "-form",
1490
1756
  appearance: {
1491
1757
  class: "f-form-layout farris-form farris-form-controls-inline"
1492
1758
  },
1493
- contents: n,
1759
+ contents: r,
1494
1760
  controlsInline: !0
1495
- }), o.contents = [i];
1496
- const { selectedFields: l } = e;
1497
- l == null || l.forEach((y) => {
1498
- if (y.$type === Fe.SimpleField) {
1499
- const F = To(y), m = this.resolveControlClassByFormColumns(e), w = this.controlCreatorUtils.setFormFieldProperty(F, "", m);
1500
- w && n.push(w);
1761
+ }), n.contents = [o];
1762
+ const { selectedFields: m } = t;
1763
+ m == null || m.forEach((a) => {
1764
+ if (a.$type === de.SimpleField) {
1765
+ const f = ae(a), i = this.resolveControlClassByFormColumns(t), s = this.controlCreatorUtils.setFormFieldProperty(f, "", i);
1766
+ s && r.push(s);
1501
1767
  }
1502
1768
  });
1503
- const { templateId: p } = this.formSchemaUtils.getFormSchema().module;
1504
- if (p === "double-list-in-tab-template" && ((g = (C = e.parentComponentInstance) == null ? void 0 : C.schema) == null ? void 0 : g.type) === "tab-page") {
1505
- const y = e.parentComponentInstance.parent && e.parentComponentInstance.parent.schema;
1506
- (y == null ? void 0 : y.type) === "tabs" && (y == null ? void 0 : y.fill) === !0 && (o.appearance.class = "f-section-grid f-section-in-main px-0 pt-0", o.fill = !0);
1769
+ const { templateId: y } = this.formSchemaUtils.getFormSchema().module;
1770
+ if (y === "double-list-in-tab-template" && ((h = (w = t.parentComponentInstance) == null ? void 0 : w.schema) == null ? void 0 : h.type) === "tab-page") {
1771
+ const a = t.parentComponentInstance.parent && t.parentComponentInstance.parent.schema;
1772
+ (a == null ? void 0 : a.type) === "tabs" && (a == null ? void 0 : a.fill) === !0 && (n.appearance.class = "f-section-grid f-section-in-main px-0 pt-0", n.fill = !0);
1507
1773
  }
1508
- return [o];
1774
+ return [n];
1509
1775
  }
1510
- resolveControlClassByFormColumns(e) {
1511
- let o = "";
1512
- switch (e.formColumns) {
1776
+ resolveControlClassByFormColumns(t) {
1777
+ let n = "";
1778
+ switch (t.formColumns) {
1513
1779
  case 1: {
1514
- o = "col-12 col-md-12 col-xl-12 col-el-12";
1780
+ n = "col-12 col-md-12 col-xl-12 col-el-12";
1515
1781
  break;
1516
1782
  }
1517
1783
  case 2: {
1518
- o = "col-12 col-md-6 col-xl-6 col-el-6";
1784
+ n = "col-12 col-md-6 col-xl-6 col-el-6";
1519
1785
  break;
1520
1786
  }
1521
1787
  case 3: {
1522
- o = "col-12 col-md-6 col-xl-4 col-el-4";
1788
+ n = "col-12 col-md-6 col-xl-4 col-el-4";
1523
1789
  break;
1524
1790
  }
1525
1791
  case 4: {
1526
- o = "col-12 col-md-6 col-xl-3 col-el-2";
1792
+ n = "col-12 col-md-6 col-xl-3 col-el-2";
1527
1793
  break;
1528
1794
  }
1529
1795
  }
1530
- return o;
1796
+ return n;
1531
1797
  }
1532
1798
  /**
1533
1799
  * 添加viewModel节点
1534
1800
  */
1535
- createViewModeNode(e) {
1801
+ createViewModeNode(t) {
1536
1802
  return {
1537
- id: `${e.componentId}-component-viewmodel`,
1538
- code: `${e.componentId}-component-viewmodel`,
1539
- name: e.componentName,
1540
- bindTo: e.bindTo,
1541
- parent: Ho,
1542
- fields: this.assembleViewModelFields(e),
1803
+ id: `${t.componentId}-component-viewmodel`,
1804
+ code: `${t.componentId}-component-viewmodel`,
1805
+ name: t.componentName,
1806
+ bindTo: t.bindTo,
1807
+ parent: Wt,
1808
+ fields: this.assembleViewModelFields(t),
1543
1809
  commands: [],
1544
1810
  states: [],
1545
1811
  enableValidation: !0
@@ -1548,47 +1814,47 @@ class en {
1548
1814
  /**
1549
1815
  * 组装viewModel fields 节点
1550
1816
  */
1551
- assembleViewModelFields(e) {
1552
- const o = [], { selectedFields: i } = e;
1553
- return i == null || i.forEach((n) => {
1554
- if (n.$type === Fe.SimpleField) {
1555
- let l = "blur";
1556
- const p = n.type.name;
1557
- (p === be.Enum || p === be.Boolean) && (l = "change"), o.push({
1817
+ assembleViewModelFields(t) {
1818
+ const n = [], { selectedFields: o } = t;
1819
+ return o == null || o.forEach((r) => {
1820
+ if (r.$type === de.SimpleField) {
1821
+ let m = "blur";
1822
+ const y = r.type.name;
1823
+ (y === me.Enum || y === me.Boolean) && (m = "change"), n.push({
1558
1824
  type: "Form",
1559
- id: n.id,
1560
- fieldName: n.bindingField,
1825
+ id: r.id,
1826
+ fieldName: r.bindingField,
1561
1827
  groupId: null,
1562
1828
  groupName: null,
1563
- updateOn: l,
1829
+ updateOn: m,
1564
1830
  fieldSchema: {}
1565
1831
  });
1566
1832
  }
1567
- }), o;
1833
+ }), n;
1568
1834
  }
1569
1835
  }
1570
- function tn(t, e, o, i) {
1571
- var l, p, C, g, y, F;
1572
- const n = o.parentComponentInstance;
1573
- if (n && i) {
1574
- const m = (l = n.schema) == null ? void 0 : l.type, E = {
1836
+ function _t(e, t, n, o) {
1837
+ var m, y, w, h, a, f;
1838
+ const r = n.parentComponentInstance;
1839
+ if (r && o) {
1840
+ const i = (m = r.schema) == null ? void 0 : m.type, g = {
1575
1841
  componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
1576
- componentName: ((p = o.bindingSourceContext) == null ? void 0 : p.entityTitle) || ((g = (C = o.bindingSourceContext) == null ? void 0 : C.bindingEntity) == null ? void 0 : g.name) || "标题",
1842
+ componentName: ((y = n.bindingSourceContext) == null ? void 0 : y.entityTitle) || ((h = (w = n.bindingSourceContext) == null ? void 0 : w.bindingEntity) == null ? void 0 : h.name) || "标题",
1577
1843
  componentType: "form",
1578
- formColumns: m === "splitter-pane" ? 1 : 4,
1579
- parentContainerId: n.schema.id,
1580
- parentComponentInstance: n,
1581
- bindTo: ((y = o.bindingSourceContext) == null ? void 0 : y.bindTo) || "/",
1582
- selectedFields: (F = o.bindingSourceContext) == null ? void 0 : F.bindingEntityFields
1844
+ formColumns: i === "splitter-pane" ? 1 : 4,
1845
+ parentContainerId: r.schema.id,
1846
+ parentComponentInstance: r,
1847
+ bindTo: ((a = n.bindingSourceContext) == null ? void 0 : a.bindTo) || "/",
1848
+ selectedFields: (f = n.bindingSourceContext) == null ? void 0 : f.bindingEntityFields
1583
1849
  };
1584
- return new en(t, i).createComponent(E);
1850
+ return new Jt(e, o).createComponent(g);
1585
1851
  } else
1586
- return e;
1852
+ return t;
1587
1853
  }
1588
- function on(t, e, o) {
1589
- return e;
1854
+ function Xt(e, t, n) {
1855
+ return t;
1590
1856
  }
1591
- const nn = "https://json-schema.org/draft/2020-12/schema", rn = "https://farris-design.gitee.io/grid-field-editor.schema.json", an = "response-form-layout-setting", sn = "A Farris Data Grid Component", ln = "object", un = {
1857
+ const Qt = "https://json-schema.org/draft/2020-12/schema", Yt = "https://farris-design.gitee.io/grid-field-editor.schema.json", Ht = "response-form-layout-setting", Kt = "A Farris Data Grid Component", en = "object", tn = {
1592
1858
  id: {
1593
1859
  description: "The unique identifier for a Input Group",
1594
1860
  type: "string"
@@ -1602,18 +1868,18 @@ const nn = "https://json-schema.org/draft/2020-12/schema", rn = "https://farris-
1602
1868
  description: "",
1603
1869
  type: "object"
1604
1870
  }
1605
- }, cn = [
1871
+ }, nn = [
1606
1872
  "id",
1607
1873
  "type"
1608
- ], pn = {
1609
- $schema: nn,
1610
- $id: rn,
1611
- title: an,
1612
- description: sn,
1613
- type: ln,
1614
- properties: un,
1615
- required: cn
1616
- }, xe = {
1874
+ ], on = {
1875
+ $schema: Qt,
1876
+ $id: Yt,
1877
+ title: Ht,
1878
+ description: Kt,
1879
+ type: en,
1880
+ properties: tn,
1881
+ required: nn
1882
+ }, Te = {
1617
1883
  initialState: {
1618
1884
  type: Object,
1619
1885
  default: {
@@ -1623,142 +1889,142 @@ const nn = "https://json-schema.org/draft/2020-12/schema", rn = "https://farris-
1623
1889
  uniqueColClassInEL: 2
1624
1890
  }
1625
1891
  }
1626
- }, dn = le(xe, pn, Yo, on), mn = /* @__PURE__ */ _({
1892
+ }, rn = re(Te, on, zt, Xt), an = /* @__PURE__ */ ne({
1627
1893
  name: "FResponseFormLayoutSetting",
1628
- props: xe,
1894
+ props: Te,
1629
1895
  emits: ["change"],
1630
- setup(t, e) {
1631
- const o = [1], i = [1, 2], n = [1, 2, 3, 4], l = [1, 2, 3, 4, 6];
1632
- let p = [], C = [], g = [], y = [];
1633
- const F = B(t.initialState), m = B(-1), w = B(-1), E = B(-1), L = B(-1);
1634
- function $() {
1635
- const M = "自定义", q = 12 / F.value.uniqueColClassInSM;
1636
- o.includes(q) ? m.value = q : (p.push({
1896
+ setup(e, t) {
1897
+ const n = [1], o = [1, 2], r = [1, 2, 3, 4], m = [1, 2, 3, 4, 6];
1898
+ let y = [], w = [], h = [], a = [];
1899
+ const f = A(e.initialState), i = A(-1), s = A(-1), g = A(-1), c = A(-1);
1900
+ function p() {
1901
+ const C = "自定义", D = 12 / f.value.uniqueColClassInSM;
1902
+ n.includes(D) ? i.value = D : (y.push({
1637
1903
  value: 0,
1638
- name: M
1639
- }), m.value = 0);
1640
- const A = 12 / F.value.uniqueColClassInMD;
1641
- i.includes(A) ? w.value = A : (C.push({
1904
+ name: C
1905
+ }), i.value = 0);
1906
+ const $ = 12 / f.value.uniqueColClassInMD;
1907
+ o.includes($) ? s.value = $ : (w.push({
1642
1908
  value: 0,
1643
- name: M
1644
- }), w.value = 0);
1645
- const O = 12 / F.value.uniqueColClassInLG;
1646
- n.includes(O) ? E.value = O : (g.push({
1909
+ name: C
1910
+ }), s.value = 0);
1911
+ const O = 12 / f.value.uniqueColClassInLG;
1912
+ r.includes(O) ? g.value = O : (h.push({
1647
1913
  value: 0,
1648
- name: M
1649
- }), E.value = 0);
1650
- const S = 12 / F.value.uniqueColClassInEL;
1651
- l.includes(S) ? L.value = S : (y.push({
1914
+ name: C
1915
+ }), g.value = 0);
1916
+ const B = 12 / f.value.uniqueColClassInEL;
1917
+ m.includes(B) ? c.value = B : (a.push({
1652
1918
  value: 0,
1653
- name: M
1654
- }), L.value = 0), p = [...p], C = [...C], g = [...g], y = [...y];
1919
+ name: C
1920
+ }), c.value = 0), y = [...y], w = [...w], h = [...h], a = [...a];
1655
1921
  }
1656
- function R() {
1657
- o.forEach((M) => {
1658
- p.push({
1659
- value: M,
1660
- name: M + ""
1922
+ function v() {
1923
+ n.forEach((C) => {
1924
+ y.push({
1925
+ value: C,
1926
+ name: C + ""
1661
1927
  });
1662
- }), i.forEach((M) => {
1663
- C.push({
1664
- value: M,
1665
- name: M + ""
1928
+ }), o.forEach((C) => {
1929
+ w.push({
1930
+ value: C,
1931
+ name: C + ""
1666
1932
  });
1667
- }), n.forEach((M) => {
1668
- g.push({
1669
- value: M,
1670
- name: M + ""
1933
+ }), r.forEach((C) => {
1934
+ h.push({
1935
+ value: C,
1936
+ name: C + ""
1671
1937
  });
1672
- }), l.forEach((M) => {
1673
- y.push({
1674
- value: M,
1675
- name: M + ""
1938
+ }), m.forEach((C) => {
1939
+ a.push({
1940
+ value: C,
1941
+ name: C + ""
1676
1942
  });
1677
1943
  });
1678
1944
  }
1679
- function P() {
1680
- ko.question("应用统一布局,将重置区域内部所有控件的宽度样式,确定应用?", "", () => {
1681
- F.value.uniqueColClassInSM = m.value === 0 ? null : 12 / m.value, F.value.uniqueColClassInMD = w.value === 0 ? null : 12 / w.value, F.value.uniqueColClassInLG = E.value === 0 ? null : 12 / E.value, F.value.uniqueColClassInEL = L.value === 0 ? null : 12 / L.value, e.emit("change", F.value);
1945
+ function b() {
1946
+ Qe.question("应用统一布局,将重置区域内部所有控件的宽度样式,确定应用?", "", () => {
1947
+ f.value.uniqueColClassInSM = i.value === 0 ? null : 12 / i.value, f.value.uniqueColClassInMD = s.value === 0 ? null : 12 / s.value, f.value.uniqueColClassInLG = g.value === 0 ? null : 12 / g.value, f.value.uniqueColClassInEL = c.value === 0 ? null : 12 / c.value, t.emit("change", f.value);
1682
1948
  }, () => {
1683
1949
  });
1684
1950
  }
1685
- return ce(() => {
1686
- R(), $();
1687
- }), () => b("div", null, [b("div", {
1951
+ return ie(() => {
1952
+ v(), p();
1953
+ }), () => P("div", null, [P("div", {
1688
1954
  class: "f-form-layout farris-form farris-form-controls-inline"
1689
- }, [b("div", {
1955
+ }, [P("div", {
1690
1956
  class: "form-group farris-form-group screenGroup"
1691
- }, [b("span", {
1957
+ }, [P("span", {
1692
1958
  class: "screenName"
1693
- }, [X(" 小屏幕 ")]), b("div", {
1959
+ }, [Q(" 小屏幕 ")]), P("div", {
1694
1960
  class: "d-flex ml-2 screen-input"
1695
- }, [b(ue, {
1696
- data: p,
1961
+ }, [P(oe, {
1962
+ data: y,
1697
1963
  idField: "value",
1698
1964
  valueField: "value",
1699
1965
  editable: !1,
1700
1966
  enableClear: !1,
1701
- modelValue: m.value,
1702
- "onUpdate:modelValue": (M) => m.value = M
1703
- }, null), b("span", {
1967
+ modelValue: i.value,
1968
+ "onUpdate:modelValue": (C) => i.value = C
1969
+ }, null), P("span", {
1704
1970
  class: "ml-2 columnText"
1705
- }, [X("列")])])]), b("div", {
1971
+ }, [Q("列")])])]), P("div", {
1706
1972
  class: "form-group farris-form-group screenGroup"
1707
- }, [b("span", {
1973
+ }, [P("span", {
1708
1974
  class: "screenName"
1709
- }, [X("中等屏幕")]), b("div", {
1975
+ }, [Q("中等屏幕")]), P("div", {
1710
1976
  class: "d-flex ml-2 screen-input"
1711
- }, [b(ue, {
1712
- data: C,
1977
+ }, [P(oe, {
1978
+ data: w,
1713
1979
  idField: "value",
1714
1980
  valueField: "value",
1715
1981
  editable: !1,
1716
1982
  enableClear: !1,
1717
- modelValue: w.value,
1718
- "onUpdate:modelValue": (M) => w.value = M
1719
- }, null), b("span", {
1983
+ modelValue: s.value,
1984
+ "onUpdate:modelValue": (C) => s.value = C
1985
+ }, null), P("span", {
1720
1986
  class: "ml-2 columnText"
1721
- }, [X("列")])])]), b("div", {
1987
+ }, [Q("列")])])]), P("div", {
1722
1988
  class: "form-group farris-form-group screenGroup"
1723
- }, [b("span", {
1989
+ }, [P("span", {
1724
1990
  class: "screenName"
1725
- }, [X("大屏幕")]), b("div", {
1991
+ }, [Q("大屏幕")]), P("div", {
1726
1992
  class: "d-flex ml-2 screen-input"
1727
- }, [b(ue, {
1728
- data: g,
1993
+ }, [P(oe, {
1994
+ data: h,
1729
1995
  idField: "value",
1730
1996
  valueField: "value",
1731
1997
  editable: !1,
1732
1998
  enableClear: !1,
1733
- modelValue: E.value,
1734
- "onUpdate:modelValue": (M) => E.value = M
1735
- }, null), b("span", {
1999
+ modelValue: g.value,
2000
+ "onUpdate:modelValue": (C) => g.value = C
2001
+ }, null), P("span", {
1736
2002
  class: "ml-2 columnText"
1737
- }, [X("列")])])]), b("div", {
2003
+ }, [Q("列")])])]), P("div", {
1738
2004
  class: "form-group farris-form-group screenGroup"
1739
- }, [b("span", {
2005
+ }, [P("span", {
1740
2006
  class: "screenName"
1741
- }, [X("极大屏幕")]), b("div", {
2007
+ }, [Q("极大屏幕")]), P("div", {
1742
2008
  class: "d-flex ml-2 screen-input"
1743
- }, [b(ue, {
1744
- data: y,
2009
+ }, [P(oe, {
2010
+ data: a,
1745
2011
  idField: "value",
1746
2012
  valueField: "value",
1747
2013
  editable: !1,
1748
2014
  enableClear: !1,
1749
- modelValue: L.value,
1750
- "onUpdate:modelValue": (M) => L.value = M
1751
- }, null), b("span", {
2015
+ modelValue: c.value,
2016
+ "onUpdate:modelValue": (C) => c.value = C
2017
+ }, null), P("span", {
1752
2018
  class: "ml-2 columnText"
1753
- }, [X("列")])])])]), b("div", {
2019
+ }, [Q("列")])])])]), P("div", {
1754
2020
  class: "applyBtn"
1755
- }, [b("button", {
2021
+ }, [P("button", {
1756
2022
  class: "btn f-rt-btn btn-primary",
1757
2023
  type: "button",
1758
- onClick: () => P()
1759
- }, [X("应用")])])]);
2024
+ onClick: () => b()
2025
+ }, [Q("应用")])])]);
1760
2026
  }
1761
- }), fn = "https://json-schema.org/draft/2020-12/schema", yn = "https://farris-design.gitee.io/response-form.schema.json", gn = "response-form", hn = "A Farris Data Collection Component", Cn = "object", vn = {
2027
+ }), ln = "https://json-schema.org/draft/2020-12/schema", sn = "https://farris-design.gitee.io/response-form.schema.json", cn = "response-form", un = "A Farris Data Collection Component", pn = "object", dn = {
1762
2028
  id: {
1763
2029
  description: "The unique identifier for a form group",
1764
2030
  type: "string"
@@ -1801,19 +2067,19 @@ const nn = "https://json-schema.org/draft/2020-12/schema", rn = "https://farris-
1801
2067
  type: "boolean",
1802
2068
  default: !0
1803
2069
  }
1804
- }, Fn = [
2070
+ }, mn = [
1805
2071
  "id",
1806
2072
  "type",
1807
2073
  "contents"
1808
- ], bn = {
1809
- $schema: fn,
1810
- $id: yn,
1811
- title: gn,
1812
- description: hn,
1813
- type: Cn,
1814
- properties: vn,
1815
- required: Fn
1816
- }, wn = "https://json-schema.org/draft/2020-12/schema", In = "https://farris-design.gitee.io/form-group.schema.json", Vn = "form-group", Tn = "A Farris Input Component", kn = "object", Mn = {
2074
+ ], fn = {
2075
+ $schema: ln,
2076
+ $id: sn,
2077
+ title: cn,
2078
+ description: un,
2079
+ type: pn,
2080
+ properties: dn,
2081
+ required: mn
2082
+ }, yn = "https://json-schema.org/draft/2020-12/schema", gn = "https://farris-design.gitee.io/form-group.schema.json", vn = "form-group", bn = "A Farris Input Component", hn = "object", Cn = {
1817
2083
  id: {
1818
2084
  description: "The unique identifier for a form group",
1819
2085
  type: "string"
@@ -1888,42 +2154,40 @@ const nn = "https://json-schema.org/draft/2020-12/schema", rn = "https://farris-
1888
2154
  type: "boolean",
1889
2155
  default: !1
1890
2156
  }
1891
- }, Bn = [
2157
+ }, Fn = [
1892
2158
  "id",
1893
2159
  "type",
1894
2160
  "editor"
1895
- ], Ee = {
1896
- $schema: wn,
1897
- $id: In,
1898
- title: Vn,
1899
- description: Tn,
1900
- type: kn,
1901
- properties: Mn,
1902
- required: Bn
1903
- }, Pe = le(Ae, bn, ge, tn), Le = le(
1904
- Ve,
1905
- Ee,
1906
- ge,
2161
+ ], Ie = {
2162
+ $schema: yn,
2163
+ $id: gn,
2164
+ title: vn,
2165
+ description: bn,
2166
+ type: hn,
2167
+ properties: Cn,
2168
+ required: Fn
2169
+ }, ke = re(Pe, fn, ue, _t), Ve = re(
2170
+ ve,
2171
+ Ie,
2172
+ ue,
1907
2173
  void 0
1908
- ), xn = Je(), En = le(
1909
- Re,
2174
+ ), wn = Ae(), Tn = re(
1910
2175
  Ee,
1911
- ge,
2176
+ Ie,
2177
+ ue,
1912
2178
  void 0
1913
2179
  );
1914
- pe.register = (t, e, o, i) => {
1915
- t["form-group"] = No, e["form-group"] = Le, t["response-form"] = qe, e["response-form"] = Pe, t["form-input"] = Se, e["form-input"] = En, i["form-group"] = { editorResolver: xn }, t["response-form-layout-setting"] = mn, e["response-form-layout-setting"] = dn;
2180
+ le.register = (e, t, n, o) => {
2181
+ e["form-group"] = De, t["form-group"] = Ve, e["response-form"] = $e, t["response-form"] = ke, e["form-input"] = Ne, t["form-input"] = Tn, o["form-group"] = { editorResolver: wn }, e["response-form-layout-setting"] = an, t["response-form-layout-setting"] = rn;
1916
2182
  };
1917
- pe.registerDesigner = (t, e, o) => {
1918
- t["form-group"] = _o, e["form-group"] = Le, t["response-form"] = pe, e["response-form"] = Pe;
2183
+ le.registerDesigner = (e, t, n) => {
2184
+ e["form-group"] = Zt, t["form-group"] = Ve, e["response-form"] = le, t["response-form"] = ke;
1919
2185
  };
1920
2186
  export {
1921
- No as FDynamicFormGroup,
1922
- pe as FResponseFormDesign,
1923
- pe as default,
1924
- xn as editorResolver,
1925
- Le as formGroupPropsResolver,
1926
- En as formInputPropsResolver,
1927
- Pe as formPropsResolver,
1928
- Ao as useDesignerRules
2187
+ le as FResponseFormDesign,
2188
+ le as default,
2189
+ wn as editorResolver,
2190
+ Ve as formGroupPropsResolver,
2191
+ Tn as formInputPropsResolver,
2192
+ ke as formPropsResolver
1929
2193
  };