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

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