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