@progress/kendo-react-data-tools 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-data-tools.js +1 -1
- package/dist/es/columnmenu/ColumnMenu.js +12 -5
- package/dist/es/columnmenu/ColumnMenuFilterLogic.js +1 -1
- package/dist/es/columnmenu/ColumnMenuFilters.js +4 -4
- package/dist/es/columnmenu/ColumnMenuOperators.d.ts +4 -4
- package/dist/es/columnmenu/ColumnMenuOperators.js +13 -8
- package/dist/es/drag/ColumnDraggable.js +3 -1
- package/dist/es/drag/ColumnResizer.js +3 -1
- package/dist/es/drag/CommonDragLogic.d.ts +5 -5
- package/dist/es/drag/DragClue.d.ts +1 -1
- package/dist/es/drag/DragClue.js +4 -2
- package/dist/es/drag/DropClue.js +3 -1
- package/dist/es/filter/Expression.js +11 -7
- package/dist/es/filter/FieldSettings.js +1 -0
- package/dist/es/filter/Filter.js +5 -3
- package/dist/es/filter/Group.js +13 -6
- package/dist/es/filter/filters/BooleanFilter.js +3 -1
- package/dist/es/filter/filters/DateFilter.js +4 -2
- package/dist/es/filter/filters/EnumFilter.js +5 -3
- package/dist/es/filter/filters/NumericFilter.js +4 -2
- package/dist/es/filter/filters/TextFilter.js +4 -2
- package/dist/es/filter/index.js +1 -0
- package/dist/es/filter/operators.d.ts +4 -4
- package/dist/es/filter/operators.js +13 -8
- package/dist/es/filteringCells/BooleanFilter.js +9 -2
- package/dist/es/filteringCells/DateFilter.js +3 -1
- package/dist/es/filteringCells/FilterCellProps.js +1 -0
- package/dist/es/filteringCells/FilterComponent.js +11 -4
- package/dist/es/filteringCells/FilterComponentProps.js +1 -0
- package/dist/es/filteringCells/FilterOperator.js +1 -0
- package/dist/es/filteringCells/NumericFilter.js +3 -1
- package/dist/es/filteringCells/TextFilter.js +3 -1
- package/dist/es/filteringCells/index.js +3 -0
- package/dist/es/header/CellProps.js +1 -0
- package/dist/es/header/Header.js +3 -1
- package/dist/es/header/HeaderRow.d.ts +1 -1
- package/dist/es/header/HeaderRow.js +3 -1
- package/dist/es/header/HeaderThElement.d.ts +1 -1
- package/dist/es/header/SortSettings.d.ts +1 -38
- package/dist/es/header/SortSettings.js +6 -1
- package/dist/es/header/index.js +1 -0
- package/dist/es/main.js +4 -0
- package/dist/es/messages/index.d.ts +62 -62
- package/dist/es/navigation/TableKeyboardNavigation.d.ts +1 -1
- package/dist/es/navigation/TableKeyboardNavigation.js +6 -1
- package/dist/es/navigation/TableKeyboardNavigationContextType.js +1 -0
- package/dist/es/navigation/TableKeyboardNavigationStateType.js +1 -0
- package/dist/es/navigation/constants.d.ts +3 -3
- package/dist/es/navigation/constants.js +7 -2
- package/dist/es/navigation/hooks.d.ts +2 -3
- package/dist/es/navigation/utils.d.ts +16 -16
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/pager/Pager.d.ts +2 -2
- package/dist/es/pager/Pager.js +5 -3
- package/dist/es/pager/PagerInput.js +3 -1
- package/dist/es/pager/PagerNumericButtons.d.ts +2 -2
- package/dist/es/pager/PagerNumericButtons.js +5 -3
- package/dist/es/pager/PagerPageSizes.js +3 -1
- package/dist/es/selection/TableSelectableSettings.js +1 -0
- package/dist/es/selection/TableSelection.js +1 -1
- package/dist/es/selection/events.js +1 -0
- package/dist/es/selection/utils.d.ts +2 -2
- package/dist/es/selection/utils.js +17 -5
- package/dist/es/utils/data-operations.js +9 -4
- package/dist/es/utils/group-operations.d.ts +1 -1
- package/dist/es/virtualization/columns.js +6 -1
- package/dist/npm/columnmenu/ColumnMenu.js +21 -9
- package/dist/npm/columnmenu/ColumnMenuFilterForm.js +5 -2
- package/dist/npm/columnmenu/ColumnMenuFilterLogic.js +4 -2
- package/dist/npm/columnmenu/ColumnMenuFilters.js +13 -8
- package/dist/npm/columnmenu/ColumnMenuItem.js +3 -1
- package/dist/npm/columnmenu/ColumnMenuOperators.d.ts +4 -4
- package/dist/npm/columnmenu/ColumnMenuOperators.js +14 -8
- package/dist/npm/columnmenu/index.js +16 -9
- package/dist/npm/drag/ColumnDraggable.js +4 -1
- package/dist/npm/drag/ColumnResize.js +1 -0
- package/dist/npm/drag/ColumnResizer.js +4 -1
- package/dist/npm/drag/CommonDragLogic.d.ts +5 -5
- package/dist/npm/drag/CommonDragLogic.js +1 -0
- package/dist/npm/drag/DragClue.d.ts +1 -1
- package/dist/npm/drag/DragClue.js +5 -2
- package/dist/npm/drag/DropClue.js +4 -1
- package/dist/npm/filter/Expression.js +12 -7
- package/dist/npm/filter/Filter.js +6 -3
- package/dist/npm/filter/Group.js +14 -6
- package/dist/npm/filter/filters/BooleanFilter.js +4 -1
- package/dist/npm/filter/filters/DateFilter.js +5 -2
- package/dist/npm/filter/filters/EnumFilter.js +6 -3
- package/dist/npm/filter/filters/NumericFilter.js +5 -2
- package/dist/npm/filter/filters/TextFilter.js +5 -2
- package/dist/npm/filter/filters/index.js +15 -8
- package/dist/npm/filter/index.js +16 -8
- package/dist/npm/filter/operators.d.ts +4 -4
- package/dist/npm/filter/operators.js +18 -10
- package/dist/npm/filteringCells/BooleanFilter.js +10 -2
- package/dist/npm/filteringCells/DateFilter.js +4 -1
- package/dist/npm/filteringCells/FilterComponent.js +14 -5
- package/dist/npm/filteringCells/NumericFilter.js +4 -1
- package/dist/npm/filteringCells/TextFilter.js +4 -1
- package/dist/npm/filteringCells/index.js +18 -8
- package/dist/npm/header/ColumnProps.js +1 -0
- package/dist/npm/header/FilterRow.js +3 -1
- package/dist/npm/header/Header.js +4 -1
- package/dist/npm/header/HeaderCell.js +1 -0
- package/dist/npm/header/HeaderRow.d.ts +1 -1
- package/dist/npm/header/HeaderRow.js +4 -1
- package/dist/npm/header/HeaderSelectionCell.js +1 -0
- package/dist/npm/header/HeaderThElement.d.ts +1 -1
- package/dist/npm/header/HeaderThElement.js +3 -1
- package/dist/npm/header/SortSettings.d.ts +1 -38
- package/dist/npm/header/SortSettings.js +9 -2
- package/dist/npm/header/index.js +20 -12
- package/dist/npm/header/utils/index.js +1 -0
- package/dist/npm/main.js +36 -24
- package/dist/npm/messages/index.d.ts +62 -62
- package/dist/npm/messages/index.js +3 -1
- package/dist/npm/navigation/TableKeyboardNavigation.d.ts +1 -1
- package/dist/npm/navigation/TableKeyboardNavigation.js +7 -1
- package/dist/npm/navigation/TableKeyboardNavigationContext.js +1 -0
- package/dist/npm/navigation/constants.d.ts +3 -3
- package/dist/npm/navigation/constants.js +9 -3
- package/dist/npm/navigation/hooks.d.ts +2 -3
- package/dist/npm/navigation/hooks.js +3 -1
- package/dist/npm/navigation/utils.d.ts +16 -16
- package/dist/npm/navigation/utils.js +41 -20
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/pager/Pager.d.ts +2 -2
- package/dist/npm/pager/Pager.js +6 -3
- package/dist/npm/pager/PagerInput.js +4 -1
- package/dist/npm/pager/PagerNumericButtons.d.ts +2 -2
- package/dist/npm/pager/PagerNumericButtons.js +6 -3
- package/dist/npm/pager/PagerPageSizes.js +4 -1
- package/dist/npm/selection/TableSelection.js +4 -2
- package/dist/npm/selection/constants.js +1 -0
- package/dist/npm/selection/utils.d.ts +2 -2
- package/dist/npm/selection/utils.js +36 -14
- package/dist/npm/utils/data-operations.js +10 -4
- package/dist/npm/utils/group-operations.d.ts +1 -1
- package/dist/npm/utils/group-operations.js +7 -3
- package/dist/npm/virtualization/columns.js +7 -1
- package/dist/npm/virtualization/index.js +11 -4
- package/dist/systemjs/kendo-react-data-tools.js +1 -1
- package/package.json +10 -10
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
2
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
3
|
+
to[j] = from[i];
|
|
4
|
+
return to;
|
|
5
|
+
};
|
|
1
6
|
import { filterEqOperator, filterNotEqOperator, filterIsNullOperator, filterIsNotNullOperator, filterIsEmptyOperator, filterIsNotEmptyOperator, filterStartsWithOperator, filterContainsOperator, filterNotContainsOperator, filterEndsWithOperator, filterGteOperator, filterGtOperator, filterLteOperator, filterLtOperator, filterAfterOrEqualOperator, filterAfterOperator, filterBeforeOperator, filterBeforeOrEqualOperator } from './../messages';
|
|
2
7
|
var textOperators = [
|
|
3
8
|
{ text: filterContainsOperator, operator: 'contains' },
|
|
@@ -62,9 +67,9 @@ var Operators = /** @class */ (function () {
|
|
|
62
67
|
* - { text: 'filter.isNotEmptyOperator', operator: 'isnotempty' }
|
|
63
68
|
*/
|
|
64
69
|
get: function () {
|
|
65
|
-
return textOperators
|
|
70
|
+
return __spreadArray([], textOperators);
|
|
66
71
|
},
|
|
67
|
-
enumerable:
|
|
72
|
+
enumerable: false,
|
|
68
73
|
configurable: true
|
|
69
74
|
});
|
|
70
75
|
Object.defineProperty(Operators, "numeric", {
|
|
@@ -83,9 +88,9 @@ var Operators = /** @class */ (function () {
|
|
|
83
88
|
* - { text: 'filter.isNotNullOperator', operator: 'isnotnull' }
|
|
84
89
|
*/
|
|
85
90
|
get: function () {
|
|
86
|
-
return numericOperators
|
|
91
|
+
return __spreadArray([], numericOperators);
|
|
87
92
|
},
|
|
88
|
-
enumerable:
|
|
93
|
+
enumerable: false,
|
|
89
94
|
configurable: true
|
|
90
95
|
});
|
|
91
96
|
Object.defineProperty(Operators, "date", {
|
|
@@ -104,9 +109,9 @@ var Operators = /** @class */ (function () {
|
|
|
104
109
|
* - { text: 'filter.isNotNullOperator', operator: 'isnotnull' }
|
|
105
110
|
*/
|
|
106
111
|
get: function () {
|
|
107
|
-
return dateOperators
|
|
112
|
+
return __spreadArray([], dateOperators);
|
|
108
113
|
},
|
|
109
|
-
enumerable:
|
|
114
|
+
enumerable: false,
|
|
110
115
|
configurable: true
|
|
111
116
|
});
|
|
112
117
|
Object.defineProperty(Operators, "boolean", {
|
|
@@ -119,9 +124,9 @@ var Operators = /** @class */ (function () {
|
|
|
119
124
|
* - { text: 'filter.notEqOperator', operator: 'neq' }
|
|
120
125
|
*/
|
|
121
126
|
get: function () {
|
|
122
|
-
return booleanOperators
|
|
127
|
+
return __spreadArray([], booleanOperators);
|
|
123
128
|
},
|
|
124
|
-
enumerable:
|
|
129
|
+
enumerable: false,
|
|
125
130
|
configurable: true
|
|
126
131
|
});
|
|
127
132
|
return Operators;
|
|
@@ -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 { createFilterComponent } from './FilterComponent';
|
|
27
34
|
import { DropDownList } from '@progress/kendo-react-dropdowns';
|
|
@@ -48,7 +55,7 @@ var settings = {
|
|
|
48
55
|
return;
|
|
49
56
|
}
|
|
50
57
|
var filterResult = current ?
|
|
51
|
-
filter.map(function (f) { return f.field === field ? __assign({}, current, { value: value }) : f; }) :
|
|
58
|
+
filter.map(function (f) { return f.field === field ? __assign(__assign({}, current), { value: value }) : f; }) : __spreadArray(__spreadArray([], filter), [{ value: value, field: field, operator: booleanOperator }]);
|
|
52
59
|
cellProps.onFilterChange.call(undefined, {
|
|
53
60
|
filter: filterResult,
|
|
54
61
|
field: field,
|
|
@@ -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 __());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 { Button } from '@progress/kendo-react-buttons';
|
|
27
34
|
import { classNames } from '@progress/kendo-react-common';
|
|
@@ -43,7 +50,7 @@ export var createFilterComponent = function (settings) {
|
|
|
43
50
|
var _a = _this.props, _b = _a.filter, filter = _b === void 0 ? [] : _b, _c = _a.field, field = _c === void 0 ? '' : _c;
|
|
44
51
|
var existing = _this.findCellFilter();
|
|
45
52
|
var filterResult = existing ?
|
|
46
|
-
filter.map(function (f) { return f.field === field ? __assign({}, existing, { value: value }) : f; }) :
|
|
53
|
+
filter.map(function (f) { return f.field === field ? __assign(__assign({}, existing), { value: value }) : f; }) : __spreadArray(__spreadArray([], filter), [__assign(__assign({}, settings.emptyFilter), { value: value, field: field })]);
|
|
47
54
|
_this.filterChange({
|
|
48
55
|
filter: filterResult,
|
|
49
56
|
field: field,
|
|
@@ -55,7 +62,7 @@ export var createFilterComponent = function (settings) {
|
|
|
55
62
|
var _a = _this.props, _b = _a.filter, filter = _b === void 0 ? [] : _b, _c = _a.field, field = _c === void 0 ? '' : _c;
|
|
56
63
|
var existing = _this.findCellFilter();
|
|
57
64
|
var filterResult = existing ?
|
|
58
|
-
filter.map(function (f) { return f.field === field ? __assign({}, existing, { operator: operator }) : f; }) :
|
|
65
|
+
filter.map(function (f) { return f.field === field ? __assign(__assign({}, existing), { operator: operator }) : f; }) : __spreadArray(__spreadArray([], filter), [__assign(__assign({}, settings.emptyFilter), { field: field, operator: operator })]);
|
|
59
66
|
_this.filterChange({
|
|
60
67
|
filter: filterResult,
|
|
61
68
|
field: field,
|
|
@@ -79,7 +86,7 @@ export var createFilterComponent = function (settings) {
|
|
|
79
86
|
FilterComponent.prototype.render = function () {
|
|
80
87
|
var _a;
|
|
81
88
|
var _b = this.props, _c = _b.clearButtonTitle, clearButtonTitle = _c === void 0 ? '' : _c, _d = _b.operators, operators = _d === void 0 ? [] : _d;
|
|
82
|
-
var filter = this.findCellFilter() || __assign({}, settings.emptyFilter, { operator: '' });
|
|
89
|
+
var filter = this.findCellFilter() || __assign(__assign({}, settings.emptyFilter), { operator: '' });
|
|
83
90
|
var operator = filter.operator, value = filter.value;
|
|
84
91
|
var operatorComponentProps = {
|
|
85
92
|
value: operators.find(function (item) { return item.operator === operator; }) || null,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 __());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es/header/Header.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 __());
|
|
@@ -26,7 +26,7 @@ export interface HeaderRowProps extends ColumnDraggableProps {
|
|
|
26
26
|
* @hidden
|
|
27
27
|
*/
|
|
28
28
|
export declare class HeaderRow extends React.Component<HeaderRowProps, {}> {
|
|
29
|
-
cellClick: (e: React.
|
|
29
|
+
cellClick: (e: React.MouseEvent<HTMLSpanElement> | React.KeyboardEvent<HTMLElement>, column: TreeColumnBaseProps) => void;
|
|
30
30
|
cellKeyDown: (event: React.KeyboardEvent<HTMLElement>, column: TreeColumnBaseProps) => void;
|
|
31
31
|
sortIcon(sortIndex: number): JSX.Element[];
|
|
32
32
|
render(): JSX.Element[];
|
|
@@ -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 __());
|
|
@@ -23,41 +23,4 @@ export declare type SortSettings = boolean | ColumnSortSettings & {
|
|
|
23
23
|
/**
|
|
24
24
|
* @hidden
|
|
25
25
|
*/
|
|
26
|
-
export declare const normalize: (...settings: (
|
|
27
|
-
/**
|
|
28
|
-
* Enables the removal of the column sorting functionality.
|
|
29
|
-
*/
|
|
30
|
-
allowUnsort?: boolean;
|
|
31
|
-
} | (false & {
|
|
32
|
-
/**
|
|
33
|
-
* The sort mode of the component.
|
|
34
|
-
*
|
|
35
|
-
* The available modes are:
|
|
36
|
-
* - `single`
|
|
37
|
-
* - `multiple`
|
|
38
|
-
*/
|
|
39
|
-
mode?: "multiple" | "single";
|
|
40
|
-
}) | (true & {
|
|
41
|
-
/**
|
|
42
|
-
* The sort mode of the component.
|
|
43
|
-
*
|
|
44
|
-
* The available modes are:
|
|
45
|
-
* - `single`
|
|
46
|
-
* - `multiple`
|
|
47
|
-
*/
|
|
48
|
-
mode?: "multiple" | "single";
|
|
49
|
-
}) | ({
|
|
50
|
-
/**
|
|
51
|
-
* Enables the removal of the column sorting functionality.
|
|
52
|
-
*/
|
|
53
|
-
allowUnsort?: boolean;
|
|
54
|
-
} & {
|
|
55
|
-
/**
|
|
56
|
-
* The sort mode of the component.
|
|
57
|
-
*
|
|
58
|
-
* The available modes are:
|
|
59
|
-
* - `single`
|
|
60
|
-
* - `multiple`
|
|
61
|
-
*/
|
|
62
|
-
mode?: "multiple" | "single";
|
|
63
|
-
}))[]) => any;
|
|
26
|
+
export declare const normalize: (...settings: (SortSettings | ColumnSortSettings)[]) => any;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
2
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
3
|
+
to[j] = from[i];
|
|
4
|
+
return to;
|
|
5
|
+
};
|
|
1
6
|
/**
|
|
2
7
|
* @hidden
|
|
3
8
|
*/
|
|
@@ -6,5 +11,5 @@ export var normalize = function () {
|
|
|
6
11
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
7
12
|
settings[_i] = arguments[_i];
|
|
8
13
|
}
|
|
9
|
-
return Object.assign.apply(Object, [{ allowUnsort: true, mode: 'single' }]
|
|
14
|
+
return Object.assign.apply(Object, __spreadArray([{ allowUnsort: true, mode: 'single' }], settings));
|
|
10
15
|
};
|
package/dist/es/header/index.js
CHANGED
package/dist/es/main.js
CHANGED
|
@@ -14,8 +14,12 @@ export * from './navigation/hooks';
|
|
|
14
14
|
export * from './navigation/constants';
|
|
15
15
|
export * from './navigation/TableKeyboardNavigation';
|
|
16
16
|
export * from './navigation/TableKeyboardNavigationContext';
|
|
17
|
+
export * from './navigation/TableKeyboardNavigationContextType';
|
|
18
|
+
export * from './navigation/TableKeyboardNavigationStateType';
|
|
17
19
|
export { tableKeyboardNavigationScopeAttributes } from './navigation/constants';
|
|
18
20
|
export { tableKeyboardNavigationTools } from './navigation/utils';
|
|
19
21
|
export * from './selection/TableSelection';
|
|
22
|
+
export * from './selection/TableSelectableSettings';
|
|
23
|
+
export * from './selection/events';
|
|
20
24
|
export * from './selection/constants';
|
|
21
25
|
export * from './selection/utils';
|
|
@@ -250,66 +250,66 @@ export declare const filterAriaLabel = "filter.ariaLabel";
|
|
|
250
250
|
* @hidden
|
|
251
251
|
*/
|
|
252
252
|
export declare const messages: {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
253
|
+
"pager.itemsPerPage": string;
|
|
254
|
+
"pager.info": string;
|
|
255
|
+
"pager.firstPage": string;
|
|
256
|
+
"pager.previousPage": string;
|
|
257
|
+
"pager.nextPage": string;
|
|
258
|
+
"pager.lastPage": string;
|
|
259
|
+
"pager.page": string;
|
|
260
|
+
"pager.of": string;
|
|
261
|
+
"pager.totalPages": string;
|
|
262
|
+
"sort.ariaLabel": string;
|
|
263
|
+
"filter.ariaLabel": string;
|
|
264
|
+
"filter.eqOperator": string;
|
|
265
|
+
"filter.notEqOperator": string;
|
|
266
|
+
"filter.isNullOperator": string;
|
|
267
|
+
"filter.isNotNullOperator": string;
|
|
268
|
+
"filter.isEmptyOperator": string;
|
|
269
|
+
"filter.isNotEmptyOperator": string;
|
|
270
|
+
"filter.startsWithOperator": string;
|
|
271
|
+
"filter.containsOperator": string;
|
|
272
|
+
"filter.notContainsOperator": string;
|
|
273
|
+
"filter.endsWithOperator": string;
|
|
274
|
+
"filter.gteOperator": string;
|
|
275
|
+
"filter.gtOperator": string;
|
|
276
|
+
"filter.lteOperator": string;
|
|
277
|
+
"filter.ltOperator": string;
|
|
278
|
+
"filter.isTrue": string;
|
|
279
|
+
"filter.isFalse": string;
|
|
280
|
+
"filter.afterOrEqualOperator": string;
|
|
281
|
+
"filter.afterOperator": string;
|
|
282
|
+
"filter.beforeOperator": string;
|
|
283
|
+
"filter.beforeOrEqualOperator": string;
|
|
284
|
+
"filter.andLogic": string;
|
|
285
|
+
"filter.orLogic": string;
|
|
286
|
+
"filter.addExpression": string;
|
|
287
|
+
"filter.addGroup": string;
|
|
288
|
+
"filter.close": string;
|
|
289
|
+
"columnMenu.filterClearButton": string;
|
|
290
|
+
"columnMenu.filterSubmitButton": string;
|
|
291
|
+
"columnMenu.filterTitle": string;
|
|
292
|
+
"columnMenu.sortAscending": string;
|
|
293
|
+
"columnMenu.sortDescending": string;
|
|
294
|
+
"columnMenu.filterEqOperator": string;
|
|
295
|
+
"columnMenu.filterNotEqOperator": string;
|
|
296
|
+
"columnMenu.filterIsNullOperator": string;
|
|
297
|
+
"columnMenu.filterIsNotNullOperator": string;
|
|
298
|
+
"columnMenu.filterIsEmptyOperator": string;
|
|
299
|
+
"columnMenu.filterIsNotEmptyOperator": string;
|
|
300
|
+
"columnMenu.filterStartsWithOperator": string;
|
|
301
|
+
"columnMenu.filterContainsOperator": string;
|
|
302
|
+
"columnMenu.filterNotContainsOperator": string;
|
|
303
|
+
"columnMenu.filterEndsWithOperator": string;
|
|
304
|
+
"columnMenu.filterGteOperator": string;
|
|
305
|
+
"columnMenu.filterGtOperator": string;
|
|
306
|
+
"columnMenu.filterLteOperator": string;
|
|
307
|
+
"columnMenu.filterLtOperator": string;
|
|
308
|
+
"columnMenu.filterIsTrue": string;
|
|
309
|
+
"columnMenu.filterAfterOrEqualOperator": string;
|
|
310
|
+
"columnMenu.filterAfterOperator": string;
|
|
311
|
+
"columnMenu.filterBeforeOperator": string;
|
|
312
|
+
"columnMenu.filterBeforeOrEqualOperator": string;
|
|
313
|
+
"columnMenu.filterAndLogic": string;
|
|
314
|
+
"columnMenu.filterOrLogic": string;
|
|
315
315
|
};
|
|
@@ -6,7 +6,7 @@ import { TableKeyboardNavigationStateType } from './TableKeyboardNavigationState
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const tableKeyboardNavigation: {
|
|
8
8
|
onConstructor: (options: {
|
|
9
|
-
navigatable: boolean;
|
|
9
|
+
navigatable: boolean | undefined;
|
|
10
10
|
contextStateRef: {
|
|
11
11
|
current?: TableKeyboardNavigationContextType;
|
|
12
12
|
};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
2
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
3
|
+
to[j] = from[i];
|
|
4
|
+
return to;
|
|
5
|
+
};
|
|
1
6
|
import { guid, Keys } from '@progress/kendo-react-common';
|
|
2
7
|
import { findId, findNextIdByCellIndex, findNextIdByRowIndex, getBodyElement, getHeaderElement, getNavigatableId, tableKeyboardNavigationTools as navigationTools } from './utils';
|
|
3
8
|
/**
|
|
@@ -191,7 +196,7 @@ var generateMatrix = function (options) {
|
|
|
191
196
|
}
|
|
192
197
|
var headerRows = Array.from(thead.children);
|
|
193
198
|
var bodyRows = Array.from(tbody.children);
|
|
194
|
-
headerRows
|
|
199
|
+
__spreadArray(__spreadArray([], headerRows), bodyRows).forEach(function (row, rowIndex) {
|
|
195
200
|
Array.from(row.children).forEach(function (cell) {
|
|
196
201
|
var cellId = getNavigatableId(cell);
|
|
197
202
|
if (!cellId) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -38,17 +38,17 @@ export declare const TABBABLE_ELEMENTS: string[];
|
|
|
38
38
|
* @hidden
|
|
39
39
|
*/
|
|
40
40
|
export declare const tableKeyboardNavigationScopeAttributes: {
|
|
41
|
-
|
|
41
|
+
"data-keyboardnavscope": boolean;
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
44
|
* @hidden
|
|
45
45
|
*/
|
|
46
46
|
export declare const tableKeyboardNavigationHeaderAttributes: {
|
|
47
|
-
|
|
47
|
+
"data-keyboardnavheader": boolean;
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
50
|
* @hidden
|
|
51
51
|
*/
|
|
52
52
|
export declare const tableKeyboardNavigationBodyAttributes: {
|
|
53
|
-
|
|
53
|
+
"data-keyboardnavbody": boolean;
|
|
54
54
|
};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
2
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
3
|
+
to[j] = from[i];
|
|
4
|
+
return to;
|
|
5
|
+
};
|
|
1
6
|
var _a, _b, _c;
|
|
2
7
|
/**
|
|
3
8
|
* @hidden
|
|
@@ -45,11 +50,11 @@ var FOCUSABLE_ELEMENTS_BASE = [
|
|
|
45
50
|
/**
|
|
46
51
|
* @hidden
|
|
47
52
|
*/
|
|
48
|
-
export var FOCUSABLE_ELEMENTS =
|
|
53
|
+
export var FOCUSABLE_ELEMENTS = __spreadArray(__spreadArray([], FOCUSABLE_ELEMENTS_BASE), ['[tabindex]']);
|
|
49
54
|
/**
|
|
50
55
|
* @hidden
|
|
51
56
|
*/
|
|
52
|
-
export var TABBABLE_ELEMENTS =
|
|
57
|
+
export var TABBABLE_ELEMENTS = __spreadArray(__spreadArray([], FOCUSABLE_ELEMENTS_BASE), ['[tabindex]']).map(function (selector) { return selector + ':not([tabindex="-1"])'; });
|
|
53
58
|
/**
|
|
54
59
|
* @hidden
|
|
55
60
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { KEYBOARD_NAV_DATA_ID, KEYBOARD_NAV_DATA_LEVEL } from './constants';
|
|
2
1
|
/**
|
|
3
2
|
* @hidden
|
|
4
3
|
*/
|
|
@@ -8,6 +7,6 @@ export declare const useTableKeyboardNavigation: (elementId: string, navigatable
|
|
|
8
7
|
"data-keyboardnavid"?: undefined;
|
|
9
8
|
} | {
|
|
10
9
|
tabIndex: number;
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
"data-keyboardnavlevel": number;
|
|
11
|
+
"data-keyboardnavid": string;
|
|
13
12
|
};
|