@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.
- package/dist/cdn/js/kendo-react-dropdowns.js +1 -1
- package/dist/es/AutoComplete/AutoComplete.d.ts +14 -12
- package/dist/es/AutoComplete/AutoComplete.js +13 -11
- package/dist/es/AutoComplete/AutoCompleteProps.js +1 -0
- package/dist/es/ComboBox/ComboBox.d.ts +12 -12
- package/dist/es/ComboBox/ComboBox.js +14 -12
- package/dist/es/ComboBox/ComboBoxProps.js +1 -0
- package/dist/es/DropDownList/DropDownList.d.ts +14 -13
- package/dist/es/DropDownList/DropDownList.js +12 -10
- package/dist/es/DropDownList/DropDownListProps.js +1 -0
- package/dist/es/DropDownTree/DropDownTree.js +12 -4
- package/dist/es/DropDownTree/DropDownTreeProps.js +1 -0
- package/dist/es/MultiColumnComboBox/MultiColumnComboBox.js +9 -7
- package/dist/es/MultiSelect/MultiSelect.d.ts +11 -13
- package/dist/es/MultiSelect/MultiSelect.js +20 -13
- package/dist/es/MultiSelect/MultiSelectProps.js +1 -0
- package/dist/es/MultiSelect/TagList.js +3 -1
- package/dist/es/MultiSelectTree/MultiSelectTree.js +13 -5
- package/dist/es/MultiSelectTree/MultiSelectTreeProps.js +1 -0
- package/dist/es/MultiSelectTree/utils.d.ts +1 -1
- package/dist/es/MultiSelectTree/utils.js +7 -2
- package/dist/es/common/ClearButton.js +3 -1
- package/dist/es/common/DropDownBase.d.ts +5 -5
- package/dist/es/common/DropDownBase.js +3 -3
- package/dist/es/common/List.js +3 -1
- package/dist/es/common/ListContainer.js +3 -1
- package/dist/es/common/ListDefaultItem.js +3 -1
- package/dist/es/common/ListFilter.js +4 -2
- package/dist/es/common/ListItem.js +3 -1
- package/dist/es/common/SearchBar.d.ts +1 -1
- package/dist/es/common/SearchBar.js +4 -2
- package/dist/es/common/VirtualScroll.d.ts +2 -2
- package/dist/es/common/VirtualScroll.js +1 -1
- package/dist/es/common/events.js +1 -0
- package/dist/es/common/filterDescriptor.js +1 -0
- package/dist/es/common/settings.d.ts +1 -1
- package/dist/es/common/utils.d.ts +6 -6
- package/dist/es/main.js +2 -0
- package/dist/es/messages/index.d.ts +2 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/AutoComplete/AutoComplete.d.ts +14 -12
- package/dist/npm/AutoComplete/AutoComplete.js +14 -11
- package/dist/npm/ComboBox/ComboBox.d.ts +12 -12
- package/dist/npm/ComboBox/ComboBox.js +15 -12
- package/dist/npm/DropDownList/DropDownList.d.ts +14 -13
- package/dist/npm/DropDownList/DropDownList.js +13 -10
- package/dist/npm/DropDownTree/DropDownTree.js +13 -4
- package/dist/npm/DropDownTree/ListNoData.js +3 -1
- package/dist/npm/DropDownTree/useDropdownWidth.js +1 -0
- package/dist/npm/MultiColumnComboBox/MultiColumnComboBox.js +10 -7
- package/dist/npm/MultiSelect/MultiSelect.d.ts +11 -13
- package/dist/npm/MultiSelect/MultiSelect.js +21 -13
- package/dist/npm/MultiSelect/TagList.js +3 -1
- package/dist/npm/MultiSelectTree/MultiSelectTree.js +14 -5
- package/dist/npm/MultiSelectTree/utils.d.ts +1 -1
- package/dist/npm/MultiSelectTree/utils.js +12 -4
- package/dist/npm/common/ClearButton.js +3 -1
- package/dist/npm/common/DropDownBase.d.ts +5 -5
- package/dist/npm/common/DropDownBase.js +3 -3
- package/dist/npm/common/List.js +3 -1
- package/dist/npm/common/ListContainer.js +3 -1
- package/dist/npm/common/ListDefaultItem.js +3 -1
- package/dist/npm/common/ListFilter.js +4 -2
- package/dist/npm/common/ListItem.js +3 -1
- package/dist/npm/common/MultiColumnList.js +3 -1
- package/dist/npm/common/Navigation.js +1 -0
- package/dist/npm/common/SearchBar.d.ts +1 -1
- package/dist/npm/common/SearchBar.js +4 -2
- package/dist/npm/common/VirtualScroll.d.ts +2 -2
- package/dist/npm/common/VirtualScroll.js +1 -1
- package/dist/npm/common/settings.d.ts +1 -1
- package/dist/npm/common/settings.js +1 -0
- package/dist/npm/common/utils.d.ts +6 -6
- package/dist/npm/common/utils.js +1 -0
- package/dist/npm/main.js +28 -18
- package/dist/npm/messages/index.d.ts +2 -2
- package/dist/npm/messages/index.js +2 -1
- package/dist/npm/package-metadata.js +2 -1
- package/dist/systemjs/kendo-react-dropdowns.js +1 -1
- package/package.json +12 -12
|
@@ -15,11 +15,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
15
15
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
16
|
t[p] = s[p];
|
|
17
17
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
19
|
-
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
20
22
|
return t;
|
|
21
23
|
};
|
|
22
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.MultiColumnComboBox = exports.MultiColumnComboBoxPropsContext = void 0;
|
|
23
26
|
var React = require("react");
|
|
24
27
|
var PropTypes = require("prop-types");
|
|
25
28
|
var MultiColumnList_1 = require("./../common/MultiColumnList");
|
|
@@ -51,7 +54,7 @@ exports.MultiColumnComboBox = React.forwardRef(function (directProps, ref) {
|
|
|
51
54
|
var target = React.useRef(null);
|
|
52
55
|
var comboBoxRef = React.useRef(null);
|
|
53
56
|
var scrollbarWidth = kendo_react_common_1.getScrollbarWidth();
|
|
54
|
-
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"]);
|
|
57
|
+
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"]);
|
|
55
58
|
React.useImperativeHandle(target, function () {
|
|
56
59
|
return ({
|
|
57
60
|
element: comboBoxRef.current && comboBoxRef.current.element,
|
|
@@ -109,7 +112,7 @@ exports.MultiColumnComboBox = React.forwardRef(function (directProps, ref) {
|
|
|
109
112
|
children.push(React.createElement("div", { key: "group", className: "k-table-td k-table-group-td" },
|
|
110
113
|
React.createElement("span", null, group)));
|
|
111
114
|
}
|
|
112
|
-
var rendering = React.cloneElement(li, __assign({}, li.props, { className: kendo_react_common_1.classNames('k-table-row', {
|
|
115
|
+
var rendering = React.cloneElement(li, __assign(__assign({}, li.props), { className: kendo_react_common_1.classNames('k-table-row', {
|
|
113
116
|
'k-table-alt-row': liProps.index % 2 !== 0,
|
|
114
117
|
'k-focus': liProps.focused,
|
|
115
118
|
'k-selected': liProps.selected,
|
|
@@ -119,7 +122,7 @@ exports.MultiColumnComboBox = React.forwardRef(function (directProps, ref) {
|
|
|
119
122
|
}, [columns, props.groupField, props.itemRender, props.data, skip]);
|
|
120
123
|
var handleEvent = React.useCallback(function (handler, event) {
|
|
121
124
|
if (handler) {
|
|
122
|
-
handler.call(undefined, __assign({}, event, { target: target.current }));
|
|
125
|
+
handler.call(undefined, __assign(__assign({}, event), { target: target.current }));
|
|
123
126
|
}
|
|
124
127
|
}, []);
|
|
125
128
|
var onOpenHandler = React.useCallback(function (event) { return handleEvent(onOpen, event); }, [onOpen]);
|
|
@@ -134,9 +137,9 @@ exports.MultiColumnComboBox = React.forwardRef(function (directProps, ref) {
|
|
|
134
137
|
}, []);
|
|
135
138
|
React.useEffect(function () { kendo_react_common_1.setScrollbarWidth(); });
|
|
136
139
|
var List = React.useCallback(function (listProps) { return React.createElement(MultiColumnList_1.MultiColumnList, __assign({}, listProps)); }, []);
|
|
137
|
-
return (React.createElement(ComboBox_1.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' })));
|
|
140
|
+
return (React.createElement(ComboBox_1.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: kendo_react_common_1.classNames('k-dropdowngrid', className) })));
|
|
138
141
|
});
|
|
139
|
-
var propTypes = __assign({}, ComboBox_1.ComboBoxWithoutContext.propTypes, { columns: PropTypes.any.isRequired });
|
|
142
|
+
var propTypes = __assign(__assign({}, ComboBox_1.ComboBoxWithoutContext.propTypes), { columns: PropTypes.any.isRequired });
|
|
140
143
|
var defaultProps = {
|
|
141
144
|
columns: [],
|
|
142
145
|
popupSettings: {},
|
|
@@ -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<
|
|
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" | "
|
|
95
|
-
fillMode: "
|
|
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
|
-
|
|
119
|
+
get element(): HTMLSpanElement | null;
|
|
122
120
|
/**
|
|
123
121
|
* Represents the value of the MultiSelect.
|
|
124
122
|
*/
|
|
125
|
-
|
|
123
|
+
get value(): Array<any>;
|
|
126
124
|
/**
|
|
127
125
|
* Gets the `name` property of the MultiSelect.
|
|
128
126
|
*/
|
|
129
|
-
|
|
127
|
+
get name(): string | undefined;
|
|
130
128
|
/**
|
|
131
129
|
* Represents the validity state into which the MultiSelect is set.
|
|
132
130
|
*/
|
|
133
|
-
|
|
131
|
+
get validity(): FormComponentValidity;
|
|
134
132
|
/**
|
|
135
133
|
* @hidden
|
|
136
134
|
*/
|
|
137
|
-
protected
|
|
138
|
-
protected
|
|
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
|
|
152
|
+
onTagDelete: (itemsToRemove: Array<any>, event: React.MouseEvent<HTMLSpanElement>) => void;
|
|
155
153
|
/**
|
|
156
154
|
* @hidden
|
|
157
155
|
*/
|
|
@@ -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 (
|
|
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 __());
|
|
@@ -23,7 +25,13 @@ var __assign = (this && this.__assign) || function () {
|
|
|
23
25
|
};
|
|
24
26
|
return __assign.apply(this, arguments);
|
|
25
27
|
};
|
|
28
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
29
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
30
|
+
to[j] = from[i];
|
|
31
|
+
return to;
|
|
32
|
+
};
|
|
26
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.MultiSelect = exports.MultiSelectPropsContext = exports.MultiSelectWithoutContext = void 0;
|
|
27
35
|
var React = require("react");
|
|
28
36
|
var PropTypes = require("prop-types");
|
|
29
37
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
@@ -87,7 +95,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
|
|
|
87
95
|
newItems.splice(indexInValue, 1);
|
|
88
96
|
}
|
|
89
97
|
else {
|
|
90
|
-
newItems = _this.value
|
|
98
|
+
newItems = __spreadArray(__spreadArray([], _this.value), [dataItem]);
|
|
91
99
|
}
|
|
92
100
|
var text = _this.props.filter !== undefined ? _this.props.filter : _this.state.text;
|
|
93
101
|
if (text) {
|
|
@@ -301,7 +309,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
|
|
|
301
309
|
}
|
|
302
310
|
state.data.focusedIndex = undefined;
|
|
303
311
|
_this.base.filterChanged('', state);
|
|
304
|
-
var newItems = _this.value
|
|
312
|
+
var newItems = __spreadArray(__spreadArray([], _this.value), [item]);
|
|
305
313
|
_this.triggerOnChange(newItems, state);
|
|
306
314
|
_this.base.togglePopup(state);
|
|
307
315
|
_this.applyState(state);
|
|
@@ -387,7 +395,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
|
|
|
387
395
|
get: function () {
|
|
388
396
|
return this._element;
|
|
389
397
|
},
|
|
390
|
-
enumerable:
|
|
398
|
+
enumerable: false,
|
|
391
399
|
configurable: true
|
|
392
400
|
});
|
|
393
401
|
Object.defineProperty(MultiSelectWithoutContext.prototype, "value", {
|
|
@@ -410,7 +418,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
|
|
|
410
418
|
}
|
|
411
419
|
return result;
|
|
412
420
|
},
|
|
413
|
-
enumerable:
|
|
421
|
+
enumerable: false,
|
|
414
422
|
configurable: true
|
|
415
423
|
});
|
|
416
424
|
Object.defineProperty(MultiSelectWithoutContext.prototype, "name", {
|
|
@@ -420,7 +428,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
|
|
|
420
428
|
get: function () {
|
|
421
429
|
return this.props.name;
|
|
422
430
|
},
|
|
423
|
-
enumerable:
|
|
431
|
+
enumerable: false,
|
|
424
432
|
configurable: true
|
|
425
433
|
});
|
|
426
434
|
Object.defineProperty(MultiSelectWithoutContext.prototype, "validity", {
|
|
@@ -438,7 +446,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
|
|
|
438
446
|
valueMissing: this.value === null
|
|
439
447
|
};
|
|
440
448
|
},
|
|
441
|
-
enumerable:
|
|
449
|
+
enumerable: false,
|
|
442
450
|
configurable: true
|
|
443
451
|
});
|
|
444
452
|
Object.defineProperty(MultiSelectWithoutContext.prototype, "required", {
|
|
@@ -450,7 +458,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
|
|
|
450
458
|
? this.props.required
|
|
451
459
|
: MultiSelectWithoutContext.defaultProps.required;
|
|
452
460
|
},
|
|
453
|
-
enumerable:
|
|
461
|
+
enumerable: false,
|
|
454
462
|
configurable: true
|
|
455
463
|
});
|
|
456
464
|
Object.defineProperty(MultiSelectWithoutContext.prototype, "validityStyles", {
|
|
@@ -459,7 +467,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
|
|
|
459
467
|
? this.props.validityStyles
|
|
460
468
|
: MultiSelectWithoutContext.defaultProps.validityStyles;
|
|
461
469
|
},
|
|
462
|
-
enumerable:
|
|
470
|
+
enumerable: false,
|
|
463
471
|
configurable: true
|
|
464
472
|
});
|
|
465
473
|
/**
|
|
@@ -572,7 +580,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
|
|
|
572
580
|
_a['k-required'] = this.required,
|
|
573
581
|
_a)), style: !label
|
|
574
582
|
? style
|
|
575
|
-
: __assign({}, style, { width: undefined }), dir: dir, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.handleWrapperClick, onMouseDown: utils_1.preventDefaultNonInputs },
|
|
583
|
+
: __assign(__assign({}, style), { width: undefined }), dir: dir, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.handleWrapperClick, onMouseDown: utils_1.preventDefaultNonInputs },
|
|
576
584
|
React.createElement("div", { className: kendo_react_common_1.classNames('k-input-values k-chip-list k-selection-multiple', (_b = {},
|
|
577
585
|
_b["k-chip-list-" + (sizeMap[size] || size)] = size,
|
|
578
586
|
_b)), role: "listbox", id: 'tagslist-' + this.base.guid },
|
|
@@ -655,7 +663,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
|
|
|
655
663
|
};
|
|
656
664
|
MultiSelectWithoutContext.prototype.triggerOnChange = function (items, state) {
|
|
657
665
|
if (this.props.value === undefined) {
|
|
658
|
-
state.data.value = items
|
|
666
|
+
state.data.value = __spreadArray([], items);
|
|
659
667
|
}
|
|
660
668
|
this._valueItemsDuringOnChange = [];
|
|
661
669
|
this.setItems(items, this._valueItemsDuringOnChange);
|
|
@@ -728,14 +736,14 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
|
|
|
728
736
|
/**
|
|
729
737
|
* @hidden
|
|
730
738
|
*/
|
|
731
|
-
MultiSelectWithoutContext.propTypes = __assign({}, DropDownBase_1.default.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({
|
|
739
|
+
MultiSelectWithoutContext.propTypes = __assign(__assign({}, DropDownBase_1.default.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({
|
|
732
740
|
text: PropTypes.string,
|
|
733
741
|
data: PropTypes.arrayOf(PropTypes.any)
|
|
734
742
|
})), tagRender: PropTypes.func, id: PropTypes.string, ariaLabelledBy: PropTypes.string, ariaDescribedBy: PropTypes.string });
|
|
735
743
|
/**
|
|
736
744
|
* @hidden
|
|
737
745
|
*/
|
|
738
|
-
MultiSelectWithoutContext.defaultProps = __assign({}, DropDownBase_1.default.defaultProps, { autoClose: true, required: false, size: 'medium', rounded: 'medium', fillMode: 'solid' });
|
|
746
|
+
MultiSelectWithoutContext.defaultProps = __assign(__assign({}, DropDownBase_1.default.defaultProps), { autoClose: true, required: false, size: 'medium', rounded: 'medium', fillMode: 'solid' });
|
|
739
747
|
return MultiSelectWithoutContext;
|
|
740
748
|
}(React.Component));
|
|
741
749
|
exports.MultiSelectWithoutContext = MultiSelectWithoutContext;
|
|
@@ -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 (
|
|
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 __());
|
|
@@ -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.MultiSelectTree = exports.MultiSelectTreePropsContext = 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");
|
|
@@ -98,7 +104,7 @@ exports.MultiSelectTree = React.forwardRef(function (directProps, ref) {
|
|
|
98
104
|
var popupStyles = __assign({ width: popupWidth }, (dir !== undefined ? { direction: dir } : {}));
|
|
99
105
|
var focus = React.useCallback(function () { return elementRef.current && elementRef.current.focus(); }, []);
|
|
100
106
|
tagsToRenderRef.current = tags === undefined ?
|
|
101
|
-
(value || []).map(function (item) { return ({ text: utils_1.getItemValue(item, props.textField), data: [item] }); }) : tags
|
|
107
|
+
(value || []).map(function (item) { return ({ text: utils_1.getItemValue(item, props.textField), data: [item] }); }) : __spreadArray([], tags);
|
|
102
108
|
React.useImperativeHandle(targetRef, function () { return ({
|
|
103
109
|
props: props,
|
|
104
110
|
element: elementRef.current,
|
|
@@ -298,7 +304,7 @@ exports.MultiSelectTree = React.forwardRef(function (directProps, ref) {
|
|
|
298
304
|
keyCode === kendo_react_common_1.Keys.home || keyCode === kendo_react_common_1.Keys.end)) {
|
|
299
305
|
if (keyCode === kendo_react_common_1.Keys.up && inputRef.current) {
|
|
300
306
|
var items = Array.from(treeviewElement.querySelectorAll('.k-treeview-item'));
|
|
301
|
-
var focusedItem = items
|
|
307
|
+
var focusedItem = __spreadArray([], items).reverse().find(function (i) { return Boolean(i && i.querySelector('.k-focus')); });
|
|
302
308
|
if (focusedItem && items.indexOf(focusedItem) === 0) {
|
|
303
309
|
return switchFocus(function () { focusElement(inputRef.current); });
|
|
304
310
|
}
|
|
@@ -355,7 +361,10 @@ exports.MultiSelectTree = React.forwardRef(function (directProps, ref) {
|
|
|
355
361
|
var item = event.item, itemHierarchicalIndex = event.itemHierarchicalIndex, nativeEvent = event.nativeEvent, syntheticEvent = event.syntheticEvent;
|
|
356
362
|
var expandEvent = {
|
|
357
363
|
level: toLevel(itemHierarchicalIndex),
|
|
358
|
-
item: item,
|
|
364
|
+
item: item,
|
|
365
|
+
nativeEvent: nativeEvent,
|
|
366
|
+
syntheticEvent: syntheticEvent,
|
|
367
|
+
target: targetRef.current
|
|
359
368
|
};
|
|
360
369
|
props.onExpandChange.call(undefined, expandEvent);
|
|
361
370
|
}
|
|
@@ -388,7 +397,7 @@ exports.MultiSelectTree = React.forwardRef(function (directProps, ref) {
|
|
|
388
397
|
_a['k-disabled'] = disabled,
|
|
389
398
|
_a['k-loading'] = props.loading,
|
|
390
399
|
_a['k-required'] = required,
|
|
391
|
-
_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 },
|
|
400
|
+
_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 },
|
|
392
401
|
tagsToRenderRef.current.length > 0 && (React.createElement("div", { className: kendo_react_common_1.classNames('k-input-values k-chip-list k-selection-multiple', (_b = {},
|
|
393
402
|
_b["k-chip-list-" + (sizeMap[size] || size)] = size,
|
|
394
403
|
_b)), role: "listbox", id: 'tagslist-' + id },
|
|
@@ -445,7 +454,7 @@ var propTypes = {
|
|
|
445
454
|
})]),
|
|
446
455
|
popupClass: PropTypes.string,
|
|
447
456
|
className: PropTypes.string,
|
|
448
|
-
appendTo: PropTypes.
|
|
457
|
+
appendTo: PropTypes.instanceOf(Element),
|
|
449
458
|
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
450
459
|
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
451
460
|
}),
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
3
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
4
|
+
to[j] = from[i];
|
|
5
|
+
return to;
|
|
6
|
+
};
|
|
2
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.getMultiSelectTreeValue = exports.getValueMap = void 0;
|
|
3
9
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
4
10
|
/** @hidden */
|
|
5
|
-
|
|
11
|
+
var getValueMap = function (value, idGetter) {
|
|
6
12
|
var map = {};
|
|
7
13
|
if (value && value.length) {
|
|
8
14
|
value.forEach(function (item) {
|
|
@@ -11,6 +17,7 @@ exports.getValueMap = function (value, idGetter) {
|
|
|
11
17
|
}
|
|
12
18
|
return map;
|
|
13
19
|
};
|
|
20
|
+
exports.getValueMap = getValueMap;
|
|
14
21
|
/**
|
|
15
22
|
* Get MultiSelectTree new value from the component `onChange` event.
|
|
16
23
|
*
|
|
@@ -18,7 +25,7 @@ exports.getValueMap = function (value, idGetter) {
|
|
|
18
25
|
* @param {object} options
|
|
19
26
|
* @returns {any[]}
|
|
20
27
|
*/
|
|
21
|
-
|
|
28
|
+
var getMultiSelectTreeValue = function (data, options) {
|
|
22
29
|
var items = options.items, dataItemKey = options.dataItemKey, value = options.value, _a = options.subItemsField, subItemsField = _a === void 0 ? 'items' : _a, operation = options.operation;
|
|
23
30
|
var idGetter = kendo_react_common_1.getter(dataItemKey);
|
|
24
31
|
var valueMap = exports.getValueMap(value, idGetter);
|
|
@@ -33,7 +40,7 @@ exports.getMultiSelectTreeValue = function (data, options) {
|
|
|
33
40
|
var selectedItem = items[0];
|
|
34
41
|
var selectedId = idGetter(selectedItem);
|
|
35
42
|
var subItemGetter = kendo_react_common_1.getter(subItemsField);
|
|
36
|
-
var stack = data
|
|
43
|
+
var stack = __spreadArray([], data);
|
|
37
44
|
var context = [];
|
|
38
45
|
var parents;
|
|
39
46
|
var foundItem;
|
|
@@ -57,7 +64,7 @@ exports.getMultiSelectTreeValue = function (data, options) {
|
|
|
57
64
|
}
|
|
58
65
|
}
|
|
59
66
|
}
|
|
60
|
-
var childrenStack = (subItemGetter(foundItem) || [])
|
|
67
|
+
var childrenStack = __spreadArray([], (subItemGetter(foundItem) || []));
|
|
61
68
|
var children = [];
|
|
62
69
|
while (childrenStack.length) {
|
|
63
70
|
var currentItem = childrenStack.pop();
|
|
@@ -100,6 +107,7 @@ exports.getMultiSelectTreeValue = function (data, options) {
|
|
|
100
107
|
}
|
|
101
108
|
return newValue;
|
|
102
109
|
};
|
|
110
|
+
exports.getMultiSelectTreeValue = getMultiSelectTreeValue;
|
|
103
111
|
// /** @hidden */
|
|
104
112
|
// const mapCheckAndIntermidiate = (
|
|
105
113
|
// data,
|
|
@@ -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 (
|
|
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 __());
|
|
@@ -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<
|
|
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<
|
|
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.
|
|
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
|
|
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;
|
|
@@ -169,7 +169,7 @@ var DropDownBase = /** @class */ (function () {
|
|
|
169
169
|
delete eventData.type;
|
|
170
170
|
var handler = type && _this.component.props[type];
|
|
171
171
|
if (handler) {
|
|
172
|
-
handler.call(undefined, __assign({}, eventArgs, eventData));
|
|
172
|
+
handler.call(undefined, __assign(__assign({}, eventArgs), eventData));
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
175
|
};
|
|
@@ -221,7 +221,7 @@ var DropDownBase = /** @class */ (function () {
|
|
|
221
221
|
})]),
|
|
222
222
|
popupClass: PropTypes.string,
|
|
223
223
|
className: PropTypes.string,
|
|
224
|
-
appendTo: PropTypes.
|
|
224
|
+
appendTo: PropTypes.instanceOf(Element),
|
|
225
225
|
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
226
226
|
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
227
227
|
}),
|
|
@@ -236,7 +236,7 @@ var DropDownBase = /** @class */ (function () {
|
|
|
236
236
|
header: PropTypes.node,
|
|
237
237
|
footer: PropTypes.node
|
|
238
238
|
};
|
|
239
|
-
DropDownBase.propTypes = __assign({}, DropDownBase.basicPropTypes, { value: PropTypes.any, defaultValue: PropTypes.any, filterable: PropTypes.bool, filter: PropTypes.string, virtual: PropTypes.shape({
|
|
239
|
+
DropDownBase.propTypes = __assign(__assign({}, DropDownBase.basicPropTypes), { value: PropTypes.any, defaultValue: PropTypes.any, filterable: PropTypes.bool, filter: PropTypes.string, virtual: PropTypes.shape({
|
|
240
240
|
pageSize: PropTypes.number.isRequired,
|
|
241
241
|
skip: PropTypes.number.isRequired,
|
|
242
242
|
total: PropTypes.number.isRequired
|
package/dist/npm/common/List.js
CHANGED
|
@@ -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 (
|
|
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 __());
|
|
@@ -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 (
|
|
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 __());
|
|
@@ -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 (
|
|
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 __());
|
|
@@ -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 (
|
|
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 __());
|
|
@@ -25,8 +27,8 @@ var ListFilter = /** @class */ (function (_super) {
|
|
|
25
27
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
28
|
}
|
|
27
29
|
ListFilter.prototype.render = function () {
|
|
28
|
-
var _this = this;
|
|
29
30
|
var _a;
|
|
31
|
+
var _this = this;
|
|
30
32
|
var _b = this.props, size = _b.size, rounded = _b.rounded, fillMode = _b.fillMode, inputRef = _b.inputRef;
|
|
31
33
|
return (React.createElement("div", { className: "k-list-filter" },
|
|
32
34
|
React.createElement("span", { className: kendo_react_common_1.classNames('k-searchbox k-input', (_a = {},
|
|
@@ -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 (
|
|
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 __());
|
|
@@ -11,11 +11,13 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.MultiColumnList = void 0;
|
|
14
15
|
var React = require("react");
|
|
15
16
|
var List_1 = require("./List");
|
|
16
17
|
/**
|
|
17
18
|
* @hidden
|
|
18
19
|
*/
|
|
19
|
-
|
|
20
|
+
var MultiColumnList = function (props) {
|
|
20
21
|
return (React.createElement(List_1.default, __assign({}, props, { wrapperCssClass: "k-table-body k-table-scroller", listClassName: "k-table k-table-list", listStyle: __assign({}, props.listStyle) })));
|
|
21
22
|
};
|
|
23
|
+
exports.MultiColumnList = MultiColumnList;
|
|
@@ -34,7 +34,7 @@ export default class SearchBar extends React.Component<SearchBarProps> {
|
|
|
34
34
|
/**
|
|
35
35
|
* @hidden
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
get input(): HTMLInputElement | null;
|
|
38
38
|
componentDidUpdate(prevProps: SearchBarProps): void;
|
|
39
39
|
render(): any;
|
|
40
40
|
}
|
|
@@ -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 (
|
|
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 __());
|
|
@@ -29,7 +31,7 @@ var SearchBar = /** @class */ (function (_super) {
|
|
|
29
31
|
get: function () {
|
|
30
32
|
return this._input;
|
|
31
33
|
},
|
|
32
|
-
enumerable:
|
|
34
|
+
enumerable: false,
|
|
33
35
|
configurable: true
|
|
34
36
|
});
|
|
35
37
|
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
|
-
|
|
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;
|