@progress/kendo-react-dropdowns 9.4.0-develop.2 → 9.4.0-develop.21
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.js +1 -1
- package/AutoComplete/AutoComplete.mjs +0 -1
- package/ComboBox/ComboBox.js +1 -1
- package/ComboBox/ComboBox.mjs +0 -1
- package/DropDownList/DropDownList.js +1 -1
- package/DropDownList/DropDownList.mjs +0 -1
- package/DropDownTree/DropDownTree.js +1 -1
- package/DropDownTree/DropDownTree.mjs +0 -1
- package/DropDownTree/ListNoData.js +1 -1
- package/DropDownTree/ListNoData.mjs +0 -1
- package/DropDownTree/useDropdownWidth.js +1 -1
- package/DropDownTree/useDropdownWidth.mjs +7 -8
- package/MultiColumnComboBox/MultiColumnComboBox.js +1 -1
- package/MultiColumnComboBox/MultiColumnComboBox.mjs +0 -1
- package/MultiSelect/MultiSelect.js +1 -1
- package/MultiSelect/MultiSelect.mjs +0 -1
- package/MultiSelect/TagList.js +1 -1
- package/MultiSelect/TagList.mjs +8 -9
- package/MultiSelectTree/MultiSelectTree.js +1 -1
- package/MultiSelectTree/MultiSelectTree.mjs +0 -1
- package/MultiSelectTree/utils.js +1 -1
- package/MultiSelectTree/utils.mjs +16 -17
- package/NOTICE.txt +40 -51
- package/common/AdaptiveMode.js +1 -1
- package/common/AdaptiveMode.mjs +7 -8
- package/common/ClearButton.js +1 -1
- package/common/ClearButton.mjs +5 -6
- package/common/DropDownBase.js +1 -1
- package/common/DropDownBase.mjs +0 -1
- package/common/GroupStickyHeader.js +1 -1
- package/common/GroupStickyHeader.mjs +4 -5
- package/common/List.js +1 -1
- package/common/List.mjs +0 -1
- package/common/ListContainer.js +1 -1
- package/common/ListContainer.mjs +7 -8
- package/common/ListDefaultItem.js +1 -1
- package/common/ListDefaultItem.mjs +9 -10
- package/common/ListFilter.js +1 -1
- package/common/ListFilter.mjs +4 -5
- package/common/ListGroupItem.js +1 -1
- package/common/ListGroupItem.mjs +5 -6
- package/common/ListItem.js +1 -1
- package/common/ListItem.mjs +0 -1
- package/common/MultiColumnList.js +1 -1
- package/common/MultiColumnList.mjs +4 -5
- package/common/Navigation.js +1 -1
- package/common/Navigation.mjs +0 -1
- package/common/SearchBar.js +1 -1
- package/common/SearchBar.mjs +3 -4
- package/common/VirtualScrollStatic.js +1 -1
- package/common/VirtualScrollStatic.mjs +0 -1
- package/common/settings.js +1 -1
- package/common/settings.mjs +0 -1
- package/common/utils.js +1 -1
- package/common/utils.mjs +24 -25
- package/common/withCustomComponent.js +1 -1
- package/common/withCustomComponent.mjs +2 -3
- package/dist/cdn/js/kendo-react-dropdowns.js +8 -1
- package/index.js +2 -1
- package/index.mjs +2 -2
- package/messages/index.js +1 -1
- package/messages/index.mjs +4 -5
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -3
- package/package.json +10 -10
package/common/utils.mjs
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
const l = (e) => e != null, d = (e, t) => {
|
|
10
9
|
for (let r = 0; r < e.length; r++)
|
|
11
10
|
if (e.charAt(r) !== t)
|
|
@@ -19,42 +18,42 @@ const l = (e) => e != null, d = (e, t) => {
|
|
|
19
18
|
return !1;
|
|
20
19
|
let n = String(e);
|
|
21
20
|
return r && (n = n.toLowerCase()), n.indexOf(t) === 0;
|
|
22
|
-
}, C = (e, t, r, n,
|
|
23
|
-
const
|
|
24
|
-
if (
|
|
21
|
+
}, C = (e, t, r, n, o) => {
|
|
22
|
+
const s = e.offsetHeight, g = t.children.item(r), f = g.offsetTop + (o ? n - e.scrollTop : 0), c = g.offsetHeight;
|
|
23
|
+
if (o) {
|
|
25
24
|
let u = 0;
|
|
26
|
-
|
|
25
|
+
f + c > s ? u = f + c - s : f < 0 && (u = f), u !== 0 ? e.scrollTop += u : e.scrollTop === 0 && n !== 0 && (e.scrollTop = n);
|
|
27
26
|
} else
|
|
28
|
-
|
|
27
|
+
f + c > s + e.scrollTop ? e.scrollTop = f + c - s : f < e.scrollTop && (e.scrollTop -= e.scrollTop - f);
|
|
29
28
|
}, h = (e, t, r) => {
|
|
30
29
|
let n = -1;
|
|
31
30
|
if (t) {
|
|
32
31
|
t = t.toLowerCase();
|
|
33
|
-
for (let
|
|
34
|
-
const
|
|
35
|
-
if (
|
|
36
|
-
n =
|
|
32
|
+
for (let o = 0; o < e.length; o++) {
|
|
33
|
+
const s = (i(e[o], r) || "") + "";
|
|
34
|
+
if (s && s.toLowerCase().startsWith(t)) {
|
|
35
|
+
n = o;
|
|
37
36
|
break;
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
return n;
|
|
42
41
|
}, T = (e, t, r, n = !1) => {
|
|
43
|
-
const
|
|
44
|
-
return e.findIndex((
|
|
45
|
-
},
|
|
42
|
+
const o = (s) => n ? s : s.toLowerCase();
|
|
43
|
+
return e.findIndex((s) => r ? o(i(s, r)) === o(t) : o(t) === o(s.toString()));
|
|
44
|
+
}, i = (e, t) => {
|
|
46
45
|
if (t && l(e)) {
|
|
47
46
|
const r = t.split(".");
|
|
48
47
|
let n = e;
|
|
49
|
-
return r.forEach((
|
|
50
|
-
n = n ? n[
|
|
48
|
+
return r.forEach((o) => {
|
|
49
|
+
n = n ? n[o] : void 0;
|
|
51
50
|
}), n;
|
|
52
51
|
}
|
|
53
52
|
return e;
|
|
54
53
|
}, D = (e, t, r) => {
|
|
55
54
|
if (!e)
|
|
56
55
|
return;
|
|
57
|
-
const n = e.findIndex((
|
|
56
|
+
const n = e.findIndex((o) => i(o, t) === r);
|
|
58
57
|
return e[n];
|
|
59
58
|
}, a = (e = [], t = [], r) => {
|
|
60
59
|
if (e === t)
|
|
@@ -67,10 +66,10 @@ const l = (e) => e != null, d = (e, t) => {
|
|
|
67
66
|
return !0;
|
|
68
67
|
}, w = (e, t, r) => {
|
|
69
68
|
t.forEach((n) => {
|
|
70
|
-
const
|
|
71
|
-
|
|
69
|
+
const o = e.findIndex((s) => p(s, n, r));
|
|
70
|
+
o !== -1 && e.splice(o, 1);
|
|
72
71
|
});
|
|
73
|
-
}, p = (e, t, r) => e === t || l(e) === l(t) &&
|
|
72
|
+
}, p = (e, t, r) => e === t || l(e) === l(t) && i(e, r) === i(t, r), L = (e, t, r) => {
|
|
74
73
|
if (t) {
|
|
75
74
|
const n = T(e, t, r, !0);
|
|
76
75
|
return n !== -1 ? e[n] : e[h(e, t, r)];
|
|
@@ -79,10 +78,10 @@ const l = (e) => e != null, d = (e, t) => {
|
|
|
79
78
|
}, H = (e, t = [], r) => {
|
|
80
79
|
let n = "";
|
|
81
80
|
if (e) {
|
|
82
|
-
const
|
|
83
|
-
if (
|
|
84
|
-
const
|
|
85
|
-
e.toLowerCase() !==
|
|
81
|
+
const o = t[h(t, e, r)];
|
|
82
|
+
if (o) {
|
|
83
|
+
const s = i(o, r);
|
|
84
|
+
e.toLowerCase() !== s.toLowerCase() && (n = s.substring(e.length));
|
|
86
85
|
}
|
|
87
86
|
}
|
|
88
87
|
return n;
|
|
@@ -90,7 +89,7 @@ const l = (e) => e != null, d = (e, t) => {
|
|
|
90
89
|
e.target.nodeName !== "INPUT" && e.preventDefault();
|
|
91
90
|
}, y = (e, t, r) => !!e != !!t || e.text !== t.text ? !1 : e === t || a(e.data, t.data, r), N = (e) => {
|
|
92
91
|
const t = e.filter(
|
|
93
|
-
(r, n) => e.some((
|
|
92
|
+
(r, n) => e.some((o, s) => o === r && s !== n)
|
|
94
93
|
);
|
|
95
94
|
return Array.from(new Set(t));
|
|
96
95
|
}, O = (e) => {
|
|
@@ -103,7 +102,7 @@ export {
|
|
|
103
102
|
O as getFilteredData,
|
|
104
103
|
L as getFocusedItem,
|
|
105
104
|
T as getItemIndexByText,
|
|
106
|
-
|
|
105
|
+
i as getItemValue,
|
|
107
106
|
N as getPlainDataDuplicates,
|
|
108
107
|
l as isPresent,
|
|
109
108
|
h as itemIndexStartsWith,
|
|
@@ -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
|
|
8
|
+
"use strict";const o=require("@progress/kendo-react-common"),t=o.useCustomComponent;module.exports=t;
|
|
@@ -5,9 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
import { useCustomComponent as o } from "@progress/kendo-react-common";
|
|
10
|
-
const
|
|
9
|
+
const m = o;
|
|
11
10
|
export {
|
|
12
|
-
|
|
11
|
+
m as default
|
|
13
12
|
};
|