@progress/kendo-react-dropdowns 9.0.0-develop.2 → 9.0.0-develop.20
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.mjs +67 -29
- package/DropDownList/DropDownList.js +1 -1
- package/DropDownList/DropDownList.mjs +591 -581
- package/DropDownTree/useDropdownWidth.mjs +3 -6
- package/MultiColumnComboBox/MultiColumnComboBox.mjs +144 -141
- package/MultiSelectTree/MultiSelectTree.js +1 -1
- package/MultiSelectTree/MultiSelectTree.mjs +11 -11
- package/MultiSelectTree/utils.js +1 -1
- package/MultiSelectTree/utils.mjs +12 -19
- package/README.md +44 -43
- package/common/DropDownBase.js +1 -1
- package/common/DropDownBase.mjs +119 -115
- package/common/GroupStickyHeader.mjs +1 -5
- package/common/List.js +1 -1
- package/common/List.mjs +63 -71
- package/common/ListContainer.mjs +1 -7
- package/common/ListDefaultItem.mjs +1 -5
- package/common/ListFilter.mjs +9 -5
- package/common/ListGroupItem.mjs +8 -8
- package/common/ListItem.mjs +10 -18
- package/common/MultiColumnList.mjs +3 -6
- package/common/Navigation.mjs +12 -2
- package/common/utils.mjs +3 -1
- package/dist/cdn/js/kendo-react-dropdowns.js +1 -1
- package/index.d.mts +45 -231
- package/index.d.ts +45 -231
- package/index.js +1 -1
- package/index.mjs +39 -40
- package/package-metadata.mjs +1 -1
- package/package.json +9 -9
package/index.d.mts
CHANGED
|
@@ -989,7 +989,6 @@ export declare class ComboBoxWithoutContext extends React_2.Component<ComboBoxPr
|
|
|
989
989
|
label: PropTypes.Requireable<string>;
|
|
990
990
|
loading: PropTypes.Requireable<boolean>;
|
|
991
991
|
popupSettings: PropTypes.Requireable<PropTypes.InferProps<{
|
|
992
|
-
/** @hidden */
|
|
993
992
|
animate: PropTypes.Requireable<NonNullable<boolean | PropTypes.InferProps<{
|
|
994
993
|
openDuration: PropTypes.Requireable<number>;
|
|
995
994
|
closeDuration: PropTypes.Requireable<number>;
|
|
@@ -1232,6 +1231,7 @@ declare class DropDownBase {
|
|
|
1232
1231
|
calculateDir(): void;
|
|
1233
1232
|
calculatePopupWidth(): void;
|
|
1234
1233
|
scrollToItem(itemIndex: number, vsEnabled?: boolean, once?: boolean): void;
|
|
1234
|
+
updateComponentArgs(args: any): void;
|
|
1235
1235
|
handleItemClick: (index: number, event: React_2.MouseEvent<HTMLLIElement> | React_2.KeyboardEvent<HTMLInputElement>) => void;
|
|
1236
1236
|
handleFocus: React_2.FocusEventHandler<HTMLSpanElement>;
|
|
1237
1237
|
filterChanged: (text: string | null, state: InternalState) => void;
|
|
@@ -1322,70 +1322,71 @@ declare interface DropdownEvent<T> {
|
|
|
1322
1322
|
target: T;
|
|
1323
1323
|
}
|
|
1324
1324
|
|
|
1325
|
-
/** @hidden */
|
|
1326
|
-
export declare type DropDownList = DropDownListHandle;
|
|
1327
|
-
|
|
1328
1325
|
/**
|
|
1329
1326
|
* Represents the [KendoReact DropDownList component]({% slug overview_dropdownlist %}).
|
|
1330
1327
|
*
|
|
1331
1328
|
* Accepts properties of type [DropDownListProps]({% slug api_dropdowns_dropdownlistprops %}).
|
|
1332
1329
|
* Obtaining the `ref` returns an object of type [DropDownListHandle]({% slug api_dropdowns_dropdownlisthandle %}).
|
|
1333
1330
|
*
|
|
1334
|
-
* @example
|
|
1335
|
-
* ```jsx
|
|
1336
|
-
* class App extends React.Component {
|
|
1337
|
-
* dropdownlist = null;
|
|
1338
|
-
* render() {
|
|
1339
|
-
* return (
|
|
1340
|
-
* <div>
|
|
1341
|
-
* <DropDownList
|
|
1342
|
-
* data={[ "Albania", "Andorra", "Austria", "Belarus" ]}
|
|
1343
|
-
* ref={component => this.dropdownlist = component}
|
|
1344
|
-
* />
|
|
1345
|
-
* <button onClick={() => alert(this.dropdownlist.value)}>alert value</button>
|
|
1346
|
-
* </div>
|
|
1347
|
-
* );
|
|
1348
|
-
* }
|
|
1349
|
-
* }
|
|
1350
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
1351
|
-
* ```
|
|
1352
1331
|
*/
|
|
1353
|
-
export declare const DropDownList: React_2.ForwardRefExoticComponent<DropDownListProps & React_2.RefAttributes<
|
|
1332
|
+
export declare const DropDownList: React_2.ForwardRefExoticComponent<DropDownListProps & React_2.RefAttributes<DropDownListHandle>>;
|
|
1354
1333
|
|
|
1355
1334
|
/**
|
|
1356
1335
|
* Represents the object of the `blur` DropDownList event.
|
|
1357
1336
|
*/
|
|
1358
|
-
export declare interface DropDownListBlurEvent extends BlurEvent<
|
|
1337
|
+
export declare interface DropDownListBlurEvent extends BlurEvent<DropDownListHandle> {
|
|
1359
1338
|
}
|
|
1360
1339
|
|
|
1361
1340
|
/**
|
|
1362
1341
|
* Represents the object of the `change` DropDownList event.
|
|
1363
1342
|
*/
|
|
1364
|
-
export declare interface DropDownListChangeEvent extends ChangeEvent<
|
|
1343
|
+
export declare interface DropDownListChangeEvent extends ChangeEvent<DropDownListHandle> {
|
|
1365
1344
|
}
|
|
1366
1345
|
|
|
1367
1346
|
/**
|
|
1368
1347
|
* Represents the object of the `close` DropDownList event.
|
|
1369
1348
|
*/
|
|
1370
|
-
export declare interface DropDownListCloseEvent extends CloseEvent_2<
|
|
1349
|
+
export declare interface DropDownListCloseEvent extends CloseEvent_2<DropDownListHandle> {
|
|
1371
1350
|
}
|
|
1372
1351
|
|
|
1352
|
+
/**
|
|
1353
|
+
* The default props of the DropDownList component.
|
|
1354
|
+
*/
|
|
1355
|
+
export declare const dropDownListDefaultProps: {
|
|
1356
|
+
required: boolean;
|
|
1357
|
+
size: "small" | "large" | "medium" | null | undefined;
|
|
1358
|
+
rounded: "small" | "large" | "medium" | "full" | null | undefined;
|
|
1359
|
+
fillMode: "flat" | "solid" | "outline" | null | undefined;
|
|
1360
|
+
groupMode: string | undefined;
|
|
1361
|
+
popupSettings: {
|
|
1362
|
+
height: string;
|
|
1363
|
+
};
|
|
1364
|
+
validityStyles: boolean;
|
|
1365
|
+
delay: number;
|
|
1366
|
+
tabIndex: number;
|
|
1367
|
+
ignoreCase: boolean;
|
|
1368
|
+
};
|
|
1369
|
+
|
|
1373
1370
|
/**
|
|
1374
1371
|
* Represents the object of the `filterChange` DropDownList event.
|
|
1375
1372
|
*/
|
|
1376
|
-
export declare interface DropDownListFilterChangeEvent extends FilterChangeEvent<
|
|
1373
|
+
export declare interface DropDownListFilterChangeEvent extends FilterChangeEvent<DropDownListHandle> {
|
|
1377
1374
|
}
|
|
1378
1375
|
|
|
1379
1376
|
/**
|
|
1380
1377
|
* Represents the object of the `focus` DropDownList event.
|
|
1381
1378
|
*/
|
|
1382
|
-
export declare interface DropDownListFocusEvent extends FocusEvent_2<
|
|
1379
|
+
export declare interface DropDownListFocusEvent extends FocusEvent_2<DropDownListHandle> {
|
|
1383
1380
|
}
|
|
1384
1381
|
|
|
1385
1382
|
/**
|
|
1386
1383
|
* Represent the `ref` of the DropDownList component.
|
|
1387
1384
|
*/
|
|
1388
|
-
export declare interface DropDownListHandle
|
|
1385
|
+
export declare interface DropDownListHandle {
|
|
1386
|
+
/**
|
|
1387
|
+
* The element of the DropDownList component.
|
|
1388
|
+
*/
|
|
1389
|
+
element: HTMLSpanElement | null;
|
|
1389
1390
|
/**
|
|
1390
1391
|
* The index of the selected item.
|
|
1391
1392
|
*/
|
|
@@ -1402,18 +1403,30 @@ export declare interface DropDownListHandle extends Pick<DropDownListWithoutCont
|
|
|
1402
1403
|
* The value of the DropDownList.
|
|
1403
1404
|
*/
|
|
1404
1405
|
value: any;
|
|
1406
|
+
/**
|
|
1407
|
+
* The props of the DropDownList component
|
|
1408
|
+
*/
|
|
1409
|
+
props: Readonly<DropDownListProps>;
|
|
1410
|
+
/**
|
|
1411
|
+
* Focuses the wrapper of the DropDownList component.
|
|
1412
|
+
*/
|
|
1413
|
+
focus: () => void;
|
|
1414
|
+
/**
|
|
1415
|
+
* Toggles the popup of the DropDownList component.
|
|
1416
|
+
*/
|
|
1417
|
+
togglePopup: () => void;
|
|
1405
1418
|
}
|
|
1406
1419
|
|
|
1407
1420
|
/**
|
|
1408
1421
|
* Represents the object of the `open` DropDownList event.
|
|
1409
1422
|
*/
|
|
1410
|
-
export declare interface DropDownListOpenEvent extends OpenEvent<
|
|
1423
|
+
export declare interface DropDownListOpenEvent extends OpenEvent<DropDownListHandle> {
|
|
1411
1424
|
}
|
|
1412
1425
|
|
|
1413
1426
|
/**
|
|
1414
1427
|
* Represents the object of the `pageChange` DropDownList event.
|
|
1415
1428
|
*/
|
|
1416
|
-
export declare interface DropDownListPageChangeEvent extends PageChangeEvent<
|
|
1429
|
+
export declare interface DropDownListPageChangeEvent extends PageChangeEvent<DropDownListHandle> {
|
|
1417
1430
|
}
|
|
1418
1431
|
|
|
1419
1432
|
/**
|
|
@@ -1718,208 +1731,10 @@ export declare const DropDownListPropsContext: React_2.Context<(p: DropDownListP
|
|
|
1718
1731
|
/**
|
|
1719
1732
|
* @hidden
|
|
1720
1733
|
*/
|
|
1721
|
-
declare interface DropDownListState extends DropDownStateBase {
|
|
1734
|
+
export declare interface DropDownListState extends DropDownStateBase {
|
|
1722
1735
|
windowWidth?: number;
|
|
1723
1736
|
}
|
|
1724
1737
|
|
|
1725
|
-
/**
|
|
1726
|
-
* @hidden
|
|
1727
|
-
*/
|
|
1728
|
-
declare class DropDownListWithoutContext extends React_2.Component<DropDownListProps, DropDownListState> implements FormComponent {
|
|
1729
|
-
static displayName: string;
|
|
1730
|
-
/**
|
|
1731
|
-
* @hidden
|
|
1732
|
-
*/
|
|
1733
|
-
static propTypes: {
|
|
1734
|
-
value: PropTypes.Requireable<any>;
|
|
1735
|
-
defaultValue: PropTypes.Requireable<any>;
|
|
1736
|
-
filterable: PropTypes.Requireable<boolean>;
|
|
1737
|
-
filter: PropTypes.Requireable<string>;
|
|
1738
|
-
virtual: PropTypes.Requireable<PropTypes.InferProps<{
|
|
1739
|
-
pageSize: PropTypes.Validator<number>;
|
|
1740
|
-
skip: PropTypes.Validator<number>;
|
|
1741
|
-
total: PropTypes.Validator<number>;
|
|
1742
|
-
}>>;
|
|
1743
|
-
onFilterChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1744
|
-
onPageChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1745
|
-
opened: PropTypes.Requireable<boolean>;
|
|
1746
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
1747
|
-
dir: PropTypes.Requireable<string>;
|
|
1748
|
-
tabIndex: PropTypes.Requireable<number>;
|
|
1749
|
-
accessKey: PropTypes.Requireable<string>;
|
|
1750
|
-
data: PropTypes.Requireable<any[]>;
|
|
1751
|
-
textField: PropTypes.Requireable<string>;
|
|
1752
|
-
className: PropTypes.Requireable<string>;
|
|
1753
|
-
label: PropTypes.Requireable<string>;
|
|
1754
|
-
loading: PropTypes.Requireable<boolean>;
|
|
1755
|
-
popupSettings: PropTypes.Requireable<PropTypes.InferProps<{
|
|
1756
|
-
animate: PropTypes.Requireable<NonNullable<boolean | PropTypes.InferProps<{
|
|
1757
|
-
openDuration: PropTypes.Requireable<number>;
|
|
1758
|
-
closeDuration: PropTypes.Requireable<number>;
|
|
1759
|
-
}> | null | undefined>>;
|
|
1760
|
-
popupClass: PropTypes.Requireable<string>;
|
|
1761
|
-
className: PropTypes.Requireable<string>;
|
|
1762
|
-
appendTo: PropTypes.Requireable<any>;
|
|
1763
|
-
width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
1764
|
-
height: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
1765
|
-
}>>;
|
|
1766
|
-
onOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1767
|
-
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1768
|
-
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1769
|
-
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1770
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1771
|
-
itemRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1772
|
-
listNoDataRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1773
|
-
focusedItemIndex: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1774
|
-
header: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
1775
|
-
footer: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
1776
|
-
delay: PropTypes.Requireable<number>;
|
|
1777
|
-
ignoreCase: PropTypes.Requireable<boolean>;
|
|
1778
|
-
iconClassName: PropTypes.Requireable<string>;
|
|
1779
|
-
svgIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
1780
|
-
name: PropTypes.Validator<string>;
|
|
1781
|
-
content: PropTypes.Validator<string>;
|
|
1782
|
-
viewBox: PropTypes.Validator<string>;
|
|
1783
|
-
}>>;
|
|
1784
|
-
defaultItem: PropTypes.Requireable<any>;
|
|
1785
|
-
valueRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1786
|
-
valueMap: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1787
|
-
validationMessage: PropTypes.Requireable<string>;
|
|
1788
|
-
required: PropTypes.Requireable<boolean>;
|
|
1789
|
-
id: PropTypes.Requireable<string>;
|
|
1790
|
-
ariaLabelledBy: PropTypes.Requireable<string>;
|
|
1791
|
-
ariaDescribedBy: PropTypes.Requireable<string>;
|
|
1792
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
1793
|
-
leftRightKeysNavigation: PropTypes.Requireable<boolean>;
|
|
1794
|
-
title: PropTypes.Requireable<string>;
|
|
1795
|
-
groupField: PropTypes.Requireable<string>;
|
|
1796
|
-
list: PropTypes.Requireable<any>;
|
|
1797
|
-
skipDisabledItems: PropTypes.Requireable<boolean>;
|
|
1798
|
-
renderListFilterWrapper: PropTypes.Requireable<boolean>;
|
|
1799
|
-
};
|
|
1800
|
-
/**
|
|
1801
|
-
* @hidden
|
|
1802
|
-
*/
|
|
1803
|
-
static defaultProps: {
|
|
1804
|
-
required: boolean;
|
|
1805
|
-
size: "small" | "large" | "medium" | null | undefined;
|
|
1806
|
-
rounded: "small" | "large" | "medium" | "full" | null | undefined;
|
|
1807
|
-
fillMode: "flat" | "solid" | "outline" | null | undefined;
|
|
1808
|
-
groupMode: string | undefined;
|
|
1809
|
-
popupSettings: {
|
|
1810
|
-
height: string;
|
|
1811
|
-
};
|
|
1812
|
-
validityStyles: boolean;
|
|
1813
|
-
delay: number;
|
|
1814
|
-
tabIndex: number;
|
|
1815
|
-
ignoreCase: boolean;
|
|
1816
|
-
};
|
|
1817
|
-
/**
|
|
1818
|
-
* @hidden
|
|
1819
|
-
*/
|
|
1820
|
-
readonly state: DropDownListState;
|
|
1821
|
-
private _element;
|
|
1822
|
-
private _typingTimeout;
|
|
1823
|
-
protected readonly base: DropDownBase;
|
|
1824
|
-
private searchState;
|
|
1825
|
-
private _select;
|
|
1826
|
-
private _skipFocusEvent;
|
|
1827
|
-
private _filterInput;
|
|
1828
|
-
private _valueDuringOnChange;
|
|
1829
|
-
private _navigated;
|
|
1830
|
-
private _lastKeypressIsFilter;
|
|
1831
|
-
private get _inputId();
|
|
1832
|
-
private get _listboxId();
|
|
1833
|
-
private get _guid();
|
|
1834
|
-
private itemHeight;
|
|
1835
|
-
private observerResize?;
|
|
1836
|
-
private get document();
|
|
1837
|
-
constructor(props: DropDownListProps);
|
|
1838
|
-
/**
|
|
1839
|
-
* @hidden
|
|
1840
|
-
*/
|
|
1841
|
-
focus: () => void;
|
|
1842
|
-
/**
|
|
1843
|
-
* @hidden
|
|
1844
|
-
*/
|
|
1845
|
-
get element(): HTMLSpanElement | null;
|
|
1846
|
-
/**
|
|
1847
|
-
* The value of the DropDownList.
|
|
1848
|
-
*/
|
|
1849
|
-
get value(): any;
|
|
1850
|
-
/**
|
|
1851
|
-
* The index of the selected item.
|
|
1852
|
-
*/
|
|
1853
|
-
get index(): number;
|
|
1854
|
-
/**
|
|
1855
|
-
* Gets the `name` property of the DropDownList.
|
|
1856
|
-
*/
|
|
1857
|
-
get name(): string | undefined;
|
|
1858
|
-
/**
|
|
1859
|
-
* Represents the validity state into which the DropDownList is set.
|
|
1860
|
-
*/
|
|
1861
|
-
get validity(): FormComponentValidity;
|
|
1862
|
-
protected get validityStyles(): boolean;
|
|
1863
|
-
/**
|
|
1864
|
-
* @hidden
|
|
1865
|
-
*/
|
|
1866
|
-
protected get required(): boolean;
|
|
1867
|
-
/**
|
|
1868
|
-
* @hidden
|
|
1869
|
-
*/
|
|
1870
|
-
componentDidUpdate(prevProps: DropDownListProps, prevState: DropDownListState): void;
|
|
1871
|
-
/**
|
|
1872
|
-
* @hidden
|
|
1873
|
-
*/
|
|
1874
|
-
componentDidMount(): void;
|
|
1875
|
-
/** @hidden */
|
|
1876
|
-
componentWillUnmount(): void;
|
|
1877
|
-
/**
|
|
1878
|
-
* @hidden
|
|
1879
|
-
*/
|
|
1880
|
-
render(): JSX_2.Element;
|
|
1881
|
-
/**
|
|
1882
|
-
* @hidden
|
|
1883
|
-
*/
|
|
1884
|
-
handleItemSelect: (index: number, state: InternalState) => void;
|
|
1885
|
-
/**
|
|
1886
|
-
* @hidden
|
|
1887
|
-
*/
|
|
1888
|
-
onNavigate(state: InternalState, keyCode: number, skipItems?: number): void;
|
|
1889
|
-
private componentRef;
|
|
1890
|
-
private dummySelect;
|
|
1891
|
-
private renderAdaptiveListContainer;
|
|
1892
|
-
private renderListContainer;
|
|
1893
|
-
private renderList;
|
|
1894
|
-
private onScroll;
|
|
1895
|
-
private renderListFilter;
|
|
1896
|
-
private renderDefaultItem;
|
|
1897
|
-
private search;
|
|
1898
|
-
private selectNext;
|
|
1899
|
-
private handleKeyDown;
|
|
1900
|
-
private handleItemClick;
|
|
1901
|
-
private handleFocus;
|
|
1902
|
-
private handleBlur;
|
|
1903
|
-
private handleDefaultItemClick;
|
|
1904
|
-
private handleWrapperClick;
|
|
1905
|
-
private handleKeyPress;
|
|
1906
|
-
private handleListFilterChange;
|
|
1907
|
-
private onPopupOpened;
|
|
1908
|
-
private onPopupClosed;
|
|
1909
|
-
private onPopupMouseDown;
|
|
1910
|
-
togglePopup: () => void;
|
|
1911
|
-
private getFocusedIndex;
|
|
1912
|
-
private focusElement;
|
|
1913
|
-
private setValidity;
|
|
1914
|
-
private triggerOnChange;
|
|
1915
|
-
private applyState;
|
|
1916
|
-
private calculateMedia;
|
|
1917
|
-
private resetValueIfDisabledItem;
|
|
1918
|
-
private haveFocusedItemAndDataNotEmpty;
|
|
1919
|
-
}
|
|
1920
|
-
export { DropDownListWithoutContext as DropDownListClassComponent }
|
|
1921
|
-
export { DropDownListWithoutContext }
|
|
1922
|
-
|
|
1923
1738
|
/**
|
|
1924
1739
|
* @hidden
|
|
1925
1740
|
*/
|
|
@@ -3779,7 +3594,6 @@ export declare class MultiSelectWithoutContext extends React_2.Component<MultiSe
|
|
|
3779
3594
|
closeDuration: PropTypes.Requireable<number>;
|
|
3780
3595
|
}> | null | undefined>>;
|
|
3781
3596
|
popupClass: PropTypes.Requireable<string>;
|
|
3782
|
-
/** @hidden */
|
|
3783
3597
|
className: PropTypes.Requireable<string>;
|
|
3784
3598
|
appendTo: PropTypes.Requireable<any>;
|
|
3785
3599
|
width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|