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

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 (431) 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 +1492 -59
  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-edit/index.esm.js +1 -1
  8. package/components/button-edit/index.umd.cjs +1 -1
  9. package/components/button-group/index.esm.js +266 -110
  10. package/components/button-group/index.umd.cjs +1 -1
  11. package/components/calendar/index.esm.js +344 -341
  12. package/components/calendar/index.umd.cjs +3 -3
  13. package/components/code-editor/index.esm.js +237 -169
  14. package/components/code-editor/index.umd.cjs +3 -3
  15. package/components/collection-property-editor/index.esm.js +302 -299
  16. package/components/collection-property-editor/index.umd.cjs +2 -2
  17. package/components/color-picker/index.esm.js +812 -502
  18. package/components/color-picker/index.umd.cjs +1 -1
  19. package/components/combo-list/index.esm.js +329 -292
  20. package/components/combo-list/index.umd.cjs +1 -1
  21. package/components/combo-tree/index.esm.js +355 -174
  22. package/components/combo-tree/index.umd.cjs +1 -1
  23. package/components/comment/index.esm.js +294 -291
  24. package/components/comment/index.umd.cjs +6 -6
  25. package/components/common/index.esm.js +1 -1
  26. package/components/common/index.umd.cjs +1 -1
  27. package/components/component/index.esm.js +4390 -2708
  28. package/components/component/index.umd.cjs +8 -1
  29. package/components/condition/index.esm.js +3140 -487
  30. package/components/condition/index.umd.cjs +8 -1
  31. package/components/data-grid/index.esm.js +4 -2
  32. package/components/data-grid/index.umd.cjs +1 -1
  33. package/components/data-view/index.esm.js +1859 -1832
  34. package/components/data-view/index.umd.cjs +1 -1
  35. package/components/date-picker/index.esm.js +1 -1
  36. package/components/date-picker/index.umd.cjs +1 -1
  37. package/components/designer-canvas/index.esm.js +3731 -2717
  38. package/components/designer-canvas/index.umd.cjs +1 -1
  39. package/components/drawer/index.esm.js +417 -405
  40. package/components/drawer/index.umd.cjs +2 -2
  41. package/components/dropdown/index.esm.js +373 -124
  42. package/components/dropdown/index.umd.cjs +2 -2
  43. package/components/dynamic-form/index.esm.js +1245 -1895
  44. package/components/dynamic-form/index.umd.cjs +1 -1
  45. package/components/dynamic-resolver/index.esm.js +275 -271
  46. package/components/dynamic-resolver/index.umd.cjs +2 -2
  47. package/components/dynamic-view/index.esm.js +529 -450
  48. package/components/dynamic-view/index.umd.cjs +1 -1
  49. package/components/event-parameter/index.esm.js +1 -1
  50. package/components/event-parameter/index.umd.cjs +1 -1
  51. package/components/events-editor/index.esm.js +2613 -1544
  52. package/components/events-editor/index.umd.cjs +3 -3
  53. package/components/expression-editor/index.css +1 -1
  54. package/components/expression-editor/index.esm.js +7376 -2
  55. package/components/expression-editor/index.umd.cjs +427 -1
  56. package/components/fieldset/index.esm.js +1 -1
  57. package/components/fieldset/index.umd.cjs +1 -1
  58. package/components/filter-bar/index.esm.js +423 -415
  59. package/components/filter-bar/index.umd.cjs +2 -2
  60. package/components/filter-condition-editor/index.css +1 -1
  61. package/components/filter-condition-editor/index.esm.js +9049 -425
  62. package/components/filter-condition-editor/index.umd.cjs +427 -1
  63. package/components/html-template/index.esm.js +33 -36
  64. package/components/html-template/index.umd.cjs +1 -1
  65. package/components/image/index.esm.js +364 -355
  66. package/components/image/index.umd.cjs +2 -2
  67. package/components/image-cropper/index.esm.js +615 -361
  68. package/components/image-cropper/index.umd.cjs +1 -1
  69. package/components/json-editor/index.esm.js +325 -247
  70. package/components/json-editor/index.umd.cjs +1 -1
  71. package/components/language-textbox/index.esm.js +411 -409
  72. package/components/language-textbox/index.umd.cjs +2 -2
  73. package/components/layout/index.esm.js +549 -163
  74. package/components/layout/index.umd.cjs +1 -1
  75. package/components/list-nav/index.esm.js +837 -39
  76. package/components/list-nav/index.umd.cjs +1 -1
  77. package/components/list-view/index.esm.js +427 -646
  78. package/components/list-view/index.umd.cjs +6 -6
  79. package/components/lookup/index.esm.js +3624 -3625
  80. package/components/lookup/index.umd.cjs +1 -1
  81. package/components/mapping-editor/index.esm.js +5 -3
  82. package/components/mapping-editor/index.umd.cjs +1 -1
  83. package/components/menu-lookup/index.esm.js +577 -536
  84. package/components/menu-lookup/index.umd.cjs +6 -6
  85. package/components/nav/index.esm.js +311 -31
  86. package/components/nav/index.umd.cjs +1 -1
  87. package/components/number-range/index.esm.js +1641 -189
  88. package/components/number-range/index.umd.cjs +1 -1
  89. package/components/number-spinner/index.esm.js +82 -82
  90. package/components/number-spinner/index.umd.cjs +1 -1
  91. package/components/order/index.esm.js +1196 -851
  92. package/components/order/index.umd.cjs +6 -6
  93. package/components/page-footer/index.esm.js +331 -48
  94. package/components/page-footer/index.umd.cjs +1 -1
  95. package/components/page-header/index.esm.js +110 -116
  96. package/components/page-header/index.umd.cjs +1 -1
  97. package/components/pagination/index.esm.js +509 -232
  98. package/components/pagination/index.umd.cjs +1 -1
  99. package/components/progress/index.esm.js +353 -148
  100. package/components/progress/index.umd.cjs +3 -3
  101. package/components/property-editor/index.esm.js +157 -153
  102. package/components/property-editor/index.umd.cjs +1 -1
  103. package/components/property-panel/index.esm.js +1817 -854
  104. package/components/property-panel/index.umd.cjs +12 -5
  105. package/components/query-solution/index.css +1 -1
  106. package/components/query-solution/index.esm.js +6858 -3984
  107. package/components/query-solution/index.umd.cjs +13 -6
  108. package/components/response-layout/index.esm.js +1 -1
  109. package/components/response-layout/index.umd.cjs +1 -1
  110. package/components/schema-selector/index.esm.js +2448 -2222
  111. package/components/schema-selector/index.umd.cjs +7 -7
  112. package/components/search-box/index.esm.js +244 -72
  113. package/components/search-box/index.umd.cjs +1 -1
  114. package/components/section/index.esm.js +212 -209
  115. package/components/section/index.umd.cjs +2 -2
  116. package/components/smoke-detector/index.esm.js +179 -8
  117. package/components/smoke-detector/index.umd.cjs +1 -1
  118. package/components/sort-condition-editor/index.css +1 -0
  119. package/components/sort-condition-editor/index.esm.js +9493 -4
  120. package/components/sort-condition-editor/index.umd.cjs +427 -1
  121. package/components/splitter/index.esm.js +1172 -142
  122. package/components/splitter/index.umd.cjs +1 -1
  123. package/components/step/index.esm.js +47 -48
  124. package/components/step/index.umd.cjs +1 -1
  125. package/components/tabs/index.esm.js +490 -419
  126. package/components/tabs/index.umd.cjs +1 -1
  127. package/components/text/index.esm.js +217 -73
  128. package/components/text/index.umd.cjs +1 -1
  129. package/components/textarea/index.esm.js +29 -27
  130. package/components/textarea/index.umd.cjs +2 -2
  131. package/components/transfer/index.esm.js +760 -543
  132. package/components/transfer/index.umd.cjs +5 -5
  133. package/components/tree-grid/index.esm.js +129 -128
  134. package/components/tree-grid/index.umd.cjs +1 -1
  135. package/components/tree-view/index.esm.js +320 -153
  136. package/components/tree-view/index.umd.cjs +1 -1
  137. package/components/uploader/index.esm.js +1112 -607
  138. package/components/uploader/index.umd.cjs +2 -2
  139. package/components/verify-detail/index.esm.js +359 -106
  140. package/components/verify-detail/index.umd.cjs +1 -1
  141. package/components/video/index.esm.js +222 -89
  142. package/components/video/index.umd.cjs +1 -1
  143. package/components/weather/index.esm.js +290 -199
  144. package/components/weather/index.umd.cjs +1 -1
  145. package/designer/data-grid/index.esm.js +5301 -4507
  146. package/designer/data-grid/index.umd.cjs +17 -10
  147. package/designer/drawer/index.esm.js +626 -615
  148. package/designer/drawer/index.umd.cjs +2 -2
  149. package/designer/dynamic-form/index.esm.js +2043 -1290
  150. package/designer/dynamic-form/index.umd.cjs +8 -1
  151. package/designer/farris-designer.all.esm.js +14263 -12505
  152. package/designer/farris-designer.all.umd.cjs +16 -16
  153. package/designer/list-view/index.esm.js +327 -327
  154. package/designer/list-view/index.umd.cjs +3 -3
  155. package/designer/modal/index.esm.js +29 -137
  156. package/designer/modal/index.umd.cjs +1 -1
  157. package/designer/radio-group/index.esm.js +238 -232
  158. package/designer/radio-group/index.umd.cjs +1 -1
  159. package/designer/response-layout-editor/index.esm.js +178 -171
  160. package/designer/response-layout-editor/index.umd.cjs +1 -1
  161. package/designer/response-toolbar/index.esm.js +1 -1
  162. package/designer/response-toolbar/index.umd.cjs +1 -1
  163. package/designer/section/index.esm.js +1 -6
  164. package/designer/section/index.umd.cjs +1 -1
  165. package/designer/tabs/index.esm.js +3431 -2493
  166. package/designer/tabs/index.umd.cjs +2 -2
  167. package/designer/time-picker/index.esm.js +195 -188
  168. package/designer/time-picker/index.umd.cjs +1 -1
  169. package/designer/tree-grid/index.esm.js +822 -464
  170. package/designer/tree-grid/index.umd.cjs +1 -1
  171. package/farris.all.esm.js +77525 -74884
  172. package/farris.all.umd.cjs +93 -93
  173. package/index.css +1 -1
  174. package/package.json +1 -1
  175. package/types/accordion/src/accordion.props.d.ts +1 -0
  176. package/types/accordion/src/components/accordion-item.props.d.ts +1 -0
  177. package/types/avatar/src/avatar.props.d.ts +1 -0
  178. package/types/binding-selector/index.d.ts +54 -0
  179. package/types/binding-selector/src/binding-selector.props.d.ts +1 -0
  180. package/types/button-group/index.d.ts +0 -15
  181. package/types/button-group/src/button-group.props.d.ts +1 -0
  182. package/types/code-editor/index.d.ts +1 -0
  183. package/types/code-editor/src/code-textbox.component.d.ts +6 -6
  184. package/types/code-editor/src/code-textbox.props.d.ts +2 -0
  185. package/types/color-picker/index.d.ts +15 -0
  186. package/types/color-picker/src/color-picker.props.d.ts +1 -0
  187. package/types/combo-list/src/composition/use-data-source.d.ts +2 -1
  188. package/types/combo-tree/src/combo-tree.props.d.ts +1 -0
  189. package/types/component/index.d.ts +2 -0
  190. package/types/component/src/component.props.d.ts +8 -0
  191. package/types/components.d.ts +8 -1
  192. package/types/condition/index.d.ts +55 -0
  193. package/types/condition/src/composition/condition-value/dropdown-value.d.ts +4 -0
  194. package/types/data-view/composition/types.d.ts +1 -1
  195. package/types/designer-canvas/src/composition/dg-control.d.ts +24 -0
  196. package/types/designer-toolbox/index.d.ts +3 -0
  197. package/types/designer-toolbox/src/toolbox.component.d.ts +14 -0
  198. package/types/designer-toolbox/src/toolbox.props.d.ts +29 -0
  199. package/types/designer-toolbox/src/types.d.ts +21 -0
  200. package/types/designer.d.ts +13 -0
  201. package/types/dropdown/index.d.ts +6 -27
  202. package/types/dropdown/src/dropdown.item.component.d.ts +1 -1
  203. package/types/dropdown/src/dropdown.props.d.ts +1 -0
  204. package/types/dynamic-form/designer.d.ts +1 -4
  205. package/types/dynamic-form/index.d.ts +6 -11
  206. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
  207. package/types/dynamic-form/src/designer/dynamic-form.design.component.d.ts +8 -0
  208. package/types/dynamic-form/src/designer/response-form.design.props.d.ts +14 -0
  209. package/types/dynamic-form/src/designer/use-dynamic-form-rules.d.ts +2 -0
  210. package/types/dynamic-form/src/dynamic-form.component.d.ts +8 -0
  211. package/types/dynamic-form/src/response-form.props.d.ts +13 -1
  212. package/types/dynamic-form/src/schema/response-form-schema-resolver.d.ts +1 -0
  213. package/types/dynamic-form/src/types.d.ts +1 -0
  214. package/types/dynamic-resolver/index.d.ts +0 -3
  215. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
  216. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
  217. package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
  218. package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
  219. package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
  220. package/types/dynamic-resolver/src/types.d.ts +1 -0
  221. package/types/dynamic-view/index.d.ts +43 -3
  222. package/types/dynamic-view/src/components/maps.d.ts +110 -98
  223. package/types/dynamic-view/src/composition/index.d.ts +5 -0
  224. package/types/dynamic-view/src/composition/use-utils.d.ts +12 -0
  225. package/types/dynamic-view/src/dynamic-view.component.d.ts +6 -6
  226. package/types/{binding-selector/designer.d.ts → expression-editor/index.d.ts} +6 -6
  227. package/types/filter-condition-editor/index.d.ts +9 -0
  228. package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
  229. package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
  230. package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +1 -0
  231. package/types/flow-canvas/index.d.ts +3 -0
  232. package/types/flow-canvas/src/components/flow-node-item.component.d.ts +8 -0
  233. package/types/flow-canvas/src/components/flow-node-item.props.d.ts +3 -0
  234. package/types/flow-canvas/src/composition/types.d.ts +42 -0
  235. package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +2 -0
  236. package/types/flow-canvas/src/composition/use-connections.d.ts +2 -0
  237. package/types/flow-canvas/src/composition/use-curve.d.ts +4 -0
  238. package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +2 -0
  239. package/types/flow-canvas/src/composition/use-drawing.d.ts +4 -0
  240. package/types/flow-canvas/src/flow-canvas.component.d.ts +8 -0
  241. package/types/flow-canvas/src/flow-canvas.props.d.ts +3 -0
  242. package/types/image-cropper/src/image-cropper.props.d.ts +1 -0
  243. package/types/index.d.ts +1 -0
  244. package/types/json-editor/src/json-editor.props.d.ts +1 -0
  245. package/types/language-textbox/index.d.ts +3 -3
  246. package/types/language-textbox/src/components/language-contents.component.d.ts +1 -1
  247. package/types/language-textbox/src/language-textbox.component.d.ts +1 -1
  248. package/types/layout/index.d.ts +0 -1
  249. package/types/layout/src/components/layout-pane.props.d.ts +1 -0
  250. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +2 -0
  251. package/types/layout/src/designer/layout-pane.design.component.d.ts +8 -0
  252. package/types/layout/src/designer/layout-use-designer-rules.d.ts +2 -0
  253. package/types/layout/src/designer/layout.design.component.d.ts +8 -0
  254. package/types/layout/src/layout.props.d.ts +1 -0
  255. package/types/layout/src/schema/schema-mapper.d.ts +2 -0
  256. package/types/layout/src/schema/schema-resolver.d.ts +2 -0
  257. package/types/list-nav/index.d.ts +5 -24
  258. package/types/list-nav/src/designer/use-designer-rules.d.ts +2 -0
  259. package/types/list-nav/src/list-nav.props.d.ts +1 -0
  260. package/types/list-nav/src/property-config/list-nav.property-config.d.ts +8 -0
  261. package/types/list-nav/src/schema/schema-mapper.d.ts +2 -0
  262. package/types/list-nav/src/schema/schema-resolver.d.ts +2 -0
  263. package/types/list-view/index.d.ts +0 -1
  264. package/types/list-view/src/composition/use-draggable.d.ts +1 -1
  265. package/types/lookup/index.d.ts +1 -1
  266. package/types/lookup/src/components/popup-container.component.d.ts +3 -3
  267. package/types/menu-lookup/src/menu-lookup.props.d.ts +1 -0
  268. package/types/modal/designer.d.ts +0 -2
  269. package/types/nav/index.d.ts +20 -24
  270. package/types/nav/src/nav.props.d.ts +1 -0
  271. package/types/number-range/src/number-range.props.d.ts +1 -0
  272. package/types/order/index.d.ts +5 -36
  273. package/types/order/src/designer/order.design.component.d.ts +1 -1
  274. package/types/order/src/order.props.d.ts +1 -0
  275. package/types/page-footer/index.d.ts +2 -0
  276. package/types/page-footer/src/page-footer.props.d.ts +1 -0
  277. package/types/pagination/index.d.ts +0 -15
  278. package/types/pagination/src/pagination.props.d.ts +1 -0
  279. package/types/progress/src/progress.props.d.ts +1 -0
  280. package/types/property-panel/src/property-panel.component.d.ts +3 -3
  281. package/types/query-solution/index.d.ts +2 -1
  282. package/types/radio-group/designer.d.ts +1 -2
  283. package/types/search-box/index.d.ts +17 -1
  284. package/types/search-box/src/search-box.props.d.ts +1 -0
  285. package/types/section/designer.d.ts +0 -1
  286. package/types/smoke-detector/index.d.ts +2 -0
  287. package/types/smoke-detector/src/smoke-detector.props.d.ts +1 -0
  288. package/types/sort-condition-editor/index.d.ts +7 -2
  289. package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +1 -0
  290. package/types/splitter/index.d.ts +0 -1
  291. package/types/splitter/src/components/splitter-pane.props.d.ts +1 -0
  292. package/types/splitter/src/splitter.props.d.ts +1 -0
  293. package/types/tabs/designer.d.ts +0 -1
  294. package/types/tabs/index.d.ts +1 -0
  295. package/types/text/index.d.ts +20 -24
  296. package/types/text/src/text.props.d.ts +1 -0
  297. package/types/transfer/src/transfer.props.d.ts +1 -0
  298. package/types/tree-view/src/tree-view.props.d.ts +1 -0
  299. package/types/uploader/src/uploader.props.d.ts +1 -0
  300. package/types/verify-detail/index.d.ts +5 -58
  301. package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
  302. package/types/verify-detail/src/verify-detail.props.d.ts +1 -0
  303. package/types/video/index.d.ts +20 -24
  304. package/types/video/src/video.props.d.ts +1 -0
  305. package/components/dynamic-form/index.css +0 -1
  306. package/designer/accordion/index.esm.js +0 -257
  307. package/designer/accordion/index.umd.cjs +0 -1
  308. package/designer/avatar/index.esm.js +0 -1460
  309. package/designer/avatar/index.umd.cjs +0 -1
  310. package/designer/binding-selector/index.esm.js +0 -792
  311. package/designer/binding-selector/index.umd.cjs +0 -1
  312. package/designer/button-group/index.esm.js +0 -282
  313. package/designer/button-group/index.umd.cjs +0 -1
  314. package/designer/code-editor/index.esm.js +0 -75
  315. package/designer/code-editor/index.umd.cjs +0 -1
  316. package/designer/color-picker/index.esm.js +0 -1096
  317. package/designer/color-picker/index.umd.cjs +0 -1
  318. package/designer/combo-list/index.esm.js +0 -1095
  319. package/designer/combo-list/index.umd.cjs +0 -1
  320. package/designer/combo-tree/index.esm.js +0 -186
  321. package/designer/combo-tree/index.umd.cjs +0 -1
  322. package/designer/component/index.css +0 -1
  323. package/designer/component/index.esm.js +0 -5002
  324. package/designer/component/index.umd.cjs +0 -1
  325. package/designer/condition/index.esm.js +0 -1899
  326. package/designer/condition/index.umd.cjs +0 -1
  327. package/designer/dropdown/index.esm.js +0 -261
  328. package/designer/dropdown/index.umd.cjs +0 -1
  329. package/designer/expression-editor/index.css +0 -1
  330. package/designer/expression-editor/index.esm.js +0 -7006
  331. package/designer/expression-editor/index.umd.cjs +0 -427
  332. package/designer/filter-condition-editor/index.css +0 -1
  333. package/designer/filter-condition-editor/index.esm.js +0 -4795
  334. package/designer/filter-condition-editor/index.umd.cjs +0 -1
  335. package/designer/html-template/index.esm.js +0 -718
  336. package/designer/html-template/index.umd.cjs +0 -1
  337. package/designer/image-cropper/index.esm.js +0 -765
  338. package/designer/image-cropper/index.umd.cjs +0 -1
  339. package/designer/json-editor/index.esm.js +0 -83
  340. package/designer/json-editor/index.umd.cjs +0 -1
  341. package/designer/language-textbox/index.esm.js +0 -783
  342. package/designer/language-textbox/index.umd.cjs +0 -8
  343. package/designer/layout/index.esm.js +0 -430
  344. package/designer/layout/index.umd.cjs +0 -1
  345. package/designer/list-nav/index.esm.js +0 -802
  346. package/designer/list-nav/index.umd.cjs +0 -1
  347. package/designer/lookup/index.esm.js +0 -2083
  348. package/designer/lookup/index.umd.cjs +0 -1
  349. package/designer/menu-lookup/index.esm.js +0 -46
  350. package/designer/menu-lookup/index.umd.cjs +0 -1
  351. package/designer/nav/index.esm.js +0 -284
  352. package/designer/nav/index.umd.cjs +0 -1
  353. package/designer/number-range/index.esm.js +0 -1616
  354. package/designer/number-range/index.umd.cjs +0 -1
  355. package/designer/order/index.css +0 -1
  356. package/designer/order/index.esm.js +0 -2196
  357. package/designer/order/index.umd.cjs +0 -18
  358. package/designer/page-footer/index.esm.js +0 -290
  359. package/designer/page-footer/index.umd.cjs +0 -1
  360. package/designer/page-header/index.esm.js +0 -1003
  361. package/designer/page-header/index.umd.cjs +0 -1
  362. package/designer/pagination/index.esm.js +0 -591
  363. package/designer/pagination/index.umd.cjs +0 -1
  364. package/designer/progress/index.esm.js +0 -213
  365. package/designer/progress/index.umd.cjs +0 -1
  366. package/designer/search-box/index.esm.js +0 -245
  367. package/designer/search-box/index.umd.cjs +0 -1
  368. package/designer/smoke-detector/index.css +0 -1
  369. package/designer/smoke-detector/index.esm.js +0 -178
  370. package/designer/smoke-detector/index.umd.cjs +0 -1
  371. package/designer/sort-condition-editor/index.esm.js +0 -138
  372. package/designer/sort-condition-editor/index.umd.cjs +0 -1
  373. package/designer/splitter/index.esm.js +0 -1120
  374. package/designer/splitter/index.umd.cjs +0 -1
  375. package/designer/step/index.esm.js +0 -226
  376. package/designer/step/index.umd.cjs +0 -1
  377. package/designer/text/index.esm.js +0 -147
  378. package/designer/text/index.umd.cjs +0 -1
  379. package/designer/transfer/index.esm.js +0 -254
  380. package/designer/transfer/index.umd.cjs +0 -1
  381. package/designer/tree-view/index.esm.js +0 -313
  382. package/designer/tree-view/index.umd.cjs +0 -1
  383. package/designer/uploader/index.esm.js +0 -1190
  384. package/designer/uploader/index.umd.cjs +0 -2
  385. package/designer/verify-detail/index.esm.js +0 -258
  386. package/designer/verify-detail/index.umd.cjs +0 -1
  387. package/designer/video/index.esm.js +0 -136
  388. package/designer/video/index.umd.cjs +0 -1
  389. package/designer/weather/index.css +0 -1
  390. package/designer/weather/index.esm.js +0 -6244
  391. package/designer/weather/index.umd.cjs +0 -14
  392. package/types/accordion/designer.d.ts +0 -44
  393. package/types/avatar/designer.d.ts +0 -29
  394. package/types/button-group/designer.d.ts +0 -29
  395. package/types/code-editor/designer.d.ts +0 -5
  396. package/types/color-picker/designer.d.ts +0 -29
  397. package/types/combo-list/designer.d.ts +0 -29
  398. package/types/combo-list/src/designer/combo-list.design.props.d.ts +0 -6
  399. package/types/combo-tree/designer.d.ts +0 -5
  400. package/types/component/designer.d.ts +0 -35
  401. package/types/condition/designer.d.ts +0 -56
  402. package/types/dropdown/designer.d.ts +0 -6
  403. package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +0 -11
  404. package/types/expression-editor/designer.d.ts +0 -9
  405. package/types/filter-condition-editor/designer.d.ts +0 -10
  406. package/types/html-template/designer.d.ts +0 -31
  407. package/types/html-template/src/designer/html-template.design.props.d.ts +0 -9
  408. package/types/image-cropper/designer.d.ts +0 -4
  409. package/types/json-editor/designer.d.ts +0 -5
  410. package/types/menu-lookup/designer.d.ts +0 -5
  411. package/types/nav/designer.d.ts +0 -6
  412. package/types/number-range/designer.d.ts +0 -29
  413. package/types/order/designer.d.ts +0 -6
  414. package/types/page-footer/designer.d.ts +0 -6
  415. package/types/page-header/src/designer/page-header.design.props.d.ts +0 -20
  416. package/types/pagination/designer.d.ts +0 -29
  417. package/types/progress/designer.d.ts +0 -29
  418. package/types/search-box/designer.d.ts +0 -52
  419. package/types/smoke-detector/designer.d.ts +0 -6
  420. package/types/sort-condition-editor/designer.d.ts +0 -9
  421. package/types/splitter/designer.d.ts +0 -32
  422. package/types/step/designer.d.ts +0 -6
  423. package/types/text/designer.d.ts +0 -6
  424. package/types/transfer/designer.d.ts +0 -35
  425. package/types/tree-view/designer.d.ts +0 -29
  426. package/types/uploader/designer.d.ts +0 -141
  427. package/types/verify-detail/designer.d.ts +0 -6
  428. package/types/video/designer.d.ts +0 -6
  429. /package/{designer → components}/condition/index.css +0 -0
  430. /package/{designer → components}/uploader/index.css +0 -0
  431. /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,14 +1,637 @@
1
- import { excludeProperties as Ce, withInstall as he } from "../../components/common/index.esm.js";
2
- import we, { treeGridProps as K } from "../../components/tree-grid/index.esm.js";
3
- import { ref as y, defineComponent as ve, inject as L, computed as k, onMounted as Se, nextTick as Be, watch as q, createVNode as J } from "vue";
4
- import { useResizeObserver as Oe } from "@vueuse/core";
5
- import { resolveAppearance as Pe, createPropsResolver as Q, createTreeGridSelectionItemResolver as Re, createTreeGridBindingResolver as je, createDataViewUpdateColumnsResolver as Ie } from "../../components/dynamic-resolver/index.esm.js";
6
- import { useIdentify as Fe, useFilter as Ge, useHierarchy as Te, useDataView as ke, useSelection as Me, useDataViewContainerStyle as De, useCommandColumn as Ve, useSort as Ae, useGroupColumn as Ne, useRow as Ee, useEdit as He, useVisualDataBound as ze, useVisualDataCell as We, useVisualDataRow as $e, useSidebar as Ue, useVirtualScroll as xe, getHorizontalScrollbar as Le } from "../../components/data-view/index.esm.js";
7
- import { getColumnHeader as qe } from "../data-grid/index.esm.js";
8
- import { DgControl as M, useDesignerComponent as Je } from "../../components/designer-canvas/index.esm.js";
9
- import { BaseControlProperty as Ke } from "../../components/property-panel/index.esm.js";
10
- import { useCommandOption as Qe, useColumnOption as Xe, useRowOption as Ye, useSummary as Ze, useAppearance as _e, useRowNumber as et, usePagination as tt, useDataGridEvent as ot, useDesignerColumn as nt, useDesignerVisualData as it, useDesignerFitColumn as at } from "../data-view/index.esm.js";
11
- const lt = "https://json-schema.org/draft/2020-12/schema", st = "https://farris-design.gitee.io/tree-grid.schema.json", rt = "tree-grid", dt = "A Farris Data Grid Component", pt = "object", ct = {
1
+ import { getCustomClass as Qt, excludeProperties as Xt, withInstall as Zt } from "../../components/common/index.esm.js";
2
+ import { createVNode as P, defineComponent as Te, ref as C, computed as T, onMounted as ke, nextTick as Me, onUnmounted as eo, watch as pe, createTextVNode as to, inject as je } from "vue";
3
+ import { useResizeObserver as Ve } from "@vueuse/core";
4
+ import { isUndefined as L } from "lodash-es";
5
+ import { LocaleService as oo } from "../../components/locale/index.esm.js";
6
+ import { getHierarchyRow as no, useIdentify as He, useGroupData as io, useFilter as xe, useHierarchy as Ne, useLoading as ao, useDataView as Ae, useSelection as Ee, useSelectHierarchyItem as lo, usePagination as ro, useDataViewContainerStyle as ze, useCommandColumn as We, useSettingColumn as so, useColumn as co, useSort as _e, useGroupColumn as $e, useRow as Le, useEdit as Ue, useVisualDataBound as qe, useVisualDataCell as Ye, useVisualDataRow as Je, useVisualData as uo, useCellPosition as po, useSidebar as Ke, useVirtualScroll as Qe, useFitColumn as fo, useFilterHistory as mo, useColumnFilter as yo, useDragColumn as go, getColumnHeader as Co, getSidebar as vo, getDisableMask as ho, getHorizontalScrollbar as Xe, getVerticalScrollbar as bo, getEmpty as wo, getPagination as So, getSummary as Io } from "../../components/data-view/index.esm.js";
7
+ import { resolveAppearance as Ro, createPropsResolver as Ze, createTreeGridSelectionItemResolver as Bo, createTreeGridBindingResolver as Do, createDataViewUpdateColumnsResolver as Oo } from "../../components/dynamic-resolver/index.esm.js";
8
+ import { treeGridProps as et } from "../../components/tree-grid/index.esm.js";
9
+ import { getColumnHeader as Fo } from "../data-grid/index.esm.js";
10
+ import { DgControl as Re, useDesignerComponent as Po } from "../../components/designer-canvas/index.esm.js";
11
+ import { BaseControlProperty as Go } from "../../components/property-panel/index.esm.js";
12
+ import { useCommandOption as jo, useColumnOption as To, useRowOption as ko, useSummary as Mo, useAppearance as Vo, useRowNumber as Ho, usePagination as xo, useDataGridEvent as No, useDesignerColumn as Ao, useDesignerVisualData as Eo, useDesignerFitColumn as zo } from "../data-view/index.esm.js";
13
+ const In = {
14
+ /** 启用分页 */
15
+ enable: { type: Boolean, default: !1 },
16
+ /** 当前页码 */
17
+ index: { type: Number, default: 1 },
18
+ /** 分页交互模式 */
19
+ mode: { type: String, default: "server" },
20
+ /** 显示页码输入框 */
21
+ showGoto: { type: Boolean, default: !1 },
22
+ /** 显示页码 */
23
+ showIndex: { type: Boolean, default: !0 },
24
+ /** 显示每页记录数 */
25
+ showLimits: { type: Boolean, default: !1 },
26
+ /** 显示分页汇总信息 */
27
+ showPageInfo: { type: Boolean, default: !0 },
28
+ /** 默认每页记录数 */
29
+ size: { type: Number, default: 20 },
30
+ /** 可选择的没有记录数据 */
31
+ sizeLimits: { type: Array, default: [10, 20, 30, 50, 100] },
32
+ /** 总记录数 */
33
+ total: { type: Number, default: 0 }
34
+ }, Rn = {
35
+ /** 启用排序 */
36
+ enable: { type: Boolean, default: !1 },
37
+ /** 排序字段集合 */
38
+ fields: { type: Array, default: [] },
39
+ /** 排序交互模式 */
40
+ mode: { type: String, default: "client" },
41
+ /** 多列排序 */
42
+ multiSort: { type: Boolean, default: !1 }
43
+ }, Bn = {
44
+ /** 自定义分组合计内容 */
45
+ customGroupRow: { type: Function, default: () => {
46
+ } },
47
+ /** 自定义分组行样式 */
48
+ customGroupRowStyle: { type: Function, default: () => {
49
+ } },
50
+ /** 自行分组合计行样式 */
51
+ customSummaryStyle: { type: Function, default: () => {
52
+ } },
53
+ /** 启用行数据分组 */
54
+ enable: { type: Boolean, default: !1 },
55
+ /** 分组行合并列数 */
56
+ groupColSpan: { type: Number, default: 1 },
57
+ /** 行数据分组字段;多字段分组以英文逗号分隔 */
58
+ groupFields: { type: Array, default: [] },
59
+ /** 在DataGrid中显示被分组的列 */
60
+ showGroupedColumn: { type: Boolean, default: !0 },
61
+ /** 显示分组面板 */
62
+ showGroupPanel: { type: Boolean, default: !1 },
63
+ /** 启用合计行 */
64
+ showSummary: { type: Boolean, default: !1 },
65
+ /** 显示合计行位置; */
66
+ summaryPosition: { type: String, default: "separate" }
67
+ }, Dn = {
68
+ /** 启用筛选 */
69
+ enable: { type: Boolean, default: !1 },
70
+ /** DataGrid筛选风格 */
71
+ filterStyle: { type: String, default: "filter-column" },
72
+ /** 筛选交互模式 */
73
+ mode: { type: String, default: "server" },
74
+ /** 显示过滤条件工具条 */
75
+ showSummary: { type: Boolean, default: !0 }
76
+ }, On = {
77
+ /** 允许折行显示列标题 */
78
+ wrapHeadings: { type: Boolean, default: !1 }
79
+ }, Fn = {
80
+ /** 自定义行样式 */
81
+ customRowStyle: { type: Function, default: () => {
82
+ } },
83
+ customCellStyle: { type: Function, default: () => {
84
+ } },
85
+ /** 禁止行选中表达式 */
86
+ disable: { type: Function, default: () => {
87
+ } },
88
+ /** 默认行高度为 29px */
89
+ height: { type: Number, default: 28 },
90
+ /** 鼠标滑过行效果 */
91
+ showHovering: { type: Boolean, default: !0 },
92
+ /** 禁止数据折行 */
93
+ wrapContent: { type: Boolean, default: !1 }
94
+ }, Pn = {
95
+ /** 显示合计信息 */
96
+ enable: { type: Boolean, default: !1 },
97
+ /** 合计行自定义样式,对启用合计行模板无效 */
98
+ customSummaryStyle: { type: Function, default: () => {
99
+ } },
100
+ /** 分组合计字段 */
101
+ groupFields: { type: Array, default: [] },
102
+ /** 合计交互模式 */
103
+ mode: { type: String, default: "client" },
104
+ /** 合计行显示位置, top: 顶部 bottom: 底部, both: 顶部与底部同时显示 */
105
+ position: { type: String, default: "bottom" }
106
+ }, Gn = {
107
+ /** 自动列宽。设为true后,所有列将填满表格并不会出现横向滚动条。 */
108
+ fitColumns: { type: Boolean, default: !1 },
109
+ /** 自动适配列宽度模式 */
110
+ fitMode: { type: String, default: "average" },
111
+ groups: { type: Array, defaut: [] },
112
+ /** 允许拖动表头改变列显示顺序 */
113
+ reorderColumn: { type: Boolean, default: !1 },
114
+ /** 允许拖动改变列宽度 */
115
+ resizeColumn: { type: Boolean, default: !0 },
116
+ /** 双击表头列自适应内容宽度 */
117
+ resizeColumnOnDoubleClick: { type: Boolean, default: !0 }
118
+ }, jn = {
119
+ /** 编辑时选中文本 */
120
+ selectOnEditing: { type: Boolean, default: !1 },
121
+ /** 编辑模式; row:整行编辑,cell: 单元格编辑 */
122
+ editMode: { type: String, default: "cell" }
123
+ }, Tn = {
124
+ /** show loading */
125
+ show: { type: Boolean, default: !1 },
126
+ /** message on display when loading */
127
+ message: { type: String, default: `${oo.getLocaleValue("datagrid.loadingMessage")}...` }
128
+ }, Wo = {
129
+ /** 自定义样式 */
130
+ customClass: { type: String, default: "" },
131
+ /** 排序配置 */
132
+ sort: { type: Object },
133
+ /** 筛选配置 */
134
+ filter: { type: Object },
135
+ /** 自动勾选子节点 */
136
+ autoCheckChildren: { type: Boolean, default: !1 },
137
+ /** 列集合 */
138
+ columns: { type: Array, default: [] },
139
+ /** 列配置 */
140
+ columnOption: { type: Object },
141
+ /** 命令列配置选项 */
142
+ commandOption: {
143
+ type: Object,
144
+ default: {
145
+ enable: !1,
146
+ commands: []
147
+ }
148
+ },
149
+ /** 被绑定数据 */
150
+ data: { type: Array, default: [] },
151
+ /** 禁用组件 */
152
+ disabled: { type: Boolean, default: !1 },
153
+ /** 用于控制节点禁用状态的字段 */
154
+ disabledField: { type: String, default: "disabled" },
155
+ /** 用于显示信息的字段 */
156
+ displayField: { type: String, default: "name" },
157
+ /** 允许编辑 */
158
+ editable: { type: Boolean, default: !1 },
159
+ /** 编辑配置 */
160
+ editOption: { type: Object, default: { selectOnEditing: !1, editMode: "cell" } },
161
+ /** 适配父组件尺寸 */
162
+ fit: { type: Boolean, default: !1 },
163
+ /** 列标题配置 */
164
+ header: { type: Object },
165
+ /** 高度 */
166
+ height: { type: Number, default: -1 },
167
+ /** 层级关系配置对象 */
168
+ hierarchy: {
169
+ type: Object,
170
+ default: {
171
+ cascadeOption: {
172
+ autoCancelParent: !0,
173
+ autoCheckChildren: !1,
174
+ autoCheckParent: !1,
175
+ selectionRange: "All"
176
+ },
177
+ parentIdField: "parent"
178
+ }
179
+ },
180
+ /** DataGrid组件唯一标识 */
181
+ id: { type: String, default: "" },
182
+ /** 被绑定数据的标识字段 */
183
+ idField: { type: String, default: "id", require: !0 },
184
+ /** async loading data */
185
+ loadData: { type: Function },
186
+ // 是否展示 loading
187
+ loading: {
188
+ type: Boolean,
189
+ default: !1
190
+ },
191
+ /** 最小高度 */
192
+ minHeight: { type: Number, default: 300 },
193
+ /** 最小宽度 */
194
+ minWidth: { type: Number, default: 400 },
195
+ /** 新建数据 */
196
+ newDataItem: {
197
+ type: Function,
198
+ default: () => {
199
+ }
200
+ },
201
+ /** 分页配置 */
202
+ pagination: {
203
+ type: Object,
204
+ default: {
205
+ enable: !1,
206
+ size: -1
207
+ }
208
+ },
209
+ /** 行号配置 */
210
+ rowNumber: {
211
+ type: Object,
212
+ default: {
213
+ enable: !0,
214
+ width: 36,
215
+ heading: "序号"
216
+ }
217
+ },
218
+ /** 行配置 */
219
+ rowOption: {
220
+ type: Object,
221
+ default: {
222
+ wrapContent: !1
223
+ }
224
+ },
225
+ /** 选择配置 */
226
+ selection: {
227
+ type: Object,
228
+ default: {
229
+ enableSelectRow: !0,
230
+ multiSelect: !1,
231
+ multiSelectMode: "DependOnCheck",
232
+ showCheckbox: !1,
233
+ showSelectAll: !1,
234
+ showSelection: !1
235
+ }
236
+ },
237
+ /** 已选数据标识 */
238
+ selectionValues: { type: Array, default: [] },
239
+ /** 显示边框 */
240
+ showBorder: { type: Boolean, default: !1 },
241
+ /** 显示列头 */
242
+ showHeader: { type: Boolean, default: !0 },
243
+ /** 显示横向行分割线 */
244
+ showHorizontalLines: { type: Boolean, default: !0 },
245
+ /** 显示节点连接线 */
246
+ showLines: { type: Boolean, default: !1 },
247
+ /** 显示配置按钮 */
248
+ showOptions: { type: Boolean, default: !1 },
249
+ /** 显示滚动条 */
250
+ showScrollBar: { type: String, default: "auto" },
251
+ /** 显示设置按钮 */
252
+ showSetting: { type: Boolean, default: !1 },
253
+ /** 显示条纹 */
254
+ showStripe: { type: Boolean, default: !0 },
255
+ /** 显示树节点图标 */
256
+ showTreeNodeIcons: { type: Boolean, default: !1 },
257
+ /** 显示纵向列分割线 */
258
+ showVerticallLines: { type: Boolean, default: !1 },
259
+ /** 树节点图标数据 */
260
+ treeNodeIconsData: { type: [Object, String], default: {} },
261
+ /** 宽度 */
262
+ width: { type: Number, default: -1 },
263
+ /** 启用虚拟渲染 */
264
+ virtualized: { type: Boolean, default: !1 },
265
+ /** 空数据模板 */
266
+ emptyTemplate: { type: Object },
267
+ /** 合计配置 */
268
+ summary: {
269
+ type: Object,
270
+ default: {
271
+ // 默认合计行开启后,后面不展示值,所以默认不开启
272
+ enable: !1,
273
+ groupFields: ["numericField1", "numericField2"]
274
+ }
275
+ },
276
+ /** 自动高度 **/
277
+ autoHeight: { type: Boolean, default: !1 }
278
+ };
279
+ function _o(e, t, f, l, u, s, d, p, r, a, g, m, O, c, B, E, w) {
280
+ const {
281
+ calculateCellPositionInRow: H
282
+ } = s, {
283
+ columnContext: S,
284
+ hasLeftFixedColumn: D,
285
+ hasRightFixedColumn: z
286
+ } = d, {
287
+ gridDataStyle: k,
288
+ leftFixedGridDataStyle: i,
289
+ rightFixedGridDataStyle: W
290
+ } = c, {
291
+ renderDataRow: y
292
+ } = no(e, t, S, w, p, r, a, g, m, O, c, B, E), x = [y];
293
+ function U(h, X) {
294
+ const Z = H(h);
295
+ return w.value.filter((N) => N.visible !== !1).map((N, ee) => x[N.type](N, Z, X, ee));
296
+ }
297
+ function G() {
298
+ return P("div", {
299
+ ref: l,
300
+ class: "fv-grid-content-left-fixed"
301
+ }, [P("div", {
302
+ class: "fv-grid-data",
303
+ style: i.value
304
+ }, [U(S.value.leftColumns.filter((h) => h.visible), "left")])]);
305
+ }
306
+ function ae() {
307
+ return P("div", {
308
+ ref: f,
309
+ class: "fv-grid-content-primary"
310
+ }, [P("div", {
311
+ class: "fv-grid-data",
312
+ style: k.value
313
+ }, [U(S.value.primaryColumns.filter((h) => h.visible), "primary")])]);
314
+ }
315
+ function M() {
316
+ return P("div", {
317
+ ref: u,
318
+ class: "fv-grid-content-right-fixed"
319
+ }, [P("div", {
320
+ class: "fv-grid-data",
321
+ style: W.value
322
+ }, [U(S.value.rightColumns.filter((h) => h.visible), "right")])]);
323
+ }
324
+ function Q() {
325
+ const h = [];
326
+ return D.value && h.push(G()), h.push(ae()), z.value && h.push(M()), h;
327
+ }
328
+ return {
329
+ renderDataArea: Q
330
+ };
331
+ }
332
+ const $o = /* @__PURE__ */ Te({
333
+ name: "FTreeGrid",
334
+ props: Wo,
335
+ emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "unSelectItem", "selectItem", "filterChanged", "sortChanged", "selectionUpdate"],
336
+ setup(e, t) {
337
+ var Fe, Pe;
338
+ const l = ((Fe = e.rowOption) == null ? void 0 : Fe.height) || 28, u = C(20), s = C(e.columns), d = He(e), {
339
+ idField: p
340
+ } = d, r = C(), a = C(), g = C(), m = C(), O = C(), c = C([]), B = C(!1), E = C(((Pe = e.rowOption) == null ? void 0 : Pe.wrapContent) || !1), w = io(e, d), H = xe(e, t), S = Ne(e), {
341
+ collapseField: D
342
+ } = S, {
343
+ showLoading: z,
344
+ renderLoading: k
345
+ } = ao(e, r), i = Ae(e, /* @__PURE__ */ new Map(), H, S, d), {
346
+ dataView: W
347
+ } = i, y = Ee(e, i, d, c, t), {
348
+ showSelection: x,
349
+ selectedValues: U
350
+ } = y, G = lo(e, c, i, d, y, t), ae = T(() => e.disabled), M = T(() => e.virtualized ? Math.min(i.dataView.value.length, u.value) : i.dataView.value.length), Q = ro(e, i), {
351
+ shouldRenderPagination: h
352
+ } = Q, {
353
+ containerStyleObject: X
354
+ } = ze(e), Z = We(e), {
355
+ applyCommands: N
356
+ } = Z;
357
+ N(s);
358
+ const {
359
+ applyColumnSetting: ee,
360
+ removeColumnSetting: fe
361
+ } = so(e);
362
+ e.showSetting && ee(s);
363
+ const _ = co(e, t), le = _e(e), {
364
+ applyColumnSorter: me,
365
+ columnContext: $,
366
+ updateColumnRenderContext: Ce
367
+ } = _;
368
+ me(i, le);
369
+ const te = $e(e, $), A = Le(e, t, y, d), V = Ue(e, t, d, A, c), re = qe(e), ve = Ye(e, V, re), oe = Je(e, i, V, S, d, re, ve), se = uo(e, s, i, M, 0, oe), {
370
+ getVisualData: ne
371
+ } = se, he = po(e, $), de = Ke(e, y), {
372
+ sidebarWidth: be
373
+ } = de, I = Qe(e, i, c, $, se, M, 0, be), {
374
+ onWheel: ye,
375
+ dataGridWidth: ce,
376
+ viewPortHeight: j,
377
+ viewPortWidth: q,
378
+ resetScroll: ie,
379
+ updateVisibleRowsOnLatestVisibleScope: at
380
+ } = I, Be = fo(e, $, a, q, te), {
381
+ calculateColumnsSize: ue
382
+ } = Be, De = mo(), lt = yo(a, O, i, De, I), rt = go(e, t, _, i, te, w, I), st = T(() => {
383
+ const o = {
384
+ "fv-grid": !0,
385
+ "fv-grid-bordered": e.showBorder,
386
+ "fv-grid-horizontal-bordered": e.showHorizontalLines,
387
+ "fv-datagrid-strip": e.showStripe
388
+ };
389
+ return Qt(o, e.customClass);
390
+ }), dt = T(() => ({
391
+ "fv-grid-content": !0,
392
+ "fv-grid-content-hover": B.value,
393
+ "fv-grid-wrap-content": E.value
394
+ })), {
395
+ renderDataArea: ct
396
+ } = _o(e, t, g, m, O, he, _, i, V, S, A, y, G, I, se, re, c), {
397
+ renderGridHeader: ut,
398
+ renderGridColumnResizeOverlay: pt,
399
+ shouldShowHeader: ft
400
+ } = Co(e, t, a, m, O, _, i, rt, lt, H, De, Be, te, y, de, le, I, q, c), {
401
+ renderDataGridSidebar: mt
402
+ } = vo(e, A, y, de, I), {
403
+ renderDisableMask: yt
404
+ } = ho(), {
405
+ renderHorizontalScrollbar: gt
406
+ } = Xe(e, a, I), {
407
+ renderVerticalScrollbar: Ct
408
+ } = bo(e, a, I);
409
+ function vt() {
410
+ var o, n, v;
411
+ if (a.value && a.value.clientHeight > 0 && ((o = a.value) == null ? void 0 : o.clientWidth) > 0) {
412
+ const R = Math.ceil(a.value.clientHeight / l);
413
+ R > u.value && (u.value = R, at()), j.value = ((n = g.value) == null ? void 0 : n.clientHeight) || 0, ce.value = ((v = a.value) == null ? void 0 : v.clientWidth) || 0;
414
+ }
415
+ a.value && (a.value.clientHeight > 0 || a.value.clientWidth > 0) && ue();
416
+ }
417
+ ke(() => {
418
+ a.value && (u.value = Math.max(Math.ceil(a.value.clientHeight / l), u.value), c.value = ne(0, M.value + 0 - 1), Ve(a.value, vt), ue(), Me(() => {
419
+ a.value && (ce.value = a.value.clientWidth), g.value && (q.value = g.value.clientWidth, j.value = g.value.clientHeight);
420
+ })), z.value && k();
421
+ }), eo(() => {
422
+ }), pe(q, () => {
423
+ a.value && ue();
424
+ });
425
+ function ht(o) {
426
+ i.collapseTo(o), i.reOrderVisibleIndex(), ie();
427
+ }
428
+ function bt(o) {
429
+ i.expandTo(o), i.reOrderVisibleIndex(), ie();
430
+ }
431
+ function we() {
432
+ const o = y.getSelectionRow();
433
+ return o ? o.dataIndex - 1 : -1;
434
+ }
435
+ function wt(o) {
436
+ const n = o !== void 0 ? o : we(), v = i.insertNewDataItem(n === -1 ? 0 : n);
437
+ return c.value = ne(0, M.value + 0 - 1), v;
438
+ }
439
+ function St() {
440
+ const o = we();
441
+ i.insertNewChildDataItem(o), c.value = ne(0, M.value + 0 - 1);
442
+ }
443
+ function It(o, n) {
444
+ const v = c.value.find((F) => F.raw[p.value] === n), R = v ? v.dataIndex - 1 : -1;
445
+ i.insertNewChildDataItems(o, R);
446
+ }
447
+ function Rt() {
448
+ const o = we(), n = G.getNextSelectableHierarchyItemId(o);
449
+ i.removeHierarchyDataItem(o), c.value = ne(0, M.value + 0 - 1), n && G.selectItemById(n);
450
+ }
451
+ function Bt(o) {
452
+ V.onEditingRow(o);
453
+ }
454
+ function Dt(o) {
455
+ V.acceptEditingRow(o);
456
+ }
457
+ function Ot(o) {
458
+ V.cancelEditingRow(o);
459
+ }
460
+ function Se(o) {
461
+ o && (s.value = o, N(s), Ce(s.value), me(i, le), ue());
462
+ }
463
+ pe(() => e.columns, (o) => {
464
+ Se(o);
465
+ });
466
+ function Ft(o, n) {
467
+ o && (i.load(o), i.reOrderVisibleIndex(), n != null && n.keepScrollPosition ? I.scrollTo(I.offsetY.value) : ie());
468
+ }
469
+ function Ie(o) {
470
+ A.activeRowById(o);
471
+ }
472
+ function Pt(o, n = {
473
+ isCurrent: !0
474
+ }) {
475
+ n != null && n.isCurrent && Ie(o), G.selectItemById(o);
476
+ }
477
+ function Gt(o) {
478
+ const n = c.value.find((v) => v.raw[d.idField.value] === o);
479
+ n && A.clickRowItem(n);
480
+ }
481
+ function jt(o) {
482
+ G.selectItemByIds(o);
483
+ }
484
+ function Tt() {
485
+ return y.getSelectedItems();
486
+ }
487
+ function Oe() {
488
+ y.clearSelection();
489
+ }
490
+ function kt() {
491
+ y.emptyCurrentRowId();
492
+ }
493
+ const Mt = T(() => !c.value || !c.value.length), {
494
+ renderEmpty: Vt
495
+ } = wo(e, t);
496
+ function Ht() {
497
+ return y.getSelectionRow();
498
+ }
499
+ function xt(o, n = {
500
+ clearCurrent: !0
501
+ }) {
502
+ n != null && n.clearCurrent && Ie(""), G.unSelectItemByIds(o);
503
+ }
504
+ function Nt() {
505
+ return y.currentSelectedDataId.value;
506
+ }
507
+ function At(o, n, v) {
508
+ const R = W.value.find((F) => F[p.value] === o);
509
+ if (R) {
510
+ if (Object.keys(R).forEach((b) => {
511
+ Object.prototype.hasOwnProperty.call(n, b) && (R[b] = n[b]);
512
+ }), v) {
513
+ const {
514
+ collapseField: b,
515
+ disabledField: Y,
516
+ checkedField: J,
517
+ visibleField: K
518
+ } = v;
519
+ b && !L(n[b]) && (R.__fv_collapse__ = n[b]), J && !L(n[J]) && (R.__fv_checked__ = n[J]), Y && !L(n[Y]) && (R.__fv_disabled__ = n[Y]), K && !L(n[K]) && (R.__fv_visible__ = n[K]);
520
+ }
521
+ const F = c.value.find((b) => b.raw[p.value] === o), Ge = c.value.findIndex((b) => b.raw[p.value] === o);
522
+ if (F) {
523
+ if (F.raw = R, Object.keys(F.data).forEach((b) => {
524
+ F.data[b].updateData(R);
525
+ }), v) {
526
+ const {
527
+ collapseField: b,
528
+ disabledField: Y,
529
+ checkedField: J,
530
+ visibleField: K
531
+ } = v;
532
+ b && !L(n[b]) && (F.collapse = n[b]), J && !L(n[J]) && (F.checked = n[J]), Y && !L(n[Y]) && (F.disabled = n[Y]), K && !L(n[K]) && (F.visible = n[K]);
533
+ }
534
+ c.value = [...c.value.slice(0, Ge), F, ...c.value.slice(Ge + 1)], i.updateSummary();
535
+ }
536
+ }
537
+ }
538
+ function Et(o) {
539
+ return Object.prototype.hasOwnProperty.call(o, "raw") ? i.hasRealChildren(o.raw) : i.hasRealChildren(o);
540
+ }
541
+ function zt(o) {
542
+ const n = i.dataView.value.find((v) => v[p.value] === o);
543
+ return n ? n[D.value] : "";
544
+ }
545
+ function Wt() {
546
+ return D.value;
547
+ }
548
+ pe(() => e.showSetting, (o, n) => {
549
+ o !== n && (o ? ee(s) : fe(s), Se(s.value));
550
+ });
551
+ function _t(o) {
552
+ return c.value.filter((n) => o.includes(n.raw[e.idField]));
553
+ }
554
+ function $t(o) {
555
+ const n = d.idField.value, v = c.value.find((R) => R.raw[n] === o);
556
+ v && A.changeRow(v);
557
+ }
558
+ function Lt() {
559
+ y.keepSelectingOnPaging.value || Oe(), i.updateVisibleDataSummary(c.value);
560
+ }
561
+ t.expose({
562
+ activeRowById: Ie,
563
+ addNewDataItem: wt,
564
+ addNewChildDataItem: St,
565
+ addChildrenToNode: It,
566
+ collapseTo: ht,
567
+ expandTo: bt,
568
+ removeDataItem: Rt,
569
+ editDataItem: Bt,
570
+ acceptDataItem: Dt,
571
+ cancelDataItem: Ot,
572
+ updateColumns: Se,
573
+ updateDataSource: Ft,
574
+ selectItemById: Pt,
575
+ selectItemByIds: jt,
576
+ getSelectedItems: Tt,
577
+ clearSelection: Oe,
578
+ getSelectionRow: Ht,
579
+ clickRowItemById: Gt,
580
+ unSelectItemByIds: xt,
581
+ getCurrentRowId: Nt,
582
+ reassignRowData: At,
583
+ hasChildren: Et,
584
+ getCollapseField: Wt,
585
+ getCollapseStatusById: zt,
586
+ getVisibleDataByIds: _t,
587
+ selectRowById: $t,
588
+ updateDerivedData: Lt,
589
+ emptyCurrentRowId: kt,
590
+ calculateColumnsSize: ue
591
+ });
592
+ const Ut = T(() => {
593
+ const o = {};
594
+ return I.shouldShowHorizontalScrollbar.value && (o.paddingBottom = "10px"), I.shouldShowVirticalScrollbar.value && (o.paddingRight = "10px"), o;
595
+ }), qt = T(() => ({
596
+ ...X.value,
597
+ borderRadius: "5px"
598
+ })), {
599
+ renderDataGridPagination: cn
600
+ } = So(e, t, i, I, Q, y), Yt = T(() => ({
601
+ "d-flex": !0,
602
+ "justify-content-between": h.value && x.value,
603
+ "justify-content-end": h.value && !x.value,
604
+ "position-relative": !0
605
+ })), Jt = T(() => ({
606
+ "d-flex": !0,
607
+ "align-items-center": !0
608
+ })), {
609
+ renderDataGridSummary: Kt
610
+ } = Io(e, i, _);
611
+ return () => P("div", {
612
+ ref: r,
613
+ class: st.value,
614
+ style: qt.value,
615
+ onWheel: ye
616
+ }, [a.value && ft.value && ut(), P("div", {
617
+ ref: a,
618
+ class: dt.value,
619
+ onMouseover: () => B.value = !0,
620
+ onMouseleave: () => B.value = !1,
621
+ onTouchstart: (o) => {
622
+ o.stopPropagation(), B.value = !0, I.onTouchstartScrollThumb(o, a);
623
+ },
624
+ onTouchend: (o) => {
625
+ B.value = !1;
626
+ },
627
+ style: Ut.value
628
+ }, [a.value && mt(c), a.value && ct(), a.value && Mt.value && Vt(), a.value && gt(), a.value && Ct()]), a.value && Kt(), x.value && P("div", {
629
+ class: Yt.value
630
+ }, [x.value && P("div", {
631
+ class: Jt.value
632
+ }, [P("div", null, ["已选:" + U.value.length, to(" 条")])])]), pt(), ae.value && yt()]);
633
+ }
634
+ }), Lo = "https://json-schema.org/draft/2020-12/schema", Uo = "https://farris-design.gitee.io/tree-grid.schema.json", qo = "tree-grid", Yo = "A Farris Data Grid Component", Jo = "object", Ko = {
12
635
  id: {
13
636
  description: "The unique identifier for a Input Group",
14
637
  type: "string"
@@ -820,63 +1443,63 @@ const lt = "https://json-schema.org/draft/2020-12/schema", st = "https://farris-
820
1443
  type: "string",
821
1444
  default: ""
822
1445
  }
823
- }, ut = [
1446
+ }, Qo = [
824
1447
  "id",
825
1448
  "type",
826
1449
  "columns"
827
- ], ft = {
1450
+ ], Xo = {
828
1451
  onSelectionChange: "行切换事件",
829
1452
  onClickRow: "行点击事件",
830
1453
  onDoubleClickRow: "行双击事件",
831
1454
  onFilterChanged: "过滤事件",
832
1455
  onClickEditCommand: "操作列编辑事件",
833
1456
  onClickDeleteCommand: "操作列删除事件"
834
- }, X = {
835
- $schema: lt,
836
- $id: st,
837
- title: rt,
838
- description: dt,
839
- type: pt,
840
- properties: ct,
841
- required: ut,
842
- events: ft
843
- }, Y = /* @__PURE__ */ new Map([
844
- ["appearance", Pe],
1457
+ }, tt = {
1458
+ $schema: Lo,
1459
+ $id: Uo,
1460
+ title: qo,
1461
+ description: Yo,
1462
+ type: Jo,
1463
+ properties: Ko,
1464
+ required: Qo,
1465
+ events: Xo
1466
+ }, ot = /* @__PURE__ */ new Map([
1467
+ ["appearance", Ro],
845
1468
  ["column", "columnOption"],
846
1469
  ["command", "commandOption"]
847
1470
  ]);
848
- function yt(t, e, i) {
849
- var d;
850
- const o = i.parentComponentInstance, a = o.schema.type, s = String(((d = o.schema.appearance) == null ? void 0 : d.class) || "").split(" "), r = a === "section" || a === "tab-page", l = s.includes("f-page-content-nav"), n = s.includes("f-page-main"), c = t.getSchemaByType("component");
851
- c.id = `${e.id}-component`, c.componentType = "data-grid";
852
- let u = "";
853
- return u += r ? "f-struct-data-grid-in-card f-struct-is-subgrid" : "", u += l ? "f-struct-data-grid-in-nav f-struct-wrapper f-utils-fill-flex-column" : "", u += n ? "f-struct-data-grid f-struct-wrapper" : "", c.appearance = {
854
- class: u
855
- }, c.contents = [e], c;
1471
+ function Zo(e, t, f) {
1472
+ var m;
1473
+ const l = f.parentComponentInstance, u = l.schema.type, s = String(((m = l.schema.appearance) == null ? void 0 : m.class) || "").split(" "), d = u === "section" || u === "tab-page", p = s.includes("f-page-content-nav"), r = s.includes("f-page-main"), a = e.getSchemaByType("component");
1474
+ a.id = `${t.id}-component`, a.componentType = "data-grid";
1475
+ let g = "";
1476
+ return g += d ? "f-struct-data-grid-in-card f-struct-is-subgrid" : "", g += p ? "f-struct-data-grid-in-nav f-struct-wrapper f-utils-fill-flex-column" : "", g += r ? "f-struct-data-grid f-struct-wrapper" : "", a.appearance = {
1477
+ class: g
1478
+ }, a.contents = [t], a;
856
1479
  }
857
- function mt(t, e, i) {
858
- const o = i.parentComponentInstance, a = String(o.schema.appearance.class || "").split(" "), s = a.includes("f-page-content-nav"), r = a.includes("f-page-main"), l = t.getSchemaByType("section");
859
- l.id = `${e.id}-section`;
860
- let n = "";
861
- return n += s ? "f-section-in-nav " : "", n += r ? "f-section-in-managelist " : "", n += "f-section-grid", l.appearance = { class: n }, l.contents = [e], l;
1480
+ function en(e, t, f) {
1481
+ const l = f.parentComponentInstance, u = String(l.schema.appearance.class || "").split(" "), s = u.includes("f-page-content-nav"), d = u.includes("f-page-main"), p = e.getSchemaByType("section");
1482
+ p.id = `${t.id}-section`;
1483
+ let r = "";
1484
+ return r += s ? "f-section-in-nav " : "", r += d ? "f-section-in-managelist " : "", r += "f-section-grid", p.appearance = { class: r }, p.contents = [t], p;
862
1485
  }
863
- function gt(t, e, i) {
864
- const o = t.getSchemaByType("content-container");
865
- return o.id = `${e.id}-layout`, o.appearance = { class: "f-grid-is-sub f-utils-flex-column" }, o.contents = [e], o;
1486
+ function tn(e, t, f) {
1487
+ const l = e.getSchemaByType("content-container");
1488
+ return l.id = `${t.id}-layout`, l.appearance = { class: "f-grid-is-sub f-utils-flex-column" }, l.contents = [t], l;
866
1489
  }
867
- function Z(t, e, i) {
868
- const a = i.parentComponentInstance.schema.type, s = a === "section" || a === "tab-page";
869
- e.appearance = { class: "f-component-grid" };
870
- const l = (s ? gt : mt)(t, e, i);
871
- return yt(t, l, i);
1490
+ function nt(e, t, f) {
1491
+ const u = f.parentComponentInstance.schema.type, s = u === "section" || u === "tab-page";
1492
+ t.appearance = { class: "f-component-grid" };
1493
+ const p = (s ? tn : en)(e, t, f);
1494
+ return Zo(e, p, f);
872
1495
  }
873
- const bt = Q(K, X, Y, Z), Ct = Re(), ht = je(), _ = Ce(Object.assign({}, K, { componentId: { type: String, default: "" } }), "columnOption", "commandOption"), wt = Q(_, X, Y, Z), vt = Ie();
874
- class St extends Ke {
875
- constructor(e, i) {
876
- super(e, i);
1496
+ const on = Ze(et, tt, ot, nt), nn = Bo(), an = Do(), it = Xt(Object.assign({}, et, { componentId: { type: String, default: "" } }), "columnOption", "commandOption"), ln = Ze(it, tt, ot, nt), rn = Oo();
1497
+ class sn extends Go {
1498
+ constructor(t, f) {
1499
+ super(t, f);
877
1500
  }
878
- getPropertyConfig(e) {
879
- return this.getBasicPropConfig(e), this.getAppearanceProperties(e), this.propertyConfig.categories.command = Qe(this).getCommandColumnProperties(e), this.propertyConfig.categories.column = Xe().getColumnOptionProperties(e), this.propertyConfig.categories.rowOption = Ye().getRowOptionProperties(e), this.propertyConfig.categories.summary = Ze().getSummaryProperties(e), this.propertyConfig.categories.filter = {
1501
+ getPropertyConfig(t) {
1502
+ return this.getBasicPropConfig(t), this.getAppearanceProperties(t), this.propertyConfig.categories.command = jo(this).getCommandColumnProperties(t), this.propertyConfig.categories.column = To().getColumnOptionProperties(t), this.propertyConfig.categories.rowOption = ko().getRowOptionProperties(t), this.propertyConfig.categories.summary = Mo().getSummaryProperties(t), this.propertyConfig.categories.filter = {
880
1503
  title: "过滤",
881
1504
  description: "",
882
1505
  properties: {
@@ -892,11 +1515,11 @@ class St extends Ke {
892
1515
  }
893
1516
  }
894
1517
  }
895
- }, this.getEventPropConfig(e), this.propertyConfig;
1518
+ }, this.getEventPropConfig(t), this.propertyConfig;
896
1519
  }
897
- getBasicPropConfig(e) {
898
- var r, l, n;
899
- const i = (n = (l = (r = this.formSchemaUtils.getFormSchema()) == null ? void 0 : r.module) == null ? void 0 : l.entity[0]) == null ? void 0 : n.entities[0], o = this.assembleSchemaEntityToTree(i, 0), a = this, s = super.getBasicPropConfig(e);
1520
+ getBasicPropConfig(t) {
1521
+ var d, p, r;
1522
+ const f = (r = (p = (d = this.formSchemaUtils.getFormSchema()) == null ? void 0 : d.module) == null ? void 0 : p.entity[0]) == null ? void 0 : r.entities[0], l = this.assembleSchemaEntityToTree(f, 0), u = this, s = super.getBasicPropConfig(t);
900
1523
  this.propertyConfig.categories.basic = {
901
1524
  description: "Basic Information",
902
1525
  title: "基本信息",
@@ -909,32 +1532,32 @@ class St extends Ke {
909
1532
  type: "combo-tree",
910
1533
  textField: "name",
911
1534
  valueField: "label",
912
- data: o,
1535
+ data: l,
913
1536
  editable: !1
914
1537
  },
915
1538
  readonly: !0
916
1539
  }
917
1540
  },
918
- setPropertyRelates(c, u) {
919
- switch (c && c.propertyID) {
1541
+ setPropertyRelates(a, g) {
1542
+ switch (a && a.propertyID) {
920
1543
  case "dataSource": {
921
- const d = a.formSchemaUtils.getViewModelById(a.viewModelId);
922
- if (d) {
923
- const b = o.find((h) => h.label === c.propertyValue);
924
- d.bindTo = b.bindTo;
1544
+ const m = u.formSchemaUtils.getViewModelById(u.viewModelId);
1545
+ if (m) {
1546
+ const O = l.find((c) => c.label === a.propertyValue);
1547
+ m.bindTo = O.bindTo;
925
1548
  }
926
- a.designViewModelUtils.assembleDesignViewModel();
1549
+ u.designViewModelUtils.assembleDesignViewModel();
927
1550
  break;
928
1551
  }
929
1552
  }
930
1553
  }
931
1554
  };
932
1555
  }
933
- getAppearanceProperties(e) {
934
- this.propertyConfig.categories.appearance = _e().getDataGrid(e, this.viewModelId), this.propertyConfig.categories.rowNumber = et().getRowNumber(e), this.propertyConfig.categories.pagination = tt().getPagination(e, !0);
1556
+ getAppearanceProperties(t) {
1557
+ this.propertyConfig.categories.appearance = Vo().getDataGrid(t, this.viewModelId), this.propertyConfig.categories.rowNumber = Ho().getRowNumber(t), this.propertyConfig.categories.pagination = xo().getPagination(t, !0);
935
1558
  }
936
- getEventPropConfig(e) {
937
- const i = ot().initEvent(e), o = this, a = o.eventsEditorUtils.formProperties(e, o.viewModelId, i), s = o.createBaseEventProperty(a);
1559
+ getEventPropConfig(t) {
1560
+ const f = No().initEvent(t), l = this, u = l.eventsEditorUtils.formProperties(t, l.viewModelId, f), s = l.createBaseEventProperty(u);
938
1561
  this.propertyConfig.categories.eventsEditor = {
939
1562
  title: "事件",
940
1563
  hideTitle: !0,
@@ -943,444 +1566,179 @@ class St extends Ke {
943
1566
  refreshPanelAfterChanged: !0,
944
1567
  tabId: "commands",
945
1568
  tabName: "交互",
946
- setPropertyRelates(r, l) {
947
- const n = r.propertyValue;
948
- delete e[o.viewModelId], n && (n.setPropertyRelates = this.setPropertyRelates, o.eventsEditorUtils.saveRelatedParameters(e, o.viewModelId, n.events, n)), e.remoteSort = !!e.columnSorted, e.command && (e.command.onClickEditCommand = e.onClickEditCommand, e.command.onClickDeleteCommand = e.onClickDeleteCommand, e.command.onHandleAction = e.onHandleAction);
1569
+ setPropertyRelates(d, p) {
1570
+ const r = d.propertyValue;
1571
+ delete t[l.viewModelId], r && (r.setPropertyRelates = this.setPropertyRelates, l.eventsEditorUtils.saveRelatedParameters(t, l.viewModelId, r.events, r)), t.remoteSort = !!t.columnSorted, t.command && (t.command.onClickEditCommand = t.onClickEditCommand, t.command.onClickDeleteCommand = t.onClickDeleteCommand, t.command.onHandleAction = t.onHandleAction);
949
1572
  }
950
1573
  };
951
1574
  }
952
1575
  /**
953
1576
  * 将schema实体表组装成树
954
1577
  */
955
- assembleSchemaEntityToTree(e, i, o, a = "", s = []) {
956
- const r = a ? `${a}/${e.label}` : "/";
1578
+ assembleSchemaEntityToTree(t, f, l, u = "", s = []) {
1579
+ const d = u ? `${u}/${t.label}` : "/";
957
1580
  return s.push({
958
- id: e.id,
959
- name: e.name,
960
- label: e.label,
961
- layer: i,
962
- parent: o && o.id,
963
- bindTo: r.replace("//", "/")
964
- }), e.type.entities && e.type.entities.length && e.type.entities.map((l) => this.assembleSchemaEntityToTree(l, i + 1, e, r, s)), s;
1581
+ id: t.id,
1582
+ name: t.name,
1583
+ label: t.label,
1584
+ layer: f,
1585
+ parent: l && l.id,
1586
+ bindTo: d.replace("//", "/")
1587
+ }), t.type.entities && t.type.entities.length && t.type.entities.map((p) => this.assembleSchemaEntityToTree(p, f + 1, t, d, s)), s;
965
1588
  }
966
1589
  }
967
- function Bt(t, e) {
968
- const i = t.schema, o = y(!0), a = y(!0);
969
- function s(d) {
970
- return d && d.sourceType === "control" ? d.componentCategory === "input" : !1;
1590
+ function dn(e, t) {
1591
+ const f = e.schema, l = C(!0), u = C(!0);
1592
+ function s(m) {
1593
+ return m && m.sourceType === "control" ? m.componentCategory === "input" : !1;
971
1594
  }
972
- function r() {
1595
+ function d() {
973
1596
  return !1;
974
1597
  }
975
- function l() {
1598
+ function p() {
976
1599
  return !1;
977
1600
  }
978
- function n() {
1601
+ function r() {
979
1602
  return !0;
980
1603
  }
981
- function c(d) {
982
- return new St(d, e).getPropertyConfig(i);
1604
+ function a(m) {
1605
+ return new sn(m, t).getPropertyConfig(f);
983
1606
  }
984
- function u() {
985
- var d, b, h, C;
986
- if (t && e) {
987
- const S = (d = t == null ? void 0 : t.componentInstance) == null ? void 0 : d.value.belongedComponentId;
988
- let f = "", B = "";
989
- const { formSchemaUtils: w } = e;
990
- if (S) {
991
- const O = w.getRootViewModelId(), v = w.getComponentByViewModelId(O), p = w.selectNode(v, (P) => P.contents && P.contents.find((R) => R.component === S));
992
- (p == null ? void 0 : p.type) === ((b = M["tab-page"]) == null ? void 0 : b.type) && ((h = p == null ? void 0 : p.contents) != null && h.length) && (f = p.title || ""), (p == null ? void 0 : p.type) === ((C = M.section) == null ? void 0 : C.type) && (p == null ? void 0 : p.showHeader) !== !1 && (f = p.mainTitle || ""), f = f ? `${f} > ` : "", B = f ? p.id : "";
1607
+ function g() {
1608
+ var m, O, c, B;
1609
+ if (e && t) {
1610
+ const E = (m = e == null ? void 0 : e.componentInstance) == null ? void 0 : m.value.belongedComponentId;
1611
+ let w = "", H = "";
1612
+ const { formSchemaUtils: S } = t;
1613
+ if (E) {
1614
+ const z = S.getRootViewModelId(), k = S.getComponentByViewModelId(z), i = S.selectNode(k, (W) => W.contents && W.contents.find((y) => y.component === E));
1615
+ (i == null ? void 0 : i.type) === ((O = Re["tab-page"]) == null ? void 0 : O.type) && ((c = i == null ? void 0 : i.contents) != null && c.length) && (w = i.title || ""), (i == null ? void 0 : i.type) === ((B = Re.section) == null ? void 0 : B.type) && (i == null ? void 0 : i.showHeader) !== !1 && (w = i.mainTitle || ""), w = w ? `${w} > ` : "", H = w ? i.id : "";
993
1616
  }
994
- const m = M["tree-grid"].name;
995
- e == null || e.formSchemaUtils.getControlBasicInfoMap().set(t.schema.id, {
996
- componentTitle: m,
997
- parentPathName: `${f}${m}`,
998
- reliedComponentId: B
1617
+ const D = Re["tree-grid"].name;
1618
+ t == null || t.formSchemaUtils.getControlBasicInfoMap().set(e.schema.id, {
1619
+ componentTitle: D,
1620
+ parentPathName: `${w}${D}`,
1621
+ reliedComponentId: H
999
1622
  });
1000
1623
  }
1001
1624
  }
1002
1625
  return {
1003
1626
  canAccepts: s,
1004
- checkCanDeleteComponent: r,
1005
- checkCanMoveComponent: l,
1006
- hideNestedPaddingInDesginerView: n,
1007
- triggerBelongedComponentToMoveWhenMoved: o,
1008
- triggerBelongedComponentToDeleteWhenDeleted: a,
1009
- getPropsConfig: c,
1010
- setComponentBasicInfoMap: u
1627
+ checkCanDeleteComponent: d,
1628
+ checkCanMoveComponent: p,
1629
+ hideNestedPaddingInDesginerView: r,
1630
+ triggerBelongedComponentToMoveWhenMoved: l,
1631
+ triggerBelongedComponentToDeleteWhenDeleted: u,
1632
+ getPropsConfig: a,
1633
+ setComponentBasicInfoMap: g
1011
1634
  };
1012
1635
  }
1013
- const I = /* @__PURE__ */ ve({
1636
+ const ge = /* @__PURE__ */ Te({
1014
1637
  name: "FTreeGridDesign",
1015
- props: _,
1638
+ props: it,
1016
1639
  emits: [],
1017
- setup(t, e) {
1018
- var W, $;
1019
- const i = y(), o = 0, a = ((W = t.rowOption) == null ? void 0 : W.height) || 28, s = y(20), r = y(t.columns), l = Fe(t), n = y(), c = y(), u = y([]), d = y(!1), b = y((($ = t.rowOption) == null ? void 0 : $.wrapContent) || !1), h = L("designer-host-service"), C = L("design-item-context"), S = Bt(C, h), f = Je(i, C, S);
1020
- f.value.designerClass = "f-utils-fill-flex-column";
1021
- const B = Ge(t, e), w = Te(t), m = ke(t, /* @__PURE__ */ new Map(), B, w, l), O = Me(t, m, l, u, e), v = k(() => m.dataView.value.length), {
1022
- containerStyleObject: p
1023
- } = De(t), P = Ve(t), {
1024
- applyCommands: R
1025
- } = P;
1026
- R(r);
1027
- const D = nt(t), {
1028
- applyColumnSorter: ee,
1029
- columnContext: F,
1030
- updateColumnRenderContext: te
1031
- } = D, oe = Ae(t), ne = Ne(t, F), ie = Ee(t, e, O, l), V = He(t, e, l, ie, u), A = ze(t), ae = We(t, V, A), le = $e(t, m, V, w, l, A, ae), N = it(t, r, m, v, o, le), {
1032
- getVisualData: E
1033
- } = N, se = Ue(t, O), {
1034
- sidebarWidth: re
1035
- } = se;
1036
- u.value = E(0, v.value + o - 1);
1037
- const G = xe(t, m, u, F, N, v, o, re), {
1038
- onWheel: de,
1039
- dataGridWidth: H,
1040
- viewPortHeight: z,
1041
- viewPortWidth: T,
1042
- updateVisibleRowsOnLatestVisibleScope: pe
1043
- } = G, ce = at(t, F, n, T, ne), {
1044
- calculateColumnsSize: j
1045
- } = ce, ue = k(() => ({
1640
+ setup(e, t) {
1641
+ var ye, ce;
1642
+ const f = C(), l = 0, u = ((ye = e.rowOption) == null ? void 0 : ye.height) || 28, s = C(20), d = C(e.columns), p = He(e), r = C(), a = C(), g = C([]), m = C(!1), O = C(((ce = e.rowOption) == null ? void 0 : ce.wrapContent) || !1), c = je("designer-host-service"), B = je("design-item-context"), E = dn(B, c), w = Po(f, B, E);
1643
+ w.value.designerClass = "f-utils-fill-flex-column";
1644
+ const H = xe(e, t), S = Ne(e), D = Ae(e, /* @__PURE__ */ new Map(), H, S, p), z = Ee(e, D, p, g, t), k = T(() => D.dataView.value.length), {
1645
+ containerStyleObject: i
1646
+ } = ze(e), W = We(e), {
1647
+ applyCommands: y
1648
+ } = W;
1649
+ y(d);
1650
+ const x = Ao(e), {
1651
+ applyColumnSorter: U,
1652
+ columnContext: G,
1653
+ updateColumnRenderContext: ae
1654
+ } = x, M = _e(e), Q = $e(e, G), h = Le(e, t, z, p), X = Ue(e, t, p, h, g), Z = qe(e), N = Ye(e, X, Z), ee = Je(e, D, X, S, p, Z, N), fe = Eo(e, d, D, k, l, ee), {
1655
+ getVisualData: _
1656
+ } = fe, le = Ke(e, z), {
1657
+ sidebarWidth: me
1658
+ } = le;
1659
+ g.value = _(0, k.value + l - 1);
1660
+ const $ = Qe(e, D, g, G, fe, k, l, me), {
1661
+ onWheel: Ce,
1662
+ dataGridWidth: te,
1663
+ viewPortHeight: A,
1664
+ viewPortWidth: V,
1665
+ updateVisibleRowsOnLatestVisibleScope: re
1666
+ } = $, ve = zo(e, G, r, V, Q), {
1667
+ calculateColumnsSize: oe
1668
+ } = ve, se = T(() => ({
1046
1669
  "drag-container": !0,
1047
1670
  "fv-grid": !0,
1048
- "fv-grid-bordered": t.showBorder,
1049
- "fv-datagrid-strip": t.showStripe
1050
- })), fe = k(() => ({
1671
+ "fv-grid-bordered": e.showBorder,
1672
+ "fv-datagrid-strip": e.showStripe
1673
+ })), ne = T(() => ({
1051
1674
  "fv-grid-content": !0,
1052
- "fv-grid-content-hover": d.value,
1053
- "fv-grid-wrap-content": b.value
1675
+ "fv-grid-content-hover": m.value,
1676
+ "fv-grid-wrap-content": O.value
1054
1677
  })), {
1055
- renderGridHeader: ye
1056
- } = qe(C, t, D, G, "tree-grid-column"), {
1057
- renderHorizontalScrollbar: me
1058
- } = Le(t, n, G);
1059
- function ge() {
1060
- var U, x;
1061
- const g = Math.ceil(n.value.clientHeight / a);
1062
- g > s.value && (s.value = g, pe()), z.value = ((U = c.value) == null ? void 0 : U.clientHeight) || 0, H.value = ((x = n.value) == null ? void 0 : x.clientWidth) || 0, j();
1678
+ renderGridHeader: he
1679
+ } = Fo(B, e, x, $, "tree-grid-column"), {
1680
+ renderHorizontalScrollbar: de
1681
+ } = Xe(e, r, $);
1682
+ function be() {
1683
+ var q, ie;
1684
+ const j = Math.ceil(r.value.clientHeight / u);
1685
+ j > s.value && (s.value = j, re()), A.value = ((q = a.value) == null ? void 0 : q.clientHeight) || 0, te.value = ((ie = r.value) == null ? void 0 : ie.clientWidth) || 0, oe();
1063
1686
  }
1064
- Se(() => {
1065
- i.value.componentInstance = f, n.value && (s.value = Math.max(Math.ceil(n.value.clientHeight / a), s.value), u.value = E(0, v.value + o - 1), Oe(n.value, ge), j(), Be(() => {
1066
- n.value && (H.value = n.value.clientWidth), c.value && (T.value = c.value.clientWidth, z.value = c.value.clientHeight);
1687
+ ke(() => {
1688
+ f.value.componentInstance = w, r.value && (s.value = Math.max(Math.ceil(r.value.clientHeight / u), s.value), g.value = _(0, k.value + l - 1), Ve(r.value, be), oe(), Me(() => {
1689
+ r.value && (te.value = r.value.clientWidth), a.value && (V.value = a.value.clientWidth, A.value = a.value.clientHeight);
1067
1690
  }));
1068
1691
  });
1069
- function be(g) {
1070
- g && (r.value = g, R(r), te(r.value), ee(m, oe), j());
1692
+ function I(j) {
1693
+ j && (d.value = j, y(d), ae(d.value), U(D, M), oe());
1071
1694
  }
1072
- return q(() => t.columns, (g) => {
1073
- be(g);
1074
- }), q(T, () => {
1075
- n.value && j();
1076
- }), e.expose(f.value), () => J("div", {
1077
- ref: i,
1078
- class: ue.value,
1079
- style: p.value,
1080
- onWheel: de,
1081
- dragref: `${C.schema.id}-container`
1082
- }, [n.value && ye(), J("div", {
1083
- ref: n,
1084
- class: fe.value,
1695
+ return pe(() => e.columns, (j) => {
1696
+ I(j);
1697
+ }), pe(V, () => {
1698
+ r.value && oe();
1699
+ }), t.expose(w.value), () => P("div", {
1700
+ ref: f,
1701
+ class: se.value,
1702
+ style: i.value,
1703
+ onWheel: Ce,
1704
+ dragref: `${B.schema.id}-container`
1705
+ }, [r.value && he(), P("div", {
1706
+ ref: r,
1707
+ class: ne.value,
1085
1708
  onMouseover: () => {
1086
- d.value = !0;
1709
+ m.value = !0;
1087
1710
  },
1088
1711
  onMouseleave: () => {
1089
- d.value = !1;
1712
+ m.value = !1;
1090
1713
  }
1091
- }, [me()])]);
1714
+ }, [de()])]);
1092
1715
  }
1093
- }), Dt = {
1094
- /** 启用分页 */
1095
- enable: { type: Boolean, default: !1 },
1096
- /** 当前页码 */
1097
- index: { type: Number, default: 1 },
1098
- /** 分页交互模式 */
1099
- mode: { type: String, default: "server" },
1100
- /** 显示页码输入框 */
1101
- showGoto: { type: Boolean, default: !1 },
1102
- /** 显示页码 */
1103
- showIndex: { type: Boolean, default: !0 },
1104
- /** 显示每页记录数 */
1105
- showLimits: { type: Boolean, default: !1 },
1106
- /** 显示分页汇总信息 */
1107
- showPageInfo: { type: Boolean, default: !0 },
1108
- /** 默认每页记录数 */
1109
- size: { type: Number, default: 20 },
1110
- /** 可选择的没有记录数据 */
1111
- sizeLimits: { type: Array, default: [10, 20, 30, 50, 100] },
1112
- /** 总记录数 */
1113
- total: { type: Number, default: 0 }
1114
- }, Vt = {
1115
- /** 启用排序 */
1116
- enable: { type: Boolean, default: !1 },
1117
- /** 排序字段集合 */
1118
- fields: { type: Array, default: [] },
1119
- /** 排序交互模式 */
1120
- mode: { type: String, default: "client" },
1121
- /** 多列排序 */
1122
- multiSort: { type: Boolean, default: !1 }
1123
- }, At = {
1124
- /** 自定义分组合计内容 */
1125
- customGroupRow: { type: Function, default: () => {
1126
- } },
1127
- /** 自定义分组行样式 */
1128
- customGroupRowStyle: { type: Function, default: () => {
1129
- } },
1130
- /** 自行分组合计行样式 */
1131
- customSummaryStyle: { type: Function, default: () => {
1132
- } },
1133
- /** 启用行数据分组 */
1134
- enable: { type: Boolean, default: !1 },
1135
- /** 分组行合并列数 */
1136
- groupColSpan: { type: Number, default: 1 },
1137
- /** 行数据分组字段;多字段分组以英文逗号分隔 */
1138
- groupFields: { type: Array, default: [] },
1139
- /** 在DataGrid中显示被分组的列 */
1140
- showGroupedColumn: { type: Boolean, default: !0 },
1141
- /** 显示分组面板 */
1142
- showGroupPanel: { type: Boolean, default: !1 },
1143
- /** 启用合计行 */
1144
- showSummary: { type: Boolean, default: !1 },
1145
- /** 显示合计行位置; */
1146
- summaryPosition: { type: String, default: "separate" }
1147
- }, Nt = {
1148
- /** 启用筛选 */
1149
- enable: { type: Boolean, default: !1 },
1150
- /** DataGrid筛选风格 */
1151
- filterStyle: { type: String, default: "filter-column" },
1152
- /** 筛选交互模式 */
1153
- mode: { type: String, default: "server" },
1154
- /** 显示过滤条件工具条 */
1155
- showSummary: { type: Boolean, default: !0 }
1156
- }, Et = {
1157
- /** 允许折行显示列标题 */
1158
- wrapHeadings: { type: Boolean, default: !1 }
1159
- }, Ht = {
1160
- /** 自定义行样式 */
1161
- customRowStyle: { type: Function, default: () => {
1162
- } },
1163
- customCellStyle: { type: Function, default: () => {
1164
- } },
1165
- /** 禁止行选中表达式 */
1166
- disable: { type: Function, default: () => {
1167
- } },
1168
- /** 默认行高度为 29px */
1169
- height: { type: Number, default: 28 },
1170
- /** 鼠标滑过行效果 */
1171
- showHovering: { type: Boolean, default: !0 },
1172
- /** 禁止数据折行 */
1173
- wrapContent: { type: Boolean, default: !1 }
1174
- }, zt = {
1175
- /** 显示合计信息 */
1176
- enable: { type: Boolean, default: !1 },
1177
- /** 合计行自定义样式,对启用合计行模板无效 */
1178
- customSummaryStyle: { type: Function, default: () => {
1179
- } },
1180
- /** 分组合计字段 */
1181
- groupFields: { type: Array, default: [] },
1182
- /** 合计交互模式 */
1183
- mode: { type: String, default: "client" },
1184
- /** 合计行显示位置, top: 顶部 bottom: 底部, both: 顶部与底部同时显示 */
1185
- position: { type: String, default: "bottom" }
1186
- }, Wt = {
1187
- /** 自动列宽。设为true后,所有列将填满表格并不会出现横向滚动条。 */
1188
- fitColumns: { type: Boolean, default: !1 },
1189
- /** 自动适配列宽度模式 */
1190
- fitMode: { type: String, default: "average" },
1191
- groups: { type: Array, defaut: [] },
1192
- /** 允许拖动表头改变列显示顺序 */
1193
- reorderColumn: { type: Boolean, default: !1 },
1194
- /** 允许拖动改变列宽度 */
1195
- resizeColumn: { type: Boolean, default: !0 },
1196
- /** 双击表头列自适应内容宽度 */
1197
- resizeColumnOnDoubleClick: { type: Boolean, default: !0 }
1198
- }, $t = {
1199
- /** 编辑时选中文本 */
1200
- selectOnEditing: { type: Boolean, default: !1 },
1201
- /** 编辑模式; row:整行编辑,cell: 单元格编辑 */
1202
- editMode: { type: String, default: "cell" }
1203
- }, Ut = {
1204
- /** show loading */
1205
- show: { type: Boolean, default: !1 },
1206
- /** message on display when loading */
1207
- message: { type: String, default: "加载中" }
1208
- }, xt = {
1209
- /** 自定义样式 */
1210
- customClass: { type: String, default: "" },
1211
- /** 排序配置 */
1212
- sort: { type: Object },
1213
- /** 筛选配置 */
1214
- filter: { type: Object },
1215
- /** 自动勾选子节点 */
1216
- autoCheckChildren: { type: Boolean, default: !1 },
1217
- /** 列集合 */
1218
- columns: { type: Array, default: [] },
1219
- /** 列配置 */
1220
- columnOption: { type: Object },
1221
- /** 命令列配置选项 */
1222
- commandOption: {
1223
- type: Object,
1224
- default: {
1225
- enable: !1,
1226
- commands: []
1227
- }
1228
- },
1229
- /** 被绑定数据 */
1230
- data: { type: Array, default: [] },
1231
- /** 禁用组件 */
1232
- disabled: { type: Boolean, default: !1 },
1233
- /** 用于控制节点禁用状态的字段 */
1234
- disabledField: { type: String, default: "disabled" },
1235
- /** 用于显示信息的字段 */
1236
- displayField: { type: String, default: "name" },
1237
- /** 允许编辑 */
1238
- editable: { type: Boolean, default: !1 },
1239
- /** 编辑配置 */
1240
- editOption: { type: Object, default: { selectOnEditing: !1, editMode: "cell" } },
1241
- /** 适配父组件尺寸 */
1242
- fit: { type: Boolean, default: !1 },
1243
- /** 列标题配置 */
1244
- header: { type: Object },
1245
- /** 高度 */
1246
- height: { type: Number, default: -1 },
1247
- /** 层级关系配置对象 */
1248
- hierarchy: {
1249
- type: Object,
1250
- default: {
1251
- cascadeOption: {
1252
- autoCancelParent: !0,
1253
- autoCheckChildren: !1,
1254
- autoCheckParent: !1,
1255
- selectionRange: "All"
1256
- },
1257
- parentIdField: "parent"
1258
- }
1259
- },
1260
- /** DataGrid组件唯一标识 */
1261
- id: { type: String, default: "" },
1262
- /** 被绑定数据的标识字段 */
1263
- idField: { type: String, default: "id", require: !0 },
1264
- /** async loading data */
1265
- loadData: { type: Function },
1266
- // 是否展示 loading
1267
- loading: {
1268
- type: Boolean,
1269
- default: !1
1270
- },
1271
- /** 最小高度 */
1272
- minHeight: { type: Number, default: 300 },
1273
- /** 最小宽度 */
1274
- minWidth: { type: Number, default: 400 },
1275
- /** 新建数据 */
1276
- newDataItem: {
1277
- type: Function,
1278
- default: () => {
1279
- }
1280
- },
1281
- /** 分页配置 */
1282
- pagination: {
1283
- type: Object,
1284
- default: {
1285
- enable: !1,
1286
- size: -1
1287
- }
1288
- },
1289
- /** 行号配置 */
1290
- rowNumber: {
1291
- type: Object,
1292
- default: {
1293
- enable: !0,
1294
- width: 36,
1295
- heading: "序号"
1296
- }
1297
- },
1298
- /** 行配置 */
1299
- rowOption: {
1300
- type: Object,
1301
- default: {
1302
- wrapContent: !1
1303
- }
1304
- },
1305
- /** 选择配置 */
1306
- selection: {
1307
- type: Object,
1308
- default: {
1309
- enableSelectRow: !0,
1310
- multiSelect: !1,
1311
- multiSelectMode: "DependOnCheck",
1312
- showCheckbox: !1,
1313
- showSelectAll: !1,
1314
- showSelection: !1
1315
- }
1316
- },
1317
- /** 已选数据标识 */
1318
- selectionValues: { type: Array, default: [] },
1319
- /** 显示边框 */
1320
- showBorder: { type: Boolean, default: !1 },
1321
- /** 显示列头 */
1322
- showHeader: { type: Boolean, default: !0 },
1323
- /** 显示横向行分割线 */
1324
- showHorizontalLines: { type: Boolean, default: !0 },
1325
- /** 显示节点连接线 */
1326
- showLines: { type: Boolean, default: !1 },
1327
- /** 显示配置按钮 */
1328
- showOptions: { type: Boolean, default: !1 },
1329
- /** 显示滚动条 */
1330
- showScrollBar: { type: String, default: "auto" },
1331
- /** 显示设置按钮 */
1332
- showSetting: { type: Boolean, default: !1 },
1333
- /** 显示条纹 */
1334
- showStripe: { type: Boolean, default: !0 },
1335
- /** 显示树节点图标 */
1336
- showTreeNodeIcons: { type: Boolean, default: !1 },
1337
- /** 显示纵向列分割线 */
1338
- showVerticallLines: { type: Boolean, default: !1 },
1339
- /** 树节点图标数据 */
1340
- treeNodeIconsData: { type: [Object, String], default: {} },
1341
- /** 宽度 */
1342
- width: { type: Number, default: -1 },
1343
- /** 启用虚拟渲染 */
1344
- virtualized: { type: Boolean, default: !1 },
1345
- /** 空数据模板 */
1346
- emptyTemplate: { type: Object },
1347
- /** 合计配置 */
1348
- summary: {
1349
- type: Object,
1350
- default: {
1351
- // 默认合计行开启后,后面不展示值,所以默认不开启
1352
- enable: !1,
1353
- groupFields: ["numericField1", "numericField2"]
1354
- }
1355
- },
1356
- /** 自动高度 **/
1357
- autoHeight: { type: Boolean, default: !1 }
1358
- };
1359
- I.register = (t, e, i, o) => {
1360
- t["tree-grid"] = we, e["tree-grid"] = bt, o["tree-grid"] = { bindingResolver: ht, selectionItemResolver: Ct, updateColumnsResolver: vt };
1716
+ });
1717
+ ge.register = (e, t, f, l) => {
1718
+ e["tree-grid"] = $o, t["tree-grid"] = on, l["tree-grid"] = { bindingResolver: an, selectionItemResolver: nn, updateColumnsResolver: rn };
1361
1719
  };
1362
- I.registerDesigner = (t, e, i) => {
1363
- t["tree-grid"] = I, e["tree-grid"] = wt;
1720
+ ge.registerDesigner = (e, t, f) => {
1721
+ e["tree-grid"] = ge, t["tree-grid"] = ln;
1364
1722
  };
1365
- const Lt = he(I);
1723
+ const kn = Zt(ge);
1366
1724
  export {
1367
- I as FTreeGridDesign,
1368
- ht as bindingResolver,
1369
- Wt as columnOptions,
1370
- Lt as default,
1371
- wt as designPropsResolver,
1372
- $t as editOptions,
1373
- Nt as filterOptions,
1374
- At as groupOptions,
1375
- Et as headerOptions,
1376
- Ut as loadingOptions,
1377
- Dt as paginationOptions,
1378
- bt as propsResolver,
1379
- Ht as rowOptions,
1380
- Ct as selectionItemResolver,
1381
- Vt as sortOptions,
1382
- zt as summaryOptions,
1383
- _ as treeGridDesignProps,
1384
- xt as treeGridProps,
1385
- vt as updateColumnsResolver
1725
+ ge as FTreeGridDesign,
1726
+ an as bindingResolver,
1727
+ Gn as columnOptions,
1728
+ kn as default,
1729
+ ln as designPropsResolver,
1730
+ jn as editOptions,
1731
+ Dn as filterOptions,
1732
+ Bn as groupOptions,
1733
+ On as headerOptions,
1734
+ Tn as loadingOptions,
1735
+ In as paginationOptions,
1736
+ on as propsResolver,
1737
+ Fn as rowOptions,
1738
+ nn as selectionItemResolver,
1739
+ Rn as sortOptions,
1740
+ Pn as summaryOptions,
1741
+ it as treeGridDesignProps,
1742
+ Wo as treeGridProps,
1743
+ rn as updateColumnsResolver
1386
1744
  };