@robot-admin/naive-ui-components 0.40.4 → 0.41.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 (495) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +62 -214
  3. package/README_EN.md +62 -195
  4. package/dist/ActionOverflow.cjs +1 -0
  5. package/dist/ActionOverflow.js +1 -0
  6. package/dist/C_ActionBar.css +63 -53
  7. package/dist/C_ActionBar2.cjs +1 -1
  8. package/dist/C_ActionBar2.js +1 -1
  9. package/dist/C_ApprovalViewer.cjs +1 -0
  10. package/dist/C_ApprovalViewer.css +79 -0
  11. package/dist/C_ApprovalViewer.d.cts +2 -0
  12. package/dist/C_ApprovalViewer.d.ts +2 -0
  13. package/dist/C_ApprovalViewer.js +1 -0
  14. package/dist/C_ApprovalViewer2.cjs +1 -0
  15. package/dist/C_ApprovalViewer2.js +1 -0
  16. package/dist/C_Attachments.cjs +1 -0
  17. package/dist/C_Attachments.css +204 -0
  18. package/dist/C_Attachments.d.cts +2 -0
  19. package/dist/C_Attachments.d.ts +2 -0
  20. package/dist/C_Attachments.js +1 -0
  21. package/dist/C_Attachments2.cjs +1 -0
  22. package/dist/C_Attachments2.js +1 -0
  23. package/dist/C_AudioPlayer.d.cts +1 -1
  24. package/dist/C_AudioPlayer.d.ts +1 -1
  25. package/dist/C_AutoComplete.d.cts +2 -2
  26. package/dist/C_AutoComplete.d.ts +2 -2
  27. package/dist/C_AvatarGroup.d.cts +1 -1
  28. package/dist/C_AvatarGroup.d.ts +1 -1
  29. package/dist/C_Barcode.d.cts +1 -1
  30. package/dist/C_Barcode.d.ts +1 -1
  31. package/dist/C_BatchResult.css +10 -10
  32. package/dist/C_BatchResult.d.cts +1 -1
  33. package/dist/C_BatchResult.d.ts +1 -1
  34. package/dist/C_BatchResult2.cjs +1 -1
  35. package/dist/C_BatchResult2.js +1 -1
  36. package/dist/C_Breadcrumb.d.cts +2 -2
  37. package/dist/C_Breadcrumb.d.ts +1 -1
  38. package/dist/C_Cascade.d.cts +1 -1
  39. package/dist/C_Cascade.d.ts +1 -1
  40. package/dist/C_ChangeReview.cjs +1 -0
  41. package/dist/C_ChangeReview.css +49 -0
  42. package/dist/C_ChangeReview.d.cts +2 -0
  43. package/dist/C_ChangeReview.d.ts +2 -0
  44. package/dist/C_ChangeReview.js +1 -0
  45. package/dist/C_ChangeReview2.cjs +1 -0
  46. package/dist/C_ChangeReview2.js +1 -0
  47. package/dist/C_Chat.css +120 -67
  48. package/dist/C_Chat.d.cts +2 -2
  49. package/dist/C_Chat.d.ts +2 -2
  50. package/dist/C_Chat2.cjs +1 -1
  51. package/dist/C_Chat2.js +1 -1
  52. package/dist/C_City.d.cts +1 -1
  53. package/dist/C_City.d.ts +1 -1
  54. package/dist/C_Code.d.cts +1 -1
  55. package/dist/C_Code.d.ts +1 -1
  56. package/dist/C_ContextMenu.d.cts +1 -1
  57. package/dist/C_ContextMenu.d.ts +1 -1
  58. package/dist/C_DataPicker.cjs +1 -1
  59. package/dist/C_DataPicker.css +125 -50
  60. package/dist/C_DataPicker.d.cts +3 -3
  61. package/dist/C_DataPicker.d.ts +4 -3
  62. package/dist/C_DataPicker.js +1 -1
  63. package/dist/C_DataPicker2.cjs +1 -1
  64. package/dist/C_DataPicker2.js +1 -1
  65. package/dist/C_Date.d.cts +1 -1
  66. package/dist/C_Date.d.ts +1 -1
  67. package/dist/C_Density.d.cts +1 -1
  68. package/dist/C_Density.d.ts +1 -1
  69. package/dist/C_Descriptions.cjs +1 -0
  70. package/dist/C_Descriptions.css +86 -0
  71. package/dist/C_Descriptions.d.cts +2 -0
  72. package/dist/C_Descriptions.d.ts +2 -0
  73. package/dist/C_Descriptions.js +1 -0
  74. package/dist/C_Descriptions2.cjs +1 -0
  75. package/dist/C_Descriptions2.js +1 -0
  76. package/dist/C_Editor.d.cts +1 -1
  77. package/dist/C_Editor.d.ts +1 -1
  78. package/dist/C_Editor2.cjs +1 -1
  79. package/dist/C_Editor2.js +1 -1
  80. package/dist/C_ErrorSummary.d.cts +1 -1
  81. package/dist/C_ErrorSummary.d.ts +1 -1
  82. package/dist/C_FilePreview.cjs +1 -1
  83. package/dist/C_FilePreview.d.cts +2 -1
  84. package/dist/C_FilePreview.d.ts +2 -1
  85. package/dist/C_FilePreview.js +1 -1
  86. package/dist/C_FilePreview2.cjs +1 -1
  87. package/dist/C_FilePreview2.js +1 -1
  88. package/dist/C_FilterBuilder.cjs +1 -0
  89. package/dist/C_FilterBuilder.css +59 -0
  90. package/dist/C_FilterBuilder.d.cts +2 -0
  91. package/dist/C_FilterBuilder.d.ts +2 -0
  92. package/dist/C_FilterBuilder.js +1 -0
  93. package/dist/C_FilterBuilder2.cjs +1 -0
  94. package/dist/C_FilterBuilder2.js +1 -0
  95. package/dist/C_Form.base.css +16 -16
  96. package/dist/C_Form.css +16 -16
  97. package/dist/C_Form.d.cts +1 -1
  98. package/dist/C_Form.d.ts +3 -3
  99. package/dist/C_FormModal.css +64 -54
  100. package/dist/C_FormModal.d.cts +2 -2
  101. package/dist/C_FormModal.d.ts +4 -4
  102. package/dist/C_FormModal2.cjs +1 -1
  103. package/dist/C_FormModal2.js +1 -1
  104. package/dist/C_FormSearch.d.cts +2 -1
  105. package/dist/C_FormSearch.d.ts +3 -2
  106. package/dist/C_GlobalSearch.css +156 -137
  107. package/dist/C_GlobalSearch.d.cts +2 -2
  108. package/dist/C_GlobalSearch.d.ts +2 -2
  109. package/dist/C_GlobalSearch2.cjs +1 -1
  110. package/dist/C_GlobalSearch2.js +1 -1
  111. package/dist/C_Guide.css +49 -3
  112. package/dist/C_Guide.d.cts +1 -1
  113. package/dist/C_Guide.d.ts +1 -1
  114. package/dist/C_Guide2.cjs +1 -1
  115. package/dist/C_Guide2.js +1 -1
  116. package/dist/C_Icon.d.cts +1 -1
  117. package/dist/C_Icon.d.ts +1 -1
  118. package/dist/C_ImageAnnotator.cjs +1 -0
  119. package/dist/C_ImageAnnotator.css +143 -0
  120. package/dist/C_ImageAnnotator.d.cts +2 -0
  121. package/dist/C_ImageAnnotator.d.ts +2 -0
  122. package/dist/C_ImageAnnotator.js +1 -0
  123. package/dist/C_ImageAnnotator2.cjs +1 -0
  124. package/dist/C_ImageAnnotator2.js +1 -0
  125. package/dist/C_ImportWizard.cjs +1 -0
  126. package/dist/C_ImportWizard.css +42 -0
  127. package/dist/C_ImportWizard.d.cts +2 -0
  128. package/dist/C_ImportWizard.d.ts +2 -0
  129. package/dist/C_ImportWizard.js +1 -0
  130. package/dist/C_ImportWizard2.cjs +1 -0
  131. package/dist/C_ImportWizard2.js +1 -0
  132. package/dist/C_Language.d.cts +1 -1
  133. package/dist/C_Language.d.ts +1 -1
  134. package/dist/C_Loading.d.cts +1 -1
  135. package/dist/C_Loading.d.ts +1 -1
  136. package/dist/C_Login.d.cts +1 -1
  137. package/dist/C_Login.d.ts +1 -1
  138. package/dist/C_Markdown.d.cts +1 -1
  139. package/dist/C_Markdown.d.ts +1 -1
  140. package/dist/C_Markdown2.cjs +1 -1
  141. package/dist/C_Markdown2.js +1 -1
  142. package/dist/C_Menu.d.cts +2 -2
  143. package/dist/C_Menu.d.ts +1 -1
  144. package/dist/C_NotificationCenter.cjs +1 -1
  145. package/dist/C_NotificationCenter.css +39 -39
  146. package/dist/C_NotificationCenter.d.cts +2 -1
  147. package/dist/C_NotificationCenter.d.ts +2 -1
  148. package/dist/C_NotificationCenter.js +1 -1
  149. package/dist/C_NotificationCenter2.cjs +1 -1
  150. package/dist/C_NotificationCenter2.js +1 -1
  151. package/dist/C_NotificationInbox.cjs +1 -0
  152. package/dist/C_NotificationInbox.css +154 -0
  153. package/dist/C_NotificationInbox.d.cts +2 -0
  154. package/dist/C_NotificationInbox.d.ts +2 -0
  155. package/dist/C_NotificationInbox.js +1 -0
  156. package/dist/C_NotificationInbox2.cjs +1 -0
  157. package/dist/C_NotificationInbox2.js +1 -0
  158. package/dist/C_OrgChart.d.cts +1 -1
  159. package/dist/C_OrgChart.d.ts +1 -1
  160. package/dist/C_Progress.d.cts +1 -1
  161. package/dist/C_Progress.d.ts +1 -1
  162. package/dist/C_QRCode2.cjs +1 -1
  163. package/dist/C_QRCode2.js +1 -1
  164. package/dist/C_RecordList.cjs +1 -0
  165. package/dist/C_RecordList.css +70 -0
  166. package/dist/C_RecordList.d.cts +2 -0
  167. package/dist/C_RecordList.d.ts +2 -0
  168. package/dist/C_RecordList.js +1 -0
  169. package/dist/C_RecordList2.cjs +1 -0
  170. package/dist/C_RecordList2.js +1 -0
  171. package/dist/C_RecurrenceEditor.cjs +1 -0
  172. package/dist/C_RecurrenceEditor.css +68 -0
  173. package/dist/C_RecurrenceEditor.d.cts +2 -0
  174. package/dist/C_RecurrenceEditor.d.ts +2 -0
  175. package/dist/C_RecurrenceEditor.js +1 -0
  176. package/dist/C_RecurrenceEditor2.cjs +1 -0
  177. package/dist/C_RecurrenceEditor2.js +1 -0
  178. package/dist/C_RelationshipExplorer.cjs +1 -0
  179. package/dist/C_RelationshipExplorer.css +76 -0
  180. package/dist/C_RelationshipExplorer.d.cts +2 -0
  181. package/dist/C_RelationshipExplorer.d.ts +2 -0
  182. package/dist/C_RelationshipExplorer.js +1 -0
  183. package/dist/C_RelationshipExplorer2.cjs +1 -0
  184. package/dist/C_RelationshipExplorer2.js +1 -0
  185. package/dist/C_ResourceSchedule.cjs +1 -0
  186. package/dist/C_ResourceSchedule.css +104 -0
  187. package/dist/C_ResourceSchedule.d.cts +2 -0
  188. package/dist/C_ResourceSchedule.d.ts +2 -0
  189. package/dist/C_ResourceSchedule.js +1 -0
  190. package/dist/C_ResourceSchedule2.cjs +1 -0
  191. package/dist/C_ResourceSchedule2.js +1 -0
  192. package/dist/C_ScanInput.cjs +1 -0
  193. package/dist/C_ScanInput.css +33 -0
  194. package/dist/C_ScanInput.d.cts +2 -0
  195. package/dist/C_ScanInput.d.ts +2 -0
  196. package/dist/C_ScanInput.js +1 -0
  197. package/dist/C_ScanInput2.cjs +1 -0
  198. package/dist/C_ScanInput2.js +1 -0
  199. package/dist/C_SectionNav.d.cts +1 -1
  200. package/dist/C_SectionNav.d.ts +1 -1
  201. package/dist/C_Select.d.cts +2 -2
  202. package/dist/C_Select.d.ts +2 -2
  203. package/dist/C_Skeleton.d.cts +1 -1
  204. package/dist/C_Skeleton.d.ts +1 -1
  205. package/dist/C_Steps.d.cts +1 -1
  206. package/dist/C_Steps.d.ts +1 -1
  207. package/dist/C_Table.base.css +194 -184
  208. package/dist/C_Table.css +178 -168
  209. package/dist/C_Table.d.cts +2 -2
  210. package/dist/C_Table.d.ts +15 -14
  211. package/dist/C_Table2.cjs +3 -3
  212. package/dist/C_Table2.js +3 -3
  213. package/dist/C_TagsView.d.cts +2 -2
  214. package/dist/C_TagsView.d.ts +1 -1
  215. package/dist/C_TaskBoard.cjs +1 -0
  216. package/dist/C_TaskBoard.css +58 -0
  217. package/dist/C_TaskBoard.d.cts +2 -0
  218. package/dist/C_TaskBoard.d.ts +2 -0
  219. package/dist/C_TaskBoard.js +1 -0
  220. package/dist/C_TaskBoard2.cjs +1 -0
  221. package/dist/C_TaskBoard2.js +1 -0
  222. package/dist/C_TaskPanel.cjs +1 -0
  223. package/dist/C_TaskPanel.css +68 -0
  224. package/dist/C_TaskPanel.d.cts +2 -0
  225. package/dist/C_TaskPanel.d.ts +2 -0
  226. package/dist/C_TaskPanel.js +1 -0
  227. package/dist/C_TaskPanel2.cjs +1 -0
  228. package/dist/C_TaskPanel2.js +1 -0
  229. package/dist/C_Theme.d.cts +1 -1
  230. package/dist/C_Theme.d.ts +1 -1
  231. package/dist/C_Timeline.d.cts +1 -1
  232. package/dist/C_Timeline.d.ts +1 -1
  233. package/dist/C_Timeline2.cjs +1 -1
  234. package/dist/C_Timeline2.js +1 -1
  235. package/dist/C_Transfer.css +108 -41
  236. package/dist/C_Transfer.d.cts +2 -2
  237. package/dist/C_Transfer.d.ts +2 -2
  238. package/dist/C_Transfer2.cjs +1 -1
  239. package/dist/C_Transfer2.js +1 -1
  240. package/dist/C_Tree.d.cts +1 -1
  241. package/dist/C_Tree.d.ts +13 -12
  242. package/dist/C_Upload.cjs +1 -1
  243. package/dist/C_Upload.d.cts +2 -1
  244. package/dist/C_Upload.d.ts +2 -1
  245. package/dist/C_Upload.js +1 -1
  246. package/dist/C_Upload2.cjs +1 -1
  247. package/dist/C_Upload2.js +1 -1
  248. package/dist/C_UserPicker.d.cts +1 -1
  249. package/dist/C_UserPicker.d.ts +2 -2
  250. package/dist/C_WorkFlow.d.ts +2 -2
  251. package/dist/ExportMenu.cjs +1 -0
  252. package/dist/ExportMenu.js +1 -0
  253. package/dist/NotificationItem.cjs +1 -0
  254. package/dist/NotificationItem.js +1 -0
  255. package/dist/component-config.d.ts +33 -10
  256. package/dist/config.d.cts +1 -1
  257. package/dist/config.d.ts +1 -1
  258. package/dist/constants.cjs +1 -0
  259. package/dist/constants.d.cts +2 -2
  260. package/dist/constants.d.ts +2 -2
  261. package/dist/constants.js +1 -0
  262. package/dist/constants2.d.cts +2 -2
  263. package/dist/constants2.d.ts +2 -2
  264. package/dist/constants3.d.cts +6 -232
  265. package/dist/constants3.d.ts +6 -232
  266. package/dist/constants4.d.cts +9 -199
  267. package/dist/constants4.d.ts +9 -199
  268. package/dist/constants5.d.cts +2 -2
  269. package/dist/constants5.d.ts +2 -2
  270. package/dist/context.d.cts +33 -10
  271. package/dist/data2.d.cts +8 -8
  272. package/dist/data2.d.ts +8 -8
  273. package/dist/dateRange.d.cts +4 -263
  274. package/dist/dateRange.d.ts +4 -263
  275. package/dist/editors.d.cts +11 -11
  276. package/dist/editors.d.ts +11 -11
  277. package/dist/excel.cjs +1 -0
  278. package/dist/excel.js +1 -0
  279. package/dist/fieldRenderers.cjs +1 -1
  280. package/dist/fieldRenderers.js +1 -1
  281. package/dist/fileUrl.cjs +1 -0
  282. package/dist/fileUrl.js +1 -0
  283. package/dist/html2.cjs +1 -0
  284. package/dist/html2.js +1 -0
  285. package/dist/index.cjs +1 -1
  286. package/dist/index.d.cts +88 -69
  287. package/dist/index.d.ts +87 -68
  288. package/dist/index.js +1 -1
  289. package/dist/index.vue.d.cts +54 -75
  290. package/dist/index.vue.d.ts +54 -75
  291. package/dist/index10.vue.d.cts +25 -27
  292. package/dist/index10.vue.d.ts +54 -41
  293. package/dist/index11.vue.d.cts +54 -41
  294. package/dist/index11.vue.d.ts +133 -75
  295. package/dist/index12.vue.d.cts +133 -75
  296. package/dist/index12.vue.d.ts +24 -6
  297. package/dist/index13.vue.d.cts +24 -6
  298. package/dist/index13.vue.d.ts +39 -57
  299. package/dist/index14.vue.d.cts +39 -57
  300. package/dist/index14.vue.d.ts +80 -16
  301. package/dist/index15.vue.d.cts +80 -16
  302. package/dist/index15.vue.d.ts +16 -56
  303. package/dist/index16.vue.d.cts +16 -56
  304. package/dist/index16.vue.d.ts +40 -118
  305. package/dist/index17.vue.d.cts +40 -118
  306. package/dist/index17.vue.d.ts +58 -52
  307. package/dist/index18.vue.d.cts +58 -52
  308. package/dist/index18.vue.d.ts +16 -20
  309. package/dist/index19.vue.d.cts +16 -20
  310. package/dist/index19.vue.d.ts +67 -14
  311. package/dist/index2.vue.d.cts +55 -17
  312. package/dist/index2.vue.d.ts +55 -17
  313. package/dist/index20.vue.d.cts +67 -14
  314. package/dist/index20.vue.d.ts +127 -123
  315. package/dist/index21.vue.d.cts +127 -123
  316. package/dist/index21.vue.d.ts +51 -76
  317. package/dist/index22.vue.d.cts +51 -76
  318. package/dist/index22.vue.d.ts +31 -71
  319. package/dist/index23.vue.d.cts +31 -129
  320. package/dist/index23.vue.d.ts +62 -118
  321. package/dist/index24.vue.d.cts +75 -50
  322. package/dist/index24.vue.d.ts +20 -49
  323. package/dist/index25.vue.d.cts +18 -18
  324. package/dist/index25.vue.d.ts +14 -22
  325. package/dist/index26.vue.d.cts +16 -26
  326. package/dist/index26.vue.d.ts +129 -24
  327. package/dist/index27.vue.d.cts +113 -81
  328. package/dist/index27.vue.d.ts +78 -96
  329. package/dist/index28.vue.d.cts +76 -29
  330. package/dist/index28.vue.d.ts +73 -31
  331. package/dist/index29.vue.d.cts +65 -13
  332. package/dist/index29.vue.d.ts +65 -13
  333. package/dist/index3.vue.d.cts +67 -70
  334. package/dist/index3.vue.d.ts +67 -70
  335. package/dist/index30.vue.d.cts +130 -81
  336. package/dist/index30.vue.d.ts +130 -81
  337. package/dist/index31.vue.d.cts +41 -94
  338. package/dist/index31.vue.d.ts +41 -94
  339. package/dist/index32.vue.d.cts +44 -61
  340. package/dist/index32.vue.d.ts +44 -61
  341. package/dist/index33.vue.d.cts +58 -0
  342. package/dist/index33.vue.d.ts +58 -0
  343. package/dist/index34.vue.d.cts +62 -0
  344. package/dist/index34.vue.d.ts +62 -0
  345. package/dist/index35.vue.d.cts +42 -0
  346. package/dist/index35.vue.d.ts +42 -0
  347. package/dist/index36.vue.d.cts +28 -0
  348. package/dist/index36.vue.d.ts +28 -0
  349. package/dist/index37.vue.d.cts +30 -0
  350. package/dist/index37.vue.d.ts +30 -0
  351. package/dist/index38.vue.d.cts +103 -0
  352. package/dist/index38.vue.d.ts +103 -0
  353. package/dist/index39.vue.d.cts +38 -0
  354. package/dist/index39.vue.d.ts +38 -0
  355. package/dist/index4.vue.d.cts +27 -36
  356. package/dist/index4.vue.d.ts +27 -36
  357. package/dist/index40.vue.d.cts +19 -0
  358. package/dist/index40.vue.d.ts +19 -0
  359. package/dist/index41.vue.d.cts +89 -0
  360. package/dist/index41.vue.d.ts +89 -0
  361. package/dist/index42.vue.d.cts +110 -0
  362. package/dist/index42.vue.d.ts +110 -0
  363. package/dist/index43.vue.d.cts +89 -0
  364. package/dist/index43.vue.d.ts +89 -0
  365. package/dist/index44.vue.d.cts +71 -0
  366. package/dist/index44.vue.d.ts +71 -0
  367. package/dist/index45.vue.d.cts +50 -0
  368. package/dist/index45.vue.d.ts +50 -0
  369. package/dist/index5.vue.d.cts +78 -17
  370. package/dist/index5.vue.d.ts +78 -17
  371. package/dist/index6.vue.d.cts +34 -132
  372. package/dist/index6.vue.d.ts +31 -34
  373. package/dist/index7.vue.d.cts +20 -34
  374. package/dist/index7.vue.d.ts +20 -28
  375. package/dist/index8.vue.d.cts +130 -29
  376. package/dist/index8.vue.d.ts +33 -118
  377. package/dist/index9.vue.d.cts +33 -118
  378. package/dist/index9.vue.d.ts +25 -27
  379. package/dist/localSource.cjs +1 -0
  380. package/dist/{formField.d.cts → localSource.d.cts} +42 -2
  381. package/dist/{formField.d.ts → localSource.d.ts} +42 -2
  382. package/dist/localSource.js +1 -0
  383. package/dist/mapUtils.d.cts +5 -5
  384. package/dist/mapUtils.d.ts +5 -5
  385. package/dist/model.d.cts +88 -0
  386. package/dist/model.d.ts +88 -0
  387. package/dist/presets.d.cts +2 -2
  388. package/dist/presets.d.ts +2 -2
  389. package/dist/previewLimits.cjs +1 -0
  390. package/dist/previewLimits.js +1 -0
  391. package/dist/resolver.cjs +1 -1
  392. package/dist/resolver.d.cts +1 -1
  393. package/dist/resolver.d.ts +1 -1
  394. package/dist/resolver.js +1 -1
  395. package/dist/rule.d.cts +51 -0
  396. package/dist/rule.d.ts +51 -0
  397. package/dist/source.cjs +1 -1
  398. package/dist/source.d.cts +2 -2
  399. package/dist/source.d.ts +2 -2
  400. package/dist/source.js +1 -1
  401. package/dist/style.css +1974 -542
  402. package/dist/types.d.cts +4 -0
  403. package/dist/types.d.ts +4 -0
  404. package/dist/types10.d.cts +229 -0
  405. package/dist/types10.d.ts +285 -0
  406. package/dist/types11.d.cts +285 -0
  407. package/dist/types2.d.cts +188 -31
  408. package/dist/types2.d.ts +188 -31
  409. package/dist/types3.d.cts +84 -101
  410. package/dist/types3.d.ts +82 -105
  411. package/dist/types4.d.cts +24 -106
  412. package/dist/types4.d.ts +30 -55
  413. package/dist/types5.d.cts +106 -55
  414. package/dist/types5.d.ts +130 -41
  415. package/dist/types6.d.cts +130 -41
  416. package/dist/types6.d.ts +244 -265
  417. package/dist/types7.d.cts +244 -265
  418. package/dist/types7.d.ts +60 -0
  419. package/dist/types8.d.cts +60 -0
  420. package/dist/types8.d.ts +50 -0
  421. package/dist/types9.d.cts +50 -0
  422. package/dist/types9.d.ts +229 -0
  423. package/dist/useCalendarEvents.d.cts +2 -2
  424. package/dist/useCalendarEvents.d.ts +2 -2
  425. package/dist/useCollapsePanel.d.cts +7 -7
  426. package/dist/useCollapsePanel.d.ts +7 -7
  427. package/dist/useComponentTheme.cjs +1 -1
  428. package/dist/useComponentTheme.js +1 -1
  429. package/dist/useCropperCore.d.cts +8 -8
  430. package/dist/useCropperCore.d.ts +8 -8
  431. package/dist/useDynamicFormState.d.cts +5 -4
  432. package/dist/useDynamicFormState.d.ts +5 -4
  433. package/dist/useEdgeInteraction.d.cts +2 -2
  434. package/dist/useEdgeInteraction.d.ts +2 -2
  435. package/dist/useFormArray.cjs +1 -1
  436. package/dist/useFormArray.d.cts +39 -3
  437. package/dist/useFormArray.d.ts +39 -3
  438. package/dist/useFormArray.js +1 -1
  439. package/dist/useFormRenderer.d.cts +6 -2
  440. package/dist/useFormRenderer.d.ts +6 -2
  441. package/dist/useFullscreen.d.cts +7 -99
  442. package/dist/useFullscreen.d.ts +7 -99
  443. package/dist/useGlobalSearch.d.cts +45 -3
  444. package/dist/useGlobalSearch.d.ts +45 -3
  445. package/dist/useInfiniteScroll.d.cts +2 -2
  446. package/dist/useInfiniteScroll.d.ts +2 -2
  447. package/dist/useLocalFileUrl.cjs +1 -0
  448. package/dist/useLocalFileUrl.js +1 -0
  449. package/dist/useQRCode.d.cts +3 -3
  450. package/dist/useQRCode.d.ts +3 -3
  451. package/dist/useSignatureHistory.d.cts +6 -6
  452. package/dist/useSignatureHistory.d.ts +6 -6
  453. package/dist/useSplitResize.d.cts +10 -10
  454. package/dist/useSplitResize.d.ts +10 -10
  455. package/dist/useWorkflowValidation.d.cts +108 -108
  456. package/dist/useWorkflowValidation.d.ts +108 -108
  457. package/dist/verification.d.cts +2 -2
  458. package/dist/verification.d.ts +2 -2
  459. package/dist/workflows.cjs +1 -1
  460. package/dist/workflows.d.cts +2 -2
  461. package/dist/workflows.d.ts +2 -2
  462. package/dist/workflows.js +1 -1
  463. package/docs/components.en.md +125 -135
  464. package/docs/components.md +125 -135
  465. package/docs/engineering.en.md +12 -4
  466. package/docs/engineering.md +12 -4
  467. package/docs/guides/api-migration.md +17 -1
  468. package/docs/guides/approval-viewer.md +50 -0
  469. package/docs/guides/attachments.md +39 -0
  470. package/docs/guides/batch-results.md +3 -1
  471. package/docs/guides/change-review.md +49 -0
  472. package/docs/guides/component-contracts.md +8 -0
  473. package/docs/guides/data-picker.md +75 -1
  474. package/docs/guides/data-workflows.md +27 -1
  475. package/docs/guides/dockable-workbench.md +49 -0
  476. package/docs/guides/filter-builder.md +47 -0
  477. package/docs/guides/global-search.md +49 -0
  478. package/docs/guides/image-annotator.md +27 -0
  479. package/docs/guides/import-wizard.md +40 -0
  480. package/docs/guides/notification-center.md +29 -0
  481. package/docs/guides/resource-schedule.md +58 -0
  482. package/docs/guides/scene-components.md +53 -0
  483. package/docs/guides/search-workflows.md +2 -0
  484. package/docs/guides/split-pane.md +2 -0
  485. package/docs/guides/table-density.md +47 -1
  486. package/docs/guides/task-board.md +53 -0
  487. package/docs/guides/task-panel.md +30 -0
  488. package/docs/guides/transfer.md +35 -0
  489. package/docs/guides/usage.en.md +23 -17
  490. package/docs/guides/usage.md +10 -24
  491. package/package.json +1 -1
  492. package/dist/formField.cjs +0 -1
  493. package/dist/formField.js +0 -1
  494. package/dist/html.cjs +0 -1
  495. package/dist/html.js +0 -1
package/README_EN.md CHANGED
@@ -3,18 +3,19 @@
3
3
  ![Naive UI Components — Vue 3 business components in the Robot ecosystem](./docs/assets/naive-ui-components-banner.png)
4
4
 
5
5
  <div align="center">
6
- <p><strong>Turn recurring business interactions into composable components.</strong></p>
7
- <p>Vue 3 · Naive UI · TypeScript · 63 business components</p>
6
+ <p><strong>A Vue 3 component library for administration interfaces</strong></p>
7
+ <p>Naive UI · TypeScript · 78 components</p>
8
8
  <p>
9
9
  <a href="https://www.npmjs.com/package/@robot-admin/naive-ui-components"><img src="https://img.shields.io/npm/v/@robot-admin/naive-ui-components?style=flat-square&amp;color=249D70&amp;labelColor=183C2E" alt="npm version"></a>
10
10
  <a href="./package.json"><img src="https://img.shields.io/badge/Vue-3.5+-249D70?style=flat-square&amp;logo=vue.js&amp;logoColor=white&amp;labelColor=183C2E" alt="Vue 3.5+"></a>
11
- <a href="./package.json"><img src="https://img.shields.io/badge/TypeScript-5.9-3178C6?style=flat-square&amp;logo=typescript&amp;logoColor=white&amp;labelColor=183C2E" alt="TypeScript 5.9"></a>
11
+ <a href="./docs/engineering.en.md#typescript-build-and-consumption"><img src="https://img.shields.io/badge/TypeScript-5.9.3-3178C6?style=flat-square&amp;logo=typescript&amp;logoColor=white&amp;labelColor=183C2E" alt="Build: TypeScript 5.9.3"></a>
12
12
  <a href="https://github.com/ChenyCHENYU/naive-ui-components/actions/workflows/ci.yml"><img src="https://github.com/ChenyCHENYU/naive-ui-components/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
13
13
  <a href="./LICENSE"><img src="https://img.shields.io/badge/License-MIT-64748B?style=flat-square&amp;labelColor=183C2E" alt="MIT License"></a>
14
14
  </p>
15
15
  <p>
16
16
  <a href="#quick-start">Quick start</a> ·
17
17
  <a href="#capability-map">Capabilities</a> ·
18
+ <a href="#integration-recipes">Integration recipes</a> ·
18
19
  <a href="./docs/components.en.md">Component catalog</a> ·
19
20
  <a href="https://www.tzagileteam.com/robot/components/preface">Online docs</a> ·
20
21
  <a href="https://robotadmin.cn">Live demo</a> ·
@@ -24,83 +25,23 @@
24
25
 
25
26
  ## Overview
26
27
 
27
- **Naive UI Components** is a Vue 3 business component library extracted from [Robot Admin](https://github.com/ChenyCHENYU/Robot_Admin), published independently as `@robot-admin/naive-ui-components`. Built on Naive UI, it provides `C_*` components and composables for forms, tables, editors, workflows, files and media. It can also be used in other Vue 3 applications.
28
+ **Naive UI Components** is a Vue 3 library extracted from [Robot Admin](https://github.com/ChenyCHENYU/Robot_Admin) and published independently as `@robot-admin/naive-ui-components`. It provides typed configuration for forms, tables, entity pickers, and workspaces. The host application owns endpoints, permissions, and task execution.
28
29
 
29
- | Design focus | Available today |
30
- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
31
- | Configuration | Typed configuration for fields, columns, actions and dialogs; 8 form layouts |
32
- | Connected types | Field paths, columns, events and instance methods, with helpers such as `defineFormOptions`, `useCForm` and `useTableQuery` |
33
- | Selective loading | 63 component entries, an auto-import resolver, component CSS and base styles for forms and tables |
34
- | Application integration | Global registration or local imports; injectable feedback, locale and defaults; form dialogs compatible with structurally matching headless CRUD controllers |
35
-
36
- The library handles UI and interaction. Applications supply business APIs, authentication, authorization, upload services and platform configuration. The current repository version is **0.40.4**. See the [changelog](./CHANGELOG.md) for release details.
37
-
38
- 0.40 adds continuous input with `edit: 'inline'` and fixes dynamic form visibility, cached workflow sessions and combined category searches. See the [table editing guide](./docs/guides/table-editing.md), [business scenario comparison](./docs/wl-business-scenario-parity.md) and [compatibility guide](./docs/guides/component-contracts.md) (Chinese).
39
-
40
- 0.34 adds state-aware tree icons, richer node contexts and action states, plus organization-chart field mapping, controlled interaction and measured connectors. Use `C_Tree` for hierarchical selection and the independent `C_OrgChart` for reporting relationships. See the [organization examples](./docs/guides/tree-org-examples.md) (Chinese).
41
-
42
- 0.36 adds `C_UserPicker` for organization-based person selection, sharing pagination, drafts and confirmation. Workflow nodes gain real connection ports, explicit conditional targets and the same person-selection interface. See [person selection](./docs/guides/user-picker.md) and [workflow design](./docs/guides/workflow.md) (Chinese).
43
-
44
- Use `C_Select` for standalone selections and freeform tags. Multiple selections in forms and search share the compact tag summary. Date and time fields can bind directly to formatted API strings. See the [composition examples](./docs/guides/data-workflows.md#多选标签和日期时间) (Chinese).
45
-
46
- Remote options, free text suggestions and multi-column entity selection use `C_Select`, `C_AutoComplete` and `C_DataPicker` with a shared request contract. Form and search fields accept `source` directly. See [search workflows](./docs/guides/search-workflows.md#远程选项与自由文本建议) and [scenario coverage](./docs/search-selection-coverage.md) (Chinese).
47
-
48
- Search fields, form fields, and actions can be generated from reactive configuration. Compact density applies consistently across search and data entry, including validation, async options, and dialogs. The application owns dictionaries and permissions, supplying ordinary options and column definitions to components.
49
-
50
- Compose `C_FormSearch`, `C_ActionBar`, `C_FormModal`, and `C_DataPicker` around either `C_Table` or MachTable. Each grid uses its own column definitions and pagination. See [workspace composition](./docs/guides/data-workflows.md), [form density](./docs/guides/form-density.en.md), and [runtime performance](./docs/guides/runtime-performance.md).
51
-
52
- Set search `columns` to `3` or `4` for responsive field tracks with right-aligned actions. Use `presentation="inline"` for selection inside an edit form and the picker's `#query` slot for multiple filters. See [search workflows](./docs/guides/search-workflows.md) and [data picker](./docs/guides/data-picker.md).
53
-
54
- Set `searchOnReset: true` to run both search and reset through `onSearch`. Use `createDataPickerField` for form lookup fields and `config.actions.inline` for row actions. See [workspace composition](./docs/guides/data-workflows.md).
55
-
56
- ## Capability map
57
-
58
- `C_Table` retains the native Naive UI empty state, including provider theme, locale and `componentOptions.DataTable.renderEmpty`. Use `#empty` to replace the content of one table.
59
-
60
- In narrow `C_Table` cells, edit actions wrap so the input stays visible. Utility columns remain compact; automatic business columns share available space proportionally to their measured header/content bases, and preserve their bases with horizontal scrolling when they do not fit. Explicit widths and saved width preferences remain effective.
61
-
62
- `C_Table` shows row numbers and a pager by default and centers all cells, including numbers. Use `:row-number="false"` and `:pagination="false"` to disable the automatic index and pager respectively. Bind server-provided columns and rows directly as shown in the [usage guide](./docs/guides/usage.en.md).
63
-
64
- Checked rows show a leading theme-colored marker; set `--c-table-selected-marker-width: 0px` to hide it. Async exports retain the columns, formatting and file settings captured at startup, and stop downloading after unmount. `createComponentTheme({ primary: '#409eff' })` uses a white foreground for filled buttons and checked controls by default; set `onSolid` centrally or override it through a local Provider. See the [theme guide](./docs/guides/theme.md).
65
-
66
- A `{ type: 'selection' }` column enables selection without repeating `selection: true`. Explicit global or local `selection: false` / `{ enabled: false }` still takes precedence, including when columns change dynamically.
67
-
68
- | Scenario | Representative components | Capabilities |
69
- | --------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
70
- | Data entry | `C_Form` · `C_FormModal` · `C_FormSearch` | Dynamic fields, validation, async submission, search and create/edit dialogs |
71
- | Data operations | `C_Table` · `C_ActionBar` · `C_Tree` · `C_Transfer` | Pagination, trees, inline/row/cell editing, cross-page selection, exports and batch actions |
72
- | Editing | `C_Editor` · `C_Markdown` · `C_Cron` · `C_FormulaEditor` | Rich text, Markdown, Cron previews and local formula evaluation |
73
- | Workflow and planning | `C_AntV` · `C_WorkFlow` · `C_VtableGantt` · `C_FullCalendar` | ER/BPMN/UML, approval flows, Gantt charts and calendars |
74
- | Files and media | `C_Upload` · `C_FilePreview` · `C_VideoPlayer` · `C_AudioPlayer` | Chunked uploads, PDF/Word/Excel previews and audio/video playback |
75
- | Images and maps | `C_Signature` · `C_ImageCropper` · `C_QRCode` · `C_Map` | Signatures, cropping, QR codes, OpenStreetMap and AMap |
76
- | Workspace | `C_Menu` · `C_Tabs` · `C_TagsView` · `C_GlobalSearch` | Menus, view switching, tab navigation and global search |
77
- | Common interactions | `C_Login` · `C_Captcha` · `C_Guide` · `C_PageLoading` | Login UI, human verification, onboarding and navigation feedback |
78
-
79
- Browse [all 63 components and dependencies](./docs/components.en.md), or explore scenarios in [Robot Admin](https://robotadmin.cn). Cron previews calculate times only; formulas run locally. Production human verification requires server validation. See the [usage guide](./docs/guides/usage.en.md).
30
+ The current repository version is **0.41.0**. See the [changelog](./CHANGELOG.md) for release details.
80
31
 
81
32
  ## Quick start
82
33
 
83
34
  ### Install
84
35
 
85
- Add the library and required peer dependencies to an existing Vue 3 application:
36
+ Install the library alongside its required peers in your Vue 3 project. Use your project's package manager.
86
37
 
87
38
  ```bash
88
- bun add @robot-admin/naive-ui-components
89
- bun add vue@^3.5.3 naive-ui@^2.35.0
39
+ bun add @robot-admin/naive-ui-components vue@^3.5.3 naive-ui@^2.35.0
90
40
  ```
91
41
 
92
- The minimum peer profile covers browser bundling, types and CJS SSR. The verified native Node ESM SSR configuration uses Naive UI 2.45.3. See the [consumer environment matrix](./docs/engineering.en.md#consumer-environment-matrix).
93
-
94
- You can also use your project's npm or pnpm setup. Install optional peers only for the features that need them:
95
-
96
- | Feature | Additional dependency |
97
- | -------------------------------------------- | ------------------------------ |
98
- | Root imports / `C_Breadcrumb` / `C_TagsView` | `vue-router@^4.6.4` / `^5.3.1` |
99
- | `C_Table` row/column dragging | `sortablejs@^1.15.7` |
42
+ The package root, `C_Breadcrumb`, and `C_TagsView` require `vue-router@^4.6.4` or `^5.3.1`. Table row and column dragging require `sortablejs@^1.15.7`. See the [consumer environment matrix](./docs/engineering.en.md#consumer-environment-matrix) for verified browser, declaration, and SSR combinations.
100
43
 
101
- ### Build a form from configuration
102
-
103
- Place this example in `App.vue`. It uses a component subpath and its CSS entry, with no global registration required:
44
+ ### Configure a form
104
45
 
105
46
  ```vue
106
47
  <script setup lang="ts">
@@ -108,170 +49,96 @@ Place this example in `App.vue`. It uses a component subpath and its CSS entry,
108
49
  import {
109
50
  C_Form,
110
51
  defineFormOptions,
111
- useCForm,
112
52
  } from '@robot-admin/naive-ui-components/C_Form'
113
53
  import '@robot-admin/naive-ui-components/C_Form/style.css'
114
54
 
115
- interface Contact {
116
- name: string
117
- email: string
118
- }
119
-
120
- const result = ref('')
121
- const { formRef, bindings } = useCForm<Contact>({
122
- initialValues: { name: '', email: '' },
123
- options: defineFormOptions<Contact>([
124
- { type: 'input', prop: 'name', label: 'Name', required: true },
125
- { type: 'input', prop: 'email', label: 'Email' },
126
- ]),
127
- config: {
128
- labelPlacement: 'top',
129
- onSubmit: ({ model }) => {
130
- result.value = `Validated: ${model.name}`
131
- },
132
- },
133
- })
55
+ const draft = ref({ name: '' })
56
+ const fields = defineFormOptions<typeof draft.value>([
57
+ { type: 'input', prop: 'name', label: 'Name', required: true },
58
+ ])
134
59
  </script>
135
60
 
136
61
  <template>
137
62
  <C_Form
138
- ref="formRef"
139
- v-bind="bindings"
63
+ v-model="draft"
64
+ :options="fields"
140
65
  />
141
- <p v-if="result">{{ result }}</p>
142
66
  </template>
143
67
  ```
144
68
 
145
- The form includes submission, reset and validation. For persistence, await your async request inside `config.onSubmit`; use `@submit` for completion notifications. See the [usage guide](./docs/guides/usage.en.md) for layouts, validation rules, dialogs and remote tables.
146
-
147
- ### Scope table preferences per account
148
-
149
- Register once when the app starts. `session` is your existing reactive identity state; keep it `undefined` until the identity is fully resolved:
150
-
151
- ```ts
152
- import { TABLE_GLOBAL_CONFIG_KEY } from '@robot-admin/naive-ui-components/config'
153
-
154
- app.provide(TABLE_GLOBAL_CONFIG_KEY, {
155
- defaults: { density: 'compact' },
156
- get persistPrefix() {
157
- const scope = session.value
158
- return scope
159
- ? JSON.stringify([scope.tenantId, scope.companyId, scope.userId])
160
- : undefined
161
- },
162
- })
163
- ```
164
-
165
- Each page only supplies a stable table ID, such as `config: { persistKey: 'shipping' }`. The compact default applies to headers, regular cells, actions and editors; a regional `C_Density` or local config can override it. Column visibility, order and widths are stored per scope without mutating business column definitions. The lightweight `/config` entry exports the same configuration key as `/C_Table`.
69
+ Pass a save handler to `config.onSubmit`. Use `useCForm()` when code outside the template needs to read, update, or validate the form. See [forms and tables](./docs/guides/usage.en.md#recommended-c_form--c_table-setup) for full examples.
166
70
 
167
- Declare the getter at startup and change its reactive value when accounts change; do not remove the field. An explicitly configured prefix that is `undefined`, empty or whitespace disables preference reads and writes, without falling back to legacy caches. Omitting `persistPrefix` retains legacy keys. Tables without `persistKey` keep settings only in memory and clear them on scope changes. See the [scope guide](./docs/guides/table-density.md#表格偏好与作用域) (Chinese).
71
+ ### Use public props directly
168
72
 
169
- ## Imports and styles
73
+ Pass simple props directly, as in `<C_Progress :percentage="62.5" />`. When you extract props into a configuration object, import its public type, such as `ProgressProps`, from the component subpath and check it with `satisfies`. See the [waterfall guide](./docs/guides/waterfall.md) for business fields inferred in slots.
170
74
 
171
- ### Choose an import strategy
75
+ ## Capability map
172
76
 
173
- | Strategy | Use case | Styles |
174
- | -------------------- | ------------------------------------------ | ------------------------------------------- |
175
- | Component subpaths | Explicit control over each component entry | Import `C_Component/style.css` |
176
- | Auto-import resolver | Use components directly in templates | Set `importStyle: true` explicitly |
177
- | Named root imports | Existing Tree-Shaking setups | Import the required CSS or full `style.css` |
178
- | Global `app.use()` | Register the entire library | Import full `style.css` |
77
+ | Area | Representative components | Capabilities |
78
+ | ----------------------- | ------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------- |
79
+ | Forms and tables | `C_Form` · `C_FormModal` · `C_FormSearch` · `C_Table` | Configurable fields, validation, inline editing, pagination, selection and export |
80
+ | Search and selection | `C_Select` · `C_AutoComplete` · `C_DataPicker` · `C_UserPicker` · `C_Tree` | Remote options, suggestions, table pickers, organization-based selection and tree navigation |
81
+ | Approvals and tasks | `C_WorkFlow` · `C_ApprovalViewer` · `C_NotificationInbox` · `C_TaskPanel` | Workflow definitions, approval history, inbox lists and background task progress |
82
+ | Data operations | `C_ImportWizard` · `C_BatchResult` · `C_ChangeReview` · `C_FilterBuilder` | Import preflight, itemized results, field diffs and combined filters |
83
+ | Workspaces and planning | `C_Tabs` · `C_SplitPane` · `C_OrgChart` · `C_ResourceSchedule` · `C_TaskBoard` | Pane layouts, organization charts, resource schedules and controlled task moves |
84
+ | Content and media | `C_Editor` · `C_Markdown` · `C_Attachments` · `C_FilePreview` · `C_WaterFall` | Content editing, attachments, document preview and long lists |
179
85
 
180
- ### Automatic imports
86
+ See the [component catalog](./docs/components.en.md) for the remaining components and dependencies. Explore how the components are used in [Robot Admin](https://robotadmin.cn).
181
87
 
182
- Install `unplugin-vue-components`, then add the resolver to your Vite configuration:
88
+ ## Integration recipes
183
89
 
184
- ```bash
185
- bun add -d unplugin-vue-components
186
- ```
90
+ | Goal | Public entry |
91
+ | ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
92
+ | Export a chosen range | Set `C_Table`'s `export.scopes` for current page, selected rows, or all matching results. Use `requestData` or `onExportMatching` for remote export and pass the last successful query to the host. [Export guide](./docs/guides/table-density.md#异步导出的快照与卸载) |
93
+ | Share a query across tabs | Import `useTabbedQuery` from `/workflows` and provide the active tab, initial criteria, and a request callback. Each tab keeps its pagination, and a newly submitted query resets all pages. [Tabbed queries](./docs/guides/data-workflows.md#多页签共享查询) |
94
+ | Fill fields from a selected record | Use `createDataPickerField({ source, columns, mapFields })`. The source determines the row type. The selected value and related fields commit together. Selecting the same entity preserves manual edits. [Entity selection and field mapping](./docs/guides/data-picker.md#表单内嵌选择) |
95
+ | Protect an unsaved draft | Configure `beforeClose` on `C_FormModal`. Use `requestDiscard()` and `sessionKey` to apply the same guard when switching records in an open dialog. [Form dialogs](./docs/guides/usage.en.md#recommended-c_form--c_table-setup) |
96
+ | Review approval history | Pass a business key and data source to `C_ApprovalViewer`. It displays submissions and handling records. An inbox can pass `instance-id` to open a specific instance. The optional diagram loads on demand. [Approval viewer](./docs/guides/approval-viewer.md) |
97
+ | Track background jobs | Pass tasks to `C_TaskPanel` and handle download and retry events. Running tasks distinguish known progress from unknown progress, and itemized results load when opened. [Task panel](./docs/guides/task-panel.md) |
187
98
 
188
- ```ts
189
- // vite.config.ts
190
- import { defineConfig } from 'vite'
191
- import vue from '@vitejs/plugin-vue'
192
- import Components from 'unplugin-vue-components/vite'
193
- import { RobotNaiveUiResolver } from '@robot-admin/naive-ui-components/resolver'
194
-
195
- export default defineConfig({
196
- plugins: [
197
- vue(),
198
- Components({
199
- resolvers: [RobotNaiveUiResolver({ importStyle: true })],
200
- }),
201
- ],
202
- })
203
- ```
99
+ ### Scope table preferences per account
204
100
 
205
- The resolver uses component subpaths by default. `importStyle` defaults to `false`, so enable automatic CSS explicitly. Both `true` and `'full'` load full component styles. `'base'` excludes built-in rich-text editor styles for `C_Form` / `C_Table`; other components retain full styles. Choose base styles only when not using built-in rich-text fields.
101
+ Provide a reactive `persistPrefix` via `TABLE_GLOBAL_CONFIG_KEY`, then give each table a stable `config.persistKey`. See [table preference scoping](./docs/guides/table-density.md#表格偏好与作用域) for the full setup.
206
102
 
207
- Each component CSS entry loads its composed styles and shared design tokens automatically. Manual imports can use `C_Form/base.css` and `C_Table/base.css`; full styles also have `full.css` aliases. Load heavy editors, flows, maps and media with their business routes. See [import strategies](./docs/guides/usage.en.md#import-strategies) for details and global registration examples.
103
+ ## Imports and styles
208
104
 
209
- Minimal consumer builds reduced initial JS gzip by 36.1% for the base form and 34.6% for the display table, including Vue and Naive UI. See the [measurement and automated budgets](./docs/performance-0.15.0.md) (Chinese) for scope and limitations.
105
+ | Strategy | Styles |
106
+ | ----------------------------------- | --------------------------------------------------------------------------------------------------- |
107
+ | Component subpaths | Import `C_Component/style.css` for the component, composed styles, and shared tokens |
108
+ | Resolver | Set `RobotNaiveUiResolver({ importStyle: true })` in Vite's `unplugin-vue-components` configuration |
109
+ | Package root or global registration | Import the individual styles you need or the package root's `style.css` |
210
110
 
211
- Root imports aggregate navigation components and require `vue-router` at runtime. Applications without it should use component subpaths; their unrelated optional peers are not required.
111
+ Use full styles for built-in rich-text fields. Ordinary forms and tables can use `C_Form/base.css` and `C_Table/base.css`, or `importStyle: 'base'` with the resolver. See [import strategies](./docs/guides/usage.en.md#import-strategies) for configuration examples.
212
112
 
213
113
  ## Documentation
214
114
 
215
- | Document | Contents |
216
- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
217
- | [Architecture and isolation](./docs/architecture.en.md) | Dependency boundaries, instance ownership and the independent Element Plus roadmap |
218
- | [Component catalog](./docs/components.en.md) | All 63 components, dependencies and behavior boundaries |
219
- | [Usage guide](./docs/guides/usage.en.md) | Imports, forms/tables, Cron/formulas, maps, onboarding, captcha, login and page loading |
220
- | [Density and workbenches](./docs/guides/table-density.md) | Shared form/search/table density, edit modes, split panes and tree capabilities (Chinese) |
221
- | [Theme and visual standard](./docs/guides/theme.md) | Semantic colors, light/dark mode, control sizes and local overrides with the existing provider (Chinese) |
222
- | [Lists and async tasks](./docs/guides/runtime-performance.md) | Automatic list windows, chat scrolling, search indexes and media task ownership (Chinese) |
223
- | [Waterfall lists](./docs/guides/waterfall.md) | Automatic windows, nested scrolling, measured cards and keyboard navigation (Chinese) |
224
- | [Compatible API migration](./docs/guides/api-migration.md) | Standard models, application renderers and read-only migration checks (Chinese) |
225
- | [Production coverage review](./docs/wl-ui-produce-coverage.md) | wl-ui-produce capability mapping and adapter boundaries (Chinese) |
226
- | [Component audit closure](./docs/component-audit-closure-0.40.4.md) | Per-component fixes, API/type cleanup, compatibility boundaries and packaged-consumer validation (Chinese) |
227
- | [Development and build](./docs/engineering.en.md) | Source structure, six-stage build, adding components, checks and releases |
228
- | [Brand assets](./docs/assets/README.md) | Robot family logo, editable SVG sources and high-resolution PNGs |
229
- | [Changelog](./CHANGELOG.md) | Releases and compatibility changes |
230
- | [Security policy](./SECURITY.md) | Vulnerability reporting and maintenance policy |
231
-
232
- The [2026-10-18 scan record](./docs/security-scan-2026-10-18.md) documents two outstanding upstream advisories; the [2026-10-06 record](./docs/security-scan-2026-10-06.md) is a historical archive. Both are in Chinese. Run `bun run check:audit` to assess the current dependency state.
115
+ | Document | Coverage |
116
+ | ----------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
117
+ | [Component catalog](./docs/components.en.md) | Public components, dependencies, and usage boundaries |
118
+ | [Usage guide](./docs/guides/usage.en.md) · [Business scenes](./docs/guides/scene-components.md) | Component configuration and composition examples |
119
+ | [Theme](./docs/guides/theme.md) · [Architecture](./docs/architecture.en.md) · [Runtime performance](./docs/guides/runtime-performance.md) | Theme tokens, instance isolation, long lists, and deferred loading |
120
+ | [API migration](./docs/guides/api-migration.md) · [Changelog](./CHANGELOG.md) | Adoption notes and release history |
121
+ | [Maintenance and releases](./docs/engineering.en.md) · [Security](./SECURITY.md) · [Brand assets](./docs/assets/README.md) | Build and release checks, dependency auditing, logo and banner sources |
233
122
 
234
123
  ## Local development
235
124
 
236
- Maintaining this repository requires **Node.js ≥20.19.0** and the pinned **Bun 1.4.2**. CI uses `.node-version`, the frozen lockfile and checks actual dependency overrides. The minimum Bun version for consumers remains 1.3.14.
125
+ Use Node.js 20.19+ and the Bun version pinned in the repository's `packageManager` field.
237
126
 
238
127
  ```bash
239
- git clone https://github.com/ChenyCHENYU/naive-ui-components.git
240
- cd naive-ui-components
241
128
  bun install --frozen-lockfile
242
- bun run dev
243
- ```
244
-
245
- `dev` watches library builds and shared SCSS. Interactive demonstrations are provided by Robot Admin, which consumes the library.
246
-
247
- ```bash
248
- bun run verify # Lint, types, logic/component tests, exports, build and consumer types
249
- bun run check:audit # Separate dependency audit; CI runs this before verify
129
+ bun run verify
250
130
  ```
251
131
 
252
- See [development and build](./docs/engineering.en.md) for individual checks and publishing. The CI workflow is defined in [ci.yml](./.github/workflows/ci.yml).
132
+ `verify` runs static checks, unit and component tests, packaged-consumer checks, and bundle budget checks. For interactive demos, run `bun run build` followed by `bun run dev:search-workflows` and open the [local scene gallery](http://127.0.0.1:4188/scenes.html). Run `bun run test:browser` after `verify` to check browser interactions.
253
133
 
254
134
  ## Robot ecosystem
255
135
 
256
- | Project | Responsibility |
257
- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
258
- | **Naive UI Components** | Independently consumable Vue 3 business components and composables |
259
- | [Robot Admin](https://github.com/ChenyCHENYU/Robot_Admin) | PC Web application template, business pages and interactive demos |
260
- | [robot-admin-packages](https://github.com/ChenyCHENYU/robot-admin-packages) | Requests, validation, themes, layouts, directives, file utilities and Git tooling |
261
- | [Robot Cloud](https://github.com/ChenyCHENYU/Robot_Cloud) | Authentication, company context, system management and authorization services |
136
+ | Project | Role |
137
+ | --------------------------------------------------------------------------- | ------------------------------------------------------------------- |
138
+ | [Robot Admin](https://github.com/ChenyCHENYU/Robot_Admin) | PC web starter and component scenarios |
139
+ | [robot-admin-packages](https://github.com/ChenyCHENYU/robot-admin-packages) | Requests, validation, themes, layouts, files, and engineering tools |
140
+ | [Robot Cloud](https://github.com/ChenyCHENYU/Robot_Cloud) | Authentication, company context, and authorization services |
262
141
 
263
142
  ## License
264
143
 
265
144
  [MIT License](./LICENSE) · Made by [CHENY](https://github.com/ChenyCHENYU)
266
-
267
- ## Content widths and status columns (0.24)
268
-
269
- Columns without `width` now measure their header and up to 100 evenly sampled loaded rows, using formatted values and status labels. Content measurement bases default to 80–360px; final automatic widths may grow proportionally to fill available space. Saving a manual width preserves the original ellipsis, tooltip and default minimum. Action columns default to the right edge; the internal canvas absorbs spare space after shrinking without resizing peer business columns. Native links and buttons inside an ellipsis cell also shrink with a trailing ellipsis. Use `minWidth/maxWidth` to adjust the bounds. Explicit widths (including native strings), saved column widths and `display.columnWidth` take precedence. `autoWidth: false` restores the 180px default. Long automatic cells use ellipsis and a tooltip; horizontal virtualization uses the same numeric widths.
270
-
271
- Use `{ key: 'status', status: true }` for themed status tags, or `status: { S1B: { label: 'Review', color: 'danger' }, S1C: 'success' }`. Semantic colors and CSS colors are supported. Unknown codes stay neutral, zero/false stay valid, and explicit render functions win. Display changes never rewrite data or export policy. Measurement does not invoke render functions; give graphical/custom columns explicit widths. Data and column updates remeasure a bounded sample; all caches remain component-local.
272
-
273
- Headers display their full text by default, independently of cell ellipsis. Initial layout, explicit or restored narrow widths, and interactive resizing share a minimum that includes the entire title and its sort/filter controls. The 360px measurement cap applies only to cell content; longer headers use internal horizontal scrolling. Custom header content should declare an appropriate minWidth.
274
-
275
- Compact forms and searches use a 4px row gap and a 2px empty feedback reserve; validation messages grow naturally. Compact form dialogs use tighter padding and internal scrolling. Per-field entrance and layout-size animations have been removed.
276
-
277
- The default adaptive layout distributes spare viewport space proportionally among automatic business columns; crowded tables keep their measured bases and scroll horizontally. Utility, explicit-width and manually resized columns retain their widths. Resolved numeric widths drive both the table and horizontal scroll range. Resizing changes only the target column, including after preferences are committed. Explicit native `table-layout` attributes or nonnumeric widths retain Naive UI layout semantics and its `scrollX` minimum.
@@ -0,0 +1 @@
1
+ require(`./chunk.cjs`);const e=require(`./useComponentLocale.cjs`),t=require(`./export-helper.cjs`);require(`./C_Icon2.cjs`);const n=require(`./actionIcon.cjs`);let r=require(`vue`),i=require(`naive-ui`);const a=(0,r.defineComponent)({__name:`ActionOverflow`,props:{anchor:{},threshold:{},entries:{},size:{},resolve:{type:Function}},emits:[`narrow`,`select`],setup(t,{emit:a}){let o=t,s=a,{t:c}=e.t();(0,r.watch)(()=>[o.anchor,o.threshold],([e,t],n,r)=>{if(s(`narrow`,!1),!e)return;let i=()=>{let{width:n}=e.getBoundingClientRect();n>0&&s(`narrow`,n<t)};if(i(),typeof ResizeObserver>`u`)return;let a=new ResizeObserver(i);a.observe(e),r(()=>a.disconnect())},{immediate:!0,flush:`post`}),(0,r.onBeforeUnmount)(()=>s(`narrow`,!1));let l=(0,r.computed)(()=>o.entries.map(e=>{let{label:t,icon:r,disabled:i}=o.resolve(e);return{key:e.renderKey,label:t,disabled:i,icon:()=>n.t(r,14)}}));function u(e){let t=o.entries.find(t=>t.renderKey===e);t&&s(`select`,t)}return(e,a)=>t.entries.length?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(i.NDropdown),{key:0,trigger:`click`,options:l.value,onSelect:u},{default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(i.NButton),{class:`actions-overflow`,size:t.size,"render-icon":()=>(0,r.unref)(n.t)(`mdi:dots-horizontal`,14),"aria-haspopup":`menu`},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(c)(`common.more`)),1)]),_:1},8,[`size`,`render-icon`])]),_:1},8,[`options`])):(0,r.createCommentVNode)(`v-if`,!0)}});var o=t.t(a,[[`__scopeId`,`data-v-41d2044a`]]);exports.default=o;
@@ -0,0 +1 @@
1
+ import{t as e}from"./useComponentLocale.js";import{t}from"./export-helper.js";import"./C_Icon2.js";import{t as n}from"./actionIcon.js";import{computed as r,createBlock as i,createCommentVNode as a,createTextVNode as o,createVNode as s,defineComponent as c,onBeforeUnmount as l,openBlock as u,toDisplayString as d,unref as f,watch as p,withCtx as m}from"vue";import{NButton as h,NDropdown as g}from"naive-ui";var _=t(c({__name:`ActionOverflow`,props:{anchor:{},threshold:{},entries:{},size:{},resolve:{type:Function}},emits:[`narrow`,`select`],setup(t,{emit:c}){let _=t,v=c,{t:y}=e();p(()=>[_.anchor,_.threshold],([e,t],n,r)=>{if(v(`narrow`,!1),!e)return;let i=()=>{let{width:n}=e.getBoundingClientRect();n>0&&v(`narrow`,n<t)};if(i(),typeof ResizeObserver>`u`)return;let a=new ResizeObserver(i);a.observe(e),r(()=>a.disconnect())},{immediate:!0,flush:`post`}),l(()=>v(`narrow`,!1));let b=r(()=>_.entries.map(e=>{let{label:t,icon:r,disabled:i}=_.resolve(e);return{key:e.renderKey,label:t,disabled:i,icon:()=>n(r,14)}}));function x(e){let t=_.entries.find(t=>t.renderKey===e);t&&v(`select`,t)}return(e,r)=>t.entries.length?(u(),i(f(g),{key:0,trigger:`click`,options:b.value,onSelect:x},{default:m(()=>[s(f(h),{class:`actions-overflow`,size:t.size,"render-icon":()=>f(n)(`mdi:dots-horizontal`,14),"aria-haspopup":`menu`},{default:m(()=>[o(d(f(y)(`common.more`)),1)]),_:1},8,[`size`,`render-icon`])]),_:1},8,[`options`])):a(`v-if`,!0)}}),[[`__scopeId`,`data-v-41d2044a`]]);export{_ as default};