@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 24.2.3
3
+ * version : 24.2.8
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.1.46",
3
+ "_id": "@syncfusion/ej2-querybuilder@24.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-2FLXLjmsrKjcidi3o6Kb2KUsnecMNA0XYgoMHZWLQWNTw++EV7pJs3c/HWvLPZ9ySnxCuhFTuYnWb4aKpNQbGQ==",
5
+ "_integrity": "sha512-slR+9GbHZRLfYLMfX3Au2WxkODo08FCmAbVjV3f6wQKkIx/PumRo28h3LNLmPGcr/0XcBRM9NBDMyX2rY6KPpA==",
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.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-24.1.46.tgz",
27
- "_shasum": "f7431d502c7180b4973b8aaddf28d6b7450ac529",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-24.2.5.tgz",
27
+ "_shasum": "023d8ee8978d0b218367d9fc976191f17d70800d",
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.3",
36
- "@syncfusion/ej2-buttons": "~24.2.3",
37
- "@syncfusion/ej2-calendars": "~24.2.3",
38
- "@syncfusion/ej2-dropdowns": "~24.2.3",
39
- "@syncfusion/ej2-inputs": "~24.2.3",
40
- "@syncfusion/ej2-splitbuttons": "~24.2.3"
35
+ "@syncfusion/ej2-base": "~24.2.7",
36
+ "@syncfusion/ej2-buttons": "~24.2.7",
37
+ "@syncfusion/ej2-calendars": "~24.2.8",
38
+ "@syncfusion/ej2-dropdowns": "~24.2.8",
39
+ "@syncfusion/ej2-inputs": "~24.2.7",
40
+ "@syncfusion/ej2-splitbuttons": "~24.2.7"
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.3",
69
+ "version": "24.2.8",
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;
@@ -3018,6 +3025,12 @@ var QueryBuilder = /** @class */ (function (_super) {
3018
3025
  if (this.portals && this.portals.length) {
3019
3026
  this.clearQBTemplate();
3020
3027
  }
3028
+ popupElement = document.querySelectorAll('.qb-dropdownlist');
3029
+ if (popupElement) {
3030
+ for (i = 0; i < popupElement.length; i++) {
3031
+ popupElement[i].remove();
3032
+ }
3033
+ }
3021
3034
  classList(this.element, [], ['e-rtl', 'e-responsive', 'e-device']);
3022
3035
  this.isDestroy = false;
3023
3036
  };
@@ -1,63 +0,0 @@
1
- ### Bug description
2
-
3
- Clearly and concisely describe the problem or feature (this cannot be empty).
4
-
5
- ### Root cause
6
-
7
- Briefly describe the root cause and analysis of the problem.
8
- If there is an internal discussion on the forum, provide the link.
9
-
10
- ### Reason for not identifying earlier
11
-
12
- Find how it was missed in our earlier testing and development by analysing the below checklist. This will help prevent similar mistakes in the future.
13
-
14
- - [ ] Guidelines/documents are not followed
15
-
16
- - Common guidelines / Core team guideline
17
- - Specification document
18
- - Requirement document
19
-
20
- - [ ] Guidelines/documents are not given
21
-
22
-
23
- - Common guidelines / Core team guideline
24
- - Specification document
25
- - Requirement document
26
-
27
-
28
- ### Reason:
29
- Mention any one or more reasons from the above points.
30
-
31
- ### Action taken:
32
-
33
- What action did you take to avoid this in future?
34
-
35
- ### Related areas:
36
-
37
- Is there any other related areas also to be addressed?
38
-
39
-
40
- ### Is it a breaking issue?
41
-
42
- If it is a breaking issue, provide the commit detail which caused this break.
43
-
44
- ### Solution description
45
-
46
- Describe your code changes in detail for reviewers.
47
-
48
- ### Output screenshots
49
-
50
- Post the output screenshots if an UI is affected or added due to this bug.
51
-
52
- ### Areas affected and ensured
53
-
54
- List the areas affected by your code changes.
55
-
56
- ### Additional checklist
57
-
58
- - Did you run the automation against your fix?
59
- - Is there any API name change?
60
- - Is there any existing behavior change of other features due to this code change?
61
- - Does your new code introduce new warnings or binding errors?
62
- - Does your code pass all FxCop and StyleCop rules?
63
- - Did you record this case in the unit test or UI test?
@@ -1,39 +0,0 @@
1
- ### Feature description
2
-
3
- Clearly and concisely describe the problem or feature (this cannot be empty).
4
-
5
- ### Analysis and design
6
-
7
- If there is an external design, link to its project documentation area.
8
- If there is an internal discussion on the forum, provide the link.
9
-
10
- ### Solution description
11
-
12
- Describe your code changes in detail for reviewers.
13
-
14
- ### Output screenshots
15
-
16
- Post the output screenshots if an UI is affected or added due to this feature.
17
-
18
- ### Areas affected and ensured
19
-
20
- List the areas are affected by your code changes.
21
-
22
- ### Test cases
23
-
24
- Provide the unit testing written file details to understand the use cases considered in this implementation.
25
- If there is no TDD (if it’s not possible to follow), provide the UI automation script location and the Excel file that contains the use cases considered in this implementation.
26
- Provide the test cases Excel file alone if the feature cannot be automated in any case.
27
-
28
- ### Test bed sample location
29
-
30
- Provide the test bed sample location where code reviewers can review the new feature’s behaviors. This depends on the CI process that your team follows. It can be from NPMCI, HockeyApp, staging site, local server, etc.
31
-
32
- ### Additional checklist
33
-
34
- - Did you run the automation against your fix?
35
- - Is there any API name change?
36
- - Is there any existing behavior change of other features due to this code change?
37
- - Does your new code introduce new warnings or binding errors?
38
- - Does your code pass all FxCop and StyleCop rules?
39
- - Did you record this case in the unit test or UI test?