@vef-framework-react/components 2.10.0 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/dist/cjs/code-editor/completions.cjs +1 -0
  2. package/dist/cjs/code-editor/format.cjs +3 -0
  3. package/dist/cjs/code-editor/index.cjs +1 -1
  4. package/dist/cjs/crud/components/scene-form.cjs +1 -1
  5. package/dist/cjs/crud/index.cjs +1 -1
  6. package/dist/cjs/editable-table/index.cjs +1 -1
  7. package/dist/cjs/file-preview/index.cjs +1 -0
  8. package/dist/cjs/file-upload/helpers.cjs +1 -0
  9. package/dist/cjs/file-upload/index.cjs +1 -1
  10. package/dist/cjs/flex-tabs/index.cjs +1 -0
  11. package/dist/cjs/flex-tabs/styles.cjs +1 -0
  12. package/dist/cjs/form/fields/upload/index.cjs +1 -1
  13. package/dist/cjs/form-drawer/index.cjs +1 -1
  14. package/dist/cjs/form-modal/index.cjs +1 -1
  15. package/dist/cjs/index.cjs +1 -1
  16. package/dist/cjs/labeled/index.cjs +1 -0
  17. package/dist/cjs/labels/index.cjs +1 -0
  18. package/dist/cjs/upload/helpers.cjs +1 -0
  19. package/dist/cjs/upload/index.cjs +1 -1
  20. package/dist/es/_base/constants/breakpoints.js +1 -1
  21. package/dist/es/_base/constants/common.js +1 -1
  22. package/dist/es/_base/constants/css-vars.js +1 -1
  23. package/dist/es/_base/constants/event.js +1 -1
  24. package/dist/es/_base/constants/index.js +1 -1
  25. package/dist/es/_base/constants/symbols.js +1 -1
  26. package/dist/es/_base/constants/theme.js +1 -1
  27. package/dist/es/_base/globals.js +1 -1
  28. package/dist/es/_base/helpers/breakpoints.js +1 -1
  29. package/dist/es/_base/helpers/color.js +1 -1
  30. package/dist/es/_base/helpers/common.js +1 -1
  31. package/dist/es/_base/helpers/event.js +1 -1
  32. package/dist/es/_base/helpers/index.js +1 -1
  33. package/dist/es/_base/helpers/message.js +1 -1
  34. package/dist/es/_base/helpers/modal.js +1 -1
  35. package/dist/es/_base/helpers/notification.js +1 -1
  36. package/dist/es/_base/helpers/props.js +1 -1
  37. package/dist/es/_base/helpers/react.js +1 -1
  38. package/dist/es/_base/hooks/index.js +1 -1
  39. package/dist/es/_base/hooks/use-theme-tokens.js +1 -1
  40. package/dist/es/_base/index.js +1 -1
  41. package/dist/es/_base/styles/common.js +1 -1
  42. package/dist/es/_base/styles/index.js +1 -1
  43. package/dist/es/_base/types/breakpoints.js +1 -1
  44. package/dist/es/_base/types/common.js +1 -1
  45. package/dist/es/_base/types/index.js +1 -1
  46. package/dist/es/action-button/index.js +1 -1
  47. package/dist/es/action-button/use-action-button.js +1 -1
  48. package/dist/es/action-group/index.js +1 -1
  49. package/dist/es/action-group/use-action-group.js +1 -1
  50. package/dist/es/action-group/use-computed-action-buttons.js +1 -1
  51. package/dist/es/affix/index.js +1 -1
  52. package/dist/es/alert/index.js +1 -1
  53. package/dist/es/anchor/index.js +1 -1
  54. package/dist/es/auto-complete/index.js +1 -1
  55. package/dist/es/avatar/index.js +1 -1
  56. package/dist/es/badge/index.js +1 -1
  57. package/dist/es/bool/index.js +1 -1
  58. package/dist/es/border-beam/index.js +1 -1
  59. package/dist/es/breadcrumb/index.js +1 -1
  60. package/dist/es/button/index.js +1 -1
  61. package/dist/es/calendar/index.js +1 -1
  62. package/dist/es/card/index.js +1 -1
  63. package/dist/es/carousel/index.js +1 -1
  64. package/dist/es/cascader/index.js +1 -1
  65. package/dist/es/center/index.js +1 -1
  66. package/dist/es/charts/chart.js +1 -1
  67. package/dist/es/charts/helpers/group.js +1 -1
  68. package/dist/es/charts/helpers/index.js +1 -1
  69. package/dist/es/charts/hooks/index.js +1 -1
  70. package/dist/es/charts/hooks/use-chart.js +1 -1
  71. package/dist/es/charts/index.js +1 -1
  72. package/dist/es/charts/themes/index.js +1 -1
  73. package/dist/es/charts/themes/walden-dark.js +1 -1
  74. package/dist/es/charts/themes/walden.js +1 -1
  75. package/dist/es/charts/themes/wonderland-dark.js +1 -1
  76. package/dist/es/charts/themes/wonderland.js +1 -1
  77. package/dist/es/checkbox/index.js +1 -1
  78. package/dist/es/code-editor/completions.js +51 -0
  79. package/dist/es/code-editor/format.js +26 -0
  80. package/dist/es/code-editor/index.js +193 -117
  81. package/dist/es/code-highlighter/index.js +1 -1
  82. package/dist/es/col/index.js +1 -1
  83. package/dist/es/collapse/index.js +1 -1
  84. package/dist/es/color-picker/index.js +1 -1
  85. package/dist/es/compact/index.js +1 -1
  86. package/dist/es/config-provider/app.js +1 -1
  87. package/dist/es/config-provider/constants.js +1 -1
  88. package/dist/es/config-provider/context-holder.js +1 -1
  89. package/dist/es/config-provider/css-vars.js +1 -1
  90. package/dist/es/config-provider/dark-mode-context.js +1 -1
  91. package/dist/es/config-provider/error-fallback.js +1 -1
  92. package/dist/es/config-provider/global-style.js +1 -1
  93. package/dist/es/config-provider/index.js +1 -1
  94. package/dist/es/config-provider/theme-config.js +1 -1
  95. package/dist/es/config-provider/use-config-provider.js +1 -1
  96. package/dist/es/crud/components/action-button-group.js +1 -1
  97. package/dist/es/crud/components/index.js +1 -1
  98. package/dist/es/crud/components/main.js +1 -1
  99. package/dist/es/crud/components/mutation-holder.js +1 -1
  100. package/dist/es/crud/components/operation-button-group.js +1 -1
  101. package/dist/es/crud/components/scene-form.js +23 -22
  102. package/dist/es/crud/components/selection-indicator.js +1 -1
  103. package/dist/es/crud/components/toolbar-actions.js +1 -1
  104. package/dist/es/crud/components/toolbar.js +1 -1
  105. package/dist/es/crud/event.js +1 -1
  106. package/dist/es/crud/helpers.js +1 -1
  107. package/dist/es/crud/hooks/index.js +1 -1
  108. package/dist/es/crud/hooks/use-query-observer.js +1 -1
  109. package/dist/es/crud/hooks/use-search-values.js +1 -1
  110. package/dist/es/crud/hooks/use-selected-rows.js +1 -1
  111. package/dist/es/crud/index.js +17 -16
  112. package/dist/es/crud/store.js +1 -1
  113. package/dist/es/crud/styles.js +1 -1
  114. package/dist/es/crud-page/index.js +1 -1
  115. package/dist/es/date-picker/index.js +1 -1
  116. package/dist/es/descriptions/index.js +1 -1
  117. package/dist/es/divider/index.js +1 -1
  118. package/dist/es/drawer/index.js +1 -1
  119. package/dist/es/dropdown/index.js +1 -1
  120. package/dist/es/dynamic-icon/index.js +1 -1
  121. package/dist/es/dynamic-icon/load-icon-node.js +1 -1
  122. package/dist/es/dynamic-icon/placeholder-icon.js +1 -1
  123. package/dist/es/dynamic-icon/unknown-icon.js +1 -1
  124. package/dist/es/editable-table/components/add-row-button.js +1 -1
  125. package/dist/es/editable-table/components/editable-cell.js +1 -1
  126. package/dist/es/editable-table/components/editable-row-actions.js +1 -1
  127. package/dist/es/editable-table/components/index.js +1 -1
  128. package/dist/es/editable-table/helpers.js +1 -1
  129. package/dist/es/editable-table/hooks/index.js +1 -1
  130. package/dist/es/editable-table/hooks/use-editable-actions.js +1 -1
  131. package/dist/es/editable-table/hooks/use-editable-columns.js +1 -1
  132. package/dist/es/editable-table/index.js +28 -26
  133. package/dist/es/editable-table/store.js +1 -1
  134. package/dist/es/empty/empty.js +1 -1
  135. package/dist/es/empty/index.js +1 -1
  136. package/dist/es/file-preview/index.js +17 -0
  137. package/dist/es/file-upload/helpers.js +8 -0
  138. package/dist/es/file-upload/index.js +13 -16
  139. package/dist/es/flex/index.js +1 -1
  140. package/dist/es/flex-card/index.js +1 -1
  141. package/dist/es/flex-card/styles.js +1 -1
  142. package/dist/es/flex-tabs/index.js +13 -0
  143. package/dist/es/flex-tabs/styles.js +16 -0
  144. package/dist/es/flip-text/index.js +1 -1
  145. package/dist/es/float-button/index.js +1 -1
  146. package/dist/es/form/components/form.js +1 -1
  147. package/dist/es/form/components/index.js +1 -1
  148. package/dist/es/form/components/reset-button.js +1 -1
  149. package/dist/es/form/components/submit-button.js +1 -1
  150. package/dist/es/form/contexts/form-context.js +1 -1
  151. package/dist/es/form/contexts/form-layout.js +1 -1
  152. package/dist/es/form/contexts/index.js +1 -1
  153. package/dist/es/form/fields/auto-complete/index.js +1 -1
  154. package/dist/es/form/fields/bool/index.js +1 -1
  155. package/dist/es/form/fields/cascader/index.js +1 -1
  156. package/dist/es/form/fields/checkbox/index.js +1 -1
  157. package/dist/es/form/fields/code-editor/index.js +1 -1
  158. package/dist/es/form/fields/color-picker/index.js +1 -1
  159. package/dist/es/form/fields/date-picker/index.js +1 -1
  160. package/dist/es/form/fields/date-range-picker/index.js +1 -1
  161. package/dist/es/form/fields/icon-picker/index.js +1 -1
  162. package/dist/es/form/fields/index.js +1 -1
  163. package/dist/es/form/fields/input/index.js +1 -1
  164. package/dist/es/form/fields/input-number/index.js +1 -1
  165. package/dist/es/form/fields/mentions/index.js +1 -1
  166. package/dist/es/form/fields/password/index.js +1 -1
  167. package/dist/es/form/fields/radio/index.js +1 -1
  168. package/dist/es/form/fields/rate/index.js +1 -1
  169. package/dist/es/form/fields/select/index.js +1 -1
  170. package/dist/es/form/fields/slider/index.js +1 -1
  171. package/dist/es/form/fields/textarea/index.js +1 -1
  172. package/dist/es/form/fields/time-picker/index.js +1 -1
  173. package/dist/es/form/fields/time-range-picker/index.js +1 -1
  174. package/dist/es/form/fields/transfer/index.js +1 -1
  175. package/dist/es/form/fields/tree-select/index.js +1 -1
  176. package/dist/es/form/fields/upload/index.js +52 -31
  177. package/dist/es/form/form-actions.js +1 -1
  178. package/dist/es/form/form.js +1 -1
  179. package/dist/es/form/helpers/create-field.js +1 -1
  180. package/dist/es/form/helpers/index.js +1 -1
  181. package/dist/es/form/helpers/with-form-item.js +1 -1
  182. package/dist/es/form/hooks/use-form-item-props.js +1 -1
  183. package/dist/es/form/hooks/use-label-width.js +1 -1
  184. package/dist/es/form/index.js +1 -1
  185. package/dist/es/form/use-form.js +1 -1
  186. package/dist/es/form-drawer/index.js +38 -37
  187. package/dist/es/form-modal/index.js +29 -28
  188. package/dist/es/generic-select/index.js +1 -1
  189. package/dist/es/grid/context.js +1 -1
  190. package/dist/es/grid/grid-item.js +1 -1
  191. package/dist/es/grid/hooks/index.js +1 -1
  192. package/dist/es/grid/hooks/use-container-breakpoints.js +1 -1
  193. package/dist/es/grid/hooks/use-container-width.js +1 -1
  194. package/dist/es/grid/hooks/use-grid-collapsed.js +1 -1
  195. package/dist/es/grid/hooks/use-normalized-gap.js +1 -1
  196. package/dist/es/grid/hooks/use-responsive-breakpoint.js +1 -1
  197. package/dist/es/grid/hooks/use-responsive-value.js +1 -1
  198. package/dist/es/grid/index.js +1 -1
  199. package/dist/es/grid/styles.js +1 -1
  200. package/dist/es/group/index.js +1 -1
  201. package/dist/es/icon/index.js +1 -1
  202. package/dist/es/icon-button/index.js +1 -1
  203. package/dist/es/icon-picker/icon-grid.js +1 -1
  204. package/dist/es/icon-picker/index.js +1 -1
  205. package/dist/es/image/index.js +1 -1
  206. package/dist/es/index.js +98 -92
  207. package/dist/es/input/index.js +1 -1
  208. package/dist/es/input-number/index.js +1 -1
  209. package/dist/es/keyboard/index.js +1 -1
  210. package/dist/es/labeled/index.js +50 -0
  211. package/dist/es/labels/index.js +136 -0
  212. package/dist/es/list/index.js +1 -1
  213. package/dist/es/loader/index.js +1 -1
  214. package/dist/es/logo-icon/index.js +1 -1
  215. package/dist/es/mentions/index.js +1 -1
  216. package/dist/es/menu/index.js +1 -1
  217. package/dist/es/modal/index.js +1 -1
  218. package/dist/es/modal/modal.js +1 -1
  219. package/dist/es/operation-button/index.js +1 -1
  220. package/dist/es/page/components/aside-panel.js +1 -1
  221. package/dist/es/page/components/index.js +1 -1
  222. package/dist/es/page/components/resize-handle.js +1 -1
  223. package/dist/es/page/components/scroll-content.js +1 -1
  224. package/dist/es/page/entrance.js +1 -1
  225. package/dist/es/page/hooks/index.js +1 -1
  226. package/dist/es/page/hooks/use-page-key.js +1 -1
  227. package/dist/es/page/hooks/use-resize.js +1 -1
  228. package/dist/es/page/index.js +1 -1
  229. package/dist/es/page/styles.js +1 -1
  230. package/dist/es/page/viewport-context.js +1 -1
  231. package/dist/es/pagination/index.js +1 -1
  232. package/dist/es/permission-gate/index.js +1 -1
  233. package/dist/es/popconfirm/index.js +1 -1
  234. package/dist/es/popover/index.js +1 -1
  235. package/dist/es/pro-search/components/advanced-search-toggler.js +1 -1
  236. package/dist/es/pro-search/components/advanced-search.js +1 -1
  237. package/dist/es/pro-search/components/index.js +1 -1
  238. package/dist/es/pro-search/components/search-actions.js +1 -1
  239. package/dist/es/pro-search/index.js +1 -1
  240. package/dist/es/pro-search/styles.js +1 -1
  241. package/dist/es/pro-table/components/column-setting-item.js +8 -8
  242. package/dist/es/pro-table/components/column-settings-panel.js +1 -1
  243. package/dist/es/pro-table/components/column-settings.js +1 -1
  244. package/dist/es/pro-table/components/index.js +1 -1
  245. package/dist/es/pro-table/components/operation-button-group.js +1 -1
  246. package/dist/es/pro-table/components/ref.js +1 -1
  247. package/dist/es/pro-table/components/table-subscriber.js +1 -1
  248. package/dist/es/pro-table/components/table-summary.js +1 -1
  249. package/dist/es/pro-table/components/table-title.js +1 -1
  250. package/dist/es/pro-table/components/table.js +1 -1
  251. package/dist/es/pro-table/components/width-popover.js +1 -1
  252. package/dist/es/pro-table/context.js +1 -1
  253. package/dist/es/pro-table/event.js +1 -1
  254. package/dist/es/pro-table/hooks/index.js +1 -1
  255. package/dist/es/pro-table/hooks/use-column-settings-persistence.js +1 -1
  256. package/dist/es/pro-table/hooks/use-row-selection.js +1 -1
  257. package/dist/es/pro-table/hooks/use-table-columns.js +1 -1
  258. package/dist/es/pro-table/index.js +1 -1
  259. package/dist/es/pro-table/store.js +1 -1
  260. package/dist/es/progress/index.js +1 -1
  261. package/dist/es/qrcode/index.js +1 -1
  262. package/dist/es/radio/index.js +1 -1
  263. package/dist/es/rate/index.js +1 -1
  264. package/dist/es/result/index.js +1 -1
  265. package/dist/es/row/index.js +1 -1
  266. package/dist/es/scroll-area/index.js +1 -1
  267. package/dist/es/scroll-area/styles.js +1 -1
  268. package/dist/es/segmented/index.js +1 -1
  269. package/dist/es/select/hooks/index.js +1 -1
  270. package/dist/es/select/hooks/use-data-options-select.js +1 -1
  271. package/dist/es/select/hooks/use-dictionary-options-select.js +1 -1
  272. package/dist/es/select/index.js +1 -1
  273. package/dist/es/skeleton/index.js +1 -1
  274. package/dist/es/slider/index.js +1 -1
  275. package/dist/es/space/index.js +1 -1
  276. package/dist/es/space/space.js +1 -1
  277. package/dist/es/sparkles-text/index.js +1 -1
  278. package/dist/es/sparkles-text/sparkle.js +1 -1
  279. package/dist/es/spin/index.js +1 -1
  280. package/dist/es/split-text/index.js +1 -1
  281. package/dist/es/splitter/index.js +1 -1
  282. package/dist/es/stack/index.js +1 -1
  283. package/dist/es/statistic/index.js +1 -1
  284. package/dist/es/steps/index.js +1 -1
  285. package/dist/es/switch/index.js +1 -1
  286. package/dist/es/table/index.js +1 -1
  287. package/dist/es/table/use-pagination-props.js +1 -1
  288. package/dist/es/tabs/index.js +1 -1
  289. package/dist/es/tag/index.js +1 -1
  290. package/dist/es/time-picker/index.js +1 -1
  291. package/dist/es/timeline/index.js +1 -1
  292. package/dist/es/tooltip/index.js +1 -1
  293. package/dist/es/tour/index.js +1 -1
  294. package/dist/es/transfer/index.js +1 -1
  295. package/dist/es/tree/hooks/index.js +1 -1
  296. package/dist/es/tree/hooks/use-data-options-tree.js +1 -1
  297. package/dist/es/tree/index.js +1 -1
  298. package/dist/es/tree-select/hooks/index.js +1 -1
  299. package/dist/es/tree-select/hooks/use-data-options-tree-select.js +1 -1
  300. package/dist/es/tree-select/index.js +1 -1
  301. package/dist/es/typing-animation/index.js +1 -1
  302. package/dist/es/typography/index.js +1 -1
  303. package/dist/es/upload/helpers.js +80 -0
  304. package/dist/es/upload/index.js +105 -41
  305. package/dist/es/watermark/index.js +1 -1
  306. package/dist/types/code-editor/completions.d.ts +62 -0
  307. package/dist/types/code-editor/format.d.ts +10 -0
  308. package/dist/types/code-editor/index.d.ts +2 -1
  309. package/dist/types/code-editor/props.d.ts +20 -1
  310. package/dist/types/crud/components/scene-form.d.ts +1 -1
  311. package/dist/types/crud/index.d.ts +1 -1
  312. package/dist/types/crud/props.d.ts +6 -0
  313. package/dist/types/dynamic-icon/index.d.ts +1 -1
  314. package/dist/types/editable-table/props.d.ts +14 -0
  315. package/dist/types/file-preview/index.d.ts +21 -0
  316. package/dist/types/file-preview/types.d.ts +55 -0
  317. package/dist/types/file-upload/helpers.d.ts +1 -0
  318. package/dist/types/file-upload/index.d.ts +3 -3
  319. package/dist/types/file-upload/props.d.ts +3 -21
  320. package/dist/types/flex-tabs/index.d.ts +10 -0
  321. package/dist/types/flex-tabs/props.d.ts +2 -0
  322. package/dist/types/flex-tabs/styles.d.ts +2 -0
  323. package/dist/types/form/index.d.ts +1 -0
  324. package/dist/types/form-drawer/props.d.ts +6 -1
  325. package/dist/types/form-modal/props.d.ts +6 -1
  326. package/dist/types/index.d.ts +7 -3
  327. package/dist/types/labeled/index.d.ts +29 -0
  328. package/dist/types/labels/index.d.ts +54 -0
  329. package/dist/types/upload/helpers.d.ts +37 -0
  330. package/dist/types/upload/index.d.ts +3 -2
  331. package/dist/types/upload/props.d.ts +24 -0
  332. package/package.json +6 -4
  333. package/dist/types/action-button/index.test.d.ts +0 -1
  334. package/dist/types/action-group/index.test.d.ts +0 -1
  335. package/dist/types/bool/index.test.d.ts +0 -1
  336. package/dist/types/code-editor/index.test.d.ts +0 -1
  337. package/dist/types/crud/helpers.test.d.ts +0 -1
  338. package/dist/types/crud/store.test.d.ts +0 -1
  339. package/dist/types/crud-page/index.test.d.ts +0 -1
  340. package/dist/types/dynamic-icon/index.test.d.ts +0 -1
  341. package/dist/types/editable-table/index.test.d.ts +0 -1
  342. package/dist/types/file-upload/index.test.d.ts +0 -1
  343. package/dist/types/form/components/form.test.d.ts +0 -1
  344. package/dist/types/form/fields/code-editor/index.test.d.ts +0 -1
  345. package/dist/types/form/fields/icon-picker/index.test.d.ts +0 -1
  346. package/dist/types/form/form-actions.test.d.ts +0 -1
  347. package/dist/types/form-drawer/index.test.d.ts +0 -1
  348. package/dist/types/form-modal/index.test.d.ts +0 -1
  349. package/dist/types/generic-select/index.test.d.ts +0 -1
  350. package/dist/types/grid/index.test.d.ts +0 -1
  351. package/dist/types/icon-button/index.test.d.ts +0 -1
  352. package/dist/types/icon-picker/index.test.d.ts +0 -1
  353. package/dist/types/keyboard/index.test.d.ts +0 -1
  354. package/dist/types/modal/index.test.d.ts +0 -1
  355. package/dist/types/operation-button/index.test.d.ts +0 -1
  356. package/dist/types/page/entrance.test.d.ts +0 -1
  357. package/dist/types/page/index.test.d.ts +0 -1
  358. package/dist/types/permission-gate/index.test.d.ts +0 -1
  359. package/dist/types/pro-table/index.test.d.ts +0 -1
  360. package/dist/types/scroll-area/index.test.d.ts +0 -1
  361. package/dist/types/table/index.test.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Loader as e } from "../../loader/index.js";
3
3
  import { jsx as t } from "@emotion/react/jsx-runtime";
4
4
  import { isArray as n, withPinyin as r } from "@vef-framework-react/shared";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { useDataOptionsSelect as e } from "./hooks/use-data-options-select.js";
3
3
  import { useDictionaryOptionsSelect as t } from "./hooks/use-dictionary-options-select.js";
4
4
  import { Select as n } from "antd";
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Skeleton as e } from "antd";
3
3
  export { e as Skeleton };
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Slider as e } from "antd";
3
3
  export { e as Slider };
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import e from "./space.js";
3
3
  export { e as Space };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { jsx as e } from "@emotion/react/jsx-runtime";
3
3
  import { Space as t } from "antd";
4
4
  //#region src/space/space.tsx
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Sparkle as e } from "./sparkle.js";
3
3
  import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
4
4
  import { useEffect as r, useState as i } from "react";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { jsx as e } from "@emotion/react/jsx-runtime";
3
3
  import "@emotion/react";
4
4
  import { motion as t } from "@vef-framework-react/core";
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Spin as e } from "antd";
3
3
  export { e as Spin };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { jsx as e } from "@emotion/react/jsx-runtime";
3
3
  import { useEffect as t, useRef as n, useState as r } from "react";
4
4
  import { clsx as i } from "@vef-framework-react/core";
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Splitter as e } from "antd";
3
3
  export { e as Splitter };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Flex as e } from "../flex/index.js";
3
3
  import { jsx as t } from "@emotion/react/jsx-runtime";
4
4
  //#region src/stack/index.tsx
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Statistic as e } from "antd";
3
3
  export { e as Statistic };
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Steps as e } from "antd";
3
3
  export { e as Steps };
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Switch as e } from "antd";
3
3
  export { e as Switch };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { globalCssVars as e } from "../_base/constants/css-vars.js";
3
3
  import { fullHeight as t } from "../_base/styles/common.js";
4
4
  import { pageSizeOptions as n, usePaginationProps as r } from "./use-pagination-props.js";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Fragment as e, jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
3
3
  import { useMemo as r } from "react";
4
4
  //#region src/table/use-pagination-props.tsx
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Tabs as e } from "antd";
3
3
  export { e as Tabs };
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Tag as e } from "antd";
3
3
  export { e as Tag };
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { TimePicker as e } from "antd";
3
3
  export { e as TimePicker };
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Timeline as e } from "antd";
3
3
  export { e as Timeline };
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Tooltip as e } from "antd";
3
3
  export { e as Tooltip };
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Tour as e } from "antd";
3
3
  export { e as Tour };
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Transfer as e } from "antd";
3
3
  export { e as Transfer };
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { useDataOptionsTree as e } from "./use-data-options-tree.js";
3
3
  export { e as useDataOptionsTree };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { filterTreeWithAncestors as e, isString as t } from "@vef-framework-react/shared";
3
3
  import { useDataOptionsQuery as n } from "@vef-framework-react/hooks";
4
4
  import { useEffect as r, useEffectEvent as i, useMemo as a, useState as o } from "react";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { useDataOptionsTree as e } from "./hooks/use-data-options-tree.js";
3
3
  import { Tree as t } from "antd";
4
4
  export { t as Tree, e as useDataOptionsTree };
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { useDataOptionsTreeSelect as e } from "./use-data-options-tree-select.js";
3
3
  export { e as useDataOptionsTreeSelect };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Loader as e } from "../../loader/index.js";
3
3
  import { jsx as t } from "@emotion/react/jsx-runtime";
4
4
  import { isString as n } from "@vef-framework-react/shared";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { useDataOptionsTreeSelect as e } from "./hooks/use-data-options-tree-select.js";
3
3
  import { TreeSelect as t } from "antd";
4
4
  export { t as TreeSelect, e as useDataOptionsTreeSelect };
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { jsx as e } from "@emotion/react/jsx-runtime";
3
3
  import { Children as t, useEffect as n, useRef as r, useState as i } from "react";
4
4
  import { motion as a, useInView as o } from "@vef-framework-react/core";
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Typography as e } from "antd";
3
3
  //#region src/typography/index.ts
4
4
  var { Text: t, Link: n, Title: r, Paragraph: i } = e;
@@ -0,0 +1,80 @@
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
+ //#region src/upload/helpers.ts
3
+ var e = /* @__PURE__ */ new Set([
4
+ ".avif",
5
+ ".bmp",
6
+ ".dpg",
7
+ ".gif",
8
+ ".heic",
9
+ ".heif",
10
+ ".ico",
11
+ ".jfif",
12
+ ".jpg",
13
+ ".jpeg",
14
+ ".png",
15
+ ".svg",
16
+ ".tif",
17
+ ".tiff",
18
+ ".webp"
19
+ ]), t = /\.[^./\\]*$/, n = Symbol.for("@vef-framework-react/components/upload/original-file-url");
20
+ function r(e) {
21
+ return e[n] ?? e.url;
22
+ }
23
+ function i(e) {
24
+ let { sourceUrl: t } = e;
25
+ return t ?? r(e);
26
+ }
27
+ function a(e) {
28
+ return e.url ? {
29
+ ...e,
30
+ url: void 0,
31
+ [n]: e.url
32
+ } : e;
33
+ }
34
+ function o(e) {
35
+ let t = e[n];
36
+ if (t === void 0) return e;
37
+ let r = {
38
+ ...e,
39
+ url: t
40
+ };
41
+ return delete r[n], r;
42
+ }
43
+ function s(e) {
44
+ if (!e || typeof e != "object" || !("url" in e)) return;
45
+ let t = e;
46
+ typeof t.url == "string" && (t[n] = t.url, Object.defineProperty(t, "url", {
47
+ configurable: !0,
48
+ enumerable: !1,
49
+ value: t.url,
50
+ writable: !0
51
+ }));
52
+ }
53
+ function c(e) {
54
+ let n = (e.split("/").pop() ?? "").split(/[#?]/, 1)[0] ?? "";
55
+ return t.exec(n)?.[0] ?? "";
56
+ }
57
+ function l(t) {
58
+ let n = c(t);
59
+ return n ? e.has(n.toLowerCase()) : void 0;
60
+ }
61
+ function u(e) {
62
+ if (e.type) return e.type.startsWith("image/");
63
+ let { fileName: t } = e, n = l(t ?? e.name);
64
+ if (n !== void 0) return n;
65
+ let r = i(e) ?? "";
66
+ return r.startsWith("data:image/") ? !0 : r.startsWith("data:") ? !1 : l(r) ?? !1;
67
+ }
68
+ function d(e) {
69
+ let { key: t, fileName: n } = e;
70
+ return {
71
+ filename: n ?? e.name,
72
+ contentType: e.type,
73
+ size: e.size,
74
+ file: e.originFileObj,
75
+ key: t,
76
+ url: i(e)
77
+ };
78
+ }
79
+ //#endregion
80
+ export { i as getUploadSourceUrl, u as isImageFile, s as isolateUploadRequestFileUrl, a as toAntdUploadFile, d as toFilePreviewTarget, o as toPublicUploadFile };
@@ -1,62 +1,126 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
2
- import { mergeProps as e } from "../_base/helpers/props.js";
3
- import { Button as t } from "../button/index.js";
4
- import { Icon as n } from "../icon/index.js";
5
- import { Image as r } from "../image/index.js";
6
- import { Fragment as i, jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
7
- import { useCallback as s, useMemo as c, useState as l } from "react";
8
- import { Upload as u } from "antd";
9
- import { PlusIcon as d, UploadIcon as f } from "lucide-react";
10
- import p from "antd-img-crop";
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
+ import { showWarningMessage as e } from "../_base/helpers/message.js";
3
+ import { mergeProps as t } from "../_base/helpers/props.js";
4
+ import { Button as n } from "../button/index.js";
5
+ import { Icon as r } from "../icon/index.js";
6
+ import { useFilePreview as i } from "../file-preview/index.js";
7
+ import { Image as a } from "../image/index.js";
8
+ import { getUploadSourceUrl as ee, isImageFile as o, isolateUploadRequestFileUrl as s, toAntdUploadFile as c, toFilePreviewTarget as l, toPublicUploadFile as u } from "./helpers.js";
9
+ import { Fragment as d, jsx as f, jsxs as p } from "@emotion/react/jsx-runtime";
10
+ import { useCallback as m, useMemo as h, useState as g } from "react";
11
+ import { Upload as _ } from "antd";
12
+ import { PlusIcon as v, UploadIcon as y } from "lucide-react";
13
+ import te from "antd-img-crop";
11
14
  //#region src/upload/index.tsx
12
- var m = {
15
+ function b(e) {
16
+ if (typeof e != "function") return e;
17
+ let t = e;
18
+ return (e) => t(u(e));
19
+ }
20
+ var x = {
13
21
  showReset: !0,
14
22
  rotationSlider: !0,
15
23
  zoomSlider: !0
16
24
  };
17
- async function h(e) {
25
+ async function S(e) {
18
26
  return await new Promise((t, n) => {
19
27
  let r = new FileReader();
20
28
  r.readAsDataURL(e), r.addEventListener("load", () => t(r.result)), r.addEventListener("error", (e) => n(e));
21
29
  });
22
30
  }
23
- function g({ enableCrop: g = !1, cropperProps: _, listType: v, fileList: y, defaultFileList: b, maxCount: x, pastable: S = !0, onPreview: C, children: w, ...T }) {
24
- let E = v === "picture-card" || v === "picture-circle", D = (y || b || []).length >= (x || Infinity), O = c(() => w || (E ? /* @__PURE__ */ a(n, { component: d }) : /* @__PURE__ */ a(t, {
25
- disabled: D,
26
- icon: /* @__PURE__ */ a(n, { component: f }),
31
+ function C({ enableCrop: C = !1, cropperProps: w, isImageUrl: T, listType: E, fileList: D, iconRender: O, itemRender: k, defaultFileList: A, maxCount: j, pastable: ne = !0, customRequest: M, onChange: N, onDownload: P, onPreview: F, onRemove: I, showUploadList: L, children: R, ...z }) {
32
+ let B = E === "picture-card" || E === "picture-circle", V = (D || A || []).length >= (j || Infinity), H = h(() => R || (B ? /* @__PURE__ */ f(r, { component: v }) : /* @__PURE__ */ f(n, {
33
+ disabled: V,
34
+ icon: /* @__PURE__ */ f(r, { component: y }),
27
35
  type: "primary",
28
36
  children: "上传"
29
37
  })), [
30
- w,
31
- E,
32
- D
33
- ]), [k, A] = l(!1), [j, M] = l(""), N = s(async (e) => {
34
- let t = e.url;
35
- !t && e.originFileObj && (t = await h(e.originFileObj)), M(t), A(!0);
36
- }, []), P = !E || !D, F = /* @__PURE__ */ a(u, {
37
- ...T,
38
- defaultFileList: b,
39
- fileList: y,
40
- listType: v,
41
- maxCount: x,
42
- pastable: S,
43
- onPreview: C || N,
44
- children: P && O
45
- }), I = c(() => e(_ ?? {}, m), [_]);
46
- return /* @__PURE__ */ o(i, { children: [g ? /* @__PURE__ */ a(p, {
47
- ...I,
48
- children: F
49
- }) : F, j && /* @__PURE__ */ a(r, {
50
- src: j,
38
+ R,
39
+ B,
40
+ V
41
+ ]), [U, W] = g(!1), [G, K] = g(""), q = i(), J = h(() => D?.map((e) => c(e)), [D]), Y = h(() => A?.map((e) => c(e)), [A]), X = h(() => {
42
+ if (M) return (e, t) => M({
43
+ ...e,
44
+ onSuccess: (t, n) => {
45
+ s(e.file), e.onSuccess?.(t, n);
46
+ }
47
+ }, t);
48
+ }, [M]), Z = m(async (t) => {
49
+ if (o(t)) {
50
+ let e = ee(t);
51
+ !e && t.originFileObj && (e = await S(t.originFileObj)), K(e), W(!0);
52
+ return;
53
+ }
54
+ let n = l(t);
55
+ if (q && (q.canPreview?.(n) ?? !0)) {
56
+ q.openPreview(n);
57
+ return;
58
+ }
59
+ e("该文件暂不支持预览");
60
+ }, [q]), re = m((e) => {
61
+ let t = e.fileList.map((e) => u(e)), n = t.find((t) => t.uid === e.file.uid) ?? u(e.file);
62
+ N?.({
63
+ ...e,
64
+ file: n,
65
+ fileList: t
66
+ });
67
+ }, [N]), ie = m((t) => {
68
+ if (P) {
69
+ P(u(t));
70
+ return;
71
+ }
72
+ e("该文件暂不支持下载");
73
+ }, [P]), ae = m((e) => {
74
+ if (F) {
75
+ F(u(e));
76
+ return;
77
+ }
78
+ Z(e);
79
+ }, [Z, F]), oe = m((e) => I?.(u(e)), [I]), se = h(() => T ? (e) => T(u(e)) : void 0, [T]), Q = h(() => {
80
+ if (O) return (e, t) => O(u(e), t);
81
+ }, [O]), ce = h(() => {
82
+ if (k) return (e, t, n, r) => k(e, u(t), n.map((e) => u(e)), r);
83
+ }, [k]), le = h(() => !L || typeof L == "boolean" ? L : {
84
+ ...L,
85
+ downloadIcon: b(L.downloadIcon),
86
+ extra: b(L.extra),
87
+ previewIcon: b(L.previewIcon),
88
+ removeIcon: b(L.removeIcon),
89
+ showDownloadIcon: b(L.showDownloadIcon),
90
+ showPreviewIcon: b(L.showPreviewIcon),
91
+ showRemoveIcon: b(L.showRemoveIcon)
92
+ }, [L]), ue = !B || !V, $ = /* @__PURE__ */ f(_, {
93
+ ...z,
94
+ customRequest: X,
95
+ defaultFileList: Y,
96
+ fileList: J,
97
+ iconRender: Q,
98
+ isImageUrl: se,
99
+ itemRender: ce,
100
+ listType: E,
101
+ maxCount: j,
102
+ pastable: ne,
103
+ showUploadList: le,
104
+ onChange: re,
105
+ onDownload: ie,
106
+ onPreview: ae,
107
+ onRemove: oe,
108
+ children: ue && H
109
+ }), de = h(() => t(w ?? {}, x), [w]);
110
+ return /* @__PURE__ */ p(d, { children: [C ? /* @__PURE__ */ f(te, {
111
+ ...de,
112
+ children: $
113
+ }) : $, G && /* @__PURE__ */ f(a, {
114
+ src: G,
51
115
  styles: { root: { display: "none" } },
52
116
  preview: {
53
- open: k,
54
- onOpenChange: (e) => A(e),
117
+ open: U,
118
+ onOpenChange: (e) => W(e),
55
119
  afterOpenChange: (e) => {
56
- e || M("");
120
+ e || K("");
57
121
  }
58
122
  }
59
123
  })] });
60
124
  }
61
125
  //#endregion
62
- export { g as Upload };
126
+ export { C as Upload, l as toFilePreviewTarget };
@@ -1,3 +1,3 @@
1
- /*! @vef-framework-react/components v2.10.0 made by Venus | 2026-07-13T07:28:07.021Z */
1
+ /*! @vef-framework-react/components v2.12.0 made by Venus | 2026-07-17T09:22:46.001Z */
2
2
  import { Watermark as e } from "antd";
3
3
  export { e as Watermark };
@@ -0,0 +1,62 @@
1
+ import { CompletionSource } from '@codemirror/autocomplete';
2
+ /**
3
+ * One entry of a declarative completion catalog. Entries form a tree: root
4
+ * entries complete as globals, and an entry's `children` complete after
5
+ * `label.` — so a catalog can describe host-injected bindings and libraries
6
+ * without the caller touching CodeMirror APIs.
7
+ */
8
+ export interface CompletionEntry {
9
+ /**
10
+ * The identifier to insert.
11
+ */
12
+ label: string;
13
+ /**
14
+ * The completion icon kind (CodeMirror vocabulary: "function", "method",
15
+ * "property", "variable", "namespace", "class", "constant", ...). Defaults
16
+ * to "namespace" for entries with children, else "variable".
17
+ */
18
+ type?: string;
19
+ /**
20
+ * Short signature or annotation rendered after the label, e.g. "(url, options?)".
21
+ */
22
+ detail?: string;
23
+ /**
24
+ * Documentation shown in the info panel next to the selected option.
25
+ */
26
+ info?: string;
27
+ /**
28
+ * Ranking boost (-99..99) applied when options score equally.
29
+ */
30
+ boost?: number;
31
+ /**
32
+ * Members offered after `label.`.
33
+ */
34
+ children?: CompletionEntry[];
35
+ }
36
+ /**
37
+ * Walk a catalog along an object path (`["http"]` for `http.`), returning the
38
+ * member entries to offer at that level, or null when the path leaves the
39
+ * catalog (letting other completion sources take over).
40
+ */
41
+ export declare function resolveEntryPath(entries: readonly CompletionEntry[], path: readonly string[]): readonly CompletionEntry[] | null;
42
+ /**
43
+ * A completion source that offers catalog entries as JSON object keys.
44
+ * Inside a property-name string — closed (a `PropertyName` node) or still
45
+ * being typed (an error node directly under `Object` starting with a quote)
46
+ * — it completes the text after the opening quote. At a bare key position it
47
+ * inserts the fully quoted key, but only on an explicit request so plain
48
+ * typing stays quiet. Value positions never match (an unterminated value
49
+ * string parses as an error node under `Property`), so string values get no
50
+ * keyword noise.
51
+ */
52
+ export declare function completeJsonKeysFromEntries(entries: readonly CompletionEntry[]): CompletionSource;
53
+ /**
54
+ * A completion source over an entry catalog, named after CodeMirror's own
55
+ * `completeFromList`. It resolves the member path before the cursor via
56
+ * `completionPath` (loaded lazily alongside the JavaScript language pack, so
57
+ * it never enters the initial bundle) and offers the matching level of the
58
+ * catalog; outside the catalog it stays silent so other sources take over.
59
+ * `completionPath` also does the gating: outside an identifier or property
60
+ * it only yields a target on an explicit request.
61
+ */
62
+ export declare function completeFromEntries(entries: readonly CompletionEntry[]): CompletionSource;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * A formatter rewrites a whole document, returning the formatted text.
3
+ * It throws when the source cannot be parsed.
4
+ */
5
+ export type CodeFormatter = (source: string, tabSize: number) => Promise<string> | string;
6
+ /**
7
+ * The built-in formatter for a `language` prop value, or undefined when the
8
+ * language is a custom extension or has no formatter.
9
+ */
10
+ export declare function getFormatter(language: unknown): CodeFormatter | undefined;
@@ -1,4 +1,5 @@
1
1
  import { PropsWithRef } from '../_base';
2
2
  import { CodeEditorProps, CodeEditorRef } from './props';
3
- export declare function CodeEditor({ ref, value, defaultValue, onChange, onBlur, onFocus, onCreateEditor, language, theme, readOnly, placeholder, autoFocus, showLineNumbers, showFoldGutter, showSearch, showHighlightActiveLine, tabSize, indentWithTab, height, minHeight, maxHeight, width, status, size, bordered, className, style, extensions, basicSetupOptions }: PropsWithRef<CodeEditorRef, CodeEditorProps>): import("@emotion/react/jsx-runtime").JSX.Element;
3
+ export declare function CodeEditor({ ref, value, defaultValue, onChange, onBlur, onFocus, onCreateEditor, language, theme, readOnly, placeholder, autoFocus, showLineNumbers, showFoldGutter, showSearch, showFormat, showHighlightActiveLine, tabSize, indentWithTab, height, minHeight, maxHeight, width, status, size, bordered, className, style, completions, extensions, basicSetupOptions }: PropsWithRef<CodeEditorRef, CodeEditorProps>): import("@emotion/react/jsx-runtime").JSX.Element;
4
+ export { completeFromEntries, type CompletionEntry } from './completions';
4
5
  export type { CodeEditorLanguage, CodeEditorProps, CodeEditorRef, CodeEditorTheme } from './props';
@@ -3,12 +3,13 @@ import { EditorView } from '@codemirror/view';
3
3
  import { BasicSetupOptions } from '@uiw/react-codemirror';
4
4
  import { CSSProperties } from 'react';
5
5
  import { Length, Size } from '../_base';
6
+ import { CompletionEntry } from './completions';
6
7
  /**
7
8
  * Built-in language identifiers shipped with the CodeEditor. To use a
8
9
  * language outside of this list, install the corresponding `@codemirror/lang-*`
9
10
  * package and pass its extension through `language` (or `extensions`).
10
11
  */
11
- export type CodeEditorLanguage = "json" | "javascript" | "typescript" | "markdown" | "sql" | "python";
12
+ export type CodeEditorLanguage = "json" | "javascript" | "typescript" | "markdown" | "sql" | "python" | "xml";
12
13
  /**
13
14
  * Color scheme for the editor.
14
15
  *
@@ -182,6 +183,24 @@ export interface CodeEditorProps {
182
183
  * Inline styles applied to the outer wrapper.
183
184
  */
184
185
  style?: CSSProperties;
186
+ /**
187
+ * Declarative completion catalog. On the built-in "javascript" /
188
+ * "typescript" languages entries complete as identifiers (with `children`
189
+ * completing after `label.`) alongside the language's own completions; on
190
+ * the built-in "json" language entries complete as object keys inside
191
+ * property-name strings (e.g. a JSON Schema keyword catalog). Other
192
+ * languages ignore it. Pass a stable reference — a fresh array each render
193
+ * reconfigures the live editor.
194
+ */
195
+ completions?: CompletionEntry[];
196
+ /**
197
+ * Show the floating format action when the language has a built-in
198
+ * formatter ("json" via JSON re-indent, "javascript" / "typescript" via
199
+ * prettier, loaded on first use). Never shown for read-only editors.
200
+ *
201
+ * @default true
202
+ */
203
+ showFormat?: boolean;
185
204
  /**
186
205
  * Extra CodeMirror extensions appended after the built-in basic setup
187
206
  * and the resolved language. Use this for linters, custom keymaps, or
@@ -1,7 +1,7 @@
1
1
  import { AnyObject } from '@vef-framework-react/shared';
2
2
  import { ReactNode } from 'react';
3
3
  import { BaseCrudProps } from '../props';
4
- interface SceneFormProps<TSceneFormValues extends AnyObject> extends Pick<BaseCrudProps<AnyObject, AnyObject, TSceneFormValues, AnyObject>, "renderForm" | "formComponent" | "formMutationFns" | "formActionsRenderers" | "beforeFormSubmit" | "afterFormSubmit" | "mutationMeta"> {
4
+ interface SceneFormProps<TSceneFormValues extends AnyObject> extends Pick<BaseCrudProps<AnyObject, AnyObject, TSceneFormValues, AnyObject>, "renderForm" | "formComponent" | "formLayout" | "formMutationFns" | "formActionsRenderers" | "beforeFormSubmit" | "afterFormSubmit" | "mutationMeta"> {
5
5
  }
6
6
  export declare const SceneForm: <TSceneFormValues extends AnyObject>(props: SceneFormProps<TSceneFormValues>) => ReactNode;
7
7
  export {};
@@ -1,6 +1,6 @@
1
1
  import { AnyObject } from '@vef-framework-react/shared';
2
2
  import { CrudProps } from './props';
3
- export declare function Crud<TRow extends AnyObject, TSearchValues extends AnyObject, TSceneFormValues extends AnyObject, TParams extends AnyObject = never>({ storageKey, defaultSearchValues, advancedSearch, sceneDefaultFormValues, renderForm, formComponent, formMutationFns, formActionsRenderers, beforeFormSubmit, afterFormSubmit, deleteMutationFn, deleteManyMutationFn, mutationMeta, rowSelection, rowKey, ...bodyProps }: CrudProps<TRow, TSearchValues, TSceneFormValues, TParams>): import("@emotion/react/jsx-runtime").JSX.Element;
3
+ export declare function Crud<TRow extends AnyObject, TSearchValues extends AnyObject, TSceneFormValues extends AnyObject, TParams extends AnyObject = never>({ storageKey, defaultSearchValues, advancedSearch, sceneDefaultFormValues, renderForm, formComponent, formLayout, formMutationFns, formActionsRenderers, beforeFormSubmit, afterFormSubmit, deleteMutationFn, deleteManyMutationFn, mutationMeta, rowSelection, rowKey, ...bodyProps }: CrudProps<TRow, TSearchValues, TSceneFormValues, TParams>): import("@emotion/react/jsx-runtime").JSX.Element;
4
4
  export type { ActionButtonGroupProps as CrudActionButtonGroupProps, OperationButtonGroupProps as CrudOperationButtonGroupProps } from './components';
5
5
  export { createCrudKit } from './helpers';
6
6
  export type { CrudKit } from './helpers';