@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
@@ -67,14 +67,12 @@ export declare class MultiSelectWithoutContext extends React.Component<MultiSele
67
67
  }>>;
68
68
  popupClass: PropTypes.Requireable<string>;
69
69
  className: PropTypes.Requireable<string>;
70
- appendTo: PropTypes.Requireable<PropTypes.ReactElementLike>;
70
+ appendTo: PropTypes.Requireable<Element>;
71
71
  width: PropTypes.Requireable<string | number>;
72
72
  height: PropTypes.Requireable<string | number>;
73
73
  }>>;
74
74
  onOpen: PropTypes.Requireable<(...args: any[]) => any>;
75
- onClose: PropTypes.Requireable<(...args: any[]) => any>; /**
76
- * @hidden
77
- */
75
+ onClose: PropTypes.Requireable<(...args: any[]) => any>;
78
76
  onFocus: PropTypes.Requireable<(...args: any[]) => any>;
79
77
  onBlur: PropTypes.Requireable<(...args: any[]) => any>;
80
78
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
@@ -91,8 +89,8 @@ export declare class MultiSelectWithoutContext extends React.Component<MultiSele
91
89
  autoClose: boolean;
92
90
  required: boolean;
93
91
  size: "small" | "medium" | "large";
94
- rounded: "small" | "medium" | "large" | "full";
95
- fillMode: "solid" | "flat" | "outline";
92
+ rounded: "small" | "medium" | "full" | "large";
93
+ fillMode: "flat" | "solid" | "outline";
96
94
  popupSettings: {
97
95
  height: string;
98
96
  };
@@ -118,24 +116,24 @@ export declare class MultiSelectWithoutContext extends React.Component<MultiSele
118
116
  /**
119
117
  * @hidden
120
118
  */
121
- readonly element: HTMLSpanElement | null;
119
+ get element(): HTMLSpanElement | null;
122
120
  /**
123
121
  * Represents the value of the MultiSelect.
124
122
  */
125
- readonly value: Array<any>;
123
+ get value(): Array<any>;
126
124
  /**
127
125
  * Gets the `name` property of the MultiSelect.
128
126
  */
129
- readonly name: string | undefined;
127
+ get name(): string | undefined;
130
128
  /**
131
129
  * Represents the validity state into which the MultiSelect is set.
132
130
  */
133
- readonly validity: FormComponentValidity;
131
+ get validity(): FormComponentValidity;
134
132
  /**
135
133
  * @hidden
136
134
  */
137
- protected readonly required: boolean;
138
- protected readonly validityStyles: boolean;
135
+ protected get required(): boolean;
136
+ protected get validityStyles(): boolean;
139
137
  /**
140
138
  * @hidden
141
139
  */
@@ -151,7 +149,7 @@ export declare class MultiSelectWithoutContext extends React.Component<MultiSele
151
149
  /**
152
150
  * @hidden
153
151
  */
154
- onTagDelete: (itemsToRemove: any[], event: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
152
+ onTagDelete: (itemsToRemove: Array<any>, event: React.MouseEvent<HTMLSpanElement>) => void;
155
153
  /**
156
154
  * @hidden
157
155
  */
@@ -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 __());
@@ -22,6 +24,11 @@ var __assign = (this && this.__assign) || function () {
22
24
  };
23
25
  return __assign.apply(this, arguments);
24
26
  };
27
+ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
28
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
29
+ to[j] = from[i];
30
+ return to;
31
+ };
25
32
  import * as React from 'react';
26
33
  import * as PropTypes from 'prop-types';
27
34
  import { classNames, Keys, guid, createPropsContext, kendoThemeMaps, withPropsContext } from '@progress/kendo-react-common';
@@ -85,7 +92,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
85
92
  newItems.splice(indexInValue, 1);
86
93
  }
87
94
  else {
88
- newItems = _this.value.concat([dataItem]);
95
+ newItems = __spreadArray(__spreadArray([], _this.value), [dataItem]);
89
96
  }
90
97
  var text = _this.props.filter !== undefined ? _this.props.filter : _this.state.text;
91
98
  if (text) {
@@ -299,7 +306,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
299
306
  }
300
307
  state.data.focusedIndex = undefined;
301
308
  _this.base.filterChanged('', state);
302
- var newItems = _this.value.concat([item]);
309
+ var newItems = __spreadArray(__spreadArray([], _this.value), [item]);
303
310
  _this.triggerOnChange(newItems, state);
304
311
  _this.base.togglePopup(state);
305
312
  _this.applyState(state);
@@ -385,7 +392,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
385
392
  get: function () {
386
393
  return this._element;
387
394
  },
388
- enumerable: true,
395
+ enumerable: false,
389
396
  configurable: true
390
397
  });
391
398
  Object.defineProperty(MultiSelectWithoutContext.prototype, "value", {
@@ -408,7 +415,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
408
415
  }
409
416
  return result;
410
417
  },
411
- enumerable: true,
418
+ enumerable: false,
412
419
  configurable: true
413
420
  });
414
421
  Object.defineProperty(MultiSelectWithoutContext.prototype, "name", {
@@ -418,7 +425,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
418
425
  get: function () {
419
426
  return this.props.name;
420
427
  },
421
- enumerable: true,
428
+ enumerable: false,
422
429
  configurable: true
423
430
  });
424
431
  Object.defineProperty(MultiSelectWithoutContext.prototype, "validity", {
@@ -436,7 +443,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
436
443
  valueMissing: this.value === null
437
444
  };
438
445
  },
439
- enumerable: true,
446
+ enumerable: false,
440
447
  configurable: true
441
448
  });
442
449
  Object.defineProperty(MultiSelectWithoutContext.prototype, "required", {
@@ -448,7 +455,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
448
455
  ? this.props.required
449
456
  : MultiSelectWithoutContext.defaultProps.required;
450
457
  },
451
- enumerable: true,
458
+ enumerable: false,
452
459
  configurable: true
453
460
  });
454
461
  Object.defineProperty(MultiSelectWithoutContext.prototype, "validityStyles", {
@@ -457,7 +464,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
457
464
  ? this.props.validityStyles
458
465
  : MultiSelectWithoutContext.defaultProps.validityStyles;
459
466
  },
460
- enumerable: true,
467
+ enumerable: false,
461
468
  configurable: true
462
469
  });
463
470
  /**
@@ -570,7 +577,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
570
577
  _a['k-required'] = this.required,
571
578
  _a)), style: !label
572
579
  ? style
573
- : __assign({}, style, { width: undefined }), dir: dir, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.handleWrapperClick, onMouseDown: preventDefaultNonInputs },
580
+ : __assign(__assign({}, style), { width: undefined }), dir: dir, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.handleWrapperClick, onMouseDown: preventDefaultNonInputs },
574
581
  React.createElement("div", { className: classNames('k-input-values k-chip-list k-selection-multiple', (_b = {},
575
582
  _b["k-chip-list-" + (sizeMap[size] || size)] = size,
576
583
  _b)), role: "listbox", id: 'tagslist-' + this.base.guid },
@@ -653,7 +660,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
653
660
  };
654
661
  MultiSelectWithoutContext.prototype.triggerOnChange = function (items, state) {
655
662
  if (this.props.value === undefined) {
656
- state.data.value = items.slice();
663
+ state.data.value = __spreadArray([], items);
657
664
  }
658
665
  this._valueItemsDuringOnChange = [];
659
666
  this.setItems(items, this._valueItemsDuringOnChange);
@@ -726,14 +733,14 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
726
733
  /**
727
734
  * @hidden
728
735
  */
729
- MultiSelectWithoutContext.propTypes = __assign({}, DropDownBase.propTypes, { autoClose: PropTypes.bool, value: PropTypes.arrayOf(PropTypes.any), defaultValue: PropTypes.arrayOf(PropTypes.any), dataItemKey: PropTypes.string, placeholder: PropTypes.string, tags: PropTypes.arrayOf(PropTypes.shape({
736
+ MultiSelectWithoutContext.propTypes = __assign(__assign({}, DropDownBase.propTypes), { autoClose: PropTypes.bool, value: PropTypes.arrayOf(PropTypes.any), defaultValue: PropTypes.arrayOf(PropTypes.any), dataItemKey: PropTypes.string, placeholder: PropTypes.string, tags: PropTypes.arrayOf(PropTypes.shape({
730
737
  text: PropTypes.string,
731
738
  data: PropTypes.arrayOf(PropTypes.any)
732
739
  })), tagRender: PropTypes.func, id: PropTypes.string, ariaLabelledBy: PropTypes.string, ariaDescribedBy: PropTypes.string });
733
740
  /**
734
741
  * @hidden
735
742
  */
736
- MultiSelectWithoutContext.defaultProps = __assign({}, DropDownBase.defaultProps, { autoClose: true, required: false, size: 'medium', rounded: 'medium', fillMode: 'solid' });
743
+ MultiSelectWithoutContext.defaultProps = __assign(__assign({}, DropDownBase.defaultProps), { autoClose: true, required: false, size: 'medium', rounded: 'medium', fillMode: 'solid' });
737
744
  return MultiSelectWithoutContext;
738
745
  }(React.Component));
739
746
  export { MultiSelectWithoutContext };
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -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 __());
@@ -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, guid, kendoThemeMaps, createPropsContext, usePropsContext } from '@progress/kendo-react-common';
@@ -96,7 +101,7 @@ export var MultiSelectTree = React.forwardRef(function (directProps, ref) {
96
101
  var popupStyles = __assign({ width: popupWidth }, (dir !== undefined ? { direction: dir } : {}));
97
102
  var focus = React.useCallback(function () { return elementRef.current && elementRef.current.focus(); }, []);
98
103
  tagsToRenderRef.current = tags === undefined ?
99
- (value || []).map(function (item) { return ({ text: getItemValue(item, props.textField), data: [item] }); }) : tags.slice();
104
+ (value || []).map(function (item) { return ({ text: getItemValue(item, props.textField), data: [item] }); }) : __spreadArray([], tags);
100
105
  React.useImperativeHandle(targetRef, function () { return ({
101
106
  props: props,
102
107
  element: elementRef.current,
@@ -296,7 +301,7 @@ export var MultiSelectTree = React.forwardRef(function (directProps, ref) {
296
301
  keyCode === Keys.home || keyCode === Keys.end)) {
297
302
  if (keyCode === Keys.up && inputRef.current) {
298
303
  var items = Array.from(treeviewElement.querySelectorAll('.k-treeview-item'));
299
- var focusedItem = items.slice().reverse().find(function (i) { return Boolean(i && i.querySelector('.k-focus')); });
304
+ var focusedItem = __spreadArray([], items).reverse().find(function (i) { return Boolean(i && i.querySelector('.k-focus')); });
300
305
  if (focusedItem && items.indexOf(focusedItem) === 0) {
301
306
  return switchFocus(function () { focusElement(inputRef.current); });
302
307
  }
@@ -353,7 +358,10 @@ export var MultiSelectTree = React.forwardRef(function (directProps, ref) {
353
358
  var item = event.item, itemHierarchicalIndex = event.itemHierarchicalIndex, nativeEvent = event.nativeEvent, syntheticEvent = event.syntheticEvent;
354
359
  var expandEvent = {
355
360
  level: toLevel(itemHierarchicalIndex),
356
- item: item, nativeEvent: nativeEvent, syntheticEvent: syntheticEvent, target: targetRef.current
361
+ item: item,
362
+ nativeEvent: nativeEvent,
363
+ syntheticEvent: syntheticEvent,
364
+ target: targetRef.current
357
365
  };
358
366
  props.onExpandChange.call(undefined, expandEvent);
359
367
  }
@@ -386,7 +394,7 @@ export var MultiSelectTree = React.forwardRef(function (directProps, ref) {
386
394
  _a['k-disabled'] = disabled,
387
395
  _a['k-loading'] = props.loading,
388
396
  _a['k-required'] = required,
389
- _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, 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, onClick: disabled ? undefined : onWrapperClick },
397
+ _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, 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, onClick: disabled ? undefined : onWrapperClick },
390
398
  tagsToRenderRef.current.length > 0 && (React.createElement("div", { className: classNames('k-input-values k-chip-list k-selection-multiple', (_b = {},
391
399
  _b["k-chip-list-" + (sizeMap[size] || size)] = size,
392
400
  _b)), role: "listbox", id: 'tagslist-' + id },
@@ -443,7 +451,7 @@ var propTypes = {
443
451
  })]),
444
452
  popupClass: PropTypes.string,
445
453
  className: PropTypes.string,
446
- appendTo: PropTypes.any,
454
+ appendTo: PropTypes.instanceOf(Element),
447
455
  width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
448
456
  height: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
449
457
  }),
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -12,6 +12,6 @@ export declare const getMultiSelectTreeValue: (data: any, options: {
12
12
  subItemsField?: string;
13
13
  dataItemKey: string;
14
14
  items: any;
15
- value: any[];
15
+ value: Array<any>;
16
16
  operation: MultiSelectTreeChangeEventOperation;
17
17
  }) => any[];
@@ -1,3 +1,8 @@
1
+ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
2
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
3
+ to[j] = from[i];
4
+ return to;
5
+ };
1
6
  import { getter } from '@progress/kendo-react-common';
2
7
  /** @hidden */
3
8
  export var getValueMap = function (value, idGetter) {
@@ -31,7 +36,7 @@ export var getMultiSelectTreeValue = function (data, options) {
31
36
  var selectedItem = items[0];
32
37
  var selectedId = idGetter(selectedItem);
33
38
  var subItemGetter = getter(subItemsField);
34
- var stack = data.slice();
39
+ var stack = __spreadArray([], data);
35
40
  var context = [];
36
41
  var parents;
37
42
  var foundItem;
@@ -55,7 +60,7 @@ export var getMultiSelectTreeValue = function (data, options) {
55
60
  }
56
61
  }
57
62
  }
58
- var childrenStack = (subItemGetter(foundItem) || []).slice();
63
+ var childrenStack = __spreadArray([], (subItemGetter(foundItem) || []));
59
64
  var children = [];
60
65
  while (childrenStack.length) {
61
66
  var currentItem = childrenStack.pop();
@@ -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 __());
@@ -68,7 +68,7 @@ export default class DropDownBase {
68
68
  }>>;
69
69
  popupClass: PropTypes.Requireable<string>;
70
70
  className: PropTypes.Requireable<string>;
71
- appendTo: PropTypes.Requireable<PropTypes.ReactElementLike>;
71
+ appendTo: PropTypes.Requireable<Element>;
72
72
  width: PropTypes.Requireable<string | number>;
73
73
  height: PropTypes.Requireable<string | number>;
74
74
  }>>;
@@ -112,7 +112,7 @@ export default class DropDownBase {
112
112
  }>>;
113
113
  popupClass: PropTypes.Requireable<string>;
114
114
  className: PropTypes.Requireable<string>;
115
- appendTo: PropTypes.Requireable<PropTypes.ReactElementLike>;
115
+ appendTo: PropTypes.Requireable<Element>;
116
116
  width: PropTypes.Requireable<string | number>;
117
117
  height: PropTypes.Requireable<string | number>;
118
118
  }>>;
@@ -148,13 +148,13 @@ export default class DropDownBase {
148
148
  calculateDir(): void;
149
149
  calculatePopupWidth(): void;
150
150
  scrollToItem(itemIndex: number, vsEnabled?: boolean): void;
151
- handleItemClick: (index: number, event: React.KeyboardEvent<HTMLInputElement> | React.MouseEvent<HTMLLIElement, MouseEvent>) => void;
151
+ handleItemClick: (index: number, event: React.MouseEvent<HTMLLIElement> | React.KeyboardEvent<HTMLInputElement>) => void;
152
152
  handleFocus: React.FocusEventHandler<HTMLSpanElement>;
153
- filterChanged: (text: string, state: InternalState) => void;
153
+ filterChanged: (text: string | null, state: InternalState) => void;
154
154
  initState(): InternalState;
155
155
  applyState(state: InternalState): void;
156
156
  togglePopup: (state: InternalState) => void;
157
- pageChange: (page: Page, syntheticEvent: React.SyntheticEvent<any, Event>) => void;
157
+ pageChange: (page: Page, syntheticEvent: React.SyntheticEvent<any>) => void;
158
158
  triggerOnPageChange(state: InternalState, skip: number, take: number): void;
159
159
  triggerPageChangeCornerItems(item: any, state: InternalState): void;
160
160
  scrollToVirtualItem: (virtual: VirtualizationSettings, selectedItemIndex: number) => void;
@@ -167,7 +167,7 @@ var DropDownBase = /** @class */ (function () {
167
167
  delete eventData.type;
168
168
  var handler = type && _this.component.props[type];
169
169
  if (handler) {
170
- handler.call(undefined, __assign({}, eventArgs, eventData));
170
+ handler.call(undefined, __assign(__assign({}, eventArgs), eventData));
171
171
  }
172
172
  });
173
173
  };
@@ -219,7 +219,7 @@ var DropDownBase = /** @class */ (function () {
219
219
  })]),
220
220
  popupClass: PropTypes.string,
221
221
  className: PropTypes.string,
222
- appendTo: PropTypes.element,
222
+ appendTo: PropTypes.instanceOf(Element),
223
223
  width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
224
224
  height: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
225
225
  }),
@@ -234,7 +234,7 @@ var DropDownBase = /** @class */ (function () {
234
234
  header: PropTypes.node,
235
235
  footer: PropTypes.node
236
236
  };
237
- DropDownBase.propTypes = __assign({}, DropDownBase.basicPropTypes, { value: PropTypes.any, defaultValue: PropTypes.any, filterable: PropTypes.bool, filter: PropTypes.string, virtual: PropTypes.shape({
237
+ DropDownBase.propTypes = __assign(__assign({}, DropDownBase.basicPropTypes), { value: PropTypes.any, defaultValue: PropTypes.any, filterable: PropTypes.bool, filter: PropTypes.string, virtual: PropTypes.shape({
238
238
  pageSize: PropTypes.number.isRequired,
239
239
  skip: PropTypes.number.isRequired,
240
240
  total: PropTypes.number.isRequired
@@ -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 __());
@@ -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 __());
@@ -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 __());
@@ -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 __());
@@ -23,8 +25,8 @@ var ListFilter = /** @class */ (function (_super) {
23
25
  return _super !== null && _super.apply(this, arguments) || this;
24
26
  }
25
27
  ListFilter.prototype.render = function () {
26
- var _this = this;
27
28
  var _a;
29
+ var _this = this;
28
30
  var _b = this.props, size = _b.size, rounded = _b.rounded, fillMode = _b.fillMode, inputRef = _b.inputRef;
29
31
  return (React.createElement("div", { className: "k-list-filter" },
30
32
  React.createElement("span", { className: classNames('k-searchbox k-input', (_a = {},
@@ -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 __());
@@ -34,7 +34,7 @@ export default class SearchBar extends React.Component<SearchBarProps> {
34
34
  /**
35
35
  * @hidden
36
36
  */
37
- readonly input: HTMLInputElement | null;
37
+ get input(): HTMLInputElement | null;
38
38
  componentDidUpdate(prevProps: SearchBarProps): void;
39
39
  render(): any;
40
40
  }
@@ -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 __());
@@ -27,7 +29,7 @@ var SearchBar = /** @class */ (function (_super) {
27
29
  get: function () {
28
30
  return this._input;
29
31
  },
30
- enumerable: true,
32
+ enumerable: false,
31
33
  configurable: true
32
34
  });
33
35
  SearchBar.prototype.componentDidUpdate = function (prevProps) {
@@ -27,8 +27,8 @@ export default class VirtualScroll {
27
27
  private listTranslate;
28
28
  private scrollSyncing;
29
29
  constructor();
30
- readonly translate: number;
31
- scrollerRef: (element: HTMLDivElement) => void;
30
+ get translate(): number;
31
+ scrollerRef: (element: HTMLDivElement | null) => void;
32
32
  calcScrollElementHeight: () => boolean;
33
33
  changePage(skip: number, e: React.SyntheticEvent<HTMLElement>): void;
34
34
  translateTo(dY: number): void;
@@ -43,7 +43,7 @@ var VirtualScroll = /** @class */ (function () {
43
43
  get: function () {
44
44
  return this.listTranslate;
45
45
  },
46
- enumerable: true,
46
+ enumerable: false,
47
47
  configurable: true
48
48
  });
49
49
  VirtualScroll.prototype.changePage = function (skip, e) {
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -59,7 +59,7 @@ export interface DropDownsPopupSettings {
59
59
  * Defaults to [`body`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body).
60
60
  * * If set to `null` the Popup will be rendered without React Portal.
61
61
  */
62
- appendTo?: HTMLElement;
62
+ appendTo?: HTMLElement | null;
63
63
  }
64
64
  import { FilterDescriptor } from './filterDescriptor';
65
65
  /**
@@ -10,7 +10,7 @@ declare const sameCharsOnly: (word: string, character: string) => boolean;
10
10
  /**
11
11
  * @hidden
12
12
  */
13
- declare const shuffleData: (data: any[], splitIndex: number, defaultItem: any) => any[];
13
+ declare const shuffleData: (data: Array<any>, splitIndex: number, defaultItem: any) => any[];
14
14
  /**
15
15
  * @hidden
16
16
  */
@@ -26,7 +26,7 @@ declare const itemIndexStartsWith: (items: any[], text?: string, field?: string)
26
26
  /**
27
27
  * @hidden
28
28
  */
29
- declare const getItemIndexByText: (data: any[], text: string, textField?: string, matchCase?: boolean) => number;
29
+ declare const getItemIndexByText: (data: Array<any>, text: string, textField?: string, matchCase?: boolean) => number;
30
30
  /**
31
31
  * @hidden
32
32
  */
@@ -34,11 +34,11 @@ declare const getItemValue: (item: any, field?: string) => any;
34
34
  /**
35
35
  * @hidden
36
36
  */
37
- declare const matchDataCollections: (data1?: any[], data2?: any[], key?: string) => boolean;
37
+ declare const matchDataCollections: (data1?: Array<any>, data2?: Array<any>, key?: string) => boolean;
38
38
  /**
39
39
  * @hidden
40
40
  */
41
- declare const removeDataItems: (items: any[], toRemove: any[], key?: string) => void;
41
+ declare const removeDataItems: (items: Array<any>, toRemove: Array<any>, key?: string) => void;
42
42
  /**
43
43
  * @hidden
44
44
  */
@@ -46,11 +46,11 @@ declare const areSame: (item1: any, item2: any, key?: string) => boolean;
46
46
  /**
47
47
  * @hidden
48
48
  */
49
- declare const getFocusedItem: (data: any[], value?: string, textField?: string) => number;
49
+ declare const getFocusedItem: (data: Array<any>, value?: string, textField?: string) => number;
50
50
  /**
51
51
  * @hidden
52
52
  */
53
- declare const suggestValue: (value?: string, data?: any[], textField?: string) => string;
53
+ declare const suggestValue: (value?: string, data?: Array<any>, textField?: string) => string;
54
54
  /**
55
55
  * @hidden
56
56
  */
package/dist/es/main.js CHANGED
@@ -4,6 +4,8 @@ import { AutoComplete, AutoCompletePropsContext } from './AutoComplete/AutoCompl
4
4
  import { MultiSelect, MultiSelectPropsContext } from './MultiSelect/MultiSelect';
5
5
  import { MultiColumnComboBox, MultiColumnComboBoxPropsContext } from './MultiColumnComboBox/MultiColumnComboBox';
6
6
  import { DropDownTree, DropDownTreePropsContext } from './DropDownTree/DropDownTree';
7
+ export * from './DropDownTree/DropDownTreeProps';
7
8
  import { MultiSelectTree, MultiSelectTreePropsContext } from './MultiSelectTree/MultiSelectTree';
9
+ export * from './MultiSelectTree/MultiSelectTreeProps';
8
10
  export * from './MultiSelectTree/utils';
9
11
  export { AutoComplete, AutoCompletePropsContext, DropDownList, DropDownListPropsContext, ComboBox, ComboBoxPropsContext, MultiSelect, MultiSelectPropsContext, MultiColumnComboBox, MultiColumnComboBoxPropsContext, DropDownTree, DropDownTreePropsContext, MultiSelectTree, MultiSelectTreePropsContext };
@@ -10,6 +10,6 @@ export declare const clear = "dropdowns.clear";
10
10
  * @hidden
11
11
  */
12
12
  export declare const messages: {
13
- [clear]: string;
14
- [nodata]: string;
13
+ "dropdowns.clear": string;
14
+ "dropdowns.nodata": string;
15
15
  };
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-dropdowns',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1653456754,
8
+ publishDate: 1653648175,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
11
  };