@progress/kendo-react-dropdowns 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009

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.
Files changed (96) hide show
  1. package/dist/cdn/js/kendo-react-dropdowns.js +1 -1
  2. package/dist/es/AutoComplete/AutoComplete.d.ts +16 -14
  3. package/dist/es/AutoComplete/AutoComplete.js +19 -15
  4. package/dist/es/AutoComplete/AutoCompleteProps.js +1 -0
  5. package/dist/es/ComboBox/ComboBox.d.ts +14 -14
  6. package/dist/es/ComboBox/ComboBox.js +26 -22
  7. package/dist/es/ComboBox/ComboBoxProps.js +1 -0
  8. package/dist/es/DropDownList/DropDownList.d.ts +12 -14
  9. package/dist/es/DropDownList/DropDownList.js +22 -18
  10. package/dist/es/DropDownList/DropDownListProps.js +1 -0
  11. package/dist/es/DropDownTree/DropDownTree.d.ts +1 -1
  12. package/dist/es/DropDownTree/DropDownTree.js +22 -10
  13. package/dist/es/DropDownTree/DropDownTreeProps.js +1 -0
  14. package/dist/es/MultiColumnComboBox/MultiColumnComboBox.d.ts +2 -2
  15. package/dist/es/MultiColumnComboBox/MultiColumnComboBox.js +10 -8
  16. package/dist/es/MultiSelect/MultiSelect.d.ts +14 -16
  17. package/dist/es/MultiSelect/MultiSelect.js +36 -23
  18. package/dist/es/MultiSelect/MultiSelectProps.js +1 -0
  19. package/dist/es/MultiSelect/TagList.d.ts +1 -0
  20. package/dist/es/MultiSelect/TagList.js +4 -2
  21. package/dist/es/MultiSelectTree/MultiSelectTree.d.ts +1 -1
  22. package/dist/es/MultiSelectTree/MultiSelectTree.js +21 -9
  23. package/dist/es/MultiSelectTree/MultiSelectTreeProps.js +1 -0
  24. package/dist/es/MultiSelectTree/utils.d.ts +2 -2
  25. package/dist/es/MultiSelectTree/utils.js +11 -2
  26. package/dist/es/common/ClearButton.js +3 -1
  27. package/dist/es/common/DropDownBase.d.ts +6 -6
  28. package/dist/es/common/DropDownBase.js +5 -3
  29. package/dist/es/common/List.d.ts +2 -2
  30. package/dist/es/common/List.js +4 -2
  31. package/dist/es/common/ListContainer.d.ts +1 -0
  32. package/dist/es/common/ListContainer.js +3 -1
  33. package/dist/es/common/ListDefaultItem.js +3 -1
  34. package/dist/es/common/ListFilter.js +10 -6
  35. package/dist/es/common/ListItem.d.ts +1 -1
  36. package/dist/es/common/ListItem.js +3 -1
  37. package/dist/es/common/Navigation.d.ts +1 -1
  38. package/dist/es/common/SearchBar.d.ts +2 -2
  39. package/dist/es/common/SearchBar.js +7 -3
  40. package/dist/es/common/VirtualScroll.d.ts +3 -3
  41. package/dist/es/common/VirtualScroll.js +6 -2
  42. package/dist/es/common/events.js +1 -0
  43. package/dist/es/common/filterDescriptor.js +1 -0
  44. package/dist/es/common/settings.d.ts +1 -1
  45. package/dist/es/common/utils.d.ts +6 -6
  46. package/dist/es/main.js +2 -0
  47. package/dist/es/messages/index.d.ts +2 -2
  48. package/dist/es/package-metadata.js +1 -1
  49. package/dist/npm/AutoComplete/AutoComplete.d.ts +16 -14
  50. package/dist/npm/AutoComplete/AutoComplete.js +35 -30
  51. package/dist/npm/ComboBox/ComboBox.d.ts +14 -14
  52. package/dist/npm/ComboBox/ComboBox.js +61 -56
  53. package/dist/npm/DropDownList/DropDownList.d.ts +12 -14
  54. package/dist/npm/DropDownList/DropDownList.js +49 -44
  55. package/dist/npm/DropDownTree/DropDownTree.d.ts +1 -1
  56. package/dist/npm/DropDownTree/DropDownTree.js +39 -26
  57. package/dist/npm/DropDownTree/ListNoData.js +3 -1
  58. package/dist/npm/DropDownTree/useDropdownWidth.js +1 -0
  59. package/dist/npm/MultiColumnComboBox/MultiColumnComboBox.d.ts +2 -2
  60. package/dist/npm/MultiColumnComboBox/MultiColumnComboBox.js +18 -15
  61. package/dist/npm/MultiSelect/MultiSelect.d.ts +14 -16
  62. package/dist/npm/MultiSelect/MultiSelect.js +57 -43
  63. package/dist/npm/MultiSelect/TagList.d.ts +1 -0
  64. package/dist/npm/MultiSelect/TagList.js +4 -2
  65. package/dist/npm/MultiSelectTree/MultiSelectTree.d.ts +1 -1
  66. package/dist/npm/MultiSelectTree/MultiSelectTree.js +36 -23
  67. package/dist/npm/MultiSelectTree/utils.d.ts +2 -2
  68. package/dist/npm/MultiSelectTree/utils.js +23 -11
  69. package/dist/npm/common/ClearButton.js +5 -3
  70. package/dist/npm/common/DropDownBase.d.ts +6 -6
  71. package/dist/npm/common/DropDownBase.js +10 -8
  72. package/dist/npm/common/List.d.ts +2 -2
  73. package/dist/npm/common/List.js +10 -8
  74. package/dist/npm/common/ListContainer.d.ts +1 -0
  75. package/dist/npm/common/ListContainer.js +3 -1
  76. package/dist/npm/common/ListDefaultItem.js +5 -3
  77. package/dist/npm/common/ListFilter.js +11 -7
  78. package/dist/npm/common/ListItem.d.ts +1 -1
  79. package/dist/npm/common/ListItem.js +5 -3
  80. package/dist/npm/common/MultiColumnList.js +3 -1
  81. package/dist/npm/common/Navigation.d.ts +1 -1
  82. package/dist/npm/common/Navigation.js +2 -1
  83. package/dist/npm/common/SearchBar.d.ts +2 -2
  84. package/dist/npm/common/SearchBar.js +7 -3
  85. package/dist/npm/common/VirtualScroll.d.ts +3 -3
  86. package/dist/npm/common/VirtualScroll.js +6 -2
  87. package/dist/npm/common/settings.d.ts +1 -1
  88. package/dist/npm/common/settings.js +1 -0
  89. package/dist/npm/common/utils.d.ts +6 -6
  90. package/dist/npm/common/utils.js +1 -0
  91. package/dist/npm/main.js +32 -18
  92. package/dist/npm/messages/index.d.ts +2 -2
  93. package/dist/npm/messages/index.js +2 -1
  94. package/dist/npm/package-metadata.js +2 -1
  95. package/dist/systemjs/kendo-react-dropdowns.js +1 -1
  96. package/package.json +13 -13
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
24
26
  return __assign.apply(this, arguments);
25
27
  };
26
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ComboBox = exports.ComboBoxPropsContext = exports.ComboBoxWithoutContext = void 0;
27
30
  var React = require("react");
28
31
  var PropTypes = require("prop-types");
29
32
  var DropDownBase_1 = require("../common/DropDownBase");
@@ -48,8 +51,10 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
48
51
  */
49
52
  _this.state = {};
50
53
  _this.base = new DropDownBase_1.default(_this);
51
- _this._inputId = kendo_react_common_1.guid();
54
+ _this._element = null;
55
+ _this._inputId = (0, kendo_react_common_1.guid)();
52
56
  _this._suggested = '';
57
+ _this._input = null;
53
58
  _this.itemHeight = 0;
54
59
  /**
55
60
  * @hidden
@@ -66,7 +71,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
66
71
  var _a = _this.props, _b = _a.data, data = _b === void 0 ? [] : _b, virtual = _a.virtual, dataItemKey = _a.dataItemKey;
67
72
  var skip = virtual ? virtual.skip : 0;
68
73
  var item = data[index - skip];
69
- var newSelected = !utils_1.areSame(item, _this.value, dataItemKey);
74
+ var newSelected = !(0, utils_1.areSame)(item, _this.value, dataItemKey);
70
75
  _this.triggerOnChange(item, state);
71
76
  if (_this.state.text !== undefined) {
72
77
  state.data.text = undefined;
@@ -168,8 +173,8 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
168
173
  if (_this.props.suggest) {
169
174
  var selectionAtEnd = input.selectionEnd === value.length;
170
175
  var prevText = _this.props.filter !== undefined ? _this.props.filter : _this.state.text;
171
- if (!utils_1.isPresent(prevText)) {
172
- prevText = utils_1.getItemValue(_this.value, _this.props.textField) || '';
176
+ if (!(0, utils_1.isPresent)(prevText)) {
177
+ prevText = (0, utils_1.getItemValue)(_this.value, _this.props.textField) || '';
173
178
  }
174
179
  var deletedSuggestion = prevText && prevText === value;
175
180
  var deleting = prevText && prevText.length > value.length;
@@ -215,7 +220,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
215
220
  : _this.props.validationMessage || VALIDATION_MESSAGE);
216
221
  }
217
222
  };
218
- kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
223
+ (0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
219
224
  return _this;
220
225
  }
221
226
  Object.defineProperty(ComboBoxWithoutContext.prototype, "element", {
@@ -225,7 +230,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
225
230
  get: function () {
226
231
  return this._element;
227
232
  },
228
- enumerable: true,
233
+ enumerable: false,
229
234
  configurable: true
230
235
  });
231
236
  Object.defineProperty(ComboBoxWithoutContext.prototype, "value", {
@@ -247,7 +252,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
247
252
  }
248
253
  return undefined;
249
254
  },
250
- enumerable: true,
255
+ enumerable: false,
251
256
  configurable: true
252
257
  });
253
258
  Object.defineProperty(ComboBoxWithoutContext.prototype, "index", {
@@ -258,9 +263,9 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
258
263
  var _a = this.props, _b = _a.data, data = _b === void 0 ? [] : _b, dataItemKey = _a.dataItemKey;
259
264
  var value = this.value;
260
265
  // TO DO: deprecate it!
261
- return data.findIndex(function (i) { return utils_1.areSame(i, value, dataItemKey); });
266
+ return data.findIndex(function (i) { return (0, utils_1.areSame)(i, value, dataItemKey); });
262
267
  },
263
- enumerable: true,
268
+ enumerable: false,
264
269
  configurable: true
265
270
  });
266
271
  Object.defineProperty(ComboBoxWithoutContext.prototype, "name", {
@@ -270,7 +275,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
270
275
  get: function () {
271
276
  return this.props.name;
272
277
  },
273
- enumerable: true,
278
+ enumerable: false,
274
279
  configurable: true
275
280
  });
276
281
  Object.defineProperty(ComboBoxWithoutContext.prototype, "validity", {
@@ -290,7 +295,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
290
295
  valueMissing: this.value === null
291
296
  };
292
297
  },
293
- enumerable: true,
298
+ enumerable: false,
294
299
  configurable: true
295
300
  });
296
301
  Object.defineProperty(ComboBoxWithoutContext.prototype, "validityStyles", {
@@ -299,7 +304,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
299
304
  ? this.props.validityStyles
300
305
  : ComboBoxWithoutContext.defaultProps.validityStyles;
301
306
  },
302
- enumerable: true,
307
+ enumerable: false,
303
308
  configurable: true
304
309
  });
305
310
  Object.defineProperty(ComboBoxWithoutContext.prototype, "required", {
@@ -311,7 +316,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
311
316
  ? this.props.required
312
317
  : ComboBoxWithoutContext.defaultProps.required;
313
318
  },
314
- enumerable: true,
319
+ enumerable: false,
315
320
  configurable: true
316
321
  });
317
322
  /**
@@ -331,8 +336,8 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
331
336
  }
332
337
  else {
333
338
  var prevSelectedItem = prevProps.value !== undefined ? prevProps.value : prevState.value;
334
- var selectedItemIndex = data.findIndex(function (i) { return utils_1.areSame(i, selectedItem, dataItemKey); });
335
- var selectedItemChanged = !utils_1.areSame(prevSelectedItem, selectedItem, dataItemKey);
339
+ var selectedItemIndex = data.findIndex(function (i) { return (0, utils_1.areSame)(i, selectedItem, dataItemKey); });
340
+ var selectedItemChanged = !(0, utils_1.areSame)(prevSelectedItem, selectedItem, dataItemKey);
336
341
  if (opening && virtual) {
337
342
  this.base.scrollToVirtualItem(virtual, selectedItemIndex);
338
343
  }
@@ -363,9 +368,9 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
363
368
  var _c = this.props, dir = _c.dir, disabled = _c.disabled, _d = _c.clearButton, clearButton = _d === void 0 ? ComboBoxWithoutContext.defaultProps.clearButton : _d, label = _c.label, textField = _c.textField, className = _c.className, style = _c.style, loading = _c.loading, iconClassName = _c.iconClassName, virtual = _c.virtual, size = _c.size, rounded = _c.rounded, fillMode = _c.fillMode;
364
369
  var isValid = !this.validityStyles || this.validity.valid;
365
370
  var text = this.props.filter !== undefined ? this.props.filter : this.state.text;
366
- var selectedItemText = utils_1.getItemValue(this.value, textField);
367
- var inputText = utils_1.isPresent(text) ? text : selectedItemText;
368
- var renderClearButton = clearButton && (!!(inputText) || utils_1.isPresent(this.value));
371
+ var selectedItemText = (0, utils_1.getItemValue)(this.value, textField);
372
+ var inputText = (0, utils_1.isPresent)(text) ? text : selectedItemText;
373
+ var renderClearButton = clearButton && (!!(inputText) || (0, utils_1.isPresent)(this.value));
369
374
  var base = this.base;
370
375
  var vs = base.vs;
371
376
  var id = this.props.id || this._inputId;
@@ -375,24 +380,24 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
375
380
  vs.total = virtual.total;
376
381
  vs.pageSize = virtual.pageSize;
377
382
  }
378
- var combobox = (React.createElement("span", { className: kendo_react_common_1.classNames('k-combobox k-input', (_a = {},
379
- _a["k-input-" + (sizeMap[size] || size)] = size,
380
- _a["k-rounded-" + (roundedMap[rounded] || rounded)] = rounded,
381
- _a["k-input-" + fillMode] = fillMode,
383
+ var combobox = (React.createElement("span", { className: (0, kendo_react_common_1.classNames)('k-combobox k-input', (_a = {},
384
+ _a["k-input-".concat(sizeMap[size] || size)] = size,
385
+ _a["k-rounded-".concat(roundedMap[rounded] || rounded)] = rounded,
386
+ _a["k-input-".concat(fillMode)] = fillMode,
382
387
  _a['k-invalid'] = !isValid,
383
388
  _a['k-loading'] = loading,
384
389
  _a['k-required'] = this.required,
385
390
  _a['k-disabled'] = disabled,
386
- _a), className), ref: this.componentRef, style: !label ? style : __assign({}, style, { width: undefined }), dir: dir },
391
+ _a), className), ref: this.componentRef, style: !label ? style : __assign(__assign({}, style), { width: undefined }), dir: dir },
387
392
  this.renderSearchBar(inputText || '', id),
388
393
  renderClearButton && !loading && React.createElement(ClearButton_1.default, { onClick: this.clearButtonClick, key: "clearbutton" }),
389
394
  loading && React.createElement("span", { className: "k-icon k-i-loading k-input-loading-icon", key: "loading" }),
390
- React.createElement("button", { tabIndex: -1, type: "button", className: kendo_react_common_1.classNames('k-input-button k-button k-icon-button', (_b = {},
391
- _b["k-button-" + (sizeMap[size] || size)] = size,
392
- _b["k-button-" + fillMode] = fillMode,
393
- _b["k-button-" + fillMode + "-base"] = fillMode,
395
+ React.createElement("button", { tabIndex: -1, type: "button", className: (0, kendo_react_common_1.classNames)('k-input-button k-button k-icon-button', (_b = {},
396
+ _b["k-button-".concat(sizeMap[size] || size)] = size,
397
+ _b["k-button-".concat(fillMode)] = fillMode,
398
+ _b["k-button-".concat(fillMode, "-base")] = fillMode,
394
399
  _b)), onClick: this.toggleBtnClick, onMouseDown: function (e) { return e.preventDefault(); } },
395
- React.createElement("span", { className: kendo_react_common_1.classNames('k-button-icon k-icon k-i-arrow-s', iconClassName) })),
400
+ React.createElement("span", { className: (0, kendo_react_common_1.classNames)('k-button-icon k-icon k-i-arrow-s', iconClassName) })),
396
401
  this.renderListContainer()));
397
402
  return label
398
403
  ? (React.createElement(kendo_react_labels_1.FloatingLabel, { label: label, editorId: id, editorValue: inputText, editorValid: isValid, editorDisabled: disabled, style: { width: style ? style.width : undefined }, children: combobox }))
@@ -408,7 +413,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
408
413
  var vs = this.base.vs;
409
414
  var value = this.value;
410
415
  this._suggested = '';
411
- if (focusedIndex !== -1 && !utils_1.isPresent(value)) {
416
+ if (focusedIndex !== -1 && !(0, utils_1.isPresent)(value)) {
412
417
  this.handleItemSelect(focusedIndex, state);
413
418
  }
414
419
  else if (text === '') {
@@ -431,9 +436,9 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
431
436
  var _a;
432
437
  var _b = this.props, _c = _b.data, data = _c === void 0 ? [] : _c, textField = _b.textField, allowCustom = _b.allowCustom;
433
438
  var opened = this.props.opened !== undefined ? this.props.opened : this.state.opened;
434
- var currentValueText = utils_1.getItemValue(this.value, textField);
439
+ var currentValueText = (0, utils_1.getItemValue)(this.value, textField);
435
440
  var valueIndex = currentValueText === value ?
436
- this.index : utils_1.getItemIndexByText(data, value, textField);
441
+ this.index : (0, utils_1.getItemIndexByText)(data, value, textField);
437
442
  var itemSelected = valueIndex !== -1;
438
443
  var newSelected = undefined;
439
444
  this._suggested = '';
@@ -461,15 +466,15 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
461
466
  var _a;
462
467
  var _b = this.props, _c = _b.data, data = _c === void 0 ? [] : _c, textField = _b.textField, allowCustom = _b.allowCustom;
463
468
  var opened = this.props.opened !== undefined ? this.props.opened : this.state.opened;
464
- var valueItemText = utils_1.getItemValue(this.value, textField);
469
+ var valueItemText = (0, utils_1.getItemValue)(this.value, textField);
465
470
  this._suggested = '';
466
- if (text === valueItemText || (text === '' && !utils_1.isPresent(valueItemText))) {
471
+ if (text === valueItemText || (text === '' && !(0, utils_1.isPresent)(valueItemText))) {
467
472
  if (opened) {
468
473
  this.base.togglePopup(state);
469
474
  }
470
475
  return this.applyState(state);
471
476
  }
472
- var valueIndex = utils_1.getItemIndexByText(data, text, textField, true);
477
+ var valueIndex = (0, utils_1.getItemIndexByText)(data, text, textField, true);
473
478
  var itemSelected = valueIndex !== -1;
474
479
  var newSelected = null;
475
480
  if (itemSelected) {
@@ -517,22 +522,22 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
517
522
  var popupWidth = popupSettings.width !== undefined ? popupSettings.width : base.popupWidth;
518
523
  var group = this.state.group;
519
524
  if (group === undefined && groupField !== undefined) {
520
- group = utils_1.getItemValue(data[0], groupField);
525
+ group = (0, utils_1.getItemValue)(data[0], groupField);
521
526
  }
522
527
  return (React.createElement(ListContainer_1.default, { width: popupWidth, popupSettings: {
523
528
  animate: popupSettings.animate,
524
529
  anchor: this.element,
525
530
  show: opened,
526
- popupClass: kendo_react_common_1.classNames(popupSettings.popupClass, 'k-reset'),
531
+ popupClass: (0, kendo_react_common_1.classNames)(popupSettings.popupClass, 'k-reset'),
527
532
  className: popupSettings.className,
528
533
  appendTo: popupSettings.appendTo
529
534
  }, dir: dir !== undefined ? dir : this.base.dirCalculated, itemsCount: [data.length] },
530
- React.createElement("div", { className: kendo_react_common_1.classNames((_a = {},
535
+ React.createElement("div", { className: (0, kendo_react_common_1.classNames)((_a = {},
531
536
  _a['k-list'] = !list,
532
- _a["k-list-" + (sizeMap[size] || size)] = !list && size,
537
+ _a["k-list-".concat(sizeMap[size] || size)] = !list && size,
533
538
  _a['k-virtual-list'] = virtual,
534
539
  _a['k-data-table'] = list,
535
- _a["k-table-" + (sizeMap[size] || size)] = list && size,
540
+ _a["k-table-".concat(sizeMap[size] || size)] = list && size,
536
541
  _a)) },
537
542
  header && React.createElement("div", { className: "k-table-header" }, header),
538
543
  !list && group && React.createElement("div", { className: "k-list-group-sticky-header" }, group),
@@ -540,21 +545,21 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
540
545
  footer && React.createElement("div", { className: "k-list-footer" }, footer))));
541
546
  };
542
547
  ComboBoxWithoutContext.prototype.renderList = function () {
543
- var _this = this;
544
548
  var _a;
549
+ var _this = this;
545
550
  var base = this.base;
546
551
  var _b = this.props, textField = _b.textField, dataItemKey = _b.dataItemKey, listNoDataRender = _b.listNoDataRender, itemRender = _b.itemRender, _c = _b.data, data = _c === void 0 ? [] : _c, _d = _b.virtual, virtual = _d === void 0 ? { skip: 0 } : _d;
547
552
  var popupSettings = base.getPopupSettings();
548
553
  var vs = base.vs;
549
554
  var skip = virtual.skip;
550
555
  var opened = this.props.opened !== undefined ? this.props.opened : this.state.opened;
551
- var translate = "translateY(" + vs.translate + "px)";
556
+ var translate = "translateY(".concat(vs.translate, "px)");
552
557
  var focusedIndex = opened ? this.getFocusedIndex() : undefined;
553
558
  var text = this.props.filter !== undefined ? this.props.filter : this.state.text;
554
- var selectedItemText = utils_1.getItemValue(this.value, textField);
555
- var value = utils_1.isPresent(text) && text !== selectedItemText ? null : this.value;
559
+ var selectedItemText = (0, utils_1.getItemValue)(this.value, textField);
560
+ var value = (0, utils_1.isPresent)(text) && text !== selectedItemText ? null : this.value;
556
561
  var ListComponent = this.props.list || List_1.default;
557
- return (React.createElement(ListComponent, { id: base.listBoxId, virtual: Boolean(virtual), show: opened, data: data, focusedIndex: focusedIndex, value: value, textField: textField, valueField: dataItemKey, groupField: this.props.groupField, optionsGuid: base.guid, listRef: function (list) { vs.list = _this.base.list = list; _this.itemHeight = 0; }, wrapperStyle: { maxHeight: popupSettings.height }, wrapperCssClass: kendo_react_common_1.classNames('k-list-content', (_a = {},
562
+ return (React.createElement(ListComponent, { id: base.listBoxId, virtual: Boolean(virtual), show: opened, data: data, focusedIndex: focusedIndex, value: value, textField: textField, valueField: dataItemKey, groupField: this.props.groupField, optionsGuid: base.guid, listRef: function (list) { vs.list = _this.base.list = list; _this.itemHeight = 0; }, wrapperStyle: { maxHeight: popupSettings.height }, wrapperCssClass: (0, kendo_react_common_1.classNames)('k-list-content', (_a = {},
558
563
  _a['k-list-scroller'] = !virtual,
559
564
  _a['k-virtual-content'] = virtual,
560
565
  _a)), listStyle: vs.enabled ? { transform: translate } : undefined, key: "listkey", skip: skip, onClick: this.handleItemClick, itemRender: itemRender, noDataRender: listNoDataRender, onMouseDown: function (e) { return e.preventDefault(); }, onScroll: this.onScroll, wrapperRef: vs.scrollerRef, scroller: this.base.renderScrollElement() }));
@@ -564,15 +569,15 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
564
569
  var _a = this.props, placeholder = _a.placeholder, tabIndex = _a.tabIndex, disabled = _a.disabled, _b = _a.data, data = _b === void 0 ? [] : _b, dataItemKey = _a.dataItemKey, _c = _a.virtual, virtual = _c === void 0 ? { skip: 0 } : _c;
565
570
  var opened = this.props.opened !== undefined ? this.props.opened : this.state.opened;
566
571
  var value = this.value;
567
- var selectedIndex = Math.max(0, data.findIndex(function (i) { return utils_1.areSame(i, value, dataItemKey); }));
568
- if (this._suggested && !utils_1.areSame(this._valueOnDidUpdate, value, dataItemKey)) {
572
+ var selectedIndex = Math.max(0, data.findIndex(function (i) { return (0, utils_1.areSame)(i, value, dataItemKey); }));
573
+ if (this._suggested && !(0, utils_1.areSame)(this._valueOnDidUpdate, value, dataItemKey)) {
569
574
  this._suggested = '';
570
575
  }
571
- return (React.createElement(SearchBar_1.default, { id: id, placeholder: placeholder, tabIndex: tabIndex || undefined, accessKey: this.props.accessKey, value: text + this._suggested, suggestedText: this._suggested, ref: function (el) { return _this._input = el && el.input; }, onKeyDown: this.onInputKeyDown, onChange: this.inputOnChange, onFocus: this.base.handleFocus, onBlur: this.handleBlur, disabled: disabled, expanded: opened, owns: this.base.listBoxId, activedescendant: "option-" + this.base.guid + "-" + (selectedIndex + virtual.skip), role: "combobox", ariaLabelledBy: this.props.ariaLabelledBy, ariaDescribedBy: this.props.ariaDescribedBy, render: this.props.valueRender }));
576
+ return (React.createElement(SearchBar_1.default, { id: id, placeholder: placeholder, tabIndex: tabIndex || undefined, accessKey: this.props.accessKey, value: text + this._suggested, suggestedText: this._suggested, ref: function (el) { return _this._input = el && el.input; }, onKeyDown: this.onInputKeyDown, onChange: this.inputOnChange, onFocus: this.base.handleFocus, onBlur: this.handleBlur, disabled: disabled, expanded: opened, owns: this.base.listBoxId, activedescendant: "option-".concat(this.base.guid, "-").concat(selectedIndex + virtual.skip), role: "combobox", ariaLabelledBy: this.props.ariaLabelledBy, ariaDescribedBy: this.props.ariaDescribedBy, render: this.props.valueRender }));
572
577
  };
573
578
  ComboBoxWithoutContext.prototype.triggerOnChange = function (item, state) {
574
579
  var value = this.value;
575
- if ((!utils_1.isPresent(value) && !utils_1.isPresent(item)) || utils_1.areSame(value, item, this.props.dataItemKey)) {
580
+ if ((!(0, utils_1.isPresent)(value) && !(0, utils_1.isPresent)(item)) || (0, utils_1.areSame)(value, item, this.props.dataItemKey)) {
576
581
  return;
577
582
  }
578
583
  if (this.props.value === undefined) {
@@ -585,8 +590,8 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
585
590
  var value = this.value;
586
591
  var _a = this.props, _b = _a.data, data = _b === void 0 ? [] : _b, textField = _a.textField, dataItemKey = _a.dataItemKey, _c = _a.virtual, virtual = _c === void 0 ? { skip: 0 } : _c, _d = _a.focusedItemIndex, focusedItemIndex = _d === void 0 ? utils_1.itemIndexStartsWith : _d;
587
592
  var text = this.props.filter ? this.props.filter : this.state.text;
588
- if (utils_1.isPresent(value) && text === undefined) {
589
- return data.findIndex(function (i) { return utils_1.areSame(i, value, dataItemKey); });
593
+ if ((0, utils_1.isPresent)(value) && text === undefined) {
594
+ return data.findIndex(function (i) { return (0, utils_1.areSame)(i, value, dataItemKey); });
590
595
  }
591
596
  else if (text) {
592
597
  return focusedItemIndex(data, text, textField);
@@ -597,7 +602,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
597
602
  };
598
603
  ComboBoxWithoutContext.prototype.suggestValue = function (value) {
599
604
  var _a = this.props, data = _a.data, textField = _a.textField;
600
- this._suggested = utils_1.suggestValue(value, data, textField);
605
+ this._suggested = (0, utils_1.suggestValue)(value, data, textField);
601
606
  };
602
607
  ComboBoxWithoutContext.prototype.applyState = function (state) {
603
608
  this.base.applyState(state);
@@ -607,11 +612,11 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
607
612
  /**
608
613
  * @hidden
609
614
  */
610
- ComboBoxWithoutContext.propTypes = __assign({}, DropDownBase_1.default.propTypes, { size: PropTypes.oneOf([null, 'small', 'medium', 'large']), rounded: PropTypes.oneOf([null, 'small', 'medium', 'large', 'full']), fillMode: PropTypes.oneOf([null, 'solid', 'flat', 'outline']), dataItemKey: PropTypes.string, groupField: PropTypes.string, suggest: PropTypes.bool, placeholder: PropTypes.string, allowCustom: PropTypes.bool, clearButton: PropTypes.bool, iconClassName: PropTypes.string, validationMessage: PropTypes.string, required: PropTypes.bool, id: PropTypes.string, ariaLabelledBy: PropTypes.string, ariaDescribedBy: PropTypes.string, list: PropTypes.any, valueRender: PropTypes.func });
615
+ ComboBoxWithoutContext.propTypes = __assign(__assign({}, DropDownBase_1.default.propTypes), { size: PropTypes.oneOf([null, 'small', 'medium', 'large']), rounded: PropTypes.oneOf([null, 'small', 'medium', 'large', 'full']), fillMode: PropTypes.oneOf([null, 'solid', 'flat', 'outline']), dataItemKey: PropTypes.string, groupField: PropTypes.string, suggest: PropTypes.bool, placeholder: PropTypes.string, allowCustom: PropTypes.bool, clearButton: PropTypes.bool, iconClassName: PropTypes.string, validationMessage: PropTypes.string, required: PropTypes.bool, id: PropTypes.string, ariaLabelledBy: PropTypes.string, ariaDescribedBy: PropTypes.string, list: PropTypes.any, valueRender: PropTypes.func });
611
616
  /**
612
617
  * @hidden
613
618
  */
614
- ComboBoxWithoutContext.defaultProps = __assign({}, DropDownBase_1.default.defaultProps, { size: 'medium', rounded: 'medium', fillMode: 'solid', allowCustom: false, clearButton: true, required: false });
619
+ ComboBoxWithoutContext.defaultProps = __assign(__assign({}, DropDownBase_1.default.defaultProps), { size: 'medium', rounded: 'medium', fillMode: 'solid', allowCustom: false, clearButton: true, required: false });
615
620
  return ComboBoxWithoutContext;
616
621
  }(React.Component));
617
622
  exports.ComboBoxWithoutContext = ComboBoxWithoutContext;
@@ -621,7 +626,7 @@ exports.ComboBoxWithoutContext = ComboBoxWithoutContext;
621
626
  *
622
627
  * For more information, refer to the [Dropdowns Props Context]({% slug props-context_dropdowns %}) article.
623
628
  */
624
- exports.ComboBoxPropsContext = kendo_react_common_1.createPropsContext();
629
+ exports.ComboBoxPropsContext = (0, kendo_react_common_1.createPropsContext)();
625
630
  /* eslint-disable @typescript-eslint/no-redeclare -- intentionally naming the component the same as the type */
626
631
  /**
627
632
  * Represents the [KendoReact ComboBox component]({% slug overview_combobox %}).
@@ -648,5 +653,5 @@ exports.ComboBoxPropsContext = kendo_react_common_1.createPropsContext();
648
653
  * ReactDOM.render(<App />, document.querySelector('my-app'));
649
654
  * ```
650
655
  */
651
- exports.ComboBox = kendo_react_common_1.withPropsContext(exports.ComboBoxPropsContext, ComboBoxWithoutContext);
656
+ exports.ComboBox = (0, kendo_react_common_1.withPropsContext)(exports.ComboBoxPropsContext, ComboBoxWithoutContext);
652
657
  exports.ComboBox.displayName = 'KendoReactComboBox';
@@ -25,9 +25,7 @@ export declare class DropDownListWithoutContext extends React.Component<DropDown
25
25
  virtual: PropTypes.Requireable<PropTypes.InferProps<{
26
26
  pageSize: PropTypes.Validator<number>;
27
27
  skip: PropTypes.Validator<number>;
28
- total: PropTypes.Validator<number>; /**
29
- * The value of the DropDownList.
30
- */
28
+ total: PropTypes.Validator<number>;
31
29
  }>>;
32
30
  onFilterChange: PropTypes.Requireable<(...args: any[]) => any>;
33
31
  onPageChange: PropTypes.Requireable<(...args: any[]) => any>;
@@ -48,7 +46,7 @@ export declare class DropDownListWithoutContext extends React.Component<DropDown
48
46
  }>>;
49
47
  popupClass: PropTypes.Requireable<string>;
50
48
  className: PropTypes.Requireable<string>;
51
- appendTo: PropTypes.Requireable<PropTypes.ReactElementLike>;
49
+ appendTo: PropTypes.Requireable<Element>;
52
50
  width: PropTypes.Requireable<string | number>;
53
51
  height: PropTypes.Requireable<string | number>;
54
52
  }>>;
@@ -82,9 +80,9 @@ export declare class DropDownListWithoutContext extends React.Component<DropDown
82
80
  */
83
81
  static defaultProps: {
84
82
  required: boolean;
85
- size: "small" | "medium" | "large";
86
- rounded: "small" | "medium" | "large" | "full";
87
- fillMode: "solid" | "flat" | "outline";
83
+ size: "small" | "medium" | "large" | null | undefined;
84
+ rounded: "small" | "medium" | "full" | "large" | null | undefined;
85
+ fillMode: "flat" | "outline" | "solid" | null | undefined;
88
86
  popupSettings: {
89
87
  height: string;
90
88
  };
@@ -114,28 +112,28 @@ export declare class DropDownListWithoutContext extends React.Component<DropDown
114
112
  /**
115
113
  * @hidden
116
114
  */
117
- readonly element: HTMLSpanElement | null;
115
+ get element(): HTMLSpanElement | null;
118
116
  /**
119
117
  * The value of the DropDownList.
120
118
  */
121
- readonly value: any;
119
+ get value(): any;
122
120
  /**
123
121
  * The index of the selected item.
124
122
  */
125
- readonly index: number;
123
+ get index(): number;
126
124
  /**
127
125
  * Gets the `name` property of the DropDownList.
128
126
  */
129
- readonly name: string | undefined;
127
+ get name(): string | undefined;
130
128
  /**
131
129
  * Represents the validity state into which the DropDownList is set.
132
130
  */
133
- readonly validity: FormComponentValidity;
134
- protected readonly validityStyles: boolean;
131
+ get validity(): FormComponentValidity;
132
+ protected get validityStyles(): boolean;
135
133
  /**
136
134
  * @hidden
137
135
  */
138
- protected readonly required: boolean;
136
+ protected get required(): boolean;
139
137
  /**
140
138
  * @hidden
141
139
  */