@syncfusion/ej2-dropdowns 26.2.9 → 26.2.11
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 +76 -14
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +77 -14
- 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 +12 -12
- package/src/drop-down-tree/drop-down-tree.d.ts +1 -0
- package/src/drop-down-tree/drop-down-tree.js +42 -6
- package/src/mention/mention.js +7 -1
- package/src/multi-select/checkbox-selection.js +10 -2
- package/src/multi-select/interface.d.ts +1 -0
- package/src/multi-select/multi-select.js +18 -5
- package/styles/material-dark.css +5 -0
- package/styles/material.css +6 -1
- package/styles/multi-select/_material-dark-definition.scss +5 -0
- package/styles/multi-select/_material-definition.scss +6 -1
- package/styles/multi-select/material-dark.css +5 -0
- package/styles/multi-select/material.css +6 -1
- package/hotfix/26.1.35_Vol2.txt +0 -1
|
@@ -7191,6 +7191,40 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
7191
7191
|
input: this.filterChangeHandler.bind(this)
|
|
7192
7192
|
});
|
|
7193
7193
|
this.filterObj.appendTo('#' + this.element.id + '_filter');
|
|
7194
|
+
this.keyboardModule = new KeyboardEvents(this.filterObj.element, {
|
|
7195
|
+
keyAction: this.filterKeyAction.bind(this),
|
|
7196
|
+
keyConfigs: this.keyConfigs,
|
|
7197
|
+
eventName: 'keydown'
|
|
7198
|
+
});
|
|
7199
|
+
};
|
|
7200
|
+
DropDownTree.prototype.filterKeyAction = function (e) {
|
|
7201
|
+
var _this = this;
|
|
7202
|
+
var eventArgs = {
|
|
7203
|
+
cancel: false,
|
|
7204
|
+
event: e
|
|
7205
|
+
};
|
|
7206
|
+
this.trigger('keyPress', eventArgs, function (observedArgs) {
|
|
7207
|
+
if (!observedArgs.cancel) {
|
|
7208
|
+
switch (e.action) {
|
|
7209
|
+
case 'altUp':
|
|
7210
|
+
if (_this.isPopupOpen) {
|
|
7211
|
+
_this.hidePopup();
|
|
7212
|
+
}
|
|
7213
|
+
break;
|
|
7214
|
+
case 'shiftTab':
|
|
7215
|
+
addClass([_this.inputWrapper], [INPUTFOCUS]);
|
|
7216
|
+
break;
|
|
7217
|
+
case 'moveDown':
|
|
7218
|
+
e.preventDefault();
|
|
7219
|
+
_this.filterObj.element.blur();
|
|
7220
|
+
var focusedElement = _this.treeObj.element.querySelector('li');
|
|
7221
|
+
if (focusedElement) {
|
|
7222
|
+
focusedElement.focus();
|
|
7223
|
+
}
|
|
7224
|
+
break;
|
|
7225
|
+
}
|
|
7226
|
+
}
|
|
7227
|
+
});
|
|
7194
7228
|
};
|
|
7195
7229
|
DropDownTree.prototype.filterChangeHandler = function (args) {
|
|
7196
7230
|
var _this = this;
|
|
@@ -7691,7 +7725,6 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
7691
7725
|
}
|
|
7692
7726
|
break;
|
|
7693
7727
|
case 'shiftTab':
|
|
7694
|
-
case 'tab':
|
|
7695
7728
|
if (_this.isPopupOpen) {
|
|
7696
7729
|
_this.hidePopup();
|
|
7697
7730
|
}
|
|
@@ -8236,10 +8269,10 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
8236
8269
|
}
|
|
8237
8270
|
else {
|
|
8238
8271
|
if (this.showCheckBox) {
|
|
8239
|
-
var difference = this.value.filter(function (e) {
|
|
8272
|
+
var difference = this.value.length !== this.treeObj.checkedNodes.length || this.value.filter(function (e) {
|
|
8240
8273
|
return _this.treeObj.checkedNodes.indexOf(e) === -1;
|
|
8241
|
-
});
|
|
8242
|
-
if (difference
|
|
8274
|
+
}).length > 0;
|
|
8275
|
+
if (difference || this.treeSettings.autoCheck) {
|
|
8243
8276
|
this.treeObj.checkedNodes = this.value.slice();
|
|
8244
8277
|
this.treeObj.dataBind();
|
|
8245
8278
|
this.setMultiSelect();
|
|
@@ -8410,13 +8443,16 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
8410
8443
|
}
|
|
8411
8444
|
else {
|
|
8412
8445
|
var oldFocussedNode = _this.treeObj.element.querySelector('.e-node-focus');
|
|
8413
|
-
focusedElement = _this.treeObj.element.querySelector('li:not(.e-disable):not(.e-prevent)')
|
|
8446
|
+
focusedElement = _this.treeObj.element.querySelector('li[tabindex="0"]:not(.e-disable):not(.e-prevent)') ||
|
|
8447
|
+
_this.treeObj.element.querySelector('li:not(.e-disable):not(.e-prevent)');
|
|
8414
8448
|
if (oldFocussedNode && oldFocussedNode !== focusedElement) {
|
|
8415
8449
|
oldFocussedNode.setAttribute('tabindex', '-1');
|
|
8416
8450
|
removeClass([oldFocussedNode], 'e-node-focus');
|
|
8417
8451
|
}
|
|
8418
8452
|
}
|
|
8419
|
-
|
|
8453
|
+
if (!_this.allowFiltering) {
|
|
8454
|
+
focusedElement.focus();
|
|
8455
|
+
}
|
|
8420
8456
|
addClass([focusedElement], ['e-node-focus']);
|
|
8421
8457
|
}
|
|
8422
8458
|
if (_this.treeObj.checkedNodes.length > 0) {
|
|
@@ -14875,6 +14911,12 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14875
14911
|
if (this.enabled && !this.readonly) {
|
|
14876
14912
|
var temp = void 0;
|
|
14877
14913
|
if (this.value && this.value.length > 0) {
|
|
14914
|
+
if (this.allowFiltering) {
|
|
14915
|
+
this.refreshListItems(null);
|
|
14916
|
+
if (this.mode === 'CheckBox' && this.targetInputElement) {
|
|
14917
|
+
this.targetInputElement.value = '';
|
|
14918
|
+
}
|
|
14919
|
+
}
|
|
14878
14920
|
var liElement = this.list && this.list.querySelectorAll('li.e-list-item');
|
|
14879
14921
|
if (liElement && liElement.length > 0) {
|
|
14880
14922
|
this.selectAllItems(false, e);
|
|
@@ -14892,6 +14934,11 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14892
14934
|
this.clearAllCallback(e);
|
|
14893
14935
|
}
|
|
14894
14936
|
this.checkAndResetCache();
|
|
14937
|
+
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
14938
|
+
this.calculateWidth();
|
|
14939
|
+
if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
|
|
14940
|
+
this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
|
|
14941
|
+
}
|
|
14895
14942
|
if (this.enableVirtualization) {
|
|
14896
14943
|
this.updateInitialData();
|
|
14897
14944
|
if (this.chipCollectionWrapper) {
|
|
@@ -14960,11 +15007,13 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14960
15007
|
}
|
|
14961
15008
|
};
|
|
14962
15009
|
MultiSelect.prototype.resetValueHandler = function (e) {
|
|
14963
|
-
|
|
14964
|
-
|
|
14965
|
-
|
|
14966
|
-
|
|
14967
|
-
|
|
15010
|
+
if (!isNullOrUndefined(this.inputElement)) {
|
|
15011
|
+
var formElement = closest(this.inputElement, 'form');
|
|
15012
|
+
if (formElement && e.target === formElement) {
|
|
15013
|
+
var textVal = (this.element.tagName === this.getNgDirective()) ?
|
|
15014
|
+
null : this.element.getAttribute('data-initial-value');
|
|
15015
|
+
this.text = textVal;
|
|
15016
|
+
}
|
|
14968
15017
|
}
|
|
14969
15018
|
};
|
|
14970
15019
|
MultiSelect.prototype.wireEvent = function () {
|
|
@@ -18090,13 +18139,21 @@ var CheckBoxSelection = /** @__PURE__ @class */ (function () {
|
|
|
18090
18139
|
CheckBoxSelection.prototype.setSearchBoxPosition = function () {
|
|
18091
18140
|
var searchBoxHeight = this.filterInput.parentElement.getBoundingClientRect().height;
|
|
18092
18141
|
var selectAllHeight = 0;
|
|
18142
|
+
var footerHeight = 0;
|
|
18143
|
+
var headerHeight = 0;
|
|
18093
18144
|
if (this.checkAllParent) {
|
|
18094
18145
|
selectAllHeight = this.checkAllParent.getBoundingClientRect().height;
|
|
18095
18146
|
}
|
|
18147
|
+
if (this.parent.header) {
|
|
18148
|
+
headerHeight = this.parent.header.getBoundingClientRect().height;
|
|
18149
|
+
}
|
|
18150
|
+
if (this.parent.footer) {
|
|
18151
|
+
footerHeight = this.parent.footer.getBoundingClientRect().height;
|
|
18152
|
+
}
|
|
18096
18153
|
this.parent.popupObj.element.style.maxHeight = '100%';
|
|
18097
18154
|
this.parent.popupObj.element.style.width = '100%';
|
|
18098
|
-
this.parent.list.style.maxHeight = (window.innerHeight - searchBoxHeight - selectAllHeight) + 'px';
|
|
18099
|
-
this.parent.list.style.height = (window.innerHeight - searchBoxHeight - selectAllHeight) + 'px';
|
|
18155
|
+
this.parent.list.style.maxHeight = (window.innerHeight - searchBoxHeight - selectAllHeight - headerHeight - footerHeight) + 'px';
|
|
18156
|
+
this.parent.list.style.height = (window.innerHeight - searchBoxHeight - selectAllHeight - headerHeight - footerHeight) + 'px';
|
|
18100
18157
|
var clearElement = this.filterInput.parentElement.querySelector('.' + clearIcon);
|
|
18101
18158
|
detach(this.filterInput);
|
|
18102
18159
|
clearElement.parentElement.insertBefore(this.filterInput, clearElement);
|
|
@@ -22158,7 +22215,13 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
22158
22215
|
range.insertNode(frag);
|
|
22159
22216
|
if (lastNode) {
|
|
22160
22217
|
range = range.cloneRange();
|
|
22161
|
-
|
|
22218
|
+
if (this.isRTE) {
|
|
22219
|
+
range.setStart(lastNode, 0);
|
|
22220
|
+
range.setEnd(lastNode, lastNode.textContent.length);
|
|
22221
|
+
}
|
|
22222
|
+
else {
|
|
22223
|
+
range.setStartAfter(lastNode);
|
|
22224
|
+
}
|
|
22162
22225
|
range.collapse(true);
|
|
22163
22226
|
selection.removeAllRanges();
|
|
22164
22227
|
selection.addRange(range);
|