@farris/ui-vue 1.7.3 → 1.7.5

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 (392) hide show
  1. package/components/accordion/index.esm.js +312 -61
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +1482 -56
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +752 -8
  6. package/components/binding-selector/index.umd.cjs +1 -1
  7. package/components/button-group/index.esm.js +266 -110
  8. package/components/button-group/index.umd.cjs +1 -1
  9. package/components/calendar/index.esm.js +129 -128
  10. package/components/calendar/index.umd.cjs +2 -2
  11. package/components/code-editor/index.esm.js +237 -169
  12. package/components/code-editor/index.umd.cjs +3 -3
  13. package/components/collection-property-editor/index.esm.js +134 -133
  14. package/components/collection-property-editor/index.umd.cjs +2 -2
  15. package/components/color-picker/index.esm.js +812 -502
  16. package/components/color-picker/index.umd.cjs +1 -1
  17. package/components/combo-list/index.esm.js +323 -291
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +355 -174
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/comment/index.esm.js +134 -133
  22. package/components/comment/index.umd.cjs +2 -2
  23. package/components/common/index.esm.js +1 -1
  24. package/components/common/index.umd.cjs +1 -1
  25. package/components/component/index.esm.js +3791 -2760
  26. package/components/component/index.umd.cjs +8 -1
  27. package/components/condition/index.esm.js +2482 -492
  28. package/components/condition/index.umd.cjs +8 -1
  29. package/components/data-view/index.esm.js +1816 -1790
  30. package/components/data-view/index.umd.cjs +1 -1
  31. package/components/date-picker/index.esm.js +1 -1
  32. package/components/date-picker/index.umd.cjs +1 -1
  33. package/components/designer-canvas/index.esm.js +2975 -2615
  34. package/components/designer-canvas/index.umd.cjs +1 -1
  35. package/components/drawer/index.esm.js +397 -387
  36. package/components/drawer/index.umd.cjs +2 -2
  37. package/components/dropdown/index.esm.js +373 -124
  38. package/components/dropdown/index.umd.cjs +2 -2
  39. package/components/dynamic-form/index.esm.js +592 -1894
  40. package/components/dynamic-form/index.umd.cjs +1 -1
  41. package/components/dynamic-resolver/index.esm.js +250 -248
  42. package/components/dynamic-resolver/index.umd.cjs +2 -2
  43. package/components/dynamic-view/index.esm.js +427 -466
  44. package/components/dynamic-view/index.umd.cjs +1 -1
  45. package/components/event-parameter/index.esm.js +1 -1
  46. package/components/event-parameter/index.umd.cjs +1 -1
  47. package/components/events-editor/index.esm.js +1890 -1473
  48. package/components/events-editor/index.umd.cjs +3 -3
  49. package/components/expression-editor/index.css +1 -1
  50. package/components/expression-editor/index.esm.js +7371 -2
  51. package/components/expression-editor/index.umd.cjs +427 -1
  52. package/components/fieldset/index.esm.js +1 -1
  53. package/components/fieldset/index.umd.cjs +1 -1
  54. package/components/filter-bar/index.esm.js +2 -3
  55. package/components/filter-bar/index.umd.cjs +2 -2
  56. package/components/filter-condition-editor/index.css +1 -1
  57. package/components/filter-condition-editor/index.esm.js +9044 -425
  58. package/components/filter-condition-editor/index.umd.cjs +427 -1
  59. package/components/html-template/index.esm.js +33 -36
  60. package/components/html-template/index.umd.cjs +1 -1
  61. package/components/image-cropper/index.esm.js +615 -361
  62. package/components/image-cropper/index.umd.cjs +1 -1
  63. package/components/json-editor/index.esm.js +325 -247
  64. package/components/json-editor/index.umd.cjs +1 -1
  65. package/components/language-textbox/index.esm.js +269 -269
  66. package/components/language-textbox/index.umd.cjs +2 -2
  67. package/components/layout/index.esm.js +549 -163
  68. package/components/layout/index.umd.cjs +1 -1
  69. package/components/list-nav/index.esm.js +837 -39
  70. package/components/list-nav/index.umd.cjs +1 -1
  71. package/components/list-view/index.esm.js +427 -646
  72. package/components/list-view/index.umd.cjs +6 -6
  73. package/components/lookup/index.esm.js +3624 -3625
  74. package/components/lookup/index.umd.cjs +1 -1
  75. package/components/menu-lookup/index.esm.js +577 -536
  76. package/components/menu-lookup/index.umd.cjs +6 -6
  77. package/components/nav/index.esm.js +311 -31
  78. package/components/nav/index.umd.cjs +1 -1
  79. package/components/number-range/index.esm.js +1634 -189
  80. package/components/number-range/index.umd.cjs +1 -1
  81. package/components/number-spinner/index.esm.js +82 -82
  82. package/components/number-spinner/index.umd.cjs +1 -1
  83. package/components/order/index.esm.js +1190 -850
  84. package/components/order/index.umd.cjs +6 -6
  85. package/components/page-footer/index.esm.js +331 -48
  86. package/components/page-footer/index.umd.cjs +1 -1
  87. package/components/page-header/index.esm.js +110 -116
  88. package/components/page-header/index.umd.cjs +1 -1
  89. package/components/pagination/index.esm.js +509 -232
  90. package/components/pagination/index.umd.cjs +1 -1
  91. package/components/progress/index.esm.js +353 -148
  92. package/components/progress/index.umd.cjs +3 -3
  93. package/components/property-editor/index.esm.js +157 -153
  94. package/components/property-editor/index.umd.cjs +1 -1
  95. package/components/property-panel/index.esm.js +1825 -871
  96. package/components/property-panel/index.umd.cjs +12 -5
  97. package/components/query-solution/index.css +1 -1
  98. package/components/query-solution/index.esm.js +6075 -3863
  99. package/components/query-solution/index.umd.cjs +13 -6
  100. package/components/response-layout/index.esm.js +1 -1
  101. package/components/response-layout/index.umd.cjs +1 -1
  102. package/components/schema-selector/index.esm.js +2447 -2221
  103. package/components/schema-selector/index.umd.cjs +7 -7
  104. package/components/search-box/index.esm.js +244 -72
  105. package/components/search-box/index.umd.cjs +1 -1
  106. package/components/section/index.esm.js +134 -133
  107. package/components/section/index.umd.cjs +2 -2
  108. package/components/smoke-detector/index.esm.js +179 -8
  109. package/components/smoke-detector/index.umd.cjs +1 -1
  110. package/components/sort-condition-editor/index.css +1 -0
  111. package/components/sort-condition-editor/index.esm.js +9488 -4
  112. package/components/sort-condition-editor/index.umd.cjs +427 -1
  113. package/components/splitter/index.esm.js +1172 -142
  114. package/components/splitter/index.umd.cjs +1 -1
  115. package/components/step/index.esm.js +47 -48
  116. package/components/step/index.umd.cjs +1 -1
  117. package/components/tabs/index.esm.js +490 -419
  118. package/components/tabs/index.umd.cjs +1 -1
  119. package/components/text/index.esm.js +217 -73
  120. package/components/text/index.umd.cjs +1 -1
  121. package/components/textarea/index.esm.js +29 -27
  122. package/components/textarea/index.umd.cjs +2 -2
  123. package/components/transfer/index.esm.js +760 -543
  124. package/components/transfer/index.umd.cjs +5 -5
  125. package/components/tree-grid/index.esm.js +105 -104
  126. package/components/tree-grid/index.umd.cjs +1 -1
  127. package/components/tree-view/index.esm.js +320 -153
  128. package/components/tree-view/index.umd.cjs +1 -1
  129. package/components/uploader/index.esm.js +1125 -634
  130. package/components/uploader/index.umd.cjs +2 -2
  131. package/components/verify-detail/index.esm.js +359 -106
  132. package/components/verify-detail/index.umd.cjs +1 -1
  133. package/components/video/index.esm.js +222 -89
  134. package/components/video/index.umd.cjs +1 -1
  135. package/components/weather/index.esm.js +290 -199
  136. package/components/weather/index.umd.cjs +1 -1
  137. package/designer/data-grid/index.esm.js +5192 -4408
  138. package/designer/data-grid/index.umd.cjs +17 -10
  139. package/designer/drawer/index.esm.js +576 -567
  140. package/designer/drawer/index.umd.cjs +2 -2
  141. package/designer/dynamic-form/index.esm.js +1418 -1154
  142. package/designer/dynamic-form/index.umd.cjs +8 -1
  143. package/designer/farris-designer.all.esm.js +12665 -12117
  144. package/designer/farris-designer.all.umd.cjs +12 -12
  145. package/designer/list-view/index.esm.js +327 -327
  146. package/designer/list-view/index.umd.cjs +3 -3
  147. package/designer/modal/index.esm.js +29 -137
  148. package/designer/modal/index.umd.cjs +1 -1
  149. package/designer/radio-group/index.esm.js +0 -1
  150. package/designer/radio-group/index.umd.cjs +1 -1
  151. package/designer/response-toolbar/index.esm.js +9 -9
  152. package/designer/response-toolbar/index.umd.cjs +1 -1
  153. package/designer/section/index.esm.js +1 -6
  154. package/designer/section/index.umd.cjs +1 -1
  155. package/designer/tabs/index.esm.js +2829 -2540
  156. package/designer/tabs/index.umd.cjs +2 -2
  157. package/designer/tree-grid/index.esm.js +822 -464
  158. package/designer/tree-grid/index.umd.cjs +1 -1
  159. package/farris.all.esm.js +68724 -67244
  160. package/farris.all.umd.cjs +92 -92
  161. package/index.css +1 -1
  162. package/package.json +1 -1
  163. package/types/accordion/src/accordion.props.d.ts +1 -0
  164. package/types/accordion/src/components/accordion-item.props.d.ts +1 -0
  165. package/types/avatar/src/avatar.props.d.ts +1 -0
  166. package/types/binding-selector/index.d.ts +54 -0
  167. package/types/binding-selector/src/binding-selector.props.d.ts +1 -0
  168. package/types/button-group/index.d.ts +0 -15
  169. package/types/button-group/src/button-group.props.d.ts +1 -0
  170. package/types/code-editor/index.d.ts +1 -0
  171. package/types/code-editor/src/code-textbox.component.d.ts +6 -6
  172. package/types/code-editor/src/code-textbox.props.d.ts +2 -0
  173. package/types/color-picker/index.d.ts +15 -0
  174. package/types/color-picker/src/color-picker.props.d.ts +1 -0
  175. package/types/combo-list/src/composition/use-data-source.d.ts +2 -1
  176. package/types/combo-list/src/property-config/combo-list.property-config.d.ts +14 -2
  177. package/types/combo-tree/src/combo-tree.props.d.ts +1 -0
  178. package/types/component/index.d.ts +2 -0
  179. package/types/component/src/component.props.d.ts +8 -0
  180. package/types/components.d.ts +6 -1
  181. package/types/condition/index.d.ts +55 -0
  182. package/types/designer-toolbox/index.d.ts +3 -0
  183. package/types/designer-toolbox/src/toolbox.component.d.ts +14 -0
  184. package/types/designer-toolbox/src/toolbox.props.d.ts +29 -0
  185. package/types/designer-toolbox/src/types.d.ts +21 -0
  186. package/types/designer.d.ts +13 -0
  187. package/types/dropdown/index.d.ts +6 -27
  188. package/types/dropdown/src/dropdown.item.component.d.ts +1 -1
  189. package/types/dropdown/src/dropdown.props.d.ts +1 -0
  190. package/types/dynamic-form/designer.d.ts +1 -3
  191. package/types/dynamic-form/index.d.ts +3 -9
  192. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
  193. package/types/dynamic-resolver/index.d.ts +0 -3
  194. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
  195. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
  196. package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
  197. package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
  198. package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
  199. package/types/dynamic-view/src/components/maps.d.ts +104 -92
  200. package/types/{binding-selector/designer.d.ts → expression-editor/index.d.ts} +6 -6
  201. package/types/filter-condition-editor/index.d.ts +9 -0
  202. package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
  203. package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
  204. package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +1 -0
  205. package/types/flow-canvas/index.d.ts +3 -0
  206. package/types/{dynamic-form/src/component/form-control/form-control.component.d.ts → flow-canvas/src/components/flow-node-item.component.d.ts} +1 -1
  207. package/types/flow-canvas/src/components/flow-node-item.props.d.ts +3 -0
  208. package/types/flow-canvas/src/composition/types.d.ts +42 -0
  209. package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +2 -0
  210. package/types/flow-canvas/src/composition/use-connections.d.ts +2 -0
  211. package/types/flow-canvas/src/composition/use-curve.d.ts +4 -0
  212. package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +2 -0
  213. package/types/flow-canvas/src/composition/use-drawing.d.ts +4 -0
  214. package/types/flow-canvas/src/flow-canvas.component.d.ts +8 -0
  215. package/types/flow-canvas/src/flow-canvas.props.d.ts +3 -0
  216. package/types/image-cropper/src/image-cropper.props.d.ts +1 -0
  217. package/types/index.d.ts +1 -0
  218. package/types/json-editor/src/json-editor.props.d.ts +1 -0
  219. package/types/layout/index.d.ts +0 -1
  220. package/types/layout/src/components/layout-pane.props.d.ts +1 -0
  221. package/types/layout/src/layout.props.d.ts +1 -0
  222. package/types/list-nav/index.d.ts +5 -24
  223. package/types/list-nav/src/list-nav.props.d.ts +1 -0
  224. package/types/list-view/index.d.ts +0 -1
  225. package/types/list-view/src/composition/use-draggable.d.ts +1 -1
  226. package/types/lookup/index.d.ts +1 -1
  227. package/types/lookup/src/components/popup-container.component.d.ts +3 -3
  228. package/types/menu-lookup/src/menu-lookup.props.d.ts +1 -0
  229. package/types/modal/designer.d.ts +0 -2
  230. package/types/nav/index.d.ts +20 -24
  231. package/types/nav/src/nav.props.d.ts +1 -0
  232. package/types/number-range/src/number-range.props.d.ts +1 -0
  233. package/types/order/index.d.ts +5 -36
  234. package/types/order/src/designer/order.design.component.d.ts +1 -1
  235. package/types/order/src/order.props.d.ts +1 -0
  236. package/types/page-footer/index.d.ts +2 -0
  237. package/types/page-footer/src/page-footer.props.d.ts +1 -0
  238. package/types/pagination/index.d.ts +0 -15
  239. package/types/pagination/src/pagination.props.d.ts +1 -0
  240. package/types/progress/src/progress.props.d.ts +1 -0
  241. package/types/query-solution/index.d.ts +1 -1
  242. package/types/radio-group/designer.d.ts +1 -2
  243. package/types/search-box/index.d.ts +17 -1
  244. package/types/search-box/src/search-box.props.d.ts +1 -0
  245. package/types/section/designer.d.ts +0 -1
  246. package/types/smoke-detector/index.d.ts +2 -0
  247. package/types/smoke-detector/src/smoke-detector.props.d.ts +1 -0
  248. package/types/sort-condition-editor/index.d.ts +7 -2
  249. package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +1 -0
  250. package/types/splitter/index.d.ts +0 -1
  251. package/types/splitter/src/components/splitter-pane.props.d.ts +1 -0
  252. package/types/splitter/src/splitter.props.d.ts +1 -0
  253. package/types/tabs/designer.d.ts +0 -1
  254. package/types/tabs/index.d.ts +1 -0
  255. package/types/text/index.d.ts +20 -24
  256. package/types/text/src/text.props.d.ts +1 -0
  257. package/types/transfer/src/transfer.props.d.ts +1 -0
  258. package/types/tree-view/src/tree-view.props.d.ts +1 -0
  259. package/types/uploader/src/uploader.props.d.ts +1 -0
  260. package/types/verify-detail/index.d.ts +5 -58
  261. package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
  262. package/types/verify-detail/src/verify-detail.props.d.ts +1 -0
  263. package/types/video/index.d.ts +20 -24
  264. package/types/video/src/video.props.d.ts +1 -0
  265. package/components/dynamic-form/index.css +0 -1
  266. package/designer/accordion/index.esm.js +0 -257
  267. package/designer/accordion/index.umd.cjs +0 -1
  268. package/designer/avatar/index.esm.js +0 -1460
  269. package/designer/avatar/index.umd.cjs +0 -1
  270. package/designer/binding-selector/index.esm.js +0 -792
  271. package/designer/binding-selector/index.umd.cjs +0 -1
  272. package/designer/button-group/index.esm.js +0 -282
  273. package/designer/button-group/index.umd.cjs +0 -1
  274. package/designer/code-editor/index.esm.js +0 -75
  275. package/designer/code-editor/index.umd.cjs +0 -1
  276. package/designer/color-picker/index.esm.js +0 -1096
  277. package/designer/color-picker/index.umd.cjs +0 -1
  278. package/designer/combo-list/index.esm.js +0 -1095
  279. package/designer/combo-list/index.umd.cjs +0 -1
  280. package/designer/combo-tree/index.esm.js +0 -186
  281. package/designer/combo-tree/index.umd.cjs +0 -1
  282. package/designer/component/index.css +0 -1
  283. package/designer/component/index.esm.js +0 -5002
  284. package/designer/component/index.umd.cjs +0 -1
  285. package/designer/condition/index.esm.js +0 -1899
  286. package/designer/condition/index.umd.cjs +0 -1
  287. package/designer/dropdown/index.esm.js +0 -261
  288. package/designer/dropdown/index.umd.cjs +0 -1
  289. package/designer/expression-editor/index.css +0 -1
  290. package/designer/expression-editor/index.esm.js +0 -7006
  291. package/designer/expression-editor/index.umd.cjs +0 -427
  292. package/designer/filter-condition-editor/index.css +0 -1
  293. package/designer/filter-condition-editor/index.esm.js +0 -4795
  294. package/designer/filter-condition-editor/index.umd.cjs +0 -1
  295. package/designer/html-template/index.esm.js +0 -718
  296. package/designer/html-template/index.umd.cjs +0 -1
  297. package/designer/image-cropper/index.esm.js +0 -765
  298. package/designer/image-cropper/index.umd.cjs +0 -1
  299. package/designer/json-editor/index.esm.js +0 -83
  300. package/designer/json-editor/index.umd.cjs +0 -1
  301. package/designer/language-textbox/index.esm.js +0 -783
  302. package/designer/language-textbox/index.umd.cjs +0 -8
  303. package/designer/layout/index.esm.js +0 -430
  304. package/designer/layout/index.umd.cjs +0 -1
  305. package/designer/list-nav/index.esm.js +0 -802
  306. package/designer/list-nav/index.umd.cjs +0 -1
  307. package/designer/lookup/index.esm.js +0 -2083
  308. package/designer/lookup/index.umd.cjs +0 -1
  309. package/designer/menu-lookup/index.esm.js +0 -46
  310. package/designer/menu-lookup/index.umd.cjs +0 -1
  311. package/designer/nav/index.esm.js +0 -284
  312. package/designer/nav/index.umd.cjs +0 -1
  313. package/designer/number-range/index.esm.js +0 -1616
  314. package/designer/number-range/index.umd.cjs +0 -1
  315. package/designer/order/index.css +0 -1
  316. package/designer/order/index.esm.js +0 -2196
  317. package/designer/order/index.umd.cjs +0 -18
  318. package/designer/page-footer/index.esm.js +0 -290
  319. package/designer/page-footer/index.umd.cjs +0 -1
  320. package/designer/page-header/index.esm.js +0 -1003
  321. package/designer/page-header/index.umd.cjs +0 -1
  322. package/designer/pagination/index.esm.js +0 -591
  323. package/designer/pagination/index.umd.cjs +0 -1
  324. package/designer/progress/index.esm.js +0 -213
  325. package/designer/progress/index.umd.cjs +0 -1
  326. package/designer/search-box/index.esm.js +0 -245
  327. package/designer/search-box/index.umd.cjs +0 -1
  328. package/designer/smoke-detector/index.css +0 -1
  329. package/designer/smoke-detector/index.esm.js +0 -178
  330. package/designer/smoke-detector/index.umd.cjs +0 -1
  331. package/designer/sort-condition-editor/index.esm.js +0 -138
  332. package/designer/sort-condition-editor/index.umd.cjs +0 -1
  333. package/designer/splitter/index.esm.js +0 -1120
  334. package/designer/splitter/index.umd.cjs +0 -1
  335. package/designer/step/index.esm.js +0 -226
  336. package/designer/step/index.umd.cjs +0 -1
  337. package/designer/text/index.esm.js +0 -147
  338. package/designer/text/index.umd.cjs +0 -1
  339. package/designer/transfer/index.esm.js +0 -254
  340. package/designer/transfer/index.umd.cjs +0 -1
  341. package/designer/tree-view/index.esm.js +0 -313
  342. package/designer/tree-view/index.umd.cjs +0 -1
  343. package/designer/uploader/index.esm.js +0 -1190
  344. package/designer/uploader/index.umd.cjs +0 -2
  345. package/designer/verify-detail/index.esm.js +0 -258
  346. package/designer/verify-detail/index.umd.cjs +0 -1
  347. package/designer/video/index.esm.js +0 -136
  348. package/designer/video/index.umd.cjs +0 -1
  349. package/designer/weather/index.css +0 -1
  350. package/designer/weather/index.esm.js +0 -6244
  351. package/designer/weather/index.umd.cjs +0 -14
  352. package/types/accordion/designer.d.ts +0 -44
  353. package/types/avatar/designer.d.ts +0 -29
  354. package/types/button-group/designer.d.ts +0 -29
  355. package/types/code-editor/designer.d.ts +0 -5
  356. package/types/color-picker/designer.d.ts +0 -29
  357. package/types/combo-list/designer.d.ts +0 -29
  358. package/types/combo-list/src/designer/combo-list.design.props.d.ts +0 -6
  359. package/types/combo-tree/designer.d.ts +0 -5
  360. package/types/component/designer.d.ts +0 -35
  361. package/types/condition/designer.d.ts +0 -56
  362. package/types/dropdown/designer.d.ts +0 -6
  363. package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +0 -11
  364. package/types/expression-editor/designer.d.ts +0 -9
  365. package/types/filter-condition-editor/designer.d.ts +0 -10
  366. package/types/html-template/designer.d.ts +0 -31
  367. package/types/html-template/src/designer/html-template.design.props.d.ts +0 -9
  368. package/types/image-cropper/designer.d.ts +0 -4
  369. package/types/json-editor/designer.d.ts +0 -5
  370. package/types/layout/designer.d.ts +0 -32
  371. package/types/list-nav/designer.d.ts +0 -6
  372. package/types/menu-lookup/designer.d.ts +0 -5
  373. package/types/nav/designer.d.ts +0 -6
  374. package/types/number-range/designer.d.ts +0 -29
  375. package/types/order/designer.d.ts +0 -6
  376. package/types/page-footer/designer.d.ts +0 -6
  377. package/types/page-header/src/designer/page-header.design.props.d.ts +0 -20
  378. package/types/pagination/designer.d.ts +0 -29
  379. package/types/progress/designer.d.ts +0 -29
  380. package/types/search-box/designer.d.ts +0 -52
  381. package/types/smoke-detector/designer.d.ts +0 -6
  382. package/types/sort-condition-editor/designer.d.ts +0 -9
  383. package/types/splitter/designer.d.ts +0 -32
  384. package/types/step/designer.d.ts +0 -6
  385. package/types/text/designer.d.ts +0 -6
  386. package/types/transfer/designer.d.ts +0 -35
  387. package/types/tree-view/designer.d.ts +0 -29
  388. package/types/uploader/designer.d.ts +0 -141
  389. package/types/verify-detail/designer.d.ts +0 -6
  390. package/types/video/designer.d.ts +0 -6
  391. /package/{designer → components}/condition/index.css +0 -0
  392. /package/{designer → components}/uploader/index.css +0 -0
@@ -1,11 +1,119 @@
1
- import { ref as d, computed as H, createVNode as a, Fragment as U, watch as E, withModifiers as Ce, withDirectives as ye, vModelText as Se, defineComponent as ee, onMounted as we } from "vue";
2
- import Ie from "../tree-view/index.esm.js";
3
- import { LocaleService as W } from "../locale/index.esm.js";
4
- import { getCustomStyle as $, getCustomClass as K, withInstall as be } from "../common/index.esm.js";
5
- import { useFilter as ke, useIdentify as Ve, useHierarchy as Fe, useGroupData as Re, useDataView as De, useSelection as Te, usePagination as Me, useRow as Oe, useEdit as xe, useVisualDataBound as Be, useVisualDataCell as Le, useVisualDataRow as je, useVisualGroupRow as He, useVisualSummaryRow as Ae, useVisualData as Pe, useSidebar as _e, useColumn as Ge, useVirtualScroll as ze, getPagination as Ee } from "../data-view/index.esm.js";
6
- import { FCheckbox as X } from "../checkbox/index.esm.js";
7
- import { cloneDeep as q } from "lodash-es";
8
- const Ne = {
1
+ import { ref as u, computed as L, createVNode as l, Fragment as E, watch as N, withModifiers as be, withDirectives as ke, vModelText as Ve, defineComponent as X, onMounted as ae, inject as Fe, createTextVNode as Z } from "vue";
2
+ import Te from "../tree-view/index.esm.js";
3
+ import { LocaleService as q } from "../locale/index.esm.js";
4
+ import { resolveAppearance as Re, createPropsResolver as De } from "../dynamic-resolver/index.esm.js";
5
+ import { getCustomStyle as ee, getCustomClass as K, withInstall as Me } from "../common/index.esm.js";
6
+ import { useFilter as Oe, useIdentify as xe, useHierarchy as je, useGroupData as Be, useDataView as Le, useSelection as Ae, usePagination as Pe, useRow as He, useEdit as _e, useVisualDataBound as Ge, useVisualDataCell as ze, useVisualDataRow as Ee, useVisualGroupRow as Ne, useVisualSummaryRow as Ue, useVisualData as $e, useSidebar as We, useColumn as qe, useVirtualScroll as Ke, getPagination as Xe } from "../data-view/index.esm.js";
7
+ import { FCheckbox as Y } from "../checkbox/index.esm.js";
8
+ import { cloneDeep as te } from "lodash-es";
9
+ import { useDesignerComponent as Ye } from "../designer-canvas/index.esm.js";
10
+ const Je = /* @__PURE__ */ new Map([
11
+ ["appearance", Re]
12
+ ]);
13
+ function Qe(e, t, d) {
14
+ return t;
15
+ }
16
+ const Ze = "transfer", et = "A Farris Component", tt = "object", nt = {
17
+ basic: {
18
+ description: "Basic Infomation",
19
+ title: "基本信息",
20
+ properties: {
21
+ id: {
22
+ description: "组件标识",
23
+ title: "标识",
24
+ type: "string",
25
+ readonly: !0
26
+ },
27
+ type: {
28
+ description: "组件类型",
29
+ title: "控件类型",
30
+ type: "select",
31
+ editor: {
32
+ type: "waiting for modification",
33
+ enum: []
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }, lt = {
39
+ title: Ze,
40
+ description: et,
41
+ type: tt,
42
+ categories: nt
43
+ }, at = "https://json-schema.org/draft/2020-12/schema", st = "https://farris-design.gitee.io/transfer.schema.json", ot = "transfer", it = "A Farris Component", ct = "object", ut = {
44
+ id: {
45
+ description: "The unique identifier for transfer",
46
+ type: "string"
47
+ },
48
+ type: {
49
+ description: "The type string of transfer",
50
+ type: "string",
51
+ default: "transfer"
52
+ },
53
+ appearance: {
54
+ description: "",
55
+ type: "object",
56
+ properties: {
57
+ class: {
58
+ type: "string"
59
+ },
60
+ style: {
61
+ type: "string"
62
+ }
63
+ },
64
+ default: {}
65
+ },
66
+ binding: {
67
+ description: "",
68
+ type: "object",
69
+ default: {}
70
+ },
71
+ disable: {
72
+ type: "string",
73
+ default: !1
74
+ },
75
+ editable: {
76
+ description: "",
77
+ type: "boolean",
78
+ default: !0
79
+ },
80
+ placeholder: {
81
+ description: "",
82
+ type: "string",
83
+ default: ""
84
+ },
85
+ readonly: {
86
+ description: "",
87
+ type: "boolean",
88
+ default: !1
89
+ },
90
+ require: {
91
+ description: "",
92
+ type: "boolean",
93
+ default: !1
94
+ },
95
+ tabindex: {
96
+ description: "",
97
+ type: "number",
98
+ default: -1
99
+ },
100
+ visible: {
101
+ description: "",
102
+ type: "boolean",
103
+ default: !0
104
+ }
105
+ }, rt = [
106
+ "id",
107
+ "type"
108
+ ], dt = {
109
+ $schema: at,
110
+ $id: st,
111
+ title: ot,
112
+ description: it,
113
+ type: ct,
114
+ properties: ut,
115
+ required: rt
116
+ }, J = {
9
117
  dataSource: {
10
118
  type: Array,
11
119
  default: []
@@ -33,7 +141,7 @@ const Ne = {
33
141
  default: "draggable-item--text-truncate",
34
142
  validator: (e) => typeof e == "string" || typeof e == "function"
35
143
  }
36
- }, Ue = {
144
+ }, se = De(J, dt, Je, Qe, lt), ft = {
37
145
  /** 列集合 */
38
146
  columns: {
39
147
  type: Array,
@@ -101,226 +209,226 @@ const Ne = {
101
209
  /** 分页 */
102
210
  pagination: { type: Object, default: { enable: !1, size: 20 } }
103
211
  };
104
- function We(e, l) {
105
- function g(i) {
106
- const u = [];
107
- let s = i.nextNode();
108
- for (; s; )
109
- u.push(s), s = i.nextNode();
110
- return u;
111
- }
112
- function b(i, u) {
113
- const s = document.createTreeWalker(i, NodeFilter.SHOW_TEXT);
114
- return g(s).map((C) => ({ textNode: C, text: (C.textContent || "").toLocaleLowerCase() })).map(({ textNode: C, text: f }) => {
115
- const c = [];
116
- let R = 0;
117
- for (; R < f.length; ) {
118
- const I = f.indexOf(u, R);
119
- if (I === -1)
212
+ function vt(e, t) {
213
+ function d(i) {
214
+ const f = [];
215
+ let o = i.nextNode();
216
+ for (; o; )
217
+ f.push(o), o = i.nextNode();
218
+ return f;
219
+ }
220
+ function T(i, f) {
221
+ const o = document.createTreeWalker(i, NodeFilter.SHOW_TEXT);
222
+ return d(o).map((b) => ({ textNode: b, text: (b.textContent || "").toLocaleLowerCase() })).map(({ textNode: b, text: m }) => {
223
+ const v = [];
224
+ let M = 0;
225
+ for (; M < m.length; ) {
226
+ const V = m.indexOf(f, M);
227
+ if (V === -1)
120
228
  break;
121
- c.push(I), R = I + u.length;
229
+ v.push(V), M = V + f.length;
122
230
  }
123
- return c.map((I) => {
124
- const S = new Range();
125
- return S.setStart(C, I), S.setEnd(C, I + u.length), S;
231
+ return v.map((V) => {
232
+ const k = new Range();
233
+ return k.setStart(b, V), k.setEnd(b, V + f.length), k;
126
234
  });
127
235
  }).flat();
128
236
  }
129
- function k(i) {
130
- if (!CSS.highlights || (CSS.highlights.clear(), !i || !l))
237
+ function R(i) {
238
+ if (!CSS.highlights || (CSS.highlights.clear(), !i || !t))
131
239
  return;
132
- const u = b(l.value, i.toLocaleLowerCase()), s = new Highlight(...u);
133
- CSS.highlights.set("search-result", s);
240
+ const f = T(t.value, i.toLocaleLowerCase()), o = new Highlight(...f);
241
+ CSS.highlights.set("search-result", o);
134
242
  }
135
- return { search: k };
243
+ return { search: R };
136
244
  }
137
- function J(e, l, g, b, k, i, u, s, x, h) {
138
- const y = d(e.size), C = d(e.textField), f = d(e.titleField), c = d(e.disableField), R = H(() => {
139
- var t, F;
140
- return ((t = e.selection) == null ? void 0 : t.multiSelect) && ((F = e.selection) == null ? void 0 : F.showCheckbox);
245
+ function ne(e, t, d, T, R, i, f, o, y, C) {
246
+ const S = u(e.size), b = u(e.textField), m = u(e.titleField), v = u(e.disableField), M = L(() => {
247
+ var n, p;
248
+ return ((n = e.selection) == null ? void 0 : n.multiSelect) && ((p = e.selection) == null ? void 0 : p.showCheckbox);
141
249
  }), {
142
- onMouseenterItem: I,
143
- onMouseoverItem: S,
144
- onMouseoutItem: V
250
+ onMouseenterItem: V,
251
+ onMouseoverItem: k,
252
+ onMouseoutItem: D
145
253
  } = i, {
146
- getKey: D,
147
- listViewItemClass: O,
254
+ getKey: O,
255
+ listViewItemClass: B,
148
256
  listViewItemStyle: A,
149
- onCheckItem: P,
150
- onClickItem: m
151
- } = u, w = H(() => {
152
- const t = {
257
+ onCheckItem: H,
258
+ onClickItem: h
259
+ } = f, w = L(() => {
260
+ const n = {
153
261
  "text-overflow": "ellipsis",
154
262
  overflow: "hidden",
155
263
  "white-space": "nowrap"
156
264
  };
157
- return e.itemClass ? t : {
158
- margin: y.value === "small" ? "0.25rem 0" : "8px 0",
159
- ...t
265
+ return e.itemClass ? n : {
266
+ margin: S.value === "small" ? "0.25rem 0" : "8px 0",
267
+ ...n
160
268
  };
161
269
  });
162
- function v(t, F, B) {
163
- return t.checked = s.findIndexInSelectedItems(t) > -1, a("li", {
164
- class: O(t, F),
165
- id: D(t, F),
166
- key: D(t, F),
167
- style: A(t, F),
168
- onClick: (L) => m(t, F, L),
169
- onMouseenter: (L) => I(L, t, F),
170
- onMouseover: (L) => S(L, t, F),
171
- onMouseout: (L) => V(L, t, F)
172
- }, [R.value && a("div", {
270
+ function g(n, p, I) {
271
+ return n.checked = o.findIndexInSelectedItems(n) > -1, l("li", {
272
+ class: B(n, p),
273
+ id: O(n, p),
274
+ key: O(n, p),
275
+ style: A(n, p),
276
+ onClick: (F) => h(n, p, F),
277
+ onMouseenter: (F) => V(F, n, p),
278
+ onMouseover: (F) => k(F, n, p),
279
+ onMouseout: (F) => D(F, n, p)
280
+ }, [M.value && l("div", {
173
281
  class: "f-list-select",
174
- onClick: (L) => L.stopPropagation()
175
- }, [a(X, {
176
- id: "list-" + D(t, F),
282
+ onClick: (F) => F.stopPropagation()
283
+ }, [l(Y, {
284
+ id: "list-" + O(n, p),
177
285
  customClass: "listview-checkbox float-left",
178
- disabled: t[c.value],
179
- checked: t.checked,
180
- "onUpdate:checked": (L) => t.checked = L,
181
- onChange: (L) => {
182
- P(t, F, !L.checked);
286
+ disabled: n[v.value],
287
+ checked: n.checked,
288
+ "onUpdate:checked": (F) => n.checked = F,
289
+ onChange: (F) => {
290
+ H(n, p, !F.checked);
183
291
  }
184
- }, null)]), a("div", {
292
+ }, null)]), l("div", {
185
293
  class: "f-list-content"
186
- }, [a("div", {
294
+ }, [l("div", {
187
295
  class: e.itemContentClass,
188
296
  style: w.value,
189
- title: t.raw[f.value] || t.raw[C.value]
190
- }, [t.raw[C.value]])])]);
297
+ title: n.raw[m.value] || n.raw[b.value]
298
+ }, [n.raw[b.value]])])]);
191
299
  }
192
300
  return {
193
- renderItem: v
301
+ renderItem: g
194
302
  };
195
303
  }
196
- function Ke(e, l, g, b, k, i, u, s, x, h) {
197
- const y = d(e.multiSelect), C = d(e.disableField), f = d(e.textField), {
198
- onMouseenterItem: c,
199
- onMouseoverItem: R,
200
- onMouseoutItem: I
304
+ function mt(e, t, d, T, R, i, f, o, y, C) {
305
+ const S = u(e.multiSelect), b = u(e.disableField), m = u(e.textField), {
306
+ onMouseenterItem: v,
307
+ onMouseoverItem: M,
308
+ onMouseoutItem: V
201
309
  } = i, {
202
- getKey: S,
203
- listViewItemClass: V,
204
- listViewItemStyle: D,
205
- onCheckItem: O,
310
+ getKey: k,
311
+ listViewItemClass: D,
312
+ listViewItemStyle: O,
313
+ onCheckItem: B,
206
314
  onClickItem: A,
207
- updateSelectedItems: P
208
- } = u;
209
- function m(v, t, F) {
210
- return e.contentTemplate ? a(U, null, [e.contentTemplate({
211
- item: v.raw,
212
- index: t,
213
- selectedItem: F
214
- })]) : l.slots.content ? a(U, null, [l.slots.content && l.slots.content({
215
- item: v.raw,
216
- index: t,
217
- selectedItem: F
218
- })]) : a("div", {
315
+ updateSelectedItems: H
316
+ } = f;
317
+ function h(g, n, p) {
318
+ return e.contentTemplate ? l(E, null, [e.contentTemplate({
319
+ item: g.raw,
320
+ index: n,
321
+ selectedItem: p
322
+ })]) : t.slots.content ? l(E, null, [t.slots.content && t.slots.content({
323
+ item: g.raw,
324
+ index: n,
325
+ selectedItem: p
326
+ })]) : l("div", {
219
327
  style: "margin: 10px 0;"
220
- }, [v.raw[f.value || "name"]]);
221
- }
222
- function w(v, t, F) {
223
- return a("li", {
224
- class: V(v, t),
225
- id: S(v, t),
226
- key: S(v, t),
227
- style: D(v, t),
228
- onClick: (B) => A(v, t, B),
229
- onMouseenter: (B) => c(B, v, t),
230
- onMouseover: (B) => R(B, v, t),
231
- onMouseout: (B) => I(B, v, t)
232
- }, [y.value && a("div", {
328
+ }, [g.raw[m.value || "name"]]);
329
+ }
330
+ function w(g, n, p) {
331
+ return l("li", {
332
+ class: D(g, n),
333
+ id: k(g, n),
334
+ key: k(g, n),
335
+ style: O(g, n),
336
+ onClick: (I) => A(g, n, I),
337
+ onMouseenter: (I) => v(I, g, n),
338
+ onMouseover: (I) => M(I, g, n),
339
+ onMouseout: (I) => V(I, g, n)
340
+ }, [S.value && l("div", {
233
341
  class: "f-list-select",
234
- onClick: (B) => B.stopPropagation()
235
- }, [a(X, {
236
- id: "list-" + S(v, t),
342
+ onClick: (I) => I.stopPropagation()
343
+ }, [l(Y, {
344
+ id: "list-" + k(g, n),
237
345
  customClass: "listview-checkbox",
238
- disabled: v[C.value],
239
- checked: v.checked,
240
- "onUpdate:checked": (B) => v.checked = B,
241
- onChange: (B) => {
242
- O(v, t, !B.checked), P();
346
+ disabled: g[b.value],
347
+ checked: g.checked,
348
+ "onUpdate:checked": (I) => g.checked = I,
349
+ onChange: (I) => {
350
+ B(g, n, !I.checked), H();
243
351
  }
244
- }, null)]), a("div", {
352
+ }, null)]), l("div", {
245
353
  class: "f-list-content"
246
- }, [m(v, t, F)])]);
354
+ }, [h(g, n, p)])]);
247
355
  }
248
356
  return {
249
357
  renderItem: w
250
358
  };
251
359
  }
252
- function Xe(e, l, g, b, k, i, u, s, x, h) {
253
- const y = d(e.multiSelect), C = d(e.disableField), f = d(e.textField), {
254
- onMouseenterItem: c,
255
- onMouseoverItem: R,
256
- onMouseoutItem: I
360
+ function gt(e, t, d, T, R, i, f, o, y, C) {
361
+ const S = u(e.multiSelect), b = u(e.disableField), m = u(e.textField), {
362
+ onMouseenterItem: v,
363
+ onMouseoverItem: M,
364
+ onMouseoutItem: V
257
365
  } = i, {
258
- getKey: S,
259
- listViewItemClass: V,
260
- onCheckItem: D,
261
- onClickItem: O
262
- } = u, {
366
+ getKey: k,
367
+ listViewItemClass: D,
368
+ onCheckItem: O,
369
+ onClickItem: B
370
+ } = f, {
263
371
  dragstart: A,
264
- dragenter: P,
265
- dragover: m,
372
+ dragenter: H,
373
+ dragover: h,
266
374
  dragend: w
267
- } = b, {
268
- removeItem: v
269
- } = x, t = H(() => ({
270
- margin: y.value ? "10px 0" : "10px 0px 10px 14px"
375
+ } = T, {
376
+ removeItem: g
377
+ } = y, n = L(() => ({
378
+ margin: S.value ? "10px 0" : "10px 0px 10px 14px"
271
379
  }));
272
- function F(o, n = "") {
273
- const j = o.target;
274
- j.title = j.scrollWidth > j.clientWidth ? n : "";
275
- }
276
- function B(o) {
277
- return a("div", {
278
- style: t.value,
279
- onMouseenter: (n) => F(n, o.raw[f.value || "name"])
280
- }, [o.raw[f.value || "name"]]);
281
- }
282
- function L() {
283
- return l.slots.itemContent ? l.slots.itemContent : B;
284
- }
285
- const p = L();
286
- function r(o, n, j) {
287
- return a("li", {
288
- class: V(o, n),
289
- id: S(o, n),
290
- key: S(o, n),
291
- onClick: (T) => O(o, n, T),
292
- onMouseenter: (T) => c(T, o, n),
293
- onMouseover: (T) => R(T, o, n),
294
- onMouseout: (T) => I(T, o, n),
380
+ function p(a, s = "") {
381
+ const P = a.target;
382
+ P.title = P.scrollWidth > P.clientWidth ? s : "";
383
+ }
384
+ function I(a) {
385
+ return l("div", {
386
+ style: n.value,
387
+ onMouseenter: (s) => p(s, a.raw[m.value || "name"])
388
+ }, [a.raw[m.value || "name"]]);
389
+ }
390
+ function F() {
391
+ return t.slots.itemContent ? t.slots.itemContent : I;
392
+ }
393
+ const c = F();
394
+ function r(a, s, P) {
395
+ return l("li", {
396
+ class: D(a, s),
397
+ id: k(a, s),
398
+ key: k(a, s),
399
+ onClick: (x) => B(a, s, x),
400
+ onMouseenter: (x) => v(x, a, s),
401
+ onMouseover: (x) => M(x, a, s),
402
+ onMouseout: (x) => V(x, a, s),
295
403
  draggable: "true",
296
- onDragstart: (T) => A(T, o, n),
297
- onDragenter: (T) => P(T, n),
298
- onDragend: (T) => w(T, o),
299
- onDragover: (T) => m(T)
300
- }, [y.value && a("div", {
404
+ onDragstart: (x) => A(x, a, s),
405
+ onDragenter: (x) => H(x, s),
406
+ onDragend: (x) => w(x, a),
407
+ onDragover: (x) => h(x)
408
+ }, [S.value && l("div", {
301
409
  class: "f-list-select",
302
- onClick: (T) => T.stopPropagation()
303
- }, [a(X, {
304
- id: "list-" + S(o, n),
410
+ onClick: (x) => x.stopPropagation()
411
+ }, [l(Y, {
412
+ id: "list-" + k(a, s),
305
413
  customClass: "listview-checkbox",
306
- disabled: o[C.value] || !o.checked,
307
- checked: o.checked,
308
- "onUpdate:checked": (T) => o.checked = T,
309
- onChange: (T) => D(o, n, !T.checked)
310
- }, null)]), a("div", {
414
+ disabled: a[b.value] || !a.checked,
415
+ checked: a.checked,
416
+ "onUpdate:checked": (x) => a.checked = x,
417
+ onChange: (x) => O(a, s, !x.checked)
418
+ }, null)]), l("div", {
311
419
  class: "f-list-content"
312
- }, [p(o)]), a("div", {
420
+ }, [c(a)]), l("div", {
313
421
  class: "f-list-remove",
314
- onClick: (T) => {
315
- T.stopPropagation(), v(n);
422
+ onClick: (x) => {
423
+ x.stopPropagation(), g(s);
316
424
  }
317
- }, [a("div", {
425
+ }, [l("div", {
318
426
  class: "f-list-remove-icon"
319
- }, [a("i", {
427
+ }, [l("i", {
320
428
  class: "f-icon f-icon-remove_face"
321
- }, null)])]), a("div", {
429
+ }, null)])]), l("div", {
322
430
  class: "f-list-handle"
323
- }, [a("div", null, [a("i", {
431
+ }, [l("div", null, [l("i", {
324
432
  class: "f-icon f-icon-drag-vertical"
325
433
  }, null)])])]);
326
434
  }
@@ -328,196 +436,196 @@ function Xe(e, l, g, b, k, i, u, s, x, h) {
328
436
  renderItem: r
329
437
  };
330
438
  }
331
- function Ye(e, l, g, b, k, i, u, s, x, h) {
332
- var S;
333
- const y = d(((S = e.group) == null ? void 0 : S.groupFields) || []), {
334
- collpaseGroupIconClass: C
335
- } = k, {
336
- toggleGroupRow: f
337
- } = h;
338
- function c(V, D) {
339
- D.collapse = !D.collapse, g.value = f(D.collapse ? "collapse" : "expand", D, g.value);
340
- }
341
- function R(V, D, O) {
342
- return l.slots.group ? a(U, null, [l.slots.content && l.slots.group({
343
- item: V.raw,
344
- index: D,
345
- selectedItem: O
346
- })]) : a("div", {
439
+ function pt(e, t, d, T, R, i, f, o, y, C) {
440
+ var k;
441
+ const S = u(((k = e.group) == null ? void 0 : k.groupFields) || []), {
442
+ collpaseGroupIconClass: b
443
+ } = R, {
444
+ toggleGroupRow: m
445
+ } = C;
446
+ function v(D, O) {
447
+ O.collapse = !O.collapse, d.value = m(O.collapse ? "collapse" : "expand", O, d.value);
448
+ }
449
+ function M(D, O, B) {
450
+ return t.slots.group ? l(E, null, [t.slots.content && t.slots.group({
451
+ item: D.raw,
452
+ index: O,
453
+ selectedItem: B
454
+ })]) : l("div", {
347
455
  class: "f-navlookup-recentHeader",
348
- onClick: (A) => c(A, V)
349
- }, [a("div", {
456
+ onClick: (A) => v(A, D)
457
+ }, [l("div", {
350
458
  class: "fv-grid-group-row-icon"
351
- }, [a("span", {
352
- class: C(V)
353
- }, null)]), a("div", {
459
+ }, [l("span", {
460
+ class: b(D)
461
+ }, null)]), l("div", {
354
462
  class: "f-navlookup-recommandLabel"
355
- }, [V.raw[y.value[V.layer]]])]);
463
+ }, [D.raw[S.value[D.layer]]])]);
356
464
  }
357
- function I(V, D, O) {
358
- return V.layer > -1 && R(V, D, O);
465
+ function V(D, O, B) {
466
+ return D.layer > -1 && M(D, O, B);
359
467
  }
360
468
  return {
361
- renderItem: I
469
+ renderItem: V
362
470
  };
363
471
  }
364
- function $e(e, l, g, b) {
365
- const { dataView: k } = g, { updateSelectedItems: i } = b;
366
- function u(s) {
367
- if (s > -1 && s < k.value.length) {
368
- if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(k.value[s]))
472
+ function ht(e, t, d, T) {
473
+ const { dataView: R } = d, { updateSelectedItems: i } = T;
474
+ function f(o) {
475
+ if (o > -1 && o < R.value.length) {
476
+ if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(R.value[o]))
369
477
  return;
370
- const x = k.value.splice(s, 1);
371
- i(), l.emit("removeItem", x[0]);
478
+ const y = R.value.splice(o, 1);
479
+ i(), t.emit("removeItem", y[0]);
372
480
  }
373
481
  }
374
- return { removeItem: u };
482
+ return { removeItem: f };
375
483
  }
376
- function qe(e, l, g, b, k, i, u, s, x, h) {
377
- const y = d(e.view), C = d(e.view === "CardView"), f = d({}), c = $e(e, l, b, x), R = H(() => ({
484
+ function yt(e, t, d, T, R, i, f, o, y, C) {
485
+ const S = u(e.view), b = u(e.view === "CardView"), m = u({}), v = ht(e, t, T, y), M = L(() => ({
378
486
  "f-list-view-group": !0,
379
487
  "f-list-view-group-multiselect": e.multiSelect,
380
- "d-flex": C.value,
381
- "flex-wrap": C.value
382
- })), I = H(() => !!g.value && g.value.length > 0), S = H(() => g.value.length === 0);
383
- H(() => S.value && !l.slots.empty);
384
- function V() {
385
- return y.value === "SingleView" ? J : y.value === "DraggableView" ? Xe : (y.value === "ContentView" || y.value === "CardView") && (e.contentTemplate || l.slots.content) ? Ke : J;
386
- }
387
- const D = V(), {
388
- renderItem: O
389
- } = D(e, l, g, h, k, i, x, u, c, s), {
488
+ "d-flex": b.value,
489
+ "flex-wrap": b.value
490
+ })), V = L(() => !!d.value && d.value.length > 0), k = L(() => d.value.length === 0);
491
+ L(() => k.value && !t.slots.empty);
492
+ function D() {
493
+ return S.value === "SingleView" ? ne : S.value === "DraggableView" ? gt : (S.value === "ContentView" || S.value === "CardView") && (e.contentTemplate || t.slots.content) ? mt : ne;
494
+ }
495
+ const O = D(), {
496
+ renderItem: B
497
+ } = O(e, t, d, C, R, i, y, f, v, o), {
390
498
  renderItem: A
391
- } = Ye(e, l, g, h, k, i, x, u, c, s), P = [O, A];
392
- function m() {
393
- return g.value.filter((t) => t.visible !== !1).map((t, F) => P[t.type](t, F, f));
499
+ } = pt(e, t, d, C, R, i, y, f, v, o), H = [B, A];
500
+ function h() {
501
+ return d.value.filter((n) => n.visible !== !1).map((n, p) => H[n.type](n, p, m));
394
502
  }
395
503
  function w() {
396
- return a("div", {
504
+ return l("div", {
397
505
  class: "f-list-view-emptydata",
398
506
  style: "margin: 0 auto;"
399
- }, [a("p", {
507
+ }, [l("p", {
400
508
  class: "f-empty-title"
401
- }, [e.emptyTemplate ? e.emptyTemplate() : l.slots.empty ? l.slots.empty() : W.getLocaleValue("listView.emptyMessage")])]);
509
+ }, [e.emptyTemplate ? e.emptyTemplate() : t.slots.empty ? t.slots.empty() : q.getLocaleValue("listView.emptyMessage")])]);
402
510
  }
403
- function v() {
404
- return a("ul", {
405
- class: R.value,
511
+ function g() {
512
+ return l("ul", {
513
+ class: M.value,
406
514
  style: "list-style: none;"
407
- }, [I.value && m(), S.value && w()]);
515
+ }, [V.value && h(), k.value && w()]);
408
516
  }
409
517
  return {
410
- renderListArea: v
518
+ renderListArea: g
411
519
  };
412
520
  }
413
- function Je(e, l, g) {
414
- function b() {
415
- return l.slots.header && a("div", {
521
+ function Ct(e, t, d) {
522
+ function T() {
523
+ return t.slots.header && l("div", {
416
524
  class: "f-list-view-header"
417
- }, [l.slots.header()]);
525
+ }, [t.slots.header()]);
418
526
  }
419
527
  return {
420
- renderHeader: b
528
+ renderHeader: T
421
529
  };
422
530
  }
423
- function Q(e, l, g) {
424
- const b = d(e.headerClass), k = d(e.placeholder), i = d(""), u = H(() => !i.value), s = H(() => !!i.value);
425
- function x(f) {
531
+ function le(e, t, d) {
532
+ const T = u(e.headerClass), R = u(e.placeholder), i = u(""), f = L(() => !i.value), o = L(() => !!i.value);
533
+ function y(m) {
426
534
  i.value = "";
427
535
  }
428
- E(i, (f) => {
429
- e.enableHighlightSearch && g.search(f), l.emit("afterSearch", f);
536
+ N(i, (m) => {
537
+ e.enableHighlightSearch && d.search(m), t.emit("afterSearch", m);
430
538
  });
431
- const h = H(() => {
432
- const f = {
539
+ const C = L(() => {
540
+ const m = {
433
541
  "form-group": !0,
434
542
  "farris-form-group": !0
435
543
  };
436
- return b.value && b.value.split(" ").reduce((R, I) => (R[I] = !0, R), f), f;
544
+ return T.value && T.value.split(" ").reduce((M, V) => (M[V] = !0, M), m), m;
437
545
  });
438
- function y(f) {
546
+ function S(m) {
439
547
  }
440
- function C() {
441
- return a("div", {
548
+ function b() {
549
+ return l("div", {
442
550
  class: "f-list-view-header",
443
- onClick: Ce(() => y, ["prevent", "stop"])
444
- }, [a("div", {
445
- class: h.value
446
- }, [a("div", {
551
+ onClick: be(() => S, ["prevent", "stop"])
552
+ }, [l("div", {
553
+ class: C.value
554
+ }, [l("div", {
447
555
  class: "farris-input-wrap"
448
- }, [a("div", {
556
+ }, [l("div", {
449
557
  class: "f-cmp-inputgroup"
450
- }, [a("div", {
558
+ }, [l("div", {
451
559
  class: "input-group f-state-editable"
452
- }, [ye(a("input", {
560
+ }, [ke(l("input", {
453
561
  class: "form-control f-utils-fill text-left",
454
- "onUpdate:modelValue": (f) => i.value = f,
562
+ "onUpdate:modelValue": (m) => i.value = m,
455
563
  name: "input-group-value",
456
564
  type: "text",
457
- placeholder: k.value,
565
+ placeholder: R.value,
458
566
  autocomplete: "off"
459
- }, null), [[Se, i.value]]), a("div", {
567
+ }, null), [[Ve, i.value]]), l("div", {
460
568
  class: "input-group-append"
461
- }, [s.value && a("span", {
569
+ }, [o.value && l("span", {
462
570
  class: "input-group-text input-group-clear",
463
- onClick: (f) => x()
464
- }, [a("i", {
571
+ onClick: (m) => y()
572
+ }, [l("i", {
465
573
  class: "f-icon f-icon-close-circle"
466
- }, null)]), u.value && a("span", {
574
+ }, null)]), f.value && l("span", {
467
575
  class: "input-group-text"
468
- }, [a("span", {
576
+ }, [l("span", {
469
577
  class: "f-icon f-icon-search"
470
578
  }, null)])])])])])])]);
471
579
  }
472
580
  return {
473
- renderHeader: C
581
+ renderHeader: b
474
582
  };
475
583
  }
476
- function Qe() {
477
- const e = d(""), l = d(-1), g = d(""), b = d(-1), k = d(!1);
478
- function i(C, f, c) {
479
- b.value = c;
584
+ function St() {
585
+ const e = u(""), t = u(-1), d = u(""), T = u(-1), R = u(!1);
586
+ function i(b, m, v) {
587
+ T.value = v;
480
588
  }
481
- function u(C, f, c) {
482
- k.value || (b.value = c);
589
+ function f(b, m, v) {
590
+ R.value || (T.value = v);
483
591
  }
484
- function s(C, f, c) {
485
- b.value = -1;
592
+ function o(b, m, v) {
593
+ T.value = -1;
486
594
  }
487
- function x() {
488
- k.value = !0;
595
+ function y() {
596
+ R.value = !0;
489
597
  }
490
- function h() {
491
- k.value = !1;
598
+ function C() {
599
+ R.value = !1;
492
600
  }
493
- function y() {
494
- l.value = -1, e.value = "";
601
+ function S() {
602
+ t.value = -1, e.value = "";
495
603
  }
496
604
  return {
497
- activeIndex: l,
498
- focusedItemId: g,
499
- hoverIndex: b,
500
- clearActiveItem: y,
605
+ activeIndex: t,
606
+ focusedItemId: d,
607
+ hoverIndex: T,
608
+ clearActiveItem: S,
501
609
  onMouseenterItem: i,
502
- onMouseoverItem: u,
503
- onMouseoutItem: s,
504
- resumeHover: h,
505
- suspendHover: x
610
+ onMouseoverItem: f,
611
+ onMouseoutItem: o,
612
+ resumeHover: C,
613
+ suspendHover: y
506
614
  };
507
615
  }
508
- function Ze(e, l, g, b) {
509
- const k = d(e.idField), { dataView: i } = g, u = d(-1), s = d(!1), { activeIndex: x, focusedItemId: h, hoverIndex: y, resumeHover: C, suspendHover: f } = b;
510
- let c, R = 0, I = 0;
511
- function S(m, w) {
512
- const v = m - R, t = w - I;
513
- c.style.left = parseInt(c.style.left) + v + "px", c.style.top = parseInt(c.style.top) + t + "px", R = m, I = w;
514
- }
515
- function V(m) {
516
- const { left: w, top: v } = m.getBoundingClientRect(), t = m.cloneNode(!0);
517
- return t.className = t.className + " f-listview-drag-moving", t.style.cssText = `
616
+ function wt(e, t, d, T) {
617
+ const R = u(e.idField), { dataView: i } = d, f = u(-1), o = u(!1), { activeIndex: y, focusedItemId: C, hoverIndex: S, resumeHover: b, suspendHover: m } = T;
618
+ let v, M = 0, V = 0;
619
+ function k(h, w) {
620
+ const g = h - M, n = w - V;
621
+ v.style.left = parseInt(v.style.left) + g + "px", v.style.top = parseInt(v.style.top) + n + "px", M = h, V = w;
622
+ }
623
+ function D(h) {
624
+ const { left: w, top: g } = h.getBoundingClientRect(), n = h.cloneNode(!0);
625
+ return n.className = n.className + " f-listview-drag-moving", n.style.cssText = `
518
626
  position:absolute;
519
627
  left:${w}px;
520
- top:${document.documentElement.scrollTop ? v + document.documentElement.scrollTop : v}px;
628
+ top:${document.documentElement.scrollTop ? g + document.documentElement.scrollTop : g}px;
521
629
  z-index: 999999;
522
630
  pointer-events: none;
523
631
  border-radius: 10px;
@@ -526,260 +634,260 @@ function Ze(e, l, g, b) {
526
634
  align-items: center;
527
635
  float: none;
528
636
  text-align: initial;
529
- width:${getComputedStyle(m).width};
530
- height:${getComputedStyle(m).height};
531
- `, t.children[0].style.cssText = "overflow: hidden;flex: 1 1 auto;width: 100%;", t.children[0].children[0].style.cssText = `
637
+ width:${getComputedStyle(h).width};
638
+ height:${getComputedStyle(h).height};
639
+ `, n.children[0].style.cssText = "overflow: hidden;flex: 1 1 auto;width: 100%;", n.children[0].children[0].style.cssText = `
532
640
  margin: 10px 0px 10px 14px;
533
641
  overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
534
- `, t.children[1].style.cssText = "width: 30px;padding: 0 14px 0 0", t.children[2].style.cssText = "padding: 0 14px 0 0;", document.body.appendChild(t), t;
642
+ `, n.children[1].style.cssText = "width: 30px;padding: 0 14px 0 0", n.children[2].style.cssText = "padding: 0 14px 0 0;", document.body.appendChild(n), n;
535
643
  }
536
- function D(m, w, v) {
537
- if (m.stopPropagation(), f(), w) {
538
- if (c = V(m.target), m.dataTransfer) {
539
- const t = new Image();
540
- t.src = "", m.dataTransfer.setDragImage(t, 0, 0);
644
+ function O(h, w, g) {
645
+ if (h.stopPropagation(), m(), w) {
646
+ if (v = D(h.target), h.dataTransfer) {
647
+ const n = new Image();
648
+ n.src = "", h.dataTransfer.setDragImage(n, 0, 0);
541
649
  }
542
- R = m.pageX, I = m.pageY, setTimeout(() => {
543
- u.value = v, s.value = !0, w.moving = !0;
650
+ M = h.pageX, V = h.pageY, setTimeout(() => {
651
+ f.value = g, o.value = !0, w.moving = !0;
544
652
  });
545
653
  }
546
654
  }
547
- function O(m, w) {
548
- if (m.preventDefault(), u.value !== w) {
549
- const v = i.value[u.value], t = i.value;
550
- t.splice(u.value, 1), t.splice(w, 0, v), u.value = w, S(m.pageX, m.pageY);
655
+ function B(h, w) {
656
+ if (h.preventDefault(), f.value !== w) {
657
+ const g = i.value[f.value], n = i.value;
658
+ n.splice(f.value, 1), n.splice(w, 0, g), f.value = w, k(h.pageX, h.pageY);
551
659
  }
552
660
  }
553
- function A(m) {
554
- m.preventDefault(), m.dataTransfer && (m.dataTransfer.dropEffect = "move"), S(m.pageX, m.pageY);
661
+ function A(h) {
662
+ h.preventDefault(), h.dataTransfer && (h.dataTransfer.dropEffect = "move"), k(h.pageX, h.pageY);
555
663
  }
556
- function P(m, w) {
557
- w && (w.moving = !1, c && (document.body.removeChild(c), c = null)), i.value.forEach((v, t) => {
558
- v.__fv_index__ = t;
559
- }), s.value = !1, C(), y.value = w.raw.__fv_index__, x.value = w.raw.__fv_index__, h.value = w.raw[k.value], l.emit("change", i.value), l.emit("activeChange", [w.raw]);
664
+ function H(h, w) {
665
+ w && (w.moving = !1, v && (document.body.removeChild(v), v = null)), i.value.forEach((g, n) => {
666
+ g.__fv_index__ = n;
667
+ }), o.value = !1, b(), S.value = w.raw.__fv_index__, y.value = w.raw.__fv_index__, C.value = w.raw[R.value], t.emit("change", i.value), t.emit("activeChange", [w.raw]);
560
668
  }
561
669
  return {
562
- dragstart: D,
563
- dragenter: O,
670
+ dragstart: O,
671
+ dragenter: B,
564
672
  dragover: A,
565
- dragend: P,
566
- isDragging: s
673
+ dragend: H,
674
+ isDragging: o
567
675
  };
568
676
  }
569
- function et(e, l, g, b, k, i) {
570
- const u = d(e.idField), s = d(e.disableField), x = d(e.draggable);
571
- d(e.itemClass);
572
- const h = d(e.selection.multiSelect ?? !1), y = d(e.selection.multiSelectMode), { isDragging: C } = b, { activeIndex: f, focusedItemId: c, hoverIndex: R } = k, { clearSelection: I, getSelectedItems: S, toggleSelectItem: V, currentSelectedDataId: D } = i, O = d(S()), A = (r) => O.value.length === 0 ? !1 : O.value.some((o) => {
573
- let n = "";
574
- return o.data ? n = o.data[u.value] : n = o[u.value], n === r;
677
+ function It(e, t, d, T, R, i) {
678
+ const f = u(e.idField), o = u(e.disableField), y = u(e.draggable);
679
+ u(e.itemClass);
680
+ const C = u(e.selection.multiSelect ?? !1), S = u(e.selection.multiSelectMode), { isDragging: b } = T, { activeIndex: m, focusedItemId: v, hoverIndex: M } = R, { clearSelection: V, getSelectedItems: k, toggleSelectItem: D, currentSelectedDataId: O } = i, B = u(k()), A = (r) => B.value.length === 0 ? !1 : B.value.some((a) => {
681
+ let s = "";
682
+ return a.data ? s = a.data[f.value] : s = a[f.value], s === r;
575
683
  });
576
- function P() {
577
- O.value = S();
684
+ function H() {
685
+ B.value = k();
578
686
  }
579
- function m(r, o) {
580
- return r.raw[u.value] != null ? r.raw[u.value] : "";
687
+ function h(r, a) {
688
+ return r.raw[f.value] != null ? r.raw[f.value] : "";
581
689
  }
582
- function w(r, o) {
583
- const n = {
690
+ function w(r, a) {
691
+ const s = {
584
692
  "f-list-view-group-item": !0,
585
- "f-list-view-draggable-item": x.value,
693
+ "f-list-view-draggable-item": y.value,
586
694
  "f-un-click": !r.checked,
587
- "f-un-select": !!r.raw[s.value],
695
+ "f-un-select": !!r.raw[o.value],
588
696
  "f-listview-active": (
589
697
  // 多选
590
- h.value && A(m(r)) || // 单选
591
- !h.value && r.raw[u.value] === D.value
698
+ C.value && A(h(r)) || // 单选
699
+ !C.value && r.raw[f.value] === O.value
592
700
  ),
593
- "f-listview-hover": !C.value && o === R.value,
701
+ "f-listview-hover": !b.value && a === M.value,
594
702
  moving: !!r.moving
595
703
  };
596
704
  if (typeof e.itemClass == "string")
597
- return K(n, e.itemClass);
705
+ return K(s, e.itemClass);
598
706
  if (typeof e.itemClass == "function") {
599
- const j = e.itemClass(r);
600
- return K(n, j);
707
+ const P = e.itemClass(r);
708
+ return K(s, P);
601
709
  }
602
- return n;
710
+ return s;
603
711
  }
604
- function v(r, o) {
605
- const n = {};
712
+ function g(r, a) {
713
+ const s = {};
606
714
  if (typeof e.itemStyle == "string")
607
- return $(n, e.itemStyle);
715
+ return ee(s, e.itemStyle);
608
716
  if (typeof e.itemStyle == "function") {
609
- const j = e.itemStyle(r);
610
- return $(n, j);
717
+ const P = e.itemStyle(r);
718
+ return ee(s, P);
611
719
  }
612
- return n;
720
+ return s;
613
721
  }
614
- const t = H(() => !h.value);
615
- function F(r, o, n) {
616
- r.checked = n, !r.raw[s.value] && (t.value && (c.value = r.raw[u.value]), V(r));
722
+ const n = L(() => !C.value);
723
+ function p(r, a, s) {
724
+ r.checked = s, !r.raw[o.value] && (n.value && (v.value = r.raw[f.value]), D(r));
617
725
  }
618
- const B = H(() => h.value && y.value === "OnCheckClearByClick"), L = H(() => !h.value || h.value && (y.value === "OnCheckAndClick" || y.value === "OnClick"));
619
- function p(r, o, n) {
620
- if (r.raw[s.value]) {
621
- n == null || n.preventDefault(), n == null || n.stopPropagation();
726
+ const I = L(() => C.value && S.value === "OnCheckClearByClick"), F = L(() => !C.value || C.value && (S.value === "OnCheckAndClick" || S.value === "OnClick"));
727
+ function c(r, a, s) {
728
+ if (r.raw[o.value]) {
729
+ s == null || s.preventDefault(), s == null || s.stopPropagation();
622
730
  return;
623
731
  }
624
- D.value = r.raw[u.value], c.value = r.raw[u.value], f.value = o, B.value && I(), L.value && (V(r), P()), l.emit("clickItem", { data: O.value, index: o, dataItem: r.raw }), l.emit("activeChange", O.value);
732
+ O.value = r.raw[f.value], v.value = r.raw[f.value], m.value = a, I.value && V(), F.value && (D(r), H()), t.emit("clickItem", { data: B.value, index: a, dataItem: r.raw }), t.emit("activeChange", B.value);
625
733
  }
626
734
  return {
627
- getKey: m,
628
- selectedItems: O,
735
+ getKey: h,
736
+ selectedItems: B,
629
737
  listViewItemClass: w,
630
- listViewItemStyle: v,
631
- updateSelectedItems: P,
632
- onCheckItem: F,
633
- onClickItem: p
738
+ listViewItemStyle: g,
739
+ updateSelectedItems: H,
740
+ onCheckItem: p,
741
+ onClickItem: c
634
742
  };
635
743
  }
636
- const Z = /* @__PURE__ */ ee({
744
+ const U = /* @__PURE__ */ X({
637
745
  name: "FListView",
638
- props: Ue,
746
+ props: ft,
639
747
  emits: ["afterSearch", "checkValuesChange", "clickItem", "selectItem", "unSelectItem", "selectionChange", "removeItem", "change", "activeChange", "pageIndexChanged", "pageSizeChanged", "changed", "selectionUpdate"],
640
- setup(e, l) {
641
- const g = d(), b = d(!0), k = d(!1), i = d([]), u = 0, s = d(e.columns), x = ke(e, l), h = Ve(e), y = Fe(e), C = Re(e, h), f = De(e, /* @__PURE__ */ new Map(), x, y, h), c = Te(e, f, h, i, l), R = We(e, g), I = Me(e, f), S = H(() => f.dataView.value.length), V = Oe(e, l, c, h), D = xe(e, l, h, V, i), O = Be(e), A = Le(e, {}, O), P = je(e, f, D, y, h, O, A), m = He(e, h, A, P), w = Ae(e, h, A, P), v = Pe(e, s, f, S, u, P, m, w), {
642
- getVisualData: t
643
- } = v;
644
- i.value = t(0, S.value + u - 1);
645
- const F = H(() => {
646
- const M = {
748
+ setup(e, t) {
749
+ const d = u(), T = u(!0), R = u(!1), i = u([]), f = 0, o = u(e.columns), y = Oe(e, t), C = xe(e), S = je(e), b = Be(e, C), m = Le(e, /* @__PURE__ */ new Map(), y, S, C), v = Ae(e, m, C, i, t), M = vt(e, d), V = Pe(e, m), k = L(() => m.dataView.value.length), D = He(e, t, v, C), O = _e(e, t, C, D, i), B = Ge(e), A = ze(e, {}, B), H = Ee(e, m, O, S, C, B, A), h = Ne(e, C, A, H), w = Ue(e, C, A, H), g = $e(e, o, m, k, f, H, h, w), {
750
+ getVisualData: n
751
+ } = g;
752
+ i.value = n(0, k.value + f - 1);
753
+ const p = L(() => {
754
+ const j = {
647
755
  "f-list-view": !0,
648
756
  "f-list-view-multiple": e.multiSelect
649
757
  };
650
- return e.size !== "default" && (M[`${e.size}-item`] = !0), K(M, e.customClass);
651
- }), B = H(() => !!l.slots.footer || b.value);
652
- function L() {
653
- return e.header === "SearchBar" ? Q : e.header === "ContentHeader" ? Je : Q;
758
+ return e.size !== "default" && (j[`${e.size}-item`] = !0), K(j, e.customClass);
759
+ }), I = L(() => !!t.slots.footer || T.value);
760
+ function F() {
761
+ return e.header === "SearchBar" ? le : e.header === "ContentHeader" ? Ct : le;
654
762
  }
655
- const p = L(), {
763
+ const c = F(), {
656
764
  renderHeader: r
657
- } = p(e, l, R), o = Qe(), n = Ze(e, l, f, o), j = et(e, l, i, n, o, c), {
658
- renderListArea: T
659
- } = qe(e, l, i, f, C, o, c, v, j, n);
660
- function te(M) {
661
- R.search(M);
662
- }
663
- function le(M) {
664
- M && (f.load(M), i.value = t(0, S.value + u - 1));
665
- }
666
- function ne() {
667
- c.clearSelection(), o.clearActiveItem();
668
- }
669
- function ae() {
670
- return j.selectedItems.value;
671
- }
672
- function oe() {
673
- return j.selectedItems.value.map((M) => M[h.idField.value]);
674
- }
675
- function Y(M) {
676
- c.selectedValues.value = M, j.updateSelectedItems();
677
- }
678
- function se() {
679
- return c.currentSelectedDataId.value;
680
- }
681
- function ie(M) {
682
- V.activeRowById(M);
683
- }
684
- function ue(M) {
685
- const _ = h.idField.value, G = i.value.find((N) => N.raw[_] === M), z = i.value.findIndex((N) => N.raw[_] === M);
686
- G && z > -1 && j.onClickItem(G, z);
687
- }
688
- function ce(M) {
689
- const _ = h.idField.value, G = i.value.find((z) => z.raw[_] === M);
690
- G && V.changeRow(G);
691
- }
692
- function re(M) {
693
- I.updatePagination(M);
694
- }
695
- function de(M) {
696
- return i.value.filter((_) => M.includes(_.raw[e.idField]));
697
- }
698
- l.expose({
699
- search: te,
700
- updateDataSource: le,
701
- clearSelection: ne,
702
- getSelections: ae,
703
- updateSelectionByIds: Y,
704
- getSelectionIds: oe,
705
- activeRowById: ie,
706
- getCurrentRowId: se,
707
- clickRowItemById: ue,
708
- updatePagination: re,
709
- getVisibleDataByIds: de,
710
- selectRowById: ce
765
+ } = c(e, t, M), a = St(), s = wt(e, t, m, a), P = It(e, t, i, s, a, v), {
766
+ renderListArea: x
767
+ } = yt(e, t, i, m, b, a, v, g, P, s);
768
+ function oe(j) {
769
+ M.search(j);
770
+ }
771
+ function ie(j) {
772
+ j && (m.load(j), i.value = n(0, k.value + f - 1));
773
+ }
774
+ function ce() {
775
+ v.clearSelection(), a.clearActiveItem();
776
+ }
777
+ function ue() {
778
+ return P.selectedItems.value;
779
+ }
780
+ function re() {
781
+ return P.selectedItems.value.map((j) => j[C.idField.value]);
782
+ }
783
+ function Q(j) {
784
+ v.selectedValues.value = j, P.updateSelectedItems();
785
+ }
786
+ function de() {
787
+ return v.currentSelectedDataId.value;
788
+ }
789
+ function fe(j) {
790
+ D.activeRowById(j);
791
+ }
792
+ function ve(j) {
793
+ const _ = C.idField.value, G = i.value.find((W) => W.raw[_] === j), z = i.value.findIndex((W) => W.raw[_] === j);
794
+ G && z > -1 && P.onClickItem(G, z);
795
+ }
796
+ function me(j) {
797
+ const _ = C.idField.value, G = i.value.find((z) => z.raw[_] === j);
798
+ G && D.changeRow(G);
799
+ }
800
+ function ge(j) {
801
+ V.updatePagination(j);
802
+ }
803
+ function pe(j) {
804
+ return i.value.filter((_) => j.includes(_.raw[e.idField]));
805
+ }
806
+ t.expose({
807
+ search: oe,
808
+ updateDataSource: ie,
809
+ clearSelection: ce,
810
+ getSelections: ue,
811
+ updateSelectionByIds: Q,
812
+ getSelectionIds: re,
813
+ activeRowById: fe,
814
+ getCurrentRowId: de,
815
+ clickRowItemById: ve,
816
+ updatePagination: ge,
817
+ getVisibleDataByIds: pe,
818
+ selectRowById: me
711
819
  });
712
- function fe(M) {
713
- e.multiSelect && (M.preventDefault(), M.stopPropagation());
820
+ function he(j) {
821
+ e.multiSelect && (j.preventDefault(), j.stopPropagation());
714
822
  }
715
- E(() => e.selectionValues, (M, _) => {
716
- M !== _ && Y(M);
823
+ N(() => e.selectionValues, (j, _) => {
824
+ j !== _ && Q(j);
717
825
  });
718
- const ve = _e(e, c), {
719
- sidebarWidth: me,
720
- showSidebarCheckBox: lt
721
- } = ve, ge = Ge(e, l), {
722
- applyColumnSorter: nt,
723
- columnContext: he,
724
- updateColumnRenderContext: at
725
- } = ge, pe = ze(e, f, i, he, v, S, u, me, D), {
726
- shouldRenderPagination: ot
727
- } = I, {
728
- renderDataGridPagination: st
729
- } = Ee(e, l, f, pe, I, c);
730
- return () => a("div", {
731
- class: F.value,
732
- onClick: fe
733
- }, [r(), a("div", {
734
- ref: g,
826
+ const ye = We(e, v), {
827
+ sidebarWidth: Ce,
828
+ showSidebarCheckBox: kt
829
+ } = ye, Se = qe(e, t), {
830
+ applyColumnSorter: Vt,
831
+ columnContext: we,
832
+ updateColumnRenderContext: Ft
833
+ } = Se, Ie = Ke(e, m, i, we, g, k, f, Ce, O), {
834
+ shouldRenderPagination: Tt
835
+ } = V, {
836
+ renderDataGridPagination: Rt
837
+ } = Xe(e, t, m, Ie, V, v);
838
+ return () => l("div", {
839
+ class: p.value,
840
+ onClick: he
841
+ }, [r(), l("div", {
842
+ ref: d,
735
843
  class: "f-list-view-content",
736
844
  onMouseover: () => {
737
- k.value = !0;
845
+ R.value = !0;
738
846
  },
739
847
  onMouseleave: () => {
740
- k.value = !1;
848
+ R.value = !1;
741
849
  }
742
- }, [T()]), B.value && a("div", {
850
+ }, [x()]), I.value && l("div", {
743
851
  class: "f-list-view-footer"
744
- }, [e.footerTemplate ? e.footerTemplate() : l.slots.footer && l.slots.footer()])]);
852
+ }, [e.footerTemplate ? e.footerTemplate() : t.slots.footer && t.slots.footer()])]);
745
853
  }
746
- }), tt = /* @__PURE__ */ ee({
854
+ }), $ = /* @__PURE__ */ X({
747
855
  name: "FTransfer",
748
- props: Ne,
856
+ props: J,
749
857
  emits: ["change", "activeChange", "selectItem", "unSelecteItem", "removeItem"],
750
- setup(e, l) {
751
- const g = d(e.identifyField), b = d(e.displayType), k = d(!1), i = d(e.dataSource), u = d(e.textField), s = d(e.selections || []), x = H(() => s.value.map((p) => p[g.value])), h = /* @__PURE__ */ new Map(), y = d(), C = d(), f = d();
752
- let c;
753
- function R() {
754
- const p = /* @__PURE__ */ new Map(), r = e.selectionValues || [];
755
- r.length && r.reduce((n, j) => (n.set(j, !0), n), p);
756
- const o = e.selections || [];
757
- o.length && (p.clear(), o.reduce((n, j) => (n.set(j[g.value], !0), n), p)), s.value.length || (s.value = i.value.filter((n) => p.has(n[g.value])).map((n) => Object.assign({}, n))), i.value.forEach((n) => {
758
- const j = n[g.value], T = p.has(j);
759
- n.checked = T, T && h.set(j, n);
858
+ setup(e, t) {
859
+ const d = u(e.identifyField), T = u(e.displayType), R = u(!1), i = u(e.dataSource), f = u(e.textField), o = u(e.selections || []), y = L(() => o.value.map((c) => c[d.value])), C = /* @__PURE__ */ new Map(), S = u(), b = u(), m = u();
860
+ let v;
861
+ function M() {
862
+ const c = /* @__PURE__ */ new Map(), r = e.selectionValues || [];
863
+ r.length && r.reduce((s, P) => (s.set(P, !0), s), c);
864
+ const a = e.selections || [];
865
+ a.length && (c.clear(), a.reduce((s, P) => (s.set(P[d.value], !0), s), c)), o.value.length || (o.value = i.value.filter((s) => c.has(s[d.value])).map((s) => Object.assign({}, s))), i.value.forEach((s) => {
866
+ const P = s[d.value], x = c.has(P);
867
+ s.checked = x, x && C.set(P, s);
760
868
  });
761
869
  }
762
- R(), E(() => e.selections, (p) => {
763
- s.value = p, R();
870
+ M(), N(() => e.selections, (c) => {
871
+ o.value = c, M();
764
872
  });
765
- const I = H(() => b.value === "List"), S = H(() => b.value === "Tree");
766
- function V(p) {
767
- const r = q(s.value);
768
- s.value = p.map((o) => Object.assign({}, o)), l.emit("change", s.value, r);
873
+ const V = L(() => T.value === "List"), k = L(() => T.value === "Tree");
874
+ function D(c) {
875
+ const r = te(o.value);
876
+ o.value = c.map((a) => Object.assign({}, a)), t.emit("change", o.value, r);
769
877
  }
770
- function D(p) {
771
- l.emit("selectItem", p);
878
+ function O(c) {
879
+ t.emit("selectItem", c);
772
880
  }
773
- function O(p) {
774
- l.emit("unSelectItem", p);
881
+ function B(c) {
882
+ t.emit("unSelectItem", c);
775
883
  }
776
884
  function A() {
777
- return a(Z, {
885
+ return l(U, {
778
886
  class: "f-utils-fill",
779
887
  data: i.value,
780
888
  multiSelect: !0,
781
889
  itemClass: "f-transfer-list-item",
782
- textField: u.value,
890
+ textField: f.value,
783
891
  selection: {
784
892
  enableSelectRow: !0,
785
893
  multiSelect: !0,
@@ -791,18 +899,18 @@ const Z = /* @__PURE__ */ ee({
791
899
  draggable: !1,
792
900
  header: "Search",
793
901
  headerClass: "transfer-search-box",
794
- selectionValues: x.value,
795
- onSelectionUpdate: V
902
+ selectionValues: y.value,
903
+ onSelectionUpdate: D
796
904
  }, null);
797
905
  }
798
- function P() {
799
- return a(Ie, {
800
- ref: f,
906
+ function H() {
907
+ return l(Te, {
908
+ ref: m,
801
909
  data: i.value,
802
910
  columns: e.columns,
803
911
  virtualized: e.virtualized,
804
912
  rowOption: e.rowOption,
805
- textField: u.value,
913
+ textField: f.value,
806
914
  selection: {
807
915
  enableSelectRow: !0,
808
916
  multiSelect: !0,
@@ -811,99 +919,208 @@ const Z = /* @__PURE__ */ ee({
811
919
  showSelectAll: !1,
812
920
  showSelection: !0
813
921
  },
814
- selectionValues: x.value,
815
- onSelectionUpdate: V,
816
- onSelectItem: D,
817
- onUnSelectItem: O
922
+ selectionValues: y.value,
923
+ onSelectionUpdate: D,
924
+ onSelectItem: O,
925
+ onUnSelectItem: B
818
926
  }, null);
819
927
  }
820
- function m() {
821
- return a("div", {
928
+ function h() {
929
+ return l("div", {
822
930
  class: "f-utils-fill option-pane d-flex flex-column"
823
- }, [a("div", {
931
+ }, [l("div", {
824
932
  class: "f-utils-flex-column option-pane-content f-utils-fill"
825
- }, [a("div", {
933
+ }, [l("div", {
826
934
  class: "container columns-box d-flex f-utils-fill"
827
- }, [I.value && A(), S.value && P()])])]);
935
+ }, [V.value && A(), k.value && H()])])]);
828
936
  }
829
- function w(p) {
830
- const r = p[g.value];
937
+ function w(c) {
938
+ const r = c[d.value];
831
939
  if (r !== null || r !== void 0) {
832
- s.value = s.value.filter((n) => n[g.value] !== r);
833
- const o = h.get(r);
834
- o && (o.checked = !1, h.delete(r)), l.emit("change", s.value), l.emit("removeItem", p);
940
+ o.value = o.value.filter((s) => s[d.value] !== r);
941
+ const a = C.get(r);
942
+ a && (a.checked = !1, C.delete(r)), t.emit("change", o.value), t.emit("removeItem", c);
835
943
  }
836
944
  }
837
- E(s, (p) => {
838
- y.value.updateDataSource(q(p));
839
- const r = c == null ? void 0 : c[g.value], o = p.find((n) => r === n[g.value]);
840
- o ? y.value.activeRowById(o[g.value]) : (c = null, y.value.activeRowById(""));
945
+ N(o, (c) => {
946
+ S.value.updateDataSource(te(c));
947
+ const r = v == null ? void 0 : v[d.value], a = c.find((s) => r === s[d.value]);
948
+ a ? S.value.activeRowById(a[d.value]) : (v = null, S.value.activeRowById(""));
841
949
  });
842
- function v(p) {
950
+ function g(c) {
843
951
  const r = /* @__PURE__ */ new Map();
844
- s.value.reduce((o, n) => (o.set(n[g.value], n), o), r), s.value = p.map((o) => r.get(o[g.value])), l.emit("change", s.value);
952
+ o.value.reduce((a, s) => (a.set(s[d.value], s), a), r), o.value = c.map((a) => r.get(a[d.value])), t.emit("change", o.value);
845
953
  }
846
- function t(p) {
847
- c = p[0], l.emit("activeChange", p);
954
+ function n(c) {
955
+ v = c[0], t.emit("activeChange", c);
848
956
  }
849
- function F() {
850
- var p;
851
- return a(Z, {
852
- ref: y,
957
+ function p() {
958
+ var c;
959
+ return l(U, {
960
+ ref: S,
853
961
  columns: e.columns,
854
962
  style: "flex:1",
855
- data: s.value,
963
+ data: o.value,
856
964
  draggable: !0,
857
965
  view: "DraggableView",
858
966
  "keep-order": !0,
859
- textField: u.value,
967
+ textField: f.value,
860
968
  itemClass: e.selectedItemClass,
861
- onChange: v,
969
+ onChange: g,
862
970
  onRemoveItem: w,
863
- onActiveChange: t,
971
+ onActiveChange: n,
864
972
  checkBeforeRemoveItem: e.checkBeforeRemoveItem
865
973
  }, {
866
- itemContent: (p = l.slots) != null && p.text ? (r) => {
867
- var o;
868
- return ((o = l.slots) == null ? void 0 : o.text) && l.slots.text(r);
974
+ itemContent: (c = t.slots) != null && c.text ? (r) => {
975
+ var a;
976
+ return ((a = t.slots) == null ? void 0 : a.text) && t.slots.text(r);
869
977
  } : null
870
978
  });
871
979
  }
872
- function B() {
873
- return a("div", {
980
+ function I() {
981
+ return l("div", {
874
982
  class: "f-utils-fill selection-pane d-flex flex-column"
875
- }, [a("div", {
983
+ }, [l("div", {
876
984
  class: "f-utils-flex-column selection-pane-content f-utils-fill"
877
- }, [a("div", {
985
+ }, [l("div", {
878
986
  class: "selection-pane-title"
879
- }, [a("span", {
987
+ }, [l("span", {
880
988
  class: "selection-title"
881
- }, [W.getLocaleValue("transfer.selectedStart")]), a("span", {
989
+ }, [q.getLocaleValue("transfer.selectedStart")]), l("span", {
882
990
  class: "selection-count"
883
- }, [s.value && s.value.length]), a("span", {
991
+ }, [o.value && o.value.length]), l("span", {
884
992
  class: "selection-item-title"
885
- }, [W.getLocaleValue("transfer.selectedEnd")])]), a("div", {
993
+ }, [q.getLocaleValue("transfer.selectedEnd")])]), l("div", {
886
994
  class: "container columns-box f-utils-fill d-flex"
887
- }, [F()])])]);
995
+ }, [p()])])]);
888
996
  }
889
- const L = H(() => ({
997
+ const F = L(() => ({
890
998
  "f-transfer": !0,
891
999
  row: !0,
892
- "f-utils-fill": k.value
1000
+ "f-utils-fill": R.value
893
1001
  }));
894
- return we(() => {
895
- C.value && C.value.parentElement && getComputedStyle(C.value.parentElement).display === "flex" && (k.value = !0);
896
- }), () => a("div", {
897
- ref: C,
898
- class: L.value,
1002
+ return ae(() => {
1003
+ b.value && b.value.parentElement && getComputedStyle(b.value.parentElement).display === "flex" && (R.value = !0);
1004
+ }), () => l("div", {
1005
+ ref: b,
1006
+ class: F.value,
1007
+ style: "height:480px"
1008
+ }, [t.slots.children ? t.slots.children({
1009
+ selections: o.value
1010
+ }) : h(), I()]);
1011
+ }
1012
+ }), bt = /* @__PURE__ */ X({
1013
+ name: "FTransferDesign",
1014
+ props: J,
1015
+ emits: ["change"],
1016
+ setup(e, t) {
1017
+ const d = u(e.identifyField), T = u("已选:"), R = u("项数据"), i = u(e.displayType), f = u(!1), o = u(e.dataSource), y = u(e.selections || []), C = L(() => y.value.map((p) => p[d.value])), S = /* @__PURE__ */ new Map();
1018
+ function b() {
1019
+ const p = /* @__PURE__ */ new Map(), I = e.selectionValues || [];
1020
+ I.length && I.reduce((c, r) => (c.set(r, !0), c), p);
1021
+ const F = e.selections || [];
1022
+ F.length && (p.clear(), F.reduce((c, r) => (c.set(r[d.value], !0), c), p)), y.value.length || (y.value = o.value.filter((c) => p.has(c[d.value])).map((c) => Object.assign({}, c))), o.value.forEach((c) => {
1023
+ const r = c[d.value], a = p.has(r);
1024
+ c.checked = a, a && S.set(r, c);
1025
+ });
1026
+ }
1027
+ b();
1028
+ const m = L(() => i.value === "List"), v = L(() => i.value === "Tree");
1029
+ function M(p) {
1030
+ y.value = p.map((I) => Object.assign({}, I)), t.emit("change", y.value);
1031
+ }
1032
+ function V() {
1033
+ return l(U, {
1034
+ class: "f-utils-fill",
1035
+ data: o.value,
1036
+ "multi-select": !0,
1037
+ draggable: !1,
1038
+ header: "Search",
1039
+ headerClass: "transfer-search-box",
1040
+ "selection-values": C.value,
1041
+ onSelectionChange: M
1042
+ }, {
1043
+ default: () => [Z(" ")]
1044
+ });
1045
+ }
1046
+ function k() {
1047
+ return l(E, null, null);
1048
+ }
1049
+ function D() {
1050
+ return l("div", {
1051
+ class: "f-utils-fill option-pane d-flex flex-column"
1052
+ }, [l("div", {
1053
+ class: "f-utils-flex-column option-pane-content f-utils-fill"
1054
+ }, [l("div", {
1055
+ class: "container columns-box d-flex f-utils-fill"
1056
+ }, [m.value && V(), v.value && k()])])]);
1057
+ }
1058
+ function O(p) {
1059
+ const I = p[d.value];
1060
+ if (I !== null || I !== void 0) {
1061
+ y.value = y.value.filter((c) => c[d.value] !== I);
1062
+ const F = S.get(I);
1063
+ F && (F.checked = !1, S.delete(I)), t.emit("change", y.value);
1064
+ }
1065
+ }
1066
+ function B(p) {
1067
+ const I = /* @__PURE__ */ new Map();
1068
+ y.value.reduce((F, c) => (F.set(c[d.value], c), F), I), y.value = p.map((F) => I.get(F[d.value])), t.emit("change", y.value);
1069
+ }
1070
+ function A() {
1071
+ return l(U, {
1072
+ style: "flex:1",
1073
+ data: y.value,
1074
+ draggable: !0,
1075
+ view: "DraggableView",
1076
+ "keep-order": !0,
1077
+ onChange: B,
1078
+ onRemoveItem: O
1079
+ }, {
1080
+ default: () => [Z(" ")]
1081
+ });
1082
+ }
1083
+ function H() {
1084
+ return l("div", {
1085
+ class: "f-utils-fill selection-pane d-flex flex-column"
1086
+ }, [l("div", {
1087
+ class: "f-utils-flex-column selection-pane-content f-utils-fill"
1088
+ }, [l("div", {
1089
+ class: "selection-pane-title"
1090
+ }, [l("span", {
1091
+ class: "selection-title"
1092
+ }, [T.value]), l("span", {
1093
+ class: "selection-count"
1094
+ }, [y.value && y.value.length]), l("span", {
1095
+ class: "selection-item-title"
1096
+ }, [R.value])]), l("div", {
1097
+ class: "container columns-box f-utils-fill d-flex"
1098
+ }, [A()])])]);
1099
+ }
1100
+ const h = L(() => ({
1101
+ transfer: !0,
1102
+ row: !0,
1103
+ "f-utils-fill": f.value
1104
+ })), w = u(), g = Fe("design-item-context"), n = Ye(w, g);
1105
+ return ae(() => {
1106
+ w.value.componentInstance = n;
1107
+ }), t.expose(n.value), () => l("div", {
1108
+ ref: w,
1109
+ class: h.value,
899
1110
  style: "height:480px"
900
- }, [l.slots.children ? l.slots.children({
901
- selections: s.value
902
- }) : m(), B()]);
1111
+ }, [D(), H()]);
903
1112
  }
904
- }), mt = be(tt);
1113
+ });
1114
+ $.register = (e, t, d) => {
1115
+ e.transfer = $, t.transfer = se;
1116
+ };
1117
+ $.registerDesigner = (e, t, d) => {
1118
+ e.transfer = bt, t.transfer = se;
1119
+ };
1120
+ const Ht = Me($);
905
1121
  export {
906
- tt as FTransfer,
907
- mt as default,
908
- Ne as transferProps
1122
+ $ as FTransfer,
1123
+ Ht as default,
1124
+ se as propsResolver,
1125
+ J as transferProps
909
1126
  };