@progress/kendo-react-dropdowns 5.10.0-dev.202301091032 → 5.10.0-dev.202301111405
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.js +3 -3
- package/dist/es/ComboBox/ComboBox.d.ts +5 -0
- package/dist/es/ComboBox/ComboBox.js +5 -4
- package/dist/es/ComboBox/ComboBoxProps.d.ts +5 -1
- package/dist/es/DropDownList/DropDownList.d.ts +8 -4
- package/dist/es/DropDownList/DropDownList.js +6 -5
- package/dist/es/DropDownList/DropDownListProps.d.ts +5 -1
- package/dist/es/DropDownTree/DropDownTree.js +6 -5
- package/dist/es/MultiSelect/MultiSelect.js +9 -8
- package/dist/es/MultiSelectTree/MultiSelectTree.js +3 -3
- package/dist/es/common/ClearButton.js +3 -1
- package/dist/es/common/ListFilter.js +3 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/AutoComplete/AutoComplete.js +2 -2
- package/dist/npm/ComboBox/ComboBox.d.ts +5 -0
- package/dist/npm/ComboBox/ComboBox.js +4 -3
- package/dist/npm/ComboBox/ComboBoxProps.d.ts +5 -1
- package/dist/npm/DropDownList/DropDownList.d.ts +8 -4
- package/dist/npm/DropDownList/DropDownList.js +5 -4
- package/dist/npm/DropDownList/DropDownListProps.d.ts +5 -1
- package/dist/npm/DropDownTree/DropDownTree.js +5 -4
- package/dist/npm/MultiSelect/MultiSelect.js +8 -7
- package/dist/npm/MultiSelectTree/MultiSelectTree.js +2 -2
- package/dist/npm/common/ClearButton.js +3 -1
- package/dist/npm/common/ListFilter.js +2 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-react-dropdowns.js +1 -1
- package/package.json +14 -12
|
@@ -39,6 +39,7 @@ exports.MultiSelect = exports.MultiSelectPropsContext = exports.MultiSelectWitho
|
|
|
39
39
|
var React = require("react");
|
|
40
40
|
var PropTypes = require("prop-types");
|
|
41
41
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
42
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
42
43
|
var kendo_react_labels_1 = require("@progress/kendo-react-labels");
|
|
43
44
|
var ListContainer_1 = require("../common/ListContainer");
|
|
44
45
|
var List_1 = require("../common/List");
|
|
@@ -261,7 +262,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
|
|
|
261
262
|
dir: dir !== undefined ? dir : base.dirCalculated,
|
|
262
263
|
width: popupWidth,
|
|
263
264
|
popupSettings: {
|
|
264
|
-
popupClass: (0, kendo_react_common_1.classNames)(popupSettings.popupClass, 'k-list-container'),
|
|
265
|
+
popupClass: (0, kendo_react_common_1.classNames)(popupSettings.popupClass, 'k-list-container', 'k-multiselect-popup'),
|
|
265
266
|
className: popupSettings.className,
|
|
266
267
|
animate: popupSettings.animate,
|
|
267
268
|
anchor: _this.element,
|
|
@@ -278,7 +279,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
|
|
|
278
279
|
_a)), key: "customitem", onClick: _this.customItemSelect, onMouseDown: preventDefault },
|
|
279
280
|
React.createElement("div", { className: (0, kendo_react_common_1.classNames)('k-list-item k-custom-item', { 'k-focus': isCustom(focusedType) }), style: { fontStyle: 'italic' } },
|
|
280
281
|
text,
|
|
281
|
-
React.createElement(
|
|
282
|
+
React.createElement(kendo_react_common_1.IconWrap, { name: 'plus', icon: kendo_svg_icons_1.plusIcon, style: { position: 'absolute', right: '0.5em' } }))));
|
|
282
283
|
return (React.createElement(ListContainer_1.default, __assign({}, listContainerProps),
|
|
283
284
|
header && React.createElement("div", { className: "k-list-header" }, header),
|
|
284
285
|
customItem,
|
|
@@ -587,12 +588,12 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
|
|
|
587
588
|
_a)), style: !label
|
|
588
589
|
? style
|
|
589
590
|
: __assign(__assign({}, style), { width: undefined }), dir: dir, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.handleWrapperClick, onMouseDown: utils_1.preventDefaultNonInputs },
|
|
590
|
-
React.createElement("div", { className: (0, kendo_react_common_1.classNames)('k-input-values
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
591
|
+
React.createElement("div", { className: (0, kendo_react_common_1.classNames)('k-input-values') },
|
|
592
|
+
React.createElement("div", { className: (0, kendo_react_common_1.classNames)('k-chip-list', (_b = {},
|
|
593
|
+
_b["k-chip-list-".concat(sizeMap[size] || size)] = size,
|
|
594
|
+
_b)), role: "listbox", id: 'tagslist-' + this.base.guid }, tagsToRender.length > 0 && React.createElement(TagList_1.default, { tagRender: this.props.tagRender, onTagDelete: this.onTagDelete, data: tagsToRender, guid: this.base.guid, focused: focusedTag ? tagsToRender.find(function (t) { return (0, utils_1.matchTags)(t, focusedTag, dataItemKey); }) : undefined, size: size })),
|
|
594
595
|
this.renderSearchbar(id)),
|
|
595
|
-
loading && React.createElement(
|
|
596
|
+
loading && React.createElement(kendo_react_common_1.IconWrap, { className: "k-input-loading-icon", name: 'loading' }),
|
|
596
597
|
clearButton && React.createElement(ClearButton_1.default, { onClick: this.clearButtonClick }),
|
|
597
598
|
this.renderListContainer()));
|
|
598
599
|
return label ? (React.createElement(kendo_react_labels_1.FloatingLabel, { label: label, editorId: id, editorValue: text || (0, utils_1.getItemValue)(this.value[0], textField), editorValid: isValid, editorDisabled: disabled, style: { width: style ? style.width : undefined }, children: component })) : component;
|
|
@@ -408,11 +408,11 @@ exports.MultiSelectTree = React.forwardRef(function (directProps, ref) {
|
|
|
408
408
|
React.createElement(TagList_1.default, { tag: props.tag, onTagDelete: onTagDelete, data: tagsToRenderRef.current, guid: id, focused: focusedTagState ? tagsToRenderRef.current.find(function (t) { return (0, utils_1.matchTags)(t, focusedTagState, dataItemKey); }) : undefined, size: size }))),
|
|
409
409
|
!hasValue && React.createElement("span", { className: "k-input-inner" },
|
|
410
410
|
React.createElement("span", { className: "k-input-value-text" }, "\u00A0")),
|
|
411
|
-
props.loading && React.createElement(
|
|
411
|
+
props.loading && React.createElement(kendo_react_common_1.IconWrap, { className: "k-input-loading-icon", name: 'loading' }),
|
|
412
412
|
hasValue && !disabled && React.createElement(ClearButton_1.default, { onClick: onClear }),
|
|
413
413
|
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%' } },
|
|
414
414
|
React.createElement("option", { value: props.valueMap ? props.valueMap.call(undefined, value) : value })),
|
|
415
|
-
React.createElement(kendo_react_popup_1.Popup, { popupClass: (0, kendo_react_common_1.classNames)(popupSettings.popupClass, 'k-list-container'), className: (0, kendo_react_common_1.classNames)(popupSettings.className, { 'k-rtl': dir === 'rtl' }), style: popupStyles, animate: popupSettings.animate, anchor: elementRef.current, show: isOpen, onOpen: onPopupOpened, onClose: onPopupClosed, appendTo: popupSettings.appendTo, ref: popupRef },
|
|
415
|
+
React.createElement(kendo_react_popup_1.Popup, { popupClass: (0, kendo_react_common_1.classNames)(popupSettings.popupClass, 'k-list-container', 'k-multiselecttree-popup'), className: (0, kendo_react_common_1.classNames)(popupSettings.className, { 'k-rtl': dir === 'rtl' }), style: popupStyles, animate: popupSettings.animate, anchor: elementRef.current, show: isOpen, onOpen: onPopupOpened, onClose: onPopupClosed, appendTo: popupSettings.appendTo, ref: popupRef },
|
|
416
416
|
props.filterable && (React.createElement(ListFilter_1.default, { value: props.filter === undefined ? filterState : props.filter, inputRef: inputRef, onChange: onFilterChange, onKeyDown: onInputKeyDown, tabIndex: tabIndex, size: size, rounded: rounded, fillMode: fillMode })),
|
|
417
417
|
data.length > 0 ? (React.createElement(kendo_react_treeview_1.TreeView, { ref: treeViewRef, tabIndex: tabIndex, data: data, focusIdField: dataItemKey, textField: props.textField, checkField: checkField, checkIndeterminateField: checkIndeterminateField, expandField: props.expandField, childrenField: subItemsField, expandIcons: true, onItemClick: onChange, onCheckChange: onChange, onExpandChange: onExpand, checkboxes: true, size: size, item: props.item })) : (React.createElement(NoData, null, localization.toLanguageString(messages_1.nodata, messages_1.messages[messages_1.nodata]))))));
|
|
418
418
|
return label ? (React.createElement(kendo_react_labels_1.FloatingLabel, { label: label, editorValue: hasValue, editorPlaceholder: placeholder, editorValid: isValid, editorDisabled: disabled, editorId: id, style: { width: style ? style.width : undefined }, children: multiselecttree, dir: dir })) : multiselecttree;
|
|
@@ -18,6 +18,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
var React = require("react");
|
|
19
19
|
var kendo_react_intl_1 = require("@progress/kendo-react-intl");
|
|
20
20
|
var messages_1 = require("../messages");
|
|
21
|
+
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
22
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
21
23
|
/**
|
|
22
24
|
* @hidden
|
|
23
25
|
*/
|
|
@@ -31,7 +33,7 @@ var ClearButton = /** @class */ (function (_super) {
|
|
|
31
33
|
ClearButton.prototype.render = function () {
|
|
32
34
|
var title = (0, kendo_react_intl_1.provideLocalizationService)(this).toLanguageString(messages_1.clear, messages_1.messages[messages_1.clear]);
|
|
33
35
|
return (React.createElement("span", { className: "k-clear-value", role: "button", onClick: this.props.onClick, onMouseDown: this.onMouseDown, tabIndex: -1, title: title, key: "clearbutton" },
|
|
34
|
-
React.createElement(
|
|
36
|
+
React.createElement(kendo_react_common_1.IconWrap, { name: 'x', icon: kendo_svg_icons_1.xIcon })));
|
|
35
37
|
};
|
|
36
38
|
return ClearButton;
|
|
37
39
|
}(React.Component));
|
|
@@ -16,6 +16,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
var React = require("react");
|
|
19
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
19
20
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
20
21
|
var sizeMap = kendo_react_common_1.kendoThemeMaps.sizeMap, roundedMap = kendo_react_common_1.kendoThemeMaps.roundedMap;
|
|
21
22
|
/**
|
|
@@ -38,7 +39,7 @@ var ListFilter = /** @class */ (function (_super) {
|
|
|
38
39
|
_a["k-rounded-".concat(roundedMap[rounded] || rounded)] = rounded,
|
|
39
40
|
_a["k-input-".concat(fillMode)] = fillMode,
|
|
40
41
|
_a)) },
|
|
41
|
-
React.createElement(
|
|
42
|
+
React.createElement(kendo_react_common_1.IconWrap, { className: "k-input-icon", name: 'search', icon: kendo_svg_icons_1.searchIcon }),
|
|
42
43
|
React.createElement("input", { ref: inputRef ? inputRef : function (input) { return _this.input = input; }, value: this.props.value || '', className: "k-input-inner", onChange: this.props.onChange, onKeyDown: this.props.onKeyDown, tabIndex: this.props.tabIndex, onClick: function (e) { return e.stopPropagation(); } }))));
|
|
43
44
|
};
|
|
44
45
|
return ListFilter;
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-dropdowns',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1673444656,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
14
14
|
};
|