@progress/kendo-react-grid 14.5.0-develop.11 → 14.5.0-develop.13
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/README.md +4 -4
- package/columnMenu/GridColumnMenuFilterCell.js +1 -1
- package/columnMenu/GridColumnMenuFilterCell.mjs +4 -4
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/filterCommon.d.ts +1 -1
- package/filterCommon.js +1 -1
- package/filterCommon.mjs +56 -58
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +17 -17
package/filterCommon.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export declare const defaultHideSecondFilter: {
|
|
|
58
58
|
/**
|
|
59
59
|
* Normalize data for calling onChange.
|
|
60
60
|
*/
|
|
61
|
-
export declare const cellInputChange: (value: any, e: React.SyntheticEvent<any>, props: any) => void;
|
|
61
|
+
export declare const cellInputChange: (value: any, e: React.SyntheticEvent<any>, props: any, clearOperatorOnClear?: boolean) => void;
|
|
62
62
|
/**
|
|
63
63
|
* @hidden
|
|
64
64
|
*/
|
package/filterCommon.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("./messages/index.js"),O=require("@progress/kendo-react-intl"),m=[{text:"grid.filterAndLogic",operator:"and"},{text:"grid.filterOrLogic",operator:"or"}],y={text:[{text:"grid.filterContainsOperator",operator:"contains"},{text:"grid.filterNotContainsOperator",operator:"doesnotcontain"},{text:"grid.filterEqOperator",operator:"eq"},{text:"grid.filterNotEqOperator",operator:"neq"},{text:"grid.filterStartsWithOperator",operator:"startswith"},{text:"grid.filterEndsWithOperator",operator:"endswith"},{text:"grid.filterIsNullOperator",operator:"isnull"},{text:"grid.filterIsNotNullOperator",operator:"isnotnull"},{text:"grid.filterIsEmptyOperator",operator:"isempty"},{text:"grid.filterIsNotEmptyOperator",operator:"isnotempty"}],numeric:[{text:"grid.filterEqOperator",operator:"eq"},{text:"grid.filterNotEqOperator",operator:"neq"},{text:"grid.filterGteOperator",operator:"gte"},{text:"grid.filterGtOperator",operator:"gt"},{text:"grid.filterLteOperator",operator:"lte"},{text:"grid.filterLtOperator",operator:"lt"},{text:"grid.filterIsNullOperator",operator:"isnull"},{text:"grid.filterIsNotNullOperator",operator:"isnotnull"}],date:[{text:"grid.filterEqOperator",operator:"eq"},{text:"grid.filterNotEqOperator",operator:"neq"},{text:"grid.filterAfterOrEqualOperator",operator:"gte"},{text:"grid.filterAfterOperator",operator:"gt"},{text:"grid.filterBeforeOperator",operator:"lt"},{text:"grid.filterBeforeOrEqualOperator",operator:"lte"},{text:"grid.filterIsNullOperator",operator:"isnull"},{text:"grid.filterIsNotNullOperator",operator:"isnotnull"}],boolean:[{text:"grid.filterEqOperator",operator:"eq"}]},
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("./messages/index.js"),O=require("@progress/kendo-react-intl"),m=[{text:"grid.filterAndLogic",operator:"and"},{text:"grid.filterOrLogic",operator:"or"}],y={text:[{text:"grid.filterContainsOperator",operator:"contains"},{text:"grid.filterNotContainsOperator",operator:"doesnotcontain"},{text:"grid.filterEqOperator",operator:"eq"},{text:"grid.filterNotEqOperator",operator:"neq"},{text:"grid.filterStartsWithOperator",operator:"startswith"},{text:"grid.filterEndsWithOperator",operator:"endswith"},{text:"grid.filterIsNullOperator",operator:"isnull"},{text:"grid.filterIsNotNullOperator",operator:"isnotnull"},{text:"grid.filterIsEmptyOperator",operator:"isempty"},{text:"grid.filterIsNotEmptyOperator",operator:"isnotempty"}],numeric:[{text:"grid.filterEqOperator",operator:"eq"},{text:"grid.filterNotEqOperator",operator:"neq"},{text:"grid.filterGteOperator",operator:"gte"},{text:"grid.filterGtOperator",operator:"gt"},{text:"grid.filterLteOperator",operator:"lte"},{text:"grid.filterLtOperator",operator:"lt"},{text:"grid.filterIsNullOperator",operator:"isnull"},{text:"grid.filterIsNotNullOperator",operator:"isnotnull"}],date:[{text:"grid.filterEqOperator",operator:"eq"},{text:"grid.filterNotEqOperator",operator:"neq"},{text:"grid.filterAfterOrEqualOperator",operator:"gte"},{text:"grid.filterAfterOperator",operator:"gt"},{text:"grid.filterBeforeOperator",operator:"lt"},{text:"grid.filterBeforeOrEqualOperator",operator:"lte"},{text:"grid.filterIsNullOperator",operator:"isnull"},{text:"grid.filterIsNotNullOperator",operator:"isnotnull"}],boolean:[{text:"grid.filterEqOperator",operator:"eq"}]},s=t=>t==="isnull"||t==="isnotnull"||t==="isempty"||t==="isnotempty",h=(t,i)=>t.map(e=>({text:i.toLanguageString(e.text,x.messages[e.text]),operator:e.operator})),g="eq",q=[{text:"grid.filterBooleanAll",operator:""},{text:"grid.filterIsTrue",operator:!0},{text:"grid.filterIsFalse",operator:!1}],I={text:!1,numeric:!1,date:!1,boolean:!0},E=(t,i,e,r=!0)=>{const o=u(e.operators);let a=e.operator;switch(e.filterType){case"numeric":case"date":(!a||s(a))&&(a=o),r&&t===null&&a===o&&(a="");break;case"text":(!a||s(a))&&(a=o),r&&!t&&a===o&&(a="");break;default:return}e.onChange({value:t,operator:a,syntheticEvent:i})},u=(t,i)=>i?t[i][0].operator:t[0].operator,N=t=>t||"text",F=(t,i)=>{const e=t.target.value;i({value:e.operator,operator:e.operator===""?"":g,syntheticEvent:t.syntheticEvent})},v=(t,i,e)=>{let r=i;const o=t.target.value;t.target.state.opened&&(s(o.operator)&&(r=null),i===null&&!s(o.operator)&&(r=void 0),e({value:r,operator:o.operator,syntheticEvent:t.syntheticEvent}))},p=(t,i)=>{const e=i||new O.IntlService("en-US");if(t.value){const r=e.parseDate(t.value);r&&(t.value=r)}t.filters&&(t.filters=t.filters.map(r=>{if(r.value){const o=e.parseDate(r.value);o&&(r.value=o)}return r}))},b=(t,i)=>{var r;let e=t;if(e&&Object.keys(e).length===0&&(e=null),e!=null&&e.filters&&Array.isArray(e.filters)){const o=i||{filters:[],logic:"and"},a=o.filters.map(l=>l.field||l.filters[0].field),f=e.filters.every(l=>l.field===(e==null?void 0:e.filters[0]).field),n=f?[{filters:e.filters.map(l=>(p(l),l)),logic:e.logic}]:e.filters.map(l=>{const c=l.filters?l:{logic:t.logic,filters:[l]};return p(c),c}),d=f&&a.includes(n[0].filters[0].field);if(d){const l=o.filters[0];l.filters&&((r=l.filters)==null||r.push(...n[0].filters),l.logic=t.logic)}e={...o,filters:d?o.filters:[...o.filters,...n]}}return e};exports.IsUnaryFilter=s;exports.booleanFilterValues=q;exports.cellBoolDropdownChange=F;exports.cellInputChange=E;exports.cellOperatorChange=v;exports.combineSmartFilters=b;exports.defaultBooleanOperator=g;exports.defaultHideSecondFilter=I;exports.filterLogicList=m;exports.getDefaultOperator=u;exports.getFilterType=N;exports.operatorMap=h;exports.operators=y;exports.parseFilterDates=p;
|
package/filterCommon.mjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { messages as
|
|
8
|
+
import { messages as c } from "./messages/index.mjs";
|
|
9
9
|
import { IntlService as u } from "@progress/kendo-react-intl";
|
|
10
10
|
const q = [
|
|
11
11
|
{ text: "grid.filterAndLogic", operator: "and" },
|
|
@@ -44,101 +44,99 @@ const q = [
|
|
|
44
44
|
{ text: "grid.filterIsNotNullOperator", operator: "isnotnull" }
|
|
45
45
|
],
|
|
46
46
|
boolean: [{ text: "grid.filterEqOperator", operator: "eq" }]
|
|
47
|
-
},
|
|
48
|
-
text: i.toLanguageString(
|
|
49
|
-
operator:
|
|
47
|
+
}, s = (t) => t === "isnull" || t === "isnotnull" || t === "isempty" || t === "isnotempty", h = (t, i) => t.map((e) => ({
|
|
48
|
+
text: i.toLanguageString(e.text, c[e.text]),
|
|
49
|
+
operator: e.operator
|
|
50
50
|
})), x = "eq", N = [
|
|
51
51
|
{ text: "grid.filterBooleanAll", operator: "" },
|
|
52
52
|
{ text: "grid.filterIsTrue", operator: !0 },
|
|
53
53
|
{ text: "grid.filterIsFalse", operator: !1 }
|
|
54
|
-
],
|
|
54
|
+
], I = {
|
|
55
55
|
text: !1,
|
|
56
56
|
numeric: !1,
|
|
57
57
|
date: !1,
|
|
58
58
|
boolean: !0
|
|
59
|
-
},
|
|
60
|
-
const o = O(
|
|
61
|
-
let
|
|
62
|
-
switch (
|
|
59
|
+
}, v = (t, i, e, r = !0) => {
|
|
60
|
+
const o = O(e.operators);
|
|
61
|
+
let a = e.operator;
|
|
62
|
+
switch (e.filterType) {
|
|
63
63
|
case "numeric":
|
|
64
|
-
(!r || a(r)) && (r = o);
|
|
65
|
-
break;
|
|
66
64
|
case "date":
|
|
67
|
-
(!
|
|
65
|
+
(!a || s(a)) && (a = o), r && t === null && a === o && (a = "");
|
|
68
66
|
break;
|
|
69
67
|
case "text":
|
|
70
|
-
(!
|
|
68
|
+
(!a || s(a)) && (a = o), r && !t && a === o && (a = "");
|
|
71
69
|
break;
|
|
72
70
|
default:
|
|
73
71
|
return;
|
|
74
72
|
}
|
|
75
|
-
|
|
76
|
-
}, O = (
|
|
77
|
-
const
|
|
73
|
+
e.onChange({ value: t, operator: a, syntheticEvent: i });
|
|
74
|
+
}, O = (t, i) => i ? t[i][0].operator : t[0].operator, F = (t) => t || "text", b = (t, i) => {
|
|
75
|
+
const e = t.target.value;
|
|
78
76
|
i({
|
|
79
|
-
value:
|
|
80
|
-
operator:
|
|
81
|
-
syntheticEvent:
|
|
77
|
+
value: e.operator,
|
|
78
|
+
operator: e.operator === "" ? "" : x,
|
|
79
|
+
syntheticEvent: t.syntheticEvent
|
|
82
80
|
});
|
|
83
|
-
}, A = (
|
|
84
|
-
let
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
},
|
|
88
|
-
const
|
|
89
|
-
if (
|
|
90
|
-
const
|
|
91
|
-
|
|
81
|
+
}, A = (t, i, e) => {
|
|
82
|
+
let r = i;
|
|
83
|
+
const o = t.target.value;
|
|
84
|
+
t.target.state.opened && (s(o.operator) && (r = null), i === null && !s(o.operator) && (r = void 0), e({ value: r, operator: o.operator, syntheticEvent: t.syntheticEvent }));
|
|
85
|
+
}, g = (t, i) => {
|
|
86
|
+
const e = i || new u("en-US");
|
|
87
|
+
if (t.value) {
|
|
88
|
+
const r = e.parseDate(t.value);
|
|
89
|
+
r && (t.value = r);
|
|
92
90
|
}
|
|
93
|
-
|
|
94
|
-
(
|
|
95
|
-
if (
|
|
96
|
-
const
|
|
97
|
-
|
|
91
|
+
t.filters && (t.filters = t.filters.map(
|
|
92
|
+
(r) => {
|
|
93
|
+
if (r.value) {
|
|
94
|
+
const o = e.parseDate(r.value);
|
|
95
|
+
o && (r.value = o);
|
|
98
96
|
}
|
|
99
|
-
return
|
|
97
|
+
return r;
|
|
100
98
|
}
|
|
101
99
|
));
|
|
102
|
-
},
|
|
103
|
-
var
|
|
104
|
-
let
|
|
105
|
-
if (
|
|
106
|
-
const
|
|
100
|
+
}, L = (t, i) => {
|
|
101
|
+
var r;
|
|
102
|
+
let e = t;
|
|
103
|
+
if (e && Object.keys(e).length === 0 && (e = null), e != null && e.filters && Array.isArray(e.filters)) {
|
|
104
|
+
const o = i || { filters: [], logic: "and" }, a = o.filters.map((l) => l.field || l.filters[0].field), p = e.filters.every((l) => l.field === (e == null ? void 0 : e.filters[0]).field), n = p ? [
|
|
107
105
|
{
|
|
108
|
-
filters:
|
|
109
|
-
logic:
|
|
106
|
+
filters: e.filters.map((l) => (g(l), l)),
|
|
107
|
+
logic: e.logic
|
|
110
108
|
}
|
|
111
|
-
] :
|
|
112
|
-
const
|
|
113
|
-
logic:
|
|
109
|
+
] : e.filters.map((l) => {
|
|
110
|
+
const d = l.filters ? l : {
|
|
111
|
+
logic: t.logic,
|
|
114
112
|
filters: [l]
|
|
115
113
|
};
|
|
116
|
-
return d
|
|
117
|
-
}),
|
|
118
|
-
if (
|
|
119
|
-
const l =
|
|
120
|
-
l.filters && ((
|
|
114
|
+
return g(d), d;
|
|
115
|
+
}), f = p && a.includes(n[0].filters[0].field);
|
|
116
|
+
if (f) {
|
|
117
|
+
const l = o.filters[0];
|
|
118
|
+
l.filters && ((r = l.filters) == null || r.push(...n[0].filters), l.logic = t.logic);
|
|
121
119
|
}
|
|
122
|
-
|
|
123
|
-
...
|
|
124
|
-
filters:
|
|
120
|
+
e = {
|
|
121
|
+
...o,
|
|
122
|
+
filters: f ? o.filters : [...o.filters, ...n]
|
|
125
123
|
};
|
|
126
124
|
}
|
|
127
|
-
return
|
|
125
|
+
return e;
|
|
128
126
|
};
|
|
129
127
|
export {
|
|
130
|
-
|
|
128
|
+
s as IsUnaryFilter,
|
|
131
129
|
N as booleanFilterValues,
|
|
132
130
|
b as cellBoolDropdownChange,
|
|
133
|
-
|
|
131
|
+
v as cellInputChange,
|
|
134
132
|
A as cellOperatorChange,
|
|
135
|
-
|
|
133
|
+
L as combineSmartFilters,
|
|
136
134
|
x as defaultBooleanOperator,
|
|
137
|
-
|
|
135
|
+
I as defaultHideSecondFilter,
|
|
138
136
|
q as filterLogicList,
|
|
139
137
|
O as getDefaultOperator,
|
|
140
138
|
F as getFilterType,
|
|
141
139
|
h as operatorMap,
|
|
142
140
|
E as operators,
|
|
143
|
-
|
|
141
|
+
g as parseFilterDates
|
|
144
142
|
};
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-grid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-grid",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1778690144,version:"14.5.0-develop.13",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = Object.freeze({
|
|
|
7
7
|
productName: 'KendoReact',
|
|
8
8
|
productCode: 'KENDOUIREACT',
|
|
9
9
|
productCodes: ['KENDOUIREACT'],
|
|
10
|
-
publishDate:
|
|
11
|
-
version: '14.5.0-develop.
|
|
10
|
+
publishDate: 1778690144,
|
|
11
|
+
version: '14.5.0-develop.13',
|
|
12
12
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/components/my-license/'
|
|
13
13
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-grid",
|
|
3
|
-
"version": "14.5.0-develop.
|
|
3
|
+
"version": "14.5.0-develop.13",
|
|
4
4
|
"description": "React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -30,21 +30,21 @@
|
|
|
30
30
|
"@progress/kendo-drawing": "^1.21.2",
|
|
31
31
|
"@progress/kendo-file-saver": "^1.1.1",
|
|
32
32
|
"@progress/kendo-licensing": "^1.7.2",
|
|
33
|
-
"@progress/kendo-react-animation": "14.5.0-develop.
|
|
34
|
-
"@progress/kendo-react-buttons": "14.5.0-develop.
|
|
35
|
-
"@progress/kendo-react-common": "14.5.0-develop.
|
|
36
|
-
"@progress/kendo-react-data-tools": "14.5.0-develop.
|
|
37
|
-
"@progress/kendo-react-dateinputs": "14.5.0-develop.
|
|
38
|
-
"@progress/kendo-react-indicators": "14.5.0-develop.
|
|
39
|
-
"@progress/kendo-react-form": "14.5.0-develop.
|
|
40
|
-
"@progress/kendo-react-labels": "14.5.0-develop.
|
|
41
|
-
"@progress/kendo-react-dialogs": "14.5.0-develop.
|
|
42
|
-
"@progress/kendo-react-dropdowns": "14.5.0-develop.
|
|
43
|
-
"@progress/kendo-react-inputs": "14.5.0-develop.
|
|
44
|
-
"@progress/kendo-react-intl": "14.5.0-develop.
|
|
45
|
-
"@progress/kendo-react-popup": "14.5.0-develop.
|
|
46
|
-
"@progress/kendo-react-layout": "14.5.0-develop.
|
|
47
|
-
"@progress/kendo-react-conversational-ui": "14.5.0-develop.
|
|
33
|
+
"@progress/kendo-react-animation": "14.5.0-develop.13",
|
|
34
|
+
"@progress/kendo-react-buttons": "14.5.0-develop.13",
|
|
35
|
+
"@progress/kendo-react-common": "14.5.0-develop.13",
|
|
36
|
+
"@progress/kendo-react-data-tools": "14.5.0-develop.13",
|
|
37
|
+
"@progress/kendo-react-dateinputs": "14.5.0-develop.13",
|
|
38
|
+
"@progress/kendo-react-indicators": "14.5.0-develop.13",
|
|
39
|
+
"@progress/kendo-react-form": "14.5.0-develop.13",
|
|
40
|
+
"@progress/kendo-react-labels": "14.5.0-develop.13",
|
|
41
|
+
"@progress/kendo-react-dialogs": "14.5.0-develop.13",
|
|
42
|
+
"@progress/kendo-react-dropdowns": "14.5.0-develop.13",
|
|
43
|
+
"@progress/kendo-react-inputs": "14.5.0-develop.13",
|
|
44
|
+
"@progress/kendo-react-intl": "14.5.0-develop.13",
|
|
45
|
+
"@progress/kendo-react-popup": "14.5.0-develop.13",
|
|
46
|
+
"@progress/kendo-react-layout": "14.5.0-develop.13",
|
|
47
|
+
"@progress/kendo-react-conversational-ui": "14.5.0-develop.13",
|
|
48
48
|
"@progress/kendo-svg-icons": "^4.9.0 || ^5.0.0",
|
|
49
49
|
"react": "^18.0.0 || ^19.0.0",
|
|
50
50
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"package": {
|
|
149
149
|
"productName": "KendoReact",
|
|
150
150
|
"productCode": "KENDOUIREACT",
|
|
151
|
-
"publishDate":
|
|
151
|
+
"publishDate": 1778690144,
|
|
152
152
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
153
153
|
}
|
|
154
154
|
},
|