@syncfusion/ej2-querybuilder 22.2.5 → 22.2.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/CHANGELOG.md +6 -0
- package/dist/ej2-querybuilder.min.js +2 -2
- package/dist/ej2-querybuilder.umd.min.js +2 -2
- package/dist/ej2-querybuilder.umd.min.js.map +1 -1
- package/dist/es6/ej2-querybuilder.es2015.js +7 -3
- package/dist/es6/ej2-querybuilder.es2015.js.map +1 -1
- package/dist/es6/ej2-querybuilder.es5.js +7 -3
- package/dist/es6/ej2-querybuilder.es5.js.map +1 -1
- package/dist/global/ej2-querybuilder.min.js +2 -2
- package/dist/global/ej2-querybuilder.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/query-builder/query-builder.d.ts +1 -0
- package/src/query-builder/query-builder.js +7 -3
|
@@ -138,6 +138,7 @@ let QueryBuilder = class QueryBuilder extends Component {
|
|
|
138
138
|
this.isFieldClose = false;
|
|
139
139
|
this.isDestroy = false;
|
|
140
140
|
this.isGetNestedData = false;
|
|
141
|
+
this.isCustomOprCols = [];
|
|
141
142
|
MultiSelect.Inject(CheckBoxSelection);
|
|
142
143
|
}
|
|
143
144
|
getPersistData() {
|
|
@@ -206,7 +207,7 @@ let QueryBuilder = class QueryBuilder extends Component {
|
|
|
206
207
|
this.columnSort();
|
|
207
208
|
const columns = this.columns;
|
|
208
209
|
for (let i = 0, len = columns.length; i < len; i++) {
|
|
209
|
-
this.updateCustomOperator(columns[i]);
|
|
210
|
+
this.updateCustomOperator(columns[i], "initial");
|
|
210
211
|
if (!columns[i].type) {
|
|
211
212
|
if (columnKeys.indexOf(columns[i].field) > -1) {
|
|
212
213
|
value = this.dataColl[0][columns[i].field];
|
|
@@ -235,7 +236,7 @@ let QueryBuilder = class QueryBuilder extends Component {
|
|
|
235
236
|
if (categories.indexOf(columns[i].category) < 0) {
|
|
236
237
|
categories.push(columns[i].category);
|
|
237
238
|
}
|
|
238
|
-
if (!columns[i].operators || this.isLocale) {
|
|
239
|
+
if (!columns[i].operators || (this.isLocale && this.isCustomOprCols.indexOf(columns[i].field) !== 0)) {
|
|
239
240
|
columns[i].operators = this.customOperators[columns[i].type + 'Operator'];
|
|
240
241
|
}
|
|
241
242
|
}
|
|
@@ -333,8 +334,11 @@ let QueryBuilder = class QueryBuilder extends Component {
|
|
|
333
334
|
}
|
|
334
335
|
}
|
|
335
336
|
}
|
|
336
|
-
updateCustomOperator(column) {
|
|
337
|
+
updateCustomOperator(column, from) {
|
|
337
338
|
if (column.operators) {
|
|
339
|
+
if (!this.isLocale && from === "initial" && !isNullOrUndefined(this.isCustomOprCols)) {
|
|
340
|
+
this.isCustomOprCols.push(column.field);
|
|
341
|
+
}
|
|
338
342
|
for (let j = 0; j < column.operators.length; j++) {
|
|
339
343
|
const sqlIdx = Object.keys(column.operators[j]).indexOf('sqlOperator');
|
|
340
344
|
if (sqlIdx > -1) {
|