@progress/kendo-react-dropdowns 7.3.0 → 7.4.0-develop.10
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/ComboBox/ComboBox.js +1 -1
- package/ComboBox/ComboBox.mjs +233 -217
- package/common/List.js +1 -1
- package/common/List.mjs +70 -69
- package/common/utils.js +1 -1
- package/common/utils.mjs +28 -24
- package/dist/cdn/js/kendo-react-dropdowns.js +1 -1
- package/index.d.mts +22 -12
- package/index.d.ts +22 -12
- package/package-metadata.mjs +1 -1
- package/package.json +9 -9
package/index.d.mts
CHANGED
|
@@ -700,7 +700,7 @@ export declare interface ComboBoxProps extends FormComponentProps {
|
|
|
700
700
|
*/
|
|
701
701
|
filterable?: boolean;
|
|
702
702
|
/**
|
|
703
|
-
* Sets the value of ComboBox input. Useful for making the ComboBox input a [controlled component](https://
|
|
703
|
+
* Sets the value of ComboBox input. Useful for making the ComboBox input a [controlled component](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).
|
|
704
704
|
*/
|
|
705
705
|
filter?: string | null;
|
|
706
706
|
/**
|
|
@@ -1030,6 +1030,9 @@ export declare class ComboBoxWithoutContext extends React_2.Component<ComboBoxPr
|
|
|
1030
1030
|
private _input;
|
|
1031
1031
|
private _adaptiveFilterInput;
|
|
1032
1032
|
private itemHeight;
|
|
1033
|
+
private duplicates;
|
|
1034
|
+
private hasDuplicates;
|
|
1035
|
+
private navigationIndex;
|
|
1033
1036
|
private observerResize?;
|
|
1034
1037
|
private get document();
|
|
1035
1038
|
constructor(props: ComboBoxProps);
|
|
@@ -1060,6 +1063,11 @@ export declare class ComboBoxWithoutContext extends React_2.Component<ComboBoxPr
|
|
|
1060
1063
|
protected get validityStyles(): boolean;
|
|
1061
1064
|
/** @hidden */
|
|
1062
1065
|
protected get required(): boolean;
|
|
1066
|
+
/**
|
|
1067
|
+
* @hidden
|
|
1068
|
+
* Executed when no dataItemKey and textField are provided
|
|
1069
|
+
*/
|
|
1070
|
+
private checkForDuplicatePlainTextRecords;
|
|
1063
1071
|
/** @hidden */
|
|
1064
1072
|
componentDidUpdate(prevProps: ComboBoxProps, prevState: ComboBoxState): void;
|
|
1065
1073
|
/** @hidden */
|
|
@@ -1077,6 +1085,7 @@ export declare class ComboBoxWithoutContext extends React_2.Component<ComboBoxPr
|
|
|
1077
1085
|
private getCurrentValueDisabledStatus;
|
|
1078
1086
|
private toggleBtnClick;
|
|
1079
1087
|
private applyValueOnEnter;
|
|
1088
|
+
private closeOpenedApplyStateNonMobileMode;
|
|
1080
1089
|
private applyValueOnRejectSuggestions;
|
|
1081
1090
|
private selectFocusedItem;
|
|
1082
1091
|
private renderAdaptiveListContainer;
|
|
@@ -1291,7 +1300,7 @@ declare interface DropdownEvent<T> {
|
|
|
1291
1300
|
*/
|
|
1292
1301
|
nativeEvent: Event;
|
|
1293
1302
|
/**
|
|
1294
|
-
* A React [`SyntheticEvent`](https://
|
|
1303
|
+
* A React [`SyntheticEvent`](https://react.dev/learn/responding-to-events).
|
|
1295
1304
|
*/
|
|
1296
1305
|
syntheticEvent: React.SyntheticEvent<HTMLElement>;
|
|
1297
1306
|
/**
|
|
@@ -1459,7 +1468,7 @@ export declare interface DropDownListProps extends FormComponentProps {
|
|
|
1459
1468
|
*/
|
|
1460
1469
|
filterable?: boolean;
|
|
1461
1470
|
/**
|
|
1462
|
-
* Sets the value of filtering input. Useful for making the filtering input a [controlled component](https://
|
|
1471
|
+
* Sets the value of filtering input. Useful for making the filtering input a [controlled component](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).
|
|
1463
1472
|
*/
|
|
1464
1473
|
filter?: string;
|
|
1465
1474
|
/**
|
|
@@ -1483,7 +1492,7 @@ export declare interface DropDownListProps extends FormComponentProps {
|
|
|
1483
1492
|
*/
|
|
1484
1493
|
dataItemKey?: string;
|
|
1485
1494
|
/**
|
|
1486
|
-
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden [`select`](https://
|
|
1495
|
+
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden [`select`](https://react.dev/reference/react-dom/components/select) element.
|
|
1487
1496
|
*
|
|
1488
1497
|
* @example
|
|
1489
1498
|
* ```jsx-no-run
|
|
@@ -2042,7 +2051,7 @@ export declare interface DropDownTreeFocusEvent extends FocusEvent_2<DropDownTre
|
|
|
2042
2051
|
|
|
2043
2052
|
/**
|
|
2044
2053
|
* Represents the Object which is passed to the
|
|
2045
|
-
* [`ref`](https://
|
|
2054
|
+
* [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the DropDownTree component.
|
|
2046
2055
|
*/
|
|
2047
2056
|
export declare interface DropDownTreeHandle {
|
|
2048
2057
|
/**
|
|
@@ -2130,7 +2139,7 @@ export declare interface DropDownTreeProps extends FormComponentProps {
|
|
|
2130
2139
|
filterable?: boolean;
|
|
2131
2140
|
/**
|
|
2132
2141
|
* Sets the value of filtering input.
|
|
2133
|
-
* Useful for making the filtering input a [controlled component](https://
|
|
2142
|
+
* Useful for making the filtering input a [controlled component](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).
|
|
2134
2143
|
*/
|
|
2135
2144
|
filter?: string;
|
|
2136
2145
|
/**
|
|
@@ -2167,7 +2176,7 @@ export declare interface DropDownTreeProps extends FormComponentProps {
|
|
|
2167
2176
|
*/
|
|
2168
2177
|
popupSettings?: DropDownsPopupSettings;
|
|
2169
2178
|
/**
|
|
2170
|
-
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden [`select`](https://
|
|
2179
|
+
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden [`select`](https://react.dev/reference/react-dom/components/select) element.
|
|
2171
2180
|
*
|
|
2172
2181
|
* @example
|
|
2173
2182
|
* ```jsx-no-run
|
|
@@ -2303,7 +2312,7 @@ declare interface EventData {
|
|
|
2303
2312
|
*/
|
|
2304
2313
|
declare interface FilterChangeEvent<T> extends DropdownEvent<T> {
|
|
2305
2314
|
/**
|
|
2306
|
-
* A React [`SyntheticEvent`](https://
|
|
2315
|
+
* A React [`SyntheticEvent`](https://react.dev/learn/responding-to-events).
|
|
2307
2316
|
*/
|
|
2308
2317
|
syntheticEvent: React.ChangeEvent<HTMLInputElement>;
|
|
2309
2318
|
/**
|
|
@@ -2580,6 +2589,7 @@ declare interface ListProps {
|
|
|
2580
2589
|
groupMode?: string;
|
|
2581
2590
|
isMultiColumn?: boolean;
|
|
2582
2591
|
optionsGuid?: string;
|
|
2592
|
+
hasDuplicates?: boolean;
|
|
2583
2593
|
listRef?: React_2.Ref<HTMLUListElement>;
|
|
2584
2594
|
wrapperRef?: React_2.Ref<HTMLDivElement>;
|
|
2585
2595
|
wrapperCssClass?: string;
|
|
@@ -3106,7 +3116,7 @@ export declare interface MultiSelectProps extends FormComponentProps {
|
|
|
3106
3116
|
*/
|
|
3107
3117
|
focusedItemIndex?: (data: any, inputText: string, textField?: string) => number;
|
|
3108
3118
|
/**
|
|
3109
|
-
* Sets the value of filtering input. Useful for making the filtering input a [controlled component](https://
|
|
3119
|
+
* Sets the value of filtering input. Useful for making the filtering input a [controlled component](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).
|
|
3110
3120
|
*/
|
|
3111
3121
|
filter?: string;
|
|
3112
3122
|
/**
|
|
@@ -3423,7 +3433,7 @@ export declare interface MultiSelectTreeFocusEvent extends FocusEvent_2<MultiSel
|
|
|
3423
3433
|
|
|
3424
3434
|
/**
|
|
3425
3435
|
* Represents the Object which is passed to the
|
|
3426
|
-
* [`ref`](https://
|
|
3436
|
+
* [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the MultiSelectTree component.
|
|
3427
3437
|
*/
|
|
3428
3438
|
export declare interface MultiSelectTreeHandle {
|
|
3429
3439
|
/**
|
|
@@ -3528,7 +3538,7 @@ export declare interface MultiSelectTreeProps extends FormComponentProps {
|
|
|
3528
3538
|
filterable?: boolean;
|
|
3529
3539
|
/**
|
|
3530
3540
|
* Sets the value of filtering input.
|
|
3531
|
-
* Useful for making the filtering input a [controlled component](https://
|
|
3541
|
+
* Useful for making the filtering input a [controlled component](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).
|
|
3532
3542
|
*/
|
|
3533
3543
|
filter?: string;
|
|
3534
3544
|
/**
|
|
@@ -3569,7 +3579,7 @@ export declare interface MultiSelectTreeProps extends FormComponentProps {
|
|
|
3569
3579
|
*/
|
|
3570
3580
|
popupSettings?: DropDownsPopupSettings;
|
|
3571
3581
|
/**
|
|
3572
|
-
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden [`select`](https://
|
|
3582
|
+
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden [`select`](https://react.dev/reference/react-dom/components/select) element.
|
|
3573
3583
|
*
|
|
3574
3584
|
* @example
|
|
3575
3585
|
* ```jsx-no-run
|
package/index.d.ts
CHANGED
|
@@ -700,7 +700,7 @@ export declare interface ComboBoxProps extends FormComponentProps {
|
|
|
700
700
|
*/
|
|
701
701
|
filterable?: boolean;
|
|
702
702
|
/**
|
|
703
|
-
* Sets the value of ComboBox input. Useful for making the ComboBox input a [controlled component](https://
|
|
703
|
+
* Sets the value of ComboBox input. Useful for making the ComboBox input a [controlled component](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).
|
|
704
704
|
*/
|
|
705
705
|
filter?: string | null;
|
|
706
706
|
/**
|
|
@@ -1030,6 +1030,9 @@ export declare class ComboBoxWithoutContext extends React_2.Component<ComboBoxPr
|
|
|
1030
1030
|
private _input;
|
|
1031
1031
|
private _adaptiveFilterInput;
|
|
1032
1032
|
private itemHeight;
|
|
1033
|
+
private duplicates;
|
|
1034
|
+
private hasDuplicates;
|
|
1035
|
+
private navigationIndex;
|
|
1033
1036
|
private observerResize?;
|
|
1034
1037
|
private get document();
|
|
1035
1038
|
constructor(props: ComboBoxProps);
|
|
@@ -1060,6 +1063,11 @@ export declare class ComboBoxWithoutContext extends React_2.Component<ComboBoxPr
|
|
|
1060
1063
|
protected get validityStyles(): boolean;
|
|
1061
1064
|
/** @hidden */
|
|
1062
1065
|
protected get required(): boolean;
|
|
1066
|
+
/**
|
|
1067
|
+
* @hidden
|
|
1068
|
+
* Executed when no dataItemKey and textField are provided
|
|
1069
|
+
*/
|
|
1070
|
+
private checkForDuplicatePlainTextRecords;
|
|
1063
1071
|
/** @hidden */
|
|
1064
1072
|
componentDidUpdate(prevProps: ComboBoxProps, prevState: ComboBoxState): void;
|
|
1065
1073
|
/** @hidden */
|
|
@@ -1077,6 +1085,7 @@ export declare class ComboBoxWithoutContext extends React_2.Component<ComboBoxPr
|
|
|
1077
1085
|
private getCurrentValueDisabledStatus;
|
|
1078
1086
|
private toggleBtnClick;
|
|
1079
1087
|
private applyValueOnEnter;
|
|
1088
|
+
private closeOpenedApplyStateNonMobileMode;
|
|
1080
1089
|
private applyValueOnRejectSuggestions;
|
|
1081
1090
|
private selectFocusedItem;
|
|
1082
1091
|
private renderAdaptiveListContainer;
|
|
@@ -1291,7 +1300,7 @@ declare interface DropdownEvent<T> {
|
|
|
1291
1300
|
*/
|
|
1292
1301
|
nativeEvent: Event;
|
|
1293
1302
|
/**
|
|
1294
|
-
* A React [`SyntheticEvent`](https://
|
|
1303
|
+
* A React [`SyntheticEvent`](https://react.dev/learn/responding-to-events).
|
|
1295
1304
|
*/
|
|
1296
1305
|
syntheticEvent: React.SyntheticEvent<HTMLElement>;
|
|
1297
1306
|
/**
|
|
@@ -1459,7 +1468,7 @@ export declare interface DropDownListProps extends FormComponentProps {
|
|
|
1459
1468
|
*/
|
|
1460
1469
|
filterable?: boolean;
|
|
1461
1470
|
/**
|
|
1462
|
-
* Sets the value of filtering input. Useful for making the filtering input a [controlled component](https://
|
|
1471
|
+
* Sets the value of filtering input. Useful for making the filtering input a [controlled component](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).
|
|
1463
1472
|
*/
|
|
1464
1473
|
filter?: string;
|
|
1465
1474
|
/**
|
|
@@ -1483,7 +1492,7 @@ export declare interface DropDownListProps extends FormComponentProps {
|
|
|
1483
1492
|
*/
|
|
1484
1493
|
dataItemKey?: string;
|
|
1485
1494
|
/**
|
|
1486
|
-
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden [`select`](https://
|
|
1495
|
+
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden [`select`](https://react.dev/reference/react-dom/components/select) element.
|
|
1487
1496
|
*
|
|
1488
1497
|
* @example
|
|
1489
1498
|
* ```jsx-no-run
|
|
@@ -2042,7 +2051,7 @@ export declare interface DropDownTreeFocusEvent extends FocusEvent_2<DropDownTre
|
|
|
2042
2051
|
|
|
2043
2052
|
/**
|
|
2044
2053
|
* Represents the Object which is passed to the
|
|
2045
|
-
* [`ref`](https://
|
|
2054
|
+
* [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the DropDownTree component.
|
|
2046
2055
|
*/
|
|
2047
2056
|
export declare interface DropDownTreeHandle {
|
|
2048
2057
|
/**
|
|
@@ -2130,7 +2139,7 @@ export declare interface DropDownTreeProps extends FormComponentProps {
|
|
|
2130
2139
|
filterable?: boolean;
|
|
2131
2140
|
/**
|
|
2132
2141
|
* Sets the value of filtering input.
|
|
2133
|
-
* Useful for making the filtering input a [controlled component](https://
|
|
2142
|
+
* Useful for making the filtering input a [controlled component](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).
|
|
2134
2143
|
*/
|
|
2135
2144
|
filter?: string;
|
|
2136
2145
|
/**
|
|
@@ -2167,7 +2176,7 @@ export declare interface DropDownTreeProps extends FormComponentProps {
|
|
|
2167
2176
|
*/
|
|
2168
2177
|
popupSettings?: DropDownsPopupSettings;
|
|
2169
2178
|
/**
|
|
2170
|
-
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden [`select`](https://
|
|
2179
|
+
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden [`select`](https://react.dev/reference/react-dom/components/select) element.
|
|
2171
2180
|
*
|
|
2172
2181
|
* @example
|
|
2173
2182
|
* ```jsx-no-run
|
|
@@ -2303,7 +2312,7 @@ declare interface EventData {
|
|
|
2303
2312
|
*/
|
|
2304
2313
|
declare interface FilterChangeEvent<T> extends DropdownEvent<T> {
|
|
2305
2314
|
/**
|
|
2306
|
-
* A React [`SyntheticEvent`](https://
|
|
2315
|
+
* A React [`SyntheticEvent`](https://react.dev/learn/responding-to-events).
|
|
2307
2316
|
*/
|
|
2308
2317
|
syntheticEvent: React.ChangeEvent<HTMLInputElement>;
|
|
2309
2318
|
/**
|
|
@@ -2580,6 +2589,7 @@ declare interface ListProps {
|
|
|
2580
2589
|
groupMode?: string;
|
|
2581
2590
|
isMultiColumn?: boolean;
|
|
2582
2591
|
optionsGuid?: string;
|
|
2592
|
+
hasDuplicates?: boolean;
|
|
2583
2593
|
listRef?: React_2.Ref<HTMLUListElement>;
|
|
2584
2594
|
wrapperRef?: React_2.Ref<HTMLDivElement>;
|
|
2585
2595
|
wrapperCssClass?: string;
|
|
@@ -3106,7 +3116,7 @@ export declare interface MultiSelectProps extends FormComponentProps {
|
|
|
3106
3116
|
*/
|
|
3107
3117
|
focusedItemIndex?: (data: any, inputText: string, textField?: string) => number;
|
|
3108
3118
|
/**
|
|
3109
|
-
* Sets the value of filtering input. Useful for making the filtering input a [controlled component](https://
|
|
3119
|
+
* Sets the value of filtering input. Useful for making the filtering input a [controlled component](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).
|
|
3110
3120
|
*/
|
|
3111
3121
|
filter?: string;
|
|
3112
3122
|
/**
|
|
@@ -3423,7 +3433,7 @@ export declare interface MultiSelectTreeFocusEvent extends FocusEvent_2<MultiSel
|
|
|
3423
3433
|
|
|
3424
3434
|
/**
|
|
3425
3435
|
* Represents the Object which is passed to the
|
|
3426
|
-
* [`ref`](https://
|
|
3436
|
+
* [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the MultiSelectTree component.
|
|
3427
3437
|
*/
|
|
3428
3438
|
export declare interface MultiSelectTreeHandle {
|
|
3429
3439
|
/**
|
|
@@ -3528,7 +3538,7 @@ export declare interface MultiSelectTreeProps extends FormComponentProps {
|
|
|
3528
3538
|
filterable?: boolean;
|
|
3529
3539
|
/**
|
|
3530
3540
|
* Sets the value of filtering input.
|
|
3531
|
-
* Useful for making the filtering input a [controlled component](https://
|
|
3541
|
+
* Useful for making the filtering input a [controlled component](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).
|
|
3532
3542
|
*/
|
|
3533
3543
|
filter?: string;
|
|
3534
3544
|
/**
|
|
@@ -3569,7 +3579,7 @@ export declare interface MultiSelectTreeProps extends FormComponentProps {
|
|
|
3569
3579
|
*/
|
|
3570
3580
|
popupSettings?: DropDownsPopupSettings;
|
|
3571
3581
|
/**
|
|
3572
|
-
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden [`select`](https://
|
|
3582
|
+
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden [`select`](https://react.dev/reference/react-dom/components/select) element.
|
|
3573
3583
|
*
|
|
3574
3584
|
* @example
|
|
3575
3585
|
* ```jsx-no-run
|
package/package-metadata.mjs
CHANGED
|
@@ -10,7 +10,7 @@ const e = {
|
|
|
10
10
|
name: "@progress/kendo-react-dropdowns",
|
|
11
11
|
productName: "KendoReact",
|
|
12
12
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
-
publishDate:
|
|
13
|
+
publishDate: 1711700640,
|
|
14
14
|
version: "",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-dropdowns",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0-develop.10",
|
|
4
4
|
"description": "React DropDowns offer an interface for users to select different items from a list and more. KendoReact Dropdowns package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@progress/kendo-licensing": "^1.3.4",
|
|
26
|
-
"@progress/kendo-react-buttons": "7.
|
|
27
|
-
"@progress/kendo-react-common": "7.
|
|
28
|
-
"@progress/kendo-react-inputs": "7.
|
|
29
|
-
"@progress/kendo-react-intl": "7.
|
|
30
|
-
"@progress/kendo-react-labels": "7.
|
|
31
|
-
"@progress/kendo-react-layout": "7.
|
|
32
|
-
"@progress/kendo-react-popup": "7.
|
|
33
|
-
"@progress/kendo-react-treeview": "7.
|
|
26
|
+
"@progress/kendo-react-buttons": "7.4.0-develop.10",
|
|
27
|
+
"@progress/kendo-react-common": "7.4.0-develop.10",
|
|
28
|
+
"@progress/kendo-react-inputs": "7.4.0-develop.10",
|
|
29
|
+
"@progress/kendo-react-intl": "7.4.0-develop.10",
|
|
30
|
+
"@progress/kendo-react-labels": "7.4.0-develop.10",
|
|
31
|
+
"@progress/kendo-react-layout": "7.4.0-develop.10",
|
|
32
|
+
"@progress/kendo-react-popup": "7.4.0-develop.10",
|
|
33
|
+
"@progress/kendo-react-treeview": "7.4.0-develop.10",
|
|
34
34
|
"@progress/kendo-svg-icons": "^2.1.0",
|
|
35
35
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
36
36
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|