@syncfusion/ej2-dropdowns 19.3.55 → 19.4.41
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/CHANGELOG.md +16 -0
- package/README.md +1 -1
- 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 +101 -40
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +103 -40
- 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 +11 -11
- package/src/combo-box/combo-box.js +2 -2
- package/src/common/incremental-search.d.ts +1 -1
- package/src/common/incremental-search.js +1 -1
- package/src/drop-down-base/drop-down-base.js +17 -0
- package/src/drop-down-tree/drop-down-tree.js +15 -5
- package/src/list-box/list-box.d.ts +0 -4
- package/src/list-box/list-box.js +0 -3
- package/src/multi-select/multi-select-model.d.ts +1 -1
- package/src/multi-select/multi-select.d.ts +2 -0
- package/src/multi-select/multi-select.js +68 -29
- package/styles/auto-complete/_fluent-definition.scss +2 -0
- package/styles/auto-complete/bootstrap5-dark.css +0 -1
- package/styles/auto-complete/bootstrap5.css +0 -1
- package/styles/bootstrap-dark.css +5 -0
- package/styles/bootstrap.css +5 -0
- package/styles/bootstrap4.css +5 -0
- package/styles/bootstrap5-dark.css +17 -6
- package/styles/bootstrap5.css +17 -6
- package/styles/combo-box/_fluent-definition.scss +2 -0
- package/styles/combo-box/bootstrap5-dark.css +0 -1
- package/styles/combo-box/bootstrap5.css +0 -1
- package/styles/drop-down-base/_fluent-definition.scss +109 -0
- package/styles/drop-down-list/_bootstrap5-definition.scss +0 -1
- package/styles/drop-down-list/_fluent-definition.scss +193 -0
- package/styles/drop-down-list/bootstrap5-dark.css +0 -1
- package/styles/drop-down-list/bootstrap5.css +0 -1
- package/styles/drop-down-list/icons/_bootstrap5.scss +0 -1
- package/styles/drop-down-list/icons/_fluent.scss +14 -0
- package/styles/drop-down-tree/_bootstrap5-definition.scss +59 -58
- package/styles/drop-down-tree/_fluent-definition.scss +71 -0
- package/styles/drop-down-tree/_layout.scss +12 -4
- package/styles/drop-down-tree/_tailwind-definition.scss +1 -0
- package/styles/drop-down-tree/bootstrap5-dark.css +11 -4
- package/styles/drop-down-tree/bootstrap5.css +11 -4
- package/styles/drop-down-tree/icons/_bootstrap5.scss +11 -11
- package/styles/drop-down-tree/icons/_fluent.scss +11 -0
- package/styles/drop-down-tree/icons/_tailwind-dark.scss +11 -11
- package/styles/drop-down-tree/tailwind-dark.css +1 -0
- package/styles/drop-down-tree/tailwind.css +1 -0
- package/styles/fabric-dark.css +5 -0
- package/styles/fabric.css +5 -0
- package/styles/highcontrast-light.css +5 -0
- package/styles/highcontrast.css +5 -0
- package/styles/list-box/_bootstrap5-definition.scss +2 -2
- package/styles/list-box/_fluent-definition.scss +115 -0
- package/styles/list-box/_layout.scss +1 -6
- package/styles/list-box/bootstrap5-dark.css +1 -1
- package/styles/list-box/bootstrap5.css +1 -1
- package/styles/list-box/icons/_fluent.scss +25 -0
- package/styles/list-box/icons/_tailwind-dark.scss +2 -2
- package/styles/list-box/tailwind-dark.css +3 -3
- package/styles/list-box/tailwind.css +1 -1
- package/styles/material-dark.css +5 -94
- package/styles/material.css +5 -94
- package/styles/multi-select/_bootstrap-dark-definition.scss +1 -0
- package/styles/multi-select/_bootstrap-definition.scss +1 -0
- package/styles/multi-select/_bootstrap4-definition.scss +1 -0
- package/styles/multi-select/_bootstrap5-definition.scss +1 -0
- package/styles/multi-select/_fabric-dark-definition.scss +1 -0
- package/styles/multi-select/_fabric-definition.scss +1 -0
- package/styles/multi-select/_fluent-definition.scss +215 -0
- package/styles/multi-select/_highcontrast-definition.scss +1 -0
- package/styles/multi-select/_highcontrast-light-definition.scss +1 -0
- package/styles/multi-select/_layout.scss +0 -116
- package/styles/multi-select/_material-dark-definition.scss +1 -22
- package/styles/multi-select/_material-definition.scss +1 -22
- package/styles/multi-select/_tailwind-definition.scss +1 -0
- package/styles/multi-select/_theme.scss +5 -0
- package/styles/multi-select/bootstrap-dark.css +5 -0
- package/styles/multi-select/bootstrap.css +5 -0
- package/styles/multi-select/bootstrap4.css +5 -0
- package/styles/multi-select/bootstrap5-dark.css +5 -0
- package/styles/multi-select/bootstrap5.css +5 -0
- package/styles/multi-select/fabric-dark.css +5 -0
- package/styles/multi-select/fabric.css +5 -0
- package/styles/multi-select/highcontrast-light.css +5 -0
- package/styles/multi-select/highcontrast.css +5 -0
- package/styles/multi-select/icons/_fluent.scss +27 -0
- package/styles/multi-select/material-dark.css +5 -94
- package/styles/multi-select/material.css +5 -94
- package/styles/multi-select/tailwind-dark.css +5 -0
- package/styles/multi-select/tailwind.css +5 -0
- package/styles/tailwind-dark.css +9 -3
- package/styles/tailwind.css +7 -1
- package/styles/_all.scss +0 -3
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.
|
|
3
|
+
* version : 19.4.41
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-dropdowns@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-dropdowns@19.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@19.4.40",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-upcT5mAx69h0jqpI1M4t5Bbfnlqbpb3uPm7Ph2YqUYaSBOOwhu2bbGu53XYXUbPr/i6sxGE+qLkuhs7Gkb2qfQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"/@syncfusion/ej2-spreadsheet",
|
|
34
34
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
35
35
|
],
|
|
36
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-19.
|
|
37
|
-
"_shasum": "
|
|
36
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-19.4.40.tgz",
|
|
37
|
+
"_shasum": "fa9ec3b119efbe51b80576ab6691742c2b1be99f",
|
|
38
38
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
39
39
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
40
40
|
"author": {
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
},
|
|
43
43
|
"bundleDependencies": false,
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@syncfusion/ej2-base": "~19.
|
|
46
|
-
"@syncfusion/ej2-data": "~19.
|
|
47
|
-
"@syncfusion/ej2-inputs": "~19.
|
|
48
|
-
"@syncfusion/ej2-lists": "~19.
|
|
49
|
-
"@syncfusion/ej2-navigations": "~19.
|
|
50
|
-
"@syncfusion/ej2-popups": "~19.
|
|
45
|
+
"@syncfusion/ej2-base": "~19.4.38",
|
|
46
|
+
"@syncfusion/ej2-data": "~19.4.38",
|
|
47
|
+
"@syncfusion/ej2-inputs": "~19.4.41",
|
|
48
|
+
"@syncfusion/ej2-lists": "~19.4.38",
|
|
49
|
+
"@syncfusion/ej2-navigations": "~19.4.41",
|
|
50
|
+
"@syncfusion/ej2-popups": "~19.4.41"
|
|
51
51
|
},
|
|
52
52
|
"deprecated": false,
|
|
53
53
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
"module": "./index.js",
|
|
73
73
|
"name": "@syncfusion/ej2-dropdowns",
|
|
74
74
|
"typings": "index.d.ts",
|
|
75
|
-
"version": "19.
|
|
75
|
+
"version": "19.4.41",
|
|
76
76
|
"sideEffects": false
|
|
77
77
|
}
|
|
@@ -234,7 +234,7 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
234
234
|
if ((Browser.isDevice && !this.isDropDownClick || !Browser.isDevice) &&
|
|
235
235
|
!isNullOrUndefined(this.liCollections) && this.liCollections.length > 0) {
|
|
236
236
|
var inputValue = this.inputElement.value;
|
|
237
|
-
var activeItem = Search(inputValue, this.liCollections,
|
|
237
|
+
var activeItem = Search(inputValue, this.liCollections, this.filterType, true);
|
|
238
238
|
var activeElement = activeItem.item;
|
|
239
239
|
if (!isNullOrUndefined(activeElement)) {
|
|
240
240
|
var count = this.getIndexByValue(activeElement.getAttribute('data-value')) - 1;
|
|
@@ -391,7 +391,7 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
391
391
|
else {
|
|
392
392
|
this.activeIndex = null;
|
|
393
393
|
this.removeSelection();
|
|
394
|
-
if (this.liCollections && this.liCollections.length
|
|
394
|
+
if (this.liCollections && this.liCollections.length > 0 && !this.isCustomFilter) {
|
|
395
395
|
this.removeFocus();
|
|
396
396
|
}
|
|
397
397
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* IncrementalSearch module file
|
|
3
3
|
*/
|
|
4
|
-
export declare type SearchType = 'StartsWith' | 'Equal';
|
|
4
|
+
export declare type SearchType = 'StartsWith' | 'Equal' | 'EndsWith' | 'Contains';
|
|
5
5
|
/**
|
|
6
6
|
* Search and focus the list item based on key code matches with list text content
|
|
7
7
|
*
|
|
@@ -83,7 +83,7 @@ export function Search(inputVal, items, searchType, ignoreCase) {
|
|
|
83
83
|
for (var i = 0, itemsData = listItems; i < itemsData.length; i++) {
|
|
84
84
|
var item = itemsData[i];
|
|
85
85
|
var text = (ignoreCase ? item.textContent.toLocaleLowerCase() : item.textContent).replace(/^\s+|\s+$/g, '');
|
|
86
|
-
if ((searchType === 'Equal' && text === queryStr) || (searchType === 'StartsWith' && text.substr(0, strLength) === queryStr)) {
|
|
86
|
+
if ((searchType === 'Equal' && text === queryStr) || (searchType === 'StartsWith' && text.substr(0, strLength) === queryStr) || (searchType === 'EndsWith' && text.substr(text.length - queryStr.length) === queryStr) || (searchType === 'Contains' && new RegExp(queryStr, "g").test(text))) {
|
|
87
87
|
itemData.item = item;
|
|
88
88
|
itemData.index = i;
|
|
89
89
|
return { item: item, index: i };
|
|
@@ -492,6 +492,11 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
492
492
|
_this.renderGroupTemplate(ulElement);
|
|
493
493
|
}
|
|
494
494
|
_this.bindChildItems(localDataArgs.result, ulElement, fields);
|
|
495
|
+
setTimeout(function () {
|
|
496
|
+
if (_this.getModuleName() === 'multiselect' && _this.itemTemplate != null && (ulElement.childElementCount > 0 && ulElement.children[0].childElementCount > 0)) {
|
|
497
|
+
_this.updateDataList();
|
|
498
|
+
}
|
|
499
|
+
});
|
|
495
500
|
}
|
|
496
501
|
});
|
|
497
502
|
}
|
|
@@ -623,10 +628,22 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
623
628
|
var groupValue = select(this.groupTemplate, document).innerHTML.trim();
|
|
624
629
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
625
630
|
var tempHeaders = ListBase.renderGroupTemplate(groupValue, dataSource, this.fields.properties, headerItems, option, this);
|
|
631
|
+
//EJ2-55168- Group checkbox is not working with group template
|
|
632
|
+
if (this.isGroupChecking) {
|
|
633
|
+
for (var i = 0; i < tempHeaders.length; i++) {
|
|
634
|
+
this.notify('addItem', { module: 'CheckBoxSelection', item: tempHeaders[i] });
|
|
635
|
+
}
|
|
636
|
+
}
|
|
626
637
|
}
|
|
627
638
|
else {
|
|
628
639
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
629
640
|
var tempHeaders = ListBase.renderGroupTemplate(this.groupTemplate, dataSource, this.fields.properties, headerItems, option, this);
|
|
641
|
+
//EJ2-55168- Group checkbox is not working with group template
|
|
642
|
+
if (this.isGroupChecking) {
|
|
643
|
+
for (var i = 0; i < tempHeaders.length; i++) {
|
|
644
|
+
this.notify('addItem', { module: 'CheckBoxSelection', item: tempHeaders[i] });
|
|
645
|
+
}
|
|
646
|
+
}
|
|
630
647
|
}
|
|
631
648
|
this.renderReactTemplates();
|
|
632
649
|
}
|
|
@@ -1361,6 +1361,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1361
1361
|
}
|
|
1362
1362
|
};
|
|
1363
1363
|
DropDownTree.prototype.setValidValue = function () {
|
|
1364
|
+
var _this = this;
|
|
1364
1365
|
if (!this.showCheckBox && !this.allowMultiSelection) {
|
|
1365
1366
|
Input.setValue(this.text, this.inputEle, this.floatLabelType);
|
|
1366
1367
|
var id = this.value[0].toString();
|
|
@@ -1370,9 +1371,14 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1370
1371
|
}
|
|
1371
1372
|
else {
|
|
1372
1373
|
if (this.showCheckBox) {
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1374
|
+
var difference = this.value.filter(function (e) {
|
|
1375
|
+
return _this.treeObj.checkedNodes.indexOf(e) === -1;
|
|
1376
|
+
});
|
|
1377
|
+
if (difference.length > 0 || this.treeSettings.autoCheck) {
|
|
1378
|
+
this.treeObj.checkedNodes = this.value.slice();
|
|
1379
|
+
this.treeObj.dataBind();
|
|
1380
|
+
this.setMultiSelect();
|
|
1381
|
+
}
|
|
1376
1382
|
}
|
|
1377
1383
|
else {
|
|
1378
1384
|
this.treeObj.selectedNodes = this.value.slice();
|
|
@@ -2411,6 +2417,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2411
2417
|
this.ensurePlaceHolder();
|
|
2412
2418
|
};
|
|
2413
2419
|
DropDownTree.prototype.resetValue = function (isDynamicChange) {
|
|
2420
|
+
if (this.value == [] && this.text == null) {
|
|
2421
|
+
return;
|
|
2422
|
+
}
|
|
2414
2423
|
Input.setValue(null, this.inputEle, this.floatLabelType);
|
|
2415
2424
|
if (!isDynamicChange) {
|
|
2416
2425
|
this.oldValue = this.value;
|
|
@@ -2422,7 +2431,8 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2422
2431
|
setValue('selectedNodes', [], this.treeObj);
|
|
2423
2432
|
this.hiddenElement.innerHTML = '';
|
|
2424
2433
|
if (this.showCheckBox) {
|
|
2425
|
-
this.treeObj.
|
|
2434
|
+
this.treeObj.checkedNodes = [];
|
|
2435
|
+
this.treeObj.dataBind();
|
|
2426
2436
|
this.setMultiSelect();
|
|
2427
2437
|
this.clearCheckAll();
|
|
2428
2438
|
}
|
|
@@ -2800,8 +2810,8 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2800
2810
|
this.updateTemplate();
|
|
2801
2811
|
}
|
|
2802
2812
|
this.treeObj.sortOrder = newProp.sortOrder;
|
|
2803
|
-
this.updateValue(this.value);
|
|
2804
2813
|
this.treeObj.dataBind();
|
|
2814
|
+
this.updateValue(this.value);
|
|
2805
2815
|
break;
|
|
2806
2816
|
case 'showDropDownIcon':
|
|
2807
2817
|
this.updateDropDownIconState(newProp.showDropDownIcon);
|
|
@@ -678,10 +678,6 @@ export interface DropEventArgs {
|
|
|
678
678
|
* Illustrates whether the current action needs to be prevented or not.
|
|
679
679
|
*/
|
|
680
680
|
cancel?: boolean;
|
|
681
|
-
/**
|
|
682
|
-
* Illustrates whether the drag all action needs to be prevented or not.
|
|
683
|
-
*/
|
|
684
|
-
isDragAll?: boolean | null;
|
|
685
681
|
/**
|
|
686
682
|
* Returns the selected list items.
|
|
687
683
|
*/
|
package/src/list-box/list-box.js
CHANGED
|
@@ -438,9 +438,6 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
438
438
|
args.items = this.getDataByValues([dragValue]);
|
|
439
439
|
}
|
|
440
440
|
this.trigger('beforeDrop', args);
|
|
441
|
-
if (args.isDragAll !== null) {
|
|
442
|
-
this.allowDragAll = args.isDragAll;
|
|
443
|
-
}
|
|
444
441
|
};
|
|
445
442
|
ListBox.prototype.dragEnd = function (args) {
|
|
446
443
|
var _this = this;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DropDownBase, SelectEventArgs, dropDownBaseClasses, PopupEventArgs, FilteringEventArgs } from '../drop-down-base/drop-down-base';import { FocusEventArgs, BeforeOpenEventArgs, FilterType, FieldSettings } from '../drop-down-base/drop-down-base';import { FieldSettingsModel } from '../drop-down-base/drop-down-base-model';import { Popup, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import { IInput, FloatLabelType } from '@syncfusion/ej2-inputs';import { attributes, setValue, SanitizeHtmlHelper, getValue } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, extend } from '@syncfusion/ej2-base';import { EventHandler, Property, Event, compile, L10n, EmitType, KeyboardEventArgs } from '@syncfusion/ej2-base';import { Animation, AnimationModel, Browser, prepend, Complex } from '@syncfusion/ej2-base';import { Search } from '../common/incremental-search';import { append, addClass, removeClass, closest, detach, remove, select, selectAll } from '@syncfusion/ej2-base';import { getUniqueID, formatUnit, isNullOrUndefined, isUndefined, ModuleDeclaration } from '@syncfusion/ej2-base';import { DataManager, Query, Predicate } from '@syncfusion/ej2-data';import { SortOrder } from '@syncfusion/ej2-lists';import { createFloatLabel, removeFloating, floatLabelFocus, floatLabelBlur, encodePlaceholder } from './float-label';
|
|
1
|
+
import { DropDownBase, SelectEventArgs, dropDownBaseClasses, PopupEventArgs, FilteringEventArgs } from '../drop-down-base/drop-down-base';import { FocusEventArgs, BeforeOpenEventArgs, FilterType, FieldSettings, ResultData } from '../drop-down-base/drop-down-base';import { FieldSettingsModel } from '../drop-down-base/drop-down-base-model';import { Popup, createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import { IInput, FloatLabelType } from '@syncfusion/ej2-inputs';import { attributes, setValue, SanitizeHtmlHelper, getValue } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, extend } from '@syncfusion/ej2-base';import { EventHandler, Property, Event, compile, L10n, EmitType, KeyboardEventArgs } from '@syncfusion/ej2-base';import { Animation, AnimationModel, Browser, prepend, Complex } from '@syncfusion/ej2-base';import { Search } from '../common/incremental-search';import { append, addClass, removeClass, closest, detach, remove, select, selectAll } from '@syncfusion/ej2-base';import { getUniqueID, formatUnit, isNullOrUndefined, isUndefined, ModuleDeclaration } from '@syncfusion/ej2-base';import { DataManager, Query, Predicate } from '@syncfusion/ej2-data';import { SortOrder } from '@syncfusion/ej2-lists';import { createFloatLabel, removeFloating, floatLabelFocus, floatLabelBlur, encodePlaceholder } from './float-label';
|
|
2
2
|
import {visualMode,MultiSelectChangeEventArgs,RemoveEventArgs,ISelectAllEventArgs,TaggingEventArgs,CustomValueEventArgs} from "./multi-select";
|
|
3
3
|
import {DropDownBaseModel} from "../drop-down-base/drop-down-base-model";
|
|
4
4
|
|
|
@@ -795,6 +795,8 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
795
795
|
*/
|
|
796
796
|
onPropertyChanged(newProp: MultiSelectModel, oldProp: MultiSelectModel): void;
|
|
797
797
|
private reInitializePoup;
|
|
798
|
+
private presentItemValue;
|
|
799
|
+
private addNonPresentItems;
|
|
798
800
|
private updateVal;
|
|
799
801
|
/**
|
|
800
802
|
* Adds a new item to the multiselect popup list. By default, new item appends to the list as the last item,
|
|
@@ -421,7 +421,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
421
421
|
this.mainData = list;
|
|
422
422
|
this.mainListCollection = this.liCollections;
|
|
423
423
|
}
|
|
424
|
-
else if (
|
|
424
|
+
else if (isNullOrUndefined(this.mainData) || this.mainData.length === 0) {
|
|
425
425
|
this.mainData = list;
|
|
426
426
|
}
|
|
427
427
|
if ((this.remoteCustomValue || list.length <= 0) && this.allowCustomValue && this.inputFocus && this.allowFiltering &&
|
|
@@ -1049,6 +1049,13 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
1049
1049
|
var focusedItem = this.list.querySelector('.' + dropDownBaseClasses.focus);
|
|
1050
1050
|
if (!isNullOrUndefined(focusedItem)) {
|
|
1051
1051
|
this.inputElement.setAttribute('aria-activedescendant', focusedItem.id);
|
|
1052
|
+
if (this.allowFiltering) {
|
|
1053
|
+
var filterInput = this.popupWrapper.querySelector('.' + FILTERINPUT);
|
|
1054
|
+
filterInput && filterInput.setAttribute('aria-activedescendant', focusedItem.id);
|
|
1055
|
+
}
|
|
1056
|
+
else if (this.mode == "CheckBox") {
|
|
1057
|
+
this.overAllWrapper.setAttribute('aria-activedescendant', focusedItem.id);
|
|
1058
|
+
}
|
|
1052
1059
|
}
|
|
1053
1060
|
};
|
|
1054
1061
|
MultiSelect.prototype.homeNavigation = function (isHome) {
|
|
@@ -1164,7 +1171,6 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
1164
1171
|
this.keyAction = true;
|
|
1165
1172
|
if (document.activeElement.classList.contains(FILTERINPUT)
|
|
1166
1173
|
|| (this.mode === 'CheckBox' && !this.allowFiltering && document.activeElement !== this.list)) {
|
|
1167
|
-
this.list.focus();
|
|
1168
1174
|
EventHandler.add(this.list, 'keydown', this.onKeyDown, this);
|
|
1169
1175
|
}
|
|
1170
1176
|
this.updateAriaAttribute();
|
|
@@ -2187,7 +2193,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2187
2193
|
EventHandler.add(this.inputElement, 'input', this.onInput, this);
|
|
2188
2194
|
}
|
|
2189
2195
|
EventHandler.add(this.inputElement, 'blur', this.onBlurHandler, this);
|
|
2190
|
-
EventHandler.add(this.componentWrapper, '
|
|
2196
|
+
EventHandler.add(this.componentWrapper, 'mouseover', this.mouseIn, this);
|
|
2191
2197
|
var formElement = closest(this.inputElement, 'form');
|
|
2192
2198
|
if (formElement) {
|
|
2193
2199
|
EventHandler.add(formElement, 'reset', this.resetValueHandler, this);
|
|
@@ -2437,7 +2443,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2437
2443
|
MultiSelect.prototype.updateActionCompleteData = function (li, item) {
|
|
2438
2444
|
if (this.value && this.value.indexOf(li.getAttribute('data-value')) > -1) {
|
|
2439
2445
|
this.mainList = this.ulElement;
|
|
2440
|
-
|
|
2446
|
+
if (this.hideSelectedItem) {
|
|
2447
|
+
addClass([li], HIDE_LIST);
|
|
2448
|
+
}
|
|
2441
2449
|
}
|
|
2442
2450
|
};
|
|
2443
2451
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -2455,7 +2463,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2455
2463
|
}
|
|
2456
2464
|
};
|
|
2457
2465
|
MultiSelect.prototype.updateDataList = function () {
|
|
2458
|
-
if (this.mainList && this.ulElement && this.mainList.childElementCount < this.ulElement.childElementCount) {
|
|
2466
|
+
if (this.mainList && this.ulElement && (this.mainList.childElementCount < this.ulElement.childElementCount || ((this.ulElement.childElementCount > 0 && this.ulElement.children[0].childElementCount > 0) && (this.mainList.children[0].childElementCount < this.ulElement.children[0].childElementCount)))) {
|
|
2459
2467
|
this.mainList = this.ulElement.cloneNode ? this.ulElement.cloneNode(true) : this.ulElement;
|
|
2460
2468
|
}
|
|
2461
2469
|
};
|
|
@@ -3083,7 +3091,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3083
3091
|
EventHandler.remove(formElement, 'reset', this.resetValueHandler);
|
|
3084
3092
|
}
|
|
3085
3093
|
EventHandler.remove(this.inputElement, 'blur', this.onBlurHandler);
|
|
3086
|
-
EventHandler.remove(this.componentWrapper, '
|
|
3094
|
+
EventHandler.remove(this.componentWrapper, 'mouseover', this.mouseIn);
|
|
3087
3095
|
EventHandler.remove(this.componentWrapper, 'mouseout', this.mouseOut);
|
|
3088
3096
|
EventHandler.remove(this.overAllClear, 'mousedown', this.clearAll);
|
|
3089
3097
|
EventHandler.remove(this.inputElement, 'paste', this.pasteHandler);
|
|
@@ -3100,7 +3108,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3100
3108
|
'li.e-list-item[aria-selected="true"]:not(.e-reorder-hide)');
|
|
3101
3109
|
}
|
|
3102
3110
|
if (this.enableGroupCheckBox && this.mode === 'CheckBox' && !isNullOrUndefined(this.fields.groupBy)) {
|
|
3103
|
-
var target = (event ? event.target : null);
|
|
3111
|
+
var target = (event ? (this.groupTemplate ? closest(event.target, '.e-list-group-item') : event.target) : null);
|
|
3104
3112
|
target = (event && event.keyCode === 32) ? list : target;
|
|
3105
3113
|
target = (target && target.classList.contains('e-frame')) ? target.parentElement.parentElement : target;
|
|
3106
3114
|
if (target && target.classList.contains('e-list-group-item')) {
|
|
@@ -3501,6 +3509,25 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3501
3509
|
}
|
|
3502
3510
|
this.renderPopup();
|
|
3503
3511
|
};
|
|
3512
|
+
MultiSelect.prototype.presentItemValue = function (ulElement) {
|
|
3513
|
+
var valuecheck = [];
|
|
3514
|
+
for (var i = 0; i < this.value.length; i++) {
|
|
3515
|
+
var checkEle = this.findListElement(((this.allowFiltering && !isNullOrUndefined(this.mainList)) ? this.mainList : ulElement), 'li', 'data-value', this.value[i]);
|
|
3516
|
+
if (!checkEle) {
|
|
3517
|
+
valuecheck.push(this.value[i]);
|
|
3518
|
+
}
|
|
3519
|
+
}
|
|
3520
|
+
return valuecheck;
|
|
3521
|
+
};
|
|
3522
|
+
;
|
|
3523
|
+
MultiSelect.prototype.addNonPresentItems = function (valuecheck, ulElement, list, event) {
|
|
3524
|
+
var _this = this;
|
|
3525
|
+
this.dataSource.executeQuery(this.getForQuery(valuecheck)).then(function (e) {
|
|
3526
|
+
_this.addItem(e.result, list.length);
|
|
3527
|
+
_this.updateActionList(ulElement, list, event);
|
|
3528
|
+
});
|
|
3529
|
+
};
|
|
3530
|
+
;
|
|
3504
3531
|
MultiSelect.prototype.updateVal = function (newProp, oldProp, prop) {
|
|
3505
3532
|
if (!this.list) {
|
|
3506
3533
|
this.onLoadSelect();
|
|
@@ -3509,31 +3536,43 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3509
3536
|
this.onLoadSelect();
|
|
3510
3537
|
}
|
|
3511
3538
|
else {
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
}
|
|
3516
|
-
if (isNullOrUndefined(this.value) || this.value.length === 0) {
|
|
3517
|
-
this.tempValues = oldProp;
|
|
3518
|
-
}
|
|
3519
|
-
// eslint-disable-next-line
|
|
3520
|
-
if (this.allowCustomValue && (this.mode === 'Default' || this.mode === 'Box') && this.isReact && this.inputFocus
|
|
3521
|
-
&& this.isPopupOpen() && this.mainData !== this.listData) {
|
|
3522
|
-
var list = this.mainList.cloneNode ? this.mainList.cloneNode(true) : this.mainList;
|
|
3523
|
-
this.onActionComplete(list, this.mainData);
|
|
3524
|
-
}
|
|
3525
|
-
this.initialValueUpdate();
|
|
3526
|
-
if (this.mode !== 'Box' && !this.inputFocus) {
|
|
3527
|
-
this.updateDelimView();
|
|
3539
|
+
var valuecheck = [];
|
|
3540
|
+
if (!isNullOrUndefined(this.value) && !this.allowCustomValue) {
|
|
3541
|
+
valuecheck = this.presentItemValue(this.ulElement);
|
|
3528
3542
|
}
|
|
3529
|
-
if (!this.
|
|
3530
|
-
this.
|
|
3543
|
+
if (prop == 'value' && valuecheck.length > 0 && this.dataSource instanceof DataManager && !isNullOrUndefined(this.value)
|
|
3544
|
+
&& this.listData != null) {
|
|
3545
|
+
this.mainData = null;
|
|
3546
|
+
this.setDynValue = true;
|
|
3547
|
+
this.addNonPresentItems(valuecheck, this.ulElement, this.listData);
|
|
3531
3548
|
}
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3549
|
+
else {
|
|
3550
|
+
if (prop === 'text') {
|
|
3551
|
+
this.initialTextUpdate();
|
|
3552
|
+
newProp = this.value;
|
|
3553
|
+
}
|
|
3554
|
+
if (isNullOrUndefined(this.value) || this.value.length === 0) {
|
|
3555
|
+
this.tempValues = oldProp;
|
|
3556
|
+
}
|
|
3557
|
+
// eslint-disable-next-line
|
|
3558
|
+
if (this.allowCustomValue && (this.mode === 'Default' || this.mode === 'Box') && this.isReact && this.inputFocus
|
|
3559
|
+
&& this.isPopupOpen() && this.mainData !== this.listData) {
|
|
3560
|
+
var list = this.mainList.cloneNode ? this.mainList.cloneNode(true) : this.mainList;
|
|
3561
|
+
this.onActionComplete(list, this.mainData);
|
|
3562
|
+
}
|
|
3563
|
+
this.initialValueUpdate();
|
|
3564
|
+
if (this.mode !== 'Box' && !this.inputFocus) {
|
|
3565
|
+
this.updateDelimView();
|
|
3566
|
+
}
|
|
3567
|
+
if (!this.inputFocus) {
|
|
3568
|
+
this.refreshInputHight();
|
|
3569
|
+
}
|
|
3570
|
+
this.refreshPlaceHolder();
|
|
3571
|
+
if (this.mode !== 'CheckBox' && this.changeOnBlur) {
|
|
3572
|
+
this.updateValueState(null, newProp, oldProp);
|
|
3573
|
+
}
|
|
3574
|
+
this.checkPlaceholderSize();
|
|
3535
3575
|
}
|
|
3536
|
-
this.checkPlaceholderSize();
|
|
3537
3576
|
}
|
|
3538
3577
|
if (!this.changeOnBlur) {
|
|
3539
3578
|
this.updateValueState(null, newProp, oldProp);
|
|
@@ -2454,6 +2454,11 @@ ejs-multiselect {
|
|
|
2454
2454
|
font-size: 10px;
|
|
2455
2455
|
}
|
|
2456
2456
|
|
|
2457
|
+
.e-multiselect.e-disabled .e-multi-select-wrapper .e-delim-values {
|
|
2458
|
+
-webkit-text-fill-color: #9c9c9c;
|
|
2459
|
+
color: #9c9c9c;
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2457
2462
|
.e-listbox-tool .e-moveup::before {
|
|
2458
2463
|
content: '\e651';
|
|
2459
2464
|
}
|
package/styles/bootstrap.css
CHANGED
|
@@ -2453,6 +2453,11 @@ ejs-multiselect {
|
|
|
2453
2453
|
font-size: 10px;
|
|
2454
2454
|
}
|
|
2455
2455
|
|
|
2456
|
+
.e-multiselect.e-disabled .e-multi-select-wrapper .e-delim-values {
|
|
2457
|
+
-webkit-text-fill-color: #999;
|
|
2458
|
+
color: #999;
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2456
2461
|
.e-listbox-tool .e-moveup::before {
|
|
2457
2462
|
content: '\e651';
|
|
2458
2463
|
}
|
package/styles/bootstrap4.css
CHANGED
|
@@ -2637,6 +2637,11 @@ ejs-multiselect {
|
|
|
2637
2637
|
font-size: 10px;
|
|
2638
2638
|
}
|
|
2639
2639
|
|
|
2640
|
+
.e-multiselect.e-disabled .e-multi-select-wrapper .e-delim-values {
|
|
2641
|
+
-webkit-text-fill-color: #6c757d;
|
|
2642
|
+
color: #6c757d;
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2640
2645
|
.e-listbox-tool .e-moveup::before {
|
|
2641
2646
|
content: '\e808';
|
|
2642
2647
|
}
|
|
@@ -453,7 +453,6 @@
|
|
|
453
453
|
.e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
|
|
454
454
|
.e-float-input.e-control-wrapper.e-ddl input[readonly] {
|
|
455
455
|
background: transparent;
|
|
456
|
-
color: inherit;
|
|
457
456
|
}
|
|
458
457
|
|
|
459
458
|
.e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
|
|
@@ -1137,8 +1136,16 @@ ejs-dropdownlist {
|
|
|
1137
1136
|
.e-ddt.e-bigger.e-input-group.e-control-wrapper.e-show-text.e-show-dd-icon .e-clear-icon,
|
|
1138
1137
|
.e-ddt.e-bigger.e-float-input.e-control-wrapper.e-show-chip.e-show-dd-icon .e-clear-icon,
|
|
1139
1138
|
.e-ddt.e-bigger.e-float-input.e-control-wrapper.e-show-text.e-show-dd-icon .e-clear-icon {
|
|
1140
|
-
bottom:
|
|
1141
|
-
right:
|
|
1139
|
+
bottom: auto;
|
|
1140
|
+
right: 36px;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
.e-bigger .e-ddt.e-input-group.e-control-wrapper.e-show-chip.e-show-chip.e-show-dd-icon .e-clear-icon, .e-bigger .e-ddt.e-input-group.e-control-wrapper.e-show-text.e-show-chip.e-show-dd-icon .e-clear-icon, .e-bigger .e-ddt.e-float-input.e-control-wrapper.e-show-chip.e-show-chip.e-show-dd-icon .e-clear-icon, .e-bigger .e-ddt.e-float-input.e-control-wrapper.e-show-text.e-show-chip.e-show-dd-icon .e-clear-icon,
|
|
1144
|
+
.e-ddt.e-bigger.e-input-group.e-control-wrapper.e-show-chip.e-show-chip.e-show-dd-icon .e-clear-icon,
|
|
1145
|
+
.e-ddt.e-bigger.e-input-group.e-control-wrapper.e-show-text.e-show-chip.e-show-dd-icon .e-clear-icon,
|
|
1146
|
+
.e-ddt.e-bigger.e-float-input.e-control-wrapper.e-show-chip.e-show-chip.e-show-dd-icon .e-clear-icon,
|
|
1147
|
+
.e-ddt.e-bigger.e-float-input.e-control-wrapper.e-show-text.e-show-chip.e-show-dd-icon .e-clear-icon {
|
|
1148
|
+
bottom: 0;
|
|
1142
1149
|
}
|
|
1143
1150
|
|
|
1144
1151
|
.e-bigger .e-ddt.e-input-group.e-control-wrapper.e-show-chip .e-ddt-icon, .e-bigger .e-ddt.e-input-group.e-control-wrapper.e-show-text .e-ddt-icon, .e-bigger .e-ddt.e-float-input.e-control-wrapper.e-show-chip .e-ddt-icon, .e-bigger .e-ddt.e-float-input.e-control-wrapper.e-show-text .e-ddt-icon,
|
|
@@ -1152,8 +1159,7 @@ ejs-dropdownlist {
|
|
|
1152
1159
|
.e-bigger .e-ddt.e-input-group.e-control-wrapper .e-clear-icon, .e-bigger .e-ddt.e-float-input.e-control-wrapper .e-clear-icon,
|
|
1153
1160
|
.e-ddt.e-bigger.e-input-group.e-control-wrapper .e-clear-icon,
|
|
1154
1161
|
.e-ddt.e-bigger.e-float-input.e-control-wrapper .e-clear-icon {
|
|
1155
|
-
min-
|
|
1156
|
-
padding: 6px;
|
|
1162
|
+
min-height: 36px;
|
|
1157
1163
|
}
|
|
1158
1164
|
|
|
1159
1165
|
.e-bigger .e-ddt.e-show-chip .e-chips-close,
|
|
@@ -2565,6 +2571,11 @@ ejs-multiselect {
|
|
|
2565
2571
|
font-size: 14px;
|
|
2566
2572
|
}
|
|
2567
2573
|
|
|
2574
|
+
.e-multiselect.e-disabled .e-multi-select-wrapper .e-delim-values {
|
|
2575
|
+
-webkit-text-fill-color: #e9ecef;
|
|
2576
|
+
color: #e9ecef;
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2568
2579
|
.e-listbox-tool .e-moveup::before {
|
|
2569
2580
|
content: '\e776';
|
|
2570
2581
|
}
|
|
@@ -3214,7 +3225,7 @@ ejs-listbox {
|
|
|
3214
3225
|
.e-listbox-container .e-list-group-item {
|
|
3215
3226
|
background-color: #343a40;
|
|
3216
3227
|
border-color: rgba(0, 0, 0, 0.12);
|
|
3217
|
-
color: #
|
|
3228
|
+
color: #000;
|
|
3218
3229
|
font-size: 12px;
|
|
3219
3230
|
}
|
|
3220
3231
|
|
package/styles/bootstrap5.css
CHANGED
|
@@ -453,7 +453,6 @@
|
|
|
453
453
|
.e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
|
|
454
454
|
.e-float-input.e-control-wrapper.e-ddl input[readonly] {
|
|
455
455
|
background: transparent;
|
|
456
|
-
color: inherit;
|
|
457
456
|
}
|
|
458
457
|
|
|
459
458
|
.e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
|
|
@@ -1137,8 +1136,16 @@ ejs-dropdownlist {
|
|
|
1137
1136
|
.e-ddt.e-bigger.e-input-group.e-control-wrapper.e-show-text.e-show-dd-icon .e-clear-icon,
|
|
1138
1137
|
.e-ddt.e-bigger.e-float-input.e-control-wrapper.e-show-chip.e-show-dd-icon .e-clear-icon,
|
|
1139
1138
|
.e-ddt.e-bigger.e-float-input.e-control-wrapper.e-show-text.e-show-dd-icon .e-clear-icon {
|
|
1140
|
-
bottom:
|
|
1141
|
-
right:
|
|
1139
|
+
bottom: auto;
|
|
1140
|
+
right: 36px;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
.e-bigger .e-ddt.e-input-group.e-control-wrapper.e-show-chip.e-show-chip.e-show-dd-icon .e-clear-icon, .e-bigger .e-ddt.e-input-group.e-control-wrapper.e-show-text.e-show-chip.e-show-dd-icon .e-clear-icon, .e-bigger .e-ddt.e-float-input.e-control-wrapper.e-show-chip.e-show-chip.e-show-dd-icon .e-clear-icon, .e-bigger .e-ddt.e-float-input.e-control-wrapper.e-show-text.e-show-chip.e-show-dd-icon .e-clear-icon,
|
|
1144
|
+
.e-ddt.e-bigger.e-input-group.e-control-wrapper.e-show-chip.e-show-chip.e-show-dd-icon .e-clear-icon,
|
|
1145
|
+
.e-ddt.e-bigger.e-input-group.e-control-wrapper.e-show-text.e-show-chip.e-show-dd-icon .e-clear-icon,
|
|
1146
|
+
.e-ddt.e-bigger.e-float-input.e-control-wrapper.e-show-chip.e-show-chip.e-show-dd-icon .e-clear-icon,
|
|
1147
|
+
.e-ddt.e-bigger.e-float-input.e-control-wrapper.e-show-text.e-show-chip.e-show-dd-icon .e-clear-icon {
|
|
1148
|
+
bottom: 0;
|
|
1142
1149
|
}
|
|
1143
1150
|
|
|
1144
1151
|
.e-bigger .e-ddt.e-input-group.e-control-wrapper.e-show-chip .e-ddt-icon, .e-bigger .e-ddt.e-input-group.e-control-wrapper.e-show-text .e-ddt-icon, .e-bigger .e-ddt.e-float-input.e-control-wrapper.e-show-chip .e-ddt-icon, .e-bigger .e-ddt.e-float-input.e-control-wrapper.e-show-text .e-ddt-icon,
|
|
@@ -1152,8 +1159,7 @@ ejs-dropdownlist {
|
|
|
1152
1159
|
.e-bigger .e-ddt.e-input-group.e-control-wrapper .e-clear-icon, .e-bigger .e-ddt.e-float-input.e-control-wrapper .e-clear-icon,
|
|
1153
1160
|
.e-ddt.e-bigger.e-input-group.e-control-wrapper .e-clear-icon,
|
|
1154
1161
|
.e-ddt.e-bigger.e-float-input.e-control-wrapper .e-clear-icon {
|
|
1155
|
-
min-
|
|
1156
|
-
padding: 6px;
|
|
1162
|
+
min-height: 36px;
|
|
1157
1163
|
}
|
|
1158
1164
|
|
|
1159
1165
|
.e-bigger .e-ddt.e-show-chip .e-chips-close,
|
|
@@ -2565,6 +2571,11 @@ ejs-multiselect {
|
|
|
2565
2571
|
font-size: 14px;
|
|
2566
2572
|
}
|
|
2567
2573
|
|
|
2574
|
+
.e-multiselect.e-disabled .e-multi-select-wrapper .e-delim-values {
|
|
2575
|
+
-webkit-text-fill-color: #343a40;
|
|
2576
|
+
color: #343a40;
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2568
2579
|
.e-listbox-tool .e-moveup::before {
|
|
2569
2580
|
content: '\e776';
|
|
2570
2581
|
}
|
|
@@ -3214,7 +3225,7 @@ ejs-listbox {
|
|
|
3214
3225
|
.e-listbox-container .e-list-group-item {
|
|
3215
3226
|
background-color: #e9ecef;
|
|
3216
3227
|
border-color: rgba(0, 0, 0, 0.12);
|
|
3217
|
-
color: #
|
|
3228
|
+
color: #000;
|
|
3218
3229
|
font-size: 12px;
|
|
3219
3230
|
}
|
|
3220
3231
|
|