@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
|
var listItems = items;
|
|
137
137
|
ignoreCase = ignoreCase !== undefined && ignoreCase !== null ? ignoreCase : true;
|
|
138
138
|
var itemData = { item: null, index: null };
|
|
139
|
-
if (inputVal && inputVal.length) {
|
|
139
|
+
if (inputVal && inputVal.length && items) {
|
|
140
140
|
var strLength = inputVal.length;
|
|
141
141
|
var queryStr = ignoreCase ? inputVal.toLocaleLowerCase() : inputVal;
|
|
142
142
|
queryStr = escapeCharRegExp(queryStr);
|
|
@@ -260,53 +260,53 @@ function revertHighlightSearch(content) {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
var __assign = (undefined && undefined.__assign) || function () {
|
|
264
|
-
__assign = Object.assign || function(t) {
|
|
265
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
266
|
-
s = arguments[i];
|
|
267
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
268
|
-
t[p] = s[p];
|
|
269
|
-
}
|
|
270
|
-
return t;
|
|
271
|
-
};
|
|
272
|
-
return __assign.apply(this, arguments);
|
|
273
|
-
};
|
|
274
|
-
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
275
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
276
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
277
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
278
|
-
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
279
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
280
|
-
});
|
|
281
|
-
};
|
|
282
|
-
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
|
|
283
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
284
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
285
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
286
|
-
function step(op) {
|
|
287
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
288
|
-
while (_) try {
|
|
289
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
290
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
291
|
-
switch (op[0]) {
|
|
292
|
-
case 0: case 1: t = op; break;
|
|
293
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
294
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
295
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
296
|
-
default:
|
|
297
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
298
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
299
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
300
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
301
|
-
if (t[2]) _.ops.pop();
|
|
302
|
-
_.trys.pop(); continue;
|
|
303
|
-
}
|
|
304
|
-
op = body.call(thisArg, _);
|
|
305
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
306
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
var VirtualScroll = /** @
|
|
263
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
264
|
+
__assign = Object.assign || function(t) {
|
|
265
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
266
|
+
s = arguments[i];
|
|
267
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
268
|
+
t[p] = s[p];
|
|
269
|
+
}
|
|
270
|
+
return t;
|
|
271
|
+
};
|
|
272
|
+
return __assign.apply(this, arguments);
|
|
273
|
+
};
|
|
274
|
+
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
275
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
276
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
277
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
278
|
+
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
279
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
280
|
+
});
|
|
281
|
+
};
|
|
282
|
+
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
|
|
283
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
284
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
285
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
286
|
+
function step(op) {
|
|
287
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
288
|
+
while (_) try {
|
|
289
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
290
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
291
|
+
switch (op[0]) {
|
|
292
|
+
case 0: case 1: t = op; break;
|
|
293
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
294
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
295
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
296
|
+
default:
|
|
297
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
298
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
299
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
300
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
301
|
+
if (t[2]) _.ops.pop();
|
|
302
|
+
_.trys.pop(); continue;
|
|
303
|
+
}
|
|
304
|
+
op = body.call(thisArg, _);
|
|
305
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
306
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
var VirtualScroll = /** @class */ (function () {
|
|
310
310
|
function VirtualScroll(parent) {
|
|
311
311
|
var _this = this;
|
|
312
312
|
this.sentinelInfo = {
|
|
@@ -862,26 +862,26 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
862
862
|
return VirtualScroll;
|
|
863
863
|
}());
|
|
864
864
|
|
|
865
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
866
|
-
var extendStatics = function (d, b) {
|
|
867
|
-
extendStatics = Object.setPrototypeOf ||
|
|
868
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
869
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
870
|
-
return extendStatics(d, b);
|
|
871
|
-
};
|
|
872
|
-
return function (d, b) {
|
|
873
|
-
extendStatics(d, b);
|
|
874
|
-
function __() { this.constructor = d; }
|
|
875
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
876
|
-
};
|
|
877
|
-
})();
|
|
878
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
879
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
880
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
881
|
-
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;
|
|
882
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
883
|
-
};
|
|
884
|
-
var FieldSettings = /** @
|
|
865
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
866
|
+
var extendStatics = function (d, b) {
|
|
867
|
+
extendStatics = Object.setPrototypeOf ||
|
|
868
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
869
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
870
|
+
return extendStatics(d, b);
|
|
871
|
+
};
|
|
872
|
+
return function (d, b) {
|
|
873
|
+
extendStatics(d, b);
|
|
874
|
+
function __() { this.constructor = d; }
|
|
875
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
876
|
+
};
|
|
877
|
+
})();
|
|
878
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
879
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
880
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
881
|
+
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;
|
|
882
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
883
|
+
};
|
|
884
|
+
var FieldSettings = /** @class */ (function (_super) {
|
|
885
885
|
__extends(FieldSettings, _super);
|
|
886
886
|
function FieldSettings() {
|
|
887
887
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -934,7 +934,7 @@ var HIDE_GROUPLIST = 'e-hide-group-header';
|
|
|
934
934
|
/**
|
|
935
935
|
* DropDownBase component will generate the list items based on given data and act as base class to drop-down related components
|
|
936
936
|
*/
|
|
937
|
-
var DropDownBase = /** @
|
|
937
|
+
var DropDownBase = /** @class */ (function (_super) {
|
|
938
938
|
__extends(DropDownBase, _super);
|
|
939
939
|
/**
|
|
940
940
|
* * Constructor for DropDownBase class
|
|
@@ -1356,7 +1356,7 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1356
1356
|
isContainSkeleton.firstChild.insertBefore(liElement, isContainSkeleton.firstChild.children[0]);
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
|
-
if (this.getModuleName() === 'multiselect') {
|
|
1359
|
+
if (this.getModuleName() === 'multiselect' && !this.isVirtualReorder && !isContainSkeleton.firstChild.classList.contains('e-reorder')) {
|
|
1360
1360
|
for (var i = 0; i < totalSkeletonCount && this.totalItemCount !== this.viewPortInfo.endIndex; i++) {
|
|
1361
1361
|
var liElement = this.createElement('li', { className: dropDownBaseClasses.virtualList + " e-virtual-list-end", styles: 'overflow: inherit' });
|
|
1362
1362
|
if (this.isVirtualizationEnabled && this.itemTemplate) {
|
|
@@ -2960,25 +2960,25 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
2960
2960
|
return DropDownBase;
|
|
2961
2961
|
}(Component));
|
|
2962
2962
|
|
|
2963
|
-
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
2964
|
-
var extendStatics = function (d, b) {
|
|
2965
|
-
extendStatics = Object.setPrototypeOf ||
|
|
2966
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
2967
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
2968
|
-
return extendStatics(d, b);
|
|
2969
|
-
};
|
|
2970
|
-
return function (d, b) {
|
|
2971
|
-
extendStatics(d, b);
|
|
2972
|
-
function __() { this.constructor = d; }
|
|
2973
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2974
|
-
};
|
|
2975
|
-
})();
|
|
2976
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2977
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2978
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2979
|
-
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;
|
|
2980
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2981
|
-
};
|
|
2963
|
+
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
2964
|
+
var extendStatics = function (d, b) {
|
|
2965
|
+
extendStatics = Object.setPrototypeOf ||
|
|
2966
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
2967
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
2968
|
+
return extendStatics(d, b);
|
|
2969
|
+
};
|
|
2970
|
+
return function (d, b) {
|
|
2971
|
+
extendStatics(d, b);
|
|
2972
|
+
function __() { this.constructor = d; }
|
|
2973
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2974
|
+
};
|
|
2975
|
+
})();
|
|
2976
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2977
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2978
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2979
|
+
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;
|
|
2980
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2981
|
+
};
|
|
2982
2982
|
// don't use space in classnames
|
|
2983
2983
|
var dropDownListClasses = {
|
|
2984
2984
|
root: 'e-dropdownlist',
|
|
@@ -3026,7 +3026,7 @@ var inputObject = {
|
|
|
3026
3026
|
* dropDownListObj.appendTo("#list");
|
|
3027
3027
|
* ```
|
|
3028
3028
|
*/
|
|
3029
|
-
var DropDownList = /** @
|
|
3029
|
+
var DropDownList = /** @class */ (function (_super) {
|
|
3030
3030
|
__extends$1(DropDownList, _super);
|
|
3031
3031
|
/**
|
|
3032
3032
|
* * Constructor for creating the DropDownList component.
|
|
@@ -7487,25 +7487,25 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
7487
7487
|
return DropDownList;
|
|
7488
7488
|
}(DropDownBase));
|
|
7489
7489
|
|
|
7490
|
-
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
7491
|
-
var extendStatics = function (d, b) {
|
|
7492
|
-
extendStatics = Object.setPrototypeOf ||
|
|
7493
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7494
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7495
|
-
return extendStatics(d, b);
|
|
7496
|
-
};
|
|
7497
|
-
return function (d, b) {
|
|
7498
|
-
extendStatics(d, b);
|
|
7499
|
-
function __() { this.constructor = d; }
|
|
7500
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7501
|
-
};
|
|
7502
|
-
})();
|
|
7503
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7504
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7505
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7506
|
-
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;
|
|
7507
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7508
|
-
};
|
|
7490
|
+
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
7491
|
+
var extendStatics = function (d, b) {
|
|
7492
|
+
extendStatics = Object.setPrototypeOf ||
|
|
7493
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7494
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7495
|
+
return extendStatics(d, b);
|
|
7496
|
+
};
|
|
7497
|
+
return function (d, b) {
|
|
7498
|
+
extendStatics(d, b);
|
|
7499
|
+
function __() { this.constructor = d; }
|
|
7500
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7501
|
+
};
|
|
7502
|
+
})();
|
|
7503
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7504
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7505
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7506
|
+
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;
|
|
7507
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7508
|
+
};
|
|
7509
7509
|
var RTL = 'e-rtl';
|
|
7510
7510
|
var DROPDOWNTREE = 'e-ddt';
|
|
7511
7511
|
var HIDDENELEMENT = 'e-ddt-hidden';
|
|
@@ -7555,7 +7555,7 @@ var OVERFLOW_VIEW = 'e-overflow';
|
|
|
7555
7555
|
var SHOW_TEXT = 'e-show-text';
|
|
7556
7556
|
var TOTAL_COUNT_WRAPPER = 'e-total-count';
|
|
7557
7557
|
var REMAIN_COUNT = 'e-wrap-count';
|
|
7558
|
-
var Fields = /** @
|
|
7558
|
+
var Fields = /** @class */ (function (_super) {
|
|
7559
7559
|
__extends$2(Fields, _super);
|
|
7560
7560
|
function Fields() {
|
|
7561
7561
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -7607,7 +7607,7 @@ var Fields = /** @__PURE__ @class */ (function (_super) {
|
|
|
7607
7607
|
], Fields.prototype, "value", void 0);
|
|
7608
7608
|
return Fields;
|
|
7609
7609
|
}(ChildProperty));
|
|
7610
|
-
var TreeSettings = /** @
|
|
7610
|
+
var TreeSettings = /** @class */ (function (_super) {
|
|
7611
7611
|
__extends$2(TreeSettings, _super);
|
|
7612
7612
|
function TreeSettings() {
|
|
7613
7613
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -7638,7 +7638,7 @@ var TreeSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
7638
7638
|
* ddtObj.appendTo("#tree");
|
|
7639
7639
|
* ```
|
|
7640
7640
|
*/
|
|
7641
|
-
var DropDownTree = /** @
|
|
7641
|
+
var DropDownTree = /** @class */ (function (_super) {
|
|
7642
7642
|
__extends$2(DropDownTree, _super);
|
|
7643
7643
|
function DropDownTree(options, element) {
|
|
7644
7644
|
var _this = _super.call(this, options, element) || this;
|
|
@@ -7975,6 +7975,11 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
7975
7975
|
}
|
|
7976
7976
|
}
|
|
7977
7977
|
_this.treeObj.fields = _this.getTreeFields(fields);
|
|
7978
|
+
if ((_this.previousFilterText && _this.previousFilterText !== '' && args.text !== '' && _this.previousFilterText.indexOf(args.text) !== -1) ||
|
|
7979
|
+
(args.text && args.text !== '' && _this.previousFilterText !== '' && args.text.indexOf(_this.previousFilterText) !== -1)) {
|
|
7980
|
+
_this.isFilterRestore = true;
|
|
7981
|
+
}
|
|
7982
|
+
_this.previousFilterText = args.text;
|
|
7978
7983
|
_this.treeObj.dataBind();
|
|
7979
7984
|
if (_this.popupObj) {
|
|
7980
7985
|
_this.popupObj.refreshPosition();
|
|
@@ -11054,25 +11059,25 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
11054
11059
|
return DropDownTree;
|
|
11055
11060
|
}(Component));
|
|
11056
11061
|
|
|
11057
|
-
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
11058
|
-
var extendStatics = function (d, b) {
|
|
11059
|
-
extendStatics = Object.setPrototypeOf ||
|
|
11060
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11061
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
11062
|
-
return extendStatics(d, b);
|
|
11063
|
-
};
|
|
11064
|
-
return function (d, b) {
|
|
11065
|
-
extendStatics(d, b);
|
|
11066
|
-
function __() { this.constructor = d; }
|
|
11067
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11068
|
-
};
|
|
11069
|
-
})();
|
|
11070
|
-
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11071
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11072
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11073
|
-
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;
|
|
11074
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11075
|
-
};
|
|
11062
|
+
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
11063
|
+
var extendStatics = function (d, b) {
|
|
11064
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11065
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11066
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
11067
|
+
return extendStatics(d, b);
|
|
11068
|
+
};
|
|
11069
|
+
return function (d, b) {
|
|
11070
|
+
extendStatics(d, b);
|
|
11071
|
+
function __() { this.constructor = d; }
|
|
11072
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11073
|
+
};
|
|
11074
|
+
})();
|
|
11075
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11076
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11077
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11078
|
+
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;
|
|
11079
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11080
|
+
};
|
|
11076
11081
|
var SPINNER_CLASS = 'e-atc-spinner-icon';
|
|
11077
11082
|
dropDownListClasses.root = 'e-combobox';
|
|
11078
11083
|
var inputObject$1 = {
|
|
@@ -11095,7 +11100,7 @@ var inputObject$1 = {
|
|
|
11095
11100
|
* games.appendTo("#list");
|
|
11096
11101
|
* ```
|
|
11097
11102
|
*/
|
|
11098
|
-
var ComboBox = /** @
|
|
11103
|
+
var ComboBox = /** @class */ (function (_super) {
|
|
11099
11104
|
__extends$3(ComboBox, _super);
|
|
11100
11105
|
/**
|
|
11101
11106
|
* *Constructor for creating the component
|
|
@@ -12137,25 +12142,25 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
12137
12142
|
return ComboBox;
|
|
12138
12143
|
}(DropDownList));
|
|
12139
12144
|
|
|
12140
|
-
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
12141
|
-
var extendStatics = function (d, b) {
|
|
12142
|
-
extendStatics = Object.setPrototypeOf ||
|
|
12143
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12144
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
12145
|
-
return extendStatics(d, b);
|
|
12146
|
-
};
|
|
12147
|
-
return function (d, b) {
|
|
12148
|
-
extendStatics(d, b);
|
|
12149
|
-
function __() { this.constructor = d; }
|
|
12150
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12151
|
-
};
|
|
12152
|
-
})();
|
|
12153
|
-
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
12154
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12155
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12156
|
-
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;
|
|
12157
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12158
|
-
};
|
|
12145
|
+
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
12146
|
+
var extendStatics = function (d, b) {
|
|
12147
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12148
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12149
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
12150
|
+
return extendStatics(d, b);
|
|
12151
|
+
};
|
|
12152
|
+
return function (d, b) {
|
|
12153
|
+
extendStatics(d, b);
|
|
12154
|
+
function __() { this.constructor = d; }
|
|
12155
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12156
|
+
};
|
|
12157
|
+
})();
|
|
12158
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
12159
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12160
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12161
|
+
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;
|
|
12162
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12163
|
+
};
|
|
12159
12164
|
dropDownListClasses.root = 'e-autocomplete';
|
|
12160
12165
|
dropDownListClasses.icon = 'e-input-group-icon e-ddl-icon e-search-icon';
|
|
12161
12166
|
/**
|
|
@@ -12169,7 +12174,7 @@ dropDownListClasses.icon = 'e-input-group-icon e-ddl-icon e-search-icon';
|
|
|
12169
12174
|
* atcObj.appendTo("#list");
|
|
12170
12175
|
* ```
|
|
12171
12176
|
*/
|
|
12172
|
-
var AutoComplete = /** @
|
|
12177
|
+
var AutoComplete = /** @class */ (function (_super) {
|
|
12173
12178
|
__extends$4(AutoComplete, _super);
|
|
12174
12179
|
/**
|
|
12175
12180
|
* * Constructor for creating the widget
|
|
@@ -12865,25 +12870,25 @@ function encodePlaceholder(placeholder) {
|
|
|
12865
12870
|
}
|
|
12866
12871
|
/* eslint-enable valid-jsdoc */
|
|
12867
12872
|
|
|
12868
|
-
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
12869
|
-
var extendStatics = function (d, b) {
|
|
12870
|
-
extendStatics = Object.setPrototypeOf ||
|
|
12871
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12872
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
12873
|
-
return extendStatics(d, b);
|
|
12874
|
-
};
|
|
12875
|
-
return function (d, b) {
|
|
12876
|
-
extendStatics(d, b);
|
|
12877
|
-
function __() { this.constructor = d; }
|
|
12878
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12879
|
-
};
|
|
12880
|
-
})();
|
|
12881
|
-
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
12882
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12883
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12884
|
-
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;
|
|
12885
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12886
|
-
};
|
|
12873
|
+
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
12874
|
+
var extendStatics = function (d, b) {
|
|
12875
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12876
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12877
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
12878
|
+
return extendStatics(d, b);
|
|
12879
|
+
};
|
|
12880
|
+
return function (d, b) {
|
|
12881
|
+
extendStatics(d, b);
|
|
12882
|
+
function __() { this.constructor = d; }
|
|
12883
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12884
|
+
};
|
|
12885
|
+
})();
|
|
12886
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
12887
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12888
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12889
|
+
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;
|
|
12890
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12891
|
+
};
|
|
12887
12892
|
var FOCUS = 'e-input-focus';
|
|
12888
12893
|
var DISABLED$1 = 'e-disabled';
|
|
12889
12894
|
var OVER_ALL_WRAPPER = 'e-multiselect e-input-group e-control-wrapper';
|
|
@@ -12939,7 +12944,7 @@ var RESIZE_ICON = 'e-resizer-right e-icons';
|
|
|
12939
12944
|
* </script>
|
|
12940
12945
|
* ```
|
|
12941
12946
|
*/
|
|
12942
|
-
var MultiSelect = /** @
|
|
12947
|
+
var MultiSelect = /** @class */ (function (_super) {
|
|
12943
12948
|
__extends$5(MultiSelect, _super);
|
|
12944
12949
|
/**
|
|
12945
12950
|
* Constructor for creating the DropDownList widget.
|
|
@@ -13162,8 +13167,8 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13162
13167
|
else {
|
|
13163
13168
|
this.resetList(this.dataSource, this.fields, query);
|
|
13164
13169
|
}
|
|
13165
|
-
this.isVirtualReorder = false;
|
|
13166
13170
|
this.UpdateSkeleton();
|
|
13171
|
+
this.isVirtualReorder = false;
|
|
13167
13172
|
this.liCollections = this.list.querySelectorAll('.' + dropDownBaseClasses.li);
|
|
13168
13173
|
this.virtualItemCount = this.itemCount;
|
|
13169
13174
|
if (this.mode !== 'CheckBox') {
|
|
@@ -13341,7 +13346,8 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13341
13346
|
if (!isNullOrUndefined(this.value)) {
|
|
13342
13347
|
this.tempValues = this.allowObjectBinding ? this.value.slice() : this.value.slice();
|
|
13343
13348
|
}
|
|
13344
|
-
var customValue = this.allowObjectBinding ?
|
|
13349
|
+
var customValue = this.allowObjectBinding ? this.enableVirtualization ?
|
|
13350
|
+
this.getVirtualDataByValue(this.getFormattedValue(value)) :
|
|
13345
13351
|
this.getDataByValue(this.getFormattedValue(value)) : this.getFormattedValue(value);
|
|
13346
13352
|
if (this.allowCustomValue && (value !== 'false' && customValue === false || (!isNullOrUndefined(customValue) &&
|
|
13347
13353
|
customValue.toString() === 'NaN'))) {
|
|
@@ -13466,8 +13472,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13466
13472
|
if (!isNullOrUndefined(this.value)) {
|
|
13467
13473
|
valuecheck = this.presentItemValue(this.ulElement);
|
|
13468
13474
|
}
|
|
13475
|
+
var isContainsValue = valuecheck.some(function (item) { return item !== null; });
|
|
13469
13476
|
if (valuecheck.length > 0 && this.dataSource instanceof DataManager && !isNullOrUndefined(this.value)
|
|
13470
|
-
&& this.listData != null &&
|
|
13477
|
+
&& this.listData != null && isContainsValue) {
|
|
13471
13478
|
this.isaddNonPresentItems = true;
|
|
13472
13479
|
this.addNonPresentItems(valuecheck, this.ulElement, this.listData);
|
|
13473
13480
|
this.isaddNonPresentItems = false;
|
|
@@ -13533,7 +13540,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13533
13540
|
if (!this.enableVirtualization || (this.enableVirtualization && (!(this.dataSource instanceof DataManager)))) {
|
|
13534
13541
|
this.initialValueUpdate();
|
|
13535
13542
|
}
|
|
13536
|
-
else if (!this.isRemoveSelection) {
|
|
13543
|
+
else if (!this.isRemoveSelection && (!this.enableVirtualization || (this.enableVirtualization && (!(this.dataSource instanceof DataManager))))) {
|
|
13537
13544
|
this.initialValueUpdate(this.listData, true);
|
|
13538
13545
|
}
|
|
13539
13546
|
this.initialUpdate();
|
|
@@ -13751,9 +13758,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13751
13758
|
return this.virtualFilterQuery(filterQuery);
|
|
13752
13759
|
}
|
|
13753
13760
|
if (this.virtualSelectAll) {
|
|
13754
|
-
return query ? query.take(this.maximumSelectionLength).requiresCount() : this.query ?
|
|
13755
|
-
this.query.take(this.maximumSelectionLength).requiresCount() :
|
|
13756
|
-
new Query().take(this.maximumSelectionLength).requiresCount();
|
|
13761
|
+
return query ? query.skip(0).take(this.maximumSelectionLength).requiresCount() : this.query ?
|
|
13762
|
+
this.query.skip(0).take(this.maximumSelectionLength).requiresCount() :
|
|
13763
|
+
new Query().skip(0).take(this.maximumSelectionLength).requiresCount();
|
|
13757
13764
|
}
|
|
13758
13765
|
return filterQuery;
|
|
13759
13766
|
}
|
|
@@ -13762,9 +13769,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13762
13769
|
return this.virtualFilterQuery(filterQuery);
|
|
13763
13770
|
}
|
|
13764
13771
|
if (this.virtualSelectAll) {
|
|
13765
|
-
return query ? query.take(this.maximumSelectionLength).requiresCount() : this.query ?
|
|
13766
|
-
this.query.take(this.maximumSelectionLength).requiresCount() :
|
|
13767
|
-
new Query().take(this.maximumSelectionLength).requiresCount();
|
|
13772
|
+
return query ? query.skip(0).take(this.maximumSelectionLength).requiresCount() : this.query ?
|
|
13773
|
+
this.query.skip(0).take(this.maximumSelectionLength).requiresCount() :
|
|
13774
|
+
new Query().skip(0).take(this.maximumSelectionLength).requiresCount();
|
|
13768
13775
|
}
|
|
13769
13776
|
return query ? query : this.query ? this.query : new Query();
|
|
13770
13777
|
}
|
|
@@ -14741,6 +14748,15 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14741
14748
|
var focuseElem = this.list.querySelector('li.' + dropDownBaseClasses.focus);
|
|
14742
14749
|
this.focusFirstListItem = !isNullOrUndefined(this.liCollections[0]) ? this.liCollections[0].classList.contains('e-item-focus') :
|
|
14743
14750
|
false;
|
|
14751
|
+
if (this.list && this.list.querySelector('.e-list-parent.e-ul.e-reorder')) {
|
|
14752
|
+
var elements = this.list.querySelectorAll('li.'
|
|
14753
|
+
+ dropDownBaseClasses.li
|
|
14754
|
+
+ ':not(.' + HIDE_LIST + ')' + ':not(.e-reorder-hide)' + ':not(.e-virtual-list-end)');
|
|
14755
|
+
if (elements.length > 0) {
|
|
14756
|
+
this.focusFirstListItem = !isNullOrUndefined(elements[0]) ? elements[0].classList.contains('e-item-focus') :
|
|
14757
|
+
false;
|
|
14758
|
+
}
|
|
14759
|
+
}
|
|
14744
14760
|
var index = Array.prototype.slice.call(list).indexOf(focuseElem);
|
|
14745
14761
|
if (index <= 0 && (this.mode === 'CheckBox' && this.allowFiltering)) {
|
|
14746
14762
|
this.keyAction = false;
|
|
@@ -15163,10 +15179,10 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15163
15179
|
}
|
|
15164
15180
|
else if (elements.length) {
|
|
15165
15181
|
if (this.mode === 'CheckBox' && this.showSelectAll && !isNullOrUndefined(selectAllParent && position === -1)) {
|
|
15166
|
-
if (!this.focusFirstListItem && selectAllParent.classList.contains('e-item-focus')) {
|
|
15182
|
+
if ((!this.focusFirstListItem || position === 1) && selectAllParent.classList.contains('e-item-focus')) {
|
|
15167
15183
|
selectAllParent.classList.remove('e-item-focus');
|
|
15168
15184
|
}
|
|
15169
|
-
else if (this.focusFirstListItem && !selectAllParent.classList.contains('e-item-focus')) {
|
|
15185
|
+
else if (this.focusFirstListItem && !selectAllParent.classList.contains('e-item-focus') && !(position === 1 && this.list.querySelector('.e-item-focus'))) {
|
|
15170
15186
|
selectAllParent.classList.add('e-item-focus');
|
|
15171
15187
|
}
|
|
15172
15188
|
}
|
|
@@ -15304,6 +15320,28 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15304
15320
|
addClass([element], CHIP_SELECTED);
|
|
15305
15321
|
this.trigger('chipSelection', e);
|
|
15306
15322
|
};
|
|
15323
|
+
MultiSelect.prototype.getVirtualDataByValue = function (value) {
|
|
15324
|
+
if (!isNullOrUndefined(this.selectedListData)) {
|
|
15325
|
+
var type = this.typeOfData(this.selectedListData).typeof;
|
|
15326
|
+
if (type === 'string' || type === 'number' || type === 'boolean') {
|
|
15327
|
+
for (var _i = 0, _a = this.selectedListData; _i < _a.length; _i++) {
|
|
15328
|
+
var item = _a[_i];
|
|
15329
|
+
if (!isNullOrUndefined(item) && item === value) {
|
|
15330
|
+
return item;
|
|
15331
|
+
}
|
|
15332
|
+
}
|
|
15333
|
+
}
|
|
15334
|
+
else {
|
|
15335
|
+
for (var _b = 0, _c = this.selectedListData; _b < _c.length; _b++) {
|
|
15336
|
+
var item = _c[_b];
|
|
15337
|
+
if (!isNullOrUndefined(item) && getValue((this.fields.value ? this.fields.value : 'value'), item) === value) {
|
|
15338
|
+
return item;
|
|
15339
|
+
}
|
|
15340
|
+
}
|
|
15341
|
+
}
|
|
15342
|
+
}
|
|
15343
|
+
return null;
|
|
15344
|
+
};
|
|
15307
15345
|
MultiSelect.prototype.onChipRemove = function (e) {
|
|
15308
15346
|
if (e.which === 3 || e.button === 2) {
|
|
15309
15347
|
return;
|
|
@@ -15311,7 +15349,8 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15311
15349
|
if (this.enabled && !this.readonly) {
|
|
15312
15350
|
var element = e.target.parentElement;
|
|
15313
15351
|
var customVal = element.getAttribute('data-value');
|
|
15314
|
-
var value = this.allowObjectBinding ?
|
|
15352
|
+
var value = this.allowObjectBinding ? this.enableVirtualization ?
|
|
15353
|
+
this.getVirtualDataByValue(this.getFormattedValue(customVal)) :
|
|
15315
15354
|
this.getDataByValue(this.getFormattedValue(customVal)) : this.getFormattedValue(customVal);
|
|
15316
15355
|
if (this.allowCustomValue && ((customVal !== 'false' && value === false) ||
|
|
15317
15356
|
(!isNullOrUndefined(value) && value.toString() === 'NaN'))) {
|
|
@@ -15429,7 +15468,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15429
15468
|
_this.virtualSelectAll = false;
|
|
15430
15469
|
var removeVal = _this.value.slice(0);
|
|
15431
15470
|
removeVal.splice(index, 1);
|
|
15432
|
-
if (_this.enableVirtualization && _this.
|
|
15471
|
+
if (_this.enableVirtualization && _this.selectedListData) {
|
|
15433
15472
|
_this.selectedListData.splice(index, 1);
|
|
15434
15473
|
}
|
|
15435
15474
|
_this.setProperties({ value: [].concat([], removeVal) }, true);
|
|
@@ -15661,7 +15700,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15661
15700
|
MultiSelect.prototype.dispatchSelect = function (value, eve, element, isNotTrigger, length, dataValue, text) {
|
|
15662
15701
|
var _this = this;
|
|
15663
15702
|
var list = this.listData;
|
|
15664
|
-
if (this.initStatus && !isNotTrigger) {
|
|
15703
|
+
if (this.initStatus && !isNotTrigger && (!this.allowObjectBinding || (this.allowObjectBinding && value))) {
|
|
15665
15704
|
value = this.allowObjectBinding ? getValue(((this.fields.value) ? this.fields.value : ''), value) : value;
|
|
15666
15705
|
var val_2 = dataValue ? dataValue : this.getDataByValue(value);
|
|
15667
15706
|
var eventArgs = {
|
|
@@ -15694,7 +15733,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15694
15733
|
value = _this.allowObjectBinding ? _this.getDataByValue(value) : value;
|
|
15695
15734
|
if (_this.enableVirtualization) {
|
|
15696
15735
|
if (isNullOrUndefined(_this.selectedListData)) {
|
|
15697
|
-
_this.selectedListData = [(_this.getDataByValue(value))];
|
|
15736
|
+
_this.selectedListData = _this.allowObjectBinding ? [value] : [(_this.getDataByValue(value))];
|
|
15698
15737
|
}
|
|
15699
15738
|
else {
|
|
15700
15739
|
if (dataValue) {
|
|
@@ -15707,10 +15746,12 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15707
15746
|
}
|
|
15708
15747
|
else {
|
|
15709
15748
|
if (Array.isArray(_this.selectedListData)) {
|
|
15710
|
-
_this.selectedListData.push(
|
|
15749
|
+
_this.selectedListData.push(_this.allowObjectBinding ? value :
|
|
15750
|
+
(_this.getDataByValue(value)));
|
|
15711
15751
|
}
|
|
15712
15752
|
else {
|
|
15713
|
-
_this.selectedListData = [_this.selectedListData,
|
|
15753
|
+
_this.selectedListData = [_this.selectedListData, _this.allowObjectBinding ? value :
|
|
15754
|
+
(_this.getDataByValue(value))];
|
|
15714
15755
|
}
|
|
15715
15756
|
}
|
|
15716
15757
|
}
|
|
@@ -16568,7 +16609,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16568
16609
|
else {
|
|
16569
16610
|
if (this_1.listData) {
|
|
16570
16611
|
if (this_1.enableVirtualization) {
|
|
16571
|
-
if (delim && !this_1.isDynamicRemoteVirtualData) {
|
|
16612
|
+
if (delim && !this_1.isDynamicRemoteVirtualData && !isInitialVirtualData) {
|
|
16572
16613
|
data = this_1.delimiterWrapper && this_1.delimiterWrapper.innerHTML === '' ? data :
|
|
16573
16614
|
this_1.delimiterWrapper.innerHTML;
|
|
16574
16615
|
}
|
|
@@ -16580,7 +16621,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16580
16621
|
text = this_1.text.split(delimiterChar);
|
|
16581
16622
|
}
|
|
16582
16623
|
else {
|
|
16583
|
-
temp = isInitialVirtualData && delim ? this_1.text : this_1.getTextByValue(value);
|
|
16624
|
+
temp = isInitialVirtualData && delim ? this_1.text.replace(/,/g, delimiterChar + ' ') : this_1.getTextByValue(value);
|
|
16584
16625
|
var textValues = this_1.isDynamicRemoteVirtualData && value != null && value !== '' && !isInitialVirtualData ?
|
|
16585
16626
|
this_1.getTextByValue(value) : isInitialVirtualData ? this_1.text : (this_1.text && this_1.text !== '' ? this_1.text + this_1.delimiterChar + temp : temp);
|
|
16586
16627
|
data += temp + delimiterChar + ' ';
|
|
@@ -16723,11 +16764,14 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16723
16764
|
this.selectedListData = [listItems[i]];
|
|
16724
16765
|
}
|
|
16725
16766
|
else {
|
|
16726
|
-
if (
|
|
16727
|
-
this.
|
|
16728
|
-
|
|
16729
|
-
|
|
16730
|
-
|
|
16767
|
+
if ((this.allowObjectBinding && !this.isObjectInArray(listItems[i], this.selectedListData)) ||
|
|
16768
|
+
!this.allowObjectBinding) {
|
|
16769
|
+
if (Array.isArray(this.selectedListData)) {
|
|
16770
|
+
this.selectedListData.push((listItems[i]));
|
|
16771
|
+
}
|
|
16772
|
+
else {
|
|
16773
|
+
this.selectedListData = [this.selectedListData, (listItems[i])];
|
|
16774
|
+
}
|
|
16731
16775
|
}
|
|
16732
16776
|
}
|
|
16733
16777
|
}
|
|
@@ -16741,6 +16785,12 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16741
16785
|
text = this.getTextByValue(value);
|
|
16742
16786
|
isCustomData = true;
|
|
16743
16787
|
}
|
|
16788
|
+
else if ((isNullOrUndefined(text) && !this.allowCustomValue) &&
|
|
16789
|
+
((!(this.dataSource instanceof DataManager)) ||
|
|
16790
|
+
(this.dataSource instanceof DataManager && isInitialVirtualData))) {
|
|
16791
|
+
this.value.splice(index, 1);
|
|
16792
|
+
index -= 1;
|
|
16793
|
+
}
|
|
16744
16794
|
}
|
|
16745
16795
|
else {
|
|
16746
16796
|
text = this.getTextByValue(value);
|
|
@@ -17796,6 +17846,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17796
17846
|
}
|
|
17797
17847
|
this.updateHiddenElement();
|
|
17798
17848
|
this.setProperties({ value: [] }, true);
|
|
17849
|
+
this.selectedListData = [];
|
|
17799
17850
|
this.virtualSelectAll = false;
|
|
17800
17851
|
if (!isNullOrUndefined(this.viewPortInfo.startIndex) && !isNullOrUndefined(this.viewPortInfo.endIndex)) {
|
|
17801
17852
|
this.notify('setCurrentViewDataAsync', {
|
|
@@ -18307,8 +18358,14 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
18307
18358
|
});
|
|
18308
18359
|
};
|
|
18309
18360
|
MultiSelect.prototype.updateVal = function (newProp, oldProp, prop) {
|
|
18361
|
+
var _this = this;
|
|
18310
18362
|
if (!this.list) {
|
|
18311
18363
|
this.onLoadSelect();
|
|
18364
|
+
if (this.enableVirtualization) {
|
|
18365
|
+
this.setProperties({ text: '' }, true);
|
|
18366
|
+
this.selectedListData = [];
|
|
18367
|
+
this.checkInitialValue();
|
|
18368
|
+
}
|
|
18312
18369
|
}
|
|
18313
18370
|
else if ((this.dataSource instanceof DataManager) && (!this.listData || !(this.mainList && this.mainData))) {
|
|
18314
18371
|
this.onLoadSelect();
|
|
@@ -18318,8 +18375,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
18318
18375
|
if (!isNullOrUndefined(this.value) && !this.allowCustomValue) {
|
|
18319
18376
|
valuecheck = this.presentItemValue(this.ulElement);
|
|
18320
18377
|
}
|
|
18378
|
+
var isContainsValue = valuecheck.some(function (item) { return item !== null; });
|
|
18321
18379
|
if (prop === 'value' && valuecheck.length > 0 && this.dataSource instanceof DataManager && !isNullOrUndefined(this.value)
|
|
18322
|
-
&& this.listData != null) {
|
|
18380
|
+
&& this.listData != null && isContainsValue) {
|
|
18323
18381
|
this.mainData = null;
|
|
18324
18382
|
this.setDynValue = true;
|
|
18325
18383
|
this.isaddNonPresentItems = true;
|
|
@@ -18327,6 +18385,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
18327
18385
|
this.isaddNonPresentItems = false;
|
|
18328
18386
|
}
|
|
18329
18387
|
else {
|
|
18388
|
+
this.selectedListData = [];
|
|
18330
18389
|
if (prop === 'text') {
|
|
18331
18390
|
this.initialTextUpdate();
|
|
18332
18391
|
newProp = this.value;
|
|
@@ -18347,10 +18406,43 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
18347
18406
|
this.initialValueUpdate(this.dataSource, true);
|
|
18348
18407
|
}
|
|
18349
18408
|
else if (!this.isInitRemoteVirtualData) {
|
|
18350
|
-
this.
|
|
18351
|
-
|
|
18352
|
-
|
|
18353
|
-
|
|
18409
|
+
if (this.allowObjectBinding && !isContainsValue && this.value && this.value.length) {
|
|
18410
|
+
var fields = !this.isPrimitiveData ? this.fields.value : '';
|
|
18411
|
+
var predicate = void 0;
|
|
18412
|
+
for (var i = 0; i < this.value.length; i++) {
|
|
18413
|
+
var value = this.allowObjectBinding ?
|
|
18414
|
+
getValue((this.fields.value) ? this.fields.value : '', this.value[i]) :
|
|
18415
|
+
this.value[i];
|
|
18416
|
+
if (i === 0) {
|
|
18417
|
+
predicate = new Predicate(fields, 'equal', value);
|
|
18418
|
+
}
|
|
18419
|
+
else {
|
|
18420
|
+
predicate = predicate.or(fields, 'equal', value);
|
|
18421
|
+
}
|
|
18422
|
+
}
|
|
18423
|
+
if (this.dataSource instanceof DataManager) {
|
|
18424
|
+
this.dataSource.executeQuery(new Query().where(predicate))
|
|
18425
|
+
.then(function (e) {
|
|
18426
|
+
if (e.result.length > 0) {
|
|
18427
|
+
var listItems_2 = e.result;
|
|
18428
|
+
_this.isDynamicRemoteVirtualData = true;
|
|
18429
|
+
setTimeout(function () {
|
|
18430
|
+
_this.initialValueUpdate(listItems_2, true);
|
|
18431
|
+
_this.isDynamicRemoteVirtualData = false;
|
|
18432
|
+
if (!_this.inputFocus || (_this.inputFocus && _this.mode !== 'Default')) {
|
|
18433
|
+
_this.initialUpdate();
|
|
18434
|
+
}
|
|
18435
|
+
}, 100);
|
|
18436
|
+
}
|
|
18437
|
+
});
|
|
18438
|
+
}
|
|
18439
|
+
}
|
|
18440
|
+
else {
|
|
18441
|
+
this.isDynamicRemoteVirtualData = true;
|
|
18442
|
+
this.initialValueUpdate(this.listData, true);
|
|
18443
|
+
this.isDynamicRemoteVirtualData = false;
|
|
18444
|
+
this.initialUpdate();
|
|
18445
|
+
}
|
|
18354
18446
|
}
|
|
18355
18447
|
if (this.mode !== 'Box' && !this.inputFocus) {
|
|
18356
18448
|
this.updateDelimView();
|
|
@@ -18949,7 +19041,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
18949
19041
|
}
|
|
18950
19042
|
if (this.value && this.value.length) {
|
|
18951
19043
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18952
|
-
var
|
|
19044
|
+
var listItems_3;
|
|
18953
19045
|
if (this.enableVirtualization) {
|
|
18954
19046
|
var fields = !this.isPrimitiveData ? this.fields.value : '';
|
|
18955
19047
|
var predicate = void 0;
|
|
@@ -18968,11 +19060,11 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
18968
19060
|
this.dataSource.executeQuery(new Query().where(predicate))
|
|
18969
19061
|
.then(function (e) {
|
|
18970
19062
|
if (e.result.length > 0) {
|
|
18971
|
-
|
|
19063
|
+
listItems_3 = e.result;
|
|
18972
19064
|
_this.initStatus = false;
|
|
18973
19065
|
_this.isInitRemoteVirtualData = true;
|
|
18974
19066
|
setTimeout(function () {
|
|
18975
|
-
_this.initialValueUpdate(
|
|
19067
|
+
_this.initialValueUpdate(listItems_3, true);
|
|
18976
19068
|
_this.initialUpdate();
|
|
18977
19069
|
_this.isInitRemoteVirtualData = false;
|
|
18978
19070
|
}, 100);
|
|
@@ -18981,18 +19073,18 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
18981
19073
|
});
|
|
18982
19074
|
}
|
|
18983
19075
|
else {
|
|
18984
|
-
|
|
19076
|
+
listItems_3 = new DataManager(this.dataSource).executeLocal(new Query().where(predicate));
|
|
18985
19077
|
}
|
|
18986
19078
|
}
|
|
18987
19079
|
if (!(this.dataSource instanceof DataManager)) {
|
|
18988
|
-
this.initialValueUpdate(
|
|
19080
|
+
this.initialValueUpdate(listItems_3, true);
|
|
18989
19081
|
this.initialUpdate();
|
|
18990
19082
|
}
|
|
18991
19083
|
else {
|
|
18992
19084
|
this.setInitialValue = function () {
|
|
18993
19085
|
_this.initStatus = false;
|
|
18994
19086
|
if (!_this.enableVirtualization || (_this.enableVirtualization && (!(_this.dataSource instanceof DataManager)))) {
|
|
18995
|
-
_this.initialValueUpdate(
|
|
19087
|
+
_this.initialValueUpdate(listItems_3);
|
|
18996
19088
|
}
|
|
18997
19089
|
_this.initialUpdate();
|
|
18998
19090
|
_this.setInitialValue = null;
|
|
@@ -19487,7 +19579,7 @@ var FOCUS$1 = 'e-input-focus';
|
|
|
19487
19579
|
/**
|
|
19488
19580
|
* The Multiselect enable CheckBoxSelection call this inject module.
|
|
19489
19581
|
*/
|
|
19490
|
-
var CheckBoxSelection = /** @
|
|
19582
|
+
var CheckBoxSelection = /** @class */ (function () {
|
|
19491
19583
|
function CheckBoxSelection(parent) {
|
|
19492
19584
|
this.activeLi = [];
|
|
19493
19585
|
this.activeEle = [];
|
|
@@ -20009,29 +20101,29 @@ var CheckBoxSelection = /** @__PURE__ @class */ (function () {
|
|
|
20009
20101
|
return CheckBoxSelection;
|
|
20010
20102
|
}());
|
|
20011
20103
|
|
|
20012
|
-
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
20013
|
-
var extendStatics = function (d, b) {
|
|
20014
|
-
extendStatics = Object.setPrototypeOf ||
|
|
20015
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20016
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20017
|
-
return extendStatics(d, b);
|
|
20018
|
-
};
|
|
20019
|
-
return function (d, b) {
|
|
20020
|
-
extendStatics(d, b);
|
|
20021
|
-
function __() { this.constructor = d; }
|
|
20022
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20023
|
-
};
|
|
20024
|
-
})();
|
|
20025
|
-
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
20026
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20027
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20028
|
-
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;
|
|
20029
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20030
|
-
};
|
|
20104
|
+
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
20105
|
+
var extendStatics = function (d, b) {
|
|
20106
|
+
extendStatics = Object.setPrototypeOf ||
|
|
20107
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20108
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20109
|
+
return extendStatics(d, b);
|
|
20110
|
+
};
|
|
20111
|
+
return function (d, b) {
|
|
20112
|
+
extendStatics(d, b);
|
|
20113
|
+
function __() { this.constructor = d; }
|
|
20114
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20115
|
+
};
|
|
20116
|
+
})();
|
|
20117
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
20118
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20119
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20120
|
+
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;
|
|
20121
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20122
|
+
};
|
|
20031
20123
|
/**
|
|
20032
20124
|
* Defines the Selection settings of List Box.
|
|
20033
20125
|
*/
|
|
20034
|
-
var SelectionSettings = /** @
|
|
20126
|
+
var SelectionSettings = /** @class */ (function (_super) {
|
|
20035
20127
|
__extends$6(SelectionSettings, _super);
|
|
20036
20128
|
function SelectionSettings() {
|
|
20037
20129
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20053,7 +20145,7 @@ var SelectionSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
20053
20145
|
/**
|
|
20054
20146
|
* Defines the toolbar settings of List Box.
|
|
20055
20147
|
*/
|
|
20056
|
-
var ToolbarSettings = /** @
|
|
20148
|
+
var ToolbarSettings = /** @class */ (function (_super) {
|
|
20057
20149
|
__extends$6(ToolbarSettings, _super);
|
|
20058
20150
|
function ToolbarSettings() {
|
|
20059
20151
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20086,7 +20178,7 @@ var ToolbarSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
20086
20178
|
* </script>
|
|
20087
20179
|
* ```
|
|
20088
20180
|
*/
|
|
20089
|
-
var ListBox = /** @
|
|
20181
|
+
var ListBox = /** @class */ (function (_super) {
|
|
20090
20182
|
__extends$6(ListBox, _super);
|
|
20091
20183
|
/**
|
|
20092
20184
|
* Constructor for creating the ListBox component.
|
|
@@ -22686,30 +22778,30 @@ var listBoxClasses = {
|
|
|
22686
22778
|
clearIcon: 'e-clear-icon'
|
|
22687
22779
|
};
|
|
22688
22780
|
|
|
22689
|
-
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
22690
|
-
var extendStatics = function (d, b) {
|
|
22691
|
-
extendStatics = Object.setPrototypeOf ||
|
|
22692
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
22693
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
22694
|
-
return extendStatics(d, b);
|
|
22695
|
-
};
|
|
22696
|
-
return function (d, b) {
|
|
22697
|
-
extendStatics(d, b);
|
|
22698
|
-
function __() { this.constructor = d; }
|
|
22699
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
22700
|
-
};
|
|
22701
|
-
})();
|
|
22702
|
-
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
22703
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22704
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22705
|
-
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;
|
|
22706
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22707
|
-
};
|
|
22781
|
+
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
22782
|
+
var extendStatics = function (d, b) {
|
|
22783
|
+
extendStatics = Object.setPrototypeOf ||
|
|
22784
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
22785
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
22786
|
+
return extendStatics(d, b);
|
|
22787
|
+
};
|
|
22788
|
+
return function (d, b) {
|
|
22789
|
+
extendStatics(d, b);
|
|
22790
|
+
function __() { this.constructor = d; }
|
|
22791
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
22792
|
+
};
|
|
22793
|
+
})();
|
|
22794
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
22795
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22796
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22797
|
+
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;
|
|
22798
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22799
|
+
};
|
|
22708
22800
|
/**
|
|
22709
22801
|
* The Mention component is used to list someone or something based on user input in textarea, input,
|
|
22710
22802
|
* or any other editable element from which the user can select.
|
|
22711
22803
|
*/
|
|
22712
|
-
var Mention = /** @
|
|
22804
|
+
var Mention = /** @class */ (function (_super) {
|
|
22713
22805
|
__extends$7(Mention, _super);
|
|
22714
22806
|
/**
|
|
22715
22807
|
* * Constructor for creating the widget
|
|
@@ -23051,12 +23143,14 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
23051
23143
|
var isValid = currentRange && mentionRegex.test(currentRange) ? false : true;
|
|
23052
23144
|
var lastWordRange = this.getLastLetter(currentRange);
|
|
23053
23145
|
var previousChar = currentRange ? currentRange.charAt(Math.max(0, currentRange.indexOf(this.mentionChar) - 1)) : '';
|
|
23054
|
-
if (
|
|
23055
|
-
|
|
23056
|
-
|
|
23057
|
-
|
|
23058
|
-
|
|
23059
|
-
|
|
23146
|
+
if (!this.allowSpaces) {
|
|
23147
|
+
if (isValid && currentRange && currentRange.includes(this.mentionChar) && currentRange.split(this.mentionChar).pop() !== ''
|
|
23148
|
+
&& (!this.requireLeadingSpace || (this.requireLeadingSpace && (previousChar === ' ' || currentRange.indexOf(this.mentionChar) === 0)))) {
|
|
23149
|
+
lastWordRange = this.mentionChar + currentRange.split(this.mentionChar).pop();
|
|
23150
|
+
}
|
|
23151
|
+
if (!this.requireLeadingSpace && lastWordRange && lastWordRange.includes(this.mentionChar)) {
|
|
23152
|
+
lastWordRange = this.mentionChar + lastWordRange.split(this.mentionChar).pop();
|
|
23153
|
+
}
|
|
23060
23154
|
}
|
|
23061
23155
|
var lastTwoLetters = this.mentionChar.toString() + this.mentionChar.toString();
|
|
23062
23156
|
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
@@ -23069,7 +23163,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
23069
23163
|
this.hidePopup();
|
|
23070
23164
|
return;
|
|
23071
23165
|
}
|
|
23072
|
-
if (((!currentRange || !lastWordRange) || (!lastWordRange.includes(this.mentionChar) && !this.requireLeadingSpace)) || e.code === 'Enter' || e.keyCode === 27 ||
|
|
23166
|
+
if (((!currentRange || !lastWordRange) || (!lastWordRange.includes(this.mentionChar) && !this.requireLeadingSpace && !this.allowSpaces)) || e.code === 'Enter' || e.keyCode === 27 ||
|
|
23073
23167
|
(lastWordRange.match(Regex) && lastWordRange.match(Regex).length > 1) ||
|
|
23074
23168
|
(this.isContentEditable(this.inputElement) && this.range.startContainer &&
|
|
23075
23169
|
this.range.startContainer.previousElementSibling && this.range.startContainer.previousElementSibling.tagName !== 'BR' && this.range.startContainer.textContent.split('').length > 0 &&
|