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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (563) hide show
  1. package/components/accordion/index.esm.js +61 -312
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +56 -1481
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +8 -752
  6. package/components/binding-selector/index.umd.cjs +1 -1
  7. package/components/button-edit/index.esm.js +358 -351
  8. package/components/button-edit/index.umd.cjs +1 -1
  9. package/components/button-group/index.esm.js +110 -266
  10. package/components/button-group/index.umd.cjs +1 -1
  11. package/components/calendar/index.esm.js +1371 -1284
  12. package/components/calendar/index.umd.cjs +30 -30
  13. package/components/code-editor/index.esm.js +169 -237
  14. package/components/code-editor/index.umd.cjs +3 -3
  15. package/components/collection-property-editor/index.esm.js +382 -351
  16. package/components/collection-property-editor/index.umd.cjs +2 -2
  17. package/components/color-picker/index.esm.js +502 -812
  18. package/components/color-picker/index.umd.cjs +1 -1
  19. package/components/combo-list/index.esm.js +197 -183
  20. package/components/combo-list/index.umd.cjs +1 -1
  21. package/components/combo-tree/index.esm.js +199 -364
  22. package/components/combo-tree/index.umd.cjs +1 -1
  23. package/components/comment/index.esm.js +1501 -1465
  24. package/components/comment/index.umd.cjs +6 -6
  25. package/components/common/index.esm.js +136 -100
  26. package/components/common/index.umd.cjs +1 -1
  27. package/components/component/index.css +1 -1
  28. package/components/component/index.esm.js +2662 -3647
  29. package/components/component/index.umd.cjs +1 -8
  30. package/components/condition/index.esm.js +492 -2449
  31. package/components/condition/index.umd.cjs +1 -8
  32. package/components/content-container/index.esm.js +252 -241
  33. package/components/content-container/index.umd.cjs +1 -1
  34. package/components/data-grid/index.esm.js +505 -409
  35. package/components/data-grid/index.umd.cjs +1 -1
  36. package/components/data-view/index.esm.js +3326 -3258
  37. package/components/data-view/index.umd.cjs +1 -1
  38. package/components/date-picker/index.esm.js +1709 -1634
  39. package/components/date-picker/index.umd.cjs +1 -1
  40. package/components/designer-canvas/index.css +1 -1
  41. package/components/designer-canvas/index.esm.js +2693 -3021
  42. package/components/designer-canvas/index.umd.cjs +1 -1
  43. package/components/designer-outline/index.esm.js +102 -98
  44. package/components/designer-outline/index.umd.cjs +1 -1
  45. package/components/drawer/index.esm.js +409 -358
  46. package/components/drawer/index.umd.cjs +2 -2
  47. package/components/dropdown/index.esm.js +124 -373
  48. package/components/dropdown/index.umd.cjs +2 -2
  49. package/components/dynamic-form/index.esm.js +760 -573
  50. package/components/dynamic-form/index.umd.cjs +1 -1
  51. package/components/dynamic-resolver/index.esm.js +354 -327
  52. package/components/dynamic-resolver/index.umd.cjs +2 -2
  53. package/components/dynamic-view/index.esm.js +413 -359
  54. package/components/dynamic-view/index.umd.cjs +1 -1
  55. package/components/event-parameter/index.esm.js +1 -1
  56. package/components/event-parameter/index.umd.cjs +1 -1
  57. package/components/events-editor/index.css +1 -1
  58. package/components/events-editor/index.esm.js +1535 -1941
  59. package/components/events-editor/index.umd.cjs +3 -3
  60. package/components/expression-editor/index.css +1 -1
  61. package/components/expression-editor/index.esm.js +2 -7317
  62. package/components/expression-editor/index.umd.cjs +1 -427
  63. package/components/field-selector/index.esm.js +13 -13
  64. package/components/field-selector/index.umd.cjs +1 -1
  65. package/components/fieldset/index.esm.js +140 -123
  66. package/components/fieldset/index.umd.cjs +1 -1
  67. package/components/filter-bar/index.esm.js +1021 -1012
  68. package/components/filter-bar/index.umd.cjs +2 -2
  69. package/components/filter-condition-editor/index.css +1 -1
  70. package/components/filter-condition-editor/index.esm.js +448 -9000
  71. package/components/filter-condition-editor/index.umd.cjs +1 -427
  72. package/components/html-template/index.esm.js +167 -147
  73. package/components/html-template/index.umd.cjs +1 -1
  74. package/components/image/index.esm.js +372 -352
  75. package/components/image/index.umd.cjs +2 -2
  76. package/components/image-cropper/index.esm.js +361 -615
  77. package/components/image-cropper/index.umd.cjs +1 -1
  78. package/components/json-editor/index.esm.js +247 -325
  79. package/components/json-editor/index.umd.cjs +1 -1
  80. package/components/language-textbox/index.esm.js +835 -421
  81. package/components/language-textbox/index.umd.cjs +2 -2
  82. package/components/layout/index.esm.js +163 -549
  83. package/components/layout/index.umd.cjs +1 -1
  84. package/components/list-nav/index.esm.js +39 -836
  85. package/components/list-nav/index.umd.cjs +1 -1
  86. package/components/list-view/index.esm.js +690 -474
  87. package/components/list-view/index.umd.cjs +6 -8
  88. package/components/loading/index.esm.js +128 -97
  89. package/components/loading/index.umd.cjs +2 -2
  90. package/components/locale/index.esm.js +361 -340
  91. package/components/locale/index.umd.cjs +5 -5
  92. package/components/lookup/index.css +1 -1
  93. package/components/lookup/index.esm.js +3396 -3368
  94. package/components/lookup/index.umd.cjs +1 -1
  95. package/components/mapping-editor/index.css +1 -1
  96. package/components/mapping-editor/index.esm.js +1684 -1584
  97. package/components/mapping-editor/index.umd.cjs +1 -1
  98. package/components/menu-lookup/index.esm.js +586 -609
  99. package/components/menu-lookup/index.umd.cjs +6 -6
  100. package/components/message-box/index.css +1 -1
  101. package/components/message-box/index.esm.js +357 -353
  102. package/components/message-box/index.umd.cjs +1 -1
  103. package/components/modal/index.esm.js +325 -318
  104. package/components/modal/index.umd.cjs +1 -1
  105. package/components/nav/index.esm.js +31 -311
  106. package/components/nav/index.umd.cjs +1 -1
  107. package/components/number-range/index.esm.js +189 -1633
  108. package/components/number-range/index.umd.cjs +1 -1
  109. package/components/number-spinner/index.esm.js +195 -175
  110. package/components/number-spinner/index.umd.cjs +1 -1
  111. package/components/order/index.esm.js +761 -1057
  112. package/components/order/index.umd.cjs +7 -9
  113. package/components/page-footer/index.esm.js +48 -331
  114. package/components/page-footer/index.umd.cjs +1 -1
  115. package/components/page-header/index.esm.js +92 -73
  116. package/components/page-header/index.umd.cjs +1 -1
  117. package/components/pagination/index.esm.js +195 -472
  118. package/components/pagination/index.umd.cjs +1 -1
  119. package/components/popover/index.esm.js +77 -76
  120. package/components/popover/index.umd.cjs +1 -1
  121. package/components/progress/index.esm.js +148 -353
  122. package/components/progress/index.umd.cjs +3 -3
  123. package/components/property-editor/index.esm.js +74 -68
  124. package/components/property-editor/index.umd.cjs +1 -1
  125. package/components/property-panel/index.esm.js +872 -1800
  126. package/components/property-panel/index.umd.cjs +5 -12
  127. package/components/query-solution/index.css +1 -1
  128. package/components/query-solution/index.esm.js +4223 -6205
  129. package/components/query-solution/index.umd.cjs +6 -13
  130. package/components/response-layout/index.esm.js +206 -170
  131. package/components/response-layout/index.umd.cjs +1 -1
  132. package/components/response-layout-editor/index.esm.js +1 -1
  133. package/components/response-layout-editor/index.umd.cjs +1 -1
  134. package/components/response-toolbar/index.esm.js +378 -359
  135. package/components/response-toolbar/index.umd.cjs +1 -1
  136. package/components/schema-selector/index.esm.js +2491 -2653
  137. package/components/schema-selector/index.umd.cjs +8 -10
  138. package/components/search-box/index.esm.js +79 -240
  139. package/components/search-box/index.umd.cjs +1 -1
  140. package/components/section/index.esm.js +304 -289
  141. package/components/section/index.umd.cjs +2 -2
  142. package/components/smoke-detector/index.esm.js +8 -179
  143. package/components/smoke-detector/index.umd.cjs +1 -1
  144. package/components/sort-condition-editor/index.esm.js +4 -9421
  145. package/components/sort-condition-editor/index.umd.cjs +1 -427
  146. package/components/splitter/index.esm.js +142 -1171
  147. package/components/splitter/index.umd.cjs +1 -1
  148. package/components/step/index.esm.js +48 -47
  149. package/components/step/index.umd.cjs +1 -1
  150. package/components/tabs/index.esm.js +460 -513
  151. package/components/tabs/index.umd.cjs +1 -1
  152. package/components/text/index.esm.js +73 -217
  153. package/components/text/index.umd.cjs +1 -1
  154. package/components/time-picker/index.esm.js +380 -375
  155. package/components/time-picker/index.umd.cjs +1 -1
  156. package/components/tooltip/index.esm.js +40 -40
  157. package/components/tooltip/index.umd.cjs +1 -1
  158. package/components/transfer/index.esm.js +551 -771
  159. package/components/transfer/index.umd.cjs +6 -8
  160. package/components/tree-grid/index.esm.js +250 -235
  161. package/components/tree-grid/index.umd.cjs +1 -1
  162. package/components/tree-view/index.esm.js +157 -314
  163. package/components/tree-view/index.umd.cjs +1 -1
  164. package/components/uploader/index.esm.js +634 -1125
  165. package/components/uploader/index.umd.cjs +2 -2
  166. package/components/verify-detail/index.esm.js +106 -359
  167. package/components/verify-detail/index.umd.cjs +1 -1
  168. package/components/video/index.esm.js +89 -222
  169. package/components/video/index.umd.cjs +1 -1
  170. package/components/weather/index.esm.js +199 -290
  171. package/components/weather/index.umd.cjs +1 -1
  172. package/designer/accordion/index.esm.js +257 -0
  173. package/designer/accordion/index.umd.cjs +1 -0
  174. package/designer/avatar/index.esm.js +227 -0
  175. package/designer/avatar/index.umd.cjs +1 -0
  176. package/designer/binding-selector/index.esm.js +792 -0
  177. package/designer/binding-selector/index.umd.cjs +1 -0
  178. package/designer/button-edit/index.esm.js +210 -203
  179. package/designer/button-edit/index.umd.cjs +1 -1
  180. package/designer/button-group/index.esm.js +282 -0
  181. package/designer/button-group/index.umd.cjs +1 -0
  182. package/designer/checkbox/index.esm.js +51 -45
  183. package/designer/checkbox/index.umd.cjs +1 -1
  184. package/designer/checkbox-group/index.esm.js +89 -83
  185. package/designer/checkbox-group/index.umd.cjs +1 -1
  186. package/designer/code-editor/index.esm.js +75 -0
  187. package/designer/code-editor/index.umd.cjs +1 -0
  188. package/designer/color-picker/index.esm.js +1096 -0
  189. package/designer/color-picker/index.umd.cjs +1 -0
  190. package/designer/combo-list/index.esm.js +1095 -0
  191. package/designer/combo-list/index.umd.cjs +1 -0
  192. package/designer/combo-tree/index.esm.js +186 -0
  193. package/designer/combo-tree/index.umd.cjs +1 -0
  194. package/designer/component/index.css +1 -0
  195. package/designer/component/index.esm.js +5002 -0
  196. package/designer/component/index.umd.cjs +1 -0
  197. package/designer/condition/index.esm.js +1899 -0
  198. package/designer/condition/index.umd.cjs +1 -0
  199. package/designer/data-grid/index.esm.js +5580 -6213
  200. package/designer/data-grid/index.umd.cjs +10 -17
  201. package/designer/data-view/index.esm.js +212 -191
  202. package/designer/data-view/index.umd.cjs +2 -2
  203. package/designer/date-picker/index.esm.js +621 -607
  204. package/designer/date-picker/index.umd.cjs +1 -1
  205. package/designer/drawer/index.css +1 -1
  206. package/designer/drawer/index.esm.js +869 -620
  207. package/designer/drawer/index.umd.cjs +2 -2
  208. package/designer/dropdown/index.esm.js +261 -0
  209. package/designer/dropdown/index.umd.cjs +1 -0
  210. package/designer/dynamic-form/index.esm.js +1166 -1384
  211. package/designer/dynamic-form/index.umd.cjs +1 -8
  212. package/designer/expression-editor/index.css +1 -0
  213. package/designer/expression-editor/index.esm.js +7006 -0
  214. package/designer/expression-editor/index.umd.cjs +427 -0
  215. package/designer/farris-designer.all.esm.js +10309 -10617
  216. package/designer/farris-designer.all.umd.cjs +17 -19
  217. package/designer/filter-condition-editor/index.css +1 -0
  218. package/designer/filter-condition-editor/index.esm.js +4795 -0
  219. package/designer/filter-condition-editor/index.umd.cjs +1 -0
  220. package/designer/html-template/index.esm.js +718 -0
  221. package/designer/html-template/index.umd.cjs +1 -0
  222. package/designer/image-cropper/index.esm.js +765 -0
  223. package/designer/image-cropper/index.umd.cjs +1 -0
  224. package/designer/index.css +1 -1
  225. package/designer/input-group/index.esm.js +72 -66
  226. package/designer/input-group/index.umd.cjs +1 -1
  227. package/designer/json-editor/index.esm.js +83 -0
  228. package/designer/json-editor/index.umd.cjs +1 -0
  229. package/designer/language-textbox/index.esm.js +783 -0
  230. package/designer/language-textbox/index.umd.cjs +8 -0
  231. package/designer/layout/index.esm.js +430 -0
  232. package/designer/layout/index.umd.cjs +1 -0
  233. package/designer/list-nav/index.esm.js +802 -0
  234. package/designer/list-nav/index.umd.cjs +1 -0
  235. package/designer/list-view/index.esm.js +864 -844
  236. package/designer/list-view/index.umd.cjs +7 -9
  237. package/designer/lookup/index.esm.js +2083 -0
  238. package/designer/lookup/index.umd.cjs +1 -0
  239. package/designer/menu-lookup/index.esm.js +46 -0
  240. package/designer/menu-lookup/index.umd.cjs +1 -0
  241. package/designer/modal/index.esm.js +137 -29
  242. package/designer/modal/index.umd.cjs +1 -1
  243. package/designer/nav/index.esm.js +284 -0
  244. package/designer/nav/index.umd.cjs +1 -0
  245. package/designer/number-range/index.esm.js +1616 -0
  246. package/designer/number-range/index.umd.cjs +1 -0
  247. package/designer/number-spinner/index.esm.js +19 -17
  248. package/designer/number-spinner/index.umd.cjs +1 -1
  249. package/designer/order/index.css +1 -0
  250. package/designer/order/index.esm.js +2196 -0
  251. package/designer/order/index.umd.cjs +18 -0
  252. package/designer/page-footer/index.esm.js +290 -0
  253. package/designer/page-footer/index.umd.cjs +1 -0
  254. package/designer/page-header/index.esm.js +1003 -0
  255. package/designer/page-header/index.umd.cjs +1 -0
  256. package/designer/pagination/index.esm.js +591 -0
  257. package/designer/pagination/index.umd.cjs +1 -0
  258. package/designer/progress/index.esm.js +213 -0
  259. package/designer/progress/index.umd.cjs +1 -0
  260. package/designer/radio-group/index.esm.js +978 -949
  261. package/designer/radio-group/index.umd.cjs +1 -1
  262. package/designer/response-layout-editor/index.esm.js +1 -1
  263. package/designer/response-layout-editor/index.umd.cjs +1 -1
  264. package/designer/response-toolbar/index.esm.js +1471 -1416
  265. package/designer/response-toolbar/index.umd.cjs +1 -1
  266. package/designer/search-box/index.esm.js +245 -0
  267. package/designer/search-box/index.umd.cjs +1 -0
  268. package/designer/section/index.esm.js +83 -78
  269. package/designer/section/index.umd.cjs +1 -1
  270. package/designer/smoke-detector/index.css +1 -0
  271. package/designer/smoke-detector/index.esm.js +178 -0
  272. package/designer/smoke-detector/index.umd.cjs +1 -0
  273. package/designer/sort-condition-editor/index.esm.js +138 -0
  274. package/designer/sort-condition-editor/index.umd.cjs +1 -0
  275. package/designer/splitter/index.esm.js +1120 -0
  276. package/designer/splitter/index.umd.cjs +1 -0
  277. package/designer/step/index.esm.js +226 -0
  278. package/designer/step/index.umd.cjs +1 -0
  279. package/designer/switch/index.esm.js +10 -10
  280. package/designer/switch/index.umd.cjs +1 -1
  281. package/designer/tabs/index.css +1 -1
  282. package/designer/tabs/index.esm.js +2447 -2698
  283. package/designer/tabs/index.umd.cjs +2 -2
  284. package/designer/text/index.esm.js +147 -0
  285. package/designer/text/index.umd.cjs +1 -0
  286. package/designer/time-picker/index.esm.js +101 -100
  287. package/designer/time-picker/index.umd.cjs +1 -1
  288. package/designer/transfer/index.esm.js +254 -0
  289. package/designer/transfer/index.umd.cjs +1 -0
  290. package/designer/tree-grid/index.esm.js +473 -810
  291. package/designer/tree-grid/index.umd.cjs +1 -1
  292. package/designer/tree-view/index.esm.js +313 -0
  293. package/designer/tree-view/index.umd.cjs +1 -0
  294. package/designer/uploader/index.esm.js +1190 -0
  295. package/designer/uploader/index.umd.cjs +2 -0
  296. package/designer/verify-detail/index.esm.js +258 -0
  297. package/designer/verify-detail/index.umd.cjs +1 -0
  298. package/designer/video/index.esm.js +136 -0
  299. package/designer/video/index.umd.cjs +1 -0
  300. package/designer/weather/index.css +1 -0
  301. package/designer/weather/index.esm.js +6244 -0
  302. package/designer/weather/index.umd.cjs +14 -0
  303. package/farris.all.esm.js +69941 -70514
  304. package/farris.all.umd.cjs +117 -117
  305. package/index.css +1 -1
  306. package/locales/filter-bar/ui/en.json +2 -1
  307. package/locales/filter-bar/ui/zh-CHS.json +2 -1
  308. package/locales/filter-bar/ui/zh-CHT.json +2 -1
  309. package/locales/query-solution/ui/en.json +1 -1
  310. package/locales/query-solution/ui/zh-CHS.json +1 -1
  311. package/locales/query-solution/ui/zh-CHT.json +1 -1
  312. package/locales/ui/en.json +3 -2
  313. package/locales/ui/zh-CHS.json +3 -2
  314. package/locales/ui/zh-CHT.json +3 -2
  315. package/package.json +1 -1
  316. package/types/accordion/designer.d.ts +44 -0
  317. package/types/accordion/src/accordion.props.d.ts +0 -1
  318. package/types/accordion/src/components/accordion-item.props.d.ts +0 -1
  319. package/types/avatar/designer.d.ts +29 -0
  320. package/types/avatar/src/avatar.props.d.ts +0 -1
  321. package/types/avatar/src/property-config/avatar.property-config.d.ts +1 -1
  322. package/types/{expression-editor/index.d.ts → binding-selector/designer.d.ts} +6 -6
  323. package/types/binding-selector/index.d.ts +0 -54
  324. package/types/binding-selector/src/binding-selector.props.d.ts +0 -1
  325. package/types/button-group/designer.d.ts +29 -0
  326. package/types/button-group/index.d.ts +15 -0
  327. package/types/button-group/src/button-group.props.d.ts +0 -1
  328. package/types/calendar/src/calendar.props.d.ts +1 -0
  329. package/types/calendar/src/components/month/month-view.component.d.ts +6 -6
  330. package/types/calendar/src/composition/use-calendar-events.d.ts +1 -1
  331. package/types/calendar/src/composition/use-locales.d.ts +1 -0
  332. package/types/calendar/src/property-config/calendar.property-config.d.ts +2 -0
  333. package/types/capsule/src/capsule-item.component.d.ts +6 -6
  334. package/types/checkbox/designer.d.ts +2 -0
  335. package/types/checkbox-group/designer.d.ts +2 -0
  336. package/types/code-editor/designer.d.ts +5 -0
  337. package/types/code-editor/index.d.ts +0 -1
  338. package/types/code-editor/src/code-textbox.component.d.ts +6 -6
  339. package/types/code-editor/src/code-textbox.props.d.ts +0 -2
  340. package/types/color-picker/designer.d.ts +29 -0
  341. package/types/color-picker/index.d.ts +0 -15
  342. package/types/color-picker/src/color-picker.props.d.ts +0 -1
  343. package/types/combo-list/designer.d.ts +29 -0
  344. package/types/combo-list/src/combo-list.props.d.ts +1 -0
  345. package/types/combo-list/src/designer/combo-list.design.props.d.ts +6 -0
  346. package/types/combo-tree/designer.d.ts +5 -0
  347. package/types/combo-tree/src/combo-tree.props.d.ts +0 -1
  348. package/types/combo-tree/src/components/tree-container.component.d.ts +7 -7
  349. package/types/comment/src/comment.props.d.ts +4 -0
  350. package/types/comment/src/designer/comment.design.props.d.ts +4 -0
  351. package/types/common/index.d.ts +1 -0
  352. package/types/common/utils/use-mobile.d.ts +1 -0
  353. package/types/component/designer.d.ts +35 -0
  354. package/types/component/index.d.ts +0 -2
  355. package/types/component/src/component.props.d.ts +0 -8
  356. package/types/component/src/composition/field-tree-builder.d.ts +1 -0
  357. package/types/components.d.ts +2 -6
  358. package/types/condition/designer.d.ts +56 -0
  359. package/types/condition/index.d.ts +0 -55
  360. package/types/content-container/index.d.ts +3 -2
  361. package/types/content-container/src/content-container.props.d.ts +1 -0
  362. package/types/data-grid/designer.d.ts +2 -0
  363. package/types/data-grid/index.d.ts +5 -2
  364. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  365. package/types/data-grid/src/designer/grid-field-editor.props.d.ts +1 -0
  366. package/types/data-view/composition/types.d.ts +7 -1
  367. package/types/data-view/composition/use-mobile.d.ts +3 -0
  368. package/types/data-view/designer/property-config/use-command-option.d.ts +11 -0
  369. package/types/data-view/index.d.ts +1 -0
  370. package/types/designer-canvas/src/composition/designer-canvas-changed.d.ts +3 -3
  371. package/types/designer-canvas/src/composition/dg-control.d.ts +8 -0
  372. package/types/designer-outline/src/designer-outline.component.d.ts +3 -3
  373. package/types/designer-outline/src/types.d.ts +5 -1
  374. package/types/drawer/designer.d.ts +12 -0
  375. package/types/drawer/src/designer/drawer-toolbar.design.props.d.ts +12 -0
  376. package/types/drawer/src/designer/drawer.design.component.d.ts +8 -0
  377. package/types/drawer/src/designer/drawer.design.props.d.ts +4 -0
  378. package/types/drawer/src/schema/schema-mapper.d.ts +1 -0
  379. package/types/drawer/src/schema/schema-resolver.d.ts +1 -0
  380. package/types/dropdown/designer.d.ts +6 -0
  381. package/types/dropdown/index.d.ts +27 -6
  382. package/types/dropdown/src/dropdown.item.component.d.ts +2 -2
  383. package/types/dropdown/src/dropdown.props.d.ts +0 -1
  384. package/types/dynamic-form/designer.d.ts +3 -1
  385. package/types/dynamic-form/index.d.ts +4 -3
  386. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +6 -6
  387. package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +11 -0
  388. package/types/dynamic-resolver/index.d.ts +3 -0
  389. package/types/dynamic-resolver/src/props-resolver.d.ts +2 -0
  390. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
  391. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
  392. package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
  393. package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
  394. package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
  395. package/types/dynamic-view/src/components/maps.d.ts +883 -1
  396. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  397. package/types/dynamic-view/src/types.d.ts +4 -0
  398. package/types/expression-editor/designer.d.ts +9 -0
  399. package/types/field-selector/index.d.ts +2 -1
  400. package/types/fieldset/index.d.ts +3 -2
  401. package/types/fieldset/src/fieldset.props.d.ts +1 -0
  402. package/types/filter-bar/src/composition/types.d.ts +1 -1
  403. package/types/filter-bar/src/composition/use-size.d.ts +2 -2
  404. package/types/filter-bar/src/locale/locale.d.ts +1 -0
  405. package/types/filter-condition-editor/designer.d.ts +10 -0
  406. package/types/filter-condition-editor/index.d.ts +0 -9
  407. package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
  408. package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
  409. package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +0 -1
  410. package/types/html-template/designer.d.ts +31 -0
  411. package/types/html-template/src/designer/html-template.design.props.d.ts +9 -0
  412. package/types/html-template/src/html-template.props.d.ts +2 -0
  413. package/types/image-cropper/designer.d.ts +4 -0
  414. package/types/image-cropper/src/image-cropper.props.d.ts +0 -1
  415. package/types/index.d.ts +0 -1
  416. package/types/input-group/designer.d.ts +2 -0
  417. package/types/json-editor/designer.d.ts +5 -0
  418. package/types/json-editor/src/components/editable-combo/editable-combo.component.d.ts +3 -3
  419. package/types/json-editor/src/components/editable-combo/popup-container.component.d.ts +3 -3
  420. package/types/json-editor/src/json-editor.props.d.ts +0 -1
  421. package/types/language-textbox/index.d.ts +6 -6
  422. package/types/language-textbox/src/language-textbox.component.d.ts +2 -2
  423. package/types/language-textbox/src/language-textbox.props.d.ts +1 -0
  424. package/types/layout/index.d.ts +1 -0
  425. package/types/layout/src/components/layout-pane.props.d.ts +0 -1
  426. package/types/layout/src/layout.props.d.ts +0 -1
  427. package/types/list-nav/index.d.ts +24 -5
  428. package/types/list-nav/src/list-nav.props.d.ts +0 -1
  429. package/types/list-view/index.d.ts +1 -0
  430. package/types/list-view/src/composition/use-draggable.d.ts +1 -1
  431. package/types/list-view/src/designer/list-view.design.props.d.ts +1 -0
  432. package/types/list-view/src/list-view-table.props.d.ts +1 -0
  433. package/types/loading/index.d.ts +6 -6
  434. package/types/loading/src/loading.component.d.ts +3 -3
  435. package/types/lookup/index.d.ts +1 -1
  436. package/types/lookup/src/components/popup-container.component.d.ts +6 -6
  437. package/types/lookup/src/lookup.props.d.ts +1 -0
  438. package/types/lookup/src/property-config/external-lookup.property-config.d.ts +1 -0
  439. package/types/lookup/src/property-config/lookup.property-config.d.ts +1 -0
  440. package/types/menu-lookup/designer.d.ts +5 -0
  441. package/types/menu-lookup/src/menu-lookup.props.d.ts +0 -1
  442. package/types/message-box/index.d.ts +6 -6
  443. package/types/message-box/src/message-box.component.d.ts +3 -3
  444. package/types/modal/designer.d.ts +2 -0
  445. package/types/modal/index.d.ts +30 -24
  446. package/types/modal/src/modal.component.d.ts +15 -12
  447. package/types/modal/src/modal.props.d.ts +4 -0
  448. package/types/nav/designer.d.ts +6 -0
  449. package/types/nav/index.d.ts +24 -20
  450. package/types/nav/src/nav.props.d.ts +0 -1
  451. package/types/notify/index.d.ts +3 -3
  452. package/types/notify/src/notify.component.d.ts +2 -2
  453. package/types/number-range/designer.d.ts +29 -0
  454. package/types/number-range/src/number-range.props.d.ts +0 -1
  455. package/types/number-spinner/src/composition/types.d.ts +1 -0
  456. package/types/order/designer.d.ts +6 -0
  457. package/types/order/index.d.ts +36 -5
  458. package/types/order/src/designer/order.design.component.d.ts +1 -1
  459. package/types/order/src/order.props.d.ts +0 -1
  460. package/types/page-footer/designer.d.ts +6 -0
  461. package/types/page-footer/index.d.ts +0 -2
  462. package/types/page-footer/src/page-footer.props.d.ts +0 -1
  463. package/types/page-header/index.d.ts +3 -2
  464. package/types/page-header/src/designer/page-header.design.props.d.ts +20 -0
  465. package/types/page-header/src/page-header.props.d.ts +2 -0
  466. package/types/pagination/designer.d.ts +29 -0
  467. package/types/pagination/index.d.ts +15 -0
  468. package/types/pagination/src/pagination.props.d.ts +0 -1
  469. package/types/popover/index.d.ts +3 -3
  470. package/types/popover/src/composition/use-resize.d.ts +1 -1
  471. package/types/popover/src/popover.component.d.ts +2 -2
  472. package/types/progress/designer.d.ts +29 -0
  473. package/types/progress/src/progress.props.d.ts +0 -1
  474. package/types/property-panel/src/property-panel.component.d.ts +3 -3
  475. package/types/query-solution/index.d.ts +4 -4
  476. package/types/query-solution/src/composition/types.d.ts +8 -2
  477. package/types/query-solution/src/composition/use-header.d.ts +2 -2
  478. package/types/query-solution/src/composition/use-solution-utils.d.ts +1 -1
  479. package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +1 -1
  480. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +1 -0
  481. package/types/query-solution/src/designer/solution-preset-config/solution-preset.props.d.ts +1 -0
  482. package/types/query-solution/src/query-solution.props.d.ts +1 -0
  483. package/types/radio-group/designer.d.ts +4 -1
  484. package/types/radio-group/src/designer/item-collection-editor.props.d.ts +1 -0
  485. package/types/response-layout/index.d.ts +3 -2
  486. package/types/response-layout/src/component/response-layout-item.props.d.ts +1 -0
  487. package/types/response-layout/src/property-config/response-layout-splitter/response-layout-splitter.props.d.ts +1 -0
  488. package/types/response-layout/src/response-layout.props.d.ts +1 -0
  489. package/types/response-toolbar/designer.d.ts +2 -1
  490. package/types/response-toolbar/src/designer/response-toolbar.design.props.d.ts +1 -0
  491. package/types/search-box/designer.d.ts +52 -0
  492. package/types/search-box/index.d.ts +1 -17
  493. package/types/search-box/src/components/search-box-container.component.d.ts +3 -3
  494. package/types/search-box/src/search-box.props.d.ts +0 -1
  495. package/types/section/designer.d.ts +1 -0
  496. package/types/smoke-detector/designer.d.ts +6 -0
  497. package/types/smoke-detector/index.d.ts +0 -2
  498. package/types/smoke-detector/src/smoke-detector.props.d.ts +0 -1
  499. package/types/sort-condition-editor/designer.d.ts +9 -0
  500. package/types/sort-condition-editor/index.d.ts +2 -7
  501. package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +0 -1
  502. package/types/splitter/designer.d.ts +32 -0
  503. package/types/splitter/index.d.ts +1 -0
  504. package/types/splitter/src/components/splitter-pane.props.d.ts +0 -1
  505. package/types/splitter/src/splitter.props.d.ts +0 -1
  506. package/types/step/designer.d.ts +6 -0
  507. package/types/tabs/designer.d.ts +1 -0
  508. package/types/tabs/index.d.ts +0 -1
  509. package/types/tabs/src/composition/types.d.ts +1 -0
  510. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +1 -0
  511. package/types/tags/index.d.ts +3 -3
  512. package/types/tags/src/tags.component.d.ts +1 -1
  513. package/types/text/designer.d.ts +6 -0
  514. package/types/text/index.d.ts +24 -20
  515. package/types/text/src/text.props.d.ts +0 -1
  516. package/types/time-picker/src/components/time.component.d.ts +3 -3
  517. package/types/transfer/designer.d.ts +35 -0
  518. package/types/transfer/src/transfer.props.d.ts +0 -1
  519. package/types/tree-view/designer.d.ts +29 -0
  520. package/types/tree-view/src/tree-view.props.d.ts +0 -1
  521. package/types/uploader/designer.d.ts +141 -0
  522. package/types/uploader/index.d.ts +6 -6
  523. package/types/uploader/src/components/upload-progress.component.d.ts +3 -3
  524. package/types/uploader/src/uploader.component.d.ts +3 -3
  525. package/types/uploader/src/uploader.props.d.ts +0 -1
  526. package/types/verify-detail/designer.d.ts +6 -0
  527. package/types/verify-detail/index.d.ts +58 -5
  528. package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
  529. package/types/verify-detail/src/verify-detail.props.d.ts +0 -1
  530. package/types/video/designer.d.ts +6 -0
  531. package/types/video/index.d.ts +24 -20
  532. package/types/video/src/video.props.d.ts +0 -1
  533. package/components/sort-condition-editor/index.css +0 -1
  534. package/package.zip +0 -0
  535. package/types/designer-toolbox/index.d.ts +0 -3
  536. package/types/designer-toolbox/src/toolbox.component.d.ts +0 -14
  537. package/types/designer-toolbox/src/toolbox.props.d.ts +0 -29
  538. package/types/designer-toolbox/src/types.d.ts +0 -21
  539. package/types/designer.d.ts +0 -13
  540. package/types/flow-canvas/index.d.ts +0 -3
  541. package/types/flow-canvas/src/components/flow-node-item.component.d.ts +0 -8
  542. package/types/flow-canvas/src/components/flow-node-item.props.d.ts +0 -3
  543. package/types/flow-canvas/src/composition/types.d.ts +0 -42
  544. package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +0 -2
  545. package/types/flow-canvas/src/composition/use-connections.d.ts +0 -2
  546. package/types/flow-canvas/src/composition/use-curve.d.ts +0 -4
  547. package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +0 -2
  548. package/types/flow-canvas/src/composition/use-drawing.d.ts +0 -4
  549. package/types/flow-canvas/src/flow-canvas.component.d.ts +0 -8
  550. package/types/flow-canvas/src/flow-canvas.props.d.ts +0 -3
  551. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +0 -2
  552. package/types/layout/src/designer/layout-pane.design.component.d.ts +0 -8
  553. package/types/layout/src/designer/layout-use-designer-rules.d.ts +0 -2
  554. package/types/layout/src/designer/layout.design.component.d.ts +0 -8
  555. package/types/layout/src/schema/schema-mapper.d.ts +0 -2
  556. package/types/layout/src/schema/schema-resolver.d.ts +0 -2
  557. package/types/list-nav/src/designer/use-designer-rules.d.ts +0 -2
  558. package/types/list-nav/src/property-config/list-nav.property-config.d.ts +0 -8
  559. package/types/list-nav/src/schema/schema-mapper.d.ts +0 -2
  560. package/types/list-nav/src/schema/schema-resolver.d.ts +0 -2
  561. /package/{components → designer}/condition/index.css +0 -0
  562. /package/{components → designer}/uploader/index.css +0 -0
  563. /package/types/{list-nav/src/designer/list-nav.design.component.d.ts → dynamic-form/src/component/form-control/form-control.component.d.ts} +0 -0
@@ -1,621 +1,14 @@
1
- import { getCustomClass as Kt, excludeProperties as Qt, withInstall as Xt } from "../../components/common/index.esm.js";
2
- import { createVNode as P, defineComponent as je, ref as C, computed as T, onMounted as Te, nextTick as ke, onUnmounted as Zt, watch as ue, createTextVNode as eo, inject as Ge } from "vue";
3
- import { useResizeObserver as Me } from "@vueuse/core";
4
- import { isUndefined as L } from "lodash-es";
5
- import { LocaleService as to } from "../../components/locale/index.esm.js";
6
- import { getHierarchyRow as oo, useIdentify as Ve, useGroupData as no, useFilter as He, useHierarchy as xe, useLoading as io, useDataView as Ne, useSelection as Ae, useSelectHierarchyItem as ao, usePagination as lo, useDataViewContainerStyle as Ee, useCommandColumn as ze, useSettingColumn as so, useColumn as ro, useSort as We, useGroupColumn as _e, useRow as $e, useEdit as Le, useVisualDataBound as Ue, useVisualDataCell as qe, useVisualDataRow as Ye, useVisualData as co, useCellPosition as uo, useSidebar as Je, useVirtualScroll as Ke, useFitColumn as po, useFilterHistory as fo, useColumnFilter as mo, useDragColumn as yo, getColumnHeader as go, getSidebar as Co, getDisableMask as bo, getHorizontalScrollbar as Qe, getVerticalScrollbar as vo, getEmpty as ho, getPagination as wo, getSummary as So } from "../../components/data-view/index.esm.js";
7
- import { resolveAppearance as Io, createPropsResolver as Xe, createTreeGridSelectionItemResolver as Ro, createTreeGridBindingResolver as Bo, createDataViewUpdateColumnsResolver as Do } from "../../components/dynamic-resolver/index.esm.js";
8
- import { treeGridProps as Ze } from "../../components/tree-grid/index.esm.js";
9
- import { getColumnHeader as Oo } from "../data-grid/index.esm.js";
10
- import { DgControl as Ie, useDesignerComponent as Fo } from "../../components/designer-canvas/index.esm.js";
11
- import { BaseControlProperty as Po } from "../../components/property-panel/index.esm.js";
12
- import { useCommandOption as Go, useColumnOption as jo, useRowOption as To, useSummary as ko, useAppearance as Mo, useRowNumber as Vo, usePagination as Ho, useDataGridEvent as xo, useDesignerColumn as No, useDesignerVisualData as Ao, useDesignerFitColumn as Eo } from "../data-view/index.esm.js";
13
- const Sn = {
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
- }, In = {
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
- }, Rn = {
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
- }, Bn = {
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
- }, Dn = {
77
- /** 允许折行显示列标题 */
78
- wrapHeadings: { type: Boolean, default: !1 }
79
- }, On = {
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
- }, Fn = {
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
- }, Pn = {
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
- }, Gn = {
119
- /** 编辑时选中文本 */
120
- selectOnEditing: { type: Boolean, default: !1 },
121
- /** 编辑模式; row:整行编辑,cell: 单元格编辑 */
122
- editMode: { type: String, default: "cell" }
123
- }, jn = {
124
- /** show loading */
125
- show: { type: Boolean, default: !1 },
126
- /** message on display when loading */
127
- message: { type: String, default: `${to.getLocaleValue("datagrid.loadingMessage")}...` }
128
- }, zo = {
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 Wo(e, t, f, l, u, r, d, p, s, i, y, m, D, c, O, E, w) {
280
- const {
281
- calculateCellPositionInRow: H
282
- } = r, {
283
- columnContext: S,
284
- hasLeftFixedColumn: B,
285
- hasRightFixedColumn: z
286
- } = d, {
287
- gridDataStyle: k,
288
- leftFixedGridDataStyle: n,
289
- rightFixedGridDataStyle: W
290
- } = c, {
291
- renderDataRow: g
292
- } = oo(e, t, S, w, p, s, i, y, m, D, c, O, E), x = [g];
293
- function U(b, X) {
294
- const Z = H(b);
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: n.value
304
- }, [U(S.value.leftColumns.filter((b) => b.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((b) => b.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((b) => b.visible), "right")])]);
323
- }
324
- function Q() {
325
- const b = [];
326
- return B.value && b.push(G()), b.push(ae()), z.value && b.push(M()), b;
327
- }
328
- return {
329
- renderDataArea: Q
330
- };
331
- }
332
- const _o = /* @__PURE__ */ je({
333
- name: "FTreeGrid",
334
- props: zo,
335
- emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "unSelectItem", "selectItem", "filterChanged", "sortChanged", "selectionUpdate"],
336
- setup(e, t) {
337
- var Oe, Fe;
338
- const l = ((Oe = e.rowOption) == null ? void 0 : Oe.height) || 28, u = C(20), r = C(e.columns), d = Ve(e), {
339
- idField: p
340
- } = d, s = C(), i = C(), y = C(), m = C(), D = C(), c = C([]), O = C(!1), E = C(((Fe = e.rowOption) == null ? void 0 : Fe.wrapContent) || !1), w = no(e, d), H = He(e, t), S = xe(e), {
341
- collapseField: B
342
- } = S, {
343
- showLoading: z,
344
- renderLoading: k
345
- } = io(e, s), n = Ne(e, /* @__PURE__ */ new Map(), H, S, d), {
346
- dataView: W
347
- } = n, g = Ae(e, n, d, c, t), {
348
- showSelection: x,
349
- selectedValues: U
350
- } = g, G = ao(e, c, n, d, g, t), ae = T(() => e.disabled), M = T(() => e.virtualized ? Math.min(n.dataView.value.length, u.value) : n.dataView.value.length), Q = lo(e, n), {
351
- shouldRenderPagination: b
352
- } = Q, {
353
- containerStyleObject: X
354
- } = Ee(e), Z = ze(e), {
355
- applyCommands: N
356
- } = Z;
357
- N(r);
358
- const {
359
- applyColumnSetting: ee,
360
- removeColumnSetting: pe
361
- } = so(e);
362
- e.showSetting && ee(r);
363
- const _ = ro(e, t), le = We(e), {
364
- applyColumnSorter: fe,
365
- columnContext: $,
366
- updateColumnRenderContext: Ce
367
- } = _;
368
- fe(n, le);
369
- const te = _e(e, $), A = $e(e, t, g, d), V = Le(e, t, d, A, c), se = Ue(e), be = qe(e, V, se), oe = Ye(e, n, V, S, d, se, be), re = co(e, r, n, M, 0, oe), {
370
- getVisualData: ne
371
- } = re, ve = uo(e, $), de = Je(e, g), {
372
- sidebarWidth: he
373
- } = de, R = Ke(e, n, c, $, re, M, 0, he), {
374
- onWheel: me,
375
- dataGridWidth: ce,
376
- viewPortHeight: j,
377
- viewPortWidth: q,
378
- resetScroll: ie,
379
- updateVisibleRowsOnLatestVisibleScope: it
380
- } = R, Re = po(e, $, i, q, te), {
381
- calculateColumnsSize: ye
382
- } = Re, Be = fo(), at = mo(i, D, n, Be, R), lt = yo(e, t, _, n, te, w, R), 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 Kt(o, e.customClass);
390
- }), rt = T(() => ({
391
- "fv-grid-content": !0,
392
- "fv-grid-content-hover": O.value,
393
- "fv-grid-wrap-content": E.value
394
- })), {
395
- renderDataArea: dt
396
- } = Wo(e, t, y, m, D, ve, _, n, V, S, A, g, G, R, re, se, c), {
397
- renderGridHeader: ct,
398
- renderGridColumnResizeOverlay: ut,
399
- shouldShowHeader: pt
400
- } = go(e, t, i, m, D, _, n, lt, at, H, Be, Re, te, g, de, le, R, q, c), {
401
- renderDataGridSidebar: ft
402
- } = Co(e, A, g, de, R), {
403
- renderDisableMask: mt
404
- } = bo(), {
405
- renderHorizontalScrollbar: yt
406
- } = Qe(e, i, R), {
407
- renderVerticalScrollbar: gt
408
- } = vo(e, i, R);
409
- function Ct() {
410
- var o, a, v;
411
- if (i.value && i.value.clientHeight > 0 && ((o = i.value) == null ? void 0 : o.clientWidth) > 0) {
412
- const I = Math.ceil(i.value.clientHeight / l);
413
- I > u.value && (u.value = I, it()), j.value = ((a = y.value) == null ? void 0 : a.clientHeight) || 0, ce.value = ((v = i.value) == null ? void 0 : v.clientWidth) || 0, ye();
414
- }
415
- }
416
- Te(() => {
417
- i.value && (u.value = Math.max(Math.ceil(i.value.clientHeight / l), u.value), c.value = ne(0, M.value + 0 - 1), Me(i.value, Ct), ye(), ke(() => {
418
- i.value && (ce.value = i.value.clientWidth), y.value && (q.value = y.value.clientWidth, j.value = y.value.clientHeight);
419
- })), z.value && k();
420
- }), Zt(() => {
421
- }), ue(q, () => {
422
- i.value && ye();
423
- });
424
- function bt(o) {
425
- n.collapseTo(o), n.reOrderVisibleIndex(), ie();
426
- }
427
- function vt(o) {
428
- n.expandTo(o), n.reOrderVisibleIndex(), ie();
429
- }
430
- function we() {
431
- const o = g.getSelectionRow();
432
- return o ? o.dataIndex - 1 : -1;
433
- }
434
- function ht() {
435
- const o = we();
436
- n.insertNewDataItem(o), c.value = ne(0, M.value + 0 - 1);
437
- }
438
- function wt() {
439
- const o = we();
440
- n.insertNewChildDataItem(o), c.value = ne(0, M.value + 0 - 1);
441
- }
442
- function St(o, a) {
443
- const v = c.value.find((F) => F.raw[p.value] === a), I = v ? v.dataIndex - 1 : -1;
444
- n.insertNewChildDataItems(o, I);
445
- }
446
- function It() {
447
- const o = we(), a = G.getNextSelectableHierarchyItemId(o);
448
- n.removeHierarchyDataItem(o), c.value = ne(0, M.value + 0 - 1), a && G.selectItemById(a);
449
- }
450
- function Rt(o) {
451
- V.onEditingRow(o);
452
- }
453
- function Bt(o) {
454
- V.acceptEditingRow(o);
455
- }
456
- function Dt(o) {
457
- V.cancelEditingRow(o);
458
- }
459
- function Se(o) {
460
- o && (r.value = o, N(r), Ce(r.value), fe(n, le), ye());
461
- }
462
- ue(() => e.columns, (o) => {
463
- Se(o);
464
- });
465
- function Ot(o, a) {
466
- o && (n.load(o), n.reOrderVisibleIndex(), a != null && a.keepScrollPosition ? R.scrollTo(R.offsetY.value) : ie());
467
- }
468
- function Ft(o) {
469
- G.selectItemById(o);
470
- }
471
- function Pt(o) {
472
- const a = c.value.find((v) => v.raw[d.idField.value] === o);
473
- a && A.clickRowItem(a);
474
- }
475
- function Gt(o) {
476
- A.activeRowById(o);
477
- }
478
- function jt(o) {
479
- G.selectItemByIds(o);
480
- }
481
- function Tt() {
482
- return g.getSelectedItems();
483
- }
484
- function De() {
485
- g.clearSelection();
486
- }
487
- const kt = T(() => !c.value || !c.value.length), {
488
- renderEmpty: Mt
489
- } = ho(e, t);
490
- function Vt() {
491
- return g.getSelectionRow();
492
- }
493
- function Ht(o) {
494
- G.unSelectItemByIds(o);
495
- }
496
- function xt() {
497
- return g.currentSelectedDataId.value;
498
- }
499
- function Nt(o, a, v) {
500
- const I = W.value.find((F) => F[p.value] === o);
501
- if (I) {
502
- if (Object.keys(I).forEach((h) => {
503
- Object.prototype.hasOwnProperty.call(a, h) && (I[h] = a[h]);
504
- }), v) {
505
- const {
506
- collapseField: h,
507
- disabledField: Y,
508
- checkedField: J,
509
- visibleField: K
510
- } = v;
511
- h && !L(a[h]) && (I.__fv_collapse__ = a[h]), J && !L(a[J]) && (I.__fv_checked__ = a[J]), Y && !L(a[Y]) && (I.__fv_disabled__ = a[Y]), K && !L(a[K]) && (I.__fv_visible__ = a[K]);
512
- }
513
- const F = c.value.find((h) => h.raw[p.value] === o), Pe = c.value.findIndex((h) => h.raw[p.value] === o);
514
- if (F) {
515
- if (F.raw = I, Object.keys(F.data).forEach((h) => {
516
- F.data[h].updateData(I);
517
- }), v) {
518
- const {
519
- collapseField: h,
520
- disabledField: Y,
521
- checkedField: J,
522
- visibleField: K
523
- } = v;
524
- h && !L(a[h]) && (F.collapse = a[h]), J && !L(a[J]) && (F.checked = a[J]), Y && !L(a[Y]) && (F.disabled = a[Y]), K && !L(a[K]) && (F.visible = a[K]);
525
- }
526
- c.value = [...c.value.slice(0, Pe), F, ...c.value.slice(Pe + 1)], n.updateSummary();
527
- }
528
- }
529
- }
530
- function At(o) {
531
- return Object.prototype.hasOwnProperty.call(o, "raw") ? n.hasRealChildren(o.raw) : n.hasRealChildren(o);
532
- }
533
- function Et(o) {
534
- const a = n.dataView.value.find((v) => v[p.value] === o);
535
- return a ? a[B.value] : "";
536
- }
537
- function zt() {
538
- return B.value;
539
- }
540
- ue(() => e.showSetting, (o, a) => {
541
- o !== a && (o ? ee(r) : pe(r), Se(r.value));
542
- });
543
- function Wt(o) {
544
- return c.value.filter((a) => o.includes(a.raw[e.idField]));
545
- }
546
- function _t(o) {
547
- const a = d.idField.value, v = c.value.find((I) => I.raw[a] === o);
548
- v && A.changeRow(v);
549
- }
550
- function $t() {
551
- g.keepSelectingOnPaging.value || De(), n.updateVisibleDataSummary(c.value);
552
- }
553
- t.expose({
554
- activeRowById: Gt,
555
- addNewDataItem: ht,
556
- addNewChildDataItem: wt,
557
- addChildrenToNode: St,
558
- collapseTo: bt,
559
- expandTo: vt,
560
- removeDataItem: It,
561
- editDataItem: Rt,
562
- acceptDataItem: Bt,
563
- cancelDataItem: Dt,
564
- updateColumns: Se,
565
- updateDataSource: Ot,
566
- selectItemById: Ft,
567
- selectItemByIds: jt,
568
- getSelectedItems: Tt,
569
- clearSelection: De,
570
- getSelectionRow: Vt,
571
- clickRowItemById: Pt,
572
- unSelectItemByIds: Ht,
573
- getCurrentRowId: xt,
574
- reassignRowData: Nt,
575
- hasChildren: At,
576
- getCollapseField: zt,
577
- getCollapseStatusById: Et,
578
- getVisibleDataByIds: Wt,
579
- selectRowById: _t,
580
- updateDerivedData: $t
581
- });
582
- const Lt = T(() => {
583
- const o = {};
584
- return R.shouldShowHorizontalScrollbar.value && (o.paddingBottom = "10px"), R.shouldShowVirticalScrollbar.value && (o.paddingRight = "10px"), o;
585
- }), Ut = T(() => ({
586
- ...X.value,
587
- borderRadius: "5px"
588
- })), {
589
- renderDataGridPagination: dn
590
- } = wo(e, t, n, R, Q, g), qt = T(() => ({
591
- "d-flex": !0,
592
- "justify-content-between": b.value && x.value,
593
- "justify-content-end": b.value && !x.value,
594
- "position-relative": !0
595
- })), Yt = T(() => ({
596
- "d-flex": !0,
597
- "align-items-center": !0
598
- })), {
599
- renderDataGridSummary: Jt
600
- } = So(e, n, _);
601
- return () => P("div", {
602
- ref: s,
603
- class: st.value,
604
- style: Ut.value,
605
- onWheel: me
606
- }, [i.value && pt.value && ct(), P("div", {
607
- ref: i,
608
- class: rt.value,
609
- onMouseover: () => O.value = !0,
610
- onMouseleave: () => O.value = !1,
611
- style: Lt.value
612
- }, [i.value && ft(c), i.value && dt(), i.value && kt.value && Mt(), i.value && yt(), i.value && gt()]), i.value && Jt(), x.value && P("div", {
613
- class: qt.value
614
- }, [x.value && P("div", {
615
- class: Yt.value
616
- }, [P("div", null, ["已选:" + U.value.length, eo(" 条")])])]), ut(), ae.value && mt()]);
617
- }
618
- }), $o = "https://json-schema.org/draft/2020-12/schema", Lo = "https://farris-design.gitee.io/tree-grid.schema.json", Uo = "tree-grid", qo = "A Farris Data Grid Component", Yo = "object", Jo = {
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 = {
619
12
  id: {
620
13
  description: "The unique identifier for a Input Group",
621
14
  type: "string"
@@ -785,6 +178,11 @@ const _o = /* @__PURE__ */ je({
785
178
  description: "",
786
179
  type: "string",
787
180
  default: ""
181
+ },
182
+ count: {
183
+ description: "",
184
+ type: "number",
185
+ default: 2
788
186
  }
789
187
  }
790
188
  },
@@ -1422,63 +820,63 @@ const _o = /* @__PURE__ */ je({
1422
820
  type: "string",
1423
821
  default: ""
1424
822
  }
1425
- }, Ko = [
823
+ }, ut = [
1426
824
  "id",
1427
825
  "type",
1428
826
  "columns"
1429
- ], Qo = {
827
+ ], ft = {
1430
828
  onSelectionChange: "行切换事件",
1431
829
  onClickRow: "行点击事件",
1432
830
  onDoubleClickRow: "行双击事件",
1433
831
  onFilterChanged: "过滤事件",
1434
832
  onClickEditCommand: "操作列编辑事件",
1435
833
  onClickDeleteCommand: "操作列删除事件"
1436
- }, et = {
1437
- $schema: $o,
1438
- $id: Lo,
1439
- title: Uo,
1440
- description: qo,
1441
- type: Yo,
1442
- properties: Jo,
1443
- required: Ko,
1444
- events: Qo
1445
- }, tt = /* @__PURE__ */ new Map([
1446
- ["appearance", Io],
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],
1447
845
  ["column", "columnOption"],
1448
846
  ["command", "commandOption"]
1449
847
  ]);
1450
- function Xo(e, t, f) {
1451
- var m;
1452
- const l = f.parentComponentInstance, u = l.schema.type, r = String(((m = l.schema.appearance) == null ? void 0 : m.class) || "").split(" "), d = u === "section" || u === "tab-page", p = r.includes("f-page-content-nav"), s = r.includes("f-page-main"), i = e.getSchemaByType("component");
1453
- i.id = `${t.id}-component`, i.componentType = "data-grid";
1454
- let y = "";
1455
- return y += d ? "f-struct-data-grid-in-card f-struct-is-subgrid" : "", y += p ? "f-struct-data-grid-in-nav f-struct-wrapper f-utils-fill-flex-column" : "", y += s ? "f-struct-data-grid f-struct-wrapper" : "", i.appearance = {
1456
- class: y
1457
- }, i.contents = [t], i;
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;
1458
856
  }
1459
- function Zo(e, t, f) {
1460
- const l = f.parentComponentInstance, u = String(l.schema.appearance.class || "").split(" "), r = u.includes("f-page-content-nav"), d = u.includes("f-page-main"), p = e.getSchemaByType("section");
1461
- p.id = `${t.id}-section`;
1462
- let s = "";
1463
- return s += r ? "f-section-in-nav " : "", s += d ? "f-section-in-managelist " : "", s += "f-section-grid", p.appearance = { class: s }, p.contents = [t], p;
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;
1464
862
  }
1465
- function en(e, t, f) {
1466
- const l = e.getSchemaByType("content-container");
1467
- return l.id = `${t.id}-layout`, l.appearance = { class: "f-grid-is-sub f-utils-flex-column" }, l.contents = [t], l;
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;
1468
866
  }
1469
- function ot(e, t, f) {
1470
- const u = f.parentComponentInstance.schema.type, r = u === "section" || u === "tab-page";
1471
- t.appearance = { class: "f-component-grid" };
1472
- const p = (r ? en : Zo)(e, t, f);
1473
- return Xo(e, p, f);
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);
1474
872
  }
1475
- const tn = Xe(Ze, et, tt, ot), on = Ro(), nn = Bo(), nt = Qt(Object.assign({}, Ze, { componentId: { type: String, default: "" } }), "columnOption", "commandOption"), an = Xe(nt, et, tt, ot), ln = Do();
1476
- class sn extends Po {
1477
- constructor(t, f) {
1478
- super(t, f);
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);
1479
877
  }
1480
- getPropertyConfig(t) {
1481
- return this.getBasicPropConfig(t), this.getAppearanceProperties(t), this.propertyConfig.categories.command = Go(this).getCommandColumnProperties(t), this.propertyConfig.categories.column = jo().getColumnOptionProperties(t), this.propertyConfig.categories.rowOption = To().getRowOptionProperties(t), this.propertyConfig.categories.summary = ko().getSummaryProperties(t), this.propertyConfig.categories.filter = {
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 = {
1482
880
  title: "过滤",
1483
881
  description: "",
1484
882
  properties: {
@@ -1494,16 +892,16 @@ class sn extends Po {
1494
892
  }
1495
893
  }
1496
894
  }
1497
- }, this.getEventPropConfig(t), this.propertyConfig;
895
+ }, this.getEventPropConfig(e), this.propertyConfig;
1498
896
  }
1499
- getBasicPropConfig(t) {
1500
- var d, p, s;
1501
- const f = (s = (p = (d = this.formSchemaUtils.getFormSchema()) == null ? void 0 : d.module) == null ? void 0 : p.entity[0]) == null ? void 0 : s.entities[0], l = this.assembleSchemaEntityToTree(f, 0), u = this, r = super.getBasicPropConfig(t);
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);
1502
900
  this.propertyConfig.categories.basic = {
1503
901
  description: "Basic Information",
1504
902
  title: "基本信息",
1505
903
  properties: {
1506
- ...r.properties,
904
+ ...s.properties,
1507
905
  dataSource: {
1508
906
  description: "绑定数据源",
1509
907
  title: "绑定数据源",
@@ -1511,213 +909,478 @@ class sn extends Po {
1511
909
  type: "combo-tree",
1512
910
  textField: "name",
1513
911
  valueField: "label",
1514
- data: l,
912
+ data: o,
1515
913
  editable: !1
1516
914
  },
1517
915
  readonly: !0
1518
916
  }
1519
917
  },
1520
- setPropertyRelates(i, y) {
1521
- switch (i && i.propertyID) {
918
+ setPropertyRelates(c, u) {
919
+ switch (c && c.propertyID) {
1522
920
  case "dataSource": {
1523
- const m = u.formSchemaUtils.getViewModelById(u.viewModelId);
1524
- if (m) {
1525
- const D = l.find((c) => c.label === i.propertyValue);
1526
- m.bindTo = D.bindTo;
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;
1527
925
  }
1528
- u.designViewModelUtils.assembleDesignViewModel();
926
+ a.designViewModelUtils.assembleDesignViewModel();
1529
927
  break;
1530
928
  }
1531
929
  }
1532
930
  }
1533
931
  };
1534
932
  }
1535
- getAppearanceProperties(t) {
1536
- this.propertyConfig.categories.appearance = Mo().getDataGrid(t, this.viewModelId), this.propertyConfig.categories.rowNumber = Vo().getRowNumber(t), this.propertyConfig.categories.pagination = Ho().getPagination(t, !0);
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);
1537
935
  }
1538
- getEventPropConfig(t) {
1539
- const f = xo().initEvent(t), l = this, u = l.eventsEditorUtils.formProperties(t, l.viewModelId, f), r = l.createBaseEventProperty(u);
936
+ getEventPropConfig(e) {
937
+ const i = ot().initEvent(e), o = this, a = o.eventsEditorUtils.formProperties(e, o.viewModelId, i), s = o.createBaseEventProperty(a);
1540
938
  this.propertyConfig.categories.eventsEditor = {
1541
939
  title: "事件",
1542
940
  hideTitle: !0,
1543
- properties: r,
941
+ properties: s,
1544
942
  // 这个属性,标记当属性变更得时候触发重新更新属性
1545
943
  refreshPanelAfterChanged: !0,
1546
944
  tabId: "commands",
1547
945
  tabName: "交互",
1548
- setPropertyRelates(d, p) {
1549
- const s = d.propertyValue;
1550
- delete t[l.viewModelId], s && (s.setPropertyRelates = this.setPropertyRelates, l.eventsEditorUtils.saveRelatedParameters(t, l.viewModelId, s.events, s)), t.remoteSort = !!t.columnSorted, t.command && (t.command.onClickEditCommand = t.onClickEditCommand, t.command.onClickDeleteCommand = t.onClickDeleteCommand, t.command.onHandleAction = t.onHandleAction);
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);
1551
949
  }
1552
950
  };
1553
951
  }
1554
952
  /**
1555
953
  * 将schema实体表组装成树
1556
954
  */
1557
- assembleSchemaEntityToTree(t, f, l, u = "", r = []) {
1558
- const d = u ? `${u}/${t.label}` : "/";
1559
- return r.push({
1560
- id: t.id,
1561
- name: t.name,
1562
- label: t.label,
1563
- layer: f,
1564
- parent: l && l.id,
1565
- bindTo: d.replace("//", "/")
1566
- }), t.type.entities && t.type.entities.length && t.type.entities.map((p) => this.assembleSchemaEntityToTree(p, f + 1, t, d, r)), r;
955
+ assembleSchemaEntityToTree(e, i, o, a = "", s = []) {
956
+ const r = a ? `${a}/${e.label}` : "/";
957
+ 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;
1567
965
  }
1568
966
  }
1569
- function rn(e, t) {
1570
- const f = e.schema, l = C(!0), u = C(!0);
1571
- function r(m) {
1572
- return m && m.sourceType === "control" ? m.componentCategory === "input" : !1;
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;
1573
971
  }
1574
- function d() {
972
+ function r() {
1575
973
  return !1;
1576
974
  }
1577
- function p() {
975
+ function l() {
1578
976
  return !1;
1579
977
  }
1580
- function s() {
978
+ function n() {
1581
979
  return !0;
1582
980
  }
1583
- function i(m) {
1584
- return new sn(m, t).getPropertyConfig(f);
981
+ function c(d) {
982
+ return new St(d, e).getPropertyConfig(i);
1585
983
  }
1586
- function y() {
1587
- var m, D, c, O;
1588
- if (e && t) {
1589
- const E = (m = e == null ? void 0 : e.componentInstance) == null ? void 0 : m.value.belongedComponentId;
1590
- let w = "", H = "";
1591
- const { formSchemaUtils: S } = t;
1592
- if (E) {
1593
- const z = S.getRootViewModelId(), k = S.getComponentByViewModelId(z), n = S.selectNode(k, (W) => W.contents && W.contents.find((g) => g.component === E));
1594
- (n == null ? void 0 : n.type) === ((D = Ie["tab-page"]) == null ? void 0 : D.type) && ((c = n == null ? void 0 : n.contents) != null && c.length) && (w = n.title || ""), (n == null ? void 0 : n.type) === ((O = Ie.section) == null ? void 0 : O.type) && (n == null ? void 0 : n.showHeader) !== !1 && (w = n.mainTitle || ""), w = w ? `${w} > ` : "", H = w ? n.id : "";
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 : "";
1595
993
  }
1596
- const B = Ie["tree-grid"].name;
1597
- t == null || t.formSchemaUtils.getControlBasicInfoMap().set(e.schema.id, {
1598
- componentTitle: B,
1599
- parentPathName: `${w}${B}`,
1600
- reliedComponentId: H
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
1601
999
  });
1602
1000
  }
1603
1001
  }
1604
1002
  return {
1605
- canAccepts: r,
1606
- checkCanDeleteComponent: d,
1607
- checkCanMoveComponent: p,
1608
- hideNestedPaddingInDesginerView: s,
1609
- triggerBelongedComponentToMoveWhenMoved: l,
1610
- triggerBelongedComponentToDeleteWhenDeleted: u,
1611
- getPropsConfig: i,
1612
- setComponentBasicInfoMap: y
1003
+ canAccepts: s,
1004
+ checkCanDeleteComponent: r,
1005
+ checkCanMoveComponent: l,
1006
+ hideNestedPaddingInDesginerView: n,
1007
+ triggerBelongedComponentToMoveWhenMoved: o,
1008
+ triggerBelongedComponentToDeleteWhenDeleted: a,
1009
+ getPropsConfig: c,
1010
+ setComponentBasicInfoMap: u
1613
1011
  };
1614
1012
  }
1615
- const ge = /* @__PURE__ */ je({
1013
+ const I = /* @__PURE__ */ ve({
1616
1014
  name: "FTreeGridDesign",
1617
- props: nt,
1015
+ props: _,
1618
1016
  emits: [],
1619
- setup(e, t) {
1620
- var me, ce;
1621
- const f = C(), l = 0, u = ((me = e.rowOption) == null ? void 0 : me.height) || 28, r = C(20), d = C(e.columns), p = Ve(e), s = C(), i = C(), y = C([]), m = C(!1), D = C(((ce = e.rowOption) == null ? void 0 : ce.wrapContent) || !1), c = Ge("designer-host-service"), O = Ge("design-item-context"), E = rn(O, c), w = Fo(f, O, E);
1622
- w.value.designerClass = "f-utils-fill-flex-column";
1623
- const H = He(e, t), S = xe(e), B = Ne(e, /* @__PURE__ */ new Map(), H, S, p), z = Ae(e, B, p, y, t), k = T(() => B.dataView.value.length), {
1624
- containerStyleObject: n
1625
- } = Ee(e), W = ze(e), {
1626
- applyCommands: g
1627
- } = W;
1628
- g(d);
1629
- const x = No(e), {
1630
- applyColumnSorter: U,
1631
- columnContext: G,
1632
- updateColumnRenderContext: ae
1633
- } = x, M = We(e), Q = _e(e, G), b = $e(e, t, z, p), X = Le(e, t, p, b, y), Z = Ue(e), N = qe(e, X, Z), ee = Ye(e, B, X, S, p, Z, N), pe = Ao(e, d, B, k, l, ee), {
1634
- getVisualData: _
1635
- } = pe, le = Je(e, z), {
1636
- sidebarWidth: fe
1637
- } = le;
1638
- y.value = _(0, k.value + l - 1);
1639
- const $ = Ke(e, B, y, G, pe, k, l, fe), {
1640
- onWheel: Ce,
1641
- dataGridWidth: te,
1642
- viewPortHeight: A,
1643
- viewPortWidth: V,
1644
- updateVisibleRowsOnLatestVisibleScope: se
1645
- } = $, be = Eo(e, G, s, V, Q), {
1646
- calculateColumnsSize: oe
1647
- } = be, re = T(() => ({
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(() => ({
1648
1046
  "drag-container": !0,
1649
1047
  "fv-grid": !0,
1650
- "fv-grid-bordered": e.showBorder,
1651
- "fv-datagrid-strip": e.showStripe
1652
- })), ne = T(() => ({
1048
+ "fv-grid-bordered": t.showBorder,
1049
+ "fv-datagrid-strip": t.showStripe
1050
+ })), fe = k(() => ({
1653
1051
  "fv-grid-content": !0,
1654
- "fv-grid-content-hover": m.value,
1655
- "fv-grid-wrap-content": D.value
1052
+ "fv-grid-content-hover": d.value,
1053
+ "fv-grid-wrap-content": b.value
1656
1054
  })), {
1657
- renderGridHeader: ve
1658
- } = Oo(O, e, x, $, "tree-grid-column"), {
1659
- renderHorizontalScrollbar: de
1660
- } = Qe(e, s, $);
1661
- function he() {
1662
- var q, ie;
1663
- const j = Math.ceil(s.value.clientHeight / u);
1664
- j > r.value && (r.value = j, se()), A.value = ((q = i.value) == null ? void 0 : q.clientHeight) || 0, te.value = ((ie = s.value) == null ? void 0 : ie.clientWidth) || 0, oe();
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();
1665
1063
  }
1666
- Te(() => {
1667
- f.value.componentInstance = w, s.value && (r.value = Math.max(Math.ceil(s.value.clientHeight / u), r.value), y.value = _(0, k.value + l - 1), Me(s.value, he), oe(), ke(() => {
1668
- s.value && (te.value = s.value.clientWidth), i.value && (V.value = i.value.clientWidth, A.value = i.value.clientHeight);
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);
1669
1067
  }));
1670
1068
  });
1671
- function R(j) {
1672
- j && (d.value = j, g(d), ae(d.value), U(B, M), oe());
1069
+ function be(g) {
1070
+ g && (r.value = g, R(r), te(r.value), ee(m, oe), j());
1673
1071
  }
1674
- return ue(() => e.columns, (j) => {
1675
- R(j);
1676
- }), ue(V, () => {
1677
- s.value && oe();
1678
- }), t.expose(w.value), () => P("div", {
1679
- ref: f,
1680
- class: re.value,
1681
- style: n.value,
1682
- onWheel: Ce,
1683
- dragref: `${O.schema.id}-container`
1684
- }, [s.value && ve(), P("div", {
1685
- ref: s,
1686
- class: ne.value,
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,
1687
1085
  onMouseover: () => {
1688
- m.value = !0;
1086
+ d.value = !0;
1689
1087
  },
1690
1088
  onMouseleave: () => {
1691
- m.value = !1;
1089
+ d.value = !1;
1692
1090
  }
1693
- }, [de()])]);
1091
+ }, [me()])]);
1694
1092
  }
1695
- });
1696
- ge.register = (e, t, f, l) => {
1697
- e["tree-grid"] = _o, t["tree-grid"] = tn, l["tree-grid"] = { bindingResolver: nn, selectionItemResolver: on, updateColumnsResolver: ln };
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 };
1698
1361
  };
1699
- ge.registerDesigner = (e, t, f) => {
1700
- e["tree-grid"] = ge, t["tree-grid"] = an;
1362
+ I.registerDesigner = (t, e, i) => {
1363
+ t["tree-grid"] = I, e["tree-grid"] = wt;
1701
1364
  };
1702
- const Tn = Xt(ge);
1365
+ const Lt = he(I);
1703
1366
  export {
1704
- ge as FTreeGridDesign,
1705
- nn as bindingResolver,
1706
- Pn as columnOptions,
1707
- Tn as default,
1708
- an as designPropsResolver,
1709
- Gn as editOptions,
1710
- Bn as filterOptions,
1711
- Rn as groupOptions,
1712
- Dn as headerOptions,
1713
- jn as loadingOptions,
1714
- Sn as paginationOptions,
1715
- tn as propsResolver,
1716
- On as rowOptions,
1717
- on as selectionItemResolver,
1718
- In as sortOptions,
1719
- Fn as summaryOptions,
1720
- nt as treeGridDesignProps,
1721
- zo as treeGridProps,
1722
- ln as updateColumnsResolver
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
1723
1386
  };