@progress/kendo-react-grid 11.2.1-develop.1 → 11.3.0-develop.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 s=require("../../utils/index.js"),r=require("../../constants/index.js"),c=require("@progress/kendo-react-common"),m=e=>{var d,i;let t=null,a=null;const n=e.unstyled,o=n&&n.uGrid?n.uGrid:c.uGrid;if(e.rowType==="groupFooter")t={className:e.className};else if(e.rowType!=="groupHeader"){if(e.field!==void 0){const l=s.getNestedValue(e.field,e.dataItem);l!=null&&(a=e.intl&&e.format?e.intl.format(e.format,l):l.toString())}const u=c.classNames(o.td({selected:e.isSelected,sorted:e.isSorted,alt:e.isAlt}),e.className);t={rowSpan:(i=(d=e._rowSpan)==null?void 0:d.count)!=null?i:void 0,colSpan:e.colSpan,style:e.style,className:u,role:"gridcell","aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,[r.GRID_COL_INDEX_ATTRIBUTE]:e.columnIndex}}return{tdProps:t,content:a}},g=e=>{var t;return(t=e.cells)==null?void 0:t[e.rowType||"data"]};exports.getCellTdProps=m;exports.getCustomCell=g;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../utils/index.js"),r=require("../../constants/index.js"),c=require("@progress/kendo-react-common"),g=e=>{var n,a;let t=null,d=null;const i=e.unstyled,o=i&&i.uGrid?i.uGrid:c.uGrid;if(e.rowType==="groupFooter")t={className:e.className};else if(e.rowType!=="groupHeader"){if(e.field!==void 0){const l=s.getNestedValue(e.field,e.dataItem);l!=null&&(d=e.intl&&e.format?e.intl.format(e.format,l):l.toString())}const u=c.classNames(o.td({selected:e.isSelected,highlighted:e.isHighlighted,sorted:e.isSorted,alt:e.isAlt}),e.className);t={rowSpan:(a=(n=e._rowSpan)==null?void 0:n.count)!=null?a:void 0,colSpan:e.colSpan,style:e.style,className:u,role:"gridcell","aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,[r.GRID_COL_INDEX_ATTRIBUTE]:e.columnIndex}}return{tdProps:t,content:d}},m=e=>{var t;return(t=e.cells)==null?void 0:t[e.rowType||"data"]};exports.getCellTdProps=g;exports.getCustomCell=m;
@@ -7,11 +7,11 @@
7
7
  */
8
8
  import { getNestedValue as m } from "../../utils/index.mjs";
9
9
  import { GRID_COL_INDEX_ATTRIBUTE as u } from "../../constants/index.mjs";
10
- import { uGrid as r, classNames as s } from "@progress/kendo-react-common";
10
+ import { uGrid as s, classNames as r } from "@progress/kendo-react-common";
11
11
  const y = (e) => {
12
- var i, n;
13
- let t = null, d = null;
14
- const a = e.unstyled, c = a && a.uGrid ? a.uGrid : r;
12
+ var d, n;
13
+ let t = null, i = null;
14
+ const a = e.unstyled, c = a && a.uGrid ? a.uGrid : s;
15
15
  if (e.rowType === "groupFooter")
16
16
  t = {
17
17
  className: e.className
@@ -19,14 +19,14 @@ const y = (e) => {
19
19
  else if (e.rowType !== "groupHeader") {
20
20
  if (e.field !== void 0) {
21
21
  const l = m(e.field, e.dataItem);
22
- l != null && (d = e.intl && e.format ? e.intl.format(e.format, l) : l.toString());
22
+ l != null && (i = e.intl && e.format ? e.intl.format(e.format, l) : l.toString());
23
23
  }
24
- const o = s(
25
- c.td({ selected: e.isSelected, sorted: e.isSorted, alt: e.isAlt }),
24
+ const o = r(
25
+ c.td({ selected: e.isSelected, highlighted: e.isHighlighted, sorted: e.isSorted, alt: e.isAlt }),
26
26
  e.className
27
27
  );
28
28
  t = {
29
- rowSpan: (n = (i = e._rowSpan) == null ? void 0 : i.count) != null ? n : void 0,
29
+ rowSpan: (n = (d = e._rowSpan) == null ? void 0 : d.count) != null ? n : void 0,
30
30
  colSpan: e.colSpan,
31
31
  style: e.style,
32
32
  className: o,
@@ -36,7 +36,7 @@ const y = (e) => {
36
36
  [u]: e.columnIndex
37
37
  };
38
38
  }
39
- return { tdProps: t, content: d };
39
+ return { tdProps: t, content: i };
40
40
  }, N = (e) => {
41
41
  var t;
42
42
  return (t = e.cells) == null ? void 0 : t[e.rowType || "data"];
@@ -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 s=require("../../constants/index.js"),t=require("@progress/kendo-react-common"),o=e=>{let d=null;const l=e.unstyled,r=l&&l.uGrid?l.uGrid:t.uGrid,a=t.classNames(r.td({selected:e.isSelected,sorted:e.isSorted,alt:e.isAlt}),e.className,["k-drag-cell",`${e.rowReorderable?"":"k-disabled"}`]);return d={colSpan:e.colSpan,style:e.style,className:a,role:"gridcell","aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,"aria-disabled":!e.rowReorderable,[s.GRID_COL_INDEX_ATTRIBUTE]:e.columnIndex},{tdProps:d}};exports.getRowReorderCellTdProps=o;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../constants/index.js"),t=require("@progress/kendo-react-common"),s=e=>{let d=null;const l=e.unstyled,a=l&&l.uGrid?l.uGrid:t.uGrid,i=t.classNames(a.td({selected:e.isSelected,highlighted:e.isHighlighted,sorted:e.isSorted,alt:e.isAlt}),e.className,["k-drag-cell",`${e.rowReorderable?"":"k-disabled"}`]);return d={colSpan:e.colSpan,style:e.style,className:i,role:"gridcell","aria-colindex":e.ariaColumnIndex,"aria-selected":e.isSelected,"aria-disabled":!e.rowReorderable,[r.GRID_COL_INDEX_ATTRIBUTE]:e.columnIndex},{tdProps:d}};exports.getRowReorderCellTdProps=s;
@@ -5,26 +5,26 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { GRID_COL_INDEX_ATTRIBUTE as r } from "../../constants/index.mjs";
9
- import { uGrid as s, classNames as i } from "@progress/kendo-react-common";
10
- const n = (e) => {
8
+ import { GRID_COL_INDEX_ATTRIBUTE as i } from "../../constants/index.mjs";
9
+ import { uGrid as r, classNames as s } from "@progress/kendo-react-common";
10
+ const o = (e) => {
11
11
  let d = null;
12
- const l = e.unstyled, a = l && l.uGrid ? l.uGrid : s, t = i(
13
- a.td({ selected: e.isSelected, sorted: e.isSorted, alt: e.isAlt }),
12
+ const l = e.unstyled, t = l && l.uGrid ? l.uGrid : r, a = s(
13
+ t.td({ selected: e.isSelected, highlighted: e.isHighlighted, sorted: e.isSorted, alt: e.isAlt }),
14
14
  e.className,
15
15
  ["k-drag-cell", `${e.rowReorderable ? "" : "k-disabled"}`]
16
16
  );
17
17
  return d = {
18
18
  colSpan: e.colSpan,
19
19
  style: e.style,
20
- className: t,
20
+ className: a,
21
21
  role: "gridcell",
22
22
  "aria-colindex": e.ariaColumnIndex,
23
23
  "aria-selected": e.isSelected,
24
24
  "aria-disabled": !e.rowReorderable,
25
- [r]: e.columnIndex
25
+ [i]: e.columnIndex
26
26
  }, { tdProps: d };
27
27
  };
28
28
  export {
29
- n as getRowReorderCellTdProps
29
+ o as getRowReorderCellTdProps
30
30
  };