@adapttable/element-plus 0.3.3 → 0.4.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 (238) hide show
  1. package/dist/{ElementCheckbox-BewKx6sv.cjs → ElementCheckbox-BXSH2jHY.cjs} +19 -13
  2. package/dist/ElementCheckbox-BXSH2jHY.cjs.map +1 -0
  3. package/dist/{ElementCheckbox-BQN4_eas.js → ElementCheckbox-DobrxadY.js} +21 -15
  4. package/dist/ElementCheckbox-DobrxadY.js.map +1 -0
  5. package/dist/{ElementColumnMenuPanel-D9oWJf02.js → ElementColumnMenuPanel-CPW4wU3M.js} +5 -5
  6. package/dist/ElementColumnMenuPanel-CPW4wU3M.js.map +1 -0
  7. package/dist/{ElementColumnMenuPanel-DavsUQAR.cjs → ElementColumnMenuPanel-Ddh01A17.cjs} +3 -3
  8. package/dist/ElementColumnMenuPanel-Ddh01A17.cjs.map +1 -0
  9. package/dist/{ElementFilterHeaderRow-C3N5F-sW.cjs → ElementFilterHeaderRow-D8ZZ3BOH.cjs} +32 -16
  10. package/dist/ElementFilterHeaderRow-D8ZZ3BOH.cjs.map +1 -0
  11. package/dist/{ElementFilterHeaderRow-qiv68upK.js → ElementFilterHeaderRow-DGp4Wrts.js} +33 -17
  12. package/dist/ElementFilterHeaderRow-DGp4Wrts.js.map +1 -0
  13. package/dist/ElementFilterHeaderRow.vue-aMWpPgI9.d.cts.map +1 -1
  14. package/dist/ElementFilterHeaderRow.vue-aMWpPgI9.d.ts.map +1 -1
  15. package/dist/{ElementFilterSurface-CUpyLfPF.cjs → ElementFilterSurface-CUgNfyWW.cjs} +8 -9
  16. package/dist/ElementFilterSurface-CUgNfyWW.cjs.map +1 -0
  17. package/dist/{ElementFilterSurface-CztEiJ0k.js → ElementFilterSurface-CiOApO3l.js} +10 -11
  18. package/dist/ElementFilterSurface-CiOApO3l.js.map +1 -0
  19. package/dist/{ElementInput-vBVDBaLp.cjs → ElementInput-BF97xXSC.cjs} +12 -7
  20. package/dist/ElementInput-BF97xXSC.cjs.map +1 -0
  21. package/dist/{ElementInput-BsoAvPfO.js → ElementInput-Cn9hpa9j.js} +13 -8
  22. package/dist/ElementInput-Cn9hpa9j.js.map +1 -0
  23. package/dist/{ElementRowActions-BKfX2XRn.js → ElementRowActions-CUlFbY6s.js} +5 -5
  24. package/dist/ElementRowActions-CUlFbY6s.js.map +1 -0
  25. package/dist/{ElementRowActions-B_rR7qSj.cjs → ElementRowActions-ClYC3Ssq.cjs} +5 -5
  26. package/dist/ElementRowActions-ClYC3Ssq.cjs.map +1 -0
  27. package/dist/{ElementSelect-CvGw_zHh.cjs → ElementSelect-1UwtGCCr.cjs} +13 -8
  28. package/dist/ElementSelect-1UwtGCCr.cjs.map +1 -0
  29. package/dist/{ElementSelect-BtmVMA7B.js → ElementSelect-BxFmnPpv.js} +14 -9
  30. package/dist/ElementSelect-BxFmnPpv.js.map +1 -0
  31. package/dist/{assistant-B27ZguV8.cjs → assistant-D4l4OdXN.cjs} +3 -3
  32. package/dist/{assistant-B27ZguV8.cjs.map → assistant-D4l4OdXN.cjs.map} +1 -1
  33. package/dist/{assistant-BPwGaQnx.js → assistant-DRDxJajO.js} +3 -3
  34. package/dist/{assistant-BPwGaQnx.js.map → assistant-DRDxJajO.js.map} +1 -1
  35. package/dist/assistant.cjs +1 -1
  36. package/dist/assistant.js +1 -1
  37. package/dist/batch-editing.cjs +1 -1
  38. package/dist/batch-editing.js +1 -1
  39. package/dist/{cell-navigation-BXE28fwQ.cjs → cell-navigation-DJ-_1Mjr.cjs} +2 -2
  40. package/dist/{cell-navigation-BXE28fwQ.cjs.map → cell-navigation-DJ-_1Mjr.cjs.map} +1 -1
  41. package/dist/{cell-navigation-THnr6YdK.js → cell-navigation-arDY86xD.js} +2 -2
  42. package/dist/{cell-navigation-THnr6YdK.js.map → cell-navigation-arDY86xD.js.map} +1 -1
  43. package/dist/cell-navigation.cjs +1 -1
  44. package/dist/cell-navigation.js +1 -1
  45. package/dist/{checkbox-DhUYYwWe.cjs → checkbox-BF19iMgI.cjs} +2 -2
  46. package/dist/{checkbox-DhUYYwWe.cjs.map → checkbox-BF19iMgI.cjs.map} +1 -1
  47. package/dist/{column-menu-Dna4oiPc.js → column-menu-BUxMPyJI.js} +7 -8
  48. package/dist/column-menu-BUxMPyJI.js.map +1 -0
  49. package/dist/{column-menu-C0YWdhRz.d.ts → column-menu-CAkx6AjR.d.ts} +5 -6
  50. package/dist/column-menu-CAkx6AjR.d.ts.map +1 -0
  51. package/dist/{column-menu-BUiQUex0.d.cts → column-menu-DsL_xeEM.d.cts} +5 -6
  52. package/dist/column-menu-DsL_xeEM.d.cts.map +1 -0
  53. package/dist/{column-menu-CNxXJ-ra.cjs → column-menu-jNw7kuxp.cjs} +6 -7
  54. package/dist/column-menu-jNw7kuxp.cjs.map +1 -0
  55. package/dist/column-menu.cjs +1 -1
  56. package/dist/column-menu.d.cts +1 -1
  57. package/dist/column-menu.d.ts +1 -1
  58. package/dist/column-menu.js +1 -1
  59. package/dist/column-selection.cjs +1 -1
  60. package/dist/column-selection.js +1 -1
  61. package/dist/command-palette.cjs +1 -1
  62. package/dist/command-palette.js +1 -1
  63. package/dist/context-menu.cjs +1 -1
  64. package/dist/context-menu.js +1 -1
  65. package/dist/{density-Bj1pck4x.cjs → density-CJLZxF1h.cjs} +2 -2
  66. package/dist/density-CJLZxF1h.cjs.map +1 -0
  67. package/dist/{density-ChRp0NG3.js → density-OeJSiWSC.js} +4 -4
  68. package/dist/density-OeJSiWSC.js.map +1 -0
  69. package/dist/density.cjs +1 -1
  70. package/dist/density.js +1 -1
  71. package/dist/{editing-9371TGFz.cjs → editing-Bhw_4VG8.cjs} +16 -16
  72. package/dist/editing-Bhw_4VG8.cjs.map +1 -0
  73. package/dist/editing-BnLdNDlo.d.ts.map +1 -1
  74. package/dist/editing-Cg6ZNvSa.d.cts.map +1 -1
  75. package/dist/{editing-B_HAxfh4.js → editing-DHjzbw-I.js} +18 -18
  76. package/dist/editing-DHjzbw-I.js.map +1 -0
  77. package/dist/editing.cjs +1 -1
  78. package/dist/editing.js +1 -1
  79. package/dist/{elementHierarchyControlSlots-Ctcmq3T2.js → elementHierarchyControlSlots-21LL1wEw.js} +4 -4
  80. package/dist/{elementHierarchyControlSlots-Ctcmq3T2.js.map → elementHierarchyControlSlots-21LL1wEw.js.map} +1 -1
  81. package/dist/{elementRemainingControls-BPGBbbUF.js → elementRemainingControls-6tN9tgWx.js} +6 -6
  82. package/dist/elementRemainingControls-6tN9tgWx.js.map +1 -0
  83. package/dist/{elementRemainingControls-CtY2jZWN.cjs → elementRemainingControls-DvVVLXE0.cjs} +4 -4
  84. package/dist/elementRemainingControls-DvVVLXE0.cjs.map +1 -0
  85. package/dist/export-csv-DRDjZuQj.d.cts +9 -0
  86. package/dist/export-csv-DRDjZuQj.d.cts.map +1 -0
  87. package/dist/export-csv-VyICO_s0.d.ts +9 -0
  88. package/dist/export-csv-VyICO_s0.d.ts.map +1 -0
  89. package/dist/export-csv.cjs +11 -0
  90. package/dist/export-csv.cjs.map +1 -0
  91. package/dist/export-csv.d.cts +2 -0
  92. package/dist/export-csv.d.ts +2 -0
  93. package/dist/export-csv.js +10 -0
  94. package/dist/export-csv.js.map +1 -0
  95. package/dist/export-pdf.cjs +53 -0
  96. package/dist/export-pdf.cjs.map +1 -0
  97. package/dist/export-pdf.d.cts +8 -0
  98. package/dist/export-pdf.d.cts.map +1 -0
  99. package/dist/export-pdf.d.ts +8 -0
  100. package/dist/export-pdf.d.ts.map +1 -0
  101. package/dist/export-pdf.js +10 -0
  102. package/dist/export-pdf.js.map +1 -0
  103. package/dist/export-xlsx.cjs +23 -0
  104. package/dist/export-xlsx.cjs.map +1 -0
  105. package/dist/export-xlsx.d.cts +8 -0
  106. package/dist/export-xlsx.d.cts.map +1 -0
  107. package/dist/export-xlsx.d.ts +8 -0
  108. package/dist/export-xlsx.d.ts.map +1 -0
  109. package/dist/export-xlsx.js +10 -0
  110. package/dist/export-xlsx.js.map +1 -0
  111. package/dist/export.cjs +2 -2
  112. package/dist/export.d.cts +2 -8
  113. package/dist/export.d.ts +2 -8
  114. package/dist/export.js +1 -1
  115. package/dist/features.cjs +16 -15
  116. package/dist/features.d.cts +4 -3
  117. package/dist/features.d.ts +4 -3
  118. package/dist/features.js +15 -14
  119. package/dist/{filters-BMS9STAJ.js → filters-87q6jAVU.js} +73 -73
  120. package/dist/filters-87q6jAVU.js.map +1 -0
  121. package/dist/{filters-BYHvvws9.d.cts → filters-BySwxJJ0.d.cts} +9 -11
  122. package/dist/filters-BySwxJJ0.d.cts.map +1 -0
  123. package/dist/{filters-BuzAGNaj.cjs → filters-bdHAQnex.cjs} +72 -72
  124. package/dist/filters-bdHAQnex.cjs.map +1 -0
  125. package/dist/{filters-BJDFrg_k.d.ts → filters-iRpu_mXa.d.ts} +9 -11
  126. package/dist/filters-iRpu_mXa.d.ts.map +1 -0
  127. package/dist/filters.cjs +2 -2
  128. package/dist/filters.d.cts +1 -1
  129. package/dist/filters.d.ts +1 -1
  130. package/dist/filters.js +2 -2
  131. package/dist/{find-in-table--8ZBYijC.js → find-in-table-B9ySCCJh.js} +2 -2
  132. package/dist/{find-in-table--8ZBYijC.js.map → find-in-table-B9ySCCJh.js.map} +1 -1
  133. package/dist/{find-in-table-DOn2Hua1.cjs → find-in-table-WtXzIkkg.cjs} +2 -2
  134. package/dist/{find-in-table-DOn2Hua1.cjs.map → find-in-table-WtXzIkkg.cjs.map} +1 -1
  135. package/dist/find-in-table.cjs +1 -1
  136. package/dist/find-in-table.js +1 -1
  137. package/dist/{grouping-panel-CscefKyP.js → grouping-panel-B7j8sSpT.js} +3 -3
  138. package/dist/{grouping-panel-CscefKyP.js.map → grouping-panel-B7j8sSpT.js.map} +1 -1
  139. package/dist/{grouping-panel-C_QWRh_Q.cjs → grouping-panel-B_ibl915.cjs} +3 -3
  140. package/dist/{grouping-panel-C_QWRh_Q.cjs.map → grouping-panel-B_ibl915.cjs.map} +1 -1
  141. package/dist/grouping-panel.cjs +1 -1
  142. package/dist/grouping-panel.js +1 -1
  143. package/dist/grouping.cjs +2 -2
  144. package/dist/grouping.cjs.map +1 -1
  145. package/dist/grouping.js +2 -2
  146. package/dist/grouping.js.map +1 -1
  147. package/dist/header-filters-B2B5RqQS.d.ts.map +1 -1
  148. package/dist/{header-filters-BDSKDeJ9.cjs → header-filters-Cu7t_2IW.cjs} +8 -5
  149. package/dist/header-filters-Cu7t_2IW.cjs.map +1 -0
  150. package/dist/{header-filters-FQFlnVM9.js → header-filters-DUZI1x70.js} +9 -6
  151. package/dist/header-filters-DUZI1x70.js.map +1 -0
  152. package/dist/header-filters-hGm_7LFO.d.cts.map +1 -1
  153. package/dist/header-filters.cjs +2 -2
  154. package/dist/header-filters.js +2 -2
  155. package/dist/index.cjs +110 -48
  156. package/dist/index.cjs.map +1 -1
  157. package/dist/index.d.cts.map +1 -1
  158. package/dist/index.d.ts.map +1 -1
  159. package/dist/index.js +113 -51
  160. package/dist/index.js.map +1 -1
  161. package/dist/pivot.cjs +4 -5
  162. package/dist/pivot.cjs.map +1 -1
  163. package/dist/pivot.d.cts +3 -4
  164. package/dist/pivot.d.cts.map +1 -1
  165. package/dist/pivot.d.ts +3 -4
  166. package/dist/pivot.d.ts.map +1 -1
  167. package/dist/pivot.js +5 -6
  168. package/dist/pivot.js.map +1 -1
  169. package/dist/preset.cjs +9 -8
  170. package/dist/preset.cjs.map +1 -1
  171. package/dist/preset.js +8 -7
  172. package/dist/preset.js.map +1 -1
  173. package/dist/row-actions.cjs +1 -1
  174. package/dist/row-actions.js +1 -1
  175. package/dist/row-pinning.cjs +1 -1
  176. package/dist/row-pinning.js +1 -1
  177. package/dist/{row-reorder-kuiFvbsM.js → row-reorder-BYwX3CBP.js} +4 -4
  178. package/dist/row-reorder-BYwX3CBP.js.map +1 -0
  179. package/dist/{row-reorder-BNscjPNy.cjs → row-reorder-MSR2yDN6.cjs} +2 -2
  180. package/dist/row-reorder-MSR2yDN6.cjs.map +1 -0
  181. package/dist/row-reorder.cjs +1 -1
  182. package/dist/row-reorder.js +1 -1
  183. package/dist/rowActionsSlot-CdnzwBmt.js.map +1 -1
  184. package/dist/rowActionsSlot-Ps5hHI6n.cjs.map +1 -1
  185. package/dist/{saved-views-DW8WybwV.js → saved-views-DDo4Bl-f.js} +3 -3
  186. package/dist/{saved-views-DW8WybwV.js.map → saved-views-DDo4Bl-f.js.map} +1 -1
  187. package/dist/{saved-views-BTJxWOyY.cjs → saved-views-luZVHu3w.cjs} +3 -3
  188. package/dist/{saved-views-BTJxWOyY.cjs.map → saved-views-luZVHu3w.cjs.map} +1 -1
  189. package/dist/saved-views.cjs +1 -1
  190. package/dist/saved-views.js +1 -1
  191. package/dist/{scrollbarGutter-B-QczwA9.cjs → scrollbarGutter-CV4T0Q-9.cjs} +2 -2
  192. package/dist/{scrollbarGutter-B-QczwA9.cjs.map → scrollbarGutter-CV4T0Q-9.cjs.map} +1 -1
  193. package/dist/{scrollbarGutter-BNp0-4l1.js → scrollbarGutter-D9pkb_r0.js} +2 -2
  194. package/dist/{scrollbarGutter-BNp0-4l1.js.map → scrollbarGutter-D9pkb_r0.js.map} +1 -1
  195. package/dist/side-panel.cjs +1 -1
  196. package/dist/side-panel.js +1 -1
  197. package/dist/styles.css +33 -3
  198. package/dist/{export-DR1t4N5Q.js → withElementExport-B97s6RIr.js} +6 -6
  199. package/dist/withElementExport-B97s6RIr.js.map +1 -0
  200. package/dist/{export-CL36qPVY.cjs → withElementExport-J-6vXfL9.cjs} +7 -7
  201. package/dist/withElementExport-J-6vXfL9.cjs.map +1 -0
  202. package/package.json +33 -4
  203. package/dist/ElementCheckbox-BQN4_eas.js.map +0 -1
  204. package/dist/ElementCheckbox-BewKx6sv.cjs.map +0 -1
  205. package/dist/ElementColumnMenuPanel-D9oWJf02.js.map +0 -1
  206. package/dist/ElementColumnMenuPanel-DavsUQAR.cjs.map +0 -1
  207. package/dist/ElementFilterHeaderRow-C3N5F-sW.cjs.map +0 -1
  208. package/dist/ElementFilterHeaderRow-qiv68upK.js.map +0 -1
  209. package/dist/ElementFilterSurface-CUpyLfPF.cjs.map +0 -1
  210. package/dist/ElementFilterSurface-CztEiJ0k.js.map +0 -1
  211. package/dist/ElementInput-BsoAvPfO.js.map +0 -1
  212. package/dist/ElementInput-vBVDBaLp.cjs.map +0 -1
  213. package/dist/ElementRowActions-BKfX2XRn.js.map +0 -1
  214. package/dist/ElementRowActions-B_rR7qSj.cjs.map +0 -1
  215. package/dist/ElementSelect-BtmVMA7B.js.map +0 -1
  216. package/dist/ElementSelect-CvGw_zHh.cjs.map +0 -1
  217. package/dist/column-menu-BUiQUex0.d.cts.map +0 -1
  218. package/dist/column-menu-C0YWdhRz.d.ts.map +0 -1
  219. package/dist/column-menu-CNxXJ-ra.cjs.map +0 -1
  220. package/dist/column-menu-Dna4oiPc.js.map +0 -1
  221. package/dist/density-Bj1pck4x.cjs.map +0 -1
  222. package/dist/density-ChRp0NG3.js.map +0 -1
  223. package/dist/editing-9371TGFz.cjs.map +0 -1
  224. package/dist/editing-B_HAxfh4.js.map +0 -1
  225. package/dist/elementRemainingControls-BPGBbbUF.js.map +0 -1
  226. package/dist/elementRemainingControls-CtY2jZWN.cjs.map +0 -1
  227. package/dist/export-CL36qPVY.cjs.map +0 -1
  228. package/dist/export-DR1t4N5Q.js.map +0 -1
  229. package/dist/export.d.cts.map +0 -1
  230. package/dist/export.d.ts.map +0 -1
  231. package/dist/filters-BJDFrg_k.d.ts.map +0 -1
  232. package/dist/filters-BMS9STAJ.js.map +0 -1
  233. package/dist/filters-BYHvvws9.d.cts.map +0 -1
  234. package/dist/filters-BuzAGNaj.cjs.map +0 -1
  235. package/dist/header-filters-BDSKDeJ9.cjs.map +0 -1
  236. package/dist/header-filters-FQFlnVM9.js.map +0 -1
  237. package/dist/row-reorder-BNscjPNy.cjs.map +0 -1
  238. package/dist/row-reorder-kuiFvbsM.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"assistant-B27ZguV8.cjs","names":["h","ElDropdownItem","defineComponent","useScopeActivity","shallowRef","ElDropdown","elementButton","ElDropdownMenu","defineComponent","useScopeActivity","h","ElDrawer","elementButton","h","ElementInput","ElTag","ElementCard","ElementSelect","defineComponent","h","TableAssistantChrome","AgentApprovalChrome","createAdapterTableAssistantFeature","createAdapterAgentApprovalFeature"],"sources":["../src/assistant/ExamplesMenu.ts","../src/assistant/Sheet.ts","../src/assistant/controls.ts","../src/assistant.ts"],"sourcesContent":["import {\n type TableAssistantMenuProps,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport {\n type DropdownInstance,\n ElDropdown,\n ElDropdownItem,\n ElDropdownMenu,\n} from \"element-plus\";\nimport { defineComponent, h, type PropType, shallowRef, watch } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\n\n/** One shortcut: its icon, title and optional description. */\nfunction menuItem(item: TableAssistantMenuProps[\"items\"][number]) {\n return h(\n ElDropdownItem,\n { key: item.id, command: 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 Element Plus dropdown under its trigger. */\nexport const ElementExamplesMenu = defineComponent(\n (props: TableAssistantMenuProps) => {\n const active = useScopeActivity();\n const dropdown = shallowRef<DropdownInstance>();\n const trigger = shallowRef<HTMLElement | null>(null);\n const open = shallowRef(false);\n let generation = 0;\n watch(\n [active, () => props.disabled, () => props.items, () => props.onSelect],\n () => {\n generation++;\n dropdown.value?.handleClose();\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 dropdown.value?.handleClose();\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 return h(\n ElDropdown,\n {\n ref: dropdown,\n trigger: \"click\",\n persistent: false,\n hideTimeout: 0,\n disabled: props.disabled,\n maxHeight: props.maxHeight,\n onVisibleChange: (value: boolean) => {\n open.value = value;\n },\n onCommand: (id: unknown) => {\n if (\n current() &&\n typeof id === \"string\" &&\n props.items.some((item) => item.id === id)\n )\n props.onSelect(id);\n },\n },\n {\n default: () =>\n elementButton(\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 dropdown: () =>\n h(\n ElDropdownMenu,\n // Captured on the list so an Escape from any item reaches it\n // before Element's own handling moves focus into the list.\n { \"aria-label\": props.label, onKeydownCapture: keydown },\n { default: () => props.items.map(menuItem) }\n ),\n }\n );\n };\n },\n {\n name: \"ElementExamplesMenu\",\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 { ElDrawer } from \"element-plus\";\nimport { defineComponent, h, type PropType } from \"vue\";\n\n/**\n * Chrome chooses initial and return focus; ElDrawer contains focus 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 ElementAssistantSheet = defineComponent(\n (props: TableAssistantSheetProps) => {\n const active = useScopeActivity();\n const requestClose = () => {\n if (active.value && props.open) props.onClose();\n };\n const preventDefault = (event: Event) => event.preventDefault();\n const keydown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\" || event.defaultPrevented || event.isComposing)\n return;\n event.preventDefault();\n event.stopPropagation();\n requestClose();\n };\n return () => {\n if (!active.value) return null;\n return h(\n ElDrawer,\n {\n modelValue: props.open,\n direction: props.dir === \"rtl\" ? \"ltr\" : \"rtl\",\n size: \"min(28rem, 100vw)\",\n withHeader: false,\n showClose: false,\n appendToBody: true,\n destroyOnClose: true,\n closeOnPressEscape: false,\n title: props.label,\n \"aria-label\": props.label,\n dir: props.dir,\n class: [\"adapttable-element-plus-assistant-sheet\", props.className],\n \"data-adapttable-part\": props.part,\n beforeClose: requestClose,\n onKeydown: keydown,\n // Chrome places the initial focus and returns it to the launcher;\n // the drawer's trap only keeps focus inside while open.\n \"on:focus-trap.focus-after-trapped\": preventDefault,\n \"on:focus-trap.focus-after-released\": preventDefault,\n },\n { default: () => props.children }\n );\n };\n },\n {\n name: \"ElementAssistantSheet\",\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 { ElTag } from \"element-plus\";\nimport { h } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport ElementInput from \"../controls/ElementInput.vue\";\nimport ElementSelect from \"../controls/ElementSelect.vue\";\nimport { ElementCard } from \"../presentation/ElementCard\";\nimport { ElementExamplesMenu } from \"./ExamplesMenu\";\nimport { ElementAssistantSheet } from \"./Sheet\";\n\n/** Element Plus tag types for the assistant's status tones. */\nconst TAG_TYPE = {\n neutral: \"info\",\n busy: \"primary\",\n warning: \"warning\",\n danger: \"danger\",\n} as const;\n\nexport const elementAssistantControls: TableAssistantSlots = {\n Button: (props) =>\n elementButton(\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(ElementInput, {\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-element-plus-assistant-input\", props.className],\n onChange: props.onChange,\n onKeydown: props.onKeyDown,\n }),\n Badge: (props) =>\n h(\n ElTag,\n {\n \"data-adapttable-part\": props.part,\n \"data-tone\": props.tone,\n type: TAG_TYPE[props.tone],\n size: \"small\",\n effect: \"light\",\n style:\n props.tone === \"neutral\" || props.tone === \"warning\"\n ? { \"--el-tag-text-color\": \"var(--el-text-color-regular)\" }\n : undefined,\n class: props.className,\n },\n { default: () => props.label }\n ),\n Panel: (props) =>\n h(\n ElementCard,\n {\n attrs: {\n role: \"region\",\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: [\"adapttable-element-plus-assistant-panel\", props.className],\n },\n },\n { default: () => props.children }\n ),\n Window: (props) =>\n h(\n ElementCard,\n {\n attrs: {\n role: \"region\",\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: [\"adapttable-element-plus-assistant-window\", props.className],\n style: props.style,\n },\n },\n { default: () => props.children }\n ),\n Sheet: (props) => h(ElementAssistantSheet, { ...props, key: props.part }),\n Menu: (props) => h(ElementExamplesMenu, props),\n LanguageChip: (props) =>\n h(ElementSelect, {\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 elementApprovalControls: ApprovalReviewSlots = {\n Approve: elementAssistantControls.Button,\n Reject: elementAssistantControls.Button,\n Action: elementAssistantControls.Button,\n List: (props) =>\n h(\n \"ul\",\n {\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: [\"adapttable-element-plus-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 elementApprovalControls,\n elementAssistantControls,\n} from \"./assistant/controls\";\n\nexport const TableAssistant = defineComponent(\n (props: TableAssistantProps) => () =>\n h(TableAssistantChrome, {\n ...props,\n accent: props.accent ?? \"var(--el-color-primary)\",\n slots: elementAssistantControls,\n }),\n {\n name: \"ElementTableAssistant\",\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: elementApprovalControls }),\n {\n name: \"ElementAgentApproval\",\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":";;;;;;;;;AAeA,SAAS,SAAS,MAAgD;CAChE,QAAA,GAAOA,IAAAA,EAAAA,CACLC,aAAAA,gBACA;EAAE,KAAK,KAAK;EAAI,SAAS,KAAK;EAAI,wBAAwB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,MAAM,OAAiD;EACjE,WAAW,EAAE,MAAM,OAAoD;EACvE,iBAAiB,EACf,MAAM,OACR;CACF;AACF,CACF;AACA,SAAgB,iBAAqC;CACnD,QAAA,GAAOC,wBAAAA,mCAAAA,EAAoC,WAAA,GACzCH,IAAAA,EAAAA,CAAE,gBAAgB,KAAK,CACzB;AACF;AACA,SAAgB,gBAAoC;CAClD,QAAA,GAAOI,wBAAAA,kCAAAA,EAAmC,WAAA,GAAUJ,IAAAA,EAAAA,CAAE,eAAe,KAAK,CAAC;AAC7E"}
1
+ {"version":3,"file":"assistant-D4l4OdXN.cjs","names":["h","ElDropdownItem","defineComponent","useScopeActivity","shallowRef","ElDropdown","elementButton","ElDropdownMenu","defineComponent","useScopeActivity","h","ElDrawer","elementButton","h","ElementInput","ElTag","ElementCard","ElementSelect","defineComponent","h","TableAssistantChrome","AgentApprovalChrome","createAdapterTableAssistantFeature","createAdapterAgentApprovalFeature"],"sources":["../src/assistant/ExamplesMenu.ts","../src/assistant/Sheet.ts","../src/assistant/controls.ts","../src/assistant.ts"],"sourcesContent":["import {\n type TableAssistantMenuProps,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport {\n type DropdownInstance,\n ElDropdown,\n ElDropdownItem,\n ElDropdownMenu,\n} from \"element-plus\";\nimport { defineComponent, h, type PropType, shallowRef, watch } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\n\n/** One shortcut: its icon, title and optional description. */\nfunction menuItem(item: TableAssistantMenuProps[\"items\"][number]) {\n return h(\n ElDropdownItem,\n { key: item.id, command: 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 Element Plus dropdown under its trigger. */\nexport const ElementExamplesMenu = defineComponent(\n (props: TableAssistantMenuProps) => {\n const active = useScopeActivity();\n const dropdown = shallowRef<DropdownInstance>();\n const trigger = shallowRef<HTMLElement | null>(null);\n const open = shallowRef(false);\n let generation = 0;\n watch(\n [active, () => props.disabled, () => props.items, () => props.onSelect],\n () => {\n generation++;\n dropdown.value?.handleClose();\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 dropdown.value?.handleClose();\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 return h(\n ElDropdown,\n {\n ref: dropdown,\n trigger: \"click\",\n persistent: false,\n hideTimeout: 0,\n disabled: props.disabled,\n maxHeight: props.maxHeight,\n onVisibleChange: (value: boolean) => {\n open.value = value;\n },\n onCommand: (id: unknown) => {\n if (\n current() &&\n typeof id === \"string\" &&\n props.items.some((item) => item.id === id)\n )\n props.onSelect(id);\n },\n },\n {\n default: () =>\n elementButton(\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 dropdown: () =>\n h(\n ElDropdownMenu,\n // Captured on the list so an Escape from any item reaches it\n // before Element's own handling moves focus into the list.\n { \"aria-label\": props.label, onKeydownCapture: keydown },\n { default: () => props.items.map(menuItem) }\n ),\n }\n );\n };\n },\n {\n name: \"ElementExamplesMenu\",\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 { ElDrawer } from \"element-plus\";\nimport { defineComponent, h, type PropType } from \"vue\";\n\n/**\n * Chrome chooses initial and return focus; ElDrawer contains focus 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 ElementAssistantSheet = defineComponent(\n (props: TableAssistantSheetProps) => {\n const active = useScopeActivity();\n const requestClose = () => {\n if (active.value && props.open) props.onClose();\n };\n const preventDefault = (event: Event) => event.preventDefault();\n const keydown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\" || event.defaultPrevented || event.isComposing)\n return;\n event.preventDefault();\n event.stopPropagation();\n requestClose();\n };\n return () => {\n if (!active.value) return null;\n return h(\n ElDrawer,\n {\n modelValue: props.open,\n direction: props.dir === \"rtl\" ? \"ltr\" : \"rtl\",\n size: \"min(28rem, 100vw)\",\n withHeader: false,\n showClose: false,\n appendToBody: true,\n destroyOnClose: true,\n closeOnPressEscape: false,\n title: props.label,\n \"aria-label\": props.label,\n dir: props.dir,\n class: [\"adapttable-element-plus-assistant-sheet\", props.className],\n \"data-adapttable-part\": props.part,\n beforeClose: requestClose,\n onKeydown: keydown,\n // Chrome places the initial focus and returns it to the launcher;\n // the drawer's trap only keeps focus inside while open.\n \"on:focus-trap.focus-after-trapped\": preventDefault,\n \"on:focus-trap.focus-after-released\": preventDefault,\n },\n { default: () => props.children }\n );\n };\n },\n {\n name: \"ElementAssistantSheet\",\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 { ElTag } from \"element-plus\";\nimport { h } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport ElementInput from \"../controls/ElementInput.vue\";\nimport ElementSelect from \"../controls/ElementSelect.vue\";\nimport { ElementCard } from \"../presentation/ElementCard\";\nimport { ElementExamplesMenu } from \"./ExamplesMenu\";\nimport { ElementAssistantSheet } from \"./Sheet\";\n\n/** Element Plus tag types for the assistant's status tones. */\nconst TAG_TYPE = {\n neutral: \"info\",\n busy: \"primary\",\n warning: \"warning\",\n danger: \"danger\",\n} as const;\n\nexport const elementAssistantControls: TableAssistantSlots = {\n Button: (props) =>\n elementButton(\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(ElementInput, {\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-element-plus-assistant-input\", props.className],\n onChange: props.onChange,\n onKeydown: props.onKeyDown,\n }),\n Badge: (props) =>\n h(\n ElTag,\n {\n \"data-adapttable-part\": props.part,\n \"data-tone\": props.tone,\n type: TAG_TYPE[props.tone],\n size: \"small\",\n effect: \"light\",\n style:\n props.tone === \"neutral\" || props.tone === \"warning\"\n ? { \"--el-tag-text-color\": \"var(--el-text-color-regular)\" }\n : undefined,\n class: props.className,\n },\n { default: () => props.label }\n ),\n Panel: (props) =>\n h(\n ElementCard,\n {\n attrs: {\n role: \"region\",\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: [\"adapttable-element-plus-assistant-panel\", props.className],\n },\n },\n { default: () => props.children }\n ),\n Window: (props) =>\n h(\n ElementCard,\n {\n attrs: {\n role: \"region\",\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: [\"adapttable-element-plus-assistant-window\", props.className],\n style: props.style,\n },\n },\n { default: () => props.children }\n ),\n Sheet: (props) => h(ElementAssistantSheet, { ...props, key: props.part }),\n Menu: (props) => h(ElementExamplesMenu, props),\n LanguageChip: (props) =>\n h(ElementSelect, {\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 elementApprovalControls: ApprovalReviewSlots = {\n Approve: elementAssistantControls.Button,\n Reject: elementAssistantControls.Button,\n Action: elementAssistantControls.Button,\n List: (props) =>\n h(\n \"ul\",\n {\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: [\"adapttable-element-plus-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 elementApprovalControls,\n elementAssistantControls,\n} from \"./assistant/controls\";\n\nexport const TableAssistant = defineComponent(\n (props: TableAssistantProps) => () =>\n h(TableAssistantChrome, {\n ...props,\n accent: props.accent ?? \"var(--el-color-primary)\",\n slots: elementAssistantControls,\n }),\n {\n name: \"ElementTableAssistant\",\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: elementApprovalControls }),\n {\n name: \"ElementAgentApproval\",\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":";;;;;;;;;AAeA,SAAS,SAAS,MAAgD;CAChE,QAAA,GAAOA,IAAAA,EAAAA,CACLC,aAAAA,gBACA;EAAE,KAAK,KAAK;EAAI,SAAS,KAAK;EAAI,wBAAwB,KAAK;CAAK,GACpE,EACE,eAAe,CACb,KAAK,OAAA,GACLD,IAAAA,EAAAA,CAAE,QAAQ,EAAA,GACRA,IAAAA,EAAAA,CAAE,UAAU,KAAK,KAAK,GACtB,KAAK,eAAA,GAAcA,IAAAA,EAAAA,CAAE,SAAS,KAAK,WAAW,IAAI,IACpD,CAAC,CACH,EACF,CACF;AACF;;AAGA,MAAa,uBAAA,GAAsBE,IAAAA,gBAAAA,EAChC,UAAmC;CAClC,MAAM,UAAA,GAASC,wBAAAA,iBAAAA,CAAiB;CAChC,MAAM,YAAA,GAAWC,IAAAA,WAAAA,CAA6B;CAC9C,MAAM,WAAA,GAAUA,IAAAA,WAAAA,CAA+B,IAAI;CACnD,MAAM,QAAA,GAAOA,IAAAA,WAAAA,CAAW,KAAK;CAC7B,IAAI,aAAa;CACjB,CAAA,GAAA,IAAA,MAAA,CACE;EAAC;QAAc,MAAM;QAAgB,MAAM;QAAa,MAAM;CAAQ,SAChE;EACJ;EACA,SAAS,OAAO,YAAY;CAC9B,GACA,EAAE,OAAO,OAAO,CAClB;CAGA,MAAM,WAAW,UAAyB;EACxC,IAAI,MAAM,QAAQ,YAAY,MAAM,aAAa;EACjD,MAAM,eAAe;EACrB,MAAM,gBAAgB;EACtB,SAAS,OAAO,YAAY;EAC5B,QAAQ,OAAO,MAAM,EAAE,eAAe,KAAK,CAAC;CAC9C;CACA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U,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,iBAAA,GAAgBF,IAAAA,gBAAAA,EAC1B,iBAAA,GACCC,IAAAA,EAAAA,CAAEE,wBAAAA,qBAAqB;CAAE,GAAG;CAAO,OAAO;AAAwB,CAAC,GACrE;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,QAAA,GAAOC,wBAAAA,mCAAAA,EAAoC,WAAA,GACzCH,IAAAA,EAAAA,CAAE,gBAAgB,KAAK,CACzB;AACF;AACA,SAAgB,gBAAoC;CAClD,QAAA,GAAOI,wBAAAA,kCAAAA,EAAmC,WAAA,GAAUJ,IAAAA,EAAAA,CAAE,eAAe,KAAK,CAAC;AAC7E"}
@@ -1,6 +1,6 @@
1
1
  import { t as elementButton } from "./button-DwB4UxI2.js";
2
- import { t as _sfc_main } from "./ElementInput-BsoAvPfO.js";
3
- import { t as _sfc_main$1 } from "./ElementSelect-BtmVMA7B.js";
2
+ import { t as _sfc_main } from "./ElementInput-Cn9hpa9j.js";
3
+ import { t as _sfc_main$1 } from "./ElementSelect-BxFmnPpv.js";
4
4
  import { t as ElementCard } from "./ElementCard-DZdAU6x8.js";
5
5
  import { defineComponent, h, shallowRef, watch } from "vue";
6
6
  import { AgentApprovalChrome, TableAssistantChrome, createAdapterAgentApprovalFeature, createAdapterTableAssistantFeature, useScopeActivity } from "@adapttable/vue/adapter";
@@ -303,4 +303,4 @@ function agentApproval() {
303
303
  //#endregion
304
304
  export { tableAssistant as i, TableAssistant as n, agentApproval as r, AgentApproval as t };
305
305
 
306
- //# sourceMappingURL=assistant-BPwGaQnx.js.map
306
+ //# sourceMappingURL=assistant-DRDxJajO.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"assistant-BPwGaQnx.js","names":["ElementInput","ElementSelect"],"sources":["../src/assistant/ExamplesMenu.ts","../src/assistant/Sheet.ts","../src/assistant/controls.ts","../src/assistant.ts"],"sourcesContent":["import {\n type TableAssistantMenuProps,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport {\n type DropdownInstance,\n ElDropdown,\n ElDropdownItem,\n ElDropdownMenu,\n} from \"element-plus\";\nimport { defineComponent, h, type PropType, shallowRef, watch } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\n\n/** One shortcut: its icon, title and optional description. */\nfunction menuItem(item: TableAssistantMenuProps[\"items\"][number]) {\n return h(\n ElDropdownItem,\n { key: item.id, command: 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 Element Plus dropdown under its trigger. */\nexport const ElementExamplesMenu = defineComponent(\n (props: TableAssistantMenuProps) => {\n const active = useScopeActivity();\n const dropdown = shallowRef<DropdownInstance>();\n const trigger = shallowRef<HTMLElement | null>(null);\n const open = shallowRef(false);\n let generation = 0;\n watch(\n [active, () => props.disabled, () => props.items, () => props.onSelect],\n () => {\n generation++;\n dropdown.value?.handleClose();\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 dropdown.value?.handleClose();\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 return h(\n ElDropdown,\n {\n ref: dropdown,\n trigger: \"click\",\n persistent: false,\n hideTimeout: 0,\n disabled: props.disabled,\n maxHeight: props.maxHeight,\n onVisibleChange: (value: boolean) => {\n open.value = value;\n },\n onCommand: (id: unknown) => {\n if (\n current() &&\n typeof id === \"string\" &&\n props.items.some((item) => item.id === id)\n )\n props.onSelect(id);\n },\n },\n {\n default: () =>\n elementButton(\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 dropdown: () =>\n h(\n ElDropdownMenu,\n // Captured on the list so an Escape from any item reaches it\n // before Element's own handling moves focus into the list.\n { \"aria-label\": props.label, onKeydownCapture: keydown },\n { default: () => props.items.map(menuItem) }\n ),\n }\n );\n };\n },\n {\n name: \"ElementExamplesMenu\",\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 { ElDrawer } from \"element-plus\";\nimport { defineComponent, h, type PropType } from \"vue\";\n\n/**\n * Chrome chooses initial and return focus; ElDrawer contains focus 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 ElementAssistantSheet = defineComponent(\n (props: TableAssistantSheetProps) => {\n const active = useScopeActivity();\n const requestClose = () => {\n if (active.value && props.open) props.onClose();\n };\n const preventDefault = (event: Event) => event.preventDefault();\n const keydown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\" || event.defaultPrevented || event.isComposing)\n return;\n event.preventDefault();\n event.stopPropagation();\n requestClose();\n };\n return () => {\n if (!active.value) return null;\n return h(\n ElDrawer,\n {\n modelValue: props.open,\n direction: props.dir === \"rtl\" ? \"ltr\" : \"rtl\",\n size: \"min(28rem, 100vw)\",\n withHeader: false,\n showClose: false,\n appendToBody: true,\n destroyOnClose: true,\n closeOnPressEscape: false,\n title: props.label,\n \"aria-label\": props.label,\n dir: props.dir,\n class: [\"adapttable-element-plus-assistant-sheet\", props.className],\n \"data-adapttable-part\": props.part,\n beforeClose: requestClose,\n onKeydown: keydown,\n // Chrome places the initial focus and returns it to the launcher;\n // the drawer's trap only keeps focus inside while open.\n \"on:focus-trap.focus-after-trapped\": preventDefault,\n \"on:focus-trap.focus-after-released\": preventDefault,\n },\n { default: () => props.children }\n );\n };\n },\n {\n name: \"ElementAssistantSheet\",\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 { ElTag } from \"element-plus\";\nimport { h } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport ElementInput from \"../controls/ElementInput.vue\";\nimport ElementSelect from \"../controls/ElementSelect.vue\";\nimport { ElementCard } from \"../presentation/ElementCard\";\nimport { ElementExamplesMenu } from \"./ExamplesMenu\";\nimport { ElementAssistantSheet } from \"./Sheet\";\n\n/** Element Plus tag types for the assistant's status tones. */\nconst TAG_TYPE = {\n neutral: \"info\",\n busy: \"primary\",\n warning: \"warning\",\n danger: \"danger\",\n} as const;\n\nexport const elementAssistantControls: TableAssistantSlots = {\n Button: (props) =>\n elementButton(\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(ElementInput, {\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-element-plus-assistant-input\", props.className],\n onChange: props.onChange,\n onKeydown: props.onKeyDown,\n }),\n Badge: (props) =>\n h(\n ElTag,\n {\n \"data-adapttable-part\": props.part,\n \"data-tone\": props.tone,\n type: TAG_TYPE[props.tone],\n size: \"small\",\n effect: \"light\",\n style:\n props.tone === \"neutral\" || props.tone === \"warning\"\n ? { \"--el-tag-text-color\": \"var(--el-text-color-regular)\" }\n : undefined,\n class: props.className,\n },\n { default: () => props.label }\n ),\n Panel: (props) =>\n h(\n ElementCard,\n {\n attrs: {\n role: \"region\",\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: [\"adapttable-element-plus-assistant-panel\", props.className],\n },\n },\n { default: () => props.children }\n ),\n Window: (props) =>\n h(\n ElementCard,\n {\n attrs: {\n role: \"region\",\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: [\"adapttable-element-plus-assistant-window\", props.className],\n style: props.style,\n },\n },\n { default: () => props.children }\n ),\n Sheet: (props) => h(ElementAssistantSheet, { ...props, key: props.part }),\n Menu: (props) => h(ElementExamplesMenu, props),\n LanguageChip: (props) =>\n h(ElementSelect, {\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 elementApprovalControls: ApprovalReviewSlots = {\n Approve: elementAssistantControls.Button,\n Reject: elementAssistantControls.Button,\n Action: elementAssistantControls.Button,\n List: (props) =>\n h(\n \"ul\",\n {\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: [\"adapttable-element-plus-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 elementApprovalControls,\n elementAssistantControls,\n} from \"./assistant/controls\";\n\nexport const TableAssistant = defineComponent(\n (props: TableAssistantProps) => () =>\n h(TableAssistantChrome, {\n ...props,\n accent: props.accent ?? \"var(--el-color-primary)\",\n slots: elementAssistantControls,\n }),\n {\n name: \"ElementTableAssistant\",\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: elementApprovalControls }),\n {\n name: \"ElementAgentApproval\",\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":";;;;;;;;;AAeA,SAAS,SAAS,MAAgD;CAChE,OAAO,EACL,gBACA;EAAE,KAAK,KAAK;EAAI,SAAS,KAAK;EAAI,wBAAwB,KAAK;CAAK,GACpE,EACE,eAAe,CACb,KAAK,MACL,EAAE,QAAQ,CACR,EAAE,UAAU,KAAK,KAAK,GACtB,KA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,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;AAAwB,CAAC,GACrE;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"}
1
+ {"version":3,"file":"assistant-DRDxJajO.js","names":["ElementInput","ElementSelect"],"sources":["../src/assistant/ExamplesMenu.ts","../src/assistant/Sheet.ts","../src/assistant/controls.ts","../src/assistant.ts"],"sourcesContent":["import {\n type TableAssistantMenuProps,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport {\n type DropdownInstance,\n ElDropdown,\n ElDropdownItem,\n ElDropdownMenu,\n} from \"element-plus\";\nimport { defineComponent, h, type PropType, shallowRef, watch } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\n\n/** One shortcut: its icon, title and optional description. */\nfunction menuItem(item: TableAssistantMenuProps[\"items\"][number]) {\n return h(\n ElDropdownItem,\n { key: item.id, command: 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 Element Plus dropdown under its trigger. */\nexport const ElementExamplesMenu = defineComponent(\n (props: TableAssistantMenuProps) => {\n const active = useScopeActivity();\n const dropdown = shallowRef<DropdownInstance>();\n const trigger = shallowRef<HTMLElement | null>(null);\n const open = shallowRef(false);\n let generation = 0;\n watch(\n [active, () => props.disabled, () => props.items, () => props.onSelect],\n () => {\n generation++;\n dropdown.value?.handleClose();\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 dropdown.value?.handleClose();\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 return h(\n ElDropdown,\n {\n ref: dropdown,\n trigger: \"click\",\n persistent: false,\n hideTimeout: 0,\n disabled: props.disabled,\n maxHeight: props.maxHeight,\n onVisibleChange: (value: boolean) => {\n open.value = value;\n },\n onCommand: (id: unknown) => {\n if (\n current() &&\n typeof id === \"string\" &&\n props.items.some((item) => item.id === id)\n )\n props.onSelect(id);\n },\n },\n {\n default: () =>\n elementButton(\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 dropdown: () =>\n h(\n ElDropdownMenu,\n // Captured on the list so an Escape from any item reaches it\n // before Element's own handling moves focus into the list.\n { \"aria-label\": props.label, onKeydownCapture: keydown },\n { default: () => props.items.map(menuItem) }\n ),\n }\n );\n };\n },\n {\n name: \"ElementExamplesMenu\",\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 { ElDrawer } from \"element-plus\";\nimport { defineComponent, h, type PropType } from \"vue\";\n\n/**\n * Chrome chooses initial and return focus; ElDrawer contains focus 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 ElementAssistantSheet = defineComponent(\n (props: TableAssistantSheetProps) => {\n const active = useScopeActivity();\n const requestClose = () => {\n if (active.value && props.open) props.onClose();\n };\n const preventDefault = (event: Event) => event.preventDefault();\n const keydown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\" || event.defaultPrevented || event.isComposing)\n return;\n event.preventDefault();\n event.stopPropagation();\n requestClose();\n };\n return () => {\n if (!active.value) return null;\n return h(\n ElDrawer,\n {\n modelValue: props.open,\n direction: props.dir === \"rtl\" ? \"ltr\" : \"rtl\",\n size: \"min(28rem, 100vw)\",\n withHeader: false,\n showClose: false,\n appendToBody: true,\n destroyOnClose: true,\n closeOnPressEscape: false,\n title: props.label,\n \"aria-label\": props.label,\n dir: props.dir,\n class: [\"adapttable-element-plus-assistant-sheet\", props.className],\n \"data-adapttable-part\": props.part,\n beforeClose: requestClose,\n onKeydown: keydown,\n // Chrome places the initial focus and returns it to the launcher;\n // the drawer's trap only keeps focus inside while open.\n \"on:focus-trap.focus-after-trapped\": preventDefault,\n \"on:focus-trap.focus-after-released\": preventDefault,\n },\n { default: () => props.children }\n );\n };\n },\n {\n name: \"ElementAssistantSheet\",\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 { ElTag } from \"element-plus\";\nimport { h } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport ElementInput from \"../controls/ElementInput.vue\";\nimport ElementSelect from \"../controls/ElementSelect.vue\";\nimport { ElementCard } from \"../presentation/ElementCard\";\nimport { ElementExamplesMenu } from \"./ExamplesMenu\";\nimport { ElementAssistantSheet } from \"./Sheet\";\n\n/** Element Plus tag types for the assistant's status tones. */\nconst TAG_TYPE = {\n neutral: \"info\",\n busy: \"primary\",\n warning: \"warning\",\n danger: \"danger\",\n} as const;\n\nexport const elementAssistantControls: TableAssistantSlots = {\n Button: (props) =>\n elementButton(\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(ElementInput, {\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-element-plus-assistant-input\", props.className],\n onChange: props.onChange,\n onKeydown: props.onKeyDown,\n }),\n Badge: (props) =>\n h(\n ElTag,\n {\n \"data-adapttable-part\": props.part,\n \"data-tone\": props.tone,\n type: TAG_TYPE[props.tone],\n size: \"small\",\n effect: \"light\",\n style:\n props.tone === \"neutral\" || props.tone === \"warning\"\n ? { \"--el-tag-text-color\": \"var(--el-text-color-regular)\" }\n : undefined,\n class: props.className,\n },\n { default: () => props.label }\n ),\n Panel: (props) =>\n h(\n ElementCard,\n {\n attrs: {\n role: \"region\",\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: [\"adapttable-element-plus-assistant-panel\", props.className],\n },\n },\n { default: () => props.children }\n ),\n Window: (props) =>\n h(\n ElementCard,\n {\n attrs: {\n role: \"region\",\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: [\"adapttable-element-plus-assistant-window\", props.className],\n style: props.style,\n },\n },\n { default: () => props.children }\n ),\n Sheet: (props) => h(ElementAssistantSheet, { ...props, key: props.part }),\n Menu: (props) => h(ElementExamplesMenu, props),\n LanguageChip: (props) =>\n h(ElementSelect, {\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 elementApprovalControls: ApprovalReviewSlots = {\n Approve: elementAssistantControls.Button,\n Reject: elementAssistantControls.Button,\n Action: elementAssistantControls.Button,\n List: (props) =>\n h(\n \"ul\",\n {\n \"data-adapttable-part\": props.part,\n \"aria-label\": props.label,\n class: [\"adapttable-element-plus-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 elementApprovalControls,\n elementAssistantControls,\n} from \"./assistant/controls\";\n\nexport const TableAssistant = defineComponent(\n (props: TableAssistantProps) => () =>\n h(TableAssistantChrome, {\n ...props,\n accent: props.accent ?? \"var(--el-color-primary)\",\n slots: elementAssistantControls,\n }),\n {\n name: \"ElementTableAssistant\",\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: elementApprovalControls }),\n {\n name: \"ElementAgentApproval\",\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":";;;;;;;;;AAeA,SAAS,SAAS,MAAgD;CAChE,OAAO,EACL,gBACA;EAAE,KAAK,KAAK;EAAI,SAAS,KAAK;EAAI,wBAAwB,KAAK;CAAK,GACpE,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,sBAAsB,iBAChC,UAAmC;CAClC,MAAM,SAAS,iBAAiB;CAChC,MAAM,WAAW,WAA6B;CAC9C,MAAM,UAAU,WAA+B,IAAI;CACnD,MAAM,OAAO,WAAW,KAAK;CAC7B,IAAI,aAAa;CACjB,MACE;EAAC;QAAc,MAAM;QAAgB,MAAM;QAAa,MAAM;CAAQ,SAChE;EACJ;EACA,SAAS,OAAO,YAAY;CAC9B,GACA,EAAE,OAAO,OAAO,CAClB;CAGA,MAAM,WAAW,UAAyB;EACxC,IAAI,MAAM,QAAQ,YAAY,MAAM,aAAa;EACjD,MAAM,eAAe;EACrB,MAAM,gBAAgB;EACtB,SAAS,OAAO,YAAY;EAC5B,QAAQ,OAAO,MAAM,EAAE,eAAe,KAAK,CAAC;CAC9C;CACA,aAAa;EACX,IAAI,CAAC,OAAO,OAAO,OAAO;E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AAgB,KAAK,CACzB;AACF;AACA,SAAgB,gBAAoC;CAClD,OAAO,mCAAmC,UAAU,EAAE,eAAe,KAAK,CAAC;AAC7E"}
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_assistant = require("./assistant-B27ZguV8.cjs");
2
+ const require_assistant = require("./assistant-D4l4OdXN.cjs");
3
3
  exports.AgentApproval = require_assistant.AgentApproval;
4
4
  exports.TableAssistant = require_assistant.TableAssistant;
5
5
  exports.agentApproval = require_assistant.agentApproval;
package/dist/assistant.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as tableAssistant, n as TableAssistant, r as agentApproval, t as AgentApproval } from "./assistant-BPwGaQnx.js";
1
+ import { i as tableAssistant, n as TableAssistant, r as agentApproval, t as AgentApproval } from "./assistant-DRDxJajO.js";
2
2
  export { AgentApproval, TableAssistant, agentApproval, tableAssistant };
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_editing = require("./editing-9371TGFz.cjs");
2
+ const require_editing = require("./editing-Bhw_4VG8.cjs");
3
3
  exports.ElementBatchEditBar = require_editing._sfc_main$1;
4
4
  exports.batchEditing = require_editing.batchEditing;
@@ -1,2 +1,2 @@
1
- import { c as _sfc_main, t as batchEditing } from "./editing-B_HAxfh4.js";
1
+ import { c as _sfc_main, t as batchEditing } from "./editing-DHjzbw-I.js";
2
2
  export { _sfc_main as ElementBatchEditBar, batchEditing };
@@ -1,4 +1,4 @@
1
- const require_ElementCheckbox = require("./ElementCheckbox-BewKx6sv.cjs");
1
+ const require_ElementCheckbox = require("./ElementCheckbox-BXSH2jHY.cjs");
2
2
  let vue = require("vue");
3
3
  let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
4
4
  let _adapttable_vue_features = require("@adapttable/vue/features");
@@ -82,4 +82,4 @@ Object.defineProperty(exports, "columnSelectionCheckbox", {
82
82
  }
83
83
  });
84
84
 
85
- //# sourceMappingURL=cell-navigation-BXE28fwQ.cjs.map
85
+ //# sourceMappingURL=cell-navigation-DJ-_1Mjr.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"cell-navigation-BXE28fwQ.cjs","names":["defineComponent","ColumnSelectCheckboxChrome","h","ElementCheckbox","defineComponent","FillHandleChrome","h","mergeProps","extendFeature","bindingCellNavigation","slotRender","FILL_HANDLE_CONTROL","h","bindingColumnSelectionCheckbox","COLUMN_SELECT"],"sources":["../src/navigation/ElementColumnSelect.ts","../src/navigation/ElementFillHandle.ts","../src/cell-navigation.ts"],"sourcesContent":["import {\n ColumnSelectCheckboxChrome,\n type ColumnSelectCheckboxChromeProps,\n} from \"@adapttable/vue/adapter\";\nimport { defineComponent, h, type PropType } from \"vue\";\n\nimport ElementCheckbox from \"../controls/ElementCheckbox.vue\";\n\nexport const ElementColumnSelect = defineComponent(\n (props: Omit<ColumnSelectCheckboxChromeProps, \"slots\">) => () =>\n ColumnSelectCheckboxChrome({\n ...props,\n slots: {\n Checkbox: (control) =>\n h(ElementCheckbox, {\n checked: control.checked,\n label: control.label,\n onChange: control.onToggle,\n }),\n },\n }),\n {\n name: \"ElementColumnSelect\",\n props: {\n label: {\n type: String as PropType<\n Omit<ColumnSelectCheckboxChromeProps, \"slots\">[\"label\"]\n >,\n },\n checked: {\n type: Boolean as PropType<\n Omit<ColumnSelectCheckboxChromeProps, \"slots\">[\"checked\"]\n >,\n default: undefined,\n },\n onToggle: {\n type: Function as PropType<\n Omit<ColumnSelectCheckboxChromeProps, \"slots\">[\"onToggle\"]\n >,\n },\n className: {\n type: String as PropType<\n Omit<ColumnSelectCheckboxChromeProps, \"slots\">[\"className\"]\n >,\n },\n },\n }\n);\n","import {\n FillHandleChrome,\n type FillHandleChromeProps,\n} from \"@adapttable/vue/adapter\";\nimport { defineComponent, h, mergeProps, type PropType } from \"vue\";\n\n/** Pointer affordance only; the binding supplies the accessible keyboard fill action. */\nexport const ElementFillHandle = defineComponent(\n (props: Omit<FillHandleChromeProps, \"slots\">) => () =>\n FillHandleChrome({\n ...props,\n slots: {\n Handle: (control) =>\n h(\n \"span\",\n {\n \"data-adapttable-part\": \"fill-handle-anchor\",\n style: { position: \"relative\", display: \"block\", height: 0 },\n },\n [\n h(\n \"span\",\n mergeProps(control.handleProps, {\n \"data-adapttable-part\": \"fill-handle\",\n title: control.label,\n \"aria-hidden\": \"true\",\n class: control.className,\n style: {\n position: \"absolute\",\n insetInlineEnd: \"-3px\",\n bottom: \"-3px\",\n width: \"8px\",\n height: \"8px\",\n borderRadius: \"var(--el-border-radius-small)\",\n background: \"var(--el-color-primary)\",\n cursor: \"crosshair\",\n },\n })\n ),\n ]\n ),\n },\n }),\n {\n name: \"ElementFillHandle\",\n props: {\n focus: {\n type: Object as PropType<Omit<FillHandleChromeProps, \"slots\">[\"focus\"]>,\n },\n windowIndex: {\n type: Number as PropType<\n Omit<FillHandleChromeProps, \"slots\">[\"windowIndex\"]\n >,\n },\n col: {\n type: Number as PropType<Omit<FillHandleChromeProps, \"slots\">[\"col\"]>,\n },\n firstRowIndex: {\n type: Number as PropType<\n Omit<FillHandleChromeProps, \"slots\">[\"firstRowIndex\"]\n >,\n },\n className: {\n type: String as PropType<\n Omit<FillHandleChromeProps, \"slots\">[\"className\"]\n >,\n },\n },\n }\n);\n","import type { StaticTableFeature } from \"@adapttable/vue\";\nimport {\n COLUMN_SELECT,\n extendFeature,\n FILL_HANDLE_CONTROL,\n slotRender,\n} from \"@adapttable/vue/adapter\";\nimport {\n cellNavigation as bindingCellNavigation,\n type CellNavigationOptions,\n columnSelectionCheckbox as bindingColumnSelectionCheckbox,\n} from \"@adapttable/vue/features\";\nimport { h } from \"vue\";\n\nimport { ElementColumnSelect } from \"./navigation/ElementColumnSelect\";\nimport { ElementFillHandle } from \"./navigation/ElementFillHandle\";\n\nexport function cellNavigation(\n options: CellNavigationOptions = {}\n): StaticTableFeature {\n return extendFeature(bindingCellNavigation(options), [\n slotRender(FILL_HANDLE_CONTROL, (props) => h(ElementFillHandle, props)),\n ]);\n}\nexport function columnSelectionCheckbox(): StaticTableFeature {\n return extendFeature(bindingColumnSelectionCheckbox(), [\n slotRender(COLUMN_SELECT, (props) => h(ElementColumnSelect, props)),\n ]);\n}\nexport type { CellEdit, GridCell } from \"@adapttable/vue\";\nexport type { CellRange } from \"@adapttable/vue/adapter\";\nexport type { CellNavigationOptions } from \"@adapttable/vue/features\";\n"],"mappings":";;;;;AAQA,MAAa,uBAAA,GAAsBA,IAAAA,gBAAAA,EAChC,iBAAA,GACCC,wBAAAA,2BAAAA,CAA2B;CACzB,GAAG;CACH,OAAO,EACL,WAAW,aAAA,GACTC,IAAAA,EAAAA,CAAEC,wBAAAA,WAAiB;EACjB,SAAS,QAAQ;EACjB,OAAO,QAAQ;EACf,UAAU,QAAQ;CACpB,CAAC,EACL;AACF,CAAC,GACH;CACE,MAAM;CACN,OAAO;EACL,OAAO,EACL,MAAM,OAGR;EACA,SAAS;GACP,MAAM;GAGN,SAAS,KAAA;EACX;EACA,UAAU,EACR,MAAM,SAGR;EACA,WAAW,EACT,MAAM,OAGR;CACF;AACF,CACF;;;;ACxCA,MAAa,qBAAA,GAAoBC,IAAAA,gBAAAA,EAC9B,iBAAA,GACCC,wBAAAA,iBAAAA,CAAiB;CACf,GAAG;CACH,OAAO,EACL,SAAS,aAAA,GACPC,IAAAA,EAAAA,CACE,QACA;EACE,wBAAwB;EACxB,OAAO;GAAE,UAAU;GAAY,SAAS;GAAS,QAAQ;EAAE;CAC7D,GACA,EAAA,GACEA,IAAAA,EAAAA,CACE,SAAA,GACAC,IAAAA,WAAAA,CAAW,QAAQ,aAAa;EAC9B,wBAAwB;EACxB,OAAO,QAAQ;EACf,eAAe;EACf,OAAO,QAAQ;EACf,OAAO;GACL,UAAU;GACV,gBAAgB;GAChB,QAAQ;GACR,OAAO;GACP,QAAQ;GACR,cAAc;GACd,YAAY;GACZ,QAAQ;EACV;CACF,CAAC,CACH,CACF,CACF,EACJ;AACF,CAAC,GACH;CACE,MAAM;CACN,OAAO;EACL,OAAO,EACL,MAAM,OACR;EACA,aAAa,EACX,MAAM,OAGR;EACA,KAAK,EACH,MAAM,OACR;EACA,eAAe,EACb,MAAM,OAGR;EACA,WAAW,EACT,MAAM,OAGR;CACF;AACF,CACF;;;ACpDA,SAAgB,eACd,UAAiC,CAAC,GACd;CACpB,QAAA,GAAOC,wBAAAA,cAAAA,EAAAA,GAAcC,yBAAAA,eAAAA,CAAsB,OAAO,GAAG,EAAA,GACnDC,wBAAAA,WAAAA,CAAWC,wBAAAA,sBAAsB,WAAA,GAAUC,IAAAA,EAAAA,CAAE,mBAAmB,KAAK,CAAC,CACxE,CAAC;AACH;AACA,SAAgB,0BAA8C;CAC5D,QAAA,GAAOJ,wBAAAA,cAAAA,EAAAA,GAAcK,yBAAAA,wBAAAA,CAA+B,GAAG,EAAA,GACrDH,wBAAAA,WAAAA,CAAWI,wBAAAA,gBAAgB,WAAA,GAAUF,IAAAA,EAAAA,CAAE,qBAAqB,KAAK,CAAC,CACpE,CAAC;AACH"}
1
+ {"version":3,"file":"cell-navigation-DJ-_1Mjr.cjs","names":["defineComponent","ColumnSelectCheckboxChrome","h","ElementCheckbox","defineComponent","FillHandleChrome","h","mergeProps","extendFeature","bindingCellNavigation","slotRender","FILL_HANDLE_CONTROL","h","bindingColumnSelectionCheckbox","COLUMN_SELECT"],"sources":["../src/navigation/ElementColumnSelect.ts","../src/navigation/ElementFillHandle.ts","../src/cell-navigation.ts"],"sourcesContent":["import {\n ColumnSelectCheckboxChrome,\n type ColumnSelectCheckboxChromeProps,\n} from \"@adapttable/vue/adapter\";\nimport { defineComponent, h, type PropType } from \"vue\";\n\nimport ElementCheckbox from \"../controls/ElementCheckbox.vue\";\n\nexport const ElementColumnSelect = defineComponent(\n (props: Omit<ColumnSelectCheckboxChromeProps, \"slots\">) => () =>\n ColumnSelectCheckboxChrome({\n ...props,\n slots: {\n Checkbox: (control) =>\n h(ElementCheckbox, {\n checked: control.checked,\n label: control.label,\n onChange: control.onToggle,\n }),\n },\n }),\n {\n name: \"ElementColumnSelect\",\n props: {\n label: {\n type: String as PropType<\n Omit<ColumnSelectCheckboxChromeProps, \"slots\">[\"label\"]\n >,\n },\n checked: {\n type: Boolean as PropType<\n Omit<ColumnSelectCheckboxChromeProps, \"slots\">[\"checked\"]\n >,\n default: undefined,\n },\n onToggle: {\n type: Function as PropType<\n Omit<ColumnSelectCheckboxChromeProps, \"slots\">[\"onToggle\"]\n >,\n },\n className: {\n type: String as PropType<\n Omit<ColumnSelectCheckboxChromeProps, \"slots\">[\"className\"]\n >,\n },\n },\n }\n);\n","import {\n FillHandleChrome,\n type FillHandleChromeProps,\n} from \"@adapttable/vue/adapter\";\nimport { defineComponent, h, mergeProps, type PropType } from \"vue\";\n\n/** Pointer affordance only; the binding supplies the accessible keyboard fill action. */\nexport const ElementFillHandle = defineComponent(\n (props: Omit<FillHandleChromeProps, \"slots\">) => () =>\n FillHandleChrome({\n ...props,\n slots: {\n Handle: (control) =>\n h(\n \"span\",\n {\n \"data-adapttable-part\": \"fill-handle-anchor\",\n style: { position: \"relative\", display: \"block\", height: 0 },\n },\n [\n h(\n \"span\",\n mergeProps(control.handleProps, {\n \"data-adapttable-part\": \"fill-handle\",\n title: control.label,\n \"aria-hidden\": \"true\",\n class: control.className,\n style: {\n position: \"absolute\",\n insetInlineEnd: \"-3px\",\n bottom: \"-3px\",\n width: \"8px\",\n height: \"8px\",\n borderRadius: \"var(--el-border-radius-small)\",\n background: \"var(--el-color-primary)\",\n cursor: \"crosshair\",\n },\n })\n ),\n ]\n ),\n },\n }),\n {\n name: \"ElementFillHandle\",\n props: {\n focus: {\n type: Object as PropType<Omit<FillHandleChromeProps, \"slots\">[\"focus\"]>,\n },\n windowIndex: {\n type: Number as PropType<\n Omit<FillHandleChromeProps, \"slots\">[\"windowIndex\"]\n >,\n },\n col: {\n type: Number as PropType<Omit<FillHandleChromeProps, \"slots\">[\"col\"]>,\n },\n firstRowIndex: {\n type: Number as PropType<\n Omit<FillHandleChromeProps, \"slots\">[\"firstRowIndex\"]\n >,\n },\n className: {\n type: String as PropType<\n Omit<FillHandleChromeProps, \"slots\">[\"className\"]\n >,\n },\n },\n }\n);\n","import type { StaticTableFeature } from \"@adapttable/vue\";\nimport {\n COLUMN_SELECT,\n extendFeature,\n FILL_HANDLE_CONTROL,\n slotRender,\n} from \"@adapttable/vue/adapter\";\nimport {\n cellNavigation as bindingCellNavigation,\n type CellNavigationOptions,\n columnSelectionCheckbox as bindingColumnSelectionCheckbox,\n} from \"@adapttable/vue/features\";\nimport { h } from \"vue\";\n\nimport { ElementColumnSelect } from \"./navigation/ElementColumnSelect\";\nimport { ElementFillHandle } from \"./navigation/ElementFillHandle\";\n\nexport function cellNavigation(\n options: CellNavigationOptions = {}\n): StaticTableFeature {\n return extendFeature(bindingCellNavigation(options), [\n slotRender(FILL_HANDLE_CONTROL, (props) => h(ElementFillHandle, props)),\n ]);\n}\nexport function columnSelectionCheckbox(): StaticTableFeature {\n return extendFeature(bindingColumnSelectionCheckbox(), [\n slotRender(COLUMN_SELECT, (props) => h(ElementColumnSelect, props)),\n ]);\n}\nexport type { CellEdit, GridCell } from \"@adapttable/vue\";\nexport type { CellRange } from \"@adapttable/vue/adapter\";\nexport type { CellNavigationOptions } from \"@adapttable/vue/features\";\n"],"mappings":";;;;;AAQA,MAAa,uBAAA,GAAsBA,IAAAA,gBAAAA,EAChC,iBAAA,GACCC,wBAAAA,2BAAAA,CAA2B;CACzB,GAAG;CACH,OAAO,EACL,WAAW,aAAA,GACTC,IAAAA,EAAAA,CAAEC,wBAAAA,WAAiB;EACjB,SAAS,QAAQ;EACjB,OAAO,QAAQ;EACf,UAAU,QAAQ;CACpB,CAAC,EACL;AACF,CAAC,GACH;CACE,MAAM;CACN,OAAO;EACL,OAAO,EACL,MAAM,OAGR;EACA,SAAS;GACP,MAAM;GAGN,SAAS,KAAA;EACX;EACA,UAAU,EACR,MAAM,SAGR;EACA,WAAW,EACT,MAAM,OAGR;CACF;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main } from "./ElementCheckbox-BQN4_eas.js";
1
+ import { t as _sfc_main } from "./ElementCheckbox-DobrxadY.js";
2
2
  import { defineComponent, h, mergeProps } from "vue";
3
3
  import { COLUMN_SELECT, ColumnSelectCheckboxChrome, FILL_HANDLE_CONTROL, FillHandleChrome, extendFeature, slotRender } from "@adapttable/vue/adapter";
4
4
  import { cellNavigation, columnSelectionCheckbox } from "@adapttable/vue/features";
@@ -71,4 +71,4 @@ function columnSelectionCheckbox$1() {
71
71
  //#endregion
72
72
  export { columnSelectionCheckbox$1 as n, cellNavigation$1 as t };
73
73
 
74
- //# sourceMappingURL=cell-navigation-THnr6YdK.js.map
74
+ //# sourceMappingURL=cell-navigation-arDY86xD.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cell-navigation-THnr6YdK.js","names":["ElementCheckbox","cellNavigation","bindingCellNavigation","columnSelectionCheckbox","bindingColumnSelectionCheckbox"],"sources":["../src/navigation/ElementColumnSelect.ts","../src/navigation/ElementFillHandle.ts","../src/cell-navigation.ts"],"sourcesContent":["import {\n ColumnSelectCheckboxChrome,\n type ColumnSelectCheckboxChromeProps,\n} from \"@adapttable/vue/adapter\";\nimport { defineComponent, h, type PropType } from \"vue\";\n\nimport ElementCheckbox from \"../controls/ElementCheckbox.vue\";\n\nexport const ElementColumnSelect = defineComponent(\n (props: Omit<ColumnSelectCheckboxChromeProps, \"slots\">) => () =>\n ColumnSelectCheckboxChrome({\n ...props,\n slots: {\n Checkbox: (control) =>\n h(ElementCheckbox, {\n checked: control.checked,\n label: control.label,\n onChange: control.onToggle,\n }),\n },\n }),\n {\n name: \"ElementColumnSelect\",\n props: {\n label: {\n type: String as PropType<\n Omit<ColumnSelectCheckboxChromeProps, \"slots\">[\"label\"]\n >,\n },\n checked: {\n type: Boolean as PropType<\n Omit<ColumnSelectCheckboxChromeProps, \"slots\">[\"checked\"]\n >,\n default: undefined,\n },\n onToggle: {\n type: Function as PropType<\n Omit<ColumnSelectCheckboxChromeProps, \"slots\">[\"onToggle\"]\n >,\n },\n className: {\n type: String as PropType<\n Omit<ColumnSelectCheckboxChromeProps, \"slots\">[\"className\"]\n >,\n },\n },\n }\n);\n","import {\n FillHandleChrome,\n type FillHandleChromeProps,\n} from \"@adapttable/vue/adapter\";\nimport { defineComponent, h, mergeProps, type PropType } from \"vue\";\n\n/** Pointer affordance only; the binding supplies the accessible keyboard fill action. */\nexport const ElementFillHandle = defineComponent(\n (props: Omit<FillHandleChromeProps, \"slots\">) => () =>\n FillHandleChrome({\n ...props,\n slots: {\n Handle: (control) =>\n h(\n \"span\",\n {\n \"data-adapttable-part\": \"fill-handle-anchor\",\n style: { position: \"relative\", display: \"block\", height: 0 },\n },\n [\n h(\n \"span\",\n mergeProps(control.handleProps, {\n \"data-adapttable-part\": \"fill-handle\",\n title: control.label,\n \"aria-hidden\": \"true\",\n class: control.className,\n style: {\n position: \"absolute\",\n insetInlineEnd: \"-3px\",\n bottom: \"-3px\",\n width: \"8px\",\n height: \"8px\",\n borderRadius: \"var(--el-border-radius-small)\",\n background: \"var(--el-color-primary)\",\n cursor: \"crosshair\",\n },\n })\n ),\n ]\n ),\n },\n }),\n {\n name: \"ElementFillHandle\",\n props: {\n focus: {\n type: Object as PropType<Omit<FillHandleChromeProps, \"slots\">[\"focus\"]>,\n },\n windowIndex: {\n type: Number as PropType<\n Omit<FillHandleChromeProps, \"slots\">[\"windowIndex\"]\n >,\n },\n col: {\n type: Number as PropType<Omit<FillHandleChromeProps, \"slots\">[\"col\"]>,\n },\n firstRowIndex: {\n type: Number as PropType<\n Omit<FillHandleChromeProps, \"slots\">[\"firstRowIndex\"]\n >,\n },\n className: {\n type: String as PropType<\n Omit<FillHandleChromeProps, \"slots\">[\"className\"]\n >,\n },\n },\n }\n);\n","import type { StaticTableFeature } from \"@adapttable/vue\";\nimport {\n COLUMN_SELECT,\n extendFeature,\n FILL_HANDLE_CONTROL,\n slotRender,\n} from \"@adapttable/vue/adapter\";\nimport {\n cellNavigation as bindingCellNavigation,\n type CellNavigationOptions,\n columnSelectionCheckbox as bindingColumnSelectionCheckbox,\n} from \"@adapttable/vue/features\";\nimport { h } from \"vue\";\n\nimport { ElementColumnSelect } from \"./navigation/ElementColumnSelect\";\nimport { ElementFillHandle } from \"./navigation/ElementFillHandle\";\n\nexport function cellNavigation(\n options: CellNavigationOptions = {}\n): StaticTableFeature {\n return extendFeature(bindingCellNavigation(options), [\n slotRender(FILL_HANDLE_CONTROL, (props) => h(ElementFillHandle, props)),\n ]);\n}\nexport function columnSelectionCheckbox(): StaticTableFeature {\n return extendFeature(bindingColumnSelectionCheckbox(), [\n slotRender(COLUMN_SELECT, (props) => h(ElementColumnSelect, props)),\n ]);\n}\nexport type { CellEdit, GridCell } from \"@adapttable/vue\";\nexport type { CellRange } from \"@adapttable/vue/adapter\";\nexport type { CellNavigationOptions } from \"@adapttable/vue/features\";\n"],"mappings":";;;;;AAQA,MAAa,sBAAsB,iBAChC,gBACC,2BAA2B;CACzB,GAAG;CACH,OAAO,EACL,WAAW,YACT,EAAEA,WAAiB;EACjB,SAAS,QAAQ;EACjB,OAAO,QAAQ;EACf,UAAU,QAAQ;CACpB,CAAC,EACL;AACF,CAAC,GACH;CACE,MAAM;CACN,OAAO;EACL,OAAO,EACL,MAAM,OAGR;EACA,SAAS;GACP,MAAM;GAGN,SAAS,KAAA;EACX;EACA,UAAU,EACR,MAAM,SAGR;EACA,WAAW,EACT,MAAM,OAGR;CACF;AACF,CACF;;;;ACxCA,MAAa,oBAAoB,iBAC9B,gBACC,iBAAiB;CACf,GAAG;CACH,OAAO,EACL,SAAS,YACP,EACE,QACA;EACE,wBAAwB;EACxB,OAAO;GAAE,UAAU;GAAY,SAAS;GAAS,QAAQ;EAAE;CAC7D,GACA,CACE,EACE,QACA,WAAW,QAAQ,aAAa;EAC9B,wBAAwB;EACxB,OAAO,QAAQ;EACf,eAAe;EACf,OAAO,QAAQ;EACf,OAAO;GACL,UAAU;GACV,gBAAgB;GAChB,QAAQ;GACR,OAAO;GACP,QAAQ;GACR,cAAc;GACd,YAAY;GACZ,QAAQ;EACV;CACF,CAAC,CACH,CACF,CACF,EACJ;AACF,CAAC,GACH;CACE,MAAM;CACN,OAAO;EACL,OAAO,EACL,MAAM,OACR;EACA,aAAa,EACX,MAAM,OAGR;EACA,KAAK,EACH,MAAM,OACR;EACA,eAAe,EACb,MAAM,OAGR;EACA,WAAW,EACT,MAAM,OAGR;CACF;AACF,CACF;;;ACpDA,SAAgBC,iBACd,UAAiC,CAAC,GACd;CACpB,OAAO,cAAcC,eAAsB,OAAO,GAAG,CACnD,WAAW,sBAAsB,UAAU,EAAE,mBAAmB,KAAK,CAAC,CACxE,CAAC;AACH;AACA,SAAgBC,4BAA8C;CAC5D,OAAO,cAAcC,wBAA+B,GAAG,CACrD,WAAW,gBAAgB,UAAU,EAAE,qBAAqB,KAAK,CAAC,CACpE,CAAC;AACH"}
1
+ {"version":3,"file":"cell-navigation-arDY86xD.js","names":["ElementCheckbox","cellNavigation","bindingCellNavigation","columnSelectionCheckbox","bindingColumnSelectionCheckbox"],"sources":["../src/navigation/ElementColumnSelect.ts","../src/navigation/ElementFillHandle.ts","../src/cell-navigation.ts"],"sourcesContent":["import {\n ColumnSelectCheckboxChrome,\n type ColumnSelectCheckboxChromeProps,\n} from \"@adapttable/vue/adapter\";\nimport { defineComponent, h, type PropType } from \"vue\";\n\nimport ElementCheckbox from \"../controls/ElementCheckbox.vue\";\n\nexport const ElementColumnSelect = defineComponent(\n (props: Omit<ColumnSelectCheckboxChromeProps, \"slots\">) => () =>\n ColumnSelectCheckboxChrome({\n ...props,\n slots: {\n Checkbox: (control) =>\n h(ElementCheckbox, {\n checked: control.checked,\n label: control.label,\n onChange: control.onToggle,\n }),\n },\n }),\n {\n name: \"ElementColumnSelect\",\n props: {\n label: {\n type: String as PropType<\n Omit<ColumnSelectCheckboxChromeProps, \"slots\">[\"label\"]\n >,\n },\n checked: {\n type: Boolean as PropType<\n Omit<ColumnSelectCheckboxChromeProps, \"slots\">[\"checked\"]\n >,\n default: undefined,\n },\n onToggle: {\n type: Function as PropType<\n Omit<ColumnSelectCheckboxChromeProps, \"slots\">[\"onToggle\"]\n >,\n },\n className: {\n type: String as PropType<\n Omit<ColumnSelectCheckboxChromeProps, \"slots\">[\"className\"]\n >,\n },\n },\n }\n);\n","import {\n FillHandleChrome,\n type FillHandleChromeProps,\n} from \"@adapttable/vue/adapter\";\nimport { defineComponent, h, mergeProps, type PropType } from \"vue\";\n\n/** Pointer affordance only; the binding supplies the accessible keyboard fill action. */\nexport const ElementFillHandle = defineComponent(\n (props: Omit<FillHandleChromeProps, \"slots\">) => () =>\n FillHandleChrome({\n ...props,\n slots: {\n Handle: (control) =>\n h(\n \"span\",\n {\n \"data-adapttable-part\": \"fill-handle-anchor\",\n style: { position: \"relative\", display: \"block\", height: 0 },\n },\n [\n h(\n \"span\",\n mergeProps(control.handleProps, {\n \"data-adapttable-part\": \"fill-handle\",\n title: control.label,\n \"aria-hidden\": \"true\",\n class: control.className,\n style: {\n position: \"absolute\",\n insetInlineEnd: \"-3px\",\n bottom: \"-3px\",\n width: \"8px\",\n height: \"8px\",\n borderRadius: \"var(--el-border-radius-small)\",\n background: \"var(--el-color-primary)\",\n cursor: \"crosshair\",\n },\n })\n ),\n ]\n ),\n },\n }),\n {\n name: \"ElementFillHandle\",\n props: {\n focus: {\n type: Object as PropType<Omit<FillHandleChromeProps, \"slots\">[\"focus\"]>,\n },\n windowIndex: {\n type: Number as PropType<\n Omit<FillHandleChromeProps, \"slots\">[\"windowIndex\"]\n >,\n },\n col: {\n type: Number as PropType<Omit<FillHandleChromeProps, \"slots\">[\"col\"]>,\n },\n firstRowIndex: {\n type: Number as PropType<\n Omit<FillHandleChromeProps, \"slots\">[\"firstRowIndex\"]\n >,\n },\n className: {\n type: String as PropType<\n Omit<FillHandleChromeProps, \"slots\">[\"className\"]\n >,\n },\n },\n }\n);\n","import type { StaticTableFeature } from \"@adapttable/vue\";\nimport {\n COLUMN_SELECT,\n extendFeature,\n FILL_HANDLE_CONTROL,\n slotRender,\n} from \"@adapttable/vue/adapter\";\nimport {\n cellNavigation as bindingCellNavigation,\n type CellNavigationOptions,\n columnSelectionCheckbox as bindingColumnSelectionCheckbox,\n} from \"@adapttable/vue/features\";\nimport { h } from \"vue\";\n\nimport { ElementColumnSelect } from \"./navigation/ElementColumnSelect\";\nimport { ElementFillHandle } from \"./navigation/ElementFillHandle\";\n\nexport function cellNavigation(\n options: CellNavigationOptions = {}\n): StaticTableFeature {\n return extendFeature(bindingCellNavigation(options), [\n slotRender(FILL_HANDLE_CONTROL, (props) => h(ElementFillHandle, props)),\n ]);\n}\nexport function columnSelectionCheckbox(): StaticTableFeature {\n return extendFeature(bindingColumnSelectionCheckbox(), [\n slotRender(COLUMN_SELECT, (props) => h(ElementColumnSelect, props)),\n ]);\n}\nexport type { CellEdit, GridCell } from \"@adapttable/vue\";\nexport type { CellRange } from \"@adapttable/vue/adapter\";\nexport type { CellNavigationOptions } from \"@adapttable/vue/features\";\n"],"mappings":";;;;;AAQA,MAAa,sBAAsB,iBAChC,gBACC,2BAA2B;CACzB,GAAG;CACH,OAAO,EACL,WAAW,YACT,EAAEA,WAAiB;EACjB,SAAS,QAAQ;EACjB,OAAO,QAAQ;EACf,UAAU,QAAQ;CACpB,CAAC,EACL;AACF,CAAC,GACH;CACE,MAAM;CACN,OAAO;EACL,OAAO,EACL,MAAM,OAGR;EACA,SAAS;GACP,MAAM;GAGN,SAAS,KAAA;EACX;EACA,UAAU,EACR,MAAM,SAGR;EACA,WAAW,EACT,MAAM,OAGR;CACF;AACF,CACF;;;;ACxCA,MAAa,oBAAoB,iBAC9B,gBACC,iBAAiB;CACf,GAAG;CACH,OAAO,EACL,SAAS,YACP,EACE,QACA;EACE,wBAAwB;EACxB,OAAO;GAAE,UAAU;GAAY,SAAS;GAAS,QAAQ;EAAE;CAC7D,GACA,CACE,EACE,QACA,WAAW,QAAQ,aAAa;EAC9B,wBAAwB;EACxB,OAAO,QAAQ;EACf,eAAe;EACf,OAAO,QAAQ;EACf,OAAO;GACL,UAAU;GACV,gBAAgB;GAChB,QAAQ;GACR,OAAO;GACP,QAAQ;GACR,cAAc;GACd,YAAY;GACZ,QAAQ;EACV;CACF,CAAC,CACH,CACF,CACF,EACJ;AACF,CAAC,GACH;CACE,MAAM;CACN,OAAO;EACL,OAAO,EACL,MAAM,OACR;EACA,aAAa,EACX,MAAM,OAGR;EACA,KAAK,EACH,MAAM,OACR;EACA,eAAe,EACb,MAAM,OAGR;EACA,WAAW,EACT,MAAM,OAGR;CACF;AACF,CACF;;;ACpDA,SAAgBC,iBACd,UAAiC,CAAC,GACd;CACpB,OAAO,cAAcC,eAAsB,OAAO,GAAG,CACnD,WAAW,sBAAsB,UAAU,EAAE,mBAAmB,KAAK,CAAC,CACxE,CAAC;AACH;AACA,SAAgBC,4BAA8C;CAC5D,OAAO,cAAcC,wBAA+B,GAAG,CACrD,WAAW,gBAAgB,UAAU,EAAE,qBAAqB,KAAK,CAAC,CACpE,CAAC;AACH"}
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_cell_navigation = require("./cell-navigation-BXE28fwQ.cjs");
2
+ const require_cell_navigation = require("./cell-navigation-DJ-_1Mjr.cjs");
3
3
  exports.cellNavigation = require_cell_navigation.cellNavigation;
4
4
  exports.columnSelectionCheckbox = require_cell_navigation.columnSelectionCheckbox;
@@ -1,2 +1,2 @@
1
- import { n as columnSelectionCheckbox, t as cellNavigation } from "./cell-navigation-THnr6YdK.js";
1
+ import { n as columnSelectionCheckbox, t as cellNavigation } from "./cell-navigation-arDY86xD.js";
2
2
  export { cellNavigation, columnSelectionCheckbox };
@@ -1,5 +1,5 @@
1
1
  const require_button = require("./button-BFjBL9m3.cjs");
2
- const require_ElementCheckbox = require("./ElementCheckbox-BewKx6sv.cjs");
2
+ const require_ElementCheckbox = require("./ElementCheckbox-BXSH2jHY.cjs");
3
3
  let vue = require("vue");
4
4
  let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
5
5
  //#region src/controls/checkbox.ts
@@ -23,4 +23,4 @@ Object.defineProperty(exports, "elementSelectionCheckbox", {
23
23
  }
24
24
  });
25
25
 
26
- //# sourceMappingURL=checkbox-DhUYYwWe.cjs.map
26
+ //# sourceMappingURL=checkbox-BF19iMgI.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox-DhUYYwWe.cjs","names":["selectionCheckboxInputAttrs","h","ElementCheckbox","isElementRef"],"sources":["../src/controls/checkbox.ts"],"sourcesContent":["import {\n type SelectionCheckboxControl,\n selectionCheckboxInputAttrs,\n} from \"@adapttable/vue/adapter\";\nimport { h, type VNode } from \"vue\";\n\nimport ElementCheckbox from \"./ElementCheckbox.vue\";\nimport { isElementRef } from \"./ref\";\n\n/** Parts/classes belong to ElCheckbox's label host; focus belongs to its input. */\nexport function elementSelectionCheckbox(\n control: SelectionCheckboxControl\n): VNode {\n const {\n ref,\n \"aria-label\": label,\n ...attrs\n } = selectionCheckboxInputAttrs(control.attrs);\n return h(ElementCheckbox, {\n ...attrs,\n label: typeof label === \"string\" ? label : \"\",\n checked: control.checked,\n indeterminate: control.indeterminate,\n inputRef: isElementRef(ref) ? ref : undefined,\n onChange: control.onToggle,\n });\n}\n"],"mappings":";;;;;;AAUA,SAAgB,yBACd,SACO;CACP,MAAM,EACJ,KACA,cAAc,OACd,GAAG,WAAA,GACDA,wBAAAA,4BAAAA,CAA4B,QAAQ,KAAK;CAC7C,QAAA,GAAOC,IAAAA,EAAAA,CAAEC,wBAAAA,WAAiB;EACxB,GAAG;EACH,OAAO,OAAO,UAAU,WAAW,QAAQ;EAC3C,SAAS,QAAQ;EACjB,eAAe,QAAQ;EACvB,UAAUC,eAAAA,aAAa,GAAG,IAAI,MAAM,KAAA;EACpC,UAAU,QAAQ;CACpB,CAAC;AACH"}
1
+ {"version":3,"file":"checkbox-BF19iMgI.cjs","names":["selectionCheckboxInputAttrs","h","ElementCheckbox","isElementRef"],"sources":["../src/controls/checkbox.ts"],"sourcesContent":["import {\n type SelectionCheckboxControl,\n selectionCheckboxInputAttrs,\n} from \"@adapttable/vue/adapter\";\nimport { h, type VNode } from \"vue\";\n\nimport ElementCheckbox from \"./ElementCheckbox.vue\";\nimport { isElementRef } from \"./ref\";\n\n/** Parts/classes belong to ElCheckbox's label host; focus belongs to its input. */\nexport function elementSelectionCheckbox(\n control: SelectionCheckboxControl\n): VNode {\n const {\n ref,\n \"aria-label\": label,\n ...attrs\n } = selectionCheckboxInputAttrs(control.attrs);\n return h(ElementCheckbox, {\n ...attrs,\n label: typeof label === \"string\" ? label : \"\",\n checked: control.checked,\n indeterminate: control.indeterminate,\n inputRef: isElementRef(ref) ? ref : undefined,\n onChange: control.onToggle,\n });\n}\n"],"mappings":";;;;;;AAUA,SAAgB,yBACd,SACO;CACP,MAAM,EACJ,KACA,cAAc,OACd,GAAG,WAAA,GACDA,wBAAAA,4BAAAA,CAA4B,QAAQ,KAAK;CAC7C,QAAA,GAAOC,IAAAA,EAAAA,CAAEC,wBAAAA,WAAiB;EACxB,GAAG;EACH,OAAO,OAAO,UAAU,WAAW,QAAQ;EAC3C,SAAS,QAAQ;EACjB,eAAe,QAAQ;EACvB,UAAUC,eAAAA,aAAa,GAAG,IAAI,MAAM,KAAA;EACpC,UAAU,QAAQ;CACpB,CAAC;AACH"}
@@ -1,9 +1,9 @@
1
1
  import { n as isElementRef, t as elementButton } from "./button-DwB4UxI2.js";
2
- import { t as _sfc_main } from "./ElementInput-BsoAvPfO.js";
3
- import { t as _sfc_main$1 } from "./ElementSelect-BtmVMA7B.js";
4
- import { n as columnMenuContainer, t as ElementColumnMenuPanel } from "./ElementColumnMenuPanel-D9oWJf02.js";
2
+ import { t as _sfc_main } from "./ElementInput-Cn9hpa9j.js";
3
+ import { t as _sfc_main$1 } from "./ElementSelect-BxFmnPpv.js";
4
+ import { n as columnMenuContainer, t as ElementColumnMenuPanel } from "./ElementColumnMenuPanel-CPW4wU3M.js";
5
5
  import { createVNode, defineComponent, h, inject } from "vue";
6
- import { COLUMN_HEADER_RENAME, COLUMN_MENU, ColumnHeaderRenameChrome, ColumnMenuChrome, extendFeature, managedOverlayPanel, slotRender, useColumnMenu } from "@adapttable/vue/adapter";
6
+ import { COLUMN_HEADER_RENAME, COLUMN_MENU, ColumnHeaderRenameChrome, ColumnMenuChrome, extendFeature, managedOverlayPanel, slotRender, useColumnMenu, withProps } from "@adapttable/vue/adapter";
7
7
  import { columnMenu } from "@adapttable/vue/features";
8
8
  //#region src/columns/ElementColumnChoice.ts
9
9
  function isKeyboardHandler(value) {
@@ -94,13 +94,12 @@ const ElementColumnMenuPresentation = defineComponent((props) => {
94
94
  name: "ElementColumnMenuPresentation",
95
95
  props: menuProps
96
96
  });
97
- function ColumnMenu(props, context) {
97
+ const ColumnMenu = /* @__PURE__ */ withProps(function ColumnMenu(props, context) {
98
98
  return createVNode(ElementColumnMenuPresentation, {
99
99
  ...context.attrs,
100
100
  ...props
101
101
  });
102
- }
103
- ColumnMenu.props = menuProps;
102
+ }, menuProps);
104
103
  //#endregion
105
104
  //#region src/column-menu.ts
106
105
  function columnMenu$1() {
@@ -112,4 +111,4 @@ function columnMenu$1() {
112
111
  //#endregion
113
112
  export { ColumnMenu as n, columnMenu$1 as t };
114
113
 
115
- //# sourceMappingURL=column-menu-Dna4oiPc.js.map
114
+ //# sourceMappingURL=column-menu-BUxMPyJI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"column-menu-BUxMPyJI.js","names":["ElementSelect","ElementInput","columnMenu","bindingColumnMenu"],"sources":["../src/columns/ElementColumnChoice.ts","../src/columns/elementColumnMenuControls.ts","../src/columns/ColumnMenu.ts","../src/column-menu.ts"],"sourcesContent":["import type { ColumnMenuSlots } from \"@adapttable/vue/adapter\";\nimport { defineComponent, h, inject, type PropType } from \"vue\";\n\nimport ElementSelect from \"../controls/ElementSelect.vue\";\nimport { columnMenuContainer } from \"./panelContext\";\n\ntype ChoiceControl = Parameters<ColumnMenuSlots[\"Choice\"]>[0];\nfunction isKeyboardHandler(\n value: unknown\n): value is (event: KeyboardEvent) => void {\n return typeof value === \"function\";\n}\nexport const ElementColumnChoice = defineComponent(\n (props: { readonly control: ChoiceControl }) => {\n const container = inject(columnMenuContainer, undefined);\n const escape = (event: KeyboardEvent) => {\n const target = event.target;\n if (\n event.key === \"Escape\" &&\n !event.defaultPrevented &&\n !event.isComposing &&\n target instanceof Element &&\n target.getAttribute(\"role\") === \"combobox\" &&\n target.getAttribute(\"aria-expanded\") === \"false\"\n ) {\n const handler = props.control.attrs.onKeydown;\n if (isKeyboardHandler(handler)) handler(event);\n }\n };\n return () =>\n h(ElementSelect, {\n ...props.control.attrs,\n value: props.control.value,\n options: props.control.options,\n teleported: container?.value != null,\n appendTo: container?.value ?? undefined,\n onChange: props.control.onChange,\n onKeydownCapture: escape,\n });\n },\n {\n name: \"ElementColumnChoice\",\n props: {\n control: { type: Object as PropType<ChoiceControl> },\n },\n }\n);\n","import {\n type ColumnMenuButtonProps,\n type ColumnMenuSlots,\n managedOverlayPanel,\n} from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport ElementInput from \"../controls/ElementInput.vue\";\nimport { isElementRef } from \"../controls/ref\";\nimport { ElementColumnChoice } from \"./ElementColumnChoice\";\nimport { ElementColumnMenuPanel } from \"./ElementColumnMenuPanel\";\n\nfunction button(control: ColumnMenuButtonProps) {\n const icons = {\n grip: \"⠿\",\n visible: \"◉\",\n hidden: \"○\",\n pin: \"⌖\",\n more: \"⋯\",\n rename: \"✎\",\n };\n return elementButton(\n { \"aria-label\": control.label, ...control.attrs },\n control.icon\n ? h(\"span\", { \"aria-hidden\": \"true\" }, icons[control.icon])\n : control.label\n );\n}\nexport const elementColumnMenuSlots: ColumnMenuSlots = {\n Trigger: button,\n Button: button,\n Input: ({ attrs, value, onChange }) => {\n const nativeAttrs = Object.fromEntries(\n Object.entries(attrs).filter(([key]) => key !== \"ref\" && key !== \"type\")\n );\n return h(ElementInput, {\n ...nativeAttrs,\n value,\n type: attrs.type === \"search\" ? \"search\" : \"text\",\n inputRef: isElementRef(attrs.ref) ? attrs.ref : undefined,\n onChange,\n });\n },\n Choice: (control) => h(ElementColumnChoice, { control }),\n Panel: managedOverlayPanel((control) =>\n h(ElementColumnMenuPanel, { control })\n ),\n};\n","import {\n ColumnMenuChrome,\n type ColumnMenuSlotProps,\n useColumnMenu,\n withProps,\n} from \"@adapttable/vue/adapter\";\nimport { createVNode, defineComponent, h, type SetupContext } from \"vue\";\n\nimport { elementColumnMenuSlots } from \"./elementColumnMenuControls\";\n\nconst menuProps = {\n allColumns: null,\n layout: null,\n labels: null,\n hasRowActions: Boolean,\n hasRowReorder: Boolean,\n onAutoSize: null,\n onAutoSizeColumn: null,\n onSortColumn: null,\n onFilterColumn: null,\n onRenameColumn: null,\n sortBy: null,\n sortDir: null,\n dir: null,\n groupingPanel: null,\n featureHost: null,\n classNames: null,\n container: null,\n} satisfies Record<keyof ColumnMenuSlotProps<unknown>, unknown>;\nconst ElementColumnMenuPresentation = defineComponent(\n (props: ColumnMenuSlotProps<unknown>) => {\n const model = useColumnMenu(() => props);\n return () => h(ColumnMenuChrome, { model, slots: elementColumnMenuSlots });\n },\n { name: \"ElementColumnMenuPresentation\", props: menuProps }\n);\nexport const ColumnMenu = /* @__PURE__ */ withProps(function ColumnMenu<TRow>(\n props: ColumnMenuSlotProps<TRow>,\n context: Pick<SetupContext, \"attrs\">\n) {\n return createVNode(ElementColumnMenuPresentation, {\n ...context.attrs,\n ...props,\n });\n}, menuProps);\n","import type { StaticTableFeature } from \"@adapttable/vue\";\nimport {\n COLUMN_HEADER_RENAME,\n COLUMN_MENU,\n ColumnHeaderRenameChrome,\n extendFeature,\n slotRender,\n} from \"@adapttable/vue/adapter\";\nimport { columnMenu as bindingColumnMenu } from \"@adapttable/vue/features\";\nimport { h } from \"vue\";\n\nimport { ColumnMenu } from \"./columns/ColumnMenu\";\nimport { elementColumnMenuSlots } from \"./columns/elementColumnMenuControls\";\n\nexport function columnMenu(): StaticTableFeature {\n return extendFeature(bindingColumnMenu(), [\n slotRender(COLUMN_MENU, (props) => h(ColumnMenu<never>, { ...props })),\n slotRender(COLUMN_HEADER_RENAME, (props) =>\n h(ColumnHeaderRenameChrome, { ...props, slots: elementColumnMenuSlots })\n ),\n ]);\n}\nexport { ColumnMenu } from \"./columns/ColumnMenu\";\nexport type { ColumnMenuSlotProps } from \"@adapttable/vue/adapter\";\n"],"mappings":";;;;;;;;AAOA,SAAS,kBACP,OACyC;CACzC,OAAO,OAAO,UAAU;AAC1B;AACA,MAAa,sBAAsB,iBAChC,UAA+C;CAC9C,MAAM,YAAY,OAAO,qBAAqB,KAAA,CAAS;CACvD,MAAM,UAAU,UAAyB;EACvC,MAAM,SAAS,MAAM;EACrB,IACE,MAAM,QAAQ,YACd,CAAC,MAAM,oBACP,CAAC,MAAM,eACP,kBAAkB,WAClB,OAAO,aAAa,MAAM,MAAM,cAChC,OAAO,aAAa,eAAe,MAAM,SACzC;GACA,MAAM,UAAU,MAAM,QAAQ,MAAM;GACpC,IAAI,kBAAkB,OAAO,GAAG,QAAQ,KAAK;EAC/C;CACF;CACA,aACE,EAAEA,aAAe;EACf,GAAG,MAAM,QAAQ;EACjB,OAAO,MAAM,QAAQ;EACrB,SAAS,MAAM,QAAQ;EACvB,YAAY,WAAW,SAAS;EAChC,UAAU,WAAW,SAAS,KAAA;EAC9B,UAAU,MAAM,QAAQ;EACxB,kBAAkB;CACpB,CAAC;AACL,GACA;CACE,MAAM;CACN,OAAO,EACL,SAAS,EAAE,MAAM,OAAkC,EACrD;AACF,CACF;;;ACjCA,SAAS,OAAO,SAAgC;CAC9C,MAAM,QAAQ;EACZ,MAAM;EACN,SAAS;EACT,QAAQ;EACR,KAAK;EACL,MAAM;EACN,QAAQ;CACV;CACA,OAAO,cACL;EAAE,cAAc,QAAQ;EAAO,GAAG,QAAQ;CAAM,GAChD,QAAQ,OACJ,EAAE,QAAQ,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BAA0B;EAAE,GAAG;EAAO,OAAO;CAAuB,CAAC,CACzE,CACF,CAAC;AACH"}
@@ -2,11 +2,10 @@ import { SetupContext } from "vue";
2
2
  import { ColumnMenuSlotProps, ColumnMenuSlotProps as ColumnMenuSlotProps$1 } from "@adapttable/vue/adapter";
3
3
  import { StaticTableFeature } from "@adapttable/vue";
4
4
  //#region src/columns/ColumnMenu.d.ts
5
- declare function ColumnMenu<TRow>(props: ColumnMenuSlotProps<TRow>, context: Pick<SetupContext, "attrs">): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
5
+ declare const ColumnMenu: (<TRow>(props: ColumnMenuSlotProps<TRow>, context: Pick<SetupContext, "attrs">) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
6
6
  [key: string]: any;
7
- }>;
8
- declare namespace ColumnMenu {
9
- var props: {
7
+ }>) & {
8
+ props: {
10
9
  allColumns: null;
11
10
  layout: null;
12
11
  labels: null;
@@ -25,10 +24,10 @@ declare namespace ColumnMenu {
25
24
  classNames: null;
26
25
  container: null;
27
26
  };
28
- }
27
+ };
29
28
  //#endregion
30
29
  //#region src/column-menu.d.ts
31
30
  declare function columnMenu(): StaticTableFeature;
32
31
  //#endregion
33
32
  export { columnMenu as n, ColumnMenu as r, ColumnMenuSlotProps$1 as t };
34
- //# sourceMappingURL=column-menu-C0YWdhRz.d.ts.map
33
+ //# sourceMappingURL=column-menu-CAkx6AjR.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"column-menu-CAkx6AjR.d.ts","names":[],"sources":["../src/columns/ColumnMenu.ts","../src/column-menu.ts"],"mappings":";;;;cAoCa,cAA2D,MAAI,OACnE,oBAAoB,OAAK,SACvB,KAAK,yCAAsB,oBAAA,4BAAA;;;;;;;;;;;;;;;;;;;;;;;;;iBCxBtB,cAAc"}
@@ -2,11 +2,10 @@ import { StaticTableFeature } from "@adapttable/vue";
2
2
  import { ColumnMenuSlotProps, ColumnMenuSlotProps as ColumnMenuSlotProps$1 } from "@adapttable/vue/adapter";
3
3
  import { SetupContext } from "vue";
4
4
  //#region src/columns/ColumnMenu.d.ts
5
- declare function ColumnMenu<TRow>(props: ColumnMenuSlotProps<TRow>, context: Pick<SetupContext, "attrs">): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
5
+ declare const ColumnMenu: (<TRow>(props: ColumnMenuSlotProps<TRow>, context: Pick<SetupContext, "attrs">) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
6
6
  [key: string]: any;
7
- }>;
8
- declare namespace ColumnMenu {
9
- var props: {
7
+ }>) & {
8
+ props: {
10
9
  allColumns: null;
11
10
  layout: null;
12
11
  labels: null;
@@ -25,10 +24,10 @@ declare namespace ColumnMenu {
25
24
  classNames: null;
26
25
  container: null;
27
26
  };
28
- }
27
+ };
29
28
  //#endregion
30
29
  //#region src/column-menu.d.ts
31
30
  declare function columnMenu(): StaticTableFeature;
32
31
  //#endregion
33
32
  export { columnMenu as n, ColumnMenu as r, ColumnMenuSlotProps$1 as t };
34
- //# sourceMappingURL=column-menu-BUiQUex0.d.cts.map
33
+ //# sourceMappingURL=column-menu-DsL_xeEM.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"column-menu-DsL_xeEM.d.cts","names":[],"sources":["../src/columns/ColumnMenu.ts","../src/column-menu.ts"],"mappings":";;;;cAoCa,cAA2D,MAAI,OACnE,oBAAoB,OAAK,SACvB,KAAK,yCAAsB,oBAAA,4BAAA;;;;;;;;;;;;;;;;;;;;;;;;;iBCxBtB,cAAc"}
@@ -1,7 +1,7 @@
1
1
  const require_button = require("./button-BFjBL9m3.cjs");
2
- const require_ElementInput = require("./ElementInput-vBVDBaLp.cjs");
3
- const require_ElementSelect = require("./ElementSelect-CvGw_zHh.cjs");
4
- const require_ElementColumnMenuPanel = require("./ElementColumnMenuPanel-DavsUQAR.cjs");
2
+ const require_ElementInput = require("./ElementInput-BF97xXSC.cjs");
3
+ const require_ElementSelect = require("./ElementSelect-1UwtGCCr.cjs");
4
+ const require_ElementColumnMenuPanel = require("./ElementColumnMenuPanel-Ddh01A17.cjs");
5
5
  let vue = require("vue");
6
6
  let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
7
7
  let _adapttable_vue_features = require("@adapttable/vue/features");
@@ -94,13 +94,12 @@ const ElementColumnMenuPresentation = (0, vue.defineComponent)((props) => {
94
94
  name: "ElementColumnMenuPresentation",
95
95
  props: menuProps
96
96
  });
97
- function ColumnMenu(props, context) {
97
+ const ColumnMenu = /* @__PURE__ */ (0, _adapttable_vue_adapter.withProps)(function ColumnMenu(props, context) {
98
98
  return (0, vue.createVNode)(ElementColumnMenuPresentation, {
99
99
  ...context.attrs,
100
100
  ...props
101
101
  });
102
- }
103
- ColumnMenu.props = menuProps;
102
+ }, menuProps);
104
103
  //#endregion
105
104
  //#region src/column-menu.ts
106
105
  function columnMenu() {
@@ -123,4 +122,4 @@ Object.defineProperty(exports, "columnMenu", {
123
122
  }
124
123
  });
125
124
 
126
- //# sourceMappingURL=column-menu-CNxXJ-ra.cjs.map
125
+ //# sourceMappingURL=column-menu-jNw7kuxp.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"column-menu-jNw7kuxp.cjs","names":["defineComponent","inject","columnMenuContainer","h","ElementSelect","elementButton","h","ElementInput","isElementRef","managedOverlayPanel","ElementColumnMenuPanel","defineComponent","useColumnMenu","h","ColumnMenuChrome","createVNode","extendFeature","bindingColumnMenu","slotRender","COLUMN_MENU","h","COLUMN_HEADER_RENAME","ColumnHeaderRenameChrome"],"sources":["../src/columns/ElementColumnChoice.ts","../src/columns/elementColumnMenuControls.ts","../src/columns/ColumnMenu.ts","../src/column-menu.ts"],"sourcesContent":["import type { ColumnMenuSlots } from \"@adapttable/vue/adapter\";\nimport { defineComponent, h, inject, type PropType } from \"vue\";\n\nimport ElementSelect from \"../controls/ElementSelect.vue\";\nimport { columnMenuContainer } from \"./panelContext\";\n\ntype ChoiceControl = Parameters<ColumnMenuSlots[\"Choice\"]>[0];\nfunction isKeyboardHandler(\n value: unknown\n): value is (event: KeyboardEvent) => void {\n return typeof value === \"function\";\n}\nexport const ElementColumnChoice = defineComponent(\n (props: { readonly control: ChoiceControl }) => {\n const container = inject(columnMenuContainer, undefined);\n const escape = (event: KeyboardEvent) => {\n const target = event.target;\n if (\n event.key === \"Escape\" &&\n !event.defaultPrevented &&\n !event.isComposing &&\n target instanceof Element &&\n target.getAttribute(\"role\") === \"combobox\" &&\n target.getAttribute(\"aria-expanded\") === \"false\"\n ) {\n const handler = props.control.attrs.onKeydown;\n if (isKeyboardHandler(handler)) handler(event);\n }\n };\n return () =>\n h(ElementSelect, {\n ...props.control.attrs,\n value: props.control.value,\n options: props.control.options,\n teleported: container?.value != null,\n appendTo: container?.value ?? undefined,\n onChange: props.control.onChange,\n onKeydownCapture: escape,\n });\n },\n {\n name: \"ElementColumnChoice\",\n props: {\n control: { type: Object as PropType<ChoiceControl> },\n },\n }\n);\n","import {\n type ColumnMenuButtonProps,\n type ColumnMenuSlots,\n managedOverlayPanel,\n} from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport { elementButton } from \"../controls/button\";\nimport ElementInput from \"../controls/ElementInput.vue\";\nimport { isElementRef } from \"../controls/ref\";\nimport { ElementColumnChoice } from \"./ElementColumnChoice\";\nimport { ElementColumnMenuPanel } from \"./ElementColumnMenuPanel\";\n\nfunction button(control: ColumnMenuButtonProps) {\n const icons = {\n grip: \"⠿\",\n visible: \"◉\",\n hidden: \"○\",\n pin: \"⌖\",\n more: \"⋯\",\n rename: \"✎\",\n };\n return elementButton(\n { \"aria-label\": control.label, ...control.attrs },\n control.icon\n ? h(\"span\", { \"aria-hidden\": \"true\" }, icons[control.icon])\n : control.label\n );\n}\nexport const elementColumnMenuSlots: ColumnMenuSlots = {\n Trigger: button,\n Button: button,\n Input: ({ attrs, value, onChange }) => {\n const nativeAttrs = Object.fromEntries(\n Object.entries(attrs).filter(([key]) => key !== \"ref\" && key !== \"type\")\n );\n return h(ElementInput, {\n ...nativeAttrs,\n value,\n type: attrs.type === \"search\" ? \"search\" : \"text\",\n inputRef: isElementRef(attrs.ref) ? attrs.ref : undefined,\n onChange,\n });\n },\n Choice: (control) => h(ElementColumnChoice, { control }),\n Panel: managedOverlayPanel((control) =>\n h(ElementColumnMenuPanel, { control })\n ),\n};\n","import {\n ColumnMenuChrome,\n type ColumnMenuSlotProps,\n useColumnMenu,\n withProps,\n} from \"@adapttable/vue/adapter\";\nimport { createVNode, defineComponent, h, type SetupContext } from \"vue\";\n\nimport { elementColumnMenuSlots } from \"./elementColumnMenuControls\";\n\nconst menuProps = {\n allColumns: null,\n layout: null,\n labels: null,\n hasRowActions: Boolean,\n hasRowReorder: Boolean,\n onAutoSize: null,\n onAutoSizeColumn: null,\n onSortColumn: null,\n onFilterColumn: null,\n onRenameColumn: null,\n sortBy: null,\n sortDir: null,\n dir: null,\n groupingPanel: null,\n featureHost: null,\n classNames: null,\n container: null,\n} satisfies Record<keyof ColumnMenuSlotProps<unknown>, unknown>;\nconst ElementColumnMenuPresentation = defineComponent(\n (props: ColumnMenuSlotProps<unknown>) => {\n const model = useColumnMenu(() => props);\n return () => h(ColumnMenuChrome, { model, slots: elementColumnMenuSlots });\n },\n { name: \"ElementColumnMenuPresentation\", props: menuProps }\n);\nexport const ColumnMenu = /* @__PURE__ */ withProps(function ColumnMenu<TRow>(\n props: ColumnMenuSlotProps<TRow>,\n context: Pick<SetupContext, \"attrs\">\n) {\n return createVNode(ElementColumnMenuPresentation, {\n ...context.attrs,\n ...props,\n });\n}, menuProps);\n","import type { StaticTableFeature } from \"@adapttable/vue\";\nimport {\n COLUMN_HEADER_RENAME,\n COLUMN_MENU,\n ColumnHeaderRenameChrome,\n extendFeature,\n slotRender,\n} from \"@adapttable/vue/adapter\";\nimport { columnMenu as bindingColumnMenu } from \"@adapttable/vue/features\";\nimport { h } from \"vue\";\n\nimport { ColumnMenu } from \"./columns/ColumnMenu\";\nimport { elementColumnMenuSlots } from \"./columns/elementColumnMenuControls\";\n\nexport function columnMenu(): StaticTableFeature {\n return extendFeature(bindingColumnMenu(), [\n slotRender(COLUMN_MENU, (props) => h(ColumnMenu<never>, { ...props })),\n slotRender(COLUMN_HEADER_RENAME, (props) =>\n h(ColumnHeaderRenameChrome, { ...props, slots: elementColumnMenuSlots })\n ),\n ]);\n}\nexport { ColumnMenu } from \"./columns/ColumnMenu\";\nexport type { ColumnMenuSlotProps } from \"@adapttable/vue/adapter\";\n"],"mappings":";;;;;;;;AAOA,SAAS,kBACP,OACyC;CACzC,OAAO,OAAO,UAAU;AAC1B;AACA,MAAa,uBAAA,GAAsBA,IAAAA,gBAAAA,EAChC,UAA+C;CAC9C,MAAM,aAAA,GAAYC,IAAAA,OAAAA,CAAOC,+BAAAA,qBAAqB,KAAA,CAAS;CACvD,MAAM,UAAU,UAAyB;EACvC,MAAM,SAAS,MAAM;EACrB,IACE,MAAM,QAAQ,YACd,CAAC,MAAM,oBACP,CAAC,MAAM,eACP,kBAAkB,WAClB,OAAO,aAAa,MAAM,MAAM,cAChC,OAAO,aAAa,eAAe,MAAM,SACzC;GACA,MAAM,UAAU,MAAM,QAAQ,MAAM;GACpC,IAAI,kBAAkB,OAAO,GAAG,QAAQ,KAAK;EAC/C;CACF;CACA,cAAA,GACEC,IAAAA,EAAAA,CAAEC,sBAAAA,WAAe;EACf,GAAG,MAAM,QAAQ;EACjB,OAAO,MAAM,QAAQ;EACrB,SAAS,MAAM,QAAQ;EACvB,YAAY,WAAW,SAAS;EAChC,UAAU,WAAW,SAAS,KAAA;EAC9B,UAAU,MAAM,QAAQ;EACxB,kBAAkB;CACpB,CAAC;AACL,GACA;CACE,MAAM;CACN,OAAO,EACL,SAAS,EAAE,MAAM,OAAkC,EACrD;AACF,CACF;;;ACjCA,SAAS,OAAO,SAAgC;CAC9C,MAAM,QAAQ;EACZ,MAAM;EACN,SAAS;EACT,QAAQ;EACR,KAAK;EACL,MAAM;EACN,QAAQ;CACV;CACA,OAAOC,eAAAA,c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,MAAa,aAA6B,iBAAA,GAAA,wBAAA,UAAA,CAAU,SAAS,WAC3D,OACA,SACA;CACA,QAAA,GAAOC,IAAAA,YAAAA,CAAY,+BAA+B;EAChD,GAAG,QAAQ;EACX,GAAG;CACL,CAAC;AACH,GAAG,SAAS;;;AC9BZ,SAAgB,aAAiC;CAC/C,QAAA,GAAOC,wBAAAA,cAAAA,EAAAA,GAAcC,yBAAAA,WAAAA,CAAkB,GAAG,EAAA,GACxCC,wBAAAA,WAAAA,CAAWC,wBAAAA,cAAc,WAAA,GAAUC,IAAAA,EAAAA,CAAE,YAAmB,EAAE,GAAG,MAAM,CAAC,CAAC,IAAA,GACrEF,wBAAAA,WAAAA,CAAWG,wBAAAA,uBAAuB,WAAA,GAChCD,IAAAA,EAAAA,CAAEE,wBAAAA,0BAA0B;EAAE,GAAG;EAAO,OAAO;CAAuB,CAAC,CACzE,CACF,CAAC;AACH"}
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_column_menu = require("./column-menu-CNxXJ-ra.cjs");
2
+ const require_column_menu = require("./column-menu-jNw7kuxp.cjs");
3
3
  exports.ColumnMenu = require_column_menu.ColumnMenu;
4
4
  exports.columnMenu = require_column_menu.columnMenu;
@@ -1,2 +1,2 @@
1
- import { n as columnMenu, r as ColumnMenu, t as ColumnMenuSlotProps } from "./column-menu-BUiQUex0.cjs";
1
+ import { n as columnMenu, r as ColumnMenu, t as ColumnMenuSlotProps } from "./column-menu-DsL_xeEM.cjs";
2
2
  export { ColumnMenu, type ColumnMenuSlotProps, columnMenu };
@@ -1,2 +1,2 @@
1
- import { n as columnMenu, r as ColumnMenu, t as ColumnMenuSlotProps } from "./column-menu-C0YWdhRz.js";
1
+ import { n as columnMenu, r as ColumnMenu, t as ColumnMenuSlotProps } from "./column-menu-CAkx6AjR.js";
2
2
  export { ColumnMenu, type ColumnMenuSlotProps, columnMenu };