@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.
- package/CHANGELOG.md +13 -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/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 24.2.
|
|
3
|
+
* version : 24.2.5
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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@24.
|
|
3
|
+
"_id": "@syncfusion/ej2-querybuilder@24.2.3",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-MK1U0mgSzBGYV3HwEgBoRyoc2bcJzFFTHpogH3ih8WW1lJtiup/2bG6j9CyOp6m+J+R65DwmRgE3wSXUBPd89Q==",
|
|
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.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-24.2.3.tgz",
|
|
27
|
+
"_shasum": "90c82970d768eac82447c70470960eeccd572862",
|
|
28
28
|
"_spec": "@syncfusion/ej2-querybuilder@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
},
|
|
33
33
|
"bundleDependencies": false,
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@syncfusion/ej2-base": "~24.2.
|
|
36
|
-
"@syncfusion/ej2-buttons": "~24.2.
|
|
37
|
-
"@syncfusion/ej2-calendars": "~24.2.
|
|
38
|
-
"@syncfusion/ej2-dropdowns": "~24.2.
|
|
39
|
-
"@syncfusion/ej2-inputs": "~24.2.
|
|
40
|
-
"@syncfusion/ej2-splitbuttons": "~24.2.
|
|
35
|
+
"@syncfusion/ej2-base": "~24.2.5",
|
|
36
|
+
"@syncfusion/ej2-buttons": "~24.2.5",
|
|
37
|
+
"@syncfusion/ej2-calendars": "~24.2.5",
|
|
38
|
+
"@syncfusion/ej2-dropdowns": "~24.2.5",
|
|
39
|
+
"@syncfusion/ej2-inputs": "~24.2.5",
|
|
40
|
+
"@syncfusion/ej2-splitbuttons": "~24.2.5"
|
|
41
41
|
},
|
|
42
42
|
"deprecated": false,
|
|
43
43
|
"description": "Essential JS 2 QueryBuilder",
|
|
@@ -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": "24.2.
|
|
69
|
+
"version": "24.2.5",
|
|
70
70
|
"sideEffects": false,
|
|
71
71
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
72
72
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, INotifyPropertyChanged, NotifyPropertyChanges, getComponent, MouseEventArgs, Browser, compile, append } from '@syncfusion/ej2-base';import { Property, ChildProperty, Complex, L10n, closest, extend, isNullOrUndefined, Collection, cldrData } from '@syncfusion/ej2-base';import { getInstance, addClass, removeClass, rippleEffect, detach, classList } from '@syncfusion/ej2-base';import { Internationalization, DateFormatOptions, KeyboardEventArgs, getUniqueID, select } from '@syncfusion/ej2-base';import { Button, CheckBox, RadioButton, ChangeEventArgs as ButtonChangeEventArgs, RadioButtonModel } from '@syncfusion/ej2-buttons';import { DropDownList, ChangeEventArgs as DropDownChangeEventArgs, FieldSettingsModel, CheckBoxSelection, DropDownTreeModel, DropDownTree } from '@syncfusion/ej2-dropdowns';import { MultiSelect, MultiSelectChangeEventArgs, PopupEventArgs, MultiSelectModel, DropDownListModel } from '@syncfusion/ej2-dropdowns';import { EmitType, Event, EventHandler, getValue, Animation, BaseEventArgs } from '@syncfusion/ej2-base';import { Query, Predicate, DataManager, Deferred } from '@syncfusion/ej2-data';import { TextBox, NumericTextBox, InputEventArgs, ChangeEventArgs as InputChangeEventArgs } from '@syncfusion/ej2-inputs';import { TextBoxModel, NumericTextBoxModel } from '@syncfusion/ej2-inputs';import { DatePicker, ChangeEventArgs as CalendarChangeEventArgs, DatePickerModel } from '@syncfusion/ej2-calendars';import { DropDownButton, ItemModel, MenuEventArgs } from '@syncfusion/ej2-splitbuttons';import { Tooltip, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import { compile as templateCompiler } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Component, INotifyPropertyChanged, NotifyPropertyChanges, getComponent, MouseEventArgs, Browser, compile, append } from '@syncfusion/ej2-base';import { Property, ChildProperty, Complex, L10n, closest, extend, isNullOrUndefined, Collection, cldrData } from '@syncfusion/ej2-base';import { getInstance, addClass, removeClass, rippleEffect, detach, classList } from '@syncfusion/ej2-base';import { Internationalization, DateFormatOptions, KeyboardEventArgs, getUniqueID, select } from '@syncfusion/ej2-base';import { Button, CheckBox, RadioButton, ChangeEventArgs as ButtonChangeEventArgs, RadioButtonModel } from '@syncfusion/ej2-buttons';import { DropDownList, ChangeEventArgs as DropDownChangeEventArgs, FieldSettingsModel, CheckBoxSelection, DropDownTreeModel, DropDownTree } from '@syncfusion/ej2-dropdowns';import { MultiSelect, MultiSelectChangeEventArgs, PopupEventArgs, MultiSelectModel, DropDownListModel } from '@syncfusion/ej2-dropdowns';import { EmitType, Event, EventHandler, getValue, Animation, BaseEventArgs } from '@syncfusion/ej2-base';import { Query, Predicate, DataManager, Deferred } from '@syncfusion/ej2-data';import { TextBox, NumericTextBox, InputEventArgs, ChangeEventArgs as InputChangeEventArgs } from '@syncfusion/ej2-inputs';import { TextBoxModel, NumericTextBoxModel } from '@syncfusion/ej2-inputs';import { DatePicker, ChangeEventArgs as CalendarChangeEventArgs, DatePickerModel } from '@syncfusion/ej2-calendars';import { DropDownButton, ItemModel, MenuEventArgs } from '@syncfusion/ej2-splitbuttons';import { Tooltip, createSpinner, showSpinner, hideSpinner, TooltipEventArgs } from '@syncfusion/ej2-popups';import { compile as templateCompiler } from '@syncfusion/ej2-base';
|
|
2
2
|
import {TemplateColumn,Validation,FormatObject,ActionEventArgs,ChangeEventArgs,RuleChangeEventArgs,FieldMode,DisplayMode,SortDirection} from "./query-builder";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -704,7 +704,8 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
704
704
|
dataSource: this.columns,
|
|
705
705
|
fields: this.fields, placeholder: this.l10n.getConstant('SelectField'),
|
|
706
706
|
popupHeight: ((this.columns.length > 5) ? height : 'auto'), close: this.fieldClose.bind(this, ruleElem.id + '_filterkey'),
|
|
707
|
-
change: this.changeField.bind(this), value: rule ? ddlValue : null, open: this.popupOpen.bind(this, true)
|
|
707
|
+
change: this.changeField.bind(this), value: rule ? ddlValue : null, open: this.popupOpen.bind(this, true),
|
|
708
|
+
cssClass: 'qb-dropdownlist'
|
|
708
709
|
};
|
|
709
710
|
if (this.fieldModel) {
|
|
710
711
|
ddlField = __assign({}, ddlField, this.fieldModel);
|
|
@@ -831,9 +832,14 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
831
832
|
}
|
|
832
833
|
};
|
|
833
834
|
QueryBuilder.prototype.renderToolTip = function (element) {
|
|
834
|
-
var tooltip = new Tooltip({ content: this.l10n.getConstant('ValidationMessage'),
|
|
835
|
+
var tooltip = new Tooltip({ content: this.l10n.getConstant('ValidationMessage'), isSticky: true,
|
|
835
836
|
position: 'BottomCenter', cssClass: 'e-querybuilder-error', afterClose: function () {
|
|
836
837
|
tooltip.destroy();
|
|
838
|
+
}, beforeOpen: function (args) {
|
|
839
|
+
var tooltipCloseElement = args.element.querySelector('.e-tooltip-close');
|
|
840
|
+
if (tooltipCloseElement) {
|
|
841
|
+
tooltipCloseElement.style.display = 'none';
|
|
842
|
+
}
|
|
837
843
|
} });
|
|
838
844
|
tooltip.appendTo(element);
|
|
839
845
|
tooltip.open(element);
|
|
@@ -887,7 +893,7 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
887
893
|
}
|
|
888
894
|
fieldElem = tempElem.querySelector('.e-rule-operator .e-control');
|
|
889
895
|
if (!rule.rules[index].operator) {
|
|
890
|
-
if (fieldElem.parentElement.className.indexOf('e-tooltip') < 0) {
|
|
896
|
+
if (fieldElem.parentElement.className.indexOf('e-tooltip') < 0 && fieldElem.className.indexOf('e-tooltip') < 0) {
|
|
891
897
|
this.renderToolTip(fieldElem.parentElement);
|
|
892
898
|
}
|
|
893
899
|
isValid = false;
|
|
@@ -2972,6 +2978,7 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
2972
2978
|
var i;
|
|
2973
2979
|
var len;
|
|
2974
2980
|
var tooltip;
|
|
2981
|
+
var popupElement;
|
|
2975
2982
|
_super.prototype.destroy.call(this);
|
|
2976
2983
|
element = this.element.querySelectorAll('.e-addrulegroup');
|
|
2977
2984
|
len = element.length;
|
|
@@ -2979,6 +2986,12 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
2979
2986
|
getComponent(element[i], 'dropdown-btn').destroy();
|
|
2980
2987
|
detach(element[i]);
|
|
2981
2988
|
}
|
|
2989
|
+
popupElement = document.querySelectorAll('.qb-dropdownlist');
|
|
2990
|
+
if (popupElement) {
|
|
2991
|
+
for (i = 0; i < popupElement.length; i++) {
|
|
2992
|
+
popupElement[i].remove();
|
|
2993
|
+
}
|
|
2994
|
+
}
|
|
2982
2995
|
tooltip = this.element.querySelectorAll('.e-rule-filter .e-control.e-tooltip');
|
|
2983
2996
|
for (i = 0; i < tooltip.length; i++) {
|
|
2984
2997
|
getComponent(tooltip[i], 'tooltip').destroy();
|