@progress/kendo-react-dropdowns 13.3.0 → 13.4.0-develop.2
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/AutoComplete/AutoComplete.d.ts +274 -0
- package/AutoComplete/AutoComplete.js +1 -1
- package/AutoComplete/AutoComplete.mjs +67 -69
- package/AutoComplete/AutoCompleteProps.d.ts +509 -0
- package/ComboBox/ComboBox.d.ts +279 -0
- package/ComboBox/ComboBox.js +1 -1
- package/ComboBox/ComboBox.mjs +281 -297
- package/ComboBox/ComboBoxProps.d.ts +632 -0
- package/DropDownList/DropDownList.d.ts +41 -0
- package/DropDownList/DropDownList.js +1 -1
- package/DropDownList/DropDownList.mjs +78 -83
- package/DropDownList/DropDownListProps.d.ts +594 -0
- package/DropDownList/models/index.d.ts +54 -0
- package/DropDownTree/DropDownTree.d.ts +76 -0
- package/DropDownTree/DropDownTree.js +1 -1
- package/DropDownTree/DropDownTree.mjs +6 -8
- package/DropDownTree/DropDownTreeProps.d.ts +506 -0
- package/DropDownTree/ListNoData.d.ts +13 -0
- package/DropDownTree/useDropdownWidth.d.ts +13 -0
- package/MultiColumnComboBox/MultiColumnComboBox.d.ts +299 -0
- package/MultiColumnComboBox/MultiColumnComboBox.js +1 -1
- package/MultiColumnComboBox/MultiColumnComboBox.mjs +45 -48
- package/MultiSelect/MultiSelect.d.ts +281 -0
- package/MultiSelect/MultiSelect.js +1 -1
- package/MultiSelect/MultiSelect.mjs +13 -15
- package/MultiSelect/MultiSelectProps.d.ts +592 -0
- package/MultiSelect/TagList.d.ts +45 -0
- package/MultiSelectTree/MultiSelectTree.d.ts +87 -0
- package/MultiSelectTree/MultiSelectTree.js +1 -1
- package/MultiSelectTree/MultiSelectTree.mjs +7 -7
- package/MultiSelectTree/MultiSelectTreeProps.d.ts +554 -0
- package/MultiSelectTree/utils.d.ts +24 -0
- package/common/AdaptiveMode.d.ts +22 -0
- package/common/ClearButton.d.ts +19 -0
- package/common/DropDownBase.d.ts +186 -0
- package/common/DropDownBase.js +1 -1
- package/common/DropDownBase.mjs +1 -1
- package/common/GroupStickyHeader.d.ts +26 -0
- package/common/GroupStickyHeader.js +1 -1
- package/common/GroupStickyHeader.mjs +6 -6
- package/common/List.d.ts +54 -0
- package/common/List.js +1 -1
- package/common/List.mjs +129 -77
- package/common/ListContainer.d.ts +24 -0
- package/common/ListDefaultItem.d.ts +22 -0
- package/common/ListFilter.d.ts +29 -0
- package/common/ListFilter.js +1 -1
- package/common/ListFilter.mjs +12 -12
- package/common/ListGroupItem.d.ts +54 -0
- package/common/ListGroupItem.js +1 -1
- package/common/ListGroupItem.mjs +21 -13
- package/common/ListItem.d.ts +87 -0
- package/common/ListItem.js +1 -1
- package/common/ListItem.mjs +62 -21
- package/common/ListItemIcon.d.ts +26 -0
- package/common/ListItemIcon.js +8 -0
- package/common/ListItemIcon.mjs +21 -0
- package/common/MultiColumnList.d.ts +13 -0
- package/common/Navigation.d.ts +20 -0
- package/common/SearchBar.d.ts +55 -0
- package/common/VirtualScrollStatic.d.ts +44 -0
- package/common/events.d.ts +82 -0
- package/common/filterDescriptor.d.ts +48 -0
- package/common/settings.d.ts +112 -0
- package/common/utils.d.ts +82 -0
- package/common/utils.js +1 -1
- package/common/utils.mjs +50 -47
- package/common/withCustomComponent.d.ts +12 -0
- package/dist/cdn/js/kendo-react-dropdowns.js +1 -1
- package/index.d.mts +28 -5545
- package/index.d.ts +28 -5545
- package/messages/index.d.ts +52 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +10 -10
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { TextBoxChangeEvent, TextBoxHandle } from '@progress/kendo-react-inputs';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface ListFilterProps {
|
|
14
|
+
value?: string | number | readonly string[] | undefined;
|
|
15
|
+
tabIndex?: number;
|
|
16
|
+
onChange?: (event: TextBoxChangeEvent) => void;
|
|
17
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
18
|
+
size?: 'small' | 'medium' | 'large';
|
|
19
|
+
rounded?: 'small' | 'medium' | 'large' | 'full';
|
|
20
|
+
fillMode?: 'solid' | 'flat' | 'outline';
|
|
21
|
+
renderListFilterWrapper?: boolean;
|
|
22
|
+
renderPrefixSeparator?: boolean;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
declare const ListFilter: React.ForwardRefExoticComponent<ListFilterProps & React.RefAttributes<TextBoxHandle | null>>;
|
|
29
|
+
export default ListFilter;
|
package/common/ListFilter.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";const x=require("react"),n=require("prop-types"),c=require("@progress/kendo-react-inputs"),y=require("@progress/kendo-svg-icons"),r=require("@progress/kendo-react-common");function D(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const
|
|
8
|
+
"use strict";const x=require("react"),n=require("prop-types"),c=require("@progress/kendo-react-inputs"),y=require("@progress/kendo-svg-icons"),r=require("@progress/kendo-react-common");function D(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(o,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return o.default=e,Object.freeze(o)}const t=D(x),u=t.forwardRef((e,o)=>{const a=t.useRef(null),{renderListFilterWrapper:s=!1,renderPrefixSeparator:f=!1,placeholder:m,...p}=e,i=r.useUnstyled(),l=i&&i.uDropDownsBase;t.useImperativeHandle(o,()=>a.current);const b=()=>t.createElement(t.Fragment,null,t.createElement(c.InputPrefix,null,t.createElement(r.IconWrap,{name:"search",icon:y.searchIcon,className:r.classNames(r.uDropDownsBase.inputIcon({c:l}))})),f&&t.createElement(c.InputSeparator,null)),d=t.createElement(c.TextBox,{...p,ref:a,className:r.classNames(r.uDropDownsBase.searchbox({c:l})),value:e.value||"",onChange:e.onChange,onKeyDown:e.onKeyDown,tabIndex:e.tabIndex,onClick:g=>g.stopPropagation(),size:e.size,fillMode:e.fillMode,rounded:e.rounded,prefix:b,placeholder:m});return s?t.createElement("div",{className:r.classNames(r.uDropDownsBase.listFilter({c:l}))}," ",d," "):d});u.propTypes={value:n.oneOfType([n.string,n.number,n.array]),tabIndex:n.number,onChange:n.func,onKeyDown:n.func,size:n.oneOf(["small","medium","large"]),rounded:n.oneOf(["small","medium","large","full"]),fillMode:n.oneOf(["solid","flat","outline"]),renderListFilterWrapper:n.bool,placeholder:n.string,renderPrefixSeparator:n.bool};u.displayName="KendoReactListFilter";module.exports=u;
|
package/common/ListFilter.mjs
CHANGED
|
@@ -9,23 +9,23 @@ import * as n from "react";
|
|
|
9
9
|
import e from "prop-types";
|
|
10
10
|
import { TextBox as b, InputPrefix as g, InputSeparator as h } from "@progress/kendo-react-inputs";
|
|
11
11
|
import { searchIcon as I } from "@progress/kendo-svg-icons";
|
|
12
|
-
import { useUnstyled as D, classNames as
|
|
13
|
-
const c = n.forwardRef((r,
|
|
14
|
-
const
|
|
15
|
-
n.useImperativeHandle(
|
|
12
|
+
import { useUnstyled as D, classNames as t, uDropDownsBase as o, IconWrap as w } from "@progress/kendo-react-common";
|
|
13
|
+
const c = n.forwardRef((r, m) => {
|
|
14
|
+
const l = n.useRef(null), { renderListFilterWrapper: d = !1, renderPrefixSeparator: u = !1, placeholder: f, ...p } = r, s = D(), a = s && s.uDropDownsBase;
|
|
15
|
+
n.useImperativeHandle(m, () => l.current);
|
|
16
16
|
const x = () => /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(g, null, /* @__PURE__ */ n.createElement(
|
|
17
17
|
w,
|
|
18
18
|
{
|
|
19
19
|
name: "search",
|
|
20
20
|
icon: I,
|
|
21
|
-
className:
|
|
21
|
+
className: t(o.inputIcon({ c: a }))
|
|
22
22
|
}
|
|
23
|
-
)),
|
|
23
|
+
)), u && /* @__PURE__ */ n.createElement(h, null)), i = /* @__PURE__ */ n.createElement(
|
|
24
24
|
b,
|
|
25
25
|
{
|
|
26
26
|
...p,
|
|
27
|
-
ref:
|
|
28
|
-
className:
|
|
27
|
+
ref: l,
|
|
28
|
+
className: t(o.searchbox({ c: a })),
|
|
29
29
|
value: r.value || "",
|
|
30
30
|
onChange: r.onChange,
|
|
31
31
|
onKeyDown: r.onKeyDown,
|
|
@@ -38,16 +38,16 @@ const c = n.forwardRef((r, u) => {
|
|
|
38
38
|
placeholder: f
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
|
-
return
|
|
41
|
+
return d ? /* @__PURE__ */ n.createElement("div", { className: t(o.listFilter({ c: a })) }, " ", i, " ") : i;
|
|
42
42
|
});
|
|
43
43
|
c.propTypes = {
|
|
44
44
|
value: e.oneOfType([e.string, e.number, e.array]),
|
|
45
45
|
tabIndex: e.number,
|
|
46
46
|
onChange: e.func,
|
|
47
47
|
onKeyDown: e.func,
|
|
48
|
-
size: e.oneOf([
|
|
49
|
-
rounded: e.oneOf([
|
|
50
|
-
fillMode: e.oneOf([
|
|
48
|
+
size: e.oneOf(["small", "medium", "large"]),
|
|
49
|
+
rounded: e.oneOf(["small", "medium", "large", "full"]),
|
|
50
|
+
fillMode: e.oneOf(["solid", "flat", "outline"]),
|
|
51
51
|
renderListFilterWrapper: e.bool,
|
|
52
52
|
placeholder: e.string,
|
|
53
53
|
renderPrefixSeparator: e.bool
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the props of the ListGroupItem component.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListGroupItemProps {
|
|
13
|
+
/**
|
|
14
|
+
* Specifies the id that will be added to the group header item element.
|
|
15
|
+
*/
|
|
16
|
+
id?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The group that will be rendered.
|
|
19
|
+
*/
|
|
20
|
+
group?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
virtual?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
* Provides information if the rendered list is a multicolumn popup
|
|
28
|
+
*/
|
|
29
|
+
isMultiColumn?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Fires when the group header item is about to be rendered. Used to override the default appearance of the group header item.
|
|
32
|
+
*/
|
|
33
|
+
render?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListGroupItemProps) => React.ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
* The field name in the dataItem that contains the icon.
|
|
37
|
+
*/
|
|
38
|
+
iconField?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
* The field name in the dataItem that contains the SVG icon.
|
|
42
|
+
*/
|
|
43
|
+
svgIconField?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
* The group item data object containing icon information.
|
|
47
|
+
*/
|
|
48
|
+
groupItem?: any;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @hidden
|
|
52
|
+
*/
|
|
53
|
+
declare const ListGroupItem: (props: ListGroupItemProps) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
|
|
54
|
+
export default ListGroupItem;
|
package/common/ListGroupItem.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";const
|
|
8
|
+
"use strict";const r=require("@progress/kendo-react-common"),g=require("react"),v=require("./ListItemIcon.js");function f(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const i=f(g),D=e=>{const{group:o,virtual:t,render:n,isMultiColumn:c=!1,id:p,iconField:a,svgIconField:l,groupItem:s}=e,u=r.useUnstyled(),d=u&&u.uDropDownsBase,m=i.createElement("li",{id:p,role:"presentation",className:r.classNames(r.uDropDownsBase.groupLi({c:d,isMultiColumn:c})),style:c?{boxSizing:"inherit",position:t?"relative":"unset"}:{position:t?"relative":"unset"}},(l||a)&&i.createElement(v.ListItemIcon,{icon:a?s==null?void 0:s.groupIcon:void 0,svgIcon:l?s==null?void 0:s.groupSvgIcon:void 0}),i.createElement("span",{className:n?void 0:r.classNames(r.uDropDownsBase.groupItemText({c:d,isMultiColumn:c}))},o));return n!==void 0?n(m,e):m};module.exports=D;
|
package/common/ListGroupItem.mjs
CHANGED
|
@@ -5,27 +5,35 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { useUnstyled as
|
|
9
|
-
import * as
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
import { useUnstyled as g, classNames as m, uDropDownsBase as u } from "@progress/kendo-react-common";
|
|
9
|
+
import * as t from "react";
|
|
10
|
+
import { ListItemIcon as f } from "./ListItemIcon.mjs";
|
|
11
|
+
const x = (n) => {
|
|
12
|
+
const { group: p, virtual: i, render: o, isMultiColumn: s = !1, id: v, iconField: r, svgIconField: a, groupItem: e } = n, l = g(), c = l && l.uDropDownsBase, d = /* @__PURE__ */ t.createElement(
|
|
12
13
|
"li",
|
|
13
14
|
{
|
|
14
|
-
id:
|
|
15
|
-
role: "
|
|
16
|
-
className:
|
|
17
|
-
style: s ? { boxSizing: "inherit", position:
|
|
15
|
+
id: v,
|
|
16
|
+
role: "presentation",
|
|
17
|
+
className: m(u.groupLi({ c, isMultiColumn: s })),
|
|
18
|
+
style: s ? { boxSizing: "inherit", position: i ? "relative" : "unset" } : { position: i ? "relative" : "unset" }
|
|
18
19
|
},
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
+
(a || r) && /* @__PURE__ */ t.createElement(
|
|
21
|
+
f,
|
|
22
|
+
{
|
|
23
|
+
icon: r ? e == null ? void 0 : e.groupIcon : void 0,
|
|
24
|
+
svgIcon: a ? e == null ? void 0 : e.groupSvgIcon : void 0
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ t.createElement(
|
|
20
28
|
"span",
|
|
21
29
|
{
|
|
22
|
-
className:
|
|
30
|
+
className: o ? void 0 : m(u.groupItemText({ c, isMultiColumn: s }))
|
|
23
31
|
},
|
|
24
|
-
|
|
32
|
+
p
|
|
25
33
|
)
|
|
26
34
|
);
|
|
27
|
-
return
|
|
35
|
+
return o !== void 0 ? o(d, n) : d;
|
|
28
36
|
};
|
|
29
37
|
export {
|
|
30
|
-
|
|
38
|
+
x as default
|
|
31
39
|
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the props of the ListItem component.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListItemProps {
|
|
13
|
+
/**
|
|
14
|
+
* Specifies the id that will be added to the list item element.
|
|
15
|
+
*/
|
|
16
|
+
id?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Represents the index of the list item element.
|
|
19
|
+
*/
|
|
20
|
+
index: number;
|
|
21
|
+
/**
|
|
22
|
+
* Represents the data item of the list item element.
|
|
23
|
+
*/
|
|
24
|
+
dataItem: any;
|
|
25
|
+
/**
|
|
26
|
+
* Sets the data item field that represents the item text. If the data contains only primitive values, do not define it.
|
|
27
|
+
*/
|
|
28
|
+
textField?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The group that will be rendered.
|
|
31
|
+
*/
|
|
32
|
+
group?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Indicates the focused state of the list item element.
|
|
35
|
+
*/
|
|
36
|
+
focused: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Indicates the selected state of the list item element.
|
|
39
|
+
*/
|
|
40
|
+
selected: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Indicates the disabled/enabled state of the list item element.
|
|
43
|
+
*/
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
virtual?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Fires when the list item is about to be rendered. Used to override the default appearance of the list item.
|
|
51
|
+
*/
|
|
52
|
+
render?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListItemProps) => React.ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* The `onClick` event handler of the list item element.
|
|
55
|
+
*/
|
|
56
|
+
onClick: (index: number, event: React.MouseEvent<HTMLLIElement>) => void;
|
|
57
|
+
/**
|
|
58
|
+
* @hidden
|
|
59
|
+
* The field name in the dataItem that contains the actions.
|
|
60
|
+
*/
|
|
61
|
+
actionsField?: string;
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
* The field name in the dataItem that contains the description.
|
|
65
|
+
*/
|
|
66
|
+
descriptionField?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @hidden
|
|
69
|
+
* The field name in the dataItem that contains the icon.
|
|
70
|
+
*/
|
|
71
|
+
iconField?: string;
|
|
72
|
+
/**
|
|
73
|
+
* @hidden
|
|
74
|
+
* The field name in the dataItem that contains the SVG icon.
|
|
75
|
+
*/
|
|
76
|
+
svgIconField?: string;
|
|
77
|
+
/**
|
|
78
|
+
* @hidden
|
|
79
|
+
* The field name in the dataItem that contains the checkbox state.
|
|
80
|
+
*/
|
|
81
|
+
checkboxField?: string;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @hidden
|
|
85
|
+
*/
|
|
86
|
+
declare const ListItem: (props: ListItemProps) => React.ReactElement;
|
|
87
|
+
export default ListItem;
|
package/common/ListItem.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";const
|
|
8
|
+
"use strict";const y=require("react"),r=require("@progress/kendo-react-common"),s=require("./utils.js"),E=require("@progress/kendo-react-inputs"),F=require("./ListItemIcon.js");function S(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const o=S(y),V=t=>{const{selected:n,dataItem:e,virtual:i,disabled:u,id:p,focused:C,render:d,actionsField:m,descriptionField:g,iconField:a,svgIconField:l,checkboxField:f}=t,k=r.useUnstyled(),I=k&&k.uDropDownsBase,h=c=>t.onClick(t.index,c),v=()=>{if(!f)return null;const c=s.getItemValue(e,f)||!1;return o.createElement("span",{className:"k-checkbox-wrap"},o.createElement(E.Checkbox,{checked:c,onChange:N=>{e.onCheckboxChange&&e.onCheckboxChange(e,N.value)}}))},x=()=>m?s.getItemValue(e,m):null,D=()=>{if(!g)return null;const c=s.getItemValue(e,g);return c?o.createElement("span",{className:"k-list-item-description"},c):null},b=o.createElement("li",{id:p,role:"option","aria-selected":n,"aria-disabled":u?!0:void 0,className:r.classNames(r.uDropDownsBase.li({c:I,selected:n,focused:C,disabled:u})),onClick:h,style:{position:i?"relative":"unset"}},v(),(l||a)&&o.createElement(F.ListItemIcon,{icon:a?s.getItemValue(e,a):void 0,svgIcon:l?s.getItemValue(e,l):void 0}),o.createElement("span",{className:r.classNames(r.uDropDownsBase.itemText({c:I}))},s.getItemValue(e,t.textField).toString()),x(),D());return d!==void 0?d(b,t):b};module.exports=V;
|
package/common/ListItem.mjs
CHANGED
|
@@ -5,34 +5,75 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import * as
|
|
9
|
-
import { useUnstyled as
|
|
10
|
-
import { getItemValue as
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
import * as n from "react";
|
|
9
|
+
import { useUnstyled as N, classNames as C, uDropDownsBase as p } from "@progress/kendo-react-common";
|
|
10
|
+
import { getItemValue as o } from "./utils.mjs";
|
|
11
|
+
import { Checkbox as S } from "@progress/kendo-react-inputs";
|
|
12
|
+
import { ListItemIcon as w } from "./ListItemIcon.mjs";
|
|
13
|
+
const R = (i) => {
|
|
14
|
+
const {
|
|
15
|
+
selected: r,
|
|
16
|
+
dataItem: e,
|
|
17
|
+
virtual: x,
|
|
18
|
+
disabled: l,
|
|
19
|
+
id: v,
|
|
20
|
+
focused: b,
|
|
21
|
+
render: a,
|
|
22
|
+
actionsField: d,
|
|
23
|
+
descriptionField: m,
|
|
24
|
+
iconField: c,
|
|
25
|
+
svgIconField: s,
|
|
26
|
+
checkboxField: u
|
|
27
|
+
} = i, f = N(), k = f && f.uDropDownsBase, g = (t) => i.onClick(i.index, t), I = () => {
|
|
28
|
+
if (!u)
|
|
29
|
+
return null;
|
|
30
|
+
const t = o(e, u) || !1;
|
|
31
|
+
return /* @__PURE__ */ n.createElement("span", { className: "k-checkbox-wrap" }, /* @__PURE__ */ n.createElement(
|
|
32
|
+
S,
|
|
33
|
+
{
|
|
34
|
+
checked: t,
|
|
35
|
+
onChange: (D) => {
|
|
36
|
+
e.onCheckboxChange && e.onCheckboxChange(e, D.value);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
));
|
|
40
|
+
}, E = () => d ? o(e, d) : null, F = () => {
|
|
41
|
+
if (!m)
|
|
42
|
+
return null;
|
|
43
|
+
const t = o(e, m);
|
|
44
|
+
return t ? /* @__PURE__ */ n.createElement("span", { className: "k-list-item-description" }, t) : null;
|
|
45
|
+
}, h = /* @__PURE__ */ n.createElement(
|
|
13
46
|
"li",
|
|
14
47
|
{
|
|
15
|
-
id:
|
|
48
|
+
id: v,
|
|
16
49
|
role: "option",
|
|
17
|
-
"aria-selected":
|
|
18
|
-
"aria-disabled":
|
|
19
|
-
className:
|
|
20
|
-
|
|
21
|
-
c:
|
|
22
|
-
selected:
|
|
23
|
-
focused:
|
|
24
|
-
|
|
25
|
-
disabled: n
|
|
50
|
+
"aria-selected": r,
|
|
51
|
+
"aria-disabled": l ? !0 : void 0,
|
|
52
|
+
className: C(
|
|
53
|
+
p.li({
|
|
54
|
+
c: k,
|
|
55
|
+
selected: r,
|
|
56
|
+
focused: b,
|
|
57
|
+
disabled: l
|
|
26
58
|
})
|
|
27
59
|
),
|
|
28
|
-
onClick:
|
|
29
|
-
style: { position:
|
|
60
|
+
onClick: g,
|
|
61
|
+
style: { position: x ? "relative" : "unset" }
|
|
30
62
|
},
|
|
31
|
-
|
|
32
|
-
|
|
63
|
+
I(),
|
|
64
|
+
(s || c) && /* @__PURE__ */ n.createElement(
|
|
65
|
+
w,
|
|
66
|
+
{
|
|
67
|
+
icon: c ? o(e, c) : void 0,
|
|
68
|
+
svgIcon: s ? o(e, s) : void 0
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
/* @__PURE__ */ n.createElement("span", { className: C(p.itemText({ c: k })) }, o(e, i.textField).toString()),
|
|
72
|
+
E(),
|
|
73
|
+
F()
|
|
33
74
|
);
|
|
34
|
-
return
|
|
75
|
+
return a !== void 0 ? a(h, i) : h;
|
|
35
76
|
};
|
|
36
77
|
export {
|
|
37
|
-
|
|
78
|
+
R as default
|
|
38
79
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { SVGIcon } from '@progress/kendo-react-common';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface ListItemIconProps {
|
|
14
|
+
/**
|
|
15
|
+
* The icon name (string-based icon).
|
|
16
|
+
*/
|
|
17
|
+
icon?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The SVG icon.
|
|
20
|
+
*/
|
|
21
|
+
svgIcon?: SVGIcon;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export declare const ListItemIcon: React.FC<ListItemIconProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),o=require("@progress/kendo-react-common");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=i(c),s=({icon:e,svgIcon:t})=>t||e?a.createElement("span",{className:"k-list-item-icon-wrapper",role:"presentation"},a.createElement(o.IconWrap,{className:"k-list-item-icon",name:e?o.toIconName(e):void 0,icon:t,"aria-hidden":"true"})):null;exports.ListItemIcon=s;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as a from "react";
|
|
9
|
+
import { IconWrap as r, toIconName as n } from "@progress/kendo-react-common";
|
|
10
|
+
const m = ({ icon: e, svgIcon: t }) => t || e ? /* @__PURE__ */ a.createElement("span", { className: "k-list-item-icon-wrapper", role: "presentation" }, /* @__PURE__ */ a.createElement(
|
|
11
|
+
r,
|
|
12
|
+
{
|
|
13
|
+
className: "k-list-item-icon",
|
|
14
|
+
name: e ? n(e) : void 0,
|
|
15
|
+
icon: t,
|
|
16
|
+
"aria-hidden": "true"
|
|
17
|
+
}
|
|
18
|
+
)) : null;
|
|
19
|
+
export {
|
|
20
|
+
m as ListItemIcon
|
|
21
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ListProps } from './List.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare const MultiColumnList: (props: ListProps) => React.JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare class Navigation {
|
|
12
|
+
navigate(args: {
|
|
13
|
+
keyCode: number;
|
|
14
|
+
current: number;
|
|
15
|
+
max: number;
|
|
16
|
+
min: number;
|
|
17
|
+
skipItems?: number;
|
|
18
|
+
}): number | undefined;
|
|
19
|
+
private next;
|
|
20
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DropDownsClassStructure } from '@progress/kendo-react-common';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface SearchBarProps {
|
|
14
|
+
value: string;
|
|
15
|
+
onChange: React.FormEventHandler<HTMLInputElement>;
|
|
16
|
+
render?: (rendering: React.ReactElement<HTMLSpanElement>) => React.ReactNode;
|
|
17
|
+
id?: string;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
title?: string;
|
|
20
|
+
tabIndex?: number;
|
|
21
|
+
size?: number;
|
|
22
|
+
suggestedText?: string;
|
|
23
|
+
focused?: boolean;
|
|
24
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
25
|
+
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
26
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
27
|
+
onClick?: React.MouseEventHandler<HTMLInputElement>;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
readOnly?: boolean;
|
|
30
|
+
expanded?: boolean;
|
|
31
|
+
owns?: string;
|
|
32
|
+
role?: string;
|
|
33
|
+
name?: string;
|
|
34
|
+
activedescendant?: string;
|
|
35
|
+
accessKey?: string;
|
|
36
|
+
ariaLabelledBy?: string;
|
|
37
|
+
ariaLabel?: string;
|
|
38
|
+
ariaDescribedBy?: string;
|
|
39
|
+
ariaRequired?: boolean;
|
|
40
|
+
ariaControls?: string;
|
|
41
|
+
unstyled?: DropDownsClassStructure;
|
|
42
|
+
inputAttributes?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
47
|
+
export default class SearchBar extends React.Component<SearchBarProps> {
|
|
48
|
+
private _input;
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
52
|
+
get input(): HTMLInputElement | null;
|
|
53
|
+
componentDidUpdate(prevProps: SearchBarProps): void;
|
|
54
|
+
render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
|
|
55
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { RowHeightService } from '@progress/kendo-react-common';
|
|
9
|
+
import { Page } from './settings.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare class VirtualScroll {
|
|
15
|
+
table: HTMLTableElement | null;
|
|
16
|
+
total: number;
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
skip: number;
|
|
19
|
+
pageSize: number;
|
|
20
|
+
PageChange: ((event: Page, syntheticEvent: React.SyntheticEvent<any>) => void) | null;
|
|
21
|
+
scrollElement: HTMLDivElement | null;
|
|
22
|
+
listTransform: string;
|
|
23
|
+
itemHeight: number;
|
|
24
|
+
containerHeight: number;
|
|
25
|
+
rowHeightService?: RowHeightService;
|
|
26
|
+
private reactVersion;
|
|
27
|
+
private scrollSyncing;
|
|
28
|
+
private lastLoaded;
|
|
29
|
+
private firstLoaded;
|
|
30
|
+
private lastScrollTop;
|
|
31
|
+
private listTranslate;
|
|
32
|
+
get translate(): number;
|
|
33
|
+
list: HTMLUListElement | null;
|
|
34
|
+
container: HTMLDivElement | null;
|
|
35
|
+
constructor();
|
|
36
|
+
translateTo(dY: number, force?: boolean): void;
|
|
37
|
+
changePage(skip: number, e: React.SyntheticEvent<HTMLDivElement>): void;
|
|
38
|
+
reset(): void;
|
|
39
|
+
scrollToEnd(): void;
|
|
40
|
+
calcScrollElementHeight: () => boolean;
|
|
41
|
+
scrollerRef: (element: HTMLDivElement | null) => void;
|
|
42
|
+
scrollHandler(e: React.SyntheticEvent<HTMLDivElement>): void;
|
|
43
|
+
private getRowHeightService;
|
|
44
|
+
}
|