@progress/kendo-react-dropdowns 5.10.0-dev.202301092204 → 5.10.0-dev.202301111905
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 +8 -1
- package/dist/es/ComboBox/ComboBox.js +10 -5
- package/dist/es/ComboBox/ComboBoxProps.d.ts +5 -1
- package/dist/es/DropDownList/DropDownList.d.ts +9 -3
- package/dist/es/DropDownList/DropDownList.js +11 -6
- package/dist/es/DropDownList/DropDownListProps.d.ts +5 -1
- package/dist/es/DropDownTree/DropDownTree.js +5 -4
- package/dist/es/MultiSelect/MultiSelect.js +4 -3
- package/dist/es/MultiSelectTree/MultiSelectTree.js +7 -7
- package/dist/es/common/ClearButton.js +3 -1
- package/dist/es/common/ListFilter.js +3 -2
- package/dist/es/messages/index.d.ts +15 -0
- package/dist/es/messages/index.js +15 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/AutoComplete/AutoComplete.js +2 -2
- package/dist/npm/ComboBox/ComboBox.d.ts +8 -1
- package/dist/npm/ComboBox/ComboBox.js +9 -4
- package/dist/npm/ComboBox/ComboBoxProps.d.ts +5 -1
- package/dist/npm/DropDownList/DropDownList.d.ts +9 -3
- package/dist/npm/DropDownList/DropDownList.js +10 -5
- package/dist/npm/DropDownList/DropDownListProps.d.ts +5 -1
- package/dist/npm/DropDownTree/DropDownTree.js +4 -3
- package/dist/npm/MultiSelect/MultiSelect.js +3 -2
- package/dist/npm/MultiSelectTree/MultiSelectTree.js +6 -6
- package/dist/npm/common/ClearButton.js +3 -1
- package/dist/npm/common/ListFilter.js +2 -1
- package/dist/npm/messages/index.d.ts +15 -0
- package/dist/npm/messages/index.js +16 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-react-dropdowns.js +1 -1
- package/package.json +15 -13
|
@@ -25,9 +25,6 @@ export declare class DropDownListWithoutContext extends React.Component<DropDown
|
|
|
25
25
|
virtual: PropTypes.Requireable<PropTypes.InferProps<{
|
|
26
26
|
pageSize: PropTypes.Validator<number>;
|
|
27
27
|
skip: PropTypes.Validator<number>;
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*/
|
|
31
28
|
total: PropTypes.Validator<number>;
|
|
32
29
|
}>>;
|
|
33
30
|
onFilterChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -66,6 +63,11 @@ export declare class DropDownListWithoutContext extends React.Component<DropDown
|
|
|
66
63
|
delay: PropTypes.Requireable<number>;
|
|
67
64
|
ignoreCase: PropTypes.Requireable<boolean>;
|
|
68
65
|
iconClassName: PropTypes.Requireable<string>;
|
|
66
|
+
svgIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
67
|
+
name: PropTypes.Validator<string>;
|
|
68
|
+
content: PropTypes.Validator<string>;
|
|
69
|
+
viewBox: PropTypes.Validator<string>;
|
|
70
|
+
}>>;
|
|
69
71
|
defaultItem: PropTypes.Requireable<any>;
|
|
70
72
|
valueRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
71
73
|
valueMap: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -86,6 +88,9 @@ export declare class DropDownListWithoutContext extends React.Component<DropDown
|
|
|
86
88
|
size: "small" | "medium" | "large" | null | undefined;
|
|
87
89
|
rounded: "small" | "medium" | "full" | "large" | null | undefined;
|
|
88
90
|
fillMode: "flat" | "outline" | "solid" | null | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* @hidden
|
|
93
|
+
*/
|
|
89
94
|
popupSettings: {
|
|
90
95
|
height: string;
|
|
91
96
|
};
|
|
@@ -107,6 +112,7 @@ export declare class DropDownListWithoutContext extends React.Component<DropDown
|
|
|
107
112
|
private _filterInput;
|
|
108
113
|
private _valueDuringOnChange;
|
|
109
114
|
private _navigated;
|
|
115
|
+
private _inputId;
|
|
110
116
|
constructor(props: DropDownListProps);
|
|
111
117
|
/**
|
|
112
118
|
* @hidden
|
|
@@ -31,6 +31,7 @@ var React = require("react");
|
|
|
31
31
|
var PropTypes = require("prop-types");
|
|
32
32
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
33
33
|
var kendo_react_labels_1 = require("@progress/kendo-react-labels");
|
|
34
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
34
35
|
var ListContainer_1 = require("../common/ListContainer");
|
|
35
36
|
var ListFilter_1 = require("../common/ListFilter");
|
|
36
37
|
var ListDefaultItem_1 = require("../common/ListDefaultItem");
|
|
@@ -40,6 +41,8 @@ var utils_1 = require("../common/utils");
|
|
|
40
41
|
var kendo_react_common_2 = require("@progress/kendo-react-common");
|
|
41
42
|
var package_metadata_1 = require("../package-metadata");
|
|
42
43
|
var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
|
|
44
|
+
var kendo_react_intl_1 = require("@progress/kendo-react-intl");
|
|
45
|
+
var messages_1 = require("../messages");
|
|
43
46
|
var VALIDATION_MESSAGE = 'Please select a value from the list!';
|
|
44
47
|
var sizeMap = kendo_react_common_1.kendoThemeMaps.sizeMap, roundedMap = kendo_react_common_1.kendoThemeMaps.roundedMap;
|
|
45
48
|
/**
|
|
@@ -60,6 +63,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
60
63
|
_this._skipFocusEvent = false;
|
|
61
64
|
_this._filterInput = null;
|
|
62
65
|
_this._navigated = false;
|
|
66
|
+
_this._inputId = (0, kendo_react_common_1.guid)();
|
|
63
67
|
/**
|
|
64
68
|
* @hidden
|
|
65
69
|
*/
|
|
@@ -490,6 +494,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
490
494
|
DropDownListWithoutContext.prototype.render = function () {
|
|
491
495
|
var _a;
|
|
492
496
|
var _this = this;
|
|
497
|
+
var btnAriaLabel = (0, kendo_react_intl_1.provideLocalizationService)(this).toLanguageString(messages_1.dropDownListArrowBtnAriaLabel, messages_1.messages[messages_1.dropDownListArrowBtnAriaLabel]);
|
|
493
498
|
var _b = this.props, style = _b.style, className = _b.className, label = _b.label, dir = _b.dir, virtual = _b.virtual, size = _b.size, rounded = _b.rounded, fillMode = _b.fillMode;
|
|
494
499
|
var opened = this.props.opened !== undefined ? this.props.opened : this.state.opened;
|
|
495
500
|
var value = this.value;
|
|
@@ -506,7 +511,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
506
511
|
var _c = this.props, dataItemKey = _c.dataItemKey, _d = _c.data, data = _d === void 0 ? [] : _d, disabled = _c.disabled, tabIndex = _c.tabIndex, loading = _c.loading, iconClassName = _c.iconClassName, valueRender = _c.valueRender;
|
|
507
512
|
var focused = this.state.focused;
|
|
508
513
|
var selectedIndex = data.findIndex(function (i) { return (0, utils_1.areSame)(i, value, dataItemKey); });
|
|
509
|
-
var valueDefaultRendering = (React.createElement("span", { className: "k-input-inner" },
|
|
514
|
+
var valueDefaultRendering = (React.createElement("span", { id: this._inputId, className: "k-input-inner" },
|
|
510
515
|
React.createElement("span", { className: "k-input-value-text" }, text)));
|
|
511
516
|
var valueElement = valueRender !== undefined ?
|
|
512
517
|
valueRender.call(undefined, valueDefaultRendering, value) : valueDefaultRendering;
|
|
@@ -521,10 +526,10 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
521
526
|
_a['k-required'] = this.required,
|
|
522
527
|
_a)), style: !label
|
|
523
528
|
? style
|
|
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: 'combobox', "aria-required": this.required, "aria-disabled": disabled || undefined, "aria-haspopup": 'listbox', "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 },
|
|
529
|
+
: __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: 'combobox', "aria-required": this.required, "aria-disabled": disabled || undefined, "aria-haspopup": 'listbox', "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 || this._inputId, id: this.props.id, title: this.props.title },
|
|
525
530
|
valueElement,
|
|
526
|
-
loading && React.createElement(
|
|
527
|
-
React.createElement(kendo_react_buttons_1.Button, { tabIndex: -1, type: "button", "aria-hidden": true, size: size, fillMode: fillMode, iconClass: iconClassName, className: "k-input-button", themeColor: 'base', icon: !iconClassName ? 'caret-alt-down' : undefined, onMouseDown: function (e) { return _this.state.focused && e.preventDefault(); } }),
|
|
531
|
+
loading && React.createElement(kendo_react_common_1.IconWrap, { className: "k-input-loading-icon", name: 'loading' }),
|
|
532
|
+
React.createElement(kendo_react_buttons_1.Button, { tabIndex: -1, type: "button", "aria-label": btnAriaLabel, "aria-hidden": true, size: size, fillMode: fillMode, iconClass: iconClassName, className: "k-input-button", themeColor: 'base', icon: !iconClassName ? 'caret-alt-down' : undefined, svgIcon: !iconClassName ? kendo_svg_icons_1.caretAltDownIcon : this.props.svgIcon, onMouseDown: function (e) { return _this.state.focused && e.preventDefault(); } }),
|
|
528
533
|
this.dummySelect(value),
|
|
529
534
|
this.renderListContainer()));
|
|
530
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;
|
|
@@ -586,7 +591,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
|
|
|
586
591
|
/**
|
|
587
592
|
* @hidden
|
|
588
593
|
*/
|
|
589
|
-
DropDownListWithoutContext.propTypes = __assign({ delay: PropTypes.number, ignoreCase: PropTypes.bool, iconClassName: PropTypes.string, defaultItem: PropTypes.any, valueRender: PropTypes.func, valueMap: PropTypes.func, validationMessage: PropTypes.string, required: PropTypes.bool, id: PropTypes.string, ariaLabelledBy: PropTypes.string, ariaDescribedBy: PropTypes.string, ariaLabel: PropTypes.string, leftRightKeysNavigation: PropTypes.bool, title: PropTypes.string }, DropDownBase_1.default.propTypes);
|
|
594
|
+
DropDownListWithoutContext.propTypes = __assign({ delay: PropTypes.number, ignoreCase: PropTypes.bool, iconClassName: PropTypes.string, svgIcon: kendo_react_common_1.svgIconPropType, defaultItem: PropTypes.any, valueRender: PropTypes.func, valueMap: PropTypes.func, validationMessage: PropTypes.string, required: PropTypes.bool, id: PropTypes.string, ariaLabelledBy: PropTypes.string, ariaDescribedBy: PropTypes.string, ariaLabel: PropTypes.string, leftRightKeysNavigation: PropTypes.bool, title: PropTypes.string }, DropDownBase_1.default.propTypes);
|
|
590
595
|
/**
|
|
591
596
|
* @hidden
|
|
592
597
|
*/
|
|
@@ -3,7 +3,7 @@ import { DropDownList } from './DropDownList';
|
|
|
3
3
|
import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, PageChangeEvent } from './../common/events';
|
|
4
4
|
import { VirtualizationSettings, DropDownsPopupSettings } from '../common/settings';
|
|
5
5
|
import { ListItemProps } from '../common/ListItem';
|
|
6
|
-
import { FormComponentProps } from '@progress/kendo-react-common';
|
|
6
|
+
import { FormComponentProps, SVGIcon } from '@progress/kendo-react-common';
|
|
7
7
|
/**
|
|
8
8
|
* Represents the object of the `filterChange` DropDownList event.
|
|
9
9
|
*/
|
|
@@ -83,6 +83,10 @@ export interface DropDownListProps extends FormComponentProps {
|
|
|
83
83
|
* Sets CSS classes to the expand `icon` DOM element.
|
|
84
84
|
*/
|
|
85
85
|
iconClassName?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Sets the specified SVG icon.
|
|
88
|
+
*/
|
|
89
|
+
svgIcon?: SVGIcon;
|
|
86
90
|
/**
|
|
87
91
|
* Sets the title attribute to the DropDownList DOM element.
|
|
88
92
|
*/
|
|
@@ -36,6 +36,7 @@ var messages_1 = require("./../messages");
|
|
|
36
36
|
var kendo_react_labels_1 = require("@progress/kendo-react-labels");
|
|
37
37
|
var ListFilter_1 = require("../common/ListFilter");
|
|
38
38
|
var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
|
|
39
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
39
40
|
var sizeMap = kendo_react_common_1.kendoThemeMaps.sizeMap, roundedMap = kendo_react_common_1.kendoThemeMaps.roundedMap;
|
|
40
41
|
var VALIDATION_MESSAGE = 'Please select a value from the list!';
|
|
41
42
|
var ValueHolder = function (props) {
|
|
@@ -357,10 +358,10 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
|
|
|
357
358
|
_a)), tabIndex: tabIndex, accessKey: props.accessKey, id: id, style: label ? __assign(__assign({}, style), { width: undefined }) : style, dir: dir, ref: elementRef, onKeyDown: disabled ? undefined : onWrapperKeyDown, onMouseDown: onWrapperMouseDown, onClick: disabled ? undefined : onWrapperClick, onFocus: onFocus, onBlur: onBlur, role: "combobox", "aria-haspopup": "tree", "aria-expanded": isOpen, "aria-disabled": disabled, "aria-label": label, "aria-labelledby": props.ariaLabelledBy, "aria-describedby": props.ariaDescribedBy },
|
|
358
359
|
React.createElement("span", { className: "k-input-inner" },
|
|
359
360
|
React.createElement(ValueComponent, { item: value }, currentValueText || placeholder)),
|
|
360
|
-
props.loading && React.createElement(
|
|
361
|
+
props.loading && React.createElement(kendo_react_common_1.IconWrap, { className: "k-input-loading-icon", name: 'loading' }),
|
|
361
362
|
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(); } },
|
|
362
|
-
React.createElement(
|
|
363
|
-
React.createElement(kendo_react_buttons_1.Button, { tabIndex: -1, type: "button", "aria-label": "select", className: "k-input-button", size: size, fillMode: fillMode, themeColor: "base", rounded: null, icon: "caret-alt-down" }),
|
|
363
|
+
React.createElement(kendo_react_common_1.IconWrap, { name: 'x', icon: kendo_svg_icons_1.xIcon }))),
|
|
364
|
+
React.createElement(kendo_react_buttons_1.Button, { tabIndex: -1, type: "button", "aria-label": "select", className: "k-input-button", size: size, fillMode: fillMode, themeColor: "base", rounded: null, icon: "caret-alt-down", svgIcon: kendo_svg_icons_1.caretAltDownIcon }),
|
|
364
365
|
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
366
|
React.createElement("option", { value: props.valueMap ? props.valueMap.call(undefined, value) : value })),
|
|
366
367
|
React.createElement(kendo_react_popup_1.Popup, { className: (0, kendo_react_common_1.classNames)(popupSettings.className, { 'k-rtl': dir === 'rtl' }), popupClass: (0, kendo_react_common_1.classNames)(popupSettings.popupClass, 'k-list-container', 'k-dropdowntree-popup'), style: popupStyles, animate: popupSettings.animate, anchor: elementRef.current, show: isOpen, onOpen: onPopupOpened, onClose: onPopupClosed, appendTo: popupSettings.appendTo },
|
|
@@ -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");
|
|
@@ -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,
|
|
@@ -592,7 +593,7 @@ var MultiSelectWithoutContext = /** @class */ (function (_super) {
|
|
|
592
593
|
_b["k-chip-list-".concat(sizeMap[size] || size)] = size,
|
|
593
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;
|
|
@@ -402,13 +402,13 @@ exports.MultiSelectTree = React.forwardRef(function (directProps, ref) {
|
|
|
402
402
|
_a['k-loading'] = props.loading,
|
|
403
403
|
_a['k-required'] = required,
|
|
404
404
|
_a)), tabIndex: tabIndex, accessKey: props.accessKey, id: id, style: label ? __assign(__assign({}, style), { width: undefined }) : style, dir: dir, ref: elementRef, onKeyDown: disabled ? undefined : onWrapperKeyDown, onMouseDown: onWrapperMouseDown, onFocus: onFocus, onBlur: onBlur, role: "combobox", "aria-haspopup": "true", "aria-expanded": isOpen, "aria-disabled": disabled, "aria-label": label, "aria-labelledby": props.ariaLabelledBy, "aria-describedby": props.ariaDescribedBy, onClick: disabled ? undefined : onWrapperClick },
|
|
405
|
-
|
|
405
|
+
React.createElement("div", { id: 'tagslist-' + id, className: (0, kendo_react_common_1.classNames)('k-input-values k-chip-list k-selection-multiple', (_b = {},
|
|
406
406
|
_b["k-chip-list-".concat(sizeMap[size] || size)] = size,
|
|
407
|
-
_b)),
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
props.loading && React.createElement(
|
|
407
|
+
_b)) }, tagsToRenderRef.current.length > 0 && (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 }))),
|
|
408
|
+
!hasValue &&
|
|
409
|
+
React.createElement("span", { className: "k-input-inner", role: 'combobox', tabIndex: tabIndex, "aria-expanded": isOpen, "aria-describedby": 'tagslist-' + id, "aria-label": props.ariaLabelledBy },
|
|
410
|
+
React.createElement("span", { className: "k-input-value-text" }, "\u00A0")),
|
|
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 })),
|
|
@@ -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;
|
|
@@ -6,10 +6,25 @@ export declare const nodata = "dropdowns.nodata";
|
|
|
6
6
|
* @hidden
|
|
7
7
|
*/
|
|
8
8
|
export declare const clear = "dropdowns.clear";
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const comboArrowBtnAriaLabelExpand = "dropdowns.comboArrowBtnAriaLabelExpand";
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const comboArrowBtnAriaLabelCollapse = "dropdowns.comboArrowBtnAriaLabelCollapse";
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare const dropDownListArrowBtnAriaLabel = "dropdowns.dropDownListArrowBtnAriaLabel";
|
|
9
21
|
/**
|
|
10
22
|
* @hidden
|
|
11
23
|
*/
|
|
12
24
|
export declare const messages: {
|
|
13
25
|
"dropdowns.clear": string;
|
|
14
26
|
"dropdowns.nodata": string;
|
|
27
|
+
"dropdowns.comboArrowBtnAriaLabelExpand": string;
|
|
28
|
+
"dropdowns.comboArrowBtnAriaLabelCollapse": string;
|
|
29
|
+
"dropdowns.dropDownListArrowBtnAriaLabel": string;
|
|
15
30
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.messages = exports.clear = exports.nodata = void 0;
|
|
4
|
+
exports.messages = exports.dropDownListArrowBtnAriaLabel = exports.comboArrowBtnAriaLabelCollapse = exports.comboArrowBtnAriaLabelExpand = exports.clear = exports.nodata = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* @hidden
|
|
7
7
|
*/
|
|
@@ -10,10 +10,25 @@ exports.nodata = 'dropdowns.nodata';
|
|
|
10
10
|
* @hidden
|
|
11
11
|
*/
|
|
12
12
|
exports.clear = 'dropdowns.clear';
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
exports.comboArrowBtnAriaLabelExpand = 'dropdowns.comboArrowBtnAriaLabelExpand';
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
exports.comboArrowBtnAriaLabelCollapse = 'dropdowns.comboArrowBtnAriaLabelCollapse';
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
exports.dropDownListArrowBtnAriaLabel = 'dropdowns.dropDownListArrowBtnAriaLabel';
|
|
13
25
|
/**
|
|
14
26
|
* @hidden
|
|
15
27
|
*/
|
|
16
28
|
exports.messages = (_a = {},
|
|
17
29
|
_a[exports.clear] = 'clear',
|
|
18
30
|
_a[exports.nodata] = 'NO DATA FOUND.',
|
|
31
|
+
_a[exports.comboArrowBtnAriaLabelExpand] = 'expand combobox',
|
|
32
|
+
_a[exports.comboArrowBtnAriaLabelCollapse] = 'collapse combobox',
|
|
33
|
+
_a[exports.dropDownListArrowBtnAriaLabel] = 'select',
|
|
19
34
|
_a);
|
|
@@ -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: 1673462299,
|
|
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
|
};
|