@progress/kendo-react-webmcp 15.0.1-develop.3 → 15.0.1-develop.5
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.
- package/WebMcpProvider.js +1 -1
- package/WebMcpProvider.mjs +84 -80
- package/adapters/button.d.ts +1 -1
- package/adapters/button.js +1 -1
- package/adapters/button.mjs +12 -17
- package/adapters/{dashboard.d.ts → checkbox.d.ts} +5 -6
- package/adapters/checkbox.js +8 -0
- package/adapters/checkbox.mjs +60 -0
- package/adapters/dropdowntree.js +1 -1
- package/adapters/dropdowntree.mjs +78 -51
- package/adapters/editor.d.ts +0 -1
- package/adapters/editor.js +1 -1
- package/adapters/editor.mjs +38 -46
- package/adapters/form.d.ts +1 -0
- package/adapters/form.js +3 -3
- package/adapters/form.mjs +75 -49
- package/adapters/gantt.d.ts +2 -0
- package/adapters/gantt.js +1 -1
- package/adapters/gantt.mjs +188 -140
- package/adapters/grid.d.ts +0 -1
- package/adapters/grid.js +1 -1
- package/adapters/grid.mjs +52 -60
- package/adapters/multicolumncombobox.d.ts +20 -0
- package/adapters/multicolumncombobox.js +8 -0
- package/adapters/multicolumncombobox.mjs +75 -0
- package/adapters/multiselect.d.ts +2 -0
- package/adapters/multiselect.js +1 -1
- package/adapters/multiselect.mjs +46 -30
- package/adapters/notification.js +1 -1
- package/adapters/notification.mjs +14 -14
- package/adapters/pivotgrid.js +1 -1
- package/adapters/pivotgrid.mjs +39 -47
- package/adapters/scheduler.js +1 -1
- package/adapters/scheduler.mjs +137 -92
- package/adapters/spreadsheet.js +1 -1
- package/adapters/spreadsheet.mjs +3 -3
- package/adapters/switch.js +1 -1
- package/adapters/switch.mjs +29 -19
- package/adapters/treeview.js +2 -2
- package/adapters/treeview.mjs +79 -113
- package/adapters/window.d.ts +0 -2
- package/adapters/window.js +1 -1
- package/adapters/window.mjs +29 -63
- package/commands/form.d.ts +4 -1
- package/commands/form.js +1 -1
- package/commands/form.mjs +11 -7
- package/commands/gantt.js +1 -1
- package/commands/gantt.mjs +14 -10
- package/commands/grid.d.ts +0 -4
- package/commands/grid.js +1 -1
- package/commands/grid.mjs +18 -24
- package/commands/index.d.ts +0 -1
- package/commands/pivotgrid.d.ts +0 -4
- package/commands/pivotgrid.js +1 -1
- package/commands/pivotgrid.mjs +6 -12
- package/commands/scheduler.d.ts +10 -0
- package/commands/scheduler.js +1 -1
- package/commands/scheduler.mjs +16 -4
- package/commands/window.d.ts +0 -8
- package/commands/window.js +1 -1
- package/commands/window.mjs +8 -18
- package/dist/cdn/js/kendo-react-webmcp.js +1 -1
- package/index.d.mts +2 -1
- package/index.d.ts +2 -1
- package/index.js +1 -1
- package/index.mjs +248 -249
- package/package.json +3 -3
- package/schemas/gantt.d.ts +4 -0
- package/schemas/gantt.js +1 -1
- package/schemas/gantt.mjs +93 -8
- package/schemas/scheduler.d.ts +2 -0
- package/schemas/scheduler.js +1 -1
- package/schemas/scheduler.mjs +21 -5
- package/adapters/dashboard.js +0 -8
- package/adapters/dashboard.mjs +0 -41
- package/commands/dashboard.d.ts +0 -19
- package/commands/dashboard.js +0 -8
- package/commands/dashboard.mjs +0 -21
package/commands/form.mjs
CHANGED
|
@@ -5,13 +5,16 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { getEmptySchema as
|
|
8
|
+
import { getEmptySchema as i } from "../schemas/common.mjs";
|
|
9
9
|
const e = {
|
|
10
10
|
/**
|
|
11
11
|
* Fills one or more form fields with the specified values.
|
|
12
12
|
*
|
|
13
13
|
* Parameters:
|
|
14
|
-
* - `values` *(object,
|
|
14
|
+
* - `values` *(object, recommended)* — Key-value pairs of field names to values.
|
|
15
|
+
*
|
|
16
|
+
* The command also accepts a flat object payload where field names are passed directly
|
|
17
|
+
* as top-level properties (for example `{ firstName: 'John' }`).
|
|
15
18
|
*/
|
|
16
19
|
Fill: "FormFill",
|
|
17
20
|
/**
|
|
@@ -27,8 +30,8 @@ const e = {
|
|
|
27
30
|
*/
|
|
28
31
|
Reset: "FormReset"
|
|
29
32
|
};
|
|
30
|
-
function a(
|
|
31
|
-
switch (
|
|
33
|
+
function a(o, t) {
|
|
34
|
+
switch (o) {
|
|
32
35
|
case e.Fill:
|
|
33
36
|
return {
|
|
34
37
|
type: "object",
|
|
@@ -38,14 +41,15 @@ function a(i, t) {
|
|
|
38
41
|
description: `Key-value pairs of field names to values.${t && t.length > 0 ? ` Available fields: ${t.join(", ")}.` : ""}`
|
|
39
42
|
}
|
|
40
43
|
},
|
|
41
|
-
|
|
44
|
+
additionalProperties: !0,
|
|
45
|
+
description: "Provide either a `values` object, or pass field/value pairs directly as top-level properties."
|
|
42
46
|
};
|
|
43
47
|
case e.Validate:
|
|
44
48
|
case e.Submit:
|
|
45
49
|
case e.Reset:
|
|
46
|
-
return
|
|
50
|
+
return i();
|
|
47
51
|
default:
|
|
48
|
-
return
|
|
52
|
+
return i();
|
|
49
53
|
}
|
|
50
54
|
}
|
|
51
55
|
export {
|
package/commands/gantt.js
CHANGED
|
@@ -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 t=require("../schemas/common.js"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../schemas/common.js"),l=require("../schemas/table.js"),n=require("../schemas/gantt.js"),e={Filter:"GanttFilter",ClearFilter:"GanttClearFilter",Sort:"GanttSort",ClearSort:"GanttClearSort",ColumnReorder:"GanttColumnReorder",ColumnResize:"GanttColumnResize",ColumnShow:"GanttColumnShow",ColumnHide:"GanttColumnHide",Expand:"GanttExpand",Collapse:"GanttCollapse",ExpandAll:"GanttExpandAll",CollapseAll:"GanttCollapseAll",ChangeView:"GanttChangeView",CreateTask:"GanttCreateTask",DeleteTask:"GanttDeleteTask"};function m(c,s){const a=s.map(o=>o.field).filter(Boolean),r=s.map(o=>o.id).filter(Boolean);switch(c){case e.Filter:return t.getFilterSchema(a);case e.ClearFilter:return t.getEmptySchema();case e.Sort:return t.getSortSchema(a);case e.ClearSort:return t.getEmptySchema();case e.ColumnReorder:return l.getColumnReorderSchema(r);case e.ColumnResize:return l.getColumnResizeSchema(r);case e.ColumnShow:return l.getColumnIdSchema(r);case e.ColumnHide:return l.getColumnIdSchema(r);case e.Expand:return t.getExpandCollapseSchema(a);case e.Collapse:return t.getExpandCollapseSchema(a);case e.ExpandAll:return t.getEmptySchema();case e.CollapseAll:return t.getEmptySchema();case e.ChangeView:return n.getChangeViewSchema();case e.CreateTask:return n.getCreateTaskSchema();case e.DeleteTask:return n.getDeleteTaskSchema(a);case"GanttUpdateTask":return n.getUpdateTaskSchema(a);case"GanttSelect":return n.getSelectTaskSchema(a);default:return t.getEmptySchema()}}exports.GanttCommands=e;exports.getGanttToolSchema=m;
|
package/commands/gantt.mjs
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { getEmptySchema as a, getExpandCollapseSchema as o, getSortSchema as
|
|
9
|
-
import { getColumnIdSchema as s, getColumnResizeSchema as
|
|
10
|
-
import {
|
|
8
|
+
import { getEmptySchema as a, getExpandCollapseSchema as o, getSortSchema as C, getFilterSchema as c } from "../schemas/common.mjs";
|
|
9
|
+
import { getColumnIdSchema as s, getColumnResizeSchema as u, getColumnReorderSchema as i } from "../schemas/table.mjs";
|
|
10
|
+
import { getSelectTaskSchema as S, getUpdateTaskSchema as d, getDeleteTaskSchema as p, getCreateTaskSchema as h, getChangeViewSchema as G } from "../schemas/gantt.mjs";
|
|
11
11
|
const e = {
|
|
12
12
|
/**
|
|
13
13
|
* Applies a filter to the Gantt data based on column field values.
|
|
@@ -113,21 +113,21 @@ const e = {
|
|
|
113
113
|
*/
|
|
114
114
|
DeleteTask: "GanttDeleteTask"
|
|
115
115
|
};
|
|
116
|
-
function f(
|
|
116
|
+
function f(m, l) {
|
|
117
117
|
const t = l.map((n) => n.field).filter(Boolean), r = l.map((n) => n.id).filter(Boolean);
|
|
118
|
-
switch (
|
|
118
|
+
switch (m) {
|
|
119
119
|
case e.Filter:
|
|
120
|
-
return
|
|
120
|
+
return c(t);
|
|
121
121
|
case e.ClearFilter:
|
|
122
122
|
return a();
|
|
123
123
|
case e.Sort:
|
|
124
|
-
return
|
|
124
|
+
return C(t);
|
|
125
125
|
case e.ClearSort:
|
|
126
126
|
return a();
|
|
127
127
|
case e.ColumnReorder:
|
|
128
128
|
return i(r);
|
|
129
129
|
case e.ColumnResize:
|
|
130
|
-
return
|
|
130
|
+
return u(r);
|
|
131
131
|
case e.ColumnShow:
|
|
132
132
|
return s(r);
|
|
133
133
|
case e.ColumnHide:
|
|
@@ -141,11 +141,15 @@ function f(C, l) {
|
|
|
141
141
|
case e.CollapseAll:
|
|
142
142
|
return a();
|
|
143
143
|
case e.ChangeView:
|
|
144
|
-
return
|
|
144
|
+
return G();
|
|
145
145
|
case e.CreateTask:
|
|
146
|
-
return
|
|
146
|
+
return h();
|
|
147
147
|
case e.DeleteTask:
|
|
148
|
+
return p(t);
|
|
149
|
+
case "GanttUpdateTask":
|
|
148
150
|
return d(t);
|
|
151
|
+
case "GanttSelect":
|
|
152
|
+
return S(t);
|
|
149
153
|
default:
|
|
150
154
|
return a();
|
|
151
155
|
}
|
package/commands/grid.d.ts
CHANGED
|
@@ -129,10 +129,6 @@ export declare const GridCommands: {
|
|
|
129
129
|
* - `columnId` *(string, required)* — The ID of the column to unlock.
|
|
130
130
|
*/
|
|
131
131
|
readonly ColumnUnlock: "GridColumnUnlock";
|
|
132
|
-
/**
|
|
133
|
-
* Exports the Grid data to an Excel file.
|
|
134
|
-
*/
|
|
135
|
-
readonly ExportExcel: "GridExportExcel";
|
|
136
132
|
/**
|
|
137
133
|
* Exports the Grid to a PDF document.
|
|
138
134
|
*/
|
package/commands/grid.js
CHANGED
|
@@ -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 r=require("../schemas/common.js"),a=require("../schemas/table.js"),o=require("../schemas/grid.js"),e={Filter:"GridFilter",ClearFilter:"GridClearFilter",Sort:"GridSort",ClearSort:"GridClearSort",Group:"GridGroup",ClearGroup:"GridClearGroup",Highlight:"GridHighlight",ClearHighlight:"GridClearHighlight",Select:"GridSelect",ClearSelect:"GridClearSelect",Page:"GridPage",PageSize:"GridPageSize",ColumnReorder:"GridColumnReorder",ColumnResize:"GridColumnResize",ColumnShow:"GridColumnShow",ColumnHide:"GridColumnHide",ColumnLock:"GridColumnLock",ColumnUnlock:"GridColumnUnlock",
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../schemas/common.js"),a=require("../schemas/table.js"),o=require("../schemas/grid.js"),e={Filter:"GridFilter",ClearFilter:"GridClearFilter",Sort:"GridSort",ClearSort:"GridClearSort",Group:"GridGroup",ClearGroup:"GridClearGroup",Highlight:"GridHighlight",ClearHighlight:"GridClearHighlight",Select:"GridSelect",ClearSelect:"GridClearSelect",Page:"GridPage",PageSize:"GridPageSize",ColumnReorder:"GridColumnReorder",ColumnResize:"GridColumnResize",ColumnShow:"GridColumnShow",ColumnHide:"GridColumnHide",ColumnLock:"GridColumnLock",ColumnUnlock:"GridColumnUnlock",ExportPDF:"GridExportPDF",ExportCSV:"GridExportCSV",SelectAll:"GridSelectAll",DetailExpand:"GridDetailExpand",DetailCollapse:"GridDetailCollapse",DetailExpandAll:"GridDetailExpandAll",DetailCollapseAll:"GridDetailCollapseAll",GroupExpand:"GridGroupExpand",GroupCollapse:"GridGroupCollapse",GroupExpandAll:"GridGroupExpandAll",GroupCollapseAll:"GridGroupCollapseAll",SetAggregates:"GridSetAggregates",GetData:"GridGetData"};function m(n,i,u=[]){const t=i.map(c=>c.field).filter(Boolean),l=i.map(c=>c.id).filter(Boolean);switch(n){case e.Filter:return r.getFilterSchema(t);case e.ClearFilter:return r.getEmptySchema();case e.Sort:return r.getSortSchema(t);case e.ClearSort:return r.getEmptySchema();case e.Group:return o.getGroupSchema(t);case e.ClearGroup:return r.getEmptySchema();case e.Highlight:return a.getRowMatchSchema(t);case e.ClearHighlight:return r.getEmptySchema();case e.Select:return a.getRowMatchSchema(t);case e.ClearSelect:return r.getEmptySchema();case e.Page:return r.getPageSchema();case e.PageSize:return r.getPageSizeSchema(u);case e.ColumnReorder:return a.getColumnReorderSchema(l);case e.ColumnResize:return a.getColumnResizeSchema(l);case e.ColumnShow:return a.getColumnIdSchema(l);case e.ColumnHide:return a.getColumnIdSchema(l);case e.ColumnLock:return a.getColumnIdSchema(l);case e.ColumnUnlock:return a.getColumnIdSchema(l);case e.ExportPDF:return r.getExportSchema();case e.ExportCSV:return r.getExportSchema();case e.SelectAll:return r.getEmptySchema();case e.DetailExpand:return a.getRowMatchSchema(t);case e.DetailCollapse:return a.getRowMatchSchema(t);case e.DetailExpandAll:return r.getEmptySchema();case e.DetailCollapseAll:return r.getEmptySchema();case e.GroupExpand:return o.getGroupExpandSchema(t);case e.GroupCollapse:return o.getGroupExpandSchema(t);case e.GroupExpandAll:return r.getEmptySchema();case e.GroupCollapseAll:return r.getEmptySchema();case e.SetAggregates:return o.getAggregateSchema(t);case e.GetData:return r.getEmptySchema();default:return r.getEmptySchema()}}exports.GridCommands=e;exports.getGridToolSchema=m;
|
package/commands/grid.mjs
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { getEmptySchema as r, getExportSchema as
|
|
9
|
-
import { getRowMatchSchema as
|
|
8
|
+
import { getEmptySchema as r, getExportSchema as u, getPageSizeSchema as s, getPageSchema as G, getSortSchema as C, getFilterSchema as g } from "../schemas/common.mjs";
|
|
9
|
+
import { getRowMatchSchema as t, getColumnIdSchema as o, getColumnResizeSchema as m, getColumnReorderSchema as S } from "../schemas/table.mjs";
|
|
10
10
|
import { getAggregateSchema as h, getGroupExpandSchema as c, getGroupSchema as x } from "../schemas/grid.mjs";
|
|
11
11
|
const e = {
|
|
12
12
|
/**
|
|
@@ -127,10 +127,6 @@ const e = {
|
|
|
127
127
|
* - `columnId` *(string, required)* — The ID of the column to unlock.
|
|
128
128
|
*/
|
|
129
129
|
ColumnUnlock: "GridColumnUnlock",
|
|
130
|
-
/**
|
|
131
|
-
* Exports the Grid data to an Excel file.
|
|
132
|
-
*/
|
|
133
|
-
ExportExcel: "GridExportExcel",
|
|
134
130
|
/**
|
|
135
131
|
* Exports the Grid to a PDF document.
|
|
136
132
|
*/
|
|
@@ -203,9 +199,9 @@ const e = {
|
|
|
203
199
|
*/
|
|
204
200
|
GetData: "GridGetData"
|
|
205
201
|
};
|
|
206
|
-
function P(
|
|
207
|
-
const l =
|
|
208
|
-
switch (
|
|
202
|
+
function P(d, n, p = []) {
|
|
203
|
+
const l = n.map((i) => i.field).filter(Boolean), a = n.map((i) => i.id).filter(Boolean);
|
|
204
|
+
switch (d) {
|
|
209
205
|
case e.Filter:
|
|
210
206
|
return g(l);
|
|
211
207
|
case e.ClearFilter:
|
|
@@ -219,41 +215,39 @@ function P(p, u, d = []) {
|
|
|
219
215
|
case e.ClearGroup:
|
|
220
216
|
return r();
|
|
221
217
|
case e.Highlight:
|
|
222
|
-
return
|
|
218
|
+
return t(l);
|
|
223
219
|
case e.ClearHighlight:
|
|
224
220
|
return r();
|
|
225
221
|
case e.Select:
|
|
226
|
-
return
|
|
222
|
+
return t(l);
|
|
227
223
|
case e.ClearSelect:
|
|
228
224
|
return r();
|
|
229
225
|
case e.Page:
|
|
230
226
|
return G();
|
|
231
227
|
case e.PageSize:
|
|
232
|
-
return s(
|
|
228
|
+
return s(p);
|
|
233
229
|
case e.ColumnReorder:
|
|
234
|
-
return S(
|
|
230
|
+
return S(a);
|
|
235
231
|
case e.ColumnResize:
|
|
236
|
-
return m(
|
|
232
|
+
return m(a);
|
|
237
233
|
case e.ColumnShow:
|
|
238
|
-
return o(
|
|
234
|
+
return o(a);
|
|
239
235
|
case e.ColumnHide:
|
|
240
|
-
return o(
|
|
236
|
+
return o(a);
|
|
241
237
|
case e.ColumnLock:
|
|
242
|
-
return o(
|
|
238
|
+
return o(a);
|
|
243
239
|
case e.ColumnUnlock:
|
|
244
|
-
return o(
|
|
245
|
-
case e.ExportExcel:
|
|
246
|
-
return n();
|
|
240
|
+
return o(a);
|
|
247
241
|
case e.ExportPDF:
|
|
248
|
-
return
|
|
242
|
+
return u();
|
|
249
243
|
case e.ExportCSV:
|
|
250
|
-
return
|
|
244
|
+
return u();
|
|
251
245
|
case e.SelectAll:
|
|
252
246
|
return r();
|
|
253
247
|
case e.DetailExpand:
|
|
254
|
-
return
|
|
248
|
+
return t(l);
|
|
255
249
|
case e.DetailCollapse:
|
|
256
|
-
return
|
|
250
|
+
return t(l);
|
|
257
251
|
case e.DetailExpandAll:
|
|
258
252
|
return r();
|
|
259
253
|
case e.DetailCollapseAll:
|
package/commands/index.d.ts
CHANGED
|
@@ -40,7 +40,6 @@ export { TabStripCommands, getTabStripToolSchema } from './tabstrip.js';
|
|
|
40
40
|
export { AIPromptCommands, getAIPromptToolSchema } from './aiprompt.js';
|
|
41
41
|
export { ChartCommands, getChartToolSchema } from './chart.js';
|
|
42
42
|
export { ChatCommands, getChatToolSchema } from './chat.js';
|
|
43
|
-
export { DashboardCommands, getDashboardToolSchema } from './dashboard.js';
|
|
44
43
|
export { DialogCommands, getDialogToolSchema } from './dialog.js';
|
|
45
44
|
export { DrawerCommands, getDrawerToolSchema } from './drawer.js';
|
|
46
45
|
export { FormCommands, getFormToolSchema } from './form.js';
|
package/commands/pivotgrid.d.ts
CHANGED
|
@@ -47,10 +47,6 @@ export declare const PivotGridCommands: {
|
|
|
47
47
|
* - `value` *(string, required)* — Value of the header to collapse.
|
|
48
48
|
*/
|
|
49
49
|
readonly Collapse: "PivotCollapse";
|
|
50
|
-
/**
|
|
51
|
-
* Exports the PivotGrid as a PDF document.
|
|
52
|
-
*/
|
|
53
|
-
readonly ExportPDF: "PivotExportPDF";
|
|
54
50
|
};
|
|
55
51
|
/** @hidden */
|
|
56
52
|
export declare function getPivotGridToolSchema(commandType: string): object;
|
package/commands/pivotgrid.js
CHANGED
|
@@ -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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../schemas/common.js"),e={SetRows:"PivotSetRows",SetColumns:"PivotSetColumns",SetMeasures:"PivotSetMeasures",Expand:"PivotExpand",Collapse:"PivotCollapse"};function i(t){switch(t){case e.SetRows:case e.SetColumns:case e.SetMeasures:return{type:"object",properties:{fields:{type:"array",items:{type:"string"},description:"Array of field names"}},required:["fields"]};case e.Expand:case e.Collapse:return{type:"object",properties:{field:{type:"string",description:"Field name of the header"},value:{type:"string",description:"Value of the header"}},required:["field","value"]};default:return o.getEmptySchema()}}exports.PivotGridCommands=e;exports.getPivotGridToolSchema=i;
|
package/commands/pivotgrid.mjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { getEmptySchema as
|
|
8
|
+
import { getEmptySchema as s } from "../schemas/common.mjs";
|
|
9
9
|
const e = {
|
|
10
10
|
/**
|
|
11
11
|
* Sets the row dimension fields of the PivotGrid.
|
|
@@ -43,14 +43,10 @@ const e = {
|
|
|
43
43
|
* - `field` *(string, required)* — Field name of the header.
|
|
44
44
|
* - `value` *(string, required)* — Value of the header to collapse.
|
|
45
45
|
*/
|
|
46
|
-
Collapse: "PivotCollapse"
|
|
47
|
-
/**
|
|
48
|
-
* Exports the PivotGrid as a PDF document.
|
|
49
|
-
*/
|
|
50
|
-
ExportPDF: "PivotExportPDF"
|
|
46
|
+
Collapse: "PivotCollapse"
|
|
51
47
|
};
|
|
52
|
-
function
|
|
53
|
-
switch (
|
|
48
|
+
function r(t) {
|
|
49
|
+
switch (t) {
|
|
54
50
|
case e.SetRows:
|
|
55
51
|
case e.SetColumns:
|
|
56
52
|
case e.SetMeasures:
|
|
@@ -75,13 +71,11 @@ function s(r) {
|
|
|
75
71
|
},
|
|
76
72
|
required: ["field", "value"]
|
|
77
73
|
};
|
|
78
|
-
case e.ExportPDF:
|
|
79
|
-
return t();
|
|
80
74
|
default:
|
|
81
|
-
return
|
|
75
|
+
return s();
|
|
82
76
|
}
|
|
83
77
|
}
|
|
84
78
|
export {
|
|
85
79
|
e as PivotGridCommands,
|
|
86
|
-
|
|
80
|
+
r as getPivotGridToolSchema
|
|
87
81
|
};
|
package/commands/scheduler.d.ts
CHANGED
|
@@ -33,6 +33,16 @@ export declare const SchedulerCommands: {
|
|
|
33
33
|
* - `date` *(string, required)* — The date to navigate to (ISO 8601 format).
|
|
34
34
|
*/
|
|
35
35
|
readonly Navigate: "SchedulerNavigate";
|
|
36
|
+
/**
|
|
37
|
+
* Updates an existing event in the Scheduler.
|
|
38
|
+
*
|
|
39
|
+
* Parameters:
|
|
40
|
+
* - `title` *(string, required)* — Title of the event to update (used to find it).
|
|
41
|
+
* - `newTitle` *(string)* — New title for the event.
|
|
42
|
+
* - `newStart` *(string)* — New start date-time (ISO 8601).
|
|
43
|
+
* - `newEnd` *(string)* — New end date-time (ISO 8601).
|
|
44
|
+
*/
|
|
45
|
+
readonly Update: "SchedulerUpdate";
|
|
36
46
|
/**
|
|
37
47
|
* Switches the Scheduler to a different calendar view.
|
|
38
48
|
*
|
package/commands/scheduler.js
CHANGED
|
@@ -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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../schemas/common.js"),t=require("../schemas/scheduler.js"),e={Create:"SchedulerCreate",Delete:"SchedulerDelete",Navigate:"SchedulerNavigate",Update:"SchedulerUpdate",View:"SchedulerView"};function c(a){switch(a){case e.Create:return t.getCreateSchema();case e.Delete:return t.getDeleteSchema();case e.Update:return t.getUpdateSchema();case e.Navigate:return t.getNavigateSchema();case e.View:return t.getViewSchema();default:return r.getEmptySchema()}}exports.SchedulerCommands=e;exports.getSchedulerToolSchema=c;
|
package/commands/scheduler.mjs
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { getEmptySchema as
|
|
9
|
-
import { getViewSchema as
|
|
8
|
+
import { getEmptySchema as a } from "../schemas/common.mjs";
|
|
9
|
+
import { getViewSchema as r, getNavigateSchema as c, getUpdateSchema as h, getDeleteSchema as u, getCreateSchema as m } from "../schemas/scheduler.mjs";
|
|
10
10
|
const e = {
|
|
11
11
|
/**
|
|
12
12
|
* Creates a new event in the Scheduler.
|
|
@@ -31,6 +31,16 @@ const e = {
|
|
|
31
31
|
* - `date` *(string, required)* — The date to navigate to (ISO 8601 format).
|
|
32
32
|
*/
|
|
33
33
|
Navigate: "SchedulerNavigate",
|
|
34
|
+
/**
|
|
35
|
+
* Updates an existing event in the Scheduler.
|
|
36
|
+
*
|
|
37
|
+
* Parameters:
|
|
38
|
+
* - `title` *(string, required)* — Title of the event to update (used to find it).
|
|
39
|
+
* - `newTitle` *(string)* — New title for the event.
|
|
40
|
+
* - `newStart` *(string)* — New start date-time (ISO 8601).
|
|
41
|
+
* - `newEnd` *(string)* — New end date-time (ISO 8601).
|
|
42
|
+
*/
|
|
43
|
+
Update: "SchedulerUpdate",
|
|
34
44
|
/**
|
|
35
45
|
* Switches the Scheduler to a different calendar view.
|
|
36
46
|
*
|
|
@@ -44,13 +54,15 @@ function l(t) {
|
|
|
44
54
|
case e.Create:
|
|
45
55
|
return m();
|
|
46
56
|
case e.Delete:
|
|
57
|
+
return u();
|
|
58
|
+
case e.Update:
|
|
47
59
|
return h();
|
|
48
60
|
case e.Navigate:
|
|
49
61
|
return c();
|
|
50
62
|
case e.View:
|
|
51
|
-
return a();
|
|
52
|
-
default:
|
|
53
63
|
return r();
|
|
64
|
+
default:
|
|
65
|
+
return a();
|
|
54
66
|
}
|
|
55
67
|
}
|
|
56
68
|
export {
|
package/commands/window.d.ts
CHANGED
|
@@ -10,14 +10,6 @@
|
|
|
10
10
|
* These commands allow AI agents to open, close, minimize, maximize, and restore the floating Window.
|
|
11
11
|
*/
|
|
12
12
|
export declare const WindowCommands: {
|
|
13
|
-
/**
|
|
14
|
-
* Opens the Window, making it visible.
|
|
15
|
-
*/
|
|
16
|
-
readonly Open: "WindowOpen";
|
|
17
|
-
/**
|
|
18
|
-
* Closes the Window, hiding it from view.
|
|
19
|
-
*/
|
|
20
|
-
readonly Close: "WindowClose";
|
|
21
13
|
/**
|
|
22
14
|
* Minimizes the Window to the taskbar or a collapsed state.
|
|
23
15
|
*/
|
package/commands/window.js
CHANGED
|
@@ -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 o=require("../schemas/common.js"),e={
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../schemas/common.js"),e={Minimize:"WindowMinimize",Maximize:"WindowMaximize",Restore:"WindowRestore"};function n(i){switch(i){case e.Minimize:case e.Maximize:case e.Restore:default:return o.getEmptySchema()}}exports.WindowCommands=e;exports.getWindowToolSchema=n;
|
package/commands/window.mjs
CHANGED
|
@@ -6,15 +6,7 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { getEmptySchema as o } from "../schemas/common.mjs";
|
|
9
|
-
const
|
|
10
|
-
/**
|
|
11
|
-
* Opens the Window, making it visible.
|
|
12
|
-
*/
|
|
13
|
-
Open: "WindowOpen",
|
|
14
|
-
/**
|
|
15
|
-
* Closes the Window, hiding it from view.
|
|
16
|
-
*/
|
|
17
|
-
Close: "WindowClose",
|
|
9
|
+
const i = {
|
|
18
10
|
/**
|
|
19
11
|
* Minimizes the Window to the taskbar or a collapsed state.
|
|
20
12
|
*/
|
|
@@ -28,18 +20,16 @@ const e = {
|
|
|
28
20
|
*/
|
|
29
21
|
Restore: "WindowRestore"
|
|
30
22
|
};
|
|
31
|
-
function
|
|
32
|
-
switch (
|
|
33
|
-
case
|
|
34
|
-
case
|
|
35
|
-
case
|
|
36
|
-
case e.Maximize:
|
|
37
|
-
case e.Restore:
|
|
23
|
+
function n(e) {
|
|
24
|
+
switch (e) {
|
|
25
|
+
case i.Minimize:
|
|
26
|
+
case i.Maximize:
|
|
27
|
+
case i.Restore:
|
|
38
28
|
default:
|
|
39
29
|
return o();
|
|
40
30
|
}
|
|
41
31
|
}
|
|
42
32
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
33
|
+
i as WindowCommands,
|
|
34
|
+
n as getWindowToolSchema
|
|
45
35
|
};
|