@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
  */
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -182,7 +184,7 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
182
184
  get: function () {
183
185
  return this._element;
184
186
  },
185
- enumerable: true,
187
+ enumerable: false,
186
188
  configurable: true
187
189
  });
188
190
  Object.defineProperty(AutoCompleteWithoutContext.prototype, "value", {
@@ -204,7 +206,7 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
204
206
  }
205
207
  return '';
206
208
  },
207
- enumerable: true,
209
+ enumerable: false,
208
210
  configurable: true
209
211
  });
210
212
  Object.defineProperty(AutoCompleteWithoutContext.prototype, "name", {
@@ -214,7 +216,7 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
214
216
  get: function () {
215
217
  return this.props.name;
216
218
  },
217
- enumerable: true,
219
+ enumerable: false,
218
220
  configurable: true
219
221
  });
220
222
  Object.defineProperty(AutoCompleteWithoutContext.prototype, "validity", {
@@ -233,7 +235,7 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
233
235
  valueMissing: this.value === null
234
236
  };
235
237
  },
236
- enumerable: true,
238
+ enumerable: false,
237
239
  configurable: true
238
240
  });
239
241
  Object.defineProperty(AutoCompleteWithoutContext.prototype, "validityStyles", {
@@ -245,7 +247,7 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
245
247
  ? this.props.validityStyles
246
248
  : AutoCompleteWithoutContext.defaultProps.validityStyles;
247
249
  },
248
- enumerable: true,
250
+ enumerable: false,
249
251
  configurable: true
250
252
  });
251
253
  Object.defineProperty(AutoCompleteWithoutContext.prototype, "required", {
@@ -257,7 +259,7 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
257
259
  ? this.props.required
258
260
  : AutoCompleteWithoutContext.defaultProps.required;
259
261
  },
260
- enumerable: true,
262
+ enumerable: false,
261
263
  configurable: true
262
264
  });
263
265
  /**
@@ -289,8 +291,8 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
289
291
  * @hidden
290
292
  */
291
293
  AutoCompleteWithoutContext.prototype.render = function () {
292
- var _this = this;
293
294
  var _a;
295
+ var _this = this;
294
296
  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;
295
297
  var isValid = !this.validityStyles || this.validity.valid;
296
298
  var base = this.base;
@@ -313,7 +315,7 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
313
315
  base.wrapper = element;
314
316
  }, style: !label
315
317
  ? style
316
- : __assign({}, style, { width: undefined }), dir: dir },
318
+ : __assign(__assign({}, style), { width: undefined }), dir: dir },
317
319
  this.renderSearchBar(value || '', id),
318
320
  loading && React.createElement("span", { className: "k-icon k-i-loading k-input-loading-icon" }),
319
321
  renderClearButton && !loading && React.createElement(ClearButton, { onClick: this.clearButtonClick, key: "clearbutton" }),
@@ -435,11 +437,11 @@ var AutoCompleteWithoutContext = /** @class */ (function (_super) {
435
437
  /**
436
438
  * @hidden
437
439
  */
438
- AutoCompleteWithoutContext.propTypes = __assign({}, DropDownBase.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 });
440
+ AutoCompleteWithoutContext.propTypes = __assign(__assign({}, DropDownBase.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 });
439
441
  /**
440
442
  * @hidden
441
443
  */
442
- AutoCompleteWithoutContext.defaultProps = __assign({}, DropDownBase.defaultProps, { size: 'medium', rounded: 'medium', fillMode: 'solid' });
444
+ AutoCompleteWithoutContext.defaultProps = __assign(__assign({}, DropDownBase.defaultProps), { size: 'medium', rounded: 'medium', fillMode: 'solid' });
443
445
  return AutoCompleteWithoutContext;
444
446
  }(React.Component));
445
447
  export { AutoCompleteWithoutContext };
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -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
  */
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -223,7 +225,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
223
225
  get: function () {
224
226
  return this._element;
225
227
  },
226
- enumerable: true,
228
+ enumerable: false,
227
229
  configurable: true
228
230
  });
229
231
  Object.defineProperty(ComboBoxWithoutContext.prototype, "value", {
@@ -245,7 +247,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
245
247
  }
246
248
  return undefined;
247
249
  },
248
- enumerable: true,
250
+ enumerable: false,
249
251
  configurable: true
250
252
  });
251
253
  Object.defineProperty(ComboBoxWithoutContext.prototype, "index", {
@@ -258,7 +260,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
258
260
  // TO DO: deprecate it!
259
261
  return data.findIndex(function (i) { return areSame(i, value, dataItemKey); });
260
262
  },
261
- enumerable: true,
263
+ enumerable: false,
262
264
  configurable: true
263
265
  });
264
266
  Object.defineProperty(ComboBoxWithoutContext.prototype, "name", {
@@ -268,7 +270,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
268
270
  get: function () {
269
271
  return this.props.name;
270
272
  },
271
- enumerable: true,
273
+ enumerable: false,
272
274
  configurable: true
273
275
  });
274
276
  Object.defineProperty(ComboBoxWithoutContext.prototype, "validity", {
@@ -288,7 +290,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
288
290
  valueMissing: this.value === null
289
291
  };
290
292
  },
291
- enumerable: true,
293
+ enumerable: false,
292
294
  configurable: true
293
295
  });
294
296
  Object.defineProperty(ComboBoxWithoutContext.prototype, "validityStyles", {
@@ -297,7 +299,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
297
299
  ? this.props.validityStyles
298
300
  : ComboBoxWithoutContext.defaultProps.validityStyles;
299
301
  },
300
- enumerable: true,
302
+ enumerable: false,
301
303
  configurable: true
302
304
  });
303
305
  Object.defineProperty(ComboBoxWithoutContext.prototype, "required", {
@@ -309,7 +311,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
309
311
  ? this.props.required
310
312
  : ComboBoxWithoutContext.defaultProps.required;
311
313
  },
312
- enumerable: true,
314
+ enumerable: false,
313
315
  configurable: true
314
316
  });
315
317
  /**
@@ -381,7 +383,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
381
383
  _a['k-loading'] = loading,
382
384
  _a['k-required'] = this.required,
383
385
  _a['k-disabled'] = disabled,
384
- _a), className), ref: this.componentRef, style: !label ? style : __assign({}, style, { width: undefined }), dir: dir },
386
+ _a), className), ref: this.componentRef, style: !label ? style : __assign(__assign({}, style), { width: undefined }), dir: dir },
385
387
  this.renderSearchBar(inputText || '', id),
386
388
  renderClearButton && !loading && React.createElement(ClearButton, { onClick: this.clearButtonClick, key: "clearbutton" }),
387
389
  loading && React.createElement("span", { className: "k-icon k-i-loading k-input-loading-icon", key: "loading" }),
@@ -538,8 +540,8 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
538
540
  footer && React.createElement("div", { className: "k-list-footer" }, footer))));
539
541
  };
540
542
  ComboBoxWithoutContext.prototype.renderList = function () {
541
- var _this = this;
542
543
  var _a;
544
+ var _this = this;
543
545
  var base = this.base;
544
546
  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;
545
547
  var popupSettings = base.getPopupSettings();
@@ -605,11 +607,11 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
605
607
  /**
606
608
  * @hidden
607
609
  */
608
- ComboBoxWithoutContext.propTypes = __assign({}, DropDownBase.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 });
610
+ ComboBoxWithoutContext.propTypes = __assign(__assign({}, DropDownBase.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 });
609
611
  /**
610
612
  * @hidden
611
613
  */
612
- ComboBoxWithoutContext.defaultProps = __assign({}, DropDownBase.defaultProps, { size: 'medium', rounded: 'medium', fillMode: 'solid', allowCustom: false, clearButton: true, required: false });
614
+ ComboBoxWithoutContext.defaultProps = __assign(__assign({}, DropDownBase.defaultProps), { size: 'medium', rounded: 'medium', fillMode: 'solid', allowCustom: false, clearButton: true, required: false });
613
615
  return ComboBoxWithoutContext;
614
616
  }(React.Component));
615
617
  export { ComboBoxWithoutContext };
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -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
  */
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -332,7 +334,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
332
334
  get: function () {
333
335
  return this._element;
334
336
  },
335
- enumerable: true,
337
+ enumerable: false,
336
338
  configurable: true
337
339
  });
338
340
  Object.defineProperty(DropDownListWithoutContext.prototype, "value", {
@@ -358,7 +360,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
358
360
  }
359
361
  return value;
360
362
  },
361
- enumerable: true,
363
+ enumerable: false,
362
364
  configurable: true
363
365
  });
364
366
  Object.defineProperty(DropDownListWithoutContext.prototype, "index", {
@@ -371,7 +373,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
371
373
  // TO DO: deprecate it!
372
374
  return data.findIndex(function (i) { return areSame(i, value, dataItemKey); });
373
375
  },
374
- enumerable: true,
376
+ enumerable: false,
375
377
  configurable: true
376
378
  });
377
379
  Object.defineProperty(DropDownListWithoutContext.prototype, "name", {
@@ -381,7 +383,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
381
383
  get: function () {
382
384
  return this.props.name;
383
385
  },
384
- enumerable: true,
386
+ enumerable: false,
385
387
  configurable: true
386
388
  });
387
389
  Object.defineProperty(DropDownListWithoutContext.prototype, "validity", {
@@ -399,7 +401,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
399
401
  valueMissing: this.value === null
400
402
  };
401
403
  },
402
- enumerable: true,
404
+ enumerable: false,
403
405
  configurable: true
404
406
  });
405
407
  Object.defineProperty(DropDownListWithoutContext.prototype, "validityStyles", {
@@ -408,7 +410,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
408
410
  ? this.props.validityStyles
409
411
  : DropDownListWithoutContext.defaultProps.validityStyles;
410
412
  },
411
- enumerable: true,
413
+ enumerable: false,
412
414
  configurable: true
413
415
  });
414
416
  Object.defineProperty(DropDownListWithoutContext.prototype, "required", {
@@ -420,7 +422,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
420
422
  ? this.props.required
421
423
  : DropDownListWithoutContext.defaultProps.required;
422
424
  },
423
- enumerable: true,
425
+ enumerable: false,
424
426
  configurable: true
425
427
  });
426
428
  /**
@@ -514,7 +516,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
514
516
  _a['k-required'] = this.required,
515
517
  _a)), style: !label
516
518
  ? style
517
- : __assign({}, style, { width: undefined }), dir: dir, onMouseDown: opened ? preventDefaultNonInputs : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, tabIndex: 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 },
519
+ : __assign(__assign({}, style), { width: undefined }), dir: dir, onMouseDown: opened ? preventDefaultNonInputs : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, tabIndex: 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 },
518
520
  valueElement,
519
521
  loading && React.createElement("span", { className: "k-icon k-i-loading k-input-loading-icon", key: "loading" }),
520
522
  React.createElement("button", { tabIndex: -1, type: "button", "aria-hidden": true, className: classNames('k-input-button k-button k-icon-button', (_b = {},
@@ -588,7 +590,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
588
590
  /**
589
591
  * @hidden
590
592
  */
591
- DropDownListWithoutContext.defaultProps = __assign({ delay: 500, tabIndex: 0, ignoreCase: true }, DropDownBase.defaultProps, { required: false, size: 'medium', rounded: 'medium', fillMode: 'solid' });
593
+ DropDownListWithoutContext.defaultProps = __assign(__assign({ delay: 500, tabIndex: 0, ignoreCase: true }, DropDownBase.defaultProps), { required: false, size: 'medium', rounded: 'medium', fillMode: 'solid' });
592
594
  return DropDownListWithoutContext;
593
595
  }(React.Component));
594
596
  export { DropDownListWithoutContext };
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -9,6 +9,11 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
13
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
14
+ to[j] = from[i];
15
+ return to;
16
+ };
12
17
  import * as React from 'react';
13
18
  import * as PropTypes from 'prop-types';
14
19
  import { classNames, noop, useRtl, getTabIndex, Keys, mapTree, extendDataItem, guid, createPropsContext, kendoThemeMaps, usePropsContext } from '@progress/kendo-react-common';
@@ -170,7 +175,7 @@ export var DropDownTree = React.forwardRef(function (directProps, ref) {
170
175
  keyCode === Keys.home || keyCode === Keys.end)) {
171
176
  if (keyCode === Keys.up && inputRef.current) {
172
177
  var items = Array.from(treeview.querySelectorAll('.k-treeview-item'));
173
- var focusedItem = items.slice().reverse().find(function (i) { return Boolean(i && i.querySelector('.k-focus')); });
178
+ var focusedItem = __spreadArray([], items).reverse().find(function (i) { return Boolean(i && i.querySelector('.k-focus')); });
174
179
  if (focusedItem && items.indexOf(focusedItem) === 0) {
175
180
  return switchFocus(function () { focusElement(inputRef.current); });
176
181
  }
@@ -297,7 +302,10 @@ export var DropDownTree = React.forwardRef(function (directProps, ref) {
297
302
  var item = event.item, itemHierarchicalIndex = event.itemHierarchicalIndex, nativeEvent = event.nativeEvent, syntheticEvent = event.syntheticEvent;
298
303
  var expandEvent = {
299
304
  level: toLevel(itemHierarchicalIndex),
300
- item: item, nativeEvent: nativeEvent, syntheticEvent: syntheticEvent, target: target.current
305
+ item: item,
306
+ nativeEvent: nativeEvent,
307
+ syntheticEvent: syntheticEvent,
308
+ target: target.current
301
309
  };
302
310
  props.onExpandChange.call(undefined, expandEvent);
303
311
  }
@@ -338,7 +346,7 @@ export var DropDownTree = React.forwardRef(function (directProps, ref) {
338
346
  _a['k-loading'] = props.loading,
339
347
  _a['k-required'] = required,
340
348
  _a['k-disabled'] = props.disabled,
341
- _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 },
349
+ _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 },
342
350
  React.createElement("span", { className: "k-input-inner" },
343
351
  React.createElement(ValueComponent, { item: value }, currentValueText || placeholder)),
344
352
  props.loading && React.createElement("span", { className: "k-icon k-i-loading k-input-loading-icon" }),
@@ -393,7 +401,7 @@ var propTypes = {
393
401
  })]),
394
402
  popupClass: PropTypes.string,
395
403
  className: PropTypes.string,
396
- appendTo: PropTypes.any,
404
+ appendTo: PropTypes.instanceOf(Element),
397
405
  width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
398
406
  height: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
399
407
  }),
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
14
14
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
15
  t[p] = s[p];
16
16
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
18
- t[p[i]] = s[p[i]];
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
19
21
  return t;
20
22
  };
21
23
  import * as React from 'react';
@@ -49,7 +51,7 @@ export var MultiColumnComboBox = React.forwardRef(function (directProps, ref) {
49
51
  var target = React.useRef(null);
50
52
  var comboBoxRef = React.useRef(null);
51
53
  var scrollbarWidth = getScrollbarWidth();
52
- var _a = props.columns, columns = _a === void 0 ? defaultProps.columns : _a, _b = props.popupSettings, popupSettings = _b === void 0 ? defaultProps.popupSettings : _b, size = props.size, onOpen = props.onOpen, onClose = props.onClose, onFocus = props.onFocus, onBlur = props.onBlur, onChange = props.onChange, onFilterChange = props.onFilterChange, onPageChange = props.onPageChange, other = __rest(props, ["columns", "popupSettings", "size", "onOpen", "onClose", "onFocus", "onBlur", "onChange", "onFilterChange", "onPageChange"]);
54
+ var _a = props.columns, columns = _a === void 0 ? defaultProps.columns : _a, _b = props.popupSettings, popupSettings = _b === void 0 ? defaultProps.popupSettings : _b, className = props.className, size = props.size, onOpen = props.onOpen, onClose = props.onClose, onFocus = props.onFocus, onBlur = props.onBlur, onChange = props.onChange, onFilterChange = props.onFilterChange, onPageChange = props.onPageChange, other = __rest(props, ["columns", "popupSettings", "className", "size", "onOpen", "onClose", "onFocus", "onBlur", "onChange", "onFilterChange", "onPageChange"]);
53
55
  React.useImperativeHandle(target, function () {
54
56
  return ({
55
57
  element: comboBoxRef.current && comboBoxRef.current.element,
@@ -107,7 +109,7 @@ export var MultiColumnComboBox = React.forwardRef(function (directProps, ref) {
107
109
  children.push(React.createElement("div", { key: "group", className: "k-table-td k-table-group-td" },
108
110
  React.createElement("span", null, group)));
109
111
  }
110
- var rendering = React.cloneElement(li, __assign({}, li.props, { className: classNames('k-table-row', {
112
+ var rendering = React.cloneElement(li, __assign(__assign({}, li.props), { className: classNames('k-table-row', {
111
113
  'k-table-alt-row': liProps.index % 2 !== 0,
112
114
  'k-focus': liProps.focused,
113
115
  'k-selected': liProps.selected,
@@ -117,7 +119,7 @@ export var MultiColumnComboBox = React.forwardRef(function (directProps, ref) {
117
119
  }, [columns, props.groupField, props.itemRender, props.data, skip]);
118
120
  var handleEvent = React.useCallback(function (handler, event) {
119
121
  if (handler) {
120
- handler.call(undefined, __assign({}, event, { target: target.current }));
122
+ handler.call(undefined, __assign(__assign({}, event), { target: target.current }));
121
123
  }
122
124
  }, []);
123
125
  var onOpenHandler = React.useCallback(function (event) { return handleEvent(onOpen, event); }, [onOpen]);
@@ -132,9 +134,9 @@ export var MultiColumnComboBox = React.forwardRef(function (directProps, ref) {
132
134
  }, []);
133
135
  React.useEffect(function () { setScrollbarWidth(); });
134
136
  var List = React.useCallback(function (listProps) { return React.createElement(MultiColumnList, __assign({}, listProps)); }, []);
135
- return (React.createElement(ComboBox, __assign({}, other, { list: List, popupSettings: __assign({ width: popupWidth }, popupSettings, { popupClass: 'k-dropdowngrid-popup k-reset', className: popupSettings.className }), ref: comboBoxRef, header: header, itemRender: itemRender, size: props.size, rounded: props.rounded, fillMode: props.fillMode, onOpen: onOpenHandler, onClose: onCloseHandler, onFocus: onFocusHandler, onBlur: onBlurHandler, onChange: onChangeHandler, onFilterChange: onFilterChangeHandler, onPageChange: onPageChangeHandler, onGroupScroll: onGroupScroll, className: 'k-dropdowngrid' })));
137
+ return (React.createElement(ComboBox, __assign({}, other, { list: List, popupSettings: __assign(__assign({ width: popupWidth }, popupSettings), { popupClass: 'k-dropdowngrid-popup k-reset', className: popupSettings.className }), ref: comboBoxRef, header: header, itemRender: itemRender, size: props.size, rounded: props.rounded, fillMode: props.fillMode, onOpen: onOpenHandler, onClose: onCloseHandler, onFocus: onFocusHandler, onBlur: onBlurHandler, onChange: onChangeHandler, onFilterChange: onFilterChangeHandler, onPageChange: onPageChangeHandler, onGroupScroll: onGroupScroll, className: classNames('k-dropdowngrid', className) })));
136
138
  });
137
- var propTypes = __assign({}, ComboBoxWithoutContext.propTypes, { columns: PropTypes.any.isRequired });
139
+ var propTypes = __assign(__assign({}, ComboBoxWithoutContext.propTypes), { columns: PropTypes.any.isRequired });
138
140
  var defaultProps = {
139
141
  columns: [],
140
142
  popupSettings: {},