@progress/kendo-react-data-tools 13.3.0 → 13.4.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/clipboard/clipboard.service.d.ts +20 -0
- package/clipboard/common.d.ts +188 -0
- package/columnmenu/ColumnMenu.d.ts +90 -0
- package/columnmenu/ColumnMenuFilterForm.d.ts +25 -0
- package/columnmenu/ColumnMenuFilterLogic.d.ts +10 -0
- package/columnmenu/ColumnMenuFilterLogic.mjs +4 -4
- package/columnmenu/ColumnMenuFilters.d.ts +31 -0
- package/columnmenu/ColumnMenuItem.d.ts +39 -0
- package/columnmenu/ColumnMenuOperators.d.ts +72 -0
- package/columnmenu/index.d.ts +13 -0
- package/data-source/use-data-source.d.ts +224 -0
- package/data-source/use-odata-data-source.d.ts +41 -0
- package/data-source/use-remote-data-source.d.ts +411 -0
- package/detail-expansion/TableExpandableSettings.d.ts +12 -0
- package/detail-expansion/expandReducer.d.ts +31 -0
- package/detail-expansion/utils.d.ts +10 -0
- package/dist/cdn/js/kendo-react-datatools.js +1 -1
- package/drag/ColumnDraggable.d.ts +37 -0
- package/drag/ColumnResize.d.ts +39 -0
- package/drag/ColumnResizer.d.ts +35 -0
- package/drag/CommonDragLogic.d.ts +45 -0
- package/drag/DragClue.d.ts +29 -0
- package/drag/DropClue.d.ts +26 -0
- package/editing/TableEditableSettings.d.ts +24 -0
- package/editing/editReducer.d.ts +62 -0
- package/editing/utils.d.ts +12 -0
- package/filter/Expression.d.ts +53 -0
- package/filter/Expression.js +1 -1
- package/filter/Expression.mjs +10 -11
- package/filter/FieldSettings.d.ts +37 -0
- package/filter/Filter.d.ts +139 -0
- package/filter/Group.d.ts +64 -0
- package/filter/Group.js +1 -1
- package/filter/Group.mjs +7 -7
- package/filter/filters/BooleanFilter.d.ts +50 -0
- package/filter/filters/DateFilter.d.ts +33 -0
- package/filter/filters/EnumFilter.d.ts +50 -0
- package/filter/filters/NumericFilter.d.ts +40 -0
- package/filter/filters/TextFilter.d.ts +47 -0
- package/filter/filters/index.d.ts +12 -0
- package/filter/index.d.ts +13 -0
- package/filter/operators.d.ts +80 -0
- package/filteringCells/BooleanFilter.d.ts +15 -0
- package/filteringCells/DateFilter.d.ts +15 -0
- package/filteringCells/FilterCellProps.d.ts +42 -0
- package/filteringCells/FilterComponent.d.ts +24 -0
- package/filteringCells/FilterComponentProps.d.ts +30 -0
- package/filteringCells/FilterOperator.d.ts +20 -0
- package/filteringCells/NumericFilter.d.ts +15 -0
- package/filteringCells/TextFilter.d.ts +15 -0
- package/filteringCells/index.d.ts +15 -0
- package/group-expansion/TableGroupExpandableSettings.d.ts +12 -0
- package/group-expansion/groupExpandReducer.d.ts +46 -0
- package/header/CellProps.d.ts +83 -0
- package/header/ColumnProps.d.ts +167 -0
- package/header/FilterRow.d.ts +32 -0
- package/header/Header.d.ts +26 -0
- package/header/HeaderCell.d.ts +54 -0
- package/header/HeaderRow.d.ts +44 -0
- package/header/HeaderSelectionCell.d.ts +19 -0
- package/header/HeaderTdElement.d.ts +42 -0
- package/header/HeaderThElement.d.ts +42 -0
- package/header/SortSettings.d.ts +33 -0
- package/header/index.d.ts +18 -0
- package/header/utils/index.d.ts +90 -0
- package/index.d.mts +43 -3741
- package/index.d.ts +43 -3741
- package/messages/index.d.ts +397 -0
- package/navigation/NavigatableSettings.d.ts +25 -0
- package/navigation/TableKeyboardNavigation.d.ts +95 -0
- package/navigation/TableKeyboardNavigation.mjs +13 -13
- package/navigation/TableKeyboardNavigationContext.d.ts +13 -0
- package/navigation/TableKeyboardNavigationContextType.d.ts +14 -0
- package/navigation/TableKeyboardNavigationStateType.d.ts +17 -0
- package/navigation/constants.d.ts +61 -0
- package/navigation/hooks.d.ts +19 -0
- package/navigation/hooks.mjs +3 -3
- package/navigation/stackedKeyboardNavigation.d.ts +217 -0
- package/navigation/utils.d.ts +329 -0
- package/navigation/utils.mjs +5 -5
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +10 -10
- package/pager/Pager.d.ts +10 -0
- package/pager/Pager.js +1 -1
- package/pager/Pager.mjs +64 -66
- package/pager/PagerInput.d.ts +29 -0
- package/pager/PagerNumericButtons.d.ts +28 -0
- package/pager/PagerNumericButtons.js +1 -1
- package/pager/PagerNumericButtons.mjs +15 -17
- package/pager/PagerPageSizes.d.ts +36 -0
- package/pager/models/index.d.ts +178 -0
- package/pager/utils.d.ts +66 -0
- package/selection/TableSelectableSettings.d.ts +38 -0
- package/selection/TableSelection.d.ts +25 -0
- package/selection/constants.d.ts +13 -0
- package/selection/events.d.ts +101 -0
- package/selection/utils.d.ts +70 -0
- package/utils/DataItemWrapper.d.ts +17 -0
- package/utils/SearchField.d.ts +24 -0
- package/utils/data-operations.d.ts +107 -0
- package/utils/group-operations.d.ts +36 -0
- package/virtualization/columns.d.ts +24 -0
- package/virtualization/index.d.ts +8 -0
package/filter/Group.js
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),l=require("prop-types"),h=require("@progress/kendo-data-query"),c=require("@progress/kendo-react-buttons"),f=require("@progress/kendo-react-intl"),d=require("@progress/kendo-svg-icons"),m=require("./Expression.js"),E=require("./operators.js"),i=require("../messages/index.js");function b(p){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(p){for(const t in p)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(p,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>p[t]})}}return e.default=p,Object.freeze(e)}const o=b(v),s=class s extends o.Component{constructor(){super(...arguments),this.getFilterKey=(e,t)=>{let r=s.filterIdMap.get(e);return r||(h.isCompositeFilterDescriptor(e)?r=`group-${e.logic}-${t}-${s.filterIdCounter++}`:r=`expr-${e.field}-${e.operator}-${t}-${s.filterIdCounter++}`,s.filterIdMap.set(e,r)),r},this.onGroupRemove=e=>{const t={filter:this.props.filter,target:this,syntheticEvent:e,nativeEvent:e.nativeEvent};this.props.onRemove.call(void 0,t)},this.onAddExpression=e=>{const t=this.props.filter,r=this.props.fields[0],n={field:r.name,operator:r.operators[0].operator};n.value=E.stringOperator(n.operator)?"":null;const a={nextFilter:{...t,filters:[...t.filters,n]},prevFilter:t,target:this,syntheticEvent:e,nativeEvent:e.nativeEvent};this.props.onChange.call(void 0,a)},this.onAddGroup=e=>{const t=this.props.filter,r={...this.props.defaultGroupFilter},n={nextFilter:{...t,filters:[...t.filters,r]},prevFilter:t,target:this,syntheticEvent:e,nativeEvent:e.nativeEvent};this.props.onChange.call(void 0,n)},this.onLogicAnd=e=>this.changeLogic("and",e),this.onLogicOr=e=>this.changeLogic("or",e),this.changeLogic=(e,t)=>{const r=this.props.filter;if(r.logic!==e){const n={nextFilter:{...r,logic:e},prevFilter:r,target:this,syntheticEvent:t,nativeEvent:t.nativeEvent};this.props.onChange.call(void 0,n)}},this.replaceFilter=(e,t)=>{const r=this.props.filter,n=r.filters.map(a=>{if(a===e){const g=s.filterIdMap.get(e);return g&&s.filterIdMap.set(t,g),t}return a});return{...r,filters:n}},this.onChange=e=>{const r={nextFilter:this.replaceFilter(e.prevFilter,e.nextFilter),prevFilter:this.props.filter,syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:this};this.props.onChange.call(void 0,r)},this.onRemove=e=>{const t=this.props.filter,r=t.filters.filter(a=>a!==e.filter),n={nextFilter:{...t,filters:r},prevFilter:t,syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:this};this.props.onChange.call(void 0,n)}}render(){const e=f.provideLocalizationService(this),{fields:t,filter:r,ariaLabel:n=e.toLanguageString(i.filterGroupAriaLabel,i.messages[i.filterGroupAriaLabel])}=this.props;return o.createElement(o.Fragment,null,o.createElement("div",{className:"k-filter-toolbar"},o.createElement(c.Toolbar,{role:"toolbar",ariaLabel:n},o.createElement(c.ButtonGroup,{className:"k-toolbar-button-group
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),l=require("prop-types"),h=require("@progress/kendo-data-query"),c=require("@progress/kendo-react-buttons"),f=require("@progress/kendo-react-intl"),d=require("@progress/kendo-svg-icons"),m=require("./Expression.js"),E=require("./operators.js"),i=require("../messages/index.js");function b(p){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(p){for(const t in p)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(p,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>p[t]})}}return e.default=p,Object.freeze(e)}const o=b(v),s=class s extends o.Component{constructor(){super(...arguments),this.getFilterKey=(e,t)=>{let r=s.filterIdMap.get(e);return r||(h.isCompositeFilterDescriptor(e)?r=`group-${e.logic}-${t}-${s.filterIdCounter++}`:r=`expr-${e.field}-${e.operator}-${t}-${s.filterIdCounter++}`,s.filterIdMap.set(e,r)),r},this.onGroupRemove=e=>{const t={filter:this.props.filter,target:this,syntheticEvent:e,nativeEvent:e.nativeEvent};this.props.onRemove.call(void 0,t)},this.onAddExpression=e=>{const t=this.props.filter,r=this.props.fields[0],n={field:r.name,operator:r.operators[0].operator};n.value=E.stringOperator(n.operator)?"":null;const a={nextFilter:{...t,filters:[...t.filters,n]},prevFilter:t,target:this,syntheticEvent:e,nativeEvent:e.nativeEvent};this.props.onChange.call(void 0,a)},this.onAddGroup=e=>{const t=this.props.filter,r={...this.props.defaultGroupFilter},n={nextFilter:{...t,filters:[...t.filters,r]},prevFilter:t,target:this,syntheticEvent:e,nativeEvent:e.nativeEvent};this.props.onChange.call(void 0,n)},this.onLogicAnd=e=>this.changeLogic("and",e),this.onLogicOr=e=>this.changeLogic("or",e),this.changeLogic=(e,t)=>{const r=this.props.filter;if(r.logic!==e){const n={nextFilter:{...r,logic:e},prevFilter:r,target:this,syntheticEvent:t,nativeEvent:t.nativeEvent};this.props.onChange.call(void 0,n)}},this.replaceFilter=(e,t)=>{const r=this.props.filter,n=r.filters.map(a=>{if(a===e){const g=s.filterIdMap.get(e);return g&&s.filterIdMap.set(t,g),t}return a});return{...r,filters:n}},this.onChange=e=>{const r={nextFilter:this.replaceFilter(e.prevFilter,e.nextFilter),prevFilter:this.props.filter,syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:this};this.props.onChange.call(void 0,r)},this.onRemove=e=>{const t=this.props.filter,r=t.filters.filter(a=>a!==e.filter),n={nextFilter:{...t,filters:r},prevFilter:t,syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:this};this.props.onChange.call(void 0,n)}}render(){const e=f.provideLocalizationService(this),{fields:t,filter:r,ariaLabel:n=e.toLanguageString(i.filterGroupAriaLabel,i.messages[i.filterGroupAriaLabel])}=this.props;return o.createElement(o.Fragment,null,o.createElement("div",{className:"k-filter-toolbar"},o.createElement(c.Toolbar,{role:"toolbar",ariaLabel:n},o.createElement(c.ButtonGroup,{className:"k-toolbar-button-group"},o.createElement(c.Button,{togglable:!0,onClick:this.onLogicAnd,selected:r.logic==="and",type:"button"},e.toLanguageString(i.filterAndLogic,i.messages[i.filterAndLogic])),o.createElement(c.Button,{togglable:!0,onClick:this.onLogicOr,selected:r.logic==="or",type:"button"},e.toLanguageString(i.filterOrLogic,i.messages[i.filterOrLogic]))),o.createElement(c.Button,{className:"k-toolbar-button",title:e.toLanguageString(i.filterAddExpression,i.messages[i.filterAddExpression]),icon:"filter-add-expression",svgIcon:d.filterAddExpressionIcon,type:"button",onClick:this.onAddExpression},e.toLanguageString(i.filterAddExpression,i.messages[i.filterAddExpression])),o.createElement(c.Button,{className:"k-toolbar-button",title:e.toLanguageString(i.filterAddGroup,i.messages[i.filterAddGroup]),icon:"filter-add-group",svgIcon:d.filterAddGroupIcon,type:"button",onClick:this.onAddGroup},e.toLanguageString(i.filterAddGroup,i.messages[i.filterAddGroup])),o.createElement(c.Button,{className:"k-toolbar-button",title:e.toLanguageString(i.filterClose,i.messages[i.filterClose]),icon:"x",svgIcon:d.xIcon,fillMode:"flat",type:"button",onClick:this.onGroupRemove}))),r.filters.length>0&&o.createElement("ul",{role:"group",className:"k-filter-lines"},r.filters.map((a,g)=>o.createElement("li",{role:"treeitem","aria-selected":!1,key:this.getFilterKey(a,g),className:"k-filter-item"},h.isCompositeFilterDescriptor(a)?o.createElement(s,{filter:a,fields:t,onChange:this.onChange,onRemove:this.onRemove,defaultGroupFilter:this.props.defaultGroupFilter,ariaLabel:this.props.ariaLabel,ariaLabelExpression:this.props.ariaLabelExpression}):o.createElement(m.Expression,{filter:a,fields:t,ariaLabel:this.props.ariaLabelExpression,onChange:this.onChange,onRemove:this.onRemove})))))}};s.propTypes={filter:l.object.isRequired,fields:l.array.isRequired,ariaLabel:l.string,ariaLabelExpression:l.string,onChange:l.func.isRequired,onRemove:l.func.isRequired,defaultGroupFilter:l.object.isRequired},s.filterIdCounter=0,s.filterIdMap=new WeakMap;let u=s;f.registerForLocalization(u);exports.Group=u;
|
package/filter/Group.mjs
CHANGED
|
@@ -11,9 +11,9 @@ import l from "prop-types";
|
|
|
11
11
|
import { isCompositeFilterDescriptor as d } from "@progress/kendo-data-query";
|
|
12
12
|
import { Toolbar as b, ButtonGroup as L, Button as p } from "@progress/kendo-react-buttons";
|
|
13
13
|
import { provideLocalizationService as F, registerForLocalization as C } from "@progress/kendo-react-intl";
|
|
14
|
-
import { filterAddExpressionIcon as x, filterAddGroupIcon as y, xIcon as
|
|
15
|
-
import { Expression as
|
|
16
|
-
import { stringOperator as
|
|
14
|
+
import { filterAddExpressionIcon as x, filterAddGroupIcon as y, xIcon as I } from "@progress/kendo-svg-icons";
|
|
15
|
+
import { Expression as R } from "./Expression.mjs";
|
|
16
|
+
import { stringOperator as k } from "./operators.mjs";
|
|
17
17
|
import { filterGroupAriaLabel as u, messages as a, filterAndLogic as m, filterOrLogic as v, filterAddExpression as g, filterAddGroup as h, filterClose as E } from "../messages/index.mjs";
|
|
18
18
|
const n = class n extends r.Component {
|
|
19
19
|
constructor() {
|
|
@@ -30,7 +30,7 @@ const n = class n extends r.Component {
|
|
|
30
30
|
this.props.onRemove.call(void 0, e);
|
|
31
31
|
}, this.onAddExpression = (t) => {
|
|
32
32
|
const e = this.props.filter, i = this.props.fields[0], o = { field: i.name, operator: i.operators[0].operator };
|
|
33
|
-
o.value =
|
|
33
|
+
o.value = k(o.operator) ? "" : null;
|
|
34
34
|
const s = {
|
|
35
35
|
nextFilter: {
|
|
36
36
|
...e,
|
|
@@ -98,7 +98,7 @@ const n = class n extends r.Component {
|
|
|
98
98
|
filter: i,
|
|
99
99
|
ariaLabel: o = t.toLanguageString(u, a[u])
|
|
100
100
|
} = this.props;
|
|
101
|
-
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement("div", { className: "k-filter-toolbar" }, /* @__PURE__ */ r.createElement(b, { role: "toolbar", ariaLabel: o }, /* @__PURE__ */ r.createElement(L, { className: "k-toolbar-button-group
|
|
101
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement("div", { className: "k-filter-toolbar" }, /* @__PURE__ */ r.createElement(b, { role: "toolbar", ariaLabel: o }, /* @__PURE__ */ r.createElement(L, { className: "k-toolbar-button-group" }, /* @__PURE__ */ r.createElement(
|
|
102
102
|
p,
|
|
103
103
|
{
|
|
104
104
|
togglable: !0,
|
|
@@ -144,7 +144,7 @@ const n = class n extends r.Component {
|
|
|
144
144
|
className: "k-toolbar-button",
|
|
145
145
|
title: t.toLanguageString(E, a[E]),
|
|
146
146
|
icon: "x",
|
|
147
|
-
svgIcon:
|
|
147
|
+
svgIcon: I,
|
|
148
148
|
fillMode: "flat",
|
|
149
149
|
type: "button",
|
|
150
150
|
onClick: this.onGroupRemove
|
|
@@ -169,7 +169,7 @@ const n = class n extends r.Component {
|
|
|
169
169
|
ariaLabelExpression: this.props.ariaLabelExpression
|
|
170
170
|
}
|
|
171
171
|
) : /* @__PURE__ */ r.createElement(
|
|
172
|
-
|
|
172
|
+
R,
|
|
173
173
|
{
|
|
174
174
|
filter: s,
|
|
175
175
|
fields: e,
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as PropTypes } from 'prop-types';
|
|
9
|
+
import { TextFilterProps } from './TextFilter.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* The props of the BooleanFilter component.
|
|
13
|
+
*/
|
|
14
|
+
export interface BooleanFilterProps extends TextFilterProps {
|
|
15
|
+
/**
|
|
16
|
+
* A collection of text-value pairs passed to the BooleanFilter DropDownList.
|
|
17
|
+
* Defaults to [ { text: 'True', value: true }, { text: 'False', value: false } ]
|
|
18
|
+
*/
|
|
19
|
+
data?: Array<{
|
|
20
|
+
text: string;
|
|
21
|
+
value: any;
|
|
22
|
+
}>;
|
|
23
|
+
/**
|
|
24
|
+
* The defaultItem passed to the BooleanFilter DropDownList.
|
|
25
|
+
*/
|
|
26
|
+
defaultItem?: any;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The BooleanFilter component used for editing boolean value of FilterDescriptor object.
|
|
30
|
+
*/
|
|
31
|
+
export declare class BooleanFilter extends React.Component<BooleanFilterProps> {
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
static propTypes: {
|
|
36
|
+
filter: PropTypes.Validator<object>;
|
|
37
|
+
onFilterChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
38
|
+
data: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
39
|
+
text: PropTypes.Requireable<string>;
|
|
40
|
+
value: PropTypes.Requireable<any>;
|
|
41
|
+
}> | null | undefined)[]>;
|
|
42
|
+
ariaLabel: PropTypes.Requireable<string>;
|
|
43
|
+
defaultItem: PropTypes.Requireable<any>;
|
|
44
|
+
};
|
|
45
|
+
private data;
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
render(): React.JSX.Element;
|
|
50
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as PropTypes } from 'prop-types';
|
|
9
|
+
import { TextFilterProps } from './TextFilter.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* The props of the DateFilter component.
|
|
13
|
+
*/
|
|
14
|
+
export interface DateFilterProps extends TextFilterProps {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The DateFilter component used for editing date value of FilterDescriptor object.
|
|
18
|
+
*/
|
|
19
|
+
export declare class DateFilter extends React.Component<DateFilterProps> {
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
static propTypes: {
|
|
24
|
+
filter: PropTypes.Validator<object>;
|
|
25
|
+
onFilterChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
26
|
+
ariaLabel: PropTypes.Requireable<string>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
render(): React.JSX.Element;
|
|
32
|
+
private onChange;
|
|
33
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as PropTypes } from 'prop-types';
|
|
9
|
+
import { TextFilterProps } from './TextFilter.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* The props of the EnumFilter component.
|
|
13
|
+
*/
|
|
14
|
+
export interface EnumFilterProps extends TextFilterProps {
|
|
15
|
+
/**
|
|
16
|
+
* A collection of text-value pairs passed to the EnumFilter DropDownList.
|
|
17
|
+
*/
|
|
18
|
+
data?: Array<{
|
|
19
|
+
text: string;
|
|
20
|
+
value: any;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* The defaultItem passed to the EnumFilter DropDownList.
|
|
24
|
+
*/
|
|
25
|
+
defaultItem?: any;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The EnumFilter component used for editing the value of FilterDescriptor object.
|
|
29
|
+
* It renders a DropDownList and allows you to choose a value from the predefined list.
|
|
30
|
+
*/
|
|
31
|
+
export declare class EnumFilter extends React.Component<EnumFilterProps> {
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
static propTypes: {
|
|
36
|
+
filter: PropTypes.Validator<object>;
|
|
37
|
+
onFilterChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
38
|
+
data: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
39
|
+
text: PropTypes.Requireable<string>;
|
|
40
|
+
value: PropTypes.Requireable<any>;
|
|
41
|
+
}> | null | undefined)[]>;
|
|
42
|
+
defaultItem: PropTypes.Requireable<any>;
|
|
43
|
+
ariaLabel: PropTypes.Requireable<string>;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
render(): React.JSX.Element;
|
|
49
|
+
private onChange;
|
|
50
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as PropTypes } from 'prop-types';
|
|
9
|
+
import { TextFilterProps } from './TextFilter.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* The props of the NumericFilter component.
|
|
13
|
+
*/
|
|
14
|
+
export interface NumericFilterProps extends TextFilterProps {
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the smallest value that can be entered.
|
|
17
|
+
*/
|
|
18
|
+
min?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the greatest value that can be entered.
|
|
21
|
+
*/
|
|
22
|
+
max?: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The NumericFilter component used for editing numeric value of FilterDescriptor object.
|
|
26
|
+
*/
|
|
27
|
+
export declare class NumericFilter extends React.Component<NumericFilterProps> {
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
static propTypes: {
|
|
32
|
+
filter: PropTypes.Validator<object>;
|
|
33
|
+
onFilterChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
*/
|
|
38
|
+
render(): React.JSX.Element;
|
|
39
|
+
private onChange;
|
|
40
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as PropTypes } from 'prop-types';
|
|
9
|
+
import { FilterDescriptor } from '@progress/kendo-data-query';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* The props of the TextFilter component.
|
|
13
|
+
*/
|
|
14
|
+
export interface TextFilterProps {
|
|
15
|
+
/**
|
|
16
|
+
* The FilterDescriptor object which will be edited.
|
|
17
|
+
*/
|
|
18
|
+
filter: FilterDescriptor;
|
|
19
|
+
/**
|
|
20
|
+
* The FilterChange event, triggered while editing the FilterOperator.
|
|
21
|
+
*/
|
|
22
|
+
onFilterChange: (event: {
|
|
23
|
+
nextFilter: FilterDescriptor;
|
|
24
|
+
}) => void;
|
|
25
|
+
/**
|
|
26
|
+
* The accessible label of the component.
|
|
27
|
+
*/
|
|
28
|
+
ariaLabel?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The TextFilter component used for editing text value of FilterDescriptor object.
|
|
32
|
+
*/
|
|
33
|
+
export declare class TextFilter extends React.Component<TextFilterProps> {
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
static propTypes: {
|
|
38
|
+
filter: PropTypes.Validator<object>;
|
|
39
|
+
onFilterChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
40
|
+
ariaLabel: PropTypes.Requireable<string>;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @hidden
|
|
44
|
+
*/
|
|
45
|
+
render(): React.JSX.Element;
|
|
46
|
+
private onChange;
|
|
47
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
export * from './TextFilter.js';
|
|
9
|
+
export * from './NumericFilter.js';
|
|
10
|
+
export * from './DateFilter.js';
|
|
11
|
+
export * from './BooleanFilter.js';
|
|
12
|
+
export * from './EnumFilter.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
export * from './filters/index.js';
|
|
9
|
+
export * from './Expression.js';
|
|
10
|
+
export * from './FieldSettings.js';
|
|
11
|
+
export * from './Filter.js';
|
|
12
|
+
export * from './Group.js';
|
|
13
|
+
export * from './operators.js';
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { FilterOperator } from '../filteringCells/index.js';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the operators for the TextFilter, NumericFilter, DateFilter and BooleanFilter components.
|
|
11
|
+
*
|
|
12
|
+
* The text field of each operator object will be resolved according to the
|
|
13
|
+
* [localization messages](https://www.telerik.com/kendo-react-ui/components/datatools/globalization#toc-messages).
|
|
14
|
+
*/
|
|
15
|
+
export declare class Operators {
|
|
16
|
+
/**
|
|
17
|
+
* An array containing the operators for the TextFilter component.
|
|
18
|
+
*
|
|
19
|
+
* The operators are:
|
|
20
|
+
*
|
|
21
|
+
* - { text: 'filter.containsOperator', operator: 'contains' }
|
|
22
|
+
* - { text: 'filter.notContainsOperator', operator: 'doesnotcontain' }
|
|
23
|
+
* - { text: 'filter.eqOperator', operator: 'eq' }
|
|
24
|
+
* - { text: 'filter.notEqOperator', operator: 'neq' }
|
|
25
|
+
* - { text: 'filter.startsWithOperator', operator: 'startswith' }
|
|
26
|
+
* - { text: 'filter.endsWithOperator', operator: 'endswith' }
|
|
27
|
+
* - { text: 'filter.isNullOperator', operator: 'isnull' }
|
|
28
|
+
* - { text: 'filter.isNotNullOperator', operator: 'isnotnull' }
|
|
29
|
+
* - { text: 'filter.isEmptyOperator', operator: 'isempty' }
|
|
30
|
+
* - { text: 'filter.isNotEmptyOperator', operator: 'isnotempty' }
|
|
31
|
+
*/
|
|
32
|
+
static get text(): FilterOperator[];
|
|
33
|
+
/**
|
|
34
|
+
* An array containing the operators for the NumericFilter component.
|
|
35
|
+
*
|
|
36
|
+
* The operators are:
|
|
37
|
+
*
|
|
38
|
+
* - { text: 'filter.eqOperator', operator: 'eq' }
|
|
39
|
+
* - { text: 'filter.notEqOperator', operator: 'neq' }
|
|
40
|
+
* - { text: 'filter.gteOperator', operator: 'gte' }
|
|
41
|
+
* - { text: 'filter.gtOperator', operator: 'gt' }
|
|
42
|
+
* - { text: 'filter.lteOperator', operator: 'lte' }
|
|
43
|
+
* - { text: 'filter.ltOperator', operator: 'lt' }
|
|
44
|
+
* - { text: 'filter.isNullOperator', operator: 'isnull' }
|
|
45
|
+
* - { text: 'filter.isNotNullOperator', operator: 'isnotnull' }
|
|
46
|
+
*/
|
|
47
|
+
static get numeric(): FilterOperator[];
|
|
48
|
+
/**
|
|
49
|
+
* An array containing the operators for the DateFilter component.
|
|
50
|
+
*
|
|
51
|
+
* The operators are:
|
|
52
|
+
*
|
|
53
|
+
* - { text: 'filter.eqOperator', operator: 'eq' }
|
|
54
|
+
* - { text: 'filter.notEqOperator', operator: 'neq' }
|
|
55
|
+
* - { text: 'filter.afterOrEqualOperator', operator: 'gte' }
|
|
56
|
+
* - { text: 'filter.afterOperator', operator: 'gt' }
|
|
57
|
+
* - { text: 'filter.beforeOperator', operator: 'lt' }
|
|
58
|
+
* - { text: 'filter.beforeOrEqualOperator', operator: 'lte' }
|
|
59
|
+
* - { text: 'filter.isNullOperator', operator: 'isnull' }
|
|
60
|
+
* - { text: 'filter.isNotNullOperator', operator: 'isnotnull' }
|
|
61
|
+
*/
|
|
62
|
+
static get date(): FilterOperator[];
|
|
63
|
+
/**
|
|
64
|
+
* An array containing the operators for the BooleanFilter component.
|
|
65
|
+
*
|
|
66
|
+
* The operators are:
|
|
67
|
+
*
|
|
68
|
+
* - { text: 'filter.eqOperator', operator: 'eq' }
|
|
69
|
+
* - { text: 'filter.notEqOperator', operator: 'neq' }
|
|
70
|
+
*/
|
|
71
|
+
static get boolean(): FilterOperator[];
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* @hidden
|
|
75
|
+
*/
|
|
76
|
+
export declare const stringOperator: (operator: any) => boolean;
|
|
77
|
+
/**
|
|
78
|
+
* @hidden
|
|
79
|
+
*/
|
|
80
|
+
export declare const unaryOperator: (operator: any) => boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
declare const BooleanFilterCell_base: React.ComponentClass<import('./FilterComponentProps').FilterComponentProps, any>;
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare class BooleanFilterCell extends BooleanFilterCell_base {
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
declare const DateFilterCell_base: React.ComponentClass<import('./FilterComponentProps').FilterComponentProps, any>;
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare class DateFilterCell extends DateFilterCell_base {
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { FilterDescriptor } from '@progress/kendo-data-query';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface FilterCellProps {
|
|
13
|
+
/**
|
|
14
|
+
* The column field in which the cell is located.
|
|
15
|
+
*/
|
|
16
|
+
field?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The function that will be called if the cell needs to notify its parent TreeList about a change.
|
|
19
|
+
*/
|
|
20
|
+
onFilterChange?: (event: {
|
|
21
|
+
filter: Array<FilterDescriptor>;
|
|
22
|
+
field: string;
|
|
23
|
+
syntheticEvent: React.SyntheticEvent<any>;
|
|
24
|
+
}) => void;
|
|
25
|
+
/**
|
|
26
|
+
* The collection of `FilterDescriptor` objects that is passed by the TreeList component.
|
|
27
|
+
*/
|
|
28
|
+
filter?: FilterDescriptor[];
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
31
|
+
*/
|
|
32
|
+
components?: {
|
|
33
|
+
DatePicker?: any;
|
|
34
|
+
DropDownList?: any;
|
|
35
|
+
Input?: any;
|
|
36
|
+
NumericTextBox?: any;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
clearButtonTitle?: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { FilterDescriptor } from '@progress/kendo-data-query';
|
|
9
|
+
import { FilterOperator } from './FilterOperator.js';
|
|
10
|
+
import { FilterComponentProps } from './FilterComponentProps.js';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export interface FilterComponentSettings {
|
|
16
|
+
inputComponent: (props: any) => React.ReactNode;
|
|
17
|
+
operatorComponent: (props: any, cellProps: FilterComponentProps) => React.ReactNode;
|
|
18
|
+
emptyFilter: FilterDescriptor;
|
|
19
|
+
operators?: FilterOperator[];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
export declare const createFilterComponent: (settings: FilterComponentSettings) => React.ComponentClass<FilterComponentProps, any>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { FilterCellProps } from './FilterCellProps.js';
|
|
9
|
+
import { FilterOperator } from './FilterOperator.js';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface FilterComponentProps extends FilterCellProps {
|
|
14
|
+
/**
|
|
15
|
+
* The list of the operators.
|
|
16
|
+
*/
|
|
17
|
+
operators?: FilterOperator[];
|
|
18
|
+
/**
|
|
19
|
+
* The accessible label of the component.
|
|
20
|
+
*/
|
|
21
|
+
ariaLabel?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @ hidden
|
|
24
|
+
*/
|
|
25
|
+
min?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
max?: number;
|
|
30
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* A filter operator object.
|
|
10
|
+
*/
|
|
11
|
+
export interface FilterOperator {
|
|
12
|
+
/**
|
|
13
|
+
* The label of the operator.
|
|
14
|
+
*/
|
|
15
|
+
text: string;
|
|
16
|
+
/**
|
|
17
|
+
* The operator value.
|
|
18
|
+
*/
|
|
19
|
+
operator: any;
|
|
20
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
declare const NumericFilterCell_base: React.ComponentClass<import('./FilterComponentProps').FilterComponentProps, any>;
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare class NumericFilterCell extends NumericFilterCell_base {
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
declare const TextFilterCell_base: React.ComponentClass<import('./FilterComponentProps').FilterComponentProps, any>;
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare class TextFilterCell extends TextFilterCell_base {
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
export * from './FilterComponent.js';
|
|
9
|
+
export * from './FilterComponentProps.js';
|
|
10
|
+
export * from './FilterCellProps.js';
|
|
11
|
+
export * from './FilterOperator.js';
|
|
12
|
+
export * from './BooleanFilter.js';
|
|
13
|
+
export * from './DateFilter.js';
|
|
14
|
+
export * from './NumericFilter.js';
|
|
15
|
+
export * from './TextFilter.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/** @hidden */
|
|
9
|
+
export type TableGroupExpandableSettings = {
|
|
10
|
+
enabled?: boolean;
|
|
11
|
+
defaultExpand?: boolean;
|
|
12
|
+
};
|