@syncfusion/ej2-querybuilder 29.2.10 → 30.1.39

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 : 29.2.10
3
+ * version : 30.1.39
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-querybuilder",
3
- "version": "29.2.10",
3
+ "version": "30.1.39",
4
4
  "description": "Essential JS 2 QueryBuilder",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,12 +8,12 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-querybuilder.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~29.2.4",
12
- "@syncfusion/ej2-buttons": "~29.2.5",
13
- "@syncfusion/ej2-calendars": "~29.2.10",
14
- "@syncfusion/ej2-dropdowns": "~29.2.10",
15
- "@syncfusion/ej2-inputs": "~29.2.5",
16
- "@syncfusion/ej2-splitbuttons": "~29.2.4"
11
+ "@syncfusion/ej2-base": "~30.1.38",
12
+ "@syncfusion/ej2-buttons": "~30.1.37",
13
+ "@syncfusion/ej2-calendars": "~30.1.37",
14
+ "@syncfusion/ej2-dropdowns": "~30.1.39",
15
+ "@syncfusion/ej2-inputs": "~30.1.38",
16
+ "@syncfusion/ej2-splitbuttons": "~30.1.39"
17
17
  },
18
18
  "devDependencies": {},
19
19
  "keywords": [
@@ -167,6 +167,7 @@ export interface RuleModel {
167
167
  /**
168
168
  * Specifies whether rule is locked or not.
169
169
  *
170
+ * @aspType bool?
170
171
  * @default null
171
172
  */
172
173
  isLocked?: boolean;
@@ -154,6 +154,7 @@ export declare class Rule extends ChildProperty<Rule> {
154
154
  /**
155
155
  * Specifies whether rule is locked or not.
156
156
  *
157
+ * @aspType bool?
157
158
  * @default null
158
159
  */
159
160
  isLocked: boolean;
@@ -533,7 +533,15 @@ var QueryBuilder = /** @class */ (function (_super) {
533
533
  targetValue = document.getElementById(forIdValue).getAttribute('value');
534
534
  }
535
535
  else if (this.enableSeparateConnector) {
536
- targetValue = target.textContent;
536
+ if (target.classList.contains('e-btngroup-or-lbl')) {
537
+ targetValue = 'or';
538
+ }
539
+ else if (target.classList.contains('e-btngroup-and-lbl')) {
540
+ targetValue = 'and';
541
+ }
542
+ else {
543
+ targetValue = target.textContent;
544
+ }
537
545
  }
538
546
  groupID = element.id.replace(this.element.id + '_', '');
539
547
  var group = this.getGroup(groupID);
@@ -3469,6 +3477,9 @@ var QueryBuilder = /** @class */ (function (_super) {
3469
3477
  (rule.type === 'string' ? textboxValue.split(',').map(function (val) { return val.trim(); }) :
3470
3478
  textboxValue.split(',').map(Number)) : [];
3471
3479
  }
3480
+ else {
3481
+ rule.value = textboxValue;
3482
+ }
3472
3483
  break;
3473
3484
  case 'dropdownlist':
3474
3485
  rule.value = getComponent(element, controlName).value;
@@ -4796,7 +4807,9 @@ var QueryBuilder = /** @class */ (function (_super) {
4796
4807
  EventHandler.add(wrapper, 'focusout', this.focusEventHandler, this);
4797
4808
  EventHandler.add(wrapper, 'focusin', this.focusEventHandler, this);
4798
4809
  EventHandler.add(this.element, 'keydown', this.keyBoardHandler, this);
4799
- EventHandler.add(document, 'keydown', this.keyBoardHandler, this);
4810
+ if (this.allowDragAndDrop) {
4811
+ EventHandler.add(document, 'keydown', this.keyBoardHandler, this);
4812
+ }
4800
4813
  window.addEventListener('resize', this.windowResizeHandler.bind(this));
4801
4814
  };
4802
4815
  QueryBuilder.prototype.unWireEvents = function () {
@@ -5167,6 +5180,10 @@ var QueryBuilder = /** @class */ (function (_super) {
5167
5180
  var orGroup = groupElem.parentElement.querySelectorAll('.e-btngroup-or');
5168
5181
  andElem = andGroup[andGroup.length - (1 + index)];
5169
5182
  orElem = orGroup[orGroup.length - (1 + index)];
5183
+ if (this.isImportRules) {
5184
+ andElem = groupElem.parentElement.querySelector('.e-btn-group.e-multi-connector .e-btngroup-and');
5185
+ orElem = groupElem.parentElement.querySelector('.e-btn-group.e-multi-connector .e-btngroup-or');
5186
+ }
5170
5187
  element = andGroup[andGroup.length - (1 + index)];
5171
5188
  if (element && element.parentElement && element.parentElement.style.display === 'none') {
5172
5189
  index++;
@@ -5886,6 +5903,9 @@ var QueryBuilder = /** @class */ (function (_super) {
5886
5903
  var tglBtnElem = parentElem.querySelector('.e-qb-toggle');
5887
5904
  if (rule.not) {
5888
5905
  addClass([tglBtnElem], 'e-active-toggle');
5906
+ if (this.enableSeparateConnector) {
5907
+ getComponent(tglBtnElem.querySelector('.e-checkbox'), 'checkbox').checked = rule.not;
5908
+ }
5889
5909
  }
5890
5910
  else {
5891
5911
  removeClass([tglBtnElem], 'e-active-toggle');