@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,11 @@
1
- import { useCommonUtils as At, getCustomClass as Ht, withInstall as zt } from "../common/index.esm.js";
2
- import { reactive as Je, watch as oe, createVNode as i, isVNode as et, Comment as Lt, Fragment as ze, createTextVNode as he, defineComponent as Ut, ref as B, computed as I, onMounted as Wt, nextTick as _t, onUnmounted as Kt, provide as Yt } from "vue";
3
- import { useResizeObserver as qt } from "@vueuse/core";
4
- import { CellMode as $t, useMobile as Jt, useIdentify as Qt, useGroupData as Xt, useFilter as Zt, useHierarchy as en, useLoading as tn, useDataView as nn, usePagination as ln, useSelection as an, useDataViewContainerStyle as on, useCommandColumn as un, useSettingColumn as sn, useColumn as rn, useSort as dn, useGroupColumn as cn, useRow as fn, useEdit as mn, useVisualDataBound as yn, useVisualDataCell as pn, useVisualDataRow as gn, useVisualGroupRow as vn, useVisualSummaryRow as Cn, useVisualData as hn, useCellContentStyle as Sn, useCellPosition as wn, useSidebar as bn, useVirtualScroll as Bn, useFitColumn as Fn, useFilterHistory as On, useColumnFilter as In, useDragColumn as Dn, getColumnHeader as Vn, getPagination as Gn, getSidebar as xn, getDisableMask as En, getSummary as Pn, getHorizontalScrollbar as Tn, getVerticalScrollbar as kn, getFilterPanel as Rn, getGroupPanel as Mn, useNavigation as jn, getEmpty as Nn, COMMAND_COLUMN_DATA_TYPE as Qe, SETTING_COLUMN_DATA_TYPE as Xe } from "../data-view/index.esm.js";
5
- import Ze from "../button/index.esm.js";
6
- import An from "../drawer/index.esm.js";
7
- import Hn, { FDynamicFormLabel as zn } from "../dynamic-form/index.esm.js";
8
- const Zn = {
1
+ import { useCommonUtils as Lt, getCustomClass as _t, withInstall as Ut } from "../common/index.esm.js";
2
+ import { reactive as Qe, watch as se, createVNode as i, Fragment as be, isVNode as tt, Comment as Wt, createTextVNode as we, defineComponent as Kt, ref as S, computed as B, onMounted as Yt, nextTick as qt, onUnmounted as $t, provide as Jt } from "vue";
3
+ import { useResizeObserver as Qt } from "@vueuse/core";
4
+ import { CellMode as Xt, useMobile as Zt, useIdentify as en, useGroupData as tn, useFilter as nn, useHierarchy as ln, useLoading as an, useDataView as on, usePagination as un, useSelection as rn, useDataViewContainerStyle as sn, useCommandColumn as dn, useSettingColumn as cn, useColumn as fn, useSort as mn, useGroupColumn as yn, useRow as pn, useEdit as gn, useVisualDataBound as vn, useVisualDataCell as Cn, useVisualDataRow as hn, useVisualGroupRow as Sn, useVisualSummaryRow as wn, useVisualData as bn, useCellContentStyle as Bn, useCellPosition as Fn, useSidebar as On, useVirtualScroll as In, useFitColumn as Vn, useFilterHistory as Gn, useColumnFilter as En, useDragColumn as xn, getColumnHeader as Dn, getPagination as Pn, getSidebar as Tn, getDisableMask as Rn, getSummary as kn, getHorizontalScrollbar as Mn, getVerticalScrollbar as jn, getFilterPanel as Nn, getGroupPanel as An, useNavigation as Hn, getEmpty as zn, COMMAND_COLUMN_DATA_TYPE as Xe, SETTING_COLUMN_DATA_TYPE as Ze } from "../data-view/index.esm.js";
5
+ import et from "../button/index.esm.js";
6
+ import Ln from "../drawer/index.esm.js";
7
+ import _n, { FDynamicFormLabel as Un } from "../dynamic-form/index.esm.js";
8
+ const nl = {
9
9
  /** 启用分页 */
10
10
  enable: { type: Boolean, default: !1 },
11
11
  /** 当前页码 */
@@ -28,7 +28,7 @@ const Zn = {
28
28
  total: { type: Number, default: 0 },
29
29
  /** 禁用分页 */
30
30
  disabled: { type: Boolean, default: !1 }
31
- }, el = {
31
+ }, ll = {
32
32
  /** 启用排序 */
33
33
  enable: { type: Boolean, default: !1 },
34
34
  /** 排序字段集合 */
@@ -37,7 +37,7 @@ const Zn = {
37
37
  mode: { type: String, default: "client" },
38
38
  /** 多列排序 */
39
39
  multiSort: { type: Boolean, default: !1 }
40
- }, tl = {
40
+ }, al = {
41
41
  /** 自定义分组合计内容 */
42
42
  customGroupRow: { type: Function, default: () => {
43
43
  } },
@@ -61,7 +61,7 @@ const Zn = {
61
61
  showSummary: { type: Boolean, default: !1 },
62
62
  /** 显示合计行位置; */
63
63
  summaryPosition: { type: String, default: "separate" }
64
- }, nl = {
64
+ }, ol = {
65
65
  /** 启用筛选 */
66
66
  enable: { type: Boolean, default: !1 },
67
67
  /** DataGrid筛选风格 */
@@ -70,10 +70,10 @@ const Zn = {
70
70
  mode: { type: String, default: "server" },
71
71
  /** 显示过滤条件工具条 */
72
72
  showSummary: { type: Boolean, default: !0 }
73
- }, ll = {
73
+ }, il = {
74
74
  /** 允许折行显示列标题 */
75
75
  wrapHeadings: { type: Boolean, default: !1 }
76
- }, al = {
76
+ }, ul = {
77
77
  /** 显示行号 */
78
78
  enable: { type: Boolean, default: !1 },
79
79
  /** 行号列表头标题 */
@@ -82,7 +82,7 @@ const Zn = {
82
82
  width: { type: Number, default: 36 },
83
83
  /** 是否展示省略号 */
84
84
  showEllipsis: { type: Boolean, default: !0 }
85
- }, ol = {
85
+ }, rl = {
86
86
  /** 自定义行样式 */
87
87
  customRowStyle: { type: Function, default: () => {
88
88
  } },
@@ -101,7 +101,7 @@ const Zn = {
101
101
  showHovering: { type: Boolean, default: !0 },
102
102
  /** 禁止数据折行 */
103
103
  wrapContent: { type: Boolean, default: !1 }
104
- }, il = {
104
+ }, sl = {
105
105
  /** 显示合计信息 */
106
106
  enable: { type: Boolean, default: !1 },
107
107
  /** 合计行自定义样式,对启用合计行模板无效 */
@@ -113,7 +113,7 @@ const Zn = {
113
113
  mode: { type: String, default: "client" },
114
114
  /** 合计行显示位置, top: 顶部 bottom: 底部, both: 顶部与底部同时显示 */
115
115
  position: { type: String, default: "bottom" }
116
- }, ul = {
116
+ }, dl = {
117
117
  /** 自动列宽。设为true后,所有列将填满表格并不会出现横向滚动条。 */
118
118
  fitColumns: { type: Boolean, default: !1 },
119
119
  /** 自动适配列宽度模式 */
@@ -125,7 +125,7 @@ const Zn = {
125
125
  resizeColumn: { type: Boolean, default: !0 },
126
126
  /** 双击表头列自适应内容宽度 */
127
127
  resizeColumnOnDoubleClick: { type: Boolean, default: !0 }
128
- }, sl = {
128
+ }, cl = {
129
129
  /** 启用多选且显示checkbox, 选中行后勾选前面的checkbox */
130
130
  checkOnSelect: { type: Boolean, default: !1 },
131
131
  /** 当数据源为空时,清空已选记录 */
@@ -151,17 +151,17 @@ const Zn = {
151
151
  showSelectAll: { type: Boolean, default: !1 },
152
152
  /** 显示已选数据 */
153
153
  showSelection: { type: Boolean, default: !1 }
154
- }, rl = {
154
+ }, fl = {
155
155
  /** 编辑时选中文本 */
156
156
  selectOnEditing: { type: Boolean, default: !1 },
157
157
  /** 编辑模式; row:整行编辑,cell: 单元格编辑 */
158
158
  editMode: { type: String, default: "cell" }
159
- }, dl = {
159
+ }, ml = {
160
160
  /** show loading */
161
161
  show: { type: Boolean, default: !1 },
162
162
  /** message on display when loading */
163
163
  message: { type: String, default: "加载中..." }
164
- }, Ln = {
164
+ }, Wn = {
165
165
  /** 自定义样式 */
166
166
  customClass: { type: String, default: "" },
167
167
  /** 允许在最后一个单元回车新增一行 */
@@ -290,529 +290,554 @@ const Zn = {
290
290
  width: { type: Number, default: -1 },
291
291
  /** 空数据模板 */
292
292
  emptyTemplate: { type: Object },
293
- beforeUpdate: { type: Function }
293
+ beforeUpdate: { type: Function },
294
+ /** 绑定动态字段的解析器 */
295
+ fieldsResolver: { type: Function, default: (n, p) => n },
296
+ /** 绑定动态字段的值*/
297
+ displayType: { type: String, default: "List" },
298
+ fieldsCallback: { type: Function, default: () => {
299
+ } }
294
300
  };
295
- function Un(n, p, Se, j, ie, P, w, h, ue, r, T, se, Y, c, F, we) {
301
+ function Kn(n, p, Be, H, G, de, D, w, h, ce, c, P, fe, Q, d, T) {
296
302
  const {
297
- isNull: q,
298
- isUndefined: N
299
- } = At(), {
300
- totalItems: re,
301
- rawView: be
302
- } = we, {
303
- calculateCellPositionInRow: de,
304
- cellKey: u,
305
- cellPosition: A,
306
- rowKey: G,
307
- rowPosition: y,
308
- rowSpanCellPosition: Be,
309
- groupCellPosition: H,
310
- summaryCellPosition: ce
311
- } = w, {
312
- cellContentClass: Fe,
313
- cellContentPosition: Oe,
314
- cellContentClassWithEllipsis: D
303
+ isNull: Fe,
304
+ isUndefined: X
305
+ } = Lt(), {
306
+ totalItems: z,
307
+ rawView: me
308
+ } = T, {
309
+ calculateCellPositionInRow: ye,
310
+ cellKey: R,
311
+ cellPosition: u,
312
+ rowKey: k,
313
+ rowPosition: E,
314
+ rowSpanCellPosition: y,
315
+ groupCellPosition: Oe,
316
+ summaryCellPosition: L
317
+ } = D, {
318
+ cellContentClass: pe,
319
+ cellContentPosition: Ie,
320
+ cellContentClassWithEllipsis: _
321
+ } = de, {
322
+ collpaseGroupIconClass: U
323
+ } = ce, {
324
+ gridCellClass: Ve,
325
+ gridRowClass: Z,
326
+ onClickRow: W,
327
+ onMouseoverRow: K,
328
+ onMouseoutRow: Le
315
329
  } = P, {
316
- collpaseGroupIconClass: Ie
317
- } = r, {
318
- gridCellClass: De,
319
- gridRowClass: z,
320
- onClickRow: L,
321
- onMouseoverRow: fe,
322
- onMouseoutRow: O
323
- } = se, {
324
- onClickCell: U
325
- } = ue, {
326
- toggleGroupRow: me
327
- } = Y, {
328
- columnContext: S,
329
- hasLeftFixedColumn: Ve,
330
- hasRightFixedColumn: $
330
+ onClickCell: F
331
331
  } = h, {
332
- navigateOnKeyUp: x,
333
- navigateOnKeyDown: g
334
- } = T, J = (e) => (e || []).some((o) => et(o) ? !(o.type === Lt || o.type === ze && !J(o.children)) : !0) ? e : null, k = (e) => {
335
- var o, s, l;
336
- return ((s = (o = e.column) == null ? void 0 : o.editor) == null ? void 0 : s.type) === "switch" || ((l = e.column) == null ? void 0 : l.dataType) === "boolean" ? {
332
+ toggleGroupRow: Y
333
+ } = fe, {
334
+ columnContext: O,
335
+ hasLeftFixedColumn: M,
336
+ hasRightFixedColumn: Ge
337
+ } = w, {
338
+ navigateOnKeyUp: ee,
339
+ navigateOnKeyDown: j
340
+ } = c, g = (e) => (e || []).some((o) => tt(o) ? !(o.type === Wt || o.type === be && !g(o.children)) : !0) ? e : null, te = (e) => {
341
+ var o, r, l;
342
+ return ((r = (o = e.column) == null ? void 0 : o.editor) == null ? void 0 : r.type) === "switch" || ((l = e.column) == null ? void 0 : l.dataType) === "boolean" ? {
337
343
  display: "flex",
338
344
  flexGrow: "1",
339
345
  overflow: "hidden"
340
346
  } : {
341
347
  flexGrow: "1"
342
348
  };
343
- }, R = Je({
349
+ }, I = Qe({
344
350
  "fv-grid-content-left-fixed": !0
345
- }), Q = Je({
351
+ }), N = Qe({
346
352
  "fv-grid-content-right-fixed": !0
347
353
  });
348
- oe([re, be], (e) => {
349
- !e[0] && !e[1].length ? (R["fv-grid-content-left-fixed"] = !1, Q["fv-grid-content-right-fixed"] = !1) : (R["fv-grid-content-left-fixed"] = !0, Q["fv-grid-content-right-fixed"] = !0);
354
+ se([z, me], (e) => {
355
+ !e[0] && !e[1].length ? (I["fv-grid-content-left-fixed"] = !1, N["fv-grid-content-right-fixed"] = !1) : (I["fv-grid-content-left-fixed"] = !0, N["fv-grid-content-right-fixed"] = !0);
350
356
  });
351
357
  const {
352
- gridDataStyle: Ge,
353
- gridMergedDataStyle: X,
354
- leftFixedGridDataStyle: ye,
355
- leftFixedGridMergedDataStyle: xe,
356
- rightFixedGridDataStyle: Ee,
357
- rightFixedGridMergedDataStyle: Z
358
- } = c;
359
- function Pe(e, o) {
360
- o.collapse = !o.collapse, F.value = me(o.collapse ? "collapse" : "expand", o, F.value);
358
+ gridDataStyle: Ee,
359
+ gridMergedDataStyle: xe,
360
+ leftFixedGridDataStyle: ne,
361
+ leftFixedGridMergedDataStyle: ge,
362
+ rightFixedGridDataStyle: De,
363
+ rightFixedGridMergedDataStyle: Pe
364
+ } = Q;
365
+ function le(e, o) {
366
+ o.collapse = !o.collapse, d.value = Y(o.collapse ? "collapse" : "expand", o, d.value);
361
367
  }
362
368
  function Te(e, o) {
363
- const s = [];
369
+ const r = [];
364
370
  if (e.groupField && o[e.groupField]) {
365
371
  for (let f = 0; f <= e.layer; f++)
366
- s.push(i("div", {
372
+ r.push(i("div", {
367
373
  class: "fv-grid-group-row-icon",
368
- onClick: (K) => Pe(K, e)
374
+ onClick: (J) => le(J, e)
369
375
  }, [i("span", {
370
- class: Ie(e)
376
+ class: U(e)
371
377
  }, null)]));
372
378
  const l = e.data[e.groupField];
373
- s.push(i("div", {
379
+ r.push(i("div", {
374
380
  ref: l.setRef,
375
- key: u(e, e.layer + 1),
381
+ key: R(e, e.layer + 1),
376
382
  class: "fv-grid-cell",
377
- style: H(l, o, e.layer)
383
+ style: Oe(l, o, e.layer)
378
384
  }, [l.data])), Object.values(e.data).filter((f) => f.field !== e.groupField && f.colSpan !== 0).forEach((f) => {
379
- s.push(i("div", {
385
+ r.push(i("div", {
380
386
  ref: f.setRef,
381
- key: u(e, f.index),
387
+ key: R(e, f.index),
382
388
  class: "fv-grid-cell",
383
- style: A(e, f, o)
389
+ style: u(e, f, o)
384
390
  }, [f.data]));
385
391
  });
386
392
  }
387
- return s;
393
+ return r;
388
394
  }
389
- function m(e, o, s) {
395
+ function Re(e, o, r) {
390
396
  return e.layer > -1 && i("div", {
391
397
  ref: e.setRef,
392
- key: G(e),
393
- class: z(e, s),
394
- style: y(e),
395
- onClick: (l) => L(l, e),
396
- onMouseover: (l) => fe(l, e)
398
+ key: k(e),
399
+ class: Z(e, r),
400
+ style: E(e),
401
+ onClick: (l) => W(l, e),
402
+ onMouseover: (l) => K(l, e)
397
403
  }, [Te(e, o)]);
398
404
  }
399
- function ke(e, o) {
400
- const s = [];
405
+ function m(e, o) {
406
+ const r = [];
401
407
  if (e.groupField && o[e.groupField]) {
402
408
  const l = e.data[e.groupField];
403
- s.push(i("div", {
409
+ r.push(i("div", {
404
410
  ref: l.setRef,
405
- key: u(e, e.layer + 1),
411
+ key: R(e, e.layer + 1),
406
412
  class: "fv-grid-cell",
407
- style: ce(l, o, e.layer)
413
+ style: L(l, o, e.layer)
408
414
  }, [l.data]));
409
415
  }
410
- return s;
416
+ return r;
411
417
  }
412
- function pe(e, o, s) {
418
+ function ke(e, o, r) {
413
419
  return e.layer > -1 && i("div", {
414
420
  ref: e.setRef,
415
- key: G(e),
416
- class: z(e, s),
417
- style: y(e),
418
- onClick: (l) => L(l, e),
419
- onMouseover: (l) => fe(l, e)
420
- }, [ke(e, o)]);
421
+ key: k(e),
422
+ class: Z(e, r),
423
+ style: E(e),
424
+ onClick: (l) => W(l, e),
425
+ onMouseover: (l) => K(l, e)
426
+ }, [m(e, o)]);
421
427
  }
422
- function ge(e, o) {
423
- var s, l, f;
424
- return e.showTips && typeof ((s = e.column) == null ? void 0 : s.formatter) != "function" && ((l = e.column) == null ? void 0 : l.dataType) !== "commands" && ((f = e.column) == null ? void 0 : f.dataType) !== "setting" ? i("div", {
425
- class: D(e),
428
+ function ve(e, o) {
429
+ var r, l, f;
430
+ return e.showTips && typeof ((r = e.column) == null ? void 0 : r.formatter) != "function" && ((l = e.column) == null ? void 0 : l.dataType) !== "commands" && ((f = e.column) == null ? void 0 : f.dataType) !== "setting" ? i("div", {
431
+ class: _(e),
426
432
  title: e.formatter(e, o)
427
433
  }, [e.formatter(e, o)]) : i("div", {
428
- class: D(e)
434
+ class: _(e)
429
435
  }, [e.formatter(e, o)]);
430
436
  }
431
- function W() {
432
- return i("div", null, [he("******")]);
437
+ function Ce() {
438
+ return i("div", null, [we("******")]);
433
439
  }
434
- function E(e) {
440
+ function q(e) {
435
441
  var l, f;
436
- const o = !q(e.data) && !N(e.data) ? e.data.toString() : e.data;
437
- return ((f = (l = e.column) == null ? void 0 : l.editor) == null ? void 0 : f.showType) === "password" ? W() : e.showTips ? i("div", {
438
- class: D(e),
442
+ const o = !Fe(e.data) && !X(e.data) ? e.data.toString() : e.data;
443
+ return ((f = (l = e.column) == null ? void 0 : l.editor) == null ? void 0 : f.showType) === "password" ? Ce() : e.showTips ? i("div", {
444
+ class: _(e),
439
445
  title: o
440
446
  }, [o]) : i("div", {
441
- class: D(e)
447
+ class: _(e)
442
448
  }, [o]);
443
449
  }
444
- function Re(e, o) {
445
- return e.mode === $t.editing ? i("div", {
446
- style: k(e)
447
- }, [e.getEditor(e)]) : e.column.columnTemplate ? e.column.columnTemplate(e, o) : e.formatter ? ge(e, o) : E(e);
450
+ function x(e, o) {
451
+ return e.mode === Xt.editing ? i("div", {
452
+ style: te(e)
453
+ }, [e.getEditor(e)]) : e.column.columnTemplate ? e.column.columnTemplate(e, o) : e.formatter ? ve(e, o) : q(e);
454
+ }
455
+ function Me(e) {
456
+ return i(be, null, null);
448
457
  }
449
- function ee(e, o, s) {
458
+ function ae(e, o, r) {
450
459
  return i("div", {
451
460
  ref: e.setRef,
452
- key: G(e),
453
- class: z(e, s),
454
- style: y(e),
455
- onClick: (l) => L(l, e),
456
- onMouseover: (l) => fe(l, e),
457
- onMouseout: (l) => O(l, e)
458
- }, [Object.values(e.data).filter((l) => o[l.field] && l.rowSpan === 1).map((l) => {
459
- var K, Ce;
460
- const f = p.slots.cellTemplate && J(p.slots.cellTemplate({
461
+ key: k(e),
462
+ class: Z(e, r),
463
+ style: E(e),
464
+ onClick: (l) => W(l, e),
465
+ onMouseover: (l) => K(l, e),
466
+ onMouseout: (l) => Le(l, e)
467
+ }, [n.displayType === "Card" ? Me() : Object.values(e.data).filter((l) => o[l.field] && l.rowSpan === 1).map((l) => {
468
+ var J, Se;
469
+ const f = p.slots.cellTemplate && g(p.slots.cellTemplate({
461
470
  cell: l,
462
471
  row: e
463
472
  }));
464
473
  return i("div", {
465
474
  ref: l.setRef,
466
- key: u(e, l.index),
467
- class: De(l, e),
468
- style: A(e, l, o),
469
- onClick: (le) => U(le, l, e, l.column),
470
- onKeydown: (le) => x(le, l)
475
+ key: R(e, l.index),
476
+ class: Ve(l, e),
477
+ style: u(e, l, o),
478
+ onClick: (ue) => {
479
+ F(ue, l, e, l.column);
480
+ },
481
+ onKeydown: (ue) => ee(ue, l)
471
482
  }, [i("div", {
472
- class: Fe(l),
473
- style: Oe(l)
474
- }, [f ? (Ce = (K = p.slots).cellTemplate) == null ? void 0 : Ce.call(K, {
483
+ class: pe(l),
484
+ style: Ie(l)
485
+ }, [f ? (Se = (J = p.slots).cellTemplate) == null ? void 0 : Se.call(J, {
475
486
  cell: l,
476
487
  row: e
477
- }) : Re(l, e)])]);
488
+ }) : x(l, e)])]);
478
489
  })]);
479
490
  }
480
- const te = [ee, m, pe];
481
- function _(e, o) {
482
- const s = de(e);
483
- return F.value.map((l, f) => te[l.type](l, s, f));
491
+ const oe = [ae, Re, ke];
492
+ function $(e, o) {
493
+ const r = ye(e);
494
+ return d.value.map((l, f) => oe[l.type](l, r, f));
484
495
  }
485
- function ne(e) {
486
- const o = de(e);
487
- return F.value.map((s) => Object.values(s.data).filter((l) => o[l.field] && l.rowSpan > 1).map((l) => i("div", {
488
- key: u(s, l.index),
496
+ function ie(e) {
497
+ const o = ye(e);
498
+ return d.value.map((r) => Object.values(r.data).filter((l) => o[l.field] && l.rowSpan > 1).map((l) => i("div", {
499
+ key: R(r, l.index),
489
500
  class: "fv-grid-cell fv-grid-merged-cell",
490
- style: Be(s, l, o)
501
+ style: y(r, l, o)
491
502
  }, [l.data])));
492
503
  }
493
- function ve() {
504
+ function he() {
494
505
  return i("div", {
495
- ref: j,
496
- class: R
506
+ ref: H,
507
+ class: I
497
508
  }, [i("div", {
498
509
  class: "fv-grid-data",
499
- style: ye.value
500
- }, [_(S.value.leftColumns.filter((e) => e.visible))]), i("div", {
510
+ style: ne.value
511
+ }, [$(O.value.leftColumns.filter((e) => e.visible))]), i("div", {
501
512
  class: "fv-grid-merge-date",
502
- style: xe.value
503
- }, [ne(S.value.leftColumns.filter((e) => e.visible))])]);
513
+ style: ge.value
514
+ }, [ie(O.value.leftColumns.filter((e) => e.visible))])]);
504
515
  }
505
- function Me() {
516
+ function je() {
506
517
  return i("div", {
507
- ref: Se,
518
+ ref: Be,
508
519
  class: "fv-grid-content-primary"
509
520
  }, [i("div", {
510
521
  class: "fv-grid-data",
511
- style: Ge.value
512
- }, [_(S.value.primaryColumns.filter((e) => e.visible))]), i("div", {
522
+ style: Ee.value
523
+ }, [$(O.value.primaryColumns.filter((e) => e.visible))]), i("div", {
513
524
  class: "fv-grid-merge-date",
514
- style: X.value
515
- }, [ne(S.value.primaryColumns.filter((e) => e.visible))])]);
525
+ style: xe.value
526
+ }, [ie(O.value.primaryColumns.filter((e) => e.visible))])]);
516
527
  }
517
- function je() {
528
+ function Ne() {
518
529
  return i("div", {
519
- ref: ie,
520
- class: Q
530
+ ref: G,
531
+ class: N
521
532
  }, [i("div", {
522
533
  class: "fv-grid-data",
523
- style: Ee.value
524
- }, [_(S.value.rightColumns.filter((e) => e.visible))]), i("div", {
534
+ style: De.value
535
+ }, [$(O.value.rightColumns.filter((e) => e.visible))]), i("div", {
525
536
  class: "fv-grid-merge-date",
526
- style: Z.value
527
- }, [ne(S.value.rightColumns.filter((e) => e.visible))])]);
537
+ style: Pe.value
538
+ }, [ie(O.value.rightColumns.filter((e) => e.visible))])]);
528
539
  }
529
- function Ne() {
540
+ function Ae() {
530
541
  const e = [];
531
- return Ve.value && e.push(ve()), e.push(Me()), $.value && e.push(je()), e;
542
+ return M.value && e.push(he()), e.push(je()), Ge.value && e.push(Ne()), e;
532
543
  }
533
544
  return {
534
- renderDataArea: Ne
545
+ renderDataArea: Ae
535
546
  };
536
547
  }
537
- function Wn(n) {
538
- return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !et(n);
548
+ function Yn(n) {
549
+ return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !tt(n);
539
550
  }
540
- const _n = /* @__PURE__ */ Ut({
551
+ const qn = /* @__PURE__ */ Kt({
541
552
  name: "FDataGrid",
542
- props: Ln,
543
- emits: ["changed", "clickRow", "doubleClickRow", "selectionChange", "unSelectItem", "selectItem", "enterUpInLastCell", "selectAll", "unSelectAll", "pageIndexChanged", "pageSizeChanged", "beginEditCell", "endEditCell", "filterChanged", "sortChanged", "selectionUpdate", "endEditRow"],
553
+ props: Wn,
554
+ emits: ["changed", "clickRow", "doubleClickRow", "selectionChange", "unSelectItem", "selectItem", "enterUpInLastCell", "selectAll", "unSelectAll", "pageIndexChanged", "pageSizeChanged", "beginEditCell", "endEditCell", "filterChanged", "sortChanged", "selectionUpdate", "endEditRow", "fieldsEvent"],
544
555
  setup(n, p) {
545
- var _e, Ke;
556
+ var Ke, Ye;
546
557
  const {
547
- isMobilePhone: Se
548
- } = Jt();
549
- B();
550
- const j = 0, ie = ((_e = n.rowOption) == null ? void 0 : _e.height) || 28, P = B(20), w = B(n.columns), h = Qt(n), ue = B(), r = B(), T = B(), se = B(), Y = B(), c = B([]), F = B(!1), we = B(((Ke = n.rowOption) == null ? void 0 : Ke.wrapContent) || !1), q = Xt(n, h), N = Zt(n, p), re = en(n), {
551
- showLoading: be,
552
- renderLoading: de
553
- } = tn(n, ue), u = nn(n, /* @__PURE__ */ new Map(), N, re, h), A = ln(n, u), {
554
- shouldRenderPagination: G
555
- } = A, y = an(n, u, h, c, p), {
556
- showSelectAll: Be,
557
- showSelection: H,
558
- selectedValues: ce,
559
- updateSelectAllStatus: Fe
560
- } = y, Oe = I(() => n.disabled), D = I(() => n.virtualized ? Math.min(u.dataView.value.length, P.value) : u.dataView.value.length);
561
- I(() => n.loadingConfig.message);
558
+ isMobilePhone: Be
559
+ } = Zt();
560
+ S();
561
+ const H = 0, G = S(((Ke = n.rowOption) == null ? void 0 : Ke.height) || 28), de = B(() => n.displayType === "Card"), D = S(20), w = S(n.columns), h = en(n), ce = S(), c = S(), P = S(), fe = S(), Q = S(), d = S([]), T = S(!1), Fe = S(((Ye = n.rowOption) == null ? void 0 : Ye.wrapContent) || !1), X = tn(n, h), z = nn(n, p), me = ln(n), {
562
+ showLoading: ye,
563
+ renderLoading: R
564
+ } = an(n, ce), u = on(n, /* @__PURE__ */ new Map(), z, me, h), k = un(n, u), {
565
+ shouldRenderPagination: E
566
+ } = k, y = rn(n, u, h, d, p), {
567
+ showSelectAll: Oe,
568
+ showSelection: L,
569
+ selectedValues: pe,
570
+ updateSelectAllStatus: Ie
571
+ } = y, _ = B(() => n.disabled), U = B(() => n.virtualized ? Math.min(u.dataView.value.length, D.value) : u.dataView.value.length);
572
+ B(() => n.loadingConfig.message);
562
573
  const {
563
- containerStyleObject: Ie
564
- } = on(n), De = un(n), {
565
- applyCommands: z
566
- } = De;
567
- z(w);
574
+ containerStyleObject: Ve
575
+ } = sn(n), Z = dn(n), {
576
+ applyCommands: W
577
+ } = Z;
578
+ W(w);
568
579
  const {
569
- applyColumnSetting: L,
570
- removeColumnSetting: fe
571
- } = sn(n);
572
- n.showSetting && L(w);
573
- const O = rn(n, p), U = dn(n), {
574
- applyColumnSorter: me,
575
- columnContext: S,
576
- updateColumnRenderContext: Ve
577
- } = O;
578
- me(u, U);
579
- const $ = cn(n, S), x = fn(n, p, y, h), g = mn(n, p, h, x, c), J = yn(n), k = pn(n, g, J), R = gn(n, u, g, re, h, J, k), Q = vn(n, h, k, R), Ge = Cn(n, h, k, R), X = hn(n, w, u, D, j, R, Q, Ge), {
580
- getVisualData: ye
581
- } = X, xe = Sn(S), Ee = wn(n, S), Z = bn(n, y), {
582
- sidebarWidth: Pe,
583
- showSidebarCheckBox: Te
584
- } = Z, m = Bn(n, u, c, S, X, D, j, Pe, g), {
580
+ applyColumnSetting: K,
581
+ removeColumnSetting: Le
582
+ } = cn(n);
583
+ n.showSetting && K(w);
584
+ const F = fn(n, p), Y = mn(n), {
585
+ applyColumnSorter: O,
586
+ columnContext: M,
587
+ updateColumnRenderContext: Ge
588
+ } = F;
589
+ O(u, Y);
590
+ const ee = yn(n, M), j = pn(n, p, y, h), g = gn(n, p, h, j, d), te = vn(n, u, G), I = Cn(n, g, te), N = hn(n, u, g, me, h, te, I, G), Ee = Sn(n, h, I, N), xe = wn(n, h, I, N), ne = bn(n, w, u, U, H, N, Ee, xe), {
591
+ getVisualData: ge
592
+ } = ne, De = Bn(M), Pe = Fn(n, M, G, de), le = On(n, y), {
593
+ sidebarWidth: Te,
594
+ showSidebarCheckBox: Re
595
+ } = le, m = In(n, u, d, M, ne, U, H, Te, G, de, g), {
585
596
  onWheel: ke,
586
- dataGridWidth: pe,
587
- viewPortHeight: ge,
588
- viewPortWidth: W,
589
- resetScroll: E,
590
- updateVisibleRowsOnLatestVisibleScope: Re
591
- } = m, ee = Fn(n, S, r, W, $), {
592
- calculateColumnsSize: te
593
- } = ee, _ = On(), ne = In(r, Y, u, _, m), ve = Dn(n, p, O, u, $, q, m), Me = I(() => {
597
+ dataGridWidth: ve,
598
+ viewPortHeight: Ce,
599
+ viewPortWidth: q,
600
+ resetScroll: x,
601
+ updateVisibleRowsOnLatestVisibleScope: Me
602
+ } = m, ae = Vn(n, M, c, q, ee), {
603
+ calculateColumnsSize: oe
604
+ } = ae, $ = Gn(), ie = En(c, Q, u, $, m), he = xn(n, p, F, u, ee, X, m), je = B(() => {
594
605
  const t = {
595
606
  "fv-grid": !0,
596
607
  "fv-grid-bordered": n.showBorder,
597
608
  "fv-grid-horizontal-bordered": n.showHorizontalLines,
598
609
  "fv-datagrid-strip": n.showStripe
599
610
  };
600
- return Ht(t, n.customClass);
601
- }), je = I(() => ({
611
+ return _t(t, n.customClass);
612
+ }), Ne = B(() => ({
602
613
  "fv-grid-content": !0,
603
- "fv-grid-content-hover": F.value,
604
- "fv-grid-wrap-content": we.value
605
- })), Ne = I(() => {
614
+ "fv-grid-content-hover": T.value,
615
+ "fv-grid-wrap-content": Fe.value
616
+ })), Ae = B(() => {
606
617
  const t = {};
607
618
  return m.shouldShowHorizontalScrollbar.value && (t.paddingBottom = "10px"), m.shouldShowVirticalScrollbar.value && (t.paddingRight = "10px"), t;
608
619
  }), {
609
620
  renderGridHeader: e,
610
621
  renderGridColumnResizeOverlay: o,
611
- shouldShowHeader: s
612
- } = Vn(n, p, r, se, Y, O, u, ve, ne, N, _, ee, $, y, Z, U, m, W, c), {
622
+ shouldShowHeader: r
623
+ } = Dn(n, p, c, fe, Q, F, u, he, ie, z, $, ae, ee, y, le, Y, m, q, d), {
613
624
  renderDataGridPagination: l
614
- } = Gn(n, p, u, m, A, y), {
625
+ } = Pn(n, p, u, m, k, y), {
615
626
  renderDataGridSidebar: f
616
- } = xn(n, x, y, Z, m), {
617
- renderDisableMask: K
618
- } = En(), {
619
- renderDataGridSummary: Ce
620
- } = Pn(n, u, O), {
621
- renderHorizontalScrollbar: le
622
- } = Tn(n, r, m), {
623
- renderVerticalScrollbar: tt
624
- } = kn(n, r, m), {
625
- renderFilterPanel: nt
626
- } = Rn(n, O, u, N, m), {
627
- renderGroupPanel: lt
628
- } = Mn(n, u, ve, q, m);
629
- function at() {
630
- var a, d;
631
- const t = Math.ceil(r.value.clientHeight / ie);
632
- t > P.value && (P.value = t, Re()), ge.value = ((a = T.value) == null ? void 0 : a.clientHeight) || 0, pe.value = ((d = r.value) == null ? void 0 : d.clientWidth) || 0, te();
633
- }
634
- Wt(() => {
635
- r.value && (P.value = Math.max(Math.ceil(r.value.clientHeight / ie), P.value), c.value = ye(0, D.value + j - 1), qt(r.value, at), te(), _t(() => {
636
- r.value && (pe.value = r.value.clientWidth), T.value && (W.value = T.value.clientWidth, ge.value = T.value.clientHeight);
637
- })), be.value && de();
638
- }), Kt(() => {
639
- }), oe(W, () => {
640
- });
627
+ } = Tn(n, j, y, le, m), {
628
+ renderDisableMask: J
629
+ } = Rn(), {
630
+ renderDataGridSummary: Se
631
+ } = kn(n, u, F), {
632
+ renderHorizontalScrollbar: ue
633
+ } = Mn(n, c, m), {
634
+ renderVerticalScrollbar: nt
635
+ } = jn(n, c, m), {
636
+ renderFilterPanel: lt
637
+ } = Nn(n, F, u, z, m), {
638
+ renderGroupPanel: at
639
+ } = An(n, u, he, X, m);
641
640
  function ot() {
642
- u.insertNewDataItem(), E();
643
- }
641
+ var a, s;
642
+ const t = Math.ceil(c.value.clientHeight / G.value);
643
+ t > D.value && (D.value = t, Me()), Ce.value = ((a = P.value) == null ? void 0 : a.clientHeight) || 0, ve.value = ((s = c.value) == null ? void 0 : s.clientWidth) || 0, oe();
644
+ }
645
+ Yt(() => {
646
+ c.value && (D.value = Math.max(Math.ceil(c.value.clientHeight / G.value), D.value), d.value = ge(0, U.value + H - 1), Qt(c.value, ot), oe(), qt(() => {
647
+ var t;
648
+ c.value && (ve.value = c.value.clientWidth), P.value && (q.value = P.value.clientWidth, Ce.value = P.value.clientHeight), (t = n.rowOption) != null && t.wrapContent && d.value.forEach((a) => {
649
+ var s;
650
+ a.height = ((s = a.ref) == null ? void 0 : s.getBoundingClientRect().height) || 0, a.raw.__fv_data_height__ = a.height, te.updateRowPosition(a, a.raw);
651
+ });
652
+ })), ye.value && R();
653
+ }), $t(() => {
654
+ }), se(q, () => {
655
+ });
644
656
  function it() {
645
- u.insertNewDataItem(c.value.length), E();
657
+ const t = u.insertNewDataItem();
658
+ return x(), t;
646
659
  }
647
- function ut(t) {
660
+ function ut() {
661
+ const t = u.insertNewDataItem(d.value.length);
662
+ return x(), t;
663
+ }
664
+ function rt(t) {
648
665
  g.onEditingRow(t);
649
666
  }
650
667
  function st(t) {
651
- u.removeDataItem(t), E();
652
- }
653
- function rt(t) {
654
- u.removeDataItemById(t), E();
668
+ u.removeDataItem(t), x();
655
669
  }
656
670
  function dt(t) {
657
- g.acceptEditingRow(t);
671
+ u.removeDataItemById(t), x();
658
672
  }
659
673
  function ct(t) {
660
- g.cancelEditingRow(t);
674
+ g.acceptEditingRow(t);
661
675
  }
662
676
  function ft(t) {
663
- c.value.forEach((a, d) => {
664
- const v = u.visibleDataItems.value.findIndex((C) => C === a.raw), b = c.value[d - 1];
677
+ g.cancelEditingRow(t);
678
+ }
679
+ function mt(t) {
680
+ d.value.forEach((a, s) => {
681
+ const v = u.visibleDataItems.value.findIndex((C) => C === a.raw), b = d.value[s - 1];
665
682
  t.forEach((C) => {
666
- a.data[C.field] ? k.updateCellByColumn(a.data[C.field], C, b, a.raw) : a.data[C.field] = k.createCellByColumn(C, v, a.raw, a, b);
683
+ a.data[C.field] ? I.updateCellByColumn(a.data[C.field], C, b, a.raw) : a.data[C.field] = I.createCellByColumn(C, v, a.raw, a, b);
667
684
  });
668
685
  });
669
686
  }
670
- function Ae(t) {
671
- t && (w.value = t, ft(w.value), z(w), n.showSetting && L(w), Ve(w.value), me(u, U), te());
687
+ function He(t) {
688
+ t && (w.value = t, mt(w.value), W(w), n.showSetting && K(w), Ge(w.value), O(u, Y), oe());
672
689
  }
673
- function mt() {
690
+ function yt() {
674
691
  y.emptyCurrentRowId();
675
692
  }
676
- oe(() => n.showSetting, (t, a) => {
677
- t !== a && Ae(w.value);
693
+ se(() => n.showSetting, (t, a) => {
694
+ t !== a && He(w.value);
678
695
  });
679
- function Le(t) {
680
- A.updatePagination(t);
696
+ function _e(t) {
697
+ k.updatePagination(t);
681
698
  }
682
- function yt(t, a) {
683
- t && (u.load(t), c.value = ye(0, D.value + j - 1), a != null && a.keepScrollTop ? m.scrollTo(m.offsetY.value) : E(), c.value.length || (ce.value = []), Te.value && Be.value && Fe()), g.clear();
699
+ function pt(t, a) {
700
+ t && (u.load(t), d.value = ge(0, U.value + H - 1), a != null && a.keepScrollTop ? m.scrollTo(m.offsetY.value) : x(), d.value.length || (pe.value = []), Re.value && Oe.value && Ie()), g.clear();
684
701
  }
685
- oe(u.shouldGroupingData, (t, a) => {
686
- t !== a && (u.updateDataView(), E());
687
- }), oe(() => n.columns, (t) => {
688
- Ae(t);
702
+ se(u.shouldGroupingData, (t, a) => {
703
+ t !== a && (u.updateDataView(), x());
704
+ }), se(() => n.columns, (t) => {
705
+ He(t);
689
706
  });
690
- function He(t) {
691
- x.activeRowById(t);
707
+ function ze(t) {
708
+ j.activeRowById(t);
692
709
  }
693
- function pt(t, a = {
710
+ function gt(t, a = {
694
711
  isCurrent: !0
695
712
  }) {
696
- a != null && a.isCurrent && He(t), y.selectItemById(t);
697
- }
698
- function gt(t) {
699
- const a = h.idField.value, d = c.value.find((v) => v.raw[a] === t);
700
- d && x.clickRowItem(d);
713
+ a != null && a.isCurrent && ze(t), y.selectItemById(t);
701
714
  }
702
715
  function vt(t) {
703
- const a = h.idField.value, d = c.value.find((v) => v.raw[a] === t);
704
- d && x.changeRow(d);
716
+ const a = h.idField.value, s = d.value.find((v) => v.raw[a] === t);
717
+ s && j.clickRowItem(s);
705
718
  }
706
719
  function Ct(t) {
720
+ const a = h.idField.value, s = d.value.find((v) => v.raw[a] === t);
721
+ s && j.changeRow(s);
722
+ }
723
+ function ht(t) {
707
724
  y.selectItemByIds(t);
708
725
  }
709
- function ht() {
710
- return c.value;
726
+ function St() {
727
+ return d.value;
711
728
  }
712
- function St(t) {
713
- return c.value.filter((a) => t.includes(a.raw[n.idField]));
729
+ function wt(t) {
730
+ return d.value.filter((a) => t.includes(a.raw[n.idField]));
714
731
  }
715
- function wt() {
732
+ function bt() {
716
733
  return y.getSelectedItems();
717
734
  }
718
- function bt() {
735
+ function Bt() {
719
736
  return y.getSelectionRow();
720
737
  }
721
- function Bt() {
738
+ function Ft() {
722
739
  g.endEditCell();
723
740
  }
724
- function Ft(t, a = {
741
+ function Ot(t, a = {
725
742
  clearCurrent: !0
726
743
  }) {
727
- a != null && a.clearCurrent && He(""), y.unSelectItemByIds(t);
744
+ a != null && a.clearCurrent && ze(""), y.unSelectItemByIds(t);
728
745
  }
729
746
  function Ue() {
730
747
  y.clearSelection();
731
748
  }
732
- function Ot() {
749
+ function It() {
733
750
  return y.currentSelectedDataId.value;
734
751
  }
735
- function It() {
752
+ function Vt() {
736
753
  m.scrollToBottom();
737
754
  }
738
- function Dt(t) {
755
+ function Gt(t) {
739
756
  m.scrollToRowByIndex(t);
740
757
  }
741
- function Vt() {
742
- y.keepSelectingOnPaging.value || Ue(), u.updateVisibleDataSummary(c.value), Le({
758
+ function Et() {
759
+ y.keepSelectingOnPaging.value || Ue(), u.updateVisibleDataSummary(d.value), _e({
743
760
  total: u.dataView.value.length,
744
761
  index: 1
745
762
  });
746
763
  }
764
+ function xt(t) {
765
+ y.updateSelectedValues(t);
766
+ }
767
+ function Dt(t) {
768
+ y.removeSelectedValues(t);
769
+ }
747
770
  const We = {
748
- activeRowById: He,
749
- selectRowById: vt,
750
- addNewDataItem: ot,
751
- addNewDataItemAtLast: it,
771
+ activeRowById: ze,
772
+ selectRowById: Ct,
773
+ addNewDataItem: it,
774
+ addNewDataItemAtLast: ut,
752
775
  removeDataItem: st,
753
- removeDataItemById: rt,
754
- editDataItem: ut,
755
- acceptDataItem: dt,
756
- cancelDataItem: ct,
757
- selectItemById: pt,
758
- selectItemByIds: Ct,
759
- updateColumns: Ae,
760
- updateDataSource: yt,
761
- updatePagination: Le,
762
- getVisibleData: ht,
763
- getVisibleDataByIds: St,
764
- getSelectedItems: wt,
765
- getSelectionRow: bt,
766
- getCurrentRowId: Ot,
767
- endEditCell: Bt,
768
- clickRowItemById: gt,
776
+ removeDataItemById: dt,
777
+ editDataItem: rt,
778
+ acceptDataItem: ct,
779
+ cancelDataItem: ft,
780
+ selectItemById: gt,
781
+ selectItemByIds: ht,
782
+ updateColumns: He,
783
+ updateDataSource: pt,
784
+ updatePagination: _e,
785
+ getVisibleData: St,
786
+ getVisibleDataByIds: wt,
787
+ getSelectedItems: bt,
788
+ getSelectionRow: Bt,
789
+ getCurrentRowId: It,
790
+ endEditCell: Ft,
791
+ clickRowItemById: vt,
769
792
  clearSelection: Ue,
770
- unSelectItemByIds: Ft,
771
- scrollToBottom: It,
772
- scrollToRowByIndex: Dt,
773
- updateDerivedData: Vt,
774
- emptyCurrentRowId: mt
793
+ unSelectItemByIds: Ot,
794
+ scrollToBottom: Vt,
795
+ scrollToRowByIndex: Gt,
796
+ updateDerivedData: Et,
797
+ emptyCurrentRowId: yt,
798
+ updateSelectedValues: xt,
799
+ removeSelectedValues: Dt
775
800
  };
776
801
  p.expose(We);
777
- const Gt = jn(n, p, We, O, g, c), {
778
- renderDataArea: xt
779
- } = Un(n, p, T, se, Y, xe, Ee, O, g, q, Gt, x, X, m, c, u), Et = I(() => !c.value || !c.value.length), {
780
- renderEmpty: Pt
781
- } = Nn(n, p), Tt = I(() => ({
802
+ const Pt = Hn(n, p, We, F, g, d), {
803
+ renderDataArea: Tt
804
+ } = Kn(n, p, P, fe, Q, De, Pe, F, g, X, Pt, j, ne, m, d, u), Rt = B(() => !d.value || !d.value.length), {
805
+ renderEmpty: kt
806
+ } = zn(n, p), Mt = B(() => ({
782
807
  "d-flex": !0,
783
- "justify-content-between": G.value && H.value,
784
- "justify-content-end": G.value && !H.value,
808
+ "justify-content-between": E.value && L.value,
809
+ "justify-content-end": E.value && !L.value,
785
810
  "position-relative": !0,
786
811
  "fv-datagrid-pagination": !0
787
- })), kt = I(() => ({
812
+ })), jt = B(() => ({
788
813
  "flex-direction": "row"
789
- })), Rt = I(() => ({
814
+ })), Nt = B(() => ({
790
815
  "d-flex": !0,
791
816
  "align-items-center": !0
792
817
  }));
793
- Yt("dataGridContext", {
794
- useColumnComposition: O,
818
+ Jt("dataGridContext", {
819
+ useColumnComposition: F,
795
820
  dataView: u,
796
- useFilterComposition: N,
797
- useFitColumnComposition: ee,
798
- useSortComposition: U,
821
+ useFilterComposition: z,
822
+ useFitColumnComposition: ae,
823
+ useSortComposition: Y,
799
824
  useVirtualScrollComposition: m
800
825
  });
801
- function Mt(t) {
826
+ function At(t) {
802
827
  let a;
803
- return i(Hn, {
828
+ return i(_n, {
804
829
  class: "f-form-layout farris-form farris-form-controls-inline col-12 col-md-6 col-xl-3 col-el-2"
805
- }, Wn(a = Object.keys(t.data).filter((d) => {
830
+ }, Yn(a = Object.keys(t.data).filter((s) => {
806
831
  var v, b;
807
- return ((v = t.data[d].column) == null ? void 0 : v.dataType) !== Qe && ((b = t.data[d].column) == null ? void 0 : b.dataType) !== Xe;
808
- }).map((d) => {
832
+ return ((v = t.data[s].column) == null ? void 0 : v.dataType) !== Xe && ((b = t.data[s].column) == null ? void 0 : b.dataType) !== Ze;
833
+ }).map((s) => {
809
834
  var b, C;
810
- const v = t.data[d];
835
+ const v = t.data[s];
811
836
  return i("div", {
812
837
  class: "farris-group-wrap w-100"
813
838
  }, [i("div", {
814
839
  class: "form-group farris-form-group common-group"
815
- }, [i(zn, {
840
+ }, [i(Un, {
816
841
  text: (b = v.column) == null ? void 0 : b.title,
817
842
  title: (C = v.column) == null ? void 0 : C.title
818
843
  }, null), i("div", {
@@ -822,93 +847,93 @@ const _n = /* @__PURE__ */ Ut({
822
847
  default: () => [a]
823
848
  });
824
849
  }
825
- function jt(t, a) {
826
- const d = {}, v = {}, b = [], C = [], Ye = {};
827
- Object.keys(a.data).filter((M) => {
828
- var V, ae;
829
- return ((V = a.data[M].column) == null ? void 0 : V.dataType) !== Qe && ((ae = a.data[M].column) == null ? void 0 : ae.dataType) !== Xe;
830
- }).forEach((M) => {
831
- var ae, qe, $e;
832
- const V = a.data[M];
833
- d[M] = V.data, g.endEditByCell(V), v[M] = V.data, b.push(V.column), C.push(V), Ye[M] = ($e = (qe = (ae = V.column) == null ? void 0 : ae.editor) == null ? void 0 : qe.context) == null ? void 0 : $e.editor;
850
+ function Ht(t, a) {
851
+ const s = {}, v = {}, b = [], C = [], qe = {};
852
+ Object.keys(a.data).filter((A) => {
853
+ var V, re;
854
+ return ((V = a.data[A].column) == null ? void 0 : V.dataType) !== Xe && ((re = a.data[A].column) == null ? void 0 : re.dataType) !== Ze;
855
+ }).forEach((A) => {
856
+ var re, $e, Je;
857
+ const V = a.data[A];
858
+ s[A] = V.data, g.endEditByCell(V), v[A] = V.data, b.push(V.column), C.push(V), qe[A] = (Je = ($e = (re = V.column) == null ? void 0 : re.editor) == null ? void 0 : $e.context) == null ? void 0 : Je.editor;
834
859
  }), p.emit("endEditRow", {
835
860
  row: a,
836
861
  cells: C,
837
862
  columns: b,
838
- oldValues: d,
863
+ oldValues: s,
839
864
  newValues: v,
840
- editors: Ye
865
+ editors: qe
841
866
  }), g.showRowEditPanel.value = !1;
842
867
  }
843
- function Nt() {
844
- const t = y.currentSelectedDataId.value, a = c.value.find((d) => d.raw[n.idField] === t);
845
- return a ? i(An, {
868
+ function zt() {
869
+ const t = y.currentSelectedDataId.value, a = d.value.find((s) => s.raw[n.idField] === t);
870
+ return a ? i(Ln, {
846
871
  showHeader: !1,
847
872
  modelValue: g.showRowEditPanel.value,
848
- "onUpdate:modelValue": (d) => g.showRowEditPanel.value = d,
873
+ "onUpdate:modelValue": (s) => g.showRowEditPanel.value = s,
849
874
  width: 600
850
875
  }, {
851
- default: () => Mt(a),
852
- footerTemplate: () => i(ze, null, [i(Ze, {
876
+ default: () => At(a),
877
+ footerTemplate: () => i(be, null, [i(et, {
853
878
  class: "mr-3",
854
879
  type: "secondary",
855
- onClick: (d) => {
880
+ onClick: (s) => {
856
881
  g.showRowEditPanel.value = !1;
857
882
  }
858
883
  }, {
859
- default: () => [he("取消")]
860
- }), i(Ze, {
861
- onClick: (d) => {
862
- jt(d, a);
884
+ default: () => [we("取消")]
885
+ }), i(et, {
886
+ onClick: (s) => {
887
+ Ht(s, a);
863
888
  }
864
889
  }, {
865
- default: () => [he("确定")]
890
+ default: () => [we("确定")]
866
891
  })])
867
892
  }) : null;
868
893
  }
869
- return () => i(ze, null, [i("div", {
870
- ref: ue,
871
- class: Me.value,
872
- style: Ie.value,
873
- onWheel: ke
874
- }, [r.value && n.enableFilter && nt(), r.value && lt(), r.value && s.value && e(), i("div", {
875
- ref: r,
894
+ return () => i(be, null, [i("div", {
895
+ ref: ce,
876
896
  class: je.value,
877
- style: Ne.value,
897
+ style: Ve.value,
898
+ onWheel: ke
899
+ }, [c.value && n.enableFilter && lt(), c.value && at(), c.value && r.value && e(), i("div", {
900
+ ref: c,
901
+ class: Ne.value,
902
+ style: Ae.value,
878
903
  onTouchstart: (t) => {
879
- t.stopPropagation(), F.value = !0, m.onTouchstartScrollThumb(t, r);
904
+ t.stopPropagation(), T.value = !0, m.onTouchstartScrollThumb(t, c);
880
905
  },
881
906
  onTouchend: (t) => {
882
- F.value = !1;
907
+ T.value = !1;
883
908
  },
884
909
  onMouseover: (t) => {
885
- t.stopPropagation(), F.value = !0;
910
+ t.stopPropagation(), T.value = !0;
886
911
  },
887
912
  onMouseleave: (t) => {
888
- t.stopPropagation(), F.value = !1;
913
+ t.stopPropagation(), T.value = !1;
889
914
  }
890
- }, [r.value && f(c), r.value && xt(), r.value && Et.value && Pt(), r.value && le(), r.value && tt()]), r.value && Ce(), (G.value || H.value) && i("div", {
891
- class: Tt.value,
892
- style: kt.value
893
- }, [H.value && i("div", {
894
- class: Rt.value
895
- }, [i("div", null, ["已选:" + ce.value.length, he(" 条")])]), G.value && l()]), o(), Oe.value && K()]), Se() && Nt()]);
915
+ }, [c.value && f(d), c.value && Tt(), c.value && Rt.value && kt(), c.value && ue(), c.value && nt()]), c.value && Se(), (E.value || L.value) && i("div", {
916
+ class: Mt.value,
917
+ style: jt.value
918
+ }, [L.value && i("div", {
919
+ class: Nt.value
920
+ }, [i("div", null, ["已选:" + pe.value.length, we(" 条")])]), E.value && l()]), o(), _.value && J()]), Be() && zt()]);
896
921
  }
897
- }), cl = zt(_n);
922
+ }), yl = Ut(qn);
898
923
  export {
899
- _n as FDataGrid,
900
- ul as columnOptions,
901
- Ln as dataGridProps,
902
- cl as default,
903
- rl as editOptions,
904
- nl as filterOptions,
905
- tl as groupOptions,
906
- ll as headerOptions,
907
- dl as loadingOptions,
908
- Zn as paginationOptions,
909
- al as rowNumberOptions,
910
- ol as rowOptions,
911
- sl as selectionOptions,
912
- el as sortOptions,
913
- il as summaryOptions
924
+ qn as FDataGrid,
925
+ dl as columnOptions,
926
+ Wn as dataGridProps,
927
+ yl as default,
928
+ fl as editOptions,
929
+ ol as filterOptions,
930
+ al as groupOptions,
931
+ il as headerOptions,
932
+ ml as loadingOptions,
933
+ nl as paginationOptions,
934
+ ul as rowNumberOptions,
935
+ rl as rowOptions,
936
+ cl as selectionOptions,
937
+ ll as sortOptions,
938
+ sl as summaryOptions
914
939
  };