@vef-framework/components 1.0.63 → 1.0.65

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 (577) hide show
  1. package/es/index.js +1 -1
  2. package/es/internal/index.js +1 -1
  3. package/es/internal/modern-normalize.css.js +1 -1
  4. package/es/internal/utils.js +2 -2
  5. package/es/vef-access-denied/access-denied-icon.js +2 -2
  6. package/es/vef-access-denied/index.js +9 -9
  7. package/es/vef-action-buttons/index.js +2 -2
  8. package/es/vef-auto-sizer/index.js +1 -1
  9. package/es/vef-avatar/index.js +2 -2
  10. package/es/vef-avatar-group/index.js +2 -2
  11. package/es/vef-badge/index.js +2 -2
  12. package/es/vef-bool/hooks/use-bool-instance.js +2 -2
  13. package/es/vef-bool/index.js +2 -2
  14. package/es/vef-breadcrumb/index.js +2 -2
  15. package/es/vef-button/components/base-button.js +1 -1
  16. package/es/vef-button/index.js +1 -1
  17. package/es/vef-card/index.js +2 -2
  18. package/es/vef-card-meta/index.js +2 -2
  19. package/es/vef-checkbox/hooks/use-checkbox-instance.js +2 -2
  20. package/es/vef-checkbox/hooks/use-data-options.js +2 -2
  21. package/es/vef-checkbox/index.js +2 -2
  22. package/es/vef-col/index.js +2 -2
  23. package/es/vef-color-picker/index.js +2 -2
  24. package/es/vef-compact/index.js +2 -2
  25. package/es/vef-config-provider/global-style.js +1 -1
  26. package/es/vef-config-provider/hooks/use-ui-config.js +2 -2
  27. package/es/vef-config-provider/index.js +4 -4
  28. package/es/vef-config-provider/store.js +1 -1
  29. package/es/vef-container/index.js +2 -2
  30. package/es/vef-crud-page/components/crud-actions.js +2 -2
  31. package/es/vef-crud-page/components/crud-filter.js +2 -2
  32. package/es/vef-crud-page/components/crud-footer.js +2 -2
  33. package/es/vef-crud-page/components/crud-form-modal.js +2 -2
  34. package/es/vef-crud-page/components/crud-header.js +2 -2
  35. package/es/vef-crud-page/components/crud-table.js +2 -2
  36. package/es/vef-crud-page/hooks/use-action-buttons.js +2 -2
  37. package/es/vef-crud-page/hooks/use-crud-context.js +2 -2
  38. package/es/vef-crud-page/hooks/use-crud-schema.js +2 -2
  39. package/es/vef-crud-page/hooks/use-operation-buttons.js +2 -2
  40. package/es/vef-crud-page/index.js +2 -2
  41. package/es/vef-crud-page/store.js +1 -1
  42. package/es/vef-divider/index.js +2 -2
  43. package/es/vef-drawer/components/action-button-wrapper.js +2 -2
  44. package/es/vef-drawer/components/button-props.js +1 -1
  45. package/es/vef-drawer/components/cancel-action-button.js +2 -2
  46. package/es/vef-drawer/components/ok-action-button.js +2 -2
  47. package/es/vef-drawer/context.js +1 -1
  48. package/es/vef-drawer/index.js +3 -3
  49. package/es/vef-dropdown/index.js +2 -2
  50. package/es/vef-dynamic-icon/index.js +2 -2
  51. package/es/vef-dynamic-icon/props.js +1 -1
  52. package/es/vef-empty/index.js +2 -2
  53. package/es/vef-empty-placeholder/index.js +3 -3
  54. package/es/vef-error/error-icon.js +2 -2
  55. package/es/vef-error/index.js +2 -2
  56. package/es/vef-filter/components/action-buttons.js +3 -3
  57. package/es/vef-filter/components/advanced-filter.js +4 -4
  58. package/es/vef-filter/components/basic-filter.js +5 -5
  59. package/es/vef-filter/components/fields/index.js +1 -1
  60. package/es/vef-filter/components/fields/input-number.js +2 -2
  61. package/es/vef-filter/components/fields/input.js +2 -2
  62. package/es/vef-filter/components/filter-field.js +2 -2
  63. package/es/vef-filter/components/filter-item.js +2 -2
  64. package/es/vef-filter/event.js +2 -2
  65. package/es/vef-filter/helper.js +2 -2
  66. package/es/vef-filter/hooks/use-action-handlers.js +2 -2
  67. package/es/vef-filter/hooks/use-computed-values.js +2 -2
  68. package/es/vef-filter/hooks/use-filter-context.js +1 -1
  69. package/es/vef-filter/hooks/use-filter-initialization.js +2 -2
  70. package/es/vef-filter/hooks/use-filter-instance.js +2 -2
  71. package/es/vef-filter/hooks/use-filter-items.js +2 -2
  72. package/es/vef-filter/hooks/use-filter-values-change.js +2 -2
  73. package/es/vef-filter/hooks/use-label-config.js +2 -2
  74. package/es/vef-filter/index.js +3 -3
  75. package/es/vef-filter/store.js +1 -1
  76. package/es/vef-flex/index.js +2 -2
  77. package/es/vef-float-button/index.js +2 -2
  78. package/es/vef-float-button-group/index.js +2 -2
  79. package/es/vef-form/components/fields/index.js +1 -1
  80. package/es/vef-form/components/fields/input-number.js +2 -2
  81. package/es/vef-form/components/fields/input.js +2 -2
  82. package/es/vef-form/components/form-actions.js +3 -3
  83. package/es/vef-form/components/form-content.js +3 -3
  84. package/es/vef-form/components/form-field.js +2 -2
  85. package/es/vef-form/components/form-group.js +3 -3
  86. package/es/vef-form/components/form-hidden-item.js +2 -2
  87. package/es/vef-form/components/form-item.js +2 -2
  88. package/es/vef-form/components/form-row.js +2 -2
  89. package/es/vef-form/event.js +2 -2
  90. package/es/vef-form/helper.js +2 -2
  91. package/es/vef-form/hooks/use-action-handlers.js +2 -2
  92. package/es/vef-form/hooks/use-columns-layout.js +2 -2
  93. package/es/vef-form/hooks/use-computed-values.js +2 -2
  94. package/es/vef-form/hooks/use-form-context.js +1 -1
  95. package/es/vef-form/hooks/use-form-initialization.js +2 -2
  96. package/es/vef-form/hooks/use-form-instance.js +2 -2
  97. package/es/vef-form/hooks/use-form-values-change.js +2 -2
  98. package/es/vef-form/hooks/use-label-width.js +2 -2
  99. package/es/vef-form/index.js +3 -3
  100. package/es/vef-form/store.js +1 -1
  101. package/es/vef-form/validation-rules.js +2 -2
  102. package/es/vef-form-drawer/index.js +2 -2
  103. package/es/vef-form-modal/index.js +2 -2
  104. package/es/vef-generic-select/index.js +2 -2
  105. package/es/vef-grid/index.js +4 -4
  106. package/es/vef-grid/props.js +1 -1
  107. package/es/vef-grid-item/index.js +2 -2
  108. package/es/vef-icon/index.js +1 -1
  109. package/es/vef-icon-select/index.js +4 -4
  110. package/es/vef-input/hooks/use-input-instance.js +2 -2
  111. package/es/vef-input/index.js +2 -2
  112. package/es/vef-input-number/hooks/use-input-number-instance.js +2 -2
  113. package/es/vef-input-number/index.js +2 -2
  114. package/es/vef-layout/common-styles.js +1 -1
  115. package/es/vef-layout/components/content.js +2 -2
  116. package/es/vef-layout/components/font-size.js +2 -2
  117. package/es/vef-layout/components/fullscreen.js +2 -2
  118. package/es/vef-layout/components/header-action-icons.js +7 -7
  119. package/es/vef-layout/components/header-content.js +2 -2
  120. package/es/vef-layout/components/header.js +3 -3
  121. package/es/vef-layout/components/icon-boy.js +2 -2
  122. package/es/vef-layout/components/icon-girl.js +2 -2
  123. package/es/vef-layout/components/icon-menu-fold-left.js +2 -2
  124. package/es/vef-layout/components/icon-menu-unfold-left.js +2 -2
  125. package/es/vef-layout/components/menu-groups.js +7 -7
  126. package/es/vef-layout/components/message.js +2 -2
  127. package/es/vef-layout/components/search.js +2 -2
  128. package/es/vef-layout/components/sider.js +2 -2
  129. package/es/vef-layout/components/title.js +3 -3
  130. package/es/vef-layout/components/user-avatar.js +10 -10
  131. package/es/vef-layout/hooks/use-layout-context.js +1 -1
  132. package/es/vef-layout/index.js +3 -3
  133. package/es/vef-layout/logo.svg.js +1 -1
  134. package/es/vef-layout/store.js +1 -1
  135. package/es/vef-loading-placeholder/index.js +3 -3
  136. package/es/vef-login/index.js +6 -6
  137. package/es/vef-login/login-icon.js +2 -2
  138. package/es/vef-menu/index.js +2 -2
  139. package/es/vef-modal/components/action-button-wrapper.js +2 -2
  140. package/es/vef-modal/components/button-props.js +1 -1
  141. package/es/vef-modal/components/cancel-action-button.js +2 -2
  142. package/es/vef-modal/components/ok-action-button.js +2 -2
  143. package/es/vef-modal/context.js +1 -1
  144. package/es/vef-modal/index.js +2 -2
  145. package/es/vef-not-found/index.js +10 -10
  146. package/es/vef-not-found/not-found-icon.js +2 -2
  147. package/es/vef-page/index.js +2 -2
  148. package/es/vef-pagination/index.js +2 -2
  149. package/es/vef-pagination/props.js +1 -1
  150. package/es/vef-paragraph/index.js +2 -2
  151. package/es/vef-password/hooks/use-password-instance.js +2 -2
  152. package/es/vef-password/index.js +2 -2
  153. package/es/vef-popconfirm/index.js +2 -2
  154. package/es/vef-popover/index.js +1 -1
  155. package/es/vef-radio/hooks/use-data-options.js +2 -2
  156. package/es/vef-radio/hooks/use-radio-instance.js +2 -2
  157. package/es/vef-radio/index.js +3 -3
  158. package/es/vef-rate/hooks/use-rate-instance.js +2 -2
  159. package/es/vef-rate/index.js +1 -1
  160. package/es/vef-responsive-container/index.js +1 -1
  161. package/es/vef-responsive-item/index.js +1 -1
  162. package/es/vef-ribbon/index.js +2 -2
  163. package/es/vef-row/index.js +2 -2
  164. package/es/vef-scroll-area/components/scrollbar.js +1 -1
  165. package/es/vef-scroll-area/index.js +1 -1
  166. package/es/vef-select/components/option.js +2 -2
  167. package/es/vef-select/hooks/use-data-options.js +2 -2
  168. package/es/vef-select/hooks/use-field-names.js +2 -2
  169. package/es/vef-select/hooks/use-render-label.js +3 -3
  170. package/es/vef-select/hooks/use-render-option.js +2 -2
  171. package/es/vef-select/hooks/use-select-instance.js +2 -2
  172. package/es/vef-select/index.js +2 -2
  173. package/es/vef-slider/hooks/use-slider-instance.js +2 -2
  174. package/es/vef-slider/index.js +1 -1
  175. package/es/vef-sortable-list/components/overlay-item.js +3 -3
  176. package/es/vef-sortable-list/components/sortable-item.js +3 -3
  177. package/es/vef-sortable-list/hooks/use-merged-items.js +2 -2
  178. package/es/vef-sortable-list/index.js +2 -2
  179. package/es/vef-space/index.js +2 -2
  180. package/es/vef-spin/index.js +2 -2
  181. package/es/vef-splitter/index.js +2 -2
  182. package/es/vef-splitter-panel/index.js +2 -2
  183. package/es/vef-status/index.js +2 -2
  184. package/es/vef-table/components/columns/bool.js +2 -2
  185. package/es/vef-table/components/columns/code.js +2 -2
  186. package/es/vef-table/components/columns/data-dictionary.js +2 -2
  187. package/es/vef-table/components/columns/enum.js +2 -2
  188. package/es/vef-table/components/columns/file.js +2 -2
  189. package/es/vef-table/components/columns/icon.js +2 -2
  190. package/es/vef-table/components/columns/id.js +2 -2
  191. package/es/vef-table/components/columns/image.js +2 -2
  192. package/es/vef-table/components/columns/index.js +1 -1
  193. package/es/vef-table/components/columns/markdown.js +2 -2
  194. package/es/vef-table/components/columns/number.js +2 -2
  195. package/es/vef-table/components/columns/render.js +2 -2
  196. package/es/vef-table/components/columns/rich-text.js +2 -2
  197. package/es/vef-table/components/columns/text.js +2 -2
  198. package/es/vef-table/components/columns-settings.js +2 -2
  199. package/es/vef-table/components/operation-buttons.js +2 -2
  200. package/es/vef-table/components/settings-icon.js +3 -3
  201. package/es/vef-table/components/table-footer.js +2 -2
  202. package/es/vef-table/helper.js +2 -2
  203. package/es/vef-table/hooks/use-computed-batch-buttons.js +2 -2
  204. package/es/vef-table/hooks/use-computed-columns.js +2 -2
  205. package/es/vef-table/hooks/use-computed-values.js +2 -2
  206. package/es/vef-table/hooks/use-data.js +2 -2
  207. package/es/vef-table/hooks/use-default-column-configs.js +2 -2
  208. package/es/vef-table/hooks/use-display-value.js +2 -2
  209. package/es/vef-table/hooks/use-helper-columns.js +2 -2
  210. package/es/vef-table/hooks/use-operation-column-width.js +2 -2
  211. package/es/vef-table/hooks/use-pagination-props.js +2 -2
  212. package/es/vef-table/hooks/use-row-props.js +2 -2
  213. package/es/vef-table/hooks/use-row-selection-config.js +2 -2
  214. package/es/vef-table/hooks/use-selected-rows.js +2 -2
  215. package/es/vef-table/hooks/use-table-columns.js +2 -2
  216. package/es/vef-table/hooks/use-table-context.js +1 -1
  217. package/es/vef-table/hooks/use-table-instance.js +2 -2
  218. package/es/vef-table/hooks/use-table-summary.js +2 -2
  219. package/es/vef-table/hooks/use-table-width.js +2 -2
  220. package/es/vef-table/index.js +3 -3
  221. package/es/vef-table/store.js +1 -1
  222. package/es/vef-tabs/index.js +2 -2
  223. package/es/vef-tag/index.js +2 -2
  224. package/es/vef-temporal-picker/helper.js +2 -2
  225. package/es/vef-temporal-picker/hooks/use-dayjs-value.js +2 -2
  226. package/es/vef-temporal-picker/hooks/use-temporal-limit.js +2 -2
  227. package/es/vef-temporal-picker/hooks/use-temporal-picker-instance.js +2 -2
  228. package/es/vef-temporal-picker/index.js +2 -2
  229. package/es/vef-temporal-range-picker/helper.js +2 -2
  230. package/es/vef-temporal-range-picker/hooks/use-dayjs-values.js +2 -2
  231. package/es/vef-temporal-range-picker/hooks/use-temporal-limit.js +2 -2
  232. package/es/vef-temporal-range-picker/hooks/use-temporal-range-picker-instance.js +2 -2
  233. package/es/vef-temporal-range-picker/index.js +2 -2
  234. package/es/vef-temporal-range-picker/props.js +1 -1
  235. package/es/vef-text/index.js +2 -2
  236. package/es/vef-textarea/hooks/use-textarea-instance.js +2 -2
  237. package/es/vef-textarea/index.js +2 -2
  238. package/es/vef-title/index.js +4 -4
  239. package/es/vef-tooltip/index.js +1 -1
  240. package/es/vef-tree-select/hooks/use-change-handler.js +2 -2
  241. package/es/vef-tree-select/hooks/use-data-options.js +2 -2
  242. package/es/vef-tree-select/hooks/use-tree-select-instance.js +2 -2
  243. package/es/vef-tree-select/index.js +2 -2
  244. package/es/vef-virtual-grid/index.js +3 -3
  245. package/es/vef-virtual-list/index.js +2 -2
  246. package/lib/index.cjs +1 -1
  247. package/lib/internal/index.cjs +1 -1
  248. package/lib/internal/modern-normalize.css.cjs +1 -1
  249. package/lib/internal/utils.cjs +2 -2
  250. package/lib/vef-access-denied/access-denied-icon.cjs +2 -2
  251. package/lib/vef-access-denied/index.cjs +3 -3
  252. package/lib/vef-access-denied/props.cjs +1 -1
  253. package/lib/vef-action-buttons/index.cjs +2 -2
  254. package/lib/vef-action-buttons/props.cjs +1 -1
  255. package/lib/vef-auto-sizer/index.cjs +1 -1
  256. package/lib/vef-auto-sizer/props.cjs +1 -1
  257. package/lib/vef-avatar/index.cjs +2 -2
  258. package/lib/vef-avatar/props.cjs +1 -1
  259. package/lib/vef-avatar-group/index.cjs +2 -2
  260. package/lib/vef-avatar-group/props.cjs +1 -1
  261. package/lib/vef-badge/index.cjs +2 -2
  262. package/lib/vef-badge/props.cjs +1 -1
  263. package/lib/vef-bool/hooks/use-bool-instance.cjs +2 -2
  264. package/lib/vef-bool/index.cjs +2 -2
  265. package/lib/vef-bool/props.cjs +1 -1
  266. package/lib/vef-breadcrumb/index.cjs +2 -2
  267. package/lib/vef-breadcrumb/props.cjs +1 -1
  268. package/lib/vef-button/components/base-button.cjs +1 -1
  269. package/lib/vef-button/index.cjs +1 -1
  270. package/lib/vef-button/props.cjs +1 -1
  271. package/lib/vef-card/index.cjs +2 -2
  272. package/lib/vef-card/props.cjs +1 -1
  273. package/lib/vef-card-meta/index.cjs +2 -2
  274. package/lib/vef-card-meta/props.cjs +1 -1
  275. package/lib/vef-checkbox/hooks/use-checkbox-instance.cjs +2 -2
  276. package/lib/vef-checkbox/hooks/use-data-options.cjs +2 -2
  277. package/lib/vef-checkbox/index.cjs +4 -4
  278. package/lib/vef-checkbox/props.cjs +1 -1
  279. package/lib/vef-col/index.cjs +2 -2
  280. package/lib/vef-col/props.cjs +1 -1
  281. package/lib/vef-color-picker/index.cjs +2 -2
  282. package/lib/vef-color-picker/props.cjs +1 -1
  283. package/lib/vef-compact/index.cjs +2 -2
  284. package/lib/vef-compact/props.cjs +1 -1
  285. package/lib/vef-config-provider/global-style.cjs +1 -1
  286. package/lib/vef-config-provider/hooks/use-ui-config.cjs +2 -2
  287. package/lib/vef-config-provider/index.cjs +4 -4
  288. package/lib/vef-config-provider/props.cjs +1 -1
  289. package/lib/vef-config-provider/store.cjs +1 -1
  290. package/lib/vef-container/index.cjs +2 -2
  291. package/lib/vef-container/props.cjs +1 -1
  292. package/lib/vef-crud-page/components/crud-actions.cjs +2 -2
  293. package/lib/vef-crud-page/components/crud-filter.cjs +2 -2
  294. package/lib/vef-crud-page/components/crud-footer.cjs +4 -4
  295. package/lib/vef-crud-page/components/crud-form-modal.cjs +2 -2
  296. package/lib/vef-crud-page/components/crud-header.cjs +2 -2
  297. package/lib/vef-crud-page/components/crud-table.cjs +2 -2
  298. package/lib/vef-crud-page/hooks/use-action-buttons.cjs +2 -2
  299. package/lib/vef-crud-page/hooks/use-crud-context.cjs +2 -2
  300. package/lib/vef-crud-page/hooks/use-crud-schema.cjs +2 -2
  301. package/lib/vef-crud-page/hooks/use-operation-buttons.cjs +2 -2
  302. package/lib/vef-crud-page/index.cjs +2 -2
  303. package/lib/vef-crud-page/props.cjs +1 -1
  304. package/lib/vef-crud-page/store.cjs +1 -1
  305. package/lib/vef-crud-page/types.cjs +1 -1
  306. package/lib/vef-divider/index.cjs +2 -2
  307. package/lib/vef-divider/props.cjs +1 -1
  308. package/lib/vef-drawer/components/action-button-wrapper.cjs +2 -2
  309. package/lib/vef-drawer/components/button-props.cjs +1 -1
  310. package/lib/vef-drawer/components/cancel-action-button.cjs +2 -2
  311. package/lib/vef-drawer/components/ok-action-button.cjs +2 -2
  312. package/lib/vef-drawer/context.cjs +1 -1
  313. package/lib/vef-drawer/index.cjs +2 -2
  314. package/lib/vef-drawer/props.cjs +1 -1
  315. package/lib/vef-dropdown/index.cjs +2 -2
  316. package/lib/vef-dropdown/props.cjs +1 -1
  317. package/lib/vef-dynamic-icon/index.cjs +2 -2
  318. package/lib/vef-dynamic-icon/props.cjs +1 -1
  319. package/lib/vef-empty/index.cjs +2 -2
  320. package/lib/vef-empty/props.cjs +1 -1
  321. package/lib/vef-empty-placeholder/index.cjs +5 -5
  322. package/lib/vef-empty-placeholder/props.cjs +1 -1
  323. package/lib/vef-error/error-icon.cjs +2 -2
  324. package/lib/vef-error/index.cjs +2 -2
  325. package/lib/vef-error/props.cjs +1 -1
  326. package/lib/vef-filter/components/action-buttons.cjs +2 -2
  327. package/lib/vef-filter/components/advanced-filter.cjs +4 -4
  328. package/lib/vef-filter/components/basic-filter.cjs +2 -2
  329. package/lib/vef-filter/components/fields/index.cjs +1 -1
  330. package/lib/vef-filter/components/fields/input-number.cjs +2 -2
  331. package/lib/vef-filter/components/fields/input.cjs +2 -2
  332. package/lib/vef-filter/components/fields/props.cjs +1 -1
  333. package/lib/vef-filter/components/filter-field.cjs +2 -2
  334. package/lib/vef-filter/components/filter-item.cjs +2 -2
  335. package/lib/vef-filter/event.cjs +2 -2
  336. package/lib/vef-filter/helper.cjs +2 -2
  337. package/lib/vef-filter/hooks/use-action-handlers.cjs +2 -2
  338. package/lib/vef-filter/hooks/use-computed-values.cjs +2 -2
  339. package/lib/vef-filter/hooks/use-filter-context.cjs +1 -1
  340. package/lib/vef-filter/hooks/use-filter-initialization.cjs +2 -2
  341. package/lib/vef-filter/hooks/use-filter-instance.cjs +2 -2
  342. package/lib/vef-filter/hooks/use-filter-items.cjs +2 -2
  343. package/lib/vef-filter/hooks/use-filter-values-change.cjs +2 -2
  344. package/lib/vef-filter/hooks/use-label-config.cjs +2 -2
  345. package/lib/vef-filter/index.cjs +3 -3
  346. package/lib/vef-filter/props.cjs +1 -1
  347. package/lib/vef-filter/store.cjs +1 -1
  348. package/lib/vef-filter/types.cjs +1 -1
  349. package/lib/vef-flex/index.cjs +2 -2
  350. package/lib/vef-flex/props.cjs +1 -1
  351. package/lib/vef-float-button/index.cjs +2 -2
  352. package/lib/vef-float-button/props.cjs +1 -1
  353. package/lib/vef-float-button-group/index.cjs +2 -2
  354. package/lib/vef-float-button-group/props.cjs +1 -1
  355. package/lib/vef-form/components/fields/index.cjs +1 -1
  356. package/lib/vef-form/components/fields/input-number.cjs +2 -2
  357. package/lib/vef-form/components/fields/input.cjs +2 -2
  358. package/lib/vef-form/components/fields/props.cjs +1 -1
  359. package/lib/vef-form/components/form-actions.cjs +3 -3
  360. package/lib/vef-form/components/form-content.cjs +2 -2
  361. package/lib/vef-form/components/form-field.cjs +2 -2
  362. package/lib/vef-form/components/form-group.cjs +3 -3
  363. package/lib/vef-form/components/form-hidden-item.cjs +2 -2
  364. package/lib/vef-form/components/form-item.cjs +2 -2
  365. package/lib/vef-form/components/form-row.cjs +2 -2
  366. package/lib/vef-form/event.cjs +2 -2
  367. package/lib/vef-form/helper.cjs +2 -2
  368. package/lib/vef-form/hooks/use-action-handlers.cjs +2 -2
  369. package/lib/vef-form/hooks/use-columns-layout.cjs +2 -2
  370. package/lib/vef-form/hooks/use-computed-values.cjs +2 -2
  371. package/lib/vef-form/hooks/use-form-context.cjs +1 -1
  372. package/lib/vef-form/hooks/use-form-initialization.cjs +2 -2
  373. package/lib/vef-form/hooks/use-form-instance.cjs +2 -2
  374. package/lib/vef-form/hooks/use-form-values-change.cjs +2 -2
  375. package/lib/vef-form/hooks/use-label-width.cjs +2 -2
  376. package/lib/vef-form/index.cjs +3 -3
  377. package/lib/vef-form/props.cjs +1 -1
  378. package/lib/vef-form/store.cjs +1 -1
  379. package/lib/vef-form/types.cjs +1 -1
  380. package/lib/vef-form/validation-rules.cjs +2 -2
  381. package/lib/vef-form-drawer/index.cjs +2 -2
  382. package/lib/vef-form-drawer/props.cjs +1 -1
  383. package/lib/vef-form-modal/index.cjs +2 -2
  384. package/lib/vef-form-modal/props.cjs +1 -1
  385. package/lib/vef-generic-select/index.cjs +2 -2
  386. package/lib/vef-generic-select/props.cjs +1 -1
  387. package/lib/vef-grid/index.cjs +2 -2
  388. package/lib/vef-grid/props.cjs +1 -1
  389. package/lib/vef-grid-item/index.cjs +2 -2
  390. package/lib/vef-grid-item/props.cjs +1 -1
  391. package/lib/vef-icon/index.cjs +1 -1
  392. package/lib/vef-icon/props.cjs +1 -1
  393. package/lib/vef-icon-select/index.cjs +5 -5
  394. package/lib/vef-icon-select/props.cjs +1 -1
  395. package/lib/vef-input/hooks/use-input-instance.cjs +2 -2
  396. package/lib/vef-input/index.cjs +2 -2
  397. package/lib/vef-input/props.cjs +1 -1
  398. package/lib/vef-input-number/hooks/use-input-number-instance.cjs +2 -2
  399. package/lib/vef-input-number/index.cjs +2 -2
  400. package/lib/vef-input-number/props.cjs +1 -1
  401. package/lib/vef-layout/common-styles.cjs +1 -1
  402. package/lib/vef-layout/components/content.cjs +2 -2
  403. package/lib/vef-layout/components/font-size.cjs +2 -2
  404. package/lib/vef-layout/components/fullscreen.cjs +2 -2
  405. package/lib/vef-layout/components/header-action-icons.cjs +3 -3
  406. package/lib/vef-layout/components/header-content.cjs +2 -2
  407. package/lib/vef-layout/components/header.cjs +3 -3
  408. package/lib/vef-layout/components/icon-boy.cjs +2 -2
  409. package/lib/vef-layout/components/icon-girl.cjs +2 -2
  410. package/lib/vef-layout/components/icon-menu-fold-left.cjs +2 -2
  411. package/lib/vef-layout/components/icon-menu-unfold-left.cjs +2 -2
  412. package/lib/vef-layout/components/menu-groups.cjs +6 -6
  413. package/lib/vef-layout/components/message.cjs +2 -2
  414. package/lib/vef-layout/components/search.cjs +2 -2
  415. package/lib/vef-layout/components/sider.cjs +2 -2
  416. package/lib/vef-layout/components/title.cjs +2 -2
  417. package/lib/vef-layout/components/user-avatar.cjs +8 -8
  418. package/lib/vef-layout/hooks/use-layout-context.cjs +1 -1
  419. package/lib/vef-layout/index.cjs +2 -2
  420. package/lib/vef-layout/logo.svg.cjs +1 -1
  421. package/lib/vef-layout/props.cjs +1 -1
  422. package/lib/vef-layout/store.cjs +1 -1
  423. package/lib/vef-loading-placeholder/index.cjs +6 -6
  424. package/lib/vef-loading-placeholder/props.cjs +1 -1
  425. package/lib/vef-login/index.cjs +10 -10
  426. package/lib/vef-login/login-icon.cjs +2 -2
  427. package/lib/vef-login/props.cjs +1 -1
  428. package/lib/vef-menu/index.cjs +2 -2
  429. package/lib/vef-menu/props.cjs +1 -1
  430. package/lib/vef-modal/components/action-button-wrapper.cjs +2 -2
  431. package/lib/vef-modal/components/button-props.cjs +1 -1
  432. package/lib/vef-modal/components/cancel-action-button.cjs +2 -2
  433. package/lib/vef-modal/components/ok-action-button.cjs +2 -2
  434. package/lib/vef-modal/context.cjs +1 -1
  435. package/lib/vef-modal/index.cjs +2 -2
  436. package/lib/vef-modal/props.cjs +1 -1
  437. package/lib/vef-not-found/index.cjs +2 -2
  438. package/lib/vef-not-found/not-found-icon.cjs +2 -2
  439. package/lib/vef-not-found/props.cjs +1 -1
  440. package/lib/vef-page/index.cjs +2 -2
  441. package/lib/vef-page/props.cjs +1 -1
  442. package/lib/vef-pagination/index.cjs +2 -2
  443. package/lib/vef-pagination/props.cjs +1 -1
  444. package/lib/vef-paragraph/index.cjs +2 -2
  445. package/lib/vef-paragraph/props.cjs +1 -1
  446. package/lib/vef-password/hooks/use-password-instance.cjs +2 -2
  447. package/lib/vef-password/index.cjs +2 -2
  448. package/lib/vef-password/props.cjs +1 -1
  449. package/lib/vef-popconfirm/index.cjs +2 -2
  450. package/lib/vef-popconfirm/props.cjs +1 -1
  451. package/lib/vef-popover/index.cjs +1 -1
  452. package/lib/vef-popover/props.cjs +1 -1
  453. package/lib/vef-radio/hooks/use-data-options.cjs +2 -2
  454. package/lib/vef-radio/hooks/use-radio-instance.cjs +2 -2
  455. package/lib/vef-radio/index.cjs +3 -3
  456. package/lib/vef-radio/props.cjs +1 -1
  457. package/lib/vef-rate/hooks/use-rate-instance.cjs +2 -2
  458. package/lib/vef-rate/index.cjs +1 -1
  459. package/lib/vef-rate/props.cjs +1 -1
  460. package/lib/vef-responsive-container/index.cjs +1 -1
  461. package/lib/vef-responsive-container/props.cjs +1 -1
  462. package/lib/vef-responsive-item/index.cjs +1 -1
  463. package/lib/vef-responsive-item/props.cjs +1 -1
  464. package/lib/vef-ribbon/index.cjs +2 -2
  465. package/lib/vef-ribbon/props.cjs +1 -1
  466. package/lib/vef-row/index.cjs +2 -2
  467. package/lib/vef-row/props.cjs +1 -1
  468. package/lib/vef-scroll-area/components/scrollbar.cjs +1 -1
  469. package/lib/vef-scroll-area/index.cjs +1 -1
  470. package/lib/vef-scroll-area/props.cjs +1 -1
  471. package/lib/vef-select/components/option.cjs +3 -3
  472. package/lib/vef-select/hooks/use-data-options.cjs +2 -2
  473. package/lib/vef-select/hooks/use-field-names.cjs +2 -2
  474. package/lib/vef-select/hooks/use-render-label.cjs +2 -2
  475. package/lib/vef-select/hooks/use-render-option.cjs +2 -2
  476. package/lib/vef-select/hooks/use-select-instance.cjs +2 -2
  477. package/lib/vef-select/index.cjs +2 -2
  478. package/lib/vef-select/props.cjs +1 -1
  479. package/lib/vef-slider/hooks/use-slider-instance.cjs +2 -2
  480. package/lib/vef-slider/index.cjs +1 -1
  481. package/lib/vef-slider/props.cjs +1 -1
  482. package/lib/vef-sortable-list/components/overlay-item.cjs +3 -3
  483. package/lib/vef-sortable-list/components/sortable-item.cjs +3 -3
  484. package/lib/vef-sortable-list/hooks/use-merged-items.cjs +2 -2
  485. package/lib/vef-sortable-list/index.cjs +2 -2
  486. package/lib/vef-sortable-list/props.cjs +1 -1
  487. package/lib/vef-space/index.cjs +2 -2
  488. package/lib/vef-space/props.cjs +1 -1
  489. package/lib/vef-spin/index.cjs +2 -2
  490. package/lib/vef-spin/props.cjs +1 -1
  491. package/lib/vef-splitter/index.cjs +2 -2
  492. package/lib/vef-splitter/props.cjs +1 -1
  493. package/lib/vef-splitter-panel/index.cjs +2 -2
  494. package/lib/vef-splitter-panel/props.cjs +1 -1
  495. package/lib/vef-status/index.cjs +2 -2
  496. package/lib/vef-status/props.cjs +1 -1
  497. package/lib/vef-table/components/columns/bool.cjs +2 -2
  498. package/lib/vef-table/components/columns/code.cjs +2 -2
  499. package/lib/vef-table/components/columns/data-dictionary.cjs +2 -2
  500. package/lib/vef-table/components/columns/enum.cjs +2 -2
  501. package/lib/vef-table/components/columns/file.cjs +2 -2
  502. package/lib/vef-table/components/columns/icon.cjs +2 -2
  503. package/lib/vef-table/components/columns/id.cjs +2 -2
  504. package/lib/vef-table/components/columns/image.cjs +2 -2
  505. package/lib/vef-table/components/columns/index.cjs +1 -1
  506. package/lib/vef-table/components/columns/markdown.cjs +2 -2
  507. package/lib/vef-table/components/columns/number.cjs +2 -2
  508. package/lib/vef-table/components/columns/props.cjs +1 -1
  509. package/lib/vef-table/components/columns/render.cjs +2 -2
  510. package/lib/vef-table/components/columns/rich-text.cjs +2 -2
  511. package/lib/vef-table/components/columns/text.cjs +2 -2
  512. package/lib/vef-table/components/columns-settings.cjs +2 -2
  513. package/lib/vef-table/components/operation-buttons.cjs +3 -3
  514. package/lib/vef-table/components/settings-icon.cjs +4 -4
  515. package/lib/vef-table/components/table-footer.cjs +2 -2
  516. package/lib/vef-table/helper.cjs +2 -2
  517. package/lib/vef-table/hooks/use-computed-batch-buttons.cjs +2 -2
  518. package/lib/vef-table/hooks/use-computed-columns.cjs +2 -2
  519. package/lib/vef-table/hooks/use-computed-values.cjs +2 -2
  520. package/lib/vef-table/hooks/use-data.cjs +2 -2
  521. package/lib/vef-table/hooks/use-default-column-configs.cjs +2 -2
  522. package/lib/vef-table/hooks/use-display-value.cjs +2 -2
  523. package/lib/vef-table/hooks/use-helper-columns.cjs +2 -2
  524. package/lib/vef-table/hooks/use-operation-column-width.cjs +2 -2
  525. package/lib/vef-table/hooks/use-pagination-props.cjs +2 -2
  526. package/lib/vef-table/hooks/use-row-props.cjs +2 -2
  527. package/lib/vef-table/hooks/use-row-selection-config.cjs +2 -2
  528. package/lib/vef-table/hooks/use-selected-rows.cjs +2 -2
  529. package/lib/vef-table/hooks/use-table-columns.cjs +2 -2
  530. package/lib/vef-table/hooks/use-table-context.cjs +1 -1
  531. package/lib/vef-table/hooks/use-table-instance.cjs +2 -2
  532. package/lib/vef-table/hooks/use-table-summary.cjs +2 -2
  533. package/lib/vef-table/hooks/use-table-width.cjs +2 -2
  534. package/lib/vef-table/index.cjs +3 -3
  535. package/lib/vef-table/props.cjs +1 -1
  536. package/lib/vef-table/store.cjs +1 -1
  537. package/lib/vef-table/types.cjs +1 -1
  538. package/lib/vef-tabs/index.cjs +2 -2
  539. package/lib/vef-tabs/props.cjs +1 -1
  540. package/lib/vef-tag/index.cjs +2 -2
  541. package/lib/vef-tag/props.cjs +1 -1
  542. package/lib/vef-temporal-picker/helper.cjs +2 -2
  543. package/lib/vef-temporal-picker/hooks/use-dayjs-value.cjs +2 -2
  544. package/lib/vef-temporal-picker/hooks/use-temporal-limit.cjs +2 -2
  545. package/lib/vef-temporal-picker/hooks/use-temporal-picker-instance.cjs +2 -2
  546. package/lib/vef-temporal-picker/index.cjs +2 -2
  547. package/lib/vef-temporal-picker/props.cjs +1 -1
  548. package/lib/vef-temporal-range-picker/helper.cjs +2 -2
  549. package/lib/vef-temporal-range-picker/hooks/use-dayjs-values.cjs +2 -2
  550. package/lib/vef-temporal-range-picker/hooks/use-temporal-limit.cjs +2 -2
  551. package/lib/vef-temporal-range-picker/hooks/use-temporal-range-picker-instance.cjs +2 -2
  552. package/lib/vef-temporal-range-picker/index.cjs +2 -2
  553. package/lib/vef-temporal-range-picker/props.cjs +1 -1
  554. package/lib/vef-text/index.cjs +2 -2
  555. package/lib/vef-text/props.cjs +1 -1
  556. package/lib/vef-textarea/hooks/use-textarea-instance.cjs +2 -2
  557. package/lib/vef-textarea/index.cjs +2 -2
  558. package/lib/vef-textarea/props.cjs +1 -1
  559. package/lib/vef-title/index.cjs +2 -2
  560. package/lib/vef-title/props.cjs +1 -1
  561. package/lib/vef-tooltip/index.cjs +1 -1
  562. package/lib/vef-tooltip/props.cjs +1 -1
  563. package/lib/vef-tree-select/hooks/use-change-handler.cjs +2 -2
  564. package/lib/vef-tree-select/hooks/use-data-options.cjs +2 -2
  565. package/lib/vef-tree-select/hooks/use-tree-select-instance.cjs +2 -2
  566. package/lib/vef-tree-select/index.cjs +2 -2
  567. package/lib/vef-tree-select/props.cjs +1 -1
  568. package/lib/vef-virtual-grid/index.cjs +2 -2
  569. package/lib/vef-virtual-grid/props.cjs +1 -1
  570. package/lib/vef-virtual-list/index.cjs +2 -2
  571. package/lib/vef-virtual-list/props.cjs +1 -1
  572. package/package.json +4 -4
  573. package/types/vef-config-provider/hooks/use-ui-config.d.ts +0 -1
  574. package/types/vef-crud-page/components/crud-filter.d.ts +1 -1
  575. package/types/vef-crud-page/components/crud-footer.d.ts +1 -1
  576. package/types/vef-crud-page/components/crud-form-modal.d.ts +1 -1
  577. package/types/vef-crud-page/components/crud-header.d.ts +1 -1
@@ -1,4 +1,4 @@
1
- /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
2
  import{jsxs as r,jsx as e}from"@emotion/react/jsx-runtime";import{css as o}from"@emotion/react";import{Root as t,Viewport as l,Corner as i}from"@radix-ui/react-scroll-area";import{isNumber as a}from"@vef-framework/shared";import{forwardRef as s,useMemo as c}from"react";import h from"./components/scrollbar.js";const m=o`
3
3
  position: relative;
4
4
  overflow: hidden;
@@ -1,4 +1,4 @@
1
- /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
2
  import{jsxs as e,jsx as i}from"@emotion/react/jsx-runtime";import{css as r}from"@emotion/react";import{themeVariables as o}from"@vef-framework/shared";import{memo as t}from"react";import l from"../../vef-text/index.js";const s=r`
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -7,5 +7,5 @@ import{jsxs as e,jsx as i}from"@emotion/react/jsx-runtime";import{css as r}from"
7
7
  > .vef-typography-secondary {
8
8
  font-size: ${o.fontSizeSm};
9
9
  }
10
- `;const n=t((function({label:r,description:o}){return o?e("div",{css:s,children:[i(l,{ellipsis:!0,ellipsisTipPlacement:"right",children:r}),i(l,{ellipsis:!0,color:"secondary",ellipsisTipPlacement:"right",children:o})]}):i(l,{ellipsis:!0,ellipsisTipPlacement:"right",children:r})}));n.displayName="VefOption";export{n as default};
10
+ `;const n=t((function VefOption({label:r,description:o}){return o?e("div",{css:s,children:[i(l,{ellipsis:!0,ellipsisTipPlacement:"right",children:r}),i(l,{ellipsis:!0,color:"secondary",ellipsisTipPlacement:"right",children:o})]}):i(l,{ellipsis:!0,ellipsisTipPlacement:"right",children:r})}));n.displayName="VefOption";export{n as default};
11
11
  /*! 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{useComputedOptions as o}from"@vef-framework/hooks";import{isArray as e,isFunction as a,isNullish as i}from"@vef-framework/shared";import{useLayoutEffect as n}from"react";function r({value:r,grouped:t=!1,multiple:l=!1,onChange:s,...p}){const{onFilterKeywordChange:d,normalizedOptions:f,defaultOption:m,isLoading:u,fallbackOptions:c,isFallbackOptionsLoading:g}=o({...p,isGrouped:t,selectedOptionValues:e(r)?r:r?[r]:[]});return n((()=>{m&&a(s)&&i(r)&&s(l?[m.value]:m.value,l?[m]:m)}),[m,l,s,r]),{onFilterKeywordChange:d,normalizedOptions:f,isLoading:u,fallbackOptions:c,isFallbackOptionsLoading:g}}export{r as useDataOptions};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{useComputedOptions as o}from"@vef-framework/hooks";import{isArray as a,isFunction as e,isNullish as i}from"@vef-framework/shared";import{useLayoutEffect as n}from"react";function useDataOptions({value:t,grouped:r=!1,multiple:l=!1,onChange:s,...p}){const{onFilterKeywordChange:d,normalizedOptions:u,defaultOption:f,isLoading:m,fallbackOptions:O,isFallbackOptionsLoading:c}=o({...p,isGrouped:r,selectedOptionValues:a(t)?t:t?[t]:[]});return n((()=>{f&&e(s)&&i(t)&&s(l?[f.value]:f.value,l?[f]:f)}),[f,l,s,t]),{onFilterKeywordChange:d,normalizedOptions:u,isLoading:m,fallbackOptions:O,isFallbackOptionsLoading:c}}export{useDataOptions};
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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{useMemo as l}from"react";function e(e){return l((()=>e?{label:"label",value:"value",options:"children",groupLabel:"label"}:{label:"label",value:"value"}),[e])}export{e as useFieldNames};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{useMemo as e}from"react";function useFieldNames(l){return e((()=>l?{label:"label",value:"value",options:"children",groupLabel:"label"}:{label:"label",value:"value"}),[l])}export{useFieldNames};
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,10 +1,10 @@
1
- /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{jsx as i}from"@emotion/react/jsx-runtime";import{LoadingOutlined as r}from"@ant-design/icons";import{css as e}from"@emotion/react";import{useCallback as n}from"react";import t from"../../vef-spin/index.js";const o=e`
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as e}from"@emotion/react/jsx-runtime";import{LoadingOutlined as r}from"@ant-design/icons";import{css as i}from"@emotion/react";import{useCallback as n}from"react";import t from"../../vef-spin/index.js";const o=i`
3
3
  display: inline-flex;
4
4
  align-items: center;
5
5
 
6
6
  .vef-spin {
7
7
  color: inherit;
8
8
  }
9
- `;function m(e,m){return n((({label:n,value:s})=>{if(n)return n;if(e)return i("span",{css:o,children:i(t,{indicator:i(r,{}),size:"small"})});const l=m?.find((i=>i.value===s));return l?.label??s}),[e,m])}export{m as useRenderLabel};
9
+ `;function useRenderLabel(i,s){return n((({label:n,value:l})=>{if(n)return n;if(i)return e("span",{css:o,children:e(t,{indicator:e(r,{}),size:"small"})});const a=s?.find((e=>e.value===l));return a?.label??l}),[i,s])}export{useRenderLabel};
10
10
  /*! 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{jsx as o}from"@emotion/react/jsx-runtime";import{isFunction as r}from"@vef-framework/shared";import{useMemo as e}from"react";import t from"../components/option.js";function i(i){return e((()=>r(i)?({data:o},{index:r})=>i({...o,index:r}):({data:{label:r,description:e}})=>o(t,{description:e,label:r??"Missing Label"})),[i])}export{i as useRenderOption};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as e}from"@emotion/react/jsx-runtime";import{isFunction as o}from"@vef-framework/shared";import{useMemo as r}from"react";import t from"../components/option.js";function useRenderOption(i){return r((()=>o(i)?({data:e},{index:o})=>i({...e,index:o}):({data:{label:o,description:r}})=>e(t,{description:r,label:o??"Missing Label"})),[i])}export{useRenderOption};
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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{useRef as r,useImperativeHandle as t}from"react";function n(n,o){const u=r(null);return t(n,(()=>({blur:()=>{u.current?.blur()},focus:()=>{u.current?.focus({preventScroll:!0})},getDataOptions:()=>o}))),u}export{n as useSelectInstance};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{useRef as e,useImperativeHandle as t}from"react";function useSelectInstance(r,n){const c=e(null);return t(r,(()=>({blur:()=>{c.current?.blur()},focus:()=>{c.current?.focus({preventScroll:!0})},getDataOptions:()=>n}))),c}export{useSelectInstance};
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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{jsx as e}from"@emotion/react/jsx-runtime";import{useOptionFilter as o}from"@vef-framework/hooks";import{styles as r}from"@vef-framework/shared";import{Select as t}from"antd";import{memo as i,forwardRef as n}from"react";import"../internal/index.js";import l from"../vef-loading-placeholder/index.js";import{useDataOptions as a}from"./hooks/use-data-options.js";import{useFieldNames as s}from"./hooks/use-field-names.js";import{useRenderLabel as m}from"./hooks/use-render-label.js";import{useRenderOption as d}from"./hooks/use-render-option.js";import{useSelectInstance as p}from"./hooks/use-select-instance.js";import{convertBasicSizeToUiSize as f}from"../internal/utils.js";const u=e("div",{css:{height:140},children:e(l,{})});const c=i(n((function({defaultValue:i,value:n,size:l,clearable:c,disabled:h,placeholder:v,variant:g,onClear:C,onBlur:k,onFocus:b,onChange:j,onSelect:F,onDeselect:x,multiple:O=!1,grouped:w=!1,maxCount:S,renderOption:R,filterable:z=!0,filterFromRemote:V=!1,...y},B){const{onFilterKeywordChange:D,normalizedOptions:L,isLoading:N,fallbackOptions:A,isFallbackOptionsLoading:H}=a({value:n,grouped:w,multiple:O,onChange:j,filterable:z,filterFromRemote:V,...y}),K=d(R),T=o(z,V),W=s(w),q=m(H,A),E=p(B,L);return e(t,{ref:E,defaultActiveFirstOption:!0,allowClear:c,css:r.fullWidth,defaultValue:i,disabled:h,fieldNames:W,filterOption:T,labelRender:q,listHeight:280,loading:N,maxCount:O?S:void 0,maxTagCount:O?"responsive":void 0,mode:O?"multiple":void 0,notFoundContent:N?u:void 0,optionRender:K,options:L,placeholder:v,showSearch:z,size:f(l),value:n,variant:g,onBlur:k,onChange:j,onClear:C,onDeselect:x,onFocus:b,onSearch:D,onSelect:F})})));c.displayName="VefSelect";export{c as default};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as e}from"@emotion/react/jsx-runtime";import{useOptionFilter as o}from"@vef-framework/hooks";import{styles as r}from"@vef-framework/shared";import{Select as t}from"antd";import{memo as i,forwardRef as l}from"react";import"../internal/index.js";import n from"../vef-loading-placeholder/index.js";import{useDataOptions as a}from"./hooks/use-data-options.js";import{useFieldNames as s}from"./hooks/use-field-names.js";import{useRenderLabel as m}from"./hooks/use-render-label.js";import{useRenderOption as d}from"./hooks/use-render-option.js";import{useSelectInstance as f}from"./hooks/use-select-instance.js";import{convertBasicSizeToUiSize as p}from"../internal/utils.js";const u=e("div",{css:{height:140},children:e(n,{})});const c=i(l((function VefSelectBase({defaultValue:i,value:l,size:n,clearable:c,disabled:h,placeholder:v,variant:g,onClear:C,onBlur:k,onFocus:b,onChange:j,onSelect:F,onDeselect:x,multiple:O=!1,grouped:S=!1,maxCount:w,renderOption:R,filterable:V=!0,filterFromRemote:z=!1,...B},y){const{onFilterKeywordChange:D,normalizedOptions:L,isLoading:N,fallbackOptions:A,isFallbackOptionsLoading:H}=a({value:l,grouped:S,multiple:O,onChange:j,filterable:V,filterFromRemote:z,...B}),K=d(R),T=o(V,z),W=s(S),q=m(H,A),E=f(y,L);return e(t,{ref:E,defaultActiveFirstOption:!0,allowClear:c,css:r.fullWidth,defaultValue:i,disabled:h,fieldNames:W,filterOption:T,labelRender:q,listHeight:280,loading:N,maxCount:O?w:void 0,maxTagCount:O?"responsive":void 0,mode:O?"multiple":void 0,notFoundContent:N?u:void 0,optionRender:K,options:L,placeholder:v,showSearch:V,size:p(n),value:l,variant:g,onBlur:k,onChange:j,onClear:C,onDeselect:x,onFocus:b,onSearch:D,onSelect:F})})));c.displayName="VefSelect";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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{useRef as r,useImperativeHandle as u}from"react";function t(t){const c=r(null);return u(t,(()=>({blur:()=>c.current?.blur(),focus:()=>c.current?.focus()}))),c}export{t as useSliderInstance};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{useRef as r,useImperativeHandle as e}from"react";function useSliderInstance(n){const u=r(null);return e(n,(()=>({blur:()=>u.current?.blur(),focus:()=>u.current?.focus()}))),u}export{useSliderInstance};
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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
2
  import{jsx as t}from"@emotion/react/jsx-runtime";import{Slider as r}from"antd";import{forwardRef as e,useMemo as o}from"react";import{useSliderInstance as m}from"./hooks/use-slider-instance.js";const n=e((({step:e,tipFormatter:n,onChange:a,...i},s)=>{const p=o((()=>{if(n)return{formatter:t=>n(t)}}),[n]),f=m(s);return t(r,{ref:f,step:"mark"===e?null:e,tooltip:p,onChange:a,...i})}));n.displayName="VefSlider";export{n 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,7 +1,7 @@
1
- /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{jsx as e,jsxs as n,Fragment as o}from"@emotion/react/jsx-runtime";import{HolderOutlined as t}from"@ant-design/icons";import{css as r}from"@emotion/react";const s=e(t,{}),a=r`
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as e,jsxs as n,Fragment as t}from"@emotion/react/jsx-runtime";import{HolderOutlined as o}from"@ant-design/icons";import{css as r}from"@emotion/react";const a=e(o,{}),m=r`
3
3
  cursor: move;
4
4
  user-select: none;
5
5
  touch-action: none;
6
- `;function c({item:t,renderItem:r,useHandle:c,handleClassName:i,handleStyle:m,handleIcon:l}){return n(o,{children:[c&&e("div",{className:i,css:a,style:m,children:l??s}),r(t,!0)]})}export{c as default};
6
+ `;function VefOverlayItem({item:o,renderItem:r,useHandle:s,handleClassName:c,handleStyle:i,handleIcon:l}){return n(t,{children:[s&&e("div",{className:c,css:m,style:i,children:l??a}),r(o,!0)]})}export{VefOverlayItem as default};
7
7
  /*! 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
- /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{jsx as e,jsxs as t}from"@emotion/react/jsx-runtime";import{HolderOutlined as i}from"@ant-design/icons";import{useSortable as r}from"@dnd-kit/sortable";import{CSS as n}from"@dnd-kit/utilities";import{css as s}from"@emotion/react";const o=e(i,{}),a=s`
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as e,jsxs as t}from"@emotion/react/jsx-runtime";import{HolderOutlined as i}from"@ant-design/icons";import{useSortable as r}from"@dnd-kit/sortable";import{CSS as n}from"@dnd-kit/utilities";import{css as o}from"@emotion/react";const s=e(i,{}),a=o`
3
3
  cursor: move;
4
4
  user-select: none;
5
5
  touch-action: none;
6
- `;function m({item:i,itemKey:s,itemIndex:m,itemClassName:d,itemStyle:l,renderItem:c,useHandle:f,useOverlay:u,handleClassName:p,handleStyle:h,handleIcon:v,disabled:y}){const{isDragging:N,attributes:g,listeners:x,setNodeRef:b,setActivatorNodeRef:I,transition:S,transform:k}=r({id:s,disabled:y,data:{index:m}}),C={...l,transition:S,transform:n.Transform.toString(k),...!u&&N?{position:"relative",zIndex:999}:{}};return t("div",{ref:b,className:d,style:C,...g,...f?{}:x,children:[f&&e("div",{ref:I,className:p,css:a,style:h,...x,children:v??o}),c(i,!1)]})}export{m as default};
6
+ `;function VefSortableItem({item:i,itemKey:o,itemIndex:m,itemClassName:d,itemStyle:l,renderItem:c,useHandle:f,useOverlay:u,handleClassName:p,handleStyle:b,handleIcon:h,disabled:v}){const{isDragging:y,attributes:I,listeners:N,setNodeRef:g,setActivatorNodeRef:x,transition:S,transform:k}=r({id:o,disabled:v,data:{index:m}}),C={...l,transition:S,transform:n.Transform.toString(k),...!u&&y?{position:"relative",zIndex:999}:{}};return t("div",{ref:g,className:d,style:C,...I,...f?{}:N,children:[f&&e("div",{ref:x,className:p,css:a,style:b,...N,children:h??s}),c(i,!1)]})}export{VefSortableItem as default};
7
7
  /*! 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{isNullish as r}from"@vef-framework/shared";import{useState as e,useCallback as o}from"react";function t(t,f,m){if(r(t)&&r(f))throw new Error("At least one of `defaultItems` and `items` must be provided for VefSortableList component.");const[n,a]=e(t??[]);return[f??n,o((r=>{f?m?.(r(f)):a(r)}),[f,m])]}export{t as useMergedItems};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{isNullish as e}from"@vef-framework/shared";import{useState as r,useCallback as t}from"react";function useMergedItems(o,m,s){if(e(o)&&e(m))throw new Error("At least one of `defaultItems` and `items` must be provided for VefSortableList component.");const[f,n]=r(o??[]);return[m??f,t((e=>{m?s?.(e(m)):n(e)}),[m,s])]}export{useMergedItems};
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.63, build time: 2025-01-09T12:00:00.992Z, 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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, 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 a,closestCenter as m,DragOverlay as s}from"@dnd-kit/core";import{restrictToParentElement as n,restrictToWindowEdges as d}from"@dnd-kit/modifiers";import{arrayMove as l,SortableContext as c,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 b from"./components/sortable-item.js";import{useMergedItems as k}from"./hooks/use-merged-items.js";const N=g((function VefSortableListBase({defaultItems:g,items:N,itemKey:S="id",className:j,style:D,orientation:w="vertical",useOverlay:C=!0,restrictStrategy:E="parent",onChange:I,...K}){const[L,V]=k(g,N,I),B=r(i(o)),O=y((()=>u(S)?S:e=>e[S]),[S]),[q,z]=v(),A=h((({active:e})=>{z(L[e.data.current.index])}),[L]),F=h((({active:e,over:t})=>{t&&e.id!==t.id&&V((r=>l(r,e.data.current.index,t.data.current.index)))}),[V]),G=L.map((e=>O(e))),{itemClassName:H,itemStyle:J,disabled:M,...P}=K;return e(a,{collisionDetection:m,sensors:B,modifiers:["parent"===E?n:d],onDragEnd:F,onDragStart:A,children:e(c,{items:G,strategy:"vertical"===w?p:f,children:t("div",{className:j,style:D,children:[L.map(((t,r)=>{const i=O(t);return e(b,{item:t,itemIndex:r,itemKey:i,...K},i)})),C&&e(s,{className:H,style:J,wrapperElement:"div",modifiers:["parent"===E?n:d],children:q&&e(x,{item:q,...P})})]})})})}));N.displayName="VefSortableList";export{N 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
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";function f({gap:f,...a}){const i=o(),p=e((()=>m(f)?f.map((r=>i(r))):f?i(f):f),[f,i]);return r(t,{size:p,...a})}export{f as default};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as r}from"@emotion/react/jsx-runtime";import{useGapSizeNormalizer as o}from"@vef-framework/hooks";import{isArray as e}from"@vef-framework/shared";import{Space as m}from"antd";import{useMemo as t}from"react";function VefSpace({gap:f,...a}){const p=o(),i=t((()=>e(f)?f.map((r=>p(r))):f?p(f):f),[f,p]);return r(m,{size:i,...a})}export{VefSpace 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{jsx as t}from"@emotion/react/jsx-runtime";import{Spin as e}from"antd";function r({size:r,...i}){return t(e,{size:"medium"===r?"default":r,...i})}export{r as default};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as e}from"@emotion/react/jsx-runtime";import{Spin as t}from"antd";function VefSpin({size:i,...r}){return e(t,{size:"medium"===i?"default":i,...r})}export{VefSpin 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{jsx as t}from"@emotion/react/jsx-runtime";import{Splitter as o}from"antd";function e({orientation:e,onResizeBegin:n,...r}){return t(o,{layout:e,onResizeStart:n,...r})}export{e as default};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as t}from"@emotion/react/jsx-runtime";import{Splitter as e}from"antd";function VefSplitter({orientation:o,onResizeBegin:r,...i}){return t(e,{layout:o,onResizeStart:r,...i})}export{VefSplitter 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{jsx as t}from"@emotion/react/jsx-runtime";import{Splitter as o}from"antd";const{Panel:r}=o;function n({...o}){return t(r,{...o})}export{n as default};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as t}from"@emotion/react/jsx-runtime";import{Splitter as e}from"antd";const{Panel:r}=e;function VefSplitterPanel({...e}){return t(r,{...e})}export{VefSplitterPanel 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
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";function a({processing:a=!1,color:f="default",children:n}){const u=o(),i=e((()=>{if("default"===f)return{status:"default",text:n};if(u.has(f))return{status:a?"processing":"default",color:u.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,u,a,n]);return t(r,{...i})}export{a as default};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
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";function VefStatus({processing:a=!1,color:f="default",children:u}){const n=o(),s=e((()=>{if("default"===f)return{status:"default",text:u};if(n.has(f))return{status:a?"processing":"default",color:n.get(f),text:u};throw new Error(`Invalid color value "${f}" of VefStatus component. Color must be either "default" or a valid color token.`)}),[f,n,a,u]);return t(r,{...s})}export{VefStatus 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.63, build time: 2025-01-09T12:00:00.992Z, 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,isDeepEqual 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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as o}from"@emotion/react/jsx-runtime";import{css as e}from"@emotion/react";import{VefError as t,isString as r,isNullish as a,isDeepEqual 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 Bool({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 e({maxWidth:`${V}px !important`})}),[V]);return o(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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{jsx as e}from"@emotion/react/jsx-runtime";function r({value:r}){return e("span",{children:r})}export{r as default};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as e}from"@emotion/react/jsx-runtime";function Code({value:o}){return e("span",{children:o})}export{Code 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.63, build time: 2025-01-09T12:00:00.992Z, 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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as o}from"@emotion/react/jsx-runtime";import{css as t}from"@emotion/react";import{VefError as e,isString as a,isNullish as r}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 DataDictionary({value:n,record:u,rowIndex:s,columnProps:d}){if("DataDictionary"!==d.type)throw new e(-1,"Column type must be DataDictionary");const{name:f,defaultValue:p,ellipsis:w,bold:y,italic:D,color:h,width:x}=d,[V,b,k]=m([{key:"bold",rawValue:y,defaultValue:!1},{key:"italic",rawValue:D,defaultValue:!1},{key:"color",rawValue:h}],n,u,s),v=i((()=>a(k)?k:k?!r(n)&&Object.hasOwn(k,n)?k[n]:k["*"]:void 0),[k,n]),$=i((()=>r(n)||r(u[`${f}${c}`])?p:u[`${f}${c}`]),[n,u,f,p]),j=i((()=>{if(x)return t({maxWidth:`${x}px !important`})}),[x]);return o(l,{bold:V,color:v,css:j,ellipsis:w,italic:b,children:$})}export{DataDictionary 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.63, build time: 2025-01-09T12:00:00.992Z, 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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, 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 u="Name",c=o({color:"inherit",fontSize:"inherit"});function Enum({value:s,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,$,E]=n([{key:"bold",rawValue:b,defaultValue:!1},{key:"italic",rawValue:v,defaultValue:!1},{key:"color",rawValue:j}],s,d,f),g=l((()=>t(E)?E:E?!i(s)&&Object.hasOwn(E,s)?E[s]:E["*"]:void 0),[E,s]),O=l((()=>i(s)||i(d[`${h}${u}`])?w:d[`${h}${u}`]),[s,d,h,w]),z=l((()=>{if(k)return o({maxWidth:`${k}px !important`})}),[k]);return x?e(a,{color:g,children:e(m,{bold:y,css:c,italic:$,children:O})}):e(m,{bold:y,color:g,css:z,ellipsis:V,italic:$,children:O})}export{Enum 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{jsx as e}from"@emotion/react/jsx-runtime";function r({value:r}){return e("span",{children:r})}export{r as default};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as e}from"@emotion/react/jsx-runtime";function File({value:r}){return e("span",{children:r})}export{File 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{jsx as e}from"@emotion/react/jsx-runtime";function r({value:r}){return e("span",{children:r})}export{r as default};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as n}from"@emotion/react/jsx-runtime";function Icon({value:e}){return n("span",{children:e})}export{Icon 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
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 Id({value:u,record:d,rowIndex:c,columnProps:n}){if("Id"!==n.type)throw new r(-1,"Column type must be Id");const{name:s,defaultValue:f,ellipsis:p,bold:w,italic:x,color:h,width:I}=n,[V,k,y]=i([{key:"bold",rawValue:w,defaultValue:!1},{key:"italic",rawValue:x,defaultValue:!1},{key:"color",rawValue:h}],u,d,c),b=a((()=>{const e=s.replace(m,"Name");return t(u)||t(d[e])?f:d[e]}),[u,d,s,f]),v=a((()=>{if(I)return o({maxWidth:`${I}px !important`})}),[I]);return e(l,{bold:V,color:y,css:v,ellipsis:p,italic:k,children:b})}export{Id 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as r}from"@emotion/react/jsx-runtime";import{extractBaseName as e}from"@vef-framework/shared";function Image({value:m}){return r("img",{alt:e(m),src:m})}export{Image 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{jsx as e}from"@emotion/react/jsx-runtime";function r({value:r}){return e("span",{children:r})}export{r as default};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as r}from"@emotion/react/jsx-runtime";function Markdown({value:n}){return r("span",{children:n})}export{Markdown 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
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 u}from"react";import a from"../../../vef-text/index.js";import{useComputedValues as l}from"../../hooks/use-computed-values.js";import{useDisplayValue as m}from"../../hooks/use-display-value.js";function NumberColumn({value:i,record:f,rowIndex:s,columnProps:n}){if("Number"!==n.type)throw new o(-1,"Column type must be Number");const{defaultValue:d,formatter:p,prefix:c,suffix:x,bold:b,italic:w,color:h,width:V}=n,k=m(i,f,s,{defaultValue:d,formatter:p,prefix:c,suffix:x}),[y,v,j]=l([{key:"bold",rawValue:b,defaultValue:!1},{key:"italic",rawValue:w,defaultValue:!1},{key:"color",rawValue:h}],i,f,s),N=u((()=>{if(V)return r({maxWidth:`${V}px !important`})}),[V]);return t(k)?null:e(a,{bold:y,color:j,css:N,italic:v,children:k})}export{NumberColumn 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
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 Render({value:n,record:m,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?.(n,m,i),c=o((()=>{if(f)return e({maxWidth:`${f}px !important`})}),[f]);return r("div",{css:c,children:p})}export{Render 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{jsx as e}from"@emotion/react/jsx-runtime";function r({value:r}){return e("span",{children:r})}export{r as default};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as e}from"@emotion/react/jsx-runtime";function RichText({value:t}){return e("span",{children:t})}export{RichText 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
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 Text({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,T,j]=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:j,copyable:b,css:I,ellipsis:w,ellipsisTip:w?C:void 0,italic:T,children:C})}export{Text 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, 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
- `;const x=c((function(){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};
53
+ `;const C=c((function VefColumnsSettingsBase(){const{defaultColumnConfigMap:o,columnConfigMap:r,setColumnConfigMap:c}=h((e=>{const{defaultColumnConfigMap:n,columnConfigMap:t,setColumnConfigMap:i}=e;return{defaultColumnConfigMap:n,columnConfigMap:t,setColumnConfigMap:i}})),C=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]),x=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((()=>C.filter((e=>e.show)).map((e=>e.value))),[C]),k=d((()=>{const e=y.length;return e===C.length?"checked":e>0?"indeterminate":"unchecked"}),[y.length,C.length]),w=m((e=>{const n=new Set(e),t=C.map((e=>({...e,show:n.has(e.value)})));x(t)}),[C,x]),M=m(((e,n)=>{const t=C.map((t=>({...t,fixed:t.value===e?n:t.fixed})));x(t)}),[C,x]),j=m((e=>{x(e)}),[x]),$=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?C.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:C,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));C.displayName="VefColumnsSettings";export{C 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, 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,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};
11
+ `;function VefOperationButtons({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),[O,B]=a(!1),K=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]),[R,q]=a(!1),[z,I]=a(null),M=s((()=>{q(!1),I(null)}),[]),T=c((()=>{if(0!==K.length)return async e=>{const{requireConfirmation:n,confirmationMode:o,confirmationTitle:t,confirmationContent:i,onClick:c}=F.find((n=>n.key===e)),okHandler=async()=>{try{await r(c,{beforeInvoke:()=>{B(!0)},onFinally:()=>{B(!1)}},w)}finally{M()}};n?"simple"===o?(I({title:t,content:i,okHandler:okHandler}),q(!0)):l(t,i,okHandler,{onCancel:()=>{I(null)}}):await okHandler()}}),[F,w,M,K.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||O,icon:i,size:"small",variant:"filled",onConfirmationOk:()=>f(w),children:t}:{color:r,disabled:l||O,icon:i,size:"small",variant:"filled",onClick:e=>(e.stopPropagation(),f(w)),children:t},o)})),F.length>k&&n(m,{disabled:O,items:K,onClick:T,children:n(p,{content:z?.content,disabled:O,opened:R,title:z?.title,onCancel:M,onOk:z?.okHandler,children:n(d,{color:"primary",disabled:O,icon:n(o,{}),loading:O,size:"small",variant:"filled",onClick:e=>e.stopPropagation()})})})]})}export{VefOperationButtons 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.63, build time: 2025-01-09T12:00:00.992Z, 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 n=r`
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, 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 n}from"../hooks/use-table-context.js";const c=r`
3
3
  color: ${t.colorPrimary};
4
- `;const a=m((function(){const r=c((o=>o.columnConfigMapHasChanged));return o(i,{css:r?n:void 0,children:o(e,{})})}),(()=>!1));export{a as default};
4
+ `;const s=m((function VefSettingsIconBase(){const r=n((o=>o.columnConfigMapHasChanged));return o(i,{css:r?c:void 0,children:o(e,{})})}),(()=>!1));export{s 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, 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;
@@ -15,5 +15,5 @@ import{jsxs as o,jsx as e}from"@emotion/react/jsx-runtime";import{css as i}from"
15
15
  > .vef-pagination {
16
16
  flex: none;
17
17
  }
18
- `;const s=a((function({selectionSummary:i,size:t,paginationProps:a,batchActionButtons:s,batchActionButtonContext:p}){const u=d((o=>o.selectedRecords)),b=r((()=>{if(!1!==i)return i?i(u):u.length>0?o(m,{color:"secondary",children:["已选择"," ",e(m,{bold:!0,color:"blue",children:u.length})," ","项"]}):void 0}),[i,u]),v=r((()=>s.map((o=>{const{key:i,label:t,icon:r,disabled:a,color:c,requireConfirmation:m,confirmationMode:d,confirmationTitle:f,confirmationContent:s,onClick:u}=o,b=async()=>{await n(u,{},p)};return e(l,m?{requireConfirmation:!0,color:c,confirmationContent:s,confirmationMode:d,confirmationTitle:f,disabled:a,icon:r,onConfirmationOk:b,children:t}:{color:c,disabled:a,icon:r,onClick:b,children:t},i)}))),[s,p]),g=r((()=>({"--vef-table-footer-gap":`var(--vef-table-cell-padding-block${"small"===t?"-sm":"medium"===t?"-md":""})`})),[t]);return o("div",{css:f,style:g,children:[o("div",{children:[b,v]}),e(c,{...a})]})}));s.displayName="VefTableFooter";export{s as default};
18
+ `;const s=a((function VefTableFooterBase({selectionSummary:i,size:t,paginationProps:a,batchActionButtons:s,batchActionButtonContext:p}){const b=d((o=>o.selectedRecords)),u=r((()=>{if(!1!==i)return i?i(b):b.length>0?o(m,{color:"secondary",children:["已选择"," ",e(m,{bold:!0,color:"blue",children:b.length})," ","项"]}):void 0}),[i,b]),v=r((()=>s.map((o=>{const{key:i,label:t,icon:r,disabled:a,color:c,requireConfirmation:m,confirmationMode:d,confirmationTitle:f,confirmationContent:s,onClick:b}=o,wrappedOnClick=async()=>{await n(b,{},p)};return e(l,m?{requireConfirmation:!0,color:c,confirmationContent:s,confirmationMode:d,confirmationTitle:f,disabled:a,icon:r,onConfirmationOk:wrappedOnClick,children:t}:{color:c,disabled:a,icon:r,onClick:wrappedOnClick,children:t},i)}))),[s,p]),g=r((()=>({"--vef-table-footer-gap":`var(--vef-table-cell-padding-block${"small"===t?"-sm":"medium"===t?"-md":""})`})),[t]);return o("div",{css:f,style:g,children:[o("div",{children:[u,v]}),e(c,{...a})]})}));s.displayName="VefTableFooter";export{s as default};
19
19
  /*! 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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{isFunction as r,isExpression as e,compileDynamicFn as o}from"@vef-framework/shared";function computeValue(u,t,n,f,a){if(r(u))return u(t,n,f);if(e(u)){return o(u,"value","record","rowIndex",`return ${u.expression}`)(t,n,f)}return u??a}export{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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{useComputedActionButtons as t}from"@vef-framework/hooks";import{useMemo as e}from"react";function useComputedBatchActionButtons(o,c){const{externalContext:n,isFetching:s,refetch:r,selectedKeys:i,selectedRecords:u}=c,d=e((()=>({isFetching:s,refetch:r,selectedKeys:i,selectedRecords:u,...n??{}})),[n,s,r,i,u]);return{computedBatchActionButtons:t(o,d),batchActionButtonContext:d}}export{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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{useMemo as e}from"react";function useComputedColumns(o,r){return e((()=>o.map((e=>{const{name:o}=e,t=r.get(o);return{...e,show:t.show,fixed:t.fixed}})).sort(((e,o)=>r.get(e.name).order-r.get(o.name).order))),[o,r])}export{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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{useDeepMemo 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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{useDeepMemo as e}from"@vef-framework/hooks";import{computeValue as r}from"../helper.js";function useComputedValues(u,o,t,a,m=!1){const s=e((()=>u.reduce(((e,u)=>{const{key:m,rawValue:s,defaultValue:p}=u,f=r(s,o,t,a,p);return e[m]=f,e}),{})),[t,a,o,u]);return m?u.reduce(((e,{key:r})=>(e[r]=s[r],e)),{}):u.map((({key:e})=>s[e]))}export{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,3 +1,3 @@
1
- /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:00.992Z, 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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{useDataQuery as a}from"@vef-framework/hooks";import{isNumber as e,isArray as t}from"@vef-framework/shared";function useData({apiParams:i,...r},o,s){const{data:n,isLoading:f,isFetching:h,isSuccess:d,refetch:m}=a({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(!e(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{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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{useMemo as e}from"react";function useDefaultColumnConfigs(o){return e((()=>{const e=new Map;let t=1;for(const n of o){const{name:o,title:r,fixed:f,configurable:u}=n;e.set(o,{title:r??o,show:!0,fixed:f,order:t++,configurable:u??!0})}return e}),[o])}export{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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{isNullish as r,isFunction as e,isExpression as t,compileDynamicFn as u}from"@vef-framework/shared";import{useMemo as o}from"react";function useDisplayValue(f,a,i,n){const{defaultValue:s,formatter:l,prefix:p,suffix:m}=n,d=r(f)?s:f;return o((()=>{if(e(l))return l(f,a,i);if(t(l)){return u(l,"value","record","rowIndex",`return ${l.expression}`)(f,a,i)}return r(d)?void 0:`${p??""}${d}${m??""}`}),[l,d,p,m,f,a,i])}export{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,3 +1,3 @@
1
- /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
2
- import{jsx as o}from"@emotion/react/jsx-runtime";import{useAuthorizedItems as t}from"@vef-framework/hooks";import{isDeepEqual 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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{jsx as o}from"@emotion/react/jsx-runtime";import{useAuthorizedItems as e}from"@vef-framework/hooks";import{isDeepEqual as t}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 useHelperColumns({showRowNumber:p,operationButtons:u,maxVisibleOperationButtons:l,size:f}){const a=r((()=>{if(p)return{key:"_rowNumber",title:"#",align:"center",fixed:"left",width:48,shouldCellUpdate:()=>!1,render:(o,e,t)=>t+1}}),[p]),d=e(u??[]),c=s(d,l??3,f);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,e)=>!t(o,e),render:(e,t,r)=>o(i,{maxVisibleOperationButtons:l??3,operationButtons:d,record:t,rowIndex:r})}}),[d,l,c])}}export{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,3 +1,3 @@
1
- /*! VefFramework version: 1.0.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{useThemeTokens as t}from"@vef-framework/hooks";import{max as e}from"@vef-framework/shared";import{useMemo as r}from"react";function useOperationColumnWidth(n,o,u="medium"){const{Button:a}=t(),l="large"===u?16:8,c=a?.contentFontSizeSM??16;return r((()=>{if(0===n.length)return 0;if(n.length>o){const t=new Set;for(let r=0;r<o;r++){const r=e(n,(e=>t.has(e)?0:e.label.length));r&&t.add(r)}return calculateButtonsWidth(Array.from(t),c,l,!0)}return calculateButtonsWidth(n,c,l,!1)}),[l,c,o,n])}function calculateButtonsWidth(t,e,r,n){const o=e+4;return t.map((t=>{const e=t.label.length*o+8;return t.icon?e+o+8:e})).reduce(((t,e)=>t+e),0)+(n?o+8:0)+2*r}export{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.63, build time: 2025-01-09T12:00:00.992Z, made by Venus. */
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};
1
+ /*! VefFramework version: 1.0.65, build time: 2025-01-10T02:44:47.916Z, made by Venus. */
2
+ import{useState as e,useMemo as a}from"react";import{defaultPageSizeOptions as i}from"../../vef-pagination/props.js";function usePaginationProps(n,r){const[o,p]=e({page:1,size:i[2]}),s=a((()=>{if(n)return(e,a)=>{p({page:e,size:a})}}),[n,p]);return{paginationProps:a((()=>{if(n)return{pageNumber:o.page,pageSize:o.size,size:"small"===r?"small":"medium",onChange:s}}),[s,n,o.page,o.size,r]),paginationParams:o}}export{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 */