@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
|
@@ -4447,6 +4447,8 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
4447
4447
|
this.selectedData = [];
|
|
4448
4448
|
this.filterDelayTime = 300;
|
|
4449
4449
|
this.isClicked = false;
|
|
4450
|
+
// Specifies if the checkAll method has been called
|
|
4451
|
+
this.isCheckAllCalled = false;
|
|
4450
4452
|
}
|
|
4451
4453
|
/**
|
|
4452
4454
|
* Get the properties to be maintained in the persisted state.
|
|
@@ -5424,6 +5426,7 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
5424
5426
|
frameSpan.classList.add(CHECK);
|
|
5425
5427
|
ariaState = 'true';
|
|
5426
5428
|
if (!this.isReverseUpdate) {
|
|
5429
|
+
this.isCheckAllCalled = true;
|
|
5427
5430
|
this.treeObj.checkAll();
|
|
5428
5431
|
if (!this.changeOnBlur) {
|
|
5429
5432
|
this.triggerChangeEvent(e);
|
|
@@ -6224,13 +6227,14 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
6224
6227
|
const nodes = this.treeObj.element.querySelectorAll('li');
|
|
6225
6228
|
const checkedNodes = this.treeObj.element.querySelectorAll('li .e-checkbox-wrapper[aria-checked=true]');
|
|
6226
6229
|
const wrap = closest(this.checkBoxElement, '.' + CHECKBOXWRAP);
|
|
6227
|
-
if (wrap && args.action === 'uncheck') {
|
|
6230
|
+
if (wrap && args.action === 'uncheck' && (args.isInteracted || checkedNodes.length === 0)) {
|
|
6228
6231
|
this.isReverseUpdate = true;
|
|
6229
6232
|
this.changeState(wrap, 'uncheck');
|
|
6230
6233
|
this.isReverseUpdate = false;
|
|
6231
6234
|
}
|
|
6232
|
-
else if (wrap && args.action === 'check' && checkedNodes.length === nodes.length) {
|
|
6235
|
+
else if (wrap && args.action === 'check' && checkedNodes.length === nodes.length && this.isCheckAllCalled) {
|
|
6233
6236
|
this.isReverseUpdate = true;
|
|
6237
|
+
this.isCheckAllCalled = false;
|
|
6234
6238
|
this.changeState(wrap, 'check');
|
|
6235
6239
|
this.isReverseUpdate = false;
|
|
6236
6240
|
}
|
|
@@ -6749,6 +6753,7 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
6749
6753
|
selectAllItems(state) {
|
|
6750
6754
|
if (this.showCheckBox) {
|
|
6751
6755
|
if (state) {
|
|
6756
|
+
this.isCheckAllCalled = true;
|
|
6752
6757
|
this.treeObj.checkAll();
|
|
6753
6758
|
}
|
|
6754
6759
|
else {
|
|
@@ -16072,7 +16077,7 @@ let Mention = class Mention extends DropDownBase {
|
|
|
16072
16077
|
const isNavigation = (e.action === 'down' || e.action === 'up' || e.action === 'pageUp' || e.action === 'pageDown'
|
|
16073
16078
|
|| e.action === 'home' || e.action === 'end');
|
|
16074
16079
|
const isTabAction = e.action === 'tab' || e.action === 'close';
|
|
16075
|
-
if (this.list === undefined && !this.isRequested && !isTabAction && e.action !== 'escape') {
|
|
16080
|
+
if (this.list === undefined && !this.isRequested && !isTabAction && e.action !== 'escape' && e.action !== 'space') {
|
|
16076
16081
|
this.renderList();
|
|
16077
16082
|
}
|
|
16078
16083
|
if (isNullOrUndefined(this.list) || (!isNullOrUndefined(this.liCollections) &&
|
|
@@ -16216,11 +16221,11 @@ let Mention = class Mention extends DropDownBase {
|
|
|
16216
16221
|
}
|
|
16217
16222
|
}
|
|
16218
16223
|
else if (this.allowSpaces && this.queryString !== '' && currentRange && currentRange.trim() !== '' && currentRange.replace('\u00a0', ' ').lastIndexOf(' ') < currentRange.length - 1 &&
|
|
16219
|
-
e.keyCode !== 38 && e.keyCode !== 40 && e.keyCode !== 8) {
|
|
16224
|
+
e.keyCode !== 38 && e.keyCode !== 40 && e.keyCode !== 8 && this.mentionChar.charCodeAt(0) === lastWordRange.charCodeAt(0)) {
|
|
16220
16225
|
this.queryString = currentRange.substring(currentRange.lastIndexOf(this.mentionChar) + 1).replace('\u00a0', ' ');
|
|
16221
16226
|
this.searchLists(e);
|
|
16222
16227
|
}
|
|
16223
|
-
else if (this.queryString === '' && this.isPopupOpen && e.keyCode !== 38 && e.keyCode !== 40) {
|
|
16228
|
+
else if (this.queryString === '' && this.isPopupOpen && e.keyCode !== 38 && e.keyCode !== 40 && this.mentionChar.charCodeAt(0) === lastWordRange.charCodeAt(0)) {
|
|
16224
16229
|
this.searchLists(e);
|
|
16225
16230
|
if (!this.isListResetted) {
|
|
16226
16231
|
this.resetList(this.dataSource, this.fields);
|