@progress/kendo-react-webmcp 15.0.0-develop.2

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 (340) hide show
  1. package/LICENSE.md +11 -0
  2. package/NOTICE.txt +383 -0
  3. package/README.md +72 -0
  4. package/WebMcpProvider.d.ts +49 -0
  5. package/WebMcpProvider.js +8 -0
  6. package/WebMcpProvider.mjs +138 -0
  7. package/adapters/aiprompt.d.ts +15 -0
  8. package/adapters/aiprompt.js +8 -0
  9. package/adapters/aiprompt.mjs +63 -0
  10. package/adapters/autocomplete.d.ts +18 -0
  11. package/adapters/autocomplete.js +8 -0
  12. package/adapters/autocomplete.mjs +69 -0
  13. package/adapters/button.d.ts +18 -0
  14. package/adapters/button.js +8 -0
  15. package/adapters/button.mjs +46 -0
  16. package/adapters/calendar.d.ts +16 -0
  17. package/adapters/calendar.js +8 -0
  18. package/adapters/calendar.mjs +61 -0
  19. package/adapters/chart.d.ts +29 -0
  20. package/adapters/chart.js +8 -0
  21. package/adapters/chart.mjs +95 -0
  22. package/adapters/chat.d.ts +16 -0
  23. package/adapters/chat.js +8 -0
  24. package/adapters/chat.mjs +66 -0
  25. package/adapters/colorpicker.d.ts +16 -0
  26. package/adapters/colorpicker.js +8 -0
  27. package/adapters/colorpicker.mjs +60 -0
  28. package/adapters/combobox.d.ts +20 -0
  29. package/adapters/combobox.js +8 -0
  30. package/adapters/combobox.mjs +87 -0
  31. package/adapters/dashboard.d.ts +18 -0
  32. package/adapters/dashboard.js +8 -0
  33. package/adapters/dashboard.mjs +41 -0
  34. package/adapters/datepicker.d.ts +17 -0
  35. package/adapters/datepicker.js +8 -0
  36. package/adapters/datepicker.mjs +59 -0
  37. package/adapters/daterangepicker.d.ts +19 -0
  38. package/adapters/daterangepicker.js +8 -0
  39. package/adapters/daterangepicker.mjs +70 -0
  40. package/adapters/datetimepicker.d.ts +16 -0
  41. package/adapters/datetimepicker.js +8 -0
  42. package/adapters/datetimepicker.mjs +59 -0
  43. package/adapters/dialog.d.ts +15 -0
  44. package/adapters/dialog.js +8 -0
  45. package/adapters/dialog.mjs +58 -0
  46. package/adapters/drawer.d.ts +33 -0
  47. package/adapters/drawer.js +8 -0
  48. package/adapters/drawer.mjs +86 -0
  49. package/adapters/dropdownlist.d.ts +19 -0
  50. package/adapters/dropdownlist.js +8 -0
  51. package/adapters/dropdownlist.mjs +74 -0
  52. package/adapters/dropdowntree.d.ts +22 -0
  53. package/adapters/dropdowntree.js +8 -0
  54. package/adapters/dropdowntree.mjs +108 -0
  55. package/adapters/editor.d.ts +30 -0
  56. package/adapters/editor.js +8 -0
  57. package/adapters/editor.mjs +109 -0
  58. package/adapters/form.d.ts +20 -0
  59. package/adapters/form.js +10 -0
  60. package/adapters/form.mjs +115 -0
  61. package/adapters/gantt.d.ts +65 -0
  62. package/adapters/gantt.js +8 -0
  63. package/adapters/gantt.mjs +370 -0
  64. package/adapters/grid.d.ts +102 -0
  65. package/adapters/grid.js +8 -0
  66. package/adapters/grid.mjs +692 -0
  67. package/adapters/listbox.d.ts +18 -0
  68. package/adapters/listbox.js +8 -0
  69. package/adapters/listbox.mjs +87 -0
  70. package/adapters/listview.d.ts +22 -0
  71. package/adapters/listview.js +8 -0
  72. package/adapters/listview.mjs +80 -0
  73. package/adapters/map.d.ts +32 -0
  74. package/adapters/map.js +8 -0
  75. package/adapters/map.mjs +88 -0
  76. package/adapters/maskedtextbox.d.ts +17 -0
  77. package/adapters/maskedtextbox.js +8 -0
  78. package/adapters/maskedtextbox.mjs +57 -0
  79. package/adapters/menu.d.ts +16 -0
  80. package/adapters/menu.js +8 -0
  81. package/adapters/menu.mjs +50 -0
  82. package/adapters/multiselect.d.ts +19 -0
  83. package/adapters/multiselect.js +8 -0
  84. package/adapters/multiselect.mjs +75 -0
  85. package/adapters/notification.d.ts +17 -0
  86. package/adapters/notification.js +8 -0
  87. package/adapters/notification.mjs +57 -0
  88. package/adapters/numerictextbox.d.ts +19 -0
  89. package/adapters/numerictextbox.js +8 -0
  90. package/adapters/numerictextbox.mjs +78 -0
  91. package/adapters/panelbar.d.ts +17 -0
  92. package/adapters/panelbar.js +8 -0
  93. package/adapters/panelbar.mjs +66 -0
  94. package/adapters/pivotgrid.d.ts +16 -0
  95. package/adapters/pivotgrid.js +8 -0
  96. package/adapters/pivotgrid.mjs +126 -0
  97. package/adapters/rangeslider.d.ts +21 -0
  98. package/adapters/rangeslider.js +8 -0
  99. package/adapters/rangeslider.mjs +55 -0
  100. package/adapters/rating.d.ts +16 -0
  101. package/adapters/rating.js +8 -0
  102. package/adapters/rating.mjs +60 -0
  103. package/adapters/scheduler.d.ts +45 -0
  104. package/adapters/scheduler.js +8 -0
  105. package/adapters/scheduler.mjs +165 -0
  106. package/adapters/scrollview.d.ts +21 -0
  107. package/adapters/scrollview.js +8 -0
  108. package/adapters/scrollview.mjs +74 -0
  109. package/adapters/signature.d.ts +16 -0
  110. package/adapters/signature.js +8 -0
  111. package/adapters/signature.mjs +47 -0
  112. package/adapters/slider.d.ts +19 -0
  113. package/adapters/slider.js +8 -0
  114. package/adapters/slider.mjs +47 -0
  115. package/adapters/sortable.d.ts +17 -0
  116. package/adapters/sortable.js +8 -0
  117. package/adapters/sortable.mjs +67 -0
  118. package/adapters/spreadsheet.d.ts +32 -0
  119. package/adapters/spreadsheet.js +8 -0
  120. package/adapters/spreadsheet.mjs +256 -0
  121. package/adapters/stepper.d.ts +23 -0
  122. package/adapters/stepper.js +8 -0
  123. package/adapters/stepper.mjs +47 -0
  124. package/adapters/switch.d.ts +17 -0
  125. package/adapters/switch.js +8 -0
  126. package/adapters/switch.mjs +48 -0
  127. package/adapters/tabstrip.d.ts +19 -0
  128. package/adapters/tabstrip.js +8 -0
  129. package/adapters/tabstrip.mjs +47 -0
  130. package/adapters/taskboard.d.ts +20 -0
  131. package/adapters/taskboard.js +8 -0
  132. package/adapters/taskboard.mjs +104 -0
  133. package/adapters/textarea.d.ts +16 -0
  134. package/adapters/textarea.js +8 -0
  135. package/adapters/textarea.mjs +57 -0
  136. package/adapters/textbox.d.ts +19 -0
  137. package/adapters/textbox.js +8 -0
  138. package/adapters/textbox.mjs +61 -0
  139. package/adapters/timepicker.d.ts +16 -0
  140. package/adapters/timepicker.js +8 -0
  141. package/adapters/timepicker.mjs +59 -0
  142. package/adapters/treelist.d.ts +81 -0
  143. package/adapters/treelist.js +8 -0
  144. package/adapters/treelist.mjs +403 -0
  145. package/adapters/treeview.d.ts +25 -0
  146. package/adapters/treeview.js +9 -0
  147. package/adapters/treeview.mjs +212 -0
  148. package/adapters/upload.d.ts +15 -0
  149. package/adapters/upload.js +8 -0
  150. package/adapters/upload.mjs +52 -0
  151. package/adapters/utils.d.ts +16 -0
  152. package/adapters/utils.js +8 -0
  153. package/adapters/utils.mjs +25 -0
  154. package/adapters/window.d.ts +17 -0
  155. package/adapters/window.js +8 -0
  156. package/adapters/window.mjs +99 -0
  157. package/commands/aiprompt.d.ts +30 -0
  158. package/commands/aiprompt.js +8 -0
  159. package/commands/aiprompt.mjs +54 -0
  160. package/commands/autocomplete.d.ts +26 -0
  161. package/commands/autocomplete.js +8 -0
  162. package/commands/autocomplete.mjs +36 -0
  163. package/commands/button.d.ts +19 -0
  164. package/commands/button.js +8 -0
  165. package/commands/button.mjs +21 -0
  166. package/commands/calendar.d.ts +29 -0
  167. package/commands/calendar.js +8 -0
  168. package/commands/calendar.mjs +52 -0
  169. package/commands/chart.d.ts +27 -0
  170. package/commands/chart.js +8 -0
  171. package/commands/chart.mjs +43 -0
  172. package/commands/chat.d.ts +22 -0
  173. package/commands/chat.js +8 -0
  174. package/commands/chat.mjs +30 -0
  175. package/commands/checkbox.d.ts +26 -0
  176. package/commands/checkbox.js +8 -0
  177. package/commands/checkbox.mjs +36 -0
  178. package/commands/colorpicker.d.ts +26 -0
  179. package/commands/colorpicker.js +8 -0
  180. package/commands/colorpicker.mjs +36 -0
  181. package/commands/combobox.d.ts +34 -0
  182. package/commands/combobox.js +8 -0
  183. package/commands/combobox.mjs +48 -0
  184. package/commands/dashboard.d.ts +19 -0
  185. package/commands/dashboard.js +8 -0
  186. package/commands/dashboard.mjs +21 -0
  187. package/commands/datepicker.d.ts +26 -0
  188. package/commands/datepicker.js +8 -0
  189. package/commands/datepicker.mjs +36 -0
  190. package/commands/daterangepicker.d.ts +27 -0
  191. package/commands/daterangepicker.js +8 -0
  192. package/commands/daterangepicker.mjs +37 -0
  193. package/commands/datetimepicker.d.ts +26 -0
  194. package/commands/datetimepicker.js +8 -0
  195. package/commands/datetimepicker.mjs +36 -0
  196. package/commands/dialog.d.ts +23 -0
  197. package/commands/dialog.js +8 -0
  198. package/commands/dialog.mjs +25 -0
  199. package/commands/drawer.d.ts +30 -0
  200. package/commands/drawer.js +8 -0
  201. package/commands/drawer.mjs +38 -0
  202. package/commands/dropdownlist.d.ts +30 -0
  203. package/commands/dropdownlist.js +8 -0
  204. package/commands/dropdownlist.mjs +42 -0
  205. package/commands/dropdowntree.d.ts +34 -0
  206. package/commands/dropdowntree.js +8 -0
  207. package/commands/dropdowntree.mjs +48 -0
  208. package/commands/editor.d.ts +26 -0
  209. package/commands/editor.js +8 -0
  210. package/commands/editor.mjs +36 -0
  211. package/commands/form.d.ts +34 -0
  212. package/commands/form.js +8 -0
  213. package/commands/form.mjs +54 -0
  214. package/commands/gantt.d.ts +119 -0
  215. package/commands/gantt.js +8 -0
  216. package/commands/gantt.mjs +156 -0
  217. package/commands/grid.d.ts +209 -0
  218. package/commands/grid.js +8 -0
  219. package/commands/grid.mjs +280 -0
  220. package/commands/index.d.ts +58 -0
  221. package/commands/listbox.d.ts +31 -0
  222. package/commands/listbox.js +8 -0
  223. package/commands/listbox.mjs +69 -0
  224. package/commands/listview.d.ts +22 -0
  225. package/commands/listview.js +8 -0
  226. package/commands/listview.mjs +29 -0
  227. package/commands/map.d.ts +43 -0
  228. package/commands/map.js +8 -0
  229. package/commands/map.mjs +77 -0
  230. package/commands/maskedtextbox.d.ts +26 -0
  231. package/commands/maskedtextbox.js +8 -0
  232. package/commands/maskedtextbox.mjs +36 -0
  233. package/commands/menu.d.ts +22 -0
  234. package/commands/menu.js +8 -0
  235. package/commands/menu.mjs +30 -0
  236. package/commands/multicolumncombobox.d.ts +34 -0
  237. package/commands/multicolumncombobox.js +8 -0
  238. package/commands/multicolumncombobox.mjs +48 -0
  239. package/commands/multiselect.d.ts +41 -0
  240. package/commands/multiselect.js +8 -0
  241. package/commands/multiselect.mjs +57 -0
  242. package/commands/notification.d.ts +27 -0
  243. package/commands/notification.js +8 -0
  244. package/commands/notification.mjs +46 -0
  245. package/commands/numerictextbox.d.ts +34 -0
  246. package/commands/numerictextbox.js +8 -0
  247. package/commands/numerictextbox.mjs +48 -0
  248. package/commands/panelbar.d.ts +29 -0
  249. package/commands/panelbar.js +8 -0
  250. package/commands/panelbar.mjs +43 -0
  251. package/commands/pivotgrid.d.ts +56 -0
  252. package/commands/pivotgrid.js +8 -0
  253. package/commands/pivotgrid.mjs +87 -0
  254. package/commands/rangeslider.d.ts +23 -0
  255. package/commands/rangeslider.js +8 -0
  256. package/commands/rangeslider.mjs +25 -0
  257. package/commands/rating.d.ts +26 -0
  258. package/commands/rating.js +8 -0
  259. package/commands/rating.mjs +36 -0
  260. package/commands/scheduler.d.ts +45 -0
  261. package/commands/scheduler.js +8 -0
  262. package/commands/scheduler.mjs +59 -0
  263. package/commands/scrollview.d.ts +30 -0
  264. package/commands/scrollview.js +8 -0
  265. package/commands/scrollview.mjs +46 -0
  266. package/commands/signature.d.ts +19 -0
  267. package/commands/signature.js +8 -0
  268. package/commands/signature.mjs +21 -0
  269. package/commands/slider.d.ts +22 -0
  270. package/commands/slider.js +8 -0
  271. package/commands/slider.mjs +24 -0
  272. package/commands/sortable.d.ts +23 -0
  273. package/commands/sortable.js +8 -0
  274. package/commands/sortable.mjs +32 -0
  275. package/commands/spreadsheet.d.ts +92 -0
  276. package/commands/spreadsheet.js +8 -0
  277. package/commands/spreadsheet.mjs +181 -0
  278. package/commands/stepper.d.ts +22 -0
  279. package/commands/stepper.js +8 -0
  280. package/commands/stepper.mjs +35 -0
  281. package/commands/switch.d.ts +26 -0
  282. package/commands/switch.js +8 -0
  283. package/commands/switch.mjs +36 -0
  284. package/commands/tabstrip.d.ts +23 -0
  285. package/commands/tabstrip.js +8 -0
  286. package/commands/tabstrip.mjs +30 -0
  287. package/commands/taskboard.d.ts +48 -0
  288. package/commands/taskboard.js +8 -0
  289. package/commands/taskboard.mjs +90 -0
  290. package/commands/textarea.d.ts +26 -0
  291. package/commands/textarea.js +8 -0
  292. package/commands/textarea.mjs +36 -0
  293. package/commands/textbox.d.ts +26 -0
  294. package/commands/textbox.js +8 -0
  295. package/commands/textbox.mjs +36 -0
  296. package/commands/timepicker.d.ts +26 -0
  297. package/commands/timepicker.js +8 -0
  298. package/commands/timepicker.mjs +36 -0
  299. package/commands/treelist.d.ts +135 -0
  300. package/commands/treelist.js +8 -0
  301. package/commands/treelist.mjs +177 -0
  302. package/commands/treeview.d.ts +44 -0
  303. package/commands/treeview.js +8 -0
  304. package/commands/treeview.mjs +84 -0
  305. package/commands/upload.d.ts +19 -0
  306. package/commands/upload.js +8 -0
  307. package/commands/upload.mjs +21 -0
  308. package/commands/window.d.ts +35 -0
  309. package/commands/window.js +8 -0
  310. package/commands/window.mjs +45 -0
  311. package/dist/cdn/js/kendo-react-webmcp.js +15 -0
  312. package/grid-mcp-tools.d.ts +26 -0
  313. package/grid-mcp-tools.js +8 -0
  314. package/grid-mcp-tools.mjs +75 -0
  315. package/index.d.mts +68 -0
  316. package/index.d.ts +68 -0
  317. package/index.js +8 -0
  318. package/index.mjs +308 -0
  319. package/mcp-types.d.ts +12 -0
  320. package/package.json +64 -0
  321. package/schemas/common.d.ts +27 -0
  322. package/schemas/common.js +8 -0
  323. package/schemas/common.mjs +113 -0
  324. package/schemas/gantt.d.ts +10 -0
  325. package/schemas/gantt.js +8 -0
  326. package/schemas/gantt.mjs +51 -0
  327. package/schemas/grid.d.ts +10 -0
  328. package/schemas/grid.js +8 -0
  329. package/schemas/grid.mjs +46 -0
  330. package/schemas/index.d.ts +13 -0
  331. package/schemas/input.d.ts +19 -0
  332. package/schemas/input.js +8 -0
  333. package/schemas/input.mjs +137 -0
  334. package/schemas/scheduler.d.ts +11 -0
  335. package/schemas/scheduler.js +8 -0
  336. package/schemas/scheduler.mjs +58 -0
  337. package/schemas/table.d.ts +12 -0
  338. package/schemas/table.js +8 -0
  339. package/schemas/table.mjs +87 -0
  340. package/types.d.ts +39 -0
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { ToolAdapter } from '../types';
9
+ interface NotificationAdapterProps {
10
+ type?: string;
11
+ closable?: boolean;
12
+ onClose?: (event: Record<string, unknown>) => void;
13
+ webMcp?: unknown;
14
+ }
15
+ /** @hidden */
16
+ export declare const notificationAdapter: ToolAdapter<unknown, NotificationAdapterProps>;
17
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../commands/notification.js"),h={componentSuffix:"notification",createTools(l,s,c,u){const r=[],f=t=>`${c.groupName}_${t}`,m=[{name:"show",description:`Show a notification in the ${c.dataName} notification group.`,commandType:o.NotificationCommands.Show,enabled:!0},{name:"dismiss",description:`Dismiss all notifications in the ${c.dataName} notification group.`,commandType:o.NotificationCommands.Dismiss,enabled:!0}],n=s.current.webMcp,d=typeof n=="object"&&n!==null&&typeof n.tools=="function"?n.tools:void 0,p=d?d(m):m,y=async(t,a)=>{var e,i;switch(t){case o.NotificationCommands.Show:return{content:[{type:"text",text:`Notification shown: "${String(a.message)}".`}]};case o.NotificationCommands.Dismiss:return(i=(e=s.current).onClose)==null||i.call(e,{syntheticEvent:null,target:l}),{content:[{type:"text",text:"Notification dismissed."}]};default:return{content:[{type:"text",text:`Unknown command: ${t}`}],isError:!0}}};for(const t of p){if(!t.enabled)continue;const a=o.getNotificationToolSchema(t.commandType),e=t.commandType;try{r.push(u.registerTool({name:f(t.name),description:t.description,inputSchema:a,execute:async i=>y(e,i||{})}))}catch{}}return r}};exports.notificationAdapter=h;
@@ -0,0 +1,57 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { NotificationCommands as i, getNotificationToolSchema as y } from "../commands/notification.mjs";
9
+ const w = {
10
+ componentSuffix: "notification",
11
+ createTools(p, a, c, d) {
12
+ const r = [], u = (t) => `${c.groupName}_${t}`, m = [
13
+ {
14
+ name: "show",
15
+ description: `Show a notification in the ${c.dataName} notification group.`,
16
+ commandType: i.Show,
17
+ enabled: !0
18
+ },
19
+ {
20
+ name: "dismiss",
21
+ description: `Dismiss all notifications in the ${c.dataName} notification group.`,
22
+ commandType: i.Dismiss,
23
+ enabled: !0
24
+ }
25
+ ], o = a.current.webMcp, l = typeof o == "object" && o !== null && typeof o.tools == "function" ? o.tools : void 0, f = l ? l(m) : m, h = async (t, s) => {
26
+ var n, e;
27
+ switch (t) {
28
+ case i.Show:
29
+ return { content: [{ type: "text", text: `Notification shown: "${String(s.message)}".` }] };
30
+ case i.Dismiss:
31
+ return (e = (n = a.current).onClose) == null || e.call(n, { syntheticEvent: null, target: p }), { content: [{ type: "text", text: "Notification dismissed." }] };
32
+ default:
33
+ return { content: [{ type: "text", text: `Unknown command: ${t}` }], isError: !0 };
34
+ }
35
+ };
36
+ for (const t of f) {
37
+ if (!t.enabled)
38
+ continue;
39
+ const s = y(t.commandType), n = t.commandType;
40
+ try {
41
+ r.push(
42
+ d.registerTool({
43
+ name: u(t.name),
44
+ description: t.description,
45
+ inputSchema: s,
46
+ execute: async (e) => h(n, e || {})
47
+ })
48
+ );
49
+ } catch {
50
+ }
51
+ }
52
+ return r;
53
+ }
54
+ };
55
+ export {
56
+ w as notificationAdapter
57
+ };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { ToolAdapter } from '../types';
9
+ interface NumericTextBoxAdapterProps {
10
+ value?: number | null;
11
+ min?: number;
12
+ max?: number;
13
+ step?: number;
14
+ onChange?: (event: Record<string, unknown>) => void;
15
+ webMcp?: unknown;
16
+ }
17
+ /** @hidden */
18
+ export declare const numericTextBoxAdapter: ToolAdapter<unknown, NumericTextBoxAdapterProps>;
19
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../commands/numerictextbox.js"),b={componentSuffix:"numerictextbox",createTools(c,i,o,h){const l=[],T=t=>`${o.groupName}_${t}`,r=i.current,x=[{name:"set_value",description:`Set the value of the ${o.dataName} numeric input`,commandType:n.NumericTextBoxCommands.SetValue,enabled:!!r.onChange},{name:"increment",description:`Increment the ${o.dataName} numeric input by one step`,commandType:n.NumericTextBoxCommands.Increment,enabled:!!r.onChange},{name:"decrement",description:`Decrement the ${o.dataName} numeric input by one step`,commandType:n.NumericTextBoxCommands.Decrement,enabled:!!r.onChange},{name:"clear",description:`Clear the ${o.dataName} numeric input`,commandType:n.NumericTextBoxCommands.Clear,enabled:!!r.onChange}],m=i.current.webMcp,d=typeof m=="object"&&m!==null&&typeof m.tools=="function"?m.tools:void 0,g=d?d(x):x,v=async(t,u)=>{var s,p,C,y;const e=i.current;switch(t){case n.NumericTextBoxCommands.SetValue:return e.onChange&&e.onChange({value:u.value,syntheticEvent:null,target:c}),{content:[{type:"text",text:`Value set to ${String(u.value)}.`}]};case n.NumericTextBoxCommands.Increment:{const a=((s=e.value)!=null?s:0)+((p=e.step)!=null?p:1);return e.onChange&&e.onChange({value:a,syntheticEvent:null,target:c}),{content:[{type:"text",text:`Incremented to ${a}.`}]}}case n.NumericTextBoxCommands.Decrement:{const a=((C=e.value)!=null?C:0)-((y=e.step)!=null?y:1);return e.onChange&&e.onChange({value:a,syntheticEvent:null,target:c}),{content:[{type:"text",text:`Decremented to ${a}.`}]}}case n.NumericTextBoxCommands.Clear:return e.onChange&&e.onChange({value:null,syntheticEvent:null,target:c}),{content:[{type:"text",text:"Value cleared."}]};default:return{content:[{type:"text",text:`Unknown command: ${t}`}],isError:!0}}};for(const t of g){if(!t.enabled)continue;const u=n.getNumericTextBoxToolSchema(t.commandType),e=t.commandType;try{l.push(h.registerTool({name:T(t.name),description:t.description,inputSchema:u,execute:async s=>v(e,s||{})}))}catch{}}return l}};exports.numericTextBoxAdapter=b;
@@ -0,0 +1,78 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { NumericTextBoxCommands as n, getNumericTextBoxToolSchema as b } from "../commands/numerictextbox.mjs";
9
+ const $ = {
10
+ componentSuffix: "numerictextbox",
11
+ createTools(c, l, o, C) {
12
+ const i = [], g = (t) => `${o.groupName}_${t}`, r = l.current, p = [
13
+ {
14
+ name: "set_value",
15
+ description: `Set the value of the ${o.dataName} numeric input`,
16
+ commandType: n.SetValue,
17
+ enabled: !!r.onChange
18
+ },
19
+ {
20
+ name: "increment",
21
+ description: `Increment the ${o.dataName} numeric input by one step`,
22
+ commandType: n.Increment,
23
+ enabled: !!r.onChange
24
+ },
25
+ {
26
+ name: "decrement",
27
+ description: `Decrement the ${o.dataName} numeric input by one step`,
28
+ commandType: n.Decrement,
29
+ enabled: !!r.onChange
30
+ },
31
+ {
32
+ name: "clear",
33
+ description: `Clear the ${o.dataName} numeric input`,
34
+ commandType: n.Clear,
35
+ enabled: !!r.onChange
36
+ }
37
+ ], m = l.current.webMcp, d = typeof m == "object" && m !== null && typeof m.tools == "function" ? m.tools : void 0, v = d ? d(p) : p, T = async (t, u) => {
38
+ var s, x, h, y;
39
+ const e = l.current;
40
+ switch (t) {
41
+ case n.SetValue:
42
+ return e.onChange && e.onChange({ value: u.value, syntheticEvent: null, target: c }), { content: [{ type: "text", text: `Value set to ${String(u.value)}.` }] };
43
+ case n.Increment: {
44
+ const a = ((s = e.value) != null ? s : 0) + ((x = e.step) != null ? x : 1);
45
+ return e.onChange && e.onChange({ value: a, syntheticEvent: null, target: c }), { content: [{ type: "text", text: `Incremented to ${a}.` }] };
46
+ }
47
+ case n.Decrement: {
48
+ const a = ((h = e.value) != null ? h : 0) - ((y = e.step) != null ? y : 1);
49
+ return e.onChange && e.onChange({ value: a, syntheticEvent: null, target: c }), { content: [{ type: "text", text: `Decremented to ${a}.` }] };
50
+ }
51
+ case n.Clear:
52
+ return e.onChange && e.onChange({ value: null, syntheticEvent: null, target: c }), { content: [{ type: "text", text: "Value cleared." }] };
53
+ default:
54
+ return { content: [{ type: "text", text: `Unknown command: ${t}` }], isError: !0 };
55
+ }
56
+ };
57
+ for (const t of v) {
58
+ if (!t.enabled)
59
+ continue;
60
+ const u = b(t.commandType), e = t.commandType;
61
+ try {
62
+ i.push(
63
+ C.registerTool({
64
+ name: g(t.name),
65
+ description: t.description,
66
+ inputSchema: u,
67
+ execute: async (s) => T(e, s || {})
68
+ })
69
+ );
70
+ } catch {
71
+ }
72
+ }
73
+ return i;
74
+ }
75
+ };
76
+ export {
77
+ $ as numericTextBoxAdapter
78
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { ToolAdapter } from '../types';
9
+ interface PanelBarAdapterProps {
10
+ selected?: string;
11
+ expanded?: string[];
12
+ onSelect?: (event: Record<string, unknown>) => void;
13
+ webMcp?: unknown;
14
+ }
15
+ /** @hidden */
16
+ export declare const panelBarAdapter: ToolAdapter<unknown, PanelBarAdapterProps>;
17
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../commands/panelbar.js"),h={componentSuffix:"panelbar",createTools(P,c,l,b){const p=[],f=e=>`${l.groupName}_${e}`,i=c.current,m=[{name:"expand",description:`Expand a panel in the ${l.dataName} panel bar by its unique id.`,commandType:a.PanelBarCommands.Expand,enabled:!!i.onSelect},{name:"collapse",description:`Collapse a panel in the ${l.dataName} panel bar by its unique id.`,commandType:a.PanelBarCommands.Collapse,enabled:!!i.onSelect}],o=c.current.webMcp,u=typeof o=="object"&&o!==null&&typeof o.tools=="function"?o.tools:void 0,S=u?u(m):m,C=async(e,r)=>{var x,y;const n=c.current,t=r.id;switch(e){case a.PanelBarCommands.Expand:{const s=(x=n.expanded)!=null?x:[];if(!s.includes(t)){const d=[...s,t];n.onSelect&&n.onSelect({expanded:d})}return{content:[{type:"text",text:`Panel "${t}" expanded.`}]}}case a.PanelBarCommands.Collapse:{const d=((y=n.expanded)!=null?y:[]).filter(T=>T!==t);return n.onSelect&&n.onSelect({expanded:d}),{content:[{type:"text",text:`Panel "${t}" collapsed.`}]}}default:return{content:[{type:"text",text:`Unknown command: ${e}`}],isError:!0}}};for(const e of S){if(!e.enabled)continue;const r=a.getPanelBarToolSchema(e.commandType),n=e.commandType;try{p.push(b.registerTool({name:f(e.name),description:e.description,inputSchema:r,execute:async t=>C(n,t||{})}))}catch{}}return p}};exports.panelBarAdapter=h;
@@ -0,0 +1,66 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { PanelBarCommands as a, getPanelBarToolSchema as C } from "../commands/panelbar.mjs";
9
+ const E = {
10
+ componentSuffix: "panelbar",
11
+ createTools($, c, l, b) {
12
+ const d = [], f = (e) => `${l.groupName}_${e}`, i = c.current, m = [
13
+ {
14
+ name: "expand",
15
+ description: `Expand a panel in the ${l.dataName} panel bar by its unique id.`,
16
+ commandType: a.Expand,
17
+ enabled: !!i.onSelect
18
+ },
19
+ {
20
+ name: "collapse",
21
+ description: `Collapse a panel in the ${l.dataName} panel bar by its unique id.`,
22
+ commandType: a.Collapse,
23
+ enabled: !!i.onSelect
24
+ }
25
+ ], o = c.current.webMcp, u = typeof o == "object" && o !== null && typeof o.tools == "function" ? o.tools : void 0, S = u ? u(m) : m, h = async (e, r) => {
26
+ var x, y;
27
+ const n = c.current, t = r.id;
28
+ switch (e) {
29
+ case a.Expand: {
30
+ const s = (x = n.expanded) != null ? x : [];
31
+ if (!s.includes(t)) {
32
+ const p = [...s, t];
33
+ n.onSelect && n.onSelect({ expanded: p });
34
+ }
35
+ return { content: [{ type: "text", text: `Panel "${t}" expanded.` }] };
36
+ }
37
+ case a.Collapse: {
38
+ const p = ((y = n.expanded) != null ? y : []).filter((T) => T !== t);
39
+ return n.onSelect && n.onSelect({ expanded: p }), { content: [{ type: "text", text: `Panel "${t}" collapsed.` }] };
40
+ }
41
+ default:
42
+ return { content: [{ type: "text", text: `Unknown command: ${e}` }], isError: !0 };
43
+ }
44
+ };
45
+ for (const e of S) {
46
+ if (!e.enabled)
47
+ continue;
48
+ const r = C(e.commandType), n = e.commandType;
49
+ try {
50
+ d.push(
51
+ b.registerTool({
52
+ name: f(e.name),
53
+ description: e.description,
54
+ inputSchema: r,
55
+ execute: async (t) => h(n, t || {})
56
+ })
57
+ );
58
+ } catch {
59
+ }
60
+ }
61
+ return d;
62
+ }
63
+ };
64
+ export {
65
+ E as panelBarAdapter
66
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { ToolAdapter } from '../types';
9
+ interface PivotGridAdapterProps {
10
+ onExpandChange?: (event: Record<string, unknown>) => void;
11
+ onConfigChange?: (event: Record<string, unknown>) => void;
12
+ webMcp?: unknown;
13
+ }
14
+ /** @hidden */
15
+ export declare const pivotgridAdapter: ToolAdapter<unknown, PivotGridAdapterProps>;
16
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../commands/pivotgrid.js"),E={componentSuffix:"pivotgrid",createTools(d,i,o,h){const m=[],P=n=>`${o.groupName}_${n}`,l=[{name:"set_rows",description:`Set the row fields of the ${o.dataName} pivot grid`,commandType:t.PivotGridCommands.SetRows,enabled:!0},{name:"set_columns",description:`Set the column fields of the ${o.dataName} pivot grid`,commandType:t.PivotGridCommands.SetColumns,enabled:!0},{name:"set_measures",description:`Set the measure fields of the ${o.dataName} pivot grid`,commandType:t.PivotGridCommands.SetMeasures,enabled:!0},{name:"expand",description:`Expand a row or column header in the ${o.dataName} pivot grid`,commandType:t.PivotGridCommands.Expand,enabled:!0},{name:"collapse",description:`Collapse a row or column header in the ${o.dataName} pivot grid`,commandType:t.PivotGridCommands.Collapse,enabled:!0},{name:"export_pdf",description:`Export the ${o.dataName} pivot grid to PDF`,commandType:t.PivotGridCommands.ExportPDF,enabled:!0}],r=i.current.webMcp,c=typeof r=="object"&&r!==null&&typeof r.tools=="function"?r.tools:void 0,S=c?c(l):l,$=async(n,e)=>{var a,s,u,p,v,y,x,f,C,g;switch(n){case t.PivotGridCommands.SetRows:return(s=(a=i.current).onConfigChange)==null||s.call(a,{type:"rows",fields:e.fields,syntheticEvent:null,target:d}),{content:[{type:"text",text:`Pivot grid rows set to: ${JSON.stringify(e.fields)}.`}]};case t.PivotGridCommands.SetColumns:return(p=(u=i.current).onConfigChange)==null||p.call(u,{type:"columns",fields:e.fields,syntheticEvent:null,target:d}),{content:[{type:"text",text:`Pivot grid columns set to: ${JSON.stringify(e.fields)}.`}]};case t.PivotGridCommands.SetMeasures:return(y=(v=i.current).onConfigChange)==null||y.call(v,{type:"measures",fields:e.fields,syntheticEvent:null,target:d}),{content:[{type:"text",text:`Pivot grid measures set to: ${JSON.stringify(e.fields)}.`}]};case t.PivotGridCommands.Expand:return(f=(x=i.current).onExpandChange)==null||f.call(x,{field:e.field,value:e.value,expanded:!0,syntheticEvent:null,target:d}),{content:[{type:"text",text:`Expanded "${String(e.field)}: ${String(e.value)}".`}]};case t.PivotGridCommands.Collapse:return(g=(C=i.current).onExpandChange)==null||g.call(C,{field:e.field,value:e.value,expanded:!1,syntheticEvent:null,target:d}),{content:[{type:"text",text:`Collapsed "${String(e.field)}: ${String(e.value)}".`}]};case t.PivotGridCommands.ExportPDF:return{content:[{type:"text",text:"Pivot grid PDF export initiated."}]};default:return{content:[{type:"text",text:`Unknown command: ${n}`}],isError:!0}}};for(const n of S){if(!n.enabled)continue;const e=t.getPivotGridToolSchema(n.commandType),a=n.commandType;try{m.push(h.registerTool({name:P(n.name),description:n.description,inputSchema:e,execute:async s=>$(a,s||{})}))}catch{}}return m}};exports.pivotgridAdapter=E;
@@ -0,0 +1,126 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { PivotGridCommands as t, getPivotGridToolSchema as w } from "../commands/pivotgrid.mjs";
9
+ const b = {
10
+ componentSuffix: "pivotgrid",
11
+ createTools(a, i, o, g) {
12
+ const l = [], C = (n) => `${o.groupName}_${n}`, c = [
13
+ {
14
+ name: "set_rows",
15
+ description: `Set the row fields of the ${o.dataName} pivot grid`,
16
+ commandType: t.SetRows,
17
+ enabled: !0
18
+ },
19
+ {
20
+ name: "set_columns",
21
+ description: `Set the column fields of the ${o.dataName} pivot grid`,
22
+ commandType: t.SetColumns,
23
+ enabled: !0
24
+ },
25
+ {
26
+ name: "set_measures",
27
+ description: `Set the measure fields of the ${o.dataName} pivot grid`,
28
+ commandType: t.SetMeasures,
29
+ enabled: !0
30
+ },
31
+ {
32
+ name: "expand",
33
+ description: `Expand a row or column header in the ${o.dataName} pivot grid`,
34
+ commandType: t.Expand,
35
+ enabled: !0
36
+ },
37
+ {
38
+ name: "collapse",
39
+ description: `Collapse a row or column header in the ${o.dataName} pivot grid`,
40
+ commandType: t.Collapse,
41
+ enabled: !0
42
+ },
43
+ {
44
+ name: "export_pdf",
45
+ description: `Export the ${o.dataName} pivot grid to PDF`,
46
+ commandType: t.ExportPDF,
47
+ enabled: !0
48
+ }
49
+ ], r = i.current.webMcp, u = typeof r == "object" && r !== null && typeof r.tools == "function" ? r.tools : void 0, $ = u ? u(c) : c, E = async (n, e) => {
50
+ var d, s, p, m, x, y, f, v, h, S;
51
+ switch (n) {
52
+ case t.SetRows:
53
+ return (s = (d = i.current).onConfigChange) == null || s.call(d, {
54
+ type: "rows",
55
+ fields: e.fields,
56
+ syntheticEvent: null,
57
+ target: a
58
+ }), {
59
+ content: [{ type: "text", text: `Pivot grid rows set to: ${JSON.stringify(e.fields)}.` }]
60
+ };
61
+ case t.SetColumns:
62
+ return (m = (p = i.current).onConfigChange) == null || m.call(p, {
63
+ type: "columns",
64
+ fields: e.fields,
65
+ syntheticEvent: null,
66
+ target: a
67
+ }), {
68
+ content: [{ type: "text", text: `Pivot grid columns set to: ${JSON.stringify(e.fields)}.` }]
69
+ };
70
+ case t.SetMeasures:
71
+ return (y = (x = i.current).onConfigChange) == null || y.call(x, {
72
+ type: "measures",
73
+ fields: e.fields,
74
+ syntheticEvent: null,
75
+ target: a
76
+ }), {
77
+ content: [{ type: "text", text: `Pivot grid measures set to: ${JSON.stringify(e.fields)}.` }]
78
+ };
79
+ case t.Expand:
80
+ return (v = (f = i.current).onExpandChange) == null || v.call(f, {
81
+ field: e.field,
82
+ value: e.value,
83
+ expanded: !0,
84
+ syntheticEvent: null,
85
+ target: a
86
+ }), {
87
+ content: [{ type: "text", text: `Expanded "${String(e.field)}: ${String(e.value)}".` }]
88
+ };
89
+ case t.Collapse:
90
+ return (S = (h = i.current).onExpandChange) == null || S.call(h, {
91
+ field: e.field,
92
+ value: e.value,
93
+ expanded: !1,
94
+ syntheticEvent: null,
95
+ target: a
96
+ }), {
97
+ content: [{ type: "text", text: `Collapsed "${String(e.field)}: ${String(e.value)}".` }]
98
+ };
99
+ case t.ExportPDF:
100
+ return { content: [{ type: "text", text: "Pivot grid PDF export initiated." }] };
101
+ default:
102
+ return { content: [{ type: "text", text: `Unknown command: ${n}` }], isError: !0 };
103
+ }
104
+ };
105
+ for (const n of $) {
106
+ if (!n.enabled)
107
+ continue;
108
+ const e = w(n.commandType), d = n.commandType;
109
+ try {
110
+ l.push(
111
+ g.registerTool({
112
+ name: C(n.name),
113
+ description: n.description,
114
+ inputSchema: e,
115
+ execute: async (s) => E(d, s || {})
116
+ })
117
+ );
118
+ } catch {
119
+ }
120
+ }
121
+ return l;
122
+ }
123
+ };
124
+ export {
125
+ b as pivotgridAdapter
126
+ };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { ToolAdapter } from '../types';
9
+ interface RangeSliderAdapterProps {
10
+ value?: {
11
+ start: number;
12
+ end: number;
13
+ };
14
+ min?: number;
15
+ max?: number;
16
+ onChange?: (event: Record<string, unknown>) => void;
17
+ webMcp?: unknown;
18
+ }
19
+ /** @hidden */
20
+ export declare const rangeSliderAdapter: ToolAdapter<unknown, RangeSliderAdapterProps>;
21
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../commands/rangeslider.js"),y={componentSuffix:"rangeslider",createTools(d,r,c,m){const s=[],p=e=>`${c.groupName}_${e}`,l=r.current,i=[{name:"set_value",description:`Set the ${c.dataName} range slider values.`,commandType:a.RangeSliderCommands.SetValue,enabled:!!l.onChange}],n=l.webMcp,u=typeof n=="object"&&n!==null&&typeof n.tools=="function"?n.tools:void 0,g=u?u(i):i,S=async(e,t)=>{if(e===a.RangeSliderCommands.SetValue){const o=r.current;return o.onChange&&o.onChange({value:{start:t.startValue,end:t.endValue},syntheticEvent:null,target:d}),{content:[{type:"text",text:`Range set to ${String(t.startValue)}-${String(t.endValue)}.`}]}}return{content:[{type:"text",text:`Unknown command: ${e}`}],isError:!0}};for(const e of g){if(!e.enabled)continue;const t=e.commandType;try{s.push(m.registerTool({name:p(e.name),description:e.description,inputSchema:a.getRangeSliderToolSchema(t),execute:async o=>S(t,o||{})}))}catch{}}return s}};exports.rangeSliderAdapter=y;
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { RangeSliderCommands as u, getRangeSliderToolSchema as S } from "../commands/rangeslider.mjs";
9
+ const h = {
10
+ componentSuffix: "rangeslider",
11
+ createTools(d, a, r, m) {
12
+ const c = [], p = (e) => `${r.groupName}_${e}`, s = a.current, l = [
13
+ {
14
+ name: "set_value",
15
+ description: `Set the ${r.dataName} range slider values.`,
16
+ commandType: u.SetValue,
17
+ enabled: !!s.onChange
18
+ }
19
+ ], n = s.webMcp, i = typeof n == "object" && n !== null && typeof n.tools == "function" ? n.tools : void 0, g = i ? i(l) : l, f = async (e, t) => {
20
+ if (e === u.SetValue) {
21
+ const o = a.current;
22
+ return o.onChange && o.onChange({
23
+ value: { start: t.startValue, end: t.endValue },
24
+ syntheticEvent: null,
25
+ target: d
26
+ }), {
27
+ content: [
28
+ { type: "text", text: `Range set to ${String(t.startValue)}-${String(t.endValue)}.` }
29
+ ]
30
+ };
31
+ }
32
+ return { content: [{ type: "text", text: `Unknown command: ${e}` }], isError: !0 };
33
+ };
34
+ for (const e of g) {
35
+ if (!e.enabled)
36
+ continue;
37
+ const t = e.commandType;
38
+ try {
39
+ c.push(
40
+ m.registerTool({
41
+ name: p(e.name),
42
+ description: e.description,
43
+ inputSchema: S(t),
44
+ execute: async (o) => f(t, o || {})
45
+ })
46
+ );
47
+ } catch {
48
+ }
49
+ }
50
+ return c;
51
+ }
52
+ };
53
+ export {
54
+ h as rangeSliderAdapter
55
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { ToolAdapter } from '../types';
9
+ interface RatingAdapterProps {
10
+ value?: number;
11
+ onChange?: (event: Record<string, unknown>) => void;
12
+ webMcp?: unknown;
13
+ }
14
+ /** @hidden */
15
+ export declare const ratingAdapter: ToolAdapter<unknown, RatingAdapterProps>;
16
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../commands/rating.js"),y={componentSuffix:"rating",createTools(s,c,r,g){const l=[],d=t=>`${r.groupName}_${t}`,i=c.current,u=[{name:"set_value",description:`Set the ${r.dataName} rating to a specific value.`,commandType:a.RatingCommands.SetValue,enabled:!!i.onChange},{name:"clear",description:`Clear the ${r.dataName} rating.`,commandType:a.RatingCommands.Clear,enabled:!!i.onChange}],o=i.webMcp,m=typeof o=="object"&&o!==null&&typeof o.tools=="function"?o.tools:void 0,p=m?m(u):u,C=async(t,n)=>{switch(t){case a.RatingCommands.SetValue:{const e=c.current;return e.onChange&&e.onChange({value:n.value,syntheticEvent:null,target:s}),{content:[{type:"text",text:`Rating set to ${String(n.value)}.`}]}}case a.RatingCommands.Clear:{const e=c.current;return e.onChange&&e.onChange({value:null,syntheticEvent:null,target:s}),{content:[{type:"text",text:"Rating cleared."}]}}default:return{content:[{type:"text",text:`Unknown command: ${t}`}],isError:!0}}};for(const t of p){if(!t.enabled)continue;const n=t.commandType;try{l.push(g.registerTool({name:d(t.name),description:t.description,inputSchema:a.getRatingToolSchema(n),execute:async e=>C(n,e||{})}))}catch{}}return l}};exports.ratingAdapter=y;
@@ -0,0 +1,60 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { RatingCommands as a, getRatingToolSchema as y } from "../commands/rating.mjs";
9
+ const f = {
10
+ componentSuffix: "rating",
11
+ createTools(i, c, r, p) {
12
+ const l = [], g = (t) => `${r.groupName}_${t}`, s = c.current, u = [
13
+ {
14
+ name: "set_value",
15
+ description: `Set the ${r.dataName} rating to a specific value.`,
16
+ commandType: a.SetValue,
17
+ enabled: !!s.onChange
18
+ },
19
+ {
20
+ name: "clear",
21
+ description: `Clear the ${r.dataName} rating.`,
22
+ commandType: a.Clear,
23
+ enabled: !!s.onChange
24
+ }
25
+ ], o = s.webMcp, m = typeof o == "object" && o !== null && typeof o.tools == "function" ? o.tools : void 0, d = m ? m(u) : u, h = async (t, n) => {
26
+ switch (t) {
27
+ case a.SetValue: {
28
+ const e = c.current;
29
+ return e.onChange && e.onChange({ value: n.value, syntheticEvent: null, target: i }), { content: [{ type: "text", text: `Rating set to ${String(n.value)}.` }] };
30
+ }
31
+ case a.Clear: {
32
+ const e = c.current;
33
+ return e.onChange && e.onChange({ value: null, syntheticEvent: null, target: i }), { content: [{ type: "text", text: "Rating cleared." }] };
34
+ }
35
+ default:
36
+ return { content: [{ type: "text", text: `Unknown command: ${t}` }], isError: !0 };
37
+ }
38
+ };
39
+ for (const t of d) {
40
+ if (!t.enabled)
41
+ continue;
42
+ const n = t.commandType;
43
+ try {
44
+ l.push(
45
+ p.registerTool({
46
+ name: g(t.name),
47
+ description: t.description,
48
+ inputSchema: y(n),
49
+ execute: async (e) => h(n, e || {})
50
+ })
51
+ );
52
+ } catch {
53
+ }
54
+ }
55
+ return l;
56
+ }
57
+ };
58
+ export {
59
+ f as ratingAdapter
60
+ };