@vef-framework/components 1.0.7 → 1.0.9

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 (349) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.ts +15 -2
  3. package/dist/index.js +2 -2
  4. package/dist/internal/index.js +1 -1
  5. package/dist/internal/utils.js +1 -1
  6. package/dist/vef-access-denied/access-denied-icon.d.ts +1 -1
  7. package/dist/vef-access-denied/access-denied-icon.js +1 -1
  8. package/dist/vef-access-denied/index.js +1 -1
  9. package/dist/vef-action-buttons/index.js +1 -1
  10. package/dist/vef-app/helper.d.ts +10 -0
  11. package/dist/vef-app/helper.js +3 -0
  12. package/dist/vef-app/index.d.ts +5 -0
  13. package/dist/vef-app/index.js +3 -0
  14. package/dist/vef-app/props.d.ts +7 -0
  15. package/dist/vef-auto-sizer/index.d.ts +5 -0
  16. package/dist/vef-auto-sizer/index.js +3 -0
  17. package/dist/vef-auto-sizer/props.d.ts +5 -0
  18. package/dist/vef-avatar/index.d.ts +5 -0
  19. package/dist/vef-avatar/index.js +3 -0
  20. package/dist/vef-avatar/props.d.ts +11 -0
  21. package/dist/vef-avatar-group/index.d.ts +5 -0
  22. package/dist/vef-avatar-group/index.js +3 -0
  23. package/dist/vef-avatar-group/props.d.ts +15 -0
  24. package/dist/vef-badge/index.js +1 -1
  25. package/dist/vef-bool/hooks/use-bool-instance.js +1 -1
  26. package/dist/vef-bool/index.js +1 -1
  27. package/dist/vef-button/components/base-button.js +1 -1
  28. package/dist/vef-button/index.js +1 -1
  29. package/dist/vef-card/index.js +1 -1
  30. package/dist/vef-card-meta/index.js +1 -1
  31. package/dist/vef-checkbox/hooks/use-checkbox-instance.js +1 -1
  32. package/dist/vef-checkbox/hooks/use-data-options.d.ts +1 -1
  33. package/dist/vef-checkbox/hooks/use-data-options.js +1 -1
  34. package/dist/vef-checkbox/index.js +1 -1
  35. package/dist/vef-col/index.js +1 -1
  36. package/dist/vef-color-picker/index.js +1 -1
  37. package/dist/vef-compact/index.js +1 -1
  38. package/dist/vef-config-provider/hooks/use-ui-config.d.ts +3 -5
  39. package/dist/vef-config-provider/hooks/use-ui-config.js +2 -2
  40. package/dist/vef-config-provider/index.js +15 -23
  41. package/dist/vef-config-provider/reset-style.js +1 -1
  42. package/dist/vef-config-provider/store.d.ts +14 -9
  43. package/dist/vef-config-provider/store.js +2 -2
  44. package/dist/vef-container/index.js +1 -1
  45. package/dist/vef-crud-page/components/crud-actions.js +1 -1
  46. package/dist/vef-crud-page/components/crud-filter.js +1 -1
  47. package/dist/vef-crud-page/components/crud-footer.js +4 -4
  48. package/dist/vef-crud-page/components/crud-form-modal.js +1 -1
  49. package/dist/vef-crud-page/components/crud-header.js +1 -1
  50. package/dist/vef-crud-page/components/crud-table.d.ts +2 -2
  51. package/dist/vef-crud-page/components/crud-table.js +2 -2
  52. package/dist/vef-crud-page/hooks/use-action-buttons.js +2 -2
  53. package/dist/vef-crud-page/hooks/use-crud-context.js +1 -1
  54. package/dist/vef-crud-page/hooks/use-crud-schema.d.ts +2 -2
  55. package/dist/vef-crud-page/hooks/use-crud-schema.js +1 -1
  56. package/dist/vef-crud-page/hooks/use-operation-buttons.js +2 -2
  57. package/dist/vef-crud-page/index.d.ts +3 -3
  58. package/dist/vef-crud-page/index.js +1 -1
  59. package/dist/vef-crud-page/props.d.ts +1 -1
  60. package/dist/vef-crud-page/store.js +1 -1
  61. package/dist/vef-divider/index.js +2 -2
  62. package/dist/vef-divider/props.d.ts +3 -3
  63. package/dist/vef-drawer/components/action-button-wrapper.d.ts +1 -2
  64. package/dist/vef-drawer/components/action-button-wrapper.js +1 -1
  65. package/dist/vef-drawer/components/button-props.js +1 -1
  66. package/dist/vef-drawer/components/cancel-action-button.js +1 -1
  67. package/dist/vef-drawer/components/ok-action-button.js +2 -2
  68. package/dist/vef-drawer/context.js +1 -1
  69. package/dist/vef-drawer/index.js +1 -1
  70. package/dist/vef-dropdown/index.d.ts +4 -1
  71. package/dist/vef-dropdown/index.js +2 -2
  72. package/dist/vef-dropdown/props.d.ts +28 -35
  73. package/dist/vef-dynamic-icon/index.d.ts +5 -0
  74. package/dist/vef-dynamic-icon/index.js +3 -0
  75. package/dist/vef-dynamic-icon/props.d.ts +20 -0
  76. package/dist/vef-dynamic-icon/props.js +3 -0
  77. package/dist/vef-empty/index.d.ts +1 -1
  78. package/dist/vef-empty/index.js +2 -2
  79. package/dist/vef-empty/props.d.ts +16 -1
  80. package/dist/vef-empty-placeholder/index.js +5 -5
  81. package/dist/vef-error/error-icon.d.ts +1 -1
  82. package/dist/vef-error/error-icon.js +1 -1
  83. package/dist/vef-error/index.js +1 -1
  84. package/dist/vef-filter/components/action-buttons.js +7 -7
  85. package/dist/vef-filter/components/advanced-filter.js +4 -4
  86. package/dist/vef-filter/components/basic-filter.js +1 -1
  87. package/dist/vef-filter/components/fields/index.js +1 -1
  88. package/dist/vef-filter/components/fields/input-number.js +1 -1
  89. package/dist/vef-filter/components/fields/input.js +1 -1
  90. package/dist/vef-filter/components/filter-field.js +1 -1
  91. package/dist/vef-filter/components/filter-item.d.ts +1 -1
  92. package/dist/vef-filter/components/filter-item.js +1 -1
  93. package/dist/vef-filter/event.js +1 -1
  94. package/dist/vef-filter/helper.js +1 -1
  95. package/dist/vef-filter/hooks/use-action-handlers.js +1 -1
  96. package/dist/vef-filter/hooks/use-computed-values.js +1 -1
  97. package/dist/vef-filter/hooks/use-filter-context.js +1 -1
  98. package/dist/vef-filter/hooks/use-filter-initialization.d.ts +1 -1
  99. package/dist/vef-filter/hooks/use-filter-initialization.js +1 -1
  100. package/dist/vef-filter/hooks/use-filter-instance.js +1 -1
  101. package/dist/vef-filter/hooks/use-filter-items.js +1 -1
  102. package/dist/vef-filter/hooks/use-filter-values-change.d.ts +1 -1
  103. package/dist/vef-filter/hooks/use-filter-values-change.js +1 -1
  104. package/dist/vef-filter/hooks/use-label-config.js +1 -1
  105. package/dist/vef-filter/index.d.ts +3 -4
  106. package/dist/vef-filter/index.js +1 -1
  107. package/dist/vef-filter/props.d.ts +2 -3
  108. package/dist/vef-filter/store.d.ts +1 -1
  109. package/dist/vef-filter/store.js +1 -1
  110. package/dist/vef-flex/index.js +1 -1
  111. package/dist/vef-float-button/index.js +1 -1
  112. package/dist/vef-float-button-group/index.js +1 -1
  113. package/dist/vef-form/components/fields/index.js +1 -1
  114. package/dist/vef-form/components/fields/input-number.js +1 -1
  115. package/dist/vef-form/components/fields/input.js +1 -1
  116. package/dist/vef-form/components/form-actions.js +1 -1
  117. package/dist/vef-form/components/form-content.d.ts +6 -1
  118. package/dist/vef-form/components/form-content.js +4 -4
  119. package/dist/vef-form/components/form-field.js +1 -1
  120. package/dist/vef-form/components/form-group.d.ts +3 -3
  121. package/dist/vef-form/components/form-group.js +1 -1
  122. package/dist/vef-form/components/form-hidden-item.js +1 -1
  123. package/dist/vef-form/components/form-item.d.ts +1 -1
  124. package/dist/vef-form/components/form-item.js +1 -1
  125. package/dist/vef-form/components/form-row.d.ts +2 -2
  126. package/dist/vef-form/components/form-row.js +1 -1
  127. package/dist/vef-form/event.js +1 -1
  128. package/dist/vef-form/helper.js +1 -1
  129. package/dist/vef-form/hooks/use-action-handlers.js +1 -1
  130. package/dist/vef-form/hooks/use-columns-layout.d.ts +2 -2
  131. package/dist/vef-form/hooks/use-columns-layout.js +1 -1
  132. package/dist/vef-form/hooks/use-computed-values.js +1 -1
  133. package/dist/vef-form/hooks/use-form-context.js +1 -1
  134. package/dist/vef-form/hooks/use-form-initialization.d.ts +1 -1
  135. package/dist/vef-form/hooks/use-form-initialization.js +1 -1
  136. package/dist/vef-form/hooks/use-form-instance.js +1 -1
  137. package/dist/vef-form/hooks/use-form-values-change.d.ts +1 -1
  138. package/dist/vef-form/hooks/use-form-values-change.js +1 -1
  139. package/dist/vef-form/hooks/use-label-width.js +1 -1
  140. package/dist/vef-form/index.d.ts +3 -4
  141. package/dist/vef-form/index.js +4 -4
  142. package/dist/vef-form/props.d.ts +3 -4
  143. package/dist/vef-form/store.js +1 -1
  144. package/dist/vef-form/types.d.ts +10 -10
  145. package/dist/vef-form/validation-rules.d.ts +1 -1
  146. package/dist/vef-form/validation-rules.js +1 -1
  147. package/dist/vef-form-drawer/index.d.ts +2 -2
  148. package/dist/vef-form-drawer/index.js +1 -1
  149. package/dist/vef-form-modal/index.d.ts +2 -2
  150. package/dist/vef-form-modal/index.js +1 -1
  151. package/dist/vef-generic-select/index.d.ts +4 -0
  152. package/dist/vef-generic-select/index.js +3 -0
  153. package/dist/vef-generic-select/props.d.ts +60 -0
  154. package/dist/vef-grid/index.js +1 -1
  155. package/dist/vef-grid/props.js +1 -1
  156. package/dist/vef-grid-item/index.js +1 -1
  157. package/dist/vef-icon/index.js +2 -2
  158. package/dist/vef-icon/props.d.ts +6 -2
  159. package/dist/vef-icon-select/index.d.ts +5 -0
  160. package/dist/vef-icon-select/index.js +42 -0
  161. package/dist/vef-icon-select/props.d.ts +43 -0
  162. package/dist/vef-input/hooks/use-input-instance.js +2 -2
  163. package/dist/vef-input/index.js +1 -1
  164. package/dist/vef-input/props.d.ts +8 -0
  165. package/dist/vef-input-number/hooks/use-input-number-instance.js +1 -1
  166. package/dist/vef-input-number/index.js +1 -1
  167. package/dist/vef-layout/components/content.d.ts +3 -0
  168. package/dist/vef-layout/components/content.js +3 -0
  169. package/dist/vef-layout/components/font-size.d.ts +3 -0
  170. package/dist/vef-layout/components/font-size.js +6 -0
  171. package/dist/vef-layout/components/fullscreen.d.ts +3 -0
  172. package/dist/vef-layout/components/fullscreen.js +6 -0
  173. package/dist/vef-layout/components/header-action-icons.d.ts +3 -0
  174. package/dist/vef-layout/components/header-action-icons.js +17 -0
  175. package/dist/vef-layout/components/header-content.d.ts +3 -0
  176. package/dist/vef-layout/components/header-content.js +8 -0
  177. package/dist/vef-layout/components/header.d.ts +2 -0
  178. package/dist/vef-layout/components/header.js +14 -0
  179. package/dist/vef-layout/components/sider.d.ts +13 -0
  180. package/dist/vef-layout/components/sider.js +51 -0
  181. package/dist/vef-layout/components/title.d.ts +16 -0
  182. package/dist/vef-layout/components/title.js +38 -0
  183. package/dist/vef-layout/components/user-avatar.d.ts +3 -0
  184. package/dist/vef-layout/components/user-avatar.js +20 -0
  185. package/dist/vef-layout/index.d.ts +4 -0
  186. package/dist/vef-layout/index.js +7 -0
  187. package/dist/vef-layout/logo.svg.js +3 -0
  188. package/dist/vef-layout/props.d.ts +19 -0
  189. package/dist/vef-layout/store.d.ts +16 -0
  190. package/dist/vef-layout/store.js +3 -0
  191. package/dist/vef-loading-placeholder/index.js +1 -1
  192. package/dist/vef-login/index.js +11 -8
  193. package/dist/vef-login/login-icon.d.ts +1 -1
  194. package/dist/vef-login/login-icon.js +1 -1
  195. package/dist/vef-menu/index.d.ts +5 -0
  196. package/dist/vef-menu/index.js +3 -0
  197. package/dist/vef-menu/props.d.ts +74 -0
  198. package/dist/vef-modal/components/action-button-wrapper.d.ts +1 -2
  199. package/dist/vef-modal/components/action-button-wrapper.js +1 -1
  200. package/dist/vef-modal/components/button-props.js +1 -1
  201. package/dist/vef-modal/components/cancel-action-button.js +1 -1
  202. package/dist/vef-modal/components/ok-action-button.js +2 -2
  203. package/dist/vef-modal/context.js +1 -1
  204. package/dist/vef-modal/index.js +3 -3
  205. package/dist/vef-not-found/index.js +1 -1
  206. package/dist/vef-not-found/not-found-icon.d.ts +1 -1
  207. package/dist/vef-not-found/not-found-icon.js +1 -1
  208. package/dist/vef-page/index.js +3 -3
  209. package/dist/vef-pagination/index.js +1 -1
  210. package/dist/vef-pagination/props.js +1 -1
  211. package/dist/vef-paragraph/index.js +1 -1
  212. package/dist/vef-password/hooks/use-password-instance.js +1 -1
  213. package/dist/vef-password/index.js +1 -1
  214. package/dist/vef-popconfirm/index.d.ts +1 -2
  215. package/dist/vef-popconfirm/index.js +2 -2
  216. package/dist/vef-popconfirm/props.d.ts +12 -4
  217. package/dist/vef-popover/index.d.ts +1 -2
  218. package/dist/vef-popover/index.js +2 -2
  219. package/dist/vef-popover/props.d.ts +14 -1
  220. package/dist/vef-radio/hooks/use-data-options.d.ts +1 -1
  221. package/dist/vef-radio/hooks/use-data-options.js +1 -1
  222. package/dist/vef-radio/hooks/use-radio-instance.js +1 -1
  223. package/dist/vef-radio/index.js +1 -1
  224. package/dist/vef-rate/hooks/use-rate-instance.js +1 -1
  225. package/dist/vef-rate/index.js +1 -1
  226. package/dist/vef-responsive-container/index.d.ts +1 -1
  227. package/dist/vef-responsive-container/index.js +1 -1
  228. package/dist/vef-responsive-item/index.d.ts +1 -1
  229. package/dist/vef-responsive-item/index.js +1 -1
  230. package/dist/vef-ribbon/index.js +1 -1
  231. package/dist/vef-row/index.js +1 -1
  232. package/dist/vef-scroll-area/components/scrollbar.js +1 -1
  233. package/dist/vef-scroll-area/index.js +7 -4
  234. package/dist/vef-scroll-area/props.d.ts +26 -2
  235. package/dist/vef-select/components/option.js +1 -1
  236. package/dist/vef-select/hooks/use-data-options.d.ts +2 -2
  237. package/dist/vef-select/hooks/use-data-options.js +1 -1
  238. package/dist/vef-select/hooks/use-field-names.js +1 -1
  239. package/dist/vef-select/hooks/{use-label-render.d.ts → use-render-label.d.ts} +3 -3
  240. package/dist/vef-select/hooks/{use-label-render.js → use-render-label.js} +2 -2
  241. package/dist/vef-select/hooks/use-render-option.d.ts +11 -0
  242. package/dist/vef-select/hooks/{use-option-render.js → use-render-option.js} +2 -2
  243. package/dist/vef-select/hooks/use-select-instance.js +1 -1
  244. package/dist/vef-select/index.js +2 -2
  245. package/dist/vef-select/props.d.ts +4 -3
  246. package/dist/vef-slider/hooks/use-slider-instance.js +1 -1
  247. package/dist/vef-slider/index.js +1 -1
  248. package/dist/vef-sortable-list/components/overlay-item.js +1 -1
  249. package/dist/vef-sortable-list/components/sortable-item.js +1 -1
  250. package/dist/vef-sortable-list/hooks/use-merged-items.d.ts +1 -1
  251. package/dist/vef-sortable-list/hooks/use-merged-items.js +1 -1
  252. package/dist/vef-sortable-list/index.d.ts +2 -2
  253. package/dist/vef-sortable-list/index.js +2 -2
  254. package/dist/vef-sortable-list/props.d.ts +3 -3
  255. package/dist/vef-space/index.js +1 -1
  256. package/dist/vef-spin/index.js +1 -1
  257. package/dist/vef-splitter/index.js +2 -2
  258. package/dist/vef-splitter/props.d.ts +3 -3
  259. package/dist/vef-splitter-panel/index.js +1 -1
  260. package/dist/vef-status/index.js +1 -1
  261. package/dist/vef-table/components/columns/bool.js +2 -2
  262. package/dist/vef-table/components/columns/code.js +1 -1
  263. package/dist/vef-table/components/columns/data-dictionary.js +2 -2
  264. package/dist/vef-table/components/columns/enum.js +2 -2
  265. package/dist/vef-table/components/columns/file.js +1 -1
  266. package/dist/vef-table/components/columns/icon.js +1 -1
  267. package/dist/vef-table/components/columns/id.js +1 -1
  268. package/dist/vef-table/components/columns/image.js +1 -1
  269. package/dist/vef-table/components/columns/index.js +1 -1
  270. package/dist/vef-table/components/columns/markdown.js +1 -1
  271. package/dist/vef-table/components/columns/number.js +1 -1
  272. package/dist/vef-table/components/columns/render.js +1 -1
  273. package/dist/vef-table/components/columns/rich-text.js +1 -1
  274. package/dist/vef-table/components/columns/text.js +1 -1
  275. package/dist/vef-table/components/columns-settings.js +2 -2
  276. package/dist/vef-table/components/operation-buttons.js +2 -2
  277. package/dist/vef-table/components/settings-icon.js +4 -4
  278. package/dist/vef-table/components/table-footer.js +1 -1
  279. package/dist/vef-table/helper.js +1 -1
  280. package/dist/vef-table/hooks/use-computed-batch-buttons.js +1 -1
  281. package/dist/vef-table/hooks/use-computed-columns.js +1 -1
  282. package/dist/vef-table/hooks/use-computed-values.js +1 -1
  283. package/dist/vef-table/hooks/use-data.d.ts +1 -1
  284. package/dist/vef-table/hooks/use-data.js +2 -2
  285. package/dist/vef-table/hooks/use-default-column-configs.js +1 -1
  286. package/dist/vef-table/hooks/use-display-value.js +1 -1
  287. package/dist/vef-table/hooks/use-helper-columns.d.ts +1 -1
  288. package/dist/vef-table/hooks/use-helper-columns.js +1 -1
  289. package/dist/vef-table/hooks/use-operation-column-width.d.ts +1 -1
  290. package/dist/vef-table/hooks/use-operation-column-width.js +1 -1
  291. package/dist/vef-table/hooks/use-pagination-props.js +1 -1
  292. package/dist/vef-table/hooks/use-row-props.js +2 -2
  293. package/dist/vef-table/hooks/use-row-selection-config.d.ts +3 -3
  294. package/dist/vef-table/hooks/use-row-selection-config.js +2 -2
  295. package/dist/vef-table/hooks/use-selected-rows.d.ts +10 -0
  296. package/dist/vef-table/hooks/use-selected-rows.js +3 -0
  297. package/dist/vef-table/hooks/use-table-columns.d.ts +1 -1
  298. package/dist/vef-table/hooks/use-table-columns.js +1 -1
  299. package/dist/vef-table/hooks/use-table-context.d.ts +1 -1
  300. package/dist/vef-table/hooks/use-table-context.js +1 -1
  301. package/dist/vef-table/hooks/use-table-instance.js +1 -1
  302. package/dist/vef-table/hooks/use-table-summary.d.ts +1 -1
  303. package/dist/vef-table/hooks/use-table-summary.js +1 -1
  304. package/dist/vef-table/hooks/use-table-width.js +1 -1
  305. package/dist/vef-table/index.d.ts +2 -2
  306. package/dist/vef-table/index.js +3 -3
  307. package/dist/vef-table/props.d.ts +15 -193
  308. package/dist/vef-table/store.d.ts +2 -2
  309. package/dist/vef-table/store.js +2 -2
  310. package/dist/vef-tabs/index.js +1 -1
  311. package/dist/vef-tag/index.js +1 -1
  312. package/dist/vef-temporal-picker/helper.js +1 -1
  313. package/dist/vef-temporal-picker/hooks/use-dayjs-value.d.ts +1 -1
  314. package/dist/vef-temporal-picker/hooks/use-dayjs-value.js +1 -1
  315. package/dist/vef-temporal-picker/hooks/use-temporal-limit.js +1 -1
  316. package/dist/vef-temporal-picker/hooks/use-temporal-picker-instance.js +1 -1
  317. package/dist/vef-temporal-picker/index.js +1 -1
  318. package/dist/vef-temporal-range-picker/helper.js +1 -1
  319. package/dist/vef-temporal-range-picker/hooks/use-dayjs-values.d.ts +1 -1
  320. package/dist/vef-temporal-range-picker/hooks/use-dayjs-values.js +1 -1
  321. package/dist/vef-temporal-range-picker/hooks/use-temporal-limit.js +1 -1
  322. package/dist/vef-temporal-range-picker/hooks/use-temporal-range-picker-instance.js +1 -1
  323. package/dist/vef-temporal-range-picker/index.js +1 -1
  324. package/dist/vef-temporal-range-picker/props.js +1 -1
  325. package/dist/vef-text/index.js +1 -1
  326. package/dist/vef-textarea/hooks/use-textarea-instance.js +1 -1
  327. package/dist/vef-textarea/index.js +1 -1
  328. package/dist/vef-title/index.js +2 -2
  329. package/dist/vef-tooltip/index.d.ts +1 -2
  330. package/dist/vef-tooltip/index.js +2 -2
  331. package/dist/vef-tooltip/props.d.ts +14 -1
  332. package/dist/vef-tree-select/hooks/use-change-handler.d.ts +1 -1
  333. package/dist/vef-tree-select/hooks/use-change-handler.js +1 -1
  334. package/dist/vef-tree-select/hooks/use-data-options.d.ts +1 -1
  335. package/dist/vef-tree-select/hooks/use-data-options.js +1 -1
  336. package/dist/vef-tree-select/hooks/use-tree-select-instance.js +1 -1
  337. package/dist/vef-tree-select/index.js +1 -1
  338. package/dist/vef-virtual-grid/index.d.ts +6 -0
  339. package/dist/vef-virtual-grid/index.js +14 -0
  340. package/dist/vef-virtual-grid/props.d.ts +83 -0
  341. package/dist/vef-virtual-list/index.d.ts +6 -0
  342. package/dist/vef-virtual-list/index.js +20 -0
  343. package/dist/vef-virtual-list/props.d.ts +111 -0
  344. package/package.json +19 -20
  345. package/dist/vef-config-provider/fonts/din/bold.woff2.js +0 -3
  346. package/dist/vef-config-provider/fonts/din/regular.woff2.js +0 -3
  347. package/dist/vef-select/hooks/use-option-render.d.ts +0 -11
  348. package/dist/vef-table/hooks/use-merged-value.d.ts +0 -10
  349. package/dist/vef-table/hooks/use-merged-value.js +0 -3
@@ -1,7 +1,7 @@
1
- import type { ObjectType, ObjectValue } from "@vef-framework/shared";
1
+ import { type ObjectType, type ObjectValue } from "@vef-framework/shared";
2
2
  import { type FC } from "react";
3
3
  import type { VefSortableListProps } from "./props";
4
- declare function VefSortableListBase<T extends ObjectType = ObjectValue>({ defaultItems, items, itemKey, className, style, direction, useOverlay, restrictStrategy, onChange, ...restProps }: VefSortableListProps<T>): import("@emotion/react/jsx-runtime").JSX.Element;
4
+ declare function VefSortableListBase<T extends ObjectType = ObjectValue>({ defaultItems, items, itemKey, className, style, orientation, useOverlay, restrictStrategy, onChange, ...restProps }: VefSortableListProps<T>): import("@emotion/react/jsx-runtime").JSX.Element;
5
5
  declare const VefSortableList: typeof VefSortableListBase & Pick<FC, "displayName">;
6
6
  export type { VefSortableListProps };
7
7
  export default VefSortableList;
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
- import{jsx as e,jsxs as t}from"@emotion/react/jsx-runtime";import{useSensors as r,useSensor as i,PointerSensor as o,DndContext as m,closestCenter as a,DragOverlay as s}from"@dnd-kit/core";import{restrictToParentElement as n,restrictToWindowEdges as d}from"@dnd-kit/modifiers";import{arrayMove as c,SortableContext as l,verticalListSortingStrategy as p,horizontalListSortingStrategy as f}from"@dnd-kit/sortable";import{isFunction as u}from"@vef-framework/shared";import{useMemo as y,useState as v,useCallback as h,memo as g}from"react";import x from"./components/overlay-item.js";import k from"./components/sortable-item.js";import{useMergedItems as N}from"./hooks/use-merged-items.js";const b=g((function({defaultItems:g,items:b,itemKey:j="id",className:S,style:D,direction:w="vertical",useOverlay:C=!0,restrictStrategy:E="parent",onChange:I,...K}){const[L,O]=N(g,b,I),V=r(i(o)),q=y((()=>u(j)?j:e=>e[j]),[j]),[z,A]=v(),B=h((({active:e})=>{A(L[e.data.current.index])}),[L]),F=h((({active:e,over:t})=>{t&&e.id!==t.id&&O((r=>c(r,e.data.current.index,t.data.current.index)))}),[O]),G=L.map((e=>q(e))),{itemClassName:H,itemStyle:J,disabled:M,...P}=K;return e(m,{collisionDetection:a,sensors:V,modifiers:["parent"===E?n:d],onDragEnd:F,onDragStart:B,children:e(l,{items:G,strategy:"vertical"===w?p:f,children:t("div",{className:S,style:D,children:[L.map(((t,r)=>{const i=q(t);return e(k,{item:t,itemIndex:r,itemKey:i,...K},i)})),C&&e(s,{className:H,style:J,wrapperElement:"div",modifiers:["parent"===E?n:d],children:z&&e(x,{item:z,...P})})]})})})}));b.displayName="VefSortableList";export{b as default};
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsx as e,jsxs as t}from"@emotion/react/jsx-runtime";import{useSensors as r,useSensor as i,PointerSensor as o,DndContext as m,closestCenter as a,DragOverlay as s}from"@dnd-kit/core";import{restrictToParentElement as n,restrictToWindowEdges as d}from"@dnd-kit/modifiers";import{arrayMove as c,SortableContext as l,verticalListSortingStrategy as p,horizontalListSortingStrategy as f}from"@dnd-kit/sortable";import{isFunction as u}from"@vef-framework/shared";import{useMemo as y,useState as v,useCallback as h,memo as g}from"react";import x from"./components/overlay-item.js";import k from"./components/sortable-item.js";import{useMergedItems as N}from"./hooks/use-merged-items.js";const b=g((function({defaultItems:g,items:b,itemKey:j="id",className:S,style:D,orientation:w="vertical",useOverlay:C=!0,restrictStrategy:E="parent",onChange:I,...K}){const[L,O]=N(g,b,I),V=r(i(o)),q=y((()=>u(j)?j:e=>e[j]),[j]),[z,A]=v(),B=h((({active:e})=>{A(L[e.data.current.index])}),[L]),F=h((({active:e,over:t})=>{t&&e.id!==t.id&&O((r=>c(r,e.data.current.index,t.data.current.index)))}),[O]),G=L.map((e=>q(e))),{itemClassName:H,itemStyle:J,disabled:M,...P}=K;return e(m,{collisionDetection:a,sensors:V,modifiers:["parent"===E?n:d],onDragEnd:F,onDragStart:B,children:e(l,{items:G,strategy:"vertical"===w?p:f,children:t("div",{className:S,style:D,children:[L.map(((t,r)=>{const i=q(t);return e(k,{item:t,itemIndex:r,itemKey:i,...K},i)})),C&&e(s,{className:H,style:J,wrapperElement:"div",modifiers:["parent"===E?n:d],children:z&&e(x,{item:z,...P})})]})})})}));b.displayName="VefSortableList";export{b as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,4 +1,4 @@
1
- import type { BiMapper, Consumer, Direction, Mapper, ObjectType, ObjectValue, StringKey, StyleProps } from "@vef-framework/shared";
1
+ import type { BiMapper, Consumer, Mapper, ObjectType, ObjectValue, Orientation, StringKey, StyleProps } from "@vef-framework/shared";
2
2
  import type { CSSProperties } from "react";
3
3
  /**
4
4
  * The props of the VefSortableList component.
@@ -56,10 +56,10 @@ export interface VefSortableListProps<T extends ObjectType = ObjectValue> extend
56
56
  */
57
57
  handleIcon?: React.ReactNode;
58
58
  /**
59
- * The direction of the list.
59
+ * The orientation of the list.
60
60
  * @default "vertical"
61
61
  */
62
- direction?: Direction;
62
+ orientation?: Orientation;
63
63
  /**
64
64
  * Whether to disable the draggable sorting.
65
65
  * @default false
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as r}from"@emotion/react/jsx-runtime";import{useGapSizeNormalizer as o}from"@vef-framework/hooks";import{isArray as m}from"@vef-framework/shared";import{Space as t}from"antd";import{useMemo as e}from"react";const a=({gap:a,...f})=>{const i=o(),p=e((()=>m(a)?a.map((r=>i(r))):a?i(a):a),[a,i]);return r(t,{size:p,...f})};export{a as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as t}from"@emotion/react/jsx-runtime";import{Spin as e}from"antd";const m=({size:m,...o})=>t(e,{size:"medium"===m?"default":m,...o});export{m as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
- import{jsx as t}from"@emotion/react/jsx-runtime";import{Splitter as o}from"antd";const e=({direction:e,onResizeBegin:i,...r})=>t(o,{layout:e,onResizeStart:i,...r});export{e as default};
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsx as t}from"@emotion/react/jsx-runtime";import{Splitter as o}from"antd";const e=({orientation:e,onResizeBegin:i,...n})=>t(o,{layout:e,onResizeStart:i,...n});export{e as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,13 +1,13 @@
1
- import type { Consumer, Direction, Except } from "@vef-framework/shared";
1
+ import type { Consumer, Except, Orientation } from "@vef-framework/shared";
2
2
  import type { SplitterProps } from "antd";
3
3
  /**
4
4
  * The props of the VefSplitter component.
5
5
  */
6
6
  export interface VefSplitterProps extends Except<SplitterProps, "layout" | "onResizeStart" | "prefixCls" | "rootClassName"> {
7
7
  /**
8
- * The direction of the component.
8
+ * The orientation of the component.
9
9
  */
10
- direction?: Direction;
10
+ orientation?: Orientation;
11
11
  /**
12
12
  * The callback function when the splitter is resized.
13
13
  */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as t}from"@emotion/react/jsx-runtime";import{Splitter as o}from"antd";const{Panel:r}=o,e=({...o})=>t(r,{...o});export{e as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as t}from"@emotion/react/jsx-runtime";import{useColorTokens as o}from"@vef-framework/hooks";import{Badge as r}from"antd";import{useMemo as e}from"react";const a=({processing:a=!1,color:f="default",children:n})=>{const s=o(),l=e((()=>{if("default"===f)return{status:"default",text:n};if(s.has(f))return{status:a?"processing":"default",color:s.get(f),text:n};throw new Error(`Invalid color value "${f}" of VefStatus component. Color must be either "default" or a valid color token.`)}),[f,s,a,n]);return t(r,{...l})};export{a as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
- import{jsx as e}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{VefError as t,isString as r,isNullish as a,isEqual as l}from"@vef-framework/shared";import{useMemo as i,memo as m}from"react";import u from"../../../vef-text/index.js";import{useComputedValues as c}from"../../hooks/use-computed-values.js";const n=m((function({value:l,record:m,rowIndex:n,columnProps:f}){if("Boolean"!==f.type)throw new t(-1,"Column type must be Boolean");const{defaultValue:d,trueText:p="是",falseText:s="否",bold:w,italic:x,color:h,width:y}=f,[V,b,k]=c([{key:"bold",rawValue:w,defaultValue:!1},{key:"italic",rawValue:x,defaultValue:!1},{key:"color",rawValue:h}],l,m,n),v=i((()=>r(k)?k:k?!a(l)&&Object.prototype.hasOwnProperty.call(k,l)?k[l]:k["*"]:void 0),[k,l]),j=i((()=>l?l?p:s:d),[l,p,s,d]),B=i((()=>{if(y)return o({maxWidth:`${y}px !important`})}),[y]);return e(u,{bold:V,color:v,css:B,italic:b,children:j})}),l);export{n as default};
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsx as e}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{VefError as t,isString as r,isNullish as a,isEqual as l}from"@vef-framework/shared";import{useMemo as i,memo as m}from"react";import u from"../../../vef-text/index.js";import{useComputedValues as n}from"../../hooks/use-computed-values.js";const c=m((function({value:l,record:m,rowIndex:c,columnProps:f}){if("Boolean"!==f.type)throw new t(-1,"Column type must be Boolean");const{defaultValue:d,trueText:s="是",falseText:p="否",bold:w,italic:x,color:h,width:V}=f,[b,k,v]=n([{key:"bold",rawValue:w,defaultValue:!1},{key:"italic",rawValue:x,defaultValue:!1},{key:"color",rawValue:h}],l,m,c),y=i((()=>r(v)?v:v?!a(l)&&Object.hasOwn(v,l)?v[l]:v["*"]:void 0),[v,l]),j=i((()=>l?l?s:p:d),[l,s,p,d]),B=i((()=>{if(V)return o({maxWidth:`${V}px !important`})}),[V]);return e(u,{bold:b,color:y,css:B,italic:k,children:j})}),l);export{c as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as e}from"@emotion/react/jsx-runtime";function r({value:r}){return e("span",{children:r})}export{r as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
- import{jsx as e}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{VefError as t,isString as r,isNullish as a}from"@vef-framework/shared";import{useMemo as i}from"react";import l from"../../../vef-text/index.js";import{useComputedValues as m}from"../../hooks/use-computed-values.js";const c="Name";function u({value:u,record:n,rowIndex:s,columnProps:p}){if("DataDictionary"!==p.type)throw new t(-1,"Column type must be DataDictionary");const{name:d,defaultValue:f,ellipsis:w,bold:y,italic:h,color:x,width:V}=p,[b,k,v]=m([{key:"bold",rawValue:y,defaultValue:!1},{key:"italic",rawValue:h,defaultValue:!1},{key:"color",rawValue:x}],u,n,s),$=i((()=>r(v)?v:v?!a(u)&&Object.prototype.hasOwnProperty.call(v,u)?v[u]:v["*"]:void 0),[v,u]),j=i((()=>a(u)||a(n[`${d}${c}`])?f:n[`${d}${c}`]),[u,n,d,f]),D=i((()=>{if(V)return o({maxWidth:`${V}px !important`})}),[V]);return e(l,{bold:b,color:$,css:D,ellipsis:w,italic:k,children:j})}export{u as default};
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsx as e}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{VefError as t,isString as r,isNullish as a}from"@vef-framework/shared";import{useMemo as i}from"react";import l from"../../../vef-text/index.js";import{useComputedValues as m}from"../../hooks/use-computed-values.js";const u="Name";function c({value:c,record:n,rowIndex:s,columnProps:d}){if("DataDictionary"!==d.type)throw new t(-1,"Column type must be DataDictionary");const{name:f,defaultValue:p,ellipsis:w,bold:h,italic:x,color:y,width:V}=d,[b,k,v]=m([{key:"bold",rawValue:h,defaultValue:!1},{key:"italic",rawValue:x,defaultValue:!1},{key:"color",rawValue:y}],c,n,s),$=i((()=>r(v)?v:v?!a(c)&&Object.hasOwn(v,c)?v[c]:v["*"]:void 0),[v,c]),j=i((()=>a(c)||a(n[`${f}${u}`])?p:n[`${f}${u}`]),[c,n,f,p]),D=i((()=>{if(V)return o({maxWidth:`${V}px !important`})}),[V]);return e(l,{bold:b,color:$,css:D,ellipsis:w,italic:k,children:j})}export{c as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
- import{jsx as e}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{VefError as r,isString as t,isNullish as i}from"@vef-framework/shared";import{useMemo as l}from"react";import a from"../../../vef-tag/index.js";import m from"../../../vef-text/index.js";import{useComputedValues as n}from"../../hooks/use-computed-values.js";const c="Name",s=o({color:"inherit",fontSize:"inherit"});function u({value:u,record:d,rowIndex:f,columnProps:p}){if("Enum"!==p.type)throw new r(-1,"Column type must be Enum");const{name:h,defaultValue:w,showAsTag:x=!0,bold:y,italic:b,ellipsis:v,color:V,width:j}=p,[k,$,g]=n([{key:"bold",rawValue:y,defaultValue:!1},{key:"italic",rawValue:b,defaultValue:!1},{key:"color",rawValue:V}],u,d,f),E=l((()=>t(g)?g:g?!i(u)&&Object.prototype.hasOwnProperty.call(g,u)?g[u]:g["*"]:void 0),[g,u]),O=l((()=>i(u)||i(d[`${h}${c}`])?w:d[`${h}${c}`]),[u,d,h,w]),P=l((()=>{if(j)return o({maxWidth:`${j}px !important`})}),[j]);return x?e(a,{color:E,children:e(m,{bold:k,css:s,italic:$,children:O})}):e(m,{bold:k,color:E,css:P,ellipsis:v,italic:$,children:O})}export{u as default};
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsx as e}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{VefError as r,isString as t,isNullish as i}from"@vef-framework/shared";import{useMemo as l}from"react";import a from"../../../vef-tag/index.js";import m from"../../../vef-text/index.js";import{useComputedValues as n}from"../../hooks/use-computed-values.js";const c="Name",s=o({color:"inherit",fontSize:"inherit"});function u({value:u,record:d,rowIndex:f,columnProps:p}){if("Enum"!==p.type)throw new r(-1,"Column type must be Enum");const{name:h,defaultValue:w,showAsTag:x=!0,bold:b,italic:v,ellipsis:V,color:j,width:k}=p,[y,$,g]=n([{key:"bold",rawValue:b,defaultValue:!1},{key:"italic",rawValue:v,defaultValue:!1},{key:"color",rawValue:j}],u,d,f),E=l((()=>t(g)?g:g?!i(u)&&Object.hasOwn(g,u)?g[u]:g["*"]:void 0),[g,u]),O=l((()=>i(u)||i(d[`${h}${c}`])?w:d[`${h}${c}`]),[u,d,h,w]),z=l((()=>{if(k)return o({maxWidth:`${k}px !important`})}),[k]);return x?e(a,{color:E,children:e(m,{bold:y,css:s,italic:$,children:O})}):e(m,{bold:y,color:E,css:z,ellipsis:V,italic:$,children:O})}export{u as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as e}from"@emotion/react/jsx-runtime";function r({value:r}){return e("span",{children:r})}export{r as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as e}from"@emotion/react/jsx-runtime";function r({value:r}){return e("span",{children:r})}export{r as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as e}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{VefError as r,isNullish as t}from"@vef-framework/shared";import{useMemo as a}from"react";import l from"../../../vef-text/index.js";import{useComputedValues as i}from"../../hooks/use-computed-values.js";const m=/Id$/;function u({value:u,record:c,rowIndex:n,columnProps:s}){if("Id"!==s.type)throw new r(-1,"Column type must be Id");const{name:d,defaultValue:f,ellipsis:p,bold:w,italic:x,color:h,width:V}=s,[k,y,b]=i([{key:"bold",rawValue:w,defaultValue:!1},{key:"italic",rawValue:x,defaultValue:!1},{key:"color",rawValue:h}],u,c,n),v=a((()=>{const e=d.replace(m,"Name");return t(u)||t(c[e])?f:c[e]}),[u,c,d,f]),I=a((()=>{if(V)return o({maxWidth:`${V}px !important`})}),[V]);return e(l,{bold:k,color:b,css:I,ellipsis:p,italic:y,children:v})}export{u as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as r}from"@emotion/react/jsx-runtime";import{extractBaseName as e}from"@vef-framework/shared";function t({value:t}){return r("img",{alt:e(t),src:t})}export{t as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import o from"./bool.js";import r from"./code.js";import m from"./data-dictionary.js";import t from"./enum.js";import i from"./file.js";import e from"./icon.js";import p from"./id.js";import s from"./image.js";import f from"./markdown.js";import j from"./number.js";import n from"./render.js";import a from"./rich-text.js";import d from"./text.js";const c={Text:d,Number:j,Enum:t,Boolean:o,DataDictionary:m,Id:p,Render:n,Markdown:f,Icon:e,File:i,RichText:a,Image:s,Code:r};export{c as columnComponents};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as e}from"@emotion/react/jsx-runtime";function r({value:r}){return e("span",{children:r})}export{r as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as e}from"@emotion/react/jsx-runtime";import{css as r}from"@emotion/react";import{VefError as o,isNullish as t}from"@vef-framework/shared";import{useMemo as a}from"react";import l from"../../../vef-text/index.js";import{useComputedValues as u}from"../../hooks/use-computed-values.js";import{useDisplayValue as i}from"../../hooks/use-display-value.js";function m({value:m,record:f,rowIndex:s,columnProps:d}){if("Number"!==d.type)throw new o(-1,"Column type must be Number");const{defaultValue:p,formatter:c,prefix:n,suffix:x,bold:w,italic:h,color:V,width:b}=d,k=i(m,f,s,{defaultValue:p,formatter:c,prefix:n,suffix:x}),[y,v,j]=u([{key:"bold",rawValue:w,defaultValue:!1},{key:"italic",rawValue:h,defaultValue:!1},{key:"color",rawValue:V}],m,f,s),N=a((()=>{if(b)return r({maxWidth:`${b}px !important`})}),[b]);return t(k)?null:e(l,{bold:y,color:j,css:N,italic:v,children:k})}export{m as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as r}from"@emotion/react/jsx-runtime";import{css as e}from"@emotion/react";import{VefError as t}from"@vef-framework/shared";import{useMemo as o}from"react";function m({value:m,record:n,rowIndex:i,columnProps:d}){if("Render"!==d.type)throw new t(-1,"Column type must be Render");const{render:a,width:f}=d,p=a?.(m,n,i),c=o((()=>{if(f)return e({maxWidth:`${f}px !important`})}),[f]);return r("div",{css:c,children:p})}export{m as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as e}from"@emotion/react/jsx-runtime";function r({value:r}){return e("span",{children:r})}export{r as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as e}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{VefError as r,isNullish as t}from"@vef-framework/shared";import{useMemo as l}from"react";import i from"../../../vef-text/index.js";import{useComputedValues as a}from"../../hooks/use-computed-values.js";import{useDisplayValue as u}from"../../hooks/use-display-value.js";function f({value:f,record:m,rowIndex:s,columnProps:p}){if("Text"!==p.type)throw new r(-1,"Column type must be Text");const{defaultValue:c,formatter:d,prefix:n,suffix:x,ellipsis:w,bold:y,italic:h,color:V,copyable:b,width:k}=p,[v,j,T]=a([{key:"bold",rawValue:y,defaultValue:!1},{key:"italic",rawValue:h,defaultValue:!1},{key:"color",rawValue:V}],f,m,s),C=u(f,m,s,{defaultValue:c,formatter:d,prefix:n,suffix:x}),I=l((()=>{if(k)return o({maxWidth:`${k}px !important`})}),[k]);return t(C)?null:e(i,{bold:v,color:T,copyable:b,css:I,ellipsis:w,ellipsisTip:w?C:void 0,italic:j,children:C})}export{f as default};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,4 +1,4 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsxs as e,jsx as n,Fragment as t}from"@emotion/react/jsx-runtime";import{RollbackOutlined as i,VerticalRightOutlined as l,VerticalLeftOutlined as a}from"@ant-design/icons";import{css as o}from"@emotion/react";import{themeVariables as r}from"@vef-framework/shared";import{Checkbox as s}from"antd";import{useMemo as d,useCallback as m,memo as c}from"react";import f from"../../vef-bool/index.js";import u from"../../vef-button/index.js";import p from"../../vef-divider/index.js";import g from"../../vef-sortable-list/index.js";import v from"../../vef-text/index.js";import{useTableContextSelector as h}from"../hooks/use-table-context.js";const b=o`
3
3
  width: 260px;
4
4
  padding: ${r.paddingSm};
@@ -50,5 +50,5 @@ import{jsxs as e,jsx as n,Fragment as t}from"@emotion/react/jsx-runtime";import{
50
50
  }
51
51
  }
52
52
  }
53
- `,x=c((()=>{const{defaultColumnConfigMap:o,columnConfigMap:r,setColumnConfigMap:c}=h((e=>{const{defaultColumnConfigMap:n,columnConfigMap:t,setColumnConfigMap:i}=e;return{defaultColumnConfigMap:n,columnConfigMap:t,setColumnConfigMap:i}})),x=d((()=>[...r.entries()].sort((([e,n],[t,i])=>n.order-i.order)).map((([e,n])=>{const{title:t,configurable:i,...l}=n;return{value:e,label:t,disabled:!i,...l}}))),[r]),C=m((e=>{const n=e.reduce(((e,n,t)=>{const{value:i,label:l,disabled:a,order:o,...r}=n,s={title:l,configurable:!a,order:t+1,...r};return e.set(i,s),e}),new Map);c(n)}),[c]),y=d((()=>x.filter((e=>e.show)).map((e=>e.value))),[x]),k=d((()=>{const e=y.length;return e===x.length?"checked":e>0?"indeterminate":"unchecked"}),[y.length,x.length]),w=m((e=>{const n=new Set(e),t=x.map((e=>({...e,show:n.has(e.value)})));C(t)}),[x,C]),M=m(((e,n)=>{const t=x.map((t=>({...t,fixed:t.value===e?n:t.fixed})));C(t)}),[x,C]),j=m((e=>{C(e)}),[C]),$=m((()=>{c(new Map(o))}),[o,c]);return e("div",{css:b,children:[e("div",{className:"vef-table-columns-settings-panel-header",children:[n(f,{indeterminate:"indeterminate"===k,label:n(v,{bold:!0,children:"列显示"}),value:"checked"===k,variant:"checkbox",onChange:e=>{w(e?x.map((e=>e.value)):[])}}),n(u,{color:"primary",variant:"text",onClick:$,children:"重置"})]}),n(p,{}),n(s.Group,{className:"vef-table-columns-settings-panel-body",value:y,onChange:w,children:n(g,{useHandle:!0,className:"vef-table-columns-settings-panel-columns",handleClassName:"vef-table-columns-settings-panel-column-drag-icon",itemClassName:"vef-table-columns-settings-panel-column",itemKey:"value",items:x,useOverlay:!1,renderItem:({value:o,label:r,disabled:d,fixed:m,show:c})=>e(t,{children:[n(s,{disabled:d,value:o,children:r}),e("span",{className:"vef-table-columns-settings-panel-column-fixed-icon",children:[n(u,{color:"left"===m?"primary":"default",disabled:d||!c,icon:n("left"===m?i:l,{}),size:"small",tip:"left"===m?"取消左侧固定":"固定到左侧",variant:"link",onClick:()=>{"left"===m?M(o):M(o,"left")}}),n(p,{direction:"vertical"}),n(u,{color:"right"===m?"primary":"default",disabled:d||!c,icon:n("right"===m?i:a,{}),size:"small",tip:"right"===m?"取消右侧固定":"固定到右侧",variant:"link",onClick:()=>{"right"===m?M(o):M(o,"right")}})]})]}),onChange:j})})]})}),(()=>!1));x.displayName="VefColumnsSettings";export{x as default};
53
+ `,x=c((()=>{const{defaultColumnConfigMap:o,columnConfigMap:r,setColumnConfigMap:c}=h((e=>{const{defaultColumnConfigMap:n,columnConfigMap:t,setColumnConfigMap:i}=e;return{defaultColumnConfigMap:n,columnConfigMap:t,setColumnConfigMap:i}})),x=d((()=>[...r.entries()].sort((([e,n],[t,i])=>n.order-i.order)).map((([e,n])=>{const{title:t,configurable:i,...l}=n;return{value:e,label:t,disabled:!i,...l}}))),[r]),C=m((e=>{const n=e.reduce(((e,n,t)=>{const{value:i,label:l,disabled:a,order:o,...r}=n,s={title:l,configurable:!a,order:t+1,...r};return e.set(i,s),e}),new Map);c(n)}),[c]),y=d((()=>x.filter((e=>e.show)).map((e=>e.value))),[x]),k=d((()=>{const e=y.length;return e===x.length?"checked":e>0?"indeterminate":"unchecked"}),[y.length,x.length]),w=m((e=>{const n=new Set(e),t=x.map((e=>({...e,show:n.has(e.value)})));C(t)}),[x,C]),M=m(((e,n)=>{const t=x.map((t=>({...t,fixed:t.value===e?n:t.fixed})));C(t)}),[x,C]),j=m((e=>{C(e)}),[C]),$=m((()=>{c(new Map(o))}),[o,c]);return e("div",{css:b,children:[e("div",{className:"vef-table-columns-settings-panel-header",children:[n(f,{indeterminate:"indeterminate"===k,label:n(v,{bold:!0,children:"列显示"}),value:"checked"===k,variant:"checkbox",onChange:e=>{w(e?x.map((e=>e.value)):[])}}),n(u,{color:"primary",variant:"text",onClick:$,children:"重置"})]}),n(p,{}),n(s.Group,{className:"vef-table-columns-settings-panel-body",value:y,onChange:w,children:n(g,{useHandle:!0,className:"vef-table-columns-settings-panel-columns",handleClassName:"vef-table-columns-settings-panel-column-drag-icon",itemClassName:"vef-table-columns-settings-panel-column",itemKey:"value",items:x,useOverlay:!1,renderItem:({value:o,label:r,disabled:d,fixed:m,show:c})=>e(t,{children:[n(s,{disabled:d,value:o,children:r}),e("span",{className:"vef-table-columns-settings-panel-column-fixed-icon",children:[n(u,{color:"left"===m?"primary":"default",disabled:d||!c,icon:n("left"===m?i:l,{}),size:"small",tip:"left"===m?"取消左侧固定":"固定到左侧",variant:"link",onClick:()=>{"left"===m?M(o):M(o,"left")}}),n(p,{orientation:"vertical"}),n(u,{color:"right"===m?"primary":"default",disabled:d||!c,icon:n("right"===m?i:a,{}),size:"small",tip:"right"===m?"取消右侧固定":"固定到右侧",variant:"link",onClick:()=>{"right"===m?M(o):M(o,"right")}})]})]}),onChange:j})})]})}),(()=>!1));x.displayName="VefColumnsSettings";export{x as default};
54
54
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,4 +1,4 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsxs as e,jsx as n}from"@emotion/react/jsx-runtime";import{MoreOutlined as o}from"@ant-design/icons";import{css as t}from"@emotion/react";import{useComputedActionButtons as i}from"@vef-framework/hooks";import{invokeMaybeAsyncFn as r,showConfirmation as l}from"@vef-framework/shared";import{useMemo as c,useState as a,useCallback as s}from"react";import d from"../../vef-button/index.js";import m from"../../vef-dropdown/index.js";import f from"../../vef-flex/index.js";import p from"../../vef-popconfirm/index.js";import{useTableContextSelector as h}from"../hooks/use-table-context.js";const u=t`
3
3
  .vef-btn-sm {
4
4
  --vef-control-height-sm: 24px;
@@ -8,5 +8,5 @@ import{jsxs as e,jsx as n}from"@emotion/react/jsx-runtime";import{MoreOutlined a
8
8
  padding-inline: 2px;
9
9
  }
10
10
  }
11
- `;function x({record:t,rowIndex:x,operationButtons:b,maxVisibleOperationButtons:k}){const{externalContext:g,refetch:y,isFetching:C,selectedKeys:v,selectedRecords:j}=h((e=>{const{externalContext:n,refetch:o,isFetching:t,selectedKeys:i,selectedRecords:r}=e;return{externalContext:n,refetch:o,isFetching:t,selectedKeys:i,selectedRecords:r}})),w=c((()=>({record:t,rowIndex:x,refetch:y,isFetching:C,selectedKeys:v,selectedRecords:j,...g??{}})),[g,C,t,y,x,v,j]),F=i(b,w),[K,R]=a(!1),q=c((()=>F.length>k?F.slice(k).map((e=>{const{key:n,label:o,icon:t,disabled:i}=e;return{type:"item",key:n,label:o,icon:t,disabled:i}})):[]),[F,k]),[z,I]=a(!1),[M,O]=a(null),T=s((()=>{I(!1),O(null)}),[]),B=c((()=>{if(0!==q.length)return async e=>{const{requireConfirmation:n,confirmationMode:o,confirmationTitle:t,confirmationContent:i,onClick:c}=F.find((n=>n.key===e)),a=async()=>{try{await r(c,{beforeInvoke:()=>{R(!0)},onFinally:()=>{R(!1)}},w)}finally{T()}};n?"simple"===o?(O({title:t,content:i,okHandler:a}),I(!0)):l(t,i,a,{onCancel:()=>{O(null)}}):await a()}}),[F,w,T,q.length]);return e(f,{align:"center",css:u,gap:"small",justify:"center",children:[F.slice(0,k).map((e=>{const{key:o,label:t,icon:i,color:r,disabled:l,requireConfirmation:c,confirmationMode:a,confirmationTitle:s,confirmationContent:m,onClick:f}=e;return n(d,c?{requireConfirmation:!0,color:r,confirmationContent:m,confirmationMode:a,confirmationTitle:s,disabled:l||K,icon:i,size:"small",variant:"filled",onConfirmationOk:()=>f(w),children:t}:{color:r,disabled:l||K,icon:i,size:"small",variant:"filled",onClick:e=>(e.stopPropagation(),f(w)),children:t},o)})),F.length>k&&n(m,{disabled:K,items:q,onClick:B,children:n(p,{content:M?.content,disabled:K,open:z,title:M?.title,onCancel:T,onOk:M?.okHandler,children:n(d,{color:"primary",disabled:K,icon:n(o,{}),loading:K,size:"small",variant:"filled",onClick:e=>e.stopPropagation()})})})]})}export{x as default};
11
+ `;function x({record:t,rowIndex:x,operationButtons:b,maxVisibleOperationButtons:k}){const{externalContext:g,refetch:y,isFetching:C,selectedKeys:v,selectedRecords:j}=h((e=>{const{externalContext:n,refetch:o,isFetching:t,selectedKeys:i,selectedRecords:r}=e;return{externalContext:n,refetch:o,isFetching:t,selectedKeys:i,selectedRecords:r}})),w=c((()=>({record:t,rowIndex:x,refetch:y,isFetching:C,selectedKeys:v,selectedRecords:j,...g??{}})),[g,C,t,y,x,v,j]),F=i(b,w),[K,R]=a(!1),q=c((()=>F.length>k?F.slice(k).map((e=>{const{key:n,label:o,icon:t,disabled:i}=e;return{type:"item",key:n,label:o,icon:t,disabled:i}})):[]),[F,k]),[z,I]=a(!1),[M,O]=a(null),T=s((()=>{I(!1),O(null)}),[]),B=c((()=>{if(0!==q.length)return async e=>{const{requireConfirmation:n,confirmationMode:o,confirmationTitle:t,confirmationContent:i,onClick:c}=F.find((n=>n.key===e)),a=async()=>{try{await r(c,{beforeInvoke:()=>{R(!0)},onFinally:()=>{R(!1)}},w)}finally{T()}};n?"simple"===o?(O({title:t,content:i,okHandler:a}),I(!0)):l(t,i,a,{onCancel:()=>{O(null)}}):await a()}}),[F,w,T,q.length]);return e(f,{align:"center",css:u,gap:"small",justify:"center",children:[F.slice(0,k).map((e=>{const{key:o,label:t,icon:i,color:r,disabled:l,requireConfirmation:c,confirmationMode:a,confirmationTitle:s,confirmationContent:m,onClick:f}=e;return n(d,c?{requireConfirmation:!0,color:r,confirmationContent:m,confirmationMode:a,confirmationTitle:s,disabled:l||K,icon:i,size:"small",variant:"filled",onConfirmationOk:()=>f(w),children:t}:{color:r,disabled:l||K,icon:i,size:"small",variant:"filled",onClick:e=>(e.stopPropagation(),f(w)),children:t},o)})),F.length>k&&n(m,{disabled:K,items:q,onClick:B,children:n(p,{content:M?.content,disabled:K,opened:z,title:M?.title,onCancel:T,onOk:M?.okHandler,children:n(d,{color:"primary",disabled:K,icon:n(o,{}),loading:K,size:"small",variant:"filled",onClick:e=>e.stopPropagation()})})})]})}export{x as default};
12
12
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,5 +1,5 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
- import{jsx as o}from"@emotion/react/jsx-runtime";import{SettingOutlined as r}from"@ant-design/icons";import{css as t}from"@emotion/react";import{themeVariables as m}from"@vef-framework/shared";import{memo as e}from"react";import{useTableContextSelector as i}from"../hooks/use-table-context.js";const a=t`
3
- color: ${m.colorPrimary};
4
- `,n=e((()=>{const t=i((o=>o.columnConfigMapHasChanged));return o(r,{css:t?a:void 0})}),(()=>!1));export{n as default};
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{jsx as o}from"@emotion/react/jsx-runtime";import{css as r}from"@emotion/react";import{themeVariables as t}from"@vef-framework/shared";import{SettingsIcon as e}from"lucide-react";import{memo as m}from"react";import i from"../../vef-icon/index.js";import{useTableContextSelector as c}from"../hooks/use-table-context.js";const a=r`
3
+ color: ${t.colorPrimary};
4
+ `,n=m((()=>{const r=c((o=>o.columnConfigMapHasChanged));return o(i,{css:r?a:void 0,children:o(e,{})})}),(()=>!1));export{n as default};
5
5
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,4 +1,4 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsxs as o,jsx as e}from"@emotion/react/jsx-runtime";import{css as i}from"@emotion/react";import{themeVariables as t,invokeMaybeAsyncFn as n}from"@vef-framework/shared";import{useMemo as r,memo as a}from"react";import l from"../../vef-button/index.js";import c from"../../vef-pagination/index.js";import m from"../../vef-text/index.js";import{useTableContextSelector as d}from"../hooks/use-table-context.js";const f=i`
3
3
  width: 100%;
4
4
  display: flex;
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{isFunction as r,isExpression as e,compileDynamicFn as n}from"@vef-framework/shared";function o(o,t,f,u,i){if(r(o))return o(t,f,u);if(e(o)){return n(o,"value","record","rowIndex",`return ${o.expression}`)(t,f,u)}return o??i}export{o as computeValue};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{useComputedActionButtons as e}from"@vef-framework/hooks";import{useMemo as t}from"react";function o(o,c){const{externalContext:r,isFetching:n,refetch:s,selectedKeys:i,selectedRecords:d}=c,f=t((()=>({isFetching:n,refetch:s,selectedKeys:i,selectedRecords:d,...r??{}})),[r,n,s,i,d]);return{computedBatchActionButtons:e(o,f),batchActionButtonContext:f}}export{o as useComputedBatchActionButtons};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{useMemo as e}from"react";function r(r,t){return e((()=>r.map((e=>{const{name:r}=e,o=t.get(r);return{...e,show:o.show,fixed:o.fixed}})).sort(((e,r)=>t.get(e.name).order-t.get(r.name).order))),[r,t])}export{r as useComputedColumns};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{useDeepCompareMemo as e}from"@vef-framework/hooks";import{computeValue as r}from"../helper.js";function o(o,t,u,a,f=!1){const m=e((()=>o.reduce(((e,o)=>{const{key:f,rawValue:m,defaultValue:n}=o,c=r(m,t,u,a,n);return e[f]=c,e}),{})),[u,a,t,o]);return f?o.reduce(((e,{key:r})=>(e[r]=m[r],e)),{}):o.map((({key:e})=>m[e]))}export{o as useComputedValues};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,4 +1,4 @@
1
- import type { MaybeUndefined, ObjectType, PaginationParams, Provider, QueryConfig, QueryRefetchResult } from "@vef-framework/shared";
1
+ import { type MaybeUndefined, type ObjectType, type PaginationParams, type Provider, type QueryConfig, type QueryRefetchResult } from "@vef-framework/shared";
2
2
  /**
3
3
  * The hook to get the data of VefTable.
4
4
  */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
- import{useDataQuery as e}from"@vef-framework/hooks";import{isNumber as t,isArray as a}from"@vef-framework/shared";function r({apiParams:r,...i},o,s){const{data:n,isLoading:f,isFetching:h,isSuccess:l,refetch:p}=e({apiParams:o?{...s,...r}:r,keepPreviousData:!0,staleTime:0,...i});if(l)if(o){if(!Object.prototype.hasOwnProperty.call(n,"total")||!Object.prototype.hasOwnProperty.call(n,"items"))throw new Error("The paginated data of VefTable is invalid. The data must contain the `total` and `items` properties. Please check the data.");if(!t(n.total))throw new Error("The `total` property of the paginated data of VefTable is invalid. It must be a number.");if(!a(n.items))throw new Error("The `items` property of the paginated data of VefTable is invalid. It must be an array.")}else if(!a(n))throw new Error("The data of VefTable is invalid. It must be an array.");return{data:o?n?.items:n,isFetching:h,isLoading:f,total:o?n?.total:void 0,refetch:p}}export{r as useData};
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{useDataQuery as e}from"@vef-framework/hooks";import{isNumber as a,isArray as t}from"@vef-framework/shared";function i({apiParams:i,...r},o,s){const{data:n,isLoading:f,isFetching:h,isSuccess:d,refetch:m}=e({apiParams:o?{...s,...i}:i,keepPreviousData:!0,staleTime:0,...r});if(d)if(o){if(!Object.hasOwn(n,"total")||!Object.hasOwn(n,"items"))throw new Error("The paginated data of VefTable is invalid. The data must contain the `total` and `items` properties. Please check the data.");if(!a(n.total))throw new Error("The `total` property of the paginated data of VefTable is invalid. It must be a number.");if(!t(n.items))throw new Error("The `items` property of the paginated data of VefTable is invalid. It must be an array.")}else if(!t(n))throw new Error("The data of VefTable is invalid. It must be an array.");return{data:o?n?.items:n,isFetching:h,isLoading:f,total:o?n?.total:void 0,refetch:m}}export{i as useData};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{useMemo as e}from"react";function t(t){return e((()=>{const e=new Map;let o=1;for(const r of t){const{name:t,title:n,fixed:f,configurable:i}=r;e.set(t,{title:n??t,show:!0,fixed:f,order:o++,configurable:i??!0})}return e}),[t])}export{t as useDefaultColumnConfigs};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{isNullish as r,isFunction as e,isExpression as t,compileDynamicFn as o}from"@vef-framework/shared";import{useMemo as f}from"react";function n(n,u,i,a){const{defaultValue:m,formatter:d,prefix:p,suffix:s}=a,x=r(n)?m:n;return f((()=>{if(e(d))return d(n,u,i);if(t(d)){return o(d,"value","record","rowIndex",`return ${d.expression}`)(n,u,i)}return r(x)?void 0:`${p??""}${x}${s??""}`}),[d,x,p,s,n,u,i])}export{n as useDisplayValue};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,4 +1,4 @@
1
- import type { MaybeUndefined, ObjectType } from "@vef-framework/shared";
1
+ import { type MaybeUndefined, type ObjectType } from "@vef-framework/shared";
2
2
  import type { VefTableProps } from "../props";
3
3
  export declare function useHelperColumns<T extends ObjectType, C extends ObjectType>({ showRowNumber, operationButtons, maxVisibleOperationButtons, size, }: Pick<VefTableProps<T, any, any, C>, "showRowNumber" | "operationButtons" | "maxVisibleOperationButtons" | "size">): {
4
4
  rowNumberColumn: MaybeUndefined<import("antd").TableColumnGroupType<T> | import("antd").TableColumnType<T>>;
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as o}from"@emotion/react/jsx-runtime";import{useAuthorizedItems as t}from"@vef-framework/hooks";import{isEqual as e}from"@vef-framework/shared";import{useMemo as r}from"react";import n from"../components/columns-settings.js";import i from"../components/operation-buttons.js";import m from"../components/settings-icon.js";import{useOperationColumnWidth as s}from"./use-operation-column-width.js";function p({showRowNumber:p,operationButtons:u,maxVisibleOperationButtons:f,size:l}){const a=r((()=>{if(p)return{key:"_rowNumber",title:"#",align:"center",fixed:"left",width:48,shouldCellUpdate:()=>!1,render:(o,t,e)=>e+1}}),[p]),d=t(u??[]),c=s(d,f??3,l);return{rowNumberColumn:a,operationColumn:r((()=>{if(d&&d.length>0)return{key:"_operationButtons",title:"操作",align:"center",fixed:"right",filterIcon:()=>o(m,{}),filterDropdown:()=>o(n,{}),width:c,shouldCellUpdate:(o,t)=>!e(o,t),render:(t,e,r)=>o(i,{maxVisibleOperationButtons:f??3,operationButtons:d,record:e,rowIndex:r})}}),[d,f,c])}}export{p as useHelperColumns};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,4 +1,4 @@
1
- import type { ActionButton } from "@vef-framework/shared";
1
+ import { type ActionButton } from "@vef-framework/shared";
2
2
  import type { VefTableProps } from "../props";
3
3
  /**
4
4
  * Calculate the width of the operation column.
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{useThemeTokens as r}from"@vef-framework/hooks";import{max as t}from"@vef-framework/shared";import{useMemo as e}from"react";function n(n,f,m="medium"){const{Button:a}=r(),c="large"===m?16:8,u=a?.contentFontSizeSM??16;return e((()=>{if(0===n.length)return 0;if(n.length>f){const r=new Set;for(let e=0;e<f;e++){const e=t(n,(t=>r.has(t)?0:t.label.length));e&&r.add(e)}return o(Array.from(r),u,c,!0)}return o(n,u,c,!1)}),[c,u,f,n])}function o(r,t,e,n){const o=t+4;return r.map((r=>{const t=r.label.length*o+8;return r.icon?t+o+8:t})).reduce(((r,t)=>r+t),0)+(n?o+8:0)+2*e}export{n as useOperationColumnWidth};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{useState as e,useMemo as a}from"react";import{defaultPageSizeOptions as i}from"../../vef-pagination/props.js";function r(r,p){const[n,o]=e({page:1,size:i[2]}),s=a((()=>{if(r)return(e,a)=>{o({page:e,size:a})}}),[r,o]);return{paginationProps:a((()=>{if(r)return{pageNumber:n.page,pageSize:n.size,size:"small"===p?"small":"medium",onChange:s}}),[s,r,n.page,n.size,p]),paginationParams:n}}export{r as usePaginationProps};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
- import{useMemo as e}from"react";function o({enableRowClick:o=!1,enableRowClickForSelection:n=!1,onRowClick:l,disabledSelection:i,handleRowClickSelection:r}){return e((()=>{if(o)return(e,o)=>{const t=i?.(e)??!1;return{style:{cursor:t?"not-allowed":"pointer"},onClick:t?void 0:()=>{n?r?.(e):l?.(e,o??-1)}}}}),[i,o,n,r,l])}export{o as useRowProps};
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{useMemo as e}from"react";function o({enableRowClick:o=!1,enableRowClickForSelection:n=!1,onRowClick:l,disabledSelection:i,handleRowClickSelection:r}){return e((()=>{if(o)return(e,o)=>{const t=i?.(e)??!1;return{style:{cursor:t?"not-allowed":"pointer"},onClick:t?void 0:()=>{n||l?.(e,o??-1),r?.(e)}}}}),[i,o,n,r,l])}export{o as useRowProps};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,11 +1,11 @@
1
- import type { ObjectType } from "@vef-framework/shared";
1
+ import { type ObjectType } from "@vef-framework/shared";
2
2
  import type { VefTableProps } from "../props";
3
3
  /**
4
4
  * The hook to get the row selection config.
5
5
  */
6
- export declare function useRowSelectionConfig<T extends ObjectType>({ rowKey, value, defaultValue, selectable, enableRowClick, enableRowClickForSelection, multipleSelection, showSelectAllCheckbox, disabledSelection, onSelect, onDeselect, onChange, }: Pick<VefTableProps<T>, "value" | "defaultValue" | "selectable" | "multipleSelection" | "showSelectAllCheckbox" | "disabledSelection" | "enableRowClick" | "enableRowClickForSelection" | "onSelect" | "onDeselect" | "onChange"> & Required<Pick<VefTableProps<T>, "rowKey">>): {
6
+ export declare function useRowSelectionConfig<T extends ObjectType>({ rowKey, selectedKeys, defaultSelectedKeys, selectable, enableRowClick, enableRowClickForSelection, multipleSelection, showSelectAllCheckbox, disabledSelection, onRowSelect, onRowDeselect, onRowSelectionChange, }: Pick<VefTableProps<T>, "selectedKeys" | "defaultSelectedKeys" | "selectable" | "multipleSelection" | "showSelectAllCheckbox" | "disabledSelection" | "enableRowClick" | "enableRowClickForSelection" | "onRowSelect" | "onRowDeselect" | "onRowSelectionChange"> & Required<Pick<VefTableProps<T>, "rowKey">>): {
7
7
  rowSelectionConfig: import("antd/es/table/interface").TableRowSelection<T> | undefined;
8
8
  handleRowClickSelection: ((record: T) => void) | undefined;
9
- mergedValue: string[];
9
+ selectedKeys: string[];
10
10
  selectedRecords: import("react").MutableRefObject<T[]>;
11
11
  };
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
2
- import{isFunction as e}from"@vef-framework/shared";import{useMemo as l}from"react";import{useMergedValue as o}from"./use-merged-value.js";function t({rowKey:t,value:r,defaultValue:n,selectable:c,enableRowClick:i,enableRowClickForSelection:s,multipleSelection:d=!0,showSelectAllCheckbox:a=!0,disabledSelection:u,onSelect:f,onDeselect:h,onChange:m}){const{mergedValue:p,mergedOnChange:S,selectedRecords:g}=o({value:r,defaultValue:n,multipleSelection:d,onChange:m}),C=l((()=>{if(i&&s)return l=>{const o=e(t)?t(l):l[t];if(p.includes(o)){if(!d)return;const r=p.filter((e=>e!==o)),n=g.current.filter((l=>(e(t)?t(l):l[t])!==o));S(r,n),h?.(o,l)}else{const e=[o];d&&e.push(...p);const t=[l];d&&t.push(...g.current),S(e,t),f?.(o,l)}}}),[i,s,S,p,d,h,f,t,g]);return{rowSelectionConfig:l((()=>{if(!c)return;return{fixed:!0,hideSelectAll:!a,preserveSelectedRowKeys:!1,selectedRowKeys:p,type:d?"checkbox":"radio",getCheckboxProps:e(u)?e=>({disabled:u(e)}):void 0,onChange:(e,l)=>{S(e,l)},onSelect:e(f)||e(h)?(l,o)=>{const r=e(t)?t(l):l[t];o?f?.(r,l):h?.(r,l)}:void 0}}),[c,a,p,d,u,f,h,S,t]),handleRowClickSelection:C,mergedValue:p,selectedRecords:g}}export{t as useRowSelectionConfig};
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{isFunction as e}from"@vef-framework/shared";import{useMemo as o}from"react";import{useSelectedRows as t}from"./use-selected-rows.js";function l({rowKey:l,selectedKeys:c,defaultSelectedKeys:s,selectable:n,enableRowClick:r,enableRowClickForSelection:i,multipleSelection:d=!0,showSelectAllCheckbox:a=!0,disabledSelection:f,onRowSelect:u,onRowDeselect:w,onRowSelectionChange:S}){const{selectedKeys:h,selectedRecords:R,onChange:p}=t({selectedKeys:c,defaultSelectedKeys:s,onRowSelectionChange:S}),y=o((()=>{if(r&&i)return o=>{const t=e(l)?l(o):o[l];if(h.includes(t)){if(!d)return;const c=h.filter((e=>e!==t)),s=R.current.filter((o=>(e(l)?l(o):o[l])!==t));p(c,s),w?.(t,o)}else{const e=[t];d&&e.push(...h);const l=[o];d&&l.push(...R.current),p(e,l),u?.(t,o)}}}),[r,i,d,p,w,u,l,h,R]);return{rowSelectionConfig:o((()=>{if(!n)return;return{fixed:!0,hideSelectAll:!a,preserveSelectedRowKeys:!1,selectedRowKeys:h,type:d?"checkbox":"radio",getCheckboxProps:e(f)?e=>({disabled:f(e)}):void 0,onChange:(e,o)=>{p(e,o)},onSelect:e(u)||e(w)?(o,t)=>{const c=e(l)?l(o):o[l];t?u?.(c,o):w?.(c,o)}:void 0}}),[n,a,h,d,f,u,w,p,l]),handleRowClickSelection:y,selectedKeys:h,selectedRecords:R}}export{l as useRowSelectionConfig};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -0,0 +1,10 @@
1
+ import type { IdValue, ObjectType } from "@vef-framework/shared";
2
+ import type { VefTableProps } from "../props";
3
+ /**
4
+ * The hook to merge the controlled and uncontrolled value.
5
+ */
6
+ export declare function useSelectedRows<T extends ObjectType>({ selectedKeys, defaultSelectedKeys, onRowSelectionChange, }: Pick<VefTableProps<T>, "selectedKeys" | "defaultSelectedKeys" | "onRowSelectionChange">): {
7
+ selectedKeys: string[];
8
+ selectedRecords: import("react").MutableRefObject<T[]>;
9
+ onChange: (keys: IdValue[], records: T[]) => void;
10
+ };
@@ -0,0 +1,3 @@
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
+ import{useState as e,useRef as t,useCallback as c}from"react";function n({selectedKeys:n,defaultSelectedKeys:o,onRowSelectionChange:r}){const[s,d]=e(o??[]),l=n??s,a=t([]),u=c(((e,t)=>{n||d(e),a.current=t,r?.(e,t)}),[r,n]);return{selectedKeys:l,selectedRecords:a,onChange:u}}export{n as useSelectedRows};
3
+ /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,5 +1,5 @@
1
- import type { ObjectType } from "@vef-framework/shared";
2
1
  import type { TableColumnsType, TableColumnType } from "antd";
2
+ import { type ObjectType } from "@vef-framework/shared";
3
3
  import type { TableColumn } from "../types";
4
4
  /**
5
5
  * Hook to convert table columns to antd table columns
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as e}from"@emotion/react/jsx-runtime";import{isNumber as r,isEqual as t}from"@vef-framework/shared";import{useMemo as o}from"react";import{columnComponents as n}from"../components/columns/index.js";function m(m,i,d){return o((()=>{const o=[],a=m.map((o=>{const{title:m,show:i,sort:d,fixed:a,dependentColumnNames:p,...s}=o,u=r(d)?{multiple:d}:!!d||void 0,l=n[o.type];return{key:s.name,dataIndex:s.name,title:m||s.name,fixed:a,hidden:!(i??1),sorter:u,align:s.align,width:s.width,shouldCellUpdate:(e,r)=>!t(p.map((r=>e[r])),p.map((e=>r[e]))),render:(r,t,o)=>e(l,{columnProps:s,record:t,rowIndex:o,value:r})}}));return i&&o.push(i),o.push(...a),d&&o.push(d),o}),[m,i,d])}export{m as useTableColumns};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,4 +1,4 @@
1
- import type { Mapper, ObjectType } from "@vef-framework/shared";
1
+ import { type Mapper, type ObjectType } from "@vef-framework/shared";
2
2
  import type { InternalTableContext } from "../types";
3
3
  declare const TableContextProvider: import("react").ComponentType<{
4
4
  value: InternalTableContext<any, any>;
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{createSelectableContext as e,noop as o}from"@vef-framework/shared";const{useContextSelector:n,useContext:t,ContextProvider:r}=e({isFetching:!1,refetch:()=>Promise.resolve({}),selectedKeys:[],selectedRecords:[],defaultColumnConfigMap:new Map,columnConfigMap:new Map,setColumnConfigMap:o,columnConfigMapHasChanged:!1}),s=n,a=t;export{r as TableContextProvider,a as useTableContext,s as useTableContextSelector};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{useRef as t,useImperativeHandle as r}from"react";function a(a,e,n){const c=t(null);return r(a,(()=>({getData:()=>e,refetch:async()=>{await n()}}))),c}export{a as useTableInstance};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,4 +1,4 @@
1
- import type { Mapper, MaybeUndefined, ObjectType } from "@vef-framework/shared";
1
+ import { type Mapper, type MaybeUndefined, type ObjectType } from "@vef-framework/shared";
2
2
  import { type ReactNode } from "react";
3
3
  import type { TableColumn } from "../types";
4
4
  /**
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{jsx as m}from"@emotion/react/jsx-runtime";import{isFunction as r}from"@vef-framework/shared";import{Table as n}from"antd";import{useMemo as o}from"react";const{Summary:a}=n,{Row:e,Cell:t}=a;function i(n){const i=o((()=>n.filter((m=>r(m.summary))).map((m=>{const{name:r,summary:n,summaryColSpan:o}=m;return{name:r,summary:n,summaryColSpan:o??1}}))),[n]);return o((()=>{if(0!==i.length)return r=>m(a,{fixed:"bottom",children:m(e,{children:i.map((({name:n,summary:o,summaryColSpan:a},e)=>m(t,{colSpan:a,index:e,children:o(r)},n)))})})}),[i])}export{i as useTableSummary};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.7, build time: 2024-12-10T13:48:48.540Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.9, build time: 2024-12-19T05:12:56.660Z, made by Venus. */
2
2
  import{useMemo as r}from"react";function t(t,e){return r((()=>{const r=t.filter((r=>!0!==r.hidden)).map((r=>r.width??r.minWidth??160)).reduce(((r,t)=>r+t),0);return e?r+40:r}),[t,e])}export{t as useTableWidth};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,7 +1,7 @@
1
1
  import { type EmptyObject, type ObjectType, type ObjectValue } from "@vef-framework/shared";
2
2
  import { type FC, type ReactNode, type RefAttributes } from "react";
3
3
  import type { VefTableInstance, VefTableProps } from "./props";
4
+ import type { BatchActionButtonContext, OperationButtonContext, TableColumn, TableColumnFixed, TableContext, TableRowContext, TableSchema } from "./types";
4
5
  declare const VefTable: (<T extends ObjectType = ObjectValue, P extends ObjectType = EmptyObject, R = T, C extends ObjectType = EmptyObject>(props: VefTableProps<T, P, R, C> & RefAttributes<VefTableInstance<T>>) => ReactNode) & Pick<FC, "displayName">;
5
- export type { BatchActionButtonContext, OperationButtonContext, TableColumn, TableColumnFixed, TableContext, TableRowContext, TableSchema } from "./types";
6
- export type { VefTableInstance, VefTableProps };
6
+ export type { BatchActionButtonContext, OperationButtonContext, TableColumn, TableColumnFixed, TableContext, TableRowContext, TableSchema, VefTableInstance, VefTableProps };
7
7
  export default VefTable;