@syncfusion/ej2-dropdowns 29.2.11-81740 → 30.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +263 -0
- package/{ReadMe.md → README.md} +217 -217
- package/dist/ej2-dropdowns.min.js +10 -0
- package/dist/ej2-dropdowns.umd.min.js +10 -1
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +90 -96
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +249 -256
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +11 -0
- package/dist/global/ej2-dropdowns.min.js.map +1 -0
- package/dist/global/index.d.ts +14 -0
- package/helpers/e2e/autocomplete.d.ts +16 -0
- package/helpers/e2e/autocomplete.js +60 -0
- package/helpers/e2e/combobox.d.ts +17 -0
- package/helpers/e2e/combobox.js +63 -0
- package/helpers/e2e/dropdownlist.d.ts +20 -0
- package/helpers/e2e/dropdownlist.js +72 -0
- package/helpers/e2e/index.d.ts +4 -0
- package/helpers/e2e/index.js +11 -0
- package/helpers/e2e/listboxHelper.d.ts +22 -0
- package/helpers/e2e/listboxHelper.js +56 -0
- package/helpers/e2e/multiselect.d.ts +31 -0
- package/helpers/e2e/multiselect.js +105 -0
- 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 +13 -13
- package/src/auto-complete/auto-complete.js +43 -43
- 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 +23 -22
- 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 +20 -20
- 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 -2
- package/src/mention/mention.js +24 -23
- package/src/multi-select/multi-select-model.d.ts +564 -564
- package/src/multi-select/multi-select.d.ts +1 -1
- package/src/multi-select/multi-select.js +26 -35
- 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/tslint.json +111 -0
|
@@ -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) {
|
|
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 = /** @class */ (function () {
|
|
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 = /** @__PURE__ @class */ (function () {
|
|
310
310
|
function VirtualScroll(parent) {
|
|
311
311
|
var _this = this;
|
|
312
312
|
this.sentinelInfo = {
|
|
@@ -862,26 +862,26 @@ var VirtualScroll = /** @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 = /** @class */ (function (_super) {
|
|
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 = /** @__PURE__ @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 = /** @class */ (function (_super) {
|
|
937
|
+
var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
938
938
|
__extends(DropDownBase, _super);
|
|
939
939
|
/**
|
|
940
940
|
* * Constructor for DropDownBase class
|
|
@@ -2960,25 +2960,25 @@ var DropDownBase = /** @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 = /** @class */ (function (_super) {
|
|
3029
|
+
var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
3030
3030
|
__extends$1(DropDownList, _super);
|
|
3031
3031
|
/**
|
|
3032
3032
|
* * Constructor for creating the DropDownList component.
|
|
@@ -5279,6 +5279,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
5279
5279
|
}
|
|
5280
5280
|
this.getInitialData = false;
|
|
5281
5281
|
this.isReactTemplateUpdate = true;
|
|
5282
|
+
this.typedString = this.filterInput.value;
|
|
5282
5283
|
this.searchLists(this.filterArgs);
|
|
5283
5284
|
return;
|
|
5284
5285
|
}
|
|
@@ -5560,7 +5561,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
5560
5561
|
document.body.appendChild(popupEle);
|
|
5561
5562
|
popupEle.style.top = '0px';
|
|
5562
5563
|
initialPopupHeight = popupEle.clientHeight;
|
|
5563
|
-
if (_this.enableVirtualization && _this.itemTemplate) {
|
|
5564
|
+
if (_this.enableVirtualization && (_this.itemTemplate || _this.isAngular)) {
|
|
5564
5565
|
var listitems = popupEle.querySelectorAll('li.e-list-item:not(.e-virtual-list)');
|
|
5565
5566
|
_this.listItemHeight = listitems.length > 0 ? Math.ceil(listitems[0].getBoundingClientRect().height) +
|
|
5566
5567
|
parseInt(window.getComputedStyle(listitems[0]).marginBottom, 10) : 0;
|
|
@@ -7487,25 +7488,25 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
7487
7488
|
return DropDownList;
|
|
7488
7489
|
}(DropDownBase));
|
|
7489
7490
|
|
|
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
|
-
};
|
|
7491
|
+
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
7492
|
+
var extendStatics = function (d, b) {
|
|
7493
|
+
extendStatics = Object.setPrototypeOf ||
|
|
7494
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7495
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7496
|
+
return extendStatics(d, b);
|
|
7497
|
+
};
|
|
7498
|
+
return function (d, b) {
|
|
7499
|
+
extendStatics(d, b);
|
|
7500
|
+
function __() { this.constructor = d; }
|
|
7501
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7502
|
+
};
|
|
7503
|
+
})();
|
|
7504
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7505
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7506
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7507
|
+
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;
|
|
7508
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7509
|
+
};
|
|
7509
7510
|
var RTL = 'e-rtl';
|
|
7510
7511
|
var DROPDOWNTREE = 'e-ddt';
|
|
7511
7512
|
var HIDDENELEMENT = 'e-ddt-hidden';
|
|
@@ -7555,7 +7556,7 @@ var OVERFLOW_VIEW = 'e-overflow';
|
|
|
7555
7556
|
var SHOW_TEXT = 'e-show-text';
|
|
7556
7557
|
var TOTAL_COUNT_WRAPPER = 'e-total-count';
|
|
7557
7558
|
var REMAIN_COUNT = 'e-wrap-count';
|
|
7558
|
-
var Fields = /** @class */ (function (_super) {
|
|
7559
|
+
var Fields = /** @__PURE__ @class */ (function (_super) {
|
|
7559
7560
|
__extends$2(Fields, _super);
|
|
7560
7561
|
function Fields() {
|
|
7561
7562
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -7607,7 +7608,7 @@ var Fields = /** @class */ (function (_super) {
|
|
|
7607
7608
|
], Fields.prototype, "value", void 0);
|
|
7608
7609
|
return Fields;
|
|
7609
7610
|
}(ChildProperty));
|
|
7610
|
-
var TreeSettings = /** @class */ (function (_super) {
|
|
7611
|
+
var TreeSettings = /** @__PURE__ @class */ (function (_super) {
|
|
7611
7612
|
__extends$2(TreeSettings, _super);
|
|
7612
7613
|
function TreeSettings() {
|
|
7613
7614
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -7638,7 +7639,7 @@ var TreeSettings = /** @class */ (function (_super) {
|
|
|
7638
7639
|
* ddtObj.appendTo("#tree");
|
|
7639
7640
|
* ```
|
|
7640
7641
|
*/
|
|
7641
|
-
var DropDownTree = /** @class */ (function (_super) {
|
|
7642
|
+
var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
7642
7643
|
__extends$2(DropDownTree, _super);
|
|
7643
7644
|
function DropDownTree(options, element) {
|
|
7644
7645
|
var _this = _super.call(this, options, element) || this;
|
|
@@ -8202,7 +8203,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
8202
8203
|
if (this.isPopupOpen) {
|
|
8203
8204
|
this.hidePopup();
|
|
8204
8205
|
}
|
|
8205
|
-
else {
|
|
8206
|
+
else if (!(e instanceof TouchEvent) && e.button !== 2) {
|
|
8206
8207
|
this.focusIn(e);
|
|
8207
8208
|
this.renderPopup();
|
|
8208
8209
|
}
|
|
@@ -11059,25 +11060,25 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
11059
11060
|
return DropDownTree;
|
|
11060
11061
|
}(Component));
|
|
11061
11062
|
|
|
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
|
-
};
|
|
11063
|
+
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
11064
|
+
var extendStatics = function (d, b) {
|
|
11065
|
+
extendStatics = Object.setPrototypeOf ||
|
|
11066
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11067
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
11068
|
+
return extendStatics(d, b);
|
|
11069
|
+
};
|
|
11070
|
+
return function (d, b) {
|
|
11071
|
+
extendStatics(d, b);
|
|
11072
|
+
function __() { this.constructor = d; }
|
|
11073
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11074
|
+
};
|
|
11075
|
+
})();
|
|
11076
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11077
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11078
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11079
|
+
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;
|
|
11080
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11081
|
+
};
|
|
11081
11082
|
var SPINNER_CLASS = 'e-atc-spinner-icon';
|
|
11082
11083
|
dropDownListClasses.root = 'e-combobox';
|
|
11083
11084
|
var inputObject$1 = {
|
|
@@ -11100,7 +11101,7 @@ var inputObject$1 = {
|
|
|
11100
11101
|
* games.appendTo("#list");
|
|
11101
11102
|
* ```
|
|
11102
11103
|
*/
|
|
11103
|
-
var ComboBox = /** @class */ (function (_super) {
|
|
11104
|
+
var ComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
11104
11105
|
__extends$3(ComboBox, _super);
|
|
11105
11106
|
/**
|
|
11106
11107
|
* *Constructor for creating the component
|
|
@@ -12142,25 +12143,25 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
12142
12143
|
return ComboBox;
|
|
12143
12144
|
}(DropDownList));
|
|
12144
12145
|
|
|
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
|
-
};
|
|
12146
|
+
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
12147
|
+
var extendStatics = function (d, b) {
|
|
12148
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12149
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12150
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
12151
|
+
return extendStatics(d, b);
|
|
12152
|
+
};
|
|
12153
|
+
return function (d, b) {
|
|
12154
|
+
extendStatics(d, b);
|
|
12155
|
+
function __() { this.constructor = d; }
|
|
12156
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12157
|
+
};
|
|
12158
|
+
})();
|
|
12159
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
12160
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12161
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12162
|
+
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;
|
|
12163
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12164
|
+
};
|
|
12164
12165
|
dropDownListClasses.root = 'e-autocomplete';
|
|
12165
12166
|
dropDownListClasses.icon = 'e-input-group-icon e-ddl-icon e-search-icon';
|
|
12166
12167
|
/**
|
|
@@ -12174,7 +12175,7 @@ dropDownListClasses.icon = 'e-input-group-icon e-ddl-icon e-search-icon';
|
|
|
12174
12175
|
* atcObj.appendTo("#list");
|
|
12175
12176
|
* ```
|
|
12176
12177
|
*/
|
|
12177
|
-
var AutoComplete = /** @class */ (function (_super) {
|
|
12178
|
+
var AutoComplete = /** @__PURE__ @class */ (function (_super) {
|
|
12178
12179
|
__extends$4(AutoComplete, _super);
|
|
12179
12180
|
/**
|
|
12180
12181
|
* * Constructor for creating the widget
|
|
@@ -12294,6 +12295,28 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
12294
12295
|
}
|
|
12295
12296
|
return filterQuery;
|
|
12296
12297
|
};
|
|
12298
|
+
AutoComplete.prototype.performFiltering = function (e) {
|
|
12299
|
+
var _this_1 = this;
|
|
12300
|
+
var eventArgs = {
|
|
12301
|
+
preventDefaultAction: false,
|
|
12302
|
+
text: this.filterInput ? this.filterInput.value : null,
|
|
12303
|
+
updateData: function (dataSource, query, fields) {
|
|
12304
|
+
if (eventArgs.cancel) {
|
|
12305
|
+
return;
|
|
12306
|
+
}
|
|
12307
|
+
_this_1.isFiltered = true;
|
|
12308
|
+
_this_1.customFilterQuery = query;
|
|
12309
|
+
_this_1.filterAction(dataSource, query, fields);
|
|
12310
|
+
},
|
|
12311
|
+
cancel: false
|
|
12312
|
+
};
|
|
12313
|
+
this.trigger('filtering', eventArgs, function (eventArgs) {
|
|
12314
|
+
if (!eventArgs.cancel && !_this_1.isFiltered && !eventArgs.preventDefaultAction) {
|
|
12315
|
+
_this_1.searchList = true;
|
|
12316
|
+
_this_1.filterAction(_this_1.dataSource, null, _this_1.fields, e);
|
|
12317
|
+
}
|
|
12318
|
+
});
|
|
12319
|
+
};
|
|
12297
12320
|
AutoComplete.prototype.searchLists = function (e) {
|
|
12298
12321
|
this.isTyped = true;
|
|
12299
12322
|
this.isDataFetched = this.isSelectCustom = false;
|
|
@@ -12319,28 +12342,6 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
12319
12342
|
this.performFiltering(e);
|
|
12320
12343
|
}
|
|
12321
12344
|
};
|
|
12322
|
-
AutoComplete.prototype.performFiltering = function (e) {
|
|
12323
|
-
var _this_1 = this;
|
|
12324
|
-
var eventArgs = {
|
|
12325
|
-
preventDefaultAction: false,
|
|
12326
|
-
text: this.filterInput.value,
|
|
12327
|
-
updateData: function (dataSource, query, fields) {
|
|
12328
|
-
if (eventArgs.cancel) {
|
|
12329
|
-
return;
|
|
12330
|
-
}
|
|
12331
|
-
_this_1.isFiltered = true;
|
|
12332
|
-
_this_1.customFilterQuery = query;
|
|
12333
|
-
_this_1.filterAction(dataSource, query, fields);
|
|
12334
|
-
},
|
|
12335
|
-
cancel: false
|
|
12336
|
-
};
|
|
12337
|
-
this.trigger('filtering', eventArgs, function (eventArgs) {
|
|
12338
|
-
if (!eventArgs.cancel && !_this_1.isFiltered && !eventArgs.preventDefaultAction) {
|
|
12339
|
-
_this_1.searchList = true;
|
|
12340
|
-
_this_1.filterAction(_this_1.dataSource, null, _this_1.fields, e);
|
|
12341
|
-
}
|
|
12342
|
-
});
|
|
12343
|
-
};
|
|
12344
12345
|
/**
|
|
12345
12346
|
* To filter the data from given data source by using query
|
|
12346
12347
|
*
|
|
@@ -12870,25 +12871,25 @@ function encodePlaceholder(placeholder) {
|
|
|
12870
12871
|
}
|
|
12871
12872
|
/* eslint-enable valid-jsdoc */
|
|
12872
12873
|
|
|
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
|
-
};
|
|
12874
|
+
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
12875
|
+
var extendStatics = function (d, b) {
|
|
12876
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12877
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12878
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
12879
|
+
return extendStatics(d, b);
|
|
12880
|
+
};
|
|
12881
|
+
return function (d, b) {
|
|
12882
|
+
extendStatics(d, b);
|
|
12883
|
+
function __() { this.constructor = d; }
|
|
12884
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12885
|
+
};
|
|
12886
|
+
})();
|
|
12887
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
12888
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12889
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12890
|
+
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;
|
|
12891
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12892
|
+
};
|
|
12892
12893
|
var FOCUS = 'e-input-focus';
|
|
12893
12894
|
var DISABLED$1 = 'e-disabled';
|
|
12894
12895
|
var OVER_ALL_WRAPPER = 'e-multiselect e-input-group e-control-wrapper';
|
|
@@ -12944,7 +12945,7 @@ var RESIZE_ICON = 'e-resizer-right e-icons';
|
|
|
12944
12945
|
* </script>
|
|
12945
12946
|
* ```
|
|
12946
12947
|
*/
|
|
12947
|
-
var MultiSelect = /** @class */ (function (_super) {
|
|
12948
|
+
var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
12948
12949
|
__extends$5(MultiSelect, _super);
|
|
12949
12950
|
/**
|
|
12950
12951
|
* Constructor for creating the DropDownList widget.
|
|
@@ -13372,7 +13373,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
13372
13373
|
if (this.mode === 'CheckBox' && this.allowFiltering) {
|
|
13373
13374
|
this.notify('targetElement', { module: 'CheckBoxSelection', enable: this.mode === 'CheckBox' });
|
|
13374
13375
|
}
|
|
13375
|
-
return this.targetInputElement.value;
|
|
13376
|
+
return this.targetInputElement ? this.targetInputElement.value : null;
|
|
13376
13377
|
};
|
|
13377
13378
|
MultiSelect.prototype.getForQuery = function (valuecheck, isCheckbox) {
|
|
13378
13379
|
var predicate;
|
|
@@ -13540,7 +13541,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
13540
13541
|
if (!this.enableVirtualization || (this.enableVirtualization && (!(this.dataSource instanceof DataManager)))) {
|
|
13541
13542
|
this.initialValueUpdate();
|
|
13542
13543
|
}
|
|
13543
|
-
else if (!this.isRemoveSelection
|
|
13544
|
+
else if (!this.isRemoveSelection) {
|
|
13544
13545
|
this.initialValueUpdate(this.listData, true);
|
|
13545
13546
|
}
|
|
13546
13547
|
this.initialUpdate();
|
|
@@ -15700,7 +15701,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
15700
15701
|
MultiSelect.prototype.dispatchSelect = function (value, eve, element, isNotTrigger, length, dataValue, text) {
|
|
15701
15702
|
var _this = this;
|
|
15702
15703
|
var list = this.listData;
|
|
15703
|
-
if (this.initStatus && !isNotTrigger
|
|
15704
|
+
if (this.initStatus && !isNotTrigger) {
|
|
15704
15705
|
value = this.allowObjectBinding ? getValue(((this.fields.value) ? this.fields.value : ''), value) : value;
|
|
15705
15706
|
var val_2 = dataValue ? dataValue : this.getDataByValue(value);
|
|
15706
15707
|
var eventArgs = {
|
|
@@ -16609,7 +16610,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
16609
16610
|
else {
|
|
16610
16611
|
if (this_1.listData) {
|
|
16611
16612
|
if (this_1.enableVirtualization) {
|
|
16612
|
-
if (delim && !this_1.isDynamicRemoteVirtualData
|
|
16613
|
+
if (delim && !this_1.isDynamicRemoteVirtualData) {
|
|
16613
16614
|
data = this_1.delimiterWrapper && this_1.delimiterWrapper.innerHTML === '' ? data :
|
|
16614
16615
|
this_1.delimiterWrapper.innerHTML;
|
|
16615
16616
|
}
|
|
@@ -16621,7 +16622,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
16621
16622
|
text = this_1.text.split(delimiterChar);
|
|
16622
16623
|
}
|
|
16623
16624
|
else {
|
|
16624
|
-
temp = isInitialVirtualData && delim ? this_1.text
|
|
16625
|
+
temp = isInitialVirtualData && delim ? this_1.text : this_1.getTextByValue(value);
|
|
16625
16626
|
var textValues = this_1.isDynamicRemoteVirtualData && value != null && value !== '' && !isInitialVirtualData ?
|
|
16626
16627
|
this_1.getTextByValue(value) : isInitialVirtualData ? this_1.text : (this_1.text && this_1.text !== '' ? this_1.text + this_1.delimiterChar + temp : temp);
|
|
16627
16628
|
data += temp + delimiterChar + ' ';
|
|
@@ -16785,12 +16786,6 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
16785
16786
|
text = this.getTextByValue(value);
|
|
16786
16787
|
isCustomData = true;
|
|
16787
16788
|
}
|
|
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
|
-
}
|
|
16794
16789
|
}
|
|
16795
16790
|
else {
|
|
16796
16791
|
text = this.getTextByValue(value);
|
|
@@ -18385,7 +18380,6 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
18385
18380
|
this.isaddNonPresentItems = false;
|
|
18386
18381
|
}
|
|
18387
18382
|
else {
|
|
18388
|
-
this.selectedListData = [];
|
|
18389
18383
|
if (prop === 'text') {
|
|
18390
18384
|
this.initialTextUpdate();
|
|
18391
18385
|
newProp = this.value;
|
|
@@ -18429,9 +18423,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
18429
18423
|
setTimeout(function () {
|
|
18430
18424
|
_this.initialValueUpdate(listItems_2, true);
|
|
18431
18425
|
_this.isDynamicRemoteVirtualData = false;
|
|
18432
|
-
|
|
18433
|
-
_this.initialUpdate();
|
|
18434
|
-
}
|
|
18426
|
+
_this.initialUpdate();
|
|
18435
18427
|
}, 100);
|
|
18436
18428
|
}
|
|
18437
18429
|
});
|
|
@@ -19579,7 +19571,7 @@ var FOCUS$1 = 'e-input-focus';
|
|
|
19579
19571
|
/**
|
|
19580
19572
|
* The Multiselect enable CheckBoxSelection call this inject module.
|
|
19581
19573
|
*/
|
|
19582
|
-
var CheckBoxSelection = /** @class */ (function () {
|
|
19574
|
+
var CheckBoxSelection = /** @__PURE__ @class */ (function () {
|
|
19583
19575
|
function CheckBoxSelection(parent) {
|
|
19584
19576
|
this.activeLi = [];
|
|
19585
19577
|
this.activeEle = [];
|
|
@@ -20101,29 +20093,29 @@ var CheckBoxSelection = /** @class */ (function () {
|
|
|
20101
20093
|
return CheckBoxSelection;
|
|
20102
20094
|
}());
|
|
20103
20095
|
|
|
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
|
-
};
|
|
20096
|
+
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
20097
|
+
var extendStatics = function (d, b) {
|
|
20098
|
+
extendStatics = Object.setPrototypeOf ||
|
|
20099
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20100
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20101
|
+
return extendStatics(d, b);
|
|
20102
|
+
};
|
|
20103
|
+
return function (d, b) {
|
|
20104
|
+
extendStatics(d, b);
|
|
20105
|
+
function __() { this.constructor = d; }
|
|
20106
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20107
|
+
};
|
|
20108
|
+
})();
|
|
20109
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
20110
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20111
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20112
|
+
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;
|
|
20113
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20114
|
+
};
|
|
20123
20115
|
/**
|
|
20124
20116
|
* Defines the Selection settings of List Box.
|
|
20125
20117
|
*/
|
|
20126
|
-
var SelectionSettings = /** @class */ (function (_super) {
|
|
20118
|
+
var SelectionSettings = /** @__PURE__ @class */ (function (_super) {
|
|
20127
20119
|
__extends$6(SelectionSettings, _super);
|
|
20128
20120
|
function SelectionSettings() {
|
|
20129
20121
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20145,7 +20137,7 @@ var SelectionSettings = /** @class */ (function (_super) {
|
|
|
20145
20137
|
/**
|
|
20146
20138
|
* Defines the toolbar settings of List Box.
|
|
20147
20139
|
*/
|
|
20148
|
-
var ToolbarSettings = /** @class */ (function (_super) {
|
|
20140
|
+
var ToolbarSettings = /** @__PURE__ @class */ (function (_super) {
|
|
20149
20141
|
__extends$6(ToolbarSettings, _super);
|
|
20150
20142
|
function ToolbarSettings() {
|
|
20151
20143
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -20178,7 +20170,7 @@ var ToolbarSettings = /** @class */ (function (_super) {
|
|
|
20178
20170
|
* </script>
|
|
20179
20171
|
* ```
|
|
20180
20172
|
*/
|
|
20181
|
-
var ListBox = /** @class */ (function (_super) {
|
|
20173
|
+
var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
20182
20174
|
__extends$6(ListBox, _super);
|
|
20183
20175
|
/**
|
|
20184
20176
|
* Constructor for creating the ListBox component.
|
|
@@ -22778,30 +22770,30 @@ var listBoxClasses = {
|
|
|
22778
22770
|
clearIcon: 'e-clear-icon'
|
|
22779
22771
|
};
|
|
22780
22772
|
|
|
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
|
-
};
|
|
22773
|
+
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
22774
|
+
var extendStatics = function (d, b) {
|
|
22775
|
+
extendStatics = Object.setPrototypeOf ||
|
|
22776
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
22777
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
22778
|
+
return extendStatics(d, b);
|
|
22779
|
+
};
|
|
22780
|
+
return function (d, b) {
|
|
22781
|
+
extendStatics(d, b);
|
|
22782
|
+
function __() { this.constructor = d; }
|
|
22783
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
22784
|
+
};
|
|
22785
|
+
})();
|
|
22786
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
22787
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22788
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22789
|
+
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;
|
|
22790
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22791
|
+
};
|
|
22800
22792
|
/**
|
|
22801
22793
|
* The Mention component is used to list someone or something based on user input in textarea, input,
|
|
22802
22794
|
* or any other editable element from which the user can select.
|
|
22803
22795
|
*/
|
|
22804
|
-
var Mention = /** @class */ (function (_super) {
|
|
22796
|
+
var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
22805
22797
|
__extends$7(Mention, _super);
|
|
22806
22798
|
/**
|
|
22807
22799
|
* * Constructor for creating the widget
|
|
@@ -22811,9 +22803,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
22811
22803
|
* @private
|
|
22812
22804
|
*/
|
|
22813
22805
|
function Mention(options, element) {
|
|
22814
|
-
|
|
22815
|
-
_this.debounceTimer = null;
|
|
22816
|
-
return _this;
|
|
22806
|
+
return _super.call(this, options, element) || this;
|
|
22817
22807
|
}
|
|
22818
22808
|
/**
|
|
22819
22809
|
* When property value changes happened, then onPropertyChanged method will execute the respective changes in this component.
|
|
@@ -23144,10 +23134,12 @@ var Mention = /** @class */ (function (_super) {
|
|
|
23144
23134
|
var lastWordRange = this.getLastLetter(currentRange);
|
|
23145
23135
|
var previousChar = currentRange ? currentRange.charAt(Math.max(0, currentRange.indexOf(this.mentionChar) - 1)) : '';
|
|
23146
23136
|
if (!this.allowSpaces) {
|
|
23137
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23147
23138
|
if (isValid && currentRange && currentRange.includes(this.mentionChar) && currentRange.split(this.mentionChar).pop() !== ''
|
|
23148
23139
|
&& (!this.requireLeadingSpace || (this.requireLeadingSpace && (previousChar === ' ' || currentRange.indexOf(this.mentionChar) === 0)))) {
|
|
23149
23140
|
lastWordRange = this.mentionChar + currentRange.split(this.mentionChar).pop();
|
|
23150
23141
|
}
|
|
23142
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23151
23143
|
if (!this.requireLeadingSpace && lastWordRange && lastWordRange.includes(this.mentionChar)) {
|
|
23152
23144
|
lastWordRange = this.mentionChar + lastWordRange.split(this.mentionChar).pop();
|
|
23153
23145
|
}
|
|
@@ -23163,6 +23155,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
23163
23155
|
this.hidePopup();
|
|
23164
23156
|
return;
|
|
23165
23157
|
}
|
|
23158
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23166
23159
|
if (((!currentRange || !lastWordRange) || (!lastWordRange.includes(this.mentionChar) && !this.requireLeadingSpace && !this.allowSpaces)) || e.code === 'Enter' || e.keyCode === 27 ||
|
|
23167
23160
|
(lastWordRange.match(Regex) && lastWordRange.match(Regex).length > 1) ||
|
|
23168
23161
|
(this.isContentEditable(this.inputElement) && this.range.startContainer &&
|