@progress/kendo-react-grid 5.4.0-dev.202205250548 → 5.4.0-dev.202205271059
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/dist/cdn/js/kendo-react-grid.js +1 -1
- package/dist/es/Grid.d.ts +5 -4
- package/dist/es/Grid.js +25 -19
- package/dist/es/GridColumn.js +1 -1
- package/dist/es/GridNoRecords.js +3 -1
- package/dist/es/GridToolbar.js +3 -1
- package/dist/es/ScrollMode.js +1 -0
- package/dist/es/VirtualScroll.d.ts +2 -2
- package/dist/es/VirtualScroll.js +2 -2
- package/dist/es/cells/GridFilterCell.js +3 -1
- package/dist/es/columnMenu/GridColumnMenuCheckboxFilter.d.ts +2 -2
- package/dist/es/columnMenu/GridColumnMenuCheckboxFilter.js +11 -4
- package/dist/es/columnMenu/GridColumnMenuFilter.d.ts +4 -4
- package/dist/es/columnMenu/GridColumnMenuFilter.js +21 -14
- package/dist/es/columnMenu/GridColumnMenuFilterCell.js +3 -1
- package/dist/es/columnMenu/GridColumnMenuFilterUI.js +3 -1
- package/dist/es/columnMenu/GridColumnMenuGroup.d.ts +1 -1
- package/dist/es/columnMenu/GridColumnMenuGroup.js +3 -1
- package/dist/es/columnMenu/GridColumnMenuItem.js +3 -1
- package/dist/es/columnMenu/GridColumnMenuItemContent.js +3 -1
- package/dist/es/columnMenu/GridColumnMenuItemGroup.js +3 -1
- package/dist/es/columnMenu/GridColumnMenuSort.d.ts +1 -1
- package/dist/es/columnMenu/GridColumnMenuSort.js +3 -1
- package/dist/es/columnMenu/GridColumnMenuWrapper.js +7 -3
- package/dist/es/drag/ColumnDraggable.d.ts +1 -2
- package/dist/es/drag/ColumnDraggable.js +3 -1
- package/dist/es/drag/ColumnResize.d.ts +1 -2
- package/dist/es/drag/ColumnResizer.js +3 -1
- package/dist/es/drag/CommonDragLogic.d.ts +7 -7
- package/dist/es/drag/CommonDragLogic.js +4 -4
- package/dist/es/drag/GroupingIndicator.d.ts +2 -2
- package/dist/es/drag/GroupingIndicator.js +3 -1
- package/dist/es/filterCommon.d.ts +3 -3
- package/dist/es/footer/Footer.js +3 -1
- package/dist/es/footer/FooterRow.d.ts +1 -1
- package/dist/es/footer/FooterRow.js +4 -2
- package/dist/es/header/FilterRow.js +3 -1
- package/dist/es/header/GridHeaderCell.js +3 -1
- package/dist/es/header/GridHeaderSelectionCell.js +3 -1
- package/dist/es/header/GroupPanel.d.ts +2 -2
- package/dist/es/header/GroupPanel.js +3 -1
- package/dist/es/header/Header.d.ts +2 -2
- package/dist/es/header/Header.js +6 -5
- package/dist/es/header/HeaderRow.js +3 -1
- package/dist/es/interfaces/GridCellProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuBaseProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuColumnProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuFilterBaseProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuFilterUIProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuGroupBaseProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuProps.js +1 -0
- package/dist/es/interfaces/GridColumnMenuSortBaseProps.js +1 -0
- package/dist/es/interfaces/GridColumnProps.js +1 -0
- package/dist/es/interfaces/GridDetailRowProps.js +1 -0
- package/dist/es/interfaces/GridFilterCellProps.js +1 -0
- package/dist/es/interfaces/GridFilterOperator.js +1 -0
- package/dist/es/interfaces/GridFilterOperators.js +1 -0
- package/dist/es/interfaces/GridFooterCellProps.js +1 -0
- package/dist/es/interfaces/GridGroupableSettings.js +1 -0
- package/dist/es/interfaces/GridHeaderCellProps.js +1 -0
- package/dist/es/interfaces/GridNoRecordsProps.js +1 -0
- package/dist/es/interfaces/GridProps.js +1 -0
- package/dist/es/interfaces/GridRowProps.js +1 -0
- package/dist/es/interfaces/GridRowType.js +1 -0
- package/dist/es/interfaces/GridSelectableSettings.js +1 -0
- package/dist/es/interfaces/GridSortSettings.d.ts +1 -11
- package/dist/es/interfaces/GridSortSettings.js +6 -1
- package/dist/es/interfaces/GridToolbarProps.js +1 -0
- package/dist/es/interfaces/events.js +1 -0
- package/dist/es/main.js +1 -0
- package/dist/es/messages/index.d.ts +28 -28
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/paging/Page.js +1 -0
- package/dist/es/rows/GridDetailRow.js +3 -1
- package/dist/es/rows/GridRow.js +3 -1
- package/dist/es/utils/index.js +4 -2
- package/dist/npm/Grid.d.ts +5 -4
- package/dist/npm/Grid.js +26 -19
- package/dist/npm/GridColumn.js +4 -2
- package/dist/npm/GridNoRecords.js +4 -1
- package/dist/npm/GridToolbar.js +4 -1
- package/dist/npm/VirtualScroll.d.ts +2 -2
- package/dist/npm/VirtualScroll.js +3 -2
- package/dist/npm/cells/GridCell.js +3 -1
- package/dist/npm/cells/GridDetailCell.js +3 -1
- package/dist/npm/cells/GridDetailHierarchyCell.js +3 -1
- package/dist/npm/cells/GridEditCell.js +3 -1
- package/dist/npm/cells/GridFilterCell.js +4 -1
- package/dist/npm/cells/GridGroupCell.js +3 -1
- package/dist/npm/cells/GridHierarchyCell.js +3 -1
- package/dist/npm/cells/GridSelectionCell.js +3 -1
- package/dist/npm/columnMenu/GridColumnMenuCheckboxFilter.d.ts +2 -2
- package/dist/npm/columnMenu/GridColumnMenuCheckboxFilter.js +12 -4
- package/dist/npm/columnMenu/GridColumnMenuFilter.d.ts +4 -4
- package/dist/npm/columnMenu/GridColumnMenuFilter.js +26 -16
- package/dist/npm/columnMenu/GridColumnMenuFilterCell.js +4 -1
- package/dist/npm/columnMenu/GridColumnMenuFilterUI.js +4 -1
- package/dist/npm/columnMenu/GridColumnMenuGroup.d.ts +1 -1
- package/dist/npm/columnMenu/GridColumnMenuGroup.js +4 -1
- package/dist/npm/columnMenu/GridColumnMenuItem.js +4 -1
- package/dist/npm/columnMenu/GridColumnMenuItemContent.js +4 -1
- package/dist/npm/columnMenu/GridColumnMenuItemGroup.js +4 -1
- package/dist/npm/columnMenu/GridColumnMenuSort.d.ts +1 -1
- package/dist/npm/columnMenu/GridColumnMenuSort.js +4 -1
- package/dist/npm/columnMenu/GridColumnMenuWrapper.js +8 -3
- package/dist/npm/constants/index.js +1 -0
- package/dist/npm/drag/ColumnDraggable.d.ts +1 -2
- package/dist/npm/drag/ColumnDraggable.js +4 -1
- package/dist/npm/drag/ColumnResize.d.ts +1 -2
- package/dist/npm/drag/ColumnResize.js +1 -0
- package/dist/npm/drag/ColumnResizer.js +4 -1
- package/dist/npm/drag/CommonDragLogic.d.ts +7 -7
- package/dist/npm/drag/CommonDragLogic.js +5 -4
- package/dist/npm/drag/GroupingIndicator.d.ts +2 -2
- package/dist/npm/drag/GroupingIndicator.js +4 -1
- package/dist/npm/filterCommon.d.ts +3 -3
- package/dist/npm/filterCommon.js +15 -7
- package/dist/npm/footer/Footer.js +4 -1
- package/dist/npm/footer/FooterRow.d.ts +1 -1
- package/dist/npm/footer/FooterRow.js +5 -2
- package/dist/npm/header/FilterRow.js +4 -1
- package/dist/npm/header/GridHeaderCell.js +4 -1
- package/dist/npm/header/GridHeaderSelectionCell.js +4 -1
- package/dist/npm/header/GroupPanel.d.ts +2 -2
- package/dist/npm/header/GroupPanel.js +4 -1
- package/dist/npm/header/Header.d.ts +2 -2
- package/dist/npm/header/Header.js +7 -5
- package/dist/npm/header/HeaderRow.js +4 -1
- package/dist/npm/interfaces/GridSortSettings.d.ts +1 -11
- package/dist/npm/interfaces/GridSortSettings.js +9 -2
- package/dist/npm/main.js +39 -27
- package/dist/npm/messages/index.d.ts +28 -28
- package/dist/npm/messages/index.js +2 -1
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/paging/GridPagerSettings.js +3 -1
- package/dist/npm/rows/GridDetailRow.js +4 -1
- package/dist/npm/rows/GridRow.js +4 -1
- package/dist/npm/utils/index.js +9 -4
- package/dist/systemjs/kendo-react-grid.js +1 -1
- package/package.json +18 -18
package/dist/es/Grid.d.ts
CHANGED
|
@@ -148,13 +148,14 @@ export declare class Grid extends React.Component<GridProps, {}> {
|
|
|
148
148
|
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
149
149
|
* ```
|
|
150
150
|
*/
|
|
151
|
-
|
|
151
|
+
get columns(): GridColumnProps[];
|
|
152
152
|
/**
|
|
153
153
|
* Returns the HTML element of the Grid component.
|
|
154
154
|
*/
|
|
155
|
-
|
|
156
|
-
private
|
|
155
|
+
get element(): HTMLDivElement | null;
|
|
156
|
+
private get document();
|
|
157
157
|
private headerRef;
|
|
158
|
+
private headerElementRef;
|
|
158
159
|
private _element;
|
|
159
160
|
private tableElement;
|
|
160
161
|
private vs;
|
|
@@ -163,7 +164,7 @@ export declare class Grid extends React.Component<GridProps, {}> {
|
|
|
163
164
|
private forceUpdateTimeout;
|
|
164
165
|
private isRtl;
|
|
165
166
|
private _gridId;
|
|
166
|
-
private
|
|
167
|
+
private get _header();
|
|
167
168
|
constructor(props: GridProps);
|
|
168
169
|
/**
|
|
169
170
|
* Method to allow the scroll to be set to a specific row index.
|
package/dist/es/Grid.js
CHANGED
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -22,6 +24,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
22
24
|
};
|
|
23
25
|
return __assign.apply(this, arguments);
|
|
24
26
|
};
|
|
27
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
28
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
29
|
+
to[j] = from[i];
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
25
32
|
import * as React from 'react';
|
|
26
33
|
import * as PropTypes from 'prop-types';
|
|
27
34
|
import { dispatchEvent, classNames, getter, guid, setScrollbarWidth, canUseDOM } from '@progress/kendo-react-common';
|
|
@@ -92,6 +99,7 @@ var Grid = /** @class */ (function (_super) {
|
|
|
92
99
|
_this.navigationStateRef = { current: undefined };
|
|
93
100
|
_this.wrapperScrollTop = 0;
|
|
94
101
|
_this.headerRef = React.createRef();
|
|
102
|
+
_this.headerElementRef = React.createRef();
|
|
95
103
|
_this._element = null;
|
|
96
104
|
_this.tableElement = null;
|
|
97
105
|
_this._footer = null;
|
|
@@ -159,8 +167,7 @@ var Grid = /** @class */ (function (_super) {
|
|
|
159
167
|
});
|
|
160
168
|
if (_this.props.onKeyDown) {
|
|
161
169
|
var _a = getSelectionOptions(_this.props.selectable), mode = _a.mode, cell = _a.cell;
|
|
162
|
-
_this.props.onKeyDown.call(undefined, __assign({ dataItems: _this.getLeafDataItems(), mode: mode,
|
|
163
|
-
cell: cell, componentId: _this._gridId, selectedField: _this.props.selectedField }, _this.getArguments(event)));
|
|
170
|
+
_this.props.onKeyDown.call(undefined, __assign({ dataItems: _this.getLeafDataItems(), mode: mode, cell: cell, componentId: _this._gridId, selectedField: _this.props.selectedField }, _this.getArguments(event)));
|
|
164
171
|
}
|
|
165
172
|
};
|
|
166
173
|
_this.onFocus = function (event) {
|
|
@@ -188,12 +195,12 @@ var Grid = /** @class */ (function (_super) {
|
|
|
188
195
|
if (event.field === _this.props.expandField || _this.props.group && event.field === undefined) {
|
|
189
196
|
var expandChange = _this.props.onExpandChange;
|
|
190
197
|
if (expandChange) {
|
|
191
|
-
expandChange.call(undefined, __assign({}, _this.getArguments(event.syntheticEvent), { dataItem: event.dataItem, dataIndex: event.dataIndex, value: event.value }));
|
|
198
|
+
expandChange.call(undefined, __assign(__assign({}, _this.getArguments(event.syntheticEvent)), { dataItem: event.dataItem, dataIndex: event.dataIndex, value: event.value }));
|
|
192
199
|
}
|
|
193
200
|
return;
|
|
194
201
|
}
|
|
195
202
|
if (itemChange) {
|
|
196
|
-
itemChange.call(undefined, __assign({}, _this.getArguments(event.syntheticEvent), { dataItem: event.dataItem, field: event.field, value: event.value }));
|
|
203
|
+
itemChange.call(undefined, __assign(__assign({}, _this.getArguments(event.syntheticEvent)), { dataItem: event.dataItem, field: event.field, value: event.value }));
|
|
197
204
|
}
|
|
198
205
|
};
|
|
199
206
|
_this.onHeaderSelectionChange = function (event) {
|
|
@@ -313,7 +320,7 @@ var Grid = /** @class */ (function (_super) {
|
|
|
313
320
|
var shuffledColumns = this._columns.filter(function (q) { return q.declarationIndex >= 0 && q.parentIndex === -1; });
|
|
314
321
|
return sanitizeColumns(shuffledColumns);
|
|
315
322
|
},
|
|
316
|
-
enumerable:
|
|
323
|
+
enumerable: false,
|
|
317
324
|
configurable: true
|
|
318
325
|
});
|
|
319
326
|
Object.defineProperty(Grid.prototype, "element", {
|
|
@@ -323,7 +330,7 @@ var Grid = /** @class */ (function (_super) {
|
|
|
323
330
|
get: function () {
|
|
324
331
|
return this._element;
|
|
325
332
|
},
|
|
326
|
-
enumerable:
|
|
333
|
+
enumerable: false,
|
|
327
334
|
configurable: true
|
|
328
335
|
});
|
|
329
336
|
Object.defineProperty(Grid.prototype, "document", {
|
|
@@ -334,14 +341,14 @@ var Grid = /** @class */ (function (_super) {
|
|
|
334
341
|
// useful only for user actions
|
|
335
342
|
return (this.element && this.element.ownerDocument) || document;
|
|
336
343
|
},
|
|
337
|
-
enumerable:
|
|
344
|
+
enumerable: false,
|
|
338
345
|
configurable: true
|
|
339
346
|
});
|
|
340
347
|
Object.defineProperty(Grid.prototype, "_header", {
|
|
341
348
|
get: function () {
|
|
342
349
|
return this.headerRef.current;
|
|
343
350
|
},
|
|
344
|
-
enumerable:
|
|
351
|
+
enumerable: false,
|
|
345
352
|
configurable: true
|
|
346
353
|
});
|
|
347
354
|
/**
|
|
@@ -444,7 +451,7 @@ var Grid = /** @class */ (function (_super) {
|
|
|
444
451
|
child.type.displayName === 'KendoReactGridNoRecords'; });
|
|
445
452
|
var leafColumns = this._columns.filter(function (c) { return c.children.length === 0; });
|
|
446
453
|
var groupingPanel = groupable && (React.createElement(GroupPanel, { group: this.props.group || [], groupChange: this.groupChange, pressHandler: this.dragLogic.pressHandler, dragHandler: this.dragLogic.dragHandler, releaseHandler: this.dragLogic.releaseHandler, refCallback: this.dragLogic.refGroupPanelDiv, resolveTitle: this.resolveTitle }));
|
|
447
|
-
var header = (React.createElement(Header, { columnResize: this.columnResize, staticHeaders: this.props.scrollable !== 'none', scrollableDataElement: function () { return _this.vs.container; }, draggable: this.props.reorderable || groupable, ref: this.headerRef, headerRow: React.createElement(HeaderRow, { sort: this.props.sort, sortable: this.props.sortable, sortChange: this.sortChange, group: this.props.group || [], groupable: groupable, groupChange: this.groupChange, filter: this.props.filter, filterable: this.props.filterable, filterOperators: this.props.filterOperators || operators, filterChange: this.filterChange, columnMenu: this.props.columnMenu, selectionChange: this.onHeaderSelectionChange, columns: this._columns, columnResize: this.columnResize, pressHandler: this.dragLogic.pressHandler, dragHandler: this.dragLogic.dragHandler, releaseHandler: this.dragLogic.releaseHandler, columnsMap: this._columnsMap, cellRender: this.props.headerCellRender, isRtl: this.isRtl, dragClue: this.dragLogic.dragClueRef, headerRef: this.
|
|
454
|
+
var header = (React.createElement(Header, { columnResize: this.columnResize, staticHeaders: this.props.scrollable !== 'none', scrollableDataElement: function () { return _this.vs.container; }, draggable: this.props.reorderable || groupable, ref: this.headerRef, elemRef: this.headerElementRef, headerRow: React.createElement(HeaderRow, { sort: this.props.sort, sortable: this.props.sortable, sortChange: this.sortChange, group: this.props.group || [], groupable: groupable, groupChange: this.groupChange, filter: this.props.filter, filterable: this.props.filterable, filterOperators: this.props.filterOperators || operators, filterChange: this.filterChange, columnMenu: this.props.columnMenu, selectionChange: this.onHeaderSelectionChange, columns: this._columns, columnResize: this.columnResize, pressHandler: this.dragLogic.pressHandler, dragHandler: this.dragLogic.dragHandler, releaseHandler: this.dragLogic.releaseHandler, columnsMap: this._columnsMap, cellRender: this.props.headerCellRender, isRtl: this.isRtl, dragClue: this.dragLogic.dragClueRef, headerRef: this.headerElementRef, containerRef: this.vs.containerRef }), filterRow: this.props.filterable && React.createElement(FilterRow, { columns: this._columns, filter: this.props.filter, filterOperators: this.props.filterOperators || operators, filterChange: this.filterChange, sort: this.props.sort, cellRender: this.props.filterCellRender, isRtl: this.isRtl, ariaRowIndex: this._columnsMap.length + 1 }) || undefined, cols: leafColumns.map(function (column, index) { return (React.createElement("col", { key: index.toString(), width: column.width !== undefined ?
|
|
448
455
|
Math.floor(parseFloat(column.width.toString())) + 'px' : undefined })); }) }));
|
|
449
456
|
var scrollLeft = this.vs && this.vs.container && this.vs.container.scrollLeft || 0;
|
|
450
457
|
var tableWidth = parseFloat(((this.props.style || {}).width || '').toString());
|
|
@@ -646,23 +653,22 @@ var Grid = /** @class */ (function (_super) {
|
|
|
646
653
|
if (this.props.onSelectionChange) {
|
|
647
654
|
var event_1 = options.event, dataItem = options.dataItem, dataIndex = options.dataIndex, columnIndex = options.columnIndex;
|
|
648
655
|
var _a = getSelectionOptions(this.props.selectable), mode = _a.mode, cell = _a.cell;
|
|
649
|
-
var selectionEvent = __assign({}, this.getArguments(event_1.syntheticEvent), { dataItem: dataItem, startColIndex: columnIndex, endColIndex: columnIndex, startRowIndex: dataIndex, endRowIndex: dataIndex, dataItems: this.getLeafDataItems(), altKey: false, ctrlKey: false, shiftKey: false, metaKey: false, mode: mode,
|
|
650
|
-
cell: cell, isDrag: false, componentId: this._gridId, selectedField: this.props.selectedField || '' });
|
|
656
|
+
var selectionEvent = __assign(__assign({}, this.getArguments(event_1.syntheticEvent)), { dataItem: dataItem, startColIndex: columnIndex, endColIndex: columnIndex, startRowIndex: dataIndex, endRowIndex: dataIndex, dataItems: this.getLeafDataItems(), altKey: false, ctrlKey: false, shiftKey: false, metaKey: false, mode: mode, cell: cell, isDrag: false, componentId: this._gridId, selectedField: this.props.selectedField || '' });
|
|
651
657
|
this.props.onSelectionChange.call(undefined, selectionEvent);
|
|
652
658
|
}
|
|
653
659
|
};
|
|
654
660
|
Grid.prototype.raiseDataEvent = function (handler, data, moreData, syntheticEvent) {
|
|
655
661
|
var dataStateChange = this.props.onDataStateChange;
|
|
656
662
|
if (handler) {
|
|
657
|
-
handler.call(undefined, __assign({}, this.getArguments(syntheticEvent), data));
|
|
663
|
+
handler.call(undefined, __assign(__assign({}, this.getArguments(syntheticEvent)), data));
|
|
658
664
|
}
|
|
659
665
|
else if (dataStateChange) {
|
|
660
|
-
dataStateChange.call(undefined, __assign({}, this.getArguments(syntheticEvent), { dataState: __assign({}, this.getDataState(), moreData) }));
|
|
666
|
+
dataStateChange.call(undefined, __assign(__assign({}, this.getArguments(syntheticEvent)), { dataState: __assign(__assign({}, this.getDataState()), moreData) }));
|
|
661
667
|
}
|
|
662
668
|
};
|
|
663
669
|
Grid.prototype.columnReorder = function (prev, next, nativeEvent) {
|
|
664
|
-
var _this = this;
|
|
665
670
|
var _a;
|
|
671
|
+
var _this = this;
|
|
666
672
|
var depth = this._columns[prev].depth;
|
|
667
673
|
var end = function (index) {
|
|
668
674
|
do {
|
|
@@ -671,7 +677,7 @@ var Grid = /** @class */ (function (_super) {
|
|
|
671
677
|
return index;
|
|
672
678
|
};
|
|
673
679
|
var spliced = this._columns.splice(prev, end(prev) - prev);
|
|
674
|
-
(_a = this._columns).splice.apply(_a, [prev < next ? end(next - spliced.length) : next, 0]
|
|
680
|
+
(_a = this._columns).splice.apply(_a, __spreadArray([prev < next ? end(next - spliced.length) : next, 0], spliced));
|
|
675
681
|
this._columns.filter(function (q) { return q.declarationIndex >= 0; }).forEach(function (c, i) { return c.orderIndex = i; });
|
|
676
682
|
var eventColumnProps = this.columns;
|
|
677
683
|
this.forceUpdate();
|
|
@@ -688,7 +694,7 @@ var Grid = /** @class */ (function (_super) {
|
|
|
688
694
|
return;
|
|
689
695
|
}
|
|
690
696
|
var group = this.props.group.slice();
|
|
691
|
-
group.splice.apply(group, [nextIndex, 0]
|
|
697
|
+
group.splice.apply(group, __spreadArray([nextIndex, 0], group.splice(prevIndex, 1)));
|
|
692
698
|
this.groupChange(group, nativeEvent);
|
|
693
699
|
};
|
|
694
700
|
Grid.prototype.columnToGroup = function (columnIndex, groupIndex, nativeEvent) {
|
|
@@ -759,11 +765,11 @@ var Grid = /** @class */ (function (_super) {
|
|
|
759
765
|
};
|
|
760
766
|
var columnIndexOffset = 0;
|
|
761
767
|
if (this.props.expandField && (this.props.onExpandChange) && this.props.detail) {
|
|
762
|
-
this._columns.unshift(__assign({}, defaultServiceProps, { cell: GridHierarchyCell, field: this.props.expandField, headerClassName: 'k-hierarchy-cell k-header', id: navigationTools.generateNavigatableId("" + this._columns.length, idPrefix, 'column') }));
|
|
768
|
+
this._columns.unshift(__assign(__assign({}, defaultServiceProps), { cell: GridHierarchyCell, field: this.props.expandField, headerClassName: 'k-hierarchy-cell k-header', id: navigationTools.generateNavigatableId("" + this._columns.length, idPrefix, 'column') }));
|
|
763
769
|
columnIndexOffset++;
|
|
764
770
|
}
|
|
765
771
|
for (var i = 0; i < groupCount; i++) {
|
|
766
|
-
this._columns.unshift(__assign({}, defaultServiceProps, { isAccessible: false, cell: GridGroupCell, field: 'value' }));
|
|
772
|
+
this._columns.unshift(__assign(__assign({}, defaultServiceProps), { isAccessible: false, cell: GridGroupCell, field: 'value' }));
|
|
767
773
|
columnIndexOffset++;
|
|
768
774
|
}
|
|
769
775
|
this._columns.slice(columnIndexOffset).forEach(function (c) { return c.parentIndex >= 0 && (c.parentIndex += columnIndexOffset); });
|
package/dist/es/GridColumn.js
CHANGED
package/dist/es/GridNoRecords.js
CHANGED
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
package/dist/es/GridToolbar.js
CHANGED
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
package/dist/es/ScrollMode.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -19,7 +19,7 @@ export declare class VirtualScroll {
|
|
|
19
19
|
fixedScroll: boolean;
|
|
20
20
|
askedSkip: number | undefined;
|
|
21
21
|
containerRef: React.RefObject<HTMLDivElement>;
|
|
22
|
-
|
|
22
|
+
get container(): HTMLDivElement | null;
|
|
23
23
|
private prevScrollPos;
|
|
24
24
|
private syncTimeout;
|
|
25
25
|
private tableTranslate;
|
|
@@ -28,7 +28,7 @@ export declare class VirtualScroll {
|
|
|
28
28
|
/**
|
|
29
29
|
* @return - The row heights in an array.
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
get rowHeights(): Array<{
|
|
32
32
|
line: number;
|
|
33
33
|
acc: number;
|
|
34
34
|
}>;
|
package/dist/es/VirtualScroll.js
CHANGED
|
@@ -29,7 +29,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
29
29
|
get: function () {
|
|
30
30
|
return this.containerRef.current;
|
|
31
31
|
},
|
|
32
|
-
enumerable:
|
|
32
|
+
enumerable: false,
|
|
33
33
|
configurable: true
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(VirtualScroll.prototype, "rowHeights", {
|
|
@@ -58,7 +58,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
58
58
|
}
|
|
59
59
|
return result;
|
|
60
60
|
},
|
|
61
|
-
enumerable:
|
|
61
|
+
enumerable: false,
|
|
62
62
|
configurable: true
|
|
63
63
|
});
|
|
64
64
|
VirtualScroll.prototype.changePage = function (skip, e) {
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -98,11 +98,11 @@ export declare class GridColumnMenuCheckboxFilter extends React.Component<GridCo
|
|
|
98
98
|
/**
|
|
99
99
|
* @hidden
|
|
100
100
|
*/
|
|
101
|
-
clear: (e: React.SyntheticEvent<any
|
|
101
|
+
clear: (e: React.SyntheticEvent<any>) => void;
|
|
102
102
|
/**
|
|
103
103
|
* @hidden
|
|
104
104
|
*/
|
|
105
|
-
submit: (e: React.SyntheticEvent<any
|
|
105
|
+
submit: (e: React.SyntheticEvent<any>) => void;
|
|
106
106
|
/**
|
|
107
107
|
* @hidden
|
|
108
108
|
*/
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -22,6 +24,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
22
24
|
};
|
|
23
25
|
return __assign.apply(this, arguments);
|
|
24
26
|
};
|
|
27
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
28
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
29
|
+
to[j] = from[i];
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
25
32
|
import * as React from 'react';
|
|
26
33
|
import { GridColumnMenuItem } from './GridColumnMenuItem';
|
|
27
34
|
import { GridColumnMenuItemGroup } from './GridColumnMenuItemGroup';
|
|
@@ -170,7 +177,7 @@ var GridColumnMenuCheckboxFilter = /** @class */ (function (_super) {
|
|
|
170
177
|
_this.handleCheckBoxChange = function (e, value) {
|
|
171
178
|
var field = _this.props.column.field || '';
|
|
172
179
|
var newFilter = __assign({}, _this.state.currentFilter);
|
|
173
|
-
var filters = _this.state.currentFilter.filters
|
|
180
|
+
var filters = __spreadArray([], _this.state.currentFilter.filters) || [];
|
|
174
181
|
var fieldFilters = [];
|
|
175
182
|
if (_this.compositeFilterIndex !== -1 && newFilter.filters[_this.compositeFilterIndex].filters && value !== 'all') {
|
|
176
183
|
fieldFilters = newFilter.filters[_this.compositeFilterIndex].filters;
|
|
@@ -212,7 +219,7 @@ var GridColumnMenuCheckboxFilter = /** @class */ (function (_super) {
|
|
|
212
219
|
_this.isAllSelected = function () {
|
|
213
220
|
var isAllChecked = false;
|
|
214
221
|
if (_this.state.currentFilter) {
|
|
215
|
-
var filters_1 = _this.state.currentFilter.filters
|
|
222
|
+
var filters_1 = __spreadArray([], _this.state.currentFilter.filters);
|
|
216
223
|
if (_this.compositeFilterIndex === -1) {
|
|
217
224
|
return false;
|
|
218
225
|
}
|
|
@@ -263,7 +270,7 @@ var GridColumnMenuCheckboxFilter = /** @class */ (function (_super) {
|
|
|
263
270
|
var expandState = this.isControlled() ? this.props.expanded : this.state.expanded;
|
|
264
271
|
var filterValues = [];
|
|
265
272
|
if (this.state.currentFilter) {
|
|
266
|
-
var currentFilter = this.state.currentFilter.filters
|
|
273
|
+
var currentFilter = __spreadArray([], this.state.currentFilter.filters);
|
|
267
274
|
this.compositeFilterIndex = currentFilter.findIndex(function (filter) {
|
|
268
275
|
if (filter.filters && filter.filters.length > 0) {
|
|
269
276
|
return filter.filters[0].field === column.field;
|
|
@@ -6,11 +6,11 @@ import { ComponentType } from 'react';
|
|
|
6
6
|
/**
|
|
7
7
|
* @hidden
|
|
8
8
|
*/
|
|
9
|
-
export declare const rootFilterOrDefault: (rootFilter: CompositeFilterDescriptor) => CompositeFilterDescriptor;
|
|
9
|
+
export declare const rootFilterOrDefault: (rootFilter: CompositeFilterDescriptor | undefined) => CompositeFilterDescriptor;
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
|
-
export declare const filterGroupByField: (field: string, filter: CompositeFilterDescriptor) => CompositeFilterDescriptor;
|
|
13
|
+
export declare const filterGroupByField: (field: string, filter: CompositeFilterDescriptor | undefined) => CompositeFilterDescriptor | null;
|
|
14
14
|
/**
|
|
15
15
|
* The props of the GridColumnMenuFilter component.
|
|
16
16
|
*/
|
|
@@ -141,7 +141,7 @@ export declare class GridColumnMenuFilter extends React.Component<GridColumnMenu
|
|
|
141
141
|
/**
|
|
142
142
|
* @hidden
|
|
143
143
|
*/
|
|
144
|
-
clear: (event: React.SyntheticEvent<any
|
|
144
|
+
clear: (event: React.SyntheticEvent<any>) => void;
|
|
145
145
|
/**
|
|
146
146
|
* @hidden
|
|
147
147
|
*/
|
|
@@ -149,7 +149,7 @@ export declare class GridColumnMenuFilter extends React.Component<GridColumnMenu
|
|
|
149
149
|
/**
|
|
150
150
|
* @hidden
|
|
151
151
|
*/
|
|
152
|
-
submit: (event: React.SyntheticEvent<any
|
|
152
|
+
submit: (event: React.SyntheticEvent<any>) => void;
|
|
153
153
|
/**
|
|
154
154
|
* @hidden
|
|
155
155
|
*/
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -22,6 +24,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
22
24
|
};
|
|
23
25
|
return __assign.apply(this, arguments);
|
|
24
26
|
};
|
|
27
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
28
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
29
|
+
to[j] = from[i];
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
25
32
|
import * as React from 'react';
|
|
26
33
|
import { isCompositeFilterDescriptor } from '@progress/kendo-data-query';
|
|
27
34
|
import { GridColumnMenuItem } from './GridColumnMenuItem';
|
|
@@ -119,21 +126,21 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
|
|
|
119
126
|
* @hidden
|
|
120
127
|
*/
|
|
121
128
|
_this.removeGroup = function (group, rootFilter) {
|
|
122
|
-
var filters = rootFilter.filters
|
|
129
|
+
var filters = __spreadArray([], rootFilter.filters);
|
|
123
130
|
var groupIndex = filters
|
|
124
131
|
.findIndex(function (f) { return f === group; });
|
|
125
132
|
if (groupIndex > -1) {
|
|
126
133
|
filters.splice(groupIndex, 1);
|
|
127
134
|
}
|
|
128
|
-
return __assign({}, rootFilter, { filters: filters });
|
|
135
|
+
return __assign(__assign({}, rootFilter), { filters: filters });
|
|
129
136
|
};
|
|
130
137
|
/**
|
|
131
138
|
* @hidden
|
|
132
139
|
*/
|
|
133
140
|
_this.insertGroup = function (group, rootFilter) {
|
|
134
|
-
return __assign({}, rootFilter, { filters: [
|
|
141
|
+
return __assign(__assign({}, rootFilter), { filters: __spreadArray([
|
|
135
142
|
group
|
|
136
|
-
]
|
|
143
|
+
], rootFilter.filters) });
|
|
137
144
|
};
|
|
138
145
|
/**
|
|
139
146
|
* @hidden
|
|
@@ -172,12 +179,12 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
|
|
|
172
179
|
_this.filterChange = function (filterIndex, e) {
|
|
173
180
|
var filters = _this.state.filterGroup.filters.map(function (f, i) {
|
|
174
181
|
if (i === filterIndex) {
|
|
175
|
-
return __assign({}, f, { value: e.value, operator: e.operator });
|
|
182
|
+
return __assign(__assign({}, f), { value: e.value, operator: e.operator });
|
|
176
183
|
}
|
|
177
184
|
return f;
|
|
178
185
|
});
|
|
179
186
|
_this.setState({
|
|
180
|
-
filterGroup: __assign({}, _this.state.filterGroup, { filters: filters })
|
|
187
|
+
filterGroup: __assign(__assign({}, _this.state.filterGroup), { filters: filters })
|
|
181
188
|
});
|
|
182
189
|
};
|
|
183
190
|
/**
|
|
@@ -185,7 +192,7 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
|
|
|
185
192
|
*/
|
|
186
193
|
_this.logicChange = function (event) {
|
|
187
194
|
_this.setState({
|
|
188
|
-
filterGroup: __assign({}, _this.state.filterGroup, { logic: event.target.value.operator })
|
|
195
|
+
filterGroup: __assign(__assign({}, _this.state.filterGroup), { logic: event.target.value.operator })
|
|
189
196
|
});
|
|
190
197
|
};
|
|
191
198
|
/**
|
|
@@ -204,7 +211,7 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
|
|
|
204
211
|
_this.props.onFilterChange(null, event);
|
|
205
212
|
}
|
|
206
213
|
else {
|
|
207
|
-
_this.props.onFilterChange(__assign({}, rootFilter, { filters: rootFilters }), event);
|
|
214
|
+
_this.props.onFilterChange(__assign(__assign({}, rootFilter), { filters: rootFilters }), event);
|
|
208
215
|
}
|
|
209
216
|
if (_this.props.onCloseMenu) {
|
|
210
217
|
_this.props.onCloseMenu();
|
|
@@ -214,7 +221,7 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
|
|
|
214
221
|
* @hidden
|
|
215
222
|
*/
|
|
216
223
|
_this.currentFilterGroup = function () {
|
|
217
|
-
return __assign({}, _this.state.filterGroup, { filters: _this.state
|
|
224
|
+
return __assign(__assign({}, _this.state.filterGroup), { filters: _this.state
|
|
218
225
|
.filterGroup
|
|
219
226
|
.filters
|
|
220
227
|
.filter(function (nf) {
|
|
@@ -242,18 +249,18 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
|
|
|
242
249
|
}
|
|
243
250
|
return f;
|
|
244
251
|
});
|
|
245
|
-
updatedFilter = __assign({}, rootFilter, { filters: rootFilters });
|
|
252
|
+
updatedFilter = __assign(__assign({}, rootFilter), { filters: rootFilters });
|
|
246
253
|
}
|
|
247
254
|
else if (currentFilterGroup.filters.length === 0) {
|
|
248
255
|
var rootFilters = rootFilter
|
|
249
256
|
.filters
|
|
250
257
|
.filter(function (f) { return f !== filterGroup; });
|
|
251
258
|
if (rootFilters.length) {
|
|
252
|
-
updatedFilter = __assign({}, rootFilter, { filters: rootFilters });
|
|
259
|
+
updatedFilter = __assign(__assign({}, rootFilter), { filters: rootFilters });
|
|
253
260
|
}
|
|
254
261
|
}
|
|
255
262
|
else {
|
|
256
|
-
updatedFilter = __assign({}, rootFilter, { filters: rootFilter.filters
|
|
263
|
+
updatedFilter = __assign(__assign({}, rootFilter), { filters: __spreadArray(__spreadArray([], rootFilter.filters), [currentFilterGroup]) });
|
|
257
264
|
}
|
|
258
265
|
_this.props.onFilterChange(updatedFilter, event);
|
|
259
266
|
if (_this.props.onCloseMenu) {
|
|
@@ -265,7 +272,7 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
|
|
|
265
272
|
var filterType = getFilterType(props.column.filter);
|
|
266
273
|
var defaultOperator = getDefaultOperator(props.filterOperators, filterType);
|
|
267
274
|
filterGroup = filterGroupByField(props.column.field, props.filter);
|
|
268
|
-
filterGroup = filterGroup ? __assign({}, filterGroup, { filters: filterGroup.filters.map(function (f) {
|
|
275
|
+
filterGroup = filterGroup ? __assign(__assign({}, filterGroup), { filters: filterGroup.filters.map(function (f) {
|
|
269
276
|
return __assign({}, f);
|
|
270
277
|
}) }) : {
|
|
271
278
|
logic: 'and',
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -65,7 +65,7 @@ export declare class GridColumnMenuGroup extends React.Component<GridColumnMenuG
|
|
|
65
65
|
/**
|
|
66
66
|
* @hidden
|
|
67
67
|
*/
|
|
68
|
-
onGroupClick: (event: React.MouseEvent<HTMLAnchorElement
|
|
68
|
+
onGroupClick: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
69
69
|
/**
|
|
70
70
|
* @hidden
|
|
71
71
|
*/
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -77,7 +77,7 @@ export declare class GridColumnMenuSort extends React.Component<GridColumnMenuSo
|
|
|
77
77
|
/**
|
|
78
78
|
* @hidden
|
|
79
79
|
*/
|
|
80
|
-
onSort: (event: React.MouseEvent<HTMLAnchorElement
|
|
80
|
+
onSort: (event: React.MouseEvent<HTMLAnchorElement>, selectedDir: 'asc' | 'desc') => void;
|
|
81
81
|
/**
|
|
82
82
|
* @hidden
|
|
83
83
|
*/
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|