@syncfusion/ej2-dropdowns 34.1.32 → 34.2.2
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 +263 -0
- package/aceconfig.js +17 -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 +183 -6
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +191 -6
- 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 +8 -8
- package/src/drop-down-tree/drop-down-tree.d.ts +5 -0
- package/src/drop-down-tree/drop-down-tree.js +142 -0
- package/src/list-box/list-box.js +5 -5
- package/src/multi-select/multi-select.d.ts +2 -0
- package/src/multi-select/multi-select.js +44 -1
- package/styles/auto-complete/_variables.scss +1 -1
- package/styles/bds-lite.css +4 -1
- package/styles/bds.css +4 -1
- package/styles/bootstrap-dark-lite.css +4 -0
- package/styles/bootstrap-dark.css +4 -0
- package/styles/bootstrap-lite.css +4 -0
- package/styles/bootstrap.css +4 -0
- package/styles/bootstrap4-lite.css +4 -0
- package/styles/bootstrap4.css +4 -0
- package/styles/bootstrap5-dark-lite.css +4 -0
- package/styles/bootstrap5-dark.css +4 -0
- package/styles/bootstrap5-lite.css +4 -1
- package/styles/bootstrap5.3-lite.css +4 -1
- package/styles/bootstrap5.3.css +4 -1
- package/styles/bootstrap5.css +4 -1
- package/styles/combo-box/_variables.scss +1 -1
- package/styles/drop-down-base/_variables.scss +1 -1
- package/styles/drop-down-list/_variables.scss +1 -1
- package/styles/drop-down-tree/_variables.scss +1 -1
- package/styles/fabric-dark-lite.css +4 -0
- package/styles/fabric-dark.css +4 -0
- package/styles/fabric-lite.css +4 -0
- package/styles/fabric.css +4 -0
- package/styles/fluent-dark-lite.css +4 -0
- package/styles/fluent-dark.css +4 -0
- package/styles/fluent-lite.css +4 -1
- package/styles/fluent.css +4 -1
- package/styles/fluent2-lite.css +4 -1
- package/styles/fluent2.css +4 -1
- package/styles/highcontrast-light-lite.css +4 -0
- package/styles/highcontrast-light.css +4 -0
- package/styles/highcontrast-lite.css +4 -0
- package/styles/highcontrast.css +4 -0
- package/styles/list-box/_variables.scss +1 -1
- package/styles/material-dark-lite.css +4 -0
- package/styles/material-dark.css +4 -0
- package/styles/material-lite.css +4 -0
- package/styles/material.css +4 -0
- package/styles/material3-dark-lite.css +4 -0
- package/styles/material3-dark.css +4 -0
- package/styles/material3-lite.css +4 -1
- package/styles/material3.css +4 -1
- package/styles/mention/_layout.scss +3 -4
- package/styles/mention/_variables.scss +1 -1
- package/styles/mention/bds.css +5 -0
- package/styles/mention/bootstrap-dark.css +3 -0
- package/styles/mention/bootstrap.css +3 -0
- package/styles/mention/bootstrap4.css +3 -0
- package/styles/mention/bootstrap5-dark.css +3 -0
- package/styles/mention/bootstrap5.3.css +4 -1
- package/styles/mention/bootstrap5.css +4 -1
- package/styles/mention/fabric-dark.css +3 -0
- package/styles/mention/fabric.css +3 -0
- package/styles/mention/fluent-dark.css +3 -0
- package/styles/mention/fluent.css +4 -1
- package/styles/mention/fluent2.css +5 -0
- package/styles/mention/highcontrast-light.css +3 -0
- package/styles/mention/highcontrast.css +3 -0
- package/styles/mention/material-dark.css +3 -0
- package/styles/mention/material.css +3 -0
- package/styles/mention/material3-dark.css +4 -1
- package/styles/mention/material3.css +5 -0
- package/styles/mention/tailwind-dark.css +3 -0
- package/styles/mention/tailwind.css +4 -1
- package/styles/mention/tailwind3.css +5 -0
- package/styles/multi-select/_variables.scss +1 -1
- package/styles/tailwind-dark-lite.css +4 -0
- package/styles/tailwind-dark.css +4 -0
- package/styles/tailwind-lite.css +4 -1
- package/styles/tailwind.css +4 -1
- package/styles/tailwind3-lite.css +4 -1
- package/styles/tailwind3.css +4 -1
- package/tslint.json +111 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 34.
|
|
3
|
+
* version : 34.2.2
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-dropdowns",
|
|
3
|
-
"version": "34.
|
|
3
|
+
"version": "34.2.2",
|
|
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.
|
|
12
|
-
"@syncfusion/ej2-data": "~34.
|
|
13
|
-
"@syncfusion/ej2-inputs": "~34.
|
|
14
|
-
"@syncfusion/ej2-lists": "~34.
|
|
15
|
-
"@syncfusion/ej2-navigations": "~34.
|
|
16
|
-
"@syncfusion/ej2-notifications": "~34.
|
|
17
|
-
"@syncfusion/ej2-popups": "~34.
|
|
11
|
+
"@syncfusion/ej2-base": "~34.2.2",
|
|
12
|
+
"@syncfusion/ej2-data": "~34.2.2",
|
|
13
|
+
"@syncfusion/ej2-inputs": "~34.2.2",
|
|
14
|
+
"@syncfusion/ej2-lists": "~34.2.2",
|
|
15
|
+
"@syncfusion/ej2-navigations": "~34.2.2",
|
|
16
|
+
"@syncfusion/ej2-notifications": "~34.2.2",
|
|
17
|
+
"@syncfusion/ej2-popups": "~34.2.2"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {},
|
|
20
20
|
"keywords": [
|
|
@@ -339,6 +339,7 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
|
|
|
339
339
|
private documentClickHandler;
|
|
340
340
|
private windowResizeContext;
|
|
341
341
|
private isCheckAllCalled;
|
|
342
|
+
private isNodeChecked;
|
|
342
343
|
private isFromFilterChange;
|
|
343
344
|
private valueTemplateContainer;
|
|
344
345
|
private previousFilterText;
|
|
@@ -890,6 +891,10 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
|
|
|
890
891
|
private removeSelectedData;
|
|
891
892
|
private initializeValueTemplate;
|
|
892
893
|
private showOrHideValueTemplate;
|
|
894
|
+
private getFilteredTreeData;
|
|
895
|
+
private getChildren;
|
|
896
|
+
private getDirectChildren;
|
|
897
|
+
private updateFilteredAutoCheckValues;
|
|
893
898
|
private updateSelectedValues;
|
|
894
899
|
private setChipValues;
|
|
895
900
|
private setTagValues;
|
|
@@ -175,6 +175,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
175
175
|
_this.windowResizeContext = _this.windowResize.bind(_this);
|
|
176
176
|
// Specifies if the checkAll method has been called
|
|
177
177
|
_this.isCheckAllCalled = false;
|
|
178
|
+
_this.isNodeChecked = false;
|
|
178
179
|
_this.isFromFilterChange = false;
|
|
179
180
|
_this.fallbackValue = [];
|
|
180
181
|
return _this;
|
|
@@ -2230,6 +2231,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2230
2231
|
DropDownTree.prototype.onNodeChecked = function (args) {
|
|
2231
2232
|
var eventArgs = this.getEventArgs(args);
|
|
2232
2233
|
this.trigger('select', eventArgs);
|
|
2234
|
+
this.isNodeChecked = args.action === 'check';
|
|
2233
2235
|
if (this.isFilteredData && args.action === 'uncheck') {
|
|
2234
2236
|
var id = getValue('id', args.data[0]).toString();
|
|
2235
2237
|
this.removeSelectedData(id, true);
|
|
@@ -2555,6 +2557,143 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2555
2557
|
}
|
|
2556
2558
|
}
|
|
2557
2559
|
};
|
|
2560
|
+
DropDownTree.prototype.getFilteredTreeData = function () {
|
|
2561
|
+
return this.treeData;
|
|
2562
|
+
};
|
|
2563
|
+
DropDownTree.prototype.getChildren = function (parentId, result) {
|
|
2564
|
+
var _this = this;
|
|
2565
|
+
var treeData = this.getFilteredTreeData();
|
|
2566
|
+
treeData.forEach(function (item) {
|
|
2567
|
+
if (!isNOU(item) && !isNOU(item.pid) && !isNOU(item.id) && item.pid.toString() === parentId.toString()) {
|
|
2568
|
+
var childId = item.id.toString();
|
|
2569
|
+
if (result.indexOf(childId) === -1) {
|
|
2570
|
+
result.push(childId);
|
|
2571
|
+
_this.getChildren(childId, result);
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
});
|
|
2575
|
+
};
|
|
2576
|
+
DropDownTree.prototype.getDirectChildren = function (parentId) {
|
|
2577
|
+
return this.getFilteredTreeData()
|
|
2578
|
+
.filter(function (childNode) {
|
|
2579
|
+
return !isNOU(childNode) && !isNOU(childNode.pid) && !isNOU(childNode.id) && childNode.pid.toString() === parentId;
|
|
2580
|
+
})
|
|
2581
|
+
.map(function (childNode) { return childNode.id.toString(); });
|
|
2582
|
+
};
|
|
2583
|
+
DropDownTree.prototype.updateFilteredAutoCheckValues = function () {
|
|
2584
|
+
var _this = this;
|
|
2585
|
+
var treeData = this.getFilteredTreeData();
|
|
2586
|
+
var currentValues = Array.isArray(this.value) ? this.value.map(function (item) { return item.toString(); }) : [];
|
|
2587
|
+
var removeParent = function (parentId) {
|
|
2588
|
+
_this.value = _this.value.filter(function (value) { return value.toString() !== parentId; });
|
|
2589
|
+
};
|
|
2590
|
+
if (this.isNodeChecked) {
|
|
2591
|
+
this.treeObj.checkedNodes.map(function (item) { return item.toString(); }).forEach(function (value) {
|
|
2592
|
+
if (_this.value.indexOf(value) === -1) {
|
|
2593
|
+
_this.value.push(value);
|
|
2594
|
+
}
|
|
2595
|
+
});
|
|
2596
|
+
treeData.forEach(function (node) {
|
|
2597
|
+
if (isNOU(node) || isNOU(node.id)) {
|
|
2598
|
+
return;
|
|
2599
|
+
}
|
|
2600
|
+
var parentId = node.id.toString();
|
|
2601
|
+
if (node.haschild && _this.value.indexOf(parentId) !== -1) {
|
|
2602
|
+
var childValues = [];
|
|
2603
|
+
_this.getChildren(parentId, childValues);
|
|
2604
|
+
if (_this.value.indexOf(parentId) === -1) {
|
|
2605
|
+
_this.value.push(parentId);
|
|
2606
|
+
}
|
|
2607
|
+
childValues.forEach(function (value) {
|
|
2608
|
+
if (_this.value.indexOf(value) === -1) {
|
|
2609
|
+
_this.value.push(value);
|
|
2610
|
+
}
|
|
2611
|
+
});
|
|
2612
|
+
}
|
|
2613
|
+
currentValues = _this.value.map(function (item) { return item.toString(); });
|
|
2614
|
+
});
|
|
2615
|
+
treeData.forEach(function (node) {
|
|
2616
|
+
if (isNOU(node) || isNOU(node.id)) {
|
|
2617
|
+
return;
|
|
2618
|
+
}
|
|
2619
|
+
if (!node.haschild) {
|
|
2620
|
+
return;
|
|
2621
|
+
}
|
|
2622
|
+
var parentId = node.id.toString();
|
|
2623
|
+
var directChildren = _this.getDirectChildren(parentId);
|
|
2624
|
+
if (!directChildren.length) {
|
|
2625
|
+
return;
|
|
2626
|
+
}
|
|
2627
|
+
var allChildrenSelected = directChildren.every(function (childId) { return _this.value.indexOf(childId) !== -1; });
|
|
2628
|
+
if (allChildrenSelected) {
|
|
2629
|
+
var childValues = [];
|
|
2630
|
+
_this.getChildren(parentId, childValues);
|
|
2631
|
+
if (_this.value.indexOf(parentId) === -1) {
|
|
2632
|
+
_this.value.push(parentId);
|
|
2633
|
+
}
|
|
2634
|
+
childValues.forEach(function (value) {
|
|
2635
|
+
if (_this.value.indexOf(value) === -1) {
|
|
2636
|
+
_this.value.push(value);
|
|
2637
|
+
}
|
|
2638
|
+
});
|
|
2639
|
+
}
|
|
2640
|
+
else {
|
|
2641
|
+
removeParent(parentId);
|
|
2642
|
+
}
|
|
2643
|
+
currentValues = _this.value.map(function (item) { return item.toString(); });
|
|
2644
|
+
});
|
|
2645
|
+
this.selectedData.forEach(function (item) {
|
|
2646
|
+
var value = getValue(_this.treeSettings.loadOnDemand ? _this.fields.value : 'id', item).toString();
|
|
2647
|
+
if (_this.value.indexOf(value) === -1) {
|
|
2648
|
+
_this.selectedData = _this.selectedData.filter(function (data) {
|
|
2649
|
+
return getValue(_this.treeSettings.loadOnDemand ? _this.fields.value : 'id', data).toString() !== value;
|
|
2650
|
+
});
|
|
2651
|
+
}
|
|
2652
|
+
});
|
|
2653
|
+
return;
|
|
2654
|
+
}
|
|
2655
|
+
var removeValues = [];
|
|
2656
|
+
treeData.forEach(function (node) {
|
|
2657
|
+
if (isNOU(node.id)) {
|
|
2658
|
+
return;
|
|
2659
|
+
}
|
|
2660
|
+
if (!node.haschild) {
|
|
2661
|
+
return;
|
|
2662
|
+
}
|
|
2663
|
+
var parentId = node.id.toString();
|
|
2664
|
+
if (currentValues.indexOf(parentId) === -1) {
|
|
2665
|
+
var childValues = [];
|
|
2666
|
+
_this.getChildren(parentId, childValues);
|
|
2667
|
+
if (childValues.some(function (child) { return currentValues.indexOf(child) !== -1; })) {
|
|
2668
|
+
removeValues.push.apply(removeValues, childValues);
|
|
2669
|
+
}
|
|
2670
|
+
}
|
|
2671
|
+
});
|
|
2672
|
+
if (removeValues.length) {
|
|
2673
|
+
this.value = this.value.filter(function (value) { return removeValues.indexOf(value.toString()) === -1; });
|
|
2674
|
+
currentValues = this.value.map(function (item) { return item.toString(); });
|
|
2675
|
+
}
|
|
2676
|
+
treeData.forEach(function (node) {
|
|
2677
|
+
if (isNOU(node) || isNOU(node.id)) {
|
|
2678
|
+
return;
|
|
2679
|
+
}
|
|
2680
|
+
if (!node.haschild) {
|
|
2681
|
+
return;
|
|
2682
|
+
}
|
|
2683
|
+
var parentId = node.id.toString();
|
|
2684
|
+
if (currentValues.indexOf(parentId) === -1) {
|
|
2685
|
+
return;
|
|
2686
|
+
}
|
|
2687
|
+
var hasDirectChild = treeData.some(function (childNode) {
|
|
2688
|
+
return !isNOU(childNode) && !isNOU(childNode.pid) && !isNOU(childNode.id) && childNode.pid.toString() === parentId &&
|
|
2689
|
+
currentValues.indexOf(childNode.id.toString()) !== -1;
|
|
2690
|
+
});
|
|
2691
|
+
if (!hasDirectChild) {
|
|
2692
|
+
removeParent(parentId);
|
|
2693
|
+
currentValues = _this.value.map(function (item) { return item.toString(); });
|
|
2694
|
+
}
|
|
2695
|
+
});
|
|
2696
|
+
};
|
|
2558
2697
|
DropDownTree.prototype.updateSelectedValues = function () {
|
|
2559
2698
|
var _this = this;
|
|
2560
2699
|
this.dataValue = '';
|
|
@@ -2570,6 +2709,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2570
2709
|
if (!this.isFilteredData) {
|
|
2571
2710
|
this.selectedData = [];
|
|
2572
2711
|
}
|
|
2712
|
+
if (this.treeSettings.autoCheck && this.isFilteredData && !isNOU(this.value)) {
|
|
2713
|
+
this.updateFilteredAutoCheckValues();
|
|
2714
|
+
}
|
|
2573
2715
|
if (!isNOU(this.value)) {
|
|
2574
2716
|
var compiledString = this.initializeValueTemplate();
|
|
2575
2717
|
for (var i = 0, len = this.value.length; i < len; i++) {
|
package/src/list-box/list-box.js
CHANGED
|
@@ -2098,11 +2098,11 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
2098
2098
|
e.preventDefault();
|
|
2099
2099
|
return;
|
|
2100
2100
|
}
|
|
2101
|
-
var
|
|
2102
|
-
|
|
2103
|
-
var isWordCharacter =
|
|
2104
|
-
var isWordAccentCharacter =
|
|
2105
|
-
if (!isNullOrUndefined(isWordCharacter) || !isNullOrUndefined(isWordAccentCharacter)) {
|
|
2101
|
+
var isSpecialKey = e.keyCode >= 186 && e.keyCode <= 192;
|
|
2102
|
+
var isNumericKeyPadSpecialKey = e.keyCode === 107 || e.keyCode === 109 || e.keyCode === 111;
|
|
2103
|
+
var isWordCharacter = e.key && e.key.match(/\w/);
|
|
2104
|
+
var isWordAccentCharacter = e.key && e.key.match(/[A-Za-z0-9\u00C0-\u024F ,>/:;\-+=]/);
|
|
2105
|
+
if (!isNullOrUndefined(isWordCharacter) || !isNullOrUndefined(isWordAccentCharacter) || isSpecialKey || isNumericKeyPadSpecialKey) {
|
|
2106
2106
|
this.isValidKey = true;
|
|
2107
2107
|
}
|
|
2108
2108
|
this.isBackSpace = e.keyCode === 8;
|
|
@@ -80,6 +80,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
80
80
|
private resizeHandler;
|
|
81
81
|
private preventKeyboardInteraction;
|
|
82
82
|
private scrollEvent;
|
|
83
|
+
private isPropertyChanged;
|
|
83
84
|
/**
|
|
84
85
|
* The `fields` property maps the columns of the data table and binds the data to the component.
|
|
85
86
|
* * text - Maps the text column from data table for each list item.
|
|
@@ -838,6 +839,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
838
839
|
private updateData;
|
|
839
840
|
private initialTextUpdate;
|
|
840
841
|
protected renderList(isEmptyData?: boolean): void;
|
|
842
|
+
private getTextByValueFromDataSource;
|
|
841
843
|
private initialValueUpdate;
|
|
842
844
|
protected updateActionCompleteData(li: HTMLElement, item: {
|
|
843
845
|
[key: string]: Object;
|
|
@@ -106,6 +106,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
106
106
|
_this.isBlurDispatching = false;
|
|
107
107
|
_this.isFilterPrevented = false;
|
|
108
108
|
_this.isFilteringAction = false;
|
|
109
|
+
_this.isPropertyChanged = false;
|
|
109
110
|
_this.isValidKey = false;
|
|
110
111
|
_this.selectAllEventData = [];
|
|
111
112
|
_this.selectAllEventEle = [];
|
|
@@ -816,7 +817,12 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
816
817
|
}
|
|
817
818
|
}
|
|
818
819
|
else if (!(this.dataSource instanceof DataManager)) {
|
|
819
|
-
this.
|
|
820
|
+
if (!this.isRemoveSelection) {
|
|
821
|
+
this.initialValueUpdate(this.listData, true);
|
|
822
|
+
}
|
|
823
|
+
else {
|
|
824
|
+
this.initialValueUpdate();
|
|
825
|
+
}
|
|
820
826
|
}
|
|
821
827
|
this.initialUpdate();
|
|
822
828
|
this.refreshPlaceHolder();
|
|
@@ -4163,6 +4169,33 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
4163
4169
|
this.unwireListEvents();
|
|
4164
4170
|
this.wireListEvents();
|
|
4165
4171
|
};
|
|
4172
|
+
MultiSelect.prototype.getTextByValueFromDataSource = function (value) {
|
|
4173
|
+
var dataSource = this.dataSource;
|
|
4174
|
+
if (isNullOrUndefined(dataSource) || !dataSource.length) {
|
|
4175
|
+
return null;
|
|
4176
|
+
}
|
|
4177
|
+
if (this.isPrimitiveData) {
|
|
4178
|
+
for (var i = 0; i < dataSource.length; i++) {
|
|
4179
|
+
if (dataSource[i] === value) {
|
|
4180
|
+
return dataSource[i];
|
|
4181
|
+
}
|
|
4182
|
+
}
|
|
4183
|
+
return null;
|
|
4184
|
+
}
|
|
4185
|
+
var fields = this.fields;
|
|
4186
|
+
var valueField = fields.value ? fields.value : 'value';
|
|
4187
|
+
var textField = fields.text ? fields.text : 'text';
|
|
4188
|
+
for (var i = 0; i < dataSource.length; i++) {
|
|
4189
|
+
var item = dataSource[i];
|
|
4190
|
+
if (!isNullOrUndefined(item) && getValue(valueField, item) === value) {
|
|
4191
|
+
var resolvedText = getValue(textField, item);
|
|
4192
|
+
if (!isNullOrUndefined(resolvedText)) {
|
|
4193
|
+
return resolvedText;
|
|
4194
|
+
}
|
|
4195
|
+
}
|
|
4196
|
+
}
|
|
4197
|
+
return null;
|
|
4198
|
+
};
|
|
4166
4199
|
MultiSelect.prototype.initialValueUpdate = function (listItems, isInitialVirtualData, isInitialRender) {
|
|
4167
4200
|
var _this = this;
|
|
4168
4201
|
if (this.list) {
|
|
@@ -4213,6 +4246,10 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
4213
4246
|
}
|
|
4214
4247
|
}
|
|
4215
4248
|
}
|
|
4249
|
+
if (this.isPropertyChanged && isNullOrUndefined(text) && !this.allowCustomValue &&
|
|
4250
|
+
!(this.dataSource instanceof DataManager)) {
|
|
4251
|
+
text = this.getTextByValueFromDataSource(value_2);
|
|
4252
|
+
}
|
|
4216
4253
|
if ((isNullOrUndefined(text) && this.allowCustomValue) &&
|
|
4217
4254
|
((!(this.dataSource instanceof DataManager)) ||
|
|
4218
4255
|
(this.dataSource instanceof DataManager && isInitialVirtualData))) {
|
|
@@ -5847,6 +5884,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
5847
5884
|
* @returns {void}
|
|
5848
5885
|
*/
|
|
5849
5886
|
MultiSelect.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
5887
|
+
this.isPropertyChanged = true;
|
|
5850
5888
|
if (newProp.dataSource && !isNullOrUndefined(Object.keys(newProp.dataSource))
|
|
5851
5889
|
|| newProp.query && !isNullOrUndefined(Object.keys(newProp.query))) {
|
|
5852
5890
|
this.mainList = null;
|
|
@@ -5892,6 +5930,10 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
5892
5930
|
&& !this.validateValues(newProp.value, oldProp.value)) {
|
|
5893
5931
|
return;
|
|
5894
5932
|
}
|
|
5933
|
+
if (this.isVue && this.mode === 'CheckBox' && !this.changeOnBlur && !isNullOrUndefined(oldProp.value) && !isNullOrUndefined(newProp.value)
|
|
5934
|
+
&& !this.validateValues(newProp.value, oldProp.value)) {
|
|
5935
|
+
return;
|
|
5936
|
+
}
|
|
5895
5937
|
this.updateVal(this.value, oldProp.value, 'value', this.enableVirtualization);
|
|
5896
5938
|
this.addValidInputClass();
|
|
5897
5939
|
if (!this.closePopupOnSelect && this.isPopupOpen()) {
|
|
@@ -6015,6 +6057,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
6015
6057
|
break;
|
|
6016
6058
|
}
|
|
6017
6059
|
}
|
|
6060
|
+
this.isPropertyChanged = false;
|
|
6018
6061
|
};
|
|
6019
6062
|
MultiSelect.prototype.reInitializePoup = function () {
|
|
6020
6063
|
if (this.popupObj) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@forward '
|
|
1
|
+
@forward '@syncfusion/ej2-base/styles/common/_base-variables';
|
|
2
2
|
@forward '_material3-definition';
|
package/styles/bds-lite.css
CHANGED
|
@@ -2871,4 +2871,7 @@ ejs-listbox {
|
|
|
2871
2871
|
height: calc(100% - 38px) !important; /* stylelint-disable-line declaration-no-important */
|
|
2872
2872
|
}
|
|
2873
2873
|
|
|
2874
|
-
/* stylelint-disable-line no-empty-source */
|
|
2874
|
+
/* stylelint-disable-line no-empty-source */
|
|
2875
|
+
.e-mention-placeholder {
|
|
2876
|
+
display: block;
|
|
2877
|
+
}
|
package/styles/bds.css
CHANGED
|
@@ -3499,4 +3499,8 @@ ejs-listbox {
|
|
|
3499
3499
|
|
|
3500
3500
|
.e-bigger .e-listbox-wrapper.e-filter-list:not(.e-listbox-container) .e-selectall-parent + .e-hidden-select + .e-listbox + .e-list-parent {
|
|
3501
3501
|
height: calc(100% - 106px) !important; /* stylelint-disable-line declaration-no-important */
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3504
|
+
.e-mention-placeholder {
|
|
3505
|
+
display: block;
|
|
3502
3506
|
}
|
package/styles/bootstrap.css
CHANGED
|
@@ -3500,4 +3500,8 @@ ejs-listbox {
|
|
|
3500
3500
|
|
|
3501
3501
|
.e-bigger .e-listbox-wrapper.e-filter-list:not(.e-listbox-container) .e-selectall-parent + .e-hidden-select + .e-listbox + .e-list-parent {
|
|
3502
3502
|
height: calc(100% - 106px) !important; /* stylelint-disable-line declaration-no-important */
|
|
3503
|
+
}
|
|
3504
|
+
|
|
3505
|
+
.e-mention-placeholder {
|
|
3506
|
+
display: block;
|
|
3503
3507
|
}
|
package/styles/bootstrap4.css
CHANGED
|
@@ -3783,4 +3783,8 @@ ejs-listbox {
|
|
|
3783
3783
|
|
|
3784
3784
|
.e-bigger .e-listbox-wrapper.e-filter-list:not(.e-listbox-container) .e-selectall-parent + .e-hidden-select + .e-listbox + .e-list-parent {
|
|
3785
3785
|
height: calc(100% - 108px) !important; /* stylelint-disable-line declaration-no-important */
|
|
3786
|
+
}
|
|
3787
|
+
|
|
3788
|
+
.e-mention-placeholder {
|
|
3789
|
+
display: block;
|
|
3786
3790
|
}
|
|
@@ -3670,4 +3670,8 @@ ejs-listbox {
|
|
|
3670
3670
|
|
|
3671
3671
|
.e-bigger .e-listbox-wrapper.e-filter-list:not(.e-listbox-container) .e-selectall-parent + .e-hidden-select + .e-listbox + .e-list-parent {
|
|
3672
3672
|
height: calc(100% - 104px) !important; /* stylelint-disable-line declaration-no-important */
|
|
3673
|
+
}
|
|
3674
|
+
|
|
3675
|
+
.e-mention-placeholder {
|
|
3676
|
+
display: block;
|
|
3673
3677
|
}
|
|
@@ -2882,4 +2882,7 @@ ejs-listbox {
|
|
|
2882
2882
|
height: calc(100% - 36px) !important; /* stylelint-disable-line declaration-no-important */
|
|
2883
2883
|
}
|
|
2884
2884
|
|
|
2885
|
-
/* stylelint-disable-line no-empty-source */
|
|
2885
|
+
/* stylelint-disable-line no-empty-source */
|
|
2886
|
+
.e-mention-placeholder {
|
|
2887
|
+
display: block;
|
|
2888
|
+
}
|
|
@@ -2956,4 +2956,7 @@ ejs-listbox {
|
|
|
2956
2956
|
height: calc(100% - 36px) !important; /* stylelint-disable-line declaration-no-important */
|
|
2957
2957
|
}
|
|
2958
2958
|
|
|
2959
|
-
/* stylelint-disable-line no-empty-source */
|
|
2959
|
+
/* stylelint-disable-line no-empty-source */
|
|
2960
|
+
.e-mention-placeholder {
|
|
2961
|
+
display: block;
|
|
2962
|
+
}
|
package/styles/bootstrap5.3.css
CHANGED
|
@@ -3703,4 +3703,7 @@ ejs-listbox {
|
|
|
3703
3703
|
height: calc(100% - 104px) !important; /* stylelint-disable-line declaration-no-important */
|
|
3704
3704
|
}
|
|
3705
3705
|
|
|
3706
|
-
/* stylelint-disable-line no-empty-source */
|
|
3706
|
+
/* stylelint-disable-line no-empty-source */
|
|
3707
|
+
.e-mention-placeholder {
|
|
3708
|
+
display: block;
|
|
3709
|
+
}
|
package/styles/bootstrap5.css
CHANGED
|
@@ -3672,4 +3672,7 @@ ejs-listbox {
|
|
|
3672
3672
|
height: calc(100% - 104px) !important; /* stylelint-disable-line declaration-no-important */
|
|
3673
3673
|
}
|
|
3674
3674
|
|
|
3675
|
-
/* stylelint-disable-line no-empty-source */
|
|
3675
|
+
/* stylelint-disable-line no-empty-source */
|
|
3676
|
+
.e-mention-placeholder {
|
|
3677
|
+
display: block;
|
|
3678
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@forward '
|
|
1
|
+
@forward '@syncfusion/ej2-base/styles/common/_base-variables';
|
|
2
2
|
@forward '_material3-definition';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@forward '
|
|
1
|
+
@forward '@syncfusion/ej2-base/styles/common/_base-variables';
|
|
2
2
|
@forward '_material3-definition';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@forward '
|
|
1
|
+
@forward '@syncfusion/ej2-base/styles/common/_base-variables';
|
|
2
2
|
@forward '_material3-definition';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@forward '
|
|
1
|
+
@forward '@syncfusion/ej2-base/styles/common/_base-variables';
|
|
2
2
|
@forward '_material3-definition';
|
package/styles/fabric-dark.css
CHANGED
|
@@ -3479,4 +3479,8 @@ ejs-listbox {
|
|
|
3479
3479
|
|
|
3480
3480
|
.e-bigger .e-listbox-wrapper.e-filter-list:not(.e-listbox-container) .e-selectall-parent + .e-hidden-select + .e-listbox + .e-list-parent {
|
|
3481
3481
|
height: calc(100% - 104px) !important; /* stylelint-disable-line declaration-no-important */
|
|
3482
|
+
}
|
|
3483
|
+
|
|
3484
|
+
.e-mention-placeholder {
|
|
3485
|
+
display: block;
|
|
3482
3486
|
}
|
package/styles/fabric-lite.css
CHANGED
package/styles/fabric.css
CHANGED
|
@@ -3480,4 +3480,8 @@ ejs-listbox {
|
|
|
3480
3480
|
|
|
3481
3481
|
.e-bigger .e-listbox-wrapper.e-filter-list:not(.e-listbox-container) .e-selectall-parent + .e-hidden-select + .e-listbox + .e-list-parent {
|
|
3482
3482
|
height: calc(100% - 104px) !important; /* stylelint-disable-line declaration-no-important */
|
|
3483
|
+
}
|
|
3484
|
+
|
|
3485
|
+
.e-mention-placeholder {
|
|
3486
|
+
display: block;
|
|
3483
3487
|
}
|
package/styles/fluent-dark.css
CHANGED
|
@@ -3705,4 +3705,8 @@ ejs-listbox {
|
|
|
3705
3705
|
|
|
3706
3706
|
.e-bigger .e-listbox-wrapper.e-filter-list:not(.e-listbox-container) .e-selectall-parent + .e-hidden-select + .e-listbox + .e-list-parent {
|
|
3707
3707
|
height: calc(100% - 113px) !important; /* stylelint-disable-line declaration-no-important */
|
|
3708
|
+
}
|
|
3709
|
+
|
|
3710
|
+
.e-mention-placeholder {
|
|
3711
|
+
display: block;
|
|
3708
3712
|
}
|
package/styles/fluent-lite.css
CHANGED
|
@@ -2907,4 +2907,7 @@ ejs-listbox {
|
|
|
2907
2907
|
height: calc(100% - 36px) !important; /* stylelint-disable-line declaration-no-important */
|
|
2908
2908
|
}
|
|
2909
2909
|
|
|
2910
|
-
/* stylelint-disable-line no-empty-source */
|
|
2910
|
+
/* stylelint-disable-line no-empty-source */
|
|
2911
|
+
.e-mention-placeholder {
|
|
2912
|
+
display: block;
|
|
2913
|
+
}
|
package/styles/fluent.css
CHANGED
|
@@ -3707,4 +3707,7 @@ ejs-listbox {
|
|
|
3707
3707
|
height: calc(100% - 113px) !important; /* stylelint-disable-line declaration-no-important */
|
|
3708
3708
|
}
|
|
3709
3709
|
|
|
3710
|
-
/* stylelint-disable-line no-empty-source */
|
|
3710
|
+
/* stylelint-disable-line no-empty-source */
|
|
3711
|
+
.e-mention-placeholder {
|
|
3712
|
+
display: block;
|
|
3713
|
+
}
|
package/styles/fluent2-lite.css
CHANGED
|
@@ -3127,4 +3127,7 @@ ejs-listbox {
|
|
|
3127
3127
|
height: calc(100% - 38px) !important; /* stylelint-disable-line declaration-no-important */
|
|
3128
3128
|
}
|
|
3129
3129
|
|
|
3130
|
-
/* stylelint-disable-line no-empty-source */
|
|
3130
|
+
/* stylelint-disable-line no-empty-source */
|
|
3131
|
+
.e-mention-placeholder {
|
|
3132
|
+
display: block;
|
|
3133
|
+
}
|
package/styles/fluent2.css
CHANGED
|
@@ -3802,4 +3802,7 @@ ejs-listbox {
|
|
|
3802
3802
|
height: calc(100% - 106px) !important; /* stylelint-disable-line declaration-no-important */
|
|
3803
3803
|
}
|
|
3804
3804
|
|
|
3805
|
-
/* stylelint-disable-line no-empty-source */
|
|
3805
|
+
/* stylelint-disable-line no-empty-source */
|
|
3806
|
+
.e-mention-placeholder {
|
|
3807
|
+
display: block;
|
|
3808
|
+
}
|
|
@@ -3579,4 +3579,8 @@ ejs-listbox {
|
|
|
3579
3579
|
|
|
3580
3580
|
.e-bigger .e-listbox-wrapper.e-filter-list:not(.e-listbox-container) .e-selectall-parent + .e-hidden-select + .e-listbox + .e-list-parent {
|
|
3581
3581
|
height: calc(100% - 104px) !important; /* stylelint-disable-line declaration-no-important */
|
|
3582
|
+
}
|
|
3583
|
+
|
|
3584
|
+
.e-mention-placeholder {
|
|
3585
|
+
display: block;
|
|
3582
3586
|
}
|