@progress/kendo-react-grid 14.0.0-develop.1 → 14.0.0-develop.3
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/columnMenu/GridColumnMenuFilter.mjs +2 -2
- package/components/noRecords/GridNoRecordsContainer.mjs +1 -1
- package/constants/index.mjs +2 -2
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/hooks/index.d.ts +8 -0
- package/hooks/useGridAIRequest.d.ts +150 -0
- package/hooks/useGridAIRequest.js +8 -0
- package/hooks/useGridAIRequest.mjs +93 -0
- package/index.d.mts +3 -1
- package/index.d.ts +3 -1
- package/index.js +1 -1
- package/index.mjs +56 -50
- package/messages/index.d.ts +75 -0
- package/messages/index.js +2 -2
- package/messages/index.mjs +108 -78
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +1 -1
- package/package.json +19 -19
- package/toolbar-tools/GridToolbarAIAssistant.d.ts +2 -34
- package/toolbar-tools/GridToolbarAIAssistant.js +2 -2
- package/toolbar-tools/GridToolbarAIAssistant.mjs +167 -164
- package/toolbar-tools/GridToolbarFilter.mjs +5 -5
- package/toolbar-tools/smartbox/SegmentedControl.d.ts +13 -0
- package/toolbar-tools/smartbox/SegmentedControl.js +8 -0
- package/toolbar-tools/smartbox/SegmentedControl.mjs +109 -0
- package/toolbar-tools/smartbox/SmartBox.d.ts +20 -0
- package/toolbar-tools/smartbox/SmartBox.js +8 -0
- package/toolbar-tools/smartbox/SmartBox.mjs +380 -0
- package/toolbar-tools/smartbox/defaultConfigs.d.ts +30 -0
- package/toolbar-tools/smartbox/defaultConfigs.js +8 -0
- package/toolbar-tools/smartbox/defaultConfigs.mjs +36 -0
- package/toolbar-tools/smartbox/hooks/index.d.ts +17 -0
- package/toolbar-tools/smartbox/hooks/useDebounce.d.ts +11 -0
- package/toolbar-tools/smartbox/hooks/useDebounce.js +9 -0
- package/toolbar-tools/smartbox/hooks/useDebounce.mjs +21 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxGridState.d.ts +251 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxGridState.js +9 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxGridState.mjs +68 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxHistory.d.ts +80 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxHistory.js +9 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxHistory.mjs +66 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxInput.d.ts +96 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxLabels.d.ts +93 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxLabels.js +9 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxLabels.mjs +61 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxListData.d.ts +163 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxListData.js +9 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxListData.mjs +102 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxModes.d.ts +115 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxModes.js +9 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxModes.mjs +65 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxPopup.d.ts +56 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxPopup.js +9 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxPopup.mjs +25 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxSearch.d.ts +82 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxSearch.js +9 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxSearch.mjs +67 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.d.ts +70 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.js +9 -0
- package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.mjs +57 -0
- package/toolbar-tools/smartbox/index.d.ts +10 -0
- package/toolbar-tools/smartbox/interfaces/SearchTypes.d.ts +45 -0
- package/toolbar-tools/smartbox/interfaces/SegmentedControlTypes.d.ts +66 -0
- package/toolbar-tools/smartbox/interfaces/SmartBoxTypes.d.ts +461 -0
- package/toolbar-tools/smartbox/interfaces/index.d.ts +11 -0
- package/toolbar-tools/smartbox/interfaces/utilTypes.d.ts +25 -0
- package/toolbar-tools/smartbox/listItemRenders.d.ts +165 -0
- package/toolbar-tools/smartbox/listItemRenders.js +8 -0
- package/toolbar-tools/smartbox/listItemRenders.mjs +68 -0
- package/toolbar-tools/smartbox/utils.d.ts +14 -0
- package/toolbar-tools/smartbox/utils.js +8 -0
- package/toolbar-tools/smartbox/utils.mjs +14 -0
package/messages/index.js
CHANGED
|
@@ -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 e="grid.noRecords",t="grid.pagerInfo",r="grid.pagerFirstPage",o="grid.pagerPreviousPage",
|
|
9
|
-
`,[
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="grid.noRecords",t="grid.pagerInfo",r="grid.pagerFirstPage",o="grid.pagerPreviousPage",a="grid.pagerNextPage",l="grid.pagerLastPage",i="grid.pagerItemsPerPage",s="grid.pagerPage",n="grid.pagerPageSizeAriaLabel",g="grid.pagerOf",d="grid.pagerTotalPages",c="grid.groupPanelEmpty",p="grid.groupColumn",u="grid.ungroupColumn",m="grid.columnMenu",h="grid.filterApplyButton",C="grid.filterClearButton",S="grid.filterClearAllButton",B="grid.filterResetButton",x="grid.filterSubmitButton",f="grid.filterTitle",P="grid.sortAscending",A="grid.sortDescending",b="grid.sortClearButton",T="grid.sortApplyButton",I="grid.searchPlaceholder",v="grid.searchboxPlaceholder",y="grid.exportPDF",M="grid.exportCSV",D="grid.filterCheckAll",O="grid.filterChooseOperator",F="grid.filterSelectAll",L="grid.filterSelectedItems",R="grid.sortAriaLabel",E="grid.editDialogTitle",G="grid.editDialogSaveButtonTitle",N="grid.editDialogCancelButtonTitle",k="grid.filterAriaLabel",w="grid.groupPanelAriaLabel",q="grid.groupExpand",W="grid.groupCollapse",z="grid.groupClearButton",V="grid.groupApplyButton",U="grid.detailExpand",j="grid.detailCollapse",H="grid.selectRow",J="grid.gridAriaLabel",K="grid.gridRowReorderAriaLabel",Q="grid.gridAdaptiveColumnMenuFilterTitle",X="grid.columnMenuColumnChooserTitle",Y="grid.columnMenuColumnChooserSelectedItems",Z="grid.adaptiveColumnMenuChooserTitle",_="grid.adaptiveColumnMenuChooserSubTitle",$="grid.columnChooserApplyButton",ee="grid.columnChooserResetButton",te="grid.adaptiveColumnMenuCheckboxFilterTitle",re="grid.adaptiveToolbarSortTitle",oe="grid.adaptiveToolbarGroupTitle",ae="grid.toolbarSort",le="grid.toolbarAI",ie="grid.aIResponseData",se="grid.generatedWithAI",ne="grid.toolbarAIApply",ge="grid.toolbarGroup",de="grid.toolbarFilter",ce="grid.toolbarColumnsChooser",pe="grid.toolbarCheckboxFilter",ue="grid.smartBoxSearchPlaceholder",me="grid.smartBoxSemanticSearchPlaceholder",he="grid.smartBoxAIAssistantPlaceholder",Ce="grid.smartBoxSuggestedPrompts",Se="grid.smartBoxPreviouslySearched",Be="grid.smartBoxPreviouslyAsked",xe="grid.smartBoxNoPreviousSearches",fe="grid.smartBoxNoPreviousPrompts",Pe="grid.smartBoxClearTitle",Ae="grid.smartBoxSubmitPromptButton",be="grid.smartBoxSpeechToTextButton",Te="grid.smartBoxSearchModeText",Ie="grid.smartBoxSearchModeDescription",ve="grid.smartBoxSemanticSearchModeText",ye="grid.smartBoxSemanticSearchModeDescription",Me={[U]:"Expand detail row",[j]:"Collapse detail row",[q]:"Expand group",[W]:"Collapse Group",[z]:"Clear grouping",[V]:"Done",[e]:"No records available",[c]:"Drag a column header and drop it here to group by that column",[h]:"Apply",[C]:"Clear",[S]:"Clear all filters",[B]:"Reset",[x]:"Filter",[f]:"Filter",[P]:"Sort Ascending",[A]:"Sort Descending",[b]:"Clear sorting",[T]:"Done",[R]:"Sortable",[re]:"Sort by",[oe]:"Group by",[ae]:"Sort",[le]:"AI Assistant",[ne]:"Apply",[ie]:`Operation is successful. Data is:
|
|
9
|
+
`,[se]:"Generated with AI",[ge]:"Group",[de]:"Filter",[ce]:"Columns",[pe]:"Filter",[p]:"Group Column",[u]:"Ungroup Column",[m]:"Column menu",[i]:"items per page",[t]:"{0} - {1} of {2} items",[r]:"Go to the first page",[o]:"Go to the previous page",[a]:"Go to the next page",[l]:"Go to the last page",[s]:"Page",[n]:"Page size",[g]:"of",[d]:"{0}",[I]:"Search",[v]:"Search...",[y]:"Export PDF",[M]:"Export CSV",[D]:"Check All",[E]:"Edit Dialog",[G]:"Save",[N]:"Cancel",[O]:"Choose Operator",[L]:"selected items",[F]:"Select All",[k]:"Filter",[w]:"Group panel",[J]:"Table",[K]:"Drag row",[H]:"Select Row",[X]:"Columns Chooser",[Q]:"Filter by",[Z]:"Columns Chooser",[_]:"Selected fields are visible",[te]:"Filter by",[Y]:"Selected items",[$]:"Apply",[ee]:"Reset",[ue]:"Search",[me]:"Semantic Search",[he]:"Sort, filter, or group with AI",[Ce]:"Suggested prompts",[Se]:"Previously searched",[Be]:"Previously asked",[xe]:"No previous searches",[fe]:"No previous prompts",[Pe]:"Clear",[Ae]:"Submit prompt",[be]:"Speech to text",[Te]:"Search",[Ie]:"Looks for exact word matches across your data.",[ve]:"Semantic Search",[ye]:"Understands context to surface the most relevant results.","grid.filterEqOperator":"Is equal to","grid.filterNotEqOperator":"Is not equal to","grid.filterIsNullOperator":"Is null","grid.filterIsNotNullOperator":"Is not null","grid.filterIsEmptyOperator":"Is empty","grid.filterIsNotEmptyOperator":"Is not empty","grid.filterStartsWithOperator":"Starts with","grid.filterContainsOperator":"Contains","grid.filterNotContainsOperator":"Does not contain","grid.filterEndsWithOperator":"Ends with","grid.filterGteOperator":"Is greater than or equal to","grid.filterGtOperator":"Is greater than","grid.filterLteOperator":"Is less than or equal to","grid.filterLtOperator":"Is less than","grid.filterIsTrue":"Is true","grid.filterIsFalse":"Is false","grid.filterBooleanAll":"(All)","grid.filterAfterOrEqualOperator":"Is after or equal to","grid.filterAfterOperator":"Is after","grid.filterBeforeOperator":"Is before","grid.filterBeforeOrEqualOperator":"Is before or equal to","grid.filterAndLogic":"And","grid.filterOrLogic":"Or"};exports.aIResponseData=ie;exports.adaptiveColumnMenuCheckboxFilterTitle=te;exports.adaptiveColumnMenuChooserSubTitle=_;exports.adaptiveColumnMenuChooserTitle=Z;exports.adaptiveColumnMenuFilterTitle=Q;exports.adaptiveToolbarGroupTitle=oe;exports.adaptiveToolbarSortTitle=re;exports.columnChooserApplyButton=$;exports.columnChooserResetButton=ee;exports.columnMenu=m;exports.columnMenuColumnChooserSelectedItems=Y;exports.columnMenuColumnChooserTitle=X;exports.detailCollapse=j;exports.detailExpand=U;exports.editDialogCancelButtonTitle=N;exports.editDialogSaveButtonTitle=G;exports.editDialogTitle=E;exports.exportCSV=M;exports.exportPDF=y;exports.filterApplyButton=h;exports.filterAriaLabel=k;exports.filterCheckAll=D;exports.filterChooseOperator=O;exports.filterClearAllButton=S;exports.filterClearButton=C;exports.filterResetButton=B;exports.filterSelectAll=F;exports.filterSelectedItems=L;exports.filterSubmitButton=x;exports.filterTitle=f;exports.generatedWithAI=se;exports.gridAriaLabel=J;exports.gridRowReorderAriaLabel=K;exports.groupApplyButton=V;exports.groupClearButton=z;exports.groupCollapse=W;exports.groupColumn=p;exports.groupExpand=q;exports.groupPanelAriaLabel=w;exports.groupPanelEmpty=c;exports.messages=Me;exports.noRecords=e;exports.pagerFirstPage=r;exports.pagerInfo=t;exports.pagerItemPerPage=i;exports.pagerLastPage=l;exports.pagerNextPage=a;exports.pagerOf=g;exports.pagerPage=s;exports.pagerPageSizeAriaLabel=n;exports.pagerPreviousPage=o;exports.pagerTotalPages=d;exports.searchPlaceholder=I;exports.searchboxPlaceholder=v;exports.selectRow=H;exports.smartBoxAIAssistantPlaceholder=he;exports.smartBoxClearTitle=Pe;exports.smartBoxNoPreviousPrompts=fe;exports.smartBoxNoPreviousSearches=xe;exports.smartBoxPreviouslyAsked=Be;exports.smartBoxPreviouslySearched=Se;exports.smartBoxSearchModeDescription=Ie;exports.smartBoxSearchModeText=Te;exports.smartBoxSearchPlaceholder=ue;exports.smartBoxSemanticSearchModeDescription=ye;exports.smartBoxSemanticSearchModeText=ve;exports.smartBoxSemanticSearchPlaceholder=me;exports.smartBoxSpeechToTextButton=be;exports.smartBoxSubmitPromptButton=Ae;exports.smartBoxSuggestedPrompts=Ce;exports.sortApplyButton=T;exports.sortAriaLabel=R;exports.sortAscending=P;exports.sortClearButton=b;exports.sortDescending=A;exports.toolbarAI=le;exports.toolbarAIApply=ne;exports.toolbarCheckboxFilter=pe;exports.toolbarColumnsChooser=ce;exports.toolbarFilter=de;exports.toolbarGroup=ge;exports.toolbarSort=ae;exports.ungroupColumn=u;
|
package/messages/index.mjs
CHANGED
|
@@ -5,64 +5,64 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
const e = "grid.noRecords", t = "grid.pagerInfo", r = "grid.pagerFirstPage", o = "grid.pagerPreviousPage",
|
|
8
|
+
const e = "grid.noRecords", t = "grid.pagerInfo", r = "grid.pagerFirstPage", o = "grid.pagerPreviousPage", a = "grid.pagerNextPage", i = "grid.pagerLastPage", l = "grid.pagerItemsPerPage", s = "grid.pagerPage", n = "grid.pagerPageSizeAriaLabel", g = "grid.pagerOf", d = "grid.pagerTotalPages", c = "grid.groupPanelEmpty", p = "grid.groupColumn", u = "grid.ungroupColumn", m = "grid.columnMenu", h = "grid.filterApplyButton", C = "grid.filterClearButton", S = "grid.filterClearAllButton", f = "grid.filterResetButton", B = "grid.filterSubmitButton", x = "grid.filterTitle", A = "grid.sortAscending", P = "grid.sortDescending", b = "grid.sortClearButton", I = "grid.sortApplyButton", T = "grid.searchPlaceholder", v = "grid.searchboxPlaceholder", y = "grid.exportPDF", O = "grid.exportCSV", D = "grid.filterCheckAll", M = "grid.filterChooseOperator", F = "grid.filterSelectAll", E = "grid.filterSelectedItems", L = "grid.sortAriaLabel", R = "grid.editDialogTitle", G = "grid.editDialogSaveButtonTitle", N = "grid.editDialogCancelButtonTitle", w = "grid.filterAriaLabel", k = "grid.groupPanelAriaLabel", q = "grid.groupExpand", W = "grid.groupCollapse", z = "grid.groupClearButton", V = "grid.groupApplyButton", U = "grid.detailExpand", j = "grid.detailCollapse", H = "grid.selectRow", J = "grid.gridAriaLabel", K = "grid.gridRowReorderAriaLabel", Q = "grid.gridAdaptiveColumnMenuFilterTitle", X = "grid.columnMenuColumnChooserTitle", Y = "grid.columnMenuColumnChooserSelectedItems", Z = "grid.adaptiveColumnMenuChooserTitle", _ = "grid.adaptiveColumnMenuChooserSubTitle", $ = "grid.columnChooserApplyButton", ee = "grid.columnChooserResetButton", te = "grid.adaptiveColumnMenuCheckboxFilterTitle", re = "grid.adaptiveToolbarSortTitle", oe = "grid.adaptiveToolbarGroupTitle", ae = "grid.toolbarSort", ie = "grid.toolbarAI", le = "grid.aIResponseData", se = "grid.generatedWithAI", ne = "grid.toolbarAIApply", ge = "grid.toolbarGroup", de = "grid.toolbarFilter", ce = "grid.toolbarColumnsChooser", pe = "grid.toolbarCheckboxFilter", ue = "grid.smartBoxSearchPlaceholder", me = "grid.smartBoxSemanticSearchPlaceholder", he = "grid.smartBoxAIAssistantPlaceholder", Ce = "grid.smartBoxSuggestedPrompts", Se = "grid.smartBoxPreviouslySearched", fe = "grid.smartBoxPreviouslyAsked", Be = "grid.smartBoxNoPreviousSearches", xe = "grid.smartBoxNoPreviousPrompts", Ae = "grid.smartBoxClearTitle", Pe = "grid.smartBoxSubmitPromptButton", be = "grid.smartBoxSpeechToTextButton", Ie = "grid.smartBoxSearchModeText", Te = "grid.smartBoxSearchModeDescription", ve = "grid.smartBoxSemanticSearchModeText", ye = "grid.smartBoxSemanticSearchModeDescription", Oe = {
|
|
9
9
|
[U]: "Expand detail row",
|
|
10
10
|
[j]: "Collapse detail row",
|
|
11
|
-
[
|
|
11
|
+
[q]: "Expand group",
|
|
12
12
|
[W]: "Collapse Group",
|
|
13
13
|
[z]: "Clear grouping",
|
|
14
14
|
[V]: "Done",
|
|
15
15
|
[e]: "No records available",
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
16
|
+
[c]: "Drag a column header and drop it here to group by that column",
|
|
17
|
+
[h]: "Apply",
|
|
18
|
+
[C]: "Clear",
|
|
19
|
+
[S]: "Clear all filters",
|
|
20
|
+
[f]: "Reset",
|
|
21
|
+
[B]: "Filter",
|
|
22
|
+
[x]: "Filter",
|
|
23
|
+
[A]: "Sort Ascending",
|
|
24
24
|
[P]: "Sort Descending",
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
25
|
+
[b]: "Clear sorting",
|
|
26
|
+
[I]: "Done",
|
|
27
|
+
[L]: "Sortable",
|
|
28
28
|
[re]: "Sort by",
|
|
29
29
|
[oe]: "Group by",
|
|
30
|
-
[
|
|
30
|
+
[ae]: "Sort",
|
|
31
31
|
[ie]: "AI Assistant",
|
|
32
|
-
[
|
|
33
|
-
[
|
|
32
|
+
[ne]: "Apply",
|
|
33
|
+
[le]: `Operation is successful. Data is:
|
|
34
34
|
`,
|
|
35
|
-
[
|
|
35
|
+
[se]: "Generated with AI",
|
|
36
36
|
[ge]: "Group",
|
|
37
37
|
[de]: "Filter",
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
38
|
+
[ce]: "Columns",
|
|
39
|
+
[pe]: "Filter",
|
|
40
|
+
[p]: "Group Column",
|
|
41
|
+
[u]: "Ungroup Column",
|
|
42
|
+
[m]: "Column menu",
|
|
43
|
+
[l]: "items per page",
|
|
44
44
|
[t]: "{0} - {1} of {2} items",
|
|
45
45
|
[r]: "Go to the first page",
|
|
46
46
|
[o]: "Go to the previous page",
|
|
47
|
-
[
|
|
47
|
+
[a]: "Go to the next page",
|
|
48
48
|
[i]: "Go to the last page",
|
|
49
|
-
[
|
|
50
|
-
[
|
|
49
|
+
[s]: "Page",
|
|
50
|
+
[n]: "Page size",
|
|
51
51
|
[g]: "of",
|
|
52
52
|
[d]: "{0}",
|
|
53
|
-
[
|
|
54
|
-
[
|
|
55
|
-
[
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
62
|
-
[
|
|
63
|
-
[
|
|
64
|
-
[
|
|
65
|
-
[
|
|
53
|
+
[T]: "Search",
|
|
54
|
+
[v]: "Search...",
|
|
55
|
+
[y]: "Export PDF",
|
|
56
|
+
[O]: "Export CSV",
|
|
57
|
+
[D]: "Check All",
|
|
58
|
+
[R]: "Edit Dialog",
|
|
59
|
+
[G]: "Save",
|
|
60
|
+
[N]: "Cancel",
|
|
61
|
+
[M]: "Choose Operator",
|
|
62
|
+
[E]: "selected items",
|
|
63
|
+
[F]: "Select All",
|
|
64
|
+
[w]: "Filter",
|
|
65
|
+
[k]: "Group panel",
|
|
66
66
|
[J]: "Table",
|
|
67
67
|
[K]: "Drag row",
|
|
68
68
|
[H]: "Select Row",
|
|
@@ -74,6 +74,21 @@ const e = "grid.noRecords", t = "grid.pagerInfo", r = "grid.pagerFirstPage", o =
|
|
|
74
74
|
[Y]: "Selected items",
|
|
75
75
|
[$]: "Apply",
|
|
76
76
|
[ee]: "Reset",
|
|
77
|
+
[ue]: "Search",
|
|
78
|
+
[me]: "Semantic Search",
|
|
79
|
+
[he]: "Sort, filter, or group with AI",
|
|
80
|
+
[Ce]: "Suggested prompts",
|
|
81
|
+
[Se]: "Previously searched",
|
|
82
|
+
[fe]: "Previously asked",
|
|
83
|
+
[Be]: "No previous searches",
|
|
84
|
+
[xe]: "No previous prompts",
|
|
85
|
+
[Ae]: "Clear",
|
|
86
|
+
[Pe]: "Submit prompt",
|
|
87
|
+
[be]: "Speech to text",
|
|
88
|
+
[Ie]: "Search",
|
|
89
|
+
[Te]: "Looks for exact word matches across your data.",
|
|
90
|
+
[ve]: "Semantic Search",
|
|
91
|
+
[ye]: "Understands context to surface the most relevant results.",
|
|
77
92
|
"grid.filterEqOperator": "Is equal to",
|
|
78
93
|
"grid.filterNotEqOperator": "Is not equal to",
|
|
79
94
|
"grid.filterIsNullOperator": "Is null",
|
|
@@ -99,7 +114,7 @@ const e = "grid.noRecords", t = "grid.pagerInfo", r = "grid.pagerFirstPage", o =
|
|
|
99
114
|
"grid.filterOrLogic": "Or"
|
|
100
115
|
};
|
|
101
116
|
export {
|
|
102
|
-
|
|
117
|
+
le as aIResponseData,
|
|
103
118
|
te as adaptiveColumnMenuCheckboxFilterTitle,
|
|
104
119
|
_ as adaptiveColumnMenuChooserSubTitle,
|
|
105
120
|
Z as adaptiveColumnMenuChooserTitle,
|
|
@@ -108,63 +123,78 @@ export {
|
|
|
108
123
|
re as adaptiveToolbarSortTitle,
|
|
109
124
|
$ as columnChooserApplyButton,
|
|
110
125
|
ee as columnChooserResetButton,
|
|
111
|
-
|
|
126
|
+
m as columnMenu,
|
|
112
127
|
Y as columnMenuColumnChooserSelectedItems,
|
|
113
128
|
X as columnMenuColumnChooserTitle,
|
|
114
129
|
j as detailCollapse,
|
|
115
130
|
U as detailExpand,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
N as editDialogCancelButtonTitle,
|
|
132
|
+
G as editDialogSaveButtonTitle,
|
|
133
|
+
R as editDialogTitle,
|
|
134
|
+
O as exportCSV,
|
|
135
|
+
y as exportPDF,
|
|
136
|
+
h as filterApplyButton,
|
|
137
|
+
w as filterAriaLabel,
|
|
138
|
+
D as filterCheckAll,
|
|
139
|
+
M as filterChooseOperator,
|
|
140
|
+
S as filterClearAllButton,
|
|
141
|
+
C as filterClearButton,
|
|
142
|
+
f as filterResetButton,
|
|
143
|
+
F as filterSelectAll,
|
|
144
|
+
E as filterSelectedItems,
|
|
145
|
+
B as filterSubmitButton,
|
|
146
|
+
x as filterTitle,
|
|
147
|
+
se as generatedWithAI,
|
|
133
148
|
J as gridAriaLabel,
|
|
134
149
|
K as gridRowReorderAriaLabel,
|
|
135
150
|
V as groupApplyButton,
|
|
136
151
|
z as groupClearButton,
|
|
137
152
|
W as groupCollapse,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
153
|
+
p as groupColumn,
|
|
154
|
+
q as groupExpand,
|
|
155
|
+
k as groupPanelAriaLabel,
|
|
156
|
+
c as groupPanelEmpty,
|
|
157
|
+
Oe as messages,
|
|
143
158
|
e as noRecords,
|
|
144
159
|
r as pagerFirstPage,
|
|
145
160
|
t as pagerInfo,
|
|
146
|
-
|
|
161
|
+
l as pagerItemPerPage,
|
|
147
162
|
i as pagerLastPage,
|
|
148
|
-
|
|
163
|
+
a as pagerNextPage,
|
|
149
164
|
g as pagerOf,
|
|
150
|
-
|
|
151
|
-
|
|
165
|
+
s as pagerPage,
|
|
166
|
+
n as pagerPageSizeAriaLabel,
|
|
152
167
|
o as pagerPreviousPage,
|
|
153
168
|
d as pagerTotalPages,
|
|
154
|
-
|
|
155
|
-
|
|
169
|
+
T as searchPlaceholder,
|
|
170
|
+
v as searchboxPlaceholder,
|
|
156
171
|
H as selectRow,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
172
|
+
he as smartBoxAIAssistantPlaceholder,
|
|
173
|
+
Ae as smartBoxClearTitle,
|
|
174
|
+
xe as smartBoxNoPreviousPrompts,
|
|
175
|
+
Be as smartBoxNoPreviousSearches,
|
|
176
|
+
fe as smartBoxPreviouslyAsked,
|
|
177
|
+
Se as smartBoxPreviouslySearched,
|
|
178
|
+
Te as smartBoxSearchModeDescription,
|
|
179
|
+
Ie as smartBoxSearchModeText,
|
|
180
|
+
ue as smartBoxSearchPlaceholder,
|
|
181
|
+
ye as smartBoxSemanticSearchModeDescription,
|
|
182
|
+
ve as smartBoxSemanticSearchModeText,
|
|
183
|
+
me as smartBoxSemanticSearchPlaceholder,
|
|
184
|
+
be as smartBoxSpeechToTextButton,
|
|
185
|
+
Pe as smartBoxSubmitPromptButton,
|
|
186
|
+
Ce as smartBoxSuggestedPrompts,
|
|
187
|
+
I as sortApplyButton,
|
|
188
|
+
L as sortAriaLabel,
|
|
189
|
+
A as sortAscending,
|
|
190
|
+
b as sortClearButton,
|
|
161
191
|
P as sortDescending,
|
|
162
192
|
ie as toolbarAI,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
193
|
+
ne as toolbarAIApply,
|
|
194
|
+
pe as toolbarCheckboxFilter,
|
|
195
|
+
ce as toolbarColumnsChooser,
|
|
166
196
|
de as toolbarFilter,
|
|
167
197
|
ge as toolbarGroup,
|
|
168
|
-
|
|
169
|
-
|
|
198
|
+
ae as toolbarSort,
|
|
199
|
+
u as ungroupColumn
|
|
170
200
|
};
|
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: 1770727215,version:"14.0.0-develop.3",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -8,6 +8,6 @@ export const packageMetadata = Object.freeze({
|
|
|
8
8
|
productCode: 'KENDOUIREACT',
|
|
9
9
|
productCodes: ['KENDOUIREACT'],
|
|
10
10
|
publishDate: 0,
|
|
11
|
-
version: '14.0.0-develop.
|
|
11
|
+
version: '14.0.0-develop.3',
|
|
12
12
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/components/my-license/'
|
|
13
13
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-grid",
|
|
3
|
-
"version": "14.0.0-develop.
|
|
3
|
+
"version": "14.0.0-develop.3",
|
|
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,24 +28,24 @@
|
|
|
28
28
|
"@progress/kendo-data-query": "^1.7.2",
|
|
29
29
|
"@progress/kendo-drawing": "^1.21.2",
|
|
30
30
|
"@progress/kendo-licensing": "^1.7.2",
|
|
31
|
-
"@progress/kendo-react-animation": "14.0.0-develop.
|
|
32
|
-
"@progress/kendo-react-buttons": "14.0.0-develop.
|
|
33
|
-
"@progress/kendo-react-common": "14.0.0-develop.
|
|
34
|
-
"@progress/kendo-react-data-tools": "14.0.0-develop.
|
|
35
|
-
"@progress/kendo-react-dateinputs": "14.0.0-develop.
|
|
36
|
-
"@progress/kendo-react-indicators": "14.0.0-develop.
|
|
37
|
-
"@progress/kendo-react-form": "14.0.0-develop.
|
|
38
|
-
"@progress/kendo-react-labels": "14.0.0-develop.
|
|
39
|
-
"@progress/kendo-react-dialogs": "14.0.0-develop.
|
|
40
|
-
"@progress/kendo-react-dropdowns": "14.0.0-develop.
|
|
41
|
-
"@progress/kendo-react-inputs": "14.0.0-develop.
|
|
42
|
-
"@progress/kendo-react-intl": "14.0.0-develop.
|
|
43
|
-
"@progress/kendo-react-popup": "14.0.0-develop.
|
|
44
|
-
"@progress/kendo-react-layout": "14.0.0-develop.
|
|
45
|
-
"@progress/kendo-react-conversational-ui": "14.0.0-develop.
|
|
31
|
+
"@progress/kendo-react-animation": "14.0.0-develop.3",
|
|
32
|
+
"@progress/kendo-react-buttons": "14.0.0-develop.3",
|
|
33
|
+
"@progress/kendo-react-common": "14.0.0-develop.3",
|
|
34
|
+
"@progress/kendo-react-data-tools": "14.0.0-develop.3",
|
|
35
|
+
"@progress/kendo-react-dateinputs": "14.0.0-develop.3",
|
|
36
|
+
"@progress/kendo-react-indicators": "14.0.0-develop.3",
|
|
37
|
+
"@progress/kendo-react-form": "14.0.0-develop.3",
|
|
38
|
+
"@progress/kendo-react-labels": "14.0.0-develop.3",
|
|
39
|
+
"@progress/kendo-react-dialogs": "14.0.0-develop.3",
|
|
40
|
+
"@progress/kendo-react-dropdowns": "14.0.0-develop.3",
|
|
41
|
+
"@progress/kendo-react-inputs": "14.0.0-develop.3",
|
|
42
|
+
"@progress/kendo-react-intl": "14.0.0-develop.3",
|
|
43
|
+
"@progress/kendo-react-popup": "14.0.0-develop.3",
|
|
44
|
+
"@progress/kendo-react-layout": "14.0.0-develop.3",
|
|
45
|
+
"@progress/kendo-react-conversational-ui": "14.0.0-develop.3",
|
|
46
46
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
47
|
-
"react": "^
|
|
48
|
-
"react-dom": "^
|
|
47
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
48
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
49
49
|
"axios": "^1.13.2"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"package": {
|
|
148
148
|
"productName": "KendoReact",
|
|
149
149
|
"productCode": "KENDOUIREACT",
|
|
150
|
-
"publishDate":
|
|
150
|
+
"publishDate": 1770727215,
|
|
151
151
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
152
152
|
}
|
|
153
153
|
},
|
|
@@ -11,6 +11,7 @@ import { AxiosResponse, AxiosRequestConfig } from 'axios';
|
|
|
11
11
|
import { CustomComponent } from '@progress/kendo-react-common';
|
|
12
12
|
import { AIPromptOutputInterface } from '@progress/kendo-react-conversational-ui';
|
|
13
13
|
import { GridAIPromptProps } from './ai-tool/GridAIPrompt.js';
|
|
14
|
+
import { GridAIRequestData } from '../hooks/useGridAIRequest.js';
|
|
14
15
|
import * as React from 'react';
|
|
15
16
|
/**
|
|
16
17
|
* Represents the handle interface for the GridToolbarAIAssistant component.
|
|
@@ -28,37 +29,7 @@ export interface GridToolbarAIAssistantHandle {
|
|
|
28
29
|
/**
|
|
29
30
|
* Represents the request data structure for the GridToolbarAIAssistant component.
|
|
30
31
|
*/
|
|
31
|
-
export
|
|
32
|
-
/**
|
|
33
|
-
* The role or context for the AI request.
|
|
34
|
-
*/
|
|
35
|
-
role: string;
|
|
36
|
-
/**
|
|
37
|
-
* The array of column definitions with their field names.
|
|
38
|
-
*/
|
|
39
|
-
columns: Array<{
|
|
40
|
-
field: string;
|
|
41
|
-
}>;
|
|
42
|
-
/**
|
|
43
|
-
* The headers object containing key-value pairs for the request.
|
|
44
|
-
*/
|
|
45
|
-
headers: Record<string, string>;
|
|
46
|
-
/**
|
|
47
|
-
* The prompt message sent to the AI assistant.
|
|
48
|
-
*/
|
|
49
|
-
promptMessage: string;
|
|
50
|
-
/**
|
|
51
|
-
* The request configuration options for the HTTP request.
|
|
52
|
-
*/
|
|
53
|
-
requestOptions: {
|
|
54
|
-
url?: string;
|
|
55
|
-
method?: string;
|
|
56
|
-
withCredentials?: boolean;
|
|
57
|
-
responseType?: string;
|
|
58
|
-
cancelToken?: any;
|
|
59
|
-
[key: string]: any;
|
|
60
|
-
};
|
|
61
|
-
}
|
|
32
|
+
export type GridToolbarAIAssistantRequestData = GridAIRequestData;
|
|
62
33
|
/**
|
|
63
34
|
* Represents the props interface for the GridToolbarAIAssistant component.
|
|
64
35
|
* This component provides AI-powered functionality for grid operations through natural language prompts.
|
|
@@ -239,8 +210,5 @@ export interface GridToolbarAIAssistantProps {
|
|
|
239
210
|
*/
|
|
240
211
|
onCloseWindow?: () => void;
|
|
241
212
|
}
|
|
242
|
-
/**
|
|
243
|
-
* Represents the GridToolbarAIAssistant component.
|
|
244
|
-
*/
|
|
245
213
|
declare const GridToolbarAIAssistant: React.ForwardRefExoticComponent<GridToolbarAIAssistantProps & React.RefAttributes<GridToolbarAIAssistantHandle>>;
|
|
246
214
|
export { GridToolbarAIAssistant };
|
|
@@ -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 ae=require("react"),le=require("../utils/GridContext.js"),ue=require("@progress/kendo-react-buttons"),ce=require("@progress/kendo-svg-icons"),de=require("@progress/kendo-react-intl"),n=require("../messages/index.js"),y=require("@progress/kendo-react-common"),ge=require("@progress/kendo-react-dialogs"),pe=require("./ai-tool/GridAIPrompt.js"),me=require("../hooks/useGridAIRequest.js");function fe(r){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(a,e,i.get?i:{enumerable:!0,get:()=>r[e]})}}return a.default=r,Object.freeze(a)}const o=fe(ae),P=768,he=(r,a)=>r.map(i=>{let c=i;return a.forEach(l=>{l.field&&c.includes(l.field)&&(c=c.replace(new RegExp(l.field,"g"),l.title||l.field))}),c}),Ce=()=>null,q=o.forwardRef((r,a)=>{const e=o.useContext(le.GridContext),i=de.useLocalization(),{requestUrl:c,requestOptions:l,onPromptRequest:v,onResponseSuccess:x,onResponseError:T,role:E="user",gridAIPrompt:W=pe.GridAIPrompt,icon:k,svgIcon:O,onCloseWindow:m,promptPlaceHolder:L,suggestionsList:M,streaming:B,loading:D,outputs:G,enableSpeechToText:S}=r,[j,I]=o.useState([]),z=o.useMemo(()=>e&&Array.isArray(e.columnsRef)&&Array.isArray(e.hiddenColumnsRef)?[...e.columnsRef,...e.hiddenColumnsRef].map(t=>{var s;return{id:t.id,field:t.field,values:(s=t.values)!=null?s:[]}}):[],[e]),N=o.useMemo(()=>({sort:e.sort,filter:e.filter,group:e.group,highlight:e.highlight,select:e.select,columnsState:e.columnsState,skip:e.skip,take:e.take}),[e]),H=o.useMemo(()=>({getTotal:()=>e.getTotal(),getLeafDataItems:()=>e.getLeafDataItems(),exportAsPdf:()=>e.exportAsPdf(),props:{dataItemKey:e.dataItemKey}}),[e]),[f,h]=o.useState(!1),[K,_]=o.useState(),[F,w]=o.useState(),[b,U]=o.useState(()=>{const t=window.innerWidth;return t<P?t*.8:560}),d=o.useRef(null),X=o.useCallback(t=>{var s,u;t.sort!==void 0&&t.sort!==e.sort&&e.sortChange(t.sort,{}),t.filter!==e.filter&&e.filterChange(t.filter,{}),t.group!==void 0&&t.group!==e.group&&e.groupChange(t.group,{}),t.highlight!==void 0&&t.highlight!==e.highlight&&e.applyHighlightDescriptor(t.highlight),t.select!==void 0&&t.select!==e.select&&e.applySelectionDescriptor(t.select),t.columnsState!==void 0&&t.columnsState!==e.columnsState&&e.onColumnsStateChange(t.columnsState),(t.skip!==void 0&&t.skip!==e.skip||t.take!==void 0&&t.take!==e.take)&&e.pagerPageChange({skip:(s=t.skip)!=null?s:0,take:(u=t.take)!=null?u:0,syntheticEvent:{}})},[e]),Y=o.useCallback((t,s,u)=>{const C=[i.toLanguageString(n.aIResponseData,n.messages[n.aIResponseData])];t.forEach(re=>{const ie=he([re],e.columnsRef).join(`
|
|
9
|
+
`);I(A=>[{id:A.length+1,title:i.toLanguageString(n.generatedWithAI,n.messages[n.generatedWithAI]),subTitle:s,prompt:s,responseContent:C.concat(ie).join(""),isRetry:u},...A])})},[i,e.columnsRef]),$=o.useCallback(()=>{e.exportAsPdf()},[e]),{loading:J,streaming:Q,sendRequest:V,cancelRequest:Z}=me.useGridAIRequest({requestUrl:c,requestOptions:l,role:E,columns:z,gridState:N,gridRef:H,onPromptRequest:v,onResponseSuccess:x,onResponseError:T,onStateChange:X,onMessages:Y,onExportPdf:$}),ee=t=>{t.preventDefault(),h(!f)},g=o.useMemo(()=>{var t;return(t=r.show)!=null?t:f},[r.show,f]),p=o.useCallback(()=>{var t;m&&m(),I([]),h(!1),d.current&&((t=d.current.element)==null||t.focus())},[m]),[te,R]=y.useCustomComponent(W),oe=Object.keys(R).length>0?R:{},se=o.createElement(te,{onPromptRequest:V,onCancel:Z,onClose:p,streaming:B||Q,loading:D||J,outputs:G||j,promptPlaceHolder:L,suggestionsList:M,enableSpeechToText:S,...oe}),ne=o.createElement(ue.Button,{ref:d,togglable:!0,themeColor:"primary",rounded:"full",selected:g,svgIcon:O||(k?void 0:ce.sparklesIcon),icon:k,size:e.mobileMode?"large":"medium",className:y.classNames("k-toolbar-button",{"k-icon-button":e.mobileMode}),title:i.toLanguageString(n.toolbarAI,n.messages[n.toolbarAI]),onClick:ee});return o.useEffect(()=>{var t;if(d.current&&g){const s=(t=d.current.element)==null?void 0:t.getBoundingClientRect();if(s){_(s.top+window.scrollY+s.height),w(s.left+window.scrollX+s.width);const u=window.innerWidth,C=u<P?u*.75:560;U(C)}}},[g]),o.useImperativeHandle(a,()=>({show:()=>h(!0),hide:()=>p()}),[p]),o.createElement(o.Fragment,null,ne,g&&o.createElement(ge.Window,{key:b,autoFocus:!1,title:i.toLanguageString(n.toolbarAI,n.messages[n.toolbarAI]),initialTop:K,initialLeft:F,initialWidth:b,style:{height:"auto",minWidth:"90px",minHeight:"50px"},onClose:p,resizable:!0,draggable:!0,className:"k-grid-assistant-window",maximizeButton:Ce},se))});q.displayName="KendoReactGridToolbarAIAssistant";exports.GridToolbarAIAssistant=q;
|