@progress/kendo-react-grid 9.4.0-develop.6 → 9.4.0-develop.7
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 +4 -5
- package/GridClientContextReader.js +2 -1
- package/GridClientContextReader.mjs +15 -14
- package/GridClientWrapper.js +2 -1
- package/GridColumn.js +1 -1
- package/GridColumn.mjs +4 -5
- package/GridComponent.js +1 -1
- package/GridComponent.mjs +120 -119
- package/GridState.js +2 -1
- package/GridToolbar.js +1 -1
- package/GridToolbar.mjs +5 -6
- package/GridWatermarkOverlay.js +2 -1
- package/GridWatermarkOverlay.mjs +2 -2
- package/StatusBar.js +1 -1
- package/StatusBar.mjs +0 -1
- package/VirtualScroll.js +1 -1
- package/VirtualScroll.mjs +0 -1
- package/VirtualScrollFixed.js +1 -1
- package/VirtualScrollFixed.mjs +9 -10
- package/cells/GridCell.js +1 -1
- package/cells/GridCell.mjs +15 -17
- package/cells/GridDetailCell.js +1 -1
- package/cells/GridDetailCell.mjs +5 -6
- package/cells/GridDetailHierarchyCell.js +1 -1
- package/cells/GridDetailHierarchyCell.mjs +4 -5
- package/cells/GridEditCell.js +1 -1
- package/cells/GridEditCell.mjs +6 -7
- package/cells/GridFilterCell.js +2 -1
- package/cells/GridGroupCell.js +1 -1
- package/cells/GridGroupCell.mjs +11 -12
- package/cells/GridHierarchyCell.js +1 -1
- package/cells/GridHierarchyCell.mjs +7 -8
- package/cells/GridRowReorderCell.js +1 -1
- package/cells/GridRowReorderCell.mjs +3 -4
- package/cells/GridSelectionCell.js +1 -1
- package/cells/GridSelectionCell.mjs +12 -13
- package/cells/client/DetailCellContainer.js +2 -1
- package/cells/client/DetailCellContainer.mjs +2 -2
- package/cells/client/GridCellContainer.js +2 -1
- package/cells/client/GridEditCellContainer.js +2 -1
- package/cells/client/GridEditCellEditor.js +2 -1
- package/cells/client/GridEditCellEditor.mjs +14 -14
- package/cells/client/GridGroupCellContainer.js +2 -1
- package/cells/client/GridGroupCellContainer.mjs +39 -39
- package/cells/client/GridGroupCellToggle.js +2 -1
- package/cells/client/GridGroupCellToggle.mjs +3 -3
- package/cells/client/GridHierarchyCellContainer.js +2 -1
- package/cells/client/GridHierarchyCellToggle.js +2 -1
- package/cells/client/GridHierarchyCellToggle.mjs +15 -15
- package/cells/client/GridRowReorderContainer.js +2 -1
- package/cells/client/GridRowReorderContainer.mjs +3 -3
- package/cells/client/GridSelectionCellContainer.js +2 -1
- package/cells/client/GridSelectionCellInput.js +2 -1
- package/cells/client/GridSelectionCellInput.mjs +3 -3
- package/columnMenu/GridColumnMenuCheckboxFilter.js +2 -1
- package/columnMenu/GridColumnMenuColumnsList.js +2 -1
- package/columnMenu/GridColumnMenuColumnsList.mjs +16 -16
- package/columnMenu/GridColumnMenuFilter.js +2 -1
- package/columnMenu/GridColumnMenuFilterCell.js +2 -1
- package/columnMenu/GridColumnMenuFilterCell.mjs +3 -3
- package/columnMenu/GridColumnMenuFilterUI.js +2 -1
- package/columnMenu/GridColumnMenuGroup.js +2 -1
- package/columnMenu/GridColumnMenuGroup.mjs +5 -5
- package/columnMenu/GridColumnMenuItem.js +2 -1
- package/columnMenu/GridColumnMenuItem.mjs +2 -2
- package/columnMenu/GridColumnMenuItemContent.js +2 -1
- package/columnMenu/GridColumnMenuItemContent.mjs +4 -4
- package/columnMenu/GridColumnMenuItemGroup.js +2 -1
- package/columnMenu/GridColumnMenuItemGroup.mjs +4 -4
- package/columnMenu/GridColumnMenuSort.js +2 -1
- package/columnMenu/GridColumnMenuSort.mjs +7 -7
- package/columnMenu/GridColumnMenuWrapper.js +2 -1
- package/components/GridContainerElementContainer.js +2 -1
- package/components/GridCustomCellClientContainer.js +2 -1
- package/components/GridCustomCellClientContainer.mjs +2 -2
- package/components/GridDragClue.js +2 -1
- package/components/GridDragClue.mjs +5 -5
- package/components/GridDraggableRowsContainer.js +2 -1
- package/components/GridDropClue.js +2 -1
- package/components/GridDropClue.mjs +5 -5
- package/components/GridElementContainer.js +2 -1
- package/components/GridElementContainer.mjs +6 -6
- package/components/PagerContainer.js +2 -1
- package/components/PagerContainer.mjs +4 -4
- package/components/VirtualScrollHeightContainer.js +2 -1
- package/components/VirtualScrollHeightContainer.mjs +2 -2
- package/components/colGroup/GridColGroup.js +2 -1
- package/components/colGroup/GridColGroup.mjs +5 -5
- package/components/icons/reorder-row-svg.js +2 -1
- package/components/icons/reorder-row-svg.mjs +2 -2
- package/components/noRecords/GridNoRecords.js +2 -1
- package/components/noRecords/GridNoRecords.mjs +5 -5
- package/components/noRecords/GridNoRecordsContainer.js +2 -1
- package/components/noRecords/GridNoRecordsContainer.mjs +4 -4
- package/components/table/GridTable.js +2 -1
- package/components/table/GridTable.mjs +4 -4
- package/components/table/GridTableBody.js +2 -1
- package/components/table/GridTableBody.mjs +2 -2
- package/components/table/GridTableScrollable.js +2 -1
- package/components/table/GridTableScrollable.mjs +6 -6
- package/components/utils.js +1 -1
- package/components/utils.mjs +0 -1
- package/constants/index.js +1 -1
- package/constants/index.mjs +0 -1
- package/contextMenu/GridContextMenu.js +2 -1
- package/contextMenu/GridContextMenu.mjs +3 -3
- package/contextMenu/enums.js +1 -1
- package/contextMenu/enums.mjs +0 -1
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/drag/ColumnDraggable.js +2 -1
- package/drag/ColumnDraggable.mjs +7 -7
- package/drag/ColumnResize.js +1 -1
- package/drag/ColumnResize.mjs +0 -1
- package/drag/CommonDragLogic.js +1 -1
- package/drag/CommonDragLogic.mjs +0 -1
- package/drag/GroupingIndicator.js +2 -1
- package/drag/GroupingIndicator.mjs +12 -12
- package/filterCommon.js +1 -1
- package/filterCommon.mjs +4 -5
- package/footer/Footer.js +2 -1
- package/footer/FooterCell.js +1 -1
- package/footer/FooterCell.mjs +3 -4
- package/footer/FooterRow.js +1 -1
- package/footer/FooterRow.mjs +6 -7
- package/footer/client/FooterCellContainer.js +2 -1
- package/footer/client/FooterCellContainer.mjs +5 -5
- package/header/FilterRow.js +1 -1
- package/header/FilterRow.mjs +41 -43
- package/header/GridHeaderCell.js +2 -1
- package/header/GridHeaderCell.mjs +4 -4
- package/header/GridHeaderSelectionCell.js +2 -1
- package/header/GroupPanel.js +2 -1
- package/header/Header.js +2 -1
- package/header/HeaderRow.js +1 -1
- package/header/HeaderRow.mjs +33 -35
- package/header/client/GridFilterCellContainer.js +2 -1
- package/header/client/GridFilterCellContainer.mjs +7 -7
- package/header/client/GridFilterCellElementContainer.js +2 -1
- package/header/client/GridHeaderCellContainer.js +2 -1
- package/header/client/GridHeaderCellElementContainer.js +2 -1
- package/header/client/GridHeaderCellElementContainer.mjs +10 -10
- package/header/client/GridHeaderRowContainer.js +2 -1
- package/header/client/GridHeaderRowReorderCell.js +2 -1
- package/header/client/GridHeaderRowReorderCell.mjs +2 -2
- package/header/client/HeaderCellResizer.js +2 -1
- package/header/client/HeaderRowDraggable.js +2 -1
- package/index.d.mts +6 -0
- package/index.d.ts +6 -0
- package/index.js +1 -1
- package/index.mjs +13 -14
- package/interfaces/GridSortSettings.js +1 -1
- package/interfaces/GridSortSettings.mjs +0 -1
- package/messages/index.js +1 -1
- package/messages/index.mjs +0 -1
- package/messages/messagesMap.js +1 -1
- package/messages/messagesMap.mjs +2 -3
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -3
- package/package.json +12 -12
- package/paging/GridPagerSettings.js +1 -1
- package/paging/GridPagerSettings.mjs +6 -7
- package/rows/GridDetailRow.js +1 -1
- package/rows/GridDetailRow.mjs +2 -3
- package/rows/GridRow.js +2 -1
- package/utils/_clientModule.js +2 -1
- package/utils/_clientModule.mjs +2 -2
- package/utils/_serverModule.js +1 -1
- package/utils/_serverModule.mjs +0 -1
- package/utils/index.js +1 -1
- package/utils/index.mjs +38 -39
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),c=require("../../GridClientWrapper.js"),o=require("@progress/kendo-react-data-tools");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const a=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(t,l,a.get?a:{enumerable:!0,get:()=>e[l]})}}return t.default=e,Object.freeze(t)}const r=i(n),s=e=>{const t=r.useContext(c.GridContext);return r.createElement(o.TableSelection,{selectable:e.selectable,onRelease:t.selectionRelease,childRef:l=>{t.tableElementRef.current=l}},r.createElement("table",{className:e.tableClassName,role:"presentation",style:e.tableStyle,ref:t.tableElementRef},e.children))};exports.GridTableScrollable=s;
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as l from "react";
|
|
10
|
-
import { GridContext as
|
|
11
|
-
import { TableSelection as
|
|
12
|
-
const
|
|
13
|
-
const t = l.useContext(
|
|
10
|
+
import { GridContext as r } from "../../GridClientWrapper.mjs";
|
|
11
|
+
import { TableSelection as n } from "@progress/kendo-react-data-tools";
|
|
12
|
+
const m = (e) => {
|
|
13
|
+
const t = l.useContext(r);
|
|
14
14
|
return /* @__PURE__ */ l.createElement(
|
|
15
|
-
|
|
15
|
+
n,
|
|
16
16
|
{
|
|
17
17
|
selectable: e.selectable,
|
|
18
18
|
onRelease: t.selectionRelease,
|
|
@@ -33,5 +33,5 @@ const s = (e) => {
|
|
|
33
33
|
);
|
|
34
34
|
};
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
m as GridTableScrollable
|
|
37
37
|
};
|
package/components/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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s={before:"before",after:"after",forbidden:"forbidden"},u=(t,n)=>(t==null?void 0:t.parentElement)!==(n==null?void 0:n.parentElement);function r(t){const{clientTop:n,clientLeft:o}=D(t),{pageYOffset:f,pageXOffset:e}=b(t),{top:i,left:c}=t.getBoundingClientRect();return{top:i+f-n,left:c+e-o}}const D=t=>t==null?void 0:t.ownerDocument.documentElement,b=t=>t==null?void 0:t.ownerDocument.defaultView;exports.dropDirection=s;exports.getOffset=r;exports.isDifferentParent=u;
|
package/components/utils.mjs
CHANGED
package/constants/index.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@progress/kendo-react-data-tools"),T=E.TABLE_ROW_INDEX_ATTRIBUTE,_=E.TABLE_COL_INDEX_ATTRIBUTE,I=E.TABLE_PREVENT_SELECTION_ELEMENT,R=/^(?!.*\bChrome).*\bSafari/i;exports.GRID_COL_INDEX_ATTRIBUTE=_;exports.GRID_PREVENT_SELECTION_ELEMENT=I;exports.GRID_ROW_INDEX_ATTRIBUTE=T;exports.SAFARI_REGEX=R;
|
package/constants/index.mjs
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
import { TABLE_ROW_INDEX_ATTRIBUTE as E, TABLE_COL_INDEX_ATTRIBUTE as T, TABLE_PREVENT_SELECTION_ELEMENT as _ } from "@progress/kendo-react-data-tools";
|
|
10
9
|
const R = E, N = T, A = _, L = /^(?!.*\bChrome).*\bSafari/i;
|
|
11
10
|
export {
|
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react"),e=require("@progress/kendo-svg-icons"),R=require("@progress/kendo-react-intl"),f=require("@progress/kendo-react-layout"),t=require("./enums.js");function M(n){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const c in n)if(c!=="default"){const s=Object.getOwnPropertyDescriptor(n,c);Object.defineProperty(r,c,s.get?s:{enumerable:!0,get:()=>n[c]})}}return r.default=n,Object.freeze(r)}const m=M(w),I={[t.GridContextMenuItemNames.create]:{name:"create",text:"Add",icon:"plus",svgIcon:e.plusIcon,data:{action:"AddCommand"}},[t.GridContextMenuItemNames.edit]:{name:"edit",text:"Edit",icon:"pencil",svgIcon:e.pencilIcon,data:{action:"EditCommand"}},[t.GridContextMenuItemNames.delete]:{name:"delete",text:"Delete",icon:"trash",svgIcon:e.trashIcon,data:{action:"DeleteCommand"}},[t.GridContextMenuItemNames.select]:{name:"select",text:"Select",icon:"table-body",svgIcon:e.tableBodyIcon,items:[{name:"selectRow",text:"Row",icon:"table-row-groups",svgIcon:e.tableRowGroupsIcon,data:{action:"SelectRowCommand"}},{name:"selectAllRows",text:"All rows",icon:"grid",svgIcon:e.gridIcon,data:{action:"SelectAllRowsCommand"}},{name:"clearSelection",text:"Clear selection",icon:"table-unmerge",svgIcon:e.tableUnmergeIcon,data:{action:"ClearSelectionCommand"}}]},[t.GridContextMenuItemNames.copySelection]:{name:"copySelection",text:"Copy selection",icon:"page-header-section",svgIcon:e.pageHeaderSectionIcon,data:{action:"CopySelectionCommand"},options:"withHeaders"},[t.GridContextMenuItemNames.copySelectionNoHeaders]:{name:"copySelectionNoHeaders",text:"Copy selection (No Headers)",icon:"file-txt",svgIcon:e.fileTxtIcon,data:{action:"CopySelectionCommand"}},[t.GridContextMenuItemNames.paste]:{name:"paste",text:"Paste (use CTRL/⌘ + V)",icon:"clipboard",svgIcon:e.clipboardIcon,data:{action:"PasteCommand"}},[t.GridContextMenuItemNames.reorderRow]:{name:"reorderRow",text:"Reorder row",icon:"caret-alt-expand",svgIcon:e.caretAltExpandIcon,items:[{name:"reorderRowUp",text:"Up",icon:"caret-alt-up",svgIcon:e.caretAltUpIcon,data:{action:"ReorderRowCommand"}},{name:"reorderRowDown",text:"Down",icon:"caret-alt-down",svgIcon:e.caretAltDownIcon,data:{action:"ReorderRowCommand"}},{name:"reorderRowTop",text:"Top",icon:"caret-alt-to-top",svgIcon:e.caretAltToTopIcon,data:{action:"ReorderRowCommand"}},{name:"reorderRowBottom",text:"Bottom",icon:"caret-alt-to-bottom",svgIcon:e.caretAltToBottomIcon,data:{action:"ReorderRowCommand"}}]},[t.GridContextMenuItemNames.exportPDF]:{name:"exportPDF",text:"Export to PDF",icon:"file-pdf",svgIcon:e.filePdfIcon,data:{action:"ExportPDFCommand"}},[t.GridContextMenuItemNames.exportExcel]:{name:"exportExcel",text:"Export to Excel",icon:"file-excel",svgIcon:e.fileExcelIcon,items:[{name:"exportToExcelAll",text:"All",data:{action:"ExportExcelCommand"}},{name:"exportToExcelSelection",text:"Selection",data:{action:"ExportExcelCommand"},options:"selection,withHeaders"},{name:"exportToExcelSelectionNoHeaders",text:"Selection (No Headers)",data:{action:"ExportExcelCommand"},options:"selection"}]},[t.GridContextMenuItemNames.separator]:{name:"separator",separator:!0},[t.GridContextMenuItemNames.sortAsc]:{name:"sortAsc",text:"Sort Ascending",icon:"sort-asc-small",svgIcon:e.sortAscSmallIcon,data:{action:"SortCommand"}},[t.GridContextMenuItemNames.sortDesc]:{name:"sortDesc",text:"Sort Descending",icon:"sort-desc-small",svgIcon:e.sortDescSmallIcon,data:{action:"SortCommand"}}},v=n=>{const{show:r,offset:c,dataItem:s,field:d,items:i,onClose:u,onSelect:x}=n,p=R.useLocalization(),C=m.useCallback(a=>{x.call(void 0,{event:a,dataItem:s,field:d})},[x,s,d]),l=m.useCallback(a=>{const o=a;return o.text&&o.name&&(o.text=p.toLanguageString(`contextMenu.${o.name}`,o.text||"")),o.items&&Array.isArray(o.items)&&(o.items=o.items.map(S=>l(S))),o},[p]),g=m.useMemo(()=>i&&i.map(a=>{const o=typeof a=="string"?I[a]:a;return l(o)}),[i,l]);return m.createElement(f.ContextMenu,{show:r,offset:c,items:g,onClose:u,onSelect:C})};exports.GridContextMenu=v;exports.contextMenuItemsMap=I;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as a from "react";
|
|
10
|
-
import { plusIcon as w, pencilIcon as
|
|
10
|
+
import { plusIcon as w, pencilIcon as S, trashIcon as u, tableBodyIcon as R, tableRowGroupsIcon as f, gridIcon as v, tableUnmergeIcon as E, pageHeaderSectionIcon as A, fileTxtIcon as y, clipboardIcon as D, caretAltExpandIcon as b, caretAltUpIcon as T, caretAltDownIcon as H, caretAltToTopIcon as h, caretAltToBottomIcon as M, filePdfIcon as P, fileExcelIcon as N, sortAscSmallIcon as B, sortDescSmallIcon as F } from "@progress/kendo-svg-icons";
|
|
11
11
|
import { useLocalization as U } from "@progress/kendo-react-intl";
|
|
12
12
|
import { ContextMenu as z } from "@progress/kendo-react-layout";
|
|
13
13
|
import { GridContextMenuItemNames as e } from "./enums.mjs";
|
|
@@ -23,14 +23,14 @@ const G = {
|
|
|
23
23
|
name: "edit",
|
|
24
24
|
text: "Edit",
|
|
25
25
|
icon: "pencil",
|
|
26
|
-
svgIcon:
|
|
26
|
+
svgIcon: S,
|
|
27
27
|
data: { action: "EditCommand" }
|
|
28
28
|
},
|
|
29
29
|
[e.delete]: {
|
|
30
30
|
name: "delete",
|
|
31
31
|
text: "Delete",
|
|
32
32
|
icon: "trash",
|
|
33
|
-
svgIcon:
|
|
33
|
+
svgIcon: u,
|
|
34
34
|
data: { action: "DeleteCommand" }
|
|
35
35
|
},
|
|
36
36
|
[e.select]: {
|
package/contextMenu/enums.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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var c=(r=>(r.head="head",r.body="body",r))(c||{}),o=(r=>(r.create="create",r.edit="edit",r.delete="delete",r.select="select",r.copySelection="copySelection",r.copySelectionNoHeaders="copySelectionNoHeaders",r.paste="paste",r.reorderRow="reorderRow",r.exportPDF="exportPDF",r.exportExcel="exportExcel",r.separator="separator",r.sortAsc="sortAsc",r.sortDesc="sortDesc",r))(o||{});exports.GridContextMenuAnchorPart=c;exports.GridContextMenuItemNames=o;
|
package/contextMenu/enums.mjs
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
var r = /* @__PURE__ */ ((c) => (c.head = "head", c.body = "body", c))(r || {}), o = /* @__PURE__ */ ((c) => (c.create = "create", c.edit = "edit", c.delete = "delete", c.select = "select", c.copySelection = "copySelection", c.copySelectionNoHeaders = "copySelectionNoHeaders", c.paste = "paste", c.reorderRow = "reorderRow", c.exportPDF = "exportPDF", c.exportExcel = "exportExcel", c.separator = "separator", c.sortAsc = "sortAsc", c.sortDesc = "sortDesc", c))(o || {});
|
|
10
9
|
export {
|
|
11
10
|
r as GridContextMenuAnchorPart,
|