@progress/kendo-react-data-tools 7.2.4-develop.3 → 7.3.0-develop.1
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.js +8 -0
- package/clipboard/clipboard.service.mjs +27 -0
- package/clipboard/common.js +13 -0
- package/clipboard/common.mjs +64 -0
- package/columnmenu/ColumnMenu.js +8 -0
- package/columnmenu/ColumnMenu.mjs +256 -0
- package/columnmenu/ColumnMenuFilterForm.js +8 -0
- package/columnmenu/ColumnMenuFilterForm.mjs +47 -0
- package/columnmenu/ColumnMenuFilterLogic.js +8 -0
- package/columnmenu/ColumnMenuFilterLogic.mjs +29 -0
- package/columnmenu/ColumnMenuFilters.js +8 -0
- package/columnmenu/ColumnMenuFilters.mjs +98 -0
- package/columnmenu/ColumnMenuItem.js +8 -0
- package/columnmenu/ColumnMenuItem.mjs +26 -0
- package/columnmenu/ColumnMenuOperators.js +8 -0
- package/columnmenu/ColumnMenuOperators.mjs +109 -0
- package/dist/cdn/js/kendo-react-datatools.js +8 -10
- package/drag/ColumnDraggable.js +8 -0
- package/drag/ColumnDraggable.mjs +40 -0
- package/drag/ColumnResize.js +8 -0
- package/drag/ColumnResize.mjs +58 -0
- package/drag/ColumnResizer.js +8 -0
- package/drag/ColumnResizer.mjs +56 -0
- package/drag/CommonDragLogic.js +8 -0
- package/drag/CommonDragLogic.mjs +89 -0
- package/drag/DragClue.js +8 -0
- package/drag/DragClue.mjs +52 -0
- package/drag/DropClue.js +8 -0
- package/drag/DropClue.mjs +43 -0
- package/filter/Expression.js +8 -0
- package/filter/Expression.mjs +113 -0
- package/filter/Filter.js +8 -0
- package/filter/Filter.mjs +84 -0
- package/filter/Group.js +8 -0
- package/filter/Group.mjs +163 -0
- package/filter/filters/BooleanFilter.js +8 -0
- package/filter/filters/BooleanFilter.mjs +43 -0
- package/filter/filters/DateFilter.js +8 -0
- package/filter/filters/DateFilter.mjs +43 -0
- package/filter/filters/EnumFilter.js +8 -0
- package/filter/filters/EnumFilter.mjs +59 -0
- package/filter/filters/NumericFilter.js +8 -0
- package/filter/filters/NumericFilter.mjs +54 -0
- package/filter/filters/TextFilter.js +8 -0
- package/filter/filters/TextFilter.mjs +46 -0
- package/filter/operators.js +8 -0
- package/filter/operators.mjs +114 -0
- package/filteringCells/BooleanFilter.js +8 -0
- package/filteringCells/BooleanFilter.mjs +49 -0
- package/filteringCells/DateFilter.js +8 -0
- package/filteringCells/DateFilter.mjs +22 -0
- package/filteringCells/FilterComponent.js +8 -0
- package/filteringCells/FilterComponent.mjs +81 -0
- package/filteringCells/NumericFilter.js +8 -0
- package/filteringCells/NumericFilter.mjs +22 -0
- package/filteringCells/TextFilter.js +8 -0
- package/filteringCells/TextFilter.mjs +22 -0
- package/header/ColumnProps.js +8 -0
- package/header/ColumnProps.mjs +19 -0
- package/header/FilterRow.js +8 -0
- package/header/FilterRow.mjs +54 -0
- package/header/Header.js +8 -0
- package/header/Header.mjs +36 -0
- package/header/HeaderCell.js +8 -0
- package/header/HeaderCell.mjs +18 -0
- package/header/HeaderRow.js +8 -0
- package/header/HeaderRow.mjs +132 -0
- package/header/HeaderSelectionCell.js +8 -0
- package/header/HeaderSelectionCell.mjs +32 -0
- package/header/HeaderThElement.js +8 -0
- package/header/HeaderThElement.mjs +47 -0
- package/header/SortSettings.js +8 -0
- package/header/SortSettings.mjs +12 -0
- package/header/utils/index.js +8 -0
- package/header/utils/index.mjs +130 -0
- package/index.d.mts +2398 -5
- package/index.d.ts +2398 -32
- package/index.js +8 -10
- package/index.mjs +152 -2987
- package/messages/index.js +8 -0
- package/messages/index.mjs +167 -0
- package/navigation/TableKeyboardNavigation.js +8 -0
- package/navigation/TableKeyboardNavigation.mjs +142 -0
- package/navigation/TableKeyboardNavigationContext.js +8 -0
- package/navigation/TableKeyboardNavigationContext.mjs +14 -0
- package/navigation/constants.js +8 -0
- package/navigation/constants.mjs +43 -0
- package/navigation/hooks.js +8 -0
- package/navigation/hooks.mjs +22 -0
- package/navigation/utils.js +8 -0
- package/navigation/utils.mjs +107 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +9 -9
- package/pager/Pager.js +8 -0
- package/pager/Pager.mjs +234 -0
- package/pager/PagerInput.js +8 -0
- package/pager/PagerInput.mjs +38 -0
- package/pager/PagerNumericButtons.js +8 -0
- package/pager/PagerNumericButtons.mjs +103 -0
- package/pager/PagerPageSizes.js +8 -0
- package/pager/PagerPageSizes.mjs +38 -0
- package/selection/TableSelection.js +8 -0
- package/selection/TableSelection.mjs +123 -0
- package/selection/constants.js +8 -0
- package/selection/constants.mjs +14 -0
- package/selection/utils.js +8 -0
- package/selection/utils.mjs +155 -0
- package/utils/data-operations.js +8 -0
- package/utils/data-operations.mjs +127 -0
- package/utils/group-operations.js +8 -0
- package/utils/group-operations.mjs +32 -0
- package/virtualization/columns.js +8 -0
- package/virtualization/columns.mjs +43 -0
- package/clipboard/clipboard.service.d.ts +0 -17
- package/clipboard/common.d.ts +0 -129
- package/columnmenu/ColumnMenu.d.ts +0 -83
- package/columnmenu/ColumnMenuFilterForm.d.ts +0 -17
- package/columnmenu/ColumnMenuFilterLogic.d.ts +0 -7
- package/columnmenu/ColumnMenuFilters.d.ts +0 -23
- package/columnmenu/ColumnMenuItem.d.ts +0 -15
- package/columnmenu/ColumnMenuOperators.d.ts +0 -69
- package/columnmenu/index.d.ts +0 -10
- package/drag/ColumnDraggable.d.ts +0 -34
- package/drag/ColumnResize.d.ts +0 -36
- package/drag/ColumnResizer.d.ts +0 -32
- package/drag/CommonDragLogic.d.ts +0 -42
- package/drag/DragClue.d.ts +0 -26
- package/drag/DropClue.d.ts +0 -23
- package/filter/Expression.d.ts +0 -50
- package/filter/FieldSettings.d.ts +0 -34
- package/filter/Filter.d.ts +0 -83
- package/filter/Group.d.ts +0 -58
- package/filter/filters/BooleanFilter.d.ts +0 -47
- package/filter/filters/DateFilter.d.ts +0 -30
- package/filter/filters/EnumFilter.d.ts +0 -47
- package/filter/filters/NumericFilter.d.ts +0 -37
- package/filter/filters/TextFilter.d.ts +0 -44
- package/filter/filters/index.d.ts +0 -9
- package/filter/index.d.ts +0 -10
- package/filter/operators.d.ts +0 -77
- package/filteringCells/BooleanFilter.d.ts +0 -12
- package/filteringCells/DateFilter.d.ts +0 -12
- package/filteringCells/FilterCellProps.d.ts +0 -39
- package/filteringCells/FilterComponent.d.ts +0 -21
- package/filteringCells/FilterComponentProps.d.ts +0 -27
- package/filteringCells/FilterOperator.d.ts +0 -17
- package/filteringCells/NumericFilter.d.ts +0 -12
- package/filteringCells/TextFilter.d.ts +0 -12
- package/filteringCells/index.d.ts +0 -12
- package/header/CellProps.d.ts +0 -72
- package/header/ColumnProps.d.ts +0 -157
- package/header/FilterRow.d.ts +0 -29
- package/header/Header.d.ts +0 -22
- package/header/HeaderCell.d.ts +0 -51
- package/header/HeaderRow.d.ts +0 -41
- package/header/HeaderSelectionCell.d.ts +0 -15
- package/header/HeaderThElement.d.ts +0 -26
- package/header/SortSettings.d.ts +0 -30
- package/header/index.d.ts +0 -14
- package/header/utils/index.d.ts +0 -87
- package/messages/index.d.ts +0 -394
- package/navigation/TableKeyboardNavigation.d.ts +0 -72
- package/navigation/TableKeyboardNavigationContext.d.ts +0 -10
- package/navigation/TableKeyboardNavigationContextType.d.ts +0 -11
- package/navigation/TableKeyboardNavigationStateType.d.ts +0 -14
- package/navigation/constants.d.ts +0 -58
- package/navigation/hooks.d.ts +0 -16
- package/navigation/utils.d.ts +0 -149
- package/package-metadata.d.ts +0 -9
- package/pager/Pager.d.ts +0 -208
- package/pager/PagerInput.d.ts +0 -29
- package/pager/PagerNumericButtons.d.ts +0 -32
- package/pager/PagerPageSizes.d.ts +0 -30
- package/selection/TableSelectableSettings.d.ts +0 -35
- package/selection/TableSelection.d.ts +0 -15
- package/selection/constants.d.ts +0 -10
- package/selection/events.d.ts +0 -98
- package/selection/utils.d.ts +0 -70
- package/utils/DataItemWrapper.d.ts +0 -14
- package/utils/data-operations.d.ts +0 -98
- package/utils/group-operations.d.ts +0 -33
- package/virtualization/columns.d.ts +0 -19
- package/virtualization/index.d.ts +0 -5
package/filter/Group.mjs
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as r from "react";
|
|
10
|
+
import a from "prop-types";
|
|
11
|
+
import { isCompositeFilterDescriptor as E } from "@progress/kendo-data-query";
|
|
12
|
+
import { Toolbar as b, ButtonGroup as L, Button as l } from "@progress/kendo-react-buttons";
|
|
13
|
+
import { provideLocalizationService as F, registerForLocalization as x } from "@progress/kendo-react-intl";
|
|
14
|
+
import { filterAddExpressionIcon as C, filterAddGroupIcon as y, xIcon as k } from "@progress/kendo-svg-icons";
|
|
15
|
+
import { Expression as R } from "./Expression.mjs";
|
|
16
|
+
import { stringOperator as A } from "./operators.mjs";
|
|
17
|
+
import { filterGroupAriaLabel as f, messages as s, filterAndLogic as m, filterOrLogic as v, filterAddExpression as c, filterAddGroup as p, filterClose as u } from "../messages/index.mjs";
|
|
18
|
+
const g = class g extends r.Component {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments), this.onGroupRemove = (t) => {
|
|
21
|
+
const e = {
|
|
22
|
+
filter: this.props.filter,
|
|
23
|
+
target: this,
|
|
24
|
+
syntheticEvent: t,
|
|
25
|
+
nativeEvent: t.nativeEvent
|
|
26
|
+
};
|
|
27
|
+
this.props.onRemove.call(void 0, e);
|
|
28
|
+
}, this.onAddExpression = (t) => {
|
|
29
|
+
const e = this.props.filter, i = this.props.fields[0], o = { field: i.name, operator: i.operators[0].operator };
|
|
30
|
+
o.value = A(o.operator) ? "" : null;
|
|
31
|
+
const n = {
|
|
32
|
+
nextFilter: {
|
|
33
|
+
...e,
|
|
34
|
+
filters: [...e.filters, o]
|
|
35
|
+
},
|
|
36
|
+
prevFilter: e,
|
|
37
|
+
target: this,
|
|
38
|
+
syntheticEvent: t,
|
|
39
|
+
nativeEvent: t.nativeEvent
|
|
40
|
+
};
|
|
41
|
+
this.props.onChange.call(void 0, n);
|
|
42
|
+
}, this.onAddGroup = (t) => {
|
|
43
|
+
const e = this.props.filter, i = {
|
|
44
|
+
nextFilter: { ...e, filters: [...e.filters, { ...this.props.defaultGroupFilter }] },
|
|
45
|
+
prevFilter: e,
|
|
46
|
+
target: this,
|
|
47
|
+
syntheticEvent: t,
|
|
48
|
+
nativeEvent: t.nativeEvent
|
|
49
|
+
};
|
|
50
|
+
this.props.onChange.call(void 0, i);
|
|
51
|
+
}, this.onLogicAnd = (t) => this.changeLogic("and", t), this.onLogicOr = (t) => this.changeLogic("or", t), this.changeLogic = (t, e) => {
|
|
52
|
+
const i = this.props.filter;
|
|
53
|
+
if (i.logic !== t) {
|
|
54
|
+
const o = {
|
|
55
|
+
nextFilter: { ...i, logic: t },
|
|
56
|
+
prevFilter: i,
|
|
57
|
+
target: this,
|
|
58
|
+
syntheticEvent: e,
|
|
59
|
+
nativeEvent: e.nativeEvent
|
|
60
|
+
};
|
|
61
|
+
this.props.onChange.call(void 0, o);
|
|
62
|
+
}
|
|
63
|
+
}, this.replaceFilter = (t, e) => {
|
|
64
|
+
const i = this.props.filter, o = i.filters.map((n) => n === t ? e : n);
|
|
65
|
+
return { ...i, filters: o };
|
|
66
|
+
}, this.onChange = (t) => {
|
|
67
|
+
const i = {
|
|
68
|
+
nextFilter: this.replaceFilter(t.prevFilter, t.nextFilter),
|
|
69
|
+
prevFilter: this.props.filter,
|
|
70
|
+
syntheticEvent: t.syntheticEvent,
|
|
71
|
+
nativeEvent: t.nativeEvent,
|
|
72
|
+
target: this
|
|
73
|
+
};
|
|
74
|
+
this.props.onChange.call(void 0, i);
|
|
75
|
+
}, this.onRemove = (t) => {
|
|
76
|
+
const e = this.props.filter, i = e.filters.filter((n) => n !== t.filter), o = {
|
|
77
|
+
nextFilter: { ...e, filters: i },
|
|
78
|
+
prevFilter: e,
|
|
79
|
+
syntheticEvent: t.syntheticEvent,
|
|
80
|
+
nativeEvent: t.nativeEvent,
|
|
81
|
+
target: this
|
|
82
|
+
};
|
|
83
|
+
this.props.onChange.call(void 0, o);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
render() {
|
|
87
|
+
const t = F(this), {
|
|
88
|
+
fields: e,
|
|
89
|
+
filter: i,
|
|
90
|
+
ariaLabel: o = t.toLanguageString(f, s[f])
|
|
91
|
+
} = this.props;
|
|
92
|
+
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement("div", { className: "k-filter-toolbar" }, /* @__PURE__ */ r.createElement(b, { keyboardNavigation: !1, role: "toolbar", ariaLabel: o }, /* @__PURE__ */ r.createElement(L, { className: "k-toolbar-button-group" }, /* @__PURE__ */ r.createElement(l, { className: "k-toolbar-button", togglable: !0, onClick: this.onLogicAnd, selected: i.logic === "and", type: "button" }, t.toLanguageString(m, s[m])), /* @__PURE__ */ r.createElement(l, { className: "k-toolbar-button", togglable: !0, onClick: this.onLogicOr, selected: i.logic === "or", type: "button" }, t.toLanguageString(v, s[v]))), /* @__PURE__ */ r.createElement(
|
|
93
|
+
l,
|
|
94
|
+
{
|
|
95
|
+
className: "k-toolbar-button",
|
|
96
|
+
title: t.toLanguageString(c, s[c]),
|
|
97
|
+
icon: "filter-add-expression",
|
|
98
|
+
svgIcon: C,
|
|
99
|
+
type: "button",
|
|
100
|
+
onClick: this.onAddExpression
|
|
101
|
+
},
|
|
102
|
+
t.toLanguageString(c, s[c])
|
|
103
|
+
), /* @__PURE__ */ r.createElement(
|
|
104
|
+
l,
|
|
105
|
+
{
|
|
106
|
+
className: "k-toolbar-button",
|
|
107
|
+
title: t.toLanguageString(p, s[p]),
|
|
108
|
+
icon: "filter-add-group",
|
|
109
|
+
svgIcon: y,
|
|
110
|
+
type: "button",
|
|
111
|
+
onClick: this.onAddGroup
|
|
112
|
+
},
|
|
113
|
+
t.toLanguageString(p, s[p])
|
|
114
|
+
), /* @__PURE__ */ r.createElement(
|
|
115
|
+
l,
|
|
116
|
+
{
|
|
117
|
+
className: "k-toolbar-button",
|
|
118
|
+
title: t.toLanguageString(u, s[u]),
|
|
119
|
+
icon: "x",
|
|
120
|
+
svgIcon: k,
|
|
121
|
+
fillMode: "flat",
|
|
122
|
+
type: "button",
|
|
123
|
+
onClick: this.onGroupRemove
|
|
124
|
+
}
|
|
125
|
+
))), i.filters.length > 0 && /* @__PURE__ */ r.createElement("ul", { role: "group", className: "k-filter-lines" }, i.filters.map(
|
|
126
|
+
(n, d) => /* @__PURE__ */ r.createElement("li", { role: "treeitem", key: d, className: "k-filter-item" }, E(n) ? /* @__PURE__ */ r.createElement(
|
|
127
|
+
g,
|
|
128
|
+
{
|
|
129
|
+
filter: n,
|
|
130
|
+
fields: e,
|
|
131
|
+
onChange: this.onChange,
|
|
132
|
+
onRemove: this.onRemove,
|
|
133
|
+
defaultGroupFilter: this.props.defaultGroupFilter,
|
|
134
|
+
ariaLabel: this.props.ariaLabel,
|
|
135
|
+
ariaLabelExpression: this.props.ariaLabelExpression
|
|
136
|
+
}
|
|
137
|
+
) : /* @__PURE__ */ r.createElement(
|
|
138
|
+
R,
|
|
139
|
+
{
|
|
140
|
+
filter: n,
|
|
141
|
+
fields: e,
|
|
142
|
+
ariaLabel: this.props.ariaLabelExpression,
|
|
143
|
+
onChange: this.onChange,
|
|
144
|
+
onRemove: this.onRemove
|
|
145
|
+
}
|
|
146
|
+
))
|
|
147
|
+
)));
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
g.propTypes = {
|
|
151
|
+
filter: a.object.isRequired,
|
|
152
|
+
fields: a.array.isRequired,
|
|
153
|
+
ariaLabel: a.string,
|
|
154
|
+
ariaLabelExpression: a.string,
|
|
155
|
+
onChange: a.func.isRequired,
|
|
156
|
+
onRemove: a.func.isRequired,
|
|
157
|
+
defaultGroupFilter: a.object.isRequired
|
|
158
|
+
};
|
|
159
|
+
let h = g;
|
|
160
|
+
x(h);
|
|
161
|
+
export {
|
|
162
|
+
h as Group
|
|
163
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),e=require("prop-types"),c=require("./EnumFilter.js"),u=require("../../messages/index.js");function p(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return a.default=t,Object.freeze(a)}const l=p(o),i=class i extends l.Component{constructor(){super(...arguments),this.data=[{text:u.filterIsTrue,value:!0},{text:u.filterIsFalse,value:!1}]}render(){return l.createElement(c.EnumFilter,{filter:this.props.filter,onFilterChange:this.props.onFilterChange,data:this.props.data||this.data,defaultItem:this.props.defaultItem,ariaLabel:this.props.ariaLabel})}};i.propTypes={filter:e.object.isRequired,onFilterChange:e.func.isRequired,data:e.arrayOf(e.shape({text:e.string,value:e.any})),ariaLabel:e.string,defaultItem:e.any};let s=i;exports.BooleanFilter=s;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as r from "react";
|
|
10
|
+
import t from "prop-types";
|
|
11
|
+
import { EnumFilter as s } from "./EnumFilter.mjs";
|
|
12
|
+
import { filterIsTrue as i, filterIsFalse as p } from "../../messages/index.mjs";
|
|
13
|
+
const e = class e extends r.Component {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.data = [{ text: i, value: !0 }, { text: p, value: !1 }];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
render() {
|
|
21
|
+
return /* @__PURE__ */ r.createElement(
|
|
22
|
+
s,
|
|
23
|
+
{
|
|
24
|
+
filter: this.props.filter,
|
|
25
|
+
onFilterChange: this.props.onFilterChange,
|
|
26
|
+
data: this.props.data || this.data,
|
|
27
|
+
defaultItem: this.props.defaultItem,
|
|
28
|
+
ariaLabel: this.props.ariaLabel
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
e.propTypes = {
|
|
34
|
+
filter: t.object.isRequired,
|
|
35
|
+
onFilterChange: t.func.isRequired,
|
|
36
|
+
data: t.arrayOf(t.shape({ text: t.string, value: t.any })),
|
|
37
|
+
ariaLabel: t.string,
|
|
38
|
+
defaultItem: t.any
|
|
39
|
+
};
|
|
40
|
+
let a = e;
|
|
41
|
+
export {
|
|
42
|
+
a as BooleanFilter
|
|
43
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),n=require("prop-types"),l=require("@progress/kendo-react-dateinputs");function u(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const s=u(c),i=class i extends s.Component{constructor(){super(...arguments),this.onChange=e=>{this.props.onFilterChange.call(void 0,{nextFilter:{...this.props.filter,value:e.value}})}}render(){const e=this.props.filter;return s.createElement(l.DatePicker,{value:e.value||null,onChange:this.onChange,ariaLabel:this.props.ariaLabel})}};i.propTypes={filter:n.object.isRequired,onFilterChange:n.func.isRequired,ariaLabel:n.string};let a=i;exports.DateFilter=a;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as i from "react";
|
|
10
|
+
import r from "prop-types";
|
|
11
|
+
import { DatePicker as o } from "@progress/kendo-react-dateinputs";
|
|
12
|
+
const t = class t extends i.Component {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments), this.onChange = (e) => {
|
|
15
|
+
this.props.onFilterChange.call(void 0, {
|
|
16
|
+
nextFilter: { ...this.props.filter, value: e.value }
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
render() {
|
|
24
|
+
const e = this.props.filter;
|
|
25
|
+
return /* @__PURE__ */ i.createElement(
|
|
26
|
+
o,
|
|
27
|
+
{
|
|
28
|
+
value: e.value || null,
|
|
29
|
+
onChange: this.onChange,
|
|
30
|
+
ariaLabel: this.props.ariaLabel
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
t.propTypes = {
|
|
36
|
+
filter: r.object.isRequired,
|
|
37
|
+
onFilterChange: r.func.isRequired,
|
|
38
|
+
ariaLabel: r.string
|
|
39
|
+
};
|
|
40
|
+
let s = t;
|
|
41
|
+
export {
|
|
42
|
+
s as DateFilter
|
|
43
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),t=require("prop-types"),b=require("@progress/kendo-react-dropdowns"),p=require("@progress/kendo-react-intl"),i=require("../../messages/index.js");function h(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:()=>n[r]})}}return e.default=n,Object.freeze(e)}const u=h(f),l=class l extends u.Component{constructor(){super(...arguments),this.onChange=e=>{this.props.onFilterChange.call(void 0,{nextFilter:{...this.props.filter,value:e.value.value}})}}render(){const e=p.provideLocalizationService(this),{filter:r,data:o=[],defaultItem:d,ariaLabel:g=e.toLanguageString(i.filterEnumFilterDropdownAriaLabel,i.messages[i.filterEnumFilterDropdownAriaLabel])}=this.props,c=o.map(a=>({...a,text:e.toLanguageString(a.text,i.messages[a.text]||a.text)}));return u.createElement(b.DropDownList,{value:c.find(a=>a.value===r.value)||null,onChange:this.onChange,defaultItem:d,data:c,textField:"text",ariaLabel:g})}};l.propTypes={filter:t.object.isRequired,onFilterChange:t.func.isRequired,data:t.arrayOf(t.shape({text:t.string,value:t.any})),defaultItem:t.any,ariaLabel:t.string};let s=l;p.registerForLocalization(s);exports.EnumFilter=s;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as n from "react";
|
|
10
|
+
import e from "prop-types";
|
|
11
|
+
import { DropDownList as d } from "@progress/kendo-react-dropdowns";
|
|
12
|
+
import { provideLocalizationService as f, registerForLocalization as h } from "@progress/kendo-react-intl";
|
|
13
|
+
import { filterEnumFilterDropdownAriaLabel as s, messages as l } from "../../messages/index.mjs";
|
|
14
|
+
const o = class o extends n.Component {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments), this.onChange = (a) => {
|
|
17
|
+
this.props.onFilterChange.call(void 0, {
|
|
18
|
+
nextFilter: { ...this.props.filter, value: a.value.value }
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
render() {
|
|
26
|
+
const a = f(this), {
|
|
27
|
+
filter: p,
|
|
28
|
+
data: c = [],
|
|
29
|
+
defaultItem: u,
|
|
30
|
+
ariaLabel: g = a.toLanguageString(s, l[s])
|
|
31
|
+
} = this.props, i = c.map((t) => ({
|
|
32
|
+
...t,
|
|
33
|
+
text: a.toLanguageString(t.text, l[t.text] || t.text)
|
|
34
|
+
}));
|
|
35
|
+
return /* @__PURE__ */ n.createElement(
|
|
36
|
+
d,
|
|
37
|
+
{
|
|
38
|
+
value: i.find((t) => t.value === p.value) || null,
|
|
39
|
+
onChange: this.onChange,
|
|
40
|
+
defaultItem: u,
|
|
41
|
+
data: i,
|
|
42
|
+
textField: "text",
|
|
43
|
+
ariaLabel: g
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
o.propTypes = {
|
|
49
|
+
filter: e.object.isRequired,
|
|
50
|
+
onFilterChange: e.func.isRequired,
|
|
51
|
+
data: e.arrayOf(e.shape({ text: e.string, value: e.any })),
|
|
52
|
+
defaultItem: e.any,
|
|
53
|
+
ariaLabel: e.string
|
|
54
|
+
};
|
|
55
|
+
let r = o;
|
|
56
|
+
h(r);
|
|
57
|
+
export {
|
|
58
|
+
r as EnumFilter
|
|
59
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),c=require("prop-types"),f=require("@progress/kendo-react-inputs"),u=require("@progress/kendo-react-intl"),a=require("../../messages/index.js");function d(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const l=d(g),o=class o extends l.Component{constructor(){super(...arguments),this.onChange=e=>{this.props.onFilterChange.call(void 0,{nextFilter:{...this.props.filter,value:e.value}})}}render(){const e=u.provideLocalizationService(this),{min:t,max:n,filter:s,ariaLabel:p=e.toLanguageString(a.filterNumericFilterAriaLabel,a.messages[a.filterNumericFilterAriaLabel])}=this.props;return l.createElement(f.NumericTextBox,{value:typeof s.value=="number"?s.value:null,onChange:this.onChange,ariaLabel:p,"aria-valuemin":t,"aria-valuemax":n,min:t,max:n})}};o.propTypes={filter:c.object.isRequired,onFilterChange:c.func.isRequired};let i=o;u.registerForLocalization(i);exports.NumericFilter=i;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as n from "react";
|
|
10
|
+
import s from "prop-types";
|
|
11
|
+
import { NumericTextBox as m } from "@progress/kendo-react-inputs";
|
|
12
|
+
import { provideLocalizationService as u, registerForLocalization as c } from "@progress/kendo-react-intl";
|
|
13
|
+
import { filterNumericFilterAriaLabel as l, messages as h } from "../../messages/index.mjs";
|
|
14
|
+
const t = class t extends n.Component {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments), this.onChange = (e) => {
|
|
17
|
+
this.props.onFilterChange.call(void 0, {
|
|
18
|
+
nextFilter: { ...this.props.filter, value: e.value }
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
render() {
|
|
26
|
+
const e = u(this), {
|
|
27
|
+
min: i,
|
|
28
|
+
max: o,
|
|
29
|
+
filter: a,
|
|
30
|
+
ariaLabel: p = e.toLanguageString(l, h[l])
|
|
31
|
+
} = this.props;
|
|
32
|
+
return /* @__PURE__ */ n.createElement(
|
|
33
|
+
m,
|
|
34
|
+
{
|
|
35
|
+
value: typeof a.value == "number" ? a.value : null,
|
|
36
|
+
onChange: this.onChange,
|
|
37
|
+
ariaLabel: p,
|
|
38
|
+
"aria-valuemin": i,
|
|
39
|
+
"aria-valuemax": o,
|
|
40
|
+
min: i,
|
|
41
|
+
max: o
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
t.propTypes = {
|
|
47
|
+
filter: s.object.isRequired,
|
|
48
|
+
onFilterChange: s.func.isRequired
|
|
49
|
+
};
|
|
50
|
+
let r = t;
|
|
51
|
+
c(r);
|
|
52
|
+
export {
|
|
53
|
+
r as NumericFilter
|
|
54
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),n=require("prop-types"),p=require("@progress/kendo-react-inputs"),l=require("@progress/kendo-react-intl"),o=require("../../messages/index.js");function g(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,s.get?s:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const c=g(u),a=class a extends c.Component{constructor(){super(...arguments),this.onChange=e=>{this.props.onFilterChange.call(void 0,{nextFilter:{...this.props.filter,value:e.value}})}}render(){const e=l.provideLocalizationService(this),{ariaLabel:t=e.toLanguageString(o.filterTextFilterAriaLabel,o.messages[o.filterTextFilterAriaLabel])}=this.props;return c.createElement(p.TextBox,{value:this.props.filter.value||"",onChange:this.onChange,"aria-label":t})}};a.propTypes={filter:n.object.isRequired,onFilterChange:n.func.isRequired,ariaLabel:n.string};let i=a;l.registerForLocalization(i);exports.TextFilter=i;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as o from "react";
|
|
10
|
+
import r from "prop-types";
|
|
11
|
+
import { TextBox as n } from "@progress/kendo-react-inputs";
|
|
12
|
+
import { provideLocalizationService as l, registerForLocalization as p } from "@progress/kendo-react-intl";
|
|
13
|
+
import { filterTextFilterAriaLabel as a, messages as c } from "../../messages/index.mjs";
|
|
14
|
+
const i = class i extends o.Component {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments), this.onChange = (e) => {
|
|
17
|
+
this.props.onFilterChange.call(void 0, {
|
|
18
|
+
nextFilter: { ...this.props.filter, value: e.value }
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
render() {
|
|
26
|
+
const e = l(this), { ariaLabel: s = e.toLanguageString(a, c[a]) } = this.props;
|
|
27
|
+
return /* @__PURE__ */ o.createElement(
|
|
28
|
+
n,
|
|
29
|
+
{
|
|
30
|
+
value: this.props.filter.value || "",
|
|
31
|
+
onChange: this.onChange,
|
|
32
|
+
"aria-label": s
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
i.propTypes = {
|
|
38
|
+
filter: r.object.isRequired,
|
|
39
|
+
onFilterChange: r.func.isRequired,
|
|
40
|
+
ariaLabel: r.string
|
|
41
|
+
};
|
|
42
|
+
let t = i;
|
|
43
|
+
p(t);
|
|
44
|
+
export {
|
|
45
|
+
t as TextFilter
|
|
46
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../messages/index.js"),e=[{text:t.filterContainsOperator,operator:"contains"},{text:t.filterNotContainsOperator,operator:"doesnotcontain"},{text:t.filterEqOperator,operator:"eq"},{text:t.filterNotEqOperator,operator:"neq"},{text:t.filterStartsWithOperator,operator:"startswith"},{text:t.filterEndsWithOperator,operator:"endswith"},{text:t.filterIsNullOperator,operator:"isnull"},{text:t.filterIsNotNullOperator,operator:"isnotnull"},{text:t.filterIsEmptyOperator,operator:"isempty"},{text:t.filterIsNotEmptyOperator,operator:"isnotempty"}],o=[{text:t.filterEqOperator,operator:"eq"},{text:t.filterNotEqOperator,operator:"neq"},{text:t.filterGteOperator,operator:"gte"},{text:t.filterGtOperator,operator:"gt"},{text:t.filterLteOperator,operator:"lte"},{text:t.filterLtOperator,operator:"lt"},{text:t.filterIsNullOperator,operator:"isnull"},{text:t.filterIsNotNullOperator,operator:"isnotnull"}],a=[{text:t.filterEqOperator,operator:"eq"},{text:t.filterNotEqOperator,operator:"neq"},{text:t.filterAfterOrEqualOperator,operator:"gte"},{text:t.filterAfterOperator,operator:"gt"},{text:t.filterBeforeOperator,operator:"lt"},{text:t.filterBeforeOrEqualOperator,operator:"lte"},{text:t.filterIsNullOperator,operator:"isnull"},{text:t.filterIsNotNullOperator,operator:"isnotnull"}],l=[{text:t.filterEqOperator,operator:"eq"},{text:t.filterNotEqOperator,operator:"neq"}];class p{static get text(){return[...e]}static get numeric(){return[...o]}static get date(){return[...a]}static get boolean(){return[...l]}}const i=r=>r==="contains"||r==="doesnotcontain"||r==="startswith"||r==="endswith",n=r=>r==="isnull"||r==="isnotnull"||r==="isempty"||r==="isnotempty";exports.Operators=p;exports.stringOperator=i;exports.unaryOperator=n;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { filterContainsOperator as p, filterNotContainsOperator as n, filterEqOperator as e, filterNotEqOperator as r, filterStartsWithOperator as i, filterEndsWithOperator as s, filterIsNullOperator as o, filterIsNotNullOperator as a, filterIsEmptyOperator as l, filterIsNotEmptyOperator as x, filterGteOperator as O, filterGtOperator as f, filterLteOperator as u, filterLtOperator as c, filterAfterOrEqualOperator as q, filterAfterOperator as m, filterBeforeOperator as g, filterBeforeOrEqualOperator as d } from "../messages/index.mjs";
|
|
10
|
+
const y = [
|
|
11
|
+
{ text: p, operator: "contains" },
|
|
12
|
+
{ text: n, operator: "doesnotcontain" },
|
|
13
|
+
{ text: e, operator: "eq" },
|
|
14
|
+
{ text: r, operator: "neq" },
|
|
15
|
+
{ text: i, operator: "startswith" },
|
|
16
|
+
{ text: s, operator: "endswith" },
|
|
17
|
+
{ text: o, operator: "isnull" },
|
|
18
|
+
{ text: a, operator: "isnotnull" },
|
|
19
|
+
{ text: l, operator: "isempty" },
|
|
20
|
+
{ text: x, operator: "isnotempty" }
|
|
21
|
+
], E = [
|
|
22
|
+
{ text: e, operator: "eq" },
|
|
23
|
+
{ text: r, operator: "neq" },
|
|
24
|
+
{ text: O, operator: "gte" },
|
|
25
|
+
{ text: f, operator: "gt" },
|
|
26
|
+
{ text: u, operator: "lte" },
|
|
27
|
+
{ text: c, operator: "lt" },
|
|
28
|
+
{ text: o, operator: "isnull" },
|
|
29
|
+
{ text: a, operator: "isnotnull" }
|
|
30
|
+
], h = [
|
|
31
|
+
{ text: e, operator: "eq" },
|
|
32
|
+
{ text: r, operator: "neq" },
|
|
33
|
+
{ text: q, operator: "gte" },
|
|
34
|
+
{ text: m, operator: "gt" },
|
|
35
|
+
{ text: g, operator: "lt" },
|
|
36
|
+
{ text: d, operator: "lte" },
|
|
37
|
+
{ text: o, operator: "isnull" },
|
|
38
|
+
{ text: a, operator: "isnotnull" }
|
|
39
|
+
], N = [
|
|
40
|
+
{ text: e, operator: "eq" },
|
|
41
|
+
{ text: r, operator: "neq" }
|
|
42
|
+
];
|
|
43
|
+
class I {
|
|
44
|
+
/**
|
|
45
|
+
* An array containing the operators for the TextFilter component.
|
|
46
|
+
*
|
|
47
|
+
* The operators are:
|
|
48
|
+
*
|
|
49
|
+
* - { text: 'filter.containsOperator', operator: 'contains' }
|
|
50
|
+
* - { text: 'filter.notContainsOperator', operator: 'doesnotcontain' }
|
|
51
|
+
* - { text: 'filter.eqOperator', operator: 'eq' }
|
|
52
|
+
* - { text: 'filter.notEqOperator', operator: 'neq' }
|
|
53
|
+
* - { text: 'filter.startsWithOperator', operator: 'startswith' }
|
|
54
|
+
* - { text: 'filter.endsWithOperator', operator: 'endswith' }
|
|
55
|
+
* - { text: 'filter.isNullOperator', operator: 'isnull' }
|
|
56
|
+
* - { text: 'filter.isNotNullOperator', operator: 'isnotnull' }
|
|
57
|
+
* - { text: 'filter.isEmptyOperator', operator: 'isempty' }
|
|
58
|
+
* - { text: 'filter.isNotEmptyOperator', operator: 'isnotempty' }
|
|
59
|
+
*/
|
|
60
|
+
static get text() {
|
|
61
|
+
return [...y];
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* An array containing the operators for the NumericFilter component.
|
|
65
|
+
*
|
|
66
|
+
* The operators are:
|
|
67
|
+
*
|
|
68
|
+
* - { text: 'filter.eqOperator', operator: 'eq' }
|
|
69
|
+
* - { text: 'filter.notEqOperator', operator: 'neq' }
|
|
70
|
+
* - { text: 'filter.gteOperator', operator: 'gte' }
|
|
71
|
+
* - { text: 'filter.gtOperator', operator: 'gt' }
|
|
72
|
+
* - { text: 'filter.lteOperator', operator: 'lte' }
|
|
73
|
+
* - { text: 'filter.ltOperator', operator: 'lt' }
|
|
74
|
+
* - { text: 'filter.isNullOperator', operator: 'isnull' }
|
|
75
|
+
* - { text: 'filter.isNotNullOperator', operator: 'isnotnull' }
|
|
76
|
+
*/
|
|
77
|
+
static get numeric() {
|
|
78
|
+
return [...E];
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* An array containing the operators for the DateFilter component.
|
|
82
|
+
*
|
|
83
|
+
* The operators are:
|
|
84
|
+
*
|
|
85
|
+
* - { text: 'filter.eqOperator', operator: 'eq' }
|
|
86
|
+
* - { text: 'filter.notEqOperator', operator: 'neq' }
|
|
87
|
+
* - { text: 'filter.afterOrEqualOperator', operator: 'gte' }
|
|
88
|
+
* - { text: 'filter.afterOperator', operator: 'gt' }
|
|
89
|
+
* - { text: 'filter.beforeOperator', operator: 'lt' }
|
|
90
|
+
* - { text: 'filter.beforeOrEqualOperator', operator: 'lte' }
|
|
91
|
+
* - { text: 'filter.isNullOperator', operator: 'isnull' }
|
|
92
|
+
* - { text: 'filter.isNotNullOperator', operator: 'isnotnull' }
|
|
93
|
+
*/
|
|
94
|
+
static get date() {
|
|
95
|
+
return [...h];
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* An array containing the operators for the BooleanFilter component.
|
|
99
|
+
*
|
|
100
|
+
* The operators are:
|
|
101
|
+
*
|
|
102
|
+
* - { text: 'filter.eqOperator', operator: 'eq' }
|
|
103
|
+
* - { text: 'filter.notEqOperator', operator: 'neq' }
|
|
104
|
+
*/
|
|
105
|
+
static get boolean() {
|
|
106
|
+
return [...N];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
const b = (t) => t === "contains" || t === "doesnotcontain" || t === "startswith" || t === "endswith", A = (t) => t === "isnull" || t === "isnotnull" || t === "isempty" || t === "isnotempty";
|
|
110
|
+
export {
|
|
111
|
+
I as Operators,
|
|
112
|
+
b as stringOperator,
|
|
113
|
+
A as unaryOperator
|
|
114
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),f=require("./FilterComponent.js"),d=require("@progress/kendo-react-dropdowns");function p(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const g=p(s),c="eq",v={emptyFilter:{operator:c,value:""},inputComponent:e=>null,operatorComponent:function(e,n){const{filter:t=[],field:r}=n,i=t.find(o=>o.field===r);return g.createElement(d.DropDownList,{...e,value:e.data.find(o=>o.operator===(i?i.value:"")),onChange:o=>{if(!n.onFilterChange)return;const a=o.target.value.operator;if(a===""){i&&n.onFilterChange.call(void 0,{filter:t.filter(l=>l.field!==i.field),field:r,syntheticEvent:o.syntheticEvent});return}let u=i?t.map(l=>l.field===r?{...i,value:a}:l):[...t,{value:a,field:r,operator:c}];n.onFilterChange.call(void 0,{filter:u,field:r,syntheticEvent:o.syntheticEvent})}})}};class m extends f.createFilterComponent(v){}exports.BooleanFilterCell=m;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as s from "react";
|
|
10
|
+
import { createFilterComponent as p } from "./FilterComponent.mjs";
|
|
11
|
+
import { DropDownList as u } from "@progress/kendo-react-dropdowns";
|
|
12
|
+
const f = "eq", m = {
|
|
13
|
+
emptyFilter: { operator: f, value: "" },
|
|
14
|
+
inputComponent: (o) => null,
|
|
15
|
+
operatorComponent: function(o, r) {
|
|
16
|
+
const { filter: i = [], field: n } = r, t = i.find((e) => e.field === n);
|
|
17
|
+
return /* @__PURE__ */ s.createElement(
|
|
18
|
+
u,
|
|
19
|
+
{
|
|
20
|
+
...o,
|
|
21
|
+
value: o.data.find((e) => e.operator === (t ? t.value : "")),
|
|
22
|
+
onChange: (e) => {
|
|
23
|
+
if (!r.onFilterChange)
|
|
24
|
+
return;
|
|
25
|
+
const a = e.target.value.operator;
|
|
26
|
+
if (a === "") {
|
|
27
|
+
t && r.onFilterChange.call(void 0, {
|
|
28
|
+
filter: i.filter((l) => l.field !== t.field),
|
|
29
|
+
field: n,
|
|
30
|
+
syntheticEvent: e.syntheticEvent
|
|
31
|
+
});
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
let c = t ? i.map((l) => l.field === n ? { ...t, value: a } : l) : [...i, { value: a, field: n, operator: f }];
|
|
35
|
+
r.onFilterChange.call(void 0, {
|
|
36
|
+
filter: c,
|
|
37
|
+
field: n,
|
|
38
|
+
syntheticEvent: e.syntheticEvent
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
class h extends p(m) {
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
h as BooleanFilterCell
|
|
49
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),a=require("./FilterComponent.js"),l=require("@progress/kendo-react-dateinputs"),i=require("@progress/kendo-react-dropdowns");function s(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const o=s(c),u={inputComponent:e=>o.createElement(l.DatePicker,{...e}),operatorComponent:e=>o.createElement(i.DropDownList,{...e}),emptyFilter:{operator:"eq",value:null}};class p extends a.createFilterComponent(u){}exports.DateFilterCell=p;
|