@progress/kendo-react-dropdowns 8.2.1-develop.5 → 8.3.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 +176 -167
- package/DropDownList/DropDownList.js +1 -1
- package/DropDownList/DropDownList.mjs +292 -280
- package/DropDownTree/DropDownTree.js +1 -1
- package/DropDownTree/DropDownTree.mjs +1 -1
- package/MultiSelect/MultiSelect.js +1 -1
- package/MultiSelect/MultiSelect.mjs +131 -128
- package/MultiSelectTree/MultiSelectTree.js +1 -1
- package/MultiSelectTree/MultiSelectTree.mjs +11 -11
- package/common/ClearButton.js +1 -1
- package/common/ClearButton.mjs +21 -27
- package/common/GroupStickyHeader.js +1 -1
- package/common/GroupStickyHeader.mjs +11 -12
- package/common/List.js +1 -1
- package/common/List.mjs +88 -92
- package/common/ListContainer.js +1 -1
- package/common/ListContainer.mjs +21 -23
- package/common/ListDefaultItem.js +1 -1
- package/common/ListDefaultItem.mjs +20 -25
- package/common/ListFilter.js +1 -1
- package/common/ListFilter.mjs +19 -19
- package/common/ListGroupItem.js +1 -1
- package/common/ListGroupItem.mjs +22 -22
- package/common/ListItem.js +1 -1
- package/common/ListItem.mjs +37 -39
- package/common/SearchBar.js +1 -1
- package/common/SearchBar.mjs +20 -17
- package/dist/cdn/js/kendo-react-dropdowns.js +1 -1
- package/index.d.mts +19 -19
- package/index.d.ts +19 -19
- package/package-metadata.mjs +1 -1
- package/package.json +9 -9
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 client";"use strict";const
|
|
8
|
+
"use client";"use strict";const o=require("@progress/kendo-react-common"),d=require("react");function m(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=m(d),p=e=>{const{group:n,virtual:t,render:s,isMultiColumn:r=!1,id:u}=e,a=o.useUnstyled(),c=a&&a.uDropDownsBase,i=l.createElement("li",{id:u,role:"group",className:o.classNames(o.uDropDownsBase.groupLi({c,isMultiColumn:r})),style:r?{boxSizing:"inherit"}:{position:t?"relative":"unset"}},l.createElement("span",{className:s?void 0:o.classNames(o.uDropDownsBase.groupItemText({c,isMultiColumn:r}))},n));return s!==void 0?s.call(void 0,i,e):i};module.exports=p;
|
package/common/ListGroupItem.mjs
CHANGED
|
@@ -6,27 +6,27 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
9
|
+
import { useUnstyled as d, classNames as i, uDropDownsBase as l } from "@progress/kendo-react-common";
|
|
10
|
+
import * as n from "react";
|
|
11
|
+
const g = (t) => {
|
|
12
|
+
const {
|
|
13
|
+
group: u,
|
|
14
|
+
virtual: c,
|
|
15
|
+
render: e,
|
|
16
|
+
isMultiColumn: s = !1,
|
|
17
|
+
id: m
|
|
18
|
+
} = t, o = d(), r = o && o.uDropDownsBase, a = /* @__PURE__ */ n.createElement(
|
|
19
|
+
"li",
|
|
20
|
+
{
|
|
21
|
+
id: m,
|
|
22
|
+
role: "group",
|
|
23
|
+
className: i(l.groupLi({ c: r, isMultiColumn: s })),
|
|
24
|
+
style: s ? { boxSizing: "inherit" } : { position: c ? "relative" : "unset" }
|
|
25
|
+
},
|
|
26
|
+
/* @__PURE__ */ n.createElement("span", { className: e ? void 0 : i(l.groupItemText({ c: r, isMultiColumn: s })) }, u)
|
|
27
|
+
);
|
|
28
|
+
return e !== void 0 ? e.call(void 0, a, t) : a;
|
|
29
|
+
};
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
g as default
|
|
32
32
|
};
|
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 client";"use strict";const
|
|
8
|
+
"use client";"use strict";const p=require("react"),s=require("@progress/kendo-react-common"),v=require("./utils.js");function N(e){const a=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(a,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const o=N(p),y=e=>{const{selected:a,group:t,dataItem:n,virtual:m,groupMode:l,disabled:i,id:f,focused:D,render:r}=e,u=s.useUnstyled(),c=u&&u.uDropDownsBase,b=g=>e.onClick(e.index,g),d=o.createElement("li",{id:f,role:"option","aria-selected":a,"aria-disabled":i?!0:void 0,className:s.classNames(s.uDropDownsBase.li({c,selected:a,focused:D,first:!!t&&l==="classic",disabled:i})),onClick:b,style:{position:m?"relative":"unset"}},o.createElement("span",{className:s.classNames(s.uDropDownsBase.itemText({c}))},v.getItemValue(n,e.textField).toString()),t!==void 0&&l==="classic"?o.createElement("div",{className:s.classNames(s.uDropDownsBase.itemGroupLabel({c}))},t):null);return r!==void 0?r.call(void 0,d,e):d},B=y;module.exports=B;
|
package/common/ListItem.mjs
CHANGED
|
@@ -6,44 +6,42 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import { classNames as
|
|
11
|
-
import { getItemValue as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
}
|
|
9
|
+
import * as a from "react";
|
|
10
|
+
import { useUnstyled as B, classNames as l, uDropDownsBase as i } from "@progress/kendo-react-common";
|
|
11
|
+
import { getItemValue as C } from "./utils.mjs";
|
|
12
|
+
const D = (e) => {
|
|
13
|
+
const {
|
|
14
|
+
selected: o,
|
|
15
|
+
group: t,
|
|
16
|
+
dataItem: u,
|
|
17
|
+
virtual: v,
|
|
18
|
+
groupMode: c,
|
|
19
|
+
disabled: n,
|
|
20
|
+
id: f,
|
|
21
|
+
focused: g,
|
|
22
|
+
render: r
|
|
23
|
+
} = e, d = B(), s = d && d.uDropDownsBase, p = (x) => e.onClick(e.index, x), m = /* @__PURE__ */ a.createElement(
|
|
24
|
+
"li",
|
|
25
|
+
{
|
|
26
|
+
id: f,
|
|
27
|
+
role: "option",
|
|
28
|
+
"aria-selected": o,
|
|
29
|
+
"aria-disabled": n ? !0 : void 0,
|
|
30
|
+
className: l(i.li({
|
|
31
|
+
c: s,
|
|
32
|
+
selected: o,
|
|
33
|
+
focused: g,
|
|
34
|
+
first: !!t && c === "classic",
|
|
35
|
+
disabled: n
|
|
36
|
+
})),
|
|
37
|
+
onClick: p,
|
|
38
|
+
style: { position: v ? "relative" : "unset" }
|
|
39
|
+
},
|
|
40
|
+
/* @__PURE__ */ a.createElement("span", { className: l(i.itemText({ c: s })) }, C(u, e.textField).toString()),
|
|
41
|
+
t !== void 0 && c === "classic" ? /* @__PURE__ */ a.createElement("div", { className: l(i.itemGroupLabel({ c: s })) }, t) : null
|
|
42
|
+
);
|
|
43
|
+
return r !== void 0 ? r.call(void 0, m, e) : m;
|
|
44
|
+
}, b = D;
|
|
47
45
|
export {
|
|
48
|
-
|
|
46
|
+
b as default
|
|
49
47
|
};
|
package/common/SearchBar.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 client";"use strict";const u=require("@progress/kendo-react-common"),h=require("react");function b(
|
|
8
|
+
"use client";"use strict";const u=require("@progress/kendo-react-common"),h=require("react");function b(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,s.get?s:{enumerable:!0,get:()=>n[e]})}}return t.default=n,Object.freeze(t)}const l=b(h);class g extends l.Component{constructor(){super(...arguments),this._input=null}get input(){return this._input}componentDidUpdate(t){const e=t.value,s=t.suggestedText,{value:r,suggestedText:a,focused:p}=this.props,i=this.input,o=e!==r||a!==s,c=o&&e.startsWith(r)&&!(s&&a&&s.endsWith(a)),d=u.getActiveElement(document);p&&i&&d!==i&&i.focus(),a&&o&&!c&&i&&i.setSelectionRange(r.length-a.length,r.length)}render(){const{expanded:t=!1,disabled:e,role:s="listbox",render:r,tabIndex:a,accessKey:p}=this.props,i={tabIndex:a,accessKey:p},o=l.createElement("input",{autoComplete:"off",id:this.props.id,type:"text",key:"searchbar",size:this.props.size,placeholder:this.props.placeholder,className:"k-input-inner",role:s,name:this.props.name,value:this.props.value,onChange:this.props.onChange,ref:c=>this._input=c,onKeyDown:this.props.onKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur,onClick:this.props.onClick,"aria-disabled":e||void 0,disabled:e||void 0,readOnly:this.props.readOnly||void 0,title:this.props.title,"aria-haspopup":"listbox","aria-expanded":t,"aria-owns":this.props.owns,"aria-activedescendant":t?this.props.activedescendant:void 0,"aria-describedby":this.props.ariaDescribedBy,"aria-labelledby":this.props.ariaLabelledBy,"aria-label":this.props.ariaLabel,"aria-required":this.props.ariaRequired,"aria-controls":this.props.ariaControls,...i});return r?r.call(void 0,o):o}}module.exports=g;
|
package/common/SearchBar.mjs
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import { getActiveElement as c } from "@progress/kendo-react-common";
|
|
10
|
-
import * as
|
|
11
|
-
class
|
|
10
|
+
import * as l from "react";
|
|
11
|
+
class g extends l.Component {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments), this._input = null;
|
|
14
14
|
}
|
|
@@ -18,12 +18,15 @@ class b extends p.Component {
|
|
|
18
18
|
get input() {
|
|
19
19
|
return this._input;
|
|
20
20
|
}
|
|
21
|
-
componentDidUpdate(
|
|
22
|
-
const
|
|
23
|
-
|
|
21
|
+
componentDidUpdate(i) {
|
|
22
|
+
const a = i.value, r = i.suggestedText, { value: e, suggestedText: t, focused: n } = this.props, s = this.input, o = a !== e || t !== r, p = o && a.startsWith(e) && !(r && t && r.endsWith(t)), d = c(document);
|
|
23
|
+
n && s && d !== s && s.focus(), t && o && !p && s && s.setSelectionRange(e.length - t.length, e.length);
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
const { expanded:
|
|
26
|
+
const { expanded: i = !1, disabled: a, role: r = "listbox", render: e, tabIndex: t, accessKey: n } = this.props, s = {
|
|
27
|
+
tabIndex: t,
|
|
28
|
+
accessKey: n
|
|
29
|
+
}, o = /* @__PURE__ */ l.createElement(
|
|
27
30
|
"input",
|
|
28
31
|
{
|
|
29
32
|
autoComplete: "off",
|
|
@@ -33,34 +36,34 @@ class b extends p.Component {
|
|
|
33
36
|
size: this.props.size,
|
|
34
37
|
placeholder: this.props.placeholder,
|
|
35
38
|
className: "k-input-inner",
|
|
36
|
-
|
|
37
|
-
accessKey: this.props.accessKey,
|
|
38
|
-
role: a,
|
|
39
|
+
role: r,
|
|
39
40
|
name: this.props.name,
|
|
40
41
|
value: this.props.value,
|
|
41
42
|
onChange: this.props.onChange,
|
|
42
|
-
ref: (
|
|
43
|
+
ref: (p) => this._input = p,
|
|
43
44
|
onKeyDown: this.props.onKeyDown,
|
|
44
45
|
onFocus: this.props.onFocus,
|
|
45
46
|
onBlur: this.props.onBlur,
|
|
46
47
|
onClick: this.props.onClick,
|
|
47
|
-
"aria-disabled":
|
|
48
|
-
disabled:
|
|
48
|
+
"aria-disabled": a || void 0,
|
|
49
|
+
disabled: a || void 0,
|
|
49
50
|
readOnly: this.props.readOnly || void 0,
|
|
50
51
|
title: this.props.title,
|
|
51
52
|
"aria-haspopup": "listbox",
|
|
52
|
-
"aria-expanded":
|
|
53
|
+
"aria-expanded": i,
|
|
53
54
|
"aria-owns": this.props.owns,
|
|
54
|
-
"aria-activedescendant":
|
|
55
|
+
"aria-activedescendant": i ? this.props.activedescendant : void 0,
|
|
55
56
|
"aria-describedby": this.props.ariaDescribedBy,
|
|
56
57
|
"aria-labelledby": this.props.ariaLabelledBy,
|
|
57
58
|
"aria-label": this.props.ariaLabel,
|
|
58
|
-
"aria-required": this.props.ariaRequired
|
|
59
|
+
"aria-required": this.props.ariaRequired,
|
|
60
|
+
"aria-controls": this.props.ariaControls,
|
|
61
|
+
...s
|
|
59
62
|
}
|
|
60
63
|
);
|
|
61
|
-
return
|
|
64
|
+
return e ? e.call(void 0, o) : o;
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
67
|
export {
|
|
65
|
-
|
|
68
|
+
g as default
|
|
66
69
|
};
|