@progress/kendo-react-dropdowns 5.4.0-dev.202205250548 → 5.4.0-dev.202205271059

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 (80) hide show
  1. package/dist/cdn/js/kendo-react-dropdowns.js +1 -1
  2. package/dist/es/AutoComplete/AutoComplete.d.ts +14 -12
  3. package/dist/es/AutoComplete/AutoComplete.js +13 -11
  4. package/dist/es/AutoComplete/AutoCompleteProps.js +1 -0
  5. package/dist/es/ComboBox/ComboBox.d.ts +12 -12
  6. package/dist/es/ComboBox/ComboBox.js +14 -12
  7. package/dist/es/ComboBox/ComboBoxProps.js +1 -0
  8. package/dist/es/DropDownList/DropDownList.d.ts +14 -13
  9. package/dist/es/DropDownList/DropDownList.js +12 -10
  10. package/dist/es/DropDownList/DropDownListProps.js +1 -0
  11. package/dist/es/DropDownTree/DropDownTree.js +12 -4
  12. package/dist/es/DropDownTree/DropDownTreeProps.js +1 -0
  13. package/dist/es/MultiColumnComboBox/MultiColumnComboBox.js +9 -7
  14. package/dist/es/MultiSelect/MultiSelect.d.ts +11 -13
  15. package/dist/es/MultiSelect/MultiSelect.js +20 -13
  16. package/dist/es/MultiSelect/MultiSelectProps.js +1 -0
  17. package/dist/es/MultiSelect/TagList.js +3 -1
  18. package/dist/es/MultiSelectTree/MultiSelectTree.js +13 -5
  19. package/dist/es/MultiSelectTree/MultiSelectTreeProps.js +1 -0
  20. package/dist/es/MultiSelectTree/utils.d.ts +1 -1
  21. package/dist/es/MultiSelectTree/utils.js +7 -2
  22. package/dist/es/common/ClearButton.js +3 -1
  23. package/dist/es/common/DropDownBase.d.ts +5 -5
  24. package/dist/es/common/DropDownBase.js +3 -3
  25. package/dist/es/common/List.js +3 -1
  26. package/dist/es/common/ListContainer.js +3 -1
  27. package/dist/es/common/ListDefaultItem.js +3 -1
  28. package/dist/es/common/ListFilter.js +4 -2
  29. package/dist/es/common/ListItem.js +3 -1
  30. package/dist/es/common/SearchBar.d.ts +1 -1
  31. package/dist/es/common/SearchBar.js +4 -2
  32. package/dist/es/common/VirtualScroll.d.ts +2 -2
  33. package/dist/es/common/VirtualScroll.js +1 -1
  34. package/dist/es/common/events.js +1 -0
  35. package/dist/es/common/filterDescriptor.js +1 -0
  36. package/dist/es/common/settings.d.ts +1 -1
  37. package/dist/es/common/utils.d.ts +6 -6
  38. package/dist/es/main.js +2 -0
  39. package/dist/es/messages/index.d.ts +2 -2
  40. package/dist/es/package-metadata.js +1 -1
  41. package/dist/npm/AutoComplete/AutoComplete.d.ts +14 -12
  42. package/dist/npm/AutoComplete/AutoComplete.js +14 -11
  43. package/dist/npm/ComboBox/ComboBox.d.ts +12 -12
  44. package/dist/npm/ComboBox/ComboBox.js +15 -12
  45. package/dist/npm/DropDownList/DropDownList.d.ts +14 -13
  46. package/dist/npm/DropDownList/DropDownList.js +13 -10
  47. package/dist/npm/DropDownTree/DropDownTree.js +13 -4
  48. package/dist/npm/DropDownTree/ListNoData.js +3 -1
  49. package/dist/npm/DropDownTree/useDropdownWidth.js +1 -0
  50. package/dist/npm/MultiColumnComboBox/MultiColumnComboBox.js +10 -7
  51. package/dist/npm/MultiSelect/MultiSelect.d.ts +11 -13
  52. package/dist/npm/MultiSelect/MultiSelect.js +21 -13
  53. package/dist/npm/MultiSelect/TagList.js +3 -1
  54. package/dist/npm/MultiSelectTree/MultiSelectTree.js +14 -5
  55. package/dist/npm/MultiSelectTree/utils.d.ts +1 -1
  56. package/dist/npm/MultiSelectTree/utils.js +12 -4
  57. package/dist/npm/common/ClearButton.js +3 -1
  58. package/dist/npm/common/DropDownBase.d.ts +5 -5
  59. package/dist/npm/common/DropDownBase.js +3 -3
  60. package/dist/npm/common/List.js +3 -1
  61. package/dist/npm/common/ListContainer.js +3 -1
  62. package/dist/npm/common/ListDefaultItem.js +3 -1
  63. package/dist/npm/common/ListFilter.js +4 -2
  64. package/dist/npm/common/ListItem.js +3 -1
  65. package/dist/npm/common/MultiColumnList.js +3 -1
  66. package/dist/npm/common/Navigation.js +1 -0
  67. package/dist/npm/common/SearchBar.d.ts +1 -1
  68. package/dist/npm/common/SearchBar.js +4 -2
  69. package/dist/npm/common/VirtualScroll.d.ts +2 -2
  70. package/dist/npm/common/VirtualScroll.js +1 -1
  71. package/dist/npm/common/settings.d.ts +1 -1
  72. package/dist/npm/common/settings.js +1 -0
  73. package/dist/npm/common/utils.d.ts +6 -6
  74. package/dist/npm/common/utils.js +1 -0
  75. package/dist/npm/main.js +28 -18
  76. package/dist/npm/messages/index.d.ts +2 -2
  77. package/dist/npm/messages/index.js +2 -1
  78. package/dist/npm/package-metadata.js +2 -1
  79. package/dist/systemjs/kendo-react-dropdowns.js +1 -1
  80. package/package.json +12 -12
@@ -25,8 +25,8 @@ export declare class AutoCompleteWithoutContext extends React.Component<AutoComp
25
25
  */
26
26
  static propTypes: {
27
27
  size: PropTypes.Requireable<"small" | "medium" | "large">;
28
- rounded: PropTypes.Requireable<"small" | "medium" | "large" | "full">;
29
- fillMode: PropTypes.Requireable<"solid" | "flat" | "outline">;
28
+ rounded: PropTypes.Requireable<"small" | "medium" | "full" | "large">;
29
+ fillMode: PropTypes.Requireable<"flat" | "solid" | "outline">;
30
30
  suggest: PropTypes.Requireable<string | boolean>;
31
31
  placeholder: PropTypes.Requireable<string>;
32
32
  value: PropTypes.Requireable<string>;
@@ -56,11 +56,13 @@ export declare class AutoCompleteWithoutContext extends React.Component<AutoComp
56
56
  }>>;
57
57
  popupClass: PropTypes.Requireable<string>;
58
58
  className: PropTypes.Requireable<string>;
59
- appendTo: PropTypes.Requireable<PropTypes.ReactElementLike>;
59
+ appendTo: PropTypes.Requireable<Element>;
60
60
  width: PropTypes.Requireable<string | number>;
61
61
  height: PropTypes.Requireable<string | number>;
62
62
  }>>;
63
- onOpen: PropTypes.Requireable<(...args: any[]) => any>;
63
+ onOpen: PropTypes.Requireable<(...args: any[]) => any>; /**
64
+ * @hidden
65
+ */
64
66
  onClose: PropTypes.Requireable<(...args: any[]) => any>;
65
67
  onFocus: PropTypes.Requireable<(...args: any[]) => any>;
66
68
  onBlur: PropTypes.Requireable<(...args: any[]) => any>;
@@ -76,8 +78,8 @@ export declare class AutoCompleteWithoutContext extends React.Component<AutoComp
76
78
  */
77
79
  static defaultProps: {
78
80
  size: "small" | "medium" | "large";
79
- rounded: "small" | "medium" | "large" | "full";
80
- fillMode: "solid" | "flat" | "outline";
81
+ rounded: "small" | "medium" | "full" | "large";
82
+ fillMode: "flat" | "solid" | "outline";
81
83
  popupSettings: {
82
84
  height: string;
83
85
  };
@@ -102,27 +104,27 @@ export declare class AutoCompleteWithoutContext extends React.Component<AutoComp
102
104
  /**
103
105
  * @hidden
104
106
  */
105
- readonly element: HTMLSpanElement | null;
107
+ get element(): HTMLSpanElement | null;
106
108
  /**
107
109
  * The value of the AutoComplete.
108
110
  */
109
- readonly value: string;
111
+ get value(): string;
110
112
  /**
111
113
  * Gets the `name` property of the AutoComplete.
112
114
  */
113
- readonly name: string | undefined;
115
+ get name(): string | undefined;
114
116
  /**
115
117
  * Represents the validity state into which the AutoComplete is set.
116
118
  */
117
- readonly validity: FormComponentValidity;
119
+ get validity(): FormComponentValidity;
118
120
  /**
119
121
  * @hidden
120
122
  */
121
- protected readonly validityStyles: boolean;
123
+ protected get validityStyles(): boolean;
122
124
  /**
123
125
  * @hidden
124
126
  */
125
- protected readonly required: boolean;
127
+ protected get required(): boolean;
126
128
  /**
127
129
  * @hidden
128
130
  */
@@ -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.AutoComplete = exports.AutoCompletePropsContext = exports.AutoCompleteWithoutContext = void 0;
27
30
  var React = require("react");
28
31
  var PropTypes = require("prop-types");
29
32
  var SearchBar_1 = require("./../common/SearchBar");
@@ -184,7 +187,7 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
184
187
  get: function () {
185
188
  return this._element;
186
189
  },
187
- enumerable: true,
190
+ enumerable: false,
188
191
  configurable: true
189
192
  });
190
193
  Object.defineProperty(AutoCompleteWithoutContext.prototype, "value", {
@@ -206,7 +209,7 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
206
209
  }
207
210
  return '';
208
211
  },
209
- enumerable: true,
212
+ enumerable: false,
210
213
  configurable: true
211
214
  });
212
215
  Object.defineProperty(AutoCompleteWithoutContext.prototype, "name", {
@@ -216,7 +219,7 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
216
219
  get: function () {
217
220
  return this.props.name;
218
221
  },
219
- enumerable: true,
222
+ enumerable: false,
220
223
  configurable: true
221
224
  });
222
225
  Object.defineProperty(AutoCompleteWithoutContext.prototype, "validity", {
@@ -235,7 +238,7 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
235
238
  valueMissing: this.value === null
236
239
  };
237
240
  },
238
- enumerable: true,
241
+ enumerable: false,
239
242
  configurable: true
240
243
  });
241
244
  Object.defineProperty(AutoCompleteWithoutContext.prototype, "validityStyles", {
@@ -247,7 +250,7 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
247
250
  ? this.props.validityStyles
248
251
  : AutoCompleteWithoutContext.defaultProps.validityStyles;
249
252
  },
250
- enumerable: true,
253
+ enumerable: false,
251
254
  configurable: true
252
255
  });
253
256
  Object.defineProperty(AutoCompleteWithoutContext.prototype, "required", {
@@ -259,7 +262,7 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
259
262
  ? this.props.required
260
263
  : AutoCompleteWithoutContext.defaultProps.required;
261
264
  },
262
- enumerable: true,
265
+ enumerable: false,
263
266
  configurable: true
264
267
  });
265
268
  /**
@@ -291,8 +294,8 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
291
294
  * @hidden
292
295
  */
293
296
  AutoCompleteWithoutContext.prototype.render = function () {
294
- var _this = this;
295
297
  var _a;
298
+ var _this = this;
296
299
  var _b = this.props, dir = _b.dir, disabled = _b.disabled, label = _b.label, className = _b.className, style = _b.style, loading = _b.loading, suggest = _b.suggest, size = _b.size, rounded = _b.rounded, fillMode = _b.fillMode;
297
300
  var isValid = !this.validityStyles || this.validity.valid;
298
301
  var base = this.base;
@@ -315,7 +318,7 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
315
318
  base.wrapper = element;
316
319
  }, style: !label
317
320
  ? style
318
- : __assign({}, style, { width: undefined }), dir: dir },
321
+ : __assign(__assign({}, style), { width: undefined }), dir: dir },
319
322
  this.renderSearchBar(value || '', id),
320
323
  loading && React.createElement("span", { className: "k-icon k-i-loading k-input-loading-icon" }),
321
324
  renderClearButton && !loading && React.createElement(ClearButton_1.default, { onClick: this.clearButtonClick, key: "clearbutton" }),
@@ -437,11 +440,11 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
437
440
  /**
438
441
  * @hidden
439
442
  */
440
- AutoCompleteWithoutContext.propTypes = __assign({}, DropDownBase_1.default.basicPropTypes, { size: PropTypes.oneOf([null, 'small', 'medium', 'large']), rounded: PropTypes.oneOf([null, 'small', 'medium', 'large', 'full']), fillMode: PropTypes.oneOf([null, 'solid', 'flat', 'outline']), suggest: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]), placeholder: PropTypes.string, value: PropTypes.string, defaultValue: PropTypes.string, validationMessage: PropTypes.string, required: PropTypes.bool, readonly: PropTypes.bool, clearButton: PropTypes.bool, valueRender: PropTypes.func, id: PropTypes.string, ariaLabelledBy: PropTypes.string, ariaDescribedBy: PropTypes.string });
443
+ AutoCompleteWithoutContext.propTypes = __assign(__assign({}, DropDownBase_1.default.basicPropTypes), { size: PropTypes.oneOf([null, 'small', 'medium', 'large']), rounded: PropTypes.oneOf([null, 'small', 'medium', 'large', 'full']), fillMode: PropTypes.oneOf([null, 'solid', 'flat', 'outline']), suggest: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]), placeholder: PropTypes.string, value: PropTypes.string, defaultValue: PropTypes.string, validationMessage: PropTypes.string, required: PropTypes.bool, readonly: PropTypes.bool, clearButton: PropTypes.bool, valueRender: PropTypes.func, id: PropTypes.string, ariaLabelledBy: PropTypes.string, ariaDescribedBy: PropTypes.string });
441
444
  /**
442
445
  * @hidden
443
446
  */
444
- AutoCompleteWithoutContext.defaultProps = __assign({}, DropDownBase_1.default.defaultProps, { size: 'medium', rounded: 'medium', fillMode: 'solid' });
447
+ AutoCompleteWithoutContext.defaultProps = __assign(__assign({}, DropDownBase_1.default.defaultProps), { size: 'medium', rounded: 'medium', fillMode: 'solid' });
445
448
  return AutoCompleteWithoutContext;
446
449
  }(React.Component));
447
450
  exports.AutoCompleteWithoutContext = AutoCompleteWithoutContext;
@@ -25,8 +25,8 @@ export declare class ComboBoxWithoutContext extends React.Component<ComboBoxProp
25
25
  */
26
26
  static propTypes: {
27
27
  size: PropTypes.Requireable<"small" | "medium" | "large">;
28
- rounded: PropTypes.Requireable<"small" | "medium" | "large" | "full">;
29
- fillMode: PropTypes.Requireable<"solid" | "flat" | "outline">;
28
+ rounded: PropTypes.Requireable<"small" | "medium" | "full" | "large">;
29
+ fillMode: PropTypes.Requireable<"flat" | "solid" | "outline">;
30
30
  dataItemKey: PropTypes.Requireable<string>;
31
31
  groupField: PropTypes.Requireable<string>;
32
32
  suggest: PropTypes.Requireable<boolean>;
@@ -69,7 +69,7 @@ export declare class ComboBoxWithoutContext extends React.Component<ComboBoxProp
69
69
  }>>;
70
70
  popupClass: PropTypes.Requireable<string>;
71
71
  className: PropTypes.Requireable<string>;
72
- appendTo: PropTypes.Requireable<PropTypes.ReactElementLike>;
72
+ appendTo: PropTypes.Requireable<Element>;
73
73
  width: PropTypes.Requireable<string | number>;
74
74
  height: PropTypes.Requireable<string | number>;
75
75
  }>>;
@@ -89,8 +89,8 @@ export declare class ComboBoxWithoutContext extends React.Component<ComboBoxProp
89
89
  */
90
90
  static defaultProps: {
91
91
  size: "small" | "medium" | "large";
92
- rounded: "small" | "medium" | "large" | "full";
93
- fillMode: "solid" | "flat" | "outline";
92
+ rounded: "small" | "medium" | "full" | "large";
93
+ fillMode: "flat" | "solid" | "outline";
94
94
  allowCustom: boolean;
95
95
  clearButton: boolean;
96
96
  required: boolean;
@@ -119,28 +119,28 @@ export declare class ComboBoxWithoutContext extends React.Component<ComboBoxProp
119
119
  /**
120
120
  * @hidden
121
121
  */
122
- readonly element: HTMLSpanElement | null;
122
+ get element(): HTMLSpanElement | null;
123
123
  /**
124
124
  * The value of the ComboBox.
125
125
  */
126
- readonly value: any;
126
+ get value(): any;
127
127
  /**
128
128
  * The index of the selected item.
129
129
  */
130
- readonly index: number;
130
+ get index(): number;
131
131
  /**
132
132
  * Gets the `name` property of the ComboBox.
133
133
  */
134
- readonly name: string | undefined;
134
+ get name(): string | undefined;
135
135
  /**
136
136
  * Represents the validity state into which the component is set.
137
137
  */
138
- readonly validity: FormComponentValidity;
139
- protected readonly validityStyles: boolean;
138
+ get validity(): FormComponentValidity;
139
+ protected get validityStyles(): boolean;
140
140
  /**
141
141
  * @hidden
142
142
  */
143
- protected readonly required: boolean;
143
+ protected get required(): boolean;
144
144
  /**
145
145
  * @hidden
146
146
  */
@@ -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");
@@ -225,7 +228,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
225
228
  get: function () {
226
229
  return this._element;
227
230
  },
228
- enumerable: true,
231
+ enumerable: false,
229
232
  configurable: true
230
233
  });
231
234
  Object.defineProperty(ComboBoxWithoutContext.prototype, "value", {
@@ -247,7 +250,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
247
250
  }
248
251
  return undefined;
249
252
  },
250
- enumerable: true,
253
+ enumerable: false,
251
254
  configurable: true
252
255
  });
253
256
  Object.defineProperty(ComboBoxWithoutContext.prototype, "index", {
@@ -260,7 +263,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
260
263
  // TO DO: deprecate it!
261
264
  return data.findIndex(function (i) { return utils_1.areSame(i, value, dataItemKey); });
262
265
  },
263
- enumerable: true,
266
+ enumerable: false,
264
267
  configurable: true
265
268
  });
266
269
  Object.defineProperty(ComboBoxWithoutContext.prototype, "name", {
@@ -270,7 +273,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
270
273
  get: function () {
271
274
  return this.props.name;
272
275
  },
273
- enumerable: true,
276
+ enumerable: false,
274
277
  configurable: true
275
278
  });
276
279
  Object.defineProperty(ComboBoxWithoutContext.prototype, "validity", {
@@ -290,7 +293,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
290
293
  valueMissing: this.value === null
291
294
  };
292
295
  },
293
- enumerable: true,
296
+ enumerable: false,
294
297
  configurable: true
295
298
  });
296
299
  Object.defineProperty(ComboBoxWithoutContext.prototype, "validityStyles", {
@@ -299,7 +302,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
299
302
  ? this.props.validityStyles
300
303
  : ComboBoxWithoutContext.defaultProps.validityStyles;
301
304
  },
302
- enumerable: true,
305
+ enumerable: false,
303
306
  configurable: true
304
307
  });
305
308
  Object.defineProperty(ComboBoxWithoutContext.prototype, "required", {
@@ -311,7 +314,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
311
314
  ? this.props.required
312
315
  : ComboBoxWithoutContext.defaultProps.required;
313
316
  },
314
- enumerable: true,
317
+ enumerable: false,
315
318
  configurable: true
316
319
  });
317
320
  /**
@@ -383,7 +386,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
383
386
  _a['k-loading'] = loading,
384
387
  _a['k-required'] = this.required,
385
388
  _a['k-disabled'] = disabled,
386
- _a), className), ref: this.componentRef, style: !label ? style : __assign({}, style, { width: undefined }), dir: dir },
389
+ _a), className), ref: this.componentRef, style: !label ? style : __assign(__assign({}, style), { width: undefined }), dir: dir },
387
390
  this.renderSearchBar(inputText || '', id),
388
391
  renderClearButton && !loading && React.createElement(ClearButton_1.default, { onClick: this.clearButtonClick, key: "clearbutton" }),
389
392
  loading && React.createElement("span", { className: "k-icon k-i-loading k-input-loading-icon", key: "loading" }),
@@ -540,8 +543,8 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
540
543
  footer && React.createElement("div", { className: "k-list-footer" }, footer))));
541
544
  };
542
545
  ComboBoxWithoutContext.prototype.renderList = function () {
543
- var _this = this;
544
546
  var _a;
547
+ var _this = this;
545
548
  var base = this.base;
546
549
  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
550
  var popupSettings = base.getPopupSettings();
@@ -607,11 +610,11 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
607
610
  /**
608
611
  * @hidden
609
612
  */
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 });
613
+ 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
614
  /**
612
615
  * @hidden
613
616
  */
614
- ComboBoxWithoutContext.defaultProps = __assign({}, DropDownBase_1.default.defaultProps, { size: 'medium', rounded: 'medium', fillMode: 'solid', allowCustom: false, clearButton: true, required: false });
617
+ ComboBoxWithoutContext.defaultProps = __assign(__assign({}, DropDownBase_1.default.defaultProps), { size: 'medium', rounded: 'medium', fillMode: 'solid', allowCustom: false, clearButton: true, required: false });
615
618
  return ComboBoxWithoutContext;
616
619
  }(React.Component));
617
620
  exports.ComboBoxWithoutContext = ComboBoxWithoutContext;
@@ -19,15 +19,16 @@ export declare class DropDownListWithoutContext extends React.Component<DropDown
19
19
  */
20
20
  static propTypes: {
21
21
  value: PropTypes.Requireable<any>;
22
+ /**
23
+ * @hidden
24
+ */
22
25
  defaultValue: PropTypes.Requireable<any>;
23
26
  filterable: PropTypes.Requireable<boolean>;
24
27
  filter: PropTypes.Requireable<string>;
25
28
  virtual: PropTypes.Requireable<PropTypes.InferProps<{
26
29
  pageSize: PropTypes.Validator<number>;
27
30
  skip: PropTypes.Validator<number>;
28
- total: PropTypes.Validator<number>; /**
29
- * The value of the DropDownList.
30
- */
31
+ total: PropTypes.Validator<number>;
31
32
  }>>;
32
33
  onFilterChange: PropTypes.Requireable<(...args: any[]) => any>;
33
34
  onPageChange: PropTypes.Requireable<(...args: any[]) => any>;
@@ -48,7 +49,7 @@ export declare class DropDownListWithoutContext extends React.Component<DropDown
48
49
  }>>;
49
50
  popupClass: PropTypes.Requireable<string>;
50
51
  className: PropTypes.Requireable<string>;
51
- appendTo: PropTypes.Requireable<PropTypes.ReactElementLike>;
52
+ appendTo: PropTypes.Requireable<Element>;
52
53
  width: PropTypes.Requireable<string | number>;
53
54
  height: PropTypes.Requireable<string | number>;
54
55
  }>>;
@@ -83,8 +84,8 @@ export declare class DropDownListWithoutContext extends React.Component<DropDown
83
84
  static defaultProps: {
84
85
  required: boolean;
85
86
  size: "small" | "medium" | "large";
86
- rounded: "small" | "medium" | "large" | "full";
87
- fillMode: "solid" | "flat" | "outline";
87
+ rounded: "small" | "medium" | "full" | "large";
88
+ fillMode: "flat" | "solid" | "outline";
88
89
  popupSettings: {
89
90
  height: string;
90
91
  };
@@ -114,28 +115,28 @@ export declare class DropDownListWithoutContext extends React.Component<DropDown
114
115
  /**
115
116
  * @hidden
116
117
  */
117
- readonly element: HTMLSpanElement | null;
118
+ get element(): HTMLSpanElement | null;
118
119
  /**
119
120
  * The value of the DropDownList.
120
121
  */
121
- readonly value: any;
122
+ get value(): any;
122
123
  /**
123
124
  * The index of the selected item.
124
125
  */
125
- readonly index: number;
126
+ get index(): number;
126
127
  /**
127
128
  * Gets the `name` property of the DropDownList.
128
129
  */
129
- readonly name: string | undefined;
130
+ get name(): string | undefined;
130
131
  /**
131
132
  * Represents the validity state into which the DropDownList is set.
132
133
  */
133
- readonly validity: FormComponentValidity;
134
- protected readonly validityStyles: boolean;
134
+ get validity(): FormComponentValidity;
135
+ protected get validityStyles(): boolean;
135
136
  /**
136
137
  * @hidden
137
138
  */
138
- protected readonly required: boolean;
139
+ protected get required(): boolean;
139
140
  /**
140
141
  * @hidden
141
142
  */
@@ -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.DropDownList = exports.DropDownListPropsContext = exports.DropDownListWithoutContext = void 0;
27
30
  var React = require("react");
28
31
  var PropTypes = require("prop-types");
29
32
  var kendo_react_common_1 = require("@progress/kendo-react-common");
@@ -334,7 +337,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
334
337
  get: function () {
335
338
  return this._element;
336
339
  },
337
- enumerable: true,
340
+ enumerable: false,
338
341
  configurable: true
339
342
  });
340
343
  Object.defineProperty(DropDownListWithoutContext.prototype, "value", {
@@ -360,7 +363,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
360
363
  }
361
364
  return value;
362
365
  },
363
- enumerable: true,
366
+ enumerable: false,
364
367
  configurable: true
365
368
  });
366
369
  Object.defineProperty(DropDownListWithoutContext.prototype, "index", {
@@ -373,7 +376,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
373
376
  // TO DO: deprecate it!
374
377
  return data.findIndex(function (i) { return utils_1.areSame(i, value, dataItemKey); });
375
378
  },
376
- enumerable: true,
379
+ enumerable: false,
377
380
  configurable: true
378
381
  });
379
382
  Object.defineProperty(DropDownListWithoutContext.prototype, "name", {
@@ -383,7 +386,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
383
386
  get: function () {
384
387
  return this.props.name;
385
388
  },
386
- enumerable: true,
389
+ enumerable: false,
387
390
  configurable: true
388
391
  });
389
392
  Object.defineProperty(DropDownListWithoutContext.prototype, "validity", {
@@ -401,7 +404,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
401
404
  valueMissing: this.value === null
402
405
  };
403
406
  },
404
- enumerable: true,
407
+ enumerable: false,
405
408
  configurable: true
406
409
  });
407
410
  Object.defineProperty(DropDownListWithoutContext.prototype, "validityStyles", {
@@ -410,7 +413,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
410
413
  ? this.props.validityStyles
411
414
  : DropDownListWithoutContext.defaultProps.validityStyles;
412
415
  },
413
- enumerable: true,
416
+ enumerable: false,
414
417
  configurable: true
415
418
  });
416
419
  Object.defineProperty(DropDownListWithoutContext.prototype, "required", {
@@ -422,7 +425,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
422
425
  ? this.props.required
423
426
  : DropDownListWithoutContext.defaultProps.required;
424
427
  },
425
- enumerable: true,
428
+ enumerable: false,
426
429
  configurable: true
427
430
  });
428
431
  /**
@@ -516,7 +519,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
516
519
  _a['k-required'] = this.required,
517
520
  _a)), style: !label
518
521
  ? style
519
- : __assign({}, style, { width: undefined }), dir: dir, onMouseDown: opened ? utils_1.preventDefaultNonInputs : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, tabIndex: kendo_react_common_1.getTabIndex(tabIndex, disabled), accessKey: this.props.accessKey, onKeyDown: this.handleKeyDown, onKeyPress: this.handleKeyPress, onClick: disabled ? undefined : this.handleWrapperClick, role: 'listbox', "aria-required": this.required, "aria-disabled": disabled || undefined, "aria-haspopup": true, "aria-expanded": opened || false, "aria-owns": this.base.listBoxId, "aria-activedescendant": opened ? ('option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0))) : undefined, "aria-label": this.props.ariaLabel || this.props.label, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, id: this.props.id, title: this.props.title },
522
+ : __assign(__assign({}, style), { width: undefined }), dir: dir, onMouseDown: opened ? utils_1.preventDefaultNonInputs : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, tabIndex: kendo_react_common_1.getTabIndex(tabIndex, disabled), accessKey: this.props.accessKey, onKeyDown: this.handleKeyDown, onKeyPress: this.handleKeyPress, onClick: disabled ? undefined : this.handleWrapperClick, role: 'listbox', "aria-required": this.required, "aria-disabled": disabled || undefined, "aria-haspopup": true, "aria-expanded": opened || false, "aria-owns": this.base.listBoxId, "aria-activedescendant": opened ? ('option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0))) : undefined, "aria-label": this.props.ariaLabel || this.props.label, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, id: this.props.id, title: this.props.title },
520
523
  valueElement,
521
524
  loading && React.createElement("span", { className: "k-icon k-i-loading k-input-loading-icon", key: "loading" }),
522
525
  React.createElement("button", { tabIndex: -1, type: "button", "aria-hidden": true, className: kendo_react_common_1.classNames('k-input-button k-button k-icon-button', (_b = {},
@@ -590,7 +593,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
590
593
  /**
591
594
  * @hidden
592
595
  */
593
- DropDownListWithoutContext.defaultProps = __assign({ delay: 500, tabIndex: 0, ignoreCase: true }, DropDownBase_1.default.defaultProps, { required: false, size: 'medium', rounded: 'medium', fillMode: 'solid' });
596
+ DropDownListWithoutContext.defaultProps = __assign(__assign({ delay: 500, tabIndex: 0, ignoreCase: true }, DropDownBase_1.default.defaultProps), { required: false, size: 'medium', rounded: 'medium', fillMode: 'solid' });
594
597
  return DropDownListWithoutContext;
595
598
  }(React.Component));
596
599
  exports.DropDownListWithoutContext = DropDownListWithoutContext;
@@ -10,7 +10,13 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
+ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
14
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
15
+ to[j] = from[i];
16
+ return to;
17
+ };
13
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.DropDownTree = exports.DropDownTreePropsContext = void 0;
14
20
  var React = require("react");
15
21
  var PropTypes = require("prop-types");
16
22
  var kendo_react_common_1 = require("@progress/kendo-react-common");
@@ -172,7 +178,7 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
172
178
  keyCode === kendo_react_common_1.Keys.home || keyCode === kendo_react_common_1.Keys.end)) {
173
179
  if (keyCode === kendo_react_common_1.Keys.up && inputRef.current) {
174
180
  var items = Array.from(treeview.querySelectorAll('.k-treeview-item'));
175
- var focusedItem = items.slice().reverse().find(function (i) { return Boolean(i && i.querySelector('.k-focus')); });
181
+ var focusedItem = __spreadArray([], items).reverse().find(function (i) { return Boolean(i && i.querySelector('.k-focus')); });
176
182
  if (focusedItem && items.indexOf(focusedItem) === 0) {
177
183
  return switchFocus(function () { focusElement(inputRef.current); });
178
184
  }
@@ -299,7 +305,10 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
299
305
  var item = event.item, itemHierarchicalIndex = event.itemHierarchicalIndex, nativeEvent = event.nativeEvent, syntheticEvent = event.syntheticEvent;
300
306
  var expandEvent = {
301
307
  level: toLevel(itemHierarchicalIndex),
302
- item: item, nativeEvent: nativeEvent, syntheticEvent: syntheticEvent, target: target.current
308
+ item: item,
309
+ nativeEvent: nativeEvent,
310
+ syntheticEvent: syntheticEvent,
311
+ target: target.current
303
312
  };
304
313
  props.onExpandChange.call(undefined, expandEvent);
305
314
  }
@@ -340,7 +349,7 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
340
349
  _a['k-loading'] = props.loading,
341
350
  _a['k-required'] = required,
342
351
  _a['k-disabled'] = props.disabled,
343
- _a)), tabIndex: tabIndex, accessKey: props.accessKey, id: id, style: label ? __assign({}, style, { width: undefined }) : style, dir: dir, ref: elementRef, onKeyDown: disabled ? undefined : onWrapperKeyDown, onMouseDown: onWrapperMouseDown, onClick: disabled ? undefined : onWrapperClick, onFocus: onFocus, onBlur: onBlur, role: "listbox", "aria-haspopup": "true", "aria-expanded": isOpen, "aria-disabled": disabled, "aria-label": label, "aria-labelledby": props.ariaLabelledBy, "aria-describedby": props.ariaDescribedBy },
352
+ _a)), tabIndex: tabIndex, accessKey: props.accessKey, id: id, style: label ? __assign(__assign({}, style), { width: undefined }) : style, dir: dir, ref: elementRef, onKeyDown: disabled ? undefined : onWrapperKeyDown, onMouseDown: onWrapperMouseDown, onClick: disabled ? undefined : onWrapperClick, onFocus: onFocus, onBlur: onBlur, role: "listbox", "aria-haspopup": "true", "aria-expanded": isOpen, "aria-disabled": disabled, "aria-label": label, "aria-labelledby": props.ariaLabelledBy, "aria-describedby": props.ariaDescribedBy },
344
353
  React.createElement("span", { className: "k-input-inner" },
345
354
  React.createElement(ValueComponent, { item: value }, currentValueText || placeholder)),
346
355
  props.loading && React.createElement("span", { className: "k-icon k-i-loading k-input-loading-icon" }),
@@ -395,7 +404,7 @@ var propTypes = {
395
404
  })]),
396
405
  popupClass: PropTypes.string,
397
406
  className: PropTypes.string,
398
- appendTo: PropTypes.any,
407
+ appendTo: PropTypes.instanceOf(Element),
399
408
  width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
400
409
  height: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
401
410
  }),
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListNoData = void 0;
3
4
  var React = require("react");
4
5
  /**
5
6
  * @hidden
6
7
  */
7
- exports.ListNoData = function (props) {
8
+ var ListNoData = function (props) {
8
9
  return React.createElement("div", { className: "k-nodata" },
9
10
  React.createElement("div", null, props.children));
10
11
  };
12
+ exports.ListNoData = ListNoData;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useDropdownWidth = void 0;
3
4
  var React = require("react");
4
5
  /**
5
6
  * @hidden