@robot-admin/naive-ui-components 0.41.1 → 0.42.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 (326) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +46 -5
  3. package/README_EN.md +54 -13
  4. package/dist/ActionOverflow.cjs +1 -1
  5. package/dist/ActionOverflow.js +1 -1
  6. package/dist/C_ActionBar.cjs +1 -1
  7. package/dist/C_ActionBar.css +54 -54
  8. package/dist/C_ActionBar.js +1 -1
  9. package/dist/C_ActionBar2.cjs +1 -1
  10. package/dist/C_ActionBar2.js +1 -1
  11. package/dist/C_AntV.css +10 -10
  12. package/dist/C_AntV2.cjs +1 -1
  13. package/dist/C_AntV2.js +1 -1
  14. package/dist/C_ApprovalViewer.css +15 -15
  15. package/dist/C_ApprovalViewer2.cjs +1 -1
  16. package/dist/C_ApprovalViewer2.js +1 -1
  17. package/dist/C_AudioPlayer.css +53 -53
  18. package/dist/C_AudioPlayer2.cjs +1 -1
  19. package/dist/C_AudioPlayer2.js +1 -1
  20. package/dist/C_AutoComplete.css +2 -2
  21. package/dist/C_AutoComplete2.cjs +1 -1
  22. package/dist/C_AutoComplete2.js +1 -1
  23. package/dist/C_AvatarGroup.css +29 -29
  24. package/dist/C_AvatarGroup2.cjs +1 -1
  25. package/dist/C_AvatarGroup2.js +1 -1
  26. package/dist/C_BatchResult.css +10 -10
  27. package/dist/C_BatchResult2.cjs +1 -1
  28. package/dist/C_BatchResult2.js +1 -1
  29. package/dist/C_Breadcrumb.css +40 -40
  30. package/dist/C_Breadcrumb2.cjs +1 -1
  31. package/dist/C_Breadcrumb2.js +1 -1
  32. package/dist/C_Captcha.d.cts +2 -2
  33. package/dist/C_Captcha.d.ts +2 -2
  34. package/dist/C_Captcha2.cjs +1 -1
  35. package/dist/C_Captcha2.js +1 -1
  36. package/dist/C_Cascade.css +4 -4
  37. package/dist/C_Cascade2.cjs +1 -1
  38. package/dist/C_Cascade2.js +1 -1
  39. package/dist/C_Chat2.cjs +1 -1
  40. package/dist/C_Chat2.js +1 -1
  41. package/dist/C_City.css +35 -35
  42. package/dist/C_City2.cjs +1 -1
  43. package/dist/C_City2.js +1 -1
  44. package/dist/C_Code.css +27 -27
  45. package/dist/C_Code2.cjs +1 -1
  46. package/dist/C_Code2.js +2 -2
  47. package/dist/C_CollapsePanel2.cjs +1 -1
  48. package/dist/C_CollapsePanel2.js +1 -1
  49. package/dist/C_ContextMenu.css +3 -3
  50. package/dist/C_ContextMenu2.cjs +1 -1
  51. package/dist/C_ContextMenu2.js +1 -1
  52. package/dist/C_Cron.css +18 -18
  53. package/dist/C_Cron2.cjs +1 -1
  54. package/dist/C_Cron2.js +1 -1
  55. package/dist/C_DataPicker.css +52 -52
  56. package/dist/C_DataPicker2.cjs +1 -1
  57. package/dist/C_DataPicker2.js +1 -1
  58. package/dist/C_Date.css +5 -5
  59. package/dist/C_Date2.cjs +1 -1
  60. package/dist/C_Date2.js +1 -1
  61. package/dist/C_Density2.cjs +1 -1
  62. package/dist/C_Density2.js +1 -1
  63. package/dist/C_Draggable.css +66 -53
  64. package/dist/C_Draggable2.cjs +1 -1
  65. package/dist/C_Draggable2.js +1 -1
  66. package/dist/C_Editor.css +13 -13
  67. package/dist/C_Editor.d.cts +2 -2
  68. package/dist/C_Editor.d.ts +2 -2
  69. package/dist/C_Editor2.cjs +1 -1
  70. package/dist/C_Editor2.js +1 -1
  71. package/dist/C_FilePreview.css +49 -49
  72. package/dist/C_FilePreview2.cjs +1 -1
  73. package/dist/C_FilePreview2.js +1 -1
  74. package/dist/C_Form.base.css +242 -242
  75. package/dist/C_Form.css +242 -242
  76. package/dist/C_Form.d.cts +1 -1
  77. package/dist/C_Form.d.ts +1 -1
  78. package/dist/C_FormModal.css +55 -55
  79. package/dist/C_FormModal2.cjs +1 -1
  80. package/dist/C_FormModal2.js +1 -1
  81. package/dist/C_FormSearch.css +75 -75
  82. package/dist/C_FormSearch.d.ts +1 -1
  83. package/dist/C_FormulaEditor.cjs +1 -1
  84. package/dist/C_FormulaEditor.css +41 -41
  85. package/dist/C_FormulaEditor.d.cts +2 -2
  86. package/dist/C_FormulaEditor.d.ts +2 -2
  87. package/dist/C_FormulaEditor.js +1 -1
  88. package/dist/C_GlobalSearch2.cjs +1 -1
  89. package/dist/C_GlobalSearch2.js +1 -1
  90. package/dist/C_Guide.css +13 -13
  91. package/dist/C_Guide2.cjs +1 -1
  92. package/dist/C_Guide2.js +1 -1
  93. package/dist/C_ImageCropper.css +27 -27
  94. package/dist/C_ImageCropper2.cjs +1 -1
  95. package/dist/C_ImageCropper2.js +1 -1
  96. package/dist/C_ImportWizard.css +8 -8
  97. package/dist/C_ImportWizard2.cjs +1 -1
  98. package/dist/C_ImportWizard2.js +1 -1
  99. package/dist/C_Language.css +2 -2
  100. package/dist/C_Language2.cjs +1 -1
  101. package/dist/C_Language2.js +1 -1
  102. package/dist/C_Loading.css +18 -18
  103. package/dist/C_Loading2.cjs +1 -1
  104. package/dist/C_Loading2.js +1 -1
  105. package/dist/C_Login.css +94 -94
  106. package/dist/C_Login2.cjs +1 -1
  107. package/dist/C_Login2.js +1 -1
  108. package/dist/C_Markdown.css +37 -37
  109. package/dist/C_Markdown2.cjs +1 -1
  110. package/dist/C_Markdown2.js +1 -1
  111. package/dist/C_NotificationCenter.css +24 -24
  112. package/dist/C_NotificationCenter2.cjs +1 -1
  113. package/dist/C_NotificationCenter2.js +1 -1
  114. package/dist/C_OrgChart.d.cts +2 -8
  115. package/dist/C_OrgChart.d.ts +2 -8
  116. package/dist/C_Progress2.cjs +1 -1
  117. package/dist/C_Progress2.js +1 -1
  118. package/dist/C_QRCode.css +9 -9
  119. package/dist/C_QRCode2.cjs +1 -1
  120. package/dist/C_QRCode2.js +1 -1
  121. package/dist/C_RecurrenceEditor.cjs +1 -1
  122. package/dist/C_RecurrenceEditor.d.cts +2 -2
  123. package/dist/C_RecurrenceEditor.d.ts +2 -2
  124. package/dist/C_RecurrenceEditor.js +1 -1
  125. package/dist/C_RecurrenceEditor2.cjs +1 -1
  126. package/dist/C_RecurrenceEditor2.js +1 -1
  127. package/dist/C_ResourceSchedule2.cjs +1 -1
  128. package/dist/C_ResourceSchedule2.js +1 -1
  129. package/dist/C_ScanInput2.cjs +1 -1
  130. package/dist/C_ScanInput2.js +1 -1
  131. package/dist/C_SectionNav.css +8 -8
  132. package/dist/C_SectionNav2.cjs +1 -1
  133. package/dist/C_SectionNav2.js +1 -1
  134. package/dist/C_Select.css +1 -1
  135. package/dist/C_Select2.cjs +1 -1
  136. package/dist/C_Select2.js +1 -1
  137. package/dist/C_Signature.css +15 -15
  138. package/dist/C_Signature2.cjs +1 -1
  139. package/dist/C_Signature2.js +1 -1
  140. package/dist/C_SplitPane2.cjs +1 -1
  141. package/dist/C_SplitPane2.js +1 -1
  142. package/dist/C_Table.base.css +429 -429
  143. package/dist/C_Table.css +187 -187
  144. package/dist/C_Table.d.cts +1 -1
  145. package/dist/C_Table.d.ts +1 -1
  146. package/dist/C_Table2.cjs +4 -4
  147. package/dist/C_Table2.js +4 -4
  148. package/dist/C_Timeline.css +50 -50
  149. package/dist/C_Timeline2.cjs +1 -1
  150. package/dist/C_Timeline2.js +1 -1
  151. package/dist/C_Transfer.css +25 -25
  152. package/dist/C_Transfer2.cjs +1 -1
  153. package/dist/C_Transfer2.js +1 -1
  154. package/dist/C_Tree.css +30 -30
  155. package/dist/C_Tree2.cjs +1 -1
  156. package/dist/C_Tree2.js +1 -1
  157. package/dist/C_Upload.css +5 -5
  158. package/dist/C_Upload2.cjs +1 -1
  159. package/dist/C_Upload2.js +1 -1
  160. package/dist/C_UserPicker.css +1 -1
  161. package/dist/C_VideoPlayer2.cjs +1 -1
  162. package/dist/C_VideoPlayer2.js +1 -1
  163. package/dist/C_VtableGantt.css +34 -34
  164. package/dist/C_WorkFlow.css +93 -93
  165. package/dist/C_WorkFlow2.cjs +1 -1
  166. package/dist/C_WorkFlow2.js +1 -1
  167. package/dist/Card.cjs +1 -1
  168. package/dist/Card.js +1 -1
  169. package/dist/ColumnSettingsDrawer.cjs +1 -0
  170. package/dist/ColumnSettingsDrawer.js +1 -0
  171. package/dist/Custom.cjs +1 -1
  172. package/dist/Custom.js +1 -1
  173. package/dist/Dynamic.cjs +1 -1
  174. package/dist/Dynamic.js +1 -1
  175. package/dist/OptionStatus.cjs +1 -1
  176. package/dist/OptionStatus.js +1 -1
  177. package/dist/Steps.cjs +1 -1
  178. package/dist/Steps.js +1 -1
  179. package/dist/Tabs.cjs +1 -1
  180. package/dist/Tabs.js +1 -1
  181. package/dist/actionIcon.cjs +1 -1
  182. package/dist/actionIcon.js +1 -1
  183. package/dist/component-config.d.ts +1 -1
  184. package/dist/config.d.cts +1 -1
  185. package/dist/config.d.ts +1 -1
  186. package/dist/constants.d.cts +6 -6
  187. package/dist/constants.d.ts +6 -6
  188. package/dist/constants2.d.cts +10 -3
  189. package/dist/constants2.d.ts +10 -3
  190. package/dist/constants3.d.cts +5 -5
  191. package/dist/constants3.d.ts +5 -5
  192. package/dist/constants4.d.cts +10 -9
  193. package/dist/constants4.d.ts +10 -9
  194. package/dist/context.d.cts +1 -1
  195. package/dist/data2.d.cts +10 -10
  196. package/dist/data2.d.ts +10 -10
  197. package/dist/editors.d.cts +17 -15
  198. package/dist/editors.d.ts +17 -15
  199. package/dist/fieldNode.cjs +1 -0
  200. package/dist/fieldNode.js +1 -0
  201. package/dist/fieldRenderers.cjs +1 -1
  202. package/dist/fieldRenderers.js +1 -1
  203. package/dist/graphics.cjs +1 -1
  204. package/dist/graphics.js +1 -1
  205. package/dist/index.cjs +1 -1
  206. package/dist/index.d.cts +7 -6
  207. package/dist/index.d.ts +6 -6
  208. package/dist/index.js +1 -1
  209. package/dist/index10.vue.d.cts +2 -2
  210. package/dist/index11.vue.d.ts +3 -3
  211. package/dist/index12.vue.d.cts +3 -3
  212. package/dist/index12.vue.d.ts +2 -2
  213. package/dist/index13.vue.d.cts +2 -2
  214. package/dist/index13.vue.d.ts +2 -2
  215. package/dist/index14.vue.d.cts +2 -2
  216. package/dist/index14.vue.d.ts +3 -3
  217. package/dist/index15.vue.d.cts +3 -3
  218. package/dist/index17.vue.d.ts +17 -10
  219. package/dist/index18.vue.d.cts +17 -10
  220. package/dist/index19.vue.d.ts +3 -3
  221. package/dist/index2.vue.d.cts +2 -2
  222. package/dist/index2.vue.d.ts +2 -2
  223. package/dist/index20.vue.d.cts +3 -3
  224. package/dist/index20.vue.d.ts +3 -3
  225. package/dist/index21.vue.d.cts +3 -3
  226. package/dist/index21.vue.d.ts +7 -7
  227. package/dist/index22.vue.d.cts +7 -7
  228. package/dist/index24.vue.d.ts +2 -2
  229. package/dist/index25.vue.d.cts +2 -2
  230. package/dist/index26.vue.d.ts +1 -1
  231. package/dist/index27.vue.d.cts +1 -1
  232. package/dist/index27.vue.d.ts +3 -3
  233. package/dist/index28.vue.d.cts +3 -3
  234. package/dist/index3.vue.d.cts +17 -19
  235. package/dist/index3.vue.d.ts +17 -19
  236. package/dist/index31.vue.d.cts +1 -1
  237. package/dist/index31.vue.d.ts +1 -1
  238. package/dist/index34.vue.d.cts +2 -0
  239. package/dist/index34.vue.d.ts +2 -0
  240. package/dist/index35.vue.d.cts +4 -4
  241. package/dist/index35.vue.d.ts +4 -4
  242. package/dist/index36.vue.d.cts +20 -11
  243. package/dist/index36.vue.d.ts +20 -11
  244. package/dist/index37.vue.d.cts +2 -2
  245. package/dist/index37.vue.d.ts +2 -2
  246. package/dist/index38.vue.d.cts +2 -2
  247. package/dist/index38.vue.d.ts +2 -2
  248. package/dist/index39.vue.d.cts +1 -1
  249. package/dist/index39.vue.d.ts +1 -1
  250. package/dist/index4.vue.d.cts +7 -4
  251. package/dist/index4.vue.d.ts +7 -4
  252. package/dist/index42.vue.d.cts +3 -3
  253. package/dist/index42.vue.d.ts +3 -3
  254. package/dist/index43.vue.d.cts +2 -2
  255. package/dist/index43.vue.d.ts +2 -2
  256. package/dist/index5.vue.d.cts +4 -16
  257. package/dist/index5.vue.d.ts +4 -16
  258. package/dist/index6.vue.d.cts +5 -5
  259. package/dist/index6.vue.d.ts +5 -5
  260. package/dist/index7.vue.d.cts +18 -12
  261. package/dist/index7.vue.d.ts +18 -12
  262. package/dist/index9.vue.d.ts +2 -2
  263. package/dist/localSource.d.cts +8 -8
  264. package/dist/localSource.d.ts +8 -8
  265. package/dist/locale.cjs +1 -1
  266. package/dist/locale.js +1 -1
  267. package/dist/mapUtils.d.cts +1 -1
  268. package/dist/mapUtils.d.ts +1 -1
  269. package/dist/persistence.cjs +1 -0
  270. package/dist/persistence.js +1 -0
  271. package/dist/rule.d.cts +4 -1
  272. package/dist/rule.d.ts +4 -1
  273. package/dist/serializeSearch.cjs +1 -1
  274. package/dist/serializeSearch.js +1 -1
  275. package/dist/source.cjs +1 -1
  276. package/dist/source.js +1 -1
  277. package/dist/style.css +1390 -1377
  278. package/dist/types.d.cts +5 -1
  279. package/dist/types.d.ts +5 -1
  280. package/dist/types10.d.cts +2 -0
  281. package/dist/types10.d.ts +1 -1
  282. package/dist/types11.d.cts +1 -1
  283. package/dist/types3.d.cts +14 -5
  284. package/dist/types3.d.ts +14 -5
  285. package/dist/types5.d.ts +12 -10
  286. package/dist/types6.d.cts +12 -10
  287. package/dist/types6.d.ts +1 -1
  288. package/dist/types9.d.ts +2 -0
  289. package/dist/useCalendarEvents.d.cts +4 -16
  290. package/dist/useCalendarEvents.d.ts +4 -16
  291. package/dist/useCollapsePanel.d.cts +1 -0
  292. package/dist/useCollapsePanel.d.ts +1 -0
  293. package/dist/useCropperCore.d.cts +6 -17
  294. package/dist/useCropperCore.d.ts +6 -17
  295. package/dist/useDynamicFormState.d.cts +3 -3
  296. package/dist/useDynamicFormState.d.ts +3 -3
  297. package/dist/useEdgeInteraction.d.cts +3 -12
  298. package/dist/useEdgeInteraction.d.ts +3 -12
  299. package/dist/useFormRenderer.d.cts +1 -1
  300. package/dist/useFormRenderer.d.ts +1 -1
  301. package/dist/useFormulaEvaluator.cjs +2 -2
  302. package/dist/useFormulaEvaluator.js +2 -2
  303. package/dist/useFullscreen.d.cts +23 -5
  304. package/dist/useFullscreen.d.ts +23 -5
  305. package/dist/useQRCode.d.cts +5 -18
  306. package/dist/useQRCode.d.ts +5 -18
  307. package/dist/useSignatureHistory.d.cts +4 -3
  308. package/dist/useSignatureHistory.d.ts +4 -3
  309. package/dist/useSplitResize.d.cts +2 -2
  310. package/dist/useSplitResize.d.ts +2 -2
  311. package/dist/useTimeSelection.d.cts +4 -3
  312. package/dist/useTimeSelection.d.ts +4 -3
  313. package/dist/useWorkflowValidation.d.cts +43 -37
  314. package/dist/useWorkflowValidation.d.ts +43 -37
  315. package/dist/verification.d.cts +8 -8
  316. package/dist/verification.d.ts +8 -8
  317. package/docs/engineering.en.md +1 -0
  318. package/docs/engineering.md +1 -0
  319. package/docs/guides/batch-results.md +3 -3
  320. package/docs/guides/data-picker.md +2 -0
  321. package/docs/guides/resource-schedule.md +1 -0
  322. package/docs/guides/runtime-performance.md +2 -0
  323. package/docs/guides/scene-components.md +1 -1
  324. package/docs/guides/usage.en.md +15 -4
  325. package/docs/guides/usage.md +13 -4
  326. package/package.json +1 -1
@@ -125,12 +125,12 @@ interface FormulaEditorExpose {
125
125
  //#endregion
126
126
  //#region src/components/C_FormulaEditor/index.vue.d.ts
127
127
  declare const __VLS_export: vue.DefineComponent<FormulaEditorProps, FormulaEditorExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
128
- change: (value: string) => any;
129
128
  "update:modelValue": (value: string) => any;
129
+ change: (value: string) => any;
130
130
  "validation-change": (result: FormulaValidation) => any;
131
131
  }, string, vue.PublicProps, Readonly<FormulaEditorProps> & Readonly<{
132
- onChange?: ((value: string) => any) | undefined;
133
132
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
133
+ onChange?: ((value: string) => any) | undefined;
134
134
  "onValidation-change"?: ((result: FormulaValidation) => any) | undefined;
135
135
  }>, {
136
136
  disabled: boolean;
@@ -186,6 +186,13 @@ declare function useFormulaEvaluator(variables: Ref<FormulaVariable[]>): {
186
186
  };
187
187
  //#endregion
188
188
  //#region src/components/C_FormulaEditor/constants.d.ts
189
+ declare const FORMULA_EDITOR_DEFAULTS: {
190
+ disabled: boolean;
191
+ showPreview: boolean;
192
+ showKeyboard: boolean;
193
+ showVariablePanel: boolean;
194
+ editableSampleData: boolean;
195
+ };
189
196
  /** 运算符区(5 列 × 3 行) */
190
197
  declare const OPERATOR_KEYS: FormulaKeyboardKey[];
191
198
  /** 数字区(5 列 × 3 行) */
@@ -199,4 +206,4 @@ declare const OPERATORS: Set<string>;
199
206
  /** 需要在两侧加空格的运算符 */
200
207
  declare const SPACED_OPERATORS: Set<string>;
201
208
  //#endregion
202
- export { FormulaVariableType as S, FormulaTemplate as _, OPERATOR_KEYS as a, FormulaValidation as b, useFormulaParser as c, FormulaEditorEmits as d, FormulaEditorExpose as f, FormulaKeyboardKey as g, FormulaKeyType as h, OPERATORS as i, _default as l, FormulaFunction as m, DEFAULT_FUNCTIONS as n, SPACED_OPERATORS as o, FormulaEditorProps as p, NUMBER_KEYS as r, useFormulaEvaluator as s, ACTION_KEYS as t, FormulaEditorConfig as u, FormulaToken as v, FormulaVariable as x, FormulaTokenType as y };
209
+ export { FormulaVariableType as C, FormulaVariable as S, FormulaKeyboardKey as _, OPERATORS as a, FormulaTokenType as b, useFormulaEvaluator as c, FormulaEditorConfig as d, FormulaEditorEmits as f, FormulaKeyType as g, FormulaFunction as h, NUMBER_KEYS as i, useFormulaParser as l, FormulaEditorProps as m, DEFAULT_FUNCTIONS as n, OPERATOR_KEYS as o, FormulaEditorExpose as p, FORMULA_EDITOR_DEFAULTS as r, SPACED_OPERATORS as s, ACTION_KEYS as t, _default as u, FormulaTemplate as v, FormulaValidation as x, FormulaToken as y };
@@ -125,12 +125,12 @@ interface FormulaEditorExpose {
125
125
  //#endregion
126
126
  //#region src/components/C_FormulaEditor/index.vue.d.ts
127
127
  declare const __VLS_export: vue.DefineComponent<FormulaEditorProps, FormulaEditorExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
128
- change: (value: string) => any;
129
128
  "update:modelValue": (value: string) => any;
129
+ change: (value: string) => any;
130
130
  "validation-change": (result: FormulaValidation) => any;
131
131
  }, string, vue.PublicProps, Readonly<FormulaEditorProps> & Readonly<{
132
- onChange?: ((value: string) => any) | undefined;
133
132
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
133
+ onChange?: ((value: string) => any) | undefined;
134
134
  "onValidation-change"?: ((result: FormulaValidation) => any) | undefined;
135
135
  }>, {
136
136
  disabled: boolean;
@@ -186,6 +186,13 @@ declare function useFormulaEvaluator(variables: Ref<FormulaVariable[]>): {
186
186
  };
187
187
  //#endregion
188
188
  //#region src/components/C_FormulaEditor/constants.d.ts
189
+ declare const FORMULA_EDITOR_DEFAULTS: {
190
+ disabled: boolean;
191
+ showPreview: boolean;
192
+ showKeyboard: boolean;
193
+ showVariablePanel: boolean;
194
+ editableSampleData: boolean;
195
+ };
189
196
  /** 运算符区(5 列 × 3 行) */
190
197
  declare const OPERATOR_KEYS: FormulaKeyboardKey[];
191
198
  /** 数字区(5 列 × 3 行) */
@@ -199,4 +206,4 @@ declare const OPERATORS: Set<string>;
199
206
  /** 需要在两侧加空格的运算符 */
200
207
  declare const SPACED_OPERATORS: Set<string>;
201
208
  //#endregion
202
- export { FormulaVariableType as S, FormulaTemplate as _, OPERATOR_KEYS as a, FormulaValidation as b, useFormulaParser as c, FormulaEditorEmits as d, FormulaEditorExpose as f, FormulaKeyboardKey as g, FormulaKeyType as h, OPERATORS as i, _default as l, FormulaFunction as m, DEFAULT_FUNCTIONS as n, SPACED_OPERATORS as o, FormulaEditorProps as p, NUMBER_KEYS as r, useFormulaEvaluator as s, ACTION_KEYS as t, FormulaEditorConfig as u, FormulaToken as v, FormulaVariable as x, FormulaTokenType as y };
209
+ export { FormulaVariableType as C, FormulaVariable as S, FormulaKeyboardKey as _, OPERATORS as a, FormulaTokenType as b, useFormulaEvaluator as c, FormulaEditorConfig as d, FormulaEditorEmits as f, FormulaKeyType as g, FormulaFunction as h, NUMBER_KEYS as i, useFormulaParser as l, FormulaEditorProps as m, DEFAULT_FUNCTIONS as n, OPERATOR_KEYS as o, FormulaEditorExpose as p, FORMULA_EDITOR_DEFAULTS as r, SPACED_OPERATORS as s, ACTION_KEYS as t, _default as u, FormulaTemplate as v, FormulaValidation as x, FormulaToken as y };
@@ -5,31 +5,31 @@ import * as vue from "vue";
5
5
  type __VLS_Slots = NotificationCenterSlots;
6
6
  declare const __VLS_base: vue.DefineComponent<NotificationCenterProps, NotificationCenterExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
7
7
  delete: (ids: string[]) => any;
8
- itemClick: (message: NotificationMessage) => any;
9
8
  read: (ids: string[]) => any;
9
+ viewAll: () => any;
10
+ itemClick: (message: NotificationMessage) => any;
10
11
  allRead: (category?: NotificationCategory | undefined) => any;
11
12
  unreadChange: (count: number) => any;
12
13
  wsStatusChange: (status: WSConnectionStatus) => any;
13
14
  newMessage: (message: NotificationMessage) => any;
14
15
  navigate: (url: string) => any;
15
- viewAll: () => any;
16
16
  }, string, vue.PublicProps, Readonly<NotificationCenterProps> & Readonly<{
17
17
  onDelete?: ((ids: string[]) => any) | undefined;
18
- onItemClick?: ((message: NotificationMessage) => any) | undefined;
19
18
  onRead?: ((ids: string[]) => any) | undefined;
19
+ onViewAll?: (() => any) | undefined;
20
+ onItemClick?: ((message: NotificationMessage) => any) | undefined;
20
21
  onAllRead?: ((category?: NotificationCategory | undefined) => any) | undefined;
21
22
  onUnreadChange?: ((count: number) => any) | undefined;
22
23
  onWsStatusChange?: ((status: WSConnectionStatus) => any) | undefined;
23
24
  onNewMessage?: ((message: NotificationMessage) => any) | undefined;
24
25
  onNavigate?: ((url: string) => any) | undefined;
25
- onViewAll?: (() => any) | undefined;
26
26
  }>, {
27
27
  pageSize: number;
28
+ storageKey: string;
28
29
  autoStart: boolean;
29
30
  desktopNotification: boolean;
30
31
  maxBadgeCount: number;
31
32
  pollingInterval: number;
32
- storageKey: string;
33
33
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
34
34
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
35
35
  declare const _default: typeof __VLS_export;
@@ -5,31 +5,31 @@ import * as vue from "vue";
5
5
  type __VLS_Slots = NotificationCenterSlots;
6
6
  declare const __VLS_base: vue.DefineComponent<NotificationCenterProps, NotificationCenterExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
7
7
  delete: (ids: string[]) => any;
8
- itemClick: (message: NotificationMessage) => any;
9
8
  read: (ids: string[]) => any;
9
+ viewAll: () => any;
10
+ itemClick: (message: NotificationMessage) => any;
10
11
  allRead: (category?: NotificationCategory | undefined) => any;
11
12
  unreadChange: (count: number) => any;
12
13
  wsStatusChange: (status: WSConnectionStatus) => any;
13
14
  newMessage: (message: NotificationMessage) => any;
14
15
  navigate: (url: string) => any;
15
- viewAll: () => any;
16
16
  }, string, vue.PublicProps, Readonly<NotificationCenterProps> & Readonly<{
17
17
  onDelete?: ((ids: string[]) => any) | undefined;
18
- onItemClick?: ((message: NotificationMessage) => any) | undefined;
19
18
  onRead?: ((ids: string[]) => any) | undefined;
19
+ onViewAll?: (() => any) | undefined;
20
+ onItemClick?: ((message: NotificationMessage) => any) | undefined;
20
21
  onAllRead?: ((category?: NotificationCategory | undefined) => any) | undefined;
21
22
  onUnreadChange?: ((count: number) => any) | undefined;
22
23
  onWsStatusChange?: ((status: WSConnectionStatus) => any) | undefined;
23
24
  onNewMessage?: ((message: NotificationMessage) => any) | undefined;
24
25
  onNavigate?: ((url: string) => any) | undefined;
25
- onViewAll?: (() => any) | undefined;
26
26
  }>, {
27
27
  pageSize: number;
28
+ storageKey: string;
28
29
  autoStart: boolean;
29
30
  desktopNotification: boolean;
30
31
  maxBadgeCount: number;
31
32
  pollingInterval: number;
32
- storageKey: string;
33
33
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
34
34
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
35
35
  declare const _default: typeof __VLS_export;
@@ -8,32 +8,32 @@ type __VLS_Slots = {} & {
8
8
  area?: (props: typeof __VLS_11) => any;
9
9
  };
10
10
  declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
11
- success: (file: UploadFileItem, response: unknown) => any;
12
- change: (fileList: UploadFileItem[]) => any;
13
11
  error: (file: UploadFileItem, error: Error) => any;
12
+ change: (fileList: UploadFileItem[]) => any;
14
13
  progress: (file: UploadFileItem, percent: number) => any;
14
+ success: (file: UploadFileItem, response: unknown) => any;
15
15
  remove: (file: UploadFileItem) => any;
16
16
  finish: (fileList: UploadFileItem[]) => any;
17
17
  exceed: (files: File[], fileList: UploadFileItem[]) => any;
18
18
  }, string, vue.PublicProps, Readonly<UploadProps> & Readonly<{
19
- onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
20
- onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
21
19
  onError?: ((file: UploadFileItem, error: Error) => any) | undefined;
20
+ onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
22
21
  onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
22
+ onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
23
23
  onRemove?: ((file: UploadFileItem) => any) | undefined;
24
24
  onFinish?: ((fileList: UploadFileItem[]) => any) | undefined;
25
25
  onExceed?: ((files: File[], fileList: UploadFileItem[]) => any) | undefined;
26
26
  }>, {
27
27
  data: Record<string, unknown>;
28
28
  disabled: boolean;
29
- draggable: boolean;
30
- action: string;
31
29
  multiple: boolean;
32
- accept: string;
30
+ action: string;
33
31
  headers: Record<string, string>;
34
32
  directory: boolean;
33
+ accept: string;
35
34
  maxSize: number;
36
35
  maxCount: number;
36
+ draggable: boolean;
37
37
  pasteable: boolean;
38
38
  chunked: boolean;
39
39
  chunkSize: number;
@@ -132,7 +132,7 @@ declare function useUploadCore(props: UploadProps): {
132
132
  pauseAll: () => void; /** 恢复所有 */
133
133
  resumeAll: () => void; /** 重试 */
134
134
  retryFile: (uid: string) => void; /** 处理单文件 */
135
- processFile: (item: UploadFileItem) => Promise<void>; /** 获取成功列表 */
135
+ processFile: (file: UploadFileItem) => Promise<void>; /** 获取成功列表 */
136
136
  getSuccessList: () => UploadFileItem[];
137
137
  };
138
138
  //#endregion
@@ -198,11 +198,12 @@ interface UseChunkUploadOptions {
198
198
  * 处理大文件分片切割、并发上传、断点续传、分片合并。
199
199
  */
200
200
  declare function useChunkUpload(options: UseChunkUploadOptions): {
201
- createChunks: (file: File) => UploadChunk[];
201
+ createChunks: (file: File, partSize?: number) => UploadChunk[];
202
202
  uploadChunks: (params: {
203
203
  uid: string;
204
204
  file: File;
205
205
  hash: string;
206
+ partSize?: number;
206
207
  onProgress: (progress: ChunkProgress) => void;
207
208
  onSuccess: (response: unknown) => void;
208
209
  onError: (error: Error) => void;
@@ -9,32 +9,32 @@ type __VLS_Slots = {} & {
9
9
  area?: (props: typeof __VLS_11) => any;
10
10
  };
11
11
  declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
12
- success: (file: UploadFileItem, response: unknown) => any;
13
- change: (fileList: UploadFileItem[]) => any;
14
12
  error: (file: UploadFileItem, error: Error) => any;
13
+ change: (fileList: UploadFileItem[]) => any;
15
14
  progress: (file: UploadFileItem, percent: number) => any;
15
+ success: (file: UploadFileItem, response: unknown) => any;
16
16
  remove: (file: UploadFileItem) => any;
17
17
  finish: (fileList: UploadFileItem[]) => any;
18
18
  exceed: (files: File[], fileList: UploadFileItem[]) => any;
19
19
  }, string, vue.PublicProps, Readonly<UploadProps> & Readonly<{
20
- onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
21
- onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
22
20
  onError?: ((file: UploadFileItem, error: Error) => any) | undefined;
21
+ onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
23
22
  onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
23
+ onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
24
24
  onRemove?: ((file: UploadFileItem) => any) | undefined;
25
25
  onFinish?: ((fileList: UploadFileItem[]) => any) | undefined;
26
26
  onExceed?: ((files: File[], fileList: UploadFileItem[]) => any) | undefined;
27
27
  }>, {
28
28
  data: Record<string, unknown>;
29
29
  disabled: boolean;
30
- draggable: boolean;
31
- action: string;
32
30
  multiple: boolean;
33
- accept: string;
31
+ action: string;
34
32
  headers: Record<string, string>;
35
33
  directory: boolean;
34
+ accept: string;
36
35
  maxSize: number;
37
36
  maxCount: number;
37
+ draggable: boolean;
38
38
  pasteable: boolean;
39
39
  chunked: boolean;
40
40
  chunkSize: number;
@@ -133,7 +133,7 @@ declare function useUploadCore(props: UploadProps): {
133
133
  pauseAll: () => void; /** 恢复所有 */
134
134
  resumeAll: () => void; /** 重试 */
135
135
  retryFile: (uid: string) => void; /** 处理单文件 */
136
- processFile: (item: UploadFileItem) => Promise<void>; /** 获取成功列表 */
136
+ processFile: (file: UploadFileItem) => Promise<void>; /** 获取成功列表 */
137
137
  getSuccessList: () => UploadFileItem[];
138
138
  };
139
139
  //#endregion
@@ -199,11 +199,12 @@ interface UseChunkUploadOptions {
199
199
  * 处理大文件分片切割、并发上传、断点续传、分片合并。
200
200
  */
201
201
  declare function useChunkUpload(options: UseChunkUploadOptions): {
202
- createChunks: (file: File) => UploadChunk[];
202
+ createChunks: (file: File, partSize?: number) => UploadChunk[];
203
203
  uploadChunks: (params: {
204
204
  uid: string;
205
205
  file: File;
206
206
  hash: string;
207
+ partSize?: number;
207
208
  onProgress: (progress: ChunkProgress) => void;
208
209
  onSuccess: (response: unknown) => void;
209
210
  onError: (error: Error) => void;
@@ -1744,4 +1744,4 @@ declare const FORM_GLOBAL_CONFIG_KEY: InjectionKey<FormConfig>;
1744
1744
  /** 表格默认配置与独立入口共享同一协议,不加载表格渲染代码。 */
1745
1745
  declare const TABLE_GLOBAL_CONFIG_KEY: InjectionKey<TableGlobalConfig>;
1746
1746
  //#endregion
1747
- export { MaybeRefLike as $, FormSlots as $t, RowDragConfig as A, LayoutCallbacks as At, WatermarkConfig as B, DynamicFieldConfig as Bt, ToolbarConfig as C, UseCrossPageSelectionOptions as Ct, resolveConfig as D, FORM_DEFAULTS as Dt, createEditModeChecker as E, ColumnStatus as Et, DynamicRowsReturn as F, useFormGlobalConfig as Ft, ChildSelectionState as G, FieldPathValue as Gt, usePrintWatermark as H, DynamicFormController as Ht, useDynamicRows as I, AsyncOptionsContext as It, DataRecord as J, FormInstance as Jt, ColumnWithKey as K, FormActionSlotProps as Kt, CaptureConfig as L, CardLayoutConfig as Lt, UseRowDragReturn as M, mergeFormConfig as Mt, useRowDrag as N, resolveFormConfig as Nt, ExportConfig as O, FormConfig as Ot, DynamicRowsOptions as P, shouldShowActions as Pt, InlineTableAction as Q, FormRecord as Qt, PrintConfig as R, ComponentType as Rt, TableConfig as S, CrossPageSelectionConfig as St, VirtualScrollConfig as T, useCrossPageSelection as Tt, ApiFunction as U, DynamicFormState as Ut, printPresets as V, DynamicFormConfig as Vt, BuiltInTableColumn as W, FieldPath as Wt, EditProps as X, FormModel as Xt, EditMode as Y, FormMode as Yt, GroupTableColumn as Z, FormOption as Zt, ErrorConfig as _, SPEC_RULES as _n, UseTableActionsReturn as _t, ColumnFormatter as a, LabelPlacement as an, SelectOption as at, SelectionConfig as b, TableExportScope as bt, TableGlobalConfig as c, MaybePromise as cn, TableColumn as ct, useTableGlobalConfig as d, SubmitEventPayload as dn, TableManagerApi as dt, FormStepActionsSlotProps as en, NormalTableColumn as et, BatchActionsConfig as f, TabsLayoutConfig as fn, TableProps as ft, EditConfig as g, RuleSpec$1 as gn, UseTableActionsOptions as gt, DisplayConfig as h, PRESET_RULES as hn, TableRuntimeProps as ht, TABLE_GLOBAL_CONFIG_KEY as i, InlineLayoutConfig as in, RowAction as it, UseRowDragOptions as j, ResolvedFormConfig as jt, exportTableData as k, LAYOUTS_WITH_OWN_CONTROLS as kt, applyFormatter as l, OptionItem as ln, TableEmits as lt, CrudBinding as m, NAIVE_COMBOS as mn, TableRowKeyIssue as mt, COMPONENT_LOCALE_KEY as n, FormTabActionsSlotProps as nn, ParentChildLinkMode as nt, FormatterConfig as o, LayoutConfig as on, SimpleTableActions as ot, ColumnDragConfig as p, FormValidationRule as pn, TableRowKey as pt, CustomAction as q, FormErrorContext as qt, FORM_GLOBAL_CONFIG_KEY as r, GridLayoutConfig as rn, RenderFunction as rt, FormatterType as s, LayoutType as sn, StrictTableColumn as st, COMPONENT_FEEDBACK_KEY as t, FormSubmitContext as tn, PaginationConfig as tt, mergeGlobalConfig as u, StepsLayoutConfig as un, TableInstance as ut, ExpandConfig as v, UseTableExpandOptions as vt, TreeConfig as w, UseCrossPageSelectionReturn as wt, SummaryConfig as x, TableMatchingExportContext as xt, ResolvedConfig as y, UseTableExpandReturn as yt, PrintWatermarkOptions as z, CustomLayoutConfig as zt };
1747
+ export { InlineTableAction as $, FormRecord as $t, RowDragConfig as A, LAYOUTS_WITH_OWN_CONTROLS as At, WatermarkConfig as B, CustomLayoutConfig as Bt, ToolbarConfig as C, CrossPageSelectionConfig as Ct, resolveConfig as D, ColumnStatus as Dt, createEditModeChecker as E, useCrossPageSelection as Et, DynamicRowsReturn as F, shouldShowActions as Ft, ChildSelectionState as G, FieldPath as Gt, usePrintWatermark as H, DynamicFormConfig as Ht, useDynamicRows as I, useFormGlobalConfig as It, DataRecord as J, FormErrorContext as Jt, ColumnWithKey as K, FieldPathValue as Kt, CaptureConfig as L, AsyncOptionsContext as Lt, UseRowDragReturn as M, ResolvedFormConfig as Mt, useRowDrag as N, mergeFormConfig as Nt, ExportConfig as O, FORM_DEFAULTS as Ot, DynamicRowsOptions as P, resolveFormConfig as Pt, GroupTableColumn as Q, FormOption as Qt, PrintConfig as R, CardLayoutConfig as Rt, TableConfig as S, TableMatchingExportContext as St, VirtualScrollConfig as T, UseCrossPageSelectionReturn as Tt, ApiFunction as U, DynamicFormController as Ut, printPresets as V, DynamicFieldConfig as Vt, BuiltInTableColumn as W, DynamicFormState as Wt, EditProps as X, FormMode as Xt, EditMode as Y, FormInstance as Yt, ExpandConfig$1 as Z, FormModel as Zt, ErrorConfig as _, RuleSpec$1 as _n, UseTableActionsOptions as _t, ColumnFormatter as a, InlineLayoutConfig as an, RowAction as at, SelectionConfig as b, UseTableExpandReturn as bt, TableGlobalConfig as c, LayoutType as cn, StrictTableColumn as ct, useTableGlobalConfig as d, StepsLayoutConfig as dn, TableInstance as dt, FormSlots as en, MaybeRefLike as et, BatchActionsConfig as f, SubmitEventPayload as fn, TableManagerApi as ft, EditConfig as g, PRESET_RULES as gn, TableRuntimeProps as gt, DisplayConfig as h, NAIVE_COMBOS as hn, TableRowKeyIssue as ht, TABLE_GLOBAL_CONFIG_KEY as i, GridLayoutConfig as in, RenderFunction as it, UseRowDragOptions as j, LayoutCallbacks as jt, exportTableData as k, FormConfig as kt, applyFormatter as l, MaybePromise as ln, TableColumn as lt, CrudBinding as m, FormValidationRule as mn, TableRowKey as mt, COMPONENT_LOCALE_KEY as n, FormSubmitContext as nn, PaginationConfig as nt, FormatterConfig as o, LabelPlacement as on, SelectOption as ot, ColumnDragConfig as p, TabsLayoutConfig as pn, TableProps as pt, CustomAction as q, FormActionSlotProps as qt, FORM_GLOBAL_CONFIG_KEY as r, FormTabActionsSlotProps as rn, ParentChildLinkMode as rt, FormatterType as s, LayoutConfig as sn, SimpleTableActions as st, COMPONENT_FEEDBACK_KEY as t, FormStepActionsSlotProps as tn, NormalTableColumn as tt, mergeGlobalConfig as u, OptionItem as un, TableEmits as ut, ExpandConfig as v, SPEC_RULES as vn, UseTableActionsReturn as vt, TreeConfig as w, UseCrossPageSelectionOptions as wt, SummaryConfig as x, TableExportScope as xt, ResolvedConfig as y, UseTableExpandOptions as yt, PrintWatermarkOptions as z, ComponentType as zt };
package/dist/data2.d.cts CHANGED
@@ -65,28 +65,28 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_37>]?: (props: typeof _
65
65
  declare const __VLS_base: vue.DefineComponent<CTabsProps, {
66
66
  activeValue: vue.WritableComputedRef<TabsValue | null, TabsValue | null>;
67
67
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
68
- change: (value: TabsValue, item: TabsItem | undefined) => any;
69
- add: () => any;
70
68
  "update:modelValue": (value: TabsValue) => any;
71
69
  close: (value: TabsValue) => any;
70
+ add: () => any;
71
+ change: (value: TabsValue, item: TabsItem | undefined) => any;
72
72
  }, string, vue.PublicProps, Readonly<CTabsProps> & Readonly<{
73
- onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
74
- onAdd?: (() => any) | undefined;
75
73
  "onUpdate:modelValue"?: ((value: TabsValue) => any) | undefined;
76
74
  onClose?: ((value: TabsValue) => any) | undefined;
75
+ onAdd?: (() => any) | undefined;
76
+ onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
77
77
  }>, {
78
- type: TabsType;
79
- size: TabsSize;
80
78
  modelValue: TabsValue | null;
81
- items: readonly TabsItem[];
82
- animated: boolean;
83
79
  defaultValue: TabsValue | null;
80
+ items: readonly TabsItem[];
81
+ type: TabsType;
82
+ size: TabsSize;
84
83
  placement: TabsPlacement;
84
+ justifyContent: TabsJustifyContent;
85
+ animated: boolean;
85
86
  closable: boolean;
86
- displayDirective: TabsDisplayDirective;
87
87
  addable: boolean;
88
- justifyContent: TabsJustifyContent;
89
88
  tabsOnly: boolean;
89
+ displayDirective: TabsDisplayDirective;
90
90
  paneClass: string;
91
91
  paneStyle: string | vue.CSSProperties;
92
92
  beforeChange: (target: TabsValue, current: TabsValue | null) => boolean | Promise<boolean>;
package/dist/data2.d.ts CHANGED
@@ -65,28 +65,28 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_37>]?: (props: typeof _
65
65
  declare const __VLS_base: vue.DefineComponent<CTabsProps, {
66
66
  activeValue: vue.WritableComputedRef<TabsValue | null, TabsValue | null>;
67
67
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
68
- change: (value: TabsValue, item: TabsItem | undefined) => any;
69
- add: () => any;
70
68
  "update:modelValue": (value: TabsValue) => any;
71
69
  close: (value: TabsValue) => any;
70
+ add: () => any;
71
+ change: (value: TabsValue, item: TabsItem | undefined) => any;
72
72
  }, string, vue.PublicProps, Readonly<CTabsProps> & Readonly<{
73
- onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
74
- onAdd?: (() => any) | undefined;
75
73
  "onUpdate:modelValue"?: ((value: TabsValue) => any) | undefined;
76
74
  onClose?: ((value: TabsValue) => any) | undefined;
75
+ onAdd?: (() => any) | undefined;
76
+ onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
77
77
  }>, {
78
- type: TabsType;
79
- size: TabsSize;
80
78
  modelValue: TabsValue | null;
81
- items: readonly TabsItem[];
82
- animated: boolean;
83
79
  defaultValue: TabsValue | null;
80
+ items: readonly TabsItem[];
81
+ type: TabsType;
82
+ size: TabsSize;
84
83
  placement: TabsPlacement;
84
+ justifyContent: TabsJustifyContent;
85
+ animated: boolean;
85
86
  closable: boolean;
86
- displayDirective: TabsDisplayDirective;
87
87
  addable: boolean;
88
- justifyContent: TabsJustifyContent;
89
88
  tabsOnly: boolean;
89
+ displayDirective: TabsDisplayDirective;
90
90
  paneClass: string;
91
91
  paneStyle: string | vue.CSSProperties;
92
92
  beforeChange: (target: TabsValue, current: TabsValue | null) => boolean | Promise<boolean>;
@@ -2,7 +2,7 @@ import { n as ComponentLocale, t as ComponentFeedback } from "./contracts.cjs";
2
2
  import { n as ResolvedComponentDensity, t as ComponentDensity } from "./density.cjs";
3
3
  import { i as OptionValue, r as OptionSource } from "./optionSource.cjs";
4
4
  import { n as AutoCompleteProps$1, t as AutoCompleteOptionItem } from "./types4.cjs";
5
- import { A as RowDragConfig, C as ToolbarConfig, F as DynamicRowsReturn, J as DataRecord, O as ExportConfig, P as DynamicRowsOptions, S as TableConfig, St as CrossPageSelectionConfig, T as VirtualScrollConfig, Y as EditMode, _ as ErrorConfig, _t as UseTableActionsReturn, b as SelectionConfig, ct as TableColumn, f as BatchActionsConfig, g as EditConfig, gt as UseTableActionsOptions, h as DisplayConfig, ht as TableRuntimeProps, mt as TableRowKeyIssue, nt as ParentChildLinkMode, o as FormatterConfig, ot as SimpleTableActions, p as ColumnDragConfig, pt as TableRowKey, st as StrictTableColumn, tt as PaginationConfig, ut as TableInstance, v as ExpandConfig, vt as UseTableExpandOptions, w as TreeConfig, x as SummaryConfig, y as ResolvedConfig, yt as UseTableExpandReturn } from "./context.cjs";
5
+ import { A as RowDragConfig, C as ToolbarConfig, Ct as CrossPageSelectionConfig, F as DynamicRowsReturn, J as DataRecord, O as ExportConfig, P as DynamicRowsOptions, S as TableConfig, T as VirtualScrollConfig, Y as EditMode, Z as ExpandConfig, _ as ErrorConfig, _t as UseTableActionsOptions, b as SelectionConfig, bt as UseTableExpandReturn, ct as StrictTableColumn, dt as TableInstance, f as BatchActionsConfig, g as EditConfig, gt as TableRuntimeProps, h as DisplayConfig, ht as TableRowKeyIssue, lt as TableColumn, mt as TableRowKey, nt as PaginationConfig, o as FormatterConfig, p as ColumnDragConfig, rt as ParentChildLinkMode, st as SimpleTableActions, ut as TableEmits, v as ExpandConfig$1, vt as UseTableActionsReturn, w as TreeConfig, x as SummaryConfig, y as ResolvedConfig, yt as UseTableExpandOptions } from "./context.cjs";
6
6
  import { a as SelectProps$1, o as SelectSelection, r as SelectOptionItem, s as SelectValue, t as SelectModelValue } from "./types9.cjs";
7
7
  import { E as TreeRenderContext, O as TreeSlots, T as TreeProps$1, _ as TreeExpose, f as DropInfo, g as TreeEmits, k as TreeUpdateMeta, p as IconConfig, u as ActionConfig, v as TreeKey, x as TreeNodeData, y as TreeMode } from "./types11.cjs";
8
8
  import * as vue from "vue";
@@ -23,8 +23,8 @@ declare function useComponentFeedback(local?: MaybeRefOrGetter<ComponentFeedback
23
23
  //#region src/components/C_Table/index.vue.d.ts
24
24
  declare const __VLS_export$1: <T extends object = DataRecord, C = unknown>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$1<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
25
25
  props: vue.PublicProps & __VLS_PrettifyLocal$1<TableRuntimeProps<T, C> & {
26
- onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
27
26
  onCancel?: ((rowData: T, rowIndex: number) => any) | undefined;
27
+ onSave?: ((rowData: T, rowIndex: number, columnKey?: string | undefined) => any) | undefined;
28
28
  "onPagination-change"?: ((page: number, pageSize: number) => any) | undefined;
29
29
  "onRow-delete"?: ((deletedRow: T, index: number) => any) | undefined;
30
30
  "onBatch-action-error"?: ((error: unknown, actionKey: string) => any) | undefined;
@@ -59,7 +59,7 @@ declare const __VLS_export$1: <T extends object = DataRecord, C = unknown>(__VLS
59
59
  } & {
60
60
  empty?: (props: {}) => any;
61
61
  };
62
- emit: ((evt: "save", rowData: T, rowIndex: number, columnKey?: string | undefined) => void) & ((evt: "cancel", rowData: T, rowIndex: number) => void) & ((evt: "pagination-change", page: number, pageSize: number) => void) & ((evt: "row-delete", deletedRow: T, index: number) => void) & ((evt: "batch-action-error", error: unknown, actionKey: string) => void) & ((evt: "row-key-error", issues: TableRowKeyIssue<T>[]) => void) & ((evt: "row-add", newRow: T) => void) & ((evt: "row-copy", originalRow: T, newRow: T) => void) & ((evt: "row-move", row: T, fromIndex: number, toIndex: number) => void) & ((evt: "row-selection-change", selectedKey: DataTableRowKey | null, selectedRow: T | null) => void) & ((evt: "view-detail", data: T) => void) & ((evt: "column-change", columns: TableColumn<T>[]) => void) & ((evt: "expand-change", expandedKeys: DataTableRowKey[], row?: T | undefined, expanded?: boolean | undefined) => void) & ((evt: "selection-change", checkedKeys: DataTableRowKey[], checkedRows: T[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]> | undefined) => void) & ((evt: "child-selection-change", parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: C[]) => void) & ((evt: "parent-child-link-change", parentKey: DataTableRowKey, shouldSelect: boolean) => void) & ((evt: "update:data", data: T[]) => void) & ((evt: "edit-error", error: unknown) => void);
62
+ emit: ((evt: "cancel", rowData: T, rowIndex: number) => void) & ((evt: "save", rowData: T, rowIndex: number, columnKey?: string | undefined) => void) & ((evt: "pagination-change", page: number, pageSize: number) => void) & ((evt: "row-delete", deletedRow: T, index: number) => void) & ((evt: "batch-action-error", error: unknown, actionKey: string) => void) & ((evt: "row-key-error", issues: TableRowKeyIssue<T>[]) => void) & ((evt: "row-add", newRow: T) => void) & ((evt: "row-copy", originalRow: T, newRow: T) => void) & ((evt: "row-move", row: T, fromIndex: number, toIndex: number) => void) & ((evt: "row-selection-change", selectedKey: DataTableRowKey | null, selectedRow: T | null) => void) & ((evt: "view-detail", data: T) => void) & ((evt: "column-change", columns: TableColumn<T>[]) => void) & ((evt: "expand-change", expandedKeys: DataTableRowKey[], row?: T | undefined, expanded?: boolean | undefined) => void) & ((evt: "selection-change", checkedKeys: DataTableRowKey[], checkedRows: T[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]> | undefined) => void) & ((evt: "child-selection-change", parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: C[]) => void) & ((evt: "parent-child-link-change", parentKey: DataTableRowKey, shouldSelect: boolean) => void) & ((evt: "update:data", data: T[]) => void) & ((evt: "edit-error", error: unknown) => void);
63
63
  }>) => vue.VNode & {
64
64
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
65
65
  };
@@ -229,9 +229,9 @@ interface TableManagerConfig {
229
229
  onEditError?: (error: unknown) => void;
230
230
  expandable: boolean;
231
231
  defaultExpandedKeys?: DataTableRowKey[];
232
- onLoadExpandData?: (row: DataRecord) => Promise<any[]> | any[];
232
+ onLoadExpandData?: ExpandConfig<DataRecord, unknown>['onLoadData'];
233
233
  onExpandError?: (error: unknown, row: DataRecord) => void;
234
- renderExpandContent?: unknown;
234
+ renderExpandContent?: ExpandConfig['renderContent'];
235
235
  rowExpandable?: (row: DataRecord) => boolean;
236
236
  enableSelection: boolean;
237
237
  defaultCheckedKeys?: DataTableRowKey[];
@@ -248,11 +248,13 @@ interface TableManagerConfig {
248
248
  /**
249
249
  * 表格管理器参数接口
250
250
  */
251
+ /** 状态管理器和 CRUD 桥接复用公开的事件载荷,业务泛型由组件出口负责。 */
252
+ type InternalTableEvent = { [K in keyof TableEmits]: [event: K, ...args: TableEmits[K]] }[keyof TableEmits];
251
253
  interface TableManagerParams {
252
254
  config: MaybeRefOrGetter<TableManagerConfig>;
253
255
  data: () => DataRecord[];
254
256
  rowKey: (row: DataRecord) => DataTableRowKey;
255
- emit: (...args: any[]) => unknown;
257
+ emit: (...event: InternalTableEvent) => unknown;
256
258
  /** 列配置(用于编辑校验) */
257
259
  columns?: () => TableColumn[];
258
260
  /** UI 壳提供加载内容,状态引擎保持可独立调用。 */
@@ -267,7 +269,7 @@ interface EventHandlers {
267
269
  onSave: (rowData: DataRecord, rowIndex: number, columnKey?: string, originalKey?: DataTableRowKey) => Promise<void>;
268
270
  onCancel: (rowData: DataRecord, rowIndex: number) => Promise<void>;
269
271
  onExpandChange: (keys: DataTableRowKey[], row?: DataRecord, expanded?: boolean) => void;
270
- onSelectionChange: (checkedKeys: DataTableRowKey[], checkedRows: DataRecord[], childSelections: Map<DataTableRowKey, DataTableRowKey[]>) => void;
272
+ onSelectionChange: (checkedKeys: DataTableRowKey[], checkedRows: DataRecord[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]>) => void;
271
273
  onChildSelectionChange: (parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: DataRecord[]) => void;
272
274
  onRowChange: (data: DataRecord[]) => void;
273
275
  onRowSelectionChange: (selectedKey: DataTableRowKey | null, selectedRow: DataRecord | null) => void;
@@ -557,20 +559,20 @@ declare function setupHighlight(app: App, options?: HighlightPluginOptions): Hig
557
559
  declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
558
560
  props: vue.PublicProps & __VLS_PrettifyLocal<TreeProps$1<T> & {
559
561
  "onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
560
- "onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
561
562
  onAdd?: ((parentNode?: T | undefined) => any) | undefined;
562
- "onSearch-error"?: ((error: unknown) => any) | undefined;
563
+ onRefresh?: (() => any) | undefined;
563
564
  "onUpdate:searchPattern"?: ((pattern: string) => any) | undefined;
564
565
  "onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
565
566
  "onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
566
567
  "onNode-select"?: ((node: T | null, selectedKeys: TreeKey[]) => any) | undefined;
567
568
  "onNode-action"?: ((action: string, node: T) => any) | undefined;
568
569
  "onNode-drop"?: ((info: DropInfo<T>) => any) | undefined;
569
- onRefresh?: (() => any) | undefined;
570
+ "onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
571
+ "onSearch-error"?: ((error: unknown) => any) | undefined;
570
572
  }> & (typeof globalThis extends {
571
573
  __VLS_PROPS_FALLBACK: infer P;
572
574
  } ? P : {});
573
- expose: (exposed: vue.ShallowUnwrapRef<Omit<TreeExpose<T>, "expandedKeys" | "checkedKeys" | "selectedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
575
+ expose: (exposed: vue.ShallowUnwrapRef<Omit<TreeExpose<T>, "expandedKeys" | "selectedKeys" | "checkedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
574
576
  expandedKeys: vue.Ref<TreeKey[]>;
575
577
  selectedKeys: vue.Ref<TreeKey[]>;
576
578
  checkedKeys: vue.Ref<TreeKey[]>;
@@ -581,7 +583,7 @@ declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNu
581
583
  }>) => void;
582
584
  attrs: any;
583
585
  slots: TreeSlots<T>;
584
- emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "load-error", error: unknown, node: T) => void) & ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "search-error", error: unknown) => void) & ((evt: "update:searchPattern", pattern: string) => void) & ((evt: "update:selectedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "update:checkedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "node-select", node: T | null, selectedKeys: TreeKey[]) => void) & ((evt: "node-action", action: string, node: T) => void) & ((evt: "node-drop", info: DropInfo<T>) => void) & ((evt: "refresh") => void);
586
+ emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "refresh") => void) & ((evt: "update:searchPattern", pattern: string) => void) & ((evt: "update:selectedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "update:checkedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "node-select", node: T | null, selectedKeys: TreeKey[]) => void) & ((evt: "node-action", action: string, node: T) => void) & ((evt: "node-drop", info: DropInfo<T>) => void) & ((evt: "load-error", error: unknown, node: T) => void) & ((evt: "search-error", error: unknown) => void);
585
587
  }>) => vue.VNode & {
586
588
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
587
589
  };
@@ -645,7 +647,7 @@ declare function useTreeOperations<T extends object = TreeNodeData>(props: TreeP
645
647
  handleDrop: (info: DropInfo<T>) => void;
646
648
  handleAdd: () => void;
647
649
  handleRefresh: () => void;
648
- expose: Omit<TreeExpose<T>, "expandedKeys" | "checkedKeys" | "selectedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
650
+ expose: Omit<TreeExpose<T>, "expandedKeys" | "selectedKeys" | "checkedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
649
651
  expandedKeys: Ref<TreeKey[]>;
650
652
  selectedKeys: Ref<TreeKey[]>;
651
653
  checkedKeys: Ref<TreeKey[]>;
@@ -728,7 +730,7 @@ declare function useTableQuery<T extends object, Q extends object = Record<strin
728
730
  validateRowKeys?: boolean;
729
731
  edit?: boolean | EditMode | EditConfig<T> | undefined;
730
732
  actions?: SimpleTableActions<T> | undefined;
731
- expand?: boolean | ExpandConfig<T, unknown> | undefined;
733
+ expand?: boolean | ExpandConfig$1<T, unknown> | undefined;
732
734
  selection?: boolean | SelectionConfig<T, unknown> | undefined;
733
735
  dynamicRows?: DynamicRowsOptions<T> | (string extends keyof T ? boolean : false) | undefined;
734
736
  toolbar?: ToolbarConfig;
@@ -776,7 +778,7 @@ declare function useTableQuery<T extends object, Q extends object = Record<strin
776
778
  validateRowKeys?: boolean;
777
779
  edit?: boolean | EditMode | EditConfig<T> | undefined;
778
780
  actions?: SimpleTableActions<T> | undefined;
779
- expand?: boolean | ExpandConfig<T, unknown> | undefined;
781
+ expand?: boolean | ExpandConfig$1<T, unknown> | undefined;
780
782
  selection?: boolean | SelectionConfig<T, unknown> | undefined;
781
783
  dynamicRows?: DynamicRowsOptions<T> | (string extends keyof T ? boolean : false) | undefined;
782
784
  toolbar?: ToolbarConfig;