@progress/kendo-react-dropdowns 5.0.2-dev.202201251006 → 5.1.0-dev.202202091038

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.
@@ -385,7 +385,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
385
385
  this.renderSearchBar(inputText || '', id),
386
386
  renderClearButton && !loading && React.createElement(ClearButton, { onClick: this.clearButtonClick, key: "clearbutton" }),
387
387
  loading && React.createElement("span", { className: "k-icon k-i-loading", key: "loading" }),
388
- React.createElement("button", { type: "button", className: classNames('k-input-button k-button k-icon-button', (_b = {},
388
+ React.createElement("button", { tabIndex: -1, type: "button", className: classNames('k-input-button k-button k-icon-button', (_b = {},
389
389
  _b["k-button-" + (sizeMap[size] || size)] = size,
390
390
  _b["k-button-" + fillMode] = fillMode,
391
391
  _b["k-button-" + fillMode + "-base"] = fillMode,
@@ -112,10 +112,6 @@ export declare class DropDownListWithoutContext extends React.Component<DropDown
112
112
  * @hidden
113
113
  */
114
114
  readonly element: HTMLSpanElement | null;
115
- /**
116
- * @hidden
117
- */
118
- readonly actionElement: HTMLSpanElement | null;
119
115
  /**
120
116
  * The value of the DropDownList.
121
117
  */
@@ -335,16 +335,6 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
335
335
  enumerable: true,
336
336
  configurable: true
337
337
  });
338
- Object.defineProperty(DropDownListWithoutContext.prototype, "actionElement", {
339
- /**
340
- * @hidden
341
- */
342
- get: function () {
343
- return this.base.wrapper;
344
- },
345
- enumerable: true,
346
- configurable: true
347
- });
348
338
  Object.defineProperty(DropDownListWithoutContext.prototype, "value", {
349
339
  /**
350
340
  * The value of the DropDownList.
@@ -528,7 +518,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
528
518
  : __assign({}, style, { width: undefined }), dir: dir, onMouseDown: opened ? preventDefaultNonInputs : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, tabIndex: 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 },
529
519
  valueElement,
530
520
  loading && React.createElement("span", { className: "k-icon k-i-loading", key: "loading" }),
531
- React.createElement("button", { type: "button", className: classNames('k-input-button k-button k-icon-button', (_b = {},
521
+ React.createElement("button", { tabIndex: -1, type: "button", className: classNames('k-input-button k-button k-icon-button', (_b = {},
532
522
  _b["k-button-" + (sizeMap[size] || size)] = size,
533
523
  _b["k-button-" + fillMode] = fillMode,
534
524
  _b["k-button-" + fillMode + "-base"] = fillMode,
@@ -90,7 +90,6 @@ export var DropDownTree = React.forwardRef(function (directProps, ref) {
90
90
  React.useImperativeHandle(target, function () { return ({
91
91
  props: props,
92
92
  element: elementRef.current,
93
- actionElement: elementRef.current,
94
93
  focus: focus
95
94
  }); });
96
95
  React.useImperativeHandle(ref, function () { return target.current; });
@@ -162,6 +161,7 @@ export var DropDownTree = React.forwardRef(function (directProps, ref) {
162
161
  };
163
162
  if (isOpen) {
164
163
  if (keyCode === Keys.esc || (altKey && keyCode === Keys.up)) {
164
+ event.preventDefault();
165
165
  closePopup(ev);
166
166
  }
167
167
  else if (treeview && treeview.querySelector('.k-focus') &&
@@ -183,6 +183,7 @@ export var DropDownTree = React.forwardRef(function (directProps, ref) {
183
183
  }
184
184
  else {
185
185
  if (altKey && keyCode === Keys.down) {
186
+ event.preventDefault();
186
187
  openPopup(ev);
187
188
  }
188
189
  }
@@ -344,7 +345,7 @@ export var DropDownTree = React.forwardRef(function (directProps, ref) {
344
345
  props.loading && React.createElement("span", { className: "k-icon k-i-loading" }),
345
346
  hasValue && !disabled && (React.createElement("span", { onClick: onClear, className: "k-clear-value", title: localization.toLanguageString(clear, messages[clear]), role: "button", tabIndex: -1, onMouseDown: function (e) { return e.preventDefault(); } },
346
347
  React.createElement("span", { className: "k-icon k-i-x" }))),
347
- React.createElement("button", { type: "button", "aria-label": "select", className: classNames('k-input-button k-button k-icon-button', (_b = {},
348
+ React.createElement("button", { tabIndex: -1, type: "button", "aria-label": "select", className: classNames('k-input-button k-button k-icon-button', (_b = {},
348
349
  _b["k-button-" + (sizeMap[size] || size)] = size,
349
350
  _b["k-button-" + fillMode] = fillMode,
350
351
  _b["k-button-" + fillMode + "-base"] = fillMode,
@@ -100,7 +100,6 @@ export var MultiSelectTree = React.forwardRef(function (directProps, ref) {
100
100
  React.useImperativeHandle(targetRef, function () { return ({
101
101
  props: props,
102
102
  element: elementRef.current,
103
- actionElement: elementRef.current,
104
103
  focus: focus
105
104
  }); });
106
105
  React.useImperativeHandle(ref, function () { return targetRef.current; });
@@ -288,6 +287,7 @@ export var MultiSelectTree = React.forwardRef(function (directProps, ref) {
288
287
  }
289
288
  if (isOpen) {
290
289
  if (keyCode === Keys.esc || (altKey && keyCode === Keys.up)) {
290
+ event.preventDefault();
291
291
  closePopup(ev);
292
292
  }
293
293
  else if (treeviewElement && treeviewElement.querySelector('.k-focus') &&
@@ -309,6 +309,7 @@ export var MultiSelectTree = React.forwardRef(function (directProps, ref) {
309
309
  }
310
310
  else {
311
311
  if (altKey && keyCode === Keys.down) {
312
+ event.preventDefault();
312
313
  openPopup(ev);
313
314
  }
314
315
  }
@@ -57,6 +57,7 @@ export interface DropDownsPopupSettings {
57
57
  /**
58
58
  * Defines the container to which the Popup will be appended.
59
59
  * Defaults to [`body`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body).
60
+ * * If set to `null` the Popup will be rendered without React Portal.
60
61
  */
61
62
  appendTo?: HTMLElement;
62
63
  }
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-dropdowns',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1643103790,
8
+ publishDate: 1644402207,
9
9
  version: '',
10
10
  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'
11
11
  };
@@ -387,7 +387,7 @@ var ComboBoxWithoutContext = /** @class */ (function (_super) {
387
387
  this.renderSearchBar(inputText || '', id),
388
388
  renderClearButton && !loading && React.createElement(ClearButton_1.default, { onClick: this.clearButtonClick, key: "clearbutton" }),
389
389
  loading && React.createElement("span", { className: "k-icon k-i-loading", key: "loading" }),
390
- React.createElement("button", { type: "button", className: kendo_react_common_1.classNames('k-input-button k-button k-icon-button', (_b = {},
390
+ React.createElement("button", { tabIndex: -1, type: "button", className: kendo_react_common_1.classNames('k-input-button k-button k-icon-button', (_b = {},
391
391
  _b["k-button-" + (sizeMap[size] || size)] = size,
392
392
  _b["k-button-" + fillMode] = fillMode,
393
393
  _b["k-button-" + fillMode + "-base"] = fillMode,
@@ -112,10 +112,6 @@ export declare class DropDownListWithoutContext extends React.Component<DropDown
112
112
  * @hidden
113
113
  */
114
114
  readonly element: HTMLSpanElement | null;
115
- /**
116
- * @hidden
117
- */
118
- readonly actionElement: HTMLSpanElement | null;
119
115
  /**
120
116
  * The value of the DropDownList.
121
117
  */
@@ -337,16 +337,6 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
337
337
  enumerable: true,
338
338
  configurable: true
339
339
  });
340
- Object.defineProperty(DropDownListWithoutContext.prototype, "actionElement", {
341
- /**
342
- * @hidden
343
- */
344
- get: function () {
345
- return this.base.wrapper;
346
- },
347
- enumerable: true,
348
- configurable: true
349
- });
350
340
  Object.defineProperty(DropDownListWithoutContext.prototype, "value", {
351
341
  /**
352
342
  * The value of the DropDownList.
@@ -530,7 +520,7 @@ var DropDownListWithoutContext = /** @class */ (function (_super) {
530
520
  : __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
521
  valueElement,
532
522
  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 = {},
523
+ React.createElement("button", { tabIndex: -1, type: "button", className: kendo_react_common_1.classNames('k-input-button k-button k-icon-button', (_b = {},
534
524
  _b["k-button-" + (sizeMap[size] || size)] = size,
535
525
  _b["k-button-" + fillMode] = fillMode,
536
526
  _b["k-button-" + fillMode + "-base"] = fillMode,
@@ -92,7 +92,6 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
92
92
  React.useImperativeHandle(target, function () { return ({
93
93
  props: props,
94
94
  element: elementRef.current,
95
- actionElement: elementRef.current,
96
95
  focus: focus
97
96
  }); });
98
97
  React.useImperativeHandle(ref, function () { return target.current; });
@@ -164,6 +163,7 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
164
163
  };
165
164
  if (isOpen) {
166
165
  if (keyCode === kendo_react_common_1.Keys.esc || (altKey && keyCode === kendo_react_common_1.Keys.up)) {
166
+ event.preventDefault();
167
167
  closePopup(ev);
168
168
  }
169
169
  else if (treeview && treeview.querySelector('.k-focus') &&
@@ -185,6 +185,7 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
185
185
  }
186
186
  else {
187
187
  if (altKey && keyCode === kendo_react_common_1.Keys.down) {
188
+ event.preventDefault();
188
189
  openPopup(ev);
189
190
  }
190
191
  }
@@ -346,7 +347,7 @@ exports.DropDownTree = React.forwardRef(function (directProps, ref) {
346
347
  props.loading && React.createElement("span", { className: "k-icon k-i-loading" }),
347
348
  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
349
  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
+ 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 = {},
350
351
  _b["k-button-" + (sizeMap[size] || size)] = size,
351
352
  _b["k-button-" + fillMode] = fillMode,
352
353
  _b["k-button-" + fillMode + "-base"] = fillMode,
@@ -102,7 +102,6 @@ exports.MultiSelectTree = React.forwardRef(function (directProps, ref) {
102
102
  React.useImperativeHandle(targetRef, function () { return ({
103
103
  props: props,
104
104
  element: elementRef.current,
105
- actionElement: elementRef.current,
106
105
  focus: focus
107
106
  }); });
108
107
  React.useImperativeHandle(ref, function () { return targetRef.current; });
@@ -290,6 +289,7 @@ exports.MultiSelectTree = React.forwardRef(function (directProps, ref) {
290
289
  }
291
290
  if (isOpen) {
292
291
  if (keyCode === kendo_react_common_1.Keys.esc || (altKey && keyCode === kendo_react_common_1.Keys.up)) {
292
+ event.preventDefault();
293
293
  closePopup(ev);
294
294
  }
295
295
  else if (treeviewElement && treeviewElement.querySelector('.k-focus') &&
@@ -311,6 +311,7 @@ exports.MultiSelectTree = React.forwardRef(function (directProps, ref) {
311
311
  }
312
312
  else {
313
313
  if (altKey && keyCode === kendo_react_common_1.Keys.down) {
314
+ event.preventDefault();
314
315
  openPopup(ev);
315
316
  }
316
317
  }
@@ -57,6 +57,7 @@ export interface DropDownsPopupSettings {
57
57
  /**
58
58
  * Defines the container to which the Popup will be appended.
59
59
  * Defaults to [`body`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body).
60
+ * * If set to `null` the Popup will be rendered without React Portal.
60
61
  */
61
62
  appendTo?: HTMLElement;
62
63
  }
@@ -7,7 +7,7 @@ exports.packageMetadata = {
7
7
  name: '@progress/kendo-react-dropdowns',
8
8
  productName: 'KendoReact',
9
9
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
10
- publishDate: 1643103790,
10
+ publishDate: 1644402207,
11
11
  version: '',
12
12
  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'
13
13
  };