@adapttable/ant-design-vue 0.0.0-stage → 0.2.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 (421) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +555 -2
  3. package/dist/AnchoredPopover-B-zosogj.cjs +96 -0
  4. package/dist/AnchoredPopover-B-zosogj.cjs.map +1 -0
  5. package/dist/AnchoredPopover-B9QYyyy-.js +85 -0
  6. package/dist/AnchoredPopover-B9QYyyy-.js.map +1 -0
  7. package/dist/AntdCard-CFVZgsUM.js +34 -0
  8. package/dist/AntdCard-CFVZgsUM.js.map +1 -0
  9. package/dist/AntdCard-Jx9wJdT_.cjs +39 -0
  10. package/dist/AntdCard-Jx9wJdT_.cjs.map +1 -0
  11. package/dist/AntdCheckbox-D9gzdPeG.cjs +112 -0
  12. package/dist/AntdCheckbox-D9gzdPeG.cjs.map +1 -0
  13. package/dist/AntdCheckbox-D_B7eXrQ.js +107 -0
  14. package/dist/AntdCheckbox-D_B7eXrQ.js.map +1 -0
  15. package/dist/AntdColumnMenuPanel-BisjIL_u.js +126 -0
  16. package/dist/AntdColumnMenuPanel-BisjIL_u.js.map +1 -0
  17. package/dist/AntdColumnMenuPanel-QsF2AHKd.cjs +137 -0
  18. package/dist/AntdColumnMenuPanel-QsF2AHKd.cjs.map +1 -0
  19. package/dist/AntdFilterField-D-w-xtRS.js +337 -0
  20. package/dist/AntdFilterField-D-w-xtRS.js.map +1 -0
  21. package/dist/AntdFilterField-DYdwUyPe.cjs +366 -0
  22. package/dist/AntdFilterField-DYdwUyPe.cjs.map +1 -0
  23. package/dist/AntdFilterHeaderRow-C2zlhb1L.js +221 -0
  24. package/dist/AntdFilterHeaderRow-C2zlhb1L.js.map +1 -0
  25. package/dist/AntdFilterHeaderRow-DZ2Pq2BG.cjs +232 -0
  26. package/dist/AntdFilterHeaderRow-DZ2Pq2BG.cjs.map +1 -0
  27. package/dist/AntdFilterHeaderRow.vue-bSjrpoCP.d.cts +33 -0
  28. package/dist/AntdFilterHeaderRow.vue-bSjrpoCP.d.cts.map +1 -0
  29. package/dist/AntdFilterHeaderRow.vue-bSjrpoCP.d.ts +33 -0
  30. package/dist/AntdFilterHeaderRow.vue-bSjrpoCP.d.ts.map +1 -0
  31. package/dist/AntdInput-BFNEDXzq.cjs +97 -0
  32. package/dist/AntdInput-BFNEDXzq.cjs.map +1 -0
  33. package/dist/AntdInput-ONL_AJ3Y.js +92 -0
  34. package/dist/AntdInput-ONL_AJ3Y.js.map +1 -0
  35. package/dist/AntdRowActions-D2Pce95h.cjs +106 -0
  36. package/dist/AntdRowActions-D2Pce95h.cjs.map +1 -0
  37. package/dist/AntdRowActions-cZQk-mT_.js +101 -0
  38. package/dist/AntdRowActions-cZQk-mT_.js.map +1 -0
  39. package/dist/AntdSelect-D-Oy0101.js +140 -0
  40. package/dist/AntdSelect-D-Oy0101.js.map +1 -0
  41. package/dist/AntdSelect-DYoLHfOo.cjs +151 -0
  42. package/dist/AntdSelect-DYoLHfOo.cjs.map +1 -0
  43. package/dist/antdActionSlots-CjNxmqIB.cjs +13 -0
  44. package/dist/antdActionSlots-CjNxmqIB.cjs.map +1 -0
  45. package/dist/antdActionSlots-eKczvTu9.js +8 -0
  46. package/dist/antdActionSlots-eKczvTu9.js.map +1 -0
  47. package/dist/antdRemainingControls-CQcrvZpV.js +237 -0
  48. package/dist/antdRemainingControls-CQcrvZpV.js.map +1 -0
  49. package/dist/antdRemainingControls-CjAK8L7r.cjs +260 -0
  50. package/dist/antdRemainingControls-CjAK8L7r.cjs.map +1 -0
  51. package/dist/assistant.cjs +339 -0
  52. package/dist/assistant.cjs.map +1 -0
  53. package/dist/assistant.d.cts +10 -0
  54. package/dist/assistant.d.cts.map +1 -0
  55. package/dist/assistant.d.ts +10 -0
  56. package/dist/assistant.d.ts.map +1 -0
  57. package/dist/assistant.js +335 -0
  58. package/dist/assistant.js.map +1 -0
  59. package/dist/batch-editing.cjs +4 -0
  60. package/dist/batch-editing.d.cts +2 -0
  61. package/dist/batch-editing.d.ts +2 -0
  62. package/dist/batch-editing.js +2 -0
  63. package/dist/bulk-actions.cjs +15 -0
  64. package/dist/bulk-actions.cjs.map +1 -0
  65. package/dist/bulk-actions.d.cts +6 -0
  66. package/dist/bulk-actions.d.cts.map +1 -0
  67. package/dist/bulk-actions.d.ts +6 -0
  68. package/dist/bulk-actions.d.ts.map +1 -0
  69. package/dist/bulk-actions.js +14 -0
  70. package/dist/bulk-actions.js.map +1 -0
  71. package/dist/button-llfktOrH.cjs +77 -0
  72. package/dist/button-llfktOrH.cjs.map +1 -0
  73. package/dist/button-pAA17ogP.js +66 -0
  74. package/dist/button-pAA17ogP.js.map +1 -0
  75. package/dist/cell-navigation-C7nWnSxt.cjs +85 -0
  76. package/dist/cell-navigation-C7nWnSxt.cjs.map +1 -0
  77. package/dist/cell-navigation-gmXXkZ0E.js +74 -0
  78. package/dist/cell-navigation-gmXXkZ0E.js.map +1 -0
  79. package/dist/cell-navigation.cjs +4 -0
  80. package/dist/cell-navigation.d.cts +9 -0
  81. package/dist/cell-navigation.d.cts.map +1 -0
  82. package/dist/cell-navigation.d.ts +9 -0
  83. package/dist/cell-navigation.d.ts.map +1 -0
  84. package/dist/cell-navigation.js +2 -0
  85. package/dist/cell-span.cjs +8 -0
  86. package/dist/cell-span.d.cts +2 -0
  87. package/dist/cell-span.d.ts +2 -0
  88. package/dist/cell-span.js +2 -0
  89. package/dist/checkbox-BRHAklGV.js +21 -0
  90. package/dist/checkbox-BRHAklGV.js.map +1 -0
  91. package/dist/checkbox-DBL8jd6A.cjs +26 -0
  92. package/dist/checkbox-DBL8jd6A.cjs.map +1 -0
  93. package/dist/classNamesContext-18Wbxy4F.js +2 -0
  94. package/dist/column-groups.cjs +8 -0
  95. package/dist/column-groups.d.cts +2 -0
  96. package/dist/column-groups.d.ts +2 -0
  97. package/dist/column-groups.js +2 -0
  98. package/dist/column-layout.cjs +24 -0
  99. package/dist/column-layout.cjs.map +1 -0
  100. package/dist/column-layout.d.cts +12 -0
  101. package/dist/column-layout.d.cts.map +1 -0
  102. package/dist/column-layout.d.ts +12 -0
  103. package/dist/column-layout.d.ts.map +1 -0
  104. package/dist/column-layout.js +22 -0
  105. package/dist/column-layout.js.map +1 -0
  106. package/dist/column-menu-BIQ0V_l4.js +134 -0
  107. package/dist/column-menu-BIQ0V_l4.js.map +1 -0
  108. package/dist/column-menu-C8AEmjov.cjs +145 -0
  109. package/dist/column-menu-C8AEmjov.cjs.map +1 -0
  110. package/dist/column-menu.cjs +4 -0
  111. package/dist/column-menu.d.cts +34 -0
  112. package/dist/column-menu.d.cts.map +1 -0
  113. package/dist/column-menu.d.ts +34 -0
  114. package/dist/column-menu.d.ts.map +1 -0
  115. package/dist/column-menu.js +2 -0
  116. package/dist/column-selection.cjs +3 -0
  117. package/dist/column-selection.d.cts +2 -0
  118. package/dist/column-selection.d.ts +2 -0
  119. package/dist/column-selection.js +2 -0
  120. package/dist/columns.cjs +26 -0
  121. package/dist/columns.d.cts +3 -0
  122. package/dist/columns.d.ts +3 -0
  123. package/dist/columns.js +2 -0
  124. package/dist/command-palette.cjs +43 -0
  125. package/dist/command-palette.cjs.map +1 -0
  126. package/dist/command-palette.d.cts +7 -0
  127. package/dist/command-palette.d.cts.map +1 -0
  128. package/dist/command-palette.d.ts +7 -0
  129. package/dist/command-palette.d.ts.map +1 -0
  130. package/dist/command-palette.js +42 -0
  131. package/dist/command-palette.js.map +1 -0
  132. package/dist/context-menu.cjs +34 -0
  133. package/dist/context-menu.cjs.map +1 -0
  134. package/dist/context-menu.d.cts +7 -0
  135. package/dist/context-menu.d.cts.map +1 -0
  136. package/dist/context-menu.d.ts +7 -0
  137. package/dist/context-menu.d.ts.map +1 -0
  138. package/dist/context-menu.js +33 -0
  139. package/dist/context-menu.js.map +1 -0
  140. package/dist/density-BGYZiREt.js +81 -0
  141. package/dist/density-BGYZiREt.js.map +1 -0
  142. package/dist/density-DwoIsjhn.cjs +86 -0
  143. package/dist/density-DwoIsjhn.cjs.map +1 -0
  144. package/dist/density.cjs +3 -0
  145. package/dist/density.d.cts +7 -0
  146. package/dist/density.d.cts.map +1 -0
  147. package/dist/density.d.ts +7 -0
  148. package/dist/density.d.ts.map +1 -0
  149. package/dist/density.js +2 -0
  150. package/dist/editing-C2bX-h0b.js +406 -0
  151. package/dist/editing-C2bX-h0b.js.map +1 -0
  152. package/dist/editing-D7nib8vf.d.cts +68 -0
  153. package/dist/editing-D7nib8vf.d.cts.map +1 -0
  154. package/dist/editing-DwmhJyRy.cjs +452 -0
  155. package/dist/editing-DwmhJyRy.cjs.map +1 -0
  156. package/dist/editing-EcNF6SH-.d.ts +68 -0
  157. package/dist/editing-EcNF6SH-.d.ts.map +1 -0
  158. package/dist/editing.cjs +13 -0
  159. package/dist/editing.d.cts +2 -0
  160. package/dist/editing.d.ts +2 -0
  161. package/dist/editing.js +2 -0
  162. package/dist/export-BvFzcnOH.cjs +15 -0
  163. package/dist/export-BvFzcnOH.cjs.map +1 -0
  164. package/dist/export-LdiMI-Kb.js +10 -0
  165. package/dist/export-LdiMI-Kb.js.map +1 -0
  166. package/dist/export-pdf.cjs +53 -0
  167. package/dist/export-pdf.cjs.map +1 -0
  168. package/dist/export-pdf.d.cts +8 -0
  169. package/dist/export-pdf.d.cts.map +1 -0
  170. package/dist/export-pdf.d.ts +8 -0
  171. package/dist/export-pdf.d.ts.map +1 -0
  172. package/dist/export-pdf.js +10 -0
  173. package/dist/export-pdf.js.map +1 -0
  174. package/dist/export-xlsx.cjs +23 -0
  175. package/dist/export-xlsx.cjs.map +1 -0
  176. package/dist/export-xlsx.d.cts +8 -0
  177. package/dist/export-xlsx.d.cts.map +1 -0
  178. package/dist/export-xlsx.d.ts +8 -0
  179. package/dist/export-xlsx.d.ts.map +1 -0
  180. package/dist/export-xlsx.js +10 -0
  181. package/dist/export-xlsx.js.map +1 -0
  182. package/dist/export.cjs +3 -0
  183. package/dist/export.d.cts +9 -0
  184. package/dist/export.d.cts.map +1 -0
  185. package/dist/export.d.ts +9 -0
  186. package/dist/export.d.ts.map +1 -0
  187. package/dist/export.js +2 -0
  188. package/dist/extra-rows.cjs +8 -0
  189. package/dist/extra-rows.d.cts +2 -0
  190. package/dist/extra-rows.d.ts +2 -0
  191. package/dist/extra-rows.js +2 -0
  192. package/dist/filtering.cjs +22 -0
  193. package/dist/filtering.cjs.map +1 -0
  194. package/dist/filtering.d.cts +13 -0
  195. package/dist/filtering.d.cts.map +1 -0
  196. package/dist/filtering.d.ts +13 -0
  197. package/dist/filtering.d.ts.map +1 -0
  198. package/dist/filtering.js +21 -0
  199. package/dist/filtering.js.map +1 -0
  200. package/dist/filters-B9Bku-_Z.js +256 -0
  201. package/dist/filters-B9Bku-_Z.js.map +1 -0
  202. package/dist/filters-C7_REVIj.cjs +308 -0
  203. package/dist/filters-C7_REVIj.cjs.map +1 -0
  204. package/dist/filters.cjs +21 -0
  205. package/dist/filters.d.cts +77 -0
  206. package/dist/filters.d.cts.map +1 -0
  207. package/dist/filters.d.ts +77 -0
  208. package/dist/filters.d.ts.map +1 -0
  209. package/dist/filters.js +3 -0
  210. package/dist/find-in-table-BwSZ3K3a.js +57 -0
  211. package/dist/find-in-table-BwSZ3K3a.js.map +1 -0
  212. package/dist/find-in-table-DrcHalH3.cjs +61 -0
  213. package/dist/find-in-table-DrcHalH3.cjs.map +1 -0
  214. package/dist/find-in-table.cjs +3 -0
  215. package/dist/find-in-table.d.cts +9 -0
  216. package/dist/find-in-table.d.cts.map +1 -0
  217. package/dist/find-in-table.d.ts +9 -0
  218. package/dist/find-in-table.d.ts.map +1 -0
  219. package/dist/find-in-table.js +2 -0
  220. package/dist/fit-columns.cjs +8 -0
  221. package/dist/fit-columns.d.cts +2 -0
  222. package/dist/fit-columns.d.ts +2 -0
  223. package/dist/fit-columns.js +2 -0
  224. package/dist/focusTrap-CBLumRSW.cjs +52 -0
  225. package/dist/focusTrap-CBLumRSW.cjs.map +1 -0
  226. package/dist/focusTrap-pCE3KCOC.js +41 -0
  227. package/dist/focusTrap-pCE3KCOC.js.map +1 -0
  228. package/dist/fullscreen.cjs +15 -0
  229. package/dist/fullscreen.cjs.map +1 -0
  230. package/dist/fullscreen.d.cts +6 -0
  231. package/dist/fullscreen.d.cts.map +1 -0
  232. package/dist/fullscreen.d.ts +6 -0
  233. package/dist/fullscreen.d.ts.map +1 -0
  234. package/dist/fullscreen.js +14 -0
  235. package/dist/fullscreen.js.map +1 -0
  236. package/dist/grouping-panel.cjs +145 -0
  237. package/dist/grouping-panel.cjs.map +1 -0
  238. package/dist/grouping-panel.d.cts +8 -0
  239. package/dist/grouping-panel.d.cts.map +1 -0
  240. package/dist/grouping-panel.d.ts +8 -0
  241. package/dist/grouping-panel.d.ts.map +1 -0
  242. package/dist/grouping-panel.js +145 -0
  243. package/dist/grouping-panel.js.map +1 -0
  244. package/dist/grouping.cjs +41 -0
  245. package/dist/grouping.cjs.map +1 -0
  246. package/dist/grouping.d.cts +10 -0
  247. package/dist/grouping.d.cts.map +1 -0
  248. package/dist/grouping.d.ts +10 -0
  249. package/dist/grouping.d.ts.map +1 -0
  250. package/dist/grouping.js +22 -0
  251. package/dist/grouping.js.map +1 -0
  252. package/dist/handlers-Br0_3lPS.cjs +17 -0
  253. package/dist/handlers-Br0_3lPS.cjs.map +1 -0
  254. package/dist/handlers-xPUYC5j6.js +12 -0
  255. package/dist/handlers-xPUYC5j6.js.map +1 -0
  256. package/dist/header-filters-0xo31PXV.js +70 -0
  257. package/dist/header-filters-0xo31PXV.js.map +1 -0
  258. package/dist/header-filters-DYsEkFD9.cjs +80 -0
  259. package/dist/header-filters-DYsEkFD9.cjs.map +1 -0
  260. package/dist/header-filters.cjs +7 -0
  261. package/dist/header-filters.d.cts +24 -0
  262. package/dist/header-filters.d.cts.map +1 -0
  263. package/dist/header-filters.d.ts +24 -0
  264. package/dist/header-filters.d.ts.map +1 -0
  265. package/dist/header-filters.js +3 -0
  266. package/dist/icon-BDUM_Xmy.js +18 -0
  267. package/dist/icon-BDUM_Xmy.js.map +1 -0
  268. package/dist/icon-CeQ6QTNJ.cjs +23 -0
  269. package/dist/icon-CeQ6QTNJ.cjs.map +1 -0
  270. package/dist/index.cjs +599 -0
  271. package/dist/index.cjs.map +1 -0
  272. package/dist/index.d.cts +24 -0
  273. package/dist/index.d.cts.map +1 -0
  274. package/dist/index.d.ts +24 -0
  275. package/dist/index.d.ts.map +1 -0
  276. package/dist/index.js +597 -0
  277. package/dist/index.js.map +1 -0
  278. package/dist/menuKeyboard-Be6RV6HV.cjs +81 -0
  279. package/dist/menuKeyboard-Be6RV6HV.cjs.map +1 -0
  280. package/dist/menuKeyboard-CpHOc6uW.js +70 -0
  281. package/dist/menuKeyboard-CpHOc6uW.js.map +1 -0
  282. package/dist/multi-sort.cjs +8 -0
  283. package/dist/multi-sort.d.cts +2 -0
  284. package/dist/multi-sort.d.ts +2 -0
  285. package/dist/multi-sort.js +2 -0
  286. package/dist/nested-table.cjs +8 -0
  287. package/dist/nested-table.d.cts +2 -0
  288. package/dist/nested-table.d.ts +2 -0
  289. package/dist/nested-table.js +2 -0
  290. package/dist/pinned-summary-rows.cjs +8 -0
  291. package/dist/pinned-summary-rows.d.cts +2 -0
  292. package/dist/pinned-summary-rows.d.ts +2 -0
  293. package/dist/pinned-summary-rows.js +2 -0
  294. package/dist/pivot.cjs +81 -0
  295. package/dist/pivot.cjs.map +1 -0
  296. package/dist/pivot.d.cts +10 -0
  297. package/dist/pivot.d.cts.map +1 -0
  298. package/dist/pivot.d.ts +10 -0
  299. package/dist/pivot.d.ts.map +1 -0
  300. package/dist/pivot.js +80 -0
  301. package/dist/pivot.js.map +1 -0
  302. package/dist/popupContainer-C0uOjWEO.cjs +27 -0
  303. package/dist/popupContainer-C0uOjWEO.cjs.map +1 -0
  304. package/dist/popupContainer-CzyUSIJI.js +22 -0
  305. package/dist/popupContainer-CzyUSIJI.js.map +1 -0
  306. package/dist/preset.cjs +40 -0
  307. package/dist/preset.cjs.map +1 -0
  308. package/dist/preset.d.cts +21 -0
  309. package/dist/preset.d.cts.map +1 -0
  310. package/dist/preset.d.ts +21 -0
  311. package/dist/preset.d.ts.map +1 -0
  312. package/dist/preset.js +38 -0
  313. package/dist/preset.js.map +1 -0
  314. package/dist/print.cjs +15 -0
  315. package/dist/print.cjs.map +1 -0
  316. package/dist/print.d.cts +6 -0
  317. package/dist/print.d.cts.map +1 -0
  318. package/dist/print.d.ts +6 -0
  319. package/dist/print.d.ts.map +1 -0
  320. package/dist/print.js +14 -0
  321. package/dist/print.js.map +1 -0
  322. package/dist/resizable-columns.cjs +8 -0
  323. package/dist/resizable-columns.d.cts +2 -0
  324. package/dist/resizable-columns.d.ts +2 -0
  325. package/dist/resizable-columns.js +2 -0
  326. package/dist/row-actions.cjs +15 -0
  327. package/dist/row-actions.cjs.map +1 -0
  328. package/dist/row-actions.d.cts +7 -0
  329. package/dist/row-actions.d.cts.map +1 -0
  330. package/dist/row-actions.d.ts +7 -0
  331. package/dist/row-actions.d.ts.map +1 -0
  332. package/dist/row-actions.js +14 -0
  333. package/dist/row-actions.js.map +1 -0
  334. package/dist/row-appearance.cjs +8 -0
  335. package/dist/row-appearance.d.cts +2 -0
  336. package/dist/row-appearance.d.ts +2 -0
  337. package/dist/row-appearance.js +2 -0
  338. package/dist/row-detail.cjs +28 -0
  339. package/dist/row-detail.d.cts +4 -0
  340. package/dist/row-detail.d.ts +4 -0
  341. package/dist/row-detail.js +4 -0
  342. package/dist/row-pinning.cjs +15 -0
  343. package/dist/row-pinning.cjs.map +1 -0
  344. package/dist/row-pinning.d.cts +8 -0
  345. package/dist/row-pinning.d.cts.map +1 -0
  346. package/dist/row-pinning.d.ts +8 -0
  347. package/dist/row-pinning.d.ts.map +1 -0
  348. package/dist/row-pinning.js +14 -0
  349. package/dist/row-pinning.js.map +1 -0
  350. package/dist/row-reorder.cjs +168 -0
  351. package/dist/row-reorder.cjs.map +1 -0
  352. package/dist/row-reorder.d.cts +7 -0
  353. package/dist/row-reorder.d.cts.map +1 -0
  354. package/dist/row-reorder.d.ts +7 -0
  355. package/dist/row-reorder.d.ts.map +1 -0
  356. package/dist/row-reorder.js +162 -0
  357. package/dist/row-reorder.js.map +1 -0
  358. package/dist/rowActionsSlot-75ZknCMX.cjs +21 -0
  359. package/dist/rowActionsSlot-75ZknCMX.cjs.map +1 -0
  360. package/dist/rowActionsSlot-CZsFwkQq.js +11 -0
  361. package/dist/rowActionsSlot-CZsFwkQq.js.map +1 -0
  362. package/dist/rows.cjs +30 -0
  363. package/dist/rows.d.cts +6 -0
  364. package/dist/rows.d.ts +6 -0
  365. package/dist/rows.js +4 -0
  366. package/dist/saved-views-B7Z6nwie.js +135 -0
  367. package/dist/saved-views-B7Z6nwie.js.map +1 -0
  368. package/dist/saved-views-DBXLa86I.cjs +146 -0
  369. package/dist/saved-views-DBXLa86I.cjs.map +1 -0
  370. package/dist/saved-views.cjs +4 -0
  371. package/dist/saved-views.d.cts +15 -0
  372. package/dist/saved-views.d.cts.map +1 -0
  373. package/dist/saved-views.d.ts +15 -0
  374. package/dist/saved-views.d.ts.map +1 -0
  375. package/dist/saved-views.js +2 -0
  376. package/dist/scrollbarGutter-C0KgyWkH.js +39 -0
  377. package/dist/scrollbarGutter-C0KgyWkH.js.map +1 -0
  378. package/dist/scrollbarGutter-LdIJUA1p.cjs +50 -0
  379. package/dist/scrollbarGutter-LdIJUA1p.cjs.map +1 -0
  380. package/dist/selection-stats.cjs +3 -0
  381. package/dist/selection-stats.d.cts +2 -0
  382. package/dist/selection-stats.d.ts +2 -0
  383. package/dist/selection-stats.js +2 -0
  384. package/dist/selection.cjs +8 -0
  385. package/dist/selection.d.cts +2 -0
  386. package/dist/selection.d.ts +2 -0
  387. package/dist/selection.js +2 -0
  388. package/dist/side-panel.cjs +29 -0
  389. package/dist/side-panel.cjs.map +1 -0
  390. package/dist/side-panel.d.cts +7 -0
  391. package/dist/side-panel.d.cts.map +1 -0
  392. package/dist/side-panel.d.ts +7 -0
  393. package/dist/side-panel.d.ts.map +1 -0
  394. package/dist/side-panel.js +28 -0
  395. package/dist/side-panel.js.map +1 -0
  396. package/dist/status-bar-D2UUx4zG.cjs +78 -0
  397. package/dist/status-bar-D2UUx4zG.cjs.map +1 -0
  398. package/dist/status-bar-DKc2qWoh.js +68 -0
  399. package/dist/status-bar-DKc2qWoh.js.map +1 -0
  400. package/dist/status-bar.cjs +4 -0
  401. package/dist/status-bar.d.cts +7 -0
  402. package/dist/status-bar.d.cts.map +1 -0
  403. package/dist/status-bar.d.ts +7 -0
  404. package/dist/status-bar.d.ts.map +1 -0
  405. package/dist/status-bar.js +2 -0
  406. package/dist/styles.css +869 -0
  407. package/dist/tree.cjs +21 -0
  408. package/dist/tree.d.cts +3 -0
  409. package/dist/tree.d.ts +3 -0
  410. package/dist/tree.js +3 -0
  411. package/dist/types-CLQKtnFl.d.cts +2 -0
  412. package/dist/types-CLQKtnFl.d.ts +2 -0
  413. package/dist/virtualize.cjs +8 -0
  414. package/dist/virtualize.d.cts +2 -0
  415. package/dist/virtualize.d.ts +2 -0
  416. package/dist/virtualize.js +2 -0
  417. package/dist/withAntdExport-D58sVJ7b.cjs +80 -0
  418. package/dist/withAntdExport-D58sVJ7b.cjs.map +1 -0
  419. package/dist/withAntdExport-QFf2KVNO.js +75 -0
  420. package/dist/withAntdExport-QFf2KVNO.js.map +1 -0
  421. package/package.json +533 -3
@@ -0,0 +1,335 @@
1
+ import { t as antdButton } from "./button-pAA17ogP.js";
2
+ import { t as _sfc_main } from "./AntdInput-ONL_AJ3Y.js";
3
+ import { t as _sfc_main$1 } from "./AntdSelect-D-Oy0101.js";
4
+ import { t as popupContainer } from "./popupContainer-CzyUSIJI.js";
5
+ import { t as AntdCard } from "./AntdCard-CFVZgsUM.js";
6
+ import { n as trapTab, t as firstTabbable } from "./focusTrap-pCE3KCOC.js";
7
+ import { n as handleMenuKey, t as focusOnOpen } from "./menuKeyboard-CpHOc6uW.js";
8
+ import { defineComponent, h, shallowRef, watch } from "vue";
9
+ import { AgentApprovalChrome, TableAssistantChrome, createAdapterAgentApprovalFeature, createAdapterTableAssistantFeature, scheduleTick, useScopeActivity } from "@adapttable/vue/adapter";
10
+ import { Drawer, Dropdown, Menu, MenuItem, Tag } from "ant-design-vue";
11
+ //#region src/assistant/ExamplesMenu.ts
12
+ /** One shortcut: its icon, title and optional description. */
13
+ function menuItem(item) {
14
+ return h(MenuItem, {
15
+ key: item.id,
16
+ "data-adapttable-part": item.part
17
+ }, { default: () => [item.icon, h("span", [h("strong", item.title), item.description ? h("small", item.description) : null])] });
18
+ }
19
+ /** The assistant's shortcuts in an Ant Design Vue dropdown under its trigger. */
20
+ const AntdExamplesMenu = defineComponent((props) => {
21
+ const active = useScopeActivity();
22
+ const trigger = shallowRef(null);
23
+ const open = shallowRef(false);
24
+ let generation = 0;
25
+ const focusMenu = focusOnOpen(scheduleTick);
26
+ watch([
27
+ active,
28
+ () => props.disabled,
29
+ () => props.items,
30
+ () => props.onSelect
31
+ ], () => {
32
+ generation++;
33
+ open.value = false;
34
+ }, { flush: "sync" });
35
+ const keydown = (event) => {
36
+ if (event.key !== "Escape" || event.isComposing) return;
37
+ event.preventDefault();
38
+ event.stopPropagation();
39
+ open.value = false;
40
+ trigger.value?.focus({ preventScroll: true });
41
+ };
42
+ return () => {
43
+ if (!active.value) return null;
44
+ const ticket = generation;
45
+ const current = () => active.value && !props.disabled && ticket === generation;
46
+ const choose = ({ key }) => {
47
+ open.value = false;
48
+ const id = String(key);
49
+ if (current() && props.items.some((item) => item.id === id)) props.onSelect(id);
50
+ };
51
+ return h(Dropdown, {
52
+ trigger: ["click"],
53
+ open: open.value && !props.disabled,
54
+ disabled: props.disabled,
55
+ getPopupContainer: popupContainer(true),
56
+ overlayStyle: { maxHeight: props.maxHeight },
57
+ destroyPopupOnHide: true,
58
+ onOpenChange: (value) => {
59
+ open.value = value;
60
+ }
61
+ }, {
62
+ default: () => antdButton({
63
+ ref: (element) => {
64
+ trigger.value = element;
65
+ },
66
+ type: "button",
67
+ disabled: props.disabled,
68
+ "aria-label": props.label,
69
+ title: props.label,
70
+ class: props.className,
71
+ "data-adapttable-part": props.part,
72
+ onKeydown: (event) => {
73
+ if (open.value) keydown(event);
74
+ }
75
+ }, [props.icon ?? props.label]),
76
+ overlay: () => h(Menu, {
77
+ "aria-label": props.label,
78
+ selectable: false,
79
+ onKeydownCapture: keydown,
80
+ onKeydown: handleMenuKey,
81
+ ref: focusMenu,
82
+ onClick: choose
83
+ }, { default: () => props.items.map(menuItem) })
84
+ });
85
+ };
86
+ }, {
87
+ name: "AntdExamplesMenu",
88
+ props: {
89
+ label: { type: String },
90
+ part: { type: String },
91
+ className: { type: String },
92
+ icon: {
93
+ type: [
94
+ String,
95
+ Number,
96
+ Boolean,
97
+ Array,
98
+ Object
99
+ ],
100
+ default: void 0
101
+ },
102
+ disabled: {
103
+ type: Boolean,
104
+ default: void 0
105
+ },
106
+ items: { type: Array },
107
+ onSelect: { type: Function },
108
+ maxHeight: { type: String }
109
+ }
110
+ });
111
+ //#endregion
112
+ //#region src/assistant/Sheet.ts
113
+ /**
114
+ * Chrome chooses initial and return focus; the Ant Design Vue drawer keeps focus inside and owns
115
+ * the portal. Escape and backdrop dismissal become one close request to the
116
+ * host, and the drawer stays open until the host closes it.
117
+ */
118
+ const AntdAssistantSheet = defineComponent((props) => {
119
+ const active = useScopeActivity();
120
+ const requestClose = () => {
121
+ if (active.value && props.open) props.onClose();
122
+ };
123
+ const panel = shallowRef(null);
124
+ const keydown = (event) => {
125
+ if (panel.value && trapTab(event, panel.value)) return;
126
+ if (event.key !== "Escape" || event.defaultPrevented || event.isComposing) return;
127
+ event.preventDefault();
128
+ event.stopPropagation();
129
+ requestClose();
130
+ };
131
+ watch(panel, (current, _previous, onCleanup) => {
132
+ if (!current || typeof ResizeObserver === "undefined") return;
133
+ const observer = new ResizeObserver(() => {
134
+ if (current.getClientRects().length === 0) return;
135
+ observer.disconnect();
136
+ if (!props.open || current.contains(document.activeElement)) return;
137
+ (current.querySelector("[data-adapttable-part=\"assistant-input\"]") ?? firstTabbable(current) ?? current).focus({ preventScroll: true });
138
+ });
139
+ observer.observe(current);
140
+ onCleanup(() => observer.disconnect());
141
+ });
142
+ return () => {
143
+ if (!active.value) return null;
144
+ return h(Drawer, {
145
+ open: props.open,
146
+ placement: props.dir === "rtl" ? "left" : "right",
147
+ width: "min(28rem, 100%)",
148
+ closable: false,
149
+ destroyOnClose: true,
150
+ keyboard: false,
151
+ autofocus: false,
152
+ maskClosable: true,
153
+ title: void 0,
154
+ bodyStyle: { padding: 0 },
155
+ rootClassName: "adapttable-ant-design-vue-assistant-sheet",
156
+ onClose: requestClose
157
+ }, { default: () => h("div", {
158
+ ref: (element) => {
159
+ panel.value = element instanceof HTMLElement ? element : null;
160
+ },
161
+ role: "dialog",
162
+ "aria-modal": "true",
163
+ "aria-label": props.label,
164
+ "data-adapttable-part": props.part,
165
+ dir: props.dir,
166
+ tabindex: -1,
167
+ class: props.className,
168
+ style: {
169
+ blockSize: "100%",
170
+ outline: "none"
171
+ },
172
+ onKeydown: keydown
173
+ }, [props.children]) });
174
+ };
175
+ }, {
176
+ name: "AntdAssistantSheet",
177
+ props: {
178
+ label: { type: String },
179
+ part: { type: String },
180
+ className: { type: String },
181
+ dir: { type: String },
182
+ open: {
183
+ type: Boolean,
184
+ default: void 0
185
+ },
186
+ onClose: { type: Function },
187
+ children: {
188
+ type: [
189
+ String,
190
+ Number,
191
+ Boolean,
192
+ Array,
193
+ Object
194
+ ],
195
+ default: void 0
196
+ }
197
+ }
198
+ });
199
+ //#endregion
200
+ //#region src/assistant/controls.ts
201
+ /** Ant Design Vue tag colors for the assistant's status tones. */
202
+ const TAG_COLOR = {
203
+ neutral: "default",
204
+ busy: "processing",
205
+ warning: "warning",
206
+ danger: "error"
207
+ };
208
+ const antdAssistantControls = {
209
+ Button: (props) => antdButton({
210
+ type: "button",
211
+ "data-adapttable-part": props.part,
212
+ "aria-label": props.label,
213
+ "aria-expanded": props.expanded,
214
+ title: props.tooltip,
215
+ class: props.className,
216
+ disabled: props.disabled,
217
+ onClick: props.onClick
218
+ }, [props.icon, props.iconOnly && props.icon ? null : props.children ?? props.label]),
219
+ Composer: (props) => h(_sfc_main, {
220
+ type: "textarea",
221
+ rows: 1,
222
+ value: props.value,
223
+ disabled: props.disabled,
224
+ "data-adapttable-part": props.part,
225
+ "aria-label": props.label,
226
+ placeholder: props.placeholder,
227
+ class: ["adapttable-ant-design-vue-assistant-input", props.className],
228
+ onChange: props.onChange,
229
+ onKeydown: props.onKeyDown
230
+ }),
231
+ Badge: (props) => h(Tag, {
232
+ "data-adapttable-part": props.part,
233
+ "data-tone": props.tone,
234
+ color: TAG_COLOR[props.tone],
235
+ style: props.tone === "warning" ? { color: "inherit" } : void 0,
236
+ class: props.className
237
+ }, { default: () => props.label }),
238
+ Panel: (props) => h(AntdCard, { attrs: {
239
+ role: "region",
240
+ "data-adapttable-part": props.part,
241
+ "aria-label": props.label,
242
+ class: ["adapttable-ant-design-vue-assistant-panel", props.className]
243
+ } }, { default: () => props.children }),
244
+ Window: (props) => h(AntdCard, { attrs: {
245
+ role: "region",
246
+ "data-adapttable-part": props.part,
247
+ "aria-label": props.label,
248
+ class: ["adapttable-ant-design-vue-assistant-window", props.className],
249
+ style: props.style
250
+ } }, { default: () => props.children }),
251
+ Sheet: (props) => h(AntdAssistantSheet, {
252
+ ...props,
253
+ key: props.part
254
+ }),
255
+ Menu: (props) => h(AntdExamplesMenu, props),
256
+ LanguageChip: (props) => h(_sfc_main$1, {
257
+ "data-adapttable-part": props.part,
258
+ "aria-label": props.label,
259
+ class: props.className,
260
+ disabled: props.disabled,
261
+ value: props.value,
262
+ options: props.options,
263
+ onChange: props.onChange
264
+ })
265
+ };
266
+ const antdApprovalControls = {
267
+ Approve: antdAssistantControls.Button,
268
+ Reject: antdAssistantControls.Button,
269
+ Action: antdAssistantControls.Button,
270
+ List: (props) => h("ul", {
271
+ "data-adapttable-part": props.part,
272
+ "aria-label": props.label,
273
+ class: ["adapttable-ant-design-vue-approval-list", props.className]
274
+ }, [props.children])
275
+ };
276
+ //#endregion
277
+ //#region src/assistant.ts
278
+ const TableAssistant = defineComponent((props) => () => h(TableAssistantChrome, {
279
+ ...props,
280
+ accent: props.accent ?? "var(--adapttable-ant-design-vue-primary)",
281
+ slots: antdAssistantControls
282
+ }), {
283
+ name: "AntdTableAssistant",
284
+ props: {
285
+ assistant: { type: Object },
286
+ speech: { type: Object },
287
+ open: {
288
+ type: Boolean,
289
+ default: void 0
290
+ },
291
+ onOpenChange: { type: Function },
292
+ presentation: { type: String },
293
+ labels: { type: Object },
294
+ accent: { type: String },
295
+ receipts: {
296
+ type: Boolean,
297
+ default: void 0
298
+ },
299
+ className: { type: String },
300
+ launcher: {
301
+ type: Boolean,
302
+ default: void 0
303
+ },
304
+ onSettings: { type: Function },
305
+ boundary: { type: [String, Object] },
306
+ note: { type: String },
307
+ greeting: { type: String },
308
+ avatars: { type: Object },
309
+ messageAction: { type: Function },
310
+ approval: { type: Object },
311
+ dir: { type: String }
312
+ }
313
+ });
314
+ const AgentApproval = defineComponent((props) => () => h(AgentApprovalChrome, {
315
+ ...props,
316
+ slots: antdApprovalControls
317
+ }), {
318
+ name: "AntdAgentApproval",
319
+ props: {
320
+ pending: { type: Object },
321
+ labels: { type: Object },
322
+ className: { type: String },
323
+ buttonClassName: { type: String }
324
+ }
325
+ });
326
+ function tableAssistant() {
327
+ return createAdapterTableAssistantFeature((props) => h(TableAssistant, props));
328
+ }
329
+ function agentApproval() {
330
+ return createAdapterAgentApprovalFeature((props) => h(AgentApproval, props));
331
+ }
332
+ //#endregion
333
+ export { AgentApproval, TableAssistant, agentApproval, tableAssistant };
334
+
335
+ //# sourceMappingURL=assistant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assistant.js","names":["AntdInput","AntdSelect"],"sources":["../src/assistant/ExamplesMenu.ts","../src/assistant/Sheet.ts","../src/assistant/controls.ts","../src/assistant.ts"],"sourcesContent":["import {\n scheduleTick,\n type TableAssistantMenuProps,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport { Dropdown, Menu, MenuItem } from \"ant-design-vue\";\nimport { defineComponent, h, type PropType, shallowRef, watch } from \"vue\";\n\nimport { antdButton } from \"../controls/button\";\nimport { focusOnOpen, handleMenuKey } from \"../controls/menuKeyboard\";\nimport { popupContainer } from \"../controls/popupContainer\";\n\n/** One shortcut: its icon, title and optional description. */\nfunction menuItem(item: TableAssistantMenuProps[\"items\"][number]) {\n return h(\n MenuItem,\n { key: item.id, \"data-adapttable-part\": item.part },\n {\n default: () => [\n item.icon,\n h(\"span\", [\n h(\"strong\", item.title),\n item.description ? h(\"small\", item.description) : null,\n ]),\n ],\n }\n );\n}\n\n/** The assistant's shortcuts in an Ant Design Vue dropdown under its trigger. */\nexport const AntdExamplesMenu = defineComponent(\n (props: TableAssistantMenuProps) => {\n const active = useScopeActivity();\n const trigger = shallowRef<HTMLElement | null>(null);\n const open = shallowRef(false);\n let generation = 0;\n const focusMenu = focusOnOpen(scheduleTick);\n watch(\n [active, () => props.disabled, () => props.items, () => props.onSelect],\n () => {\n generation++;\n open.value = false;\n },\n { flush: \"sync\" }\n );\n // The menu closes itself on Escape and hands focus back to its trigger,\n // so an Escape inside it never reaches the surface around the trigger.\n const keydown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\" || event.isComposing) return;\n event.preventDefault();\n event.stopPropagation();\n open.value = false;\n trigger.value?.focus({ preventScroll: true });\n };\n return () => {\n if (!active.value) return null;\n const ticket = generation;\n const current = () =>\n active.value && !props.disabled && ticket === generation;\n const choose = ({ key }: { key: string | number }) => {\n open.value = false;\n const id = String(key);\n if (current() && props.items.some((item) => item.id === id))\n props.onSelect(id);\n };\n return h(\n Dropdown,\n {\n trigger: [\"click\"],\n open: open.value && !props.disabled,\n disabled: props.disabled,\n // The list leaves the sheet so the drawer's scrolling never clips it.\n getPopupContainer: popupContainer(true),\n overlayStyle: { maxHeight: props.maxHeight },\n destroyPopupOnHide: true,\n onOpenChange: (value: boolean) => {\n open.value = value;\n },\n },\n {\n default: () =>\n antdButton(\n {\n ref: (element: HTMLElement | null) => {\n trigger.value = element;\n },\n type: \"button\",\n disabled: props.disabled,\n \"aria-label\": props.label,\n title: props.label,\n class: props.className,\n \"data-adapttable-part\": props.part,\n onKeydown: (event: KeyboardEvent) => {\n if (open.value) keydown(event);\n },\n },\n [props.icon ?? props.label]\n ),\n overlay: () =>\n h(\n Menu,\n {\n // Captured on the list so an Escape from any item reaches it\n // before Ant Design Vue's own handling moves focus into the list.\n \"aria-label\": props.label,\n selectable: false,\n onKeydownCapture: keydown,\n onKeydown: handleMenuKey,\n ref: focusMenu,\n onClick: choose,\n },\n { default: () => props.items.map(menuItem) }\n ),\n }\n );\n };\n },\n {\n name: \"AntdExamplesMenu\",\n props: {\n label: { type: String as PropType<TableAssistantMenuProps[\"label\"]> },\n part: { type: String as PropType<TableAssistantMenuProps[\"part\"]> },\n className: {\n type: String as PropType<TableAssistantMenuProps[\"className\"]>,\n },\n icon: {\n type: [String, Number, Boolean, Array, Object] as PropType<\n TableAssistantMenuProps[\"icon\"]\n >,\n default: undefined,\n },\n disabled: {\n type: Boolean as PropType<TableAssistantMenuProps[\"disabled\"]>,\n default: undefined,\n },\n items: { type: Array as PropType<TableAssistantMenuProps[\"items\"]> },\n onSelect: {\n type: Function as PropType<TableAssistantMenuProps[\"onSelect\"]>,\n },\n maxHeight: {\n type: String as PropType<TableAssistantMenuProps[\"maxHeight\"]>,\n },\n },\n }\n);\n","import {\n type TableAssistantSheetProps,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport { Drawer } from \"ant-design-vue\";\nimport { defineComponent, h, type PropType, shallowRef, watch } from \"vue\";\n\nimport { firstTabbable, trapTab } from \"../controls/focusTrap\";\n\n/**\n * Chrome chooses initial and return focus; the Ant Design Vue drawer keeps focus inside and owns\n * the portal. Escape and backdrop dismissal become one close request to the\n * host, and the drawer stays open until the host closes it.\n */\nexport const AntdAssistantSheet = defineComponent(\n (props: TableAssistantSheetProps) => {\n const active = useScopeActivity();\n const requestClose = () => {\n if (active.value && props.open) props.onClose();\n };\n const panel = shallowRef<HTMLElement | null>(null);\n const keydown = (event: KeyboardEvent) => {\n if (panel.value && trapTab(event, panel.value)) return;\n if (event.key !== \"Escape\" || event.defaultPrevented || event.isComposing)\n return;\n event.preventDefault();\n event.stopPropagation();\n requestClose();\n };\n // The drawer shows its panel a tick after mounting, so focus the chrome\n // placed while it was hidden never lands. When the panel first renders,\n // focus moves to the conversation's input, or else its first control.\n watch(panel, (current, _previous, onCleanup) => {\n if (!current || typeof ResizeObserver === \"undefined\") return;\n const observer = new ResizeObserver(() => {\n if (current.getClientRects().length === 0) return;\n observer.disconnect();\n if (!props.open || current.contains(document.activeElement)) return;\n (\n current.querySelector<HTMLElement>(\n '[data-adapttable-part=\"assistant-input\"]'\n ) ??\n firstTabbable(current) ??\n current\n ).focus({ preventScroll: true });\n });\n observer.observe(current);\n onCleanup(() => observer.disconnect());\n });\n return () => {\n if (!active.value) return null;\n return h(\n Drawer,\n {\n open: props.open,\n placement: props.dir === \"rtl\" ? \"left\" : \"right\",\n // Relative to the drawer's overlay, which excludes a classic\n // scrollbar or a reserved gutter; 100vw does not.\n width: \"min(28rem, 100%)\",\n closable: false,\n destroyOnClose: true,\n keyboard: false,\n // Chrome chooses the initial focus, so the drawer must not.\n autofocus: false,\n maskClosable: true,\n title: undefined,\n bodyStyle: { padding: 0 },\n rootClassName: \"adapttable-ant-design-vue-assistant-sheet\",\n // Chrome places the initial focus and returns it to the launcher;\n // the drawer only keeps the page behind it inert while open.\n onClose: requestClose,\n },\n {\n // The drawer forwards no attribute, so the dialog's role, name, part\n // and key handling live on the panel inside it.\n default: () =>\n h(\n \"div\",\n {\n ref: (element: unknown) => {\n panel.value = element instanceof HTMLElement ? element : null;\n },\n role: \"dialog\",\n \"aria-modal\": \"true\",\n \"aria-label\": props.label,\n \"data-adapttable-part\": props.part,\n dir: props.dir,\n tabindex: -1,\n class: props.className,\n // A definite height, so the surface inside fills the drawer.\n style: { blockSize: \"100%\", outline: \"none\" },\n onKeydown: keydown,\n },\n [props.children]\n ),\n }\n );\n };\n },\n {\n name: \"AntdAssistantSheet\",\n props: {\n label: { type: String as PropType<TableAssistantSheetProps[\"label\"]> },\n part: { type: String as PropType<TableAssistantSheetProps[\"part\"]> },\n className: {\n type: String as PropType<TableAssistantSheetProps[\"className\"]>,\n },\n dir: { type: String as PropType<TableAssistantSheetProps[\"dir\"]> },\n open: {\n type: Boolean as PropType<TableAssistantSheetProps[\"open\"]>,\n default: undefined,\n },\n onClose: {\n type: Function as PropType<TableAssistantSheetProps[\"onClose\"]>,\n },\n children: {\n type: [String, Number, Boolean, Array, Object] as PropType<\n TableAssistantSheetProps[\"children\"]\n >,\n default: undefined,\n },\n },\n }\n);\n","import type {\n ApprovalReviewSlots,\n TableAssistantSlots,\n} from \"@adapttable/vue/adapter\";\nimport { Tag } from \"ant-design-vue\";\nimport { h } from \"vue\";\n\nimport AntdInput from \"../controls/AntdInput.vue\";\nimport AntdSelect from \"../controls/AntdSelect.vue\";\nimport { antdButton } from \"../controls/button\";\nimport { AntdCard } from \"../presentation/AntdCard\";\nimport { AntdExamplesMenu } from \"./ExamplesMenu\";\nimport { AntdAssistantSheet } from \"./Sheet\";\n\n/** Ant Design Vue tag colors for the assistant's status tones. */\nconst TAG_COLOR = {\n neutral: \"default\",\n busy: \"processing\",\n warning: \"warning\",\n danger: \"error\",\n} as const;\n\nexport const antdAssistantControls: TableAssistantSlots = {\n Button: (props) =>\n antdButton(\n {\n type: \"button\",\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n \"aria-expanded\": props.expanded,\n title: props.tooltip,\n class: props.className,\n disabled: props.disabled,\n onClick: props.onClick,\n },\n [\n props.icon,\n props.iconOnly && props.icon ? null : (props.children ?? props.label),\n ]\n ),\n Composer: (props) =>\n h(AntdInput, {\n type: \"textarea\",\n rows: 1,\n value: props.value,\n disabled: props.disabled,\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n placeholder: props.placeholder,\n class: [\"adapttable-ant-design-vue-assistant-input\", props.className],\n onChange: props.onChange,\n onKeydown: props.onKeyDown,\n }),\n Badge: (props) =>\n h(\n Tag,\n {\n \"data-adapttable-part\": props.part,\n \"data-tone\": props.tone,\n color: TAG_COLOR[props.tone],\n // Ant's warning text is too light on its own fill; the surface's\n // text color keeps the label readable in either theme.\n style: props.tone === \"warning\" ? { color: \"inherit\" } : undefined,\n class: props.className,\n },\n { default: () => props.label }\n ),\n Panel: (props) =>\n h(\n AntdCard,\n {\n attrs: {\n role: \"region\",\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: [\"adapttable-ant-design-vue-assistant-panel\", props.className],\n },\n },\n { default: () => props.children }\n ),\n Window: (props) =>\n h(\n AntdCard,\n {\n attrs: {\n role: \"region\",\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: [\n \"adapttable-ant-design-vue-assistant-window\",\n props.className,\n ],\n style: props.style,\n },\n },\n { default: () => props.children }\n ),\n Sheet: (props) => h(AntdAssistantSheet, { ...props, key: props.part }),\n Menu: (props) => h(AntdExamplesMenu, props),\n LanguageChip: (props) =>\n h(AntdSelect, {\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: props.className,\n disabled: props.disabled,\n value: props.value,\n options: props.options,\n onChange: props.onChange,\n }),\n};\n\nexport const antdApprovalControls: ApprovalReviewSlots = {\n Approve: antdAssistantControls.Button,\n Reject: antdAssistantControls.Button,\n Action: antdAssistantControls.Button,\n List: (props) =>\n h(\n \"ul\",\n {\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: [\"adapttable-ant-design-vue-approval-list\", props.className],\n },\n [props.children]\n ),\n};\n","/** Optional assistant presentation; all conversation and approval state stays in the binding. */\nimport \"./assistant/assistant.css\";\n\nimport type { StaticTableFeature } from \"@adapttable/vue\";\nimport {\n AgentApprovalChrome,\n type AgentApprovalProps,\n createAdapterAgentApprovalFeature,\n createAdapterTableAssistantFeature,\n TableAssistantChrome,\n type TableAssistantProps,\n} from \"@adapttable/vue/adapter\";\nimport { defineComponent, h, type PropType } from \"vue\";\n\nimport {\n antdApprovalControls,\n antdAssistantControls,\n} from \"./assistant/controls\";\n\nexport const TableAssistant = defineComponent(\n (props: TableAssistantProps) => () =>\n h(TableAssistantChrome, {\n ...props,\n accent: props.accent ?? \"var(--adapttable-ant-design-vue-primary)\",\n slots: antdAssistantControls,\n }),\n {\n name: \"AntdTableAssistant\",\n props: {\n assistant: { type: Object as PropType<TableAssistantProps[\"assistant\"]> },\n speech: { type: Object as PropType<TableAssistantProps[\"speech\"]> },\n open: {\n type: Boolean as PropType<TableAssistantProps[\"open\"]>,\n default: undefined,\n },\n onOpenChange: {\n type: Function as PropType<TableAssistantProps[\"onOpenChange\"]>,\n },\n presentation: {\n type: String as PropType<TableAssistantProps[\"presentation\"]>,\n },\n labels: { type: Object as PropType<TableAssistantProps[\"labels\"]> },\n accent: { type: String as PropType<TableAssistantProps[\"accent\"]> },\n receipts: {\n type: Boolean as PropType<TableAssistantProps[\"receipts\"]>,\n default: undefined,\n },\n className: { type: String as PropType<TableAssistantProps[\"className\"]> },\n launcher: {\n type: Boolean as PropType<TableAssistantProps[\"launcher\"]>,\n default: undefined,\n },\n onSettings: {\n type: Function as PropType<TableAssistantProps[\"onSettings\"]>,\n },\n boundary: {\n type: [String, Object] as PropType<TableAssistantProps[\"boundary\"]>,\n },\n note: { type: String as PropType<TableAssistantProps[\"note\"]> },\n greeting: { type: String as PropType<TableAssistantProps[\"greeting\"]> },\n avatars: { type: Object as PropType<TableAssistantProps[\"avatars\"]> },\n messageAction: {\n type: Function as PropType<TableAssistantProps[\"messageAction\"]>,\n },\n approval: { type: Object as PropType<TableAssistantProps[\"approval\"]> },\n dir: { type: String as PropType<TableAssistantProps[\"dir\"]> },\n },\n }\n);\nexport const AgentApproval = defineComponent(\n (props: AgentApprovalProps) => () =>\n h(AgentApprovalChrome, { ...props, slots: antdApprovalControls }),\n {\n name: \"AntdAgentApproval\",\n props: {\n pending: { type: Object as PropType<AgentApprovalProps[\"pending\"]> },\n labels: { type: Object as PropType<AgentApprovalProps[\"labels\"]> },\n className: { type: String as PropType<AgentApprovalProps[\"className\"]> },\n buttonClassName: {\n type: String as PropType<AgentApprovalProps[\"buttonClassName\"]>,\n },\n },\n }\n);\nexport function tableAssistant(): StaticTableFeature {\n return createAdapterTableAssistantFeature((props) =>\n h(TableAssistant, props)\n );\n}\nexport function agentApproval(): StaticTableFeature {\n return createAdapterAgentApprovalFeature((props) => h(AgentApproval, props));\n}\nexport type {\n AgentApprovalProps,\n TableAssistantProps,\n} from \"@adapttable/vue/adapter\";\n"],"mappings":";;;;;;;;;;;;AAaA,SAAS,SAAS,MAAgD;CAChE,OAAO,EACL,UACA;EAAE,KAAK,KAAK;EAAI,wBAAwB,KAAK;CAAK,GAClD,EACE,eAAe,CACb,KAAK,MACL,EAAE,QAAQ,CACR,EAAE,UAAU,KAAK,KAAK,GACtB,KAAK,cAAc,EAAE,SAAS,KAAK,WAAW,IAAI,IACpD,CAAC,CACH,EACF,CACF;AACF;;AAGA,MAAa,mBAAmB,iBAC7B,UAAmC;CAClC,MAAM,SAAS,iBAAiB;CAChC,MAAM,UAAU,WAA+B,IAAI;CACnD,MAAM,OAAO,WAAW,KAAK;CAC7B,IAAI,aAAa;CACjB,MAAM,YAAY,YAAY,YAAY;CAC1C,MACE;EAAC;QAAc,MAAM;QAAgB,MAAM;QAAa,MAAM;CAAQ,SAChE;EACJ;EACA,KAAK,QAAQ;CACf,GACA,EAAE,OAAO,OAAO,CAClB;CAGA,MAAM,WAAW,UAAyB;EACxC,IAAI,MAAM,QAAQ,YAAY,MAAM,aAAa;EACjD,MAAM,eAAe;EACrB,MAAM,gBAAgB;EACtB,KAAK,QAAQ;EACb,QAAQ,OAAO,MAAM,EAAE,eAAe,KAAK,CAAC;CAC9C;CACA,aAAa;EACX,IAAI,CAAC,OAAO,OAAO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QAAQ,EAAE,MAAM,OAAkD;EAClE,QAAQ,EAAE,MAAM,OAAkD;EAClE,UAAU;GACR,MAAM;GACN,SAAS,KAAA;EACX;EACA,WAAW,EAAE,MAAM,OAAqD;EACxE,UAAU;GACR,MAAM;GACN,SAAS,KAAA;EACX;EACA,YAAY,EACV,MAAM,SACR;EACA,UAAU,EACR,MAAM,CAAC,QAAQ,MAAM,EACvB;EACA,MAAM,EAAE,MAAM,OAAgD;EAC9D,UAAU,EAAE,MAAM,OAAoD;EACtE,SAAS,EAAE,MAAM,OAAmD;EACpE,eAAe,EACb,MAAM,SACR;EACA,UAAU,EAAE,MAAM,OAAoD;EACtE,KAAK,EAAE,MAAM,OAA+C;CAC9D;AACF,CACF;AACA,MAAa,gBAAgB,iBAC1B,gBACC,EAAE,qBAAqB;CAAE,GAAG;CAAO,OAAO;AAAqB,CAAC,GAClE;CACE,MAAM;CACN,OAAO;EACL,SAAS,EAAE,MAAM,OAAkD;EACnE,QAAQ,EAAE,MAAM,OAAiD;EACjE,WAAW,EAAE,MAAM,OAAoD;EACvE,iBAAiB,EACf,MAAM,OACR;CACF;AACF,CACF;AACA,SAAgB,iBAAqC;CACnD,OAAO,oCAAoC,UACzC,EAAE,gBAAgB,KAAK,CACzB;AACF;AACA,SAAgB,gBAAoC;CAClD,OAAO,mCAAmC,UAAU,EAAE,eAAe,KAAK,CAAC;AAC7E"}
@@ -0,0 +1,4 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_editing = require("./editing-DwmhJyRy.cjs");
3
+ exports.AntdBatchEditBar = require_editing._sfc_main$1;
4
+ exports.batchEditing = require_editing.batchEditing;
@@ -0,0 +1,2 @@
1
+ import { c as batchEditing, g as _default, i as EditingLifecycleExtras, n as BatchRowEdit, t as BatchEditingState } from "./editing-D7nib8vf.cjs";
2
+ export { _default as AntdBatchEditBar, type BatchEditingState, type BatchRowEdit, type EditingLifecycleExtras, batchEditing };
@@ -0,0 +1,2 @@
1
+ import { c as batchEditing, g as _default, i as EditingLifecycleExtras, n as BatchRowEdit, t as BatchEditingState } from "./editing-EcNF6SH-.js";
2
+ export { _default as AntdBatchEditBar, type BatchEditingState, type BatchRowEdit, type EditingLifecycleExtras, batchEditing };
@@ -0,0 +1,2 @@
1
+ import { l as _sfc_main, t as batchEditing } from "./editing-C2bX-h0b.js";
2
+ export { _sfc_main as AntdBatchEditBar, batchEditing };
@@ -0,0 +1,15 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_antdActionSlots = require("./antdActionSlots-CjNxmqIB.cjs");
3
+ let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
4
+ let _adapttable_vue_features = require("@adapttable/vue/features");
5
+ //#region src/bulk-actions.ts
6
+ function bulkActions(actions) {
7
+ return (0, _adapttable_vue_adapter.extendFeature)((0, _adapttable_vue_features.bulkActions)(actions), [(0, _adapttable_vue_adapter.slotRender)(_adapttable_vue_adapter.BULK_ACTIONS_CONTROL, (props) => (0, _adapttable_vue_adapter.BulkActionsChrome)({
8
+ ...props,
9
+ slots: require_antdActionSlots.antdActionSlots
10
+ }))]);
11
+ }
12
+ //#endregion
13
+ exports.bulkActions = bulkActions;
14
+
15
+ //# sourceMappingURL=bulk-actions.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulk-actions.cjs","names":["extendFeature","bindingBulkActions","slotRender","BULK_ACTIONS_CONTROL","BulkActionsChrome","antdActionSlots"],"sources":["../src/bulk-actions.ts"],"sourcesContent":["import type { BulkAction, StaticTableFeature } from \"@adapttable/vue\";\nimport {\n BULK_ACTIONS_CONTROL,\n BulkActionsChrome,\n extendFeature,\n slotRender,\n} from \"@adapttable/vue/adapter\";\nimport { bulkActions as bindingBulkActions } from \"@adapttable/vue/features\";\n\nimport { antdActionSlots } from \"./actions/antdActionSlots\";\n\nexport function bulkActions(\n actions: readonly BulkAction[]\n): StaticTableFeature {\n return extendFeature(bindingBulkActions(actions), [\n slotRender(BULK_ACTIONS_CONTROL, (props) =>\n BulkActionsChrome({ ...props, slots: antdActionSlots })\n ),\n ]);\n}\nexport type { BulkAction, BulkActionContext } from \"@adapttable/vue\";\n"],"mappings":";;;;;AAWA,SAAgB,YACd,SACoB;CACpB,QAAA,GAAOA,wBAAAA,cAAAA,EAAAA,GAAcC,yBAAAA,YAAAA,CAAmB,OAAO,GAAG,EAAA,GAChDC,wBAAAA,WAAAA,CAAWC,wBAAAA,uBAAuB,WAAA,GAChCC,wBAAAA,kBAAAA,CAAkB;EAAE,GAAG;EAAO,OAAOC,wBAAAA;CAAgB,CAAC,CACxD,CACF,CAAC;AACH"}
@@ -0,0 +1,6 @@
1
+ import { BulkAction, BulkAction as BulkAction$1, BulkActionContext, StaticTableFeature } from "@adapttable/vue";
2
+ //#region src/bulk-actions.d.ts
3
+ declare function bulkActions(actions: readonly BulkAction$1[]): StaticTableFeature;
4
+ //#endregion
5
+ export { type BulkAction, type BulkActionContext, bulkActions };
6
+ //# sourceMappingURL=bulk-actions.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulk-actions.d.cts","names":[],"sources":["../src/bulk-actions.ts"],"mappings":";;iBAWgB,YACd,kBAAkB,iBACjB"}
@@ -0,0 +1,6 @@
1
+ import { BulkAction, BulkAction as BulkAction$1, BulkActionContext, StaticTableFeature } from "@adapttable/vue";
2
+ //#region src/bulk-actions.d.ts
3
+ declare function bulkActions(actions: readonly BulkAction$1[]): StaticTableFeature;
4
+ //#endregion
5
+ export { type BulkAction, type BulkActionContext, bulkActions };
6
+ //# sourceMappingURL=bulk-actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulk-actions.d.ts","names":[],"sources":["../src/bulk-actions.ts"],"mappings":";;iBAWgB,YACd,kBAAkB,iBACjB"}
@@ -0,0 +1,14 @@
1
+ import { t as antdActionSlots } from "./antdActionSlots-eKczvTu9.js";
2
+ import { BULK_ACTIONS_CONTROL, BulkActionsChrome, extendFeature, slotRender } from "@adapttable/vue/adapter";
3
+ import { bulkActions as bulkActions$1 } from "@adapttable/vue/features";
4
+ //#region src/bulk-actions.ts
5
+ function bulkActions(actions) {
6
+ return extendFeature(bulkActions$1(actions), [slotRender(BULK_ACTIONS_CONTROL, (props) => BulkActionsChrome({
7
+ ...props,
8
+ slots: antdActionSlots
9
+ }))]);
10
+ }
11
+ //#endregion
12
+ export { bulkActions };
13
+
14
+ //# sourceMappingURL=bulk-actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulk-actions.js","names":["bindingBulkActions"],"sources":["../src/bulk-actions.ts"],"sourcesContent":["import type { BulkAction, StaticTableFeature } from \"@adapttable/vue\";\nimport {\n BULK_ACTIONS_CONTROL,\n BulkActionsChrome,\n extendFeature,\n slotRender,\n} from \"@adapttable/vue/adapter\";\nimport { bulkActions as bindingBulkActions } from \"@adapttable/vue/features\";\n\nimport { antdActionSlots } from \"./actions/antdActionSlots\";\n\nexport function bulkActions(\n actions: readonly BulkAction[]\n): StaticTableFeature {\n return extendFeature(bindingBulkActions(actions), [\n slotRender(BULK_ACTIONS_CONTROL, (props) =>\n BulkActionsChrome({ ...props, slots: antdActionSlots })\n ),\n ]);\n}\nexport type { BulkAction, BulkActionContext } from \"@adapttable/vue\";\n"],"mappings":";;;;AAWA,SAAgB,YACd,SACoB;CACpB,OAAO,cAAcA,cAAmB,OAAO,GAAG,CAChD,WAAW,uBAAuB,UAChC,kBAAkB;EAAE,GAAG;EAAO,OAAO;CAAgB,CAAC,CACxD,CACF,CAAC;AACH"}
@@ -0,0 +1,77 @@
1
+ let vue = require("vue");
2
+ let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
3
+ let ant_design_vue = require("ant-design-vue");
4
+ //#region src/controls/ref.ts
5
+ /** Attribute bags carry optional callbacks; kit controls resolve their DOM target. */
6
+ function isElementRef(value) {
7
+ return typeof value === "function";
8
+ }
9
+ //#endregion
10
+ //#region src/controls/button.ts
11
+ /** Ant Design Vue's button type: `primary` for the tone, `text` when quiet. */
12
+ function buttonType(attrs) {
13
+ if (attrs.tone === "primary") return "primary";
14
+ return attrs.text === true ? "text" : void 0;
15
+ }
16
+ const AntdButton = (0, vue.defineComponent)((props, { attrs }) => {
17
+ const control = (0, vue.shallowRef)();
18
+ (0, _adapttable_vue_adapter.useElementRef)(() => {
19
+ const target = control.value?.$el;
20
+ if (target == null) return null;
21
+ return target instanceof HTMLButtonElement ? target : null;
22
+ }, () => isElementRef(props.attrs.ref) ? props.attrs.ref : void 0);
23
+ return () => {
24
+ const incoming = (0, vue.mergeProps)(props.attrs, attrs);
25
+ const nativeAttrs = Object.fromEntries(Object.entries(incoming).filter(([name]) => name !== "ref" && name !== "type" && name !== "text" && name !== "tone"));
26
+ const type = incoming.type;
27
+ const htmlType = type === "submit" || type === "reset" ? type : "button";
28
+ return (0, vue.h)(ant_design_vue.Button, {
29
+ ...nativeAttrs,
30
+ htmlType,
31
+ type: buttonType(incoming),
32
+ ref: control
33
+ }, { default: () => props.content });
34
+ };
35
+ }, {
36
+ name: "AntdButton",
37
+ props: {
38
+ attrs: { type: Object },
39
+ content: {
40
+ type: [
41
+ String,
42
+ Number,
43
+ Boolean,
44
+ Array,
45
+ Object
46
+ ],
47
+ default: void 0
48
+ }
49
+ },
50
+ inheritAttrs: false
51
+ });
52
+ /**
53
+ * Ant Design Vue retains its native button; one setup scope owns its DOM ref.
54
+ */
55
+ function antdButton(attrs, content) {
56
+ const key = attrs.key;
57
+ return (0, vue.h)(AntdButton, {
58
+ key: typeof key === "string" || typeof key === "number" || typeof key === "symbol" ? key : void 0,
59
+ attrs,
60
+ content
61
+ });
62
+ }
63
+ //#endregion
64
+ Object.defineProperty(exports, "antdButton", {
65
+ enumerable: true,
66
+ get: function() {
67
+ return antdButton;
68
+ }
69
+ });
70
+ Object.defineProperty(exports, "isElementRef", {
71
+ enumerable: true,
72
+ get: function() {
73
+ return isElementRef;
74
+ }
75
+ });
76
+
77
+ //# sourceMappingURL=button-llfktOrH.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-llfktOrH.cjs","names":["defineComponent","shallowRef","mergeProps","h","Button"],"sources":["../src/controls/ref.ts","../src/controls/button.ts"],"sourcesContent":["import type { ElementRef } from \"@adapttable/vue\";\n\n/** Attribute bags carry optional callbacks; kit controls resolve their DOM target. */\nexport function isElementRef(value: unknown): value is ElementRef<Element> {\n return typeof value === \"function\";\n}\n","import type { Attrs } from \"@adapttable/vue\";\nimport { useElementRef } from \"@adapttable/vue/adapter\";\nimport { Button } from \"ant-design-vue\";\nimport {\n type ComponentPublicInstance,\n defineComponent,\n h,\n mergeProps,\n type PropType,\n shallowRef,\n type VNode,\n type VNodeChild,\n} from \"vue\";\n\nimport { isElementRef } from \"./ref\";\n\n/** Ant Design Vue's button type: `primary` for the tone, `text` when quiet. */\nfunction buttonType(attrs: Attrs): \"primary\" | \"text\" | undefined {\n if (attrs.tone === \"primary\") return \"primary\";\n return attrs.text === true ? \"text\" : undefined;\n}\n\nconst AntdButton = defineComponent(\n (\n props: {\n readonly attrs: Attrs;\n readonly content: VNodeChild;\n },\n { attrs }\n ) => {\n const control = shallowRef<ComponentPublicInstance>();\n useElementRef(\n () => {\n const target: unknown = control.value?.$el;\n if (target == null) return null;\n return target instanceof HTMLButtonElement ? target : null;\n },\n () => (isElementRef(props.attrs.ref) ? props.attrs.ref : undefined)\n );\n return () => {\n const incoming = mergeProps(props.attrs, attrs);\n const nativeAttrs = Object.fromEntries(\n Object.entries(incoming).filter(\n ([name]) =>\n name !== \"ref\" &&\n name !== \"type\" &&\n name !== \"text\" &&\n name !== \"tone\"\n )\n );\n const type = incoming.type;\n const htmlType = type === \"submit\" || type === \"reset\" ? type : \"button\";\n return h(\n Button,\n {\n ...nativeAttrs,\n htmlType,\n type: buttonType(incoming),\n ref: control,\n },\n { default: () => props.content }\n );\n };\n },\n {\n name: \"AntdButton\",\n props: {\n attrs: { type: Object as PropType<Attrs> },\n content: {\n type: [String, Number, Boolean, Array, Object] as PropType<VNodeChild>,\n default: undefined,\n },\n },\n inheritAttrs: false,\n }\n);\n\n/**\n * Ant Design Vue retains its native button; one setup scope owns its DOM ref.\n */\nexport function antdButton(attrs: Attrs, content: VNodeChild): VNode {\n const key = attrs.key;\n return h(AntdButton, {\n key:\n typeof key === \"string\" ||\n typeof key === \"number\" ||\n typeof key === \"symbol\"\n ? key\n : undefined,\n attrs,\n content,\n });\n}\n"],"mappings":";;;;;AAGA,SAAgB,aAAa,OAA8C;CACzE,OAAO,OAAO,UAAU;AAC1B;;;;ACYA,SAAS,WAAW,OAA8C;CAChE,IAAI,MAAM,SAAS,WAAW,OAAO;CACrC,OAAO,MAAM,SAAS,OAAO,SAAS,KAAA;AACxC;AAEA,MAAM,cAAA,GAAaA,IAAAA,gBAAAA,EAEf,OAIA,EAAE,YACC;CACH,MAAM,WAAA,GAAUC,IAAAA,WAAAA,CAAoC;CACpD,CAAA,GAAA,wBAAA,cAAA,OACQ;EACJ,MAAM,SAAkB,QAAQ,OAAO;EACvC,IAAI,UAAU,MAAM,OAAO;EAC3B,OAAO,kBAAkB,oBAAoB,SAAS;CACxD,SACO,aAAa,MAAM,MAAM,GAAG,IAAI,MAAM,MAAM,MAAM,KAAA,CAC3D;CACA,aAAa;EACX,MAAM,YAAA,GAAWC,IAAAA,WAAAA,CAAW,MAAM,OAAO,KAAK;EAC9C,MAAM,cAAc,OAAO,YACzB,OAAO,QAAQ,QAAQ,CAAC,CAAC,QACtB,CAAC,UACA,SAAS,SACT,SAAS,UACT,SAAS,UACT,SAAS,MACb,CACF;EACA,MAAM,OAAO,SAAS;EACtB,MAAM,WAAW,SAAS,YAAY,SAAS,UAAU,OAAO;EAChE,QAAA,GAAOC,IAAAA,EAAAA,CACLC,eAAAA,QACA;GACE,GAAG;GACH;GACA,MAAM,WAAW,QAAQ;GACzB,KAAK;EACP,GACA,EAAE,eAAe,MAAM,QAAQ,CACjC;CACF;AACF,GACA;CACE,MAAM;CACN,OAAO;EACL,OAAO,EAAE,MAAM,OAA0B;EACzC,SAAS;GACP,MAAM;IAAC;IAAQ;IAAQ;IAAS;IAAO;GAAM;GAC7C,SAAS,KAAA;EACX;CACF;CACA,cAAc;AAChB,CACF;;;;AAKA,SAAgB,WAAW,OAAc,SAA4B;CACnE,MAAM,MAAM,MAAM;CAClB,QAAA,GAAOD,IAAAA,EAAAA,CAAE,YAAY;EACnB,KACE,OAAO,QAAQ,YACf,OAAO,QAAQ,YACf,OAAO,QAAQ,WACX,MACA,KAAA;EACN;EACA;CACF,CAAC;AACH"}
@@ -0,0 +1,66 @@
1
+ import { defineComponent, h, mergeProps, shallowRef } from "vue";
2
+ import { useElementRef } from "@adapttable/vue/adapter";
3
+ import { Button } from "ant-design-vue";
4
+ //#region src/controls/ref.ts
5
+ /** Attribute bags carry optional callbacks; kit controls resolve their DOM target. */
6
+ function isElementRef(value) {
7
+ return typeof value === "function";
8
+ }
9
+ //#endregion
10
+ //#region src/controls/button.ts
11
+ /** Ant Design Vue's button type: `primary` for the tone, `text` when quiet. */
12
+ function buttonType(attrs) {
13
+ if (attrs.tone === "primary") return "primary";
14
+ return attrs.text === true ? "text" : void 0;
15
+ }
16
+ const AntdButton = defineComponent((props, { attrs }) => {
17
+ const control = shallowRef();
18
+ useElementRef(() => {
19
+ const target = control.value?.$el;
20
+ if (target == null) return null;
21
+ return target instanceof HTMLButtonElement ? target : null;
22
+ }, () => isElementRef(props.attrs.ref) ? props.attrs.ref : void 0);
23
+ return () => {
24
+ const incoming = mergeProps(props.attrs, attrs);
25
+ const nativeAttrs = Object.fromEntries(Object.entries(incoming).filter(([name]) => name !== "ref" && name !== "type" && name !== "text" && name !== "tone"));
26
+ const type = incoming.type;
27
+ const htmlType = type === "submit" || type === "reset" ? type : "button";
28
+ return h(Button, {
29
+ ...nativeAttrs,
30
+ htmlType,
31
+ type: buttonType(incoming),
32
+ ref: control
33
+ }, { default: () => props.content });
34
+ };
35
+ }, {
36
+ name: "AntdButton",
37
+ props: {
38
+ attrs: { type: Object },
39
+ content: {
40
+ type: [
41
+ String,
42
+ Number,
43
+ Boolean,
44
+ Array,
45
+ Object
46
+ ],
47
+ default: void 0
48
+ }
49
+ },
50
+ inheritAttrs: false
51
+ });
52
+ /**
53
+ * Ant Design Vue retains its native button; one setup scope owns its DOM ref.
54
+ */
55
+ function antdButton(attrs, content) {
56
+ const key = attrs.key;
57
+ return h(AntdButton, {
58
+ key: typeof key === "string" || typeof key === "number" || typeof key === "symbol" ? key : void 0,
59
+ attrs,
60
+ content
61
+ });
62
+ }
63
+ //#endregion
64
+ export { isElementRef as n, antdButton as t };
65
+
66
+ //# sourceMappingURL=button-pAA17ogP.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-pAA17ogP.js","names":[],"sources":["../src/controls/ref.ts","../src/controls/button.ts"],"sourcesContent":["import type { ElementRef } from \"@adapttable/vue\";\n\n/** Attribute bags carry optional callbacks; kit controls resolve their DOM target. */\nexport function isElementRef(value: unknown): value is ElementRef<Element> {\n return typeof value === \"function\";\n}\n","import type { Attrs } from \"@adapttable/vue\";\nimport { useElementRef } from \"@adapttable/vue/adapter\";\nimport { Button } from \"ant-design-vue\";\nimport {\n type ComponentPublicInstance,\n defineComponent,\n h,\n mergeProps,\n type PropType,\n shallowRef,\n type VNode,\n type VNodeChild,\n} from \"vue\";\n\nimport { isElementRef } from \"./ref\";\n\n/** Ant Design Vue's button type: `primary` for the tone, `text` when quiet. */\nfunction buttonType(attrs: Attrs): \"primary\" | \"text\" | undefined {\n if (attrs.tone === \"primary\") return \"primary\";\n return attrs.text === true ? \"text\" : undefined;\n}\n\nconst AntdButton = defineComponent(\n (\n props: {\n readonly attrs: Attrs;\n readonly content: VNodeChild;\n },\n { attrs }\n ) => {\n const control = shallowRef<ComponentPublicInstance>();\n useElementRef(\n () => {\n const target: unknown = control.value?.$el;\n if (target == null) return null;\n return target instanceof HTMLButtonElement ? target : null;\n },\n () => (isElementRef(props.attrs.ref) ? props.attrs.ref : undefined)\n );\n return () => {\n const incoming = mergeProps(props.attrs, attrs);\n const nativeAttrs = Object.fromEntries(\n Object.entries(incoming).filter(\n ([name]) =>\n name !== \"ref\" &&\n name !== \"type\" &&\n name !== \"text\" &&\n name !== \"tone\"\n )\n );\n const type = incoming.type;\n const htmlType = type === \"submit\" || type === \"reset\" ? type : \"button\";\n return h(\n Button,\n {\n ...nativeAttrs,\n htmlType,\n type: buttonType(incoming),\n ref: control,\n },\n { default: () => props.content }\n );\n };\n },\n {\n name: \"AntdButton\",\n props: {\n attrs: { type: Object as PropType<Attrs> },\n content: {\n type: [String, Number, Boolean, Array, Object] as PropType<VNodeChild>,\n default: undefined,\n },\n },\n inheritAttrs: false,\n }\n);\n\n/**\n * Ant Design Vue retains its native button; one setup scope owns its DOM ref.\n */\nexport function antdButton(attrs: Attrs, content: VNodeChild): VNode {\n const key = attrs.key;\n return h(AntdButton, {\n key:\n typeof key === \"string\" ||\n typeof key === \"number\" ||\n typeof key === \"symbol\"\n ? key\n : undefined,\n attrs,\n content,\n });\n}\n"],"mappings":";;;;;AAGA,SAAgB,aAAa,OAA8C;CACzE,OAAO,OAAO,UAAU;AAC1B;;;;ACYA,SAAS,WAAW,OAA8C;CAChE,IAAI,MAAM,SAAS,WAAW,OAAO;CACrC,OAAO,MAAM,SAAS,OAAO,SAAS,KAAA;AACxC;AAEA,MAAM,aAAa,iBAEf,OAIA,EAAE,YACC;CACH,MAAM,UAAU,WAAoC;CACpD,oBACQ;EACJ,MAAM,SAAkB,QAAQ,OAAO;EACvC,IAAI,UAAU,MAAM,OAAO;EAC3B,OAAO,kBAAkB,oBAAoB,SAAS;CACxD,SACO,aAAa,MAAM,MAAM,GAAG,IAAI,MAAM,MAAM,MAAM,KAAA,CAC3D;CACA,aAAa;EACX,MAAM,WAAW,WAAW,MAAM,OAAO,KAAK;EAC9C,MAAM,cAAc,OAAO,YACzB,OAAO,QAAQ,QAAQ,CAAC,CAAC,QACtB,CAAC,UACA,SAAS,SACT,SAAS,UACT,SAAS,UACT,SAAS,MACb,CACF;EACA,MAAM,OAAO,SAAS;EACtB,MAAM,WAAW,SAAS,YAAY,SAAS,UAAU,OAAO;EAChE,OAAO,EACL,QACA;GACE,GAAG;GACH;GACA,MAAM,WAAW,QAAQ;GACzB,KAAK;EACP,GACA,EAAE,eAAe,MAAM,QAAQ,CACjC;CACF;AACF,GACA;CACE,MAAM;CACN,OAAO;EACL,OAAO,EAAE,MAAM,OAA0B;EACzC,SAAS;GACP,MAAM;IAAC;IAAQ;IAAQ;IAAS;IAAO;GAAM;GAC7C,SAAS,KAAA;EACX;CACF;CACA,cAAc;AAChB,CACF;;;;AAKA,SAAgB,WAAW,OAAc,SAA4B;CACnE,MAAM,MAAM,MAAM;CAClB,OAAO,EAAE,YAAY;EACnB,KACE,OAAO,QAAQ,YACf,OAAO,QAAQ,YACf,OAAO,QAAQ,WACX,MACA,KAAA;EACN;EACA;CACF,CAAC;AACH"}