@progress/kendo-react-grid 12.3.0-develop.9 → 13.0.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.
- package/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +485 -408
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +323 -312
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/header/HeaderRow.js +1 -1
- package/header/HeaderRow.mjs +64 -63
- package/index.d.mts +169 -1
- package/index.d.ts +169 -1
- package/index.js +1 -1
- package/index.mjs +54 -53
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +17 -17
- package/toolbar-tools/GridToolbarAIAssistant.js +2 -2
- package/toolbar-tools/GridToolbarAIAssistant.mjs +264 -161
- package/utils/index.js +1 -1
- package/utils/index.mjs +158 -148
package/index.mjs
CHANGED
|
@@ -17,7 +17,7 @@ import { GridColumnMenuCheckboxFilter as S } from "./columnMenu/GridColumnMenuCh
|
|
|
17
17
|
import { GridColumnMenuColumnsList as b } from "./columnMenu/GridColumnMenuColumnsList.mjs";
|
|
18
18
|
import { GridColumnMenuColumnsChooser as E } from "./columnMenu/GridColumnMenuColumnsChooser.mjs";
|
|
19
19
|
import { GridCell as h } from "./cells/datacell/GridCell.mjs";
|
|
20
|
-
import { GridEditCell as
|
|
20
|
+
import { GridEditCell as A } from "./cells/editcell/GridEditCell.mjs";
|
|
21
21
|
import { GridGroupCell as N } from "./cells/groupcell/GridGroupCell.mjs";
|
|
22
22
|
import { GridHierarchyCell as L } from "./cells/hierarchycell/GridHierarchyCell.mjs";
|
|
23
23
|
import { GridFilterCell as w } from "./cells/GridFilterCell.mjs";
|
|
@@ -33,28 +33,29 @@ import { GridToolbarColumnsChooser as rr } from "./toolbar-tools/GridToolbarColu
|
|
|
33
33
|
import { GridToolbarFilter as er } from "./toolbar-tools/GridToolbarFilter.mjs";
|
|
34
34
|
import { GridToolbarSort as mr } from "./toolbar-tools/GridToolbarSort.mjs";
|
|
35
35
|
import { GridToolbarGroup as ir } from "./toolbar-tools/GridToolbarGroup.mjs";
|
|
36
|
-
import {
|
|
37
|
-
import { GridAIPrompt as
|
|
38
|
-
import { GridNoRecords as
|
|
39
|
-
import { GridColumnMenuItem as
|
|
40
|
-
import { GridColumnMenuItemContent as
|
|
41
|
-
import { GridColumnMenuItemGroup as
|
|
42
|
-
import { GRID_COL_INDEX_ATTRIBUTE as
|
|
43
|
-
import { getSelectedState as
|
|
44
|
-
import { CommonDragLogic as
|
|
45
|
-
import { booleanFilterValues as _r, cellBoolDropdownChange as
|
|
46
|
-
import { messages as
|
|
47
|
-
import { StatusBar as
|
|
48
|
-
import { GridContextMenu as
|
|
49
|
-
import { GridContextMenuAnchorPart as
|
|
50
|
-
import { GridSearchBox as
|
|
51
|
-
import { GridPdfExportButton as
|
|
36
|
+
import { GridAICommands as ar, GridToolbarAIAssistant as nr } from "./toolbar-tools/GridToolbarAIAssistant.mjs";
|
|
37
|
+
import { GridAIPrompt as dr } from "./toolbar-tools/ai-tool/GridAIPrompt.mjs";
|
|
38
|
+
import { GridNoRecords as ur } from "./components/noRecords/GridNoRecords.mjs";
|
|
39
|
+
import { GridColumnMenuItem as Cr } from "./columnMenu/GridColumnMenuItem.mjs";
|
|
40
|
+
import { GridColumnMenuItemContent as gr } from "./columnMenu/GridColumnMenuItemContent.mjs";
|
|
41
|
+
import { GridColumnMenuItemGroup as cr } from "./columnMenu/GridColumnMenuItemGroup.mjs";
|
|
42
|
+
import { GRID_COL_INDEX_ATTRIBUTE as Tr, GRID_PREVENT_SELECTION_ELEMENT as Sr, GRID_ROW_INDEX_ATTRIBUTE as Fr } from "./constants/index.mjs";
|
|
43
|
+
import { getSelectedState as Dr, getSelectedStateFromKeyDown as Er, setSelectedState as Pr } from "@progress/kendo-react-data-tools";
|
|
44
|
+
import { CommonDragLogic as Rr } from "./drag/CommonDragLogic.mjs";
|
|
45
|
+
import { booleanFilterValues as _r, cellBoolDropdownChange as Nr, cellInputChange as Br, cellOperatorChange as Lr, combineSmartFilters as Or, operators as wr, parseFilterDates as vr } from "./filterCommon.mjs";
|
|
46
|
+
import { messages as Ur, pagerFirstPage as kr, pagerInfo as Hr, pagerItemPerPage as Vr, pagerLastPage as Wr, pagerNextPage as Xr, pagerPreviousPage as Kr } from "./messages/index.mjs";
|
|
47
|
+
import { StatusBar as qr, getStatusData as zr, leafColumns as Jr } from "./StatusBar.mjs";
|
|
48
|
+
import { GridContextMenu as Yr, contextMenuItemsMap as Zr } from "./contextMenu/GridContextMenu.mjs";
|
|
49
|
+
import { GridContextMenuAnchorPart as ro, GridContextMenuItemNames as oo } from "./contextMenu/enums.mjs";
|
|
50
|
+
import { GridSearchBox as to } from "./GridSearchBox.mjs";
|
|
51
|
+
import { GridPdfExportButton as lo } from "./GridPdfExportButton.mjs";
|
|
52
52
|
export {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
Tr as GRID_COL_INDEX_ATTRIBUTE,
|
|
54
|
+
Sr as GRID_PREVENT_SELECTION_ELEMENT,
|
|
55
|
+
Fr as GRID_ROW_INDEX_ATTRIBUTE,
|
|
56
56
|
e as Grid,
|
|
57
|
-
|
|
57
|
+
ar as GridAICommands,
|
|
58
|
+
dr as GridAIPrompt,
|
|
58
59
|
h as GridCell,
|
|
59
60
|
m as GridColumn,
|
|
60
61
|
S as GridColumnMenuCheckboxFilter,
|
|
@@ -64,28 +65,28 @@ export {
|
|
|
64
65
|
I as GridColumnMenuFilterCell,
|
|
65
66
|
M as GridColumnMenuFilterUI,
|
|
66
67
|
a as GridColumnMenuGroup,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
Cr as GridColumnMenuItem,
|
|
69
|
+
gr as GridColumnMenuItemContent,
|
|
70
|
+
cr as GridColumnMenuItemGroup,
|
|
70
71
|
x as GridColumnMenuSort,
|
|
71
72
|
i as GridColumnMenuWrapper,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
Rr as GridCommonDragLogic,
|
|
74
|
+
Yr as GridContextMenu,
|
|
75
|
+
ro as GridContextMenuAnchorPart,
|
|
76
|
+
oo as GridContextMenuItemNames,
|
|
76
77
|
V as GridDetailRow,
|
|
77
|
-
|
|
78
|
+
A as GridEditCell,
|
|
78
79
|
w as GridFilterCell,
|
|
79
80
|
N as GridGroupCell,
|
|
80
81
|
y as GridHeaderCell,
|
|
81
82
|
L as GridHierarchyCell,
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
ur as GridNoRecords,
|
|
84
|
+
lo as GridPdfExportButton,
|
|
84
85
|
X as GridRow,
|
|
85
|
-
|
|
86
|
+
to as GridSearchBox,
|
|
86
87
|
k as GridSelectionCell,
|
|
87
88
|
j as GridToolbar,
|
|
88
|
-
|
|
89
|
+
nr as GridToolbarAIAssistant,
|
|
89
90
|
Z as GridToolbarCheckboxFilter,
|
|
90
91
|
rr as GridToolbarColumnsChooser,
|
|
91
92
|
er as GridToolbarFilter,
|
|
@@ -93,29 +94,29 @@ export {
|
|
|
93
94
|
Q as GridToolbarSeparator,
|
|
94
95
|
mr as GridToolbarSort,
|
|
95
96
|
z as GridToolbarSpacer,
|
|
96
|
-
|
|
97
|
+
qr as StatusBar,
|
|
97
98
|
_r as booleanFilterValues,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
Nr as cellBoolDropdownChange,
|
|
100
|
+
Br as cellInputChange,
|
|
101
|
+
Lr as cellOperatorChange,
|
|
102
|
+
Or as combineSmartFilters,
|
|
103
|
+
Zr as contextMenuItemsMap,
|
|
103
104
|
G as filterGroupByField,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
Dr as getSelectedState,
|
|
106
|
+
Er as getSelectedStateFromKeyDown,
|
|
107
|
+
zr as getStatusData,
|
|
108
|
+
Ur as gridMessages,
|
|
108
109
|
C as isColumnMenuFilterActive,
|
|
109
110
|
d as isColumnMenuSortActive,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
111
|
+
Jr as leafColumns,
|
|
112
|
+
wr as operators,
|
|
113
|
+
kr as pagerFirstPage,
|
|
114
|
+
Hr as pagerInfo,
|
|
115
|
+
Vr as pagerItemPerPage,
|
|
116
|
+
Wr as pagerLastPage,
|
|
117
|
+
Xr as pagerNextPage,
|
|
118
|
+
Kr as pagerPreviousPage,
|
|
119
|
+
vr as parseFilterDates,
|
|
119
120
|
s as rootFilterOrDefault,
|
|
120
|
-
|
|
121
|
+
Pr as setSelectedState
|
|
121
122
|
};
|
package/package-metadata.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 e=Object.freeze({name:"@progress/kendo-react-grid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-grid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1762862039,version:"13.0.0",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = Object.freeze({
|
|
|
10
10
|
productName: "KendoReact",
|
|
11
11
|
productCode: "KENDOUIREACT",
|
|
12
12
|
productCodes: ["KENDOUIREACT"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "
|
|
13
|
+
publishDate: 1762862039,
|
|
14
|
+
version: "13.0.0",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
16
16
|
});
|
|
17
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-grid",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -28,21 +28,21 @@
|
|
|
28
28
|
"@progress/kendo-data-query": "^1.0.0",
|
|
29
29
|
"@progress/kendo-drawing": "^1.21.2",
|
|
30
30
|
"@progress/kendo-licensing": "^1.7.0",
|
|
31
|
-
"@progress/kendo-react-animation": "
|
|
32
|
-
"@progress/kendo-react-buttons": "
|
|
33
|
-
"@progress/kendo-react-common": "
|
|
34
|
-
"@progress/kendo-react-data-tools": "
|
|
35
|
-
"@progress/kendo-react-dateinputs": "
|
|
36
|
-
"@progress/kendo-react-indicators": "
|
|
37
|
-
"@progress/kendo-react-form": "
|
|
38
|
-
"@progress/kendo-react-labels": "
|
|
39
|
-
"@progress/kendo-react-dialogs": "
|
|
40
|
-
"@progress/kendo-react-dropdowns": "
|
|
41
|
-
"@progress/kendo-react-inputs": "
|
|
42
|
-
"@progress/kendo-react-intl": "
|
|
43
|
-
"@progress/kendo-react-popup": "
|
|
44
|
-
"@progress/kendo-react-layout": "
|
|
45
|
-
"@progress/kendo-react-conversational-ui": "
|
|
31
|
+
"@progress/kendo-react-animation": "13.0.0",
|
|
32
|
+
"@progress/kendo-react-buttons": "13.0.0",
|
|
33
|
+
"@progress/kendo-react-common": "13.0.0",
|
|
34
|
+
"@progress/kendo-react-data-tools": "13.0.0",
|
|
35
|
+
"@progress/kendo-react-dateinputs": "13.0.0",
|
|
36
|
+
"@progress/kendo-react-indicators": "13.0.0",
|
|
37
|
+
"@progress/kendo-react-form": "13.0.0",
|
|
38
|
+
"@progress/kendo-react-labels": "13.0.0",
|
|
39
|
+
"@progress/kendo-react-dialogs": "13.0.0",
|
|
40
|
+
"@progress/kendo-react-dropdowns": "13.0.0",
|
|
41
|
+
"@progress/kendo-react-inputs": "13.0.0",
|
|
42
|
+
"@progress/kendo-react-intl": "13.0.0",
|
|
43
|
+
"@progress/kendo-react-popup": "13.0.0",
|
|
44
|
+
"@progress/kendo-react-layout": "13.0.0",
|
|
45
|
+
"@progress/kendo-react-conversational-ui": "13.0.0",
|
|
46
46
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
47
47
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
48
48
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"package": {
|
|
148
148
|
"productName": "KendoReact",
|
|
149
149
|
"productCode": "KENDOUIREACT",
|
|
150
|
-
"publishDate":
|
|
150
|
+
"publishDate": 1762862039,
|
|
151
151
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
152
152
|
}
|
|
153
153
|
},
|
|
@@ -5,5 +5,5 @@
|
|
|
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
|
|
9
|
-
`);
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ge=require("react"),fe=require("../utils/GridContext.js"),he=require("@progress/kendo-react-buttons"),Ce=require("@progress/kendo-svg-icons"),A=require("axios"),Se=require("@progress/kendo-react-intl"),c=require("../messages/index.js"),I=require("@progress/kendo-react-common"),Ge=require("@progress/kendo-react-dialogs"),be=require("./ai-tool/GridAIPrompt.js"),ke=require("../filterCommon.js");function me(o){const p=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const d=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(p,t,d.get?d:{enumerable:!0,get:()=>o[t]})}}return p.default=o,Object.freeze(p)}const a=me(ge);var L=(o=>(o.GridClearFilter="GridClearFilter",o.GridClearSort="GridClearSort",o.GridClearGroup="GridClearGroup",o.GridClearHighlight="GridClearHighlight",o.GridClearSelect="GridClearSelect",o.GridSort="GridSort",o.GridFilter="GridFilter",o.GridGroup="GridGroup",o.GridHighlight="GridHighlight",o.GridSelect="GridSelect",o.GridExportPDF="GridExportPDF",o.GridColumnResize="GridColumnResize",o.GridColumnHide="GridColumnHide",o.GridColumnShow="GridColumnShow",o.GridColumnReorder="GridColumnReorder",o.GridColumnLock="GridColumnLock",o.GridColumnUnlock="GridColumnUnlock",o))(L||{});const Re=(o,p)=>o.map(d=>{let f=d;return p.forEach(g=>{g.field&&f.includes(g.field)&&(f=f.replace(new RegExp(g.field,"g"),g.title||g.field))}),f}),j=a.forwardRef((o,p)=>{const t=a.useContext(fe.GridContext),d=Se.useLocalization(),{requestUrl:f,requestOptions:g,onPromptRequest:T,onResponseSuccess:P,onResponseError:b,role:z="user",gridAIPrompt:E=be.GridAIPrompt,icon:v,svgIcon:M,onCloseWindow:k,promptPlaceHolder:W,suggestionsList:B,streaming:N,loading:U,outputs:_,enableSpeechToText:q}=o,[m,D]=a.useState([]),K=a.useMemo(()=>t&&Array.isArray(t.columnsRef)&&Array.isArray(t.hiddenColumnsRef)?[...t.columnsRef,...t.hiddenColumnsRef].map(e=>{var r;return{id:e.id,field:e.field,values:(r=e.values)!=null?r:[]}}):[],[t]),[V,C]=a.useState(!1),[R,y]=a.useState(!1),[X,Y]=a.useState(),[$,J]=a.useState(),h=a.useRef(null),w=a.useRef(null),Q=e=>{e.preventDefault(),y(!R)},S=a.useMemo(()=>{var e;return(e=o.show)!=null?e:R},[o.show,R]),G=a.useCallback(()=>{var e;k&&k(),D([]),y(!1),h.current&&((e=h.current.element)==null||e.focus())},[k]),Z=(e,r)=>{var i;if(t.sortable&&e){const n=Array.isArray(e)?e:[e];if(n.length===0)t.sortChange([],r);else{const u=((i=t.sort)!=null?i:[]).filter(s=>!n.some(x=>x.field===s.field));u.push(...n),t.sortChange(u,r)}}},ee=(e,r)=>{if(!e)return;const i=ke.combineSmartFilters({logic:e.logic?e.logic:"and",filters:e.filters},t.filter);t.filterChange(i,r)},te=(e,r)=>{var n;if(!e)return;const i=Array.isArray(e)?e:[e];if(i.length===0)t.groupChange([],r);else{const u=((n=t.group)!=null?n:[]).filter(s=>!i.some(x=>x.field===s.field));u.push(...i),t.groupChange(u,r)}},re=(e,r,i)=>{const n=[d.toLanguageString(c.aIResponseData,c.messages[c.aIResponseData])],l=Re([e],t.columnsRef).join(`
|
|
9
|
+
`);D([{id:m.length+1,title:d.toLanguageString(c.generatedWithAI,c.messages[c.generatedWithAI]),subTitle:r,prompt:r,responseContent:n.concat(l).join(""),isRetry:i},...m])},oe=(e,r,i)=>{const n=t.columnsRef.findIndex(l=>l.id===e);t.reorderable&&t.columnReorder(n,r,i)},O=(e,r)=>{const i=t.columnsState.findIndex(l=>l.id===e),n=t.columnsState.map(l=>l.id===e?{...l,hidden:r}:l);i!==-1&&t.onColumnsStateChange(n)},F=(e,r)=>{const i=t.columnsRef.findIndex(l=>l.id===e),n=t.columnsState.map(l=>l.id===e?{...l,locked:r}:l);i!==-1&&t.onColumnsStateChange(n)},ne=(e,r,i)=>{const n=t.columnsRef.findIndex(s=>s.id===e),l=t.columnsState[n],u=t.columnsState.map(s=>s.id===e?{...s,width:parseFloat(r)}:s);n!==-1&&t.onResize(n,parseFloat(r),parseFloat(l.width)||0,i,!0,u,e)},se=(e,r,i)=>{var n,l,u;C(!1),(n=e==null?void 0:e.data)==null||n.commands.forEach(s=>{switch(s.type){case"GridSort":Z(s.sort,e);break;case"GridFilter":ee(s.filter,e);break;case"GridHighlight":t.applyHighlightDescriptor([s.highlight]);break;case"GridGroup":te(s.group,e);break;case"GridClearFilter":t.filterChange(void 0);break;case"GridClearGroup":t.groupChange([],e);break;case"GridClearHighlight":t.applyHighlightDescriptor([]);break;case"GridClearSort":t.sortChange(void 0);break;case"GridSelect":t.applySelectionDescriptor([s.select]);break;case"GridClearSelect":t.applySelectionDescriptor([]);break;case"GridExportPDF":t.exportAsPdf();break;case"GridColumnResize":ne(s.id,s.size,e);break;case"GridColumnHide":O(s.id,!0);break;case"GridColumnShow":O(s.id,!1);break;case"GridColumnReorder":oe(s.id,s.position,e);break;case"GridColumnLock":F(s.id,!0);break;case"GridColumnUnlock":F(s.id,!1);break}}),(u=(l=e==null?void 0:e.data)==null?void 0:l.commands)!=null&&u.length||re(e.data.message,r,i),P&&P(e,r,i)},ie=e=>{b==null||b(e),C(!1)},le=(e,r)=>{const i=A.CancelToken.source(),n={role:z||"user",columns:K||[],headers:{Accept:"*/*","Content-Type":"application/json"},promptMessage:e,requestOptions:{url:f,method:"POST",withCredentials:!1,responseType:"json",cancelToken:i.token,...g}};if(T&&T(n,r),n.requestOptions.url!==void 0){C(!0);const{url:l,...u}=n.requestOptions;A(l,{...u,headers:n.headers,data:{columns:n.columns,contents:[{text:n.promptMessage}]},responseType:"json"}).then(s=>se(s,n.promptMessage,r)).catch(ie),w.current=i}},ae=a.useCallback(()=>{w.current&&w.current.cancel("Request cancelled by user."),C(!1)},[]),[ue,H]=I.useCustomComponent(E),ce=Object.keys(H).length>0?H:{},de=a.createElement(ue,{onPromptRequest:le,onCancel:ae,onClose:G,streaming:N||V,loading:U,outputs:_||m,promptPlaceHolder:W,suggestionsList:B,enableSpeechToText:q,...ce}),pe=a.createElement(he.Button,{ref:h,togglable:!0,themeColor:"primary",rounded:"full",selected:S,svgIcon:M||(v?void 0:Ce.sparklesIcon),icon:v,size:t.mobileMode?"large":"medium",className:I.classNames("k-toolbar-button",{"k-icon-button":t.mobileMode}),title:d.toLanguageString(c.toolbarAI,c.messages[c.toolbarAI]),onClick:Q});return a.useEffect(()=>{var e;if(h.current&&S){const r=(e=h.current.element)==null?void 0:e.getBoundingClientRect();r&&(Y(r.top+window.scrollY+r.height),J(r.left+window.scrollX+r.width))}},[S]),a.useImperativeHandle(p,()=>({show:()=>y(!0),hide:()=>G()}),[G]),a.createElement(a.Fragment,null,pe,S&&a.createElement(Ge.Window,{autoFocus:!1,title:d.toLanguageString(c.toolbarAI,c.messages[c.toolbarAI]),initialTop:X,initialLeft:$,initialWidth:560,style:{height:"auto",minWidth:"90px",minHeight:"50px"},onClose:G,resizable:!0,draggable:!0,className:"k-grid-assistant-window"},de))});j.displayName="KendoReactGridToolbarAIAssistant";exports.GridAICommands=L;exports.GridToolbarAIAssistant=j;
|