@syncfusion/ej2-querybuilder 22.2.8 → 22.2.11

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 22.2.8
3
+ * version : 22.2.11
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-querybuilder@*",
3
- "_id": "@syncfusion/ej2-querybuilder@22.2.5",
3
+ "_id": "@syncfusion/ej2-querybuilder@22.2.9",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-pQdz9bohFRkMJoTbcLmoYakmMvScFw5vdRR/zg9PBb08/e8Te5TE6pQX2RVnVEnc7X1zyUrz427I2uFxOFk52w==",
5
+ "_integrity": "sha512-uf/swEHA+Du26D8hgn9BRnrN1lYS+m4IStwUrPxJNHdBLUu9obtYMEKcNMeWQ0N4gMymOtTTpBm0aMhlnuMxyA==",
6
6
  "_location": "/@syncfusion/ej2-querybuilder",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-querybuilder",
24
24
  "/@syncfusion/ej2-vue-querybuilder"
25
25
  ],
26
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-22.2.5.tgz",
27
- "_shasum": "d033be8e3c560f1fbda82027b3241a28c81250c1",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-22.2.9.tgz",
27
+ "_shasum": "96d7be0922321a71c166e2f29b7d0b4d1e4eb048",
28
28
  "_spec": "@syncfusion/ej2-querybuilder@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
30
30
  "author": {
@@ -32,11 +32,11 @@
32
32
  },
33
33
  "bundleDependencies": false,
34
34
  "dependencies": {
35
- "@syncfusion/ej2-base": "~22.2.5",
36
- "@syncfusion/ej2-buttons": "~22.2.8",
37
- "@syncfusion/ej2-calendars": "~22.2.8",
38
- "@syncfusion/ej2-dropdowns": "~22.2.8",
39
- "@syncfusion/ej2-inputs": "~22.2.7",
35
+ "@syncfusion/ej2-base": "~22.2.10",
36
+ "@syncfusion/ej2-buttons": "~22.2.9",
37
+ "@syncfusion/ej2-calendars": "~22.2.11",
38
+ "@syncfusion/ej2-dropdowns": "~22.2.11",
39
+ "@syncfusion/ej2-inputs": "~22.2.9",
40
40
  "@syncfusion/ej2-splitbuttons": "~22.2.8"
41
41
  },
42
42
  "deprecated": false,
@@ -66,7 +66,7 @@
66
66
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/querybuilder"
67
67
  },
68
68
  "typings": "index.d.ts",
69
- "version": "22.2.8",
69
+ "version": "22.2.11",
70
70
  "sideEffects": false,
71
71
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
72
72
  }
@@ -262,7 +262,7 @@ var QueryBuilder = /** @class */ (function (_super) {
262
262
  this.columnSort();
263
263
  var columns = this.columns;
264
264
  for (var i = 0, len = columns.length; i < len; i++) {
265
- this.updateCustomOperator(columns[i], "initial");
265
+ this.updateCustomOperator(columns[i], 'initial');
266
266
  if (!columns[i].type) {
267
267
  if (columnKeys.indexOf(columns[i].field) > -1) {
268
268
  value = this.dataColl[0][columns[i].field];
@@ -391,7 +391,7 @@ var QueryBuilder = /** @class */ (function (_super) {
391
391
  };
392
392
  QueryBuilder.prototype.updateCustomOperator = function (column, from) {
393
393
  if (column.operators) {
394
- if (!this.isLocale && from === "initial" && !isNullOrUndefined(this.isCustomOprCols)) {
394
+ if (!this.isLocale && from === 'initial' && !isNullOrUndefined(this.isCustomOprCols)) {
395
395
  this.isCustomOprCols.push(column.field);
396
396
  }
397
397
  var _loop_1 = function (j) {
@@ -1344,9 +1344,14 @@ var QueryBuilder = /** @class */ (function (_super) {
1344
1344
  if (element.className.indexOf('e-radio') > -1) {
1345
1345
  // eslint-disable-next-line
1346
1346
  rbValue = parseInt(element.id.split('valuekey')[1], 0);
1347
- dropDownObj =
1348
- getComponent(closest(element, '.e-rule-container').querySelector('.e-filter-input'), 'dropdownlist');
1349
- this.selectedColumn = dropDownObj.getDataByValue(dropDownObj.value);
1347
+ if (this.fieldMode === 'Default') {
1348
+ dropDownObj = getComponent(closest(element, '.e-rule-container').querySelector('.e-filter-input'), 'dropdownlist');
1349
+ this.selectedColumn = dropDownObj.getDataByValue(dropDownObj.value);
1350
+ }
1351
+ else {
1352
+ dropDownObj = getComponent(closest(element, '.e-rule-container').querySelector('.e-filter-input'), 'dropdowntree');
1353
+ this.selectedColumn = this.getColumn(dropDownObj.value[0]);
1354
+ }
1350
1355
  if (this.selectedColumn.values) {
1351
1356
  value = this.selectedColumn.values[rbValue];
1352
1357
  }
@@ -3881,6 +3886,9 @@ var QueryBuilder = /** @class */ (function (_super) {
3881
3886
  ruleId = this.element.id + '_' + elem;
3882
3887
  ruleElem = document.getElementById(ruleId);
3883
3888
  }
3889
+ if (isNullOrUndefined(ruleElem)) {
3890
+ return null;
3891
+ }
3884
3892
  var groupElem = closest(ruleElem, '.e-group-container');
3885
3893
  var rule = this.getParentGroup(groupElem);
3886
3894
  while (ruleElem.previousElementSibling !== null) {
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
2
2
  .e-ddl.e-control-wrapper .e-ddl-icon::before {
3
3
  transform: rotate(0deg);
4
4
  transition: transform 300ms ease;
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
1
+ @import url("https://fonts.googleapis.com/css?family=Roboto:400,500,700");
2
2
  .e-ddl.e-control-wrapper .e-ddl-icon::before {
3
3
  transform: rotate(0deg);
4
4
  transition: transform 300ms ease;