@syncfusion/ej2-dropdowns 21.1.37 → 21.1.39

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 : 21.1.37
3
+ * version : 21.1.39
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@21.1.35",
3
+ "_id": "@syncfusion/ej2-dropdowns@21.1.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-H65eTmORf+vdwyOO3JqjF5G+ZZKyWjLZtdN8ia71tMG+aGkoPxyfF+TqSNU6/9ibNgIyIyMlufz5tqpWmiKVCw==",
5
+ "_integrity": "sha512-bgFJ9w349eBLXYNpagCVatm/G/3fXwSngP9B0w6ilE8P0s1/sIkUnC1f0V7tLEdtuckbli7kvqKN0AOzasJdww==",
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-21.1.35.tgz",
38
- "_shasum": "592dc7076dc25afb5dd7096cdfbba2f7a947f0d1",
37
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-21.1.38.tgz",
38
+ "_shasum": "88d99e1b3f49f61a702e9c0b149160d3ef053e11",
39
39
  "_spec": "@syncfusion/ej2-dropdowns@*",
40
40
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
41
41
  "author": {
@@ -43,11 +43,11 @@
43
43
  },
44
44
  "bundleDependencies": false,
45
45
  "dependencies": {
46
- "@syncfusion/ej2-base": "~21.1.37",
47
- "@syncfusion/ej2-data": "~21.1.37",
48
- "@syncfusion/ej2-inputs": "~21.1.37",
49
- "@syncfusion/ej2-lists": "~21.1.37",
50
- "@syncfusion/ej2-navigations": "~21.1.37",
46
+ "@syncfusion/ej2-base": "~21.1.39",
47
+ "@syncfusion/ej2-data": "~21.1.38",
48
+ "@syncfusion/ej2-inputs": "~21.1.39",
49
+ "@syncfusion/ej2-lists": "~21.1.39",
50
+ "@syncfusion/ej2-navigations": "~21.1.39",
51
51
  "@syncfusion/ej2-popups": "~21.1.37"
52
52
  },
53
53
  "deprecated": false,
@@ -73,7 +73,7 @@
73
73
  "module": "./index.js",
74
74
  "name": "@syncfusion/ej2-dropdowns",
75
75
  "typings": "index.d.ts",
76
- "version": "21.1.37",
76
+ "version": "21.1.39",
77
77
  "sideEffects": false,
78
78
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
79
79
  }
@@ -1968,7 +1968,7 @@ var DropDownTree = /** @class */ (function (_super) {
1968
1968
  this.changeState(wrap, 'uncheck');
1969
1969
  this.isReverseUpdate = false;
1970
1970
  }
1971
- else if (wrap && args.action === 'check' && checkedNodes.length === nodes.length && this.isCheckAllCalled) {
1971
+ else if (wrap && args.action === 'check' && checkedNodes.length === nodes.length && (args.isInteracted || this.isCheckAllCalled)) {
1972
1972
  this.isReverseUpdate = true;
1973
1973
  this.isCheckAllCalled = false;
1974
1974
  this.changeState(wrap, 'check');
@@ -425,12 +425,18 @@ var ListBox = /** @class */ (function (_super) {
425
425
  var scrollParent;
426
426
  var boundRect;
427
427
  var scrollMoved = 36;
428
+ var scrollHeight = 10;
429
+ if (this.itemTemplate && args.target) {
430
+ scrollHeight = args.target.scrollHeight;
431
+ }
428
432
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
429
433
  var event = args.event;
430
434
  var wrapper;
431
435
  if (args.target && (args.target.classList.contains('e-listbox-wrapper') || args.target.classList.contains('e-list-item')
436
+ || (args.target.parentElement && args.target.parentElement.classList.contains('e-list-item'))
432
437
  || args.target.classList.contains('e-filter-parent') || args.target.classList.contains('e-input-group'))) {
433
438
  if (args.target.classList.contains('e-list-item') || args.target.classList.contains('e-filter-parent')
439
+ || (args.target.parentElement && args.target.parentElement.classList.contains('e-list-item'))
434
440
  || args.target.classList.contains('e-input-group')) {
435
441
  wrapper = args.target.closest('.e-listbox-wrapper');
436
442
  }
@@ -445,23 +451,16 @@ var ListBox = /** @class */ (function (_super) {
445
451
  }
446
452
  boundRect = scrollParent.getBoundingClientRect();
447
453
  if ((boundRect.y + scrollParent.offsetHeight) - (event.pageY + scrollMoved) < 1) {
448
- scrollParent.scrollTop = scrollParent.scrollTop + 10;
454
+ scrollParent.scrollTop = scrollParent.scrollTop + scrollHeight;
449
455
  }
450
456
  else if ((event.pageY - scrollMoved) - boundRect.y < 1) {
451
- scrollParent.scrollTop = scrollParent.scrollTop - 10;
457
+ scrollParent.scrollTop = scrollParent.scrollTop - scrollHeight;
452
458
  }
453
459
  }
454
460
  if (args.target === null) {
455
461
  return;
456
462
  }
457
463
  this.trigger('drag', this.getDragArgs(args));
458
- var listObj = this.getComponent(args.target);
459
- if (listObj && listObj.listData.length === 0) {
460
- var noRecElem = listObj.ulElement.childNodes[0];
461
- if (noRecElem) {
462
- listObj.ulElement.removeChild(noRecElem);
463
- }
464
- }
465
464
  };
466
465
  ListBox.prototype.beforeDragEnd = function (args) {
467
466
  this.dragValue = this.getFormattedValue(args.droppedElement.getAttribute('data-value'));
@@ -495,6 +494,13 @@ var ListBox = /** @class */ (function (_super) {
495
494
  if (Browser.isIos) {
496
495
  this.list.style.overflow = '';
497
496
  }
497
+ var targetListObj = this.getComponent(args.target);
498
+ if (targetListObj && targetListObj.listData.length === 0) {
499
+ var noRecElem = targetListObj.ulElement.childNodes[0];
500
+ if (noRecElem) {
501
+ targetListObj.ulElement.removeChild(noRecElem);
502
+ }
503
+ }
498
504
  if (listObj === this) {
499
505
  var ul_1 = this.ulElement;
500
506
  listData = [].slice.call(this.listData);
@@ -670,6 +670,12 @@ var Mention = /** @class */ (function (_super) {
670
670
  }
671
671
  }
672
672
  append([_this.list], popupEle_1);
673
+ if (_this.inputElement.parentElement && _this.inputElement.parentElement.parentElement &&
674
+ _this.inputElement.parentElement.parentElement.classList.contains('e-richtexteditor')) {
675
+ if (popupEle_1.firstElementChild && popupEle_1.firstElementChild.childElementCount > 0) {
676
+ popupEle_1.firstElementChild.setAttribute('aria-owns', _this.inputElement.parentElement.parentElement.id);
677
+ }
678
+ }
673
679
  if ((!_this.popupObj || !document.body.contains(_this.popupObj.element)) ||
674
680
  !document.contains(popupEle_1) && isNullOrUndefined(_this.target)) {
675
681
  document.body.appendChild(popupEle_1);
@@ -1210,9 +1216,7 @@ var Mention = /** @class */ (function (_super) {
1210
1216
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1211
1217
  var displayCompTemp = compiledString(this.itemData, this, 'displayTemplate', this.displayTemplateId, this.isStringTemplate, null, this.displayTempElement);
1212
1218
  if (displayCompTemp && displayCompTemp.length > 0) {
1213
- for (var i = 0; i < displayCompTemp.length; i++) {
1214
- this.displayTempElement.appendChild(displayCompTemp[i]);
1215
- }
1219
+ append(displayCompTemp, this.displayTempElement);
1216
1220
  }
1217
1221
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1218
1222
  if (!this.isReact) {
@@ -497,14 +497,17 @@ var CheckBoxSelection = /** @class */ (function () {
497
497
  if (this.parent.enableSelectionOrder && !isNullOrUndefined(this.parent.value)) {
498
498
  var activeLiCount = this.parent.ulElement.querySelectorAll('li.e-active').length;
499
499
  var remLi = void 0;
500
- var ulEle = this.parent.createElement('ul', {
500
+ var ulEle_1 = this.parent.createElement('ul', {
501
501
  className: 'e-list-parent e-ul e-reorder'
502
502
  });
503
503
  if (activeLiCount > 0) {
504
- append(this.parent.ulElement.querySelectorAll('li.e-active'), ulEle);
504
+ var activeListItems = this.parent.ulElement.querySelectorAll('li.e-active');
505
+ activeListItems.forEach(function (item) {
506
+ ulEle_1.appendChild(item);
507
+ });
505
508
  remLi = this.parent.ulElement.querySelectorAll('li.e-active');
506
509
  addClass(remLi, 'e-reorder-hide');
507
- prepend([ulEle], this.parent.list);
510
+ prepend([ulEle_1], this.parent.list);
508
511
  }
509
512
  this.parent.focusAtFirstListItem();
510
513
  }