@syncfusion/ej2-dropdowns 29.2.10 → 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 +134 -85
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +293 -242
- 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 +20 -20
- 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 +1 -1
- package/src/drop-down-tree/drop-down-tree.js +19 -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 +90 -41
- 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
|
|
@@ -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;
|
|
@@ -11059,25 +11059,25 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
11059
11059
|
return DropDownTree;
|
|
11060
11060
|
}(Component));
|
|
11061
11061
|
|
|
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
|
-
};
|
|
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
|
+
};
|
|
11081
11081
|
var SPINNER_CLASS = 'e-atc-spinner-icon';
|
|
11082
11082
|
dropDownListClasses.root = 'e-combobox';
|
|
11083
11083
|
var inputObject$1 = {
|
|
@@ -11100,7 +11100,7 @@ var inputObject$1 = {
|
|
|
11100
11100
|
* games.appendTo("#list");
|
|
11101
11101
|
* ```
|
|
11102
11102
|
*/
|
|
11103
|
-
var ComboBox = /** @
|
|
11103
|
+
var ComboBox = /** @class */ (function (_super) {
|
|
11104
11104
|
__extends$3(ComboBox, _super);
|
|
11105
11105
|
/**
|
|
11106
11106
|
* *Constructor for creating the component
|
|
@@ -12142,25 +12142,25 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
12142
12142
|
return ComboBox;
|
|
12143
12143
|
}(DropDownList));
|
|
12144
12144
|
|
|
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
|
-
};
|
|
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
|
+
};
|
|
12164
12164
|
dropDownListClasses.root = 'e-autocomplete';
|
|
12165
12165
|
dropDownListClasses.icon = 'e-input-group-icon e-ddl-icon e-search-icon';
|
|
12166
12166
|
/**
|
|
@@ -12174,7 +12174,7 @@ dropDownListClasses.icon = 'e-input-group-icon e-ddl-icon e-search-icon';
|
|
|
12174
12174
|
* atcObj.appendTo("#list");
|
|
12175
12175
|
* ```
|
|
12176
12176
|
*/
|
|
12177
|
-
var AutoComplete = /** @
|
|
12177
|
+
var AutoComplete = /** @class */ (function (_super) {
|
|
12178
12178
|
__extends$4(AutoComplete, _super);
|
|
12179
12179
|
/**
|
|
12180
12180
|
* * Constructor for creating the widget
|
|
@@ -12870,25 +12870,25 @@ function encodePlaceholder(placeholder) {
|
|
|
12870
12870
|
}
|
|
12871
12871
|
/* eslint-enable valid-jsdoc */
|
|
12872
12872
|
|
|
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
|
-
};
|
|
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
|
+
};
|
|
12892
12892
|
var FOCUS = 'e-input-focus';
|
|
12893
12893
|
var DISABLED$1 = 'e-disabled';
|
|
12894
12894
|
var OVER_ALL_WRAPPER = 'e-multiselect e-input-group e-control-wrapper';
|
|
@@ -12944,7 +12944,7 @@ var RESIZE_ICON = 'e-resizer-right e-icons';
|
|
|
12944
12944
|
* </script>
|
|
12945
12945
|
* ```
|
|
12946
12946
|
*/
|
|
12947
|
-
var MultiSelect = /** @
|
|
12947
|
+
var MultiSelect = /** @class */ (function (_super) {
|
|
12948
12948
|
__extends$5(MultiSelect, _super);
|
|
12949
12949
|
/**
|
|
12950
12950
|
* Constructor for creating the DropDownList widget.
|
|
@@ -13346,7 +13346,8 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13346
13346
|
if (!isNullOrUndefined(this.value)) {
|
|
13347
13347
|
this.tempValues = this.allowObjectBinding ? this.value.slice() : this.value.slice();
|
|
13348
13348
|
}
|
|
13349
|
-
var customValue = this.allowObjectBinding ?
|
|
13349
|
+
var customValue = this.allowObjectBinding ? this.enableVirtualization ?
|
|
13350
|
+
this.getVirtualDataByValue(this.getFormattedValue(value)) :
|
|
13350
13351
|
this.getDataByValue(this.getFormattedValue(value)) : this.getFormattedValue(value);
|
|
13351
13352
|
if (this.allowCustomValue && (value !== 'false' && customValue === false || (!isNullOrUndefined(customValue) &&
|
|
13352
13353
|
customValue.toString() === 'NaN'))) {
|
|
@@ -13539,7 +13540,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13539
13540
|
if (!this.enableVirtualization || (this.enableVirtualization && (!(this.dataSource instanceof DataManager)))) {
|
|
13540
13541
|
this.initialValueUpdate();
|
|
13541
13542
|
}
|
|
13542
|
-
else if (!this.isRemoveSelection) {
|
|
13543
|
+
else if (!this.isRemoveSelection && (!this.enableVirtualization || (this.enableVirtualization && (!(this.dataSource instanceof DataManager))))) {
|
|
13543
13544
|
this.initialValueUpdate(this.listData, true);
|
|
13544
13545
|
}
|
|
13545
13546
|
this.initialUpdate();
|
|
@@ -13768,9 +13769,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13768
13769
|
return this.virtualFilterQuery(filterQuery);
|
|
13769
13770
|
}
|
|
13770
13771
|
if (this.virtualSelectAll) {
|
|
13771
|
-
return query ? query.take(this.maximumSelectionLength).requiresCount() : this.query ?
|
|
13772
|
-
this.query.take(this.maximumSelectionLength).requiresCount() :
|
|
13773
|
-
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();
|
|
13774
13775
|
}
|
|
13775
13776
|
return query ? query : this.query ? this.query : new Query();
|
|
13776
13777
|
}
|
|
@@ -14747,6 +14748,15 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14747
14748
|
var focuseElem = this.list.querySelector('li.' + dropDownBaseClasses.focus);
|
|
14748
14749
|
this.focusFirstListItem = !isNullOrUndefined(this.liCollections[0]) ? this.liCollections[0].classList.contains('e-item-focus') :
|
|
14749
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
|
+
}
|
|
14750
14760
|
var index = Array.prototype.slice.call(list).indexOf(focuseElem);
|
|
14751
14761
|
if (index <= 0 && (this.mode === 'CheckBox' && this.allowFiltering)) {
|
|
14752
14762
|
this.keyAction = false;
|
|
@@ -15169,10 +15179,10 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15169
15179
|
}
|
|
15170
15180
|
else if (elements.length) {
|
|
15171
15181
|
if (this.mode === 'CheckBox' && this.showSelectAll && !isNullOrUndefined(selectAllParent && position === -1)) {
|
|
15172
|
-
if (!this.focusFirstListItem && selectAllParent.classList.contains('e-item-focus')) {
|
|
15182
|
+
if ((!this.focusFirstListItem || position === 1) && selectAllParent.classList.contains('e-item-focus')) {
|
|
15173
15183
|
selectAllParent.classList.remove('e-item-focus');
|
|
15174
15184
|
}
|
|
15175
|
-
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'))) {
|
|
15176
15186
|
selectAllParent.classList.add('e-item-focus');
|
|
15177
15187
|
}
|
|
15178
15188
|
}
|
|
@@ -15310,6 +15320,28 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15310
15320
|
addClass([element], CHIP_SELECTED);
|
|
15311
15321
|
this.trigger('chipSelection', e);
|
|
15312
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
|
+
};
|
|
15313
15345
|
MultiSelect.prototype.onChipRemove = function (e) {
|
|
15314
15346
|
if (e.which === 3 || e.button === 2) {
|
|
15315
15347
|
return;
|
|
@@ -15317,7 +15349,8 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15317
15349
|
if (this.enabled && !this.readonly) {
|
|
15318
15350
|
var element = e.target.parentElement;
|
|
15319
15351
|
var customVal = element.getAttribute('data-value');
|
|
15320
|
-
var value = this.allowObjectBinding ?
|
|
15352
|
+
var value = this.allowObjectBinding ? this.enableVirtualization ?
|
|
15353
|
+
this.getVirtualDataByValue(this.getFormattedValue(customVal)) :
|
|
15321
15354
|
this.getDataByValue(this.getFormattedValue(customVal)) : this.getFormattedValue(customVal);
|
|
15322
15355
|
if (this.allowCustomValue && ((customVal !== 'false' && value === false) ||
|
|
15323
15356
|
(!isNullOrUndefined(value) && value.toString() === 'NaN'))) {
|
|
@@ -15435,7 +15468,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15435
15468
|
_this.virtualSelectAll = false;
|
|
15436
15469
|
var removeVal = _this.value.slice(0);
|
|
15437
15470
|
removeVal.splice(index, 1);
|
|
15438
|
-
if (_this.enableVirtualization && _this.
|
|
15471
|
+
if (_this.enableVirtualization && _this.selectedListData) {
|
|
15439
15472
|
_this.selectedListData.splice(index, 1);
|
|
15440
15473
|
}
|
|
15441
15474
|
_this.setProperties({ value: [].concat([], removeVal) }, true);
|
|
@@ -15667,7 +15700,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15667
15700
|
MultiSelect.prototype.dispatchSelect = function (value, eve, element, isNotTrigger, length, dataValue, text) {
|
|
15668
15701
|
var _this = this;
|
|
15669
15702
|
var list = this.listData;
|
|
15670
|
-
if (this.initStatus && !isNotTrigger) {
|
|
15703
|
+
if (this.initStatus && !isNotTrigger && (!this.allowObjectBinding || (this.allowObjectBinding && value))) {
|
|
15671
15704
|
value = this.allowObjectBinding ? getValue(((this.fields.value) ? this.fields.value : ''), value) : value;
|
|
15672
15705
|
var val_2 = dataValue ? dataValue : this.getDataByValue(value);
|
|
15673
15706
|
var eventArgs = {
|
|
@@ -15700,7 +15733,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15700
15733
|
value = _this.allowObjectBinding ? _this.getDataByValue(value) : value;
|
|
15701
15734
|
if (_this.enableVirtualization) {
|
|
15702
15735
|
if (isNullOrUndefined(_this.selectedListData)) {
|
|
15703
|
-
_this.selectedListData = [(_this.getDataByValue(value))];
|
|
15736
|
+
_this.selectedListData = _this.allowObjectBinding ? [value] : [(_this.getDataByValue(value))];
|
|
15704
15737
|
}
|
|
15705
15738
|
else {
|
|
15706
15739
|
if (dataValue) {
|
|
@@ -15713,10 +15746,12 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15713
15746
|
}
|
|
15714
15747
|
else {
|
|
15715
15748
|
if (Array.isArray(_this.selectedListData)) {
|
|
15716
|
-
_this.selectedListData.push(
|
|
15749
|
+
_this.selectedListData.push(_this.allowObjectBinding ? value :
|
|
15750
|
+
(_this.getDataByValue(value)));
|
|
15717
15751
|
}
|
|
15718
15752
|
else {
|
|
15719
|
-
_this.selectedListData = [_this.selectedListData,
|
|
15753
|
+
_this.selectedListData = [_this.selectedListData, _this.allowObjectBinding ? value :
|
|
15754
|
+
(_this.getDataByValue(value))];
|
|
15720
15755
|
}
|
|
15721
15756
|
}
|
|
15722
15757
|
}
|
|
@@ -16574,7 +16609,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16574
16609
|
else {
|
|
16575
16610
|
if (this_1.listData) {
|
|
16576
16611
|
if (this_1.enableVirtualization) {
|
|
16577
|
-
if (delim && !this_1.isDynamicRemoteVirtualData) {
|
|
16612
|
+
if (delim && !this_1.isDynamicRemoteVirtualData && !isInitialVirtualData) {
|
|
16578
16613
|
data = this_1.delimiterWrapper && this_1.delimiterWrapper.innerHTML === '' ? data :
|
|
16579
16614
|
this_1.delimiterWrapper.innerHTML;
|
|
16580
16615
|
}
|
|
@@ -16586,7 +16621,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16586
16621
|
text = this_1.text.split(delimiterChar);
|
|
16587
16622
|
}
|
|
16588
16623
|
else {
|
|
16589
|
-
temp = isInitialVirtualData && delim ? this_1.text : this_1.getTextByValue(value);
|
|
16624
|
+
temp = isInitialVirtualData && delim ? this_1.text.replace(/,/g, delimiterChar + ' ') : this_1.getTextByValue(value);
|
|
16590
16625
|
var textValues = this_1.isDynamicRemoteVirtualData && value != null && value !== '' && !isInitialVirtualData ?
|
|
16591
16626
|
this_1.getTextByValue(value) : isInitialVirtualData ? this_1.text : (this_1.text && this_1.text !== '' ? this_1.text + this_1.delimiterChar + temp : temp);
|
|
16592
16627
|
data += temp + delimiterChar + ' ';
|
|
@@ -16729,11 +16764,14 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16729
16764
|
this.selectedListData = [listItems[i]];
|
|
16730
16765
|
}
|
|
16731
16766
|
else {
|
|
16732
|
-
if (
|
|
16733
|
-
this.
|
|
16734
|
-
|
|
16735
|
-
|
|
16736
|
-
|
|
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
|
+
}
|
|
16737
16775
|
}
|
|
16738
16776
|
}
|
|
16739
16777
|
}
|
|
@@ -16747,6 +16785,12 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16747
16785
|
text = this.getTextByValue(value);
|
|
16748
16786
|
isCustomData = true;
|
|
16749
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
|
+
}
|
|
16750
16794
|
}
|
|
16751
16795
|
else {
|
|
16752
16796
|
text = this.getTextByValue(value);
|
|
@@ -17802,6 +17846,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17802
17846
|
}
|
|
17803
17847
|
this.updateHiddenElement();
|
|
17804
17848
|
this.setProperties({ value: [] }, true);
|
|
17849
|
+
this.selectedListData = [];
|
|
17805
17850
|
this.virtualSelectAll = false;
|
|
17806
17851
|
if (!isNullOrUndefined(this.viewPortInfo.startIndex) && !isNullOrUndefined(this.viewPortInfo.endIndex)) {
|
|
17807
17852
|
this.notify('setCurrentViewDataAsync', {
|
|
@@ -18318,6 +18363,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
18318
18363
|
this.onLoadSelect();
|
|
18319
18364
|
if (this.enableVirtualization) {
|
|
18320
18365
|
this.setProperties({ text: '' }, true);
|
|
18366
|
+
this.selectedListData = [];
|
|
18321
18367
|
this.checkInitialValue();
|
|
18322
18368
|
}
|
|
18323
18369
|
}
|
|
@@ -18339,6 +18385,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
18339
18385
|
this.isaddNonPresentItems = false;
|
|
18340
18386
|
}
|
|
18341
18387
|
else {
|
|
18388
|
+
this.selectedListData = [];
|
|
18342
18389
|
if (prop === 'text') {
|
|
18343
18390
|
this.initialTextUpdate();
|
|
18344
18391
|
newProp = this.value;
|
|
@@ -18382,7 +18429,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
18382
18429
|
setTimeout(function () {
|
|
18383
18430
|
_this.initialValueUpdate(listItems_2, true);
|
|
18384
18431
|
_this.isDynamicRemoteVirtualData = false;
|
|
18385
|
-
_this.
|
|
18432
|
+
if (!_this.inputFocus || (_this.inputFocus && _this.mode !== 'Default')) {
|
|
18433
|
+
_this.initialUpdate();
|
|
18434
|
+
}
|
|
18386
18435
|
}, 100);
|
|
18387
18436
|
}
|
|
18388
18437
|
});
|
|
@@ -19530,7 +19579,7 @@ var FOCUS$1 = 'e-input-focus';
|
|
|
19530
19579
|
/**
|
|
19531
19580
|
* The Multiselect enable CheckBoxSelection call this inject module.
|
|
19532
19581
|
*/
|
|
19533
|
-
var CheckBoxSelection = /** @
|
|
19582
|
+
var CheckBoxSelection = /** @class */ (function () {
|
|
19534
19583
|
function CheckBoxSelection(parent) {
|
|
19535
19584
|
this.activeLi = [];
|
|
19536
19585
|
this.activeEle = [];
|
|
@@ -20052,29 +20101,29 @@ var CheckBoxSelection = /** @__PURE__ @class */ (function () {
|
|
|
20052
20101
|
return CheckBoxSelection;
|
|
20053
20102
|
}());
|
|
20054
20103
|
|
|
20055
|
-
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
20056
|
-
var extendStatics = function (d, b) {
|
|
20057
|
-
extendStatics = Object.setPrototypeOf ||
|
|
20058
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20059
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20060
|
-
return extendStatics(d, b);
|
|
20061
|
-
};
|
|
20062
|
-
return function (d, b) {
|
|
20063
|
-
extendStatics(d, b);
|
|
20064
|
-
function __() { this.constructor = d; }
|
|
20065
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20066
|
-
};
|
|
20067
|
-
})();
|
|
20068
|
-
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
20069
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20070
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20071
|
-
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;
|
|
20072
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20073
|
-
};
|
|
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
|
+
};
|
|
20074
20123
|
/**
|
|
20075
20124
|
* Defines the Selection settings of List Box.
|
|
20076
20125
|
*/
|
|
20077
|
-
var SelectionSettings = /** @
|
|
20126
|
+
var SelectionSettings = /** @class */ (function (_super) {
|
|
20078
20127
|
__extends$6(SelectionSettings, _super);
|
|
20079
20128
|
function SelectionSettings() {
|
|
20080
20129
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20096,7 +20145,7 @@ var SelectionSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
20096
20145
|
/**
|
|
20097
20146
|
* Defines the toolbar settings of List Box.
|
|
20098
20147
|
*/
|
|
20099
|
-
var ToolbarSettings = /** @
|
|
20148
|
+
var ToolbarSettings = /** @class */ (function (_super) {
|
|
20100
20149
|
__extends$6(ToolbarSettings, _super);
|
|
20101
20150
|
function ToolbarSettings() {
|
|
20102
20151
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20129,7 +20178,7 @@ var ToolbarSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
20129
20178
|
* </script>
|
|
20130
20179
|
* ```
|
|
20131
20180
|
*/
|
|
20132
|
-
var ListBox = /** @
|
|
20181
|
+
var ListBox = /** @class */ (function (_super) {
|
|
20133
20182
|
__extends$6(ListBox, _super);
|
|
20134
20183
|
/**
|
|
20135
20184
|
* Constructor for creating the ListBox component.
|
|
@@ -22729,30 +22778,30 @@ var listBoxClasses = {
|
|
|
22729
22778
|
clearIcon: 'e-clear-icon'
|
|
22730
22779
|
};
|
|
22731
22780
|
|
|
22732
|
-
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
22733
|
-
var extendStatics = function (d, b) {
|
|
22734
|
-
extendStatics = Object.setPrototypeOf ||
|
|
22735
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
22736
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
22737
|
-
return extendStatics(d, b);
|
|
22738
|
-
};
|
|
22739
|
-
return function (d, b) {
|
|
22740
|
-
extendStatics(d, b);
|
|
22741
|
-
function __() { this.constructor = d; }
|
|
22742
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
22743
|
-
};
|
|
22744
|
-
})();
|
|
22745
|
-
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
22746
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22747
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22748
|
-
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;
|
|
22749
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22750
|
-
};
|
|
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
|
+
};
|
|
22751
22800
|
/**
|
|
22752
22801
|
* The Mention component is used to list someone or something based on user input in textarea, input,
|
|
22753
22802
|
* or any other editable element from which the user can select.
|
|
22754
22803
|
*/
|
|
22755
|
-
var Mention = /** @
|
|
22804
|
+
var Mention = /** @class */ (function (_super) {
|
|
22756
22805
|
__extends$7(Mention, _super);
|
|
22757
22806
|
/**
|
|
22758
22807
|
* * Constructor for creating the widget
|
|
@@ -23094,12 +23143,14 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
23094
23143
|
var isValid = currentRange && mentionRegex.test(currentRange) ? false : true;
|
|
23095
23144
|
var lastWordRange = this.getLastLetter(currentRange);
|
|
23096
23145
|
var previousChar = currentRange ? currentRange.charAt(Math.max(0, currentRange.indexOf(this.mentionChar) - 1)) : '';
|
|
23097
|
-
if (
|
|
23098
|
-
|
|
23099
|
-
|
|
23100
|
-
|
|
23101
|
-
|
|
23102
|
-
|
|
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
|
+
}
|
|
23103
23154
|
}
|
|
23104
23155
|
var lastTwoLetters = this.mentionChar.toString() + this.mentionChar.toString();
|
|
23105
23156
|
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
@@ -23112,7 +23163,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
23112
23163
|
this.hidePopup();
|
|
23113
23164
|
return;
|
|
23114
23165
|
}
|
|
23115
|
-
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 ||
|
|
23116
23167
|
(lastWordRange.match(Regex) && lastWordRange.match(Regex).length > 1) ||
|
|
23117
23168
|
(this.isContentEditable(this.inputElement) && this.range.startContainer &&
|
|
23118
23169
|
this.range.startContainer.previousElementSibling && this.range.startContainer.previousElementSibling.tagName !== 'BR' && this.range.startContainer.textContent.split('').length > 0 &&
|