@syncfusion/ej2-dropdowns 19.4.40 → 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/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 +73 -32
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +74 -32
- 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 -9
- 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 +13 -1
- 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 +58 -25
- 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.4.
|
|
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": {
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"/@syncfusion/ej2",
|
|
22
22
|
"/@syncfusion/ej2-angular-dropdowns",
|
|
23
23
|
"/@syncfusion/ej2-documenteditor",
|
|
24
|
-
"/@syncfusion/ej2-filemanager/@syncfusion/ej2-grids",
|
|
25
24
|
"/@syncfusion/ej2-gantt",
|
|
26
25
|
"/@syncfusion/ej2-grids",
|
|
27
26
|
"/@syncfusion/ej2-inplace-editor",
|
|
@@ -34,8 +33,8 @@
|
|
|
34
33
|
"/@syncfusion/ej2-spreadsheet",
|
|
35
34
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
36
35
|
],
|
|
37
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-19.
|
|
38
|
-
"_shasum": "
|
|
36
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-19.4.40.tgz",
|
|
37
|
+
"_shasum": "fa9ec3b119efbe51b80576ab6691742c2b1be99f",
|
|
39
38
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
40
39
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
41
40
|
"author": {
|
|
@@ -45,10 +44,10 @@
|
|
|
45
44
|
"dependencies": {
|
|
46
45
|
"@syncfusion/ej2-base": "~19.4.38",
|
|
47
46
|
"@syncfusion/ej2-data": "~19.4.38",
|
|
48
|
-
"@syncfusion/ej2-inputs": "~19.4.
|
|
47
|
+
"@syncfusion/ej2-inputs": "~19.4.41",
|
|
49
48
|
"@syncfusion/ej2-lists": "~19.4.38",
|
|
50
|
-
"@syncfusion/ej2-navigations": "~19.4.
|
|
51
|
-
"@syncfusion/ej2-popups": "~19.4.
|
|
49
|
+
"@syncfusion/ej2-navigations": "~19.4.41",
|
|
50
|
+
"@syncfusion/ej2-popups": "~19.4.41"
|
|
52
51
|
},
|
|
53
52
|
"deprecated": false,
|
|
54
53
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -73,6 +72,6 @@
|
|
|
73
72
|
"module": "./index.js",
|
|
74
73
|
"name": "@syncfusion/ej2-dropdowns",
|
|
75
74
|
"typings": "index.d.ts",
|
|
76
|
-
"version": "19.4.
|
|
75
|
+
"version": "19.4.41",
|
|
77
76
|
"sideEffects": false
|
|
78
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 };
|
|
@@ -493,7 +493,7 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
493
493
|
}
|
|
494
494
|
_this.bindChildItems(localDataArgs.result, ulElement, fields);
|
|
495
495
|
setTimeout(function () {
|
|
496
|
-
if (_this.getModuleName() === 'multiselect' && (ulElement.childElementCount > 0 && ulElement.children[0].childElementCount > 0)) {
|
|
496
|
+
if (_this.getModuleName() === 'multiselect' && _this.itemTemplate != null && (ulElement.childElementCount > 0 && ulElement.children[0].childElementCount > 0)) {
|
|
497
497
|
_this.updateDataList();
|
|
498
498
|
}
|
|
499
499
|
});
|
|
@@ -628,10 +628,22 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
628
628
|
var groupValue = select(this.groupTemplate, document).innerHTML.trim();
|
|
629
629
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
630
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
|
+
}
|
|
631
637
|
}
|
|
632
638
|
else {
|
|
633
639
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
634
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
|
+
}
|
|
635
647
|
}
|
|
636
648
|
this.renderReactTemplates();
|
|
637
649
|
}
|
|
@@ -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 &&
|
|
@@ -2443,7 +2443,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2443
2443
|
MultiSelect.prototype.updateActionCompleteData = function (li, item) {
|
|
2444
2444
|
if (this.value && this.value.indexOf(li.getAttribute('data-value')) > -1) {
|
|
2445
2445
|
this.mainList = this.ulElement;
|
|
2446
|
-
|
|
2446
|
+
if (this.hideSelectedItem) {
|
|
2447
|
+
addClass([li], HIDE_LIST);
|
|
2448
|
+
}
|
|
2447
2449
|
}
|
|
2448
2450
|
};
|
|
2449
2451
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -3106,7 +3108,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3106
3108
|
'li.e-list-item[aria-selected="true"]:not(.e-reorder-hide)');
|
|
3107
3109
|
}
|
|
3108
3110
|
if (this.enableGroupCheckBox && this.mode === 'CheckBox' && !isNullOrUndefined(this.fields.groupBy)) {
|
|
3109
|
-
var target = (event ? event.target : null);
|
|
3111
|
+
var target = (event ? (this.groupTemplate ? closest(event.target, '.e-list-group-item') : event.target) : null);
|
|
3110
3112
|
target = (event && event.keyCode === 32) ? list : target;
|
|
3111
3113
|
target = (target && target.classList.contains('e-frame')) ? target.parentElement.parentElement : target;
|
|
3112
3114
|
if (target && target.classList.contains('e-list-group-item')) {
|
|
@@ -3507,6 +3509,25 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3507
3509
|
}
|
|
3508
3510
|
this.renderPopup();
|
|
3509
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
|
+
;
|
|
3510
3531
|
MultiSelect.prototype.updateVal = function (newProp, oldProp, prop) {
|
|
3511
3532
|
if (!this.list) {
|
|
3512
3533
|
this.onLoadSelect();
|
|
@@ -3515,31 +3536,43 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3515
3536
|
this.onLoadSelect();
|
|
3516
3537
|
}
|
|
3517
3538
|
else {
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3539
|
+
var valuecheck = [];
|
|
3540
|
+
if (!isNullOrUndefined(this.value) && !this.allowCustomValue) {
|
|
3541
|
+
valuecheck = this.presentItemValue(this.ulElement);
|
|
3521
3542
|
}
|
|
3522
|
-
if (
|
|
3523
|
-
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);
|
|
3524
3548
|
}
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
this.
|
|
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();
|
|
3541
3575
|
}
|
|
3542
|
-
this.checkPlaceholderSize();
|
|
3543
3576
|
}
|
|
3544
3577
|
if (!this.changeOnBlur) {
|
|
3545
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
|
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
$ddl-list-line-height: 36px !default;
|
|
2
|
+
$ddl-header-font-weight: $font-weight-medium !default;
|
|
3
|
+
$ddl-last-child-bottom-border: 0 !default;
|
|
4
|
+
$ddl-default-font-family: $font-family !default;
|
|
5
|
+
$ddl-line-height: 32px !default;
|
|
6
|
+
$ddl-list-border-size: 0 !default;
|
|
7
|
+
$ddl-list-bottom-border: $ddl-list-border-size !default;
|
|
8
|
+
|
|
9
|
+
$ddl-list-font-size: $text-sm !default;
|
|
10
|
+
$ddl-list-font-family: $font-family !default;
|
|
11
|
+
$ddl-list-focus-border: 0 solid $border-focus !default;
|
|
12
|
+
$ddl-group-list-padding-left: 12px !default;
|
|
13
|
+
$ddl-group-list-small-padding-left: 8px !default;
|
|
14
|
+
$ddl-group-list-bigger-padding-left: 16px !default;
|
|
15
|
+
$ddl-group-list-bigger-small-padding-left: 14px !default;
|
|
16
|
+
$ddl-list-header-padding-left: 12px !default;
|
|
17
|
+
$ddl-list-header-small-padding-left: 8px !default;
|
|
18
|
+
$ddl-list-header-bigger-small-padding-left: 14px !default;
|
|
19
|
+
$ddl-list-header-bigger-padding-left: 16px !default;
|
|
20
|
+
$ddl-list-text-indent: 12px !default;
|
|
21
|
+
$ddl-list-rtl-padding-right: 0 !default;
|
|
22
|
+
$ddl-list-padding-right: 16px !default;
|
|
23
|
+
$ddl-list-rtl-padding-left: 16px !default;
|
|
24
|
+
$ddl-multi-column-border-width: 0 0 1px 0 !default;
|
|
25
|
+
$ddl-bigger-list-header-font-size: $text-base !default;
|
|
26
|
+
$ddl-group-list-font-size: $text-sm !default;
|
|
27
|
+
$ddl-list-header-font-size: $text-sm !default;
|
|
28
|
+
|
|
29
|
+
// Small Size
|
|
30
|
+
|
|
31
|
+
$ddl-small-icon-font-size: 14px !default;
|
|
32
|
+
$ddl-small-line-height: 26px !default;
|
|
33
|
+
$ddl-small-list-text-indent: 8px !default;
|
|
34
|
+
$ddl-small-list-header-font-size: $text-xxs !default;
|
|
35
|
+
|
|
36
|
+
// Touch Small
|
|
37
|
+
|
|
38
|
+
$ddl-bigger-small-icon-font-size: 18px !default;
|
|
39
|
+
$ddl-bigger-small-line-height: 30px !default;
|
|
40
|
+
$ddl-bigger-small-list-text-indent: 16px !default;
|
|
41
|
+
$ddl-bigger-text-indent: 16px !default;
|
|
42
|
+
$ddl-bigger-small-list-header-font-size: $text-xs !default;
|
|
43
|
+
|
|
44
|
+
//
|
|
45
|
+
|
|
46
|
+
$ddl-list-border-color: $border-light !default;
|
|
47
|
+
$ddl-list-gradient-color: $border-light !default;
|
|
48
|
+
$ddl-list-bg-color: $flyout-bg-color !default;
|
|
49
|
+
$ddl-list-header-bg-color: $transparent !default;
|
|
50
|
+
$ddl-list-header-border-color: $border-light !default;
|
|
51
|
+
$ddl-nodata-font-color: $flyout-text-color !default;
|
|
52
|
+
$ddl-list-default-font-color: $flyout-text-color !default;
|
|
53
|
+
$ddl-list-active-border-color: $flyout-bg-color !default;
|
|
54
|
+
$ddl-list-active-font-color: $primary-outline !default;
|
|
55
|
+
$ddl-list-active-bg-color: $flyout-bg-color-selected !default;
|
|
56
|
+
$ddl-list-hover-border-color: $flyout-bg-color !default;
|
|
57
|
+
$ddl-list-hover-bg-color: $flyout-bg-color-hover !default;
|
|
58
|
+
$ddl-list-hover-font-color: $flyout-text-color-hover !default;
|
|
59
|
+
$ddl-list-header-font-color: $primary-outline !default;
|
|
60
|
+
$ddl-default-header-font-color: $primary-outline !default;
|
|
61
|
+
$ddl-list-focus-color: $flyout-text-color-focus !default;
|
|
62
|
+
$ddl-multi-column-border-color: $flyout-border !default;
|
|
63
|
+
// Small Size color
|
|
64
|
+
$ddl-small-list-font-color: $flyout-text-color !default;
|
|
65
|
+
// Touch Small color
|
|
66
|
+
$ddl-bigger-small-list-font-color: $flyout-text-color !default;
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
@include export-module('dropdownbase-bootstrap5') {
|
|
70
|
+
|
|
71
|
+
.e-dropdownbase .e-list-group-item,
|
|
72
|
+
.e-fixed-head {
|
|
73
|
+
font-size: $text-xs;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.e-small .e-dropdownbase .e-list-group-item,
|
|
77
|
+
.e-small .e-fixed-head,
|
|
78
|
+
.e-small.e-dropdownbase .e-list-group-item,
|
|
79
|
+
.e-small.e-fixed-head {
|
|
80
|
+
font-size: $text-xxs;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.e-bigger .e-dropdownbase .e-list-group-item,
|
|
84
|
+
.e-bigger .e-fixed-head,
|
|
85
|
+
.e-bigger.e-dropdownbase .e-list-group-item,
|
|
86
|
+
.e-bigger.e-fixed-head {
|
|
87
|
+
font-size: $text-sm;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.e-bigger.e-small .e-dropdownbase .e-list-group-item,
|
|
91
|
+
.e-bigger.e-small .e-fixed-head,
|
|
92
|
+
.e-bigger.e-small.e-dropdownbase .e-list-group-item,
|
|
93
|
+
.e-bigger.e-small.e-fixed-head {
|
|
94
|
+
font-size: $text-xs;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.e-dropdownbase .e-list-item .e-list-icon {
|
|
98
|
+
padding: 0 8px 0 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.e-bigger .e-dropdownbase .e-list-item .e-list-icon,
|
|
102
|
+
.e-bigger.e-small .e-dropdownbase .e-list-item .e-list-icon {
|
|
103
|
+
padding: 0 12px 0 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.e-small .e-dropdownbase .e-list-item .e-list-icon {
|
|
107
|
+
padding: 0 6px 0 0;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -105,7 +105,6 @@ $ddl-filter-box-shadow: 0 1.5px 5px -2px $ddl-filter-box-shadow-color !default;
|
|
|
105
105
|
.e-input-group#{&}.e-control-wrapper.e-ddl .e-input[readonly],
|
|
106
106
|
.e-float-input#{&}.e-control-wrapper.e-ddl input[readonly] {
|
|
107
107
|
background: transparent;
|
|
108
|
-
color: inherit;
|
|
109
108
|
}
|
|
110
109
|
|
|
111
110
|
.e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
|