@syncfusion/ej2-dropdowns 22.1.39 → 22.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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 22.1.39
3
+ * version : 22.2.5
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. 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-dropdowns@*",
3
- "_id": "@syncfusion/ej2-dropdowns@22.1.38",
3
+ "_id": "@syncfusion/ej2-dropdowns@22.1.39",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-rmkxzqNkvxi1OGMnjl9YUz5iTrvaS4pff5fMYdq1xCccizycwqdNnL5+MNimnSWJqDxpST+SwPiL86NMgVlt6A==",
5
+ "_integrity": "sha512-kGCz43iB1JPJkzxWFVy45/PWM48DrUevtPcmysiuBIyHbL7MZaNc/jc4ee+h+0AYOwFqcnc+dUu85DAb7O05Hg==",
6
6
  "_location": "/@syncfusion/ej2-dropdowns",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -34,8 +34,8 @@
34
34
  "/@syncfusion/ej2-spreadsheet",
35
35
  "/@syncfusion/ej2-vue-dropdowns"
36
36
  ],
37
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-22.1.38.tgz",
38
- "_shasum": "ce2897f653685a6c96d27245ebab2d45771b75df",
37
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-22.1.39.tgz",
38
+ "_shasum": "50db23e29303d2ed0f0e8e14a8a1601682864f9e",
39
39
  "_spec": "@syncfusion/ej2-dropdowns@*",
40
40
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
41
41
  "author": {
@@ -43,12 +43,12 @@
43
43
  },
44
44
  "bundleDependencies": false,
45
45
  "dependencies": {
46
- "@syncfusion/ej2-base": "~22.1.38",
47
- "@syncfusion/ej2-data": "~22.1.38",
48
- "@syncfusion/ej2-inputs": "~22.1.39",
49
- "@syncfusion/ej2-lists": "~22.1.34",
50
- "@syncfusion/ej2-navigations": "~22.1.39",
51
- "@syncfusion/ej2-popups": "~22.1.38"
46
+ "@syncfusion/ej2-base": "~22.2.5",
47
+ "@syncfusion/ej2-data": "~22.2.5",
48
+ "@syncfusion/ej2-inputs": "~22.2.5",
49
+ "@syncfusion/ej2-lists": "~22.2.5",
50
+ "@syncfusion/ej2-navigations": "~22.2.5",
51
+ "@syncfusion/ej2-popups": "~22.2.5"
52
52
  },
53
53
  "deprecated": false,
54
54
  "description": "Essential JS 2 DropDown Components",
@@ -73,7 +73,7 @@
73
73
  "module": "./index.js",
74
74
  "name": "@syncfusion/ej2-dropdowns",
75
75
  "typings": "index.d.ts",
76
- "version": "22.1.39",
76
+ "version": "22.2.5",
77
77
  "sideEffects": false,
78
78
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
79
79
  }
@@ -693,21 +693,21 @@ export interface FilteringEventArgs {
693
693
  }
694
694
  export interface PopupEventArgs {
695
695
  /**
696
- * Specifies the popup Object.
696
+ * This property provides access to the Popup object associated with the dropdown list. The Popup object represents the actual popup element that is displayed when the dropdown list is expanded.
697
697
  *
698
698
 
699
699
  */
700
700
  popup: Popup;
701
701
  /**
702
- * Illustrates whether the current action needs to be prevented or not.
702
+ * This property indicates whether the current action should be prevented or not. By setting it to true, you can cancel the default action associated with the event.
703
703
  */
704
704
  cancel?: boolean;
705
705
  /**
706
- * Specifies the animation Object.
706
+ * This property allows you to specify the animation settings for the popup. It accepts an AnimationModel object that defines the animation behavior.
707
707
  */
708
708
  animation?: AnimationModel;
709
709
  /**
710
- * Specifies the event.
710
+ * This property represents the event that triggers the popup. It can be of type MouseEvent, KeyboardEventArgs, TouchEvent, or a generic Object representing the event details.
711
711
  */
712
712
  event?: MouseEvent | KeyboardEventArgs | TouchEvent | Object;
713
713
  }
@@ -2087,6 +2087,9 @@ var DropDownList = /** @class */ (function (_super) {
2087
2087
  }
2088
2088
  }
2089
2089
  });
2090
+ if (this.isReact && this.isFiltering() && this.itemTemplate != null) {
2091
+ this.actionCompleteData.ulElement = this.ulElement.cloneNode(true);
2092
+ }
2090
2093
  };
2091
2094
  DropDownList.prototype.destroyPopup = function () {
2092
2095
  this.isPopupOpen = false;
@@ -1,4 +1,4 @@
1
- import { Input, InputObject, FloatLabelType, TextBox, InputEventArgs } from '@syncfusion/ej2-inputs';import { createCheckBox } from '@syncfusion/ej2-buttons';import { NotifyPropertyChanges, INotifyPropertyChanged, Property, Event, EmitType } from '@syncfusion/ej2-base';import { Component, EventHandler, attributes, formatUnit, ChildProperty, remove, L10n, extend } from '@syncfusion/ej2-base';import { addClass, removeClass, detach, prepend, Complex, closest, setValue, getValue, compile, append } from '@syncfusion/ej2-base';import { select, selectAll, isNullOrUndefined as isNOU, matches, Browser, KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base';import { DataManager, Query, DataUtil } from '@syncfusion/ej2-data';import { Popup } from '@syncfusion/ej2-popups';import { TreeView, NodeSelectEventArgs, DataBoundEventArgs, FieldsSettingsModel, NodeClickEventArgs, NodeExpandEventArgs } from '@syncfusion/ej2-navigations';import { NodeCheckEventArgs, FailureEventArgs} from '@syncfusion/ej2-navigations';
1
+ import { Input, InputObject, FloatLabelType, TextBox, InputEventArgs } from '@syncfusion/ej2-inputs';import { createCheckBox } from '@syncfusion/ej2-buttons';import { NotifyPropertyChanges, INotifyPropertyChanged, Property, Event, EmitType, SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { Component, EventHandler, attributes, formatUnit, ChildProperty, remove, L10n, extend } from '@syncfusion/ej2-base';import { addClass, removeClass, detach, prepend, Complex, closest, setValue, getValue, compile, append } from '@syncfusion/ej2-base';import { select, selectAll, isNullOrUndefined as isNOU, matches, Browser, KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base';import { DataManager, Query, DataUtil } from '@syncfusion/ej2-data';import { Popup } from '@syncfusion/ej2-popups';import { TreeView, NodeSelectEventArgs, DataBoundEventArgs, FieldsSettingsModel, NodeClickEventArgs, NodeExpandEventArgs } from '@syncfusion/ej2-navigations';import { NodeCheckEventArgs, FailureEventArgs} from '@syncfusion/ej2-navigations';
2
2
  import {Mode,ExpandOn,TreeFilterType,SortOrder,DdtBeforeOpenEventArgs,DdtChangeEventArgs,DdtPopupEventArgs,DdtDataBoundEventArgs,DdtFilteringEventArgs,DdtFocusEventArgs,DdtKeyPressEventArgs,DdtSelectEventArgs} from "./drop-down-tree";
3
3
  import {ComponentModel} from '@syncfusion/ej2-base';
4
4
 
@@ -19,7 +19,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
19
19
  };
20
20
  import { Input, TextBox } from '@syncfusion/ej2-inputs';
21
21
  import { createCheckBox } from '@syncfusion/ej2-buttons';
22
- import { NotifyPropertyChanges, Property, Event } from '@syncfusion/ej2-base';
22
+ import { NotifyPropertyChanges, Property, Event, SanitizeHtmlHelper } from '@syncfusion/ej2-base';
23
23
  import { Component, EventHandler, attributes, formatUnit, ChildProperty, remove, L10n, extend } from '@syncfusion/ej2-base';
24
24
  import { addClass, removeClass, detach, prepend, Complex, closest, setValue, getValue, compile, append } from '@syncfusion/ej2-base';
25
25
  import { select, selectAll, isNullOrUndefined as isNOU, matches, Browser, KeyboardEvents } from '@syncfusion/ej2-base';
@@ -934,7 +934,7 @@ var DropDownTree = /** @class */ (function (_super) {
934
934
  data += temp;
935
935
  temp = this.overFlowWrapper.innerHTML;
936
936
  if (this.enableHtmlSanitizer) {
937
- this.overFlowWrapper.innerText = data;
937
+ this.overFlowWrapper.innerText = SanitizeHtmlHelper.sanitize(data);
938
938
  }
939
939
  else {
940
940
  this.overFlowWrapper.innerHTML = data;
@@ -1660,7 +1660,7 @@ var DropDownTree = /** @class */ (function (_super) {
1660
1660
  var isFooter = closest(target, '.' + FOOTER);
1661
1661
  var isScroller = target.classList.contains(DROPDOWN) ? true :
1662
1662
  (matches(target, '.e-ddt .e-popup') || matches(target, '.e-ddt .e-treeview'));
1663
- if ((this.isPopupOpen && (this.inputWrapper.contains(target) || isTree || isScroller || isHeader || isFooter)) ||
1663
+ if ((this.isPopupOpen && ((!isNOU(this.inputWrapper) && this.inputWrapper.contains(target)) || isTree || isScroller || isHeader || isFooter)) ||
1664
1664
  ((this.allowMultiSelection || this.showCheckBox) && (this.isPopupOpen && target.classList.contains(CHIP_CLOSE) ||
1665
1665
  (this.isPopupOpen && (target.classList.contains(CHECKALLPARENT) || target.classList.contains(ALLTEXT)
1666
1666
  || target.classList.contains(CHECKBOXFRAME)))))) {
@@ -2298,7 +2298,7 @@ var DropDownTree = /** @class */ (function (_super) {
2298
2298
  var chipContent = this.createElement('span', { className: CHIP_CONTENT });
2299
2299
  var chipClose = this.createElement('span', { className: CHIP_CLOSE + ' ' + ICONS });
2300
2300
  if (this.enableHtmlSanitizer) {
2301
- chipContent.innerText = text;
2301
+ chipContent.innerText = SanitizeHtmlHelper.sanitize(text);
2302
2302
  }
2303
2303
  else {
2304
2304
  chipContent.innerHTML = text;
@@ -2957,10 +2957,34 @@ var DropDownTree = /** @class */ (function (_super) {
2957
2957
  Input.setValue(null, this.inputEle, this.floatLabelType);
2958
2958
  detach(this.inputWrapper);
2959
2959
  detach(this.popupDiv);
2960
+ detach(this.hiddenElement);
2960
2961
  this.element.classList.remove('e-input');
2961
2962
  if (this.showCheckBox || this.allowMultiSelection) {
2962
2963
  this.element.classList.remove(CHIP_INPUT);
2963
2964
  }
2965
+ this.inputObj = null;
2966
+ while (this.hiddenElement.options.length > 0) {
2967
+ this.hiddenElement.remove(0);
2968
+ }
2969
+ this.hiddenElement.innerHTML = '';
2970
+ this.hiddenElement = null;
2971
+ this.inputWrapper = null;
2972
+ this.popupDiv = null;
2973
+ this.tree = null;
2974
+ this.popupObj = null;
2975
+ this.treeObj = null;
2976
+ this.overAllClear = null;
2977
+ this.chipWrapper = null;
2978
+ this.chipCollection = null;
2979
+ this.checkAllParent = null;
2980
+ this.selectAllSpan = null;
2981
+ this.checkBoxElement = null;
2982
+ this.checkWrapper = null;
2983
+ this.popupEle = null;
2984
+ this.header = null;
2985
+ this.footer = null;
2986
+ this.overFlowWrapper = null;
2987
+ this.keyboardModule = null;
2964
2988
  _super.prototype.destroy.call(this);
2965
2989
  };
2966
2990
  DropDownTree.prototype.destroyFilter = function () {