@progress/kendo-react-dropdowns 4.14.1 → 5.0.1
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 +7 -4
- package/dist/es/AutoComplete/AutoComplete.js +30 -19
- package/dist/es/AutoComplete/AutoCompleteProps.d.ts +37 -0
- package/dist/es/ComboBox/ComboBox.d.ts +8 -1
- package/dist/es/ComboBox/ComboBox.js +46 -33
- package/dist/es/ComboBox/ComboBoxProps.d.ts +37 -0
- package/dist/es/DropDownList/DropDownList.d.ts +6 -8
- package/dist/es/DropDownList/DropDownList.js +56 -48
- package/dist/es/DropDownList/DropDownListProps.d.ts +37 -0
- package/dist/es/DropDownTree/DropDownTree.js +44 -24
- package/dist/es/DropDownTree/DropDownTreeProps.d.ts +37 -0
- package/dist/es/MultiColumnComboBox/MultiColumnComboBox.d.ts +37 -0
- package/dist/es/MultiColumnComboBox/MultiColumnComboBox.js +23 -12
- package/dist/es/MultiSelect/MultiSelect.d.ts +8 -5
- package/dist/es/MultiSelect/MultiSelect.js +51 -32
- package/dist/es/MultiSelect/MultiSelectProps.d.ts +38 -1
- package/dist/es/MultiSelect/TagList.d.ts +2 -1
- package/dist/es/MultiSelect/TagList.js +10 -15
- package/dist/es/MultiSelectTree/MultiSelectTree.js +42 -29
- package/dist/es/MultiSelectTree/MultiSelectTreeProps.d.ts +37 -0
- package/dist/es/common/ClearButton.js +2 -1
- package/dist/es/common/DropDownBase.d.ts +2 -3
- package/dist/es/common/DropDownBase.js +2 -16
- package/dist/es/common/List.d.ts +1 -0
- package/dist/es/common/List.js +3 -2
- package/dist/es/common/ListDefaultItem.js +2 -2
- package/dist/es/common/ListFilter.d.ts +5 -0
- package/dist/es/common/ListFilter.js +12 -3
- package/dist/es/common/ListItem.js +5 -5
- package/dist/es/common/MultiColumnList.js +1 -1
- package/dist/es/common/SearchBar.d.ts +1 -4
- package/dist/es/common/SearchBar.js +2 -8
- package/dist/es/common/VirtualScroll.js +3 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/AutoComplete/AutoComplete.d.ts +7 -4
- package/dist/npm/AutoComplete/AutoComplete.js +29 -18
- package/dist/npm/AutoComplete/AutoCompleteProps.d.ts +37 -0
- package/dist/npm/ComboBox/ComboBox.d.ts +8 -1
- package/dist/npm/ComboBox/ComboBox.js +45 -32
- package/dist/npm/ComboBox/ComboBoxProps.d.ts +37 -0
- package/dist/npm/DropDownList/DropDownList.d.ts +6 -8
- package/dist/npm/DropDownList/DropDownList.js +55 -47
- package/dist/npm/DropDownList/DropDownListProps.d.ts +37 -0
- package/dist/npm/DropDownTree/DropDownTree.js +43 -23
- package/dist/npm/DropDownTree/DropDownTreeProps.d.ts +37 -0
- package/dist/npm/MultiColumnComboBox/MultiColumnComboBox.d.ts +37 -0
- package/dist/npm/MultiColumnComboBox/MultiColumnComboBox.js +22 -11
- package/dist/npm/MultiSelect/MultiSelect.d.ts +8 -5
- package/dist/npm/MultiSelect/MultiSelect.js +50 -31
- package/dist/npm/MultiSelect/MultiSelectProps.d.ts +38 -1
- package/dist/npm/MultiSelect/TagList.d.ts +2 -1
- package/dist/npm/MultiSelect/TagList.js +10 -15
- package/dist/npm/MultiSelectTree/MultiSelectTree.js +40 -27
- package/dist/npm/MultiSelectTree/MultiSelectTreeProps.d.ts +37 -0
- package/dist/npm/common/ClearButton.js +2 -1
- package/dist/npm/common/DropDownBase.d.ts +2 -3
- package/dist/npm/common/DropDownBase.js +2 -16
- package/dist/npm/common/List.d.ts +1 -0
- package/dist/npm/common/List.js +3 -2
- package/dist/npm/common/ListDefaultItem.js +2 -2
- package/dist/npm/common/ListFilter.d.ts +5 -0
- package/dist/npm/common/ListFilter.js +12 -3
- package/dist/npm/common/ListItem.js +5 -5
- package/dist/npm/common/MultiColumnList.js +1 -1
- package/dist/npm/common/SearchBar.d.ts +1 -4
- package/dist/npm/common/SearchBar.js +2 -8
- package/dist/npm/common/VirtualScroll.js +3 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-react-dropdowns.js +1 -1
- package/package.json +19 -13
|
@@ -37,6 +37,7 @@ var utils_1 = require("../common/utils");
|
|
|
37
37
|
var kendo_react_common_2 = require("@progress/kendo-react-common");
|
|
38
38
|
var package_metadata_1 = require("../package-metadata");
|
|
39
39
|
var VALIDATION_MESSAGE = 'Please select a value from the list!';
|
|
40
|
+
var sizeMap = kendo_react_common_1.kendoThemeMaps.sizeMap, roundedMap = kendo_react_common_1.kendoThemeMaps.roundedMap;
|
|
40
41
|
/**
|
|
41
42
|
* @hidden
|
|
42
43
|
*/
|
|
@@ -75,27 +76,9 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
75
76
|
_this.base.triggerPageChangeCornerItems(item, state);
|
|
76
77
|
}
|
|
77
78
|
};
|
|
78
|
-
_this.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
var opened = _this.props.opened !== undefined ? _this.props.opened : _this.state.opened;
|
|
82
|
-
var value = _this.value;
|
|
83
|
-
var selectedIndex = data.findIndex(function (i) { return utils_1.areSame(i, value, dataItemKey); });
|
|
84
|
-
var text = utils_1.getItemValue(value, textField);
|
|
85
|
-
var valueDefaultRendering = (React.createElement("span", { className: "k-input" }, text));
|
|
86
|
-
var valueElement = valueRender !== undefined ?
|
|
87
|
-
valueRender.call(undefined, valueDefaultRendering, value) : valueDefaultRendering;
|
|
88
|
-
return (React.createElement("span", { ref: function (el) { return _this.base.wrapper = el; }, role: 'listbox', tabIndex: kendo_react_common_1.getTabIndex(tabIndex, disabled), accessKey: _this.props.accessKey, className: kendo_react_common_1.classNames('k-dropdown-wrap', {
|
|
89
|
-
'k-state-focused': focused,
|
|
90
|
-
'k-state-disabled': disabled
|
|
91
|
-
}), onKeyDown: _this.handleKeyDown, onKeyPress: _this.handleKeyPress, onClick: disabled ? undefined : _this.handleWrapperClick, "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.skip)) : undefined, "aria-label": _this.props.label, "aria-labelledby": _this.props.ariaLabelledBy, "aria-describedby": _this.props.ariaDescribedBy, id: _this.props.id, title: _this.props.title },
|
|
92
|
-
valueElement,
|
|
93
|
-
React.createElement("span", { className: "k-select" },
|
|
94
|
-
React.createElement("span", { className: kendo_react_common_1.classNames('k-icon', iconClassName, {
|
|
95
|
-
'k-i-arrow-s': !loading && !iconClassName,
|
|
96
|
-
'k-i-loading': loading && !iconClassName
|
|
97
|
-
}) })),
|
|
98
|
-
_this.dummySelect(value)));
|
|
79
|
+
_this.componentRef = function (element) {
|
|
80
|
+
_this._element = element;
|
|
81
|
+
_this.base.wrapper = element;
|
|
99
82
|
};
|
|
100
83
|
_this.dummySelect = function (value) {
|
|
101
84
|
/* Dummy component to support forms */
|
|
@@ -103,18 +86,21 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
103
86
|
React.createElement("option", { value: _this.props.valueMap ? _this.props.valueMap.call(undefined, value) : value })));
|
|
104
87
|
};
|
|
105
88
|
_this.renderListContainer = function () {
|
|
106
|
-
var _a
|
|
89
|
+
var _a;
|
|
90
|
+
var _b = _this.props, header = _b.header, footer = _b.footer, dir = _b.dir, _c = _b.data, data = _c === void 0 ? [] : _c, size = _b.size;
|
|
107
91
|
var base = _this.base;
|
|
108
92
|
var popupSettings = base.getPopupSettings();
|
|
109
93
|
var opened = _this.props.opened !== undefined ? _this.props.opened : _this.state.opened;
|
|
110
|
-
var virtual = _this.props.virtual !== undefined;
|
|
111
94
|
var popupWidth = popupSettings.width !== undefined ? popupSettings.width : base.popupWidth;
|
|
112
95
|
var listContainerProps = {
|
|
113
96
|
dir: dir !== undefined ? dir : base.dirCalculated,
|
|
114
97
|
width: popupWidth,
|
|
115
98
|
popupSettings: {
|
|
116
|
-
popupClass: popupSettings.popupClass,
|
|
117
|
-
|
|
99
|
+
popupClass: kendo_react_common_1.classNames(popupSettings.popupClass, 'k-list', (_a = {},
|
|
100
|
+
_a["k-list-" + (sizeMap[size] || size)] = size,
|
|
101
|
+
_a['k-virtual-list'] = _this.base.vs.enabled,
|
|
102
|
+
_a)),
|
|
103
|
+
className: popupSettings.className,
|
|
118
104
|
animate: popupSettings.animate,
|
|
119
105
|
anchor: _this.element,
|
|
120
106
|
show: opened,
|
|
@@ -126,15 +112,10 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
126
112
|
};
|
|
127
113
|
return (React.createElement(ListContainer_1.default, __assign({}, listContainerProps),
|
|
128
114
|
_this.renderListFilter(),
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
_this.
|
|
132
|
-
|
|
133
|
-
!virtual && header,
|
|
134
|
-
_this.renderList(),
|
|
135
|
-
!virtual && footer,
|
|
136
|
-
_this.base.renderScrollElement())),
|
|
137
|
-
virtual && footer));
|
|
115
|
+
_this.renderDefaultItem(),
|
|
116
|
+
header && React.createElement("div", { className: "k-list-header" }, header),
|
|
117
|
+
_this.renderList(),
|
|
118
|
+
footer && React.createElement("div", { className: "k-list-footer" }, footer)));
|
|
138
119
|
};
|
|
139
120
|
_this.renderList = function () {
|
|
140
121
|
var _a = _this.props, _b = _a.data, data = _b === void 0 ? [] : _b, textField = _a.textField, dataItemKey = _a.dataItemKey, _c = _a.virtual, virtual = _c === void 0 ? { skip: 0 } : _c, listNoDataRender = _a.listNoDataRender, itemRender = _a.itemRender;
|
|
@@ -143,13 +124,13 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
143
124
|
var opened = _this.props.opened !== undefined ? _this.props.opened : _this.state.opened;
|
|
144
125
|
var popupSettings = _this.base.getPopupSettings();
|
|
145
126
|
var translate = "translateY(" + vs.translate + "px)";
|
|
146
|
-
return (React.createElement(List_1.default, { id: _this.base.listBoxId, show: opened, data: data.slice(), focusedIndex: _this.focusedIndex(), value: _this.value, textField: textField, valueField: dataItemKey, optionsGuid: _this.base.guid, listRef: function (list) { return vs.list = _this.base.list = list; }, wrapperStyle:
|
|
147
|
-
|
|
148
|
-
|
|
127
|
+
return (React.createElement(List_1.default, { id: _this.base.listBoxId, show: opened, data: data.slice(), focusedIndex: _this.focusedIndex(), value: _this.value, textField: textField, valueField: dataItemKey, optionsGuid: _this.base.guid, listRef: function (list) { return vs.list = _this.base.list = list; }, wrapperStyle: { maxHeight: popupSettings.height }, wrapperCssClass: "k-list-content", listStyle: vs.enabled ? { transform: translate } : undefined, key: "listkey", skip: skip, onClick: _this.handleItemClick, itemRender: itemRender, noDataRender: listNoDataRender, onScroll: function (e) {
|
|
128
|
+
vs.scrollHandler(e);
|
|
129
|
+
}, wrapperRef: vs.scrollerRef, scroller: _this.base.renderScrollElement() }));
|
|
149
130
|
};
|
|
150
131
|
_this.renderListFilter = function () {
|
|
151
132
|
var filterText = _this.props.filter !== undefined ? _this.props.filter : _this.state.text;
|
|
152
|
-
return _this.props.filterable && (React.createElement(ListFilter_1.default, { value: filterText, ref: function (filter) { return _this._filterInput = filter && filter.input; }, onChange: _this.handleListFilterChange, onKeyDown: _this.handleKeyDown }));
|
|
133
|
+
return _this.props.filterable && (React.createElement(ListFilter_1.default, { value: filterText, ref: function (filter) { return _this._filterInput = filter && filter.input; }, onChange: _this.handleListFilterChange, onKeyDown: _this.handleKeyDown, size: _this.props.size, rounded: _this.props.rounded, fillMode: _this.props.fillMode }));
|
|
153
134
|
};
|
|
154
135
|
_this.renderDefaultItem = function () {
|
|
155
136
|
var _a = _this.props, textField = _a.textField, defaultItem = _a.defaultItem, dataItemKey = _a.dataItemKey;
|
|
@@ -285,6 +266,9 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
285
266
|
_this.applyState(state);
|
|
286
267
|
};
|
|
287
268
|
_this.handleWrapperClick = function (event) {
|
|
269
|
+
if (event.isPropagationStopped()) {
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
288
272
|
var state = _this.base.initState();
|
|
289
273
|
state.syntheticEvent = event;
|
|
290
274
|
if (!_this.state.focused) {
|
|
@@ -510,10 +494,11 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
510
494
|
* @hidden
|
|
511
495
|
*/
|
|
512
496
|
DropDownListWithoutContext.prototype.render = function () {
|
|
513
|
-
var
|
|
514
|
-
var
|
|
497
|
+
var _a, _b;
|
|
498
|
+
var _c = this.props, style = _c.style, className = _c.className, label = _c.label, dir = _c.dir, virtual = _c.virtual, size = _c.size, rounded = _c.rounded, fillMode = _c.fillMode;
|
|
515
499
|
var opened = this.props.opened !== undefined ? this.props.opened : this.state.opened;
|
|
516
|
-
var
|
|
500
|
+
var value = this.value;
|
|
501
|
+
var text = utils_1.getItemValue(value, this.props.textField);
|
|
517
502
|
var isValid = !this.validityStyles || this.validity.valid;
|
|
518
503
|
var base = this.base;
|
|
519
504
|
var vs = base.vs;
|
|
@@ -523,12 +508,35 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
523
508
|
base.vs.total = virtual.total;
|
|
524
509
|
base.vs.pageSize = virtual.pageSize;
|
|
525
510
|
}
|
|
526
|
-
var
|
|
527
|
-
|
|
528
|
-
|
|
511
|
+
var _d = this.props, dataItemKey = _d.dataItemKey, _e = _d.data, data = _e === void 0 ? [] : _e, disabled = _d.disabled, tabIndex = _d.tabIndex, loading = _d.loading, iconClassName = _d.iconClassName, valueRender = _d.valueRender;
|
|
512
|
+
var focused = this.state.focused;
|
|
513
|
+
var selectedIndex = data.findIndex(function (i) { return utils_1.areSame(i, value, dataItemKey); });
|
|
514
|
+
var valueDefaultRendering = (React.createElement("span", { className: "k-input-inner" },
|
|
515
|
+
React.createElement("span", { className: "k-input-value-text" }, text)));
|
|
516
|
+
var valueElement = valueRender !== undefined ?
|
|
517
|
+
valueRender.call(undefined, valueDefaultRendering, value) : valueDefaultRendering;
|
|
518
|
+
var dropdownlist = (React.createElement("span", { ref: this.componentRef, className: kendo_react_common_1.classNames('k-dropdownlist k-picker', className, (_a = {},
|
|
519
|
+
_a["k-picker-" + (sizeMap[size] || size)] = size,
|
|
520
|
+
_a["k-rounded-" + (roundedMap[rounded] || rounded)] = rounded,
|
|
521
|
+
_a["k-picker-" + fillMode] = fillMode,
|
|
522
|
+
_a['k-focused'] = focused,
|
|
523
|
+
_a['k-disabled'] = disabled,
|
|
524
|
+
_a['k-invalid'] = !isValid,
|
|
525
|
+
_a['k-valid'] = isValid,
|
|
526
|
+
_a['k-loading'] = loading,
|
|
527
|
+
_a['k-required'] = this.required,
|
|
528
|
+
_a)), style: !label
|
|
529
529
|
? style
|
|
530
|
-
: __assign({}, style, { width: undefined }), dir: dir, onMouseDown: opened ? utils_1.preventDefaultNonInputs : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur },
|
|
531
|
-
|
|
530
|
+
: __assign({}, style, { width: undefined }), dir: dir, onMouseDown: opened ? utils_1.preventDefaultNonInputs : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, tabIndex: kendo_react_common_1.getTabIndex(tabIndex, disabled), accessKey: this.props.accessKey, onKeyDown: this.handleKeyDown, onKeyPress: this.handleKeyPress, onClick: disabled ? undefined : this.handleWrapperClick, role: 'listbox', "aria-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.label, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, id: this.props.id, title: this.props.title },
|
|
531
|
+
valueElement,
|
|
532
|
+
loading && React.createElement("span", { className: "k-icon k-i-loading", key: "loading" }),
|
|
533
|
+
React.createElement("button", { type: "button", className: kendo_react_common_1.classNames('k-input-button k-button k-icon-button', (_b = {},
|
|
534
|
+
_b["k-button-" + (sizeMap[size] || size)] = size,
|
|
535
|
+
_b["k-button-" + fillMode] = fillMode,
|
|
536
|
+
_b["k-button-" + fillMode + "-base"] = fillMode,
|
|
537
|
+
_b)), onMouseDown: function (e) { return e.preventDefault(); } },
|
|
538
|
+
React.createElement("span", { className: kendo_react_common_1.classNames('k-button-icon k-icon k-i-arrow-s', iconClassName) })),
|
|
539
|
+
this.dummySelect(value),
|
|
532
540
|
this.renderListContainer()));
|
|
533
541
|
return label ? (React.createElement(kendo_react_labels_1.FloatingLabel, { label: label, editorValue: text, editorValid: isValid, editorDisabled: this.props.disabled, style: { width: style ? style.width : undefined }, children: dropdownlist })) : dropdownlist;
|
|
534
542
|
};
|
|
@@ -593,7 +601,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
593
601
|
/**
|
|
594
602
|
* @hidden
|
|
595
603
|
*/
|
|
596
|
-
DropDownListWithoutContext.defaultProps = __assign({ delay: 500, tabIndex: 0, ignoreCase: true }, DropDownBase_1.default.defaultProps, { required: false });
|
|
604
|
+
DropDownListWithoutContext.defaultProps = __assign({ delay: 500, tabIndex: 0, ignoreCase: true }, DropDownBase_1.default.defaultProps, { required: false, size: 'medium', rounded: 'medium', fillMode: 'solid' });
|
|
597
605
|
return DropDownListWithoutContext;
|
|
598
606
|
}(React.Component));
|
|
599
607
|
exports.DropDownListWithoutContext = DropDownListWithoutContext;
|
|
@@ -244,4 +244,41 @@ export interface DropDownListProps extends FormComponentProps {
|
|
|
244
244
|
* Useful when the DropDownList is placed inside a toolbar which needs to handle left and right keys.
|
|
245
245
|
*/
|
|
246
246
|
leftRightKeysNavigation?: boolean;
|
|
247
|
+
/**
|
|
248
|
+
* Configures the `size` of the DropDownList.
|
|
249
|
+
*
|
|
250
|
+
* The available options are:
|
|
251
|
+
* - small
|
|
252
|
+
* - medium
|
|
253
|
+
* - large
|
|
254
|
+
* - null—Does not set a size `className`.
|
|
255
|
+
*
|
|
256
|
+
* @default `medium`
|
|
257
|
+
*/
|
|
258
|
+
size?: null | 'small' | 'medium' | 'large';
|
|
259
|
+
/**
|
|
260
|
+
* Configures the `roundness` of the DropDownList.
|
|
261
|
+
*
|
|
262
|
+
* The available options are:
|
|
263
|
+
* - small
|
|
264
|
+
* - medium
|
|
265
|
+
* - large
|
|
266
|
+
* - full
|
|
267
|
+
* - null—Does not set a rounded `className`.
|
|
268
|
+
*
|
|
269
|
+
* @default `medium`
|
|
270
|
+
*/
|
|
271
|
+
rounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
272
|
+
/**
|
|
273
|
+
* Configures the `fillMode` of the DropDownList.
|
|
274
|
+
*
|
|
275
|
+
* The available options are:
|
|
276
|
+
* - solid
|
|
277
|
+
* - flat
|
|
278
|
+
* - outline
|
|
279
|
+
* - null—Does not set a fillMode `className`.
|
|
280
|
+
*
|
|
281
|
+
* @default `solid`
|
|
282
|
+
*/
|
|
283
|
+
fillMode?: null | 'solid' | 'flat' | 'outline';
|
|
247
284
|
}
|
|
@@ -24,8 +24,12 @@ var useDropdownWidth_1 = require("./useDropdownWidth");
|
|
|
24
24
|
var ListNoData_1 = require("./ListNoData");
|
|
25
25
|
var messages_1 = require("./../messages");
|
|
26
26
|
var kendo_react_labels_1 = require("@progress/kendo-react-labels");
|
|
27
|
+
var ListFilter_1 = require("../common/ListFilter");
|
|
28
|
+
var sizeMap = kendo_react_common_1.kendoThemeMaps.sizeMap, roundedMap = kendo_react_common_1.kendoThemeMaps.roundedMap;
|
|
27
29
|
var VALIDATION_MESSAGE = 'Please select a value from the list!';
|
|
28
|
-
var ValueHolder = function (props) {
|
|
30
|
+
var ValueHolder = function (props) {
|
|
31
|
+
return React.createElement("span", { className: "k-input-value-text" }, props.children);
|
|
32
|
+
};
|
|
29
33
|
var toLevel = function (hierarchicalIndex) {
|
|
30
34
|
return hierarchicalIndex.split('_').map(function (i) { return parseInt(i, 10); });
|
|
31
35
|
};
|
|
@@ -46,7 +50,10 @@ var defaultProps = {
|
|
|
46
50
|
height: '200px'
|
|
47
51
|
},
|
|
48
52
|
required: false,
|
|
49
|
-
validityStyles: true
|
|
53
|
+
validityStyles: true,
|
|
54
|
+
size: 'medium',
|
|
55
|
+
rounded: 'medium',
|
|
56
|
+
fillMode: 'solid'
|
|
50
57
|
};
|
|
51
58
|
/**
|
|
52
59
|
* Represents the PropsContext of the `DropDownTree` component.
|
|
@@ -62,11 +69,12 @@ exports.DropDownTreePropsContext = kendo_react_common_1.createPropsContext();
|
|
|
62
69
|
* Obtaining the `ref` returns an object of type [DropDownTreeHandle]({% slug api_dropdowns_dropdowntreehandle %}).
|
|
63
70
|
*/
|
|
64
71
|
exports.DropDownTree = React.forwardRef(function (directProps, ref) {
|
|
72
|
+
var _a, _b;
|
|
65
73
|
kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
|
|
66
74
|
var props = kendo_react_common_1.usePropsContext(exports.DropDownTreePropsContext, directProps);
|
|
67
75
|
var calculatedId = React.useMemo(function () { return kendo_react_common_1.guid(); }, []);
|
|
68
76
|
var id = props.id || calculatedId;
|
|
69
|
-
var
|
|
77
|
+
var _c = props.data, data = _c === void 0 ? [] : _c, dataItemKey = props.dataItemKey, _d = props.popupSettings, popupSettings = _d === void 0 ? {} : _d, _e = props.style, style = _e === void 0 ? {} : _e, opened = props.opened, disabled = props.disabled, _f = props.onOpen, onOpen = _f === void 0 ? kendo_react_common_1.noop : _f, _g = props.onClose, onClose = _g === void 0 ? kendo_react_common_1.noop : _g, placeholder = props.placeholder, label = props.label, name = props.name, _h = props.selectField, selectField = _h === void 0 ? defaultProps.selectField : _h, _j = props.subItemsField, subItemsField = _j === void 0 ? defaultProps.subItemsField : _j, validationMessage = props.validationMessage, valid = props.valid, required = props.required, validityStyles = props.validityStyles;
|
|
70
78
|
var tabIndex = kendo_react_common_1.getTabIndex(props.tabIndex, disabled);
|
|
71
79
|
var target = React.useRef(null);
|
|
72
80
|
var elementRef = React.useRef(null);
|
|
@@ -158,13 +166,13 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
|
|
|
158
166
|
if (keyCode === kendo_react_common_1.Keys.esc || (altKey && keyCode === kendo_react_common_1.Keys.up)) {
|
|
159
167
|
closePopup(ev);
|
|
160
168
|
}
|
|
161
|
-
else if (treeview && treeview.querySelector('.k-
|
|
169
|
+
else if (treeview && treeview.querySelector('.k-focus') &&
|
|
162
170
|
(keyCode === kendo_react_common_1.Keys.up || keyCode === kendo_react_common_1.Keys.down ||
|
|
163
171
|
keyCode === kendo_react_common_1.Keys.left || keyCode === kendo_react_common_1.Keys.right ||
|
|
164
172
|
keyCode === kendo_react_common_1.Keys.home || keyCode === kendo_react_common_1.Keys.end)) {
|
|
165
173
|
if (keyCode === kendo_react_common_1.Keys.up && inputRef.current) {
|
|
166
174
|
var items = Array.from(treeview.querySelectorAll('.k-treeview-item'));
|
|
167
|
-
var focusedItem = items.slice().reverse().find(function (i) { return Boolean(i && i.querySelector('.k-
|
|
175
|
+
var focusedItem = items.slice().reverse().find(function (i) { return Boolean(i && i.querySelector('.k-focus')); });
|
|
168
176
|
if (focusedItem && items.indexOf(focusedItem) === 0) {
|
|
169
177
|
return switchFocus(function () { focusElement(inputRef.current); });
|
|
170
178
|
}
|
|
@@ -285,6 +293,7 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
|
|
|
285
293
|
event.preventDefault();
|
|
286
294
|
}, [controlled, props.onChange, isOpen, opened, onClose]);
|
|
287
295
|
var onExpand = React.useCallback(function (event) {
|
|
296
|
+
event.syntheticEvent.stopPropagation();
|
|
288
297
|
if (props.onExpandChange && target.current) {
|
|
289
298
|
var item = event.item, itemHierarchicalIndex = event.itemHierarchicalIndex, nativeEvent = event.nativeEvent, syntheticEvent = event.syntheticEvent;
|
|
290
299
|
var expandEvent = {
|
|
@@ -320,24 +329,34 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
|
|
|
320
329
|
var ValueComponent = props.valueHolder || ValueHolder;
|
|
321
330
|
var localization = kendo_react_intl_1.useLocalization();
|
|
322
331
|
var isValid = !validityStyles || validity.valid;
|
|
323
|
-
var
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
332
|
+
var size = props.size, rounded = props.rounded, fillMode = props.fillMode;
|
|
333
|
+
var dropdowntree = (React.createElement("span", { className: kendo_react_common_1.classNames('k-dropdowntree k-picker', props.className, (_a = {},
|
|
334
|
+
_a["k-picker-" + (sizeMap[size] || size)] = size,
|
|
335
|
+
_a["k-rounded-" + (roundedMap[rounded] || rounded)] = rounded,
|
|
336
|
+
_a["k-picker-" + fillMode] = fillMode,
|
|
337
|
+
_a['k-focus'] = focused,
|
|
338
|
+
_a['k-valid'] = isValid,
|
|
339
|
+
_a['k-invalid'] = !isValid,
|
|
340
|
+
_a['k-loading'] = props.loading,
|
|
341
|
+
_a['k-required'] = required,
|
|
342
|
+
_a['k-disabled'] = props.disabled,
|
|
343
|
+
_a)), tabIndex: tabIndex, accessKey: props.accessKey, id: id, style: label ? __assign({}, style, { width: undefined }) : style, dir: dir, ref: elementRef, onKeyDown: disabled ? undefined : onWrapperKeyDown, onMouseDown: onWrapperMouseDown, onClick: disabled ? undefined : onWrapperClick, onFocus: onFocus, onBlur: onBlur, role: "listbox", "aria-haspopup": "true", "aria-expanded": isOpen, "aria-disabled": disabled, "aria-label": label, "aria-labelledby": props.ariaLabelledBy, "aria-describedby": props.ariaDescribedBy },
|
|
344
|
+
React.createElement("span", { className: "k-input-inner" },
|
|
345
|
+
React.createElement(ValueComponent, { item: value }, currentValueText || placeholder)),
|
|
346
|
+
props.loading && React.createElement("span", { className: "k-icon k-i-loading" }),
|
|
347
|
+
hasValue && !disabled && (React.createElement("span", { onClick: onClear, className: "k-clear-value", title: localization.toLanguageString(messages_1.clear, messages_1.messages[messages_1.clear]), role: "button", tabIndex: -1, onMouseDown: function (e) { return e.preventDefault(); } },
|
|
348
|
+
React.createElement("span", { className: "k-icon k-i-x" }))),
|
|
349
|
+
React.createElement("button", { type: "button", "aria-label": "select", className: kendo_react_common_1.classNames('k-input-button k-button k-icon-button', (_b = {},
|
|
350
|
+
_b["k-button-" + (sizeMap[size] || size)] = size,
|
|
351
|
+
_b["k-button-" + fillMode] = fillMode,
|
|
352
|
+
_b["k-button-" + fillMode + "-base"] = fillMode,
|
|
353
|
+
_b)) },
|
|
354
|
+
React.createElement("span", { className: "k-button-icon k-icon k-i-arrow-s" })),
|
|
355
|
+
React.createElement("select", { name: name, ref: selectRef, tabIndex: -1, "aria-hidden": true, title: label, style: { opacity: 0, width: 1, border: 0, zIndex: -1, position: 'absolute', left: '50%' } },
|
|
356
|
+
React.createElement("option", { value: props.valueMap ? props.valueMap.call(undefined, value) : value })),
|
|
357
|
+
React.createElement(kendo_react_popup_1.Popup, { className: kendo_react_common_1.classNames(popupSettings.className, { 'k-rtl': dir === 'rtl' }), popupClass: popupSettings.popupClass, style: popupStyles, animate: popupSettings.animate, anchor: elementRef.current, show: isOpen, onOpen: onPopupOpened, onClose: onPopupClosed, appendTo: popupSettings.appendTo },
|
|
358
|
+
props.filterable && (React.createElement(ListFilter_1.default, { value: props.filter === undefined ? filter : props.filter, inputRef: inputRef, onChange: onFilterChange, onKeyDown: onInputKeyDown, size: size, rounded: rounded, fillMode: fillMode })),
|
|
359
|
+
data.length > 0 ? (React.createElement(kendo_react_treeview_1.TreeView, { ref: treeViewRef, tabIndex: tabIndex, data: treeViewData, focusIdField: dataItemKey, textField: props.textField, selectField: selectField, expandField: props.expandField, childrenField: subItemsField, expandIcons: true, onItemClick: onChange, onExpandChange: onExpand, size: size, item: props.item })) : (React.createElement(NoData, null, localization.toLanguageString(messages_1.nodata, messages_1.messages[messages_1.nodata]))))));
|
|
341
360
|
return label ? (React.createElement(kendo_react_labels_1.FloatingLabel, { label: label, editorValue: currentValueText, editorPlaceholder: placeholder, editorValid: isValid, editorDisabled: disabled, editorId: id, style: { width: style ? style.width : undefined }, children: dropdowntree, dir: dir })) : dropdowntree;
|
|
342
361
|
});
|
|
343
362
|
var propTypes = {
|
|
@@ -392,4 +411,5 @@ var propTypes = {
|
|
|
392
411
|
listNoData: PropTypes.func
|
|
393
412
|
};
|
|
394
413
|
exports.DropDownTree.displayName = 'KendoReactDropDownTree';
|
|
414
|
+
exports.DropDownTree.defaultProps = defaultProps;
|
|
395
415
|
exports.DropDownTree.propTypes = propTypes;
|
|
@@ -246,4 +246,41 @@ export interface DropDownTreeProps extends FormComponentProps {
|
|
|
246
246
|
* ([see example]({% slug customrendering_dropdowntree %}#toc-no-data)).
|
|
247
247
|
*/
|
|
248
248
|
listNoData?: React.ComponentType<ListNoDataProps>;
|
|
249
|
+
/**
|
|
250
|
+
* Configures the `size` of the DropDownTree.
|
|
251
|
+
*
|
|
252
|
+
* The available options are:
|
|
253
|
+
* - small
|
|
254
|
+
* - medium
|
|
255
|
+
* - large
|
|
256
|
+
* - null—Does not set a size `className`.
|
|
257
|
+
*
|
|
258
|
+
* @default `medium`
|
|
259
|
+
*/
|
|
260
|
+
size?: null | 'small' | 'medium' | 'large';
|
|
261
|
+
/**
|
|
262
|
+
* Configures the `roundness` of the DropDownTree.
|
|
263
|
+
*
|
|
264
|
+
* The available options are:
|
|
265
|
+
* - small
|
|
266
|
+
* - medium
|
|
267
|
+
* - large
|
|
268
|
+
* - full
|
|
269
|
+
* - null—Does not set a rounded `className`.
|
|
270
|
+
*
|
|
271
|
+
* @default `medium`
|
|
272
|
+
*/
|
|
273
|
+
rounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
274
|
+
/**
|
|
275
|
+
* Configures the `fillMode` of the DropDownTree.
|
|
276
|
+
*
|
|
277
|
+
* The available options are:
|
|
278
|
+
* - solid
|
|
279
|
+
* - flat
|
|
280
|
+
* - outline
|
|
281
|
+
* - null—Does not set a fillMode `className`.
|
|
282
|
+
*
|
|
283
|
+
* @default `solid`
|
|
284
|
+
*/
|
|
285
|
+
fillMode?: null | 'solid' | 'flat' | 'outline';
|
|
249
286
|
}
|
|
@@ -151,6 +151,43 @@ export interface MultiColumnComboBoxProps extends ComboBoxProps {
|
|
|
151
151
|
* Sets the footer component of the MultiColumnComboBox.
|
|
152
152
|
*/
|
|
153
153
|
footer?: React.ReactNode;
|
|
154
|
+
/**
|
|
155
|
+
* Configures the `size` of the MultiColumnComboBox.
|
|
156
|
+
*
|
|
157
|
+
* The available options are:
|
|
158
|
+
* - small
|
|
159
|
+
* - medium
|
|
160
|
+
* - large
|
|
161
|
+
* - null—Does not set a size `className`.
|
|
162
|
+
*
|
|
163
|
+
* @default `medium`
|
|
164
|
+
*/
|
|
165
|
+
size?: null | 'small' | 'medium' | 'large';
|
|
166
|
+
/**
|
|
167
|
+
* Configures the `roundness` of the MultiColumnComboBox.
|
|
168
|
+
*
|
|
169
|
+
* The available options are:
|
|
170
|
+
* - small
|
|
171
|
+
* - medium
|
|
172
|
+
* - large
|
|
173
|
+
* - full
|
|
174
|
+
* - null—Does not set a rounded `className`.
|
|
175
|
+
*
|
|
176
|
+
* @default `medium`
|
|
177
|
+
*/
|
|
178
|
+
rounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
179
|
+
/**
|
|
180
|
+
* Configures the `fillMode` of the MultiColumnComboBox.
|
|
181
|
+
*
|
|
182
|
+
* The available options are:
|
|
183
|
+
* - solid
|
|
184
|
+
* - flat
|
|
185
|
+
* - outline
|
|
186
|
+
* - null—Does not set a fillMode `className`.
|
|
187
|
+
*
|
|
188
|
+
* @default `solid`
|
|
189
|
+
*/
|
|
190
|
+
fillMode?: null | 'solid' | 'flat' | 'outline';
|
|
154
191
|
}
|
|
155
192
|
/**
|
|
156
193
|
* Represents the target(element and props) of the MultiColumnComboBoxChangeEvent.
|
|
@@ -25,6 +25,7 @@ var PropTypes = require("prop-types");
|
|
|
25
25
|
var MultiColumnList_1 = require("./../common/MultiColumnList");
|
|
26
26
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
27
27
|
var ComboBox_1 = require("../ComboBox/ComboBox");
|
|
28
|
+
var sizeMap = kendo_react_common_1.kendoThemeMaps.sizeMap;
|
|
28
29
|
var columnWidth = function (width, defaultWidth) {
|
|
29
30
|
if (width) {
|
|
30
31
|
return typeof width === 'number' ? width + 'px' : width;
|
|
@@ -46,11 +47,12 @@ exports.MultiColumnComboBoxPropsContext = kendo_react_common_1.createPropsContex
|
|
|
46
47
|
*
|
|
47
48
|
*/
|
|
48
49
|
exports.MultiColumnComboBox = React.forwardRef(function (directProps, ref) {
|
|
50
|
+
var _a;
|
|
49
51
|
var props = kendo_react_common_1.usePropsContext(exports.MultiColumnComboBoxPropsContext, directProps);
|
|
50
52
|
var target = React.useRef(null);
|
|
51
53
|
var comboBoxRef = React.useRef(null);
|
|
52
54
|
var scrollbarWidth = kendo_react_common_1.getScrollbarWidth();
|
|
53
|
-
var
|
|
55
|
+
var _b = props.columns, columns = _b === void 0 ? defaultProps.columns : _b, _c = props.popupSettings, popupSettings = _c === void 0 ? defaultProps.popupSettings : _c, 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
56
|
React.useImperativeHandle(target, function () {
|
|
55
57
|
return ({
|
|
56
58
|
element: comboBoxRef.current && comboBoxRef.current.element,
|
|
@@ -70,19 +72,19 @@ exports.MultiColumnComboBox = React.forwardRef(function (directProps, ref) {
|
|
|
70
72
|
}, [columns, scrollbarWidth]);
|
|
71
73
|
var header = React.useMemo(function () { return (React.createElement(React.Fragment, null,
|
|
72
74
|
props.header,
|
|
73
|
-
React.createElement("div", { className: "k-
|
|
74
|
-
React.createElement("div", { className: "k-
|
|
75
|
-
React.createElement("table", { role: "presentation" },
|
|
75
|
+
React.createElement("div", { className: "k-table-header" },
|
|
76
|
+
React.createElement("div", { className: "k-table-header-wrap" },
|
|
77
|
+
React.createElement("table", { className: "k-table", role: "presentation" },
|
|
76
78
|
React.createElement("colgroup", null, columns.map(function (column, i) {
|
|
77
79
|
return (React.createElement("col", { key: column.uniqueKey ? column.uniqueKey : i, style: { width: column.width ? column.width : defaultProps.width } }));
|
|
78
80
|
})),
|
|
79
|
-
React.createElement("
|
|
80
|
-
React.createElement("tr",
|
|
81
|
-
return (React.createElement("th", { key: column.uniqueKey ? column.uniqueKey : i
|
|
81
|
+
React.createElement("thead", { className: 'k-table-thead' },
|
|
82
|
+
React.createElement("tr", { className: 'k-table-row' }, columns.map(function (column, i) {
|
|
83
|
+
return (React.createElement("th", { className: "k-table-th", key: column.uniqueKey ? column.uniqueKey : i }, column.header || '\u00A0'));
|
|
82
84
|
})))))))); }, [props.header, columns]);
|
|
83
85
|
var skip = props.virtual ? props.virtual.skip : 0;
|
|
84
86
|
var itemRender = React.useCallback(function (li, liProps) {
|
|
85
|
-
var children = columns.map(function (column, i) { return (React.createElement("span", { className: "k-
|
|
87
|
+
var children = columns.map(function (column, i) { return (React.createElement("span", { className: "k-table-td", style: { width: column.width ? column.width : defaultProps.width }, key: column.uniqueKey ? column.uniqueKey : i }, column.field ? kendo_react_common_1.getter(column.field)(liProps.dataItem) : '')); });
|
|
86
88
|
var group = undefined;
|
|
87
89
|
var curGroup, prevGroup, groupGetter, data = props.data || [];
|
|
88
90
|
var index = liProps.index - skip;
|
|
@@ -98,7 +100,11 @@ exports.MultiColumnComboBox = React.forwardRef(function (directProps, ref) {
|
|
|
98
100
|
children.push(React.createElement("div", { key: "group", className: "k-cell k-group-cell" },
|
|
99
101
|
React.createElement("span", null, group)));
|
|
100
102
|
}
|
|
101
|
-
var rendering = React.cloneElement(li, __assign({}, li.props
|
|
103
|
+
var rendering = React.cloneElement(li, __assign({}, li.props, { className: kendo_react_common_1.classNames('k-table-row', {
|
|
104
|
+
'k-table-alt-row': liProps.index % 2 !== 0,
|
|
105
|
+
'k-focus': liProps.focused,
|
|
106
|
+
'k-selected': liProps.selected
|
|
107
|
+
}) }), children);
|
|
102
108
|
return props.itemRender ? props.itemRender.call(undefined, rendering, liProps) : rendering;
|
|
103
109
|
}, [columns, props.groupField, props.itemRender, props.data, skip]);
|
|
104
110
|
var handleEvent = React.useCallback(function (handler, event) {
|
|
@@ -115,13 +121,18 @@ exports.MultiColumnComboBox = React.forwardRef(function (directProps, ref) {
|
|
|
115
121
|
var onPageChangeHandler = React.useCallback(function (event) { return handleEvent(onPageChange, event); }, [onPageChange]);
|
|
116
122
|
React.useEffect(function () { kendo_react_common_1.setScrollbarWidth(); });
|
|
117
123
|
var List = React.useCallback(function (listProps) { return React.createElement(MultiColumnList_1.MultiColumnList, __assign({}, listProps)); }, []);
|
|
118
|
-
return (React.createElement(ComboBox_1.ComboBox, __assign({}, other, { list: List, popupSettings: __assign({ width: popupWidth }, popupSettings, { popupClass: 'k-dropdowngrid-popup
|
|
124
|
+
return (React.createElement(ComboBox_1.ComboBox, __assign({}, other, { list: List, popupSettings: __assign({ width: popupWidth }, popupSettings, { popupClass: kendo_react_common_1.classNames('k-dropdowngrid-popup k-data-table', (_a = {},
|
|
125
|
+
_a["k-table-" + (sizeMap[size] || size)] = size,
|
|
126
|
+
_a)), 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 })));
|
|
119
127
|
});
|
|
120
128
|
var propTypes = __assign({}, ComboBox_1.ComboBoxWithoutContext.propTypes, { columns: PropTypes.any.isRequired });
|
|
121
129
|
var defaultProps = {
|
|
122
130
|
columns: [],
|
|
123
131
|
popupSettings: {},
|
|
124
|
-
width: '200px'
|
|
132
|
+
width: '200px',
|
|
133
|
+
size: 'medium',
|
|
134
|
+
rounded: 'medium',
|
|
135
|
+
fillMode: 'solid'
|
|
125
136
|
};
|
|
126
137
|
exports.MultiColumnComboBox.displayName = 'KendoMultiColumnComboBox';
|
|
127
138
|
// TODO: delete casting when @types/react is updated!
|
|
@@ -48,9 +48,6 @@ export declare class MultiSelectWithoutContext extends React.Component<MultiSele
|
|
|
48
48
|
skip: PropTypes.Validator<number>;
|
|
49
49
|
total: PropTypes.Validator<number>;
|
|
50
50
|
}>>;
|
|
51
|
-
/**
|
|
52
|
-
* @hidden
|
|
53
|
-
*/
|
|
54
51
|
onFilterChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
55
52
|
onPageChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
56
53
|
opened: PropTypes.Requireable<boolean>;
|
|
@@ -70,12 +67,14 @@ export declare class MultiSelectWithoutContext extends React.Component<MultiSele
|
|
|
70
67
|
}>>;
|
|
71
68
|
popupClass: PropTypes.Requireable<string>;
|
|
72
69
|
className: PropTypes.Requireable<string>;
|
|
73
|
-
appendTo: PropTypes.Requireable<
|
|
70
|
+
appendTo: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
74
71
|
width: PropTypes.Requireable<string | number>;
|
|
75
72
|
height: PropTypes.Requireable<string | number>;
|
|
76
73
|
}>>;
|
|
77
74
|
onOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
78
|
-
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
75
|
+
onClose: PropTypes.Requireable<(...args: any[]) => any>; /**
|
|
76
|
+
* @hidden
|
|
77
|
+
*/
|
|
79
78
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
80
79
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
81
80
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -91,6 +90,9 @@ export declare class MultiSelectWithoutContext extends React.Component<MultiSele
|
|
|
91
90
|
static defaultProps: {
|
|
92
91
|
autoClose: boolean;
|
|
93
92
|
required: boolean;
|
|
93
|
+
size: "small" | "medium" | "large";
|
|
94
|
+
rounded: "small" | "medium" | "large" | "full";
|
|
95
|
+
fillMode: "solid" | "flat" | "outline";
|
|
94
96
|
popupSettings: {
|
|
95
97
|
height: string;
|
|
96
98
|
};
|
|
@@ -162,6 +164,7 @@ export declare class MultiSelectWithoutContext extends React.Component<MultiSele
|
|
|
162
164
|
* @hidden
|
|
163
165
|
*/
|
|
164
166
|
render(): JSX.Element;
|
|
167
|
+
private componentRef;
|
|
165
168
|
private renderSearchbar;
|
|
166
169
|
private searchbarRef;
|
|
167
170
|
private onChangeHandler;
|