@syncfusion/ej2-dropdowns 19.3.53 → 19.4.40

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 : 19.3.53
3
+ * version : 19.4.40
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@19.3.48",
3
+ "_id": "@syncfusion/ej2-dropdowns@19.3.56",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-NxeOgcb/22jSsGxrmHVqm6WkBYulM03S+ksty7ALTRECFZ5xmOXAQ27ZNee6YiJxNQF0pyuU5Kk1EHKnM1zQeA==",
5
+ "_integrity": "sha512-swxFfaQGysEl0FHFlWDRqRKJMx3x2cBzkWu0aII2IRfQMjGd79WPOdsdSqDmSxQJOE1v6GiNgrlbyf9irDUIEQ==",
6
6
  "_location": "/@syncfusion/ej2-dropdowns",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -21,6 +21,7 @@
21
21
  "/@syncfusion/ej2",
22
22
  "/@syncfusion/ej2-angular-dropdowns",
23
23
  "/@syncfusion/ej2-documenteditor",
24
+ "/@syncfusion/ej2-filemanager/@syncfusion/ej2-grids",
24
25
  "/@syncfusion/ej2-gantt",
25
26
  "/@syncfusion/ej2-grids",
26
27
  "/@syncfusion/ej2-inplace-editor",
@@ -33,8 +34,8 @@
33
34
  "/@syncfusion/ej2-spreadsheet",
34
35
  "/@syncfusion/ej2-vue-dropdowns"
35
36
  ],
36
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-19.3.48.tgz",
37
- "_shasum": "aeed874acf3f663d023e4fc2ef52eec6e1d4f1a2",
37
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-19.3.56.tgz",
38
+ "_shasum": "8fab90fa06f7b8947bfcab02e078098b513bf98f",
38
39
  "_spec": "@syncfusion/ej2-dropdowns@*",
39
40
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
40
41
  "author": {
@@ -42,12 +43,12 @@
42
43
  },
43
44
  "bundleDependencies": false,
44
45
  "dependencies": {
45
- "@syncfusion/ej2-base": "~19.3.53",
46
- "@syncfusion/ej2-data": "~19.3.53",
47
- "@syncfusion/ej2-inputs": "~19.3.53",
48
- "@syncfusion/ej2-lists": "~19.3.53",
49
- "@syncfusion/ej2-navigations": "~19.3.53",
50
- "@syncfusion/ej2-popups": "~19.3.53"
46
+ "@syncfusion/ej2-base": "~19.4.38",
47
+ "@syncfusion/ej2-data": "~19.4.38",
48
+ "@syncfusion/ej2-inputs": "~19.4.38",
49
+ "@syncfusion/ej2-lists": "~19.4.38",
50
+ "@syncfusion/ej2-navigations": "~19.4.40",
51
+ "@syncfusion/ej2-popups": "~19.4.38"
51
52
  },
52
53
  "deprecated": false,
53
54
  "description": "Essential JS 2 DropDown Components",
@@ -72,6 +73,6 @@
72
73
  "module": "./index.js",
73
74
  "name": "@syncfusion/ej2-dropdowns",
74
75
  "typings": "index.d.ts",
75
- "version": "19.3.53",
76
+ "version": "19.4.40",
76
77
  "sideEffects": false
77
78
  }
@@ -492,6 +492,11 @@ var DropDownBase = /** @class */ (function (_super) {
492
492
  _this.renderGroupTemplate(ulElement);
493
493
  }
494
494
  _this.bindChildItems(localDataArgs.result, ulElement, fields);
495
+ setTimeout(function () {
496
+ if (_this.getModuleName() === 'multiselect' && (ulElement.childElementCount > 0 && ulElement.children[0].childElementCount > 0)) {
497
+ _this.updateDataList();
498
+ }
499
+ });
495
500
  }
496
501
  });
497
502
  }
@@ -703,7 +703,7 @@ var DropDownList = /** @class */ (function (_super) {
703
703
  if (this.isSelectFocusItem(focusEle)) {
704
704
  this.setSelection(focusEle, e);
705
705
  }
706
- else {
706
+ else if (!isNullOrUndefined(this.liCollections)) {
707
707
  var index = e.action === 'down' ? this.activeIndex + 1 : this.activeIndex - 1;
708
708
  var startIndex = 0;
709
709
  if (this.getModuleName() === 'autocomplete') {
@@ -1361,6 +1361,7 @@ var DropDownTree = /** @class */ (function (_super) {
1361
1361
  }
1362
1362
  };
1363
1363
  DropDownTree.prototype.setValidValue = function () {
1364
+ var _this = this;
1364
1365
  if (!this.showCheckBox && !this.allowMultiSelection) {
1365
1366
  Input.setValue(this.text, this.inputEle, this.floatLabelType);
1366
1367
  var id = this.value[0].toString();
@@ -1370,9 +1371,14 @@ var DropDownTree = /** @class */ (function (_super) {
1370
1371
  }
1371
1372
  else {
1372
1373
  if (this.showCheckBox) {
1373
- this.treeObj.checkedNodes = this.value.slice();
1374
- this.treeObj.dataBind();
1375
- this.setMultiSelect();
1374
+ var difference = this.value.filter(function (e) {
1375
+ return _this.treeObj.checkedNodes.indexOf(e) === -1;
1376
+ });
1377
+ if (difference.length > 0 || this.treeSettings.autoCheck) {
1378
+ this.treeObj.checkedNodes = this.value.slice();
1379
+ this.treeObj.dataBind();
1380
+ this.setMultiSelect();
1381
+ }
1376
1382
  }
1377
1383
  else {
1378
1384
  this.treeObj.selectedNodes = this.value.slice();
@@ -2411,6 +2417,9 @@ var DropDownTree = /** @class */ (function (_super) {
2411
2417
  this.ensurePlaceHolder();
2412
2418
  };
2413
2419
  DropDownTree.prototype.resetValue = function (isDynamicChange) {
2420
+ if (this.value == [] && this.text == null) {
2421
+ return;
2422
+ }
2414
2423
  Input.setValue(null, this.inputEle, this.floatLabelType);
2415
2424
  if (!isDynamicChange) {
2416
2425
  this.oldValue = this.value;
@@ -2422,7 +2431,8 @@ var DropDownTree = /** @class */ (function (_super) {
2422
2431
  setValue('selectedNodes', [], this.treeObj);
2423
2432
  this.hiddenElement.innerHTML = '';
2424
2433
  if (this.showCheckBox) {
2425
- this.treeObj.uncheckAll();
2434
+ this.treeObj.checkedNodes = [];
2435
+ this.treeObj.dataBind();
2426
2436
  this.setMultiSelect();
2427
2437
  this.clearCheckAll();
2428
2438
  }
@@ -2800,8 +2810,8 @@ var DropDownTree = /** @class */ (function (_super) {
2800
2810
  this.updateTemplate();
2801
2811
  }
2802
2812
  this.treeObj.sortOrder = newProp.sortOrder;
2803
- this.updateValue(this.value);
2804
2813
  this.treeObj.dataBind();
2814
+ this.updateValue(this.value);
2805
2815
  break;
2806
2816
  case 'showDropDownIcon':
2807
2817
  this.updateDropDownIconState(newProp.showDropDownIcon);
@@ -1049,6 +1049,13 @@ var MultiSelect = /** @class */ (function (_super) {
1049
1049
  var focusedItem = this.list.querySelector('.' + dropDownBaseClasses.focus);
1050
1050
  if (!isNullOrUndefined(focusedItem)) {
1051
1051
  this.inputElement.setAttribute('aria-activedescendant', focusedItem.id);
1052
+ if (this.allowFiltering) {
1053
+ var filterInput = this.popupWrapper.querySelector('.' + FILTERINPUT);
1054
+ filterInput && filterInput.setAttribute('aria-activedescendant', focusedItem.id);
1055
+ }
1056
+ else if (this.mode == "CheckBox") {
1057
+ this.overAllWrapper.setAttribute('aria-activedescendant', focusedItem.id);
1058
+ }
1052
1059
  }
1053
1060
  };
1054
1061
  MultiSelect.prototype.homeNavigation = function (isHome) {
@@ -1164,7 +1171,6 @@ var MultiSelect = /** @class */ (function (_super) {
1164
1171
  this.keyAction = true;
1165
1172
  if (document.activeElement.classList.contains(FILTERINPUT)
1166
1173
  || (this.mode === 'CheckBox' && !this.allowFiltering && document.activeElement !== this.list)) {
1167
- this.list.focus();
1168
1174
  EventHandler.add(this.list, 'keydown', this.onKeyDown, this);
1169
1175
  }
1170
1176
  this.updateAriaAttribute();
@@ -2187,7 +2193,7 @@ var MultiSelect = /** @class */ (function (_super) {
2187
2193
  EventHandler.add(this.inputElement, 'input', this.onInput, this);
2188
2194
  }
2189
2195
  EventHandler.add(this.inputElement, 'blur', this.onBlurHandler, this);
2190
- EventHandler.add(this.componentWrapper, 'mousemove', this.mouseIn, this);
2196
+ EventHandler.add(this.componentWrapper, 'mouseover', this.mouseIn, this);
2191
2197
  var formElement = closest(this.inputElement, 'form');
2192
2198
  if (formElement) {
2193
2199
  EventHandler.add(formElement, 'reset', this.resetValueHandler, this);
@@ -2455,7 +2461,7 @@ var MultiSelect = /** @class */ (function (_super) {
2455
2461
  }
2456
2462
  };
2457
2463
  MultiSelect.prototype.updateDataList = function () {
2458
- if (this.mainList && this.ulElement && this.mainList.childElementCount < this.ulElement.childElementCount) {
2464
+ if (this.mainList && this.ulElement && (this.mainList.childElementCount < this.ulElement.childElementCount || ((this.ulElement.childElementCount > 0 && this.ulElement.children[0].childElementCount > 0) && (this.mainList.children[0].childElementCount < this.ulElement.children[0].childElementCount)))) {
2459
2465
  this.mainList = this.ulElement.cloneNode ? this.ulElement.cloneNode(true) : this.ulElement;
2460
2466
  }
2461
2467
  };
@@ -3083,7 +3089,7 @@ var MultiSelect = /** @class */ (function (_super) {
3083
3089
  EventHandler.remove(formElement, 'reset', this.resetValueHandler);
3084
3090
  }
3085
3091
  EventHandler.remove(this.inputElement, 'blur', this.onBlurHandler);
3086
- EventHandler.remove(this.componentWrapper, 'mousemove', this.mouseIn);
3092
+ EventHandler.remove(this.componentWrapper, 'mouseover', this.mouseIn);
3087
3093
  EventHandler.remove(this.componentWrapper, 'mouseout', this.mouseOut);
3088
3094
  EventHandler.remove(this.overAllClear, 'mousedown', this.clearAll);
3089
3095
  EventHandler.remove(this.inputElement, 'paste', this.pasteHandler);