@syncfusion/ej2-dropdowns 18.1.57 → 18.2.44-4569
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 +244 -0
- package/CHANGELOG.md +1524 -1514
- package/README.md +118 -118
- package/dist/ej2-dropdowns.umd.min.js +1 -10
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +198 -126
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +290 -217
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +1 -10
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/dist/ts/auto-complete/auto-complete.ts +527 -0
- package/dist/ts/combo-box/combo-box.ts +957 -0
- package/dist/ts/common/highlight-search.ts +47 -0
- package/dist/ts/common/incremental-search.ts +81 -0
- package/dist/ts/drop-down-base/drop-down-base.ts +1572 -0
- package/dist/ts/drop-down-list/drop-down-list.ts +2993 -0
- package/dist/ts/drop-down-tree/drop-down-tree.ts +3066 -0
- package/dist/ts/list-box/list-box.ts +2317 -0
- package/dist/ts/multi-select/checkbox-selection.ts +528 -0
- package/dist/ts/multi-select/float-label.ts +155 -0
- package/dist/ts/multi-select/interface.ts +66 -0
- package/dist/ts/multi-select/multi-select.ts +4216 -0
- package/helpers/e2e/index.js +3 -3
- package/license +2 -2
- package/package.json +77 -77
- package/src/auto-complete/auto-complete-model.d.ts +179 -179
- package/src/auto-complete/auto-complete.d.ts +12 -12
- package/src/auto-complete/auto-complete.js +21 -21
- package/src/combo-box/combo-box-model.d.ts +212 -212
- package/src/combo-box/combo-box.d.ts +27 -27
- package/src/combo-box/combo-box.js +29 -29
- package/src/common/incremental-search.d.ts +1 -1
- package/src/common/incremental-search.js +4 -2
- package/src/drop-down-base/drop-down-base-model.d.ts +191 -191
- package/src/drop-down-base/drop-down-base.d.ts +17 -17
- package/src/drop-down-base/drop-down-base.js +20 -20
- package/src/drop-down-list/drop-down-list-model.d.ts +222 -222
- package/src/drop-down-list/drop-down-list.d.ts +3 -2
- package/src/drop-down-list/drop-down-list.js +43 -30
- package/src/drop-down-tree/drop-down-tree-model.d.ts +344 -344
- package/src/drop-down-tree/drop-down-tree.js +32 -26
- package/src/list-box/index.d.ts +1 -0
- package/src/list-box/index.js +1 -0
- package/src/list-box/list-box-model.d.ts +156 -156
- package/src/list-box/list-box.d.ts +2 -2
- package/src/list-box/list-box.js +57 -59
- package/src/multi-select/index.d.ts +1 -0
- package/src/multi-select/index.js +1 -0
- package/src/multi-select/multi-select-model.d.ts +452 -452
- package/src/multi-select/multi-select.d.ts +2 -0
- package/src/multi-select/multi-select.js +98 -43
- package/styles/_all.scss +3 -3
- package/styles/auto-complete/_bootstrap-dark-definition.scss +3 -3
- package/styles/auto-complete/_bootstrap4-definition.scss +11 -11
- package/styles/auto-complete/_fabric-dark-definition.scss +2 -2
- package/styles/auto-complete/_highcontrast-light-definition.scss +2 -2
- package/styles/auto-complete/_material-dark-definition.scss +2 -2
- package/styles/bootstrap-dark.css +67 -61
- package/styles/bootstrap.css +69 -63
- package/styles/bootstrap4.css +81 -61
- package/styles/combo-box/_bootstrap-dark-definition.scss +2 -2
- package/styles/combo-box/_bootstrap4-definition.scss +11 -11
- package/styles/combo-box/_fabric-dark-definition.scss +2 -2
- package/styles/combo-box/_highcontrast-light-definition.scss +3 -3
- package/styles/combo-box/_material-dark-definition.scss +2 -2
- package/styles/drop-down-base/_all.scss +2 -2
- package/styles/drop-down-base/_bootstrap-dark-definition.scss +64 -64
- package/styles/drop-down-base/_bootstrap-definition.scss +64 -64
- package/styles/drop-down-base/_bootstrap4-definition.scss +78 -78
- package/styles/drop-down-base/_definition.scss +23 -23
- package/styles/drop-down-base/_fabric-dark-definition.scss +68 -68
- package/styles/drop-down-base/_fabric-definition.scss +66 -66
- package/styles/drop-down-base/_highcontrast-definition.scss +82 -82
- package/styles/drop-down-base/_highcontrast-light-definition.scss +81 -81
- package/styles/drop-down-base/_layout.scss +108 -108
- package/styles/drop-down-base/_material-dark-definition.scss +67 -67
- package/styles/drop-down-base/_material-definition.scss +65 -65
- package/styles/drop-down-base/_theme.scss +242 -242
- package/styles/drop-down-list/_all.scss +2 -2
- package/styles/drop-down-list/_bootstrap-dark-definition.scss +157 -157
- package/styles/drop-down-list/_bootstrap-definition.scss +156 -156
- package/styles/drop-down-list/_bootstrap4-definition.scss +184 -184
- package/styles/drop-down-list/_fabric-dark-definition.scss +127 -127
- package/styles/drop-down-list/_fabric-definition.scss +122 -122
- package/styles/drop-down-list/_highcontrast-definition.scss +131 -131
- package/styles/drop-down-list/_highcontrast-light-definition.scss +133 -133
- package/styles/drop-down-list/_layout.scss +218 -218
- package/styles/drop-down-list/_material-dark-definition.scss +143 -143
- package/styles/drop-down-list/_material-definition.scss +166 -166
- package/styles/drop-down-list/_theme.scss +10 -10
- package/styles/drop-down-list/icons/_bootstrap-dark.scss +14 -14
- package/styles/drop-down-list/icons/_bootstrap.scss +14 -14
- package/styles/drop-down-list/icons/_bootstrap4.scss +14 -14
- package/styles/drop-down-list/icons/_fabric-dark.scss +14 -14
- package/styles/drop-down-list/icons/_fabric.scss +14 -14
- package/styles/drop-down-list/icons/_highcontrast-light.scss +14 -14
- package/styles/drop-down-list/icons/_highcontrast.scss +14 -14
- package/styles/drop-down-list/icons/_material-dark.scss +14 -14
- package/styles/drop-down-list/icons/_material.scss +14 -14
- package/styles/drop-down-list/material.css +9 -0
- package/styles/drop-down-tree/_all.scss +2 -2
- package/styles/drop-down-tree/_bootstrap-dark-definition.scss +62 -49
- package/styles/drop-down-tree/_bootstrap-definition.scss +62 -49
- package/styles/drop-down-tree/_bootstrap4-definition.scss +63 -50
- package/styles/drop-down-tree/_fabric-dark-definition.scss +63 -49
- package/styles/drop-down-tree/_fabric-definition.scss +63 -49
- package/styles/drop-down-tree/_highcontrast-definition.scss +63 -49
- package/styles/drop-down-tree/_highcontrast-light-definition.scss +63 -49
- package/styles/drop-down-tree/_layout.scss +437 -398
- package/styles/drop-down-tree/_material-dark-definition.scss +61 -54
- package/styles/drop-down-tree/_material-definition.scss +61 -54
- package/styles/drop-down-tree/_theme.scss +68 -63
- package/styles/drop-down-tree/bootstrap-dark.css +67 -61
- package/styles/drop-down-tree/bootstrap.css +69 -63
- package/styles/drop-down-tree/bootstrap4.css +81 -61
- package/styles/drop-down-tree/fabric-dark.css +71 -63
- package/styles/drop-down-tree/fabric.css +71 -63
- package/styles/drop-down-tree/highcontrast-light.css +71 -63
- package/styles/drop-down-tree/highcontrast.css +75 -63
- package/styles/drop-down-tree/icons/_bootstrap-dark.scss +11 -11
- package/styles/drop-down-tree/icons/_bootstrap.scss +11 -11
- package/styles/drop-down-tree/icons/_bootstrap4.scss +11 -11
- package/styles/drop-down-tree/icons/_fabric-dark.scss +11 -11
- package/styles/drop-down-tree/icons/_fabric.scss +11 -11
- package/styles/drop-down-tree/icons/_highcontrast-light.scss +11 -11
- package/styles/drop-down-tree/icons/_highcontrast.scss +11 -11
- package/styles/drop-down-tree/icons/_material-dark.scss +11 -11
- package/styles/drop-down-tree/icons/_material.scss +11 -11
- package/styles/drop-down-tree/material-dark.css +76 -85
- package/styles/drop-down-tree/material.css +93 -85
- package/styles/fabric-dark.css +71 -63
- package/styles/fabric.css +71 -63
- package/styles/highcontrast-light.css +71 -63
- package/styles/highcontrast.css +75 -63
- package/styles/list-box/_all.scss +2 -2
- package/styles/list-box/_bootstrap-dark-definition.scss +118 -118
- package/styles/list-box/_bootstrap-definition.scss +112 -112
- package/styles/list-box/_bootstrap4-definition.scss +118 -118
- package/styles/list-box/_fabric-dark-definition.scss +118 -118
- package/styles/list-box/_fabric-definition.scss +112 -112
- package/styles/list-box/_highcontrast-definition.scss +112 -112
- package/styles/list-box/_highcontrast-light-definition.scss +118 -118
- package/styles/list-box/_layout.scss +458 -458
- package/styles/list-box/_material-dark-definition.scss +118 -118
- package/styles/list-box/_material-definition.scss +112 -112
- package/styles/list-box/_theme.scss +273 -273
- package/styles/list-box/icons/_bootstrap-dark.scss +25 -25
- package/styles/list-box/icons/_bootstrap.scss +25 -25
- package/styles/list-box/icons/_bootstrap4.scss +25 -25
- package/styles/list-box/icons/_fabric-dark.scss +25 -25
- package/styles/list-box/icons/_fabric.scss +25 -25
- package/styles/list-box/icons/_highcontrast-light.scss +25 -25
- package/styles/list-box/icons/_highcontrast.scss +25 -25
- package/styles/list-box/icons/_material-dark.scss +25 -25
- package/styles/list-box/icons/_material.scss +25 -25
- package/styles/list-box/material-dark.css +4 -4
- package/styles/list-box/material.css +4 -4
- package/styles/material-dark.css +80 -89
- package/styles/material.css +115 -89
- package/styles/multi-select/_all.scss +2 -2
- package/styles/multi-select/_bootstrap-dark-definition.scss +171 -171
- package/styles/multi-select/_bootstrap-definition.scss +166 -166
- package/styles/multi-select/_bootstrap4-definition.scss +233 -233
- package/styles/multi-select/_fabric-dark-definition.scss +170 -170
- package/styles/multi-select/_fabric-definition.scss +167 -167
- package/styles/multi-select/_highcontrast-definition.scss +257 -257
- package/styles/multi-select/_highcontrast-light-definition.scss +258 -258
- package/styles/multi-select/_layout.scss +1153 -1153
- package/styles/multi-select/_material-dark-definition.scss +186 -186
- package/styles/multi-select/_material-definition.scss +191 -191
- package/styles/multi-select/_theme.scss +384 -384
- package/styles/multi-select/icons/_bootstrap-dark.scss +26 -26
- package/styles/multi-select/icons/_bootstrap.scss +26 -26
- package/styles/multi-select/icons/_bootstrap4.scss +37 -37
- package/styles/multi-select/icons/_fabric-dark.scss +26 -26
- package/styles/multi-select/icons/_fabric.scss +26 -26
- package/styles/multi-select/icons/_highcontrast-light.scss +26 -26
- package/styles/multi-select/icons/_highcontrast.scss +26 -26
- package/styles/multi-select/icons/_material-dark.scss +26 -26
- package/styles/multi-select/icons/_material.scss +324 -324
- package/styles/multi-select/material.css +9 -0
|
@@ -13,6 +13,7 @@ var queryString = '';
|
|
|
13
13
|
var prevString = '';
|
|
14
14
|
var matches$1 = [];
|
|
15
15
|
var activeClass = 'e-active';
|
|
16
|
+
var prevElementId = '';
|
|
16
17
|
/**
|
|
17
18
|
* Search and focus the list item based on key code matches with list text content
|
|
18
19
|
* @param { number } keyCode - Specifies the key code which pressed on keyboard events.
|
|
@@ -21,12 +22,12 @@ var activeClass = 'e-active';
|
|
|
21
22
|
* after selected item otherwise it will do from initial.
|
|
22
23
|
* @param { boolean } ignoreCase - Specifies the case consideration when search has done.
|
|
23
24
|
*/
|
|
24
|
-
function incrementalSearch(keyCode, items, selectedIndex, ignoreCase, isBlazor$$1) {
|
|
25
|
+
function incrementalSearch(keyCode, items, selectedIndex, ignoreCase, elementId, isBlazor$$1) {
|
|
25
26
|
queryString += String.fromCharCode(keyCode);
|
|
26
27
|
setTimeout(function () { queryString = ''; }, 1000);
|
|
27
28
|
var index;
|
|
28
29
|
queryString = ignoreCase ? queryString.toLowerCase() : queryString;
|
|
29
|
-
if (prevString === queryString) {
|
|
30
|
+
if (prevElementId === elementId && prevString === queryString) {
|
|
30
31
|
for (var i = 0; i < matches$1.length; i++) {
|
|
31
32
|
if (matches$1[i].classList.contains(activeClass)) {
|
|
32
33
|
index = i;
|
|
@@ -62,6 +63,7 @@ function incrementalSearch(keyCode, items, selectedIndex, ignoreCase, isBlazor$$
|
|
|
62
63
|
i++;
|
|
63
64
|
} while (i !== selectedIndex);
|
|
64
65
|
prevString = queryString;
|
|
66
|
+
prevElementId = elementId;
|
|
65
67
|
return matches$1[0];
|
|
66
68
|
}
|
|
67
69
|
}
|
|
@@ -138,25 +140,25 @@ function revertHighlightSearch(content) {
|
|
|
138
140
|
* Common source
|
|
139
141
|
*/
|
|
140
142
|
|
|
141
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
142
|
-
var extendStatics = function (d, b) {
|
|
143
|
-
extendStatics = Object.setPrototypeOf ||
|
|
144
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
145
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
146
|
-
return extendStatics(d, b);
|
|
147
|
-
};
|
|
148
|
-
return function (d, b) {
|
|
149
|
-
extendStatics(d, b);
|
|
150
|
-
function __() { this.constructor = d; }
|
|
151
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
152
|
-
};
|
|
153
|
-
})();
|
|
154
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
155
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
156
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
157
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
158
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
159
|
-
};
|
|
143
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
144
|
+
var extendStatics = function (d, b) {
|
|
145
|
+
extendStatics = Object.setPrototypeOf ||
|
|
146
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
147
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
148
|
+
return extendStatics(d, b);
|
|
149
|
+
};
|
|
150
|
+
return function (d, b) {
|
|
151
|
+
extendStatics(d, b);
|
|
152
|
+
function __() { this.constructor = d; }
|
|
153
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
154
|
+
};
|
|
155
|
+
})();
|
|
156
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
157
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
158
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
159
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
160
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
161
|
+
};
|
|
160
162
|
var FieldSettings = /** @__PURE__ @class */ (function (_super) {
|
|
161
163
|
__extends(FieldSettings, _super);
|
|
162
164
|
function FieldSettings() {
|
|
@@ -1336,25 +1338,25 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1336
1338
|
* export all modules from current location
|
|
1337
1339
|
*/
|
|
1338
1340
|
|
|
1339
|
-
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
1340
|
-
var extendStatics = function (d, b) {
|
|
1341
|
-
extendStatics = Object.setPrototypeOf ||
|
|
1342
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1343
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1344
|
-
return extendStatics(d, b);
|
|
1345
|
-
};
|
|
1346
|
-
return function (d, b) {
|
|
1347
|
-
extendStatics(d, b);
|
|
1348
|
-
function __() { this.constructor = d; }
|
|
1349
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1350
|
-
};
|
|
1351
|
-
})();
|
|
1352
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1353
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1354
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1355
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1356
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1357
|
-
};
|
|
1341
|
+
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
1342
|
+
var extendStatics = function (d, b) {
|
|
1343
|
+
extendStatics = Object.setPrototypeOf ||
|
|
1344
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1345
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1346
|
+
return extendStatics(d, b);
|
|
1347
|
+
};
|
|
1348
|
+
return function (d, b) {
|
|
1349
|
+
extendStatics(d, b);
|
|
1350
|
+
function __() { this.constructor = d; }
|
|
1351
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1352
|
+
};
|
|
1353
|
+
})();
|
|
1354
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1355
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1356
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1357
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1358
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1359
|
+
};
|
|
1358
1360
|
/// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
|
|
1359
1361
|
/* tslint:disable */
|
|
1360
1362
|
// don't use space in classnames
|
|
@@ -1915,7 +1917,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
1915
1917
|
|
|
1916
1918
|
DropDownList.prototype.removeHover = function () {
|
|
1917
1919
|
if (this.list) {
|
|
1918
|
-
var hoveredItem = this.
|
|
1920
|
+
var hoveredItem = (this.isServerBlazor && this.popupObj && this.popupObj.element) ?
|
|
1921
|
+
this.popupObj.element.querySelectorAll('.' + dropDownBaseClasses.hover) :
|
|
1922
|
+
this.list.querySelectorAll('.' + dropDownBaseClasses.hover);
|
|
1919
1923
|
if (hoveredItem && hoveredItem.length) {
|
|
1920
1924
|
removeClass(hoveredItem, dropDownBaseClasses.hover);
|
|
1921
1925
|
}
|
|
@@ -1928,7 +1932,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
1928
1932
|
|
|
1929
1933
|
DropDownList.prototype.incrementalSearch = function (e) {
|
|
1930
1934
|
if (this.liCollections.length > 0) {
|
|
1931
|
-
var li = incrementalSearch(e.charCode, this.liCollections, this.activeIndex, true, this.isServerBlazor);
|
|
1935
|
+
var li = incrementalSearch(e.charCode, this.liCollections, this.activeIndex, true, this.element.id, this.isServerBlazor);
|
|
1932
1936
|
if (!isNullOrUndefined(li)) {
|
|
1933
1937
|
this.setSelection(li, e);
|
|
1934
1938
|
this.setScrollPosition();
|
|
@@ -3100,7 +3104,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3100
3104
|
DropDownList.prototype.updateServerPopup = function (popupEle) {
|
|
3101
3105
|
if (this.isServerBlazor) {
|
|
3102
3106
|
if (popupEle && popupEle.querySelector('li')) {
|
|
3103
|
-
removeClass([
|
|
3107
|
+
removeClass([popupEle.querySelector('.e-content')], ['e-nodata']);
|
|
3104
3108
|
}
|
|
3105
3109
|
this.initial = false;
|
|
3106
3110
|
popupEle.removeAttribute('style');
|
|
@@ -3129,7 +3133,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3129
3133
|
_this.isDocumentClick = false;
|
|
3130
3134
|
_this.destroyPopup();
|
|
3131
3135
|
var formElement = closest(_this.inputElement, 'form');
|
|
3132
|
-
if (_this.isFiltering() &&
|
|
3136
|
+
if (_this.isFiltering() && _this.actionCompleteData.list && _this.actionCompleteData.list[0]) {
|
|
3133
3137
|
_this.isActive = true;
|
|
3134
3138
|
_this.onActionComplete(_this.actionCompleteData.ulElement, _this.actionCompleteData.list, null, true);
|
|
3135
3139
|
}
|
|
@@ -3587,6 +3591,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3587
3591
|
if (this.getModuleName() !== 'autocomplete' && this.allowFiltering && (isChangeValue || isChangeText)) {
|
|
3588
3592
|
this.itemData = null;
|
|
3589
3593
|
}
|
|
3594
|
+
if (this.allowFiltering && newProp.dataSource && !isNullOrUndefined(Object.keys(newProp.dataSource))) {
|
|
3595
|
+
this.actionCompleteData = { ulElement: null, list: null, isUpdated: false };
|
|
3596
|
+
}
|
|
3590
3597
|
};
|
|
3591
3598
|
DropDownList.prototype.updateDataSource = function (props) {
|
|
3592
3599
|
if (this.inputElement.value !== '' || (!isNullOrUndefined(props) && (isNullOrUndefined(props.dataSource)
|
|
@@ -3674,7 +3681,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3674
3681
|
this.getModuleName() === 'autocomplete' && this.listData.length > 100) {
|
|
3675
3682
|
this.setSelectionData(newProp.text, oldProp.text, 'text');
|
|
3676
3683
|
}
|
|
3677
|
-
else {
|
|
3684
|
+
else if (!this.isServerBlazor) {
|
|
3678
3685
|
this.setOldText(oldProp.text);
|
|
3679
3686
|
}
|
|
3680
3687
|
}
|
|
@@ -3700,7 +3707,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3700
3707
|
this.getModuleName() === 'autocomplete' && this.listData.length > 100) {
|
|
3701
3708
|
this.setSelectionData(newProp.value, oldProp.value, 'value');
|
|
3702
3709
|
}
|
|
3703
|
-
else {
|
|
3710
|
+
else if (!this.isServerBlazor) {
|
|
3704
3711
|
this.setOldValue(oldProp.value);
|
|
3705
3712
|
}
|
|
3706
3713
|
}
|
|
@@ -3718,14 +3725,14 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3718
3725
|
}
|
|
3719
3726
|
this.renderList();
|
|
3720
3727
|
}
|
|
3721
|
-
if (!this.initRemoteRender) {
|
|
3728
|
+
if (!this.initRemoteRender && this.liCollections) {
|
|
3722
3729
|
var element = this.liCollections[newProp.index];
|
|
3723
3730
|
if (!this.checkValidLi(element)) {
|
|
3724
3731
|
if (this.liCollections && this.liCollections.length === 100 &&
|
|
3725
3732
|
this.getModuleName() === 'autocomplete' && this.listData.length > 100) {
|
|
3726
3733
|
this.setSelectionData(newProp.index, oldProp.index, 'index');
|
|
3727
3734
|
}
|
|
3728
|
-
else {
|
|
3735
|
+
else if (!this.isServerBlazor) {
|
|
3729
3736
|
this.index = oldProp.index;
|
|
3730
3737
|
}
|
|
3731
3738
|
}
|
|
@@ -3849,7 +3856,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3849
3856
|
if (!this.isServerBlazor) {
|
|
3850
3857
|
this.invokeRenderPopup();
|
|
3851
3858
|
}
|
|
3852
|
-
|
|
3859
|
+
var popupHolderEle = !this.isFiltering() || document.querySelector('#' + this.element.id + '_popup_holder');
|
|
3860
|
+
var isDropdownComp = this.getModuleName() === 'dropdownlist' || !this.isFiltering();
|
|
3861
|
+
if (this.isServerBlazor && popupHolderEle && !isNullOrUndefined(this.list) && isDropdownComp) {
|
|
3853
3862
|
this.invokeRenderPopup();
|
|
3854
3863
|
}
|
|
3855
3864
|
};
|
|
@@ -3920,6 +3929,11 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3920
3929
|
DropDownList.prototype.updateclientItemData = function (data) {
|
|
3921
3930
|
this.listData = data;
|
|
3922
3931
|
};
|
|
3932
|
+
DropDownList.prototype.initValueItemData = function (selectData) {
|
|
3933
|
+
this.itemData = selectData;
|
|
3934
|
+
this.previousValue = this.value;
|
|
3935
|
+
this.initial = false;
|
|
3936
|
+
};
|
|
3923
3937
|
DropDownList.prototype.serverUpdateListElement = function (data, popupEle) {
|
|
3924
3938
|
this.listData = data;
|
|
3925
3939
|
if (this.ulElement) {
|
|
@@ -3953,8 +3967,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3953
3967
|
}
|
|
3954
3968
|
this.closePopup();
|
|
3955
3969
|
var dataItem = this.getItemData();
|
|
3970
|
+
var isSelectVal = this.isServerBlazor ? !isNullOrUndefined(this.value) : !isNullOrUndefined(this.selectedLI);
|
|
3956
3971
|
if (this.inputElement.value.trim() === '' && !this.isInteracted && (this.isSelectCustom ||
|
|
3957
|
-
|
|
3972
|
+
isSelectVal && this.inputElement.value !== dataItem.text)) {
|
|
3958
3973
|
this.isSelectCustom = false;
|
|
3959
3974
|
this.clearAll(e);
|
|
3960
3975
|
}
|
|
@@ -4155,25 +4170,25 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
4155
4170
|
* export all modules from current location
|
|
4156
4171
|
*/
|
|
4157
4172
|
|
|
4158
|
-
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
4159
|
-
var extendStatics = function (d, b) {
|
|
4160
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4161
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
4162
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
4163
|
-
return extendStatics(d, b);
|
|
4164
|
-
};
|
|
4165
|
-
return function (d, b) {
|
|
4166
|
-
extendStatics(d, b);
|
|
4167
|
-
function __() { this.constructor = d; }
|
|
4168
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
4169
|
-
};
|
|
4170
|
-
})();
|
|
4171
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4172
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4173
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4174
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4175
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4176
|
-
};
|
|
4173
|
+
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
4174
|
+
var extendStatics = function (d, b) {
|
|
4175
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4176
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
4177
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
4178
|
+
return extendStatics(d, b);
|
|
4179
|
+
};
|
|
4180
|
+
return function (d, b) {
|
|
4181
|
+
extendStatics(d, b);
|
|
4182
|
+
function __() { this.constructor = d; }
|
|
4183
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
4184
|
+
};
|
|
4185
|
+
})();
|
|
4186
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4187
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4188
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4189
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4190
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4191
|
+
};
|
|
4177
4192
|
var RTL = 'e-rtl';
|
|
4178
4193
|
var DROPDOWNTREE = 'e-ddt';
|
|
4179
4194
|
var HIDDENELEMENT = 'e-ddt-hidden';
|
|
@@ -5388,6 +5403,10 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
5388
5403
|
_this.changeState(wrap, 'check');
|
|
5389
5404
|
_this.checkSelectAll = false;
|
|
5390
5405
|
}
|
|
5406
|
+
if (_this.allowFiltering) {
|
|
5407
|
+
removeClass([_this.inputWrapper], [INPUTFOCUS]);
|
|
5408
|
+
_this.filterObj.element.focus();
|
|
5409
|
+
}
|
|
5391
5410
|
var eventArgs = { popup: _this.popupObj };
|
|
5392
5411
|
_this.trigger('open', eventArgs);
|
|
5393
5412
|
}
|
|
@@ -5488,18 +5507,17 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
5488
5507
|
var target = e.target;
|
|
5489
5508
|
var isTree = closest(target, '.' + PARENTITEM);
|
|
5490
5509
|
var isFilter = closest(target, '.' + FILTERWRAP);
|
|
5491
|
-
|
|
5510
|
+
var isScroller = target.classList.contains(DROPDOWN) ? true :
|
|
5511
|
+
(matches(target, '.e-ddt .e-popup') || matches(target, '.e-ddt .e-treeview'));
|
|
5512
|
+
if ((this.isPopupOpen && (this.inputWrapper.contains(target) || isTree || isFilter || isScroller)) ||
|
|
5492
5513
|
((this.allowMultiSelection || this.showCheckBox) && (this.isPopupOpen && target.classList.contains(CHIP_CLOSE) ||
|
|
5493
5514
|
(this.isPopupOpen && (target.classList.contains(CHECKALLPARENT) || target.classList.contains(ALLTEXT)
|
|
5494
5515
|
|| target.classList.contains(CHECKBOXFRAME)))))) {
|
|
5495
5516
|
this.isDocumentClick = false;
|
|
5517
|
+
e.preventDefault();
|
|
5496
5518
|
}
|
|
5497
|
-
else if (!this.inputWrapper.contains(target)) {
|
|
5498
|
-
|
|
5499
|
-
(matches(target, '.e-ddt .e-popup') || matches(target, '.e-ddt .e-treeview'));
|
|
5500
|
-
if (!isScroller && this.inputFocus) {
|
|
5501
|
-
this.focusOut(e);
|
|
5502
|
-
}
|
|
5519
|
+
else if (!this.inputWrapper.contains(target) && this.inputFocus) {
|
|
5520
|
+
this.focusOut(e);
|
|
5503
5521
|
}
|
|
5504
5522
|
};
|
|
5505
5523
|
DropDownTree.prototype.onActionFailure = function (e) {
|
|
@@ -6593,6 +6611,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
6593
6611
|
this.popupObj.hide();
|
|
6594
6612
|
if (this.inputFocus) {
|
|
6595
6613
|
this.inputWrapper.focus();
|
|
6614
|
+
if (this.allowFiltering) {
|
|
6615
|
+
addClass([this.inputWrapper], [INPUTFOCUS]);
|
|
6616
|
+
}
|
|
6596
6617
|
}
|
|
6597
6618
|
this.trigger('close', eventArgs);
|
|
6598
6619
|
}
|
|
@@ -6779,25 +6800,25 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
6779
6800
|
* export all modules from current location
|
|
6780
6801
|
*/
|
|
6781
6802
|
|
|
6782
|
-
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
6783
|
-
var extendStatics = function (d, b) {
|
|
6784
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6785
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6786
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6787
|
-
return extendStatics(d, b);
|
|
6788
|
-
};
|
|
6789
|
-
return function (d, b) {
|
|
6790
|
-
extendStatics(d, b);
|
|
6791
|
-
function __() { this.constructor = d; }
|
|
6792
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
6793
|
-
};
|
|
6794
|
-
})();
|
|
6795
|
-
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6796
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6797
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6798
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6799
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6800
|
-
};
|
|
6803
|
+
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
6804
|
+
var extendStatics = function (d, b) {
|
|
6805
|
+
extendStatics = Object.setPrototypeOf ||
|
|
6806
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6807
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6808
|
+
return extendStatics(d, b);
|
|
6809
|
+
};
|
|
6810
|
+
return function (d, b) {
|
|
6811
|
+
extendStatics(d, b);
|
|
6812
|
+
function __() { this.constructor = d; }
|
|
6813
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
6814
|
+
};
|
|
6815
|
+
})();
|
|
6816
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6817
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6818
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6819
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6820
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6821
|
+
};
|
|
6801
6822
|
/// <reference path='../drop-down-list/drop-down-list-model.d.ts'/>
|
|
6802
6823
|
/* tslint:disable */
|
|
6803
6824
|
/* tslint:enable */
|
|
@@ -7594,25 +7615,25 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
7594
7615
|
* export all modules from current location
|
|
7595
7616
|
*/
|
|
7596
7617
|
|
|
7597
|
-
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
7598
|
-
var extendStatics = function (d, b) {
|
|
7599
|
-
extendStatics = Object.setPrototypeOf ||
|
|
7600
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7601
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7602
|
-
return extendStatics(d, b);
|
|
7603
|
-
};
|
|
7604
|
-
return function (d, b) {
|
|
7605
|
-
extendStatics(d, b);
|
|
7606
|
-
function __() { this.constructor = d; }
|
|
7607
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7608
|
-
};
|
|
7609
|
-
})();
|
|
7610
|
-
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7611
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7612
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7613
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7614
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7615
|
-
};
|
|
7618
|
+
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
7619
|
+
var extendStatics = function (d, b) {
|
|
7620
|
+
extendStatics = Object.setPrototypeOf ||
|
|
7621
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7622
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7623
|
+
return extendStatics(d, b);
|
|
7624
|
+
};
|
|
7625
|
+
return function (d, b) {
|
|
7626
|
+
extendStatics(d, b);
|
|
7627
|
+
function __() { this.constructor = d; }
|
|
7628
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7629
|
+
};
|
|
7630
|
+
})();
|
|
7631
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7632
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7633
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7634
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7635
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7636
|
+
};
|
|
7616
7637
|
/// <reference path='../combo-box/combo-box-model.d.ts'/>
|
|
7617
7638
|
/* tslint:disable */
|
|
7618
7639
|
/* tslint:enable */
|
|
@@ -8131,25 +8152,25 @@ function floatLabelBlur(overAllWrapper, componentWrapper, value, floatLabelType,
|
|
|
8131
8152
|
}
|
|
8132
8153
|
}
|
|
8133
8154
|
|
|
8134
|
-
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
8135
|
-
var extendStatics = function (d, b) {
|
|
8136
|
-
extendStatics = Object.setPrototypeOf ||
|
|
8137
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8138
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
8139
|
-
return extendStatics(d, b);
|
|
8140
|
-
};
|
|
8141
|
-
return function (d, b) {
|
|
8142
|
-
extendStatics(d, b);
|
|
8143
|
-
function __() { this.constructor = d; }
|
|
8144
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8145
|
-
};
|
|
8146
|
-
})();
|
|
8147
|
-
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8148
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8149
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8150
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8151
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8152
|
-
};
|
|
8155
|
+
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
8156
|
+
var extendStatics = function (d, b) {
|
|
8157
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8158
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8159
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
8160
|
+
return extendStatics(d, b);
|
|
8161
|
+
};
|
|
8162
|
+
return function (d, b) {
|
|
8163
|
+
extendStatics(d, b);
|
|
8164
|
+
function __() { this.constructor = d; }
|
|
8165
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8166
|
+
};
|
|
8167
|
+
})();
|
|
8168
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8169
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8170
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8171
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8172
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8173
|
+
};
|
|
8153
8174
|
/// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
|
|
8154
8175
|
/* tslint:disable */
|
|
8155
8176
|
/* tslint:enable */
|
|
@@ -8534,6 +8555,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
8534
8555
|
else {
|
|
8535
8556
|
this.updateActionList(ulElement, list, e);
|
|
8536
8557
|
}
|
|
8558
|
+
if (isBlazor() && this.isServerRendered && this.allowFiltering && this.mode === 'CheckBox') {
|
|
8559
|
+
this.removeFocus();
|
|
8560
|
+
}
|
|
8537
8561
|
if (isBlazor() && this.isServerRendered && this.isDynamicDataChange && this.value && this.value.length > 0) {
|
|
8538
8562
|
this.updateVal(this.value, null, 'value');
|
|
8539
8563
|
this.addValidInputClass();
|
|
@@ -8549,7 +8573,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
8549
8573
|
this.mainData = list;
|
|
8550
8574
|
this.mainListCollection = this.liCollections;
|
|
8551
8575
|
}
|
|
8552
|
-
else if (
|
|
8576
|
+
else if (isNullOrUndefined(this.mainData) || this.mainData.length === 0) {
|
|
8553
8577
|
this.mainData = list;
|
|
8554
8578
|
}
|
|
8555
8579
|
if ((this.remoteCustomValue || list.length <= 0) && this.allowCustomValue && this.inputFocus && this.allowFiltering) {
|
|
@@ -8893,8 +8917,16 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
8893
8917
|
if (this.mode !== 'CheckBox') {
|
|
8894
8918
|
this.inputElement.focus();
|
|
8895
8919
|
}
|
|
8920
|
+
else if ((this.floatLabelType === 'Auto' &&
|
|
8921
|
+
((this.overAllWrapper.classList.contains('e-outline')) || (this.overAllWrapper.classList.contains('e-filled'))))) {
|
|
8922
|
+
addClass([this.overAllWrapper], 'e-valid-input');
|
|
8923
|
+
}
|
|
8896
8924
|
return;
|
|
8897
8925
|
}
|
|
8926
|
+
if (this.floatLabelType === 'Auto' && (this.overAllWrapper.classList.contains('e-outline')) && this.mode === 'CheckBox' &&
|
|
8927
|
+
((isNullOrUndefined(this.value)) || this.value.length === 0)) {
|
|
8928
|
+
removeClass([this.overAllWrapper], 'e-valid-input');
|
|
8929
|
+
}
|
|
8898
8930
|
if (this.mode === 'CheckBox' && Browser.isIE && !isNullOrUndefined(eve) && !isDocClickFromCheck) {
|
|
8899
8931
|
this.inputFocus = false;
|
|
8900
8932
|
this.overAllWrapper.classList.remove(FOCUS);
|
|
@@ -8945,6 +8977,11 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
8945
8977
|
parseInt(window.getComputedStyle(this.dropIcon).marginRight, 10);
|
|
8946
8978
|
this.setPlaceholderSize(downIconWidth);
|
|
8947
8979
|
}
|
|
8980
|
+
else {
|
|
8981
|
+
if (!isNullOrUndefined(this.dropIcon)) {
|
|
8982
|
+
this.setPlaceholderSize(this.showDropDownIcon ? this.dropIcon.offsetWidth : 0);
|
|
8983
|
+
}
|
|
8984
|
+
}
|
|
8948
8985
|
};
|
|
8949
8986
|
MultiSelect.prototype.setPlaceholderSize = function (downIconWidth) {
|
|
8950
8987
|
if (isNullOrUndefined(this.value) || this.value.length === 0) {
|
|
@@ -10062,16 +10099,16 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
10062
10099
|
if (_this.itemTemplate && (isBlazor() && _this.isServerRendered)) {
|
|
10063
10100
|
setTimeout(function () { _this.mainList = _this.ulElement; }, 0);
|
|
10064
10101
|
}
|
|
10065
|
-
else
|
|
10066
|
-
|
|
10067
|
-
|
|
10068
|
-
}
|
|
10102
|
+
else if (!(_this.mode !== 'CheckBox' && (_this.allowFiltering || _this.allowCustomValue) &&
|
|
10103
|
+
_this.targetElement().trim() !== '')) {
|
|
10104
|
+
_this.mainList = ulElement.cloneNode ? ulElement.cloneNode(true) : ulElement;
|
|
10069
10105
|
}
|
|
10070
10106
|
}
|
|
10071
10107
|
_this.isFirstClick = true;
|
|
10072
10108
|
}
|
|
10073
10109
|
_this.popupObj.wireScrollEvents();
|
|
10074
|
-
if (!(_this.mode !== 'CheckBox' && _this.allowFiltering
|
|
10110
|
+
if (!(_this.mode !== 'CheckBox' && (_this.allowFiltering || _this.allowCustomValue) &&
|
|
10111
|
+
_this.targetElement().trim() !== '')) {
|
|
10075
10112
|
_this.loadTemplate();
|
|
10076
10113
|
}
|
|
10077
10114
|
_this.setScrollPosition();
|
|
@@ -10465,7 +10502,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
10465
10502
|
MultiSelect.prototype.updateActionCompleteData = function (li, item) {
|
|
10466
10503
|
if (this.value && this.value.indexOf(li.getAttribute('data-value')) > -1) {
|
|
10467
10504
|
this.mainList = this.ulElement;
|
|
10468
|
-
|
|
10505
|
+
if (this.hideSelectedItem) {
|
|
10506
|
+
addClass([li], HIDE_LIST);
|
|
10507
|
+
}
|
|
10469
10508
|
}
|
|
10470
10509
|
};
|
|
10471
10510
|
MultiSelect.prototype.updateAddItemList = function (list, itemCount) {
|
|
@@ -10983,7 +11022,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
10983
11022
|
var textArr = this.viewWrapper.innerHTML.split(this.delimiterChar);
|
|
10984
11023
|
textArr.pop();
|
|
10985
11024
|
this.viewWrapper.innerHTML = textArr.join(this.delimiterChar);
|
|
10986
|
-
|
|
11025
|
+
if (this.viewWrapper.innerHTML === '') {
|
|
11026
|
+
remaining++;
|
|
11027
|
+
}
|
|
10987
11028
|
wrapperleng = this.viewWrapper.offsetWidth;
|
|
10988
11029
|
}
|
|
10989
11030
|
break;
|
|
@@ -11099,7 +11140,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
11099
11140
|
'li.e-list-item:not([aria-selected="true"]):not(.e-reorder-hide)' :
|
|
11100
11141
|
'li.e-list-item[aria-selected="true"]:not(.e-reorder-hide)');
|
|
11101
11142
|
if (this.value && this.value.length && this.isPopupOpen() && event && event.target
|
|
11102
|
-
&& closest(event.target, '.e-close-hooker')) {
|
|
11143
|
+
&& closest(event.target, '.e-close-hooker') && this.allowFiltering) {
|
|
11103
11144
|
li = this.mainList.querySelectorAll(state ?
|
|
11104
11145
|
'li.e-list-item:not([aria-selected="true"]):not(.e-reorder-hide)' :
|
|
11105
11146
|
'li.e-list-item[aria-selected="true"]:not(.e-reorder-hide)');
|
|
@@ -11392,28 +11433,63 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
11392
11433
|
}
|
|
11393
11434
|
this.renderPopup();
|
|
11394
11435
|
};
|
|
11436
|
+
MultiSelect.prototype.presentItemValue = function (ulElement) {
|
|
11437
|
+
var valuecheck = [];
|
|
11438
|
+
for (var i = 0; i < this.value.length; i++) {
|
|
11439
|
+
var checkEle = this.findListElement(((this.allowFiltering && !isNullOrUndefined(this.mainList)) ? this.mainList : ulElement), 'li', 'data-value', this.value[i]);
|
|
11440
|
+
if (!checkEle) {
|
|
11441
|
+
valuecheck.push(this.value[i]);
|
|
11442
|
+
}
|
|
11443
|
+
}
|
|
11444
|
+
return valuecheck;
|
|
11445
|
+
};
|
|
11446
|
+
|
|
11447
|
+
MultiSelect.prototype.addNonPresentItems = function (valuecheck, ulElement, list, event) {
|
|
11448
|
+
var _this = this;
|
|
11449
|
+
this.showSpinner();
|
|
11450
|
+
this.dataSource.executeQuery(this.getForQuery(valuecheck)).then(function (e) {
|
|
11451
|
+
_this.hideSpinner();
|
|
11452
|
+
_this.addItem(e.result, list.length);
|
|
11453
|
+
_this.updateActionList(ulElement, list, event);
|
|
11454
|
+
});
|
|
11455
|
+
};
|
|
11456
|
+
|
|
11395
11457
|
MultiSelect.prototype.updateVal = function (newProp, oldProp, prop) {
|
|
11396
11458
|
if (!this.list) {
|
|
11397
11459
|
this.onLoadSelect();
|
|
11398
11460
|
}
|
|
11399
|
-
else
|
|
11400
|
-
|
|
11401
|
-
|
|
11402
|
-
|
|
11403
|
-
}
|
|
11404
|
-
if (isNullOrUndefined(this.value) || this.value.length === 0) {
|
|
11405
|
-
this.tempValues = oldProp;
|
|
11461
|
+
else {
|
|
11462
|
+
var valuecheck = [];
|
|
11463
|
+
if (!isNullOrUndefined(this.value) && !this.allowCustomValue) {
|
|
11464
|
+
valuecheck = this.presentItemValue(this.ulElement);
|
|
11406
11465
|
}
|
|
11407
|
-
this.
|
|
11408
|
-
|
|
11409
|
-
this.
|
|
11466
|
+
if (prop == 'value' && valuecheck.length > 0 && this.dataSource instanceof DataManager && !isNullOrUndefined(this.value)
|
|
11467
|
+
&& this.listData != null) {
|
|
11468
|
+
this.mainData = null;
|
|
11469
|
+
this.setDynValue = true;
|
|
11470
|
+
this.addNonPresentItems(valuecheck, this.ulElement, this.listData);
|
|
11410
11471
|
}
|
|
11411
|
-
|
|
11412
|
-
|
|
11413
|
-
|
|
11414
|
-
|
|
11472
|
+
else {
|
|
11473
|
+
if (prop === 'text') {
|
|
11474
|
+
this.initialTextUpdate();
|
|
11475
|
+
newProp = this.value;
|
|
11476
|
+
}
|
|
11477
|
+
if (isNullOrUndefined(this.value) || this.value.length === 0) {
|
|
11478
|
+
this.tempValues = oldProp;
|
|
11479
|
+
}
|
|
11480
|
+
this.initialValueUpdate();
|
|
11481
|
+
if (this.mode !== 'Box' && !this.inputFocus) {
|
|
11482
|
+
this.updateDelimView();
|
|
11483
|
+
}
|
|
11484
|
+
if (!this.inputFocus) {
|
|
11485
|
+
this.refreshInputHight();
|
|
11486
|
+
}
|
|
11487
|
+
this.refreshPlaceHolder();
|
|
11488
|
+
if (this.mode !== 'CheckBox' && this.changeOnBlur) {
|
|
11489
|
+
this.updateValueState(null, newProp, oldProp);
|
|
11490
|
+
}
|
|
11491
|
+
this.checkPlaceholderSize();
|
|
11415
11492
|
}
|
|
11416
|
-
this.checkPlaceholderSize();
|
|
11417
11493
|
}
|
|
11418
11494
|
if (!this.changeOnBlur) {
|
|
11419
11495
|
this.updateValueState(null, newProp, oldProp);
|
|
@@ -12444,25 +12520,25 @@ var CheckBoxSelection = /** @__PURE__ @class */ (function () {
|
|
|
12444
12520
|
* export all modules from current location
|
|
12445
12521
|
*/
|
|
12446
12522
|
|
|
12447
|
-
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
12448
|
-
var extendStatics = function (d, b) {
|
|
12449
|
-
extendStatics = Object.setPrototypeOf ||
|
|
12450
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12451
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
12452
|
-
return extendStatics(d, b);
|
|
12453
|
-
};
|
|
12454
|
-
return function (d, b) {
|
|
12455
|
-
extendStatics(d, b);
|
|
12456
|
-
function __() { this.constructor = d; }
|
|
12457
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12458
|
-
};
|
|
12459
|
-
})();
|
|
12460
|
-
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
12461
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12462
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12463
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12464
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12465
|
-
};
|
|
12523
|
+
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
12524
|
+
var extendStatics = function (d, b) {
|
|
12525
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12526
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12527
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
12528
|
+
return extendStatics(d, b);
|
|
12529
|
+
};
|
|
12530
|
+
return function (d, b) {
|
|
12531
|
+
extendStatics(d, b);
|
|
12532
|
+
function __() { this.constructor = d; }
|
|
12533
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12534
|
+
};
|
|
12535
|
+
})();
|
|
12536
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
12537
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12538
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12539
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12540
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12541
|
+
};
|
|
12466
12542
|
/// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
|
|
12467
12543
|
var ITEMTEMPLATE_PROPERTY$1 = 'ItemTemplate';
|
|
12468
12544
|
/**
|
|
@@ -12531,6 +12607,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
12531
12607
|
function ListBox(options, element) {
|
|
12532
12608
|
var _this = _super.call(this, options, element) || this;
|
|
12533
12609
|
_this.isValidKey = false;
|
|
12610
|
+
_this.keyDownStatus = false;
|
|
12534
12611
|
return _this;
|
|
12535
12612
|
}
|
|
12536
12613
|
ListBox_1 = ListBox;
|
|
@@ -12576,12 +12653,12 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
12576
12653
|
};
|
|
12577
12654
|
ListBox.prototype.updateBlazorListData = function (data, isDataSource) {
|
|
12578
12655
|
if (isDataSource) {
|
|
12656
|
+
this.liCollections = this.list.querySelectorAll('.' + cssClass.li);
|
|
12579
12657
|
this.mainList = this.ulElement = this.list.querySelector('ul');
|
|
12580
12658
|
}
|
|
12581
|
-
|
|
12659
|
+
if (!isNullOrUndefined(data)) {
|
|
12582
12660
|
this.sortedData = this.jsonData = this.listData = data;
|
|
12583
12661
|
}
|
|
12584
|
-
this.initDraggable();
|
|
12585
12662
|
};
|
|
12586
12663
|
ListBox.prototype.initWrapper = function () {
|
|
12587
12664
|
var hiddenSelect = this.createElement('select', { className: 'e-hidden-select', attrs: { 'multiple': '' } });
|
|
@@ -12626,9 +12703,6 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
12626
12703
|
};
|
|
12627
12704
|
ListBox.prototype.initDraggable = function () {
|
|
12628
12705
|
var _this = this;
|
|
12629
|
-
if (this.ulElement) {
|
|
12630
|
-
this.ulElement.id = this.element.id + '_parent';
|
|
12631
|
-
}
|
|
12632
12706
|
if (this.allowDragAndDrop) {
|
|
12633
12707
|
new Sortable(this.ulElement, {
|
|
12634
12708
|
scope: this.scope,
|
|
@@ -12765,7 +12839,13 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
12765
12839
|
}
|
|
12766
12840
|
};
|
|
12767
12841
|
ListBox.prototype.onInput = function () {
|
|
12768
|
-
this.
|
|
12842
|
+
if (this.keyDownStatus) {
|
|
12843
|
+
this.isValidKey = true;
|
|
12844
|
+
}
|
|
12845
|
+
else {
|
|
12846
|
+
this.isValidKey = false;
|
|
12847
|
+
}
|
|
12848
|
+
this.keyDownStatus = false;
|
|
12769
12849
|
this.refreshClearIcon();
|
|
12770
12850
|
};
|
|
12771
12851
|
ListBox.prototype.clearText = function () {
|
|
@@ -12783,21 +12863,12 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
12783
12863
|
};
|
|
12784
12864
|
ListBox.prototype.onActionComplete = function (ulElement, list, e) {
|
|
12785
12865
|
var searchEle;
|
|
12786
|
-
if (this.allowFiltering
|
|
12787
|
-
|
|
12788
|
-
searchEle = this.list.getElementsByClassName('e-filter-parent')[0];
|
|
12789
|
-
}
|
|
12790
|
-
else {
|
|
12791
|
-
searchEle = this.list.getElementsByClassName('e-filter-parent')[0].cloneNode(true);
|
|
12792
|
-
}
|
|
12866
|
+
if (this.allowFiltering) {
|
|
12867
|
+
searchEle = this.list.getElementsByClassName('e-filter-parent')[0];
|
|
12793
12868
|
}
|
|
12794
12869
|
_super.prototype.onActionComplete.call(this, ulElement, list, e);
|
|
12795
12870
|
if (this.allowFiltering && !isNullOrUndefined(searchEle)) {
|
|
12796
12871
|
this.list.insertBefore(searchEle, this.list.firstElementChild);
|
|
12797
|
-
if (!isBlazor() && !this.isServerRendered) {
|
|
12798
|
-
this.filterParent = this.list.getElementsByClassName('e-filter-parent')[0];
|
|
12799
|
-
this.filterWireEvents(searchEle);
|
|
12800
|
-
}
|
|
12801
12872
|
}
|
|
12802
12873
|
this.initWrapper();
|
|
12803
12874
|
this.setSelection();
|
|
@@ -12817,11 +12888,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
12817
12888
|
}
|
|
12818
12889
|
else {
|
|
12819
12890
|
if (this.allowFiltering) {
|
|
12820
|
-
|
|
12821
|
-
var txtLength = this.filterInput.value.length;
|
|
12822
|
-
filterElem.selectionStart = txtLength;
|
|
12823
|
-
filterElem.selectionEnd = txtLength;
|
|
12824
|
-
filterElem.focus();
|
|
12891
|
+
this.list.getElementsByClassName('e-input-filter')[0].focus();
|
|
12825
12892
|
}
|
|
12826
12893
|
}
|
|
12827
12894
|
this.initLoad = false;
|
|
@@ -13135,6 +13202,8 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
13135
13202
|
var dupData = [];
|
|
13136
13203
|
var itemIdx = void 0;
|
|
13137
13204
|
extend(dupData, [], this.listData);
|
|
13205
|
+
var removeIdxes = [];
|
|
13206
|
+
var removeLiIdxes = [];
|
|
13138
13207
|
for (var j = 0; j < items.length; j++) {
|
|
13139
13208
|
if (items[j] instanceof Object) {
|
|
13140
13209
|
dataValue = getValue(fields.value, items[j]);
|
|
@@ -13152,11 +13221,17 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
13152
13221
|
if (objValue === dataValue) {
|
|
13153
13222
|
itemIdx = this.getIndexByValue(dataValue);
|
|
13154
13223
|
liCollections.push(liElement[itemIdx]);
|
|
13155
|
-
|
|
13156
|
-
|
|
13224
|
+
removeIdxes.push(i);
|
|
13225
|
+
removeLiIdxes.push(itemIdx);
|
|
13157
13226
|
}
|
|
13158
13227
|
}
|
|
13159
13228
|
}
|
|
13229
|
+
for (var k = removeIdxes.length - 1; k > 0; k--) {
|
|
13230
|
+
this.listData.splice(removeIdxes[k], 1);
|
|
13231
|
+
}
|
|
13232
|
+
for (var k = removeLiIdxes.length - 1; k > 0; k--) {
|
|
13233
|
+
this.liCollections.splice(removeLiIdxes[k], 1);
|
|
13234
|
+
}
|
|
13160
13235
|
}
|
|
13161
13236
|
else {
|
|
13162
13237
|
itemIndex = itemIndex ? itemIndex : 0;
|
|
@@ -13167,6 +13242,9 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
13167
13242
|
for (var i = 0; i < liCollections.length; i++) {
|
|
13168
13243
|
this.ulElement.removeChild(liCollections[i]);
|
|
13169
13244
|
}
|
|
13245
|
+
if (this.listData.length === 0) {
|
|
13246
|
+
this.l10nUpdate();
|
|
13247
|
+
}
|
|
13170
13248
|
};
|
|
13171
13249
|
/**
|
|
13172
13250
|
* Gets the array of data Object that matches the given array of values.
|
|
@@ -13371,7 +13449,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
13371
13449
|
EventHandler.remove(this.list, 'click', this.clickHandler);
|
|
13372
13450
|
EventHandler.remove(wrapper, 'keydown', this.keyDownHandler);
|
|
13373
13451
|
EventHandler.remove(wrapper, 'focusout', this.focusOutHandler);
|
|
13374
|
-
if (this.allowFiltering
|
|
13452
|
+
if (this.allowFiltering) {
|
|
13375
13453
|
EventHandler.remove(this.clearFilterIconElem, 'click', this.clearText);
|
|
13376
13454
|
}
|
|
13377
13455
|
if (this.toolbarSettings.items.length) {
|
|
@@ -13433,6 +13511,9 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
13433
13511
|
className: listBoxClasses.filterInput
|
|
13434
13512
|
});
|
|
13435
13513
|
this.element.parentNode.insertBefore(this.filterInput, this.element);
|
|
13514
|
+
if (Browser.isDevice) {
|
|
13515
|
+
|
|
13516
|
+
}
|
|
13436
13517
|
filterInputObj = Input.createInput({
|
|
13437
13518
|
element: this.filterInput,
|
|
13438
13519
|
buttons: [listBoxClasses.filterBarClearIcon],
|
|
@@ -13455,24 +13536,16 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
13455
13536
|
addClass([this.list], 'e-filter-list');
|
|
13456
13537
|
}
|
|
13457
13538
|
this.inputString = this.filterInput.value;
|
|
13458
|
-
this.
|
|
13459
|
-
|
|
13460
|
-
|
|
13461
|
-
};
|
|
13462
|
-
ListBox.prototype.filterWireEvents = function (filterElem) {
|
|
13463
|
-
if (filterElem) {
|
|
13464
|
-
this.filterInput = filterElem.querySelector('.e-input-filter');
|
|
13465
|
-
}
|
|
13466
|
-
this.clearFilterIconElem = this.filterInput.parentElement.querySelector('.' + listBoxClasses.clearIcon);
|
|
13467
|
-
if (this.clearFilterIconElem) {
|
|
13468
|
-
EventHandler.add(this.clearFilterIconElem, 'click', this.clearText, this);
|
|
13469
|
-
if (!filterElem) {
|
|
13539
|
+
this.clearFilterIconElem = this.filterInput.parentElement.querySelector('.' + listBoxClasses.clearIcon);
|
|
13540
|
+
if (this.clearFilterIconElem) {
|
|
13541
|
+
EventHandler.add(this.clearFilterIconElem, 'click', this.clearText, this);
|
|
13470
13542
|
this.clearFilterIconElem.style.visibility = 'hidden';
|
|
13471
13543
|
}
|
|
13544
|
+
EventHandler.add(this.filterInput, 'input', this.onInput, this);
|
|
13545
|
+
EventHandler.add(this.filterInput, 'keyup', this.KeyUp, this);
|
|
13546
|
+
EventHandler.add(this.filterInput, 'keydown', this.onKeyDown, this);
|
|
13547
|
+
return filterInputObj;
|
|
13472
13548
|
}
|
|
13473
|
-
EventHandler.add(this.filterInput, 'input', this.onInput, this);
|
|
13474
|
-
EventHandler.add(this.filterInput, 'keyup', this.KeyUp, this);
|
|
13475
|
-
EventHandler.add(this.filterInput, 'keydown', this.onKeyDown, this);
|
|
13476
13549
|
};
|
|
13477
13550
|
ListBox.prototype.selectHandler = function (e, isKey) {
|
|
13478
13551
|
var isSelect = true;
|
|
@@ -14576,5 +14649,5 @@ var listBoxClasses = {
|
|
|
14576
14649
|
* export all modules from current location
|
|
14577
14650
|
*/
|
|
14578
14651
|
|
|
14579
|
-
export { incrementalSearch, Search, highlightSearch, revertHighlightSearch, FieldSettings, dropDownBaseClasses, DropDownBase, dropDownListClasses, DropDownList, Fields, TreeSettings, DropDownTree, ComboBox, AutoComplete, MultiSelect, CheckBoxSelection, SelectionSettings, ToolbarSettings, ListBox };
|
|
14652
|
+
export { incrementalSearch, Search, highlightSearch, revertHighlightSearch, FieldSettings, dropDownBaseClasses, DropDownBase, dropDownListClasses, DropDownList, Fields, TreeSettings, DropDownTree, ComboBox, AutoComplete, MultiSelect, CheckBoxSelection, createFloatLabel, updateFloatLabelState, removeFloating, setPlaceHolder, floatLabelFocus, floatLabelBlur, SelectionSettings, ToolbarSettings, ListBox };
|
|
14580
14653
|
//# sourceMappingURL=ej2-dropdowns.es5.js.map
|