@syncfusion/ej2-dropdowns 26.2.10 → 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 +38 -11
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +38 -11
- 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 +9 -9
- package/src/drop-down-tree/drop-down-tree.js +3 -3
- 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
|
@@ -8269,10 +8269,10 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
8269
8269
|
}
|
|
8270
8270
|
else {
|
|
8271
8271
|
if (this.showCheckBox) {
|
|
8272
|
-
var difference = this.value.filter(function (e) {
|
|
8272
|
+
var difference = this.value.length !== this.treeObj.checkedNodes.length || this.value.filter(function (e) {
|
|
8273
8273
|
return _this.treeObj.checkedNodes.indexOf(e) === -1;
|
|
8274
|
-
});
|
|
8275
|
-
if (difference
|
|
8274
|
+
}).length > 0;
|
|
8275
|
+
if (difference || this.treeSettings.autoCheck) {
|
|
8276
8276
|
this.treeObj.checkedNodes = this.value.slice();
|
|
8277
8277
|
this.treeObj.dataBind();
|
|
8278
8278
|
this.setMultiSelect();
|
|
@@ -14911,6 +14911,12 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14911
14911
|
if (this.enabled && !this.readonly) {
|
|
14912
14912
|
var temp = void 0;
|
|
14913
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
|
+
}
|
|
14914
14920
|
var liElement = this.list && this.list.querySelectorAll('li.e-list-item');
|
|
14915
14921
|
if (liElement && liElement.length > 0) {
|
|
14916
14922
|
this.selectAllItems(false, e);
|
|
@@ -14928,6 +14934,11 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14928
14934
|
this.clearAllCallback(e);
|
|
14929
14935
|
}
|
|
14930
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
|
+
}
|
|
14931
14942
|
if (this.enableVirtualization) {
|
|
14932
14943
|
this.updateInitialData();
|
|
14933
14944
|
if (this.chipCollectionWrapper) {
|
|
@@ -14996,11 +15007,13 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14996
15007
|
}
|
|
14997
15008
|
};
|
|
14998
15009
|
MultiSelect.prototype.resetValueHandler = function (e) {
|
|
14999
|
-
|
|
15000
|
-
|
|
15001
|
-
|
|
15002
|
-
|
|
15003
|
-
|
|
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
|
+
}
|
|
15004
15017
|
}
|
|
15005
15018
|
};
|
|
15006
15019
|
MultiSelect.prototype.wireEvent = function () {
|
|
@@ -18126,13 +18139,21 @@ var CheckBoxSelection = /** @__PURE__ @class */ (function () {
|
|
|
18126
18139
|
CheckBoxSelection.prototype.setSearchBoxPosition = function () {
|
|
18127
18140
|
var searchBoxHeight = this.filterInput.parentElement.getBoundingClientRect().height;
|
|
18128
18141
|
var selectAllHeight = 0;
|
|
18142
|
+
var footerHeight = 0;
|
|
18143
|
+
var headerHeight = 0;
|
|
18129
18144
|
if (this.checkAllParent) {
|
|
18130
18145
|
selectAllHeight = this.checkAllParent.getBoundingClientRect().height;
|
|
18131
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
|
+
}
|
|
18132
18153
|
this.parent.popupObj.element.style.maxHeight = '100%';
|
|
18133
18154
|
this.parent.popupObj.element.style.width = '100%';
|
|
18134
|
-
this.parent.list.style.maxHeight = (window.innerHeight - searchBoxHeight - selectAllHeight) + 'px';
|
|
18135
|
-
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';
|
|
18136
18157
|
var clearElement = this.filterInput.parentElement.querySelector('.' + clearIcon);
|
|
18137
18158
|
detach(this.filterInput);
|
|
18138
18159
|
clearElement.parentElement.insertBefore(this.filterInput, clearElement);
|
|
@@ -22194,7 +22215,13 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
22194
22215
|
range.insertNode(frag);
|
|
22195
22216
|
if (lastNode) {
|
|
22196
22217
|
range = range.cloneRange();
|
|
22197
|
-
|
|
22218
|
+
if (this.isRTE) {
|
|
22219
|
+
range.setStart(lastNode, 0);
|
|
22220
|
+
range.setEnd(lastNode, lastNode.textContent.length);
|
|
22221
|
+
}
|
|
22222
|
+
else {
|
|
22223
|
+
range.setStartAfter(lastNode);
|
|
22224
|
+
}
|
|
22198
22225
|
range.collapse(true);
|
|
22199
22226
|
selection.removeAllRanges();
|
|
22200
22227
|
selection.addRange(range);
|