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