@progress/kendo-react-data-tools 15.1.0-develop.1 → 15.1.0-develop.2

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.
@@ -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"});var N=(e=>(e.TOGGLE="GROUP-EXPAND_TOGGLE",e.EXPAND="GROUP-EXPAND_EXPAND",e.COLLAPSE="GROUP-EXPAND_COLLAPSE",e.RESET="GROUP-EXPAND_RESET",e))(N||{});const U=e=>{var r;return{enabled:typeof e=="boolean"?e:(r=e==null?void 0:e.enabled)!=null?r:!0,defaultExpand:typeof e=="object"?e==null?void 0:e.defaultExpand:!0}},i=(e=[],r=null)=>{const u=[];return e==null||e.forEach(d=>{var a;const l={value:d.value,field:d.field,parents:r?[r,...(a=r.parents)!=null?a:[]]:[]};d.expanded!==void 0&&(l.expanded=d.expanded),d.groups&&u.push(...i(d.groups,l)),u.push(l)}),u},x=e=>{var r,u,d,l;return`${(r=e.parents)!=null&&r.length?((l=(d=(u=e.parents)==null?void 0:u.slice())==null?void 0:d.reverse())==null?void 0:l.map(a=>x({field:a.field,value:a.value})).join("/"))+"/":""}${e.field}:${e.value}`},w=(e,r)=>{const u=i(e);return g(u,r)},j=(e,r)=>{var l;const u=i(e),d=g(u,r);return d?(l=d.expanded)!=null?l:!0:!1},v=e=>{var l;const r=new Map;r.set("root",{value:null,field:"",groups:new Set}),(a=>{a.forEach(s=>{var o,P,h,G;const c=x(s),n=(o=r.get(c))!=null?o:{value:s.value,field:s.field};s.expanded!==void 0&&(n.expanded=s.expanded),r.has(c)||r.set(c,n);let f=n;(P=s.parents)!=null&&P.length?s.parents.forEach((p,O)=>{var A,L,R,S,T,D,X;const E=x({value:p.value,field:p.field,parents:(L=s.parents)==null?void 0:L.slice(O+1,(A=s==null?void 0:s.parents)==null?void 0:A.length)}),t=(R=r.get(E))!=null?R:{value:p.value,field:p.field};p.expanded&&(t.expanded=p.expanded),r.has(E)||r.set(E,t),t!=null&&t.groups||(t.groups=new Set),t.groups.add(f),f=t,O===((T=(S=s.parents)==null?void 0:S.length)!=null?T:-1)-1&&((X=(D=r.get("root"))==null?void 0:D.groups)==null||X.add(t))}):(G=(h=r.get("root"))==null?void 0:h.groups)==null||G.add(f)})})(e);const d=a=>{a.groups&&(a.groups=Array.from(a.groups),a.groups.forEach(d))};return d(r.get("root")),((l=r.get("root"))==null?void 0:l.groups)||[]},F=(e,r)=>{var u;return!!((u=r.parents)!=null&&u.every((d,l)=>{var a;return(a=e.parents)==null?void 0:a.find(s=>d.value===s.value&&d.field===s.field)}))},g=(e,r)=>e.find(d=>d.value===r.value&&d.field===r.field&&F(d,r)),_=(e,r,u)=>{var a,s,c;const d=i(e!=null?e:[]),l=g(d,r.group);switch(r.type){case"GROUP-EXPAND_TOGGLE":return v(l?d==null?void 0:d.map(n=>{var f,o;return n===l?{...n,expanded:!((o=(f=n.expanded)!=null?f:u==null?void 0:u.defaultExpand)==null||o)}:n}):[...d,{...r.group,expanded:!((a=u==null?void 0:u.defaultExpand)==null||a)}]);case"GROUP-EXPAND_EXPAND":{let n;return l?n=d==null?void 0:d.map(f=>f===l?{...f,expanded:!0}:f):(s=u==null?void 0:u.defaultExpand)==null||s?n=d:n=[...d,{...r.group,expanded:!0}],v(n)}case"GROUP-EXPAND_COLLAPSE":{let n;return l?n=d==null?void 0:d.map(f=>f===l?{...f,expanded:!1}:f):(c=u==null?void 0:u.defaultExpand)==null||c?n=[...d,{...r.group,expanded:!1}]:n=d,v(n)}default:return e}};exports.GROUP_EXPAND_ACTION=N;exports.findGroupExpand=w;exports.flatToTree=v;exports.getGroupExpandableOptions=U;exports.groupExpandReducer=_;exports.isExpanded=j;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var S=(e=>(e.TOGGLE="GROUP-EXPAND_TOGGLE",e.EXPAND="GROUP-EXPAND_EXPAND",e.COLLAPSE="GROUP-EXPAND_COLLAPSE",e.RESET="GROUP-EXPAND_RESET",e))(S||{});const T=e=>{var d;return{enabled:typeof e=="boolean"?e:(d=e==null?void 0:e.enabled)!=null?d:!0,defaultExpand:typeof e=="object"?e==null?void 0:e.defaultExpand:!0}},i=(e=[],d=null)=>{const u=[];return e==null||e.forEach(r=>{var n;const l={value:r.value,field:r.field,parents:d?[d,...(n=d.parents)!=null?n:[]]:[]};r.expanded!==void 0&&(l.expanded=r.expanded),r.groups&&u.push(...i(r.groups,l)),u.push(l)}),u},x=e=>{var d,u,r,l;return`${(d=e.parents)!=null&&d.length?((l=(r=(u=e.parents)==null?void 0:u.slice())==null?void 0:r.reverse())==null?void 0:l.map(n=>x({field:n.field,value:n.value})).join("/"))+"/":""}${e.field}:${e.value}`},D=(e,d)=>{const u=i(e);return P(u,d)},X=(e,d)=>{var l;const u=i(e),r=P(u,d);return r?(l=r.expanded)!=null?l:!0:!1},v=e=>{var l;const d=new Map;d.set("root",{value:null,field:"",groups:new Set}),(n=>{n.forEach(t=>{var g,h,G;const o=x(t),a=(g=d.get(o))!=null?g:{value:t.value,field:t.field};t.expanded!==void 0&&(a.expanded=t.expanded),d.has(o)||d.set(o,a);let f=a;const s=t.parents;s&&s.length?s.forEach((p,O)=>{var R,A,L;const E=x({value:p.value,field:p.field,parents:s.slice(O+1,s.length)}),c=(R=d.get(E))!=null?R:{value:p.value,field:p.field};p.expanded&&(c.expanded=p.expanded),d.has(E)||d.set(E,c),c.groups||(c.groups=new Set),c.groups.add(f),f=c,O===s.length-1&&((L=(A=d.get("root"))==null?void 0:A.groups)==null||L.add(c))}):(G=(h=d.get("root"))==null?void 0:h.groups)==null||G.add(f)})})(e);const r=n=>{n.groups&&(n.groups=Array.from(n.groups),n.groups.forEach(r))};return r(d.get("root")),((l=d.get("root"))==null?void 0:l.groups)||[]},N=(e,d)=>{var u;return!!((u=d.parents)!=null&&u.every((r,l)=>{var n;return(n=e.parents)==null?void 0:n.find(t=>r.value===t.value&&r.field===t.field)}))},P=(e,d)=>e.find(r=>r.value===d.value&&r.field===d.field&&N(r,d)),U=(e,d,u)=>{var n,t,o;const r=i(e!=null?e:[]),l=P(r,d.group);switch(d.type){case"GROUP-EXPAND_TOGGLE":return v(l?r.map(a=>{var f,s;return a===l?{...a,expanded:!((s=(f=a.expanded)!=null?f:u==null?void 0:u.defaultExpand)==null||s)}:a}):[...r,{...d.group,expanded:!((n=u==null?void 0:u.defaultExpand)==null||n)}]);case"GROUP-EXPAND_EXPAND":{let a;return l?a=r.map(f=>f===l?{...f,expanded:!0}:f):(t=u==null?void 0:u.defaultExpand)==null||t?a=r:a=[...r,{...d.group,expanded:!0}],v(a)}case"GROUP-EXPAND_COLLAPSE":{let a;return l?a=r.map(f=>f===l?{...f,expanded:!1}:f):(o=u==null?void 0:u.defaultExpand)==null||o?a=[...r,{...d.group,expanded:!1}]:a=r,v(a)}default:return e}};exports.GROUP_EXPAND_ACTION=S;exports.findGroupExpand=D;exports.flatToTree=v;exports.getGroupExpandableOptions=T;exports.groupExpandReducer=U;exports.isExpanded=X;
@@ -5,103 +5,104 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- var w = /* @__PURE__ */ ((e) => (e.TOGGLE = "GROUP-EXPAND_TOGGLE", e.EXPAND = "GROUP-EXPAND_EXPAND", e.COLLAPSE = "GROUP-EXPAND_COLLAPSE", e.RESET = "GROUP-EXPAND_RESET", e))(w || {});
9
- const U = (e) => {
10
- var r;
8
+ var D = /* @__PURE__ */ ((e) => (e.TOGGLE = "GROUP-EXPAND_TOGGLE", e.EXPAND = "GROUP-EXPAND_EXPAND", e.COLLAPSE = "GROUP-EXPAND_COLLAPSE", e.RESET = "GROUP-EXPAND_RESET", e))(D || {});
9
+ const X = (e) => {
10
+ var d;
11
11
  return {
12
- enabled: typeof e == "boolean" ? e : (r = e == null ? void 0 : e.enabled) != null ? r : !0,
12
+ enabled: typeof e == "boolean" ? e : (d = e == null ? void 0 : e.enabled) != null ? d : !0,
13
13
  defaultExpand: typeof e == "object" ? e == null ? void 0 : e.defaultExpand : !0
14
14
  };
15
- }, E = (e = [], r = null) => {
16
- const u = [];
17
- return e == null || e.forEach((d) => {
18
- var s;
19
- const l = {
20
- value: d.value,
21
- field: d.field,
22
- parents: r ? [r, ...(s = r.parents) != null ? s : []] : []
15
+ }, E = (e = [], d = null) => {
16
+ const l = [];
17
+ return e == null || e.forEach((r) => {
18
+ var f;
19
+ const u = {
20
+ value: r.value,
21
+ field: r.field,
22
+ parents: d ? [d, ...(f = d.parents) != null ? f : []] : []
23
23
  };
24
- d.expanded !== void 0 && (l.expanded = d.expanded), d.groups && u.push(...E(d.groups, l)), u.push(l);
25
- }), u;
24
+ r.expanded !== void 0 && (u.expanded = r.expanded), r.groups && l.push(...E(r.groups, u)), l.push(u);
25
+ }), l;
26
26
  }, h = (e) => {
27
- var r, u, d, l;
28
- return `${(r = e.parents) != null && r.length ? ((l = (d = (u = e.parents) == null ? void 0 : u.slice()) == null ? void 0 : d.reverse()) == null ? void 0 : l.map((s) => h({ field: s.field, value: s.value })).join("/")) + "/" : ""}${e.field}:${e.value}`;
29
- }, F = (e, r) => {
30
- const u = E(e);
31
- return x(u, r);
32
- }, $ = (e, r) => {
33
- var l;
34
- const u = E(e), d = x(u, r);
35
- return d ? (l = d.expanded) != null ? l : !0 : !1;
36
- }, o = (e) => {
37
- var l;
38
- const r = /* @__PURE__ */ new Map();
39
- r.set("root", { value: null, field: "", groups: /* @__PURE__ */ new Set() }), ((s) => {
40
- s.forEach((f) => {
41
- var p, P, g, G;
42
- const c = h(f), a = (p = r.get(c)) != null ? p : {
43
- value: f.value,
44
- field: f.field
27
+ var d, l, r, u;
28
+ return `${(d = e.parents) != null && d.length ? ((u = (r = (l = e.parents) == null ? void 0 : l.slice()) == null ? void 0 : r.reverse()) == null ? void 0 : u.map((f) => h({ field: f.field, value: f.value })).join("/")) + "/" : ""}${e.field}:${e.value}`;
29
+ }, T = (e, d) => {
30
+ const l = E(e);
31
+ return x(l, d);
32
+ }, w = (e, d) => {
33
+ var u;
34
+ const l = E(e), r = x(l, d);
35
+ return r ? (u = r.expanded) != null ? u : !0 : !1;
36
+ }, p = (e) => {
37
+ var u;
38
+ const d = /* @__PURE__ */ new Map();
39
+ d.set("root", { value: null, field: "", groups: /* @__PURE__ */ new Set() }), ((f) => {
40
+ f.forEach((s) => {
41
+ var P, g, G;
42
+ const v = h(s), n = (P = d.get(v)) != null ? P : {
43
+ value: s.value,
44
+ field: s.field
45
45
  };
46
- f.expanded !== void 0 && (a.expanded = f.expanded), r.has(c) || r.set(c, a);
47
- let n = a;
48
- (P = f.parents) != null && P.length ? f.parents.forEach((v, L) => {
49
- var A, O, D, R, S, X, T;
46
+ s.expanded !== void 0 && (n.expanded = s.expanded), d.has(v) || d.set(v, n);
47
+ let a = n;
48
+ const t = s.parents;
49
+ t && t.length ? t.forEach((o, L) => {
50
+ var R, A, O;
50
51
  const i = h({
51
- value: v.value,
52
- field: v.field,
53
- parents: (O = f.parents) == null ? void 0 : O.slice(L + 1, (A = f == null ? void 0 : f.parents) == null ? void 0 : A.length)
54
- }), t = (D = r.get(i)) != null ? D : {
55
- value: v.value,
56
- field: v.field
52
+ value: o.value,
53
+ field: o.field,
54
+ parents: t.slice(L + 1, t.length)
55
+ }), c = (R = d.get(i)) != null ? R : {
56
+ value: o.value,
57
+ field: o.field
57
58
  };
58
- v.expanded && (t.expanded = v.expanded), r.has(i) || r.set(i, t), t != null && t.groups || (t.groups = /* @__PURE__ */ new Set()), t.groups.add(n), n = t, L === ((S = (R = f.parents) == null ? void 0 : R.length) != null ? S : -1) - 1 && ((T = (X = r.get("root")) == null ? void 0 : X.groups) == null || T.add(t));
59
- }) : (G = (g = r.get("root")) == null ? void 0 : g.groups) == null || G.add(n);
59
+ o.expanded && (c.expanded = o.expanded), d.has(i) || d.set(i, c), c.groups || (c.groups = /* @__PURE__ */ new Set()), c.groups.add(a), a = c, L === t.length - 1 && ((O = (A = d.get("root")) == null ? void 0 : A.groups) == null || O.add(c));
60
+ }) : (G = (g = d.get("root")) == null ? void 0 : g.groups) == null || G.add(a);
60
61
  });
61
62
  })(e);
62
- const d = (s) => {
63
- s.groups && (s.groups = Array.from(s.groups), s.groups.forEach(d));
63
+ const r = (f) => {
64
+ f.groups && (f.groups = Array.from(f.groups), f.groups.forEach(r));
64
65
  };
65
- return d(r.get("root")), ((l = r.get("root")) == null ? void 0 : l.groups) || [];
66
- }, N = (e, r) => {
67
- var u;
68
- return !!((u = r.parents) != null && u.every((d, l) => {
69
- var s;
70
- return (s = e.parents) == null ? void 0 : s.find((f) => d.value === f.value && d.field === f.field);
66
+ return r(d.get("root")), ((u = d.get("root")) == null ? void 0 : u.groups) || [];
67
+ }, S = (e, d) => {
68
+ var l;
69
+ return !!((l = d.parents) != null && l.every((r, u) => {
70
+ var f;
71
+ return (f = e.parents) == null ? void 0 : f.find((s) => r.value === s.value && r.field === s.field);
71
72
  }));
72
- }, x = (e, r) => e.find((d) => d.value === r.value && d.field === r.field && N(d, r)), j = (e, r, u) => {
73
- var s, f, c;
74
- const d = E(e != null ? e : []), l = x(d, r.group);
75
- switch (r.type) {
73
+ }, x = (e, d) => e.find((r) => r.value === d.value && r.field === d.field && S(r, d)), N = (e, d, l) => {
74
+ var f, s, v;
75
+ const r = E(e != null ? e : []), u = x(r, d.group);
76
+ switch (d.type) {
76
77
  case "GROUP-EXPAND_TOGGLE":
77
- return o(
78
- l ? d == null ? void 0 : d.map(
79
- (a) => {
80
- var n, p;
81
- return a === l ? {
82
- ...a,
83
- expanded: !((p = (n = a.expanded) != null ? n : u == null ? void 0 : u.defaultExpand) == null || p)
84
- } : a;
78
+ return p(
79
+ u ? r.map(
80
+ (n) => {
81
+ var a, t;
82
+ return n === u ? {
83
+ ...n,
84
+ expanded: !((t = (a = n.expanded) != null ? a : l == null ? void 0 : l.defaultExpand) == null || t)
85
+ } : n;
85
86
  }
86
- ) : [...d, { ...r.group, expanded: !((s = u == null ? void 0 : u.defaultExpand) == null || s) }]
87
+ ) : [...r, { ...d.group, expanded: !((f = l == null ? void 0 : l.defaultExpand) == null || f) }]
87
88
  );
88
89
  case "GROUP-EXPAND_EXPAND": {
89
- let a;
90
- return l ? a = d == null ? void 0 : d.map((n) => n === l ? { ...n, expanded: !0 } : n) : (f = u == null ? void 0 : u.defaultExpand) == null || f ? a = d : a = [...d, { ...r.group, expanded: !0 }], o(a);
90
+ let n;
91
+ return u ? n = r.map((a) => a === u ? { ...a, expanded: !0 } : a) : (s = l == null ? void 0 : l.defaultExpand) == null || s ? n = r : n = [...r, { ...d.group, expanded: !0 }], p(n);
91
92
  }
92
93
  case "GROUP-EXPAND_COLLAPSE": {
93
- let a;
94
- return l ? a = d == null ? void 0 : d.map((n) => n === l ? { ...n, expanded: !1 } : n) : (c = u == null ? void 0 : u.defaultExpand) == null || c ? a = [...d, { ...r.group, expanded: !1 }] : a = d, o(a);
94
+ let n;
95
+ return u ? n = r.map((a) => a === u ? { ...a, expanded: !1 } : a) : (v = l == null ? void 0 : l.defaultExpand) == null || v ? n = [...r, { ...d.group, expanded: !1 }] : n = r, p(n);
95
96
  }
96
97
  default:
97
98
  return e;
98
99
  }
99
100
  };
100
101
  export {
101
- w as GROUP_EXPAND_ACTION,
102
- F as findGroupExpand,
103
- o as flatToTree,
104
- U as getGroupExpandableOptions,
105
- j as groupExpandReducer,
106
- $ as isExpanded
102
+ D as GROUP_EXPAND_ACTION,
103
+ T as findGroupExpand,
104
+ p as flatToTree,
105
+ X as getGroupExpandableOptions,
106
+ N as groupExpandReducer,
107
+ w as isExpanded
107
108
  };
@@ -6,4 +6,4 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@progress/kendo-react-common"),t=require("./utils.js"),A=require("./NavigatableSettings.js"),S=e=>{const{navigatable:s,contextStateRef:n,navigationStateRef:a,idPrefix:r}=e;s&&(n.current={activeId:"",level:0},a.current={activeElementIsFocused:!1,prevNavigationIndexes:void 0,idPrefix:r||l.guid(),navigationMatrix:[],lastHeaderIndex:-1})},M=e=>{const{scope:s,contextStateRef:n,navigationStateRef:a}=e;if(n.current&&a.current&&s){h(e);const r=t.getFirstDataCell(a.current.navigationMatrix);if(r){const d=t.tableKeyboardNavigationTools.getActiveNavDataElement(s,r);d&&(n.current.activeId=r,d.setAttribute("tabIndex","0"))}}},L=e=>{const{contextStateRef:s,navigationStateRef:n,document:a}=e;if(s.current&&n.current&&a){const r=l.getActiveElement(a),d=t.tableKeyboardNavigationTools.getNavigatableId(r);d&&d===s.current.activeId&&(n.current.activeElementIsFocused=!0)}},B=(e,s,n)=>{if(s){e();return}const a=document.activeElement;a&&a!==document.body&&n&&!n.contains(a)||e()},H=e=>{const{scope:s,contextStateRef:n,navigationStateRef:a,focusFirst:r,newEditableRow:d,singleEditRow:c,lastActiveElement:y,navigatable:o,userInitiatedEdit:b}=e;if(r&&(S(e),M(e),t.focusFirstDataElement(e)),(!o||o&&o.mode===A.NavigatableMode.inline)&&(d&&!c||d&&c&&!y)?B(()=>t.focusFirstEditor(d),b,s):o&&o.mode===A.NavigatableMode.inline&&d&&c&&y&&B(()=>y.focus(),b,s),h(e),n.current&&a.current&&s){if(!t.tableKeyboardNavigationTools.getActiveNavDataElement(s,n.current.activeId)){const I=s.className.indexOf("k-treelist")===-1?t.getFirstDataCell(a.current.navigationMatrix):a.current.navigationMatrix[0][0],C=t.tableKeyboardNavigationTools.getActiveNavDataElement(s,I);I&&C&&(n.current.activeId=I,C.setAttribute("tabIndex","0"),a.current.activeElementIsFocused&&C.focus())}a.current.activeElementIsFocused=!1}},O=(e,s)=>{const{contextStateRef:n}=s;if(e.isDefaultPrevented()||!n.current)return;const a=e.target,r=t.tableKeyboardNavigationTools.getNavigatableId(a);if(r&&r!==n.current.activeId){const d=t.tableKeyboardNavigationTools.getClosestScope(a);if(!d)return;const c=t.tableKeyboardNavigationTools.getActiveNavDataElement(d,n.current.activeId);c&&!e.target.classList.contains("k-table-td")&&!e.target.classList.contains("k-detail-cell")&&c.setAttribute("tabIndex","-1"),a.setAttribute("tabIndex","0"),n.current.activeId=r}else if(a.closest(".k-filtercell")&&s.navigatable){const d=a.closest(".k-table-td");l.enableNavigatableContainer(d)}},q=async(e,s)=>{var E,u,p,R,w;const{contextStateRef:n,navigationStateRef:a,onNavigationAction:r,columns:d}=s;if(e.isDefaultPrevented()||!n.current||!a.current)return;let c;if(e.keyCode===l.Keys.esc&&!s.navigatable.mode){c=t.tableKeyboardNavigationTools.getClosestNavigatableElement(e.target),t.tableKeyboardNavigationTools.focusElement({elementForFocus:c,event:e,contextStateRef:n}),e.target.closest(".k-filtercell")&&c&&s.navigatable&&l.disableNavigatableContainer(c);return}const y=e.target,o=y.className.indexOf("k-checkbox")===-1?y:t.tableKeyboardNavigationTools.getClosestNavigatableElement(y),b=t.tableKeyboardNavigationTools.getNavigatableId(o)||((E=t.tableKeyboardNavigationTools.getParentCell(o))==null?void 0:E.getAttribute("data-keyboardnavid")),x=b==null?void 0:b.endsWith("column"),I=b==null?void 0:b.endsWith("column_filter"),C=t.tableKeyboardNavigationTools.getNavigatableLevel(o),v=t.tableKeyboardNavigationTools.getClosestScope(o),m=a.current.navigationMatrix,K=e.metaKey||e.ctrlKey,f=t.getCurrentIdIndexes(a,m,b),D=o.closest(".k-table-td"),k=(u=o.closest(".k-table-td"))==null?void 0:u.classList.contains("k-grid-edit-cell");if(s.navigatable&&s.navigatable.mode===A.NavigatableMode.inline){if(e.keyCode===l.Keys.enter){const i=o.classList.contains("k-grid-remove-command"),g=o.classList.contains("k-grid-cancel-command"),N=t.tableKeyboardNavigationTools.getRowAriaRowIndex(o);if(i){setTimeout(()=>{const T=t.tableKeyboardNavigationTools.getRemoveButtonByAriaRowIndex(N.current)||t.tableKeyboardNavigationTools.getRemoveButtonByAriaRowIndex(N.prev);T&&T.focus()});return}else if(g&&o.parentElement){const T=(p=t.tableKeyboardNavigationTools.getClosestNavigatableElement(o))==null?void 0:p.getAttribute("data-keyboardnavid");setTimeout(()=>{T&&t.tableKeyboardNavigationTools.getTableCellByKeyboardNavId(T).focus()});return}}if(e.keyCode===l.Keys.esc){const i=t.tableKeyboardNavigationTools.getClosestCancelButton(o);i&&i.click();const g=await t.tableKeyboardNavigationTools.getClosestEditButton(o);g&&g.focus();return}}else if(s.navigatable&&s.navigatable.mode===A.NavigatableMode.incell){if(e.keyCode===l.Keys.esc){o.focus(),o.blur();const i=((R=y==null?void 0:y.parentElement)==null?void 0:R.closest(".k-grid-edit-row"))||null,g=t.tableKeyboardNavigationTools.getClosestCellNavId(o),N=await t.tableKeyboardNavigationTools.waitForElementToBeVisible(`[data-keyboardnavid='${g}']:not(.k-grid-edit-cell)`,i);N&&N.focus()}else if(e.keyCode===l.Keys.enter){let i;if(f){const[g,N]=f;i=t.findNextIdByRowIndex(g,N,b,m,!1)}if(!k)(w=t.tableKeyboardNavigationTools.getParentCell(o))==null||w.click();else if(k&&i){const g=i&&i[0]&&t.tableKeyboardNavigationTools.getTableCellByKeyboardNavId(i[0]);g&&g.click()}}else if(e.keyCode===l.Keys.left||e.keyCode===l.Keys.right||e.keyCode===l.Keys.up||e.keyCode===l.Keys.down){if(k)return}else if(e.key==="Tab"&&k){if(e.shiftKey){const i=f&&d&&t.tableKeyboardNavigationTools.getPrevEditableCell(f,d,b,m);if(i&&i.prevCell&&i.prevCell.click(),i&&i.elementToFocus!=="gridcell"){o.blur();const g=t.tableKeyboardNavigationTools.getClosestCellNavId(o);setTimeout(()=>{g&&t.tableKeyboardNavigationTools.getTableCellByKeyboardNavId(g).focus()})}e.preventDefault()}else{const i=f&&d&&t.tableKeyboardNavigationTools.getNextEditableCell(f,d,b,m);if(i&&i.nextCell&&i.elementToFocus==="gridcell"&&i.nextCell.click(),i&&i.elementToFocus!=="gridcell"){o.blur();const g=t.tableKeyboardNavigationTools.getClosestCellNavId(o);g&&t.tableKeyboardNavigationTools.getTableCellByKeyboardNavId(g).focus();return}e.preventDefault()}e.preventDefault()}}if(o.closest(".k-filtercell")&&D&&s.navigatable){l.keepFocusInContainer(e,D,l.TABBABLE_ELEMENTS);return}if(C!==void 0&&v){if(e.keyCode===l.Keys.enter){const i=t.tableKeyboardNavigationTools.getNavigatableElement(o,{level:C+1});if(i){t.tableKeyboardNavigationTools.focusElement({elementForFocus:i,event:e,contextStateRef:n,prevElement:o});return}o.querySelector(".k-filtercell")&&s.navigatable&&l.enableNavigatableContainer(o),c=t.tableKeyboardNavigationTools.getFocusableElements(o)[0],t.tableKeyboardNavigationTools.focusElement({elementForFocus:c,event:e,contextStateRef:n,prevElement:o})}if(e.keyCode===l.Keys.home&&f)if(K)t.focusFirstDataElement({scope:v,navigationStateRef:a,contextStateRef:n},e);else{const i=t.getFirstRowDataCell(a.current.navigationMatrix,f[0]);c=t.tableKeyboardNavigationTools.getActiveNavDataElement(v,i),t.tableKeyboardNavigationTools.focusElement({elementForFocus:c,event:e,contextStateRef:n})}if(e.keyCode===l.Keys.end&&f)if(K){const i=t.getLastDataCell(a.current.navigationMatrix);c=t.tableKeyboardNavigationTools.getActiveNavDataElement(v,i),t.tableKeyboardNavigationTools.focusElement({elementForFocus:c,event:e,contextStateRef:n})}else{const i=t.getLastRowDataCell(a.current.navigationMatrix,f[0]);c=t.tableKeyboardNavigationTools.getActiveNavDataElement(v,i),t.tableKeyboardNavigationTools.focusElement({elementForFocus:c,event:e,contextStateRef:n})}if(e.keyCode===l.Keys.up||e.keyCode===l.Keys.down||e.keyCode===l.Keys.left||e.keyCode===l.Keys.right){const i=e.keyCode===l.Keys.up||e.keyCode===l.Keys.left,g=e.keyCode===l.Keys.up||e.keyCode===l.Keys.down;if(f){const[N,T]=f,[F,P]=g?t.findNextIdByRowIndex(N,T,b,m,i):t.findNextIdByCellIndex(N,T,b,m,i);F&&(c=t.tableKeyboardNavigationTools.getActiveNavDataElement(v,F),t.tableKeyboardNavigationTools.focusElement({elementForFocus:c,event:e,contextStateRef:n,prevElement:o}),a.current.prevNavigationIndexes=P)}}if(K&&e.keyCode===l.Keys.left&&x){r&&r({focusElement:o,event:e,action:"reorderToLeft"}),e.preventDefault();return}if(K&&e.keyCode===l.Keys.right&&x){r&&r({focusElement:o,event:e,action:"reorderToRight"}),e.preventDefault();return}if(e.keyCode===l.Keys.pageUp){r&&r({focusElement:c,event:e,action:"moveToNextPage"}),e.preventDefault();return}if(e.keyCode===l.Keys.pageDown){r&&r({focusElement:c,event:e,action:"moveToPrevPage"}),e.preventDefault();return}if(!x&&!I&&!k&&(e.keyCode===l.Keys.space||e.keyCode===l.Keys.enter||e.shiftKey&&(e.keyCode===l.Keys.up||e.keyCode===l.Keys.down||e.keyCode===l.Keys.left||e.keyCode===l.Keys.right))){r&&r({focusElement:c,event:e,action:"select"});return}r&&r({focusElement:c,event:e})}},h=e=>{const{navigationStateRef:s,scope:n}=e;if(!s.current||!n)return;const a=[],r=t.getHeaderElement(n),d=t.getBodyElement(n),c=t.getTopPinnedElement(n),y=t.getBottomPinnedElement(n),o=t.getNoRecordsElement(n)||{children:[]};if(!r||!d)return;const b=Array.from(r.children),x=c?Array.from(c.children):[],I=Array.from(d.children),C=y?Array.from(y.children):[];[...b,...x,...I,...C,o].forEach((v,m)=>{Array.from(v.children).forEach(K=>{const f=t.getNavigatableId(K);if(!f)return;const D=K.rowSpan||1,k=K.colSpan||1;let E;for(let u=m,p=m+D;u<p;u++){if(a[u]||(a[u]=[]),E===void 0){const R=a[u].findIndex(w=>!w);E=R>-1?R:a[u].length}a[u][E]=f||""}for(let u=E+1,p=E+k;u<p;u++)a[m][u]=f||""})}),s.current.navigationMatrix=a.filter(v=>!!v),s.current.lastHeaderIndex=b.length-1},G={onConstructor:S,onComponentDidMount:M,onGetSnapshotBeforeUpdate:L,onComponentDidUpdate:H,onFocus:O,onKeyDown:q,generateMatrix:h,focusFirstDataElement:t.focusFirstDataElement};exports.tableKeyboardNavigation=G;
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@progress/kendo-react-common"),t=require("./utils.js"),A=require("./NavigatableSettings.js"),S=e=>{const{navigatable:r,contextStateRef:n,navigationStateRef:a,idPrefix:s}=e;r&&(n.current={activeId:"",level:0},a.current={activeElementIsFocused:!1,prevNavigationIndexes:void 0,idPrefix:s||l.guid(),navigationMatrix:[],lastHeaderIndex:-1})},M=e=>{const{scope:r,contextStateRef:n,navigationStateRef:a}=e;if(n.current&&a.current&&r){h(e);const s=t.getFirstDataCell(a.current.navigationMatrix);if(s){const d=t.tableKeyboardNavigationTools.getActiveNavDataElement(r,s);d&&(n.current.activeId=s,d.setAttribute("tabIndex","0"))}}},L=e=>{const{contextStateRef:r,navigationStateRef:n,document:a}=e;if(r.current&&n.current&&a){const s=l.getActiveElement(a),d=t.tableKeyboardNavigationTools.getNavigatableId(s);d&&d===r.current.activeId&&(n.current.activeElementIsFocused=!0)}},B=(e,r,n)=>{if(r){e();return}const a=document.activeElement;a&&a!==document.body&&n&&!n.contains(a)||e()},H=e=>{const{scope:r,contextStateRef:n,navigationStateRef:a,focusFirst:s,newEditableRow:d,singleEditRow:c,lastActiveElement:y,navigatable:o,userInitiatedEdit:b}=e;if(s&&(S(e),M(e),t.focusFirstDataElement(e)),(!o||o&&o.mode===A.NavigatableMode.inline)&&(d&&!c||d&&c&&!y)?B(()=>t.focusFirstEditor(d),b,r):o&&o.mode===A.NavigatableMode.inline&&d&&c&&y&&B(()=>y.focus(),b,r),h(e),n.current&&a.current&&r){if(!t.tableKeyboardNavigationTools.getActiveNavDataElement(r,n.current.activeId)){const I=r.className.indexOf("k-treelist")===-1?t.getFirstDataCell(a.current.navigationMatrix):a.current.navigationMatrix[0][0],C=t.tableKeyboardNavigationTools.getActiveNavDataElement(r,I);I&&C&&(n.current.activeId=I,C.setAttribute("tabIndex","0"),a.current.activeElementIsFocused&&C.focus())}a.current.activeElementIsFocused=!1}},O=(e,r)=>{const{contextStateRef:n}=r;if(e.isDefaultPrevented()||!n.current)return;const a=e.target,s=t.tableKeyboardNavigationTools.getNavigatableId(a);if(s&&s!==n.current.activeId){const d=t.tableKeyboardNavigationTools.getClosestScope(a);if(!d)return;const c=t.tableKeyboardNavigationTools.getActiveNavDataElement(d,n.current.activeId);c&&!e.target.classList.contains("k-table-td")&&!e.target.classList.contains("k-detail-cell")&&c.setAttribute("tabIndex","-1"),a.setAttribute("tabIndex","0"),n.current.activeId=s}else if(a.closest(".k-filtercell")&&r.navigatable){const d=a.closest(".k-table-td");l.enableNavigatableContainer(d)}},q=async(e,r)=>{var E,u,p,R,w;const{contextStateRef:n,navigationStateRef:a,onNavigationAction:s,columns:d}=r;if(e.isDefaultPrevented()||!n.current||!a.current)return;let c;if(e.keyCode===l.Keys.esc&&!r.navigatable.mode){c=t.tableKeyboardNavigationTools.getClosestNavigatableElement(e.target),t.tableKeyboardNavigationTools.focusElement({elementForFocus:c,event:e,contextStateRef:n}),e.target.closest(".k-filtercell")&&c&&r.navigatable&&l.disableNavigatableContainer(c);return}const y=e.target,o=y.className.indexOf("k-checkbox")===-1?y:t.tableKeyboardNavigationTools.getClosestNavigatableElement(y),b=t.tableKeyboardNavigationTools.getNavigatableId(o)||((E=t.tableKeyboardNavigationTools.getParentCell(o))==null?void 0:E.getAttribute("data-keyboardnavid")),x=b==null?void 0:b.endsWith("column"),I=b==null?void 0:b.endsWith("column_filter"),C=t.tableKeyboardNavigationTools.getNavigatableLevel(o),v=t.tableKeyboardNavigationTools.getClosestScope(o),m=a.current.navigationMatrix,K=e.metaKey||e.ctrlKey,f=t.getCurrentIdIndexes(a,m,b),D=o.closest(".k-table-td"),k=(u=o.closest(".k-table-td"))==null?void 0:u.classList.contains("k-grid-edit-cell");if(r.navigatable&&r.navigatable.mode===A.NavigatableMode.inline){if(e.keyCode===l.Keys.enter){const i=o.classList.contains("k-grid-remove-command"),g=o.classList.contains("k-grid-cancel-command"),N=t.tableKeyboardNavigationTools.getRowAriaRowIndex(o);if(i){setTimeout(()=>{const T=t.tableKeyboardNavigationTools.getRemoveButtonByAriaRowIndex(N.current)||t.tableKeyboardNavigationTools.getRemoveButtonByAriaRowIndex(N.prev);T&&T.focus()});return}else if(g&&o.parentElement){const T=(p=t.tableKeyboardNavigationTools.getClosestNavigatableElement(o))==null?void 0:p.getAttribute("data-keyboardnavid");setTimeout(()=>{T&&t.tableKeyboardNavigationTools.getTableCellByKeyboardNavId(T).focus()});return}}if(e.keyCode===l.Keys.esc){const i=t.tableKeyboardNavigationTools.getClosestCancelButton(o);i&&i.click();const g=await t.tableKeyboardNavigationTools.getClosestEditButton(o);g&&g.focus();return}}else if(r.navigatable&&r.navigatable.mode===A.NavigatableMode.incell){if(e.keyCode===l.Keys.esc){o.focus(),o.blur();const i=((R=y.parentElement)==null?void 0:R.closest(".k-grid-edit-row"))||null,g=t.tableKeyboardNavigationTools.getClosestCellNavId(o),N=await t.tableKeyboardNavigationTools.waitForElementToBeVisible(`[data-keyboardnavid='${g}']:not(.k-grid-edit-cell)`,i);N&&N.focus()}else if(e.keyCode===l.Keys.enter){let i;if(f){const[g,N]=f;i=t.findNextIdByRowIndex(g,N,b,m,!1)}if(!k)(w=t.tableKeyboardNavigationTools.getParentCell(o))==null||w.click();else if(k&&i){const g=i&&i[0]&&t.tableKeyboardNavigationTools.getTableCellByKeyboardNavId(i[0]);g&&g.click()}}else if(e.keyCode===l.Keys.left||e.keyCode===l.Keys.right||e.keyCode===l.Keys.up||e.keyCode===l.Keys.down){if(k)return}else if(e.key==="Tab"&&k){if(e.shiftKey){const i=f&&d&&t.tableKeyboardNavigationTools.getPrevEditableCell(f,d,b,m);if(i&&i.prevCell&&i.prevCell.click(),i&&i.elementToFocus!=="gridcell"){o.blur();const g=t.tableKeyboardNavigationTools.getClosestCellNavId(o);setTimeout(()=>{g&&t.tableKeyboardNavigationTools.getTableCellByKeyboardNavId(g).focus()})}e.preventDefault()}else{const i=f&&d&&t.tableKeyboardNavigationTools.getNextEditableCell(f,d,b,m);if(i&&i.nextCell&&i.elementToFocus==="gridcell"&&i.nextCell.click(),i&&i.elementToFocus!=="gridcell"){o.blur();const g=t.tableKeyboardNavigationTools.getClosestCellNavId(o);g&&t.tableKeyboardNavigationTools.getTableCellByKeyboardNavId(g).focus();return}e.preventDefault()}e.preventDefault()}}if(o.closest(".k-filtercell")&&D&&r.navigatable){l.keepFocusInContainer(e,D,l.TABBABLE_ELEMENTS);return}if(C!==void 0&&v){if(e.keyCode===l.Keys.enter){const i=t.tableKeyboardNavigationTools.getNavigatableElement(o,{level:C+1});if(i){t.tableKeyboardNavigationTools.focusElement({elementForFocus:i,event:e,contextStateRef:n,prevElement:o});return}o.querySelector(".k-filtercell")&&r.navigatable&&l.enableNavigatableContainer(o),c=t.tableKeyboardNavigationTools.getFocusableElements(o)[0],t.tableKeyboardNavigationTools.focusElement({elementForFocus:c,event:e,contextStateRef:n,prevElement:o})}if(e.keyCode===l.Keys.home&&f)if(K)t.focusFirstDataElement({scope:v,navigationStateRef:a,contextStateRef:n},e);else{const i=t.getFirstRowDataCell(a.current.navigationMatrix,f[0]);c=t.tableKeyboardNavigationTools.getActiveNavDataElement(v,i),t.tableKeyboardNavigationTools.focusElement({elementForFocus:c,event:e,contextStateRef:n})}if(e.keyCode===l.Keys.end&&f)if(K){const i=t.getLastDataCell(a.current.navigationMatrix);c=t.tableKeyboardNavigationTools.getActiveNavDataElement(v,i),t.tableKeyboardNavigationTools.focusElement({elementForFocus:c,event:e,contextStateRef:n})}else{const i=t.getLastRowDataCell(a.current.navigationMatrix,f[0]);c=t.tableKeyboardNavigationTools.getActiveNavDataElement(v,i),t.tableKeyboardNavigationTools.focusElement({elementForFocus:c,event:e,contextStateRef:n})}if(e.keyCode===l.Keys.up||e.keyCode===l.Keys.down||e.keyCode===l.Keys.left||e.keyCode===l.Keys.right){const i=e.keyCode===l.Keys.up||e.keyCode===l.Keys.left,g=e.keyCode===l.Keys.up||e.keyCode===l.Keys.down;if(f){const[N,T]=f,[F,P]=g?t.findNextIdByRowIndex(N,T,b,m,i):t.findNextIdByCellIndex(N,T,b,m,i);F&&(c=t.tableKeyboardNavigationTools.getActiveNavDataElement(v,F),t.tableKeyboardNavigationTools.focusElement({elementForFocus:c,event:e,contextStateRef:n,prevElement:o}),a.current.prevNavigationIndexes=P)}}if(K&&e.keyCode===l.Keys.left&&x){s&&s({focusElement:o,event:e,action:"reorderToLeft"}),e.preventDefault();return}if(K&&e.keyCode===l.Keys.right&&x){s&&s({focusElement:o,event:e,action:"reorderToRight"}),e.preventDefault();return}if(e.keyCode===l.Keys.pageUp){s&&s({focusElement:c,event:e,action:"moveToNextPage"}),e.preventDefault();return}if(e.keyCode===l.Keys.pageDown){s&&s({focusElement:c,event:e,action:"moveToPrevPage"}),e.preventDefault();return}if(!x&&!I&&!k&&(e.keyCode===l.Keys.space||e.keyCode===l.Keys.enter||e.shiftKey&&(e.keyCode===l.Keys.up||e.keyCode===l.Keys.down||e.keyCode===l.Keys.left||e.keyCode===l.Keys.right))){s&&s({focusElement:c,event:e,action:"select"});return}s&&s({focusElement:c,event:e})}},h=e=>{const{navigationStateRef:r,scope:n}=e;if(!r.current||!n)return;const a=[],s=t.getHeaderElement(n),d=t.getBodyElement(n),c=t.getTopPinnedElement(n),y=t.getBottomPinnedElement(n),o=t.getNoRecordsElement(n)||{children:[]};if(!s||!d)return;const b=Array.from(s.children),x=c?Array.from(c.children):[],I=Array.from(d.children),C=y?Array.from(y.children):[];[...b,...x,...I,...C,o].forEach((v,m)=>{Array.from(v.children).forEach(K=>{const f=t.getNavigatableId(K);if(!f)return;const D=K.rowSpan||1,k=K.colSpan||1;let E;for(let u=m,p=m+D;u<p;u++){if(a[u]||(a[u]=[]),E===void 0){const R=a[u].findIndex(w=>!w);E=R>-1?R:a[u].length}a[u][E]=f}for(let u=E+1,p=E+k;u<p;u++)a[m][u]=f})}),r.current.navigationMatrix=a.filter(v=>!!v),r.current.lastHeaderIndex=b.length-1},G={onConstructor:S,onComponentDidMount:M,onGetSnapshotBeforeUpdate:L,onComponentDidUpdate:H,onFocus:O,onKeyDown:q,generateMatrix:h,focusFirstDataElement:t.focusFirstDataElement};exports.tableKeyboardNavigation=G;
@@ -116,7 +116,7 @@ const H = (e) => {
116
116
  } else if (l.navigatable && l.navigatable.mode === B.incell) {
117
117
  if (e.keyCode === c.esc) {
118
118
  n.focus(), n.blur();
119
- const o = ((w = C == null ? void 0 : C.parentElement) == null ? void 0 : w.closest(".k-grid-edit-row")) || null, f = t.getClosestCellNavId(n), v = await t.waitForElementToBeVisible(
119
+ const o = ((w = C.parentElement) == null ? void 0 : w.closest(".k-grid-edit-row")) || null, f = t.getClosestCellNavId(n), v = await t.waitForElementToBeVisible(
120
120
  `[data-keyboardnavid='${f}']:not(.k-grid-edit-cell)`,
121
121
  o
122
122
  );
@@ -255,10 +255,10 @@ const H = (e) => {
255
255
  const w = a[m].findIndex((h) => !h);
256
256
  k = w > -1 ? w : a[m].length;
257
257
  }
258
- a[m][k] = g || "";
258
+ a[m][k] = g;
259
259
  }
260
260
  for (let m = k + 1, D = k + N; m < D; m++)
261
- a[b][m] = g || "";
261
+ a[b][m] = g;
262
262
  });
263
263
  }), l.current.navigationMatrix = a.filter((E) => !!E), l.current.lastHeaderIndex = u.length - 1;
264
264
  }, fe = {
@@ -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-data-tools",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1782140941,version:"15.1.0-develop.1",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-data-tools",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1782316116,version:"15.1.0-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
@@ -7,7 +7,7 @@ export const packageMetadata = Object.freeze({
7
7
  productName: 'KendoReact',
8
8
  productCode: 'KENDOUIREACT',
9
9
  productCodes: ['KENDOUIREACT'],
10
- publishDate: 1782140941,
11
- version: '15.1.0-develop.1',
10
+ publishDate: 1782316116,
11
+ version: '15.1.0-develop.2',
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-data-tools",
3
- "version": "15.1.0-develop.1",
3
+ "version": "15.1.0-develop.2",
4
4
  "description": "Includes React Pager & React Filter component, an intuitive interface to create complex filter descriptions. KendoReact Data Tools package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -28,14 +28,14 @@
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": "15.1.0-develop.1",
32
- "@progress/kendo-react-buttons": "15.1.0-develop.1",
33
- "@progress/kendo-react-common": "15.1.0-develop.1",
34
- "@progress/kendo-react-dateinputs": "15.1.0-develop.1",
35
- "@progress/kendo-react-dropdowns": "15.1.0-develop.1",
36
- "@progress/kendo-react-inputs": "15.1.0-develop.1",
37
- "@progress/kendo-react-intl": "15.1.0-develop.1",
38
- "@progress/kendo-react-popup": "15.1.0-develop.1",
31
+ "@progress/kendo-react-animation": "15.1.0-develop.2",
32
+ "@progress/kendo-react-buttons": "15.1.0-develop.2",
33
+ "@progress/kendo-react-common": "15.1.0-develop.2",
34
+ "@progress/kendo-react-dateinputs": "15.1.0-develop.2",
35
+ "@progress/kendo-react-dropdowns": "15.1.0-develop.2",
36
+ "@progress/kendo-react-inputs": "15.1.0-develop.2",
37
+ "@progress/kendo-react-intl": "15.1.0-develop.2",
38
+ "@progress/kendo-react-popup": "15.1.0-develop.2",
39
39
  "@progress/kendo-svg-icons": "^4.9.0 || ^5.0.0",
40
40
  "react": "^18.0.0 || ^19.0.0",
41
41
  "react-dom": "^18.0.0 || ^19.0.0"
@@ -65,7 +65,7 @@
65
65
  "package": {
66
66
  "productName": "KendoReact",
67
67
  "productCode": "KENDOUIREACT",
68
- "publishDate": 1782140941,
68
+ "publishDate": 1782316116,
69
69
  "licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
70
70
  }
71
71
  },
@@ -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 v=require("@progress/kendo-data-query"),f=require("@progress/kendo-react-common");function u(t,e,n){return n?{...t,[e]:n.length?[...n]:void 0}:t&&t[e]?[...t[e]]:[]}function s(t,e,n){if(t[n]){const r=u(t,n,v.orderBy(u(t,n),e)),o=u(r,n).map(c=>s(c,e,n));return{...r,[n]:o}}return t}function S(t,e,n){let r=v.orderBy(t,e);return r=r.map(o=>s(o,e,n)),r}function y(t,e,n){let r=u(t,n);if(r&&r.length){r=r.map(l=>y(l,e,n));const c={filters:[{filters:e,logic:"and"},{operator:l=>!!(l[n]||[]).length}],logic:"or"},a=v.filterBy(r,c);return u(t,n,a)}return t}function D(t,e,n){let r={[n]:[...t]};return r=y(r,e,n),r[n]||[]}function T(t,e,n){const r=[],o=[];for(let c=t.length-1;c>=0;c--){const a=t[c];r.push({root:a,data:e(a),level:[c],levelCount:t.length})}for(;r.length>0;){const c=r.pop();if(o.push({dataItem:c.root,level:[...c.level],...n(c.root),levelCount:c.levelCount}),c.data.length)for(let a=c.data.length-1;a>=0;a--){const l=c.data[a];r.push({root:l,data:e(l),level:[...c.level,a],levelCount:c.data.length})}}return o}const B=(t,e,n)=>{const r=h=>!!f.getNestedValue(e,h),o=h=>!!f.getNestedValue(n,h),c=h=>{const i=[];return r(h)&&o(h)&&i.push(...f.getNestedValue(n,h)),i},a=(h,i,g)=>{i.push({...h,level:g}),c(h).forEach(C=>a(C,i,g+1))},l=[];return t.forEach(h=>a(h,l,0)),l},P=(t,e,n,r)=>{let o={},c=[],a;return t.forEach(l=>o[e(l)]={...l}),t.forEach(l=>{a=o[n(l)],a?(a[r]=a[r]||[],a[r].push(o[e(l)])):c.push(o[e(l)])}),c},x=(t,e,n)=>f.extendDataItem(t,e,n),k=(t,e,n)=>[...f.mapTree([{[e]:[...t]}],e,o=>w(o,n,e))[0][e]],w=(t,e,n)=>{const r=t[n]||[],o=r.findIndex(e);if(o!==-1){const c=[...r];return c.splice(o,1),{...t,[n]:c}}return t},E=(t,e,n,r)=>f.mapTree(t,e,o=>n(o)?{...o,[e]:r(o[e]||[])}:o),p=(t,e,n)=>f.getItemPath(t,e,n),N=(t,e,n,r)=>{const o=[...t],c=p(o,e,r),a=c.pop(),l=c.pop(),h=e[e.length-1];if(n){const g=p(o,n,r).pop();(l?l[r]:o).splice(h,1),g[r]=g[r]||[],g[r].push(a)}else(l?l[r]:o).splice(h,1),o.push(a);return o},V=(t,e)=>({...t,filters:t.filters.map(n=>({...n,value:e}))}),q=t=>t!=null&&t.filters.length&&t.filters[0].value||"",d=(t,e)=>{if(e&&!t)return e;if(t&&!e)return t;if(t&&e)return{logic:"and",filters:[t,e]}};exports.combineFilters=d;exports.createDataTree=P;exports.extendDataItem=x;exports.filterBy=D;exports.flatData=T;exports.getItemPath=p;exports.getSearchFromString=V;exports.getStringFromSearch=q;exports.modifySubItems=E;exports.moveTreeItem=N;exports.orderBy=S;exports.removeItems=k;exports.treeToFlat=B;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("@progress/kendo-data-query"),f=require("@progress/kendo-react-common");function u(t,e,n){return n?{...t,[e]:n.length?[...n]:void 0}:t&&t[e]?[...t[e]]:[]}function s(t,e,n){if(t[n]){const r=u(t,n,v.orderBy(u(t,n),e)),o=u(r,n).map(c=>s(c,e,n));return{...r,[n]:o}}return t}function S(t,e,n){let r=v.orderBy(t,e);return r=r.map(o=>s(o,e,n)),r}function y(t,e,n){let r=u(t,n);if(r&&r.length){r=r.map(l=>y(l,e,n));const c={filters:[{filters:e,logic:"and"},{operator:l=>!!(l[n]||[]).length}],logic:"or"},a=v.filterBy(r,c);return u(t,n,a)}return t}function D(t,e,n){let r={[n]:[...t]};return r=y(r,e,n),r[n]||[]}function T(t,e,n){const r=[],o=[];for(let c=t.length-1;c>=0;c--){const a=t[c];r.push({root:a,data:e(a),level:[c],levelCount:t.length})}for(;r.length>0;){const c=r.pop();if(o.push({dataItem:c.root,level:[...c.level],...n(c.root),levelCount:c.levelCount}),c.data.length)for(let a=c.data.length-1;a>=0;a--){const l=c.data[a];r.push({root:l,data:e(l),level:[...c.level,a],levelCount:c.data.length})}}return o}const B=(t,e,n)=>{const r=h=>!!f.getNestedValue(e,h),o=h=>!!f.getNestedValue(n,h),c=h=>{const i=[];return r(h)&&o(h)&&i.push(...f.getNestedValue(n,h)),i},a=(h,i,g)=>{i.push({...h,level:g}),c(h).forEach(C=>a(C,i,g+1))},l=[];return t.forEach(h=>a(h,l,0)),l},P=(t,e,n,r)=>{let o={},c=[],a;return t.forEach(l=>o[e(l)]={...l}),t.forEach(l=>{a=o[n(l)],a?(a[r]=a[r]||[],a[r].push(o[e(l)])):c.push(o[e(l)])}),c},x=(t,e,n)=>f.extendDataItem(t,e,n),k=(t,e,n)=>[...f.mapTree([{[e]:[...t]}],e,o=>w(o,n,e))[0][e]],w=(t,e,n)=>{const r=t[n]||[],o=r.findIndex(e);if(o!==-1){const c=[...r];return c.splice(o,1),{...t,[n]:c}}return t},E=(t,e,n,r)=>f.mapTree(t,e,o=>n(o)?{...o,[e]:r(o[e]||[])}:o),p=(t,e,n)=>f.getItemPath(t,e,n),N=(t,e,n,r)=>{const o=[...t],c=p(o,e,r),a=c.pop(),l=c.pop(),h=e[e.length-1];if(n){const g=p(o,n,r).pop();(l?l[r]:o).splice(h,1),g[r]=g[r]||[],g[r].push(a)}else(l?l[r]:o).splice(h,1),o.push(a);return o},V=(t,e)=>({...t,filters:t.filters.map(n=>({...n,value:e}))}),q=t=>{var e;return(e=t==null?void 0:t.filters)!=null&&e.length&&t.filters[0].value||""},d=(t,e)=>{if(e&&!t)return e;if(t&&!e)return t;if(t&&e)return{logic:"and",filters:[t,e]}};exports.combineFilters=d;exports.createDataTree=P;exports.extendDataItem=x;exports.filterBy=D;exports.flatData=T;exports.getItemPath=p;exports.getSearchFromString=V;exports.getStringFromSearch=q;exports.modifySubItems=E;exports.moveTreeItem=N;exports.orderBy=S;exports.removeItems=k;exports.treeToFlat=B;
@@ -110,7 +110,10 @@ const N = (t, n, r) => {
110
110
  }, G = (t, n) => ({
111
111
  ...t,
112
112
  filters: t.filters.map((r) => ({ ...r, value: n }))
113
- }), H = (t) => t != null && t.filters.length && t.filters[0].value || "", J = (t, n) => {
113
+ }), H = (t) => {
114
+ var n;
115
+ return (n = t == null ? void 0 : t.filters) != null && n.length && t.filters[0].value || "";
116
+ }, J = (t, n) => {
114
117
  if (n && !t)
115
118
  return n;
116
119
  if (t && !n)