@progress/kendo-react-grid 11.3.0-develop.1 → 11.3.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/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +1 -0
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/index.d.mts +53 -0
- package/index.d.ts +53 -0
- package/index.js +1 -1
- package/index.mjs +50 -48
- package/messages/index.js +1 -1
- package/messages/index.mjs +83 -75
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +16 -16
- package/toolbar-tools/GridToolbarFilter.js +1 -1
- package/toolbar-tools/GridToolbarFilter.mjs +126 -128
- package/toolbar-tools/GridToolbarGroup.js +8 -0
- package/toolbar-tools/GridToolbarGroup.mjs +204 -0
- package/toolbar-tools/GridToolbarSort.js +1 -1
- package/toolbar-tools/GridToolbarSort.mjs +16 -16
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarGroup.js +9 -0
- package/toolbar-tools/adaptiveContent/GridAdaptiveToolbarGroup.mjs +59 -0
- package/utils/premium.js +1 -1
- package/utils/premium.mjs +11 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-grid",
|
|
3
|
-
"version": "11.3.0-develop.
|
|
3
|
+
"version": "11.3.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,20 +28,20 @@
|
|
|
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.3.0-develop.
|
|
32
|
-
"@progress/kendo-react-buttons": "11.3.0-develop.
|
|
33
|
-
"@progress/kendo-react-common": "11.3.0-develop.
|
|
34
|
-
"@progress/kendo-react-data-tools": "11.3.0-develop.
|
|
35
|
-
"@progress/kendo-react-dateinputs": "11.3.0-develop.
|
|
36
|
-
"@progress/kendo-react-indicators": "11.3.0-develop.
|
|
37
|
-
"@progress/kendo-react-form": "11.3.0-develop.
|
|
38
|
-
"@progress/kendo-react-labels": "11.3.0-develop.
|
|
39
|
-
"@progress/kendo-react-dialogs": "11.3.0-develop.
|
|
40
|
-
"@progress/kendo-react-dropdowns": "11.3.0-develop.
|
|
41
|
-
"@progress/kendo-react-inputs": "11.3.0-develop.
|
|
42
|
-
"@progress/kendo-react-intl": "11.3.0-develop.
|
|
43
|
-
"@progress/kendo-react-popup": "11.3.0-develop.
|
|
44
|
-
"@progress/kendo-react-layout": "11.3.0-develop.
|
|
31
|
+
"@progress/kendo-react-animation": "11.3.0-develop.3",
|
|
32
|
+
"@progress/kendo-react-buttons": "11.3.0-develop.3",
|
|
33
|
+
"@progress/kendo-react-common": "11.3.0-develop.3",
|
|
34
|
+
"@progress/kendo-react-data-tools": "11.3.0-develop.3",
|
|
35
|
+
"@progress/kendo-react-dateinputs": "11.3.0-develop.3",
|
|
36
|
+
"@progress/kendo-react-indicators": "11.3.0-develop.3",
|
|
37
|
+
"@progress/kendo-react-form": "11.3.0-develop.3",
|
|
38
|
+
"@progress/kendo-react-labels": "11.3.0-develop.3",
|
|
39
|
+
"@progress/kendo-react-dialogs": "11.3.0-develop.3",
|
|
40
|
+
"@progress/kendo-react-dropdowns": "11.3.0-develop.3",
|
|
41
|
+
"@progress/kendo-react-inputs": "11.3.0-develop.3",
|
|
42
|
+
"@progress/kendo-react-intl": "11.3.0-develop.3",
|
|
43
|
+
"@progress/kendo-react-popup": "11.3.0-develop.3",
|
|
44
|
+
"@progress/kendo-react-layout": "11.3.0-develop.3",
|
|
45
45
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
46
46
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
47
47
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"package": {
|
|
146
146
|
"productName": "KendoReact",
|
|
147
147
|
"productCode": "KENDOUIREACT",
|
|
148
|
-
"publishDate":
|
|
148
|
+
"publishDate": 1752590277,
|
|
149
149
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
150
150
|
}
|
|
151
151
|
},
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Oe=require("react"),Ae=require("react-dom"),E=require("@progress/kendo-react-common"),Pe=require("../columnMenu/GridColumnMenuItem.js"),Ne=require("../columnMenu/GridColumnMenuItemContent.js"),Le=require("../columnMenu/GridColumnMenuItemGroup.js"),Ue=require("../utils/GridContext.js"),U=require("@progress/kendo-svg-icons"),d=require("../filterCommon.js"),y=require("@progress/kendo-react-buttons"),Ve=require("../columnMenu/GridColumnMenuFilterUI.js"),u=require("../messages/index.js"),_e=require("@progress/kendo-react-intl"),k=require("../columnMenu/GridColumnMenuFilter.js"),je=require("@progress/kendo-react-popup"),de=require("@progress/kendo-react-indicators"),ze=require("./adaptiveContext/GridToolbarAdaptiveContext.js"),Ke=require("./adaptiveContent/GridAdaptiveToolbarFilter.js");function He(i){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const m in i)if(m!=="default"){const h=Object.getOwnPropertyDescriptor(i,m);Object.defineProperty(l,m,h.get?h:{enumerable:!0,get:()=>i[m]})}}return l.default=i,Object.freeze(l)}const t=He(Oe),me=i=>{var re,oe,le,ne,ie,ae,se;const l=t.useContext(Ue.GridContext),m=l.columnsRef,h=l.filter,v=l.defaultFilter,[S,M]=t.useState(!1),[ge,b]=t.useState(!1),[p,D]=t.useState((m==null?void 0:m.map(e=>({column:e,expanded:!1})))||[]),[pe,V]=t.useState(!1),F=t.useRef(null),B=t.useRef(null),_=t.useRef(null),w=t.useRef(0),r=t.useRef(null),g=_e.useLocalization(),Fe=E.useDocument(F),j=t.useMemo(()=>(m==null?void 0:m.filter(e=>{var o;return(o=e.title||e.field)==null?void 0:o.toLowerCase()}))||[],[m]);t.useEffect(()=>{b(!!(v||h))},[v,h]);const z=t.useCallback(e=>{const o=v&&v.filters.some(a=>a.field===e.field);return t.createElement(t.Fragment,null,e.title||e.field,o&&t.createElement("span",{className:"k-columnmenu-indicators"},t.createElement(E.SvgIcon,{key:1,icon:U.filterIcon})))},[v]),K=(e,o)=>{D(a=>(r.current=o,a.map(n=>n.column.field===o.field?{...n,expanded:!n.expanded}:{...n,expanded:!1}))),G(H()),V(!pe)},H=()=>{var o,a,n,c,ce,ue;let e;if(r!=null&&r.current&&((o=r==null?void 0:r.current)!=null&&o.field)){const qe=d.getFilterType((a=r==null?void 0:r.current)==null?void 0:a.filter),C=d.getDefaultOperator(l.filterOperators,qe);e=k.filterGroupByField((n=r==null?void 0:r.current)==null?void 0:n.field,l.filter),e=e?{...e,filters:e.filters.map(L=>({...L}))}:{logic:"and",filters:[{field:(c=r==null?void 0:r.current)==null?void 0:c.field,operator:C,value:d.IsUnaryFilter(C)?null:void 0},{field:(ce=r==null?void 0:r.current)==null?void 0:ce.field,operator:C,value:d.IsUnaryFilter(C)?null:void 0}]},e.filters.filter(L=>{var fe;return L.field===((fe=r==null?void 0:r.current)==null?void 0:fe.field)}).length===1&&e.filters.splice(1,0,{field:(ue=r==null?void 0:r.current)==null?void 0:ue.field,operator:C})}return e},he=e=>{J(0,e)},ve=e=>{J(1,e)},J=(e,o)=>{const a=f.filters.map((n,c)=>c===e?{...n,value:o.value||"",operator:o.operator||T[c].operator}:n);G({...f,filters:a})},[f,G]=t.useState(H()),s=f==null?void 0:f.filters,I=d.getFilterType((re=r==null?void 0:r.current)==null?void 0:re.filter),T=d.operatorMap(l.filterOperators[I],g),Q=d.operatorMap(d.booleanFilterValues,g),be={field:(oe=r==null?void 0:r.current)==null?void 0:oe.field,value:s==null?void 0:s[0].value,operator:s==null?void 0:s[0].operator,operators:T,booleanValues:Q,onChange:he,filterType:I},Ce={field:(le=r==null?void 0:r.current)==null?void 0:le.field,value:s==null?void 0:s[1].value,operator:s==null?void 0:s[1].operator,operators:T,booleanValues:Q,onChange:ve,filterType:I},Ee=e=>{let o=e.target.value;e.target.tagName==="SPAN"&&(o=e.target.parentElement.value),G({...f,logic:o})},W=f==null?void 0:f.logic,X=d.operatorMap(d.filterLogicList,g),q={value:X.find(e=>e.operator===(W===null?"":W)),onChange:Ee,data:X},ke=i.hideSecondFilter!==void 0?i.hideSecondFilter:d.defaultHideSecondFilter[I],O=i.filterUI,A={firstFilterProps:be,secondFilterProps:Ce,logicData:q.data,logicValue:q.value,onLogicChange:q.onChange,hideSecondFilter:ke},Y=()=>({...f,filters:f==null?void 0:f.filters.filter(e=>e.value!==void 0&&e.value!==null&&e.value!==""||e.value===null&&e.operator)}),P=((ie=(ne=Y())==null?void 0:ne.filters)==null?void 0:ie.length)!==0||d.IsUnaryFilter(s==null?void 0:s[0].operator)||d.IsUnaryFilter(s==null?void 0:s[1].operator),Z=e=>{if(e.preventDefault(),!l.filterChange)return;const o=k.rootFilterOrDefault(l.filter),a={...o,filters:o.filters.filter(n=>{var c;return n.field!==((c=r==null?void 0:r.current)==null?void 0:c.field)})};P&&a.filters.push(Y()),l.filterChange(a,e),b(!0),M(!1)},$=e=>{if(e.preventDefault(),!l.filterChange)return;const o=k.rootFilterOrDefault(l.filter),a=o.filters.filter(n=>{var c;return n.field!==((c=r==null?void 0:r.current)==null?void 0:c.field)});a.length===0?l.filterChange(null,e):l.filterChange({...o,filters:a},e),i.onCloseMenu&&i.onCloseMenu(),b(!1),D(n=>n.map(c=>({...c,expanded:!1})))},Me=()=>{V(!1)},Ie=e=>{e.preventDefault(),M(!S)},ye=e=>{!e.isAnchorClicked&&M(!1)},N=t.useMemo(()=>i.show!==void 0?i.show:S,[i.show,S]),Se=e=>{const o=E.getActiveElement(document);clearTimeout(w.current),w.current=window.setTimeout(()=>{!l.mobileMode&&o&&e.relatedTarget!==F.current&&B.current&&!B.current.contains(o)&&x()})},x=()=>{var e;i.onCloseMenu&&i.onCloseMenu(),M(!1),F.current&&((e=F.current.element)==null||e.focus())},De=()=>{clearTimeout(w.current)},{onFocus:Be,onBlur:we}=E.useAsyncFocusBlur({onFocus:e=>De(),onBlur:e=>Se(e)}),Ge=e=>{var o;(o=_.current)==null||o.triggerMouseEvent(e)},Te=e=>{var o;(o=_.current)==null||o.triggerKeyboardEvent(e)},R=t.useCallback(e=>{if(e.preventDefault(),!l.filterChange)return;const o=k.rootFilterOrDefault(l.filter),a=o.filters.filter(()=>!1);a.length===0?l.filterChange(null,e):l.filterChange({...o,filters:a},e),b(!1),D(n=>n.map(c=>({...c,expanded:!1})))},[l,k.rootFilterOrDefault]),ee=t.createElement(y.Button,{ref:F,togglable:!0,selected:N,svgIcon:i.svgIcon?i.svgIcon:i.icon?void 0:U.filterIcon,icon:i.icon,size:l.mobileMode?"large":"medium",className:E.classNames("k-toolbar-button",{"k-icon-button":l.mobileMode}),title:g.toLanguageString(u.toolbarFilter,u.messages[u.toolbarFilter]),onClick:Ie},!l.mobileMode&&g.toLanguageString(u.toolbarFilter,u.messages[u.toolbarFilter])),te=t.createElement(t.Fragment,null,j.map(e=>{var o,a;return e.filterable&&t.createElement(Le.GridColumnMenuItemGroup,{key:e.id},t.createElement("div",{className:"k-expander"},t.createElement(Pe.GridColumnMenuItem,{title:z(e),expandable:!0,expanded:!!((o=p==null?void 0:p.find(n=>n.column.field===e.field))!=null&&o.expanded),onClick:n=>K(n,e)})),t.createElement(Ne.GridColumnMenuItemContent,{show:!!((a=p==null?void 0:p.find(n=>n.column.field===e.field))!=null&&a.expanded)},t.createElement("form",{className:"k-filter-menu",onSubmit:Z,onReset:$},t.createElement("div",{className:"k-filter-menu-container"},O?t.createElement(O,{...A}):t.createElement(Ve.GridColumnMenuFilterUI,{...A}),t.createElement("div",{className:"k-actions k-actions-stretched"},t.createElement(y.Button,{themeColor:"primary",disabled:!P},g.toLanguageString(u.filterSubmitButton,u.messages[u.filterSubmitButton])),t.createElement(y.Button,{type:"reset"},g.toLanguageString(u.filterClearButton,u.messages[u.filterClearButton])))))))}),t.createElement("div",{className:"k-actions k-actions-stretched k-actions-horizontal k-column-menu-footer"},t.createElement(y.Button,{svgIcon:U.filterClearIcon,onClick:R},g.toLanguageString(u.filterClearAllButton,u.messages[u.filterClearAllButton]))));return t.createElement(t.Fragment,null,ge?t.createElement(de.BadgeContainer,null,ee,t.createElement(de.Badge,{themeColor:"primary"})):ee,l.mobileMode?t.createElement(ze.GridToolbarAdaptiveProvider,null,Ae.createPortal(t.createElement(Ke.GridAdaptiveToolbarFilter,{filtered:j,computedShow:N,expandState:p,FilterUI:O,filterUIProps:A,isFilterValid:P,renderTitle:z,onBackView:Me,clear:$,submit:Z,onClose:x,onFilterExpand:K,handleClearAllFilters:R},te),(ae=Fe())==null?void 0:ae.body)):t.createElement(je.Popup,{anchor:(se=F.current)==null?void 0:se.element,show:N,popupClass:"k-grid-columnmenu-popup",onMouseDownOutside:ye},t.createElement("div",{ref:B,onBlur:we,onFocus:Be,onMouseDown:Ge,onKeyDown:Te,className:"k-column-menu k-column-menu-md"},te)))};me.displayName="KendoReactGridToolbarFilter";exports.GridToolbarFilter=me;
|
|
@@ -6,30 +6,28 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import * as t from "react";
|
|
9
|
-
import
|
|
10
|
-
import { useDocument as
|
|
11
|
-
import { GridColumnMenuItem as
|
|
12
|
-
import { GridColumnMenuItemContent as
|
|
13
|
-
import { GridColumnMenuItemGroup as
|
|
14
|
-
import { GridContext as
|
|
15
|
-
import { filterIcon as
|
|
16
|
-
import { getFilterType as
|
|
9
|
+
import Oe from "react-dom";
|
|
10
|
+
import { useDocument as Ve, SvgIcon as Ue, useAsyncFocusBlur as ze, classNames as Ke, getActiveElement as _e } from "@progress/kendo-react-common";
|
|
11
|
+
import { GridColumnMenuItem as He } from "../columnMenu/GridColumnMenuItem.mjs";
|
|
12
|
+
import { GridColumnMenuItemContent as je } from "../columnMenu/GridColumnMenuItemContent.mjs";
|
|
13
|
+
import { GridColumnMenuItemGroup as qe } from "../columnMenu/GridColumnMenuItemGroup.mjs";
|
|
14
|
+
import { GridContext as Je } from "../utils/GridContext.mjs";
|
|
15
|
+
import { filterIcon as me, filterClearIcon as Qe } from "@progress/kendo-svg-icons";
|
|
16
|
+
import { getFilterType as de, operatorMap as V, defaultHideSecondFilter as We, IsUnaryFilter as b, getDefaultOperator as Xe, booleanFilterValues as Ye, filterLogicList as Ze } from "../filterCommon.mjs";
|
|
17
17
|
import { Button as k } from "@progress/kendo-react-buttons";
|
|
18
|
-
import { GridColumnMenuFilterUI as
|
|
19
|
-
import { toolbarFilter as M, messages as
|
|
20
|
-
import { useLocalization as
|
|
21
|
-
import { rootFilterOrDefault as w, filterGroupByField as
|
|
22
|
-
import { Popup as
|
|
23
|
-
import { BadgeContainer as
|
|
24
|
-
import { GridToolbarAdaptiveProvider as
|
|
25
|
-
import { GridAdaptiveToolbarFilter as
|
|
26
|
-
const
|
|
27
|
-
var
|
|
28
|
-
const n = t.useContext(
|
|
29
|
-
n.filterable;
|
|
30
|
-
const p = n.defaultFilter, [S, F] = t.useState(!1), [he, E] = t.useState(!1), [d, D] = t.useState(
|
|
18
|
+
import { GridColumnMenuFilterUI as $e } from "../columnMenu/GridColumnMenuFilterUI.mjs";
|
|
19
|
+
import { toolbarFilter as M, messages as F, filterSubmitButton as ge, filterClearButton as pe, filterClearAllButton as he } from "../messages/index.mjs";
|
|
20
|
+
import { useLocalization as xe } from "@progress/kendo-react-intl";
|
|
21
|
+
import { rootFilterOrDefault as w, filterGroupByField as Re } from "../columnMenu/GridColumnMenuFilter.mjs";
|
|
22
|
+
import { Popup as et } from "@progress/kendo-react-popup";
|
|
23
|
+
import { BadgeContainer as tt, Badge as rt } from "@progress/kendo-react-indicators";
|
|
24
|
+
import { GridToolbarAdaptiveProvider as ot } from "./adaptiveContext/GridToolbarAdaptiveContext.mjs";
|
|
25
|
+
import { GridAdaptiveToolbarFilter as lt } from "./adaptiveContent/GridAdaptiveToolbarFilter.mjs";
|
|
26
|
+
const nt = (c) => {
|
|
27
|
+
var re, oe, le, ne, ie, ae, se;
|
|
28
|
+
const n = t.useContext(Je), m = n.columnsRef, U = n.filter, p = n.defaultFilter, [S, E] = t.useState(!1), [ve, h] = t.useState(!1), [d, D] = t.useState(
|
|
31
29
|
(m == null ? void 0 : m.map((e) => ({ column: e, expanded: !1 }))) || []
|
|
32
|
-
), [
|
|
30
|
+
), [Fe, z] = t.useState(!1), g = t.useRef(null), y = t.useRef(null), K = t.useRef(null), I = t.useRef(0), r = t.useRef(null), f = xe(), Ee = Ve(g), _ = t.useMemo(
|
|
33
31
|
() => (m == null ? void 0 : m.filter((e) => {
|
|
34
32
|
var o;
|
|
35
33
|
return (o = e.title || e.field) == null ? void 0 : o.toLowerCase();
|
|
@@ -37,22 +35,22 @@ const lt = (c) => {
|
|
|
37
35
|
[m]
|
|
38
36
|
);
|
|
39
37
|
t.useEffect(() => {
|
|
40
|
-
p
|
|
41
|
-
}, [p]);
|
|
42
|
-
const
|
|
38
|
+
h(!!(p || U));
|
|
39
|
+
}, [p, U]);
|
|
40
|
+
const H = t.useCallback(
|
|
43
41
|
(e) => {
|
|
44
42
|
const o = p && p.filters.some((i) => i.field === e.field);
|
|
45
|
-
return /* @__PURE__ */ t.createElement(t.Fragment, null, e.title || e.field, o && /* @__PURE__ */ t.createElement("span", { className: "k-columnmenu-indicators" }, /* @__PURE__ */ t.createElement(
|
|
43
|
+
return /* @__PURE__ */ t.createElement(t.Fragment, null, e.title || e.field, o && /* @__PURE__ */ t.createElement("span", { className: "k-columnmenu-indicators" }, /* @__PURE__ */ t.createElement(Ue, { key: 1, icon: me })));
|
|
46
44
|
},
|
|
47
45
|
[p]
|
|
48
|
-
),
|
|
49
|
-
D((i) => (r.current = o, i.map((l) => l.column.field === o.field ? { ...l, expanded: !l.expanded } : { ...l, expanded: !1 }))), B(
|
|
50
|
-
},
|
|
51
|
-
var o, i, l, s,
|
|
46
|
+
), j = (e, o) => {
|
|
47
|
+
D((i) => (r.current = o, i.map((l) => l.column.field === o.field ? { ...l, expanded: !l.expanded } : { ...l, expanded: !1 }))), B(q()), z(!Fe);
|
|
48
|
+
}, q = () => {
|
|
49
|
+
var o, i, l, s, ce, ue;
|
|
52
50
|
let e;
|
|
53
51
|
if (r != null && r.current && ((o = r == null ? void 0 : r.current) != null && o.field)) {
|
|
54
|
-
const
|
|
55
|
-
e =
|
|
52
|
+
const Ge = de((i = r == null ? void 0 : r.current) == null ? void 0 : i.filter), v = Xe(n.filterOperators, Ge);
|
|
53
|
+
e = Re((l = r == null ? void 0 : r.current) == null ? void 0 : l.field, n.filter), e = e ? {
|
|
56
54
|
...e,
|
|
57
55
|
filters: e.filters.map((O) => ({ ...O }))
|
|
58
56
|
} : {
|
|
@@ -60,29 +58,29 @@ const lt = (c) => {
|
|
|
60
58
|
filters: [
|
|
61
59
|
{
|
|
62
60
|
field: (s = r == null ? void 0 : r.current) == null ? void 0 : s.field,
|
|
63
|
-
operator:
|
|
64
|
-
value:
|
|
61
|
+
operator: v,
|
|
62
|
+
value: b(v) ? null : void 0
|
|
65
63
|
},
|
|
66
64
|
{
|
|
67
|
-
field: (
|
|
68
|
-
operator:
|
|
69
|
-
value:
|
|
65
|
+
field: (ce = r == null ? void 0 : r.current) == null ? void 0 : ce.field,
|
|
66
|
+
operator: v,
|
|
67
|
+
value: b(v) ? null : void 0
|
|
70
68
|
}
|
|
71
69
|
]
|
|
72
70
|
}, e.filters.filter((O) => {
|
|
73
|
-
var
|
|
74
|
-
return O.field === ((
|
|
71
|
+
var fe;
|
|
72
|
+
return O.field === ((fe = r == null ? void 0 : r.current) == null ? void 0 : fe.field);
|
|
75
73
|
}).length === 1 && e.filters.splice(1, 0, {
|
|
76
|
-
field: (
|
|
77
|
-
operator:
|
|
74
|
+
field: (ue = r == null ? void 0 : r.current) == null ? void 0 : ue.field,
|
|
75
|
+
operator: v
|
|
78
76
|
});
|
|
79
77
|
}
|
|
80
78
|
return e;
|
|
81
|
-
},
|
|
82
|
-
|
|
79
|
+
}, Ce = (e) => {
|
|
80
|
+
J(0, e);
|
|
83
81
|
}, be = (e) => {
|
|
84
|
-
|
|
85
|
-
},
|
|
82
|
+
J(1, e);
|
|
83
|
+
}, J = (e, o) => {
|
|
86
84
|
const i = u.filters.map((l, s) => s === e ? {
|
|
87
85
|
...l,
|
|
88
86
|
value: o.value || "",
|
|
@@ -92,40 +90,40 @@ const lt = (c) => {
|
|
|
92
90
|
...u,
|
|
93
91
|
filters: i
|
|
94
92
|
});
|
|
95
|
-
}, [u, B] = t.useState(
|
|
96
|
-
field: (
|
|
93
|
+
}, [u, B] = t.useState(q()), a = u == null ? void 0 : u.filters, C = de((re = r == null ? void 0 : r.current) == null ? void 0 : re.filter), A = V(n.filterOperators[C], f), Q = V(Ye, f), ke = {
|
|
94
|
+
field: (oe = r == null ? void 0 : r.current) == null ? void 0 : oe.field,
|
|
97
95
|
value: a == null ? void 0 : a[0].value,
|
|
98
96
|
operator: a == null ? void 0 : a[0].operator,
|
|
99
97
|
operators: A,
|
|
100
|
-
booleanValues:
|
|
101
|
-
onChange:
|
|
102
|
-
filterType:
|
|
103
|
-
},
|
|
104
|
-
field: (
|
|
98
|
+
booleanValues: Q,
|
|
99
|
+
onChange: Ce,
|
|
100
|
+
filterType: C
|
|
101
|
+
}, Me = {
|
|
102
|
+
field: (le = r == null ? void 0 : r.current) == null ? void 0 : le.field,
|
|
105
103
|
value: a == null ? void 0 : a[1].value,
|
|
106
104
|
operator: a == null ? void 0 : a[1].operator,
|
|
107
105
|
operators: A,
|
|
108
|
-
booleanValues:
|
|
106
|
+
booleanValues: Q,
|
|
109
107
|
onChange: be,
|
|
110
|
-
filterType:
|
|
111
|
-
},
|
|
108
|
+
filterType: C
|
|
109
|
+
}, we = (e) => {
|
|
112
110
|
let o = e.target.value;
|
|
113
111
|
e.target.tagName === "SPAN" && (o = e.target.parentElement.value), B({ ...u, logic: o });
|
|
114
|
-
},
|
|
115
|
-
value:
|
|
116
|
-
onChange:
|
|
117
|
-
data:
|
|
118
|
-
},
|
|
119
|
-
firstFilterProps:
|
|
120
|
-
secondFilterProps:
|
|
112
|
+
}, W = u == null ? void 0 : u.logic, X = V(Ze, f), T = {
|
|
113
|
+
value: X.find((e) => e.operator === (W === null ? "" : W)),
|
|
114
|
+
onChange: we,
|
|
115
|
+
data: X
|
|
116
|
+
}, Se = c.hideSecondFilter !== void 0 ? c.hideSecondFilter : We[C], N = c.filterUI, L = {
|
|
117
|
+
firstFilterProps: ke,
|
|
118
|
+
secondFilterProps: Me,
|
|
121
119
|
logicData: T.data,
|
|
122
120
|
logicValue: T.value,
|
|
123
121
|
onLogicChange: T.onChange,
|
|
124
|
-
hideSecondFilter:
|
|
125
|
-
},
|
|
122
|
+
hideSecondFilter: Se
|
|
123
|
+
}, Y = () => ({
|
|
126
124
|
...u,
|
|
127
125
|
filters: u == null ? void 0 : u.filters.filter((e) => e.value !== void 0 && e.value !== null && e.value !== "" || e.value === null && e.operator)
|
|
128
|
-
}), P = ((
|
|
126
|
+
}), P = ((ie = (ne = Y()) == null ? void 0 : ne.filters) == null ? void 0 : ie.length) !== 0 || b(a == null ? void 0 : a[0].operator) || b(a == null ? void 0 : a[1].operator), Z = (e) => {
|
|
129
127
|
if (e.preventDefault(), !n.filterChange)
|
|
130
128
|
return;
|
|
131
129
|
const o = w(n.filter), i = {
|
|
@@ -135,51 +133,51 @@ const lt = (c) => {
|
|
|
135
133
|
return l.field !== ((s = r == null ? void 0 : r.current) == null ? void 0 : s.field);
|
|
136
134
|
})
|
|
137
135
|
};
|
|
138
|
-
P && i.filters.push(
|
|
139
|
-
},
|
|
136
|
+
P && i.filters.push(Y()), n.filterChange(i, e), h(!0), E(!1);
|
|
137
|
+
}, $ = (e) => {
|
|
140
138
|
if (e.preventDefault(), !n.filterChange)
|
|
141
139
|
return;
|
|
142
140
|
const o = w(n.filter), i = o.filters.filter((l) => {
|
|
143
141
|
var s;
|
|
144
142
|
return l.field !== ((s = r == null ? void 0 : r.current) == null ? void 0 : s.field);
|
|
145
143
|
});
|
|
146
|
-
i.length === 0 ? n.filterChange(null, e) : n.filterChange({ ...o, filters: i }, e), c.onCloseMenu && c.onCloseMenu(),
|
|
144
|
+
i.length === 0 ? n.filterChange(null, e) : n.filterChange({ ...o, filters: i }, e), c.onCloseMenu && c.onCloseMenu(), h(!1), D(
|
|
147
145
|
(l) => l.map((s) => ({
|
|
148
146
|
...s,
|
|
149
147
|
expanded: !1
|
|
150
148
|
}))
|
|
151
149
|
);
|
|
152
|
-
},
|
|
153
|
-
|
|
154
|
-
}, De = (e) => {
|
|
155
|
-
e.preventDefault(), F(!S);
|
|
150
|
+
}, De = () => {
|
|
151
|
+
z(!1);
|
|
156
152
|
}, ye = (e) => {
|
|
157
|
-
|
|
158
|
-
},
|
|
159
|
-
|
|
153
|
+
e.preventDefault(), E(!S);
|
|
154
|
+
}, Ie = (e) => {
|
|
155
|
+
!e.isAnchorClicked && E(!1);
|
|
156
|
+
}, G = t.useMemo(() => c.show !== void 0 ? c.show : S, [c.show, S]), Be = (e) => {
|
|
157
|
+
const o = _e(document);
|
|
160
158
|
clearTimeout(I.current), I.current = window.setTimeout(() => {
|
|
161
|
-
!n.mobileMode && o && e.relatedTarget !== g.current && y.current && !y.current.contains(o) &&
|
|
159
|
+
!n.mobileMode && o && e.relatedTarget !== g.current && y.current && !y.current.contains(o) && x();
|
|
162
160
|
});
|
|
163
|
-
},
|
|
161
|
+
}, x = () => {
|
|
164
162
|
var e;
|
|
165
|
-
c.onCloseMenu && c.onCloseMenu(),
|
|
166
|
-
},
|
|
163
|
+
c.onCloseMenu && c.onCloseMenu(), E(!1), g.current && ((e = g.current.element) == null || e.focus());
|
|
164
|
+
}, Ae = () => {
|
|
167
165
|
clearTimeout(I.current);
|
|
168
|
-
}, { onFocus:
|
|
169
|
-
onFocus: (e) =>
|
|
170
|
-
onBlur: (e) =>
|
|
171
|
-
}),
|
|
166
|
+
}, { onFocus: Te, onBlur: Ne } = ze({
|
|
167
|
+
onFocus: (e) => Ae(),
|
|
168
|
+
onBlur: (e) => Be(e)
|
|
169
|
+
}), Le = (e) => {
|
|
172
170
|
var o;
|
|
173
|
-
(o =
|
|
174
|
-
},
|
|
171
|
+
(o = K.current) == null || o.triggerMouseEvent(e);
|
|
172
|
+
}, Pe = (e) => {
|
|
175
173
|
var o;
|
|
176
|
-
(o =
|
|
177
|
-
},
|
|
174
|
+
(o = K.current) == null || o.triggerKeyboardEvent(e);
|
|
175
|
+
}, R = t.useCallback(
|
|
178
176
|
(e) => {
|
|
179
177
|
if (e.preventDefault(), !n.filterChange)
|
|
180
178
|
return;
|
|
181
179
|
const o = w(n.filter), i = o.filters.filter(() => !1);
|
|
182
|
-
i.length === 0 ? n.filterChange(null, e) : n.filterChange({ ...o, filters: i }, e),
|
|
180
|
+
i.length === 0 ? n.filterChange(null, e) : n.filterChange({ ...o, filters: i }, e), h(!1), D(
|
|
183
181
|
(l) => l.map((s) => ({
|
|
184
182
|
...s,
|
|
185
183
|
expanded: !1
|
|
@@ -187,90 +185,90 @@ const lt = (c) => {
|
|
|
187
185
|
);
|
|
188
186
|
},
|
|
189
187
|
[n, w]
|
|
190
|
-
),
|
|
188
|
+
), ee = /* @__PURE__ */ t.createElement(
|
|
191
189
|
k,
|
|
192
190
|
{
|
|
193
191
|
ref: g,
|
|
194
192
|
togglable: !0,
|
|
195
193
|
selected: G,
|
|
196
|
-
svgIcon: c.svgIcon ? c.svgIcon : c.icon ? void 0 :
|
|
194
|
+
svgIcon: c.svgIcon ? c.svgIcon : c.icon ? void 0 : me,
|
|
197
195
|
icon: c.icon,
|
|
198
196
|
size: n.mobileMode ? "large" : "medium",
|
|
199
|
-
className:
|
|
197
|
+
className: Ke("k-toolbar-button", {
|
|
200
198
|
"k-icon-button": n.mobileMode
|
|
201
199
|
}),
|
|
202
|
-
title: f.toLanguageString(M,
|
|
203
|
-
onClick:
|
|
200
|
+
title: f.toLanguageString(M, F[M]),
|
|
201
|
+
onClick: ye
|
|
204
202
|
},
|
|
205
|
-
!n.mobileMode && f.toLanguageString(M,
|
|
206
|
-
),
|
|
203
|
+
!n.mobileMode && f.toLanguageString(M, F[M])
|
|
204
|
+
), te = /* @__PURE__ */ t.createElement(t.Fragment, null, _.map((e) => {
|
|
207
205
|
var o, i;
|
|
208
|
-
return e.filterable && /* @__PURE__ */ t.createElement(
|
|
209
|
-
|
|
206
|
+
return e.filterable && /* @__PURE__ */ t.createElement(qe, { key: e.id }, /* @__PURE__ */ t.createElement("div", { className: "k-expander" }, /* @__PURE__ */ t.createElement(
|
|
207
|
+
He,
|
|
210
208
|
{
|
|
211
|
-
title:
|
|
209
|
+
title: H(e),
|
|
212
210
|
expandable: !0,
|
|
213
211
|
expanded: !!((o = d == null ? void 0 : d.find((l) => l.column.field === e.field)) != null && o.expanded),
|
|
214
|
-
onClick: (l) =>
|
|
212
|
+
onClick: (l) => j(l, e)
|
|
215
213
|
}
|
|
216
214
|
)), /* @__PURE__ */ t.createElement(
|
|
217
|
-
|
|
215
|
+
je,
|
|
218
216
|
{
|
|
219
217
|
show: !!((i = d == null ? void 0 : d.find((l) => l.column.field === e.field)) != null && i.expanded)
|
|
220
218
|
},
|
|
221
|
-
/* @__PURE__ */ t.createElement("form", { className: "k-filter-menu", onSubmit:
|
|
222
|
-
de,
|
|
223
|
-
v[de]
|
|
224
|
-
)), /* @__PURE__ */ t.createElement(k, { type: "reset" }, f.toLanguageString(
|
|
219
|
+
/* @__PURE__ */ t.createElement("form", { className: "k-filter-menu", onSubmit: Z, onReset: $ }, /* @__PURE__ */ t.createElement("div", { className: "k-filter-menu-container" }, N ? /* @__PURE__ */ t.createElement(N, { ...L }) : /* @__PURE__ */ t.createElement($e, { ...L }), /* @__PURE__ */ t.createElement("div", { className: "k-actions k-actions-stretched" }, /* @__PURE__ */ t.createElement(k, { themeColor: "primary", disabled: !P }, f.toLanguageString(
|
|
225
220
|
ge,
|
|
226
|
-
|
|
221
|
+
F[ge]
|
|
222
|
+
)), /* @__PURE__ */ t.createElement(k, { type: "reset" }, f.toLanguageString(
|
|
223
|
+
pe,
|
|
224
|
+
F[pe]
|
|
227
225
|
)))))
|
|
228
226
|
));
|
|
229
|
-
}), /* @__PURE__ */ t.createElement("div", { className: "k-actions k-actions-stretched k-actions-horizontal k-column-menu-footer" }, /* @__PURE__ */ t.createElement(k, { svgIcon:
|
|
230
|
-
return /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
227
|
+
}), /* @__PURE__ */ t.createElement("div", { className: "k-actions k-actions-stretched k-actions-horizontal k-column-menu-footer" }, /* @__PURE__ */ t.createElement(k, { svgIcon: Qe, onClick: R }, f.toLanguageString(he, F[he]))));
|
|
228
|
+
return /* @__PURE__ */ t.createElement(t.Fragment, null, ve ? /* @__PURE__ */ t.createElement(tt, null, ee, /* @__PURE__ */ t.createElement(rt, { themeColor: "primary" })) : ee, n.mobileMode ? /* @__PURE__ */ t.createElement(ot, null, Oe.createPortal(
|
|
231
229
|
/* @__PURE__ */ t.createElement(
|
|
232
|
-
|
|
230
|
+
lt,
|
|
233
231
|
{
|
|
234
|
-
filtered:
|
|
232
|
+
filtered: _,
|
|
235
233
|
computedShow: G,
|
|
236
234
|
expandState: d,
|
|
237
235
|
FilterUI: N,
|
|
238
236
|
filterUIProps: L,
|
|
239
237
|
isFilterValid: P,
|
|
240
|
-
renderTitle:
|
|
241
|
-
onBackView:
|
|
242
|
-
clear:
|
|
243
|
-
submit:
|
|
244
|
-
onClose:
|
|
245
|
-
onFilterExpand:
|
|
246
|
-
handleClearAllFilters:
|
|
238
|
+
renderTitle: H,
|
|
239
|
+
onBackView: De,
|
|
240
|
+
clear: $,
|
|
241
|
+
submit: Z,
|
|
242
|
+
onClose: x,
|
|
243
|
+
onFilterExpand: j,
|
|
244
|
+
handleClearAllFilters: R
|
|
247
245
|
},
|
|
248
|
-
|
|
246
|
+
te
|
|
249
247
|
),
|
|
250
|
-
(
|
|
248
|
+
(ae = Ee()) == null ? void 0 : ae.body
|
|
251
249
|
)) : /* @__PURE__ */ t.createElement(
|
|
252
|
-
|
|
250
|
+
et,
|
|
253
251
|
{
|
|
254
|
-
anchor: (
|
|
252
|
+
anchor: (se = g.current) == null ? void 0 : se.element,
|
|
255
253
|
show: G,
|
|
256
254
|
popupClass: "k-grid-columnmenu-popup",
|
|
257
|
-
onMouseDownOutside:
|
|
255
|
+
onMouseDownOutside: Ie
|
|
258
256
|
},
|
|
259
257
|
/* @__PURE__ */ t.createElement(
|
|
260
258
|
"div",
|
|
261
259
|
{
|
|
262
260
|
ref: y,
|
|
263
|
-
onBlur:
|
|
264
|
-
onFocus:
|
|
265
|
-
onMouseDown:
|
|
266
|
-
onKeyDown:
|
|
261
|
+
onBlur: Ne,
|
|
262
|
+
onFocus: Te,
|
|
263
|
+
onMouseDown: Le,
|
|
264
|
+
onKeyDown: Pe,
|
|
267
265
|
className: "k-column-menu k-column-menu-md"
|
|
268
266
|
},
|
|
269
|
-
|
|
267
|
+
te
|
|
270
268
|
)
|
|
271
269
|
));
|
|
272
270
|
};
|
|
273
|
-
|
|
271
|
+
nt.displayName = "KendoReactGridToolbarFilter";
|
|
274
272
|
export {
|
|
275
|
-
|
|
273
|
+
nt as GridToolbarFilter
|
|
276
274
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
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 x=require("react"),ee=require("react-dom"),te=require("../utils/GridContext.js"),F=require("@progress/kendo-react-buttons"),g=require("@progress/kendo-svg-icons"),ne=require("@progress/kendo-react-intl"),i=require("../messages/index.js"),u=require("@progress/kendo-react-common"),P=require("@progress/kendo-react-indicators"),oe=require("@progress/kendo-react-popup"),ae=require("./adaptiveContext/GridToolbarAdaptiveContext.js"),re=require("./adaptiveContent/GridAdaptiveToolbarGroup.js");function le(l){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const c in l)if(c!=="default"){const f=Object.getOwnPropertyDescriptor(l,c);Object.defineProperty(o,c,f.get?f:{enumerable:!0,get:()=>l[c]})}}return o.default=l,Object.freeze(o)}const e=le(x),z=l=>{var A,O;const o=e.useContext(te.GridContext),c=o.columnsState,f=o.groupable,a=o.group,w=o.defaultGroup,[I,k]=e.useState(!0),[j,p]=e.useState(!1),[b,C]=e.useState(!1),m=e.useRef(null),v=e.useRef(null),M=e.useRef(null),h=e.useRef(0),E=ne.useLocalization(),L=u.useDocument(m);e.useEffect(()=>{w||a!=null&&a.length?(p(!0),k(!1)):p(!1)},[w,a]);const N=e.useMemo(()=>(c==null?void 0:c.filter(t=>{var n;return(n=t.title||t.field)==null?void 0:n.toLowerCase()}))||[],[c]),d=e.useCallback(()=>{var t;l.onCloseMenu&&l.onCloseMenu(),C(!1),m.current&&((t=m.current.element)==null||t.focus())},[l]),D=e.useCallback((t,n)=>{if(t.preventDefault(),!(n!=null&&n.field))return;const r=(a||[]).slice(),s=r.findIndex($=>$.field===n.field);s>-1?r.splice(s,1):r.push({field:n.field}),o.groupChange(r,t),k(!1),p(!0)},[o,a]),T=e.useCallback((t,n)=>{if(t.preventDefault(),!(n!=null&&n.field))return;const r=(a||[]).filter(s=>s.field!==n.field);o.groupChange(r,t),r.length===0&&(k(!0),p(!1),d())},[d,o,a]),S=e.useCallback((t,n)=>{if(n===0)return;const r=[...a||[]],s=r[n-1];r[n-1]=r[n],r[n]=s,o.groupChange(r,t)},[a,o]),y=e.useCallback((t,n)=>{if(n===a.length-1)return;const r=[...a||[]],s=r[n+1];r[n+1]=r[n],r[n]=s,o.groupChange(r,t)},[a,o]),K=e.useCallback((t,n)=>{const r=c==null?void 0:c.find(s=>s.field===t.field);return e.createElement(e.Fragment,null,a&&a.length!==1&&e.createElement("span",{className:"k-group-menu-item-actions"},e.createElement("span",{className:u.classNames("k-group-menu-item-action k-group-menu-item-up-action",{"k-disabled":n===0}),"aria-disabled":n===0,onClick:s=>S(s,n)},e.createElement(u.SvgIcon,{icon:g.chevronUpIcon})),e.createElement("span",{className:u.classNames("k-group-menu-item-action k-group-menu-item-down-action",{"k-disabled":n===a.length-1}),"aria-disabled":n===a.length-1,onClick:s=>y(s,n)},e.createElement(u.SvgIcon,{icon:g.chevronDownIcon}))),e.createElement("span",{className:"k-group-item-text"},(r==null?void 0:r.title)||t.field),e.createElement("span",{className:"k-spacer"}),e.createElement("span",{className:"k-group-menu-item-actions"},e.createElement("span",{className:"k-group-menu-item-action k-group-menu-item-remove-action",onClick:s=>T(s,t)},e.createElement(u.SvgIcon,{icon:g.xCircleIcon,size:o.mobileMode?"large":"medium"}))))},[c,o.mobileMode,a,T,y,S]),_=e.useCallback(t=>e.createElement(e.Fragment,null,e.createElement("span",{className:"k-group-item-text"},t.title||t.field),e.createElement("span",{className:"k-spacer"}),e.createElement("span",{className:"k-group-menu-item-actions"},e.createElement("span",{className:"k-group-menu-item-action k-group-menu-item-add-action",onClick:n=>D(n,t)},e.createElement(u.SvgIcon,{icon:g.plusCircleIcon,size:o.mobileMode?"large":"medium"})))),[o.mobileMode,D]),U=t=>{t.preventDefault(),C(!b)},G=e.useMemo(()=>{var t;return(t=l.show)!=null?t:b},[l.show,b]),V=t=>{const n=u.getActiveElement(document);clearTimeout(h.current),h.current=window.setTimeout(()=>{!o.mobileMode&&n&&t.relatedTarget!==m.current&&v.current&&!v.current.contains(n)&&d()})},H=()=>{clearTimeout(h.current)},{onFocus:J,onBlur:Q}=u.useAsyncFocusBlur({onFocus:t=>H(),onBlur:t=>V(t)}),W=t=>{var n;(n=M.current)==null||n.triggerMouseEvent(t)},X=t=>{var n;(n=M.current)==null||n.triggerKeyboardEvent(t)},Y=t=>{!t.isAnchorClicked&&C(!1)},B=e.useCallback(t=>{o.groupChange([],t),k(!0),p(!1),d()},[d,o]),R=e.createElement(e.Fragment,null,a&&a.length>0&&e.createElement("div",{className:"k-group-menu-item-wrap"},a==null?void 0:a.map((t,n)=>e.createElement("div",{className:"k-group-menu-item",key:t.field},K(t,n)))),e.createElement("div",{className:"k-group-menu-item-wrap"},N.filter(t=>!(a!=null&&a.some(n=>n.field===t.field))).map(t=>t.field==="value"?null:e.createElement("div",{className:"k-group-menu-item",key:t.id},_(t))))),Z=e.useMemo(()=>l.svgIcon?l.svgIcon:l.icon?void 0:g.groupIcon,[l.icon,l.svgIcon]),q=e.createElement(F.Button,{ref:m,togglable:!0,selected:G,svgIcon:Z,icon:l.icon,size:o.mobileMode?"large":"medium",className:u.classNames("k-toolbar-button",{"k-icon-button":o.mobileMode}),title:E.toLanguageString(i.toolbarGroup,i.messages[i.toolbarGroup]),onClick:U},!o.mobileMode&&E.toLanguageString(i.toolbarGroup,i.messages[i.toolbarGroup]));return f&&e.createElement(e.Fragment,null,j?e.createElement(P.BadgeContainer,null,q,e.createElement(P.Badge,{themeColor:"primary"})):q,o.mobileMode?e.createElement(ae.GridToolbarAdaptiveProvider,null,ee.createPortal(e.createElement(re.GridAdaptiveToolbarGroup,{filtered:N,computedShow:G,isDisabledButton:I,toolContent:R,onClose:d,onClear:B}),(A=L())==null?void 0:A.body)):e.createElement(oe.Popup,{anchor:(O=m.current)==null?void 0:O.element,show:G,popupClass:"k-grid-columnmenu-popup",onMouseDownOutside:Y},e.createElement("div",{ref:v,onBlur:Q,onFocus:J,onMouseDown:W,onKeyDown:X,className:"k-group-menu k-group-menu-md"},R,e.createElement("div",{className:"k-actions k-actions-stretched k-actions-horizontal k-column-menu-footer"},e.createElement(F.Button,{svgIcon:g.xIcon,onClick:B,disabled:I},E.toLanguageString(i.groupClearButton,i.messages[i.groupClearButton]))))))};z.displayName="KendoReactGridToolbarGroup";exports.GridToolbarGroup=z;
|