@syncfusion/ej2-dropdowns 20.4.48 → 20.4.49
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/.eslintrc.json +259 -0
- package/CHANGELOG.md +8 -0
- 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 +10 -5
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +10 -5
- 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-tree/drop-down-tree.d.ts +1 -0
- package/src/drop-down-tree/drop-down-tree.js +7 -2
- package/src/mention/mention.js +3 -3
- package/tslint.json +111 -0
|
@@ -4541,6 +4541,8 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
4541
4541
|
_this.selectedData = [];
|
|
4542
4542
|
_this.filterDelayTime = 300;
|
|
4543
4543
|
_this.isClicked = false;
|
|
4544
|
+
// Specifies if the checkAll method has been called
|
|
4545
|
+
_this.isCheckAllCalled = false;
|
|
4544
4546
|
return _this;
|
|
4545
4547
|
}
|
|
4546
4548
|
/**
|
|
@@ -5524,6 +5526,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
5524
5526
|
frameSpan.classList.add(CHECK);
|
|
5525
5527
|
ariaState = 'true';
|
|
5526
5528
|
if (!this.isReverseUpdate) {
|
|
5529
|
+
this.isCheckAllCalled = true;
|
|
5527
5530
|
this.treeObj.checkAll();
|
|
5528
5531
|
if (!this.changeOnBlur) {
|
|
5529
5532
|
this.triggerChangeEvent(e);
|
|
@@ -6329,13 +6332,14 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
6329
6332
|
var nodes = this.treeObj.element.querySelectorAll('li');
|
|
6330
6333
|
var checkedNodes = this.treeObj.element.querySelectorAll('li .e-checkbox-wrapper[aria-checked=true]');
|
|
6331
6334
|
var wrap = closest(this.checkBoxElement, '.' + CHECKBOXWRAP);
|
|
6332
|
-
if (wrap && args.action === 'uncheck') {
|
|
6335
|
+
if (wrap && args.action === 'uncheck' && (args.isInteracted || checkedNodes.length === 0)) {
|
|
6333
6336
|
this.isReverseUpdate = true;
|
|
6334
6337
|
this.changeState(wrap, 'uncheck');
|
|
6335
6338
|
this.isReverseUpdate = false;
|
|
6336
6339
|
}
|
|
6337
|
-
else if (wrap && args.action === 'check' && checkedNodes.length === nodes.length) {
|
|
6340
|
+
else if (wrap && args.action === 'check' && checkedNodes.length === nodes.length && this.isCheckAllCalled) {
|
|
6338
6341
|
this.isReverseUpdate = true;
|
|
6342
|
+
this.isCheckAllCalled = false;
|
|
6339
6343
|
this.changeState(wrap, 'check');
|
|
6340
6344
|
this.isReverseUpdate = false;
|
|
6341
6345
|
}
|
|
@@ -6854,6 +6858,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
6854
6858
|
DropDownTree.prototype.selectAllItems = function (state) {
|
|
6855
6859
|
if (this.showCheckBox) {
|
|
6856
6860
|
if (state) {
|
|
6861
|
+
this.isCheckAllCalled = true;
|
|
6857
6862
|
this.treeObj.checkAll();
|
|
6858
6863
|
}
|
|
6859
6864
|
else {
|
|
@@ -16330,7 +16335,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
16330
16335
|
var isNavigation = (e.action === 'down' || e.action === 'up' || e.action === 'pageUp' || e.action === 'pageDown'
|
|
16331
16336
|
|| e.action === 'home' || e.action === 'end');
|
|
16332
16337
|
var isTabAction = e.action === 'tab' || e.action === 'close';
|
|
16333
|
-
if (this.list === undefined && !this.isRequested && !isTabAction && e.action !== 'escape') {
|
|
16338
|
+
if (this.list === undefined && !this.isRequested && !isTabAction && e.action !== 'escape' && e.action !== 'space') {
|
|
16334
16339
|
this.renderList();
|
|
16335
16340
|
}
|
|
16336
16341
|
if (isNullOrUndefined(this.list) || (!isNullOrUndefined(this.liCollections) &&
|
|
@@ -16474,11 +16479,11 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
16474
16479
|
}
|
|
16475
16480
|
}
|
|
16476
16481
|
else if (this.allowSpaces && this.queryString !== '' && currentRange && currentRange.trim() !== '' && currentRange.replace('\u00a0', ' ').lastIndexOf(' ') < currentRange.length - 1 &&
|
|
16477
|
-
e.keyCode !== 38 && e.keyCode !== 40 && e.keyCode !== 8) {
|
|
16482
|
+
e.keyCode !== 38 && e.keyCode !== 40 && e.keyCode !== 8 && this.mentionChar.charCodeAt(0) === lastWordRange.charCodeAt(0)) {
|
|
16478
16483
|
this.queryString = currentRange.substring(currentRange.lastIndexOf(this.mentionChar) + 1).replace('\u00a0', ' ');
|
|
16479
16484
|
this.searchLists(e);
|
|
16480
16485
|
}
|
|
16481
|
-
else if (this.queryString === '' && this.isPopupOpen && e.keyCode !== 38 && e.keyCode !== 40) {
|
|
16486
|
+
else if (this.queryString === '' && this.isPopupOpen && e.keyCode !== 38 && e.keyCode !== 40 && this.mentionChar.charCodeAt(0) === lastWordRange.charCodeAt(0)) {
|
|
16482
16487
|
this.searchLists(e);
|
|
16483
16488
|
if (!this.isListResetted) {
|
|
16484
16489
|
this.resetList(this.dataSource, this.fields);
|