@syncfusion/ej2-querybuilder 24.2.3 → 24.2.5

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.
@@ -695,7 +695,8 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
695
695
  dataSource: this.columns,
696
696
  fields: this.fields, placeholder: this.l10n.getConstant('SelectField'),
697
697
  popupHeight: ((this.columns.length > 5) ? height : 'auto'), close: this.fieldClose.bind(this, ruleElem.id + '_filterkey'),
698
- change: this.changeField.bind(this), value: rule ? ddlValue : null, open: this.popupOpen.bind(this, true)
698
+ change: this.changeField.bind(this), value: rule ? ddlValue : null, open: this.popupOpen.bind(this, true),
699
+ cssClass: 'qb-dropdownlist'
699
700
  };
700
701
  if (this.fieldModel) {
701
702
  ddlField = __assign({}, ddlField, this.fieldModel);
@@ -822,9 +823,14 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
822
823
  }
823
824
  };
824
825
  QueryBuilder.prototype.renderToolTip = function (element) {
825
- var tooltip = new Tooltip({ content: this.l10n.getConstant('ValidationMessage'),
826
+ var tooltip = new Tooltip({ content: this.l10n.getConstant('ValidationMessage'), isSticky: true,
826
827
  position: 'BottomCenter', cssClass: 'e-querybuilder-error', afterClose: function () {
827
828
  tooltip.destroy();
829
+ }, beforeOpen: function (args) {
830
+ var tooltipCloseElement = args.element.querySelector('.e-tooltip-close');
831
+ if (tooltipCloseElement) {
832
+ tooltipCloseElement.style.display = 'none';
833
+ }
828
834
  } });
829
835
  tooltip.appendTo(element);
830
836
  tooltip.open(element);
@@ -878,7 +884,7 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
878
884
  }
879
885
  fieldElem = tempElem.querySelector('.e-rule-operator .e-control');
880
886
  if (!rule.rules[index].operator) {
881
- if (fieldElem.parentElement.className.indexOf('e-tooltip') < 0) {
887
+ if (fieldElem.parentElement.className.indexOf('e-tooltip') < 0 && fieldElem.className.indexOf('e-tooltip') < 0) {
882
888
  this.renderToolTip(fieldElem.parentElement);
883
889
  }
884
890
  isValid = false;
@@ -2963,6 +2969,7 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
2963
2969
  var i;
2964
2970
  var len;
2965
2971
  var tooltip;
2972
+ var popupElement;
2966
2973
  _super.prototype.destroy.call(this);
2967
2974
  element = this.element.querySelectorAll('.e-addrulegroup');
2968
2975
  len = element.length;
@@ -2970,6 +2977,12 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
2970
2977
  getComponent(element[i], 'dropdown-btn').destroy();
2971
2978
  detach(element[i]);
2972
2979
  }
2980
+ popupElement = document.querySelectorAll('.qb-dropdownlist');
2981
+ if (popupElement) {
2982
+ for (i = 0; i < popupElement.length; i++) {
2983
+ popupElement[i].remove();
2984
+ }
2985
+ }
2973
2986
  tooltip = this.element.querySelectorAll('.e-rule-filter .e-control.e-tooltip');
2974
2987
  for (i = 0; i < tooltip.length; i++) {
2975
2988
  getComponent(tooltip[i], 'tooltip').destroy();