@progress/kendo-react-grid 11.2.1-develop.1 → 11.3.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.
- package/Grid.js +1 -1
- package/Grid.mjs +1 -0
- package/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +1 -0
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +247 -244
- package/cells/datacell/utils.js +1 -1
- package/cells/datacell/utils.mjs +9 -9
- package/cells/rowreordercell/utils.js +1 -1
- package/cells/rowreordercell/utils.mjs +8 -8
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/index.d.mts +72 -0
- package/index.d.ts +72 -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/rows/GridRow.js +1 -1
- package/rows/GridRow.mjs +19 -18
- 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/index.js +1 -1
- package/utils/index.mjs +64 -63
- package/utils/premium.js +1 -1
- package/utils/premium.mjs +11 -11
package/cells/datacell/utils.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../utils/index.js"),r=require("../../constants/index.js"),c=require("@progress/kendo-react-common"),
|
|
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;
|
package/cells/datacell/utils.mjs
CHANGED
|
@@ -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
|
|
10
|
+
import { uGrid as s, classNames as r } from "@progress/kendo-react-common";
|
|
11
11
|
const y = (e) => {
|
|
12
|
-
var
|
|
13
|
-
let t = null,
|
|
14
|
-
const a = e.unstyled, c = a && a.uGrid ? a.uGrid :
|
|
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 && (
|
|
22
|
+
l != null && (i = e.intl && e.format ? e.intl.format(e.format, l) : l.toString());
|
|
23
23
|
}
|
|
24
|
-
const o =
|
|
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 = (
|
|
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:
|
|
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
|
|
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
|
|
9
|
-
import { uGrid as
|
|
10
|
-
const
|
|
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,
|
|
13
|
-
|
|
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:
|
|
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
|
-
[
|
|
25
|
+
[i]: e.columnIndex
|
|
26
26
|
}, { tdProps: d };
|
|
27
27
|
};
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
o as getRowReorderCellTdProps
|
|
30
30
|
};
|