@syncfusion/ej2-dropdowns 26.2.9 → 26.2.10

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 : 26.2.9
3
+ * version : 26.2.10
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-dropdowns@*",
3
- "_id": "@syncfusion/ej2-dropdowns@26.2.8",
3
+ "_id": "@syncfusion/ej2-dropdowns@26.2.9",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-DQLnhkatnSJgyHGcXmwjX+wlmjsQrqdoHCm1tsKmwfxiTvQBdxt/8VExLp/8b5ZhLPnCbNQwnwa9/BS2RMx52Q==",
5
+ "_integrity": "sha512-FmGQY901PecxDoSQU29n/Xg66dFNx1+X63xqrb+d1I+vMbZi/71gaqEOg+r1KEBNqZMOC5SiB/90NKPLjXpCgQ==",
6
6
  "_location": "/@syncfusion/ej2-dropdowns",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -35,8 +35,8 @@
35
35
  "/@syncfusion/ej2-spreadsheet",
36
36
  "/@syncfusion/ej2-vue-dropdowns"
37
37
  ],
38
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-26.2.8.tgz",
39
- "_shasum": "5b456592bed019698a0cc42ff02b5f84b64acb5d",
38
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-26.2.9.tgz",
39
+ "_shasum": "ca85eded8151858bb317bca8a9560ec4acf2bafd",
40
40
  "_spec": "@syncfusion/ej2-dropdowns@*",
41
41
  "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
42
42
  "author": {
@@ -44,13 +44,13 @@
44
44
  },
45
45
  "bundleDependencies": false,
46
46
  "dependencies": {
47
- "@syncfusion/ej2-base": "~26.2.5",
48
- "@syncfusion/ej2-data": "~26.2.9",
49
- "@syncfusion/ej2-inputs": "~26.2.5",
50
- "@syncfusion/ej2-lists": "~26.2.5",
51
- "@syncfusion/ej2-navigations": "~26.2.8",
52
- "@syncfusion/ej2-notifications": "~26.2.5",
53
- "@syncfusion/ej2-popups": "~26.2.8"
47
+ "@syncfusion/ej2-base": "~26.2.10",
48
+ "@syncfusion/ej2-data": "~26.2.10",
49
+ "@syncfusion/ej2-inputs": "~26.2.10",
50
+ "@syncfusion/ej2-lists": "~26.2.10",
51
+ "@syncfusion/ej2-navigations": "~26.2.10",
52
+ "@syncfusion/ej2-notifications": "~26.2.10",
53
+ "@syncfusion/ej2-popups": "~26.2.10"
54
54
  },
55
55
  "deprecated": false,
56
56
  "description": "Essential JS 2 DropDown Components",
@@ -75,7 +75,7 @@
75
75
  "module": "./index.js",
76
76
  "name": "@syncfusion/ej2-dropdowns",
77
77
  "typings": "index.d.ts",
78
- "version": "26.2.9",
78
+ "version": "26.2.10",
79
79
  "sideEffects": false,
80
80
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
81
81
  }
@@ -745,6 +745,7 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
745
745
  render(): void;
746
746
  private hideCheckAll;
747
747
  private renderFilter;
748
+ private filterKeyAction;
748
749
  private filterChangeHandler;
749
750
  private isChildObject;
750
751
  private filterHandler;
@@ -378,6 +378,40 @@ var DropDownTree = /** @class */ (function (_super) {
378
378
  input: this.filterChangeHandler.bind(this)
379
379
  });
380
380
  this.filterObj.appendTo('#' + this.element.id + '_filter');
381
+ this.keyboardModule = new KeyboardEvents(this.filterObj.element, {
382
+ keyAction: this.filterKeyAction.bind(this),
383
+ keyConfigs: this.keyConfigs,
384
+ eventName: 'keydown'
385
+ });
386
+ };
387
+ DropDownTree.prototype.filterKeyAction = function (e) {
388
+ var _this = this;
389
+ var eventArgs = {
390
+ cancel: false,
391
+ event: e
392
+ };
393
+ this.trigger('keyPress', eventArgs, function (observedArgs) {
394
+ if (!observedArgs.cancel) {
395
+ switch (e.action) {
396
+ case 'altUp':
397
+ if (_this.isPopupOpen) {
398
+ _this.hidePopup();
399
+ }
400
+ break;
401
+ case 'shiftTab':
402
+ addClass([_this.inputWrapper], [INPUTFOCUS]);
403
+ break;
404
+ case 'moveDown':
405
+ e.preventDefault();
406
+ _this.filterObj.element.blur();
407
+ var focusedElement = _this.treeObj.element.querySelector('li');
408
+ if (focusedElement) {
409
+ focusedElement.focus();
410
+ }
411
+ break;
412
+ }
413
+ }
414
+ });
381
415
  };
382
416
  DropDownTree.prototype.filterChangeHandler = function (args) {
383
417
  var _this = this;
@@ -896,7 +930,6 @@ var DropDownTree = /** @class */ (function (_super) {
896
930
  }
897
931
  break;
898
932
  case 'shiftTab':
899
- case 'tab':
900
933
  if (_this.isPopupOpen) {
901
934
  _this.hidePopup();
902
935
  }
@@ -1615,13 +1648,16 @@ var DropDownTree = /** @class */ (function (_super) {
1615
1648
  }
1616
1649
  else {
1617
1650
  var oldFocussedNode = _this.treeObj.element.querySelector('.e-node-focus');
1618
- focusedElement = _this.treeObj.element.querySelector('li:not(.e-disable):not(.e-prevent)');
1651
+ focusedElement = _this.treeObj.element.querySelector('li[tabindex="0"]:not(.e-disable):not(.e-prevent)') ||
1652
+ _this.treeObj.element.querySelector('li:not(.e-disable):not(.e-prevent)');
1619
1653
  if (oldFocussedNode && oldFocussedNode !== focusedElement) {
1620
1654
  oldFocussedNode.setAttribute('tabindex', '-1');
1621
1655
  removeClass([oldFocussedNode], 'e-node-focus');
1622
1656
  }
1623
1657
  }
1624
- focusedElement.focus();
1658
+ if (!_this.allowFiltering) {
1659
+ focusedElement.focus();
1660
+ }
1625
1661
  addClass([focusedElement], ['e-node-focus']);
1626
1662
  }
1627
1663
  if (_this.treeObj.checkedNodes.length > 0) {
@@ -1 +0,0 @@
1
- hotfix/26.1.35_Vol2