@asam-ui/pro 0.0.0-stage → 2.0.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 (344) hide show
  1. package/EDITOR_THIRD_PARTY_NOTICES.md +225 -0
  2. package/LICENSE +68 -0
  3. package/README.md +250 -2
  4. package/THIRD_PARTY_NOTICES.md +9 -0
  5. package/dist/AsamAdminLayout-DMsByuNN.js +205 -0
  6. package/dist/Controller-DF6lMt-H.js +3817 -0
  7. package/dist/Index-DpcRToBH.js +1263 -0
  8. package/dist/Navigation-D9wz-rqJ.js +202 -0
  9. package/dist/Resolve-Cq2BDFwo.js +7 -0
  10. package/dist/_plugin-vue_export-helper-C05QHVBA.js +8 -0
  11. package/dist/application/composables/environment/index.d.ts +2 -0
  12. package/dist/application/composables/environment/index.js +2 -0
  13. package/dist/application/composables/index.d.ts +14 -0
  14. package/dist/application/composables/index.js +40 -0
  15. package/dist/application/composables/on-mounted-or-activated/index.d.ts +2 -0
  16. package/dist/application/composables/on-mounted-or-activated/index.js +2 -0
  17. package/dist/application/composables/raf/index.d.ts +2 -0
  18. package/dist/application/composables/raf/index.js +2 -0
  19. package/dist/application/composables/use-click-away/index.d.ts +3 -0
  20. package/dist/application/composables/use-click-away/index.js +2 -0
  21. package/dist/application/composables/use-count-down/index.d.ts +3 -0
  22. package/dist/application/composables/use-count-down/index.js +2 -0
  23. package/dist/application/composables/use-custom-field-value/AsamCustomField.vue.d.ts +118 -0
  24. package/dist/application/composables/use-custom-field-value/Types.d.ts +27 -0
  25. package/dist/application/composables/use-custom-field-value/index.d.ts +6 -0
  26. package/dist/application/composables/use-custom-field-value/index.js +2 -0
  27. package/dist/application/composables/use-event-listener/index.d.ts +5 -0
  28. package/dist/application/composables/use-event-listener/index.js +7 -0
  29. package/dist/application/composables/use-page-visibility/index.d.ts +2 -0
  30. package/dist/application/composables/use-page-visibility/index.js +2 -0
  31. package/dist/application/composables/use-raf/index.d.ts +2 -0
  32. package/dist/application/composables/use-raf/index.js +2 -0
  33. package/dist/application/composables/use-rect/index.d.ts +2 -0
  34. package/dist/application/composables/use-rect/index.js +2 -0
  35. package/dist/application/composables/use-relation/index.d.ts +10 -0
  36. package/dist/application/composables/use-relation/index.js +17 -0
  37. package/dist/application/composables/use-scroll-parent/index.d.ts +2 -0
  38. package/dist/application/composables/use-scroll-parent/index.js +2 -0
  39. package/dist/application/composables/use-toggle/index.d.ts +2 -0
  40. package/dist/application/composables/use-toggle/index.js +2 -0
  41. package/dist/application/composables/use-window-size/index.d.ts +2 -0
  42. package/dist/application/composables/use-window-size/index.js +2 -0
  43. package/dist/application/index.d.ts +5 -0
  44. package/dist/application/index.js +16 -0
  45. package/dist/application/navigation/EmbedPage.vue.d.ts +18 -0
  46. package/dist/application/navigation/Navigation.d.ts +48 -0
  47. package/dist/application/navigation/NavigationMenuItems.vue.d.ts +8 -0
  48. package/dist/application/navigation/NavigationPage.vue.d.ts +10 -0
  49. package/dist/application/navigation/NavigationShell.vue.d.ts +22 -0
  50. package/dist/application/navigation/NavigationToolbar.vue.d.ts +11 -0
  51. package/dist/application/navigation/NavigationView.vue.d.ts +8 -0
  52. package/dist/application/navigation/Types.d.ts +53 -0
  53. package/dist/application/navigation/index.d.ts +6 -0
  54. package/dist/application/navigation/index.js +3 -0
  55. package/dist/application/preferences/Cache.d.ts +25 -0
  56. package/dist/application/preferences/I18n.d.ts +25 -0
  57. package/dist/application/preferences/LocaleLoader.d.ts +22 -0
  58. package/dist/application/preferences/Preferences.d.ts +16 -0
  59. package/dist/application/preferences/Storage.d.ts +9 -0
  60. package/dist/application/preferences/Types.d.ts +38 -0
  61. package/dist/application/preferences/index.d.ts +9 -0
  62. package/dist/application/preferences/index.js +2 -0
  63. package/dist/application/security/Navigation.d.ts +107 -0
  64. package/dist/application/security/Security.d.ts +74 -0
  65. package/dist/application/security/Types.d.ts +49 -0
  66. package/dist/application/security/index.d.ts +4 -0
  67. package/dist/application/security/index.js +2 -0
  68. package/dist/application/transport/Client.d.ts +17 -0
  69. package/dist/application/transport/Latest.d.ts +7 -0
  70. package/dist/application/transport/Provider.d.ts +4 -0
  71. package/dist/application/transport/Types.d.ts +60 -0
  72. package/dist/application/transport/index.d.ts +4 -0
  73. package/dist/application/transport/index.js +2 -0
  74. package/dist/chunk-DmhlhrBa.js +11 -0
  75. package/dist/components/index.d.ts +50 -0
  76. package/dist/components/index.js +4 -0
  77. package/dist/components-ST0i0Wqf.js +17084 -0
  78. package/dist/configuration/AsamApplicationProvider.vue.d.ts +13 -0
  79. package/dist/configuration/AsamPermission.vue.d.ts +13 -0
  80. package/dist/configuration/Context.d.ts +7 -0
  81. package/dist/configuration/Index.d.ts +5 -0
  82. package/dist/configuration/Permission.d.ts +5 -0
  83. package/dist/configuration/Types.d.ts +65 -0
  84. package/dist/detail/AsamDetailDialog.vue.d.ts +26 -0
  85. package/dist/detail/AsamDetailDrawer.vue.d.ts +26 -0
  86. package/dist/detail/AsamDetailPanel.vue.d.ts +36 -0
  87. package/dist/detail/Controller.d.ts +2 -0
  88. package/dist/detail/OverlayTypes.d.ts +61 -0
  89. package/dist/detail/Types.d.ts +50 -0
  90. package/dist/display/cards/Animation.d.ts +6 -0
  91. package/dist/display/cards/AsamCardGroup.vue.d.ts +14 -0
  92. package/dist/display/cards/AsamCountTo.vue.d.ts +13 -0
  93. package/dist/display/cards/AsamDisplayCard.vue.d.ts +15 -0
  94. package/dist/display/cards/AsamNumberDisplay.vue.d.ts +6 -0
  95. package/dist/display/cards/AsamProAvatarGroup.vue.d.ts +15 -0
  96. package/dist/display/cards/AsamStatisticCard.vue.d.ts +13 -0
  97. package/dist/display/cards/AsamTrend.vue.d.ts +6 -0
  98. package/dist/display/cards/Format.d.ts +5 -0
  99. package/dist/display/cards/Index.d.ts +9 -0
  100. package/dist/display/cards/Types.d.ts +106 -0
  101. package/dist/display/guidance/AsamGuidedTour.vue.d.ts +29 -0
  102. package/dist/display/guidance/AsamHelpPanel.vue.d.ts +27 -0
  103. package/dist/display/guidance/AsamNotificationMenu.vue.d.ts +19 -0
  104. package/dist/display/guidance/AsamNotificationPanel.vue.d.ts +34 -0
  105. package/dist/display/guidance/Async.d.ts +9 -0
  106. package/dist/display/guidance/Focus.d.ts +2 -0
  107. package/dist/display/guidance/Index.d.ts +5 -0
  108. package/dist/display/guidance/Model.d.ts +7 -0
  109. package/dist/display/guidance/Types.d.ts +107 -0
  110. package/dist/display/shared/OverlayStyle.d.ts +6 -0
  111. package/dist/display/states/AsamErrorBoundary.vue.d.ts +22 -0
  112. package/dist/display/states/AsamException.vue.d.ts +21 -0
  113. package/dist/display/states/AsamFieldAnnotation.vue.d.ts +19 -0
  114. package/dist/display/states/AsamPageSkeleton.vue.d.ts +20 -0
  115. package/dist/display/states/AsamPageWatermark.vue.d.ts +16 -0
  116. package/dist/display/states/AsamStatePanel.vue.d.ts +25 -0
  117. package/dist/display/states/Index.d.ts +8 -0
  118. package/dist/display/states/Tools.d.ts +29 -0
  119. package/dist/display/states/Types.d.ts +114 -0
  120. package/dist/display/text-time/AsamProCalendar.vue.d.ts +17 -0
  121. package/dist/display/text-time/AsamProCountdown.vue.d.ts +17 -0
  122. package/dist/display/text-time/AsamRelativeTime.vue.d.ts +11 -0
  123. package/dist/display/text-time/AsamTextEllipsis.vue.d.ts +10 -0
  124. package/dist/display/text-time/AsamWordCount.vue.d.ts +11 -0
  125. package/dist/display/text-time/Clock.d.ts +6 -0
  126. package/dist/display/text-time/Core.d.ts +10 -0
  127. package/dist/display/text-time/Index.d.ts +7 -0
  128. package/dist/display/text-time/Types.d.ts +99 -0
  129. package/dist/editor/AsamEditorActions.vue.d.ts +17 -0
  130. package/dist/editor/AsamEditorFields.vue.d.ts +38 -0
  131. package/dist/editor/AsamEditorForm.vue.d.ts +32 -0
  132. package/dist/editor/AsamFormDialog.vue.d.ts +28 -0
  133. package/dist/editor/Controller.d.ts +2 -0
  134. package/dist/editor/Coordinator.d.ts +3 -0
  135. package/dist/editor/EditorFormTypes.d.ts +65 -0
  136. package/dist/editor/Layout.d.ts +10 -0
  137. package/dist/editor/Snapshot.d.ts +4 -0
  138. package/dist/editor/Types.d.ts +92 -0
  139. package/dist/en-CcfyIwWv.js +1023 -0
  140. package/dist/fields/AsamField.d.ts +36 -0
  141. package/dist/fields/I18n.d.ts +70 -0
  142. package/dist/fields/Model.d.ts +13 -0
  143. package/dist/fields/Options.d.ts +37 -0
  144. package/dist/fields/Schema.d.ts +8 -0
  145. package/dist/fields/Types.d.ts +106 -0
  146. package/dist/fields/choice/AsamChoiceCard.vue.d.ts +74 -0
  147. package/dist/fields/choice/AsamChoiceGroup.vue.d.ts +25 -0
  148. package/dist/fields/choice/Color.d.ts +2 -0
  149. package/dist/fields/choice/Fields.d.ts +8 -0
  150. package/dist/fields/choice/Index.d.ts +6 -0
  151. package/dist/fields/choice/Selection.d.ts +5 -0
  152. package/dist/fields/choice/Types.d.ts +97 -0
  153. package/dist/fields/editors/AsamContentEditor.vue.d.ts +25 -0
  154. package/dist/fields/editors/AsamEditorResourceStatus.vue.d.ts +19 -0
  155. package/dist/fields/editors/Fields.d.ts +13 -0
  156. package/dist/fields/editors/Index.d.ts +5 -0
  157. package/dist/fields/editors/Markdown.d.ts +3 -0
  158. package/dist/fields/editors/Model.d.ts +5 -0
  159. package/dist/fields/editors/Types.d.ts +52 -0
  160. package/dist/fields/modes/AsamFieldView.d.ts +37 -0
  161. package/dist/fields/modes/Binding.d.ts +2 -0
  162. package/dist/fields/modes/Index.d.ts +5 -0
  163. package/dist/fields/modes/Read.d.ts +3 -0
  164. package/dist/fields/modes/Resource.d.ts +4 -0
  165. package/dist/fields/modes/Transform.d.ts +21 -0
  166. package/dist/fields/modes/Types.d.ts +72 -0
  167. package/dist/fields/numeric/Fields.d.ts +6 -0
  168. package/dist/fields/numeric/Index.d.ts +3 -0
  169. package/dist/fields/numeric/MoneyInput.d.ts +3 -0
  170. package/dist/fields/numeric/Types.d.ts +61 -0
  171. package/dist/fields/numeric/Validation.d.ts +12 -0
  172. package/dist/fields/options/Fields.d.ts +15 -0
  173. package/dist/fields/options/Hierarchy.d.ts +13 -0
  174. package/dist/fields/options/Index.d.ts +5 -0
  175. package/dist/fields/options/Paged.d.ts +23 -0
  176. package/dist/fields/options/Region.d.ts +9 -0
  177. package/dist/fields/options/Types.d.ts +48 -0
  178. package/dist/fields/resources/AsamResourceField.vue.d.ts +32 -0
  179. package/dist/fields/resources/Controller.d.ts +46 -0
  180. package/dist/fields/resources/Fields.d.ts +5 -0
  181. package/dist/fields/resources/Index.d.ts +5 -0
  182. package/dist/fields/resources/Model.d.ts +8 -0
  183. package/dist/fields/resources/Types.d.ts +86 -0
  184. package/dist/fields/temporal/Core.d.ts +10 -0
  185. package/dist/fields/temporal/Fields.d.ts +4 -0
  186. package/dist/fields/temporal/Index.d.ts +3 -0
  187. package/dist/fields/temporal/Types.d.ts +48 -0
  188. package/dist/fields/text/Captcha.d.ts +3 -0
  189. package/dist/fields/text/Fields.d.ts +6 -0
  190. package/dist/fields/text/Index.d.ts +3 -0
  191. package/dist/fields/text/Types.d.ts +80 -0
  192. package/dist/form/flows/AsamFilterPopover.vue.d.ts +51 -0
  193. package/dist/form/flows/AsamFormDrawer.vue.d.ts +34 -0
  194. package/dist/form/flows/AsamLoginForm.vue.d.ts +42 -0
  195. package/dist/form/flows/AsamLoginPage.vue.d.ts +51 -0
  196. package/dist/form/flows/AsamStepsForm.vue.d.ts +52 -0
  197. package/dist/form/flows/FlowFields.vue.d.ts +33 -0
  198. package/dist/form/flows/Focus.d.ts +2 -0
  199. package/dist/form/flows/Index.d.ts +6 -0
  200. package/dist/form/flows/LoginTemplateMessages.d.ts +45 -0
  201. package/dist/form/flows/OverlayStyle.d.ts +1 -0
  202. package/dist/form/flows/Session.d.ts +33 -0
  203. package/dist/form/flows/Types.d.ts +63 -0
  204. package/dist/form/schema/AsamSchemaForm.vue.d.ts +42 -0
  205. package/dist/form/schema/Controller.d.ts +47 -0
  206. package/dist/form/schema/Index.d.ts +6 -0
  207. package/dist/form/schema/Path.d.ts +10 -0
  208. package/dist/form/schema/Schema.d.ts +31 -0
  209. package/dist/form/schema/SchemaNodes.d.ts +34 -0
  210. package/dist/form/schema/Types.d.ts +114 -0
  211. package/dist/form/shared/ValidationSummary.vue.d.ts +17 -0
  212. package/dist/i18n/Parameters.d.ts +78 -0
  213. package/dist/i18n/Types.d.ts +10 -0
  214. package/dist/i18n/application/Parameters.d.ts +55 -0
  215. package/dist/i18n/application/Resolve.d.ts +7 -0
  216. package/dist/i18n/application/en.d.ts +53 -0
  217. package/dist/i18n/application/zh-CN.d.ts +53 -0
  218. package/dist/i18n/en.d.ts +1014 -0
  219. package/dist/i18n/en.js +2 -0
  220. package/dist/i18n/fields/Parameters.d.ts +467 -0
  221. package/dist/i18n/fields/en.d.ts +349 -0
  222. package/dist/i18n/fields/zh-CN.d.ts +349 -0
  223. package/dist/i18n/index.d.ts +11 -0
  224. package/dist/i18n/index.js +4 -0
  225. package/dist/i18n/tables/Parameters.d.ts +687 -0
  226. package/dist/i18n/tables/en.d.ts +542 -0
  227. package/dist/i18n/tables/zh-CN.d.ts +542 -0
  228. package/dist/i18n/zh-CN.d.ts +1008 -0
  229. package/dist/i18n/zh-CN.js +2 -0
  230. package/dist/i18n-CJTJI6vg.js +172 -0
  231. package/dist/index.d.ts +62 -0
  232. package/dist/index.js +13 -0
  233. package/dist/layout/AsamActionBar.vue.d.ts +16 -0
  234. package/dist/layout/AsamAdminLayout.vue.d.ts +25 -0
  235. package/dist/layout/AsamContentGrid.vue.d.ts +14 -0
  236. package/dist/layout/AsamFooter.vue.d.ts +11 -0
  237. package/dist/layout/AsamLayoutSettings.vue.d.ts +31 -0
  238. package/dist/layout/AsamPageContainer.vue.d.ts +20 -0
  239. package/dist/layout/Context.d.ts +2 -0
  240. package/dist/layout/Index.d.ts +8 -0
  241. package/dist/layout/Settings.d.ts +4 -0
  242. package/dist/layout/Types.d.ts +118 -0
  243. package/dist/list/AsamListRowActions.d.ts +23 -0
  244. package/dist/list/AsamProTable.d.ts +29 -0
  245. package/dist/list/AsamSearchForm.d.ts +67 -0
  246. package/dist/list/Controller.d.ts +3 -0
  247. package/dist/list/QueryBoundary.d.ts +8 -0
  248. package/dist/list/RowActionAdapter.d.ts +9 -0
  249. package/dist/list/Types.d.ts +134 -0
  250. package/dist/lists/AsamCardList.d.ts +15 -0
  251. package/dist/lists/AsamListCover.vue.d.ts +7 -0
  252. package/dist/lists/AsamProList.d.ts +9 -0
  253. package/dist/lists/AsamProTaskCard.vue.d.ts +21 -0
  254. package/dist/lists/Index.d.ts +4 -0
  255. package/dist/lists/Types.d.ts +135 -0
  256. package/dist/navigation-BVLFymx7.js +395 -0
  257. package/dist/preferences-DgHizA2w.js +335 -0
  258. package/dist/public-api.d.ts +3662 -0
  259. package/dist/resolver/index.d.ts +33 -0
  260. package/dist/resolver/index.js +4447 -0
  261. package/dist/security-B_pdVCWk.js +299 -0
  262. package/dist/style.css +2 -0
  263. package/dist/table/ActionIcon.d.ts +5 -0
  264. package/dist/table/Appearance.d.ts +37 -0
  265. package/dist/table/ColumnVisibility.d.ts +71 -0
  266. package/dist/table/Density.d.ts +3 -0
  267. package/dist/table/Empty.d.ts +14 -0
  268. package/dist/table/I18n.d.ts +73 -0
  269. package/dist/table/RowActionPresentation.d.ts +5 -0
  270. package/dist/table/RowActions.d.ts +80 -0
  271. package/dist/table/TableDensity.vue.d.ts +19 -0
  272. package/dist/table/TablePagination.vue.d.ts +24 -0
  273. package/dist/table/TableToolbar.vue.d.ts +18 -0
  274. package/dist/table/TableViewport.vue.d.ts +13 -0
  275. package/dist/table/editing/AsamEditableTable.d.ts +69 -0
  276. package/dist/table/editing/AsamEditableTable.vue.d.ts +61 -0
  277. package/dist/table/editing/AsamSortableTable.vue.d.ts +61 -0
  278. package/dist/table/editing/AsamTableEditingHost.vue.d.ts +52 -0
  279. package/dist/table/editing/CellEditor.vue.d.ts +20 -0
  280. package/dist/table/editing/Controller.d.ts +2 -0
  281. package/dist/table/editing/ControllerCell.vue.d.ts +18 -0
  282. package/dist/table/editing/Drag.d.ts +29 -0
  283. package/dist/table/editing/EntryForm.vue.d.ts +20 -0
  284. package/dist/table/editing/Host.d.ts +11 -0
  285. package/dist/table/editing/HostTypes.d.ts +53 -0
  286. package/dist/table/editing/Index.d.ts +9 -0
  287. package/dist/table/editing/InlineModel.d.ts +24 -0
  288. package/dist/table/editing/InlineTypes.d.ts +135 -0
  289. package/dist/table/editing/LegacyEditableTable.d.ts +66 -0
  290. package/dist/table/editing/LegacyMotion.d.ts +10 -0
  291. package/dist/table/editing/Motion.d.ts +19 -0
  292. package/dist/table/editing/Order.d.ts +7 -0
  293. package/dist/table/editing/SaveFeedback.d.ts +4 -0
  294. package/dist/table/editing/Types.d.ts +71 -0
  295. package/dist/table/operations/Coordinator.d.ts +3 -0
  296. package/dist/table/operations/Index.d.ts +6 -0
  297. package/dist/table/operations/Preferences.d.ts +7 -0
  298. package/dist/table/operations/Selection.d.ts +2 -0
  299. package/dist/table/operations/Snapshot.d.ts +5 -0
  300. package/dist/table/operations/Types.d.ts +157 -0
  301. package/dist/table/operations/View.d.ts +108 -0
  302. package/dist/table/range/AsamTableRange.vue.d.ts +19 -0
  303. package/dist/table/range/Controller.d.ts +3 -0
  304. package/dist/table/range/Index.d.ts +3 -0
  305. package/dist/table/range/Types.d.ts +127 -0
  306. package/dist/table/renderTableInViewport.d.ts +6 -0
  307. package/dist/table/structured/AsamStructuredTable.d.ts +2 -0
  308. package/dist/table/structured/Controller.d.ts +7 -0
  309. package/dist/table/structured/Forest.d.ts +4 -0
  310. package/dist/table/structured/Index.d.ts +6 -0
  311. package/dist/table/structured/Span.d.ts +5 -0
  312. package/dist/table/structured/Summary.d.ts +8 -0
  313. package/dist/table/structured/Types.d.ts +137 -0
  314. package/dist/table/transfer/AsamTableTransfer.vue.d.ts +11 -0
  315. package/dist/table/transfer/Controller.d.ts +3 -0
  316. package/dist/table/transfer/Gate.d.ts +3 -0
  317. package/dist/table/transfer/Index.d.ts +6 -0
  318. package/dist/table/transfer/Text.d.ts +25 -0
  319. package/dist/table/transfer/Types.d.ts +170 -0
  320. package/dist/table/virtual/AsamProVirtualTable.d.ts +22 -0
  321. package/dist/table/virtual/Index.d.ts +4 -0
  322. package/dist/table/virtual/Model.d.ts +16 -0
  323. package/dist/table/virtual/Styles.d.ts +2 -0
  324. package/dist/table/virtual/Types.d.ts +68 -0
  325. package/dist/templates/crud/AsamCrudPage.vue.d.ts +52 -0
  326. package/dist/templates/crud/Controller.d.ts +3 -0
  327. package/dist/templates/crud/DetailEntry.d.ts +46 -0
  328. package/dist/templates/crud/Index.d.ts +4 -0
  329. package/dist/templates/crud/Index.js +2 -0
  330. package/dist/templates/crud/Readonly.d.ts +3 -0
  331. package/dist/templates/crud/Structure.d.ts +8 -0
  332. package/dist/templates/crud/Types.d.ts +272 -0
  333. package/dist/templates/index.d.ts +1 -0
  334. package/dist/templates/index.js +10 -0
  335. package/dist/transport-Cky1a5c-.js +161 -0
  336. package/dist/types/application.d.ts +5 -0
  337. package/dist/types/components.d.ts +1 -0
  338. package/dist/types/index.d.ts +6 -0
  339. package/dist/types/index.js +0 -0
  340. package/dist/types/templates.d.ts +1 -0
  341. package/dist/use-custom-field-value-DgA3wo05.js +108 -0
  342. package/dist/zh-CN-B5pAhh4V.js +56 -0
  343. package/dist/zh-CN-BBWziFEy.js +966 -0
  344. package/package.json +177 -3
@@ -0,0 +1,135 @@
1
+ import type { AsamTableAppearanceEmits } from '../Appearance.js';
2
+ import type { VNodeChild } from 'vue';
3
+ import type { AsamTableSize, AsamControlSize, AsamRowKey } from '@asam-ui/ui';
4
+ import type { AsamListColumn } from '../../list/Types.js';
5
+ import type { AsamFieldDefinition } from '../../fields/Types.js';
6
+ export interface AsamEditableColumn<Row extends object> extends AsamListColumn<Row> {
7
+ readonly minWidth?: number;
8
+ readonly fixed?: 'left' | 'right';
9
+ /** Hidden keys retain their position in columnOrder. Groups are not supported. */
10
+ readonly hidden?: boolean;
11
+ /** A non-draggable column is a barrier; it cannot be crossed. */
12
+ readonly draggable?: boolean;
13
+ readonly resizable?: boolean;
14
+ readonly field?: AsamFieldDefinition | ((row: Row) => AsamFieldDefinition | undefined);
15
+ }
16
+ export type AsamCellStatus = 'changed' | 'validating' | 'invalid' | 'saving' | 'saved' | 'failure' | 'unknown';
17
+ export interface AsamCellIssue {
18
+ readonly rowKey: AsamRowKey;
19
+ readonly columnKey: string;
20
+ readonly message: string;
21
+ }
22
+ export interface AsamCellChange<Row extends object> {
23
+ readonly rowKey: AsamRowKey;
24
+ readonly columnKey: keyof Row & string;
25
+ readonly value: unknown;
26
+ readonly previousValue: unknown;
27
+ readonly row: Readonly<Row>;
28
+ readonly revision: number;
29
+ readonly signal: AbortSignal;
30
+ /** Recheck before host storage/session side effects; transport abort alone is insufficient. */
31
+ isCurrent(): boolean;
32
+ }
33
+ export interface AsamCellResult {
34
+ readonly status: 'success' | 'failure' | 'unknown';
35
+ /** Host-approved public text; backend exception messages are never shown automatically. */
36
+ readonly message?: string;
37
+ }
38
+ /** Verification confirms a dispatched write; it never resends persistence. */
39
+ export interface AsamCellVerificationResult {
40
+ readonly status: 'success' | 'not-applied' | 'unknown';
41
+ readonly message?: string;
42
+ }
43
+ export type AsamCellVerificationOutcome = AsamCellVerificationResult | {
44
+ readonly status: 'blocked' | 'cancelled';
45
+ };
46
+ export interface AsamTableOrderChange<Key extends string | number> {
47
+ readonly key: Key;
48
+ readonly before: readonly Key[];
49
+ readonly next: readonly Key[];
50
+ readonly source: 'pointer' | 'keyboard' | 'menu' | 'api';
51
+ }
52
+ export interface AsamInlineTableProps<Row extends object> {
53
+ readonly modelValue: readonly Row[];
54
+ readonly rowKey: (keyof Row & string) | ((row: Row) => AsamRowKey);
55
+ readonly columns: readonly AsamEditableColumn<Row>[];
56
+ readonly fields?: readonly AsamFieldDefinition[];
57
+ readonly columnOrder?: readonly string[];
58
+ /** Change when replacing the result scope, even if the next dataset reuses row keys. */
59
+ readonly session?: string | number;
60
+ readonly editable?: boolean;
61
+ readonly rowSortable?: boolean;
62
+ readonly columnSortable?: boolean;
63
+ readonly disabled?: boolean;
64
+ readonly readonly?: boolean;
65
+ readonly size?: AsamControlSize;
66
+ /** 表格行高:large 60、default 50、small 42、mini 36;不影响控件尺寸。 */
67
+ readonly tableSize?: AsamTableSize;
68
+ readonly height?: number | string;
69
+ readonly maxHeight?: number | string;
70
+ readonly stripe?: boolean;
71
+ readonly border?: boolean;
72
+ /** 内置边框按钮默认显示。宿主管理边框工具时可在即时表格中关闭。 */
73
+ readonly showBorderControl?: boolean;
74
+ /** Manual row order is blocked while host-applied value sorting is active. */
75
+ readonly valueSorted?: boolean;
76
+ readonly issues?: readonly AsamCellIssue[];
77
+ readonly validateCell?: (change: AsamCellChange<Row>) => readonly string[] | Promise<readonly string[]>;
78
+ /** Optional persistence; input feedback never waits for this request. No implicit legacy save(). */
79
+ readonly persistCell?: (change: AsamCellChange<Row>) => Promise<AsamCellResult>;
80
+ /** Explicit host verification of the original revision; unknown is never retried automatically. */
81
+ readonly verifyCell?: (change: AsamCellChange<Row>) => Promise<AsamCellVerificationResult>;
82
+ }
83
+ export interface AsamInlineTableEmits<Row extends object> extends AsamTableAppearanceEmits {
84
+ 'update:modelValue': [rows: Row[]];
85
+ 'update:columnOrder': [order: string[]];
86
+ 'cell-change': [change: AsamCellChange<Row>];
87
+ 'cell-state': [
88
+ state: {
89
+ rowKey: AsamRowKey;
90
+ columnKey: string;
91
+ revision: number;
92
+ status: AsamCellStatus;
93
+ /** Remains status=unknown while checking, so existing host locks remain active. */
94
+ verifying?: boolean;
95
+ messages: readonly string[];
96
+ }
97
+ ];
98
+ 'row-order-change': [change: AsamTableOrderChange<AsamRowKey>];
99
+ 'column-order-change': [change: AsamTableOrderChange<string>];
100
+ 'sort-change': [sort: {
101
+ prop?: string;
102
+ order: 'ascending' | 'descending' | null;
103
+ }];
104
+ 'header-dragend': [newWidth: number, oldWidth: number, column: unknown, event: MouseEvent];
105
+ }
106
+ export interface AsamInlineTableSlots<Row extends object> {
107
+ toolbar?: (scope: {
108
+ rows: readonly Row[];
109
+ }) => VNodeChild;
110
+ cell?: (scope: {
111
+ row: Row;
112
+ column: AsamEditableColumn<Row>;
113
+ value: unknown;
114
+ update(value: unknown): void;
115
+ }) => VNodeChild;
116
+ header?: (scope: {
117
+ column: AsamEditableColumn<Row>;
118
+ }) => VNodeChild;
119
+ /** Optional presentation column; absent keeps the original table shape. */
120
+ rowActions?: (scope: {
121
+ row: Row;
122
+ rowKey: AsamRowKey;
123
+ }) => VNodeChild;
124
+ empty?: () => VNodeChild;
125
+ }
126
+ export interface AsamInlineTableExpose {
127
+ moveRow(key: AsamRowKey, position: number): boolean;
128
+ moveColumn(key: string, position: number): boolean;
129
+ cancelDrag(): void;
130
+ focusCell(rowKey: AsamRowKey, columnKey: string): void;
131
+ /** Cancel only matching local validation/persistence; no implicit rollback of controlled data. */
132
+ cancelCell(rowKey: AsamRowKey, columnKey: string): void;
133
+ /** Confirm unknown without persisting again; unsupported/legacy calls return blocked explicitly. */
134
+ verifyCellResult(rowKey: AsamRowKey, columnKey: string): Promise<AsamCellVerificationOutcome>;
135
+ }
@@ -0,0 +1,66 @@
1
+ import type { AsamTableAppearanceProps } from '../Appearance.js';
2
+ import '../../display/shared/MessageButton.css';
3
+ import '../ActionText.css';
4
+ import type { VNodeChild } from 'vue';
5
+ import type { AsamTableSize, AsamControlSize, AsamRowKey } from '@asam-ui/ui';
6
+ import type { AsamListColumn } from '../../list/Types.js';
7
+ import type { AsamFieldModel } from '../../fields/Types.js';
8
+ import type { AsamTableEditingController, AsamTableEditMode } from './Types.js';
9
+ export interface AsamEditableTableProps<Row extends object> extends AsamTableAppearanceProps {
10
+ readonly controller: AsamTableEditingController<Row>;
11
+ readonly columns: readonly AsamListColumn<Row>[];
12
+ /** 应用稳定保留同一真实操作标识;新意图才产生新标识。 */
13
+ readonly operationId: (mode: AsamTableEditMode, key: AsamRowKey, field?: string) => string;
14
+ readonly batchPatch?: Readonly<AsamFieldModel>;
15
+ readonly sortable?: boolean;
16
+ readonly size?: AsamControlSize;
17
+ /** 表格行高:large 60、default 50、small 42、mini 36;不影响控件尺寸。 */
18
+ readonly tableSize?: AsamTableSize;
19
+ /** 兼容旧表下表单;inline 在原单格协议上启用双击/键盘进入及退出保存。 */
20
+ readonly cellEditing?: 'form' | 'inline';
21
+ }
22
+ export interface AsamEditableTableSlots<Row extends object> {
23
+ toolbar?: (scope: {
24
+ controller: AsamTableEditingController<Row>;
25
+ }) => VNodeChild;
26
+ cell?: (scope: {
27
+ row: Row;
28
+ column: AsamListColumn<Row>;
29
+ }) => VNodeChild;
30
+ empty?: () => VNodeChild;
31
+ }
32
+ export interface AsamEditableTableExpose {
33
+ save(): Promise<void>;
34
+ cancel(): Promise<boolean>;
35
+ verify(key: AsamRowKey): Promise<void>;
36
+ }
37
+ export type AsamSortableTableExpose = AsamEditableTableExpose;
38
+ export declare const AsamLegacyEditableTable: new <Row extends object>(props: AsamEditableTableProps<Row> & {
39
+ "onUpdate:border"?: ((...args: any[]) => any) | undefined;
40
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps) => import("vue").CreateComponentPublicInstanceWithMixins<AsamEditableTableProps<Row> & {
41
+ "onUpdate:border"?: ((...args: any[]) => any) | undefined;
42
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:border"[], import("vue").PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import("vue").ComponentProvideOptions, {
43
+ P: {};
44
+ B: {};
45
+ D: {};
46
+ C: {};
47
+ M: {};
48
+ Defaults: {};
49
+ }, AsamEditableTableProps<Row> & {
50
+ "onUpdate:border"?: ((...args: any[]) => any) | undefined;
51
+ }, {}, {}, {}, {}, {}>;
52
+ /** 同一编辑视图的显式排序入口,默认开启原生拖拽及等价键盘路径。 */
53
+ export declare const AsamLegacySortableTable: new <Row extends object>(props: Omit<AsamEditableTableProps<Row>, "sortable"> & {
54
+ "onUpdate:border"?: ((...args: any[]) => any) | undefined;
55
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps) => import("vue").CreateComponentPublicInstanceWithMixins<Omit<AsamEditableTableProps<Row>, "sortable"> & {
56
+ "onUpdate:border"?: ((...args: any[]) => any) | undefined;
57
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:border"[], import("vue").PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import("vue").ComponentProvideOptions, {
58
+ P: {};
59
+ B: {};
60
+ D: {};
61
+ C: {};
62
+ M: {};
63
+ Defaults: {};
64
+ }, Omit<AsamEditableTableProps<Row>, "sortable"> & {
65
+ "onUpdate:border"?: ((...args: any[]) => any) | undefined;
66
+ }, {}, {}, {}, {}, {}>;
@@ -0,0 +1,10 @@
1
+ import type { Ref } from 'vue';
2
+ import './LegacyMotion.css';
3
+ /** Native HTML drag owns the gesture and target. Only data-cell paint is animated. */
4
+ export declare function useLegacyRowMotion(root: Ref<HTMLElement | undefined>): {
5
+ start: (source: string, event: DragEvent) => void;
6
+ preview: (source: string, target: string, y?: number) => void;
7
+ cancel: () => void;
8
+ commit: (action: () => Promise<boolean>, keepPreview?: boolean) => Promise<boolean>;
9
+ reset: () => void;
10
+ };
@@ -0,0 +1,19 @@
1
+ import type { Ref } from 'vue';
2
+ import type { DragAxis } from './Drag.js';
3
+ interface DragItem {
4
+ key: string;
5
+ rect?: DOMRect;
6
+ }
7
+ type Snapshot = Map<string, {
8
+ rect: DOMRect;
9
+ lifted: boolean;
10
+ }>;
11
+ /** Presentation only: native tr/th geometry, DOM order and table state stay untouched. */
12
+ export declare function createTableDragMotion(root: Ref<HTMLElement | undefined>): {
13
+ update: (axis: DragAxis, key: string, items: DragItem[], target: string, after: boolean, coordinate: number, grab: number, allowed: boolean) => void;
14
+ snapshot: () => Snapshot;
15
+ clear: () => void;
16
+ settle: (before: Snapshot) => void;
17
+ stop: () => void;
18
+ };
19
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { AsamRowKey } from '@asam-ui/ui';
2
+ import type { AsamEditableColumn } from './InlineTypes.js';
3
+ export declare const identity: (key: AsamRowKey) => string;
4
+ export declare const cellIdentity: (rowKey: AsamRowKey, columnKey: string) => string;
5
+ export declare function moveKey<Key>(keys: readonly Key[], key: Key, position: number): Key[];
6
+ export declare function orderedColumns<Row extends object>(columns: readonly AsamEditableColumn<Row>[], order?: readonly string[]): AsamEditableColumn<Row>[];
7
+ export declare function canMoveColumn<Row extends object>(columns: readonly AsamEditableColumn<Row>[], key: string, position: number): boolean;
@@ -0,0 +1,4 @@
1
+ import type { AsamI18n } from '@asam-ui/ui/i18n';
2
+ import type { AsamTableEditingController } from './Types.js';
3
+ /** Only a dispatched, explicitly rejected write may surface its public business message. */
4
+ export declare function saveWithTableFeedback<Row extends object>(controller: AsamTableEditingController<Row>, i18n: AsamI18n, save: () => Promise<void>, current: () => boolean): Promise<void>;
@@ -0,0 +1,71 @@
1
+ import type { ComputedRef, Ref } from 'vue';
2
+ import type { AsamDataRuntime, AsamRowKey, AsamRequestContext } from '@asam-ui/ui';
3
+ import type { AsamFieldDefinition, AsamFieldModel } from '../../fields/Types.js';
4
+ import type { AsamListController } from '../../list/Types.js';
5
+ import type { AsamEditIssue, AsamEditorConfig, AsamEditorController, AsamWriteOperation, AsamSaveResult } from '../../editor/Types.js';
6
+ export type AsamTableEditMode = 'row' | 'cell' | 'batch' | 'order';
7
+ export interface AsamTableVerificationOutcome {
8
+ readonly status: 'success' | 'not-applied' | 'unknown' | 'blocked' | 'cancelled';
9
+ }
10
+ export interface AsamTableEditTarget {
11
+ readonly key: AsamRowKey;
12
+ readonly operationId: string;
13
+ }
14
+ export interface AsamTableEditEntry extends AsamTableEditTarget {
15
+ readonly editor: Pick<AsamEditorController, 'fields' | 'model' | 'status' | 'issues' | 'message' | 'formatMessage' | 'dirty' | 'busy'>;
16
+ readonly outcome: Readonly<Ref<'unsent' | 'success' | 'failure' | 'unknown'>>;
17
+ readonly issues: Readonly<Ref<readonly AsamEditIssue[]>>;
18
+ }
19
+ export interface AsamOrderChange {
20
+ readonly before: readonly AsamRowKey[];
21
+ readonly next: readonly AsamRowKey[];
22
+ }
23
+ /** 应用持有 runtime/coordinator 和稳定 operationId;failure 表示确定未应用。 */
24
+ export interface AsamTableEditingConfig<Row extends object> {
25
+ readonly list: AsamListController<Row>;
26
+ readonly runtime: AsamDataRuntime;
27
+ readonly coordinator: AsamEditorConfig['coordinator'];
28
+ readonly fields: readonly AsamFieldDefinition[];
29
+ readonly canWrite?: () => boolean;
30
+ readonly equals?: AsamEditorConfig['equals'];
31
+ readonly save: AsamEditorConfig['save'];
32
+ readonly verify?: AsamEditorConfig['verify'];
33
+ readonly saveOrder: (change: AsamOrderChange, operation: AsamWriteOperation, context: AsamRequestContext) => Promise<AsamSaveResult>;
34
+ readonly verifyOrder?: AsamEditorConfig['verify'];
35
+ /** 行级约束;cell/batch 的 keys 只含明确编辑的字段。 */
36
+ readonly validate?: (model: Readonly<AsamFieldModel>, keys: readonly string[], key: AsamRowKey) => Promise<readonly AsamEditIssue[]>;
37
+ readonly confirmDiscard: () => Promise<boolean>;
38
+ readonly onSaved?: AsamEditorConfig['onSaved'];
39
+ }
40
+ export interface AsamTableEditingController<Row extends object> {
41
+ readonly list: AsamListController<Row>;
42
+ readonly fields: readonly AsamFieldDefinition[];
43
+ readonly entries: Readonly<Ref<readonly AsamTableEditEntry[]>>;
44
+ readonly mode: Readonly<Ref<AsamTableEditMode | null>>;
45
+ readonly order: Readonly<Ref<readonly AsamRowKey[]>>;
46
+ readonly rows: ComputedRef<readonly Row[]>;
47
+ readonly busy: ComputedRef<boolean>;
48
+ readonly writable: ComputedRef<boolean>;
49
+ readonly message: Readonly<Ref<string>>;
50
+ keyOf(row: Row): AsamRowKey;
51
+ open(mode: 'row' | 'cell' | 'batch', targets: readonly AsamTableEditTarget[], options?: {
52
+ readonly field?: string;
53
+ readonly patch?: Readonly<AsamFieldModel>;
54
+ /** 仅 row:显式开启多行各自完整初值/草稿;省略仍只接收一行。 */
55
+ readonly multiple?: boolean;
56
+ }): Promise<boolean>;
57
+ update(key: AsamRowKey, field: string, value: unknown): boolean;
58
+ registerValidator(key: AsamRowKey, validate: () => Promise<readonly AsamEditIssue[]>): () => void;
59
+ save(): Promise<void>;
60
+ verify(key: AsamRowKey): Promise<void>;
61
+ /** Optional compatible host capabilities. Existing save/cancel/verify defaults stay unchanged. */
62
+ saveRows?(keys: readonly AsamRowKey[]): Promise<void>;
63
+ cancelRows?(keys: readonly AsamRowKey[]): Promise<boolean>;
64
+ /** Authoritative coordinator conclusion, never inferred from a void verify return. */
65
+ verifyResult?(key: AsamRowKey): Promise<AsamTableVerificationOutcome>;
66
+ move(key: AsamRowKey, to: AsamRowKey, operationId: string): Promise<boolean>;
67
+ cancel(): Promise<boolean>;
68
+ /** 宿主翻页、排序等操作经此入口;拒绝丢弃时不执行 action。 */
69
+ navigate(action: () => Promise<unknown>): Promise<boolean>;
70
+ dispose(): void;
71
+ }
@@ -0,0 +1,3 @@
1
+ import type { AsamTableOperationCoordinator } from './Types.js';
2
+ /** 应用持有并跨视图复用;不取消已派发写入,不自动刷新或重试。 */
3
+ export declare function createAsamTableOperationCoordinator(): AsamTableOperationCoordinator;
@@ -0,0 +1,6 @@
1
+ export * from './Types.js';
2
+ export { useAsamCrossPageSelection } from './Selection.js';
3
+ export { createAsamTableOperationCoordinator } from './Coordinator.js';
4
+ export { useAsamColumnPreferences } from './Preferences.js';
5
+ export { AsamOperationsTable } from './View.js';
6
+ export type { AsamOperationsTableProps, AsamReadonlyOperationsTableProps, AsamOperationsTableSlots, AsamOperationsTableEmits, AsamOperationsTableExpose } from './View.js';
@@ -0,0 +1,7 @@
1
+ import type { MaybeRefOrGetter } from 'vue';
2
+ import type { AsamColumnPreferenceAdapter, AsamColumnPreferences, AsamOperationColumn, AsamPreferenceScope } from './Types.js';
3
+ export declare function useAsamColumnPreferences<Row extends object>(config: {
4
+ readonly columns: readonly AsamOperationColumn<Row>[];
5
+ readonly scope: MaybeRefOrGetter<AsamPreferenceScope>;
6
+ readonly adapter: AsamColumnPreferenceAdapter;
7
+ }): AsamColumnPreferences<Row>;
@@ -0,0 +1,2 @@
1
+ import type { AsamCrossPageSelection, AsamCrossPageSelectionConfig } from './Types.js';
2
+ export declare function useAsamCrossPageSelection<Row extends object>(config: AsamCrossPageSelectionConfig<Row>): AsamCrossPageSelection;
@@ -0,0 +1,5 @@
1
+ import type { AsamRowKey } from '@asam-ui/ui';
2
+ /** 有限普通数据快照;拒绝函数、循环、实例及非有限数,避免共享可变业务对象。 */
3
+ export declare function operationSnapshot<T>(value: T): T;
4
+ export declare function validOperationKey(key: unknown): key is AsamRowKey;
5
+ export declare function operationIdentity(value: unknown): string;
@@ -0,0 +1,157 @@
1
+ import type { ComputedRef, MaybeRefOrGetter } from 'vue';
2
+ import type { AsamRowKey, AsamButtonProps } from '@asam-ui/ui';
3
+ import type { AsamListColumn, AsamListController } from '../../list/Types.js';
4
+ export type AsamOperationValue = null | boolean | number | string | readonly AsamOperationValue[] | {
5
+ readonly [key: string]: AsamOperationValue;
6
+ };
7
+ export interface AsamOperationContext {
8
+ readonly scope: string;
9
+ readonly session: number;
10
+ /** 显式clear/reset的世代;已发写入保留记录,尚未派发部分停止。 */
11
+ readonly generation: number;
12
+ readonly dataset: string;
13
+ readonly query: string;
14
+ }
15
+ export interface AsamCrossPageSelection {
16
+ readonly limit: number;
17
+ readonly keys: ComputedRef<readonly AsamRowKey[]>;
18
+ readonly error: ComputedRef<string>;
19
+ readonly ready: ComputedRef<boolean>;
20
+ context(): AsamOperationContext | null;
21
+ selectPage(rows: readonly object[]): boolean;
22
+ clear(): void;
23
+ reset(): void;
24
+ dispose(): void;
25
+ }
26
+ export interface AsamCrossPageSelectionConfig<Row extends object> {
27
+ readonly controller: AsamListController<Row>;
28
+ /** 宿主提供有效数据集身份,不包含页码;查询/排序仍额外核对。 */
29
+ readonly dataset: MaybeRefOrGetter<string>;
30
+ readonly selectionLimit?: number;
31
+ }
32
+ export interface AsamOperationTarget {
33
+ readonly key: AsamRowKey;
34
+ readonly version: string;
35
+ readonly payload: AsamOperationValue;
36
+ }
37
+ export type AsamTargetResolution = {
38
+ readonly key: AsamRowKey;
39
+ readonly target: AsamOperationTarget;
40
+ } | {
41
+ readonly key: AsamRowKey;
42
+ readonly reason: string;
43
+ };
44
+ export type AsamTargetStatus = 'unsent' | 'success' | 'failure' | 'unknown';
45
+ export interface AsamTargetResult {
46
+ readonly key: AsamRowKey;
47
+ readonly status: AsamTargetStatus;
48
+ readonly message?: string;
49
+ /** false为派发预登记或未调用;true表示execute已经实际调用,不承诺服务端已写入。 */
50
+ readonly dispatched?: boolean;
51
+ }
52
+ export interface AsamOperationSnapshot {
53
+ readonly operationId: string;
54
+ readonly action: string;
55
+ readonly context: AsamOperationContext;
56
+ readonly targets: readonly AsamOperationTarget[];
57
+ readonly rejected: readonly {
58
+ readonly key: AsamRowKey;
59
+ readonly reason: string;
60
+ }[];
61
+ }
62
+ export interface AsamOperationRecord {
63
+ readonly snapshot: AsamOperationSnapshot;
64
+ readonly phase: 'preparing' | 'confirming' | 'running' | 'settled' | 'cancelled';
65
+ readonly results: readonly AsamTargetResult[];
66
+ readonly message: string;
67
+ }
68
+ /** 一个原子批次的统一结果;不将同一调用拆成逐目标发送。 */
69
+ export interface AsamBatchResult {
70
+ readonly status: 'success' | 'failure' | 'unknown';
71
+ readonly message?: string;
72
+ }
73
+ export interface AsamBatchVerification {
74
+ /** unsent 仅用于可信证据确认未应用;读到旧数据、读失败或丢响应不能据此释放未决锁。 */
75
+ readonly status: AsamBatchResult['status'] | 'unsent';
76
+ readonly message?: string;
77
+ }
78
+ export interface AsamBatchOperation {
79
+ /** 完整冻结快照一次派发;业务适配器负责真实服务的原子性。 */
80
+ execute(snapshot: AsamOperationSnapshot): Promise<AsamBatchResult>;
81
+ /** 一次核实完整批次;只读目标存在不能证明原请求未发送或未应用。 */
82
+ verify(snapshot: AsamOperationSnapshot): Promise<AsamBatchVerification>;
83
+ }
84
+ export interface AsamTableOperation {
85
+ readonly id: string;
86
+ readonly label: string;
87
+ /** 表格按钮的展示配置;不会覆盖写入协调器的守卫。行操作默认 primary plain。 */
88
+ readonly button?: Readonly<Pick<AsamButtonProps, 'type' | 'plain' | 'link' | 'text'>>;
89
+ readonly busyKey?: string;
90
+ readonly visible?: () => boolean;
91
+ readonly enabled?: () => boolean;
92
+ /** 同步权限检查在解析后、确认后及每次发送前执行。 */
93
+ readonly allowed: (target: AsamOperationTarget, context: AsamOperationContext) => boolean;
94
+ readonly resolve: (keys: readonly AsamRowKey[], context: AsamOperationContext) => Promise<readonly AsamTargetResolution[]>;
95
+ readonly confirm: (snapshot: AsamOperationSnapshot) => Promise<boolean>;
96
+ /** 显式整批模式:任何拒绝、变更或失权均整批不发送;未提供时保持逐目标模式。 */
97
+ readonly batch?: AsamBatchOperation;
98
+ /** 每次只发送一个目标;返回不确定/抛错均进入unknown,绝不自动重发。 */
99
+ readonly execute: (target: AsamOperationTarget, snapshot: AsamOperationSnapshot) => Promise<AsamTargetResult>;
100
+ readonly verify: (target: AsamOperationTarget, snapshot: AsamOperationSnapshot) => Promise<AsamTargetResult>;
101
+ readonly notify?: (record: AsamOperationRecord) => void;
102
+ }
103
+ export interface AsamTableOperationCoordinator {
104
+ readonly records: ComputedRef<readonly AsamOperationRecord[]>;
105
+ readonly busy: ComputedRef<readonly string[]>;
106
+ /** 同scope与busyKey的未决目标;忽略query/session变化,防止换ID重放。 */
107
+ conflictingKeys(action: Pick<AsamTableOperation, 'id' | 'busyKey'>, keys: readonly AsamRowKey[], scope: string): readonly AsamRowKey[];
108
+ run(action: AsamTableOperation, operationId: string, keys: readonly AsamRowKey[], selection: AsamCrossPageSelection): Promise<AsamOperationRecord | null>;
109
+ retry(operationId: string, selection: AsamCrossPageSelection): Promise<AsamOperationRecord | null>;
110
+ verify(operationId: string): Promise<AsamOperationRecord | null>;
111
+ }
112
+ export interface AsamPreferenceScope {
113
+ readonly application: string;
114
+ readonly principal: string;
115
+ readonly table: string;
116
+ readonly version: string;
117
+ }
118
+ export interface AsamOperationColumn<Row extends object> extends AsamListColumn<Row> {
119
+ /** fill 模式中 false 保留该列固定偏好宽度,未声明时沿用原最小宽度铺满。 */
120
+ readonly flex?: boolean;
121
+ readonly required?: boolean;
122
+ readonly movable?: boolean;
123
+ readonly defaultVisible?: boolean;
124
+ readonly minWidth?: number;
125
+ readonly maxWidth?: number;
126
+ }
127
+ export interface AsamColumnPreference {
128
+ readonly key: string;
129
+ readonly visible: boolean;
130
+ readonly width: number;
131
+ }
132
+ export interface AsamColumnPreferenceDocument {
133
+ readonly schema: 1;
134
+ readonly scope: AsamPreferenceScope;
135
+ readonly columns: readonly AsamColumnPreference[];
136
+ }
137
+ export interface AsamColumnPreferenceAdapter {
138
+ load(scope: AsamPreferenceScope): Promise<unknown>;
139
+ save(scope: AsamPreferenceScope, document: AsamColumnPreferenceDocument): Promise<void>;
140
+ reset(scope: AsamPreferenceScope): Promise<void>;
141
+ }
142
+ export interface AsamColumnPreferences<Row extends object> {
143
+ /** 完整业务列元数据;旧手工 preferences 可省略,columns 仍仅表示可见列。 */
144
+ readonly definitions?: readonly AsamOperationColumn<Row>[];
145
+ readonly columns: ComputedRef<readonly AsamOperationColumn<Row>[]>;
146
+ readonly items: ComputedRef<readonly AsamColumnPreference[]>;
147
+ readonly message: ComputedRef<string>;
148
+ readonly pending: ComputedRef<boolean>;
149
+ readonly dirty: ComputedRef<boolean>;
150
+ visible(key: string, value: boolean): boolean;
151
+ move(key: string, to: number): boolean;
152
+ width(key: string, value: number): boolean;
153
+ load(): Promise<void>;
154
+ save(): Promise<void>;
155
+ reset(): Promise<void>;
156
+ dispose(): void;
157
+ }
@@ -0,0 +1,108 @@
1
+ import type { AsamTableAppearanceProps, AsamTableAppearanceEmits } from '../Appearance.js';
2
+ import '../../display/shared/MessageButton.css';
3
+ import '../ActionText.css';
4
+ import type { InjectionKey, VNodeChild } from 'vue';
5
+ import type { AsamStructuredController } from '../structured/Types.js';
6
+ import type { AsamControlSize, AsamTableSize, AsamTableEmits } from '@asam-ui/ui';
7
+ import type { AsamListAction, AsamListController } from '../../list/Types.js';
8
+ import type { AsamColumnPreferences, AsamCrossPageSelection, AsamOperationColumn, AsamOperationRecord, AsamTableOperation, AsamTableOperationCoordinator } from './Types.js';
9
+ export interface AsamOperationsTableProps<Row extends object> extends AsamTableAppearanceProps {
10
+ readonly readonly?: false;
11
+ readonly controller: AsamListController<Row>;
12
+ readonly selection: AsamCrossPageSelection;
13
+ readonly coordinator: AsamTableOperationCoordinator;
14
+ readonly preferences: AsamColumnPreferences<Row>;
15
+ readonly operations: readonly AsamTableOperation[];
16
+ /** 宿主生成可稳定复用的ID;同一ID不会再次发送。 */
17
+ readonly operationId: (action: string) => string;
18
+ readonly actions?: readonly AsamListAction<Row>[];
19
+ readonly rowActions?: readonly AsamListAction<Row>[];
20
+ readonly size?: AsamControlSize;
21
+ /** 表格行高独立于工具栏、分页和按钮尺寸;默认 default (50px)。 */
22
+ readonly tableSize?: AsamTableSize;
23
+ /** content 保持精确偏好列宽;fill 以偏好为最小宽度并由原生表格分配剩余空间。 */
24
+ readonly widthMode?: 'content' | 'fill';
25
+ readonly actionColumnWidth?: number;
26
+ /** 操作列默认固定右侧,false 显式关闭;业务列 fixed 独立保留。 */
27
+ readonly actionColumnFixed?: 'right' | false;
28
+ /** 预加载树引擎;所有 original 必须为本列表当前结果的 canonical Row。 */
29
+ readonly structure?: AsamStructuredController<Row> & {
30
+ readonly mode: 'tree';
31
+ };
32
+ /** 默认显示公共分页栏;false 用于树或宿主管理分页的场景。 */
33
+ readonly pagination?: boolean;
34
+ /** 行操作独立尺寸;不影响工具栏、查询和分页。 */
35
+ readonly rowActionSize?: AsamControlSize;
36
+ /** 显式启用单行及真实更多菜单;省略时保留旧换行呈现。 */
37
+ readonly rowActionOverflow?: boolean;
38
+ /** 默认 true;列自身 resizable 优先,与高级表的显示边框开关独立。 */
39
+ readonly resizable?: boolean;
40
+ readonly columnSettings?: 'popover' | 'panel';
41
+ /** 仅列设置入口/浮层的禁用态;默认不禁用,不替代业务控制器权限。 */
42
+ readonly columnSettingsDisabled?: boolean;
43
+ /** 自定义普通用户结果区的可访问名称;省略保留原诊断记录名称。 */
44
+ readonly operationRecordLabel?: string;
45
+ }
46
+ /** 纯读取视图保留选择、列偏好与分页,不构造写协调器。 */
47
+ export interface AsamReadonlyOperationsTableProps<Row extends object> extends Omit<AsamOperationsTableProps<Row>, 'readonly' | 'coordinator' | 'operations' | 'operationId'> {
48
+ readonly readonly: true;
49
+ readonly coordinator?: never;
50
+ readonly operations?: never;
51
+ readonly operationId?: never;
52
+ }
53
+ export interface AsamOperationsTableSlots<Row extends object> {
54
+ toolbar?: () => VNodeChild;
55
+ /** 刷新之后的附加表格工具,不替代既有控制器动作。 */
56
+ tools?: () => VNodeChild;
57
+ 'tools-end'?: () => VNodeChild;
58
+ cell?: (context: {
59
+ row: Row;
60
+ column: AsamOperationColumn<Row>;
61
+ }) => VNodeChild;
62
+ /** 为当前行提供自定义操作;页面所有行都为空时隐藏操作列。 */
63
+ rowActions?: (context: {
64
+ row: Row;
65
+ }) => VNodeChild;
66
+ /** 宿主可渲染读取错误并调用同一结果的重试入口。 */
67
+ error?: (context: {
68
+ error: NonNullable<AsamListController<Row>['page']['error']['value']>;
69
+ retry: AsamListController<Row>['retry'];
70
+ }) => VNodeChild;
71
+ empty?: () => VNodeChild;
72
+ record?: (context: {
73
+ record: AsamOperationRecord;
74
+ }) => VNodeChild;
75
+ }
76
+ export interface AsamOperationsTableExpose {
77
+ clearSelection(): void;
78
+ loadPreferences(): Promise<void>;
79
+ }
80
+ export interface AsamOperationsTableEmits<Row extends object> extends AsamTableAppearanceEmits {
81
+ 'row-dblclick': AsamTableEmits<Row>['row-dblclick'];
82
+ 'expand-change': [row: Row, expanded: boolean];
83
+ }
84
+ export declare const listTablePresentationKey: InjectionKey<(controller: object) => boolean>;
85
+ export declare const AsamOperationsTable: new <Row extends object>(props: ((AsamOperationsTableProps<Row> | AsamReadonlyOperationsTableProps<Row>) & {
86
+ "onExpand-change"?: ((...args: any[]) => any) | undefined;
87
+ "onRow-dblclick"?: ((...args: any[]) => any) | undefined;
88
+ "onUpdate:border"?: ((...args: any[]) => any) | undefined;
89
+ }) & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps) => import("vue").CreateComponentPublicInstanceWithMixins<(AsamOperationsTableProps<Row> | AsamReadonlyOperationsTableProps<Row>) & {
90
+ "onExpand-change"?: ((...args: any[]) => any) | undefined;
91
+ "onRow-dblclick"?: ((...args: any[]) => any) | undefined;
92
+ "onUpdate:border"?: ((...args: any[]) => any) | undefined;
93
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("row-dblclick" | "expand-change" | "update:border")[], import("vue").PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import("vue").ComponentProvideOptions, {
94
+ P: {};
95
+ B: {};
96
+ D: {};
97
+ C: {};
98
+ M: {};
99
+ Defaults: {};
100
+ }, (AsamOperationsTableProps<Row> & {
101
+ "onExpand-change"?: ((...args: any[]) => any) | undefined;
102
+ "onRow-dblclick"?: ((...args: any[]) => any) | undefined;
103
+ "onUpdate:border"?: ((...args: any[]) => any) | undefined;
104
+ }) | (AsamReadonlyOperationsTableProps<Row> & {
105
+ "onExpand-change"?: ((...args: any[]) => any) | undefined;
106
+ "onRow-dblclick"?: ((...args: any[]) => any) | undefined;
107
+ "onUpdate:border"?: ((...args: any[]) => any) | undefined;
108
+ }), {}, {}, {}, {}, {}>;
@@ -0,0 +1,19 @@
1
+ import type { AsamTableRangeProps, AsamTableRangeExpose } from './Types.js';
2
+ declare const __VLS_export: <Row extends object>(__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<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<AsamTableRangeProps<Row>> & (typeof globalThis extends {
4
+ __VLS_PROPS_FALLBACK: infer P;
5
+ } ? P : {});
6
+ expose: (exposed: import("vue").ShallowUnwrapRef<AsamTableRangeExpose>) => void;
7
+ attrs: any;
8
+ slots: {};
9
+ emit: {};
10
+ }>) => import("vue").VNode & {
11
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
12
+ };
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
16
+ [K in keyof T]: T[K];
17
+ } : {
18
+ [K in keyof T as K]: T[K];
19
+ }) & {};
@@ -0,0 +1,3 @@
1
+ import type { AsamTableRangeConfig, AsamTableRangeController } from './Types.js';
2
+ /** 仅管理当前投影、选择和未提交草稿;业务事务完全复用022及宿主coordinator。 */
3
+ export declare function useAsamTableRange<Row extends object>(config: AsamTableRangeConfig<Row>): AsamTableRangeController<Row>;
@@ -0,0 +1,3 @@
1
+ export { default as AsamTableRange } from './AsamTableRange.vue';
2
+ export { useAsamTableRange } from './Controller.js';
3
+ export type * from './Types.js';