@progress/kendo-react-grid 13.4.0-develop.5 → 14.0.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.
- package/BaseCSVExport.d.ts +31 -0
- package/BaseCSVExport.js +8 -0
- package/BaseCSVExport.mjs +82 -0
- package/Grid.d.ts +33 -0
- package/GridClientWrapper.js +1 -1
- package/GridClientWrapper.mjs +313 -289
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +247 -252
- package/GridCsvExportButton.d.ts +13 -0
- package/GridCsvExportButton.js +8 -0
- package/GridCsvExportButton.mjs +35 -0
- package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.js +1 -1
- package/columnMenu/adaptiveContent/GridAdaptiveColumnMenu.mjs +4 -4
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/index.d.mts +3 -2
- package/index.d.ts +3 -2
- package/index.js +1 -1
- package/index.mjs +24 -22
- package/interfaces/GridProps.d.ts +81 -0
- package/messages/index.d.ts +5 -0
- package/messages/index.js +2 -2
- package/messages/index.mjs +70 -68
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +1 -1
- package/package.json +17 -17
- package/utils/dataProcessing.d.ts +67 -0
- package/utils/dataProcessing.js +8 -0
- package/utils/dataProcessing.mjs +49 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ButtonProps } from '@progress/kendo-react-buttons';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the properties of the KendoReact GridCsvExportButton component.
|
|
12
|
+
*/
|
|
13
|
+
export declare const GridCsvExportButton: (props: ButtonProps) => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 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 l=require("react"),u=require("./utils/GridContext.js"),d=require("@progress/kendo-svg-icons"),g=require("@progress/kendo-react-common"),C=require("@progress/kendo-react-intl"),c=require("./messages/index.js"),f=require("@progress/kendo-react-buttons");function m(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const i=m(l),v=e=>{const n=C.useLocalization(),t=i.useContext(u.GridContext),o=a=>{t.exportAsCsv(),e.onClick&&e.onClick.call(void 0,a)},s=g.classNames("k-grid-csv",e.className),r=n.toLanguageString(c.exportCSV,c.messages[c.exportCSV]);return i.createElement(f.Button,{title:r,type:"button",...e,icon:"file-csv",svgIcon:d.fileCsvIcon,className:s,onClick:o},e.children||r)};exports.GridCsvExportButton=v;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as e from "react";
|
|
9
|
+
import { GridContext as a } from "./utils/GridContext.mjs";
|
|
10
|
+
import { fileCsvIcon as l } from "@progress/kendo-svg-icons";
|
|
11
|
+
import { classNames as C } from "@progress/kendo-react-common";
|
|
12
|
+
import { useLocalization as f } from "@progress/kendo-react-intl";
|
|
13
|
+
import { exportCSV as i, messages as u } from "./messages/index.mjs";
|
|
14
|
+
import { Button as v } from "@progress/kendo-react-buttons";
|
|
15
|
+
const N = (t) => {
|
|
16
|
+
const n = f(), c = e.useContext(a), r = (m) => {
|
|
17
|
+
c.exportAsCsv(), t.onClick && t.onClick.call(void 0, m);
|
|
18
|
+
}, s = C("k-grid-csv", t.className), o = n.toLanguageString(i, u[i]);
|
|
19
|
+
return /* @__PURE__ */ e.createElement(
|
|
20
|
+
v,
|
|
21
|
+
{
|
|
22
|
+
title: o,
|
|
23
|
+
type: "button",
|
|
24
|
+
...t,
|
|
25
|
+
icon: "file-csv",
|
|
26
|
+
svgIcon: l,
|
|
27
|
+
className: s,
|
|
28
|
+
onClick: r
|
|
29
|
+
},
|
|
30
|
+
t.children || o
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
N as GridCsvExportButton
|
|
35
|
+
};
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("@progress/kendo-react-layout"),m=require("@progress/kendo-react-common"),d=require("../../utils/GridContext.js"),v=require("@progress/kendo-react-buttons"),h=require("@progress/kendo-svg-icons"),C=require("../adaptiveContext/GridColumnMenuAdaptiveContext.js"),
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("@progress/kendo-react-layout"),m=require("@progress/kendo-react-common"),d=require("../../utils/GridContext.js"),v=require("@progress/kendo-react-buttons"),h=require("@progress/kendo-svg-icons"),C=require("../adaptiveContext/GridColumnMenuAdaptiveContext.js"),f=require("@progress/kendo-react-intl"),i=require("../../messages/index.js"),k=n=>{const a=e.useContext(d.GridContext),{actionSheetRef:c,firstViewRef:s,secondViewRef:r}=e.useContext(C.GridColumnMenuAdaptiveContext),o=m.useAdaptiveModeContext(),l=f.useLocalization(),u={animation:!0,navigatable:!1,navigatableElements:[],expand:n.computedShow,animationStyles:o&&a.adaptiveColumnMenuRef<=o.small?{top:0,width:"100%",height:"100%"}:void 0,className:"k-adaptive-actionsheet",position:o&&a.adaptiveColumnMenuRef<=o.small?"fullscreen":void 0};return e.createElement(t.ActionSheet,{...u,ref:c,style:{"--kendo-actionsheet-view-current":1},onClose:()=>{n.closeMenu()}},e.createElement(t.ActionSheetView,{className:"k-actionsheet-view-animated",ref:s,style:{transitionDuration:"500ms",transitionProperty:"transform"}},e.createElement(t.ActionSheetHeader,null,e.createElement("div",{className:"k-actionsheet-titlebar-group"},e.createElement("div",{className:"k-actionsheet-title"},e.createElement("div",{className:"k-text-center"},a.adaptiveTitle||l.toLanguageString(i.columnMenu,i.messages[i.columnMenu]))),e.createElement("div",{className:"k-actionsheet-actions"},e.createElement(v.Button,{svgIcon:h.xIcon,onClick:n.closeMenu,fillMode:"flat"})))),e.createElement(t.ActionSheetContent,null,e.createElement("div",{className:"k-column-menu k-column-menu-lg"},n.children))),e.createElement(t.ActionSheetView,{className:"k-actionsheet-view-animated",ref:r,style:{transitionDuration:"500ms",transitionProperty:"transform"}}))};exports.GridAdaptiveColumnMenu=k;
|
|
@@ -16,7 +16,7 @@ import { GridColumnMenuAdaptiveContext as E } from "../adaptiveContext/GridColum
|
|
|
16
16
|
import { useLocalization as g } from "@progress/kendo-react-intl";
|
|
17
17
|
import { columnMenu as i, messages as k } from "../../messages/index.mjs";
|
|
18
18
|
const G = (t) => {
|
|
19
|
-
const o = e.useContext(p), { actionSheetRef: r, firstViewRef:
|
|
19
|
+
const o = e.useContext(p), { actionSheetRef: r, firstViewRef: l, secondViewRef: m } = e.useContext(E), n = v(), s = g(), c = {
|
|
20
20
|
animation: !0,
|
|
21
21
|
navigatable: !1,
|
|
22
22
|
navigatableElements: [],
|
|
@@ -39,20 +39,20 @@ const G = (t) => {
|
|
|
39
39
|
a,
|
|
40
40
|
{
|
|
41
41
|
className: "k-actionsheet-view-animated",
|
|
42
|
-
ref:
|
|
42
|
+
ref: l,
|
|
43
43
|
style: {
|
|
44
44
|
transitionDuration: "500ms",
|
|
45
45
|
transitionProperty: "transform"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
/* @__PURE__ */ e.createElement(d, null, /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-titlebar-group" }, /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ e.createElement("div", { className: "k-text-center" }, o.adaptiveTitle ||
|
|
48
|
+
/* @__PURE__ */ e.createElement(d, null, /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-titlebar-group" }, /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-title" }, /* @__PURE__ */ e.createElement("div", { className: "k-text-center" }, o.adaptiveTitle || s.toLanguageString(i, k[i]))), /* @__PURE__ */ e.createElement("div", { className: "k-actionsheet-actions" }, /* @__PURE__ */ e.createElement(h, { svgIcon: C, onClick: t.closeMenu, fillMode: "flat" })))),
|
|
49
49
|
/* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement("div", { className: "k-column-menu k-column-menu-lg" }, t.children))
|
|
50
50
|
),
|
|
51
51
|
/* @__PURE__ */ e.createElement(
|
|
52
52
|
a,
|
|
53
53
|
{
|
|
54
54
|
className: "k-actionsheet-view-animated",
|
|
55
|
-
ref:
|
|
55
|
+
ref: m,
|
|
56
56
|
style: {
|
|
57
57
|
transitionDuration: "500ms",
|
|
58
58
|
transitionProperty: "transform"
|