@robot-admin/naive-ui-components 0.35.0 → 0.37.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 (372) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +8 -5
  3. package/README_EN.md +21 -18
  4. package/THIRD_PARTY_NOTICES.md +10 -1
  5. package/dist/BPMN.cjs +1 -0
  6. package/dist/BPMN.js +1 -0
  7. package/dist/C_ActionBar.css +68 -55
  8. package/dist/C_ActionBar2.cjs +1 -1
  9. package/dist/C_ActionBar2.js +1 -1
  10. package/dist/C_AntV.cjs +1 -1
  11. package/dist/C_AntV.css +156 -153
  12. package/dist/C_AntV.js +1 -1
  13. package/dist/C_AntV2.cjs +1 -4
  14. package/dist/C_AntV2.js +1 -4
  15. package/dist/C_AudioPlayer.css +74 -61
  16. package/dist/C_AudioPlayer2.cjs +1 -1
  17. package/dist/C_AudioPlayer2.js +1 -1
  18. package/dist/C_AutoComplete.css +3 -3
  19. package/dist/C_AutoComplete2.cjs +1 -1
  20. package/dist/C_AutoComplete2.js +1 -1
  21. package/dist/C_AvatarGroup.css +38 -38
  22. package/dist/C_AvatarGroup2.cjs +1 -1
  23. package/dist/C_AvatarGroup2.js +1 -1
  24. package/dist/C_Barcode.css +9 -9
  25. package/dist/C_Barcode2.cjs +1 -1
  26. package/dist/C_Barcode2.js +1 -1
  27. package/dist/C_Breadcrumb.css +73 -60
  28. package/dist/C_Breadcrumb2.cjs +1 -1
  29. package/dist/C_Breadcrumb2.js +1 -1
  30. package/dist/C_Captcha.css +74 -40
  31. package/dist/C_Captcha.d.ts +2 -2
  32. package/dist/C_Captcha2.cjs +1 -1
  33. package/dist/C_Captcha2.js +1 -1
  34. package/dist/C_Cascade.css +4 -4
  35. package/dist/C_Cascade2.cjs +1 -1
  36. package/dist/C_Cascade2.js +1 -1
  37. package/dist/C_Chat.css +136 -115
  38. package/dist/C_Chat2.cjs +1 -1
  39. package/dist/C_Chat2.js +1 -1
  40. package/dist/C_City.css +57 -56
  41. package/dist/C_City2.cjs +1 -1
  42. package/dist/C_City2.js +1 -1
  43. package/dist/C_Code.cjs +1 -1
  44. package/dist/C_Code.css +110 -45
  45. package/dist/C_Code.js +1 -1
  46. package/dist/C_Code2.cjs +2 -1
  47. package/dist/C_Code2.js +2 -1
  48. package/dist/C_CollapsePanel.css +67 -54
  49. package/dist/C_CollapsePanel2.cjs +1 -1
  50. package/dist/C_CollapsePanel2.js +1 -1
  51. package/dist/C_ContextMenu.css +36 -23
  52. package/dist/C_ContextMenu2.cjs +1 -1
  53. package/dist/C_ContextMenu2.js +1 -1
  54. package/dist/C_Cron.css +144 -131
  55. package/dist/C_Cron2.cjs +1 -1
  56. package/dist/C_Cron2.js +1 -1
  57. package/dist/C_DataPicker.cjs +1 -1
  58. package/dist/C_DataPicker.css +95 -80
  59. package/dist/C_DataPicker.d.cts +3 -2
  60. package/dist/C_DataPicker.d.ts +5 -4
  61. package/dist/C_DataPicker.js +1 -1
  62. package/dist/C_DataPicker2.cjs +1 -0
  63. package/dist/C_DataPicker2.js +1 -0
  64. package/dist/C_Date.css +5 -5
  65. package/dist/C_Date.d.cts +1 -1
  66. package/dist/C_Date.d.ts +1 -1
  67. package/dist/C_Date2.cjs +1 -1
  68. package/dist/C_Date2.js +1 -1
  69. package/dist/C_Density2.cjs +1 -1
  70. package/dist/C_Density2.js +1 -1
  71. package/dist/C_Draggable.css +71 -71
  72. package/dist/C_Draggable2.cjs +1 -1
  73. package/dist/C_Draggable2.js +1 -1
  74. package/dist/C_Editor.css +51 -76
  75. package/dist/C_Editor2.cjs +1 -1
  76. package/dist/C_Editor2.js +1 -1
  77. package/dist/C_FilePreview.css +109 -109
  78. package/dist/C_FilePreview2.cjs +1 -1
  79. package/dist/C_FilePreview2.js +1 -1
  80. package/dist/C_Form.base.css +64 -74
  81. package/dist/C_Form.cjs +1 -1
  82. package/dist/C_Form.css +64 -74
  83. package/dist/C_Form.d.cts +1 -2
  84. package/dist/C_Form.d.ts +2 -3
  85. package/dist/C_Form.js +1 -1
  86. package/dist/C_FormModal.css +69 -56
  87. package/dist/C_FormModal.d.ts +2 -2
  88. package/dist/C_FormModal2.cjs +1 -1
  89. package/dist/C_FormModal2.js +1 -1
  90. package/dist/C_FormSearch.css +99 -99
  91. package/dist/C_FormSearch.d.ts +2 -2
  92. package/dist/C_FormulaEditor.css +171 -150
  93. package/dist/C_FullCalendar.css +35 -11
  94. package/dist/C_FullCalendar2.cjs +1 -1
  95. package/dist/C_FullCalendar2.js +1 -1
  96. package/dist/C_GlobalSearch.css +221 -200
  97. package/dist/C_GlobalSearch2.cjs +1 -1
  98. package/dist/C_GlobalSearch2.js +1 -1
  99. package/dist/C_Guide.css +37 -24
  100. package/dist/C_Guide2.cjs +1 -1
  101. package/dist/C_Guide2.js +1 -1
  102. package/dist/C_Icon.css +13 -0
  103. package/dist/C_ImageCropper.css +41 -40
  104. package/dist/C_ImageCropper2.cjs +1 -1
  105. package/dist/C_ImageCropper2.js +1 -1
  106. package/dist/C_Language.css +15 -2
  107. package/dist/C_Language2.cjs +1 -1
  108. package/dist/C_Language2.js +1 -1
  109. package/dist/C_Loading.css +18 -18
  110. package/dist/C_Loading2.cjs +1 -1
  111. package/dist/C_Loading2.js +1 -1
  112. package/dist/C_Login.css +88 -54
  113. package/dist/C_Login.d.ts +2 -2
  114. package/dist/C_Login2.cjs +1 -1
  115. package/dist/C_Login2.js +1 -1
  116. package/dist/C_Map.css +13 -13
  117. package/dist/C_Map2.cjs +1 -1
  118. package/dist/C_Map2.js +1 -1
  119. package/dist/C_Markdown.css +69 -60
  120. package/dist/C_Markdown2.cjs +1 -1
  121. package/dist/C_Markdown2.js +1 -1
  122. package/dist/C_NotificationCenter.css +173 -199
  123. package/dist/C_NotificationCenter2.cjs +1 -1
  124. package/dist/C_NotificationCenter2.js +1 -1
  125. package/dist/C_OrgChart.css +16 -16
  126. package/dist/C_OrgChart2.cjs +1 -1
  127. package/dist/C_OrgChart2.js +1 -1
  128. package/dist/C_PageLoading.css +33 -33
  129. package/dist/C_QRCode.css +14 -14
  130. package/dist/C_QRCode2.cjs +1 -1
  131. package/dist/C_QRCode2.js +1 -1
  132. package/dist/C_Select.css +4 -4
  133. package/dist/C_Select.d.cts +1 -1
  134. package/dist/C_Select.d.ts +1 -1
  135. package/dist/C_Select2.cjs +1 -1
  136. package/dist/C_Select2.js +1 -1
  137. package/dist/C_Signature.css +25 -25
  138. package/dist/C_Signature2.cjs +1 -1
  139. package/dist/C_Signature2.js +1 -1
  140. package/dist/C_Skeleton.css +28 -16
  141. package/dist/C_Skeleton2.cjs +1 -1
  142. package/dist/C_Skeleton2.js +1 -1
  143. package/dist/C_SplitPane.css +82 -70
  144. package/dist/C_SplitPane2.cjs +1 -1
  145. package/dist/C_SplitPane2.js +1 -1
  146. package/dist/C_Steps.css +48 -48
  147. package/dist/C_Steps2.cjs +1 -1
  148. package/dist/C_Steps2.js +1 -1
  149. package/dist/C_Table.base.css +302 -299
  150. package/dist/C_Table.css +238 -225
  151. package/dist/C_Table.d.cts +2 -2
  152. package/dist/C_Table.d.ts +9 -5
  153. package/dist/C_Table2.cjs +4 -4
  154. package/dist/C_Table2.js +4 -4
  155. package/dist/C_Tabs.css +11 -51
  156. package/dist/C_TagsView.css +91 -84
  157. package/dist/C_TagsView2.cjs +1 -1
  158. package/dist/C_TagsView2.js +1 -1
  159. package/dist/C_Theme.css +13 -0
  160. package/dist/C_Time.css +5 -5
  161. package/dist/C_Time2.cjs +1 -1
  162. package/dist/C_Time2.js +1 -1
  163. package/dist/C_Timeline.css +112 -71
  164. package/dist/C_Timeline2.cjs +1 -1
  165. package/dist/C_Timeline2.js +1 -1
  166. package/dist/C_Transfer.css +69 -60
  167. package/dist/C_Transfer2.cjs +1 -1
  168. package/dist/C_Transfer2.js +1 -1
  169. package/dist/C_Tree.css +30 -30
  170. package/dist/C_Tree.d.cts +2 -1
  171. package/dist/C_Tree.d.ts +8 -4
  172. package/dist/C_Tree2.cjs +1 -1
  173. package/dist/C_Tree2.js +1 -1
  174. package/dist/C_Upload.css +113 -116
  175. package/dist/C_Upload2.cjs +1 -1
  176. package/dist/C_Upload2.js +1 -1
  177. package/dist/C_UserPicker.cjs +1 -0
  178. package/dist/C_UserPicker.css +75 -0
  179. package/dist/C_UserPicker.d.cts +3 -0
  180. package/dist/C_UserPicker.d.ts +7 -0
  181. package/dist/C_UserPicker.js +1 -0
  182. package/dist/C_VideoPlayer.cjs +1 -1
  183. package/dist/C_VideoPlayer.css +138 -119
  184. package/dist/C_VideoPlayer.js +1 -1
  185. package/dist/C_VideoPlayer2.cjs +3 -3
  186. package/dist/C_VideoPlayer2.js +3 -3
  187. package/dist/C_VtableGantt.css +37 -40
  188. package/dist/C_WaterFall.css +55 -46
  189. package/dist/C_WaterFall2.cjs +1 -1
  190. package/dist/C_WaterFall2.js +1 -1
  191. package/dist/C_WorkFlow.css +757 -541
  192. package/dist/C_WorkFlow.d.cts +2 -2
  193. package/dist/C_WorkFlow.d.ts +7 -2
  194. package/dist/C_WorkFlow2.cjs +1 -1
  195. package/dist/C_WorkFlow2.js +1 -1
  196. package/dist/Card.cjs +1 -1
  197. package/dist/Card.js +1 -1
  198. package/dist/Dynamic.cjs +1 -1
  199. package/dist/Dynamic.js +1 -1
  200. package/dist/ER.cjs +1 -0
  201. package/dist/ER.js +1 -0
  202. package/dist/NodeConfigModal.cjs +1 -0
  203. package/dist/NodeConfigModal.js +1 -0
  204. package/dist/SearchFieldSettings.cjs +1 -1
  205. package/dist/SearchFieldSettings.js +1 -1
  206. package/dist/Steps.cjs +1 -1
  207. package/dist/Steps.js +1 -1
  208. package/dist/Tabs.cjs +1 -1
  209. package/dist/Tabs.js +1 -1
  210. package/dist/UML.cjs +4 -0
  211. package/dist/UML.js +4 -0
  212. package/dist/conditions.cjs +1 -0
  213. package/dist/conditions.js +1 -0
  214. package/dist/config.cjs +1 -1
  215. package/dist/config.d.cts +3 -10
  216. package/dist/config.d.ts +3 -10
  217. package/dist/config.js +1 -1
  218. package/dist/constants.d.cts +1 -1
  219. package/dist/constants.d.ts +1 -1
  220. package/dist/constants3.d.cts +5 -5
  221. package/dist/constants3.d.ts +5 -5
  222. package/dist/constants4.d.cts +3 -3
  223. package/dist/constants4.d.ts +3 -3
  224. package/dist/constants5.d.cts +2 -2
  225. package/dist/constants5.d.ts +2 -2
  226. package/dist/context.cjs +1 -0
  227. package/dist/{useFormConfig.d.cts → context.d.cts} +8 -2
  228. package/dist/{useFormConfig.d.ts → context.d.ts} +8 -2
  229. package/dist/context.js +1 -0
  230. package/dist/createPageLoading.cjs +1 -1
  231. package/dist/createPageLoading.js +1 -1
  232. package/dist/data2.d.cts +7 -7
  233. package/dist/data2.d.ts +7 -7
  234. package/dist/data3.cjs +1 -1
  235. package/dist/data3.js +1 -1
  236. package/dist/dateRange.d.ts +1 -1
  237. package/dist/editors.d.cts +10 -235
  238. package/dist/editors.d.ts +10 -235
  239. package/dist/feedback.cjs +1 -1
  240. package/dist/feedback.js +1 -1
  241. package/dist/fieldRenderers.cjs +1 -1
  242. package/dist/fieldRenderers.js +1 -1
  243. package/dist/formField.cjs +1 -1
  244. package/dist/formField.d.cts +7 -1190
  245. package/dist/formField.d.ts +7 -1190
  246. package/dist/formField.js +1 -1
  247. package/dist/graphics.cjs +1 -1
  248. package/dist/graphics.js +1 -1
  249. package/dist/index.cjs +1 -1
  250. package/dist/index.d.cts +14 -11
  251. package/dist/index.d.ts +17 -12
  252. package/dist/index.js +1 -1
  253. package/dist/index.vue.d.cts +4 -4
  254. package/dist/index.vue.d.ts +4 -4
  255. package/dist/index10.vue.d.cts +3 -0
  256. package/dist/index10.vue.d.ts +3 -3
  257. package/dist/index11.vue.d.cts +3 -3
  258. package/dist/index11.vue.d.ts +4 -4
  259. package/dist/index12.vue.d.cts +4 -4
  260. package/dist/index13.vue.d.ts +4 -5
  261. package/dist/index14.vue.d.cts +4 -5
  262. package/dist/index15.vue.d.ts +1 -1
  263. package/dist/index16.vue.d.cts +1 -1
  264. package/dist/index16.vue.d.ts +6 -6
  265. package/dist/index17.vue.d.cts +6 -6
  266. package/dist/index17.vue.d.ts +7 -7
  267. package/dist/index18.vue.d.cts +7 -7
  268. package/dist/index19.vue.d.ts +1 -1
  269. package/dist/index20.vue.d.cts +1 -1
  270. package/dist/index20.vue.d.ts +1 -1
  271. package/dist/index21.vue.d.cts +1 -1
  272. package/dist/index21.vue.d.ts +3 -3
  273. package/dist/index22.vue.d.cts +3 -3
  274. package/dist/index24.vue.d.cts +1 -1
  275. package/dist/index24.vue.d.ts +1 -1
  276. package/dist/index26.vue.d.cts +1 -1
  277. package/dist/index26.vue.d.ts +1 -1
  278. package/dist/index27.vue.d.cts +1 -1
  279. package/dist/index27.vue.d.ts +1 -1
  280. package/dist/index3.vue.d.cts +2 -2
  281. package/dist/index3.vue.d.ts +2 -2
  282. package/dist/index30.vue.d.cts +1 -1
  283. package/dist/index30.vue.d.ts +1 -1
  284. package/dist/index31.vue.d.cts +5 -5
  285. package/dist/index31.vue.d.ts +5 -5
  286. package/dist/index4.vue.d.cts +7 -7
  287. package/dist/index4.vue.d.ts +7 -7
  288. package/dist/index7.vue.d.ts +2 -0
  289. package/dist/index8.vue.d.cts +2 -0
  290. package/dist/index8.vue.d.ts +2 -2
  291. package/dist/index9.vue.d.cts +2 -2
  292. package/dist/index9.vue.d.ts +3 -0
  293. package/dist/mapUtils.d.cts +1 -1
  294. package/dist/mapUtils.d.ts +1 -1
  295. package/dist/readonlyGraph.cjs +1 -0
  296. package/dist/readonlyGraph.js +1 -0
  297. package/dist/resolver.cjs +1 -1
  298. package/dist/resolver.d.cts +1 -1
  299. package/dist/resolver.d.ts +1 -1
  300. package/dist/resolver.js +1 -1
  301. package/dist/serializeSearch.cjs +1 -1
  302. package/dist/serializeSearch.js +1 -1
  303. package/dist/shared-tokens.css +1 -1
  304. package/dist/source.cjs +1 -0
  305. package/dist/source.d.cts +37 -0
  306. package/dist/source.d.ts +37 -0
  307. package/dist/source.js +1 -0
  308. package/dist/style.css +3987 -3568
  309. package/dist/theme.cjs +1 -0
  310. package/dist/theme.d.cts +73 -0
  311. package/dist/theme.d.ts +73 -0
  312. package/dist/theme.js +1 -0
  313. package/dist/theme2.cjs +1 -0
  314. package/dist/theme2.js +1 -0
  315. package/dist/types3.d.ts +1223 -53
  316. package/dist/types4.d.cts +1223 -53
  317. package/dist/types4.d.ts +55 -45
  318. package/dist/types5.d.cts +55 -45
  319. package/dist/types5.d.ts +50 -0
  320. package/dist/types6.d.cts +50 -0
  321. package/dist/types6.d.ts +284 -0
  322. package/dist/types7.d.cts +284 -0
  323. package/dist/useCalendarEvents.d.cts +2 -2
  324. package/dist/useCalendarEvents.d.ts +2 -2
  325. package/dist/useCollapsePanel.d.cts +1 -1
  326. package/dist/useCollapsePanel.d.ts +1 -1
  327. package/dist/useComponentDensity.cjs +1 -0
  328. package/dist/useComponentDensity.js +1 -0
  329. package/dist/useComponentLocale.cjs +1 -1
  330. package/dist/useComponentLocale.js +1 -1
  331. package/dist/useComponentTheme.cjs +1 -0
  332. package/dist/useComponentTheme.js +1 -0
  333. package/dist/useCropperCore.d.cts +7 -7
  334. package/dist/useCropperCore.d.ts +7 -7
  335. package/dist/useDynamicFormState.d.cts +4 -4
  336. package/dist/useDynamicFormState.d.ts +4 -4
  337. package/dist/useEdgeInteraction.cjs +1 -0
  338. package/dist/useEdgeInteraction.d.cts +21 -4
  339. package/dist/useEdgeInteraction.d.ts +21 -4
  340. package/dist/useEdgeInteraction.js +1 -0
  341. package/dist/useFormConfig.cjs +1 -1
  342. package/dist/useFormConfig.js +1 -1
  343. package/dist/useFormRenderer.d.cts +1 -1
  344. package/dist/useFormRenderer.d.ts +1 -1
  345. package/dist/useFormulaEvaluator.cjs +2 -2
  346. package/dist/useFormulaEvaluator.js +2 -2
  347. package/dist/useFullscreen.d.cts +3 -3
  348. package/dist/useFullscreen.d.ts +3 -3
  349. package/dist/useGraphExport.cjs +1 -0
  350. package/dist/useGraphExport.js +1 -0
  351. package/dist/useInfiniteScroll.d.cts +2 -2
  352. package/dist/useInfiniteScroll.d.ts +2 -2
  353. package/dist/useQRCode.d.cts +4 -4
  354. package/dist/useQRCode.d.ts +4 -4
  355. package/dist/useSignatureHistory.d.cts +5 -5
  356. package/dist/useSignatureHistory.d.ts +5 -5
  357. package/dist/useSplitResize.d.cts +7 -7
  358. package/dist/useSplitResize.d.ts +7 -7
  359. package/dist/useWorkflowValidation.d.cts +167 -45
  360. package/dist/useWorkflowValidation.d.ts +167 -45
  361. package/dist/verification.d.cts +2 -3
  362. package/dist/verification.d.ts +2 -3
  363. package/docs/components.en.md +8 -7
  364. package/docs/components.md +8 -7
  365. package/docs/guides/theme.md +79 -0
  366. package/docs/guides/user-picker.md +124 -0
  367. package/docs/guides/workflow-people.md +60 -0
  368. package/docs/guides/workflow.md +153 -0
  369. package/docs/people-workflow-review-20261114.md +75 -0
  370. package/licenses/VueFlow.txt +20 -0
  371. package/package.json +1 -1
  372. /package/dist/{config2.d.ts → component-config.d.ts} +0 -0
@@ -96,18 +96,18 @@ interface ExcelLoadResult {
96
96
  //#endregion
97
97
  //#region src/components/C_FilePreview/index.vue.d.ts
98
98
  declare const __VLS_export: vue.DefineComponent<FilePreviewProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
99
- download: (file: string | File) => any;
100
99
  preview: (file: string | File) => any;
100
+ download: (file: string | File) => any;
101
101
  "update:show": (show: boolean) => any;
102
102
  }, string, vue.PublicProps, Readonly<FilePreviewProps> & Readonly<{
103
- onDownload?: ((file: string | File) => any) | undefined;
104
103
  onPreview?: ((file: string | File) => any) | undefined;
104
+ onDownload?: ((file: string | File) => any) | undefined;
105
105
  "onUpdate:show"?: ((show: boolean) => any) | undefined;
106
106
  }>, {
107
- inline: boolean;
108
107
  show: boolean;
109
108
  fileName: string;
110
109
  autoPreview: boolean;
110
+ inline: boolean;
111
111
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
112
112
  declare const _default: typeof __VLS_export;
113
113
  //#endregion
@@ -0,0 +1 @@
1
+ const e=require(`./chunk.cjs`),t=require(`./feedback.cjs`),n=require(`./useComponentTheme.cjs`);let r=require(`vue`),i=require(`@antv/x6`),a=require(`html2canvas`);a=e.n(a);function o(e,t){let n=t&&getComputedStyle(t),r=t=>String(n?.getPropertyValue(`--c-${t}`).trim()||e[`--c-${t}`]||e[`--c-theme-${t}`]);return{background:r(`bg-body`),gridPrimary:r(`border`),gridSecondary:r(`bg-muted`)}}function s(e){return{background:{color:e.background},grid:{visible:!0,type:`doubleMesh`,args:[{color:e.gridPrimary,thickness:1},{color:e.gridSecondary,thickness:1,factor:4}]},mousewheel:{enabled:!0,zoomAtMousePosition:!0,modifiers:`ctrl`,minScale:.5,maxScale:2},selecting:{enabled:!0,rubberband:!0,movable:!0,showNodeSelectionBox:!0},resizing:!0,rotating:!0,snapline:!0,keyboard:!0,clipboard:!0}}function c(e){return e?{width:e.clientWidth||e.offsetWidth||800,height:e.clientHeight||e.offsetHeight||600}:{width:0,height:0}}function l(e,t){let a=n.n(()=>t===void 0?void 0:t.value?`dark`:`light`),l=(0,r.computed)(()=>o(a.value,e.value)),u=(0,r.computed)(()=>{let{background:e,grid:t}=s(l.value);return{background:e,grid:t}}),d=0,f,p=!1,m=(0,r.shallowRef)(null),h=(0,r.ref)(!1),g=t=>{if(!p){h.value=!0;try{if(!e.value)return;m.value&&=(m.value.dispose(),null);let{width:n,height:r}=c(e.value),a=s(l.value);m.value=new i.Graph({container:e.value,width:n,height:r,...a,...t,background:t.background??a.background,grid:t.grid??a.grid})}catch{}finally{h.value=!1}}},_=async(e={})=>{let t=++d;await(0,r.nextTick)(),t===d&&g(e)};function v(){if(!m.value)return;let e=l.value;m.value.drawBackground?.({color:e.background}),m.value.drawGrid?.({type:`doubleMesh`,args:[{color:e.gridPrimary,thickness:1},{color:e.gridSecondary,thickness:1,factor:4}]})}(0,r.watch)(l,v,{flush:`post`});function y(){if(d++,clearTimeout(f),f=void 0,m.value){let e=m.value;m.value=null,e.dispose()}}function b(){m.value?.centerContent()}function x(){m.value?.zoomToFit({padding:20,maxScale:1})}function S(e=200,t=20){clearTimeout(f);let n=m.value;n&&(f=setTimeout(()=>{!p&&m.value===n&&n.zoomToFit({padding:t,maxScale:1})},e))}function C(e){m.value?.zoom(e)}function w(){if(m.value&&e.value){let{width:t,height:n}=c(e.value);m.value.resize(t,n)}}return(0,r.onUnmounted)(()=>{p=!0,y()}),{graph:m,loading:h,initGraph:_,destroyGraph:y,centerContent:b,zoomToFit:x,scheduleZoomToFit:S,zoom:C,resizeGraph:w,updateTheme:v,themeOptions:u}}function u(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.style.display=`none`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}function d(e,t=`diagram.json`){let n=JSON.stringify(e,null,2);u(new Blob([n],{type:`application/json`}),t)}async function f(e,t=`diagram.png`,n={}){let{backgroundColor:r=`#ffffff`,scale:i=2}=n,{container:o}=e;u(await m(await(0,a.default)(o,{backgroundColor:r,scale:i,useCORS:!0,logging:!1}),`image/png`),t)}function p(e,t=`diagram.svg`){let n=e.container.querySelector(`svg`);if(!n)throw Error(`SVG导出失败: 未找到图表 SVG 元素`);let r=n.cloneNode(!0),i=new Set([...n.outerHTML.matchAll(/var\((--[\w-]+)/g)].map(e=>e[1])),a=getComputedStyle(n);for(let e of i){let t=a.getPropertyValue(e).trim();t&&r.style.setProperty(e,t)}r.getAttribute(`xmlns`)||r.setAttribute(`xmlns`,`http://www.w3.org/2000/svg`),r.getAttribute(`xmlns:xlink`)||r.setAttribute(`xmlns:xlink`,`http://www.w3.org/1999/xlink`);let o=new XMLSerializer().serializeToString(r);u(new Blob([o],{type:`image/svg+xml;charset=utf-8`}),t)}function m(e,t,n=1){return new Promise((r,i)=>{e.toBlob(e=>{e?r(e):i(Error(`Canvas 转 Blob 失败`))},t,n)})}const h=[{label:`导出PNG`,key:`png`},{label:`导出SVG`,key:`svg`},{label:`导出JSON`,key:`json`}];function g(e,n=`diagram`){let r=t.t();return{exportOptions:h,handleExport:async(t,i)=>{if(e.value)try{switch(t){case`png`:await f(e.value,`${n}.png`);break;case`svg`:p(e.value,`${n}.svg`);break;case`json`:i&&d(i(),`${n}.json`);break}}catch(e){r.error(`导出${t.toUpperCase()}失败,请重试`,e)}}}}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});
@@ -0,0 +1 @@
1
+ import{t as e}from"./feedback.js";import{n as t}from"./useComponentTheme.js";import{computed as n,nextTick as r,onUnmounted as i,ref as a,shallowRef as o,watch as s}from"vue";import{Graph as c}from"@antv/x6";import l from"html2canvas";function u(e,t){let n=t&&getComputedStyle(t),r=t=>String(n?.getPropertyValue(`--c-${t}`).trim()||e[`--c-${t}`]||e[`--c-theme-${t}`]);return{background:r(`bg-body`),gridPrimary:r(`border`),gridSecondary:r(`bg-muted`)}}function d(e){return{background:{color:e.background},grid:{visible:!0,type:`doubleMesh`,args:[{color:e.gridPrimary,thickness:1},{color:e.gridSecondary,thickness:1,factor:4}]},mousewheel:{enabled:!0,zoomAtMousePosition:!0,modifiers:`ctrl`,minScale:.5,maxScale:2},selecting:{enabled:!0,rubberband:!0,movable:!0,showNodeSelectionBox:!0},resizing:!0,rotating:!0,snapline:!0,keyboard:!0,clipboard:!0}}function f(e){return e?{width:e.clientWidth||e.offsetWidth||800,height:e.clientHeight||e.offsetHeight||600}:{width:0,height:0}}function p(e,l){let p=t(()=>l===void 0?void 0:l.value?`dark`:`light`),m=n(()=>u(p.value,e.value)),h=n(()=>{let{background:e,grid:t}=d(m.value);return{background:e,grid:t}}),g=0,_,v=!1,y=o(null),b=a(!1),x=t=>{if(!v){b.value=!0;try{if(!e.value)return;y.value&&=(y.value.dispose(),null);let{width:n,height:r}=f(e.value),i=d(m.value);y.value=new c({container:e.value,width:n,height:r,...i,...t,background:t.background??i.background,grid:t.grid??i.grid})}catch{}finally{b.value=!1}}},S=async(e={})=>{let t=++g;await r(),t===g&&x(e)};function C(){if(!y.value)return;let e=m.value;y.value.drawBackground?.({color:e.background}),y.value.drawGrid?.({type:`doubleMesh`,args:[{color:e.gridPrimary,thickness:1},{color:e.gridSecondary,thickness:1,factor:4}]})}s(m,C,{flush:`post`});function w(){if(g++,clearTimeout(_),_=void 0,y.value){let e=y.value;y.value=null,e.dispose()}}function T(){y.value?.centerContent()}function E(){y.value?.zoomToFit({padding:20,maxScale:1})}function D(e=200,t=20){clearTimeout(_);let n=y.value;n&&(_=setTimeout(()=>{!v&&y.value===n&&n.zoomToFit({padding:t,maxScale:1})},e))}function O(e){y.value?.zoom(e)}function k(){if(y.value&&e.value){let{width:t,height:n}=f(e.value);y.value.resize(t,n)}}return i(()=>{v=!0,w()}),{graph:y,loading:b,initGraph:S,destroyGraph:w,centerContent:T,zoomToFit:E,scheduleZoomToFit:D,zoom:O,resizeGraph:k,updateTheme:C,themeOptions:h}}function m(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.style.display=`none`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}function h(e,t=`diagram.json`){let n=JSON.stringify(e,null,2);m(new Blob([n],{type:`application/json`}),t)}async function g(e,t=`diagram.png`,n={}){let{backgroundColor:r=`#ffffff`,scale:i=2}=n,{container:a}=e;m(await v(await l(a,{backgroundColor:r,scale:i,useCORS:!0,logging:!1}),`image/png`),t)}function _(e,t=`diagram.svg`){let n=e.container.querySelector(`svg`);if(!n)throw Error(`SVG导出失败: 未找到图表 SVG 元素`);let r=n.cloneNode(!0),i=new Set([...n.outerHTML.matchAll(/var\((--[\w-]+)/g)].map(e=>e[1])),a=getComputedStyle(n);for(let e of i){let t=a.getPropertyValue(e).trim();t&&r.style.setProperty(e,t)}r.getAttribute(`xmlns`)||r.setAttribute(`xmlns`,`http://www.w3.org/2000/svg`),r.getAttribute(`xmlns:xlink`)||r.setAttribute(`xmlns:xlink`,`http://www.w3.org/1999/xlink`);let o=new XMLSerializer().serializeToString(r);m(new Blob([o],{type:`image/svg+xml;charset=utf-8`}),t)}function v(e,t,n=1){return new Promise((r,i)=>{e.toBlob(e=>{e?r(e):i(Error(`Canvas 转 Blob 失败`))},t,n)})}const y=[{label:`导出PNG`,key:`png`},{label:`导出SVG`,key:`svg`},{label:`导出JSON`,key:`json`}];function b(t,n=`diagram`){let r=e();return{exportOptions:y,handleExport:async(e,i)=>{if(t.value)try{switch(e){case`png`:await g(t.value,`${n}.png`);break;case`svg`:_(t.value,`${n}.svg`);break;case`json`:i&&h(i(),`${n}.json`);break}}catch(t){r.error(`导出${e.toUpperCase()}失败,请重试`,t)}}}}export{p as n,b as t};
@@ -88,10 +88,10 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
88
88
  "onImage-error"?: ((item: WaterFallItem) => any) | undefined;
89
89
  }>, {
90
90
  loading: boolean;
91
- virtualScroll: boolean;
92
- gap: number;
93
91
  columns: number;
92
+ gap: number;
94
93
  lazy: boolean;
94
+ virtualScroll: boolean;
95
95
  infinite: boolean;
96
96
  skeleton: boolean;
97
97
  skeletonCount: number;
@@ -88,10 +88,10 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
88
88
  "onImage-error"?: ((item: WaterFallItem) => any) | undefined;
89
89
  }>, {
90
90
  loading: boolean;
91
- virtualScroll: boolean;
92
- gap: number;
93
91
  columns: number;
92
+ gap: number;
94
93
  lazy: boolean;
94
+ virtualScroll: boolean;
95
95
  infinite: boolean;
96
96
  skeleton: boolean;
97
97
  skeletonCount: number;
@@ -50,16 +50,16 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
50
50
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
51
51
  onError?: ((error: Error) => any) | undefined;
52
52
  }>, {
53
- showBorder: boolean;
54
- label: string;
55
- showLabel: boolean;
56
53
  size: number;
57
54
  color: string;
55
+ label: string;
58
56
  mode: RenderMode;
57
+ showBorder: boolean;
58
+ margin: number;
59
59
  bgColor: string;
60
60
  errorCorrectionLevel: ErrorCorrectionLevel;
61
- margin: number;
62
61
  logo: LogoOptions;
62
+ showLabel: boolean;
63
63
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
64
64
  declare const _default: typeof __VLS_export;
65
65
  //#endregion
@@ -50,16 +50,16 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
50
50
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
51
51
  onError?: ((error: Error) => any) | undefined;
52
52
  }>, {
53
- showBorder: boolean;
54
- label: string;
55
- showLabel: boolean;
56
53
  size: number;
57
54
  color: string;
55
+ label: string;
58
56
  mode: RenderMode;
57
+ showBorder: boolean;
58
+ margin: number;
59
59
  bgColor: string;
60
60
  errorCorrectionLevel: ErrorCorrectionLevel;
61
- margin: number;
62
61
  logo: LogoOptions;
62
+ showLabel: boolean;
63
63
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
64
64
  declare const _default: typeof __VLS_export;
65
65
  //#endregion
@@ -92,8 +92,8 @@ interface SignatureEmits {
92
92
  //#endregion
93
93
  //#region src/components/C_Signature/index.vue.d.ts
94
94
  declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
95
- error: (error: Error) => any;
96
95
  change: (data: SignatureStroke[]) => any;
96
+ error: (error: Error) => any;
97
97
  clear: () => any;
98
98
  "start-draw": () => any;
99
99
  drawing: (point: SignaturePoint) => any;
@@ -101,8 +101,8 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
101
101
  undo: () => any;
102
102
  redo: () => any;
103
103
  }, string, vue.PublicProps, Readonly<SignatureProps> & Readonly<{
104
- onError?: ((error: Error) => any) | undefined;
105
104
  onChange?: ((data: SignatureStroke[]) => any) | undefined;
105
+ onError?: ((error: Error) => any) | undefined;
106
106
  onClear?: (() => any) | undefined;
107
107
  "onStart-draw"?: (() => any) | undefined;
108
108
  onDrawing?: ((point: SignaturePoint) => any) | undefined;
@@ -110,11 +110,11 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
110
110
  onUndo?: (() => any) | undefined;
111
111
  onRedo?: (() => any) | undefined;
112
112
  }>, {
113
- width: number | string;
114
- height: number | string;
115
113
  disabled: boolean;
116
- readonly: boolean;
114
+ height: number | string;
117
115
  showToolbar: boolean;
116
+ width: number | string;
117
+ readonly: boolean;
118
118
  maxHistory: number;
119
119
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
120
120
  declare const _default: typeof __VLS_export;
@@ -92,8 +92,8 @@ interface SignatureEmits {
92
92
  //#endregion
93
93
  //#region src/components/C_Signature/index.vue.d.ts
94
94
  declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
95
- error: (error: Error) => any;
96
95
  change: (data: SignatureStroke[]) => any;
96
+ error: (error: Error) => any;
97
97
  clear: () => any;
98
98
  "start-draw": () => any;
99
99
  drawing: (point: SignaturePoint) => any;
@@ -101,8 +101,8 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
101
101
  undo: () => any;
102
102
  redo: () => any;
103
103
  }, string, vue.PublicProps, Readonly<SignatureProps> & Readonly<{
104
- onError?: ((error: Error) => any) | undefined;
105
104
  onChange?: ((data: SignatureStroke[]) => any) | undefined;
105
+ onError?: ((error: Error) => any) | undefined;
106
106
  onClear?: (() => any) | undefined;
107
107
  "onStart-draw"?: (() => any) | undefined;
108
108
  onDrawing?: ((point: SignaturePoint) => any) | undefined;
@@ -110,11 +110,11 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
110
110
  onUndo?: (() => any) | undefined;
111
111
  onRedo?: (() => any) | undefined;
112
112
  }>, {
113
- width: number | string;
114
- height: number | string;
115
113
  disabled: boolean;
116
- readonly: boolean;
114
+ height: number | string;
117
115
  showToolbar: boolean;
116
+ width: number | string;
117
+ readonly: boolean;
118
118
  maxHistory: number;
119
119
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
120
120
  declare const _default: typeof __VLS_export;
@@ -55,25 +55,25 @@ type __VLS_Slots = {
55
55
  second(props: PanelInfo): unknown;
56
56
  };
57
57
  declare const __VLS_base: vue.DefineComponent<SplitPaneProps, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
58
- "drag-start": (size: number) => any;
59
- "drag-end": (size: number) => any;
60
58
  expand: (target: CollapseTarget) => any;
61
59
  resize: (firstSize: number, secondSize: number) => any;
62
- collapse: (target: CollapseTarget) => any;
60
+ "drag-start": (size: number) => any;
61
+ "drag-end": (size: number) => any;
63
62
  "update:size": (size: number) => any;
63
+ collapse: (target: CollapseTarget) => any;
64
64
  }, string, vue.PublicProps, Readonly<SplitPaneProps> & Readonly<{
65
- "onDrag-start"?: ((size: number) => any) | undefined;
66
- "onDrag-end"?: ((size: number) => any) | undefined;
67
65
  onExpand?: ((target: CollapseTarget) => any) | undefined;
68
66
  onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
69
- onCollapse?: ((target: CollapseTarget) => any) | undefined;
67
+ "onDrag-start"?: ((size: number) => any) | undefined;
68
+ "onDrag-end"?: ((size: number) => any) | undefined;
70
69
  "onUpdate:size"?: ((size: number) => any) | undefined;
70
+ onCollapse?: ((target: CollapseTarget) => any) | undefined;
71
71
  }>, {
72
72
  direction: SplitDirection;
73
73
  collapsible: boolean;
74
74
  disabled: boolean;
75
- step: number;
76
75
  maxSize: number;
76
+ step: number;
77
77
  defaultSize: number;
78
78
  minSize: number;
79
79
  minFirstSize: number;
@@ -55,25 +55,25 @@ type __VLS_Slots = {
55
55
  second(props: PanelInfo): unknown;
56
56
  };
57
57
  declare const __VLS_base: vue.DefineComponent<SplitPaneProps, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
58
- "drag-start": (size: number) => any;
59
- "drag-end": (size: number) => any;
60
58
  expand: (target: CollapseTarget) => any;
61
59
  resize: (firstSize: number, secondSize: number) => any;
62
- collapse: (target: CollapseTarget) => any;
60
+ "drag-start": (size: number) => any;
61
+ "drag-end": (size: number) => any;
63
62
  "update:size": (size: number) => any;
63
+ collapse: (target: CollapseTarget) => any;
64
64
  }, string, vue.PublicProps, Readonly<SplitPaneProps> & Readonly<{
65
- "onDrag-start"?: ((size: number) => any) | undefined;
66
- "onDrag-end"?: ((size: number) => any) | undefined;
67
65
  onExpand?: ((target: CollapseTarget) => any) | undefined;
68
66
  onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
69
- onCollapse?: ((target: CollapseTarget) => any) | undefined;
67
+ "onDrag-start"?: ((size: number) => any) | undefined;
68
+ "onDrag-end"?: ((size: number) => any) | undefined;
70
69
  "onUpdate:size"?: ((size: number) => any) | undefined;
70
+ onCollapse?: ((target: CollapseTarget) => any) | undefined;
71
71
  }>, {
72
72
  direction: SplitDirection;
73
73
  collapsible: boolean;
74
74
  disabled: boolean;
75
- step: number;
76
75
  maxSize: number;
76
+ step: number;
77
77
  defaultSize: number;
78
78
  minSize: number;
79
79
  minFirstSize: number;