@progress/kendo-react-data-tools 6.1.1 → 7.0.0-develop.2
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/LICENSE.md +1 -1
- package/{dist/npm/columnmenu → columnmenu}/ColumnMenu.d.ts +4 -0
- package/{dist/es/columnmenu → columnmenu}/ColumnMenuFilterForm.d.ts +4 -0
- package/columnmenu/ColumnMenuFilterLogic.d.ts +7 -0
- package/{dist/es/columnmenu → columnmenu}/ColumnMenuFilters.d.ts +4 -0
- package/{dist/npm/columnmenu → columnmenu}/ColumnMenuItem.d.ts +4 -0
- package/{dist/npm/columnmenu → columnmenu}/ColumnMenuOperators.d.ts +4 -0
- package/columnmenu/index.d.ts +10 -0
- package/dist/cdn/js/kendo-react-datatools.js +5 -0
- package/{dist/npm/drag → drag}/ColumnDraggable.d.ts +5 -1
- package/{dist/es/drag → drag}/ColumnResize.d.ts +4 -0
- package/{dist/es/drag → drag}/ColumnResizer.d.ts +5 -1
- package/{dist/npm/drag → drag}/CommonDragLogic.d.ts +5 -1
- package/{dist/npm/drag → drag}/DragClue.d.ts +5 -1
- package/drag/DropClue.d.ts +23 -0
- package/{dist/npm/filter → filter}/Expression.d.ts +5 -1
- package/{dist/es/filter → filter}/FieldSettings.d.ts +4 -0
- package/{dist/es/filter → filter}/Filter.d.ts +5 -1
- package/{dist/es/filter → filter}/Group.d.ts +5 -1
- package/{dist/npm/filter → filter}/filters/BooleanFilter.d.ts +5 -1
- package/{dist/npm/filter → filter}/filters/DateFilter.d.ts +5 -1
- package/{dist/npm/filter → filter}/filters/EnumFilter.d.ts +5 -1
- package/{dist/es/filter → filter}/filters/NumericFilter.d.ts +5 -1
- package/{dist/es/filter → filter}/filters/TextFilter.d.ts +5 -1
- package/filter/filters/index.d.ts +9 -0
- package/filter/index.d.ts +10 -0
- package/{dist/es/filter → filter}/operators.d.ts +4 -0
- package/filteringCells/BooleanFilter.d.ts +12 -0
- package/filteringCells/DateFilter.d.ts +12 -0
- package/{dist/es/filteringCells → filteringCells}/FilterCellProps.d.ts +4 -1
- package/{dist/npm/filteringCells → filteringCells}/FilterComponent.d.ts +4 -0
- package/{dist/es/filteringCells → filteringCells}/FilterComponentProps.d.ts +4 -0
- package/filteringCells/FilterOperator.d.ts +17 -0
- package/filteringCells/NumericFilter.d.ts +12 -0
- package/filteringCells/TextFilter.d.ts +12 -0
- package/filteringCells/index.d.ts +12 -0
- package/{dist/es/header → header}/CellProps.d.ts +4 -0
- package/{dist/npm/header → header}/ColumnProps.d.ts +4 -0
- package/{dist/es/header → header}/FilterRow.d.ts +5 -1
- package/header/Header.d.ts +22 -0
- package/{dist/es/header → header}/HeaderCell.d.ts +5 -1
- package/{dist/es/header → header}/HeaderRow.d.ts +6 -2
- package/header/HeaderSelectionCell.d.ts +15 -0
- package/header/HeaderThElement.d.ts +26 -0
- package/{dist/es/header → header}/SortSettings.d.ts +6 -2
- package/header/index.d.ts +14 -0
- package/{dist/npm/header → header}/utils/index.d.ts +4 -0
- package/{dist/es/main.d.ts → index.d.ts} +5 -1
- package/index.js +5 -0
- package/index.mjs +2901 -0
- package/{dist/npm/messages → messages}/index.d.ts +4 -0
- package/{dist/es/navigation → navigation}/TableKeyboardNavigation.d.ts +9 -5
- package/navigation/TableKeyboardNavigationContext.d.ts +10 -0
- package/navigation/TableKeyboardNavigationContextType.d.ts +11 -0
- package/navigation/TableKeyboardNavigationStateType.d.ts +14 -0
- package/{dist/npm/navigation → navigation}/constants.d.ts +4 -0
- package/navigation/hooks.d.ts +16 -0
- package/{dist/npm/navigation → navigation}/utils.d.ts +6 -2
- package/package-metadata.d.ts +9 -0
- package/package.json +36 -51
- package/{dist/es/pager → pager}/Pager.d.ts +5 -1
- package/{dist/es/pager → pager}/PagerInput.d.ts +5 -1
- package/{dist/npm/pager → pager}/PagerNumericButtons.d.ts +5 -1
- package/{dist/npm/pager → pager}/PagerPageSizes.d.ts +5 -1
- package/{dist/npm/selection → selection}/TableSelectableSettings.d.ts +5 -1
- package/{dist/es/selection → selection}/TableSelection.d.ts +5 -2
- package/selection/constants.d.ts +10 -0
- package/{dist/es/selection → selection}/events.d.ts +4 -0
- package/{dist/es/selection → selection}/utils.d.ts +4 -0
- package/utils/DataItemWrapper.d.ts +14 -0
- package/{dist/npm/utils → utils}/data-operations.d.ts +4 -0
- package/{dist/npm/utils → utils}/group-operations.d.ts +5 -1
- package/virtualization/columns.d.ts +19 -0
- package/virtualization/index.d.ts +5 -0
- package/about.md +0 -3
- package/dist/cdn/js/kendo-react-data-tools.js +0 -1
- package/dist/es/columnmenu/ColumnMenu.d.ts +0 -79
- package/dist/es/columnmenu/ColumnMenu.js +0 -238
- package/dist/es/columnmenu/ColumnMenuFilterForm.js +0 -33
- package/dist/es/columnmenu/ColumnMenuFilterLogic.d.ts +0 -3
- package/dist/es/columnmenu/ColumnMenuFilterLogic.js +0 -22
- package/dist/es/columnmenu/ColumnMenuFilters.js +0 -62
- package/dist/es/columnmenu/ColumnMenuItem.d.ts +0 -11
- package/dist/es/columnmenu/ColumnMenuItem.js +0 -7
- package/dist/es/columnmenu/ColumnMenuOperators.d.ts +0 -65
- package/dist/es/columnmenu/ColumnMenuOperators.js +0 -137
- package/dist/es/columnmenu/index.d.ts +0 -6
- package/dist/es/columnmenu/index.js +0 -6
- package/dist/es/drag/ColumnDraggable.d.ts +0 -30
- package/dist/es/drag/ColumnDraggable.js +0 -62
- package/dist/es/drag/ColumnResize.js +0 -95
- package/dist/es/drag/ColumnResizer.js +0 -71
- package/dist/es/drag/CommonDragLogic.d.ts +0 -38
- package/dist/es/drag/CommonDragLogic.js +0 -172
- package/dist/es/drag/DragClue.d.ts +0 -22
- package/dist/es/drag/DragClue.js +0 -66
- package/dist/es/drag/DropClue.d.ts +0 -19
- package/dist/es/drag/DropClue.js +0 -52
- package/dist/es/filter/Expression.d.ts +0 -46
- package/dist/es/filter/Expression.js +0 -140
- package/dist/es/filter/FieldSettings.js +0 -1
- package/dist/es/filter/Filter.js +0 -99
- package/dist/es/filter/Group.js +0 -163
- package/dist/es/filter/filters/BooleanFilter.d.ts +0 -43
- package/dist/es/filter/filters/BooleanFilter.js +0 -48
- package/dist/es/filter/filters/DateFilter.d.ts +0 -26
- package/dist/es/filter/filters/DateFilter.js +0 -61
- package/dist/es/filter/filters/EnumFilter.d.ts +0 -43
- package/dist/es/filter/filters/EnumFilter.js +0 -69
- package/dist/es/filter/filters/NumericFilter.js +0 -64
- package/dist/es/filter/filters/TextFilter.js +0 -65
- package/dist/es/filter/filters/index.d.ts +0 -5
- package/dist/es/filter/filters/index.js +0 -5
- package/dist/es/filter/index.d.ts +0 -6
- package/dist/es/filter/index.js +0 -6
- package/dist/es/filter/operators.js +0 -150
- package/dist/es/filteringCells/BooleanFilter.d.ts +0 -8
- package/dist/es/filteringCells/BooleanFilter.js +0 -81
- package/dist/es/filteringCells/DateFilter.d.ts +0 -8
- package/dist/es/filteringCells/DateFilter.js +0 -46
- package/dist/es/filteringCells/FilterCellProps.js +0 -1
- package/dist/es/filteringCells/FilterComponent.d.ts +0 -17
- package/dist/es/filteringCells/FilterComponent.js +0 -128
- package/dist/es/filteringCells/FilterComponentProps.js +0 -1
- package/dist/es/filteringCells/FilterOperator.d.ts +0 -13
- package/dist/es/filteringCells/FilterOperator.js +0 -1
- package/dist/es/filteringCells/NumericFilter.d.ts +0 -8
- package/dist/es/filteringCells/NumericFilter.js +0 -46
- package/dist/es/filteringCells/TextFilter.d.ts +0 -8
- package/dist/es/filteringCells/TextFilter.js +0 -46
- package/dist/es/filteringCells/index.d.ts +0 -8
- package/dist/es/filteringCells/index.js +0 -8
- package/dist/es/header/CellProps.js +0 -1
- package/dist/es/header/ColumnProps.d.ts +0 -153
- package/dist/es/header/ColumnProps.js +0 -11
- package/dist/es/header/FilterRow.js +0 -33
- package/dist/es/header/Header.d.ts +0 -18
- package/dist/es/header/Header.js +0 -54
- package/dist/es/header/HeaderCell.js +0 -26
- package/dist/es/header/HeaderRow.js +0 -166
- package/dist/es/header/HeaderSelectionCell.d.ts +0 -12
- package/dist/es/header/HeaderSelectionCell.js +0 -18
- package/dist/es/header/HeaderThElement.d.ts +0 -23
- package/dist/es/header/HeaderThElement.js +0 -25
- package/dist/es/header/SortSettings.js +0 -19
- package/dist/es/header/index.d.ts +0 -10
- package/dist/es/header/index.js +0 -10
- package/dist/es/header/utils/index.d.ts +0 -83
- package/dist/es/header/utils/index.js +0 -186
- package/dist/es/main.js +0 -26
- package/dist/es/messages/index.d.ts +0 -385
- package/dist/es/messages/index.js +0 -386
- package/dist/es/navigation/TableKeyboardNavigation.js +0 -241
- package/dist/es/navigation/TableKeyboardNavigationContext.d.ts +0 -6
- package/dist/es/navigation/TableKeyboardNavigationContext.js +0 -6
- package/dist/es/navigation/TableKeyboardNavigationContextType.d.ts +0 -7
- package/dist/es/navigation/TableKeyboardNavigationContextType.js +0 -1
- package/dist/es/navigation/TableKeyboardNavigationStateType.d.ts +0 -10
- package/dist/es/navigation/TableKeyboardNavigationStateType.js +0 -1
- package/dist/es/navigation/constants.d.ts +0 -54
- package/dist/es/navigation/constants.js +0 -79
- package/dist/es/navigation/hooks.d.ts +0 -12
- package/dist/es/navigation/hooks.js +0 -19
- package/dist/es/navigation/utils.d.ts +0 -145
- package/dist/es/navigation/utils.js +0 -212
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/pager/Pager.js +0 -222
- package/dist/es/pager/PagerInput.js +0 -57
- package/dist/es/pager/PagerNumericButtons.d.ts +0 -28
- package/dist/es/pager/PagerNumericButtons.js +0 -105
- package/dist/es/pager/PagerPageSizes.d.ts +0 -26
- package/dist/es/pager/PagerPageSizes.js +0 -51
- package/dist/es/selection/TableSelectableSettings.d.ts +0 -31
- package/dist/es/selection/TableSelectableSettings.js +0 -2
- package/dist/es/selection/TableSelection.js +0 -155
- package/dist/es/selection/constants.d.ts +0 -6
- package/dist/es/selection/constants.js +0 -6
- package/dist/es/selection/events.js +0 -1
- package/dist/es/selection/utils.js +0 -237
- package/dist/es/utils/DataItemWrapper.d.ts +0 -10
- package/dist/es/utils/DataItemWrapper.js +0 -1
- package/dist/es/utils/data-operations.d.ts +0 -94
- package/dist/es/utils/data-operations.js +0 -265
- package/dist/es/utils/group-operations.d.ts +0 -29
- package/dist/es/utils/group-operations.js +0 -54
- package/dist/es/virtualization/columns.d.ts +0 -15
- package/dist/es/virtualization/columns.js +0 -75
- package/dist/es/virtualization/index.d.ts +0 -1
- package/dist/es/virtualization/index.js +0 -1
- package/dist/npm/columnmenu/ColumnMenu.js +0 -245
- package/dist/npm/columnmenu/ColumnMenuFilterForm.d.ts +0 -13
- package/dist/npm/columnmenu/ColumnMenuFilterForm.js +0 -38
- package/dist/npm/columnmenu/ColumnMenuFilterLogic.d.ts +0 -3
- package/dist/npm/columnmenu/ColumnMenuFilterLogic.js +0 -26
- package/dist/npm/columnmenu/ColumnMenuFilters.d.ts +0 -19
- package/dist/npm/columnmenu/ColumnMenuFilters.js +0 -69
- package/dist/npm/columnmenu/ColumnMenuItem.js +0 -11
- package/dist/npm/columnmenu/ColumnMenuOperators.js +0 -140
- package/dist/npm/columnmenu/index.d.ts +0 -6
- package/dist/npm/columnmenu/index.js +0 -22
- package/dist/npm/drag/ColumnDraggable.js +0 -65
- package/dist/npm/drag/ColumnResize.d.ts +0 -32
- package/dist/npm/drag/ColumnResize.js +0 -98
- package/dist/npm/drag/ColumnResizer.d.ts +0 -28
- package/dist/npm/drag/ColumnResizer.js +0 -74
- package/dist/npm/drag/CommonDragLogic.js +0 -175
- package/dist/npm/drag/DragClue.js +0 -69
- package/dist/npm/drag/DropClue.d.ts +0 -19
- package/dist/npm/drag/DropClue.js +0 -55
- package/dist/npm/filter/Expression.js +0 -143
- package/dist/npm/filter/FieldSettings.d.ts +0 -30
- package/dist/npm/filter/FieldSettings.js +0 -2
- package/dist/npm/filter/Filter.d.ts +0 -79
- package/dist/npm/filter/Filter.js +0 -102
- package/dist/npm/filter/Group.d.ts +0 -54
- package/dist/npm/filter/Group.js +0 -166
- package/dist/npm/filter/filters/BooleanFilter.js +0 -51
- package/dist/npm/filter/filters/DateFilter.js +0 -64
- package/dist/npm/filter/filters/EnumFilter.js +0 -72
- package/dist/npm/filter/filters/NumericFilter.d.ts +0 -33
- package/dist/npm/filter/filters/NumericFilter.js +0 -67
- package/dist/npm/filter/filters/TextFilter.d.ts +0 -40
- package/dist/npm/filter/filters/TextFilter.js +0 -68
- package/dist/npm/filter/filters/index.d.ts +0 -5
- package/dist/npm/filter/filters/index.js +0 -21
- package/dist/npm/filter/index.d.ts +0 -6
- package/dist/npm/filter/index.js +0 -22
- package/dist/npm/filter/operators.d.ts +0 -73
- package/dist/npm/filter/operators.js +0 -155
- package/dist/npm/filteringCells/BooleanFilter.d.ts +0 -8
- package/dist/npm/filteringCells/BooleanFilter.js +0 -84
- package/dist/npm/filteringCells/DateFilter.d.ts +0 -8
- package/dist/npm/filteringCells/DateFilter.js +0 -49
- package/dist/npm/filteringCells/FilterCellProps.d.ts +0 -36
- package/dist/npm/filteringCells/FilterCellProps.js +0 -2
- package/dist/npm/filteringCells/FilterComponent.js +0 -132
- package/dist/npm/filteringCells/FilterComponentProps.d.ts +0 -23
- package/dist/npm/filteringCells/FilterComponentProps.js +0 -2
- package/dist/npm/filteringCells/FilterOperator.d.ts +0 -13
- package/dist/npm/filteringCells/FilterOperator.js +0 -2
- package/dist/npm/filteringCells/NumericFilter.d.ts +0 -8
- package/dist/npm/filteringCells/NumericFilter.js +0 -49
- package/dist/npm/filteringCells/TextFilter.d.ts +0 -8
- package/dist/npm/filteringCells/TextFilter.js +0 -49
- package/dist/npm/filteringCells/index.d.ts +0 -8
- package/dist/npm/filteringCells/index.js +0 -24
- package/dist/npm/header/CellProps.d.ts +0 -68
- package/dist/npm/header/CellProps.js +0 -2
- package/dist/npm/header/ColumnProps.js +0 -14
- package/dist/npm/header/FilterRow.d.ts +0 -25
- package/dist/npm/header/FilterRow.js +0 -37
- package/dist/npm/header/Header.d.ts +0 -18
- package/dist/npm/header/Header.js +0 -57
- package/dist/npm/header/HeaderCell.d.ts +0 -47
- package/dist/npm/header/HeaderCell.js +0 -30
- package/dist/npm/header/HeaderRow.d.ts +0 -37
- package/dist/npm/header/HeaderRow.js +0 -169
- package/dist/npm/header/HeaderSelectionCell.d.ts +0 -12
- package/dist/npm/header/HeaderSelectionCell.js +0 -22
- package/dist/npm/header/HeaderThElement.d.ts +0 -23
- package/dist/npm/header/HeaderThElement.js +0 -29
- package/dist/npm/header/SortSettings.d.ts +0 -26
- package/dist/npm/header/SortSettings.js +0 -23
- package/dist/npm/header/index.d.ts +0 -10
- package/dist/npm/header/index.js +0 -26
- package/dist/npm/header/utils/index.js +0 -196
- package/dist/npm/main.d.ts +0 -26
- package/dist/npm/main.js +0 -51
- package/dist/npm/messages/index.js +0 -390
- package/dist/npm/navigation/TableKeyboardNavigation.d.ts +0 -68
- package/dist/npm/navigation/TableKeyboardNavigation.js +0 -244
- package/dist/npm/navigation/TableKeyboardNavigationContext.d.ts +0 -6
- package/dist/npm/navigation/TableKeyboardNavigationContext.js +0 -9
- package/dist/npm/navigation/TableKeyboardNavigationContextType.d.ts +0 -7
- package/dist/npm/navigation/TableKeyboardNavigationContextType.js +0 -2
- package/dist/npm/navigation/TableKeyboardNavigationStateType.d.ts +0 -10
- package/dist/npm/navigation/TableKeyboardNavigationStateType.js +0 -2
- package/dist/npm/navigation/constants.js +0 -82
- package/dist/npm/navigation/hooks.d.ts +0 -12
- package/dist/npm/navigation/hooks.js +0 -23
- package/dist/npm/navigation/utils.js +0 -235
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/pager/Pager.d.ts +0 -204
- package/dist/npm/pager/Pager.js +0 -225
- package/dist/npm/pager/PagerInput.d.ts +0 -25
- package/dist/npm/pager/PagerInput.js +0 -60
- package/dist/npm/pager/PagerNumericButtons.js +0 -108
- package/dist/npm/pager/PagerPageSizes.js +0 -54
- package/dist/npm/selection/TableSelectableSettings.js +0 -3
- package/dist/npm/selection/TableSelection.d.ts +0 -12
- package/dist/npm/selection/TableSelection.js +0 -159
- package/dist/npm/selection/constants.d.ts +0 -6
- package/dist/npm/selection/constants.js +0 -9
- package/dist/npm/selection/events.d.ts +0 -94
- package/dist/npm/selection/events.js +0 -2
- package/dist/npm/selection/utils.d.ts +0 -66
- package/dist/npm/selection/utils.js +0 -249
- package/dist/npm/utils/DataItemWrapper.d.ts +0 -10
- package/dist/npm/utils/DataItemWrapper.js +0 -2
- package/dist/npm/utils/data-operations.js +0 -278
- package/dist/npm/utils/group-operations.js +0 -60
- package/dist/npm/virtualization/columns.d.ts +0 -15
- package/dist/npm/virtualization/columns.js +0 -79
- package/dist/npm/virtualization/index.d.ts +0 -1
- package/dist/npm/virtualization/index.js +0 -17
- package/dist/systemjs/kendo-react-data-tools.js +0 -1
- package/e2e-next/filter.basic.tests.ts +0 -24
- package/e2e-next/pager.basic.tests.ts +0 -24
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
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");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import * as React from 'react';
|
|
17
|
-
import * as PropTypes from 'prop-types';
|
|
18
|
-
import { EnumFilter } from './EnumFilter';
|
|
19
|
-
import { filterIsTrue, filterIsFalse } from '../../messages';
|
|
20
|
-
/**
|
|
21
|
-
* The BooleanFilter component used for editing boolean value of FilterDescriptor object.
|
|
22
|
-
*/
|
|
23
|
-
var BooleanFilter = /** @class */ (function (_super) {
|
|
24
|
-
__extends(BooleanFilter, _super);
|
|
25
|
-
function BooleanFilter() {
|
|
26
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
-
_this.data = [{ text: filterIsTrue, value: true }, { text: filterIsFalse, value: false }];
|
|
28
|
-
return _this;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* @hidden
|
|
32
|
-
*/
|
|
33
|
-
BooleanFilter.prototype.render = function () {
|
|
34
|
-
return (React.createElement(EnumFilter, { filter: this.props.filter, onFilterChange: this.props.onFilterChange, data: this.props.data || this.data, defaultItem: this.props.defaultItem, ariaLabel: this.props.ariaLabel }));
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
BooleanFilter.propTypes = {
|
|
40
|
-
filter: PropTypes.object.isRequired,
|
|
41
|
-
onFilterChange: PropTypes.func.isRequired,
|
|
42
|
-
data: PropTypes.arrayOf(PropTypes.shape({ text: PropTypes.string, value: PropTypes.any })),
|
|
43
|
-
ariaLabel: PropTypes.string,
|
|
44
|
-
defaultItem: PropTypes.any
|
|
45
|
-
};
|
|
46
|
-
return BooleanFilter;
|
|
47
|
-
}(React.Component));
|
|
48
|
-
export { BooleanFilter };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as PropTypes from 'prop-types';
|
|
3
|
-
import { TextFilterProps } from './TextFilter';
|
|
4
|
-
/**
|
|
5
|
-
* The props of the DateFilter component.
|
|
6
|
-
*/
|
|
7
|
-
export interface DateFilterProps extends TextFilterProps {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* The DateFilter component used for editing date value of FilterDescriptor object.
|
|
11
|
-
*/
|
|
12
|
-
export declare class DateFilter extends React.Component<DateFilterProps> {
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
static propTypes: {
|
|
17
|
-
filter: PropTypes.Validator<object>;
|
|
18
|
-
onFilterChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
19
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
render(): JSX.Element;
|
|
25
|
-
private onChange;
|
|
26
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
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");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
var __assign = (this && this.__assign) || function () {
|
|
17
|
-
__assign = Object.assign || function(t) {
|
|
18
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
-
s = arguments[i];
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
return __assign.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
import * as React from 'react';
|
|
28
|
-
import * as PropTypes from 'prop-types';
|
|
29
|
-
import { DatePicker } from '@progress/kendo-react-dateinputs';
|
|
30
|
-
/**
|
|
31
|
-
* The DateFilter component used for editing date value of FilterDescriptor object.
|
|
32
|
-
*/
|
|
33
|
-
var DateFilter = /** @class */ (function (_super) {
|
|
34
|
-
__extends(DateFilter, _super);
|
|
35
|
-
function DateFilter() {
|
|
36
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
37
|
-
_this.onChange = function (event) {
|
|
38
|
-
_this.props.onFilterChange.call(undefined, {
|
|
39
|
-
nextFilter: __assign(__assign({}, _this.props.filter), { value: event.value })
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
return _this;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @hidden
|
|
46
|
-
*/
|
|
47
|
-
DateFilter.prototype.render = function () {
|
|
48
|
-
var filter = this.props.filter;
|
|
49
|
-
return (React.createElement(DatePicker, { value: filter.value || null, onChange: this.onChange, ariaLabel: this.props.ariaLabel }));
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* @hidden
|
|
53
|
-
*/
|
|
54
|
-
DateFilter.propTypes = {
|
|
55
|
-
filter: PropTypes.object.isRequired,
|
|
56
|
-
onFilterChange: PropTypes.func.isRequired,
|
|
57
|
-
ariaLabel: PropTypes.string
|
|
58
|
-
};
|
|
59
|
-
return DateFilter;
|
|
60
|
-
}(React.Component));
|
|
61
|
-
export { DateFilter };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as PropTypes from 'prop-types';
|
|
3
|
-
import { TextFilterProps } from './TextFilter';
|
|
4
|
-
/**
|
|
5
|
-
* The props of the EnumFilter component.
|
|
6
|
-
*/
|
|
7
|
-
export interface EnumFilterProps extends TextFilterProps {
|
|
8
|
-
/**
|
|
9
|
-
* A collection of text-value pairs passed to the EnumFilter DropDownList.
|
|
10
|
-
*/
|
|
11
|
-
data?: Array<{
|
|
12
|
-
text: string;
|
|
13
|
-
value: any;
|
|
14
|
-
}>;
|
|
15
|
-
/**
|
|
16
|
-
* The defaultItem passed to the EnumFilter DropDownList.
|
|
17
|
-
*/
|
|
18
|
-
defaultItem?: any;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* The EnumFilter component used for editing the value of FilterDescriptor object.
|
|
22
|
-
* It renders a DropDownList and allows you to choose a value from the predefined list.
|
|
23
|
-
*/
|
|
24
|
-
export declare class EnumFilter extends React.Component<EnumFilterProps> {
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
static propTypes: {
|
|
29
|
-
filter: PropTypes.Validator<object>;
|
|
30
|
-
onFilterChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
31
|
-
data: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
32
|
-
text: PropTypes.Requireable<string>;
|
|
33
|
-
value: PropTypes.Requireable<any>;
|
|
34
|
-
}> | null | undefined)[]>;
|
|
35
|
-
defaultItem: PropTypes.Requireable<any>;
|
|
36
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* @hidden
|
|
40
|
-
*/
|
|
41
|
-
render(): JSX.Element;
|
|
42
|
-
private onChange;
|
|
43
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
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");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
var __assign = (this && this.__assign) || function () {
|
|
17
|
-
__assign = Object.assign || function(t) {
|
|
18
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
-
s = arguments[i];
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
return __assign.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
import * as React from 'react';
|
|
28
|
-
import * as PropTypes from 'prop-types';
|
|
29
|
-
import { DropDownList } from '@progress/kendo-react-dropdowns';
|
|
30
|
-
import { provideLocalizationService, registerForLocalization } from '@progress/kendo-react-intl';
|
|
31
|
-
import { messages, filterEnumFilterDropdownAriaLabel } from './../../messages';
|
|
32
|
-
/**
|
|
33
|
-
* The EnumFilter component used for editing the value of FilterDescriptor object.
|
|
34
|
-
* It renders a DropDownList and allows you to choose a value from the predefined list.
|
|
35
|
-
*/
|
|
36
|
-
var EnumFilter = /** @class */ (function (_super) {
|
|
37
|
-
__extends(EnumFilter, _super);
|
|
38
|
-
function EnumFilter() {
|
|
39
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
40
|
-
_this.onChange = function (event) {
|
|
41
|
-
_this.props.onFilterChange.call(undefined, {
|
|
42
|
-
nextFilter: __assign(__assign({}, _this.props.filter), { value: event.value.value })
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
return _this;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* @hidden
|
|
49
|
-
*/
|
|
50
|
-
EnumFilter.prototype.render = function () {
|
|
51
|
-
var locService = provideLocalizationService(this);
|
|
52
|
-
var _a = this.props, filter = _a.filter, _b = _a.data, data = _b === void 0 ? [] : _b, defaultItem = _a.defaultItem, _c = _a.ariaLabel, ariaLabel = _c === void 0 ? locService.toLanguageString(filterEnumFilterDropdownAriaLabel, messages[filterEnumFilterDropdownAriaLabel]) : _c;
|
|
53
|
-
var locData = data.map(function (item) { return (__assign(__assign({}, item), { text: locService.toLanguageString(item.text, messages[item.text] || item.text) })); });
|
|
54
|
-
return (React.createElement(DropDownList, { value: locData.find(function (i) { return i.value === filter.value; }) || null, onChange: this.onChange, defaultItem: defaultItem, data: locData, textField: "text", ariaLabel: ariaLabel }));
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* @hidden
|
|
58
|
-
*/
|
|
59
|
-
EnumFilter.propTypes = {
|
|
60
|
-
filter: PropTypes.object.isRequired,
|
|
61
|
-
onFilterChange: PropTypes.func.isRequired,
|
|
62
|
-
data: PropTypes.arrayOf(PropTypes.shape({ text: PropTypes.string, value: PropTypes.any })),
|
|
63
|
-
defaultItem: PropTypes.any,
|
|
64
|
-
ariaLabel: PropTypes.string
|
|
65
|
-
};
|
|
66
|
-
return EnumFilter;
|
|
67
|
-
}(React.Component));
|
|
68
|
-
export { EnumFilter };
|
|
69
|
-
registerForLocalization(EnumFilter);
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
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");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
var __assign = (this && this.__assign) || function () {
|
|
17
|
-
__assign = Object.assign || function(t) {
|
|
18
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
-
s = arguments[i];
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
return __assign.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
import * as React from 'react';
|
|
28
|
-
import * as PropTypes from 'prop-types';
|
|
29
|
-
import { NumericTextBox } from '@progress/kendo-react-inputs';
|
|
30
|
-
import { provideLocalizationService, registerForLocalization } from '@progress/kendo-react-intl';
|
|
31
|
-
import { messages, filterNumericFilterAriaLabel } from '../../messages';
|
|
32
|
-
/**
|
|
33
|
-
* The NumericFilter component used for editing numeric value of FilterDescriptor object.
|
|
34
|
-
*/
|
|
35
|
-
var NumericFilter = /** @class */ (function (_super) {
|
|
36
|
-
__extends(NumericFilter, _super);
|
|
37
|
-
function NumericFilter() {
|
|
38
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
39
|
-
_this.onChange = function (event) {
|
|
40
|
-
_this.props.onFilterChange.call(undefined, {
|
|
41
|
-
nextFilter: __assign(__assign({}, _this.props.filter), { value: event.value })
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
return _this;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*/
|
|
49
|
-
NumericFilter.prototype.render = function () {
|
|
50
|
-
var locService = provideLocalizationService(this);
|
|
51
|
-
var _a = this.props, min = _a.min, max = _a.max, filter = _a.filter, _b = _a.ariaLabel, ariaLabel = _b === void 0 ? locService.toLanguageString(filterNumericFilterAriaLabel, messages[filterNumericFilterAriaLabel]) : _b;
|
|
52
|
-
return (React.createElement(NumericTextBox, { value: typeof filter.value === 'number' ? filter.value : null, onChange: this.onChange, ariaLabel: ariaLabel, "aria-valuemin": min, "aria-valuemax": max, min: min, max: max }));
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* @hidden
|
|
56
|
-
*/
|
|
57
|
-
NumericFilter.propTypes = {
|
|
58
|
-
filter: PropTypes.object.isRequired,
|
|
59
|
-
onFilterChange: PropTypes.func.isRequired
|
|
60
|
-
};
|
|
61
|
-
return NumericFilter;
|
|
62
|
-
}(React.Component));
|
|
63
|
-
export { NumericFilter };
|
|
64
|
-
registerForLocalization(NumericFilter);
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
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");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
var __assign = (this && this.__assign) || function () {
|
|
17
|
-
__assign = Object.assign || function(t) {
|
|
18
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
-
s = arguments[i];
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
return __assign.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
import * as React from 'react';
|
|
28
|
-
import * as PropTypes from 'prop-types';
|
|
29
|
-
import { TextBox } from '@progress/kendo-react-inputs';
|
|
30
|
-
import { provideLocalizationService, registerForLocalization } from '@progress/kendo-react-intl';
|
|
31
|
-
import { messages, filterTextFilterAriaLabel } from '../../messages';
|
|
32
|
-
/**
|
|
33
|
-
* The TextFilter component used for editing text value of FilterDescriptor object.
|
|
34
|
-
*/
|
|
35
|
-
var TextFilter = /** @class */ (function (_super) {
|
|
36
|
-
__extends(TextFilter, _super);
|
|
37
|
-
function TextFilter() {
|
|
38
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
39
|
-
_this.onChange = function (event) {
|
|
40
|
-
_this.props.onFilterChange.call(undefined, {
|
|
41
|
-
nextFilter: __assign(__assign({}, _this.props.filter), { value: event.value })
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
return _this;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*/
|
|
49
|
-
TextFilter.prototype.render = function () {
|
|
50
|
-
var locService = provideLocalizationService(this);
|
|
51
|
-
var _a = this.props.ariaLabel, ariaLabel = _a === void 0 ? locService.toLanguageString(filterTextFilterAriaLabel, messages[filterTextFilterAriaLabel]) : _a;
|
|
52
|
-
return (React.createElement(TextBox, { value: this.props.filter.value || '', onChange: this.onChange, "aria-label": ariaLabel }));
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* @hidden
|
|
56
|
-
*/
|
|
57
|
-
TextFilter.propTypes = {
|
|
58
|
-
filter: PropTypes.object.isRequired,
|
|
59
|
-
onFilterChange: PropTypes.func.isRequired,
|
|
60
|
-
ariaLabel: PropTypes.string
|
|
61
|
-
};
|
|
62
|
-
return TextFilter;
|
|
63
|
-
}(React.Component));
|
|
64
|
-
export { TextFilter };
|
|
65
|
-
registerForLocalization(TextFilter);
|
package/dist/es/filter/index.js
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
-
if (ar || !(i in from)) {
|
|
4
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
-
ar[i] = from[i];
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
-
};
|
|
10
|
-
import { filterEqOperator, filterNotEqOperator, filterIsNullOperator, filterIsNotNullOperator, filterIsEmptyOperator, filterIsNotEmptyOperator, filterStartsWithOperator, filterContainsOperator, filterNotContainsOperator, filterEndsWithOperator, filterGteOperator, filterGtOperator, filterLteOperator, filterLtOperator, filterAfterOrEqualOperator, filterAfterOperator, filterBeforeOperator, filterBeforeOrEqualOperator } from './../messages';
|
|
11
|
-
var textOperators = [
|
|
12
|
-
{ text: filterContainsOperator, operator: 'contains' },
|
|
13
|
-
{ text: filterNotContainsOperator, operator: 'doesnotcontain' },
|
|
14
|
-
{ text: filterEqOperator, operator: 'eq' },
|
|
15
|
-
{ text: filterNotEqOperator, operator: 'neq' },
|
|
16
|
-
{ text: filterStartsWithOperator, operator: 'startswith' },
|
|
17
|
-
{ text: filterEndsWithOperator, operator: 'endswith' },
|
|
18
|
-
{ text: filterIsNullOperator, operator: 'isnull' },
|
|
19
|
-
{ text: filterIsNotNullOperator, operator: 'isnotnull' },
|
|
20
|
-
{ text: filterIsEmptyOperator, operator: 'isempty' },
|
|
21
|
-
{ text: filterIsNotEmptyOperator, operator: 'isnotempty' }
|
|
22
|
-
];
|
|
23
|
-
var numericOperators = [
|
|
24
|
-
{ text: filterEqOperator, operator: 'eq' },
|
|
25
|
-
{ text: filterNotEqOperator, operator: 'neq' },
|
|
26
|
-
{ text: filterGteOperator, operator: 'gte' },
|
|
27
|
-
{ text: filterGtOperator, operator: 'gt' },
|
|
28
|
-
{ text: filterLteOperator, operator: 'lte' },
|
|
29
|
-
{ text: filterLtOperator, operator: 'lt' },
|
|
30
|
-
{ text: filterIsNullOperator, operator: 'isnull' },
|
|
31
|
-
{ text: filterIsNotNullOperator, operator: 'isnotnull' }
|
|
32
|
-
];
|
|
33
|
-
var dateOperators = [
|
|
34
|
-
{ text: filterEqOperator, operator: 'eq' },
|
|
35
|
-
{ text: filterNotEqOperator, operator: 'neq' },
|
|
36
|
-
{ text: filterAfterOrEqualOperator, operator: 'gte' },
|
|
37
|
-
{ text: filterAfterOperator, operator: 'gt' },
|
|
38
|
-
{ text: filterBeforeOperator, operator: 'lt' },
|
|
39
|
-
{ text: filterBeforeOrEqualOperator, operator: 'lte' },
|
|
40
|
-
{ text: filterIsNullOperator, operator: 'isnull' },
|
|
41
|
-
{ text: filterIsNotNullOperator, operator: 'isnotnull' }
|
|
42
|
-
];
|
|
43
|
-
var booleanOperators = [
|
|
44
|
-
{ text: filterEqOperator, operator: 'eq' },
|
|
45
|
-
{ text: filterNotEqOperator, operator: 'neq' }
|
|
46
|
-
];
|
|
47
|
-
/**
|
|
48
|
-
* Represents the operators for the TextFilter, NumericFilter, DateFilter and BooleanFilter components.
|
|
49
|
-
*
|
|
50
|
-
* The text field of each operator object will be resolved according to the
|
|
51
|
-
* [localization messages]({% slug globalization_datatools %}#toc-messages).
|
|
52
|
-
*/
|
|
53
|
-
var Operators = /** @class */ (function () {
|
|
54
|
-
function Operators() {
|
|
55
|
-
}
|
|
56
|
-
Object.defineProperty(Operators, "text", {
|
|
57
|
-
/**
|
|
58
|
-
* An array containing the operators for the TextFilter component.
|
|
59
|
-
*
|
|
60
|
-
* The operators are:
|
|
61
|
-
*
|
|
62
|
-
* - { text: 'filter.containsOperator', operator: 'contains' }
|
|
63
|
-
* - { text: 'filter.notContainsOperator', operator: 'doesnotcontain' }
|
|
64
|
-
* - { text: 'filter.eqOperator', operator: 'eq' }
|
|
65
|
-
* - { text: 'filter.notEqOperator', operator: 'neq' }
|
|
66
|
-
* - { text: 'filter.startsWithOperator', operator: 'startswith' }
|
|
67
|
-
* - { text: 'filter.endsWithOperator', operator: 'endswith' }
|
|
68
|
-
* - { text: 'filter.isNullOperator', operator: 'isnull' }
|
|
69
|
-
* - { text: 'filter.isNotNullOperator', operator: 'isnotnull' }
|
|
70
|
-
* - { text: 'filter.isEmptyOperator', operator: 'isempty' }
|
|
71
|
-
* - { text: 'filter.isNotEmptyOperator', operator: 'isnotempty' }
|
|
72
|
-
*/
|
|
73
|
-
get: function () {
|
|
74
|
-
return __spreadArray([], textOperators, true);
|
|
75
|
-
},
|
|
76
|
-
enumerable: false,
|
|
77
|
-
configurable: true
|
|
78
|
-
});
|
|
79
|
-
Object.defineProperty(Operators, "numeric", {
|
|
80
|
-
/**
|
|
81
|
-
* An array containing the operators for the NumericFilter component.
|
|
82
|
-
*
|
|
83
|
-
* The operators are:
|
|
84
|
-
*
|
|
85
|
-
* - { text: 'filter.eqOperator', operator: 'eq' }
|
|
86
|
-
* - { text: 'filter.notEqOperator', operator: 'neq' }
|
|
87
|
-
* - { text: 'filter.gteOperator', operator: 'gte' }
|
|
88
|
-
* - { text: 'filter.gtOperator', operator: 'gt' }
|
|
89
|
-
* - { text: 'filter.lteOperator', operator: 'lte' }
|
|
90
|
-
* - { text: 'filter.ltOperator', operator: 'lt' }
|
|
91
|
-
* - { text: 'filter.isNullOperator', operator: 'isnull' }
|
|
92
|
-
* - { text: 'filter.isNotNullOperator', operator: 'isnotnull' }
|
|
93
|
-
*/
|
|
94
|
-
get: function () {
|
|
95
|
-
return __spreadArray([], numericOperators, true);
|
|
96
|
-
},
|
|
97
|
-
enumerable: false,
|
|
98
|
-
configurable: true
|
|
99
|
-
});
|
|
100
|
-
Object.defineProperty(Operators, "date", {
|
|
101
|
-
/**
|
|
102
|
-
* An array containing the operators for the DateFilter component.
|
|
103
|
-
*
|
|
104
|
-
* The operators are:
|
|
105
|
-
*
|
|
106
|
-
* - { text: 'filter.eqOperator', operator: 'eq' }
|
|
107
|
-
* - { text: 'filter.notEqOperator', operator: 'neq' }
|
|
108
|
-
* - { text: 'filter.afterOrEqualOperator', operator: 'gte' }
|
|
109
|
-
* - { text: 'filter.afterOperator', operator: 'gt' }
|
|
110
|
-
* - { text: 'filter.beforeOperator', operator: 'lt' }
|
|
111
|
-
* - { text: 'filter.beforeOrEqualOperator', operator: 'lte' }
|
|
112
|
-
* - { text: 'filter.isNullOperator', operator: 'isnull' }
|
|
113
|
-
* - { text: 'filter.isNotNullOperator', operator: 'isnotnull' }
|
|
114
|
-
*/
|
|
115
|
-
get: function () {
|
|
116
|
-
return __spreadArray([], dateOperators, true);
|
|
117
|
-
},
|
|
118
|
-
enumerable: false,
|
|
119
|
-
configurable: true
|
|
120
|
-
});
|
|
121
|
-
Object.defineProperty(Operators, "boolean", {
|
|
122
|
-
/**
|
|
123
|
-
* An array containing the operators for the BooleanFilter component.
|
|
124
|
-
*
|
|
125
|
-
* The operators are:
|
|
126
|
-
*
|
|
127
|
-
* - { text: 'filter.eqOperator', operator: 'eq' }
|
|
128
|
-
* - { text: 'filter.notEqOperator', operator: 'neq' }
|
|
129
|
-
*/
|
|
130
|
-
get: function () {
|
|
131
|
-
return __spreadArray([], booleanOperators, true);
|
|
132
|
-
},
|
|
133
|
-
enumerable: false,
|
|
134
|
-
configurable: true
|
|
135
|
-
});
|
|
136
|
-
return Operators;
|
|
137
|
-
}());
|
|
138
|
-
export { Operators };
|
|
139
|
-
/**
|
|
140
|
-
* @hidden
|
|
141
|
-
*/
|
|
142
|
-
export var stringOperator = function (operator) {
|
|
143
|
-
return operator === 'contains' || operator === 'doesnotcontain' || operator === 'startswith' || operator === 'endswith';
|
|
144
|
-
};
|
|
145
|
-
/**
|
|
146
|
-
* @hidden
|
|
147
|
-
*/
|
|
148
|
-
export var unaryOperator = function (operator) {
|
|
149
|
-
return operator === 'isnull' || operator === 'isnotnull' || operator === 'isempty' || operator === 'isnotempty';
|
|
150
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare const BooleanFilterCell_base: React.ComponentClass<import("./FilterComponentProps").FilterComponentProps, any>;
|
|
3
|
-
/**
|
|
4
|
-
* @hidden
|
|
5
|
-
*/
|
|
6
|
-
export declare class BooleanFilterCell extends BooleanFilterCell_base {
|
|
7
|
-
}
|
|
8
|
-
export {};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
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");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
var __assign = (this && this.__assign) || function () {
|
|
17
|
-
__assign = Object.assign || function(t) {
|
|
18
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
-
s = arguments[i];
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
return __assign.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
28
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
29
|
-
if (ar || !(i in from)) {
|
|
30
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
31
|
-
ar[i] = from[i];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
35
|
-
};
|
|
36
|
-
import * as React from 'react';
|
|
37
|
-
import { createFilterComponent } from './FilterComponent';
|
|
38
|
-
import { DropDownList } from '@progress/kendo-react-dropdowns';
|
|
39
|
-
var booleanOperator = 'eq';
|
|
40
|
-
var settings = {
|
|
41
|
-
emptyFilter: { operator: booleanOperator, value: '' },
|
|
42
|
-
inputComponent: function (_props) { return null; },
|
|
43
|
-
operatorComponent: function (props, cellProps) {
|
|
44
|
-
var _a = cellProps.filter, filter = _a === void 0 ? [] : _a, field = cellProps.field;
|
|
45
|
-
var current = filter.find(function (f) { return f.field === field; });
|
|
46
|
-
return (React.createElement(DropDownList, __assign({}, props, { value: props.data.find(function (x) { return x.operator === (current ? current.value : ''); }), onChange: function (e) {
|
|
47
|
-
if (!cellProps.onFilterChange) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
var value = e.target.value.operator;
|
|
51
|
-
if (value === '') {
|
|
52
|
-
if (current) {
|
|
53
|
-
cellProps.onFilterChange.call(undefined, {
|
|
54
|
-
filter: filter.filter(function (f) { return f.field !== current.field; }),
|
|
55
|
-
field: field,
|
|
56
|
-
syntheticEvent: e.syntheticEvent
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
var filterResult = current ?
|
|
62
|
-
filter.map(function (f) { return f.field === field ? __assign(__assign({}, current), { value: value }) : f; }) : __spreadArray(__spreadArray([], filter, true), [{ value: value, field: field, operator: booleanOperator }], false);
|
|
63
|
-
cellProps.onFilterChange.call(undefined, {
|
|
64
|
-
filter: filterResult,
|
|
65
|
-
field: field,
|
|
66
|
-
syntheticEvent: e.syntheticEvent
|
|
67
|
-
});
|
|
68
|
-
} })));
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* @hidden
|
|
73
|
-
*/
|
|
74
|
-
var BooleanFilterCell = /** @class */ (function (_super) {
|
|
75
|
-
__extends(BooleanFilterCell, _super);
|
|
76
|
-
function BooleanFilterCell() {
|
|
77
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
78
|
-
}
|
|
79
|
-
return BooleanFilterCell;
|
|
80
|
-
}(createFilterComponent(settings)));
|
|
81
|
-
export { BooleanFilterCell };
|