@progress/kendo-react-dropdowns 7.2.4-develop.3 → 7.3.0-develop.1

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.
Files changed (107) hide show
  1. package/AutoComplete/AutoComplete.js +8 -0
  2. package/AutoComplete/AutoComplete.mjs +458 -0
  3. package/ComboBox/ComboBox.js +8 -0
  4. package/ComboBox/ComboBox.mjs +618 -0
  5. package/DropDownList/DropDownList.js +8 -0
  6. package/DropDownList/DropDownList.mjs +630 -0
  7. package/DropDownTree/DropDownTree.js +8 -0
  8. package/DropDownTree/DropDownTree.mjs +550 -0
  9. package/DropDownTree/ListNoData.js +8 -0
  10. package/DropDownTree/ListNoData.mjs +13 -0
  11. package/DropDownTree/useDropdownWidth.js +8 -0
  12. package/DropDownTree/useDropdownWidth.mjs +25 -0
  13. package/MultiColumnComboBox/MultiColumnComboBox.js +8 -0
  14. package/MultiColumnComboBox/MultiColumnComboBox.mjs +186 -0
  15. package/MultiSelect/MultiSelect.js +8 -0
  16. package/MultiSelect/MultiSelect.mjs +694 -0
  17. package/MultiSelect/TagList.js +8 -0
  18. package/MultiSelect/TagList.mjs +48 -0
  19. package/MultiSelectTree/MultiSelectTree.js +8 -0
  20. package/MultiSelectTree/MultiSelectTree.mjs +590 -0
  21. package/MultiSelectTree/utils.js +8 -0
  22. package/MultiSelectTree/utils.mjs +74 -0
  23. package/common/AdaptiveMode.js +8 -0
  24. package/common/AdaptiveMode.mjs +73 -0
  25. package/common/ClearButton.js +8 -0
  26. package/common/ClearButton.mjs +38 -0
  27. package/common/DropDownBase.js +8 -0
  28. package/common/DropDownBase.mjs +194 -0
  29. package/common/GroupStickyHeader.js +8 -0
  30. package/common/GroupStickyHeader.mjs +22 -0
  31. package/common/List.js +8 -0
  32. package/common/List.mjs +117 -0
  33. package/common/ListContainer.js +8 -0
  34. package/common/ListContainer.mjs +33 -0
  35. package/common/ListDefaultItem.js +8 -0
  36. package/common/ListDefaultItem.mjs +36 -0
  37. package/common/ListFilter.js +8 -0
  38. package/common/ListFilter.mjs +49 -0
  39. package/common/ListGroupItem.js +8 -0
  40. package/common/ListGroupItem.mjs +32 -0
  41. package/common/ListItem.js +8 -0
  42. package/common/ListItem.mjs +49 -0
  43. package/common/MultiColumnList.js +8 -0
  44. package/common/MultiColumnList.mjs +28 -0
  45. package/common/Navigation.js +8 -0
  46. package/common/Navigation.mjs +29 -0
  47. package/common/SearchBar.js +8 -0
  48. package/common/SearchBar.mjs +65 -0
  49. package/common/VirtualScroll.js +8 -0
  50. package/common/VirtualScroll.mjs +75 -0
  51. package/common/constants.js +8 -0
  52. package/common/constants.mjs +13 -0
  53. package/common/settings.js +8 -0
  54. package/common/settings.mjs +12 -0
  55. package/common/utils.js +8 -0
  56. package/common/utils.mjs +109 -0
  57. package/common/withCustomComponent.js +8 -0
  58. package/common/withCustomComponent.mjs +13 -0
  59. package/dist/cdn/js/kendo-react-dropdowns.js +8 -5
  60. package/index.d.mts +4098 -5
  61. package/index.d.ts +4098 -31
  62. package/index.js +8 -5
  63. package/index.mjs +55 -4429
  64. package/messages/index.js +8 -0
  65. package/messages/index.mjs +27 -0
  66. package/package-metadata.js +8 -0
  67. package/package-metadata.mjs +19 -0
  68. package/package.json +9 -9
  69. package/AutoComplete/AutoComplete.d.ts +0 -236
  70. package/AutoComplete/AutoCompleteProps.d.ts +0 -254
  71. package/ComboBox/ComboBox.d.ts +0 -254
  72. package/ComboBox/ComboBoxProps.d.ts +0 -324
  73. package/DropDownList/DropDownList.d.ts +0 -264
  74. package/DropDownList/DropDownListProps.d.ts +0 -329
  75. package/DropDownTree/DropDownTree.d.ts +0 -74
  76. package/DropDownTree/DropDownTreeProps.d.ts +0 -297
  77. package/DropDownTree/ListNoData.d.ts +0 -10
  78. package/DropDownTree/useDropdownWidth.d.ts +0 -10
  79. package/MultiColumnComboBox/MultiColumnComboBox.d.ts +0 -300
  80. package/MultiSelect/MultiSelect.d.ts +0 -262
  81. package/MultiSelect/MultiSelectProps.d.ts +0 -325
  82. package/MultiSelect/TagList.d.ts +0 -42
  83. package/MultiSelectTree/MultiSelectTree.d.ts +0 -85
  84. package/MultiSelectTree/MultiSelectTreeProps.d.ts +0 -324
  85. package/MultiSelectTree/utils.d.ts +0 -21
  86. package/common/AdaptiveMode.d.ts +0 -25
  87. package/common/ClearButton.d.ts +0 -18
  88. package/common/DropDownBase.d.ts +0 -180
  89. package/common/GroupStickyHeader.d.ts +0 -28
  90. package/common/List.d.ts +0 -50
  91. package/common/ListContainer.d.ts +0 -22
  92. package/common/ListDefaultItem.d.ts +0 -20
  93. package/common/ListFilter.d.ts +0 -23
  94. package/common/ListGroupItem.d.ts +0 -37
  95. package/common/ListItem.d.ts +0 -65
  96. package/common/MultiColumnList.d.ts +0 -9
  97. package/common/Navigation.d.ts +0 -17
  98. package/common/SearchBar.d.ts +0 -47
  99. package/common/VirtualScroll.d.ts +0 -45
  100. package/common/constants.d.ts +0 -8
  101. package/common/events.d.ts +0 -76
  102. package/common/filterDescriptor.d.ts +0 -45
  103. package/common/settings.d.ts +0 -109
  104. package/common/utils.d.ts +0 -70
  105. package/common/withCustomComponent.d.ts +0 -11
  106. package/messages/index.d.ts +0 -44
  107. package/package-metadata.d.ts +0 -9
package/common/List.d.ts DELETED
@@ -1,50 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { ListItemProps } from './ListItem';
7
- import { ListGroupItemProps } from './ListGroupItem';
8
- import { LocalizationService } from '@progress/kendo-react-intl';
9
- /**
10
- * @hidden
11
- */
12
- export interface ListProps {
13
- id?: string;
14
- virtual?: boolean;
15
- show?: boolean;
16
- data: any[];
17
- value?: any;
18
- textField?: string;
19
- valueField?: string;
20
- groupField?: string;
21
- groupMode?: string;
22
- isMultiColumn?: boolean;
23
- optionsGuid?: string;
24
- listRef?: React.Ref<HTMLUListElement>;
25
- wrapperRef?: React.Ref<HTMLDivElement>;
26
- wrapperCssClass?: string;
27
- wrapperStyle?: React.CSSProperties;
28
- listStyle?: React.CSSProperties;
29
- listClassName?: string;
30
- skip?: number;
31
- focusedIndex?: number;
32
- highlightSelected?: boolean;
33
- ariaSetSize?: number;
34
- onClick: (index: number, event: React.MouseEvent<HTMLLIElement>) => void;
35
- itemRender?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListItemProps) => React.ReactNode;
36
- groupHeaderItemRender?: (li: React.ReactElement<HTMLLIElement>, groupItemProps: ListGroupItemProps) => React.ReactNode;
37
- noDataRender?: (element: React.ReactElement<HTMLDivElement>) => React.ReactNode;
38
- onMouseDown?: (event: React.MouseEvent<HTMLDivElement>) => void;
39
- onBlur?: (event: React.FocusEvent<HTMLDivElement>) => void;
40
- onScroll?: (event: React.UIEvent<HTMLDivElement>) => void;
41
- scroller?: any;
42
- }
43
- /**
44
- * @hidden
45
- */
46
- export default class List extends React.Component<ListProps> {
47
- renderItems(): (false | import("react/jsx-runtime").JSX.Element)[][];
48
- renderNoValueElement(localizationService: LocalizationService): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
49
- render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
50
- }
@@ -1,22 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { PopupProps } from '@progress/kendo-react-popup';
7
- /**
8
- * @hidden
9
- */
10
- export interface ListContainerProps {
11
- width?: string | number;
12
- dir?: string;
13
- popupSettings?: PopupProps;
14
- itemsCount?: number[];
15
- children?: React.ReactNode;
16
- }
17
- /**
18
- * @hidden
19
- */
20
- export default class ListContainer extends React.Component<ListContainerProps, {}> {
21
- render(): import("react/jsx-runtime").JSX.Element;
22
- }
@@ -1,20 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- /**
7
- * @hidden
8
- */
9
- export interface DefaultItemProps {
10
- defaultItem?: any;
11
- textField?: string;
12
- selected: boolean;
13
- onClick: (event: React.MouseEvent<HTMLDivElement>) => void;
14
- }
15
- /**
16
- * @hidden
17
- */
18
- export default class ListDefaultItem extends React.Component<DefaultItemProps, {}> {
19
- render(): import("react/jsx-runtime").JSX.Element;
20
- }
@@ -1,23 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { TextBoxChangeEvent, TextBoxHandle } from '@progress/kendo-react-inputs';
7
- /**
8
- * @hidden
9
- */
10
- export interface ListFilterProps {
11
- value?: string | number | readonly string[] | undefined;
12
- tabIndex?: number;
13
- onChange?: (event: TextBoxChangeEvent) => void;
14
- onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
15
- size?: null | 'small' | 'medium' | 'large';
16
- rounded?: null | 'small' | 'medium' | 'large' | 'full';
17
- fillMode?: null | 'solid' | 'flat' | 'outline';
18
- }
19
- /**
20
- * @hidden
21
- */
22
- declare const ListFilter: React.ForwardRefExoticComponent<ListFilterProps & React.RefAttributes<TextBoxHandle | null>>;
23
- export default ListFilter;
@@ -1,37 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- /**
7
- * Represents the props of the ListGroupItem component.
8
- */
9
- export interface ListGroupItemProps {
10
- /**
11
- * Specifies the id that will be added to the group header item element.
12
- */
13
- id?: string;
14
- /**
15
- * The group that will be rendered.
16
- */
17
- group?: string;
18
- /**
19
- * @hidden
20
- */
21
- virtual?: boolean;
22
- /**
23
- * @hidden
24
- * Provides information if the rendered list is a multicolumn popup
25
- */
26
- isMultiColumn?: boolean;
27
- /**
28
- * Fires when the group header item is about to be rendered. Used to override the default appearance of the group header item.
29
- */
30
- render?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListGroupItemProps) => React.ReactNode;
31
- }
32
- /**
33
- * @hidden
34
- */
35
- export default class ListGroupItem extends React.Component<ListGroupItemProps, {}> {
36
- render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
37
- }
@@ -1,65 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- /**
7
- * Represents the props of the ListItem component.
8
- */
9
- export interface ListItemProps {
10
- /**
11
- * Specifies the id that will be added to the list item element.
12
- */
13
- id?: string;
14
- /**
15
- * Represents the index of the list item element.
16
- */
17
- index: number;
18
- /**
19
- * Represents the data item of the list item element.
20
- */
21
- dataItem: any;
22
- /**
23
- * Represents the `classic` or `modern` grouping mode of the DropDowns. Defaults to `classic`.
24
- */
25
- groupMode: any;
26
- /**
27
- * Sets the data item field that represents the item text. If the data contains only primitive values, do not define it.
28
- */
29
- textField?: string;
30
- /**
31
- * The group that will be rendered.
32
- */
33
- group?: string;
34
- /**
35
- * Indicates the focused state of the list item element.
36
- */
37
- focused: boolean;
38
- /**
39
- * Indicates the selected state of the list item element.
40
- */
41
- selected: boolean;
42
- /**
43
- * Indicates the disabled/enabled state of the list item element.
44
- */
45
- disabled?: boolean;
46
- /**
47
- * @hidden
48
- */
49
- virtual?: boolean;
50
- /**
51
- * Fires when the list item is about to be rendered. Used to override the default appearance of the list item.
52
- */
53
- render?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListItemProps) => React.ReactNode;
54
- /**
55
- * The `onClick` event handler of the list item element.
56
- */
57
- onClick: (index: number, event: React.MouseEvent<HTMLLIElement>) => void;
58
- }
59
- /**
60
- * @hidden
61
- */
62
- export default class ListItem extends React.Component<ListItemProps, {}> {
63
- handleClick: React.MouseEventHandler<HTMLLIElement>;
64
- render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
65
- }
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { ListProps } from './List';
6
- /**
7
- * @hidden
8
- */
9
- export declare const MultiColumnList: (props: ListProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,17 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare class Navigation {
9
- navigate(args: {
10
- keyCode: number;
11
- current: number;
12
- max: number;
13
- min: number;
14
- skipItems?: number;
15
- }): number | undefined;
16
- private next;
17
- }
@@ -1,47 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- /**
7
- * @hidden
8
- */
9
- export interface SearchBarProps {
10
- value: string;
11
- onChange: React.FormEventHandler<HTMLInputElement>;
12
- render?: (rendering: React.ReactElement<HTMLSpanElement>) => React.ReactNode;
13
- id?: string;
14
- placeholder?: string;
15
- title?: string;
16
- tabIndex?: number;
17
- size?: number;
18
- suggestedText?: string;
19
- focused?: boolean;
20
- onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
21
- onFocus?: React.FocusEventHandler<HTMLInputElement>;
22
- onBlur?: React.FocusEventHandler<HTMLInputElement>;
23
- onClick?: React.MouseEventHandler<HTMLInputElement>;
24
- disabled?: boolean;
25
- readOnly?: boolean;
26
- expanded?: boolean;
27
- owns?: string;
28
- role?: string;
29
- name?: string;
30
- activedescendant?: string;
31
- accessKey?: string;
32
- ariaLabelledBy?: string;
33
- ariaDescribedBy?: string;
34
- ariaRequired?: boolean;
35
- }
36
- /**
37
- * @hidden
38
- */
39
- export default class SearchBar extends React.Component<SearchBarProps> {
40
- private _input;
41
- /**
42
- * @hidden
43
- */
44
- get input(): HTMLInputElement | null;
45
- componentDidUpdate(prevProps: SearchBarProps): void;
46
- render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
47
- }
@@ -1,45 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Page } from './settings';
6
- /**
7
- * @hidden
8
- */
9
- export interface ComponentState {
10
- skip?: number;
11
- selectedIndex?: number;
12
- opened?: boolean;
13
- syntheticEvent?: React.SyntheticEvent<HTMLElement>;
14
- }
15
- /**
16
- * @hidden
17
- */
18
- export default class VirtualScroll {
19
- container: HTMLDivElement | null;
20
- scrollElement: HTMLDivElement | null;
21
- list: HTMLUListElement | null;
22
- containerHeight: number;
23
- skip: number;
24
- total: number;
25
- enabled: boolean;
26
- pageSize: number;
27
- itemHeight: number;
28
- PageChange: ((event: Page, syntheticEvent: React.SyntheticEvent<any>) => void) | null;
29
- private prevScrollPos;
30
- private listTranslate;
31
- private scrollSyncing;
32
- constructor();
33
- get translate(): number;
34
- scrollerRef: (element: HTMLDivElement | null) => void;
35
- calcScrollElementHeight: () => boolean;
36
- changePage(skip: number, e: React.SyntheticEvent<HTMLElement>): void;
37
- translateTo(dY: number): void;
38
- reset(): void;
39
- scrollToEnd(): void;
40
- localScrollUp(e: React.SyntheticEvent<HTMLElement>): void;
41
- localScrollDown(e: React.SyntheticEvent<HTMLElement>): void;
42
- scrollNonStrict(e: React.SyntheticEvent<HTMLElement>): void;
43
- scrollHandler(e: React.SyntheticEvent<HTMLElement>): void;
44
- validateTranslate(translate: number): number;
45
- }
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /** @hidden */
6
- export declare const MOBILE_SMALL_DEVISE: number;
7
- /** @hidden */
8
- export declare const MOBILE_MEDIUM_DEVISE: number;
@@ -1,76 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { FilterDescriptor } from './filterDescriptor';
6
- import { Page } from './settings';
7
- /**
8
- * @hidden
9
- */
10
- export interface DropdownEvent<T> {
11
- /**
12
- * A native DOM event.
13
- */
14
- nativeEvent: Event;
15
- /**
16
- * A React [`SyntheticEvent`](https://reactjs.org/docs/events.html).
17
- */
18
- syntheticEvent: React.SyntheticEvent<HTMLElement>;
19
- /**
20
- * An event target.
21
- */
22
- target: T;
23
- }
24
- /**
25
- * @hidden
26
- */
27
- export interface FilterChangeEvent<T> extends DropdownEvent<T> {
28
- /**
29
- * A React [`SyntheticEvent`](https://reactjs.org/docs/events.html).
30
- */
31
- syntheticEvent: React.ChangeEvent<HTMLInputElement>;
32
- /**
33
- * The default `FilterDescriptor` object.
34
- */
35
- filter: FilterDescriptor;
36
- }
37
- /**
38
- * @hidden
39
- */
40
- export interface ChangeEvent<T> extends DropdownEvent<T> {
41
- /**
42
- * The current value of the component.
43
- */
44
- value: any;
45
- }
46
- /**
47
- * @hidden
48
- */
49
- export interface OpenEvent<T> extends DropdownEvent<T> {
50
- }
51
- /**
52
- * @hidden
53
- */
54
- export interface CloseEvent<T> extends DropdownEvent<T> {
55
- }
56
- /**
57
- * @hidden
58
- */
59
- export interface FocusEvent<T> extends DropdownEvent<T> {
60
- }
61
- /**
62
- * @hidden
63
- */
64
- export interface BlurEvent<T> extends DropdownEvent<T> {
65
- }
66
- /**
67
- * @hidden
68
- */
69
- export interface CancelEvent<T> extends DropdownEvent<T> {
70
- }
71
- /**
72
- * @hidden
73
- */
74
- export interface PageChangeEvent<T> extends DropdownEvent<T> {
75
- page: Page;
76
- }
@@ -1,45 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * A basic filter expression. Usually a part of [`CompositeFilterDescriptor`]({% slug api_kendo-data-query_compositefilterdescriptor %}).
7
- *
8
- * For more information, refer to the [`filterBy`]({% slug api_kendo-data-query_filterby %}) method.
9
- */
10
- export interface FilterDescriptor {
11
- /**
12
- * The field of the data item to which the filter operator is applied.
13
- */
14
- field?: string | Function;
15
- /**
16
- * The filter operator (comparison).
17
- *
18
- * The supported operators are:
19
- * * `"eq"` (equal to)
20
- * * `"neq"` (not equal to)
21
- * * `"isnull"` (is equal to null)
22
- * * `"isnotnull"` (is not equal to null)
23
- * * `"lt"` (less than)
24
- * * `"lte"` (less than or equal to)
25
- * * `"gt"` (greater than)
26
- * * `"gte"` (greater than or equal to)
27
- *
28
- * The following operators are supported for string fields only:
29
- * * `"startswith"`
30
- * * `"endswith"`
31
- * * `"contains"`
32
- * * `"doesnotcontain"`
33
- * * `"isempty"`
34
- * * `"isnotempty"`
35
- */
36
- operator: string | Function;
37
- /**
38
- * The value to which the field is compared. Has to be of the same type as the field.
39
- */
40
- value?: any;
41
- /**
42
- * Determines if the string comparison is case-insensitive.
43
- */
44
- ignoreCase?: boolean;
45
- }
@@ -1,109 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PopupProps } from '@progress/kendo-react-popup';
6
- import { FilterDescriptor } from './filterDescriptor';
7
- /**
8
- * Represents the `skip` and `take` configurations which are wrapped in the `page` object.
9
- */
10
- export interface Page {
11
- /**
12
- * The number of records to skip.
13
- */
14
- skip: number;
15
- /**
16
- * The number of records to take.
17
- */
18
- take: number;
19
- }
20
- /**
21
- * The virtualization settings.
22
- */
23
- export interface VirtualizationSettings {
24
- /**
25
- * The number of the requested records.
26
- */
27
- pageSize: number;
28
- /**
29
- * The number of records to skip.
30
- */
31
- skip: number;
32
- /**
33
- * The number of all records.
34
- */
35
- total: number;
36
- }
37
- /**
38
- * The settings of the popup container.
39
- */
40
- export interface DropDownsPopupSettings extends PopupProps {
41
- /**
42
- * Specifies a list of CSS classes that are used for styling the popup inner element.
43
- */
44
- popupClass?: string;
45
- /**
46
- * Sets the width of the popup container. By default, the width of the host element is used.
47
- */
48
- width?: string | number;
49
- /**
50
- * Sets the height of the DOM element inside the DropDowns' popup that contains the data items of each component. This height doesn't include the header and footer.
51
- */
52
- height?: string | number;
53
- /**
54
- * Defines the container to which the Popup will be appended.
55
- * Defaults to [`body`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body).
56
- * * If set to `null` the Popup will be rendered without React Portal.
57
- */
58
- appendTo?: HTMLElement | null;
59
- }
60
- /**
61
- * @hidden
62
- */
63
- export interface EventData {
64
- type?: string;
65
- filter?: FilterDescriptor;
66
- page?: Page;
67
- suggestion?: Suggestion;
68
- }
69
- /**
70
- * Represents the `Suggestion` object of the AutoComplete.
71
- */
72
- export interface Suggestion {
73
- /**
74
- * Represents the typed text of the user.
75
- */
76
- readonly userInput: string;
77
- /**
78
- * Represents the suggested text without the user input.
79
- */
80
- readonly value: string;
81
- }
82
- /**
83
- * @hidden
84
- */
85
- export interface InternalState {
86
- data: DropDownStateBase;
87
- events: Array<EventData>;
88
- syntheticEvent: React.MouseEvent<HTMLElement> | React.FocusEvent<HTMLElement> | React.ChangeEvent<HTMLInputElement> | React.FormEvent<HTMLInputElement> | React.KeyboardEvent<HTMLElement> | undefined;
89
- }
90
- /**
91
- * @hidden
92
- */
93
- export interface DropDownStateBase {
94
- /**
95
- * Input element text of the Component.
96
- */
97
- text?: string;
98
- value?: any;
99
- focused?: boolean;
100
- opened?: boolean;
101
- group?: string;
102
- }
103
- /**
104
- * @hidden
105
- */
106
- export declare enum ActiveDescendant {
107
- PopupList = 0,
108
- TagsList = 1
109
- }
package/common/utils.d.ts DELETED
@@ -1,70 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { TagData } from '../MultiSelect/TagList';
6
- /**
7
- * @hidden
8
- */
9
- declare const isPresent: (value: any) => boolean;
10
- /**
11
- * @hidden
12
- */
13
- declare const sameCharsOnly: (word: string, character: string) => boolean;
14
- /**
15
- * @hidden
16
- */
17
- declare const shuffleData: (data: Array<any>, splitIndex: number, defaultItem: any) => any[];
18
- /**
19
- * @hidden
20
- */
21
- declare const matchText: (text: string, word: string, ignoreCase?: boolean) => boolean;
22
- /**
23
- * @hidden
24
- */
25
- declare const scrollToItem: (scrollElem: HTMLDivElement, list: HTMLUListElement, itemIndex: number, translate: number, virtualScroll: boolean) => void;
26
- /**
27
- * @hidden
28
- */
29
- declare const itemIndexStartsWith: (items: any[], text?: string, field?: string) => number;
30
- /**
31
- * @hidden
32
- */
33
- declare const getItemIndexByText: (data: Array<any>, text: string, textField?: string, matchCase?: boolean) => number;
34
- /**
35
- * Get the value of the item by its field.
36
- */
37
- declare const getItemValue: (item: any, field?: string) => any;
38
- /**
39
- * Find item in the data by field and value.
40
- */
41
- export declare const findByFieldValue: (data: any[], field: string, value: string | number | null) => any;
42
- /**
43
- * @hidden
44
- */
45
- declare const matchDataCollections: (data1?: Array<any>, data2?: Array<any>, key?: string) => boolean;
46
- /**
47
- * @hidden
48
- */
49
- declare const removeDataItems: (items: Array<any>, toRemove: Array<any>, key?: string) => void;
50
- /**
51
- * @hidden
52
- */
53
- declare const areSame: (item1: any, item2: any, key?: string) => boolean;
54
- /**
55
- * @hidden
56
- */
57
- declare const getFocusedItem: (data: Array<any>, value?: string, textField?: string) => number;
58
- /**
59
- * @hidden
60
- */
61
- declare const suggestValue: (value?: string, data?: Array<any>, textField?: string) => string;
62
- /**
63
- * @hidden
64
- */
65
- declare const preventDefaultNonInputs: (event: any) => void;
66
- /**
67
- * @hidden
68
- */
69
- declare const matchTags: (tag1: TagData, tag2: TagData, key?: string) => boolean;
70
- export { isPresent, sameCharsOnly, shuffleData, matchText, scrollToItem, itemIndexStartsWith, getItemIndexByText, getItemValue, matchDataCollections, removeDataItems, areSame, getFocusedItem, preventDefaultNonInputs, suggestValue, matchTags };
@@ -1,11 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- declare const withCustomComponent: <P = unknown>(comp: import("react").ExoticComponent<{
9
- children?: import("react").ReactNode;
10
- }> | import("@progress/kendo-react-common").CustomComponent<P> | null) => [string | import("react").ComponentType<P & import("react").RefAttributes<unknown>>, Partial<P>];
11
- export default withCustomComponent;