@syncfusion/ej2-dropdowns 28.2.5 → 28.2.6
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.
- package/dist/ej2-dropdowns.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +26 -17
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +26 -17
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/drop-down-base/drop-down-base.js +2 -1
- package/src/drop-down-tree/drop-down-tree.d.ts +2 -0
- package/src/drop-down-tree/drop-down-tree.js +23 -15
- package/src/multi-select/multi-select.js +1 -1
|
@@ -1293,7 +1293,8 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1293
1293
|
};
|
|
1294
1294
|
DropDownBase.prototype.getSkeletonCount = function (retainSkeleton) {
|
|
1295
1295
|
this.virtualListHeight = this.listContainerHeight != null ? parseInt(this.listContainerHeight, 10) : this.virtualListHeight;
|
|
1296
|
-
var actualCount = this.virtualListHeight > 0
|
|
1296
|
+
var actualCount = this.virtualListHeight > 0 && this.listItemHeight > 0 ?
|
|
1297
|
+
Math.floor(this.virtualListHeight / this.listItemHeight) : 0;
|
|
1297
1298
|
this.skeletonCount = actualCount * 4 < this.itemCount ? this.itemCount : actualCount * 4;
|
|
1298
1299
|
this.itemCount = retainSkeleton ? this.itemCount : this.skeletonCount;
|
|
1299
1300
|
this.virtualItemCount = this.itemCount;
|
|
@@ -9043,11 +9044,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
9043
9044
|
removeClass([_this.popupEle], DDTHIDEICON);
|
|
9044
9045
|
_this.updatePopupHeight();
|
|
9045
9046
|
_this.popupObj.refreshPosition();
|
|
9046
|
-
if (_this.showSelectAll && !_this.
|
|
9047
|
-
_this.
|
|
9048
|
-
|
|
9049
|
-
if ((!_this.popupDiv.classList.contains(NODATA) && _this.treeItems.length > 0)) {
|
|
9050
|
-
var focusedElement = _this.value != null || _this.text != null ? _this.treeObj.element.querySelector('[data-uid="' + _this.value[0] + '"]') : null;
|
|
9047
|
+
if (!(_this.showSelectAll || _this.allowFiltering) && (!_this.popupDiv.classList.contains(NODATA)
|
|
9048
|
+
&& _this.treeItems.length > 0)) {
|
|
9049
|
+
var focusedElement = _this.value != null && _this.text != null ? _this.treeObj.element.querySelector('[data-uid="' + _this.value[0] + '"]') : null;
|
|
9051
9050
|
if (focusedElement) {
|
|
9052
9051
|
_this.treeObj.element.querySelector('li').setAttribute('tabindex', '-1');
|
|
9053
9052
|
focusedElement.setAttribute('tabindex', '0');
|
|
@@ -9056,17 +9055,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
9056
9055
|
var oldFocussedNode = _this.treeObj.element.querySelector('.e-node-focus');
|
|
9057
9056
|
focusedElement = _this.treeObj.element.querySelector('li[tabindex="0"]:not(.e-disable)') ||
|
|
9058
9057
|
_this.treeObj.element.querySelector('li:not(.e-disable)');
|
|
9059
|
-
|
|
9060
|
-
oldFocussedNode.setAttribute('tabindex', '-1');
|
|
9061
|
-
removeClass([oldFocussedNode], 'e-node-focus');
|
|
9062
|
-
}
|
|
9063
|
-
}
|
|
9064
|
-
if (!isNullOrUndefined(focusedElement)) {
|
|
9065
|
-
if (!_this.allowFiltering) {
|
|
9066
|
-
focusedElement.focus();
|
|
9067
|
-
}
|
|
9068
|
-
addClass([focusedElement], ['e-node-focus']);
|
|
9058
|
+
_this.removeFocus(focusedElement, oldFocussedNode);
|
|
9069
9059
|
}
|
|
9060
|
+
_this.updateFocus(focusedElement);
|
|
9070
9061
|
}
|
|
9071
9062
|
if (_this.treeObj.checkedNodes.length > 0 && !_this.isFilterRestore) {
|
|
9072
9063
|
var nodes = _this.treeObj.element.querySelectorAll('li');
|
|
@@ -9077,6 +9068,12 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
9077
9068
|
_this.checkSelectAll = false;
|
|
9078
9069
|
}
|
|
9079
9070
|
}
|
|
9071
|
+
if (_this.showSelectAll && !_this.allowFiltering) {
|
|
9072
|
+
var oldFocussedNode = _this.treeObj.element.querySelector('.e-node-focus');
|
|
9073
|
+
var focusedElement = _this.popupEle.querySelector('.e-selectall-parent');
|
|
9074
|
+
_this.removeFocus(focusedElement, oldFocussedNode);
|
|
9075
|
+
_this.updateFocus(focusedElement);
|
|
9076
|
+
}
|
|
9080
9077
|
if (_this.allowFiltering) {
|
|
9081
9078
|
removeClass([_this.inputWrapper], [INPUTFOCUS]);
|
|
9082
9079
|
_this.filterObj.element.focus();
|
|
@@ -9086,6 +9083,18 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
9086
9083
|
}
|
|
9087
9084
|
});
|
|
9088
9085
|
};
|
|
9086
|
+
DropDownTree.prototype.removeFocus = function (focusedElement, oldFocusedElement) {
|
|
9087
|
+
if (oldFocusedElement && oldFocusedElement !== focusedElement) {
|
|
9088
|
+
oldFocusedElement.setAttribute('tabindex', '-1');
|
|
9089
|
+
removeClass([oldFocusedElement], 'e-node-focus');
|
|
9090
|
+
}
|
|
9091
|
+
};
|
|
9092
|
+
DropDownTree.prototype.updateFocus = function (focusedElement) {
|
|
9093
|
+
if (!isNullOrUndefined(focusedElement)) {
|
|
9094
|
+
focusedElement.focus();
|
|
9095
|
+
addClass([focusedElement], ['e-node-focus']);
|
|
9096
|
+
}
|
|
9097
|
+
};
|
|
9089
9098
|
DropDownTree.prototype.reactCallBack = function () {
|
|
9090
9099
|
if (!isNullOrUndefined(this.popupObj)) {
|
|
9091
9100
|
this.updatePopupHeight();
|
|
@@ -16513,7 +16522,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16513
16522
|
(this.mode === 'Box' || this.mode === 'Default'))) ||
|
|
16514
16523
|
(this.enableVirtualization && value != null && text != null && !isCustomData)) {
|
|
16515
16524
|
var currentText = [];
|
|
16516
|
-
var textValues = this.isDynamicRemoteVirtualData && text != null && text !== '' ? text : this.text != null && this.text !== '' ? this.text + this.delimiterChar + text : text;
|
|
16525
|
+
var textValues = this.isDynamicRemoteVirtualData && text != null && text !== '' ? text : this.text != null && this.text !== '' && !this.text.includes(text) ? this.text + this.delimiterChar + text : text;
|
|
16517
16526
|
currentText.push(textValues);
|
|
16518
16527
|
this.setProperties({ text: currentText.toString() }, true);
|
|
16519
16528
|
this.addChip(text, value);
|