@progress/kendo-react-grid 12.0.0-develop.9 → 12.0.1-develop.1
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/dist/cdn/js/kendo-react-grid.js +1 -1
- package/index.d.mts +233 -7
- package/index.d.ts +233 -7
- 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 +45 -43
- package/toolbar-tools/ai-tool/GridAIPrompt.js +2 -2
- package/toolbar-tools/ai-tool/GridAIPrompt.mjs +27 -25
package/index.d.mts
CHANGED
|
@@ -56,6 +56,7 @@ import { SelectDescriptor } from '@progress/kendo-react-data-tools';
|
|
|
56
56
|
import { setSelectedState } from '@progress/kendo-react-data-tools';
|
|
57
57
|
import { SortDescriptor } from '@progress/kendo-data-query';
|
|
58
58
|
import { SortSettings } from '@progress/kendo-react-data-tools';
|
|
59
|
+
import { SpeechToTextButtonProps } from '@progress/kendo-react-buttons';
|
|
59
60
|
import { State } from '@progress/kendo-data-query';
|
|
60
61
|
import { SVGIcon } from '@progress/kendo-react-common';
|
|
61
62
|
import { SVGIcon as SVGIcon_2 } from '@progress/kendo-svg-icons';
|
|
@@ -373,6 +374,15 @@ export declare interface GridAIPromptProps {
|
|
|
373
374
|
* outputs={[{ text: "AI output 1" }, { text: "AI output 2" }]}
|
|
374
375
|
*/
|
|
375
376
|
outputs?: AIPromptOutputInterface[];
|
|
377
|
+
/**
|
|
378
|
+
* Enables the speech-to-text functionality for the input of the GridToolbarAIAssistant.
|
|
379
|
+
*
|
|
380
|
+
* @example
|
|
381
|
+
* ```jsx
|
|
382
|
+
* <GridToolbarAIAssistant enableSpeechToText={true} />
|
|
383
|
+
* ```
|
|
384
|
+
*/
|
|
385
|
+
enableSpeechToText?: boolean | SpeechToTextButtonProps;
|
|
376
386
|
/**
|
|
377
387
|
* Indicates whether the prompt is currently streaming or processing.
|
|
378
388
|
*
|
|
@@ -608,31 +618,238 @@ export declare interface GridCellProps extends Omit<CellProps, 'onChange' | 'ren
|
|
|
608
618
|
* The settings of the cells prop options.
|
|
609
619
|
*/
|
|
610
620
|
export declare interface GridCellsSettings {
|
|
621
|
+
/**
|
|
622
|
+
* Custom component for rendering the header cell.
|
|
623
|
+
*
|
|
624
|
+
* @example
|
|
625
|
+
* ```tsx
|
|
626
|
+
* import { MyHeaderCell } from './MyHeaderCell';
|
|
627
|
+
* <Grid cells={{ headerCell: MyHeaderCell }} />
|
|
628
|
+
* ```
|
|
629
|
+
*/
|
|
611
630
|
headerCell?: ComponentType<GridCustomHeaderCellProps>;
|
|
631
|
+
/**
|
|
632
|
+
* Custom component for rendering the filter cell.
|
|
633
|
+
*
|
|
634
|
+
* @example
|
|
635
|
+
* ```tsx
|
|
636
|
+
* import { MyFilterCell } from './MyFilterCell';
|
|
637
|
+
* <Grid cells={{ filterCell: MyFilterCell }} />
|
|
638
|
+
* ```
|
|
639
|
+
*/
|
|
612
640
|
filterCell?: ComponentType<GridCustomFilterCellProps>;
|
|
641
|
+
/**
|
|
642
|
+
* Custom component for rendering the footer cell.
|
|
643
|
+
*
|
|
644
|
+
* @example
|
|
645
|
+
* ```tsx
|
|
646
|
+
* import { MyFooterCell } from './MyFooterCell';
|
|
647
|
+
* <Grid cells={{ footerCell: MyFooterCell }} />
|
|
648
|
+
* ```
|
|
649
|
+
*/
|
|
613
650
|
footerCell?: ComponentType<GridCustomFooterCellProps>;
|
|
651
|
+
/**
|
|
652
|
+
* Custom component for rendering the group header cell.
|
|
653
|
+
*
|
|
654
|
+
* @example
|
|
655
|
+
* ```tsx
|
|
656
|
+
* import { MyGroupHeaderCell } from './MyGroupHeaderCell';
|
|
657
|
+
* <Grid cells={{ groupHeader: MyGroupHeaderCell }} />
|
|
658
|
+
* ```
|
|
659
|
+
*/
|
|
614
660
|
groupHeader?: ComponentType<GridCustomCellProps>;
|
|
661
|
+
/**
|
|
662
|
+
* Custom component for rendering the data cell.
|
|
663
|
+
*
|
|
664
|
+
* @example
|
|
665
|
+
* ```tsx
|
|
666
|
+
* import { MyDataCell } from './MyDataCell';
|
|
667
|
+
* <Grid cells={{ data: MyDataCell }} />
|
|
668
|
+
* ```
|
|
669
|
+
*/
|
|
615
670
|
data?: ComponentType<GridCustomCellProps>;
|
|
671
|
+
/**
|
|
672
|
+
* Custom component for rendering the group footer cell.
|
|
673
|
+
*
|
|
674
|
+
* @example
|
|
675
|
+
* ```tsx
|
|
676
|
+
* import { MyGroupFooterCell } from './MyGroupFooterCell';
|
|
677
|
+
* <Grid cells={{ groupFooter: MyGroupFooterCell }} />
|
|
678
|
+
* ```
|
|
679
|
+
*/
|
|
616
680
|
groupFooter?: ComponentType<GridCustomCellProps>;
|
|
681
|
+
/**
|
|
682
|
+
* Custom cell components for selection columns.
|
|
683
|
+
*
|
|
684
|
+
* @example
|
|
685
|
+
* ```tsx
|
|
686
|
+
* import { MySelectDataCell } from './MySelectDataCell';
|
|
687
|
+
* <Grid cells={{ select: { data: MySelectDataCell } }} />
|
|
688
|
+
* ```
|
|
689
|
+
*/
|
|
617
690
|
select?: {
|
|
691
|
+
/**
|
|
692
|
+
* Custom component for rendering the group header cell in selection columns.
|
|
693
|
+
*
|
|
694
|
+
* @example
|
|
695
|
+
* ```tsx
|
|
696
|
+
* import { MySelectGroupHeaderCell } from './MySelectGroupHeaderCell';
|
|
697
|
+
* <Grid cells={{ select: { groupHeader: MySelectGroupHeaderCell } }} />
|
|
698
|
+
* ```
|
|
699
|
+
*/
|
|
618
700
|
groupHeader?: ComponentType<GridCustomCellProps>;
|
|
701
|
+
/**
|
|
702
|
+
* Custom component for rendering the data cell in selection columns.
|
|
703
|
+
*
|
|
704
|
+
* @example
|
|
705
|
+
* ```tsx
|
|
706
|
+
* import { MySelectDataCell } from './MySelectDataCell';
|
|
707
|
+
* <Grid cells={{ select: { data: MySelectDataCell } }} />
|
|
708
|
+
* ```
|
|
709
|
+
*/
|
|
619
710
|
data?: ComponentType<GridCustomCellProps>;
|
|
711
|
+
/**
|
|
712
|
+
* Custom component for rendering the group footer cell in selection columns.
|
|
713
|
+
*
|
|
714
|
+
* @example
|
|
715
|
+
* ```tsx
|
|
716
|
+
* import { MySelectGroupFooterCell } from './MySelectGroupFooterCell';
|
|
717
|
+
* <Grid cells={{ select: { groupFooter: MySelectGroupFooterCell } }} />
|
|
718
|
+
* ```
|
|
719
|
+
*/
|
|
620
720
|
groupFooter?: ComponentType<GridCustomCellProps>;
|
|
621
721
|
};
|
|
722
|
+
/**
|
|
723
|
+
* Custom cell components for hierarchy columns.
|
|
724
|
+
*
|
|
725
|
+
* @example
|
|
726
|
+
* ```tsx
|
|
727
|
+
* import { MyHierarchyDataCell } from './MyHierarchyDataCell';
|
|
728
|
+
* <Grid cells={{ hierarchy: { data: MyHierarchyDataCell } }} />
|
|
729
|
+
* ```
|
|
730
|
+
*/
|
|
622
731
|
hierarchy?: {
|
|
732
|
+
/**
|
|
733
|
+
* Custom component for rendering the group header cell in hierarchy columns.
|
|
734
|
+
*
|
|
735
|
+
* @example
|
|
736
|
+
* ```tsx
|
|
737
|
+
* import { MyHierarchyGroupHeaderCell } from './MyHierarchyGroupHeaderCell';
|
|
738
|
+
* <Grid cells={{ hierarchy: { groupHeader: MyHierarchyGroupHeaderCell } }} />
|
|
739
|
+
* ```
|
|
740
|
+
*/
|
|
623
741
|
groupHeader?: ComponentType<GridCustomCellProps>;
|
|
742
|
+
/**
|
|
743
|
+
* Custom component for rendering the data cell in hierarchy columns.
|
|
744
|
+
*
|
|
745
|
+
* @example
|
|
746
|
+
* ```tsx
|
|
747
|
+
* import { MyHierarchyDataCell } from './MyHierarchyDataCell';
|
|
748
|
+
* <Grid cells={{ hierarchy: { data: MyHierarchyDataCell } }} />
|
|
749
|
+
* ```
|
|
750
|
+
*/
|
|
624
751
|
data?: ComponentType<GridCustomCellProps>;
|
|
752
|
+
/**
|
|
753
|
+
* Custom component for rendering the group footer cell in hierarchy columns.
|
|
754
|
+
*
|
|
755
|
+
* @example
|
|
756
|
+
* ```tsx
|
|
757
|
+
* import { MyHierarchyGroupFooterCell } from './MyHierarchyGroupFooterCell';
|
|
758
|
+
* <Grid cells={{ hierarchy: { groupFooter: MyHierarchyGroupFooterCell } }} />
|
|
759
|
+
* ```
|
|
760
|
+
*/
|
|
625
761
|
groupFooter?: ComponentType<GridCustomCellProps>;
|
|
626
762
|
};
|
|
763
|
+
/**
|
|
764
|
+
* Custom cell components for group columns.
|
|
765
|
+
*
|
|
766
|
+
* @example
|
|
767
|
+
* ```tsx
|
|
768
|
+
* import { MyGroupDataCell } from './MyGroupDataCell';
|
|
769
|
+
* <Grid cells={{ group: { data: MyGroupDataCell } }} />
|
|
770
|
+
* ```
|
|
771
|
+
*/
|
|
627
772
|
group?: {
|
|
773
|
+
/**
|
|
774
|
+
* Custom component for rendering the group header cell in group columns.
|
|
775
|
+
*
|
|
776
|
+
* @example
|
|
777
|
+
* ```tsx
|
|
778
|
+
* import { MyGroupGroupHeaderCell } from './MyGroupGroupHeaderCell';
|
|
779
|
+
* <Grid cells={{ group: { groupHeader: MyGroupGroupHeaderCell } }} />
|
|
780
|
+
* ```
|
|
781
|
+
*/
|
|
628
782
|
groupHeader?: ComponentType<GridCustomCellProps>;
|
|
783
|
+
/**
|
|
784
|
+
* Custom component for rendering the data cell in group columns.
|
|
785
|
+
*
|
|
786
|
+
* @example
|
|
787
|
+
* ```tsx
|
|
788
|
+
* import { MyGroupDataCell } from './MyGroupDataCell';
|
|
789
|
+
* <Grid cells={{ group: { data: MyGroupDataCell } }} />
|
|
790
|
+
* ```
|
|
791
|
+
*/
|
|
629
792
|
data?: ComponentType<GridCustomCellProps>;
|
|
793
|
+
/**
|
|
794
|
+
* Custom component for rendering the group footer cell in group columns.
|
|
795
|
+
*
|
|
796
|
+
* @example
|
|
797
|
+
* ```tsx
|
|
798
|
+
* import { MyGroupGroupFooterCell } from './MyGroupGroupFooterCell';
|
|
799
|
+
* <Grid cells={{ group: { groupFooter: MyGroupGroupFooterCell } }} />
|
|
800
|
+
* ```
|
|
801
|
+
*/
|
|
630
802
|
groupFooter?: ComponentType<GridCustomCellProps>;
|
|
631
803
|
};
|
|
804
|
+
/**
|
|
805
|
+
* Custom cell components for edit columns.
|
|
806
|
+
*
|
|
807
|
+
* @example
|
|
808
|
+
* ```tsx
|
|
809
|
+
* import { MyTextEditCell } from './MyTextEditCell';
|
|
810
|
+
* <Grid cells={{ edit: { text: MyTextEditCell } }} />
|
|
811
|
+
* ```
|
|
812
|
+
*/
|
|
632
813
|
edit?: {
|
|
814
|
+
/**
|
|
815
|
+
* Custom component for rendering the text edit cell.
|
|
816
|
+
*
|
|
817
|
+
* @example
|
|
818
|
+
* ```tsx
|
|
819
|
+
* import { MyTextEditCell } from './MyTextEditCell';
|
|
820
|
+
* <Grid cells={{ edit: { text: MyTextEditCell } }} />
|
|
821
|
+
* ```
|
|
822
|
+
*/
|
|
633
823
|
text?: ComponentType<GridCustomCellProps>;
|
|
824
|
+
/**
|
|
825
|
+
* Custom component for rendering the numeric edit cell.
|
|
826
|
+
*
|
|
827
|
+
* @example
|
|
828
|
+
* ```tsx
|
|
829
|
+
* import { MyNumericEditCell } from './MyNumericEditCell';
|
|
830
|
+
* <Grid cells={{ edit: { numeric: MyNumericEditCell } }} />
|
|
831
|
+
* ```
|
|
832
|
+
*/
|
|
634
833
|
numeric?: ComponentType<GridCustomCellProps>;
|
|
834
|
+
/**
|
|
835
|
+
* Custom component for rendering the boolean edit cell.
|
|
836
|
+
*
|
|
837
|
+
* @example
|
|
838
|
+
* ```tsx
|
|
839
|
+
* import { MyBooleanEditCell } from './MyBooleanEditCell';
|
|
840
|
+
* <Grid cells={{ edit: { boolean: MyBooleanEditCell } }} />
|
|
841
|
+
* ```
|
|
842
|
+
*/
|
|
635
843
|
boolean?: ComponentType<GridCustomCellProps>;
|
|
844
|
+
/**
|
|
845
|
+
* Custom component for rendering the date edit cell.
|
|
846
|
+
*
|
|
847
|
+
* @example
|
|
848
|
+
* ```tsx
|
|
849
|
+
* import { MyDateEditCell } from './MyDateEditCell';
|
|
850
|
+
* <Grid cells={{ edit: { date: MyDateEditCell } }} />
|
|
851
|
+
* ```
|
|
852
|
+
*/
|
|
636
853
|
date?: ComponentType<GridCustomCellProps>;
|
|
637
854
|
};
|
|
638
855
|
}
|
|
@@ -2127,9 +2344,9 @@ export declare interface GridHandle {
|
|
|
2127
2344
|
* <GridColumn field="foo" />
|
|
2128
2345
|
* <GridColumn field="bar" />
|
|
2129
2346
|
* </Grid>
|
|
2130
|
-
* <
|
|
2347
|
+
* <Button onClick={() => console.log(JSON.stringify(grid.current?.columns))}>
|
|
2131
2348
|
* log current properties into browser console.
|
|
2132
|
-
* </
|
|
2349
|
+
* </Button>
|
|
2133
2350
|
* </div>
|
|
2134
2351
|
* );
|
|
2135
2352
|
* };
|
|
@@ -2176,9 +2393,9 @@ export declare interface GridHandle {
|
|
|
2176
2393
|
* colSpan={1}>
|
|
2177
2394
|
* <span>
|
|
2178
2395
|
* {props.title || props.field + ' '}
|
|
2179
|
-
* <
|
|
2396
|
+
* <Button onClick={() => setBarDetails(!barDetails)}>
|
|
2180
2397
|
* {barDetails ? 'collapse' : 'expand'}
|
|
2181
|
-
* </
|
|
2398
|
+
* </Button>
|
|
2182
2399
|
* {props.children}
|
|
2183
2400
|
* </span>
|
|
2184
2401
|
* </td>
|
|
@@ -3740,9 +3957,9 @@ export declare interface GridThAttributes extends HeaderThElementProps {
|
|
|
3740
3957
|
* return (
|
|
3741
3958
|
* <Grid data={data}>
|
|
3742
3959
|
* <GridToolbar>
|
|
3743
|
-
* <
|
|
3960
|
+
* <Button title="Click" onClick={customClick}>
|
|
3744
3961
|
* Click
|
|
3745
|
-
* </
|
|
3962
|
+
* </Button>
|
|
3746
3963
|
* </GridToolbar>
|
|
3747
3964
|
* </Grid>
|
|
3748
3965
|
* );
|
|
@@ -3761,7 +3978,7 @@ export declare const GridToolbar: {
|
|
|
3761
3978
|
*/
|
|
3762
3979
|
export declare const GridToolbarAIAssistant: React_2.ForwardRefExoticComponent<GridToolbarAIAssistantProps & React_2.RefAttributes<GridToolbarAIAssistantHandle>>;
|
|
3763
3980
|
|
|
3764
|
-
declare interface GridToolbarAIAssistantHandle {
|
|
3981
|
+
export declare interface GridToolbarAIAssistantHandle {
|
|
3765
3982
|
show: () => void;
|
|
3766
3983
|
hide: () => void;
|
|
3767
3984
|
}
|
|
@@ -3776,6 +3993,15 @@ export declare interface GridToolbarAIAssistantProps {
|
|
|
3776
3993
|
* ```
|
|
3777
3994
|
*/
|
|
3778
3995
|
requestUrl?: string;
|
|
3996
|
+
/**
|
|
3997
|
+
* Enables the speech-to-text functionality for the input of the GridToolbarAIAssistant.
|
|
3998
|
+
*
|
|
3999
|
+
* @example
|
|
4000
|
+
* ```jsx
|
|
4001
|
+
* <GridToolbarAIAssistant enableSpeechToText={true} />
|
|
4002
|
+
* ```
|
|
4003
|
+
*/
|
|
4004
|
+
enableSpeechToText?: boolean | SpeechToTextButtonProps;
|
|
3779
4005
|
/**
|
|
3780
4006
|
* Defines the placeholder text for the AI prompt input.
|
|
3781
4007
|
*
|
package/index.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ import { SelectDescriptor } from '@progress/kendo-react-data-tools';
|
|
|
56
56
|
import { setSelectedState } from '@progress/kendo-react-data-tools';
|
|
57
57
|
import { SortDescriptor } from '@progress/kendo-data-query';
|
|
58
58
|
import { SortSettings } from '@progress/kendo-react-data-tools';
|
|
59
|
+
import { SpeechToTextButtonProps } from '@progress/kendo-react-buttons';
|
|
59
60
|
import { State } from '@progress/kendo-data-query';
|
|
60
61
|
import { SVGIcon } from '@progress/kendo-react-common';
|
|
61
62
|
import { SVGIcon as SVGIcon_2 } from '@progress/kendo-svg-icons';
|
|
@@ -373,6 +374,15 @@ export declare interface GridAIPromptProps {
|
|
|
373
374
|
* outputs={[{ text: "AI output 1" }, { text: "AI output 2" }]}
|
|
374
375
|
*/
|
|
375
376
|
outputs?: AIPromptOutputInterface[];
|
|
377
|
+
/**
|
|
378
|
+
* Enables the speech-to-text functionality for the input of the GridToolbarAIAssistant.
|
|
379
|
+
*
|
|
380
|
+
* @example
|
|
381
|
+
* ```jsx
|
|
382
|
+
* <GridToolbarAIAssistant enableSpeechToText={true} />
|
|
383
|
+
* ```
|
|
384
|
+
*/
|
|
385
|
+
enableSpeechToText?: boolean | SpeechToTextButtonProps;
|
|
376
386
|
/**
|
|
377
387
|
* Indicates whether the prompt is currently streaming or processing.
|
|
378
388
|
*
|
|
@@ -608,31 +618,238 @@ export declare interface GridCellProps extends Omit<CellProps, 'onChange' | 'ren
|
|
|
608
618
|
* The settings of the cells prop options.
|
|
609
619
|
*/
|
|
610
620
|
export declare interface GridCellsSettings {
|
|
621
|
+
/**
|
|
622
|
+
* Custom component for rendering the header cell.
|
|
623
|
+
*
|
|
624
|
+
* @example
|
|
625
|
+
* ```tsx
|
|
626
|
+
* import { MyHeaderCell } from './MyHeaderCell';
|
|
627
|
+
* <Grid cells={{ headerCell: MyHeaderCell }} />
|
|
628
|
+
* ```
|
|
629
|
+
*/
|
|
611
630
|
headerCell?: ComponentType<GridCustomHeaderCellProps>;
|
|
631
|
+
/**
|
|
632
|
+
* Custom component for rendering the filter cell.
|
|
633
|
+
*
|
|
634
|
+
* @example
|
|
635
|
+
* ```tsx
|
|
636
|
+
* import { MyFilterCell } from './MyFilterCell';
|
|
637
|
+
* <Grid cells={{ filterCell: MyFilterCell }} />
|
|
638
|
+
* ```
|
|
639
|
+
*/
|
|
612
640
|
filterCell?: ComponentType<GridCustomFilterCellProps>;
|
|
641
|
+
/**
|
|
642
|
+
* Custom component for rendering the footer cell.
|
|
643
|
+
*
|
|
644
|
+
* @example
|
|
645
|
+
* ```tsx
|
|
646
|
+
* import { MyFooterCell } from './MyFooterCell';
|
|
647
|
+
* <Grid cells={{ footerCell: MyFooterCell }} />
|
|
648
|
+
* ```
|
|
649
|
+
*/
|
|
613
650
|
footerCell?: ComponentType<GridCustomFooterCellProps>;
|
|
651
|
+
/**
|
|
652
|
+
* Custom component for rendering the group header cell.
|
|
653
|
+
*
|
|
654
|
+
* @example
|
|
655
|
+
* ```tsx
|
|
656
|
+
* import { MyGroupHeaderCell } from './MyGroupHeaderCell';
|
|
657
|
+
* <Grid cells={{ groupHeader: MyGroupHeaderCell }} />
|
|
658
|
+
* ```
|
|
659
|
+
*/
|
|
614
660
|
groupHeader?: ComponentType<GridCustomCellProps>;
|
|
661
|
+
/**
|
|
662
|
+
* Custom component for rendering the data cell.
|
|
663
|
+
*
|
|
664
|
+
* @example
|
|
665
|
+
* ```tsx
|
|
666
|
+
* import { MyDataCell } from './MyDataCell';
|
|
667
|
+
* <Grid cells={{ data: MyDataCell }} />
|
|
668
|
+
* ```
|
|
669
|
+
*/
|
|
615
670
|
data?: ComponentType<GridCustomCellProps>;
|
|
671
|
+
/**
|
|
672
|
+
* Custom component for rendering the group footer cell.
|
|
673
|
+
*
|
|
674
|
+
* @example
|
|
675
|
+
* ```tsx
|
|
676
|
+
* import { MyGroupFooterCell } from './MyGroupFooterCell';
|
|
677
|
+
* <Grid cells={{ groupFooter: MyGroupFooterCell }} />
|
|
678
|
+
* ```
|
|
679
|
+
*/
|
|
616
680
|
groupFooter?: ComponentType<GridCustomCellProps>;
|
|
681
|
+
/**
|
|
682
|
+
* Custom cell components for selection columns.
|
|
683
|
+
*
|
|
684
|
+
* @example
|
|
685
|
+
* ```tsx
|
|
686
|
+
* import { MySelectDataCell } from './MySelectDataCell';
|
|
687
|
+
* <Grid cells={{ select: { data: MySelectDataCell } }} />
|
|
688
|
+
* ```
|
|
689
|
+
*/
|
|
617
690
|
select?: {
|
|
691
|
+
/**
|
|
692
|
+
* Custom component for rendering the group header cell in selection columns.
|
|
693
|
+
*
|
|
694
|
+
* @example
|
|
695
|
+
* ```tsx
|
|
696
|
+
* import { MySelectGroupHeaderCell } from './MySelectGroupHeaderCell';
|
|
697
|
+
* <Grid cells={{ select: { groupHeader: MySelectGroupHeaderCell } }} />
|
|
698
|
+
* ```
|
|
699
|
+
*/
|
|
618
700
|
groupHeader?: ComponentType<GridCustomCellProps>;
|
|
701
|
+
/**
|
|
702
|
+
* Custom component for rendering the data cell in selection columns.
|
|
703
|
+
*
|
|
704
|
+
* @example
|
|
705
|
+
* ```tsx
|
|
706
|
+
* import { MySelectDataCell } from './MySelectDataCell';
|
|
707
|
+
* <Grid cells={{ select: { data: MySelectDataCell } }} />
|
|
708
|
+
* ```
|
|
709
|
+
*/
|
|
619
710
|
data?: ComponentType<GridCustomCellProps>;
|
|
711
|
+
/**
|
|
712
|
+
* Custom component for rendering the group footer cell in selection columns.
|
|
713
|
+
*
|
|
714
|
+
* @example
|
|
715
|
+
* ```tsx
|
|
716
|
+
* import { MySelectGroupFooterCell } from './MySelectGroupFooterCell';
|
|
717
|
+
* <Grid cells={{ select: { groupFooter: MySelectGroupFooterCell } }} />
|
|
718
|
+
* ```
|
|
719
|
+
*/
|
|
620
720
|
groupFooter?: ComponentType<GridCustomCellProps>;
|
|
621
721
|
};
|
|
722
|
+
/**
|
|
723
|
+
* Custom cell components for hierarchy columns.
|
|
724
|
+
*
|
|
725
|
+
* @example
|
|
726
|
+
* ```tsx
|
|
727
|
+
* import { MyHierarchyDataCell } from './MyHierarchyDataCell';
|
|
728
|
+
* <Grid cells={{ hierarchy: { data: MyHierarchyDataCell } }} />
|
|
729
|
+
* ```
|
|
730
|
+
*/
|
|
622
731
|
hierarchy?: {
|
|
732
|
+
/**
|
|
733
|
+
* Custom component for rendering the group header cell in hierarchy columns.
|
|
734
|
+
*
|
|
735
|
+
* @example
|
|
736
|
+
* ```tsx
|
|
737
|
+
* import { MyHierarchyGroupHeaderCell } from './MyHierarchyGroupHeaderCell';
|
|
738
|
+
* <Grid cells={{ hierarchy: { groupHeader: MyHierarchyGroupHeaderCell } }} />
|
|
739
|
+
* ```
|
|
740
|
+
*/
|
|
623
741
|
groupHeader?: ComponentType<GridCustomCellProps>;
|
|
742
|
+
/**
|
|
743
|
+
* Custom component for rendering the data cell in hierarchy columns.
|
|
744
|
+
*
|
|
745
|
+
* @example
|
|
746
|
+
* ```tsx
|
|
747
|
+
* import { MyHierarchyDataCell } from './MyHierarchyDataCell';
|
|
748
|
+
* <Grid cells={{ hierarchy: { data: MyHierarchyDataCell } }} />
|
|
749
|
+
* ```
|
|
750
|
+
*/
|
|
624
751
|
data?: ComponentType<GridCustomCellProps>;
|
|
752
|
+
/**
|
|
753
|
+
* Custom component for rendering the group footer cell in hierarchy columns.
|
|
754
|
+
*
|
|
755
|
+
* @example
|
|
756
|
+
* ```tsx
|
|
757
|
+
* import { MyHierarchyGroupFooterCell } from './MyHierarchyGroupFooterCell';
|
|
758
|
+
* <Grid cells={{ hierarchy: { groupFooter: MyHierarchyGroupFooterCell } }} />
|
|
759
|
+
* ```
|
|
760
|
+
*/
|
|
625
761
|
groupFooter?: ComponentType<GridCustomCellProps>;
|
|
626
762
|
};
|
|
763
|
+
/**
|
|
764
|
+
* Custom cell components for group columns.
|
|
765
|
+
*
|
|
766
|
+
* @example
|
|
767
|
+
* ```tsx
|
|
768
|
+
* import { MyGroupDataCell } from './MyGroupDataCell';
|
|
769
|
+
* <Grid cells={{ group: { data: MyGroupDataCell } }} />
|
|
770
|
+
* ```
|
|
771
|
+
*/
|
|
627
772
|
group?: {
|
|
773
|
+
/**
|
|
774
|
+
* Custom component for rendering the group header cell in group columns.
|
|
775
|
+
*
|
|
776
|
+
* @example
|
|
777
|
+
* ```tsx
|
|
778
|
+
* import { MyGroupGroupHeaderCell } from './MyGroupGroupHeaderCell';
|
|
779
|
+
* <Grid cells={{ group: { groupHeader: MyGroupGroupHeaderCell } }} />
|
|
780
|
+
* ```
|
|
781
|
+
*/
|
|
628
782
|
groupHeader?: ComponentType<GridCustomCellProps>;
|
|
783
|
+
/**
|
|
784
|
+
* Custom component for rendering the data cell in group columns.
|
|
785
|
+
*
|
|
786
|
+
* @example
|
|
787
|
+
* ```tsx
|
|
788
|
+
* import { MyGroupDataCell } from './MyGroupDataCell';
|
|
789
|
+
* <Grid cells={{ group: { data: MyGroupDataCell } }} />
|
|
790
|
+
* ```
|
|
791
|
+
*/
|
|
629
792
|
data?: ComponentType<GridCustomCellProps>;
|
|
793
|
+
/**
|
|
794
|
+
* Custom component for rendering the group footer cell in group columns.
|
|
795
|
+
*
|
|
796
|
+
* @example
|
|
797
|
+
* ```tsx
|
|
798
|
+
* import { MyGroupGroupFooterCell } from './MyGroupGroupFooterCell';
|
|
799
|
+
* <Grid cells={{ group: { groupFooter: MyGroupGroupFooterCell } }} />
|
|
800
|
+
* ```
|
|
801
|
+
*/
|
|
630
802
|
groupFooter?: ComponentType<GridCustomCellProps>;
|
|
631
803
|
};
|
|
804
|
+
/**
|
|
805
|
+
* Custom cell components for edit columns.
|
|
806
|
+
*
|
|
807
|
+
* @example
|
|
808
|
+
* ```tsx
|
|
809
|
+
* import { MyTextEditCell } from './MyTextEditCell';
|
|
810
|
+
* <Grid cells={{ edit: { text: MyTextEditCell } }} />
|
|
811
|
+
* ```
|
|
812
|
+
*/
|
|
632
813
|
edit?: {
|
|
814
|
+
/**
|
|
815
|
+
* Custom component for rendering the text edit cell.
|
|
816
|
+
*
|
|
817
|
+
* @example
|
|
818
|
+
* ```tsx
|
|
819
|
+
* import { MyTextEditCell } from './MyTextEditCell';
|
|
820
|
+
* <Grid cells={{ edit: { text: MyTextEditCell } }} />
|
|
821
|
+
* ```
|
|
822
|
+
*/
|
|
633
823
|
text?: ComponentType<GridCustomCellProps>;
|
|
824
|
+
/**
|
|
825
|
+
* Custom component for rendering the numeric edit cell.
|
|
826
|
+
*
|
|
827
|
+
* @example
|
|
828
|
+
* ```tsx
|
|
829
|
+
* import { MyNumericEditCell } from './MyNumericEditCell';
|
|
830
|
+
* <Grid cells={{ edit: { numeric: MyNumericEditCell } }} />
|
|
831
|
+
* ```
|
|
832
|
+
*/
|
|
634
833
|
numeric?: ComponentType<GridCustomCellProps>;
|
|
834
|
+
/**
|
|
835
|
+
* Custom component for rendering the boolean edit cell.
|
|
836
|
+
*
|
|
837
|
+
* @example
|
|
838
|
+
* ```tsx
|
|
839
|
+
* import { MyBooleanEditCell } from './MyBooleanEditCell';
|
|
840
|
+
* <Grid cells={{ edit: { boolean: MyBooleanEditCell } }} />
|
|
841
|
+
* ```
|
|
842
|
+
*/
|
|
635
843
|
boolean?: ComponentType<GridCustomCellProps>;
|
|
844
|
+
/**
|
|
845
|
+
* Custom component for rendering the date edit cell.
|
|
846
|
+
*
|
|
847
|
+
* @example
|
|
848
|
+
* ```tsx
|
|
849
|
+
* import { MyDateEditCell } from './MyDateEditCell';
|
|
850
|
+
* <Grid cells={{ edit: { date: MyDateEditCell } }} />
|
|
851
|
+
* ```
|
|
852
|
+
*/
|
|
636
853
|
date?: ComponentType<GridCustomCellProps>;
|
|
637
854
|
};
|
|
638
855
|
}
|
|
@@ -2127,9 +2344,9 @@ export declare interface GridHandle {
|
|
|
2127
2344
|
* <GridColumn field="foo" />
|
|
2128
2345
|
* <GridColumn field="bar" />
|
|
2129
2346
|
* </Grid>
|
|
2130
|
-
* <
|
|
2347
|
+
* <Button onClick={() => console.log(JSON.stringify(grid.current?.columns))}>
|
|
2131
2348
|
* log current properties into browser console.
|
|
2132
|
-
* </
|
|
2349
|
+
* </Button>
|
|
2133
2350
|
* </div>
|
|
2134
2351
|
* );
|
|
2135
2352
|
* };
|
|
@@ -2176,9 +2393,9 @@ export declare interface GridHandle {
|
|
|
2176
2393
|
* colSpan={1}>
|
|
2177
2394
|
* <span>
|
|
2178
2395
|
* {props.title || props.field + ' '}
|
|
2179
|
-
* <
|
|
2396
|
+
* <Button onClick={() => setBarDetails(!barDetails)}>
|
|
2180
2397
|
* {barDetails ? 'collapse' : 'expand'}
|
|
2181
|
-
* </
|
|
2398
|
+
* </Button>
|
|
2182
2399
|
* {props.children}
|
|
2183
2400
|
* </span>
|
|
2184
2401
|
* </td>
|
|
@@ -3740,9 +3957,9 @@ export declare interface GridThAttributes extends HeaderThElementProps {
|
|
|
3740
3957
|
* return (
|
|
3741
3958
|
* <Grid data={data}>
|
|
3742
3959
|
* <GridToolbar>
|
|
3743
|
-
* <
|
|
3960
|
+
* <Button title="Click" onClick={customClick}>
|
|
3744
3961
|
* Click
|
|
3745
|
-
* </
|
|
3962
|
+
* </Button>
|
|
3746
3963
|
* </GridToolbar>
|
|
3747
3964
|
* </Grid>
|
|
3748
3965
|
* );
|
|
@@ -3761,7 +3978,7 @@ export declare const GridToolbar: {
|
|
|
3761
3978
|
*/
|
|
3762
3979
|
export declare const GridToolbarAIAssistant: React_2.ForwardRefExoticComponent<GridToolbarAIAssistantProps & React_2.RefAttributes<GridToolbarAIAssistantHandle>>;
|
|
3763
3980
|
|
|
3764
|
-
declare interface GridToolbarAIAssistantHandle {
|
|
3981
|
+
export declare interface GridToolbarAIAssistantHandle {
|
|
3765
3982
|
show: () => void;
|
|
3766
3983
|
hide: () => void;
|
|
3767
3984
|
}
|
|
@@ -3776,6 +3993,15 @@ export declare interface GridToolbarAIAssistantProps {
|
|
|
3776
3993
|
* ```
|
|
3777
3994
|
*/
|
|
3778
3995
|
requestUrl?: string;
|
|
3996
|
+
/**
|
|
3997
|
+
* Enables the speech-to-text functionality for the input of the GridToolbarAIAssistant.
|
|
3998
|
+
*
|
|
3999
|
+
* @example
|
|
4000
|
+
* ```jsx
|
|
4001
|
+
* <GridToolbarAIAssistant enableSpeechToText={true} />
|
|
4002
|
+
* ```
|
|
4003
|
+
*/
|
|
4004
|
+
enableSpeechToText?: boolean | SpeechToTextButtonProps;
|
|
3779
4005
|
/**
|
|
3780
4006
|
* Defines the placeholder text for the AI prompt input.
|
|
3781
4007
|
*
|
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: 1756393499,version:"12.0.1-develop.1",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: "12.0.
|
|
13
|
+
publishDate: 1756393499,
|
|
14
|
+
version: "12.0.1-develop.1",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
16
16
|
});
|
|
17
17
|
export {
|