@progress/kendo-react-grid 11.4.0-develop.2 → 11.4.0-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.
package/index.d.mts CHANGED
@@ -2245,9 +2245,7 @@ export declare interface GridHighlightChangeEvent {
2245
2245
  }
2246
2246
 
2247
2247
  export declare interface GridHighlightDescriptor {
2248
- [id: string]: boolean | {
2249
- [id: string]: boolean;
2250
- };
2248
+ [id: string]: boolean | number[];
2251
2249
  }
2252
2250
 
2253
2251
  /**
@@ -3026,7 +3024,7 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
3026
3024
  * @example
3027
3025
  * ```jsx
3028
3026
  * <Grid highlight={{ ['item-data-key-id']: true }} />
3029
- * <Grid highlight={{ ['item-data-key-id']: { name: true } }} />
3027
+ * <Grid highlight={{ ['item-data-key-id']: [2, 3] }} />
3030
3028
  * ```
3031
3029
  */
3032
3030
  highlight?: GridHighlightDescriptor;
@@ -3754,29 +3752,65 @@ export declare const GridToolbar: {
3754
3752
  };
3755
3753
 
3756
3754
  /**
3757
- * Represents the GridToolbarAI component.
3755
+ * Represents the GridToolbarAIAssistant component.
3758
3756
  */
3759
- export declare const GridToolbarAI: {
3760
- (props: GridToolbarAIProps): JSX.Element;
3757
+ export declare const GridToolbarAIAssistant: {
3758
+ (props: GridToolbarAIAssistantProps): JSX.Element;
3761
3759
  displayName: string;
3762
3760
  };
3763
3761
 
3764
- export declare interface GridToolbarAIProps {
3762
+ export declare interface GridToolbarAIAssistantProps {
3765
3763
  /**
3766
3764
  * Defines the URL to which the request will be sent.
3767
3765
  *
3768
3766
  * @example
3769
3767
  * ```jsx
3770
- * <GridToolbarAI requestUrl="https://example.com/api/ai" />
3768
+ * <GridToolbarAIAssistant requestUrl="https://example.com/api/ai" />
3771
3769
  * ```
3772
3770
  */
3773
3771
  requestUrl?: string;
3772
+ /**
3773
+ * Defines the placeholder text for the AI prompt input.
3774
+ *
3775
+ * @example
3776
+ * ```jsx
3777
+ * <GridToolbarAIAssistant promptPlaceHolder="Ask AI to filter, sort or group" />
3778
+ * ```
3779
+ */
3780
+ promptPlaceHolder?: string;
3781
+ /**
3782
+ * Defines the list of suggestions for the AI prompt.
3783
+ *
3784
+ * @example
3785
+ * ```jsx
3786
+ * <GridToolbarAIAssistant suggestionsList={['Sort by Amount', 'Group by Account Type']} />
3787
+ * ```
3788
+ */
3789
+ suggestionsList?: string[];
3790
+ /**
3791
+ * Defines if the AI prompt is in streaming mode.
3792
+ *
3793
+ * @example
3794
+ * ```jsx
3795
+ * <GridToolbarAIAssistant streaming={true} />
3796
+ * ```
3797
+ */
3798
+ streaming?: boolean;
3799
+ /**
3800
+ * Defines the outputs of the AI prompt.
3801
+ *
3802
+ * @example
3803
+ * ```jsx
3804
+ * <GridToolbarAIAssistant outputs={[{ id: 1, title: 'Output 1', responseContent: '...' }]} />
3805
+ * ```
3806
+ */
3807
+ outputs?: AIPromptOutputInterface[];
3774
3808
  /**
3775
3809
  * Defines the options for the axios request.
3776
3810
  *
3777
3811
  * @example
3778
3812
  * ```jsx
3779
- * <GridToolbarAI requestOptions={{ timeout: 5000 }} />
3813
+ * <GridToolbarAIAssistant requestOptions={{ timeout: 5000 }} />
3780
3814
  * ```
3781
3815
  */
3782
3816
  requestOptions?: AxiosRequestConfig;
@@ -3785,16 +3819,16 @@ export declare interface GridToolbarAIProps {
3785
3819
  *
3786
3820
  * @example
3787
3821
  * ```jsx
3788
- * <GridToolbarAI onPromptRequest={(request) => console.log(request)} />
3822
+ * <GridToolbarAIAssistant onPromptRequest={(request) => console.log(request)} />
3789
3823
  * ```
3790
3824
  */
3791
- onPromptRequest?: (request: GridToolbarAIRequestData, isRetry?: boolean) => void;
3825
+ onPromptRequest?: (request: GridToolbarAIAssistantRequestData, isRetry?: boolean) => void;
3792
3826
  /**
3793
3827
  * Called when the response is received.
3794
3828
  *
3795
3829
  * @example
3796
3830
  * ```jsx
3797
- * <GridToolbarAI onResponseSuccess={(response) => console.log(response)} />
3831
+ * <GridToolbarAIAssistant onResponseSuccess={(response) => console.log(response)} />
3798
3832
  * ```
3799
3833
  */
3800
3834
  onResponseSuccess?: (response: AxiosResponse<any>) => void;
@@ -3803,7 +3837,7 @@ export declare interface GridToolbarAIProps {
3803
3837
  *
3804
3838
  * @example
3805
3839
  * ```jsx
3806
- * <GridToolbarAI onResponseError={(error) => console.error(error)} />
3840
+ * <GridToolbarAIAssistant onResponseError={(error) => console.error(error)} />
3807
3841
  * ```
3808
3842
  */
3809
3843
  onResponseError?: (error: any) => void;
@@ -3812,7 +3846,7 @@ export declare interface GridToolbarAIProps {
3812
3846
  *
3813
3847
  * @example
3814
3848
  * ```jsx
3815
- * <GridToolbarAI role="admin" />
3849
+ * <GridToolbarAIAssistant role="admin" />
3816
3850
  * ```
3817
3851
  */
3818
3852
  role?: string;
@@ -3821,27 +3855,27 @@ export declare interface GridToolbarAIProps {
3821
3855
  *
3822
3856
  * @example
3823
3857
  * ```jsx
3824
- * <GridToolbarAI gridAIPrompt={MyCustomPromptComponent} />
3858
+ * <GridToolbarAIAssistant gridAIPrompt={MyCustomPromptComponent} />
3825
3859
  * ```
3826
3860
  */
3827
3861
  gridAIPrompt?: CustomComponent<GridAIPromptProps>;
3828
3862
  /**
3829
- * Defines the icon rendered in the GridToolbarAI tool ([see example]({% slug overview_icon %})).
3863
+ * Defines the icon rendered in the GridToolbarAIAssistant tool ([see example]({% slug overview_icon %})).
3830
3864
  *
3831
3865
  * @example
3832
3866
  * ```jsx
3833
- * <GridToolbarAI icon="home" />
3867
+ * <GridToolbarAIAssistant icon="home" />
3834
3868
  * ```
3835
3869
  */
3836
3870
  icon?: string;
3837
3871
  /**
3838
- * Defines the SVG icon rendered in the GridToolbarAI tool ([see example]({% slug overview_svgicon %})).
3872
+ * Defines the SVG icon rendered in the GridToolbarAIAssistant tool ([see example]({% slug overview_svgicon %})).
3839
3873
  *
3840
3874
  * @example
3841
3875
  * ```jsx
3842
3876
  * import { gearIcon } from '@progress/kendo-svg-icons';
3843
3877
  *
3844
- * <GridToolbarAI svgIcon={gearIcon} />
3878
+ * <GridToolbarAIAssistant svgIcon={gearIcon} />
3845
3879
  * ```
3846
3880
  */
3847
3881
  svgIcon?: SVGIcon_2;
@@ -3850,7 +3884,7 @@ export declare interface GridToolbarAIProps {
3850
3884
  *
3851
3885
  * @example
3852
3886
  * ```jsx
3853
- * <GridToolbarAI show={true} />
3887
+ * <GridToolbarAIAssistant show={true} />
3854
3888
  * ```
3855
3889
  */
3856
3890
  show?: boolean;
@@ -3859,13 +3893,13 @@ export declare interface GridToolbarAIProps {
3859
3893
  *
3860
3894
  * @example
3861
3895
  * ```jsx
3862
- * <GridToolbarAI onCloseWindow={() => console.log('close menu');} />
3896
+ * <GridToolbarAIAssistant onCloseWindow={() => console.log('close menu');} />
3863
3897
  * ```
3864
3898
  */
3865
3899
  onCloseWindow?: () => void;
3866
3900
  }
3867
3901
 
3868
- export declare interface GridToolbarAIRequestData {
3902
+ export declare interface GridToolbarAIAssistantRequestData {
3869
3903
  role: string;
3870
3904
  columns: Array<{
3871
3905
  field: string;
package/index.d.ts CHANGED
@@ -2245,9 +2245,7 @@ export declare interface GridHighlightChangeEvent {
2245
2245
  }
2246
2246
 
2247
2247
  export declare interface GridHighlightDescriptor {
2248
- [id: string]: boolean | {
2249
- [id: string]: boolean;
2250
- };
2248
+ [id: string]: boolean | number[];
2251
2249
  }
2252
2250
 
2253
2251
  /**
@@ -3026,7 +3024,7 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
3026
3024
  * @example
3027
3025
  * ```jsx
3028
3026
  * <Grid highlight={{ ['item-data-key-id']: true }} />
3029
- * <Grid highlight={{ ['item-data-key-id']: { name: true } }} />
3027
+ * <Grid highlight={{ ['item-data-key-id']: [2, 3] }} />
3030
3028
  * ```
3031
3029
  */
3032
3030
  highlight?: GridHighlightDescriptor;
@@ -3754,29 +3752,65 @@ export declare const GridToolbar: {
3754
3752
  };
3755
3753
 
3756
3754
  /**
3757
- * Represents the GridToolbarAI component.
3755
+ * Represents the GridToolbarAIAssistant component.
3758
3756
  */
3759
- export declare const GridToolbarAI: {
3760
- (props: GridToolbarAIProps): JSX.Element;
3757
+ export declare const GridToolbarAIAssistant: {
3758
+ (props: GridToolbarAIAssistantProps): JSX.Element;
3761
3759
  displayName: string;
3762
3760
  };
3763
3761
 
3764
- export declare interface GridToolbarAIProps {
3762
+ export declare interface GridToolbarAIAssistantProps {
3765
3763
  /**
3766
3764
  * Defines the URL to which the request will be sent.
3767
3765
  *
3768
3766
  * @example
3769
3767
  * ```jsx
3770
- * <GridToolbarAI requestUrl="https://example.com/api/ai" />
3768
+ * <GridToolbarAIAssistant requestUrl="https://example.com/api/ai" />
3771
3769
  * ```
3772
3770
  */
3773
3771
  requestUrl?: string;
3772
+ /**
3773
+ * Defines the placeholder text for the AI prompt input.
3774
+ *
3775
+ * @example
3776
+ * ```jsx
3777
+ * <GridToolbarAIAssistant promptPlaceHolder="Ask AI to filter, sort or group" />
3778
+ * ```
3779
+ */
3780
+ promptPlaceHolder?: string;
3781
+ /**
3782
+ * Defines the list of suggestions for the AI prompt.
3783
+ *
3784
+ * @example
3785
+ * ```jsx
3786
+ * <GridToolbarAIAssistant suggestionsList={['Sort by Amount', 'Group by Account Type']} />
3787
+ * ```
3788
+ */
3789
+ suggestionsList?: string[];
3790
+ /**
3791
+ * Defines if the AI prompt is in streaming mode.
3792
+ *
3793
+ * @example
3794
+ * ```jsx
3795
+ * <GridToolbarAIAssistant streaming={true} />
3796
+ * ```
3797
+ */
3798
+ streaming?: boolean;
3799
+ /**
3800
+ * Defines the outputs of the AI prompt.
3801
+ *
3802
+ * @example
3803
+ * ```jsx
3804
+ * <GridToolbarAIAssistant outputs={[{ id: 1, title: 'Output 1', responseContent: '...' }]} />
3805
+ * ```
3806
+ */
3807
+ outputs?: AIPromptOutputInterface[];
3774
3808
  /**
3775
3809
  * Defines the options for the axios request.
3776
3810
  *
3777
3811
  * @example
3778
3812
  * ```jsx
3779
- * <GridToolbarAI requestOptions={{ timeout: 5000 }} />
3813
+ * <GridToolbarAIAssistant requestOptions={{ timeout: 5000 }} />
3780
3814
  * ```
3781
3815
  */
3782
3816
  requestOptions?: AxiosRequestConfig;
@@ -3785,16 +3819,16 @@ export declare interface GridToolbarAIProps {
3785
3819
  *
3786
3820
  * @example
3787
3821
  * ```jsx
3788
- * <GridToolbarAI onPromptRequest={(request) => console.log(request)} />
3822
+ * <GridToolbarAIAssistant onPromptRequest={(request) => console.log(request)} />
3789
3823
  * ```
3790
3824
  */
3791
- onPromptRequest?: (request: GridToolbarAIRequestData, isRetry?: boolean) => void;
3825
+ onPromptRequest?: (request: GridToolbarAIAssistantRequestData, isRetry?: boolean) => void;
3792
3826
  /**
3793
3827
  * Called when the response is received.
3794
3828
  *
3795
3829
  * @example
3796
3830
  * ```jsx
3797
- * <GridToolbarAI onResponseSuccess={(response) => console.log(response)} />
3831
+ * <GridToolbarAIAssistant onResponseSuccess={(response) => console.log(response)} />
3798
3832
  * ```
3799
3833
  */
3800
3834
  onResponseSuccess?: (response: AxiosResponse<any>) => void;
@@ -3803,7 +3837,7 @@ export declare interface GridToolbarAIProps {
3803
3837
  *
3804
3838
  * @example
3805
3839
  * ```jsx
3806
- * <GridToolbarAI onResponseError={(error) => console.error(error)} />
3840
+ * <GridToolbarAIAssistant onResponseError={(error) => console.error(error)} />
3807
3841
  * ```
3808
3842
  */
3809
3843
  onResponseError?: (error: any) => void;
@@ -3812,7 +3846,7 @@ export declare interface GridToolbarAIProps {
3812
3846
  *
3813
3847
  * @example
3814
3848
  * ```jsx
3815
- * <GridToolbarAI role="admin" />
3849
+ * <GridToolbarAIAssistant role="admin" />
3816
3850
  * ```
3817
3851
  */
3818
3852
  role?: string;
@@ -3821,27 +3855,27 @@ export declare interface GridToolbarAIProps {
3821
3855
  *
3822
3856
  * @example
3823
3857
  * ```jsx
3824
- * <GridToolbarAI gridAIPrompt={MyCustomPromptComponent} />
3858
+ * <GridToolbarAIAssistant gridAIPrompt={MyCustomPromptComponent} />
3825
3859
  * ```
3826
3860
  */
3827
3861
  gridAIPrompt?: CustomComponent<GridAIPromptProps>;
3828
3862
  /**
3829
- * Defines the icon rendered in the GridToolbarAI tool ([see example]({% slug overview_icon %})).
3863
+ * Defines the icon rendered in the GridToolbarAIAssistant tool ([see example]({% slug overview_icon %})).
3830
3864
  *
3831
3865
  * @example
3832
3866
  * ```jsx
3833
- * <GridToolbarAI icon="home" />
3867
+ * <GridToolbarAIAssistant icon="home" />
3834
3868
  * ```
3835
3869
  */
3836
3870
  icon?: string;
3837
3871
  /**
3838
- * Defines the SVG icon rendered in the GridToolbarAI tool ([see example]({% slug overview_svgicon %})).
3872
+ * Defines the SVG icon rendered in the GridToolbarAIAssistant tool ([see example]({% slug overview_svgicon %})).
3839
3873
  *
3840
3874
  * @example
3841
3875
  * ```jsx
3842
3876
  * import { gearIcon } from '@progress/kendo-svg-icons';
3843
3877
  *
3844
- * <GridToolbarAI svgIcon={gearIcon} />
3878
+ * <GridToolbarAIAssistant svgIcon={gearIcon} />
3845
3879
  * ```
3846
3880
  */
3847
3881
  svgIcon?: SVGIcon_2;
@@ -3850,7 +3884,7 @@ export declare interface GridToolbarAIProps {
3850
3884
  *
3851
3885
  * @example
3852
3886
  * ```jsx
3853
- * <GridToolbarAI show={true} />
3887
+ * <GridToolbarAIAssistant show={true} />
3854
3888
  * ```
3855
3889
  */
3856
3890
  show?: boolean;
@@ -3859,13 +3893,13 @@ export declare interface GridToolbarAIProps {
3859
3893
  *
3860
3894
  * @example
3861
3895
  * ```jsx
3862
- * <GridToolbarAI onCloseWindow={() => console.log('close menu');} />
3896
+ * <GridToolbarAIAssistant onCloseWindow={() => console.log('close menu');} />
3863
3897
  * ```
3864
3898
  */
3865
3899
  onCloseWindow?: () => void;
3866
3900
  }
3867
3901
 
3868
- export declare interface GridToolbarAIRequestData {
3902
+ export declare interface GridToolbarAIAssistantRequestData {
3869
3903
  role: string;
3870
3904
  columns: Array<{
3871
3905
  field: string;
package/index.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 G=require("./Grid.js"),a=require("./GridColumn.js"),C=require("./columnMenu/GridColumnMenuWrapper.js"),s=require("./columnMenu/GridColumnMenuGroup.js"),n=require("./columnMenu/GridColumnMenuSort.js"),o=require("./columnMenu/GridColumnMenuFilter.js"),c=require("./columnMenu/GridColumnMenuFilterUI.js"),m=require("./columnMenu/GridColumnMenuFilterCell.js"),p=require("./columnMenu/GridColumnMenuCheckboxFilter.js"),M=require("./columnMenu/GridColumnMenuColumnsList.js"),g=require("./columnMenu/GridColumnMenuColumnsChooser.js"),T=require("./cells/datacell/GridCell.js"),q=require("./cells/editcell/GridEditCell.js"),I=require("./cells/groupcell/GridGroupCell.js"),b=require("./cells/hierarchycell/GridHierarchyCell.js"),S=require("./cells/GridFilterCell.js"),F=require("./header/GridHeaderCell.js"),E=require("./cells/selectioncell/GridSelectionCell.js"),P=require("./rows/GridDetailRow.js"),h=require("./rows/GridRow.js"),x=require("./GridToolbar.js"),D=require("./toolbar-tools/GridToolbarSpacer.js"),R=require("./toolbar-tools/GridToolbarSeparator.js"),_=require("./toolbar-tools/GridToolbarCheckboxFilter.js"),B=require("./toolbar-tools/GridToolbarColumnsChooser.js"),N=require("./toolbar-tools/GridToolbarFilter.js"),f=require("./toolbar-tools/GridToolbarSort.js"),A=require("./toolbar-tools/GridToolbarGroup.js"),L=require("./toolbar-tools/GridToolbarAI.js"),O=require("./toolbar-tools/ai-tool/GridAIPrompt.js"),y=require("./components/noRecords/GridNoRecords.js"),w=require("./columnMenu/GridColumnMenuItem.js"),k=require("./columnMenu/GridColumnMenuItemContent.js"),v=require("./columnMenu/GridColumnMenuItemGroup.js"),i=require("./constants/index.js"),t=require("@progress/kendo-react-data-tools"),U=require("./drag/CommonDragLogic.js"),r=require("./filterCommon.js"),e=require("./messages/index.js"),l=require("./StatusBar.js"),u=require("./contextMenu/GridContextMenu.js"),d=require("./contextMenu/enums.js"),H=require("./GridSearchBox.js"),W=require("./GridPdfExportButton.js");exports.Grid=G.Grid;exports.GridColumn=a.GridColumn;exports.GridColumnMenuWrapper=C.GridColumnMenuWrapper;exports.GridColumnMenuGroup=s.GridColumnMenuGroup;exports.GridColumnMenuSort=n.GridColumnMenuSort;exports.isColumnMenuSortActive=n.isColumnMenuSortActive;exports.GridColumnMenuFilter=o.GridColumnMenuFilter;exports.filterGroupByField=o.filterGroupByField;exports.isColumnMenuFilterActive=o.isColumnMenuFilterActive;exports.rootFilterOrDefault=o.rootFilterOrDefault;exports.GridColumnMenuFilterUI=c.GridColumnMenuFilterUI;exports.GridColumnMenuFilterCell=m.GridColumnMenuFilterCell;exports.GridColumnMenuCheckboxFilter=p.GridColumnMenuCheckboxFilter;exports.GridColumnMenuColumnsList=M.GridColumnMenuColumnsList;exports.GridColumnMenuColumnsChooser=g.GridColumnMenuColumnsChooser;exports.GridCell=T.GridCell;exports.GridEditCell=q.GridEditCell;exports.GridGroupCell=I.GridGroupCell;exports.GridHierarchyCell=b.GridHierarchyCell;exports.GridFilterCell=S.GridFilterCell;exports.GridHeaderCell=F.GridHeaderCell;exports.GridSelectionCell=E.GridSelectionCell;exports.GridDetailRow=P.GridDetailRow;exports.GridRow=h.GridRow;exports.GridToolbar=x.GridToolbar;exports.GridToolbarSpacer=D.GridToolbarSpacer;exports.GridToolbarSeparator=R.GridToolbarSeparator;exports.GridToolbarCheckboxFilter=_.GridToolbarCheckboxFilter;exports.GridToolbarColumnsChooser=B.GridToolbarColumnsChooser;exports.GridToolbarFilter=N.GridToolbarFilter;exports.GridToolbarSort=f.GridToolbarSort;exports.GridToolbarGroup=A.GridToolbarGroup;exports.GridToolbarAI=L.GridToolbarAI;exports.GridAIPrompt=O.GridAIPrompt;exports.GridNoRecords=y.GridNoRecords;exports.GridColumnMenuItem=w.GridColumnMenuItem;exports.GridColumnMenuItemContent=k.GridColumnMenuItemContent;exports.GridColumnMenuItemGroup=v.GridColumnMenuItemGroup;exports.GRID_COL_INDEX_ATTRIBUTE=i.GRID_COL_INDEX_ATTRIBUTE;exports.GRID_PREVENT_SELECTION_ELEMENT=i.GRID_PREVENT_SELECTION_ELEMENT;exports.GRID_ROW_INDEX_ATTRIBUTE=i.GRID_ROW_INDEX_ATTRIBUTE;Object.defineProperty(exports,"getSelectedState",{enumerable:!0,get:()=>t.getSelectedState});Object.defineProperty(exports,"getSelectedStateFromKeyDown",{enumerable:!0,get:()=>t.getSelectedStateFromKeyDown});Object.defineProperty(exports,"setSelectedState",{enumerable:!0,get:()=>t.setSelectedState});exports.GridCommonDragLogic=U.CommonDragLogic;exports.booleanFilterValues=r.booleanFilterValues;exports.cellBoolDropdownChange=r.cellBoolDropdownChange;exports.cellInputChange=r.cellInputChange;exports.cellOperatorChange=r.cellOperatorChange;exports.operators=r.operators;exports.gridMessages=e.messages;exports.pagerFirstPage=e.pagerFirstPage;exports.pagerInfo=e.pagerInfo;exports.pagerItemPerPage=e.pagerItemPerPage;exports.pagerLastPage=e.pagerLastPage;exports.pagerNextPage=e.pagerNextPage;exports.pagerPreviousPage=e.pagerPreviousPage;exports.StatusBar=l.StatusBar;exports.getStatusData=l.getStatusData;exports.leafColumns=l.leafColumns;exports.GridContextMenu=u.GridContextMenu;exports.contextMenuItemsMap=u.contextMenuItemsMap;exports.GridContextMenuAnchorPart=d.GridContextMenuAnchorPart;exports.GridContextMenuItemNames=d.GridContextMenuItemNames;exports.GridSearchBox=H.GridSearchBox;exports.GridPdfExportButton=W.GridPdfExportButton;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("./Grid.js"),a=require("./GridColumn.js"),C=require("./columnMenu/GridColumnMenuWrapper.js"),s=require("./columnMenu/GridColumnMenuGroup.js"),l=require("./columnMenu/GridColumnMenuSort.js"),o=require("./columnMenu/GridColumnMenuFilter.js"),c=require("./columnMenu/GridColumnMenuFilterUI.js"),m=require("./columnMenu/GridColumnMenuFilterCell.js"),p=require("./columnMenu/GridColumnMenuCheckboxFilter.js"),M=require("./columnMenu/GridColumnMenuColumnsList.js"),g=require("./columnMenu/GridColumnMenuColumnsChooser.js"),T=require("./cells/datacell/GridCell.js"),q=require("./cells/editcell/GridEditCell.js"),I=require("./cells/groupcell/GridGroupCell.js"),b=require("./cells/hierarchycell/GridHierarchyCell.js"),S=require("./cells/GridFilterCell.js"),F=require("./header/GridHeaderCell.js"),E=require("./cells/selectioncell/GridSelectionCell.js"),P=require("./rows/GridDetailRow.js"),h=require("./rows/GridRow.js"),x=require("./GridToolbar.js"),D=require("./toolbar-tools/GridToolbarSpacer.js"),R=require("./toolbar-tools/GridToolbarSeparator.js"),A=require("./toolbar-tools/GridToolbarCheckboxFilter.js"),_=require("./toolbar-tools/GridToolbarColumnsChooser.js"),B=require("./toolbar-tools/GridToolbarFilter.js"),N=require("./toolbar-tools/GridToolbarSort.js"),f=require("./toolbar-tools/GridToolbarGroup.js"),L=require("./toolbar-tools/GridToolbarAIAssistant.js"),O=require("./toolbar-tools/ai-tool/GridAIPrompt.js"),y=require("./components/noRecords/GridNoRecords.js"),w=require("./columnMenu/GridColumnMenuItem.js"),k=require("./columnMenu/GridColumnMenuItemContent.js"),v=require("./columnMenu/GridColumnMenuItemGroup.js"),i=require("./constants/index.js"),t=require("@progress/kendo-react-data-tools"),U=require("./drag/CommonDragLogic.js"),r=require("./filterCommon.js"),e=require("./messages/index.js"),n=require("./StatusBar.js"),u=require("./contextMenu/GridContextMenu.js"),d=require("./contextMenu/enums.js"),H=require("./GridSearchBox.js"),W=require("./GridPdfExportButton.js");exports.Grid=G.Grid;exports.GridColumn=a.GridColumn;exports.GridColumnMenuWrapper=C.GridColumnMenuWrapper;exports.GridColumnMenuGroup=s.GridColumnMenuGroup;exports.GridColumnMenuSort=l.GridColumnMenuSort;exports.isColumnMenuSortActive=l.isColumnMenuSortActive;exports.GridColumnMenuFilter=o.GridColumnMenuFilter;exports.filterGroupByField=o.filterGroupByField;exports.isColumnMenuFilterActive=o.isColumnMenuFilterActive;exports.rootFilterOrDefault=o.rootFilterOrDefault;exports.GridColumnMenuFilterUI=c.GridColumnMenuFilterUI;exports.GridColumnMenuFilterCell=m.GridColumnMenuFilterCell;exports.GridColumnMenuCheckboxFilter=p.GridColumnMenuCheckboxFilter;exports.GridColumnMenuColumnsList=M.GridColumnMenuColumnsList;exports.GridColumnMenuColumnsChooser=g.GridColumnMenuColumnsChooser;exports.GridCell=T.GridCell;exports.GridEditCell=q.GridEditCell;exports.GridGroupCell=I.GridGroupCell;exports.GridHierarchyCell=b.GridHierarchyCell;exports.GridFilterCell=S.GridFilterCell;exports.GridHeaderCell=F.GridHeaderCell;exports.GridSelectionCell=E.GridSelectionCell;exports.GridDetailRow=P.GridDetailRow;exports.GridRow=h.GridRow;exports.GridToolbar=x.GridToolbar;exports.GridToolbarSpacer=D.GridToolbarSpacer;exports.GridToolbarSeparator=R.GridToolbarSeparator;exports.GridToolbarCheckboxFilter=A.GridToolbarCheckboxFilter;exports.GridToolbarColumnsChooser=_.GridToolbarColumnsChooser;exports.GridToolbarFilter=B.GridToolbarFilter;exports.GridToolbarSort=N.GridToolbarSort;exports.GridToolbarGroup=f.GridToolbarGroup;exports.GridToolbarAIAssistant=L.GridToolbarAIAssistant;exports.GridAIPrompt=O.GridAIPrompt;exports.GridNoRecords=y.GridNoRecords;exports.GridColumnMenuItem=w.GridColumnMenuItem;exports.GridColumnMenuItemContent=k.GridColumnMenuItemContent;exports.GridColumnMenuItemGroup=v.GridColumnMenuItemGroup;exports.GRID_COL_INDEX_ATTRIBUTE=i.GRID_COL_INDEX_ATTRIBUTE;exports.GRID_PREVENT_SELECTION_ELEMENT=i.GRID_PREVENT_SELECTION_ELEMENT;exports.GRID_ROW_INDEX_ATTRIBUTE=i.GRID_ROW_INDEX_ATTRIBUTE;Object.defineProperty(exports,"getSelectedState",{enumerable:!0,get:()=>t.getSelectedState});Object.defineProperty(exports,"getSelectedStateFromKeyDown",{enumerable:!0,get:()=>t.getSelectedStateFromKeyDown});Object.defineProperty(exports,"setSelectedState",{enumerable:!0,get:()=>t.setSelectedState});exports.GridCommonDragLogic=U.CommonDragLogic;exports.booleanFilterValues=r.booleanFilterValues;exports.cellBoolDropdownChange=r.cellBoolDropdownChange;exports.cellInputChange=r.cellInputChange;exports.cellOperatorChange=r.cellOperatorChange;exports.operators=r.operators;exports.gridMessages=e.messages;exports.pagerFirstPage=e.pagerFirstPage;exports.pagerInfo=e.pagerInfo;exports.pagerItemPerPage=e.pagerItemPerPage;exports.pagerLastPage=e.pagerLastPage;exports.pagerNextPage=e.pagerNextPage;exports.pagerPreviousPage=e.pagerPreviousPage;exports.StatusBar=n.StatusBar;exports.getStatusData=n.getStatusData;exports.leafColumns=n.leafColumns;exports.GridContextMenu=u.GridContextMenu;exports.contextMenuItemsMap=u.contextMenuItemsMap;exports.GridContextMenuAnchorPart=d.GridContextMenuAnchorPart;exports.GridContextMenuItemNames=d.GridContextMenuItemNames;exports.GridSearchBox=H.GridSearchBox;exports.GridPdfExportButton=W.GridPdfExportButton;
package/index.mjs CHANGED
@@ -18,7 +18,7 @@ import { GridColumnMenuColumnsList as F } from "./columnMenu/GridColumnMenuColum
18
18
  import { GridColumnMenuColumnsChooser as D } from "./columnMenu/GridColumnMenuColumnsChooser.mjs";
19
19
  import { GridCell as h } from "./cells/datacell/GridCell.mjs";
20
20
  import { GridEditCell as _ } from "./cells/editcell/GridEditCell.mjs";
21
- import { GridGroupCell as A } from "./cells/groupcell/GridGroupCell.mjs";
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";
24
24
  import { GridHeaderCell as y } from "./header/GridHeaderCell.mjs";
@@ -33,7 +33,7 @@ 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 { GridToolbarAI as nr } from "./toolbar-tools/GridToolbarAI.mjs";
36
+ import { GridToolbarAIAssistant as nr } from "./toolbar-tools/GridToolbarAIAssistant.mjs";
37
37
  import { GridAIPrompt as xr } from "./toolbar-tools/ai-tool/GridAIPrompt.mjs";
38
38
  import { GridNoRecords as fr } from "./components/noRecords/GridNoRecords.mjs";
39
39
  import { GridColumnMenuItem as Gr } from "./columnMenu/GridColumnMenuItem.mjs";
@@ -42,7 +42,7 @@ import { GridColumnMenuItemGroup as Mr } from "./columnMenu/GridColumnMenuItemGr
42
42
  import { GRID_COL_INDEX_ATTRIBUTE as Ir, GRID_PREVENT_SELECTION_ELEMENT as Tr, GRID_ROW_INDEX_ATTRIBUTE as Sr } from "./constants/index.mjs";
43
43
  import { getSelectedState as Fr, getSelectedStateFromKeyDown as br, setSelectedState as Dr } from "@progress/kendo-react-data-tools";
44
44
  import { CommonDragLogic as hr } from "./drag/CommonDragLogic.mjs";
45
- import { booleanFilterValues as _r, cellBoolDropdownChange as Nr, cellInputChange as Ar, cellOperatorChange as Br, operators as Lr } from "./filterCommon.mjs";
45
+ import { booleanFilterValues as _r, cellBoolDropdownChange as Ar, cellInputChange as Nr, cellOperatorChange as Br, operators as Lr } from "./filterCommon.mjs";
46
46
  import { messages as wr, pagerFirstPage as vr, pagerInfo as yr, pagerItemPerPage as Ur, pagerLastPage as kr, pagerNextPage as Hr, pagerPreviousPage as Vr } from "./messages/index.mjs";
47
47
  import { StatusBar as Xr, getStatusData as Kr, leafColumns as jr } from "./StatusBar.mjs";
48
48
  import { GridContextMenu as zr, contextMenuItemsMap as Jr } from "./contextMenu/GridContextMenu.mjs";
@@ -76,7 +76,7 @@ export {
76
76
  V as GridDetailRow,
77
77
  _ as GridEditCell,
78
78
  w as GridFilterCell,
79
- A as GridGroupCell,
79
+ N as GridGroupCell,
80
80
  y as GridHeaderCell,
81
81
  L as GridHierarchyCell,
82
82
  fr as GridNoRecords,
@@ -85,7 +85,7 @@ export {
85
85
  ro as GridSearchBox,
86
86
  k as GridSelectionCell,
87
87
  j as GridToolbar,
88
- nr as GridToolbarAI,
88
+ nr as GridToolbarAIAssistant,
89
89
  Z as GridToolbarCheckboxFilter,
90
90
  rr as GridToolbarColumnsChooser,
91
91
  er as GridToolbarFilter,
@@ -95,8 +95,8 @@ export {
95
95
  z as GridToolbarSpacer,
96
96
  Xr as StatusBar,
97
97
  _r as booleanFilterValues,
98
- Nr as cellBoolDropdownChange,
99
- Ar as cellInputChange,
98
+ Ar as cellBoolDropdownChange,
99
+ Nr as cellInputChange,
100
100
  Br as cellOperatorChange,
101
101
  Jr as contextMenuItemsMap,
102
102
  G as filterGroupByField,
@@ -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={name:"@progress/kendo-react-grid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1753690987,version:"11.4.0-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-grid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1754046349,version:"11.4.0-develop.4",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
@@ -10,8 +10,8 @@ const e = {
10
10
  productName: "KendoReact",
11
11
  productCode: "KENDOUIREACT",
12
12
  productCodes: ["KENDOUIREACT"],
13
- publishDate: 1753690987,
14
- version: "11.4.0-develop.2",
13
+ publishDate: 1754046349,
14
+ version: "11.4.0-develop.4",
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": "11.4.0-develop.2",
3
+ "version": "11.4.0-develop.4",
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.6.0",
31
- "@progress/kendo-react-animation": "11.4.0-develop.2",
32
- "@progress/kendo-react-buttons": "11.4.0-develop.2",
33
- "@progress/kendo-react-common": "11.4.0-develop.2",
34
- "@progress/kendo-react-data-tools": "11.4.0-develop.2",
35
- "@progress/kendo-react-dateinputs": "11.4.0-develop.2",
36
- "@progress/kendo-react-indicators": "11.4.0-develop.2",
37
- "@progress/kendo-react-form": "11.4.0-develop.2",
38
- "@progress/kendo-react-labels": "11.4.0-develop.2",
39
- "@progress/kendo-react-dialogs": "11.4.0-develop.2",
40
- "@progress/kendo-react-dropdowns": "11.4.0-develop.2",
41
- "@progress/kendo-react-inputs": "11.4.0-develop.2",
42
- "@progress/kendo-react-intl": "11.4.0-develop.2",
43
- "@progress/kendo-react-popup": "11.4.0-develop.2",
44
- "@progress/kendo-react-layout": "11.4.0-develop.2",
45
- "@progress/kendo-react-conversational-ui": "11.4.0-develop.2",
31
+ "@progress/kendo-react-animation": "11.4.0-develop.4",
32
+ "@progress/kendo-react-buttons": "11.4.0-develop.4",
33
+ "@progress/kendo-react-common": "11.4.0-develop.4",
34
+ "@progress/kendo-react-data-tools": "11.4.0-develop.4",
35
+ "@progress/kendo-react-dateinputs": "11.4.0-develop.4",
36
+ "@progress/kendo-react-indicators": "11.4.0-develop.4",
37
+ "@progress/kendo-react-form": "11.4.0-develop.4",
38
+ "@progress/kendo-react-labels": "11.4.0-develop.4",
39
+ "@progress/kendo-react-dialogs": "11.4.0-develop.4",
40
+ "@progress/kendo-react-dropdowns": "11.4.0-develop.4",
41
+ "@progress/kendo-react-inputs": "11.4.0-develop.4",
42
+ "@progress/kendo-react-intl": "11.4.0-develop.4",
43
+ "@progress/kendo-react-popup": "11.4.0-develop.4",
44
+ "@progress/kendo-react-layout": "11.4.0-develop.4",
45
+ "@progress/kendo-react-conversational-ui": "11.4.0-develop.4",
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"
@@ -146,7 +146,7 @@
146
146
  "package": {
147
147
  "productName": "KendoReact",
148
148
  "productCode": "KENDOUIREACT",
149
- "publishDate": 1753690987,
149
+ "publishDate": 1754046349,
150
150
  "licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
151
151
  }
152
152
  },
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2025 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 ne=require("react"),se=require("../utils/GridContext.js"),re=require("@progress/kendo-react-buttons"),ae=require("@progress/kendo-svg-icons"),j=require("axios"),x=require("@progress/kendo-react-intl"),i=require("../messages/index.js"),D=require("@progress/kendo-react-common"),ie=require("@progress/kendo-react-dialogs"),le=require("./ai-tool/GridAIPrompt.js");function ce(a){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const c in a)if(c!=="default"){const l=Object.getOwnPropertyDescriptor(a,c);Object.defineProperty(o,c,l.get?l:{enumerable:!0,get:()=>a[c]})}}return o.default=a,Object.freeze(o)}const s=ce(ne),ue=(a,o)=>a.map(l=>{let f=l;return o.forEach(u=>{u.field&&f.includes(u.field)&&(f=f.replace(new RegExp(u.field,"g"),u.title||u.field))}),f}),v=a=>{const o=s.useContext(se.GridContext),c=x.useInternationalization(),l=x.useLocalization(),{requestUrl:f,requestOptions:u,onPromptRequest:S,onResponseSuccess:R,onResponseError:y,role:E="user",gridAIPrompt:G=le.GridAIPrompt,icon:L,svgIcon:h,onCloseWindow:I,promptPlaceHolder:M,suggestionsList:W,streaming:z,outputs:B}=a,[b,k]=s.useState([]),F=s.useMemo(()=>o&&Array.isArray(o.columnsRef)?o.columnsRef.map(e=>({field:e.field})):[],[o]),[N,g]=s.useState(!1),[m,w]=s.useState(!1),[H,_]=s.useState(),[q,$]=s.useState(),p=s.useRef(null),C=s.useRef(null),K=e=>{e.preventDefault(),w(!m)},A=s.useMemo(()=>{var e;return(e=a.show)!=null?e:m},[a.show,m]),O=()=>{var e;I&&I(),k([]),w(!1),p.current&&((e=p.current.element)==null||e.focus())},T=e=>{e.filters=e.filters.map(n=>{if(n.value){const d=c.parseDate(n.value);d&&(n.value=d)}return n})},U=(e,n,d)=>{if(g(!1),e!=null&&e.data){if(e.data.sort&&o.sortChange(e.data.sort,e),e.data.filter){let t=e.data.filter;if(t&&Object.keys(t).length===0&&(t=null),t!=null&&t.filters&&Array.isArray(t.filters)){T(t);const r=o.filter||{filters:[],logic:"or"},te=t.filters.map(oe=>({logic:"and",filters:[oe]}));t={...r,filters:[...r.filters,...te]}}o.filterChange(t,e)}if(e.data.highlight){let t=e.data.highlight;Array.isArray(t)&&(t=t.map(r=>(r!=null&&r.filters&&Array.isArray(r.filters)&&T(r),r))),o.applyHighlightDescriptor(t)}if(e.data.group&&o.groupChange(e.data.group,e),e.data.messages){const t=[l.toLanguageString(i.aIResponseData,i.messages[i.aIResponseData])],r=ue(e.data.messages,o.columnsRef).join(`
9
+ `);k([...b,{id:b.length+1,title:l.toLanguageString(i.generatedWithAI,i.messages[i.generatedWithAI]),subTitle:n,prompt:n,responseContent:t.concat(r).join(""),isRetry:d}])}}R&&R(e)},V=e=>{y&&y(e),g(!1)},X=(e,n)=>{const d=j.CancelToken.source(),t={role:"user",columns:F||[],headers:{Accept:"*/*","Content-Type":"application/json"},promptMessage:e,requestOptions:{url:f,method:"POST",withCredentials:!1,responseType:"json",cancelToken:d.token,...u}};S&&S(t,n),t.requestOptions.url!==void 0&&(g(!0),j({...t.requestOptions,headers:t.headers,data:{role:E||t.role,contents:[{$type:"text",text:t.promptMessage}],columns:t.columns||[]},...a.requestOptions}).then(r=>U(r,t.promptMessage,n)).catch(V),C.current=d)},Y=()=>{C.current&&C.current.cancel("Request cancelled by user."),g(!1)},[J,P]=D.useCustomComponent(G),Q=Object.keys(P).length>0?P:{},Z=s.createElement(J,{onPromptRequest:X,onCancel:Y,onClose:O,streaming:z||N,outputs:B||b,promptPlaceHolder:M,suggestionsList:W,...Q}),ee=s.createElement(re.Button,{ref:p,togglable:!0,themeColor:"primary",rounded:"full",selected:A,svgIcon:h!=null?h:ae.sparklesIcon,icon:L,size:o.mobileMode?"large":"medium",className:D.classNames("k-toolbar-button",{"k-icon-button":o.mobileMode}),title:l.toLanguageString(i.toolbarAI,i.messages[i.toolbarAI]),onClick:K});return s.useEffect(()=>{var e;if(p.current&&A){const n=(e=p.current.element)==null?void 0:e.getBoundingClientRect();n&&(_(n.top+window.scrollY+n.height),$(n.left+window.scrollX+n.width))}},[A]),s.createElement(s.Fragment,null,ee,m&&s.createElement(ie.Window,{autoFocus:!1,title:l.toLanguageString(i.toolbarAI,i.messages[i.toolbarAI]),initialTop:H,initialLeft:q,onClose:O,resizable:!0,draggable:!0,initialWidth:437,initialHeight:460,className:"k-grid-assistant-window"},Z))};v.displayName="KendoReactGridToolbarAIAssistant";exports.GridToolbarAIAssistant=v;