@progress/kendo-react-webmcp 15.0.1-develop.3 → 15.0.1-develop.4

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 (78) hide show
  1. package/WebMcpProvider.js +1 -1
  2. package/WebMcpProvider.mjs +84 -80
  3. package/adapters/button.d.ts +1 -1
  4. package/adapters/button.js +1 -1
  5. package/adapters/button.mjs +12 -17
  6. package/adapters/{dashboard.d.ts → checkbox.d.ts} +5 -6
  7. package/adapters/checkbox.js +8 -0
  8. package/adapters/checkbox.mjs +60 -0
  9. package/adapters/dropdowntree.js +1 -1
  10. package/adapters/dropdowntree.mjs +78 -51
  11. package/adapters/editor.d.ts +0 -1
  12. package/adapters/editor.js +1 -1
  13. package/adapters/editor.mjs +38 -46
  14. package/adapters/form.d.ts +1 -0
  15. package/adapters/form.js +3 -3
  16. package/adapters/form.mjs +75 -49
  17. package/adapters/gantt.d.ts +2 -0
  18. package/adapters/gantt.js +1 -1
  19. package/adapters/gantt.mjs +188 -140
  20. package/adapters/grid.d.ts +0 -1
  21. package/adapters/grid.js +1 -1
  22. package/adapters/grid.mjs +52 -60
  23. package/adapters/multicolumncombobox.d.ts +20 -0
  24. package/adapters/multicolumncombobox.js +8 -0
  25. package/adapters/multicolumncombobox.mjs +75 -0
  26. package/adapters/multiselect.d.ts +2 -0
  27. package/adapters/multiselect.js +1 -1
  28. package/adapters/multiselect.mjs +46 -30
  29. package/adapters/notification.js +1 -1
  30. package/adapters/notification.mjs +14 -14
  31. package/adapters/pivotgrid.js +1 -1
  32. package/adapters/pivotgrid.mjs +39 -47
  33. package/adapters/scheduler.js +1 -1
  34. package/adapters/scheduler.mjs +137 -92
  35. package/adapters/spreadsheet.js +1 -1
  36. package/adapters/spreadsheet.mjs +3 -3
  37. package/adapters/switch.js +1 -1
  38. package/adapters/switch.mjs +29 -19
  39. package/adapters/treeview.js +2 -2
  40. package/adapters/treeview.mjs +79 -113
  41. package/adapters/window.d.ts +0 -2
  42. package/adapters/window.js +1 -1
  43. package/adapters/window.mjs +29 -63
  44. package/commands/form.d.ts +4 -1
  45. package/commands/form.js +1 -1
  46. package/commands/form.mjs +11 -7
  47. package/commands/gantt.js +1 -1
  48. package/commands/gantt.mjs +14 -10
  49. package/commands/grid.d.ts +0 -4
  50. package/commands/grid.js +1 -1
  51. package/commands/grid.mjs +18 -24
  52. package/commands/index.d.ts +0 -1
  53. package/commands/pivotgrid.d.ts +0 -4
  54. package/commands/pivotgrid.js +1 -1
  55. package/commands/pivotgrid.mjs +6 -12
  56. package/commands/scheduler.d.ts +10 -0
  57. package/commands/scheduler.js +1 -1
  58. package/commands/scheduler.mjs +16 -4
  59. package/commands/window.d.ts +0 -8
  60. package/commands/window.js +1 -1
  61. package/commands/window.mjs +8 -18
  62. package/dist/cdn/js/kendo-react-webmcp.js +1 -1
  63. package/index.d.mts +2 -1
  64. package/index.d.ts +2 -1
  65. package/index.js +1 -1
  66. package/index.mjs +248 -249
  67. package/package.json +3 -3
  68. package/schemas/gantt.d.ts +4 -0
  69. package/schemas/gantt.js +1 -1
  70. package/schemas/gantt.mjs +93 -8
  71. package/schemas/scheduler.d.ts +2 -0
  72. package/schemas/scheduler.js +1 -1
  73. package/schemas/scheduler.mjs +21 -5
  74. package/adapters/dashboard.js +0 -8
  75. package/adapters/dashboard.mjs +0 -41
  76. package/commands/dashboard.d.ts +0 -19
  77. package/commands/dashboard.js +0 -8
  78. package/commands/dashboard.mjs +0 -21
package/schemas/gantt.mjs CHANGED
@@ -5,8 +5,7 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { getFilterSchema as t } from "./common.mjs";
9
- function i() {
8
+ function e() {
10
9
  return {
11
10
  type: "object",
12
11
  properties: {
@@ -19,7 +18,7 @@ function i() {
19
18
  required: ["view"]
20
19
  };
21
20
  }
22
- function a() {
21
+ function i() {
23
22
  return {
24
23
  type: "object",
25
24
  properties: {
@@ -41,11 +40,97 @@ function a() {
41
40
  required: ["title"]
42
41
  };
43
42
  }
44
- function n(e) {
45
- return t(e);
43
+ function r(t) {
44
+ return {
45
+ type: "object",
46
+ properties: {
47
+ field: {
48
+ type: "string",
49
+ description: "The field used to identify the task to delete (use with operator and value)",
50
+ enum: t.length > 0 ? t : void 0
51
+ },
52
+ operator: {
53
+ type: "string",
54
+ description: "Filter operator to match the task",
55
+ enum: ["eq", "neq", "contains", "startswith", "gt", "gte", "lt", "lte"]
56
+ },
57
+ value: {
58
+ description: "The value to match in the field"
59
+ },
60
+ id: {
61
+ description: "The task ID (alternative to field/operator/value)"
62
+ }
63
+ }
64
+ };
65
+ }
66
+ function o(t) {
67
+ return {
68
+ type: "object",
69
+ properties: {
70
+ field: {
71
+ type: "string",
72
+ description: "The field used to identify the task to update (use with operator and value)",
73
+ enum: t.length > 0 ? t : void 0
74
+ },
75
+ operator: {
76
+ type: "string",
77
+ description: "Filter operator to match the task",
78
+ enum: ["eq", "contains", "startswith"]
79
+ },
80
+ value: {
81
+ description: "The value to match in the field"
82
+ },
83
+ id: {
84
+ description: "The task ID (alternative to field/operator/value)"
85
+ },
86
+ title: {
87
+ type: "string",
88
+ description: "New title for the task"
89
+ },
90
+ start: {
91
+ type: "string",
92
+ format: "date-time",
93
+ description: "New start date (ISO 8601)"
94
+ },
95
+ end: {
96
+ type: "string",
97
+ format: "date-time",
98
+ description: "New end date (ISO 8601)"
99
+ },
100
+ percentComplete: {
101
+ type: "number",
102
+ description: "New percent complete (0-1)"
103
+ }
104
+ }
105
+ };
106
+ }
107
+ function a(t) {
108
+ return {
109
+ type: "object",
110
+ properties: {
111
+ field: {
112
+ type: "string",
113
+ description: "The field used to identify the task to select (use with operator and value)",
114
+ enum: t.length > 0 ? t : void 0
115
+ },
116
+ operator: {
117
+ type: "string",
118
+ description: "Filter operator to match the task",
119
+ enum: ["eq", "neq", "contains", "startswith", "gt", "gte", "lt", "lte"]
120
+ },
121
+ value: {
122
+ description: "The value to match in the field"
123
+ },
124
+ id: {
125
+ description: "The task ID (alternative to field/operator/value)"
126
+ }
127
+ }
128
+ };
46
129
  }
47
130
  export {
48
- i as getChangeViewSchema,
49
- a as getCreateTaskSchema,
50
- n as getDeleteTaskSchema
131
+ e as getChangeViewSchema,
132
+ i as getCreateTaskSchema,
133
+ r as getDeleteTaskSchema,
134
+ a as getSelectTaskSchema,
135
+ o as getUpdateTaskSchema
51
136
  };
@@ -6,6 +6,8 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  export declare function getCreateSchema(): object;
9
+ /** @hidden */
10
+ export declare function getUpdateSchema(): object;
9
11
  export declare function getDeleteSchema(): object;
10
12
  export declare function getNavigateSchema(): object;
11
13
  export declare function getViewSchema(): object;
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["Day","MultiDay","Week","Month","Timeline","Agenda"];function t(){return{type:"object",properties:{title:{type:"string",description:"Title of the new event"},start:{type:"string",description:'Start date and time in ISO 8601 format (e.g. "2026-04-08T09:00:00")'},end:{type:"string",description:'End date and time in ISO 8601 format (e.g. "2026-04-08T10:00:00")'},isAllDay:{type:"boolean",description:"Whether the event spans the entire day"},description:{type:"string",description:"Optional description of the event"}},required:["title","start","end"]}}function i(){return{type:"object",properties:{title:{type:"string",description:"Title of the event to delete"},start:{type:"string",description:"Start date/time of the event to identify it (ISO 8601)"}},required:["title"]}}function r(){return{type:"object",properties:{date:{type:"string",description:'Date to navigate to in ISO 8601 format (e.g. "2026-04-15")'}},required:["date"]}}function n(){return{type:"object",properties:{view:{type:"string",enum:e,description:"The scheduler view to switch to"}},required:["view"]}}exports.getCreateSchema=t;exports.getDeleteSchema=i;exports.getNavigateSchema=r;exports.getViewSchema=n;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["Day","MultiDay","Week","Month","Timeline","Agenda"];function t(){return{type:"object",properties:{title:{type:"string",description:"Title of the new event"},start:{type:"string",description:'Start date and time in ISO 8601 format (e.g. "2026-04-08T09:00:00")'},end:{type:"string",description:'End date and time in ISO 8601 format (e.g. "2026-04-08T10:00:00")'},isAllDay:{type:"boolean",description:"Whether the event spans the entire day"},description:{type:"string",description:"Optional description of the event"}},required:["title","start","end"]}}function i(){return{type:"object",properties:{title:{type:"string",description:"Title of the event to update (used to find the event)"},start:{type:"string",description:"Current start date/time to identify the event (ISO 8601)"},newTitle:{type:"string",description:"New title for the event"},newStart:{type:"string",description:"New start date-time in ISO 8601 format"},newEnd:{type:"string",description:"New end date-time in ISO 8601 format"},isAllDay:{type:"boolean",description:"Whether the event spans the entire day"},description:{type:"string",description:"New description for the event"}},required:["title"]}}function n(){return{type:"object",properties:{title:{type:"string",description:"Title of the event to delete"},start:{type:"string",description:"Start date/time of the event to identify it (ISO 8601)"}},required:["title"]}}function r(){return{type:"object",properties:{date:{type:"string",description:'Date to navigate to in ISO 8601 format (e.g. "2026-04-15")'}},required:["date"]}}function o(){return{type:"object",properties:{view:{type:"string",enum:e,description:"The scheduler view to switch to"}},required:["view"]}}exports.getCreateSchema=t;exports.getDeleteSchema=n;exports.getNavigateSchema=r;exports.getUpdateSchema=i;exports.getViewSchema=o;
@@ -23,6 +23,21 @@ function t() {
23
23
  };
24
24
  }
25
25
  function i() {
26
+ return {
27
+ type: "object",
28
+ properties: {
29
+ title: { type: "string", description: "Title of the event to update (used to find the event)" },
30
+ start: { type: "string", description: "Current start date/time to identify the event (ISO 8601)" },
31
+ newTitle: { type: "string", description: "New title for the event" },
32
+ newStart: { type: "string", description: "New start date-time in ISO 8601 format" },
33
+ newEnd: { type: "string", description: "New end date-time in ISO 8601 format" },
34
+ isAllDay: { type: "boolean", description: "Whether the event spans the entire day" },
35
+ description: { type: "string", description: "New description for the event" }
36
+ },
37
+ required: ["title"]
38
+ };
39
+ }
40
+ function n() {
26
41
  return {
27
42
  type: "object",
28
43
  properties: {
@@ -32,7 +47,7 @@ function i() {
32
47
  required: ["title"]
33
48
  };
34
49
  }
35
- function n() {
50
+ function r() {
36
51
  return {
37
52
  type: "object",
38
53
  properties: {
@@ -41,7 +56,7 @@ function n() {
41
56
  required: ["date"]
42
57
  };
43
58
  }
44
- function r() {
59
+ function o() {
45
60
  return {
46
61
  type: "object",
47
62
  properties: {
@@ -52,7 +67,8 @@ function r() {
52
67
  }
53
68
  export {
54
69
  t as getCreateSchema,
55
- i as getDeleteSchema,
56
- n as getNavigateSchema,
57
- r as getViewSchema
70
+ n as getDeleteSchema,
71
+ r as getNavigateSchema,
72
+ i as getUpdateSchema,
73
+ o as getViewSchema
58
74
  };
@@ -1,8 +0,0 @@
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/dashboard.js"),y={componentSuffix:"dashboard",createTools(t,r,s,i){const a=[],m=o=>`${s.groupName}_${o}`,u=!!r.current.pdf,c=[{name:"export_pdf",description:`Export the ${s.dataName} dashboard to PDF`,commandType:n.DashboardCommands.ExportPDF,enabled:u}],e=r.current.webMcp,d=typeof e=="object"&&e!==null&&typeof e.tools=="function"?e.tools:void 0,b=d?d(c):c,f=async(o,p)=>o===n.DashboardCommands.ExportPDF?(t!=null&&t.exportAsPdf&&t.exportAsPdf(),{content:[{type:"text",text:"Dashboard PDF export initiated."}]}):{content:[{type:"text",text:`Unknown command: ${o}`}],isError:!0};for(const o of b){if(!o.enabled)continue;const p=n.getDashboardToolSchema(o.commandType),l=o.commandType;try{a.push(i.registerTool({name:m(o.name),description:o.description,inputSchema:p,execute:async x=>f(l,x||{})}))}catch{}}return a}};exports.dashboardAdapter=y;
@@ -1,41 +0,0 @@
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 { DashboardCommands as d, getDashboardToolSchema as y } from "../commands/dashboard.mjs";
9
- const P = {
10
- componentSuffix: "dashboard",
11
- createTools(t, n, r, i) {
12
- const s = [], m = (o) => `${r.groupName}_${o}`, f = !!n.current.pdf, c = [
13
- {
14
- name: "export_pdf",
15
- description: `Export the ${r.dataName} dashboard to PDF`,
16
- commandType: d.ExportPDF,
17
- enabled: f
18
- }
19
- ], e = n.current.webMcp, a = typeof e == "object" && e !== null && typeof e.tools == "function" ? e.tools : void 0, u = a ? a(c) : c, x = async (o, p) => o === d.ExportPDF ? (t != null && t.exportAsPdf && t.exportAsPdf(), { content: [{ type: "text", text: "Dashboard PDF export initiated." }] }) : { content: [{ type: "text", text: `Unknown command: ${o}` }], isError: !0 };
20
- for (const o of u) {
21
- if (!o.enabled)
22
- continue;
23
- const p = y(o.commandType), b = o.commandType;
24
- try {
25
- s.push(
26
- i.registerTool({
27
- name: m(o.name),
28
- description: o.description,
29
- inputSchema: p,
30
- execute: async (l) => x(b, l || {})
31
- })
32
- );
33
- } catch {
34
- }
35
- }
36
- return s;
37
- }
38
- };
39
- export {
40
- P as dashboardAdapter
41
- };
@@ -1,19 +0,0 @@
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
- /**
9
- * Command constants for the Dashboard component.
10
- * These commands allow AI agents to export the entire dashboard layout as a PDF document.
11
- */
12
- export declare const DashboardCommands: {
13
- /**
14
- * Exports the Dashboard and all its tiles as a PDF document.
15
- */
16
- readonly ExportPDF: "DashboardExportPDF";
17
- };
18
- /** @hidden */
19
- export declare function getDashboardToolSchema(_commandType: string): object;
@@ -1,8 +0,0 @@
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("../schemas/common.js"),a={ExportPDF:"DashboardExportPDF"};function e(t){return o.getEmptySchema()}exports.DashboardCommands=a;exports.getDashboardToolSchema=e;
@@ -1,21 +0,0 @@
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 { getEmptySchema as o } from "../schemas/common.mjs";
9
- const t = {
10
- /**
11
- * Exports the Dashboard and all its tiles as a PDF document.
12
- */
13
- ExportPDF: "DashboardExportPDF"
14
- };
15
- function m(a) {
16
- return o();
17
- }
18
- export {
19
- t as DashboardCommands,
20
- m as getDashboardToolSchema
21
- };