@progress/kendo-react-dropdowns 5.4.0-dev.202205271059 → 5.4.0-dev.202206061009
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 +6 -6
- package/dist/es/AutoComplete/AutoComplete.js +6 -4
- package/dist/es/ComboBox/ComboBox.d.ts +6 -6
- package/dist/es/ComboBox/ComboBox.js +12 -10
- package/dist/es/DropDownList/DropDownList.d.ts +3 -6
- package/dist/es/DropDownList/DropDownList.js +10 -8
- package/dist/es/DropDownTree/DropDownTree.d.ts +1 -1
- package/dist/es/DropDownTree/DropDownTree.js +15 -11
- package/dist/es/MultiColumnComboBox/MultiColumnComboBox.d.ts +2 -2
- package/dist/es/MultiColumnComboBox/MultiColumnComboBox.js +1 -1
- package/dist/es/MultiSelect/MultiSelect.d.ts +5 -5
- package/dist/es/MultiSelect/MultiSelect.js +23 -17
- package/dist/es/MultiSelect/TagList.d.ts +1 -0
- package/dist/es/MultiSelect/TagList.js +1 -1
- package/dist/es/MultiSelectTree/MultiSelectTree.d.ts +1 -1
- package/dist/es/MultiSelectTree/MultiSelectTree.js +14 -10
- package/dist/es/MultiSelectTree/utils.d.ts +1 -1
- package/dist/es/MultiSelectTree/utils.js +10 -6
- package/dist/es/common/DropDownBase.d.ts +1 -1
- package/dist/es/common/DropDownBase.js +2 -0
- package/dist/es/common/List.d.ts +2 -2
- package/dist/es/common/List.js +1 -1
- package/dist/es/common/ListContainer.d.ts +1 -0
- package/dist/es/common/ListFilter.js +6 -4
- package/dist/es/common/ListItem.d.ts +1 -1
- package/dist/es/common/Navigation.d.ts +1 -1
- package/dist/es/common/SearchBar.d.ts +1 -1
- package/dist/es/common/SearchBar.js +3 -1
- package/dist/es/common/VirtualScroll.d.ts +1 -1
- package/dist/es/common/VirtualScroll.js +5 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/AutoComplete/AutoComplete.d.ts +6 -6
- package/dist/npm/AutoComplete/AutoComplete.js +21 -19
- package/dist/npm/ComboBox/ComboBox.d.ts +6 -6
- package/dist/npm/ComboBox/ComboBox.js +46 -44
- package/dist/npm/DropDownList/DropDownList.d.ts +3 -6
- package/dist/npm/DropDownList/DropDownList.js +37 -35
- package/dist/npm/DropDownTree/DropDownTree.d.ts +1 -1
- package/dist/npm/DropDownTree/DropDownTree.js +31 -27
- package/dist/npm/MultiColumnComboBox/MultiColumnComboBox.d.ts +2 -2
- package/dist/npm/MultiColumnComboBox/MultiColumnComboBox.js +10 -10
- package/dist/npm/MultiSelect/MultiSelect.d.ts +5 -5
- package/dist/npm/MultiSelect/MultiSelect.js +43 -37
- package/dist/npm/MultiSelect/TagList.d.ts +1 -0
- package/dist/npm/MultiSelect/TagList.js +1 -1
- package/dist/npm/MultiSelectTree/MultiSelectTree.d.ts +1 -1
- package/dist/npm/MultiSelectTree/MultiSelectTree.js +28 -24
- package/dist/npm/MultiSelectTree/utils.d.ts +1 -1
- package/dist/npm/MultiSelectTree/utils.js +17 -13
- package/dist/npm/common/ClearButton.js +2 -2
- package/dist/npm/common/DropDownBase.d.ts +1 -1
- package/dist/npm/common/DropDownBase.js +7 -5
- package/dist/npm/common/List.d.ts +2 -2
- package/dist/npm/common/List.js +7 -7
- package/dist/npm/common/ListContainer.d.ts +1 -0
- package/dist/npm/common/ListDefaultItem.js +2 -2
- package/dist/npm/common/ListFilter.js +7 -5
- package/dist/npm/common/ListItem.d.ts +1 -1
- package/dist/npm/common/ListItem.js +2 -2
- package/dist/npm/common/Navigation.d.ts +1 -1
- package/dist/npm/common/Navigation.js +1 -1
- package/dist/npm/common/SearchBar.d.ts +1 -1
- package/dist/npm/common/SearchBar.js +3 -1
- package/dist/npm/common/VirtualScroll.d.ts +1 -1
- package/dist/npm/common/VirtualScroll.js +5 -1
- package/dist/npm/main.js +5 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-react-dropdowns.js +1 -1
- package/package.json +13 -13
|
@@ -52,8 +52,10 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
52
52
|
* @hidden
|
|
53
53
|
*/
|
|
54
54
|
_this.state = {};
|
|
55
|
+
_this._element = null;
|
|
55
56
|
_this.base = new DropDownBase_1.default(_this);
|
|
56
57
|
_this.searchState = { word: '', last: '' };
|
|
58
|
+
_this._select = null;
|
|
57
59
|
_this._skipFocusEvent = false;
|
|
58
60
|
_this._filterInput = null;
|
|
59
61
|
_this._navigated = false;
|
|
@@ -73,7 +75,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
73
75
|
var skip = virtual ? virtual.skip : 0;
|
|
74
76
|
var item = (index === -1 && defaultItem !== undefined) ?
|
|
75
77
|
defaultItem : data[index - skip];
|
|
76
|
-
var newSelected = !utils_1.areSame(item, _this.value, dataItemKey);
|
|
78
|
+
var newSelected = !(0, utils_1.areSame)(item, _this.value, dataItemKey);
|
|
77
79
|
_this.triggerOnChange(item, state);
|
|
78
80
|
if (newSelected) {
|
|
79
81
|
_this.base.triggerPageChangeCornerItems(item, state);
|
|
@@ -99,8 +101,8 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
99
101
|
dir: dir !== undefined ? dir : base.dirCalculated,
|
|
100
102
|
width: popupWidth,
|
|
101
103
|
popupSettings: {
|
|
102
|
-
popupClass: kendo_react_common_1.classNames(popupSettings.popupClass, 'k-list', (_a = {},
|
|
103
|
-
_a["k-list-"
|
|
104
|
+
popupClass: (0, kendo_react_common_1.classNames)(popupSettings.popupClass, 'k-list', (_a = {},
|
|
105
|
+
_a["k-list-".concat(sizeMap[size] || size)] = size,
|
|
104
106
|
_a['k-virtual-list'] = _this.base.vs.enabled,
|
|
105
107
|
_a)),
|
|
106
108
|
className: popupSettings.className,
|
|
@@ -126,7 +128,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
126
128
|
var skip = virtual.skip;
|
|
127
129
|
var opened = _this.props.opened !== undefined ? _this.props.opened : _this.state.opened;
|
|
128
130
|
var popupSettings = _this.base.getPopupSettings();
|
|
129
|
-
var translate = "translateY("
|
|
131
|
+
var translate = "translateY(".concat(vs.translate, "px)");
|
|
130
132
|
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) {
|
|
131
133
|
vs.scrollHandler(e);
|
|
132
134
|
}, wrapperRef: vs.scrollerRef, scroller: _this.base.renderScrollElement() }));
|
|
@@ -137,7 +139,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
137
139
|
};
|
|
138
140
|
_this.renderDefaultItem = function () {
|
|
139
141
|
var _a = _this.props, textField = _a.textField, defaultItem = _a.defaultItem, dataItemKey = _a.dataItemKey;
|
|
140
|
-
return defaultItem !== undefined && (React.createElement(ListDefaultItem_1.default, { defaultItem: defaultItem, textField: textField, selected: utils_1.areSame(_this.value, defaultItem, dataItemKey), key: "defaultitemkey", onClick: _this.handleDefaultItemClick }));
|
|
142
|
+
return defaultItem !== undefined && (React.createElement(ListDefaultItem_1.default, { defaultItem: defaultItem, textField: textField, selected: (0, utils_1.areSame)(_this.value, defaultItem, dataItemKey), key: "defaultitemkey", onClick: _this.handleDefaultItemClick }));
|
|
141
143
|
};
|
|
142
144
|
_this.search = function (event) {
|
|
143
145
|
clearTimeout(_this._typingTimeout);
|
|
@@ -153,9 +155,9 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
153
155
|
});
|
|
154
156
|
var word = _this.searchState.word;
|
|
155
157
|
var last = _this.searchState.last;
|
|
156
|
-
var isInLoop = utils_1.sameCharsOnly(word, last);
|
|
158
|
+
var isInLoop = (0, utils_1.sameCharsOnly)(word, last);
|
|
157
159
|
var dataLength = mappedData.length;
|
|
158
|
-
var startIndex = Math.max(0, data.findIndex(function (i) { return utils_1.areSame(i, _this.value, dataItemKey); }));
|
|
160
|
+
var startIndex = Math.max(0, data.findIndex(function (i) { return (0, utils_1.areSame)(i, _this.value, dataItemKey); }));
|
|
159
161
|
var defaultItem;
|
|
160
162
|
if (_this.props.defaultItem) {
|
|
161
163
|
defaultItem = { item: _this.props.defaultItem, itemIndex: -1 };
|
|
@@ -163,13 +165,13 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
163
165
|
startIndex += 1;
|
|
164
166
|
}
|
|
165
167
|
startIndex += isInLoop ? 1 : 0;
|
|
166
|
-
mappedData = utils_1.shuffleData(mappedData, startIndex, defaultItem);
|
|
168
|
+
mappedData = (0, utils_1.shuffleData)(mappedData, startIndex, defaultItem);
|
|
167
169
|
var text, loopMatch, nextMatch, index = 0;
|
|
168
170
|
var _c = _this.props, textField = _c.textField, ignoreCase = _c.ignoreCase;
|
|
169
171
|
for (; index < dataLength; index++) {
|
|
170
|
-
text = utils_1.getItemValue(mappedData[index].item, textField);
|
|
171
|
-
loopMatch = isInLoop && utils_1.matchText(text, last, ignoreCase);
|
|
172
|
-
nextMatch = utils_1.matchText(text, word, ignoreCase);
|
|
172
|
+
text = (0, utils_1.getItemValue)(mappedData[index].item, textField);
|
|
173
|
+
loopMatch = isInLoop && (0, utils_1.matchText)(text, last, ignoreCase);
|
|
174
|
+
nextMatch = (0, utils_1.matchText)(text, word, ignoreCase);
|
|
173
175
|
if (loopMatch || nextMatch) {
|
|
174
176
|
index = mappedData[index].itemIndex;
|
|
175
177
|
break;
|
|
@@ -327,7 +329,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
327
329
|
: _this.props.validationMessage || VALIDATION_MESSAGE);
|
|
328
330
|
}
|
|
329
331
|
};
|
|
330
|
-
kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
|
|
332
|
+
(0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
|
|
331
333
|
return _this;
|
|
332
334
|
}
|
|
333
335
|
Object.defineProperty(DropDownListWithoutContext.prototype, "element", {
|
|
@@ -358,7 +360,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
358
360
|
else if (this.props.defaultValue !== undefined) {
|
|
359
361
|
value = this.props.defaultValue;
|
|
360
362
|
}
|
|
361
|
-
if (!utils_1.isPresent(value) && this.props.defaultItem !== undefined) {
|
|
363
|
+
if (!(0, utils_1.isPresent)(value) && this.props.defaultItem !== undefined) {
|
|
362
364
|
value = this.props.defaultItem;
|
|
363
365
|
}
|
|
364
366
|
return value;
|
|
@@ -374,7 +376,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
374
376
|
var _a = this.props, _b = _a.data, data = _b === void 0 ? [] : _b, dataItemKey = _a.dataItemKey;
|
|
375
377
|
var value = this.value;
|
|
376
378
|
// TO DO: deprecate it!
|
|
377
|
-
return data.findIndex(function (i) { return utils_1.areSame(i, value, dataItemKey); });
|
|
379
|
+
return data.findIndex(function (i) { return (0, utils_1.areSame)(i, value, dataItemKey); });
|
|
378
380
|
},
|
|
379
381
|
enumerable: false,
|
|
380
382
|
configurable: true
|
|
@@ -453,8 +455,8 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
453
455
|
else {
|
|
454
456
|
var selectedItem_1 = this.value;
|
|
455
457
|
var prevSelectedItem = prevProps.value !== undefined ? prevProps.value : prevState.value;
|
|
456
|
-
var selectedItemIndex = data.findIndex(function (i) { return utils_1.areSame(i, selectedItem_1, dataItemKey); });
|
|
457
|
-
var selectedItemChanged = !utils_1.areSame(prevSelectedItem, selectedItem_1, dataItemKey);
|
|
458
|
+
var selectedItemIndex = data.findIndex(function (i) { return (0, utils_1.areSame)(i, selectedItem_1, dataItemKey); });
|
|
459
|
+
var selectedItemChanged = !(0, utils_1.areSame)(prevSelectedItem, selectedItem_1, dataItemKey);
|
|
458
460
|
if (opening && virtual) {
|
|
459
461
|
this.base.scrollToVirtualItem(virtual, selectedItemIndex);
|
|
460
462
|
}
|
|
@@ -491,7 +493,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
491
493
|
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;
|
|
492
494
|
var opened = this.props.opened !== undefined ? this.props.opened : this.state.opened;
|
|
493
495
|
var value = this.value;
|
|
494
|
-
var text = utils_1.getItemValue(value, this.props.textField);
|
|
496
|
+
var text = (0, utils_1.getItemValue)(value, this.props.textField);
|
|
495
497
|
var isValid = !this.validityStyles || this.validity.valid;
|
|
496
498
|
var base = this.base;
|
|
497
499
|
var vs = base.vs;
|
|
@@ -503,15 +505,15 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
503
505
|
}
|
|
504
506
|
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;
|
|
505
507
|
var focused = this.state.focused;
|
|
506
|
-
var selectedIndex = data.findIndex(function (i) { return utils_1.areSame(i, value, dataItemKey); });
|
|
508
|
+
var selectedIndex = data.findIndex(function (i) { return (0, utils_1.areSame)(i, value, dataItemKey); });
|
|
507
509
|
var valueDefaultRendering = (React.createElement("span", { className: "k-input-inner" },
|
|
508
510
|
React.createElement("span", { className: "k-input-value-text" }, text)));
|
|
509
511
|
var valueElement = valueRender !== undefined ?
|
|
510
512
|
valueRender.call(undefined, valueDefaultRendering, value) : valueDefaultRendering;
|
|
511
|
-
var dropdownlist = (React.createElement("span", { ref: this.componentRef, className: kendo_react_common_1.classNames('k-dropdownlist k-picker', className, (_a = {},
|
|
512
|
-
_a["k-picker-"
|
|
513
|
-
_a["k-rounded-"
|
|
514
|
-
_a["k-picker-"
|
|
513
|
+
var dropdownlist = (React.createElement("span", { ref: this.componentRef, className: (0, kendo_react_common_1.classNames)('k-dropdownlist k-picker', className, (_a = {},
|
|
514
|
+
_a["k-picker-".concat(sizeMap[size] || size)] = size,
|
|
515
|
+
_a["k-rounded-".concat(roundedMap[rounded] || rounded)] = rounded,
|
|
516
|
+
_a["k-picker-".concat(fillMode)] = fillMode,
|
|
515
517
|
_a['k-focus'] = focused,
|
|
516
518
|
_a['k-disabled'] = disabled,
|
|
517
519
|
_a['k-invalid'] = !isValid,
|
|
@@ -519,15 +521,15 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
519
521
|
_a['k-required'] = this.required,
|
|
520
522
|
_a)), style: !label
|
|
521
523
|
? style
|
|
522
|
-
: __assign(__assign({}, style), { width: undefined }), dir: dir, onMouseDown: opened ? utils_1.preventDefaultNonInputs : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, tabIndex: kendo_react_common_1.getTabIndex(tabIndex, disabled), accessKey: this.props.accessKey, onKeyDown: this.handleKeyDown, onKeyPress: this.handleKeyPress, onClick: disabled ? undefined : this.handleWrapperClick, role: 'listbox', "aria-required": this.required, "aria-disabled": disabled || undefined, "aria-haspopup": true, "aria-expanded": opened || false, "aria-owns": this.base.listBoxId, "aria-activedescendant": opened ? ('option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0))) : undefined, "aria-label": this.props.ariaLabel || this.props.label, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, id: this.props.id, title: this.props.title },
|
|
524
|
+
: __assign(__assign({}, style), { width: undefined }), dir: dir, onMouseDown: opened ? utils_1.preventDefaultNonInputs : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, tabIndex: (0, kendo_react_common_1.getTabIndex)(tabIndex, disabled), accessKey: this.props.accessKey, onKeyDown: this.handleKeyDown, onKeyPress: this.handleKeyPress, onClick: disabled ? undefined : this.handleWrapperClick, role: 'listbox', "aria-required": this.required, "aria-disabled": disabled || undefined, "aria-haspopup": true, "aria-expanded": opened || false, "aria-owns": this.base.listBoxId, "aria-activedescendant": opened ? ('option-' + this.base.guid + '-' + (selectedIndex + (virtual ? virtual.skip : 0))) : undefined, "aria-label": this.props.ariaLabel || this.props.label, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, id: this.props.id, title: this.props.title },
|
|
523
525
|
valueElement,
|
|
524
526
|
loading && React.createElement("span", { className: "k-icon k-i-loading k-input-loading-icon", key: "loading" }),
|
|
525
|
-
React.createElement("button", { tabIndex: -1, type: "button", "aria-hidden": true, className: kendo_react_common_1.classNames('k-input-button k-button k-icon-button', (_b = {},
|
|
526
|
-
_b["k-button-"
|
|
527
|
-
_b["k-button-"
|
|
528
|
-
_b["k-button-"
|
|
527
|
+
React.createElement("button", { tabIndex: -1, type: "button", "aria-hidden": true, className: (0, kendo_react_common_1.classNames)('k-input-button k-button k-icon-button', (_b = {},
|
|
528
|
+
_b["k-button-".concat(sizeMap[size] || size)] = size,
|
|
529
|
+
_b["k-button-".concat(fillMode)] = fillMode,
|
|
530
|
+
_b["k-button-".concat(fillMode, "-base")] = fillMode,
|
|
529
531
|
_b)), onMouseDown: function (e) { return e.preventDefault(); } },
|
|
530
|
-
React.createElement("span", { className: kendo_react_common_1.classNames('k-button-icon k-icon k-i-arrow-s', iconClassName) })),
|
|
532
|
+
React.createElement("span", { className: (0, kendo_react_common_1.classNames)('k-button-icon k-icon k-i-arrow-s', iconClassName) })),
|
|
531
533
|
this.dummySelect(value),
|
|
532
534
|
this.renderListContainer()));
|
|
533
535
|
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;
|
|
@@ -539,7 +541,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
539
541
|
var _a = this.props, _b = _a.data, data = _b === void 0 ? [] : _b, defaultItem = _a.defaultItem, dataItemKey = _a.dataItemKey, _c = _a.virtual, virtual = _c === void 0 ? { skip: 0, total: 0, pageSize: 0 } : _c;
|
|
540
542
|
var vs = this.base.vs;
|
|
541
543
|
var value = this.value;
|
|
542
|
-
var index = data.findIndex(function (i) { return utils_1.areSame(i, value, dataItemKey); });
|
|
544
|
+
var index = data.findIndex(function (i) { return (0, utils_1.areSame)(i, value, dataItemKey); });
|
|
543
545
|
var newIndex = this.base.navigation.navigate({
|
|
544
546
|
current: virtual.skip + index,
|
|
545
547
|
max: (vs.enabled ? virtual.total : data.length) - 1,
|
|
@@ -552,14 +554,14 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
552
554
|
this.applyState(state);
|
|
553
555
|
};
|
|
554
556
|
DropDownListWithoutContext.prototype.focusedIndex = function () {
|
|
555
|
-
var filterText = utils_1.isPresent(this.props.filter) ? this.props.filter : this.state.text;
|
|
557
|
+
var filterText = (0, utils_1.isPresent)(this.props.filter) ? this.props.filter : this.state.text;
|
|
556
558
|
var _a = this.props, _b = _a.data, data = _b === void 0 ? [] : _b, _c = _a.virtual, virtual = _c === void 0 ? { skip: 0 } : _c, dataItemKey = _a.dataItemKey, textField = _a.textField, focusedItemIndex = _a.focusedItemIndex;
|
|
557
559
|
var value = this.value;
|
|
558
|
-
var selectedIndex = data.findIndex(function (i) { return utils_1.areSame(i, value, dataItemKey); });
|
|
560
|
+
var selectedIndex = data.findIndex(function (i) { return (0, utils_1.areSame)(i, value, dataItemKey); });
|
|
559
561
|
var hasSelected = !(selectedIndex < 0 && !this.props.defaultItem);
|
|
560
562
|
if (!hasSelected && filterText && virtual.skip === 0) {
|
|
561
563
|
return focusedItemIndex ? focusedItemIndex(data, filterText, textField) :
|
|
562
|
-
data.indexOf(utils_1.getFocusedItem(data, filterText, textField));
|
|
564
|
+
data.indexOf((0, utils_1.getFocusedItem)(data, filterText, textField));
|
|
563
565
|
}
|
|
564
566
|
else {
|
|
565
567
|
return !hasSelected && virtual.skip === 0 ? 0 : undefined;
|
|
@@ -572,7 +574,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
572
574
|
window.setTimeout(function () { return _this._skipFocusEvent = false; }, 30);
|
|
573
575
|
};
|
|
574
576
|
DropDownListWithoutContext.prototype.triggerOnChange = function (item, state) {
|
|
575
|
-
if (utils_1.areSame(this.value, item, this.props.dataItemKey)) {
|
|
577
|
+
if ((0, utils_1.areSame)(this.value, item, this.props.dataItemKey)) {
|
|
576
578
|
return;
|
|
577
579
|
}
|
|
578
580
|
if (this.props.value === undefined) {
|
|
@@ -603,7 +605,7 @@ exports.DropDownListWithoutContext = DropDownListWithoutContext;
|
|
|
603
605
|
*
|
|
604
606
|
* For more information, refer to the [Dropdowns Props Context]({% slug props-context_dropdowns %}) article.
|
|
605
607
|
*/
|
|
606
|
-
exports.DropDownListPropsContext = kendo_react_common_1.createPropsContext();
|
|
608
|
+
exports.DropDownListPropsContext = (0, kendo_react_common_1.createPropsContext)();
|
|
607
609
|
/* eslint-disable @typescript-eslint/no-redeclare -- intentionally naming the component the same as the type */
|
|
608
610
|
/**
|
|
609
611
|
* Represents the [KendoReact DropDownList component]({% slug overview_dropdownlist %}).
|
|
@@ -630,5 +632,5 @@ exports.DropDownListPropsContext = kendo_react_common_1.createPropsContext();
|
|
|
630
632
|
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
631
633
|
* ```
|
|
632
634
|
*/
|
|
633
|
-
exports.DropDownList = kendo_react_common_1.withPropsContext(exports.DropDownListPropsContext, DropDownListWithoutContext);
|
|
635
|
+
exports.DropDownList = (0, kendo_react_common_1.withPropsContext)(exports.DropDownListPropsContext, DropDownListWithoutContext);
|
|
634
636
|
exports.DropDownList.displayName = 'KendoReactDropDownList';
|
|
@@ -13,4 +13,4 @@ export declare const DropDownTreePropsContext: React.Context<(p: DropDownTreePro
|
|
|
13
13
|
* Accepts properties of type [DropDownTreeProps]({% slug api_dropdowns_dropdowntreeprops %}).
|
|
14
14
|
* Obtaining the `ref` returns an object of type [DropDownTreeHandle]({% slug api_dropdowns_dropdowntreehandle %}).
|
|
15
15
|
*/
|
|
16
|
-
export declare const DropDownTree: React.ForwardRefExoticComponent<DropDownTreeProps & React.RefAttributes<DropDownTreeHandle>>;
|
|
16
|
+
export declare const DropDownTree: React.ForwardRefExoticComponent<DropDownTreeProps & React.RefAttributes<DropDownTreeHandle | null>>;
|
|
@@ -10,10 +10,14 @@ 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,
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
14
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
15
|
+
if (ar || !(i in from)) {
|
|
16
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17
|
+
ar[i] = from[i];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
17
21
|
};
|
|
18
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
23
|
exports.DropDownTree = exports.DropDownTreePropsContext = void 0;
|
|
@@ -67,7 +71,7 @@ var defaultProps = {
|
|
|
67
71
|
*
|
|
68
72
|
* For more information, refer to the [Dropdowns Props Context]({% slug props-context_dropdowns %}) article.
|
|
69
73
|
*/
|
|
70
|
-
exports.DropDownTreePropsContext = kendo_react_common_1.createPropsContext();
|
|
74
|
+
exports.DropDownTreePropsContext = (0, kendo_react_common_1.createPropsContext)();
|
|
71
75
|
/**
|
|
72
76
|
* Represents the DropDownTree component.
|
|
73
77
|
*
|
|
@@ -76,12 +80,12 @@ exports.DropDownTreePropsContext = kendo_react_common_1.createPropsContext();
|
|
|
76
80
|
*/
|
|
77
81
|
exports.DropDownTree = React.forwardRef(function (directProps, ref) {
|
|
78
82
|
var _a, _b;
|
|
79
|
-
kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
|
|
80
|
-
var props = kendo_react_common_1.usePropsContext(exports.DropDownTreePropsContext, directProps);
|
|
81
|
-
var calculatedId = React.useMemo(function () { return kendo_react_common_1.guid(); }, []);
|
|
83
|
+
(0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
|
|
84
|
+
var props = (0, kendo_react_common_1.usePropsContext)(exports.DropDownTreePropsContext, directProps);
|
|
85
|
+
var calculatedId = React.useMemo(function () { return (0, kendo_react_common_1.guid)(); }, []);
|
|
82
86
|
var id = props.id || calculatedId;
|
|
83
87
|
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;
|
|
84
|
-
var tabIndex = kendo_react_common_1.getTabIndex(props.tabIndex, disabled);
|
|
88
|
+
var tabIndex = (0, kendo_react_common_1.getTabIndex)(props.tabIndex, disabled);
|
|
85
89
|
var target = React.useRef(null);
|
|
86
90
|
var elementRef = React.useRef(null);
|
|
87
91
|
var inputRef = React.useRef(null);
|
|
@@ -91,8 +95,8 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
|
|
|
91
95
|
var _k = React.useState(undefined), stateValue = _k[0], setStateValue = _k[1];
|
|
92
96
|
var controlled = props.value !== undefined;
|
|
93
97
|
var value = controlled ? props.value : (stateValue !== undefined ? stateValue : props.defaultValue);
|
|
94
|
-
var hasValue = utils_1.isPresent(value);
|
|
95
|
-
var currentValueText = hasValue ? utils_1.getItemValue(value, props.textField) : '';
|
|
98
|
+
var hasValue = (0, utils_1.isPresent)(value);
|
|
99
|
+
var currentValueText = hasValue ? (0, utils_1.getItemValue)(value, props.textField) : '';
|
|
96
100
|
var validity = getValidity({ validationMessage: validationMessage, valid: valid, required: required }, hasValue);
|
|
97
101
|
var focus = React.useCallback(function () { return elementRef.current && elementRef.current.focus(); }, []);
|
|
98
102
|
React.useImperativeHandle(target, function () { return ({
|
|
@@ -101,10 +105,10 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
|
|
|
101
105
|
focus: focus
|
|
102
106
|
}); });
|
|
103
107
|
React.useImperativeHandle(ref, function () { return target.current; });
|
|
104
|
-
var dir = kendo_react_common_1.useRtl(elementRef, props.dir);
|
|
108
|
+
var dir = (0, kendo_react_common_1.useRtl)(elementRef, props.dir);
|
|
105
109
|
var initialStyleWidth = popupSettings.width !== undefined ?
|
|
106
110
|
popupSettings.width : (style.width !== undefined ? style.width : defaultProps.popupSettings.width);
|
|
107
|
-
var popupWidth = useDropdownWidth_1.useDropdownWidth(elementRef, initialStyleWidth);
|
|
111
|
+
var popupWidth = (0, useDropdownWidth_1.useDropdownWidth)(elementRef, initialStyleWidth);
|
|
108
112
|
var popupStyles = __assign({ width: popupWidth }, (dir !== undefined ? { direction: dir } : {}));
|
|
109
113
|
var _l = React.useState(false), open = _l[0], setOpen = _l[1];
|
|
110
114
|
var isOpen = opened !== undefined ? opened : open;
|
|
@@ -178,7 +182,7 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
|
|
|
178
182
|
keyCode === kendo_react_common_1.Keys.home || keyCode === kendo_react_common_1.Keys.end)) {
|
|
179
183
|
if (keyCode === kendo_react_common_1.Keys.up && inputRef.current) {
|
|
180
184
|
var items = Array.from(treeview.querySelectorAll('.k-treeview-item'));
|
|
181
|
-
var focusedItem = __spreadArray([], items).reverse().find(function (i) { return Boolean(i && i.querySelector('.k-focus')); });
|
|
185
|
+
var focusedItem = __spreadArray([], items, true).reverse().find(function (i) { return Boolean(i && i.querySelector('.k-focus')); });
|
|
182
186
|
if (focusedItem && items.indexOf(focusedItem) === 0) {
|
|
183
187
|
return switchFocus(function () { focusElement(inputRef.current); });
|
|
184
188
|
}
|
|
@@ -274,7 +278,7 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
|
|
|
274
278
|
}
|
|
275
279
|
}, [props.onChange, controlled]);
|
|
276
280
|
var onChange = React.useCallback(function (event) {
|
|
277
|
-
if (utils_1.areSame(event.item, value, dataItemKey) || !target.current) {
|
|
281
|
+
if ((0, utils_1.areSame)(event.item, value, dataItemKey) || !target.current) {
|
|
278
282
|
return;
|
|
279
283
|
}
|
|
280
284
|
var item = event.item, itemHierarchicalIndex = event.itemHierarchicalIndex, nativeEvent = event.nativeEvent, syntheticEvent = event.syntheticEvent;
|
|
@@ -330,20 +334,20 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
|
|
|
330
334
|
}, [props.onFilterChange, props.filter, props.textField]);
|
|
331
335
|
var treeViewData = React.useMemo(function () {
|
|
332
336
|
return (controlled || !hasValue) ? data :
|
|
333
|
-
kendo_react_common_1.mapTree(data, subItemsField, function (item) {
|
|
337
|
+
(0, kendo_react_common_1.mapTree)(data, subItemsField, function (item) {
|
|
334
338
|
var _a;
|
|
335
|
-
return kendo_react_common_1.extendDataItem(item, subItemsField, (_a = {}, _a[selectField] = utils_1.areSame(item, value, dataItemKey), _a));
|
|
339
|
+
return (0, kendo_react_common_1.extendDataItem)(item, subItemsField, (_a = {}, _a[selectField] = (0, utils_1.areSame)(item, value, dataItemKey), _a));
|
|
336
340
|
});
|
|
337
341
|
}, [data, value, controlled, hasValue, selectField, subItemsField]);
|
|
338
342
|
var NoData = props.listNoData || ListNoData_1.ListNoData;
|
|
339
343
|
var ValueComponent = props.valueHolder || ValueHolder;
|
|
340
|
-
var localization = kendo_react_intl_1.useLocalization();
|
|
344
|
+
var localization = (0, kendo_react_intl_1.useLocalization)();
|
|
341
345
|
var isValid = !validityStyles || validity.valid;
|
|
342
346
|
var size = props.size, rounded = props.rounded, fillMode = props.fillMode;
|
|
343
|
-
var dropdowntree = (React.createElement("span", { className: kendo_react_common_1.classNames('k-dropdowntree k-picker', props.className, (_a = {},
|
|
344
|
-
_a["k-picker-"
|
|
345
|
-
_a["k-rounded-"
|
|
346
|
-
_a["k-picker-"
|
|
347
|
+
var dropdowntree = (React.createElement("span", { className: (0, kendo_react_common_1.classNames)('k-dropdowntree k-picker', props.className, (_a = {},
|
|
348
|
+
_a["k-picker-".concat(sizeMap[size] || size)] = size,
|
|
349
|
+
_a["k-rounded-".concat(roundedMap[rounded] || rounded)] = rounded,
|
|
350
|
+
_a["k-picker-".concat(fillMode)] = fillMode,
|
|
347
351
|
_a['k-focus'] = focused,
|
|
348
352
|
_a['k-invalid'] = !isValid,
|
|
349
353
|
_a['k-loading'] = props.loading,
|
|
@@ -355,15 +359,15 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
|
|
|
355
359
|
props.loading && React.createElement("span", { className: "k-icon k-i-loading k-input-loading-icon" }),
|
|
356
360
|
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(); } },
|
|
357
361
|
React.createElement("span", { className: "k-icon k-i-x" }))),
|
|
358
|
-
React.createElement("button", { tabIndex: -1, type: "button", "aria-label": "select", className: kendo_react_common_1.classNames('k-input-button k-button k-icon-button', (_b = {},
|
|
359
|
-
_b["k-button-"
|
|
360
|
-
_b["k-button-"
|
|
361
|
-
_b["k-button-"
|
|
362
|
+
React.createElement("button", { tabIndex: -1, type: "button", "aria-label": "select", className: (0, kendo_react_common_1.classNames)('k-input-button k-button k-icon-button', (_b = {},
|
|
363
|
+
_b["k-button-".concat(sizeMap[size] || size)] = size,
|
|
364
|
+
_b["k-button-".concat(fillMode)] = fillMode,
|
|
365
|
+
_b["k-button-".concat(fillMode, "-base")] = fillMode,
|
|
362
366
|
_b)) },
|
|
363
367
|
React.createElement("span", { className: "k-button-icon k-icon k-i-arrow-s" })),
|
|
364
368
|
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%' } },
|
|
365
369
|
React.createElement("option", { value: props.valueMap ? props.valueMap.call(undefined, value) : value })),
|
|
366
|
-
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 },
|
|
370
|
+
React.createElement(kendo_react_popup_1.Popup, { className: (0, 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 },
|
|
367
371
|
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 })),
|
|
368
372
|
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]))))));
|
|
369
373
|
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;
|
|
@@ -143,7 +143,7 @@ export interface MultiColumnComboBoxProps extends ComboBoxProps {
|
|
|
143
143
|
* @hidden
|
|
144
144
|
*/
|
|
145
145
|
onGroupScroll?: (event: {
|
|
146
|
-
group
|
|
146
|
+
group?: string;
|
|
147
147
|
}) => void;
|
|
148
148
|
/**
|
|
149
149
|
* Fires when a MultiColumnComboBox list item is about to be rendered. Used to override the default appearance of the list items.
|
|
@@ -247,4 +247,4 @@ export declare const MultiColumnComboBoxPropsContext: React.Context<(p: MultiCol
|
|
|
247
247
|
* Obtaining the `ref` returns an object of type [MultiColumnComboBoxHandle]({% slug api_dropdowns_multicolumncomboboxhandle %}).
|
|
248
248
|
*
|
|
249
249
|
*/
|
|
250
|
-
export declare const MultiColumnComboBox: React.ForwardRefExoticComponent<MultiColumnComboBoxProps & React.RefAttributes<MultiColumnComboBoxHandle>>;
|
|
250
|
+
export declare const MultiColumnComboBox: React.ForwardRefExoticComponent<MultiColumnComboBoxProps & React.RefAttributes<MultiColumnComboBoxHandle | null>>;
|
|
@@ -41,7 +41,7 @@ var columnWidth = function (width, defaultWidth) {
|
|
|
41
41
|
*
|
|
42
42
|
* For more information, refer to the [Dropdowns Props Context]({% slug props-context_dropdowns %}) article.
|
|
43
43
|
*/
|
|
44
|
-
exports.MultiColumnComboBoxPropsContext = kendo_react_common_1.createPropsContext();
|
|
44
|
+
exports.MultiColumnComboBoxPropsContext = (0, kendo_react_common_1.createPropsContext)();
|
|
45
45
|
/**
|
|
46
46
|
* Represents the MultiColumnComboBox component.
|
|
47
47
|
*
|
|
@@ -50,10 +50,10 @@ exports.MultiColumnComboBoxPropsContext = kendo_react_common_1.createPropsContex
|
|
|
50
50
|
*
|
|
51
51
|
*/
|
|
52
52
|
exports.MultiColumnComboBox = React.forwardRef(function (directProps, ref) {
|
|
53
|
-
var props = kendo_react_common_1.usePropsContext(exports.MultiColumnComboBoxPropsContext, directProps);
|
|
53
|
+
var props = (0, kendo_react_common_1.usePropsContext)(exports.MultiColumnComboBoxPropsContext, directProps);
|
|
54
54
|
var target = React.useRef(null);
|
|
55
55
|
var comboBoxRef = React.useRef(null);
|
|
56
|
-
var scrollbarWidth = kendo_react_common_1.getScrollbarWidth();
|
|
56
|
+
var scrollbarWidth = (0, kendo_react_common_1.getScrollbarWidth)();
|
|
57
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"]);
|
|
58
58
|
React.useImperativeHandle(target, function () {
|
|
59
59
|
return ({
|
|
@@ -71,7 +71,7 @@ exports.MultiColumnComboBox = React.forwardRef(function (directProps, ref) {
|
|
|
71
71
|
React.useImperativeHandle(ref, function () { return target.current; });
|
|
72
72
|
var initialGroupHeader = React.useMemo(function () {
|
|
73
73
|
if (initialGroupHeader === undefined && props.groupField !== undefined && props.data) {
|
|
74
|
-
return utils_1.getItemValue(props.data[0], props.groupField);
|
|
74
|
+
return (0, utils_1.getItemValue)(props.data[0], props.groupField);
|
|
75
75
|
}
|
|
76
76
|
}, [props.data, props.groupField]);
|
|
77
77
|
var _c = React.useState(initialGroupHeader), groupHeader = _c[0], setGroupHeader = _c[1];
|
|
@@ -92,16 +92,16 @@ exports.MultiColumnComboBox = React.forwardRef(function (directProps, ref) {
|
|
|
92
92
|
}, [props.header, columns, groupHeader]);
|
|
93
93
|
var popupWidth = React.useMemo(function () {
|
|
94
94
|
// These additional 4px are coming from the child elements side borders (fixes horizontal scrollbar)
|
|
95
|
-
return "calc("
|
|
95
|
+
return "calc(".concat(columns.map(function (column) { return columnWidth(column.width, defaultProps.width); }).filter(Boolean).join(' + '), " + ").concat(scrollbarWidth, "px + 4px)");
|
|
96
96
|
}, [columns, scrollbarWidth]);
|
|
97
97
|
var skip = props.virtual ? props.virtual.skip : 0;
|
|
98
98
|
var itemRender = React.useCallback(function (li, liProps) {
|
|
99
|
-
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) : '')); });
|
|
99
|
+
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 ? (0, kendo_react_common_1.getter)(column.field)(liProps.dataItem) : '')); });
|
|
100
100
|
var group = undefined;
|
|
101
101
|
var curGroup, prevGroup, groupGetter, data = props.data || [];
|
|
102
102
|
var index = liProps.index - skip;
|
|
103
103
|
if (props.groupField !== undefined) {
|
|
104
|
-
groupGetter = kendo_react_common_1.getter(props.groupField);
|
|
104
|
+
groupGetter = (0, kendo_react_common_1.getter)(props.groupField);
|
|
105
105
|
curGroup = groupGetter(data[index]);
|
|
106
106
|
prevGroup = groupGetter(data[index - 1]);
|
|
107
107
|
if (curGroup && prevGroup && curGroup !== prevGroup) {
|
|
@@ -112,7 +112,7 @@ exports.MultiColumnComboBox = React.forwardRef(function (directProps, ref) {
|
|
|
112
112
|
children.push(React.createElement("div", { key: "group", className: "k-table-td k-table-group-td" },
|
|
113
113
|
React.createElement("span", null, group)));
|
|
114
114
|
}
|
|
115
|
-
var rendering = React.cloneElement(li, __assign(__assign({}, li.props), { className: kendo_react_common_1.classNames('k-table-row', {
|
|
115
|
+
var rendering = React.cloneElement(li, __assign(__assign({}, li.props), { className: (0, kendo_react_common_1.classNames)('k-table-row', {
|
|
116
116
|
'k-table-alt-row': liProps.index % 2 !== 0,
|
|
117
117
|
'k-focus': liProps.focused,
|
|
118
118
|
'k-selected': liProps.selected,
|
|
@@ -135,9 +135,9 @@ exports.MultiColumnComboBox = React.forwardRef(function (directProps, ref) {
|
|
|
135
135
|
var onGroupScroll = React.useCallback(function (event) {
|
|
136
136
|
setGroupHeader(event.group);
|
|
137
137
|
}, []);
|
|
138
|
-
React.useEffect(function () { kendo_react_common_1.setScrollbarWidth(); });
|
|
138
|
+
React.useEffect(function () { (0, kendo_react_common_1.setScrollbarWidth)(); });
|
|
139
139
|
var List = React.useCallback(function (listProps) { return React.createElement(MultiColumnList_1.MultiColumnList, __assign({}, listProps)); }, []);
|
|
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) })));
|
|
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: (0, kendo_react_common_1.classNames)('k-dropdowngrid', className) })));
|
|
141
141
|
});
|
|
142
142
|
var propTypes = __assign(__assign({}, ComboBox_1.ComboBoxWithoutContext.propTypes), { columns: PropTypes.any.isRequired });
|
|
143
143
|
var defaultProps = {
|
|
@@ -33,10 +33,10 @@ export declare class MultiSelectWithoutContext extends React.Component<MultiSele
|
|
|
33
33
|
defaultValue: PropTypes.Requireable<any[]>;
|
|
34
34
|
dataItemKey: PropTypes.Requireable<string>;
|
|
35
35
|
placeholder: PropTypes.Requireable<string>;
|
|
36
|
-
tags: PropTypes.Requireable<PropTypes.InferProps<{
|
|
36
|
+
tags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
37
37
|
text: PropTypes.Requireable<string>;
|
|
38
38
|
data: PropTypes.Requireable<any[]>;
|
|
39
|
-
}>[]>;
|
|
39
|
+
}> | null)[]>;
|
|
40
40
|
tagRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
41
41
|
id: PropTypes.Requireable<string>;
|
|
42
42
|
ariaLabelledBy: PropTypes.Requireable<string>;
|
|
@@ -88,9 +88,9 @@ export declare class MultiSelectWithoutContext extends React.Component<MultiSele
|
|
|
88
88
|
static defaultProps: {
|
|
89
89
|
autoClose: boolean;
|
|
90
90
|
required: boolean;
|
|
91
|
-
size: "small" | "medium" | "large";
|
|
92
|
-
rounded: "small" | "medium" | "full" | "large";
|
|
93
|
-
fillMode: "flat" | "
|
|
91
|
+
size: "small" | "medium" | "large" | null | undefined;
|
|
92
|
+
rounded: "small" | "medium" | "full" | "large" | null | undefined;
|
|
93
|
+
fillMode: "flat" | "outline" | "solid" | null | undefined;
|
|
94
94
|
popupSettings: {
|
|
95
95
|
height: string;
|
|
96
96
|
};
|