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

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