@syncfusion/ej2-dropdowns 29.2.8 → 29.2.11-81740
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 → ReadMe.md} +217 -217
- 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 +186 -95
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +352 -258
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/license +2 -2
- package/package.json +36 -36
- package/src/auto-complete/auto-complete-model.d.ts +190 -190
- 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 +232 -232
- package/src/combo-box/combo-box.d.ts +26 -26
- package/src/combo-box/combo-box.js +29 -29
- package/src/common/incremental-search.js +1 -1
- package/src/common/virtual-scroll.js +46 -46
- package/src/drop-down-base/drop-down-base-model.d.ts +205 -205
- package/src/drop-down-base/drop-down-base.d.ts +15 -15
- package/src/drop-down-base/drop-down-base.js +21 -21
- package/src/drop-down-list/drop-down-list-model.d.ts +310 -310
- package/src/drop-down-list/drop-down-list.d.ts +5 -5
- package/src/drop-down-list/drop-down-list.js +21 -21
- package/src/drop-down-tree/drop-down-tree-model.d.ts +493 -493
- package/src/drop-down-tree/drop-down-tree.d.ts +2 -1
- package/src/drop-down-tree/drop-down-tree.js +24 -19
- package/src/list-box/list-box-model.d.ts +237 -237
- package/src/list-box/list-box.d.ts +2 -2
- package/src/list-box/list-box.js +19 -19
- package/src/mention/mention-model.d.ts +272 -272
- package/src/mention/mention.d.ts +1 -1
- package/src/mention/mention.js +29 -27
- package/src/multi-select/multi-select-model.d.ts +564 -564
- package/src/multi-select/multi-select.d.ts +2 -1
- package/src/multi-select/multi-select.js +143 -56
- package/styles/auto-complete/_all.scss +1 -1
- package/styles/auto-complete/_bds-definition.scss +2 -2
- package/styles/auto-complete/_bootstrap-dark-definition.scss +3 -3
- package/styles/auto-complete/_bootstrap-definition.scss +2 -2
- package/styles/auto-complete/_bootstrap4-definition.scss +11 -11
- package/styles/auto-complete/_bootstrap5-definition.scss +2 -2
- package/styles/auto-complete/_bootstrap5.3-definition.scss +2 -2
- package/styles/auto-complete/_fabric-dark-definition.scss +2 -2
- package/styles/auto-complete/_fabric-definition.scss +2 -2
- package/styles/auto-complete/_fluent-definition.scss +2 -2
- package/styles/auto-complete/_fluent2-definition.scss +2 -2
- package/styles/auto-complete/_fusionnew-definition.scss +2 -2
- package/styles/auto-complete/_highcontrast-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/auto-complete/_material-definition.scss +2 -2
- package/styles/auto-complete/_material3-definition.scss +2 -2
- package/styles/auto-complete/_tailwind-definition.scss +2 -2
- package/styles/auto-complete/_tailwind3-definition.scss +2 -2
- package/styles/auto-complete/material3-dark.scss +1 -1
- package/styles/auto-complete/material3.scss +1 -1
- package/styles/combo-box/_all.scss +1 -1
- package/styles/combo-box/_bds-definition.scss +2 -2
- package/styles/combo-box/_bootstrap-dark-definition.scss +2 -2
- package/styles/combo-box/_bootstrap-definition.scss +2 -2
- package/styles/combo-box/_bootstrap4-definition.scss +11 -11
- package/styles/combo-box/_bootstrap5-definition.scss +2 -2
- package/styles/combo-box/_bootstrap5.3-definition.scss +2 -2
- package/styles/combo-box/_fabric-dark-definition.scss +2 -2
- package/styles/combo-box/_fabric-definition.scss +2 -2
- package/styles/combo-box/_fluent-definition.scss +2 -2
- package/styles/combo-box/_fluent2-definition.scss +2 -2
- package/styles/combo-box/_fusionnew-definition.scss +2 -2
- package/styles/combo-box/_highcontrast-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/combo-box/_material-definition.scss +2 -2
- package/styles/combo-box/_material3-definition.scss +2 -2
- package/styles/combo-box/_tailwind-definition.scss +2 -2
- package/styles/combo-box/_tailwind3-definition.scss +2 -2
- package/styles/combo-box/material3-dark.scss +1 -1
- package/styles/combo-box/material3.scss +1 -1
- package/styles/drop-down-base/_all.scss +2 -2
- package/styles/drop-down-base/_bds-definition.scss +112 -112
- package/styles/drop-down-base/_bigger.scss +198 -198
- package/styles/drop-down-base/_bootstrap-dark-definition.scss +80 -80
- package/styles/drop-down-base/_bootstrap-definition.scss +78 -78
- package/styles/drop-down-base/_bootstrap4-definition.scss +83 -83
- package/styles/drop-down-base/_bootstrap5-definition.scss +98 -98
- package/styles/drop-down-base/_bootstrap5.3-definition.scss +98 -98
- package/styles/drop-down-base/_definition.scss +23 -23
- package/styles/drop-down-base/_fabric-dark-definition.scss +81 -81
- package/styles/drop-down-base/_fabric-definition.scss +79 -79
- package/styles/drop-down-base/_fluent-definition.scss +102 -102
- package/styles/drop-down-base/_fluent2-definition.scss +113 -113
- package/styles/drop-down-base/_fusionnew-definition.scss +98 -98
- package/styles/drop-down-base/_highcontrast-definition.scss +96 -96
- package/styles/drop-down-base/_highcontrast-light-definition.scss +96 -96
- package/styles/drop-down-base/_layout.scss +148 -148
- package/styles/drop-down-base/_material-dark-definition.scss +82 -82
- package/styles/drop-down-base/_material-definition.scss +81 -81
- package/styles/drop-down-base/_material3-definition.scss +73 -73
- package/styles/drop-down-base/_tailwind-definition.scss +107 -107
- package/styles/drop-down-base/_tailwind3-definition.scss +98 -98
- package/styles/drop-down-base/_theme.scss +303 -303
- package/styles/drop-down-base/material3-dark.scss +1 -1
- package/styles/drop-down-base/material3.scss +1 -1
- package/styles/drop-down-list/_all.scss +3 -3
- package/styles/drop-down-list/_bds-definition.scss +100 -100
- package/styles/drop-down-list/_bigger.scss +713 -713
- package/styles/drop-down-list/_bootstrap-dark-definition.scss +94 -94
- package/styles/drop-down-list/_bootstrap-definition.scss +93 -93
- package/styles/drop-down-list/_bootstrap4-definition.scss +122 -122
- package/styles/drop-down-list/_bootstrap5-definition.scss +135 -135
- package/styles/drop-down-list/_bootstrap5.3-definition.scss +136 -136
- package/styles/drop-down-list/_fabric-dark-definition.scss +72 -72
- package/styles/drop-down-list/_fabric-definition.scss +69 -69
- package/styles/drop-down-list/_fluent-definition.scss +128 -128
- package/styles/drop-down-list/_fluent2-definition.scss +101 -101
- package/styles/drop-down-list/_fusionnew-definition.scss +134 -134
- package/styles/drop-down-list/_highcontrast-definition.scss +83 -83
- package/styles/drop-down-list/_highcontrast-light-definition.scss +85 -85
- package/styles/drop-down-list/_layout.scss +284 -284
- package/styles/drop-down-list/_material-dark-definition.scss +110 -110
- package/styles/drop-down-list/_material-definition.scss +112 -112
- package/styles/drop-down-list/_material3-definition.scss +114 -114
- package/styles/drop-down-list/_tailwind-definition.scss +100 -100
- package/styles/drop-down-list/_tailwind3-definition.scss +135 -135
- package/styles/drop-down-list/_theme.scss +17 -17
- package/styles/drop-down-list/icons/_bds.scss +14 -14
- package/styles/drop-down-list/icons/_bootstrap-dark.scss +18 -18
- package/styles/drop-down-list/icons/_bootstrap.scss +18 -18
- package/styles/drop-down-list/icons/_bootstrap4.scss +18 -18
- package/styles/drop-down-list/icons/_bootstrap5.3.scss +18 -18
- package/styles/drop-down-list/icons/_bootstrap5.scss +18 -18
- package/styles/drop-down-list/icons/_fabric-dark.scss +18 -18
- package/styles/drop-down-list/icons/_fabric.scss +18 -18
- package/styles/drop-down-list/icons/_fluent.scss +18 -18
- package/styles/drop-down-list/icons/_fluent2.scss +18 -18
- package/styles/drop-down-list/icons/_fusionnew.scss +14 -14
- package/styles/drop-down-list/icons/_highcontrast-light.scss +14 -14
- package/styles/drop-down-list/icons/_highcontrast.scss +18 -18
- package/styles/drop-down-list/icons/_material-dark.scss +18 -18
- package/styles/drop-down-list/icons/_material.scss +18 -18
- package/styles/drop-down-list/icons/_material3.scss +18 -18
- package/styles/drop-down-list/icons/_tailwind.scss +18 -18
- package/styles/drop-down-list/icons/_tailwind3.scss +14 -14
- package/styles/drop-down-list/material3-dark.scss +1 -1
- package/styles/drop-down-list/material3.scss +1 -1
- package/styles/drop-down-tree/_all.scss +2 -2
- package/styles/drop-down-tree/_bds-definition.scss +74 -74
- package/styles/drop-down-tree/_bigger.scss +561 -561
- package/styles/drop-down-tree/_bootstrap-dark-definition.scss +81 -81
- package/styles/drop-down-tree/_bootstrap-definition.scss +81 -81
- package/styles/drop-down-tree/_bootstrap4-definition.scss +85 -85
- package/styles/drop-down-tree/_bootstrap5-definition.scss +73 -73
- package/styles/drop-down-tree/_bootstrap5.3-definition.scss +74 -74
- package/styles/drop-down-tree/_fabric-dark-definition.scss +81 -81
- package/styles/drop-down-tree/_fabric-definition.scss +81 -81
- package/styles/drop-down-tree/_fluent-definition.scss +78 -78
- package/styles/drop-down-tree/_fluent2-definition.scss +85 -85
- package/styles/drop-down-tree/_fusionnew-definition.scss +69 -69
- package/styles/drop-down-tree/_highcontrast-definition.scss +81 -81
- package/styles/drop-down-tree/_highcontrast-light-definition.scss +81 -81
- package/styles/drop-down-tree/_layout.scss +942 -942
- package/styles/drop-down-tree/_material-dark-definition.scss +82 -82
- package/styles/drop-down-tree/_material-definition.scss +84 -84
- package/styles/drop-down-tree/_material3-definition.scss +84 -84
- package/styles/drop-down-tree/_tailwind-definition.scss +74 -74
- package/styles/drop-down-tree/_tailwind3-definition.scss +75 -75
- package/styles/drop-down-tree/_theme.scss +135 -135
- package/styles/drop-down-tree/icons/_bds.scss +11 -11
- 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/_bootstrap5.3.scss +11 -11
- package/styles/drop-down-tree/icons/_bootstrap5.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/_fluent.scss +11 -11
- package/styles/drop-down-tree/icons/_fluent2.scss +14 -14
- package/styles/drop-down-tree/icons/_fusionnew.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/icons/_material3.scss +11 -11
- package/styles/drop-down-tree/icons/_tailwind-dark.scss +11 -11
- package/styles/drop-down-tree/icons/_tailwind.scss +11 -11
- package/styles/drop-down-tree/icons/_tailwind3.scss +11 -11
- package/styles/drop-down-tree/material3-dark.scss +1 -1
- package/styles/drop-down-tree/material3.scss +1 -1
- package/styles/list-box/_all.scss +2 -2
- package/styles/list-box/_bds-definition.scss +136 -136
- package/styles/list-box/_bigger.scss +190 -190
- package/styles/list-box/_bootstrap-dark-definition.scss +126 -126
- package/styles/list-box/_bootstrap-definition.scss +119 -119
- package/styles/list-box/_bootstrap4-definition.scss +126 -126
- package/styles/list-box/_bootstrap5-definition.scss +121 -121
- package/styles/list-box/_bootstrap5.3-definition.scss +123 -123
- package/styles/list-box/_fabric-dark-definition.scss +124 -124
- package/styles/list-box/_fabric-definition.scss +119 -119
- package/styles/list-box/_fluent-definition.scss +120 -120
- package/styles/list-box/_fluent2-definition.scss +121 -121
- package/styles/list-box/_fusionnew-definition.scss +111 -111
- package/styles/list-box/_highcontrast-definition.scss +119 -119
- package/styles/list-box/_highcontrast-light-definition.scss +124 -124
- package/styles/list-box/_layout.scss +496 -496
- package/styles/list-box/_material-dark-definition.scss +124 -124
- package/styles/list-box/_material-definition.scss +119 -119
- package/styles/list-box/_material3-definition.scss +119 -119
- package/styles/list-box/_tailwind-definition.scss +119 -119
- package/styles/list-box/_tailwind3-definition.scss +123 -123
- package/styles/list-box/_theme.scss +327 -327
- package/styles/list-box/icons/_bds.scss +25 -25
- 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/_bootstrap5.3.scss +25 -25
- package/styles/list-box/icons/_bootstrap5.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/_fluent.scss +25 -25
- package/styles/list-box/icons/_fluent2.scss +25 -25
- package/styles/list-box/icons/_fusionnew.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/icons/_material3.scss +25 -25
- package/styles/list-box/icons/_tailwind-dark.scss +25 -25
- package/styles/list-box/icons/_tailwind.scss +25 -25
- package/styles/list-box/icons/_tailwind3.scss +25 -25
- package/styles/list-box/material3-dark.scss +1 -1
- package/styles/list-box/material3.scss +1 -1
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.scss +1 -1
- package/styles/mention/_all.scss +1 -1
- package/styles/mention/_bds-definition.scss +1 -1
- package/styles/mention/_bootstrap-dark-definition.scss +3 -3
- package/styles/mention/_bootstrap-definition.scss +3 -3
- package/styles/mention/_bootstrap4-definition.scss +3 -3
- package/styles/mention/_bootstrap5-definition.scss +1 -1
- package/styles/mention/_bootstrap5.3-definition.scss +1 -1
- package/styles/mention/_fabric-dark-definition.scss +2 -2
- package/styles/mention/_fabric-definition.scss +3 -3
- package/styles/mention/_fluent-definition.scss +1 -1
- package/styles/mention/_fluent2-definition.scss +1 -1
- package/styles/mention/_fusionnew-definition.scss +1 -1
- package/styles/mention/_highcontrast-definition.scss +3 -3
- package/styles/mention/_highcontrast-light-definition.scss +3 -3
- package/styles/mention/_layout.scss +6 -6
- package/styles/mention/_material-dark-definition.scss +3 -3
- package/styles/mention/_material-definition.scss +3 -3
- package/styles/mention/_material3-definition.scss +1 -1
- package/styles/mention/_tailwind-definition.scss +1 -1
- package/styles/mention/_tailwind3-definition.scss +1 -1
- package/styles/mention/material3-dark.scss +1 -1
- package/styles/mention/material3.scss +1 -1
- package/styles/multi-select/_all.scss +2 -2
- package/styles/multi-select/_bds-definition.scss +231 -231
- package/styles/multi-select/_bigger.scss +2002 -2002
- package/styles/multi-select/_bootstrap-dark-definition.scss +198 -198
- package/styles/multi-select/_bootstrap-definition.scss +187 -187
- package/styles/multi-select/_bootstrap4-definition.scss +236 -236
- package/styles/multi-select/_bootstrap5-definition.scss +229 -229
- package/styles/multi-select/_bootstrap5.3-definition.scss +229 -229
- package/styles/multi-select/_fabric-dark-definition.scss +190 -190
- package/styles/multi-select/_fabric-definition.scss +181 -181
- package/styles/multi-select/_fluent-definition.scss +236 -236
- package/styles/multi-select/_fluent2-definition.scss +234 -234
- package/styles/multi-select/_fusionnew-definition.scss +222 -222
- package/styles/multi-select/_highcontrast-definition.scss +302 -302
- package/styles/multi-select/_highcontrast-light-definition.scss +296 -296
- package/styles/multi-select/_layout.scss +1335 -1335
- package/styles/multi-select/_material-dark-definition.scss +248 -248
- package/styles/multi-select/_material-definition.scss +250 -250
- package/styles/multi-select/_material3-definition.scss +233 -233
- package/styles/multi-select/_tailwind-definition.scss +231 -231
- package/styles/multi-select/_tailwind3-definition.scss +227 -227
- package/styles/multi-select/_theme.scss +564 -564
- package/styles/multi-select/icons/_bds.scss +26 -26
- package/styles/multi-select/icons/_bootstrap-dark.scss +30 -30
- package/styles/multi-select/icons/_bootstrap.scss +30 -30
- package/styles/multi-select/icons/_bootstrap4.scss +32 -32
- package/styles/multi-select/icons/_bootstrap5.3.scss +30 -30
- package/styles/multi-select/icons/_bootstrap5.scss +30 -30
- package/styles/multi-select/icons/_fabric-dark.scss +30 -30
- package/styles/multi-select/icons/_fabric.scss +30 -30
- package/styles/multi-select/icons/_fluent.scss +38 -38
- package/styles/multi-select/icons/_fluent2.scss +347 -347
- package/styles/multi-select/icons/_fusionnew.scss +26 -26
- package/styles/multi-select/icons/_highcontrast-light.scss +26 -26
- package/styles/multi-select/icons/_highcontrast.scss +30 -30
- package/styles/multi-select/icons/_material-dark.scss +348 -348
- package/styles/multi-select/icons/_material.scss +348 -348
- package/styles/multi-select/icons/_material3.scss +350 -350
- package/styles/multi-select/icons/_tailwind.scss +30 -30
- package/styles/multi-select/icons/_tailwind3.scss +26 -26
- package/styles/multi-select/material3-dark.scss +1 -1
- package/styles/multi-select/material3.scss +1 -1
- package/.eslintrc.json +0 -261
- package/dist/ej2-dropdowns.min.js +0 -10
- package/dist/global/ej2-dropdowns.min.js +0 -11
- package/dist/global/ej2-dropdowns.min.js.map +0 -1
- package/dist/global/index.d.ts +0 -14
- package/helpers/e2e/autocomplete.d.ts +0 -16
- package/helpers/e2e/autocomplete.js +0 -60
- package/helpers/e2e/combobox.d.ts +0 -17
- package/helpers/e2e/combobox.js +0 -63
- package/helpers/e2e/dropdownlist.d.ts +0 -20
- package/helpers/e2e/dropdownlist.js +0 -72
- package/helpers/e2e/index.d.ts +0 -4
- package/helpers/e2e/index.js +0 -11
- package/helpers/e2e/listboxHelper.d.ts +0 -22
- package/helpers/e2e/listboxHelper.js +0 -56
- package/helpers/e2e/multiselect.d.ts +0 -31
- package/helpers/e2e/multiselect.js +0 -105
- package/tslint.json +0 -111
|
@@ -136,7 +136,7 @@ function Search(inputVal, items, searchType, ignoreCase, dataSource, fields, typ
|
|
|
136
136
|
const listItems = items;
|
|
137
137
|
ignoreCase = ignoreCase !== undefined && ignoreCase !== null ? ignoreCase : true;
|
|
138
138
|
const itemData = { item: null, index: null };
|
|
139
|
-
if (inputVal && inputVal.length) {
|
|
139
|
+
if (inputVal && inputVal.length && items) {
|
|
140
140
|
const strLength = inputVal.length;
|
|
141
141
|
let queryStr = ignoreCase ? inputVal.toLocaleLowerCase() : inputVal;
|
|
142
142
|
queryStr = escapeCharRegExp(queryStr);
|
|
@@ -255,14 +255,14 @@ function revertHighlightSearch(content) {
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
259
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
260
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
261
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
262
|
-
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
263
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
264
|
-
});
|
|
265
|
-
};
|
|
258
|
+
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
259
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
260
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
261
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
262
|
+
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
263
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
264
|
+
});
|
|
265
|
+
};
|
|
266
266
|
class VirtualScroll {
|
|
267
267
|
constructor(parent) {
|
|
268
268
|
this.sentinelInfo = {
|
|
@@ -803,12 +803,12 @@ class VirtualScroll {
|
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
805
|
|
|
806
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
807
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
808
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
809
|
-
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;
|
|
810
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
811
|
-
};
|
|
806
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
807
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
808
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
809
|
+
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;
|
|
810
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
811
|
+
};
|
|
812
812
|
class FieldSettings extends ChildProperty {
|
|
813
813
|
}
|
|
814
814
|
__decorate([
|
|
@@ -1275,7 +1275,7 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
1275
1275
|
isContainSkeleton.firstChild.insertBefore(liElement, isContainSkeleton.firstChild.children[0]);
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
|
-
if (this.getModuleName() === 'multiselect') {
|
|
1278
|
+
if (this.getModuleName() === 'multiselect' && !this.isVirtualReorder && !isContainSkeleton.firstChild.classList.contains('e-reorder')) {
|
|
1279
1279
|
for (let i = 0; i < totalSkeletonCount && this.totalItemCount !== this.viewPortInfo.endIndex; i++) {
|
|
1280
1280
|
const liElement = this.createElement('li', { className: `${dropDownBaseClasses.virtualList} e-virtual-list-end`, styles: 'overflow: inherit' });
|
|
1281
1281
|
if (this.isVirtualizationEnabled && this.itemTemplate) {
|
|
@@ -2869,12 +2869,12 @@ DropDownBase = __decorate([
|
|
|
2869
2869
|
NotifyPropertyChanges
|
|
2870
2870
|
], DropDownBase);
|
|
2871
2871
|
|
|
2872
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2873
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2874
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2875
|
-
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;
|
|
2876
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2877
|
-
};
|
|
2872
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2873
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2874
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2875
|
+
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;
|
|
2876
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2877
|
+
};
|
|
2878
2878
|
// don't use space in classnames
|
|
2879
2879
|
const dropDownListClasses = {
|
|
2880
2880
|
root: 'e-dropdownlist',
|
|
@@ -7346,12 +7346,12 @@ DropDownList = __decorate$1([
|
|
|
7346
7346
|
NotifyPropertyChanges
|
|
7347
7347
|
], DropDownList);
|
|
7348
7348
|
|
|
7349
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7350
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7351
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7352
|
-
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;
|
|
7353
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7354
|
-
};
|
|
7349
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7350
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7351
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7352
|
+
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;
|
|
7353
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7354
|
+
};
|
|
7355
7355
|
const RTL = 'e-rtl';
|
|
7356
7356
|
const DROPDOWNTREE = 'e-ddt';
|
|
7357
7357
|
const HIDDENELEMENT = 'e-ddt-hidden';
|
|
@@ -7806,6 +7806,11 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
7806
7806
|
}
|
|
7807
7807
|
}
|
|
7808
7808
|
this.treeObj.fields = this.getTreeFields(fields);
|
|
7809
|
+
if ((this.previousFilterText && this.previousFilterText !== '' && args.text !== '' && this.previousFilterText.indexOf(args.text) !== -1) ||
|
|
7810
|
+
(args.text && args.text !== '' && this.previousFilterText !== '' && args.text.indexOf(this.previousFilterText) !== -1)) {
|
|
7811
|
+
this.isFilterRestore = true;
|
|
7812
|
+
}
|
|
7813
|
+
this.previousFilterText = args.text;
|
|
7809
7814
|
this.treeObj.dataBind();
|
|
7810
7815
|
if (this.popupObj) {
|
|
7811
7816
|
this.popupObj.refreshPosition();
|
|
@@ -10857,12 +10862,12 @@ DropDownTree = __decorate$2([
|
|
|
10857
10862
|
NotifyPropertyChanges
|
|
10858
10863
|
], DropDownTree);
|
|
10859
10864
|
|
|
10860
|
-
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
10861
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10862
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10863
|
-
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;
|
|
10864
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10865
|
-
};
|
|
10865
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
10866
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10867
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10868
|
+
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;
|
|
10869
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10870
|
+
};
|
|
10866
10871
|
const SPINNER_CLASS = 'e-atc-spinner-icon';
|
|
10867
10872
|
dropDownListClasses.root = 'e-combobox';
|
|
10868
10873
|
const inputObject$1 = {
|
|
@@ -11919,12 +11924,12 @@ ComboBox = __decorate$3([
|
|
|
11919
11924
|
NotifyPropertyChanges
|
|
11920
11925
|
], ComboBox);
|
|
11921
11926
|
|
|
11922
|
-
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11923
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11924
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11925
|
-
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;
|
|
11926
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11927
|
-
};
|
|
11927
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11928
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11929
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11930
|
+
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;
|
|
11931
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11932
|
+
};
|
|
11928
11933
|
dropDownListClasses.root = 'e-autocomplete';
|
|
11929
11934
|
dropDownListClasses.icon = 'e-input-group-icon e-ddl-icon e-search-icon';
|
|
11930
11935
|
/**
|
|
@@ -12628,12 +12633,12 @@ function encodePlaceholder(placeholder) {
|
|
|
12628
12633
|
}
|
|
12629
12634
|
/* eslint-enable valid-jsdoc */
|
|
12630
12635
|
|
|
12631
|
-
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
12632
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12633
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12634
|
-
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;
|
|
12635
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12636
|
-
};
|
|
12636
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
12637
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12638
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12639
|
+
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;
|
|
12640
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12641
|
+
};
|
|
12637
12642
|
const FOCUS = 'e-input-focus';
|
|
12638
12643
|
const DISABLED$1 = 'e-disabled';
|
|
12639
12644
|
const OVER_ALL_WRAPPER = 'e-multiselect e-input-group e-control-wrapper';
|
|
@@ -12908,8 +12913,8 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
12908
12913
|
else {
|
|
12909
12914
|
this.resetList(this.dataSource, this.fields, query);
|
|
12910
12915
|
}
|
|
12911
|
-
this.isVirtualReorder = false;
|
|
12912
12916
|
this.UpdateSkeleton();
|
|
12917
|
+
this.isVirtualReorder = false;
|
|
12913
12918
|
this.liCollections = this.list.querySelectorAll('.' + dropDownBaseClasses.li);
|
|
12914
12919
|
this.virtualItemCount = this.itemCount;
|
|
12915
12920
|
if (this.mode !== 'CheckBox') {
|
|
@@ -13087,7 +13092,8 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
13087
13092
|
if (!isNullOrUndefined(this.value)) {
|
|
13088
13093
|
this.tempValues = this.allowObjectBinding ? this.value.slice() : this.value.slice();
|
|
13089
13094
|
}
|
|
13090
|
-
let customValue = this.allowObjectBinding ?
|
|
13095
|
+
let customValue = this.allowObjectBinding ? this.enableVirtualization ?
|
|
13096
|
+
this.getVirtualDataByValue(this.getFormattedValue(value)) :
|
|
13091
13097
|
this.getDataByValue(this.getFormattedValue(value)) : this.getFormattedValue(value);
|
|
13092
13098
|
if (this.allowCustomValue && (value !== 'false' && customValue === false || (!isNullOrUndefined(customValue) &&
|
|
13093
13099
|
customValue.toString() === 'NaN'))) {
|
|
@@ -13211,8 +13217,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
13211
13217
|
if (!isNullOrUndefined(this.value)) {
|
|
13212
13218
|
valuecheck = this.presentItemValue(this.ulElement);
|
|
13213
13219
|
}
|
|
13220
|
+
const isContainsValue = valuecheck.some((item) => item !== null);
|
|
13214
13221
|
if (valuecheck.length > 0 && this.dataSource instanceof DataManager && !isNullOrUndefined(this.value)
|
|
13215
|
-
&& this.listData != null &&
|
|
13222
|
+
&& this.listData != null && isContainsValue) {
|
|
13216
13223
|
this.isaddNonPresentItems = true;
|
|
13217
13224
|
this.addNonPresentItems(valuecheck, this.ulElement, this.listData);
|
|
13218
13225
|
this.isaddNonPresentItems = false;
|
|
@@ -13278,7 +13285,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
13278
13285
|
if (!this.enableVirtualization || (this.enableVirtualization && (!(this.dataSource instanceof DataManager)))) {
|
|
13279
13286
|
this.initialValueUpdate();
|
|
13280
13287
|
}
|
|
13281
|
-
else if (!this.isRemoveSelection) {
|
|
13288
|
+
else if (!this.isRemoveSelection && (!this.enableVirtualization || (this.enableVirtualization && (!(this.dataSource instanceof DataManager))))) {
|
|
13282
13289
|
this.initialValueUpdate(this.listData, true);
|
|
13283
13290
|
}
|
|
13284
13291
|
this.initialUpdate();
|
|
@@ -13496,9 +13503,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
13496
13503
|
return this.virtualFilterQuery(filterQuery);
|
|
13497
13504
|
}
|
|
13498
13505
|
if (this.virtualSelectAll) {
|
|
13499
|
-
return query ? query.take(this.maximumSelectionLength).requiresCount() : this.query ?
|
|
13500
|
-
this.query.take(this.maximumSelectionLength).requiresCount() :
|
|
13501
|
-
new Query().take(this.maximumSelectionLength).requiresCount();
|
|
13506
|
+
return query ? query.skip(0).take(this.maximumSelectionLength).requiresCount() : this.query ?
|
|
13507
|
+
this.query.skip(0).take(this.maximumSelectionLength).requiresCount() :
|
|
13508
|
+
new Query().skip(0).take(this.maximumSelectionLength).requiresCount();
|
|
13502
13509
|
}
|
|
13503
13510
|
return filterQuery;
|
|
13504
13511
|
}
|
|
@@ -13507,9 +13514,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
13507
13514
|
return this.virtualFilterQuery(filterQuery);
|
|
13508
13515
|
}
|
|
13509
13516
|
if (this.virtualSelectAll) {
|
|
13510
|
-
return query ? query.take(this.maximumSelectionLength).requiresCount() : this.query ?
|
|
13511
|
-
this.query.take(this.maximumSelectionLength).requiresCount() :
|
|
13512
|
-
new Query().take(this.maximumSelectionLength).requiresCount();
|
|
13517
|
+
return query ? query.skip(0).take(this.maximumSelectionLength).requiresCount() : this.query ?
|
|
13518
|
+
this.query.skip(0).take(this.maximumSelectionLength).requiresCount() :
|
|
13519
|
+
new Query().skip(0).take(this.maximumSelectionLength).requiresCount();
|
|
13513
13520
|
}
|
|
13514
13521
|
return query ? query : this.query ? this.query : new Query();
|
|
13515
13522
|
}
|
|
@@ -14485,6 +14492,15 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
14485
14492
|
const focuseElem = this.list.querySelector('li.' + dropDownBaseClasses.focus);
|
|
14486
14493
|
this.focusFirstListItem = !isNullOrUndefined(this.liCollections[0]) ? this.liCollections[0].classList.contains('e-item-focus') :
|
|
14487
14494
|
false;
|
|
14495
|
+
if (this.list && this.list.querySelector('.e-list-parent.e-ul.e-reorder')) {
|
|
14496
|
+
const elements = this.list.querySelectorAll('li.'
|
|
14497
|
+
+ dropDownBaseClasses.li
|
|
14498
|
+
+ ':not(.' + HIDE_LIST + ')' + ':not(.e-reorder-hide)' + ':not(.e-virtual-list-end)');
|
|
14499
|
+
if (elements.length > 0) {
|
|
14500
|
+
this.focusFirstListItem = !isNullOrUndefined(elements[0]) ? elements[0].classList.contains('e-item-focus') :
|
|
14501
|
+
false;
|
|
14502
|
+
}
|
|
14503
|
+
}
|
|
14488
14504
|
const index = Array.prototype.slice.call(list).indexOf(focuseElem);
|
|
14489
14505
|
if (index <= 0 && (this.mode === 'CheckBox' && this.allowFiltering)) {
|
|
14490
14506
|
this.keyAction = false;
|
|
@@ -14903,10 +14919,10 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
14903
14919
|
}
|
|
14904
14920
|
else if (elements.length) {
|
|
14905
14921
|
if (this.mode === 'CheckBox' && this.showSelectAll && !isNullOrUndefined(selectAllParent && position === -1)) {
|
|
14906
|
-
if (!this.focusFirstListItem && selectAllParent.classList.contains('e-item-focus')) {
|
|
14922
|
+
if ((!this.focusFirstListItem || position === 1) && selectAllParent.classList.contains('e-item-focus')) {
|
|
14907
14923
|
selectAllParent.classList.remove('e-item-focus');
|
|
14908
14924
|
}
|
|
14909
|
-
else if (this.focusFirstListItem && !selectAllParent.classList.contains('e-item-focus')) {
|
|
14925
|
+
else if (this.focusFirstListItem && !selectAllParent.classList.contains('e-item-focus') && !(position === 1 && this.list.querySelector('.e-item-focus'))) {
|
|
14910
14926
|
selectAllParent.classList.add('e-item-focus');
|
|
14911
14927
|
}
|
|
14912
14928
|
}
|
|
@@ -15043,6 +15059,26 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
15043
15059
|
addClass([element], CHIP_SELECTED);
|
|
15044
15060
|
this.trigger('chipSelection', e);
|
|
15045
15061
|
}
|
|
15062
|
+
getVirtualDataByValue(value) {
|
|
15063
|
+
if (!isNullOrUndefined(this.selectedListData)) {
|
|
15064
|
+
const type = this.typeOfData(this.selectedListData).typeof;
|
|
15065
|
+
if (type === 'string' || type === 'number' || type === 'boolean') {
|
|
15066
|
+
for (const item of this.selectedListData) {
|
|
15067
|
+
if (!isNullOrUndefined(item) && item === value) {
|
|
15068
|
+
return item;
|
|
15069
|
+
}
|
|
15070
|
+
}
|
|
15071
|
+
}
|
|
15072
|
+
else {
|
|
15073
|
+
for (const item of this.selectedListData) {
|
|
15074
|
+
if (!isNullOrUndefined(item) && getValue((this.fields.value ? this.fields.value : 'value'), item) === value) {
|
|
15075
|
+
return item;
|
|
15076
|
+
}
|
|
15077
|
+
}
|
|
15078
|
+
}
|
|
15079
|
+
}
|
|
15080
|
+
return null;
|
|
15081
|
+
}
|
|
15046
15082
|
onChipRemove(e) {
|
|
15047
15083
|
if (e.which === 3 || e.button === 2) {
|
|
15048
15084
|
return;
|
|
@@ -15050,7 +15086,8 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
15050
15086
|
if (this.enabled && !this.readonly) {
|
|
15051
15087
|
const element = e.target.parentElement;
|
|
15052
15088
|
const customVal = element.getAttribute('data-value');
|
|
15053
|
-
let value = this.allowObjectBinding ?
|
|
15089
|
+
let value = this.allowObjectBinding ? this.enableVirtualization ?
|
|
15090
|
+
this.getVirtualDataByValue(this.getFormattedValue(customVal)) :
|
|
15054
15091
|
this.getDataByValue(this.getFormattedValue(customVal)) : this.getFormattedValue(customVal);
|
|
15055
15092
|
if (this.allowCustomValue && ((customVal !== 'false' && value === false) ||
|
|
15056
15093
|
(!isNullOrUndefined(value) && value.toString() === 'NaN'))) {
|
|
@@ -15167,7 +15204,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
15167
15204
|
this.virtualSelectAll = false;
|
|
15168
15205
|
const removeVal = this.value.slice(0);
|
|
15169
15206
|
removeVal.splice(index, 1);
|
|
15170
|
-
if (this.enableVirtualization && this.
|
|
15207
|
+
if (this.enableVirtualization && this.selectedListData) {
|
|
15171
15208
|
this.selectedListData.splice(index, 1);
|
|
15172
15209
|
}
|
|
15173
15210
|
this.setProperties({ value: [].concat([], removeVal) }, true);
|
|
@@ -15393,7 +15430,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
15393
15430
|
}
|
|
15394
15431
|
dispatchSelect(value, eve, element, isNotTrigger, length, dataValue, text) {
|
|
15395
15432
|
const list = this.listData;
|
|
15396
|
-
if (this.initStatus && !isNotTrigger) {
|
|
15433
|
+
if (this.initStatus && !isNotTrigger && (!this.allowObjectBinding || (this.allowObjectBinding && value))) {
|
|
15397
15434
|
value = this.allowObjectBinding ? getValue(((this.fields.value) ? this.fields.value : ''), value) : value;
|
|
15398
15435
|
const val = dataValue ? dataValue : this.getDataByValue(value);
|
|
15399
15436
|
const eventArgs = {
|
|
@@ -15426,7 +15463,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
15426
15463
|
value = this.allowObjectBinding ? this.getDataByValue(value) : value;
|
|
15427
15464
|
if (this.enableVirtualization) {
|
|
15428
15465
|
if (isNullOrUndefined(this.selectedListData)) {
|
|
15429
|
-
this.selectedListData = [(this.getDataByValue(value))];
|
|
15466
|
+
this.selectedListData = this.allowObjectBinding ? [value] : [(this.getDataByValue(value))];
|
|
15430
15467
|
}
|
|
15431
15468
|
else {
|
|
15432
15469
|
if (dataValue) {
|
|
@@ -15439,10 +15476,12 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
15439
15476
|
}
|
|
15440
15477
|
else {
|
|
15441
15478
|
if (Array.isArray(this.selectedListData)) {
|
|
15442
|
-
this.selectedListData.push(
|
|
15479
|
+
this.selectedListData.push(this.allowObjectBinding ? value :
|
|
15480
|
+
(this.getDataByValue(value)));
|
|
15443
15481
|
}
|
|
15444
15482
|
else {
|
|
15445
|
-
this.selectedListData = [this.selectedListData,
|
|
15483
|
+
this.selectedListData = [this.selectedListData, this.allowObjectBinding ? value :
|
|
15484
|
+
(this.getDataByValue(value))];
|
|
15446
15485
|
}
|
|
15447
15486
|
}
|
|
15448
15487
|
}
|
|
@@ -16296,7 +16335,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
16296
16335
|
else {
|
|
16297
16336
|
if (this.listData) {
|
|
16298
16337
|
if (this.enableVirtualization) {
|
|
16299
|
-
if (delim && !this.isDynamicRemoteVirtualData) {
|
|
16338
|
+
if (delim && !this.isDynamicRemoteVirtualData && !isInitialVirtualData) {
|
|
16300
16339
|
data = this.delimiterWrapper && this.delimiterWrapper.innerHTML === '' ? data :
|
|
16301
16340
|
this.delimiterWrapper.innerHTML;
|
|
16302
16341
|
}
|
|
@@ -16308,7 +16347,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
16308
16347
|
text = this.text.split(delimiterChar);
|
|
16309
16348
|
}
|
|
16310
16349
|
else {
|
|
16311
|
-
temp = isInitialVirtualData && delim ? this.text : this.getTextByValue(value);
|
|
16350
|
+
temp = isInitialVirtualData && delim ? this.text.replace(/,/g, delimiterChar + ' ') : this.getTextByValue(value);
|
|
16312
16351
|
const textValues = this.isDynamicRemoteVirtualData && value != null && value !== '' && !isInitialVirtualData ?
|
|
16313
16352
|
this.getTextByValue(value) : isInitialVirtualData ? this.text : (this.text && this.text !== '' ? this.text + this.delimiterChar + temp : temp);
|
|
16314
16353
|
data += temp + delimiterChar + ' ';
|
|
@@ -16443,11 +16482,14 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
16443
16482
|
this.selectedListData = [listItems[i]];
|
|
16444
16483
|
}
|
|
16445
16484
|
else {
|
|
16446
|
-
if (
|
|
16447
|
-
this.
|
|
16448
|
-
|
|
16449
|
-
|
|
16450
|
-
|
|
16485
|
+
if ((this.allowObjectBinding && !this.isObjectInArray(listItems[i], this.selectedListData)) ||
|
|
16486
|
+
!this.allowObjectBinding) {
|
|
16487
|
+
if (Array.isArray(this.selectedListData)) {
|
|
16488
|
+
this.selectedListData.push((listItems[i]));
|
|
16489
|
+
}
|
|
16490
|
+
else {
|
|
16491
|
+
this.selectedListData = [this.selectedListData, (listItems[i])];
|
|
16492
|
+
}
|
|
16451
16493
|
}
|
|
16452
16494
|
}
|
|
16453
16495
|
}
|
|
@@ -16461,6 +16503,12 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
16461
16503
|
text = this.getTextByValue(value);
|
|
16462
16504
|
isCustomData = true;
|
|
16463
16505
|
}
|
|
16506
|
+
else if ((isNullOrUndefined(text) && !this.allowCustomValue) &&
|
|
16507
|
+
((!(this.dataSource instanceof DataManager)) ||
|
|
16508
|
+
(this.dataSource instanceof DataManager && isInitialVirtualData))) {
|
|
16509
|
+
this.value.splice(index, 1);
|
|
16510
|
+
index -= 1;
|
|
16511
|
+
}
|
|
16464
16512
|
}
|
|
16465
16513
|
else {
|
|
16466
16514
|
text = this.getTextByValue(value);
|
|
@@ -17513,6 +17561,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
17513
17561
|
}
|
|
17514
17562
|
this.updateHiddenElement();
|
|
17515
17563
|
this.setProperties({ value: [] }, true);
|
|
17564
|
+
this.selectedListData = [];
|
|
17516
17565
|
this.virtualSelectAll = false;
|
|
17517
17566
|
if (!isNullOrUndefined(this.viewPortInfo.startIndex) && !isNullOrUndefined(this.viewPortInfo.endIndex)) {
|
|
17518
17567
|
this.notify('setCurrentViewDataAsync', {
|
|
@@ -18021,6 +18070,11 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
18021
18070
|
updateVal(newProp, oldProp, prop) {
|
|
18022
18071
|
if (!this.list) {
|
|
18023
18072
|
this.onLoadSelect();
|
|
18073
|
+
if (this.enableVirtualization) {
|
|
18074
|
+
this.setProperties({ text: '' }, true);
|
|
18075
|
+
this.selectedListData = [];
|
|
18076
|
+
this.checkInitialValue();
|
|
18077
|
+
}
|
|
18024
18078
|
}
|
|
18025
18079
|
else if ((this.dataSource instanceof DataManager) && (!this.listData || !(this.mainList && this.mainData))) {
|
|
18026
18080
|
this.onLoadSelect();
|
|
@@ -18030,8 +18084,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
18030
18084
|
if (!isNullOrUndefined(this.value) && !this.allowCustomValue) {
|
|
18031
18085
|
valuecheck = this.presentItemValue(this.ulElement);
|
|
18032
18086
|
}
|
|
18087
|
+
const isContainsValue = valuecheck.some((item) => item !== null);
|
|
18033
18088
|
if (prop === 'value' && valuecheck.length > 0 && this.dataSource instanceof DataManager && !isNullOrUndefined(this.value)
|
|
18034
|
-
&& this.listData != null) {
|
|
18089
|
+
&& this.listData != null && isContainsValue) {
|
|
18035
18090
|
this.mainData = null;
|
|
18036
18091
|
this.setDynValue = true;
|
|
18037
18092
|
this.isaddNonPresentItems = true;
|
|
@@ -18039,6 +18094,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
18039
18094
|
this.isaddNonPresentItems = false;
|
|
18040
18095
|
}
|
|
18041
18096
|
else {
|
|
18097
|
+
this.selectedListData = [];
|
|
18042
18098
|
if (prop === 'text') {
|
|
18043
18099
|
this.initialTextUpdate();
|
|
18044
18100
|
newProp = this.value;
|
|
@@ -18059,10 +18115,43 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
18059
18115
|
this.initialValueUpdate(this.dataSource, true);
|
|
18060
18116
|
}
|
|
18061
18117
|
else if (!this.isInitRemoteVirtualData) {
|
|
18062
|
-
this.
|
|
18063
|
-
|
|
18064
|
-
|
|
18065
|
-
|
|
18118
|
+
if (this.allowObjectBinding && !isContainsValue && this.value && this.value.length) {
|
|
18119
|
+
const fields = !this.isPrimitiveData ? this.fields.value : '';
|
|
18120
|
+
let predicate;
|
|
18121
|
+
for (let i = 0; i < this.value.length; i++) {
|
|
18122
|
+
const value = this.allowObjectBinding ?
|
|
18123
|
+
getValue((this.fields.value) ? this.fields.value : '', this.value[i]) :
|
|
18124
|
+
this.value[i];
|
|
18125
|
+
if (i === 0) {
|
|
18126
|
+
predicate = new Predicate(fields, 'equal', value);
|
|
18127
|
+
}
|
|
18128
|
+
else {
|
|
18129
|
+
predicate = predicate.or(fields, 'equal', value);
|
|
18130
|
+
}
|
|
18131
|
+
}
|
|
18132
|
+
if (this.dataSource instanceof DataManager) {
|
|
18133
|
+
this.dataSource.executeQuery(new Query().where(predicate))
|
|
18134
|
+
.then((e) => {
|
|
18135
|
+
if (e.result.length > 0) {
|
|
18136
|
+
const listItems = e.result;
|
|
18137
|
+
this.isDynamicRemoteVirtualData = true;
|
|
18138
|
+
setTimeout(() => {
|
|
18139
|
+
this.initialValueUpdate(listItems, true);
|
|
18140
|
+
this.isDynamicRemoteVirtualData = false;
|
|
18141
|
+
if (!this.inputFocus || (this.inputFocus && this.mode !== 'Default')) {
|
|
18142
|
+
this.initialUpdate();
|
|
18143
|
+
}
|
|
18144
|
+
}, 100);
|
|
18145
|
+
}
|
|
18146
|
+
});
|
|
18147
|
+
}
|
|
18148
|
+
}
|
|
18149
|
+
else {
|
|
18150
|
+
this.isDynamicRemoteVirtualData = true;
|
|
18151
|
+
this.initialValueUpdate(this.listData, true);
|
|
18152
|
+
this.isDynamicRemoteVirtualData = false;
|
|
18153
|
+
this.initialUpdate();
|
|
18154
|
+
}
|
|
18066
18155
|
}
|
|
18067
18156
|
if (this.mode !== 'Box' && !this.inputFocus) {
|
|
18068
18157
|
this.updateDelimView();
|
|
@@ -19711,12 +19800,12 @@ class CheckBoxSelection {
|
|
|
19711
19800
|
}
|
|
19712
19801
|
}
|
|
19713
19802
|
|
|
19714
|
-
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
19715
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19716
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19717
|
-
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;
|
|
19718
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19719
|
-
};
|
|
19803
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
19804
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19805
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19806
|
+
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;
|
|
19807
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19808
|
+
};
|
|
19720
19809
|
var ListBox_1;
|
|
19721
19810
|
/**
|
|
19722
19811
|
* Defines the Selection settings of List Box.
|
|
@@ -22321,12 +22410,12 @@ const listBoxClasses = {
|
|
|
22321
22410
|
clearIcon: 'e-clear-icon'
|
|
22322
22411
|
};
|
|
22323
22412
|
|
|
22324
|
-
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
22325
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22326
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22327
|
-
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;
|
|
22328
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22329
|
-
};
|
|
22413
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
22414
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22415
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22416
|
+
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;
|
|
22417
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22418
|
+
};
|
|
22330
22419
|
/**
|
|
22331
22420
|
* The Mention component is used to list someone or something based on user input in textarea, input,
|
|
22332
22421
|
* or any other editable element from which the user can select.
|
|
@@ -22670,12 +22759,14 @@ let Mention = class Mention extends DropDownBase {
|
|
|
22670
22759
|
const isValid = currentRange && mentionRegex.test(currentRange) ? false : true;
|
|
22671
22760
|
let lastWordRange = this.getLastLetter(currentRange);
|
|
22672
22761
|
const previousChar = currentRange ? currentRange.charAt(Math.max(0, currentRange.indexOf(this.mentionChar) - 1)) : '';
|
|
22673
|
-
if (
|
|
22674
|
-
|
|
22675
|
-
|
|
22676
|
-
|
|
22677
|
-
|
|
22678
|
-
|
|
22762
|
+
if (!this.allowSpaces) {
|
|
22763
|
+
if (isValid && currentRange && currentRange.includes(this.mentionChar) && currentRange.split(this.mentionChar).pop() !== ''
|
|
22764
|
+
&& (!this.requireLeadingSpace || (this.requireLeadingSpace && (previousChar === ' ' || currentRange.indexOf(this.mentionChar) === 0)))) {
|
|
22765
|
+
lastWordRange = this.mentionChar + currentRange.split(this.mentionChar).pop();
|
|
22766
|
+
}
|
|
22767
|
+
if (!this.requireLeadingSpace && lastWordRange && lastWordRange.includes(this.mentionChar)) {
|
|
22768
|
+
lastWordRange = this.mentionChar + lastWordRange.split(this.mentionChar).pop();
|
|
22769
|
+
}
|
|
22679
22770
|
}
|
|
22680
22771
|
const lastTwoLetters = this.mentionChar.toString() + this.mentionChar.toString();
|
|
22681
22772
|
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
@@ -22688,7 +22779,7 @@ let Mention = class Mention extends DropDownBase {
|
|
|
22688
22779
|
this.hidePopup();
|
|
22689
22780
|
return;
|
|
22690
22781
|
}
|
|
22691
|
-
if (((!currentRange || !lastWordRange) || (!lastWordRange.includes(this.mentionChar) && !this.requireLeadingSpace)) || e.code === 'Enter' || e.keyCode === 27 ||
|
|
22782
|
+
if (((!currentRange || !lastWordRange) || (!lastWordRange.includes(this.mentionChar) && !this.requireLeadingSpace && !this.allowSpaces)) || e.code === 'Enter' || e.keyCode === 27 ||
|
|
22692
22783
|
(lastWordRange.match(Regex) && lastWordRange.match(Regex).length > 1) ||
|
|
22693
22784
|
(this.isContentEditable(this.inputElement) && this.range.startContainer &&
|
|
22694
22785
|
this.range.startContainer.previousElementSibling && this.range.startContainer.previousElementSibling.tagName !== 'BR' && this.range.startContainer.textContent.split('').length > 0 &&
|