@syncfusion/ej2-querybuilder 33.2.7 → 34.1.29

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.
Files changed (289) hide show
  1. package/dist/ej2-querybuilder.min.js +2 -2
  2. package/dist/ej2-querybuilder.umd.min.js +2 -2
  3. package/dist/ej2-querybuilder.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-querybuilder.es2015.js +46 -2
  5. package/dist/es6/ej2-querybuilder.es2015.js.map +1 -1
  6. package/dist/es6/ej2-querybuilder.es5.js +48 -2
  7. package/dist/es6/ej2-querybuilder.es5.js.map +1 -1
  8. package/dist/global/ej2-querybuilder.min.js +2 -2
  9. package/dist/global/ej2-querybuilder.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +7 -7
  12. package/src/query-builder/query-builder.d.ts +2 -0
  13. package/src/query-builder/query-builder.js +48 -2
  14. package/styles/bds-lite.css +0 -248
  15. package/styles/bds-lite.scss +1 -12
  16. package/styles/bds.css +0 -256
  17. package/styles/bds.scss +2 -13
  18. package/styles/bootstrap-dark-lite.css +0 -128
  19. package/styles/bootstrap-dark-lite.scss +1 -12
  20. package/styles/bootstrap-dark.css +0 -128
  21. package/styles/bootstrap-dark.scss +2 -13
  22. package/styles/bootstrap-lite.css +0 -121
  23. package/styles/bootstrap-lite.scss +1 -12
  24. package/styles/bootstrap.css +0 -121
  25. package/styles/bootstrap.scss +2 -13
  26. package/styles/bootstrap4-lite.css +0 -183
  27. package/styles/bootstrap4-lite.scss +1 -12
  28. package/styles/bootstrap4.css +0 -183
  29. package/styles/bootstrap4.scss +2 -13
  30. package/styles/bootstrap5-dark-lite.css +0 -173
  31. package/styles/bootstrap5-dark-lite.scss +1 -12
  32. package/styles/bootstrap5-dark.css +0 -173
  33. package/styles/bootstrap5-dark.scss +2 -13
  34. package/styles/bootstrap5-lite.css +0 -173
  35. package/styles/bootstrap5-lite.scss +1 -13
  36. package/styles/bootstrap5.3-lite.css +0 -341
  37. package/styles/bootstrap5.3-lite.scss +1 -13
  38. package/styles/bootstrap5.3.css +0 -509
  39. package/styles/bootstrap5.3.scss +2 -14
  40. package/styles/bootstrap5.css +0 -173
  41. package/styles/bootstrap5.scss +2 -14
  42. package/styles/fabric-dark-lite.css +0 -98
  43. package/styles/fabric-dark-lite.scss +1 -13
  44. package/styles/fabric-dark.css +0 -98
  45. package/styles/fabric-dark.scss +2 -14
  46. package/styles/fabric-lite.css +0 -93
  47. package/styles/fabric-lite.scss +1 -13
  48. package/styles/fabric.css +0 -93
  49. package/styles/fabric.scss +2 -14
  50. package/styles/fluent-dark-lite.css +0 -162
  51. package/styles/fluent-dark-lite.scss +1 -13
  52. package/styles/fluent-dark.css +0 -162
  53. package/styles/fluent-dark.scss +2 -14
  54. package/styles/fluent-lite.css +0 -162
  55. package/styles/fluent-lite.scss +1 -13
  56. package/styles/fluent.css +0 -162
  57. package/styles/fluent.scss +2 -14
  58. package/styles/fluent2-lite.css +0 -644
  59. package/styles/fluent2-lite.scss +1 -13
  60. package/styles/fluent2.css +0 -816
  61. package/styles/fluent2.scss +2 -14
  62. package/styles/highcontrast-light-lite.css +0 -187
  63. package/styles/highcontrast-light-lite.scss +1 -13
  64. package/styles/highcontrast-light.css +0 -187
  65. package/styles/highcontrast-light.scss +2 -14
  66. package/styles/highcontrast-lite.css +0 -194
  67. package/styles/highcontrast-lite.scss +1 -13
  68. package/styles/highcontrast.css +0 -194
  69. package/styles/highcontrast.scss +2 -14
  70. package/styles/material-dark-lite.css +0 -139
  71. package/styles/material-dark-lite.scss +1 -13
  72. package/styles/material-dark.css +0 -139
  73. package/styles/material-dark.scss +2 -14
  74. package/styles/material-lite.css +0 -152
  75. package/styles/material-lite.scss +1 -12
  76. package/styles/material.css +0 -152
  77. package/styles/material.scss +2 -13
  78. package/styles/material3-dark-lite.css +0 -642
  79. package/styles/material3-dark-lite.scss +1 -13
  80. package/styles/material3-dark.css +0 -806
  81. package/styles/material3-dark.scss +2 -14
  82. package/styles/material3-lite.css +0 -646
  83. package/styles/material3-lite.scss +1 -13
  84. package/styles/material3.css +0 -814
  85. package/styles/material3.scss +2 -14
  86. package/styles/query-builder/_all.scss +2 -2
  87. package/styles/query-builder/_bds-definition.scss +2 -2
  88. package/styles/query-builder/_bigger.scss +13 -2
  89. package/styles/query-builder/_bootstrap-dark-definition.scss +2 -2
  90. package/styles/query-builder/_bootstrap-definition.scss +2 -2
  91. package/styles/query-builder/_bootstrap4-definition.scss +2 -2
  92. package/styles/query-builder/_bootstrap5-dark-definition.scss +2 -2
  93. package/styles/query-builder/_bootstrap5-definition.scss +2 -2
  94. package/styles/query-builder/_bootstrap5.3-definition.scss +2 -2
  95. package/styles/query-builder/_fabric-dark-definition.scss +2 -2
  96. package/styles/query-builder/_fabric-definition.scss +2 -2
  97. package/styles/query-builder/_fluent-dark-definition.scss +2 -2
  98. package/styles/query-builder/_fluent-definition.scss +2 -2
  99. package/styles/query-builder/_fluent2-definition.scss +2 -2
  100. package/styles/query-builder/_highcontrast-definition.scss +2 -2
  101. package/styles/query-builder/_highcontrast-light-definition.scss +2 -2
  102. package/styles/query-builder/_layout.scss +2 -11
  103. package/styles/query-builder/_material-dark-definition.scss +2 -2
  104. package/styles/query-builder/_material-definition.scss +2 -2
  105. package/styles/query-builder/_material3-dark-definition.scss +2 -2
  106. package/styles/query-builder/_material3-definition.scss +2 -2
  107. package/styles/query-builder/_tailwind-dark-definition.scss +2 -2
  108. package/styles/query-builder/_tailwind-definition.scss +2 -2
  109. package/styles/query-builder/_tailwind3-definition.scss +2 -2
  110. package/styles/query-builder/_theme.scss +1 -1
  111. package/styles/query-builder/_variables.scss +2 -0
  112. package/styles/query-builder/bds.css +0 -256
  113. package/styles/query-builder/bds.scss +2 -14
  114. package/styles/query-builder/bootstrap-dark.css +0 -128
  115. package/styles/query-builder/bootstrap-dark.scss +2 -14
  116. package/styles/query-builder/bootstrap.css +0 -121
  117. package/styles/query-builder/bootstrap.scss +2 -14
  118. package/styles/query-builder/bootstrap4.css +0 -183
  119. package/styles/query-builder/bootstrap4.scss +2 -14
  120. package/styles/query-builder/bootstrap5-dark.css +0 -173
  121. package/styles/query-builder/bootstrap5-dark.scss +2 -14
  122. package/styles/query-builder/bootstrap5.3.css +0 -509
  123. package/styles/query-builder/bootstrap5.3.scss +2 -14
  124. package/styles/query-builder/bootstrap5.css +0 -173
  125. package/styles/query-builder/bootstrap5.scss +2 -14
  126. package/styles/query-builder/fabric-dark.css +0 -98
  127. package/styles/query-builder/fabric-dark.scss +2 -14
  128. package/styles/query-builder/fabric.css +0 -93
  129. package/styles/query-builder/fabric.scss +2 -14
  130. package/styles/query-builder/fluent-dark.css +0 -162
  131. package/styles/query-builder/fluent-dark.scss +2 -14
  132. package/styles/query-builder/fluent.css +0 -162
  133. package/styles/query-builder/fluent.scss +2 -14
  134. package/styles/query-builder/fluent2.css +0 -816
  135. package/styles/query-builder/fluent2.scss +2 -14
  136. package/styles/query-builder/highcontrast-light.css +0 -187
  137. package/styles/query-builder/highcontrast-light.scss +2 -14
  138. package/styles/query-builder/highcontrast.css +0 -194
  139. package/styles/query-builder/highcontrast.scss +2 -14
  140. package/styles/query-builder/icons/_bds.scss +1 -1
  141. package/styles/query-builder/icons/_bootstrap-dark.scss +1 -1
  142. package/styles/query-builder/icons/_bootstrap.scss +1 -1
  143. package/styles/query-builder/icons/_bootstrap4.scss +1 -1
  144. package/styles/query-builder/icons/_bootstrap5.3.scss +1 -1
  145. package/styles/query-builder/icons/_bootstrap5.scss +1 -1
  146. package/styles/query-builder/icons/_fabric-dark.scss +1 -1
  147. package/styles/query-builder/icons/_fabric.scss +1 -1
  148. package/styles/query-builder/icons/_fluent.scss +1 -1
  149. package/styles/query-builder/icons/_fluent2.scss +1 -1
  150. package/styles/query-builder/icons/_fusionnew.scss +1 -1
  151. package/styles/query-builder/icons/_highcontrast-light.scss +1 -1
  152. package/styles/query-builder/icons/_highcontrast.scss +1 -1
  153. package/styles/query-builder/icons/_material-dark.scss +1 -1
  154. package/styles/query-builder/icons/_material.scss +1 -1
  155. package/styles/query-builder/icons/_material3.scss +1 -1
  156. package/styles/query-builder/icons/_tailwind-dark.scss +1 -1
  157. package/styles/query-builder/icons/_tailwind.scss +1 -1
  158. package/styles/query-builder/icons/_tailwind3.scss +1 -1
  159. package/styles/query-builder/material-dark.css +0 -139
  160. package/styles/query-builder/material-dark.scss +2 -14
  161. package/styles/query-builder/material.css +0 -152
  162. package/styles/query-builder/material.scss +2 -14
  163. package/styles/query-builder/material3-dark.css +0 -806
  164. package/styles/query-builder/material3-dark.scss +2 -14
  165. package/styles/query-builder/material3.css +0 -814
  166. package/styles/query-builder/material3.scss +2 -14
  167. package/styles/query-builder/tailwind-dark.css +0 -139
  168. package/styles/query-builder/tailwind-dark.scss +2 -14
  169. package/styles/query-builder/tailwind.css +0 -139
  170. package/styles/query-builder/tailwind.scss +2 -14
  171. package/styles/query-builder/tailwind3.css +0 -465
  172. package/styles/query-builder/tailwind3.scss +2 -14
  173. package/styles/tailwind-dark-lite.css +0 -139
  174. package/styles/tailwind-dark-lite.scss +1 -13
  175. package/styles/tailwind-dark.css +0 -139
  176. package/styles/tailwind-dark.scss +2 -14
  177. package/styles/tailwind-lite.css +0 -139
  178. package/styles/tailwind-lite.scss +1 -13
  179. package/styles/tailwind.css +0 -139
  180. package/styles/tailwind.scss +2 -14
  181. package/styles/tailwind3-lite.css +0 -317
  182. package/styles/tailwind3-lite.scss +1 -13
  183. package/styles/tailwind3.css +0 -465
  184. package/styles/tailwind3.scss +2 -14
  185. package/styles/query-builder/_all.bds.scss +0 -2
  186. package/styles/query-builder/_all.bootstrap-dark.scss +0 -2
  187. package/styles/query-builder/_all.bootstrap.scss +0 -2
  188. package/styles/query-builder/_all.bootstrap4.scss +0 -2
  189. package/styles/query-builder/_all.bootstrap5-dark.scss +0 -2
  190. package/styles/query-builder/_all.bootstrap5.3.scss +0 -2
  191. package/styles/query-builder/_all.bootstrap5.scss +0 -2
  192. package/styles/query-builder/_all.fabric-dark.scss +0 -2
  193. package/styles/query-builder/_all.fabric.scss +0 -2
  194. package/styles/query-builder/_all.fluent-dark.scss +0 -2
  195. package/styles/query-builder/_all.fluent.scss +0 -2
  196. package/styles/query-builder/_all.fluent2.scss +0 -2
  197. package/styles/query-builder/_all.highcontrast-light.scss +0 -2
  198. package/styles/query-builder/_all.highcontrast.scss +0 -2
  199. package/styles/query-builder/_all.material-dark.scss +0 -2
  200. package/styles/query-builder/_all.material.scss +0 -2
  201. package/styles/query-builder/_all.material3-dark.scss +0 -2
  202. package/styles/query-builder/_all.material3.scss +0 -2
  203. package/styles/query-builder/_all.tailwind-dark.scss +0 -2
  204. package/styles/query-builder/_all.tailwind.scss +0 -2
  205. package/styles/query-builder/_all.tailwind3.scss +0 -2
  206. package/styles/query-builder/_bigger.bds.scss +0 -4
  207. package/styles/query-builder/_bigger.bootstrap-dark.scss +0 -4
  208. package/styles/query-builder/_bigger.bootstrap.scss +0 -4
  209. package/styles/query-builder/_bigger.bootstrap4.scss +0 -4
  210. package/styles/query-builder/_bigger.bootstrap5-dark.scss +0 -4
  211. package/styles/query-builder/_bigger.bootstrap5.3.scss +0 -4
  212. package/styles/query-builder/_bigger.bootstrap5.scss +0 -4
  213. package/styles/query-builder/_bigger.fabric-dark.scss +0 -4
  214. package/styles/query-builder/_bigger.fabric.scss +0 -4
  215. package/styles/query-builder/_bigger.fluent-dark.scss +0 -4
  216. package/styles/query-builder/_bigger.fluent.scss +0 -4
  217. package/styles/query-builder/_bigger.fluent2.scss +0 -4
  218. package/styles/query-builder/_bigger.highcontrast-light.scss +0 -4
  219. package/styles/query-builder/_bigger.highcontrast.scss +0 -4
  220. package/styles/query-builder/_bigger.material-dark.scss +0 -4
  221. package/styles/query-builder/_bigger.material.scss +0 -4
  222. package/styles/query-builder/_bigger.material3-dark.scss +0 -4
  223. package/styles/query-builder/_bigger.material3.scss +0 -4
  224. package/styles/query-builder/_bigger.tailwind-dark.scss +0 -4
  225. package/styles/query-builder/_bigger.tailwind.scss +0 -4
  226. package/styles/query-builder/_bigger.tailwind3.scss +0 -4
  227. package/styles/query-builder/_layout.bds.scss +0 -3
  228. package/styles/query-builder/_layout.bootstrap-dark.scss +0 -3
  229. package/styles/query-builder/_layout.bootstrap.scss +0 -3
  230. package/styles/query-builder/_layout.bootstrap4.scss +0 -3
  231. package/styles/query-builder/_layout.bootstrap5-dark.scss +0 -3
  232. package/styles/query-builder/_layout.bootstrap5.3.scss +0 -3
  233. package/styles/query-builder/_layout.bootstrap5.scss +0 -3
  234. package/styles/query-builder/_layout.fabric-dark.scss +0 -3
  235. package/styles/query-builder/_layout.fabric.scss +0 -3
  236. package/styles/query-builder/_layout.fluent-dark.scss +0 -3
  237. package/styles/query-builder/_layout.fluent.scss +0 -3
  238. package/styles/query-builder/_layout.fluent2.scss +0 -3
  239. package/styles/query-builder/_layout.highcontrast-light.scss +0 -3
  240. package/styles/query-builder/_layout.highcontrast.scss +0 -3
  241. package/styles/query-builder/_layout.material-dark.scss +0 -3
  242. package/styles/query-builder/_layout.material.scss +0 -3
  243. package/styles/query-builder/_layout.material3-dark.scss +0 -3
  244. package/styles/query-builder/_layout.material3.scss +0 -3
  245. package/styles/query-builder/_layout.tailwind-dark.scss +0 -3
  246. package/styles/query-builder/_layout.tailwind.scss +0 -3
  247. package/styles/query-builder/_layout.tailwind3.scss +0 -3
  248. package/styles/query-builder/_theme-variables.bds.scss +0 -1
  249. package/styles/query-builder/_theme-variables.bootstrap-dark.scss +0 -1
  250. package/styles/query-builder/_theme-variables.bootstrap.scss +0 -1
  251. package/styles/query-builder/_theme-variables.bootstrap4.scss +0 -1
  252. package/styles/query-builder/_theme-variables.bootstrap5-dark.scss +0 -1
  253. package/styles/query-builder/_theme-variables.bootstrap5.3.scss +0 -1
  254. package/styles/query-builder/_theme-variables.bootstrap5.scss +0 -1
  255. package/styles/query-builder/_theme-variables.fabric-dark.scss +0 -1
  256. package/styles/query-builder/_theme-variables.fabric.scss +0 -1
  257. package/styles/query-builder/_theme-variables.fluent-dark.scss +0 -1
  258. package/styles/query-builder/_theme-variables.fluent.scss +0 -1
  259. package/styles/query-builder/_theme-variables.fluent2.scss +0 -1
  260. package/styles/query-builder/_theme-variables.highcontrast-light.scss +0 -1
  261. package/styles/query-builder/_theme-variables.highcontrast.scss +0 -1
  262. package/styles/query-builder/_theme-variables.material-dark.scss +0 -1
  263. package/styles/query-builder/_theme-variables.material.scss +0 -1
  264. package/styles/query-builder/_theme-variables.material3-dark.scss +0 -1
  265. package/styles/query-builder/_theme-variables.material3.scss +0 -1
  266. package/styles/query-builder/_theme-variables.tailwind-dark.scss +0 -1
  267. package/styles/query-builder/_theme-variables.tailwind.scss +0 -1
  268. package/styles/query-builder/_theme-variables.tailwind3.scss +0 -1
  269. package/styles/query-builder/_theme.bds.scss +0 -4
  270. package/styles/query-builder/_theme.bootstrap-dark.scss +0 -4
  271. package/styles/query-builder/_theme.bootstrap.scss +0 -4
  272. package/styles/query-builder/_theme.bootstrap4.scss +0 -4
  273. package/styles/query-builder/_theme.bootstrap5-dark.scss +0 -4
  274. package/styles/query-builder/_theme.bootstrap5.3.scss +0 -4
  275. package/styles/query-builder/_theme.bootstrap5.scss +0 -4
  276. package/styles/query-builder/_theme.fabric-dark.scss +0 -4
  277. package/styles/query-builder/_theme.fabric.scss +0 -4
  278. package/styles/query-builder/_theme.fluent-dark.scss +0 -4
  279. package/styles/query-builder/_theme.fluent.scss +0 -4
  280. package/styles/query-builder/_theme.fluent2.scss +0 -4
  281. package/styles/query-builder/_theme.highcontrast-light.scss +0 -4
  282. package/styles/query-builder/_theme.highcontrast.scss +0 -4
  283. package/styles/query-builder/_theme.material-dark.scss +0 -4
  284. package/styles/query-builder/_theme.material.scss +0 -4
  285. package/styles/query-builder/_theme.material3-dark.scss +0 -4
  286. package/styles/query-builder/_theme.material3.scss +0 -4
  287. package/styles/query-builder/_theme.tailwind-dark.scss +0 -4
  288. package/styles/query-builder/_theme.tailwind.scss +0 -4
  289. package/styles/query-builder/_theme.tailwind3.scss +0 -4
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 33.2.7
3
+ * version : 34.1.29
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. 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": "33.2.7",
3
+ "version": "34.1.29",
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": "~33.2.3",
12
- "@syncfusion/ej2-buttons": "~33.2.5",
13
- "@syncfusion/ej2-calendars": "~33.2.7",
14
- "@syncfusion/ej2-dropdowns": "~33.2.7",
15
- "@syncfusion/ej2-inputs": "~33.2.5",
16
- "@syncfusion/ej2-splitbuttons": "~33.2.6"
11
+ "@syncfusion/ej2-base": "~34.1.29",
12
+ "@syncfusion/ej2-buttons": "~34.1.29",
13
+ "@syncfusion/ej2-calendars": "~34.1.29",
14
+ "@syncfusion/ej2-dropdowns": "~34.1.29",
15
+ "@syncfusion/ej2-inputs": "~34.1.29",
16
+ "@syncfusion/ej2-splitbuttons": "~34.1.29"
17
17
  },
18
18
  "devDependencies": {},
19
19
  "keywords": [
@@ -347,6 +347,7 @@ export declare class QueryBuilder extends Component<HTMLDivElement> implements I
347
347
  private dragElement;
348
348
  private prvtEvtTgrDaD;
349
349
  private isDragEventPrevent;
350
+ private groupConnectorStates;
350
351
  private isValueEmpty;
351
352
  private isPropChange;
352
353
  private isRuleClicked;
@@ -795,6 +796,7 @@ export declare class QueryBuilder extends Component<HTMLDivElement> implements I
795
796
  private deleteRuleSuccessCallBack;
796
797
  private setGroupRules;
797
798
  private keyBoardHandler;
799
+ private restoreGroupConnectorStates;
798
800
  private windowResizeHandler;
799
801
  private clearQBTemplate;
800
802
  private disableRuleCondition;
@@ -217,6 +217,7 @@ var QueryBuilder = /** @class */ (function (_super) {
217
217
  _this.cloneGrpBtnClick = false;
218
218
  _this.isMiddleGroup = false;
219
219
  _this.cloneRuleBtnClick = false;
220
+ _this.groupConnectorStates = {};
220
221
  _this.isValueEmpty = false;
221
222
  _this.isPropChange = false;
222
223
  _this.isRuleClicked = false;
@@ -4866,6 +4867,17 @@ var QueryBuilder = /** @class */ (function (_super) {
4866
4867
  return visualElement;
4867
4868
  };
4868
4869
  QueryBuilder.prototype.dragStartHandler = function (e) {
4870
+ var _this = this;
4871
+ this.groupConnectorStates = {};
4872
+ var allGroupContainers = this.element.querySelectorAll('.e-group-container');
4873
+ allGroupContainers.forEach(function (grpContainer) {
4874
+ if (grpContainer.id !== '') {
4875
+ var groupRule = _this.getGroup(grpContainer);
4876
+ if (groupRule && groupRule.condition) {
4877
+ _this.groupConnectorStates[grpContainer.id] = groupRule.condition.toUpperCase();
4878
+ }
4879
+ }
4880
+ });
4869
4881
  this.draggedRule = e.target;
4870
4882
  this.isDragEventPrevent = false;
4871
4883
  document.body.classList.add('e-prevent-select');
@@ -4953,6 +4965,7 @@ var QueryBuilder = /** @class */ (function (_super) {
4953
4965
  if (this.isDragEventPrevent) {
4954
4966
  return;
4955
4967
  }
4968
+ var dropped = false;
4956
4969
  var targetGroup = closest(e.target, '.e-rule-container');
4957
4970
  if (isNullOrUndefined(targetGroup) && e.target.parentElement &&
4958
4971
  e.target.parentElement.classList.contains('e-btn-group') && this.enableSeparateConnector) {
@@ -5057,6 +5070,7 @@ var QueryBuilder = /** @class */ (function (_super) {
5057
5070
  }
5058
5071
  }
5059
5072
  });
5073
+ dropped = true;
5060
5074
  }
5061
5075
  }
5062
5076
  else if (tgrt.classList.contains('e-rule-list') && tgrt.children.length === 0 && !isPreventelem) {
@@ -5087,6 +5101,7 @@ var QueryBuilder = /** @class */ (function (_super) {
5087
5101
  this.addRules([rule], groupId);
5088
5102
  }
5089
5103
  }
5104
+ dropped = true;
5090
5105
  }
5091
5106
  else if (tgrt.classList.contains('e-rule-list') && tgrt.children[0].classList.contains('e-group-container') && !isPreventelem) {
5092
5107
  var groupElem = closest(tgrt, '.e-group-container');
@@ -5141,6 +5156,7 @@ var QueryBuilder = /** @class */ (function (_super) {
5141
5156
  }
5142
5157
  }
5143
5158
  });
5159
+ dropped = true;
5144
5160
  }
5145
5161
  else if ((closest(e.target, '.e-group-container') || e.target.classList.contains('e-group-container')) && !isPreventelem) {
5146
5162
  var rule = void 0;
@@ -5175,10 +5191,14 @@ var QueryBuilder = /** @class */ (function (_super) {
5175
5191
  }
5176
5192
  }
5177
5193
  }
5194
+ dropped = true;
5178
5195
  }
5179
5196
  if (!isPreventelem) {
5180
5197
  this.trigger('ruleChange', { previousRule: prevRule, rule: this.getValidRules(), type: 'drag-and-drop' });
5181
5198
  }
5199
+ if (!dropped) {
5200
+ this.restoreGroupConnectorStates();
5201
+ }
5182
5202
  this.prvtEvtTgrDaD = false;
5183
5203
  document.body.classList.remove('e-prevent-select');
5184
5204
  var borderLineElem = this.element.querySelectorAll('.e-drag-rule-bottom-line');
@@ -5538,11 +5558,38 @@ var QueryBuilder = /** @class */ (function (_super) {
5538
5558
  if (dragElemnet) {
5539
5559
  remove(dragElemnet);
5540
5560
  }
5561
+ this.restoreGroupConnectorStates();
5541
5562
  if (this.enableSeparateConnector) {
5542
5563
  this.refresh();
5543
5564
  }
5544
5565
  }
5545
5566
  };
5567
+ QueryBuilder.prototype.restoreGroupConnectorStates = function () {
5568
+ var _this = this;
5569
+ var updatedGroupContainers = this.element.querySelectorAll('.e-group-container');
5570
+ updatedGroupContainers.forEach(function (grpContainer) {
5571
+ var groupId = grpContainer.id;
5572
+ if (_this.groupConnectorStates.hasOwnProperty(groupId)) {
5573
+ var savedCondition = _this.groupConnectorStates[groupId];
5574
+ var groupRule = _this.getGroup(grpContainer);
5575
+ if (groupRule) {
5576
+ groupRule.condition = savedCondition.toLowerCase();
5577
+ }
5578
+ var andElem = grpContainer.querySelector('.e-btngroup-and');
5579
+ var orElem = grpContainer.querySelector('.e-btngroup-or');
5580
+ if (andElem && orElem) {
5581
+ if (savedCondition === 'AND') {
5582
+ andElem.checked = true;
5583
+ orElem.checked = false;
5584
+ }
5585
+ else {
5586
+ orElem.checked = true;
5587
+ andElem.checked = false;
5588
+ }
5589
+ }
5590
+ }
5591
+ });
5592
+ };
5546
5593
  QueryBuilder.prototype.windowResizeHandler = function () {
5547
5594
  if (Browser.isDevice || window.innerWidth < 768) {
5548
5595
  this.displayMode = 'Vertical';
@@ -6401,8 +6448,7 @@ var QueryBuilder = /** @class */ (function (_super) {
6401
6448
  if (this.element.querySelectorAll('.e-group-container').length > this.maxGroupCount) {
6402
6449
  return null;
6403
6450
  }
6404
- if (isNullOrUndefined(this.updatedRule) && this.allowDragAndDrop && this.dragElement &&
6405
- this.dragElement.querySelector('.e-rule-list') && this.dragElement.querySelector('.e-rule-list').querySelector('.e-group-container')) {
6451
+ if (isNullOrUndefined(this.updatedRule) && this.allowDragAndDrop && this.dragElement) {
6406
6452
  this.updatedRule = {
6407
6453
  isLocked: ruleColl[i].isLocked, condition: ruleColl[i].condition,
6408
6454
  not: ruleColl[i].not
@@ -2,246 +2,6 @@
2
2
 
3
3
 
4
4
 
5
- /* stylelint-disable */
6
- .e-btn.e-primary:focus {
7
- -webkit-box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05), 0 0 0 4px var(--color-sf-brand-solid-shadow) !important;
8
- box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05), 0 0 0 4px var(--color-sf-brand-solid-shadow) !important;
9
- }
10
-
11
- .e-btn.e-success:focus {
12
- -webkit-box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05), 0 0 0 4px rgba(23, 177, 105, 0.24) !important;
13
- box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05), 0 0 0 4px rgba(23, 177, 105, 0.24) !important;
14
- }
15
-
16
- .e-btn.e-info:focus {
17
- -webkit-box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05), 0 0 0 4px var(--color-sf-brand-solid-shadow) !important;
18
- box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05), 0 0 0 4px var(--color-sf-brand-solid-shadow) !important;
19
- }
20
-
21
- .e-btn.e-warning:focus {
22
- -webkit-box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05), 0 0 0 4px rgba(247, 143, 8, 0.24) !important;
23
- box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05), 0 0 0 4px rgba(247, 143, 8, 0.24) !important;
24
- }
25
-
26
- .e-btn.e-danger:focus {
27
- -webkit-box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05), 0 0 0 4px rgba(240, 68, 55, 0.24) !important;
28
- box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05), 0 0 0 4px rgba(240, 68, 55, 0.24) !important;
29
- }
30
-
31
- .e-btn.e-outline.e-info {
32
- background: transparent !important;
33
- border-color: var(--color-sf-utility-info-border-color) !important;
34
- color: var(--color-sf-utility-info-text) !important;
35
- }
36
-
37
- .e-btn.e-outline.e-info:hover {
38
- background: var(--color-sf-utility-info-bg-color-hover) !important;
39
- border-color: var(--color-sf-utility-info-border-color) !important;
40
- color: var(--color-sf-utility-info-text-hover) !important;
41
- }
42
-
43
- .e-btn.e-outline.e-info:active {
44
- background: var(--color-sf-utility-info-bg-color-pressed) !important;
45
- border-color: var(--color-sf-utility-info-border-color) !important;
46
- color: var(--color-sf-utility-info-text-hover) !important;
47
- }
48
-
49
- .e-btn.e-flat.e-info {
50
- color: var(--color-sf-utility-info-text) !important;
51
- }
52
-
53
- .e-bigger .e-btn,
54
- .e-bigger .e-btn,
55
- .e-bigger .e-css.e-btn,
56
- .e-bigger.e-css.e-btn {
57
- font-size: 14px;
58
- line-height: 1.572em;
59
- padding: 8px 15px;
60
- border-radius: 8px !important;
61
- font-weight: 600;
62
- }
63
-
64
- .e-dropdown-popup {
65
- position: absolute;
66
- border-radius: 8px;
67
- margin-top: 4px;
68
- }
69
- .e-dropdown-popup ul {
70
- border: 1px solid var(--color-sf-border-secondary);
71
- border-radius: 8px;
72
- -webkit-box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.05);
73
- box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.05);
74
- -webkit-box-sizing: border-box;
75
- box-sizing: border-box;
76
- font-size: 14px;
77
- font-weight: 500;
78
- list-style-image: none;
79
- list-style-position: outside;
80
- list-style-type: none;
81
- margin: 0;
82
- min-width: 120px;
83
- overflow: hidden;
84
- padding: 4px 0;
85
- -webkit-user-select: none;
86
- -moz-user-select: none;
87
- -ms-user-select: none;
88
- user-select: none;
89
- white-space: nowrap;
90
- }
91
- .e-dropdown-popup ul .e-item {
92
- cursor: pointer;
93
- display: -webkit-box;
94
- display: -ms-flexbox;
95
- display: flex;
96
- height: 32px;
97
- line-height: 32px;
98
- padding: 0 12px;
99
- margin: 0 6px;
100
- border-radius: 6px;
101
- }
102
- .e-dropdown-popup ul .e-item.e-url {
103
- padding: 0;
104
- }
105
-
106
- .e-ddl.e-control-wrapper .e-ddl-icon::before {
107
- -webkit-transform: rotate(0deg);
108
- transform: rotate(0deg);
109
- -webkit-transition: -webkit-transform 300ms ease;
110
- transition: -webkit-transform 300ms ease;
111
- transition: transform 300ms ease;
112
- transition: transform 300ms ease, -webkit-transform 300ms ease;
113
- }
114
-
115
- .e-ddl.e-control-wrapper.e-icon-anim .e-ddl-icon::before {
116
- -webkit-transform: rotate(180deg);
117
- transform: rotate(180deg);
118
- -webkit-transition: -webkit-transform 300ms ease;
119
- transition: -webkit-transform 300ms ease;
120
- transition: transform 300ms ease;
121
- transition: transform 300ms ease, -webkit-transform 300ms ease;
122
- }
123
-
124
- .e-dropdownbase .e-list-item.e-active.e-hover {
125
- color: var(--color-sf-text-primary);
126
- }
127
-
128
- .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:active,
129
- .e-input-group:not(.e-disabled) .e-control.e-dropdownlist ~ .e-ddl-icon:hover,
130
- .e-input-group:not(.e-disabled) .e-back-icon:active,
131
- .e-input-group:not(.e-disabled) .e-back-icon:hover,
132
- .e-popup.e-ddl .e-input-group:not(.e-disabled) .e-clear-icon:active,
133
- .e-popup.e-ddl .e-input-group:not(.e-disabled) .e-clear-icon:hover {
134
- background: transparent;
135
- }
136
-
137
- .e-input-group .e-ddl-icon:not(:active)::after {
138
- -webkit-animation: none;
139
- animation: none;
140
- }
141
-
142
- .e-ddl.e-popup {
143
- border: 0;
144
- border-radius: 8px;
145
- -webkit-box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.05);
146
- box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.05);
147
- margin-top: 4px;
148
- }
149
-
150
- .e-small .e-ddl.e-popup,
151
- .e-small.e-ddl.e-popup {
152
- border-radius: 4px;
153
- margin-top: 2px;
154
- }
155
-
156
- .e-popup.e-ddl .e-dropdownbase {
157
- min-height: 26px;
158
- padding: 4px 6px;
159
- }
160
-
161
- .e-input-group.e-ddl,
162
- .e-input-group.e-ddl .e-input,
163
- .e-input-group.e-ddl .e-ddl-icon {
164
- background: var(--color-sf-bg-primary);
165
- }
166
-
167
- .e-ddl.e-ddl-device.e-ddl-device-filter .e-input-group:hover:not(.e-disabled):not(.e-float-icon-left),
168
- .e-ddl.e-ddl-device.e-ddl-device-filter .e-input-group.e-control-wrapper:hover:not(.e-disabled):not(.e-float-icon-left) {
169
- border-bottom-width: 0;
170
- }
171
-
172
- .e-ddl.e-popup.e-outline .e-filter-parent {
173
- padding: 4px 8px;
174
- }
175
-
176
- .e-multi-select-wrapper .e-chips-collection .e-chips .e-chips-close.e-icon::before {
177
- line-height: 30px;
178
- top: 0;
179
- }
180
-
181
- .e-multiselect .e-input-group-icon.e-ddl-icon {
182
- border-radius: 0 4px 4px 0;
183
- border-right-width: 0;
184
- }
185
-
186
- .e-multiselect.e-rtl .e-input-group-icon.e-ddl-icon {
187
- border-left-width: 0;
188
- border-radius: 4px 0 0 4px;
189
- border-right-width: 0;
190
- }
191
-
192
- .e-multiselect.e-control-container .e-multi-select-wrapper .e-clear-icon {
193
- height: 32px;
194
- width: 32px;
195
- }
196
-
197
- .e-multi-select-wrapper .e-searcher input[type=text],
198
- .e-multi-select-wrapper .e-multi-searcher input[type=text] {
199
- color: var(--color-sf-text-primary);
200
- height: 100%;
201
- }
202
-
203
- /* stylelint-disable-line no-empty-source */
204
- /* stylelint-disable property-no-vendor-prefix */
205
- @-webkit-keyframes material-spinner-rotate {
206
- 0% {
207
- -webkit-transform: rotate(0);
208
- transform: rotate(0);
209
- }
210
- 100% {
211
- -webkit-transform: rotate(360deg);
212
- transform: rotate(360deg);
213
- }
214
- }
215
- @keyframes material-spinner-rotate {
216
- 0% {
217
- -webkit-transform: rotate(0);
218
- transform: rotate(0);
219
- }
220
- 100% {
221
- -webkit-transform: rotate(360deg);
222
- transform: rotate(360deg);
223
- }
224
- }
225
- @-webkit-keyframes fabric-spinner-rotate {
226
- 0% {
227
- -webkit-transform: rotate(0);
228
- transform: rotate(0);
229
- }
230
- 100% {
231
- -webkit-transform: rotate(360deg);
232
- transform: rotate(360deg);
233
- }
234
- }
235
- @keyframes fabric-spinner-rotate {
236
- 0% {
237
- -webkit-transform: rotate(0);
238
- transform: rotate(0);
239
- }
240
- 100% {
241
- -webkit-transform: rotate(360deg);
242
- transform: rotate(360deg);
243
- }
244
- }
245
5
  .e-query-builder .e-collapse-rule::before {
246
6
  content: "\e80e";
247
7
  }
@@ -249,10 +9,6 @@
249
9
  content: "\e726";
250
10
  }
251
11
 
252
-
253
-
254
-
255
-
256
12
  .e-query-builder {
257
13
  border: 1px solid;
258
14
  border-radius: 4px;
@@ -764,10 +520,6 @@
764
520
  height: 29px;
765
521
  }
766
522
 
767
-
768
-
769
-
770
-
771
523
  .e-query-builder {
772
524
  background: transparent;
773
525
  border-color: var(--color-sf-border-secondary);
@@ -1,14 +1,3 @@
1
- @use 'ej2-buttons/styles/button/bds-definition' as *;
2
- @use 'ej2-buttons/styles/radio-button/bds-definition' as *;
3
- @use 'ej2-splitbuttons/styles/button-group/bds-definition' as *;
4
- @use 'ej2-splitbuttons/styles/drop-down-button/bds-definition' as *;
5
- @use 'ej2-dropdowns/styles/drop-down-list/bds-definition' as *;
6
- @use 'ej2-dropdowns/styles/multi-select/bds-definition' as *;
7
- @use 'ej2-calendars/styles/datepicker/bds-definition' as *;
8
- @use 'ej2-inputs/styles/numerictextbox/bds-definition' as *;
9
- @use 'ej2-inputs/styles/textbox/bds-definition' as *;
10
- @use 'ej2-popups/styles/tooltip/bds-definition' as *;
11
- @use 'ej2-popups/styles/spinner/bds-definition' as *;
12
1
  @use 'query-builder/bds-definition' as *;
13
2
  @use 'query-builder/icons/bds' as *;
14
- @use 'query-builder/all.bds' as *;
3
+ @use 'query-builder/all' as *;