@syncfusion/ej2-querybuilder 24.2.3 → 24.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 +15 -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 +16 -3
- package/dist/es6/ej2-querybuilder.es2015.js.map +1 -1
- package/dist/es6/ej2-querybuilder.es5.js +16 -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 +11 -11
- package/src/query-builder/query-builder-model.d.ts +1 -1
- package/src/query-builder/query-builder.js +16 -3
- package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -63
- package/.github/PULL_REQUEST_TEMPLATE/feature.md +0 -39
|
@@ -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;
|
|
@@ -3009,6 +3016,12 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
|
|
|
3009
3016
|
if (this.portals && this.portals.length) {
|
|
3010
3017
|
this.clearQBTemplate();
|
|
3011
3018
|
}
|
|
3019
|
+
popupElement = document.querySelectorAll('.qb-dropdownlist');
|
|
3020
|
+
if (popupElement) {
|
|
3021
|
+
for (i = 0; i < popupElement.length; i++) {
|
|
3022
|
+
popupElement[i].remove();
|
|
3023
|
+
}
|
|
3024
|
+
}
|
|
3012
3025
|
classList(this.element, [], ['e-rtl', 'e-responsive', 'e-device']);
|
|
3013
3026
|
this.isDestroy = false;
|
|
3014
3027
|
};
|