@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
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -23,7 +25,13 @@ var __assign = (this && this.__assign) || function () {
|
|
|
23
25
|
};
|
|
24
26
|
return __assign.apply(this, arguments);
|
|
25
27
|
};
|
|
28
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
29
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
30
|
+
to[j] = from[i];
|
|
31
|
+
return to;
|
|
32
|
+
};
|
|
26
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.GridColumnMenuFilter = exports.filterGroupByField = exports.rootFilterOrDefault = void 0;
|
|
27
35
|
var React = require("react");
|
|
28
36
|
var kendo_data_query_1 = require("@progress/kendo-data-query");
|
|
29
37
|
var GridColumnMenuItem_1 = require("./GridColumnMenuItem");
|
|
@@ -37,13 +45,14 @@ var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
|
|
|
37
45
|
/**
|
|
38
46
|
* @hidden
|
|
39
47
|
*/
|
|
40
|
-
|
|
48
|
+
var rootFilterOrDefault = function (rootFilter) {
|
|
41
49
|
return (rootFilter || { filters: [], logic: 'and' });
|
|
42
50
|
};
|
|
51
|
+
exports.rootFilterOrDefault = rootFilterOrDefault;
|
|
43
52
|
/**
|
|
44
53
|
* @hidden
|
|
45
54
|
*/
|
|
46
|
-
|
|
55
|
+
var filterGroupByField = function (field, filter) {
|
|
47
56
|
var rootFilter = exports.rootFilterOrDefault(filter);
|
|
48
57
|
var compositeFilters = rootFilter.filters
|
|
49
58
|
.filter(function (f) {
|
|
@@ -57,6 +66,7 @@ exports.filterGroupByField = function (field, filter) {
|
|
|
57
66
|
});
|
|
58
67
|
return compositeFilters[0] || null;
|
|
59
68
|
};
|
|
69
|
+
exports.filterGroupByField = filterGroupByField;
|
|
60
70
|
/**
|
|
61
71
|
* @example
|
|
62
72
|
* ```jsx-no-run
|
|
@@ -121,21 +131,21 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
|
|
|
121
131
|
* @hidden
|
|
122
132
|
*/
|
|
123
133
|
_this.removeGroup = function (group, rootFilter) {
|
|
124
|
-
var filters = rootFilter.filters
|
|
134
|
+
var filters = __spreadArray([], rootFilter.filters);
|
|
125
135
|
var groupIndex = filters
|
|
126
136
|
.findIndex(function (f) { return f === group; });
|
|
127
137
|
if (groupIndex > -1) {
|
|
128
138
|
filters.splice(groupIndex, 1);
|
|
129
139
|
}
|
|
130
|
-
return __assign({}, rootFilter, { filters: filters });
|
|
140
|
+
return __assign(__assign({}, rootFilter), { filters: filters });
|
|
131
141
|
};
|
|
132
142
|
/**
|
|
133
143
|
* @hidden
|
|
134
144
|
*/
|
|
135
145
|
_this.insertGroup = function (group, rootFilter) {
|
|
136
|
-
return __assign({}, rootFilter, { filters: [
|
|
146
|
+
return __assign(__assign({}, rootFilter), { filters: __spreadArray([
|
|
137
147
|
group
|
|
138
|
-
]
|
|
148
|
+
], rootFilter.filters) });
|
|
139
149
|
};
|
|
140
150
|
/**
|
|
141
151
|
* @hidden
|
|
@@ -174,12 +184,12 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
|
|
|
174
184
|
_this.filterChange = function (filterIndex, e) {
|
|
175
185
|
var filters = _this.state.filterGroup.filters.map(function (f, i) {
|
|
176
186
|
if (i === filterIndex) {
|
|
177
|
-
return __assign({}, f, { value: e.value, operator: e.operator });
|
|
187
|
+
return __assign(__assign({}, f), { value: e.value, operator: e.operator });
|
|
178
188
|
}
|
|
179
189
|
return f;
|
|
180
190
|
});
|
|
181
191
|
_this.setState({
|
|
182
|
-
filterGroup: __assign({}, _this.state.filterGroup, { filters: filters })
|
|
192
|
+
filterGroup: __assign(__assign({}, _this.state.filterGroup), { filters: filters })
|
|
183
193
|
});
|
|
184
194
|
};
|
|
185
195
|
/**
|
|
@@ -187,7 +197,7 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
|
|
|
187
197
|
*/
|
|
188
198
|
_this.logicChange = function (event) {
|
|
189
199
|
_this.setState({
|
|
190
|
-
filterGroup: __assign({}, _this.state.filterGroup, { logic: event.target.value.operator })
|
|
200
|
+
filterGroup: __assign(__assign({}, _this.state.filterGroup), { logic: event.target.value.operator })
|
|
191
201
|
});
|
|
192
202
|
};
|
|
193
203
|
/**
|
|
@@ -206,7 +216,7 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
|
|
|
206
216
|
_this.props.onFilterChange(null, event);
|
|
207
217
|
}
|
|
208
218
|
else {
|
|
209
|
-
_this.props.onFilterChange(__assign({}, rootFilter, { filters: rootFilters }), event);
|
|
219
|
+
_this.props.onFilterChange(__assign(__assign({}, rootFilter), { filters: rootFilters }), event);
|
|
210
220
|
}
|
|
211
221
|
if (_this.props.onCloseMenu) {
|
|
212
222
|
_this.props.onCloseMenu();
|
|
@@ -216,7 +226,7 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
|
|
|
216
226
|
* @hidden
|
|
217
227
|
*/
|
|
218
228
|
_this.currentFilterGroup = function () {
|
|
219
|
-
return __assign({}, _this.state.filterGroup, { filters: _this.state
|
|
229
|
+
return __assign(__assign({}, _this.state.filterGroup), { filters: _this.state
|
|
220
230
|
.filterGroup
|
|
221
231
|
.filters
|
|
222
232
|
.filter(function (nf) {
|
|
@@ -244,18 +254,18 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
|
|
|
244
254
|
}
|
|
245
255
|
return f;
|
|
246
256
|
});
|
|
247
|
-
updatedFilter = __assign({}, rootFilter, { filters: rootFilters });
|
|
257
|
+
updatedFilter = __assign(__assign({}, rootFilter), { filters: rootFilters });
|
|
248
258
|
}
|
|
249
259
|
else if (currentFilterGroup.filters.length === 0) {
|
|
250
260
|
var rootFilters = rootFilter
|
|
251
261
|
.filters
|
|
252
262
|
.filter(function (f) { return f !== filterGroup; });
|
|
253
263
|
if (rootFilters.length) {
|
|
254
|
-
updatedFilter = __assign({}, rootFilter, { filters: rootFilters });
|
|
264
|
+
updatedFilter = __assign(__assign({}, rootFilter), { filters: rootFilters });
|
|
255
265
|
}
|
|
256
266
|
}
|
|
257
267
|
else {
|
|
258
|
-
updatedFilter = __assign({}, rootFilter, { filters: rootFilter.filters
|
|
268
|
+
updatedFilter = __assign(__assign({}, rootFilter), { filters: __spreadArray(__spreadArray([], rootFilter.filters), [currentFilterGroup]) });
|
|
259
269
|
}
|
|
260
270
|
_this.props.onFilterChange(updatedFilter, event);
|
|
261
271
|
if (_this.props.onCloseMenu) {
|
|
@@ -267,7 +277,7 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
|
|
|
267
277
|
var filterType = filterCommon_1.getFilterType(props.column.filter);
|
|
268
278
|
var defaultOperator = filterCommon_1.getDefaultOperator(props.filterOperators, filterType);
|
|
269
279
|
filterGroup = exports.filterGroupByField(props.column.field, props.filter);
|
|
270
|
-
filterGroup = filterGroup ? __assign({}, filterGroup, { filters: filterGroup.filters.map(function (f) {
|
|
280
|
+
filterGroup = filterGroup ? __assign(__assign({}, filterGroup), { filters: filterGroup.filters.map(function (f) {
|
|
271
281
|
return __assign({}, f);
|
|
272
282
|
}) }) : {
|
|
273
283
|
logic: 'and',
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.GridColumnMenuFilterCell = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var kendo_react_dropdowns_1 = require("@progress/kendo-react-dropdowns");
|
|
18
21
|
var kendo_react_inputs_1 = require("@progress/kendo-react-inputs");
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
24
26
|
return __assign.apply(this, arguments);
|
|
25
27
|
};
|
|
26
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.GridColumnMenuFilterUI = void 0;
|
|
27
30
|
var React = require("react");
|
|
28
31
|
var GridColumnMenuFilterCell_1 = require("./GridColumnMenuFilterCell");
|
|
29
32
|
var kendo_react_dropdowns_1 = require("@progress/kendo-react-dropdowns");
|
|
@@ -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
|
*/
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.GridColumnMenuGroup = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var kendo_react_intl_1 = require("@progress/kendo-react-intl");
|
|
18
21
|
var GridColumnMenuItemGroup_1 = require("./GridColumnMenuItemGroup");
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.GridColumnMenuItem = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
/**
|
|
18
21
|
* The GridColumnMenuItem component that is used inside the Grid ColumnMenu.
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.GridColumnMenuItemContent = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var kendo_react_animation_1 = require("@progress/kendo-react-animation");
|
|
18
21
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.GridColumnMenuItemGroup = void 0;
|
|
16
19
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
17
20
|
var React = require("react");
|
|
18
21
|
/**
|
|
@@ -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
|
*/
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.GridColumnMenuSort = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var GridColumnMenuItem_1 = require("./GridColumnMenuItem");
|
|
18
21
|
var GridColumnMenuItemGroup_1 = require("./GridColumnMenuItemGroup");
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -28,11 +30,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
28
30
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
29
31
|
t[p] = s[p];
|
|
30
32
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
31
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
32
|
-
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
33
37
|
return t;
|
|
34
38
|
};
|
|
35
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.GridColumnMenuWrapper = void 0;
|
|
36
41
|
var React = require("react");
|
|
37
42
|
var kendo_react_popup_1 = require("@progress/kendo-react-popup");
|
|
38
43
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GRID_PREVENT_SELECTION_ELEMENT = exports.GRID_COL_INDEX_ATTRIBUTE = exports.GRID_ROW_INDEX_ATTRIBUTE = void 0;
|
|
3
4
|
var kendo_react_data_tools_1 = require("@progress/kendo-react-data-tools");
|
|
4
5
|
/** The attribute required by the Grid selection on Grid `tr` elements. */
|
|
5
6
|
exports.GRID_ROW_INDEX_ATTRIBUTE = kendo_react_data_tools_1.TABLE_ROW_INDEX_ATTRIBUTE;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DragClue } from '@progress/kendo-react-data-tools';
|
|
3
|
-
import { Header } from '../header/Header';
|
|
4
3
|
/**
|
|
5
4
|
* @hidden
|
|
6
5
|
*/
|
|
@@ -10,7 +9,7 @@ export interface ColumnDraggableProps {
|
|
|
10
9
|
releaseHandler?: (draggableEvent: any) => void;
|
|
11
10
|
ariaRowIndex?: number;
|
|
12
11
|
dragClue?: React.RefObject<DragClue | null> | null;
|
|
13
|
-
headerRef?: React.RefObject<
|
|
12
|
+
headerRef?: React.RefObject<HTMLDivElement | null> | null;
|
|
14
13
|
containerRef?: React.RefObject<HTMLDivElement | null> | null;
|
|
15
14
|
}
|
|
16
15
|
/**
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ColumnDraggable = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
18
21
|
/**
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ExtendedColumnProps } from '../GridColumn';
|
|
3
2
|
/**
|
|
4
3
|
* @hidden
|
|
@@ -26,7 +25,7 @@ export declare class ColumnResize {
|
|
|
26
25
|
constructor(triggerResize: (index: number, newWidth: number, oldWidth: number, originalEvent: any, end: boolean, targetId?: string) => void);
|
|
27
26
|
setIsRtl: (isRtl: boolean) => void;
|
|
28
27
|
dragHandler: (event: any, column: ExtendedColumnProps, dragCue: HTMLSpanElement, end: boolean) => void;
|
|
29
|
-
dblClickHandler: (event:
|
|
28
|
+
dblClickHandler: (event: React.MouseEvent<HTMLSpanElement, MouseEvent> | null, columnIds: string[]) => void;
|
|
30
29
|
private fixateInitialWidths;
|
|
31
30
|
private setWidths;
|
|
32
31
|
private updateColElements;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ColumnResize = void 0;
|
|
3
4
|
// offsetWidth() is slowly transition to reporting double instead of integet in all browsers
|
|
4
5
|
// during this process (which is a bit back-and-forth) we need to make sure we are working across all browsers and versions
|
|
5
6
|
var OFFSET_ROUND = 1;
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ColumnResizer = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
18
21
|
/**
|
|
@@ -22,14 +22,14 @@ export declare class CommonDragLogic {
|
|
|
22
22
|
private groupReorder;
|
|
23
23
|
private columnToGroup;
|
|
24
24
|
private groupPanelDivElement;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
private
|
|
28
|
-
private
|
|
25
|
+
get dragClueRef(): React.RefObject<DragClue | null>;
|
|
26
|
+
get dropClueRef(): React.RefObject<DropClue | null>;
|
|
27
|
+
private get dragElementClue();
|
|
28
|
+
private get dropElementClue();
|
|
29
29
|
constructor(columnReorder: handler, groupReorder: handler, columnToGroup: handler);
|
|
30
|
-
refGroupPanelDiv: (e: HTMLDivElement) => void;
|
|
31
|
-
pressHandler: (event: any, element:
|
|
32
|
-
dragHandler: (event: any, element:
|
|
30
|
+
refGroupPanelDiv: (e: HTMLDivElement | null) => void;
|
|
31
|
+
pressHandler: (event: any, element: HTMLTableRowElement | HTMLDivElement) => void;
|
|
32
|
+
dragHandler: (event: any, element: HTMLTableRowElement | HTMLDivElement) => void;
|
|
33
33
|
releaseHandler: (event: any) => void;
|
|
34
34
|
private getColumnIndex;
|
|
35
35
|
private getGroupIndex;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommonDragLogic = void 0;
|
|
3
4
|
var React = require("react");
|
|
4
5
|
var kendo_react_data_tools_1 = require("@progress/kendo-react-data-tools");
|
|
5
6
|
/**
|
|
@@ -89,28 +90,28 @@ var CommonDragLogic = /** @class */ (function () {
|
|
|
89
90
|
get: function () {
|
|
90
91
|
return this.refDragElementClue;
|
|
91
92
|
},
|
|
92
|
-
enumerable:
|
|
93
|
+
enumerable: false,
|
|
93
94
|
configurable: true
|
|
94
95
|
});
|
|
95
96
|
Object.defineProperty(CommonDragLogic.prototype, "dropClueRef", {
|
|
96
97
|
get: function () {
|
|
97
98
|
return this.refDropElementClue;
|
|
98
99
|
},
|
|
99
|
-
enumerable:
|
|
100
|
+
enumerable: false,
|
|
100
101
|
configurable: true
|
|
101
102
|
});
|
|
102
103
|
Object.defineProperty(CommonDragLogic.prototype, "dragElementClue", {
|
|
103
104
|
get: function () {
|
|
104
105
|
return this.refDragElementClue.current;
|
|
105
106
|
},
|
|
106
|
-
enumerable:
|
|
107
|
+
enumerable: false,
|
|
107
108
|
configurable: true
|
|
108
109
|
});
|
|
109
110
|
Object.defineProperty(CommonDragLogic.prototype, "dropElementClue", {
|
|
110
111
|
get: function () {
|
|
111
112
|
return this.refDropElementClue.current;
|
|
112
113
|
},
|
|
113
|
-
enumerable:
|
|
114
|
+
enumerable: false,
|
|
114
115
|
configurable: true
|
|
115
116
|
});
|
|
116
117
|
CommonDragLogic.prototype.getColumnIndex = function (event, parent) {
|
|
@@ -28,7 +28,7 @@ export declare class GroupingIndicator extends React.Component<GroupingIndicator
|
|
|
28
28
|
* @hidden
|
|
29
29
|
*/
|
|
30
30
|
onRelease: (data: any) => void;
|
|
31
|
-
sortChange: (event: React.MouseEvent<HTMLAnchorElement
|
|
32
|
-
groupRemove: (event: React.MouseEvent<HTMLButtonElement
|
|
31
|
+
sortChange: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
32
|
+
groupRemove: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
33
33
|
render(): JSX.Element;
|
|
34
34
|
}
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.GroupingIndicator = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
18
21
|
var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
|
|
@@ -20,7 +20,7 @@ export declare const IsUnaryFilter: (operator: string) => boolean;
|
|
|
20
20
|
/**
|
|
21
21
|
* @hidden
|
|
22
22
|
*/
|
|
23
|
-
export declare const operatorMap: (iterable: any
|
|
23
|
+
export declare const operatorMap: (iterable: Array<any>, service: LocalizationService) => {
|
|
24
24
|
text: string;
|
|
25
25
|
operator: any;
|
|
26
26
|
}[];
|
|
@@ -50,7 +50,7 @@ export declare const defaultHideSecondFilter: {
|
|
|
50
50
|
/**
|
|
51
51
|
* @hidden
|
|
52
52
|
*/
|
|
53
|
-
export declare const cellInputChange: (value: any, e: React.SyntheticEvent<any
|
|
53
|
+
export declare const cellInputChange: (value: any, e: React.SyntheticEvent<any>, props: any) => void;
|
|
54
54
|
/**
|
|
55
55
|
* @hidden
|
|
56
56
|
*/
|
|
@@ -58,7 +58,7 @@ export declare const getDefaultOperator: (filterOperators: GridFilterOperators |
|
|
|
58
58
|
/**
|
|
59
59
|
* @hidden
|
|
60
60
|
*/
|
|
61
|
-
export declare const getFilterType: (filterType:
|
|
61
|
+
export declare const getFilterType: (filterType: 'text' | 'numeric' | 'boolean' | 'date' | undefined) => "boolean" | "numeric" | "text" | "date";
|
|
62
62
|
/**
|
|
63
63
|
* @hidden
|
|
64
64
|
*/
|