@syncfusion/ej2-dropdowns 34.2.5 → 34.2.7
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/README.md +14 -0
- package/dist/ej2-dropdowns.min.js +10 -1
- package/dist/ej2-dropdowns.umd.min.js +10 -1
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +159 -69
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +158 -72
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +10 -1
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +9 -0
- package/package.json +8 -8
- package/src/auto-complete/auto-complete-model.d.ts +2 -2
- package/src/auto-complete/auto-complete.d.ts +2 -2
- package/src/drop-down-list/drop-down-list-model.d.ts +1 -1
- package/src/drop-down-list/drop-down-list.d.ts +1 -1
- package/src/drop-down-list/drop-down-list.js +6 -2
- package/src/drop-down-tree/drop-down-tree-model.d.ts +3 -3
- package/src/drop-down-tree/drop-down-tree.d.ts +4 -5
- package/src/drop-down-tree/drop-down-tree.js +43 -68
- package/src/mention/mention.js +1 -1
- package/src/multi-select/multi-select-model.d.ts +1 -5
- package/src/multi-select/multi-select.d.ts +2 -5
- package/src/multi-select/multi-select.js +108 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* filename: index.d.ts
|
|
3
|
+
* version : 34.2.7
|
|
4
|
+
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
|
+
* Use of this code is subject to the terms of our license.
|
|
6
|
+
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
+
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
+
* applicable laws.
|
|
9
|
+
*/
|
|
1
10
|
import * as _dropdowns from '@syncfusion/ej2-dropdowns';
|
|
2
11
|
|
|
3
12
|
export declare namespace ej {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-dropdowns",
|
|
3
|
-
"version": "34.2.
|
|
3
|
+
"version": "34.2.7",
|
|
4
4
|
"description": "Essential JS 2 DropDown Components",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"module": "./index.js",
|
|
9
9
|
"es2015": "./dist/es6/ej2-dropdowns.es5.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@syncfusion/ej2-base": "~34.2.
|
|
12
|
-
"@syncfusion/ej2-data": "~34.2.
|
|
13
|
-
"@syncfusion/ej2-inputs": "~34.2.
|
|
14
|
-
"@syncfusion/ej2-lists": "~34.2.
|
|
15
|
-
"@syncfusion/ej2-navigations": "~34.2.
|
|
16
|
-
"@syncfusion/ej2-notifications": "~34.2.
|
|
17
|
-
"@syncfusion/ej2-popups": "~34.2.
|
|
11
|
+
"@syncfusion/ej2-base": "~34.2.6",
|
|
12
|
+
"@syncfusion/ej2-data": "~34.2.6",
|
|
13
|
+
"@syncfusion/ej2-inputs": "~34.2.7",
|
|
14
|
+
"@syncfusion/ej2-lists": "~34.2.6",
|
|
15
|
+
"@syncfusion/ej2-navigations": "~34.2.7",
|
|
16
|
+
"@syncfusion/ej2-notifications": "~34.2.6",
|
|
17
|
+
"@syncfusion/ej2-popups": "~34.2.6"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {},
|
|
20
20
|
"keywords": [
|
|
@@ -23,7 +23,7 @@ export interface AutoCompleteModel extends ComboBoxModel{
|
|
|
23
23
|
fields?: FieldSettingsModel;
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
* When set to ‘false’, consider the [`case-sensitive`](../../auto-complete/filtering
|
|
26
|
+
* When set to ‘false’, consider the [`case-sensitive`](../../auto-complete/filtering#case-sensitive-filtering)
|
|
27
27
|
* on performing the search to find suggestions.
|
|
28
28
|
* By default consider the casing.
|
|
29
29
|
*
|
|
@@ -88,7 +88,7 @@ export interface AutoCompleteModel extends ComboBoxModel{
|
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
90
|
* Determines on which filter type, the component needs to be considered on search action.
|
|
91
|
-
* The available [`FilterType`](../../auto-complete/filtering
|
|
91
|
+
* The available [`FilterType`](../../auto-complete/filtering#change-the-filter-type)
|
|
92
92
|
* and its supported data types are
|
|
93
93
|
*
|
|
94
94
|
* <table>
|
|
@@ -37,7 +37,7 @@ export declare class AutoComplete extends ComboBox {
|
|
|
37
37
|
*/
|
|
38
38
|
fields: FieldSettingsModel;
|
|
39
39
|
/**
|
|
40
|
-
* When set to ‘false’, consider the [`case-sensitive`](../../auto-complete/filtering
|
|
40
|
+
* When set to ‘false’, consider the [`case-sensitive`](../../auto-complete/filtering#case-sensitive-filtering)
|
|
41
41
|
* on performing the search to find suggestions.
|
|
42
42
|
* By default consider the casing.
|
|
43
43
|
*
|
|
@@ -97,7 +97,7 @@ export declare class AutoComplete extends ComboBox {
|
|
|
97
97
|
minLength: number;
|
|
98
98
|
/**
|
|
99
99
|
* Determines on which filter type, the component needs to be considered on search action.
|
|
100
|
-
* The available [`FilterType`](../../auto-complete/filtering
|
|
100
|
+
* The available [`FilterType`](../../auto-complete/filtering#change-the-filter-type)
|
|
101
101
|
* and its supported data types are
|
|
102
102
|
*
|
|
103
103
|
* <table>
|
|
@@ -244,7 +244,7 @@ export interface DropDownListModel extends DropDownBaseModel{
|
|
|
244
244
|
|
|
245
245
|
/**
|
|
246
246
|
* Triggers on typing a character in the filter bar when the
|
|
247
|
-
* [`allowFiltering`](
|
|
247
|
+
* [`allowFiltering`](./index-default#allowfiltering)
|
|
248
248
|
* is enabled.
|
|
249
249
|
* > For more details about the filtering refer to [`Filtering`](../../drop-down-list/filtering) documentation.
|
|
250
250
|
*
|
|
@@ -349,7 +349,7 @@ export declare class DropDownList extends DropDownBase implements IInput {
|
|
|
349
349
|
showClearButton: boolean;
|
|
350
350
|
/**
|
|
351
351
|
* Triggers on typing a character in the filter bar when the
|
|
352
|
-
* [`allowFiltering`](
|
|
352
|
+
* [`allowFiltering`](./index-default#allowfiltering)
|
|
353
353
|
* is enabled.
|
|
354
354
|
* > For more details about the filtering refer to [`Filtering`](../../drop-down-list/filtering) documentation.
|
|
355
355
|
*
|
|
@@ -624,6 +624,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
624
624
|
this.bindClearEvent();
|
|
625
625
|
};
|
|
626
626
|
DropDownList.prototype.windowResize = function () {
|
|
627
|
+
this.updateFloatLabelOverflowWidth();
|
|
627
628
|
if (this.isPopupOpen) {
|
|
628
629
|
this.popupObj.refreshPosition(this.inputWrapper.container);
|
|
629
630
|
}
|
|
@@ -1423,7 +1424,8 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1423
1424
|
};
|
|
1424
1425
|
DropDownList.prototype.onDocumentClick = function (e) {
|
|
1425
1426
|
var target = e.target;
|
|
1426
|
-
if (!
|
|
1427
|
+
if (!isNullOrUndefined(target) && !(!isNullOrUndefined(this.popupObj) &&
|
|
1428
|
+
closest(target, this.checkSelector(this.popupObj.element.id))) &&
|
|
1427
1429
|
!isNullOrUndefined(this.inputWrapper) && !this.inputWrapper.container.contains(e.target)) {
|
|
1428
1430
|
if (this.inputWrapper.container.classList.contains(dropDownListClasses.inputFocus) || this.isPopupOpen) {
|
|
1429
1431
|
this.isDocumentClick = true;
|
|
@@ -3082,7 +3084,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
3082
3084
|
ulElement = null;
|
|
3083
3085
|
},
|
|
3084
3086
|
targetExitViewport: function () {
|
|
3085
|
-
_this.
|
|
3087
|
+
if (!Browser.isDevice || (_this.allowFiltering === false && _this.isPopupOpen)) {
|
|
3088
|
+
_this.hidePopup();
|
|
3089
|
+
}
|
|
3086
3090
|
}
|
|
3087
3091
|
});
|
|
3088
3092
|
};
|
|
@@ -50,7 +50,7 @@ export interface FieldsModel {
|
|
|
50
50
|
parentValue?: string;
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* Defines the external [`Query`](https://ej2.syncfusion.com/documentation/api/data/query
|
|
53
|
+
* Defines the external [`Query`](https://ej2.syncfusion.com/documentation/api/data/query)
|
|
54
54
|
* that will execute along with the data processing.
|
|
55
55
|
*
|
|
56
56
|
* @default null
|
|
@@ -316,7 +316,7 @@ export interface DropDownTreeModel extends ComponentModel{
|
|
|
316
316
|
/**
|
|
317
317
|
* Specifies a template to render customized content for all the items.
|
|
318
318
|
* If the **itemTemplate** property is set, the template content overrides the displayed item text.
|
|
319
|
-
* The property accepts [template string](https://ej2.syncfusion.com/documentation/common/template-engine
|
|
319
|
+
* The property accepts [template string](https://ej2.syncfusion.com/documentation/common/template-engine)
|
|
320
320
|
* or HTML element ID holding the content.
|
|
321
321
|
*
|
|
322
322
|
* @default null
|
|
@@ -484,7 +484,7 @@ export interface DropDownTreeModel extends ComponentModel{
|
|
|
484
484
|
|
|
485
485
|
/**
|
|
486
486
|
* Specifies the way to customize the selected values in the Dropdown Tree component based on application needs. If the **valueTemplate** property is set, the template content overrides the displayed item text.
|
|
487
|
-
* The property accepts [template string] (https://ej2.syncfusion.com/documentation/common/template-engine
|
|
487
|
+
* The property accepts [template string] (https://ej2.syncfusion.com/documentation/common/template-engine) or HTML element ID holding the content. The context for the valueTemplate comes from the data object passed to it.
|
|
488
488
|
*
|
|
489
489
|
* @default null
|
|
490
490
|
* @angularType string | object
|
|
@@ -52,7 +52,7 @@ export declare class Fields extends ChildProperty<Fields> {
|
|
|
52
52
|
*/
|
|
53
53
|
parentValue: string;
|
|
54
54
|
/**
|
|
55
|
-
* Defines the external [`Query`](https://ej2.syncfusion.com/documentation/api/data/query
|
|
55
|
+
* Defines the external [`Query`](https://ej2.syncfusion.com/documentation/api/data/query)
|
|
56
56
|
* that will execute along with the data processing.
|
|
57
57
|
*
|
|
58
58
|
* @default null
|
|
@@ -344,6 +344,7 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
|
|
|
344
344
|
private valueTemplateContainer;
|
|
345
345
|
private previousFilterText;
|
|
346
346
|
private fallbackValue;
|
|
347
|
+
private uncheckedNodeId;
|
|
347
348
|
/**
|
|
348
349
|
* Specifies the template that renders to the popup list content of the
|
|
349
350
|
* Dropdown Tree component when the data fetch request from the remote server fails.
|
|
@@ -504,7 +505,7 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
|
|
|
504
505
|
/**
|
|
505
506
|
* Specifies a template to render customized content for all the items.
|
|
506
507
|
* If the **itemTemplate** property is set, the template content overrides the displayed item text.
|
|
507
|
-
* The property accepts [template string](https://ej2.syncfusion.com/documentation/common/template-engine
|
|
508
|
+
* The property accepts [template string](https://ej2.syncfusion.com/documentation/common/template-engine)
|
|
508
509
|
* or HTML element ID holding the content.
|
|
509
510
|
*
|
|
510
511
|
* @default null
|
|
@@ -652,7 +653,7 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
|
|
|
652
653
|
value: string[];
|
|
653
654
|
/**
|
|
654
655
|
* Specifies the way to customize the selected values in the Dropdown Tree component based on application needs. If the **valueTemplate** property is set, the template content overrides the displayed item text.
|
|
655
|
-
* The property accepts [template string] (https://ej2.syncfusion.com/documentation/common/template-engine
|
|
656
|
+
* The property accepts [template string] (https://ej2.syncfusion.com/documentation/common/template-engine) or HTML element ID holding the content. The context for the valueTemplate comes from the data object passed to it.
|
|
656
657
|
*
|
|
657
658
|
* @default null
|
|
658
659
|
* @angularType string | object
|
|
@@ -892,10 +893,8 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
|
|
|
892
893
|
private removeSelectedData;
|
|
893
894
|
private initializeValueTemplate;
|
|
894
895
|
private showOrHideValueTemplate;
|
|
895
|
-
private getFilteredTreeData;
|
|
896
896
|
private getChildren;
|
|
897
897
|
private getDirectChildren;
|
|
898
|
-
private restoreRootParentValues;
|
|
899
898
|
private updateFilteredAutoCheckValues;
|
|
900
899
|
private updateSelectedValues;
|
|
901
900
|
private setChipValues;
|
|
@@ -178,6 +178,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
178
178
|
_this.isNodeChecked = false;
|
|
179
179
|
_this.isFromFilterChange = false;
|
|
180
180
|
_this.fallbackValue = [];
|
|
181
|
+
_this.uncheckedNodeId = null;
|
|
181
182
|
return _this;
|
|
182
183
|
}
|
|
183
184
|
/**
|
|
@@ -2354,6 +2355,8 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2354
2355
|
var eventArgs = this.getEventArgs(args);
|
|
2355
2356
|
this.trigger('select', eventArgs);
|
|
2356
2357
|
this.isNodeChecked = args.action === 'check';
|
|
2358
|
+
this.uncheckedNodeId = args.action === 'uncheck' && !isNOU(args.data[0]) ?
|
|
2359
|
+
getValue('id', args.data[0]).toString() : null;
|
|
2357
2360
|
if (this.isFilteredData && args.action === 'uncheck') {
|
|
2358
2361
|
var id = getValue('id', args.data[0]).toString();
|
|
2359
2362
|
this.removeSelectedData(id, true);
|
|
@@ -2386,21 +2389,8 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2386
2389
|
this.triggerChangeEvent(this.keyEventArgs);
|
|
2387
2390
|
this.isValueChange = false;
|
|
2388
2391
|
}
|
|
2389
|
-
if (!this.isRemoteData && !this.treeSettings.loadOnDemand) {
|
|
2390
|
-
var treeData = this.treeObj.getTreeData();
|
|
2391
|
-
if (this.showCheckBox && this.treeSettings.autoCheck &&
|
|
2392
|
-
treeData.length > 0 && this.treeData && this.treeData.length > 0) {
|
|
2393
|
-
for (var i = 0; i < treeData.length; i++) {
|
|
2394
|
-
for (var j = 0; j < this.treeData.length; j++) {
|
|
2395
|
-
if (treeData[i][this.fields.value] === this.treeData[j][this.fields.value]) {
|
|
2396
|
-
this.treeData[j].selected = treeData[i].selected !== undefined ?
|
|
2397
|
-
treeData[i].selected : false;
|
|
2398
|
-
}
|
|
2399
|
-
}
|
|
2400
|
-
}
|
|
2401
|
-
}
|
|
2402
|
-
}
|
|
2403
2392
|
this.updateIndeterminateNodes();
|
|
2393
|
+
this.uncheckedNodeId = null;
|
|
2404
2394
|
};
|
|
2405
2395
|
DropDownTree.prototype.beforeCheck = function (args) {
|
|
2406
2396
|
if (args.isInteracted) {
|
|
@@ -2694,15 +2684,13 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2694
2684
|
}
|
|
2695
2685
|
}
|
|
2696
2686
|
};
|
|
2697
|
-
DropDownTree.prototype.getFilteredTreeData = function () {
|
|
2698
|
-
return this.treeData;
|
|
2699
|
-
};
|
|
2700
2687
|
DropDownTree.prototype.getChildren = function (parentId, result) {
|
|
2701
2688
|
var _this = this;
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2689
|
+
this.treeData.forEach(function (item) {
|
|
2690
|
+
var itemId = !isNOU(item) ? getValue(_this.fields.value, item) : null;
|
|
2691
|
+
var itemPid = !isNOU(item) ? getValue(_this.fields.parentValue, item) : null;
|
|
2692
|
+
if (!isNOU(itemId) && !isNOU(itemPid) && itemPid.toString() === parentId.toString()) {
|
|
2693
|
+
var childId = itemId.toString();
|
|
2706
2694
|
if (result.indexOf(childId) === -1) {
|
|
2707
2695
|
result.push(childId);
|
|
2708
2696
|
_this.getChildren(childId, result);
|
|
@@ -2711,41 +2699,17 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2711
2699
|
});
|
|
2712
2700
|
};
|
|
2713
2701
|
DropDownTree.prototype.getDirectChildren = function (parentId) {
|
|
2714
|
-
|
|
2702
|
+
var _this = this;
|
|
2703
|
+
return this.treeData
|
|
2715
2704
|
.filter(function (childNode) {
|
|
2716
|
-
|
|
2705
|
+
var childId = !isNOU(childNode) ? getValue(_this.fields.value, childNode) : null;
|
|
2706
|
+
var childPid = !isNOU(childNode) ? getValue(_this.fields.parentValue, childNode) : null;
|
|
2707
|
+
return !isNOU(childId) && !isNOU(childPid) && childPid.toString() === parentId;
|
|
2717
2708
|
})
|
|
2718
|
-
.map(function (childNode) { return childNode.
|
|
2719
|
-
};
|
|
2720
|
-
DropDownTree.prototype.restoreRootParentValues = function () {
|
|
2721
|
-
var _this = this;
|
|
2722
|
-
var treeData = this.getFilteredTreeData();
|
|
2723
|
-
treeData.forEach(function (node) {
|
|
2724
|
-
if (isNOU(node) || isNOU(node.id)) {
|
|
2725
|
-
return;
|
|
2726
|
-
}
|
|
2727
|
-
if (isNOU(node.pid)) {
|
|
2728
|
-
var rootId = node.id.toString();
|
|
2729
|
-
var currentValues_1 = _this.value.map(function (item) {
|
|
2730
|
-
return item.toString();
|
|
2731
|
-
});
|
|
2732
|
-
if (currentValues_1.indexOf(rootId) === -1) {
|
|
2733
|
-
var childValues = [];
|
|
2734
|
-
_this.getChildren(rootId, childValues);
|
|
2735
|
-
var hasSelectedChild = childValues.some(function (childId) { return currentValues_1.indexOf(childId) !== -1; });
|
|
2736
|
-
if (hasSelectedChild) {
|
|
2737
|
-
_this.value.push(rootId);
|
|
2738
|
-
}
|
|
2739
|
-
}
|
|
2740
|
-
}
|
|
2741
|
-
});
|
|
2709
|
+
.map(function (childNode) { return getValue(_this.fields.value, childNode).toString(); });
|
|
2742
2710
|
};
|
|
2743
2711
|
DropDownTree.prototype.updateFilteredAutoCheckValues = function () {
|
|
2744
2712
|
var _this = this;
|
|
2745
|
-
var treeData = this.getFilteredTreeData();
|
|
2746
|
-
if (!this.isNodeChecked && Array.isArray(this.value) && this.value.length > 0 && this.showCheckBox) {
|
|
2747
|
-
this.restoreRootParentValues();
|
|
2748
|
-
}
|
|
2749
2713
|
var currentValues = Array.isArray(this.value) ? this.value.map(function (item) { return item.toString(); }) : [];
|
|
2750
2714
|
var removeParent = function (parentId) {
|
|
2751
2715
|
_this.value = _this.value.filter(function (value) { return value.toString() !== parentId; });
|
|
@@ -2756,12 +2720,14 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2756
2720
|
_this.value.push(value);
|
|
2757
2721
|
}
|
|
2758
2722
|
});
|
|
2759
|
-
treeData.forEach(function (node) {
|
|
2760
|
-
|
|
2723
|
+
this.treeData.forEach(function (node) {
|
|
2724
|
+
var nodeId = isNOU(node) ? null : getValue(_this.fields.value, node);
|
|
2725
|
+
var nodeHasChild = !isNOU(node) && !!_this.fields.hasChildren && getValue(_this.fields.hasChildren, node) === true;
|
|
2726
|
+
if (isNOU(nodeId)) {
|
|
2761
2727
|
return;
|
|
2762
2728
|
}
|
|
2763
|
-
var parentId =
|
|
2764
|
-
if (
|
|
2729
|
+
var parentId = nodeId.toString();
|
|
2730
|
+
if (nodeHasChild && _this.value.indexOf(parentId) !== -1) {
|
|
2765
2731
|
var childValues = [];
|
|
2766
2732
|
_this.getChildren(parentId, childValues);
|
|
2767
2733
|
if (_this.value.indexOf(parentId) === -1) {
|
|
@@ -2775,14 +2741,16 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2775
2741
|
}
|
|
2776
2742
|
currentValues = _this.value.map(function (item) { return item.toString(); });
|
|
2777
2743
|
});
|
|
2778
|
-
treeData.forEach(function (node) {
|
|
2779
|
-
|
|
2744
|
+
this.treeData.forEach(function (node) {
|
|
2745
|
+
var nodeId = isNOU(node) ? null : getValue(_this.fields.value, node);
|
|
2746
|
+
var nodeHasChild = !isNOU(node) && !!_this.fields.hasChildren && getValue(_this.fields.hasChildren, node) === true;
|
|
2747
|
+
if (isNOU(nodeId)) {
|
|
2780
2748
|
return;
|
|
2781
2749
|
}
|
|
2782
|
-
if (!
|
|
2750
|
+
if (!nodeHasChild) {
|
|
2783
2751
|
return;
|
|
2784
2752
|
}
|
|
2785
|
-
var parentId =
|
|
2753
|
+
var parentId = nodeId.toString();
|
|
2786
2754
|
var directChildren = _this.getDirectChildren(parentId);
|
|
2787
2755
|
if (!directChildren.length) {
|
|
2788
2756
|
return;
|
|
@@ -2816,14 +2784,19 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2816
2784
|
return;
|
|
2817
2785
|
}
|
|
2818
2786
|
var removeValues = [];
|
|
2819
|
-
treeData.forEach(function (node) {
|
|
2820
|
-
|
|
2787
|
+
this.treeData.forEach(function (node) {
|
|
2788
|
+
var nodeId = isNOU(node) ? null : getValue(_this.fields.value, node);
|
|
2789
|
+
var nodeHasChild = !isNOU(node) && !!_this.fields.hasChildren && getValue(_this.fields.hasChildren, node) === true;
|
|
2790
|
+
if (isNOU(nodeId)) {
|
|
2791
|
+
return;
|
|
2792
|
+
}
|
|
2793
|
+
if (!nodeHasChild) {
|
|
2821
2794
|
return;
|
|
2822
2795
|
}
|
|
2823
|
-
|
|
2796
|
+
var parentId = nodeId.toString();
|
|
2797
|
+
if (parentId !== _this.uncheckedNodeId) {
|
|
2824
2798
|
return;
|
|
2825
2799
|
}
|
|
2826
|
-
var parentId = node.id.toString();
|
|
2827
2800
|
if (currentValues.indexOf(parentId) === -1) {
|
|
2828
2801
|
var childValues = [];
|
|
2829
2802
|
_this.getChildren(parentId, childValues);
|
|
@@ -2839,18 +2812,20 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2839
2812
|
var stabilized = false;
|
|
2840
2813
|
var valueBeforeReconciliation = this.value.slice();
|
|
2841
2814
|
var iterationCount = 0;
|
|
2842
|
-
var maxIterations = treeData.length + 1;
|
|
2815
|
+
var maxIterations = this.treeData.length + 1;
|
|
2843
2816
|
while (!stabilized && iterationCount < maxIterations) {
|
|
2844
2817
|
stabilized = true;
|
|
2845
2818
|
iterationCount++;
|
|
2846
|
-
treeData.forEach(function (node) {
|
|
2847
|
-
|
|
2819
|
+
this.treeData.forEach(function (node) {
|
|
2820
|
+
var nodeId = isNOU(node) ? null : getValue(_this.fields.value, node);
|
|
2821
|
+
var nodeHasChild = !isNOU(node) && !!_this.fields.hasChildren && getValue(_this.fields.hasChildren, node) === true;
|
|
2822
|
+
if (isNOU(nodeId)) {
|
|
2848
2823
|
return;
|
|
2849
2824
|
}
|
|
2850
|
-
if (!
|
|
2825
|
+
if (!nodeHasChild) {
|
|
2851
2826
|
return;
|
|
2852
2827
|
}
|
|
2853
|
-
var parentId =
|
|
2828
|
+
var parentId = nodeId.toString();
|
|
2854
2829
|
var directChildren = _this.getDirectChildren(parentId);
|
|
2855
2830
|
if (!directChildren.length) {
|
|
2856
2831
|
return;
|
package/src/mention/mention.js
CHANGED
|
@@ -456,7 +456,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
456
456
|
? lastWordRange.substring(lastWordRange.lastIndexOf(this.mentionChar) + 1).trim()
|
|
457
457
|
: lastWordRange.replace(this.mentionChar, '');
|
|
458
458
|
}
|
|
459
|
-
if (this.queryString !== '' && e.keyCode === 8 && lastWordRange.includes(this.mentionChar) && !this.isPopupOpen &&
|
|
459
|
+
if (this.queryString !== '' && e.keyCode === 8 && lastWordRange.includes(this.mentionChar) && !this.isPopupOpen && !isNullOrUndefined(this.displayTemplate) &&
|
|
460
460
|
((typeof this.displayTemplate === 'function' ? this.displayTemplate() : this.displayTemplate)).includes(this.mentionChar)) {
|
|
461
461
|
this.queryString = '';
|
|
462
462
|
}
|
|
@@ -197,8 +197,6 @@ export interface MultiSelectModel extends DropDownBaseModel{
|
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
199
|
* Gets or sets the height of the popup list. By default it renders based on its list item.
|
|
200
|
-
* > For more details about the popup configuration refer to
|
|
201
|
-
* [`Popup Configuration`](../../multi-select/getting-started/#configure-the-popup-list) documentation.
|
|
202
200
|
*
|
|
203
201
|
* @default '300px'
|
|
204
202
|
* @aspType string
|
|
@@ -207,8 +205,6 @@ export interface MultiSelectModel extends DropDownBaseModel{
|
|
|
207
205
|
|
|
208
206
|
/**
|
|
209
207
|
* Gets or sets the width of the popup list and percentage values has calculated based on input width.
|
|
210
|
-
* > For more details about the popup configuration refer to
|
|
211
|
-
* [`Popup Configuration`](../../multi-select/getting-started/#configure-the-popup-list) documentation.
|
|
212
208
|
*
|
|
213
209
|
* @default '100%'
|
|
214
210
|
* @aspType string
|
|
@@ -426,7 +422,7 @@ export interface MultiSelectModel extends DropDownBaseModel{
|
|
|
426
422
|
delimiterChar?: string;
|
|
427
423
|
|
|
428
424
|
/**
|
|
429
|
-
* Sets [`case sensitive`](../../multi-select/filtering
|
|
425
|
+
* Sets [`case sensitive`](../../multi-select/filtering#case-sensitive-filtering)
|
|
430
426
|
* option for filter operation.
|
|
431
427
|
*
|
|
432
428
|
* @default true
|
|
@@ -255,8 +255,6 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
255
255
|
width: string | number;
|
|
256
256
|
/**
|
|
257
257
|
* Gets or sets the height of the popup list. By default it renders based on its list item.
|
|
258
|
-
* > For more details about the popup configuration refer to
|
|
259
|
-
* [`Popup Configuration`](../../multi-select/getting-started/#configure-the-popup-list) documentation.
|
|
260
258
|
*
|
|
261
259
|
* @default '300px'
|
|
262
260
|
* @aspType string
|
|
@@ -264,8 +262,6 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
264
262
|
popupHeight: string | number;
|
|
265
263
|
/**
|
|
266
264
|
* Gets or sets the width of the popup list and percentage values has calculated based on input width.
|
|
267
|
-
* > For more details about the popup configuration refer to
|
|
268
|
-
* [`Popup Configuration`](../../multi-select/getting-started/#configure-the-popup-list) documentation.
|
|
269
265
|
*
|
|
270
266
|
* @default '100%'
|
|
271
267
|
* @aspType string
|
|
@@ -461,7 +457,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
461
457
|
*/
|
|
462
458
|
delimiterChar: string;
|
|
463
459
|
/**
|
|
464
|
-
* Sets [`case sensitive`](../../multi-select/filtering
|
|
460
|
+
* Sets [`case sensitive`](../../multi-select/filtering#case-sensitive-filtering)
|
|
465
461
|
* option for filter operation.
|
|
466
462
|
*
|
|
467
463
|
* @default true
|
|
@@ -837,6 +833,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
837
833
|
protected preRender(): void;
|
|
838
834
|
protected getLocaleName(): string;
|
|
839
835
|
private initializeData;
|
|
836
|
+
private sanitizeData;
|
|
840
837
|
private updateData;
|
|
841
838
|
private initialTextUpdate;
|
|
842
839
|
protected renderList(isEmptyData?: boolean): void;
|