@progress/kendo-react-grid 11.1.0 → 11.1.1-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"});const p=require("../utils/index.js"),G=1,w=20;class F{constructor(u){this.columns=[],this.columnsState=[],this.resizable=!1,this.isRtl=!1,this.setIsRtl=c=>{this.isRtl=c},this.initWidths=()=>{var r;const c=((r=this.colGroupMain)==null?void 0:r.children)||[],l=p.getFlatColumnsState(this.columnsState),h=this.columns.filter(s=>{var o;return!((o=s.children)!=null&&o.length)});for(let s=0;s<c.length;s++){const o=c[s];let t="";const i=l.find(n=>n.id===h[s].id);i&&(t=i.width||""),o.width=t,this.colGroupHeader&&(this.colGroupHeader.children[s].width=t),this.colGroupFooter&&(this.colGroupFooter.children[s].width=t)}},this.dragHandler=(c,l,h,r)=>{const s=c.originalEvent;r||(s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation());const o=h.closest("th");if(!o||!o)return;const t=o.clientWidth;let i=t;if(this.isRtl?i+=h.getBoundingClientRect().right-h.offsetWidth/2-c.clientX:i+=c.clientX-h.getBoundingClientRect().left-h.offsetWidth/2,!r&&Math.abs(i-t)<1)return;this.fixateInitialWidths(o.parentElement.clientWidth),this.setWidths(l,Math.floor(i)/t);const n=this.columns.filter(e=>!e.children.length).findIndex(e=>e.id===l.id);this.onResize(n,t,i,s,r,this.columnsState,l.id)},this.dblClickHandler=(c,l)=>{const h=this.columns.filter(d=>l.indexOf(d.id)>-1),r=p.getFlatColumnsState(this.columnsState);if(!this.colGroupMain||!h.length)return;const s={},o=h;for(;o.length>0;){const d=o.pop();if(!d)break;d.children.length?o.push(...d.children):s[d.id]=d}const t=this.columns.filter(d=>!d.children.length),i=[];t.forEach((d,f)=>{s[d.id]&&i.push(f)});const n=[this.colGroupMain.parentElement],e=[this.colGroupMain];this.colGroupHeader&&(n.push(this.colGroupHeader.parentElement),e.push(this.colGroupHeader)),this.colGroupFooter&&(n.push(this.colGroupFooter.parentElement),e.push(this.colGroupFooter)),n.forEach(d=>d.classList.add("k-autofitting"));const a=[];e.forEach(d=>{i.forEach(f=>{d.children[f]&&(d.children[f].width="",a[f]=Math.max(a[f]||0,d.children[f].offsetWidth+G))})}),e.forEach(d=>{i.forEach(f=>{if(d.children[f]){d.children[f].width=a[f]+"px";const g=r.find(m=>m.id===t[f].id);g&&(g.width=a[f])}})}),n.forEach(d=>d.classList.remove("k-autofitting")),this.onResize(i[0],0,0,c,!0,this.columnsState,l[0])},this.updateColElements=c=>{const l=this.columns.filter(r=>!r.hidden&&!r.children.length);let h=1e-10;for(let r=0;r<c.length;r++){const s=c[r],o=l.findIndex(a=>a.id===s.id),t=parseFloat((s.width||0).toString()),i=Math.floor(t);h+=t-i;const n=i+Math.floor(h);h-=Math.floor(h);const e=l.find(a=>a.id===s.id);if(!e)return;if(this.colGroupMain&&this.colGroupMain.children[o]){const a=parseInt(this.colGroupMain.children[o].width,10);this.colGroupMain.children[o].width=n+"px",this.updateNextLockedCol(this.colGroupMain.parentElement,e,a-n)}if(this.colGroupHeader&&this.colGroupHeader.children[o]){const a=parseInt(this.colGroupHeader.children[o].width,10);this.colGroupHeader.children[o].width=n+"px",this.updateNextLockedCol(this.colGroupHeader.parentElement,e,a-n)}if(this.colGroupFooter&&this.colGroupFooter.children[o]){const a=parseInt(this.colGroupFooter.children[o].width,10);this.colGroupFooter.children[o].width=n+"px",this.updateNextLockedCol(this.colGroupFooter.parentElement,e,a-n)}}},this.onResize=u}fixateInitialWidths(u){var o;let c=0;const l=((o=this.colGroupMain)==null?void 0:o.children)||[];for(let t=0;t<l.length;t++)l[t].width?u-=parseFloat(l[t].width):c++;if(c===0)return;const h=Math.floor(u/c),r=p.getFlatColumnsState(this.columnsState),s=this.columns.filter(t=>!t.children.length);for(let t=0;t<l.length;t++){const i=l[t];if(!i.width){i.width=h;const n=r.find(e=>e.id===s[t].id);n&&(n.width=h.toString()),this.colGroupHeader&&(this.colGroupHeader.children[t].width=h),this.colGroupFooter&&(this.colGroupFooter.children[t].width=h)}}}setWidths(u,c){const l=p.getFlatColumnsState(this.columnsState),h=this.columns.findIndex(t=>t.id===u.id),r=[];let s=u.children.filter(t=>!t.hidden).length;for(let t=h+1;t<this.columns.length&&!(s<=0);t++){const i=this.columns[t];i.children.length?s+=i.children.filter(n=>!n.hidden).length:r.push(i),s--}r.length===0&&r.push(u);const o=[];r.forEach(t=>{const i=l.find(n=>n.id===t.id);if(i){let n=i.width?parseFloat(i.width.toString())*c:0;const e=t.minResizableWidth===void 0?10:t.minResizableWidth;n<e&&(n=e),i.width=n,o.push(i)}}),this.updateColElements(o)}updateNextLockedCol(u,c,l){const h=c.index,r=this.colGroupMain.parentElement.closest(".k-grid"),s=r==null?void 0:r.clientWidth,o=this.columns.filter(t=>t.locked).map(t=>parseInt(t.width+"",10)).reduce((t,i)=>t+i,0);!c.locked||s<=o+w||this.columns.forEach(t=>{if(t!=null&&t.locked&&l){const i=u==null?void 0:u.querySelectorAll('[aria-colindex="'+t.ariaColumnIndex+'"]');i==null||i.forEach(n=>{const e=n.style;this.isRtl?(t.index>h&&e&&e.right&&(e.right=parseInt(e.right,10)-l+"px"),t.index<h&&e&&e.left&&(e.left=parseInt(e.left,10)-l+"px")):(t.index>h&&e&&e.left&&(e.left=parseInt(e.left,10)-l+"px"),t.index<h&&e&&e.right&&(e.right=parseInt(e.right,10)-l+"px"))})}})}}exports.ColumnResize=F;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../utils/index.js"),G=1,w=20;class x{constructor(u){this.columns=[],this.columnsState=[],this.resizable=!1,this.isRtl=!1,this.setIsRtl=c=>{this.isRtl=c},this.initWidths=()=>{var h;const c=((h=this.colGroupMain)==null?void 0:h.children)||[],l=p.getFlatColumnsState(this.columnsState),r=this.columns.filter(n=>{var o;return!((o=n.children)!=null&&o.length)});for(let n=0;n<c.length;n++){const o=c[n];let t="";const i=l.find(s=>s.id===r[n].id);i&&(t=i.width||""),o.width=t,this.colGroupHeader&&(this.colGroupHeader.children[n].width=t),this.colGroupFooter&&(this.colGroupFooter.children[n].width=t)}},this.dragHandler=(c,l,r,h)=>{const n=c.originalEvent;h||(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation());const o=r.closest("th");if(!o||!o)return;const t=o.clientWidth;let i=t;if(this.isRtl?i+=r.getBoundingClientRect().right-r.offsetWidth/2-c.clientX:i+=c.clientX-r.getBoundingClientRect().left-r.offsetWidth/2,!h&&Math.abs(i-t)<1)return;this.fixateInitialWidths(o.parentElement.clientWidth),this.setWidths(l,Math.floor(i)/t);const s=this.columns.filter(e=>!e.children.length).findIndex(e=>e.id===l.id);this.onResize(s,t,i,n,h,this.columnsState,l.id)},this.dblClickHandler=(c,l)=>{const r=this.columns.filter(d=>l.indexOf(d.id)>-1),h=p.getFlatColumnsState(this.columnsState);if(!this.colGroupMain||!r.length)return;const n={},o=r;for(;o.length>0;){const d=o.pop();if(!d)break;d.children.length?o.push(...d.children):n[d.id]=d}const t=this.columns.filter(d=>!d.children.length),i=[];t.forEach((d,f)=>{n[d.id]&&i.push(f)});const s=[this.colGroupMain.parentElement],e=[this.colGroupMain];this.colGroupHeader&&(s.push(this.colGroupHeader.parentElement),e.push(this.colGroupHeader)),this.colGroupFooter&&(s.push(this.colGroupFooter.parentElement),e.push(this.colGroupFooter)),s.forEach(d=>d.classList.add("k-autofitting"));const a=[];e.forEach(d=>{i.forEach(f=>{d.children[f]&&(d.children[f].width="",a[f]=Math.max(a[f]||0,d.children[f].offsetWidth+G))})}),e.forEach(d=>{i.forEach(f=>{if(d.children[f]){d.children[f].width=a[f]+"px";const g=h.find(m=>m.id===t[f].id);g&&(g.width=a[f])}})}),s.forEach(d=>d.classList.remove("k-autofitting")),this.onResize(i[0],0,0,c,!0,this.columnsState,l[0])},this.updateColElements=c=>{const l=this.columns.filter(h=>!h.hidden&&!h.children.length);let r=1e-10;for(let h=0;h<c.length;h++){const n=c[h],o=l.findIndex(a=>a.id===n.id),t=parseFloat((n.width||0).toString()),i=Math.floor(t);r+=t-i;const s=i+Math.floor(r);r-=Math.floor(r);const e=l.find(a=>a.id===n.id);if(!e)return;if(this.colGroupMain&&this.colGroupMain.children[o]){const a=parseInt(this.colGroupMain.children[o].width,10);this.colGroupMain.children[o].width=s+"px",this.updateNextLockedCol(this.colGroupMain.parentElement,e,a-s)}if(this.colGroupHeader&&this.colGroupHeader.children[o]){const a=parseInt(this.colGroupHeader.children[o].width,10);this.colGroupHeader.children[o].width=s+"px",this.updateNextLockedCol(this.colGroupHeader.parentElement,e,a-s)}if(this.colGroupFooter&&this.colGroupFooter.children[o]){const a=parseInt(this.colGroupFooter.children[o].width,10);this.colGroupFooter.children[o].width=s+"px",this.updateNextLockedCol(this.colGroupFooter.parentElement,e,a-s)}}},this.onResize=u}fixateInitialWidths(u){var o;let c=0;const l=((o=this.colGroupMain)==null?void 0:o.children)||[];for(let t=0;t<l.length;t++)l[t].width?u-=l[t].clientWidth:c++;if(c===0)return;const r=Math.floor(u/c),h=p.getFlatColumnsState(this.columnsState),n=this.columns.filter(t=>!t.children.length);for(let t=0;t<l.length;t++){const i=l[t],s=i.width?i.clientWidth:r;i.width=s;const e=h.find(a=>a.id===n[t].id);e&&(e.width=s.toString()),this.colGroupHeader&&(this.colGroupHeader.children[t].width=s),this.colGroupFooter&&(this.colGroupFooter.children[t].width=s)}}setWidths(u,c){const l=p.getFlatColumnsState(this.columnsState),r=this.columns.findIndex(t=>t.id===u.id),h=[];let n=u.children.filter(t=>!t.hidden).length;for(let t=r+1;t<this.columns.length&&!(n<=0);t++){const i=this.columns[t];i.children.length?n+=i.children.filter(s=>!s.hidden).length:h.push(i),n--}h.length===0&&h.push(u);const o=[];h.forEach(t=>{const i=l.find(s=>s.id===t.id);if(i){let s=i.width?parseFloat(i.width.toString())*c:0;const e=t.minResizableWidth===void 0?10:t.minResizableWidth;s<e&&(s=e),i.width=s,o.push(i)}}),this.updateColElements(o)}updateNextLockedCol(u,c,l){const r=c.index,h=this.colGroupMain.parentElement.closest(".k-grid"),n=h==null?void 0:h.clientWidth,o=this.columns.filter(t=>t.locked).map(t=>parseInt(t.width+"",10)).reduce((t,i)=>t+i,0);!c.locked||n<=o+w||this.columns.forEach(t=>{if(t!=null&&t.locked&&l){const i=u==null?void 0:u.querySelectorAll('[aria-colindex="'+t.ariaColumnIndex+'"]');i==null||i.forEach(s=>{const e=s.style;this.isRtl?(t.index>r&&e&&e.right&&(e.right=parseInt(e.right,10)-l+"px"),t.index<r&&e&&e.left&&(e.left=parseInt(e.left,10)-l+"px")):(t.index>r&&e&&e.left&&(e.left=parseInt(e.left,10)-l+"px"),t.index<r&&e&&e.right&&(e.right=parseInt(e.right,10)-l+"px"))})}})}}exports.ColumnResize=x;
@@ -12,47 +12,47 @@ class E {
12
12
  this.columns = [], this.columnsState = [], this.resizable = !1, this.isRtl = !1, this.setIsRtl = (c) => {
13
13
  this.isRtl = c;
14
14
  }, this.initWidths = () => {
15
- var r;
16
- const c = ((r = this.colGroupMain) == null ? void 0 : r.children) || [], l = u(this.columnsState), n = this.columns.filter((s) => {
15
+ var n;
16
+ const c = ((n = this.colGroupMain) == null ? void 0 : n.children) || [], r = u(this.columnsState), l = this.columns.filter((h) => {
17
17
  var o;
18
- return !((o = s.children) != null && o.length);
18
+ return !((o = h.children) != null && o.length);
19
19
  });
20
- for (let s = 0; s < c.length; s++) {
21
- const o = c[s];
20
+ for (let h = 0; h < c.length; h++) {
21
+ const o = c[h];
22
22
  let t = "";
23
- const i = l.find((h) => h.id === n[s].id);
24
- i && (t = i.width || ""), o.width = t, this.colGroupHeader && (this.colGroupHeader.children[s].width = t), this.colGroupFooter && (this.colGroupFooter.children[s].width = t);
23
+ const i = r.find((s) => s.id === l[h].id);
24
+ i && (t = i.width || ""), o.width = t, this.colGroupHeader && (this.colGroupHeader.children[h].width = t), this.colGroupFooter && (this.colGroupFooter.children[h].width = t);
25
25
  }
26
- }, this.dragHandler = (c, l, n, r) => {
27
- const s = c.originalEvent;
28
- r || (s.preventDefault(), s.stopPropagation(), s.stopImmediatePropagation());
29
- const o = n.closest("th");
26
+ }, this.dragHandler = (c, r, l, n) => {
27
+ const h = c.originalEvent;
28
+ n || (h.preventDefault(), h.stopPropagation(), h.stopImmediatePropagation());
29
+ const o = l.closest("th");
30
30
  if (!o || !o)
31
31
  return;
32
32
  const t = o.clientWidth;
33
33
  let i = t;
34
- if (this.isRtl ? i += n.getBoundingClientRect().right - n.offsetWidth / 2 - c.clientX : i += c.clientX - n.getBoundingClientRect().left - n.offsetWidth / 2, !r && Math.abs(i - t) < 1)
34
+ if (this.isRtl ? i += l.getBoundingClientRect().right - l.offsetWidth / 2 - c.clientX : i += c.clientX - l.getBoundingClientRect().left - l.offsetWidth / 2, !n && Math.abs(i - t) < 1)
35
35
  return;
36
- this.fixateInitialWidths(o.parentElement.clientWidth), this.setWidths(l, Math.floor(i) / t);
37
- const h = this.columns.filter((e) => !e.children.length).findIndex((e) => e.id === l.id);
38
- this.onResize(h, t, i, s, r, this.columnsState, l.id);
39
- }, this.dblClickHandler = (c, l) => {
40
- const n = this.columns.filter((d) => l.indexOf(d.id) > -1), r = u(this.columnsState);
41
- if (!this.colGroupMain || !n.length)
36
+ this.fixateInitialWidths(o.parentElement.clientWidth), this.setWidths(r, Math.floor(i) / t);
37
+ const s = this.columns.filter((e) => !e.children.length).findIndex((e) => e.id === r.id);
38
+ this.onResize(s, t, i, h, n, this.columnsState, r.id);
39
+ }, this.dblClickHandler = (c, r) => {
40
+ const l = this.columns.filter((d) => r.indexOf(d.id) > -1), n = u(this.columnsState);
41
+ if (!this.colGroupMain || !l.length)
42
42
  return;
43
- const s = {}, o = n;
43
+ const h = {}, o = l;
44
44
  for (; o.length > 0; ) {
45
45
  const d = o.pop();
46
46
  if (!d)
47
47
  break;
48
- d.children.length ? o.push(...d.children) : s[d.id] = d;
48
+ d.children.length ? o.push(...d.children) : h[d.id] = d;
49
49
  }
50
50
  const t = this.columns.filter((d) => !d.children.length), i = [];
51
51
  t.forEach((d, f) => {
52
- s[d.id] && i.push(f);
52
+ h[d.id] && i.push(f);
53
53
  });
54
- const h = [this.colGroupMain.parentElement], e = [this.colGroupMain];
55
- this.colGroupHeader && (h.push(this.colGroupHeader.parentElement), e.push(this.colGroupHeader)), this.colGroupFooter && (h.push(this.colGroupFooter.parentElement), e.push(this.colGroupFooter)), h.forEach((d) => d.classList.add("k-autofitting"));
54
+ const s = [this.colGroupMain.parentElement], e = [this.colGroupMain];
55
+ this.colGroupHeader && (s.push(this.colGroupHeader.parentElement), e.push(this.colGroupHeader)), this.colGroupFooter && (s.push(this.colGroupFooter.parentElement), e.push(this.colGroupFooter)), s.forEach((d) => d.classList.add("k-autofitting"));
56
56
  const a = [];
57
57
  e.forEach((d) => {
58
58
  i.forEach((f) => {
@@ -65,33 +65,33 @@ class E {
65
65
  i.forEach((f) => {
66
66
  if (d.children[f]) {
67
67
  d.children[f].width = a[f] + "px";
68
- const g = r.find((G) => G.id === t[f].id);
68
+ const g = n.find((G) => G.id === t[f].id);
69
69
  g && (g.width = a[f]);
70
70
  }
71
71
  });
72
- }), h.forEach((d) => d.classList.remove("k-autofitting")), this.onResize(i[0], 0, 0, c, !0, this.columnsState, l[0]);
72
+ }), s.forEach((d) => d.classList.remove("k-autofitting")), this.onResize(i[0], 0, 0, c, !0, this.columnsState, r[0]);
73
73
  }, this.updateColElements = (c) => {
74
- const l = this.columns.filter((r) => !r.hidden && !r.children.length);
75
- let n = 1e-10;
76
- for (let r = 0; r < c.length; r++) {
77
- const s = c[r], o = l.findIndex((a) => a.id === s.id), t = parseFloat((s.width || 0).toString()), i = Math.floor(t);
78
- n += t - i;
79
- const h = i + Math.floor(n);
80
- n -= Math.floor(n);
81
- const e = l.find((a) => a.id === s.id);
74
+ const r = this.columns.filter((n) => !n.hidden && !n.children.length);
75
+ let l = 1e-10;
76
+ for (let n = 0; n < c.length; n++) {
77
+ const h = c[n], o = r.findIndex((a) => a.id === h.id), t = parseFloat((h.width || 0).toString()), i = Math.floor(t);
78
+ l += t - i;
79
+ const s = i + Math.floor(l);
80
+ l -= Math.floor(l);
81
+ const e = r.find((a) => a.id === h.id);
82
82
  if (!e)
83
83
  return;
84
84
  if (this.colGroupMain && this.colGroupMain.children[o]) {
85
85
  const a = parseInt(this.colGroupMain.children[o].width, 10);
86
- this.colGroupMain.children[o].width = h + "px", this.updateNextLockedCol(this.colGroupMain.parentElement, e, a - h);
86
+ this.colGroupMain.children[o].width = s + "px", this.updateNextLockedCol(this.colGroupMain.parentElement, e, a - s);
87
87
  }
88
88
  if (this.colGroupHeader && this.colGroupHeader.children[o]) {
89
89
  const a = parseInt(this.colGroupHeader.children[o].width, 10);
90
- this.colGroupHeader.children[o].width = h + "px", this.updateNextLockedCol(this.colGroupHeader.parentElement, e, a - h);
90
+ this.colGroupHeader.children[o].width = s + "px", this.updateNextLockedCol(this.colGroupHeader.parentElement, e, a - s);
91
91
  }
92
92
  if (this.colGroupFooter && this.colGroupFooter.children[o]) {
93
93
  const a = parseInt(this.colGroupFooter.children[o].width, 10);
94
- this.colGroupFooter.children[o].width = h + "px", this.updateNextLockedCol(this.colGroupFooter.parentElement, e, a - h);
94
+ this.colGroupFooter.children[o].width = s + "px", this.updateNextLockedCol(this.colGroupFooter.parentElement, e, a - s);
95
95
  }
96
96
  }
97
97
  }, this.onResize = p;
@@ -99,47 +99,45 @@ class E {
99
99
  fixateInitialWidths(p) {
100
100
  var o;
101
101
  let c = 0;
102
- const l = ((o = this.colGroupMain) == null ? void 0 : o.children) || [];
103
- for (let t = 0; t < l.length; t++)
104
- l[t].width ? p -= parseFloat(l[t].width) : c++;
102
+ const r = ((o = this.colGroupMain) == null ? void 0 : o.children) || [];
103
+ for (let t = 0; t < r.length; t++)
104
+ r[t].width ? p -= r[t].clientWidth : c++;
105
105
  if (c === 0)
106
106
  return;
107
- const n = Math.floor(p / c), r = u(this.columnsState), s = this.columns.filter((t) => !t.children.length);
108
- for (let t = 0; t < l.length; t++) {
109
- const i = l[t];
110
- if (!i.width) {
111
- i.width = n;
112
- const h = r.find((e) => e.id === s[t].id);
113
- h && (h.width = n.toString()), this.colGroupHeader && (this.colGroupHeader.children[t].width = n), this.colGroupFooter && (this.colGroupFooter.children[t].width = n);
114
- }
107
+ const l = Math.floor(p / c), n = u(this.columnsState), h = this.columns.filter((t) => !t.children.length);
108
+ for (let t = 0; t < r.length; t++) {
109
+ const i = r[t], s = i.width ? i.clientWidth : l;
110
+ i.width = s;
111
+ const e = n.find((a) => a.id === h[t].id);
112
+ e && (e.width = s.toString()), this.colGroupHeader && (this.colGroupHeader.children[t].width = s), this.colGroupFooter && (this.colGroupFooter.children[t].width = s);
115
113
  }
116
114
  }
117
115
  setWidths(p, c) {
118
- const l = u(this.columnsState), n = this.columns.findIndex((t) => t.id === p.id), r = [];
119
- let s = p.children.filter((t) => !t.hidden).length;
120
- for (let t = n + 1; t < this.columns.length && !(s <= 0); t++) {
116
+ const r = u(this.columnsState), l = this.columns.findIndex((t) => t.id === p.id), n = [];
117
+ let h = p.children.filter((t) => !t.hidden).length;
118
+ for (let t = l + 1; t < this.columns.length && !(h <= 0); t++) {
121
119
  const i = this.columns[t];
122
- i.children.length ? s += i.children.filter((h) => !h.hidden).length : r.push(i), s--;
120
+ i.children.length ? h += i.children.filter((s) => !s.hidden).length : n.push(i), h--;
123
121
  }
124
- r.length === 0 && r.push(p);
122
+ n.length === 0 && n.push(p);
125
123
  const o = [];
126
- r.forEach((t) => {
127
- const i = l.find((h) => h.id === t.id);
124
+ n.forEach((t) => {
125
+ const i = r.find((s) => s.id === t.id);
128
126
  if (i) {
129
- let h = i.width ? parseFloat(i.width.toString()) * c : 0;
127
+ let s = i.width ? parseFloat(i.width.toString()) * c : 0;
130
128
  const e = t.minResizableWidth === void 0 ? 10 : t.minResizableWidth;
131
- h < e && (h = e), i.width = h, o.push(i);
129
+ s < e && (s = e), i.width = s, o.push(i);
132
130
  }
133
131
  }), this.updateColElements(o);
134
132
  }
135
- updateNextLockedCol(p, c, l) {
136
- const n = c.index, r = this.colGroupMain.parentElement.closest(".k-grid"), s = r == null ? void 0 : r.clientWidth, o = this.columns.filter((t) => t.locked).map((t) => parseInt(t.width + "", 10)).reduce((t, i) => t + i, 0);
137
- !c.locked || s <= o + w || this.columns.forEach((t) => {
138
- if (t != null && t.locked && l) {
133
+ updateNextLockedCol(p, c, r) {
134
+ const l = c.index, n = this.colGroupMain.parentElement.closest(".k-grid"), h = n == null ? void 0 : n.clientWidth, o = this.columns.filter((t) => t.locked).map((t) => parseInt(t.width + "", 10)).reduce((t, i) => t + i, 0);
135
+ !c.locked || h <= o + w || this.columns.forEach((t) => {
136
+ if (t != null && t.locked && r) {
139
137
  const i = p == null ? void 0 : p.querySelectorAll('[aria-colindex="' + t.ariaColumnIndex + '"]');
140
- i == null || i.forEach((h) => {
141
- const e = h.style;
142
- this.isRtl ? (t.index > n && e && e.right && (e.right = parseInt(e.right, 10) - l + "px"), t.index < n && e && e.left && (e.left = parseInt(e.left, 10) - l + "px")) : (t.index > n && e && e.left && (e.left = parseInt(e.left, 10) - l + "px"), t.index < n && e && e.right && (e.right = parseInt(e.right, 10) - l + "px"));
138
+ i == null || i.forEach((s) => {
139
+ const e = s.style;
140
+ this.isRtl ? (t.index > l && e && e.right && (e.right = parseInt(e.right, 10) - r + "px"), t.index < l && e && e.left && (e.left = parseInt(e.left, 10) - r + "px")) : (t.index > l && e && e.left && (e.left = parseInt(e.left, 10) - r + "px"), t.index < l && e && e.right && (e.right = parseInt(e.right, 10) - r + "px"));
143
141
  });
144
142
  }
145
143
  });
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-grid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1748962035,version:"11.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-grid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1749546042,version:"11.1.1-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
@@ -10,8 +10,8 @@ const e = {
10
10
  productName: "KendoReact",
11
11
  productCode: "KENDOUIREACT",
12
12
  productCodes: ["KENDOUIREACT"],
13
- publishDate: 1748962035,
14
- version: "11.1.0",
13
+ publishDate: 1749546042,
14
+ version: "11.1.1-develop.2",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
16
16
  };
17
17
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-grid",
3
- "version": "11.1.0",
3
+ "version": "11.1.1-develop.2",
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.1.0",
32
- "@progress/kendo-react-buttons": "11.1.0",
33
- "@progress/kendo-react-common": "11.1.0",
34
- "@progress/kendo-react-data-tools": "11.1.0",
35
- "@progress/kendo-react-dateinputs": "11.1.0",
36
- "@progress/kendo-react-indicators": "11.1.0",
37
- "@progress/kendo-react-form": "11.1.0",
38
- "@progress/kendo-react-labels": "11.1.0",
39
- "@progress/kendo-react-dialogs": "11.1.0",
40
- "@progress/kendo-react-dropdowns": "11.1.0",
41
- "@progress/kendo-react-inputs": "11.1.0",
42
- "@progress/kendo-react-intl": "11.1.0",
43
- "@progress/kendo-react-popup": "11.1.0",
44
- "@progress/kendo-react-layout": "11.1.0",
31
+ "@progress/kendo-react-animation": "11.1.1-develop.2",
32
+ "@progress/kendo-react-buttons": "11.1.1-develop.2",
33
+ "@progress/kendo-react-common": "11.1.1-develop.2",
34
+ "@progress/kendo-react-data-tools": "11.1.1-develop.2",
35
+ "@progress/kendo-react-dateinputs": "11.1.1-develop.2",
36
+ "@progress/kendo-react-indicators": "11.1.1-develop.2",
37
+ "@progress/kendo-react-form": "11.1.1-develop.2",
38
+ "@progress/kendo-react-labels": "11.1.1-develop.2",
39
+ "@progress/kendo-react-dialogs": "11.1.1-develop.2",
40
+ "@progress/kendo-react-dropdowns": "11.1.1-develop.2",
41
+ "@progress/kendo-react-inputs": "11.1.1-develop.2",
42
+ "@progress/kendo-react-intl": "11.1.1-develop.2",
43
+ "@progress/kendo-react-popup": "11.1.1-develop.2",
44
+ "@progress/kendo-react-layout": "11.1.1-develop.2",
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": 1748962035,
148
+ "publishDate": 1749546042,
149
149
  "licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
150
150
  }
151
151
  },