@progress/kendo-react-grid 14.5.0-develop.6 → 14.5.0-develop.8
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/columnMenu/GridColumnMenuFilter.js +1 -1
- package/columnMenu/GridColumnMenuFilter.mjs +43 -38
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/filterCommon.js +1 -1
- package/filterCommon.mjs +40 -40
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +17 -17
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"}]},a=
|
|
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"}]},a=e=>e==="isnull"||e==="isnotnull"||e==="isempty"||e==="isnotempty",h=(e,i)=>e.map(t=>({text:i.toLanguageString(t.text,x.messages[t.text]),operator:t.operator})),d="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=(e,i,t)=>{const o=g(t.operators);let r=t.operator;switch(t.filterType){case"numeric":(!r||a(r))&&(r=o);break;case"date":(!r||a(r))&&(r=o);break;case"text":(!r||a(r))&&(r=o);break;default:return}t.onChange({value:e,operator:r,syntheticEvent:i})},g=(e,i)=>i?e[i][0].operator:e[0].operator,v=e=>e||"text",N=(e,i)=>{const t=e.target.value;i({value:t.operator,operator:t.operator===""?"":d,syntheticEvent:e.syntheticEvent})},F=(e,i,t)=>{let o=i;const r=e.target.value;e.target.state.opened&&(a(r.operator)&&(o=null),i===null&&!a(r.operator)&&(o=void 0),t({value:o,operator:r.operator,syntheticEvent:e.syntheticEvent}))},n=(e,i)=>{const t=i||new O.IntlService("en-US");if(e.value){const o=t.parseDate(e.value);o&&(e.value=o)}e.filters&&(e.filters=e.filters.map(o=>{if(o.value){const r=t.parseDate(o.value);r&&(o.value=r)}return o}))},b=(e,i)=>{var o;let t=e;if(t&&Object.keys(t).length===0&&(t=null),t!=null&&t.filters&&Array.isArray(t.filters)){const r=i||{filters:[],logic:"and"},u=r.filters.map(l=>l.field||l.filters[0].field),p=t.filters.every(l=>l.field===(t==null?void 0:t.filters[0]).field),s=p?[{filters:t.filters.map(l=>(n(l),l)),logic:t.logic}]:t.filters.map(l=>{const c=l.filters?l:{logic:e.logic,filters:[l]};return n(c),c}),f=p&&u.includes(s[0].filters[0].field);if(f){const l=r.filters[0];l.filters&&((o=l.filters)==null||o.push(...s[0].filters),l.logic=e.logic)}t={...r,filters:f?r.filters:[...r.filters,...s]}}return t};exports.IsUnaryFilter=a;exports.booleanFilterValues=q;exports.cellBoolDropdownChange=N;exports.cellInputChange=E;exports.cellOperatorChange=F;exports.combineSmartFilters=b;exports.defaultBooleanOperator=d;exports.defaultHideSecondFilter=I;exports.filterLogicList=m;exports.getDefaultOperator=g;exports.getFilterType=v;exports.operatorMap=h;exports.operators=y;exports.parseFilterDates=n;
|
package/filterCommon.mjs
CHANGED
|
@@ -44,97 +44,97 @@ const q = [
|
|
|
44
44
|
{ text: "grid.filterIsNotNullOperator", operator: "isnotnull" }
|
|
45
45
|
],
|
|
46
46
|
boolean: [{ text: "grid.filterEqOperator", operator: "eq" }]
|
|
47
|
-
}, a = (
|
|
48
|
-
text: i.toLanguageString(
|
|
49
|
-
operator:
|
|
47
|
+
}, a = (e) => e === "isnull" || e === "isnotnull" || e === "isempty" || e === "isnotempty", h = (e, i) => e.map((t) => ({
|
|
48
|
+
text: i.toLanguageString(t.text, g[t.text]),
|
|
49
|
+
operator: t.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
|
+
], v = {
|
|
55
55
|
text: !1,
|
|
56
56
|
numeric: !1,
|
|
57
57
|
date: !1,
|
|
58
58
|
boolean: !0
|
|
59
|
-
},
|
|
60
|
-
const o = O(
|
|
61
|
-
let r =
|
|
62
|
-
switch (
|
|
59
|
+
}, I = (e, i, t) => {
|
|
60
|
+
const o = O(t.operators);
|
|
61
|
+
let r = t.operator;
|
|
62
|
+
switch (t.filterType) {
|
|
63
63
|
case "numeric":
|
|
64
|
-
(!r || a(r)) && (r = o)
|
|
64
|
+
(!r || a(r)) && (r = o);
|
|
65
65
|
break;
|
|
66
66
|
case "date":
|
|
67
|
-
(!r || a(r)) && (r = o)
|
|
67
|
+
(!r || a(r)) && (r = o);
|
|
68
68
|
break;
|
|
69
69
|
case "text":
|
|
70
|
-
(!r || a(r)) && (r = o)
|
|
70
|
+
(!r || a(r)) && (r = o);
|
|
71
71
|
break;
|
|
72
72
|
default:
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
|
-
|
|
76
|
-
}, O = (
|
|
77
|
-
const
|
|
75
|
+
t.onChange({ value: e, operator: r, syntheticEvent: i });
|
|
76
|
+
}, O = (e, i) => i ? e[i][0].operator : e[0].operator, F = (e) => e || "text", b = (e, i) => {
|
|
77
|
+
const t = e.target.value;
|
|
78
78
|
i({
|
|
79
|
-
value:
|
|
80
|
-
operator:
|
|
81
|
-
syntheticEvent:
|
|
79
|
+
value: t.operator,
|
|
80
|
+
operator: t.operator === "" ? "" : x,
|
|
81
|
+
syntheticEvent: e.syntheticEvent
|
|
82
82
|
});
|
|
83
|
-
}, A = (
|
|
83
|
+
}, A = (e, i, t) => {
|
|
84
84
|
let o = i;
|
|
85
|
-
const r =
|
|
86
|
-
|
|
87
|
-
}, d = (
|
|
88
|
-
const
|
|
89
|
-
if (
|
|
90
|
-
const o =
|
|
91
|
-
o && (
|
|
85
|
+
const r = e.target.value;
|
|
86
|
+
e.target.state.opened && (a(r.operator) && (o = null), i === null && !a(r.operator) && (o = void 0), t({ value: o, operator: r.operator, syntheticEvent: e.syntheticEvent }));
|
|
87
|
+
}, d = (e, i) => {
|
|
88
|
+
const t = i || new u("en-US");
|
|
89
|
+
if (e.value) {
|
|
90
|
+
const o = t.parseDate(e.value);
|
|
91
|
+
o && (e.value = o);
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
e.filters && (e.filters = e.filters.map(
|
|
94
94
|
(o) => {
|
|
95
95
|
if (o.value) {
|
|
96
|
-
const r =
|
|
96
|
+
const r = t.parseDate(o.value);
|
|
97
97
|
r && (o.value = r);
|
|
98
98
|
}
|
|
99
99
|
return o;
|
|
100
100
|
}
|
|
101
101
|
));
|
|
102
|
-
}, C = (
|
|
102
|
+
}, C = (e, i) => {
|
|
103
103
|
var o;
|
|
104
|
-
let
|
|
105
|
-
if (
|
|
106
|
-
const r = i || { filters: [], logic: "and" }, c = r.filters.map((l) => l.field || l.filters[0].field), n =
|
|
104
|
+
let t = e;
|
|
105
|
+
if (t && Object.keys(t).length === 0 && (t = null), t != null && t.filters && Array.isArray(t.filters)) {
|
|
106
|
+
const r = i || { filters: [], logic: "and" }, c = r.filters.map((l) => l.field || l.filters[0].field), n = t.filters.every((l) => l.field === (t == null ? void 0 : t.filters[0]).field), s = n ? [
|
|
107
107
|
{
|
|
108
|
-
filters:
|
|
109
|
-
logic:
|
|
108
|
+
filters: t.filters.map((l) => (d(l), l)),
|
|
109
|
+
logic: t.logic
|
|
110
110
|
}
|
|
111
|
-
] :
|
|
111
|
+
] : t.filters.map((l) => {
|
|
112
112
|
const f = l.filters ? l : {
|
|
113
|
-
logic:
|
|
113
|
+
logic: e.logic,
|
|
114
114
|
filters: [l]
|
|
115
115
|
};
|
|
116
116
|
return d(f), f;
|
|
117
117
|
}), p = n && c.includes(s[0].filters[0].field);
|
|
118
118
|
if (p) {
|
|
119
119
|
const l = r.filters[0];
|
|
120
|
-
l.filters && ((o = l.filters) == null || o.push(...s[0].filters), l.logic =
|
|
120
|
+
l.filters && ((o = l.filters) == null || o.push(...s[0].filters), l.logic = e.logic);
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
t = {
|
|
123
123
|
...r,
|
|
124
124
|
filters: p ? r.filters : [...r.filters, ...s]
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
return
|
|
127
|
+
return t;
|
|
128
128
|
};
|
|
129
129
|
export {
|
|
130
130
|
a as IsUnaryFilter,
|
|
131
131
|
N as booleanFilterValues,
|
|
132
132
|
b as cellBoolDropdownChange,
|
|
133
|
-
|
|
133
|
+
I as cellInputChange,
|
|
134
134
|
A as cellOperatorChange,
|
|
135
135
|
C as combineSmartFilters,
|
|
136
136
|
x as defaultBooleanOperator,
|
|
137
|
-
|
|
137
|
+
v as defaultHideSecondFilter,
|
|
138
138
|
q as filterLogicList,
|
|
139
139
|
O as getDefaultOperator,
|
|
140
140
|
F as getFilterType,
|
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: 1778596885,version:"14.5.0-develop.8",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: 1778596885,
|
|
11
|
+
version: '14.5.0-develop.8',
|
|
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.8",
|
|
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.8",
|
|
34
|
+
"@progress/kendo-react-buttons": "14.5.0-develop.8",
|
|
35
|
+
"@progress/kendo-react-common": "14.5.0-develop.8",
|
|
36
|
+
"@progress/kendo-react-data-tools": "14.5.0-develop.8",
|
|
37
|
+
"@progress/kendo-react-dateinputs": "14.5.0-develop.8",
|
|
38
|
+
"@progress/kendo-react-indicators": "14.5.0-develop.8",
|
|
39
|
+
"@progress/kendo-react-form": "14.5.0-develop.8",
|
|
40
|
+
"@progress/kendo-react-labels": "14.5.0-develop.8",
|
|
41
|
+
"@progress/kendo-react-dialogs": "14.5.0-develop.8",
|
|
42
|
+
"@progress/kendo-react-dropdowns": "14.5.0-develop.8",
|
|
43
|
+
"@progress/kendo-react-inputs": "14.5.0-develop.8",
|
|
44
|
+
"@progress/kendo-react-intl": "14.5.0-develop.8",
|
|
45
|
+
"@progress/kendo-react-popup": "14.5.0-develop.8",
|
|
46
|
+
"@progress/kendo-react-layout": "14.5.0-develop.8",
|
|
47
|
+
"@progress/kendo-react-conversational-ui": "14.5.0-develop.8",
|
|
48
48
|
"@progress/kendo-svg-icons": "^4.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": 1778596885,
|
|
152
152
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
153
153
|
}
|
|
154
154
|
},
|