@progress/kendo-react-dropdowns 8.3.0-develop.4 → 8.3.0-develop.6
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/DropDownList/DropDownList.js +1 -1
- package/DropDownList/DropDownList.mjs +284 -279
- 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/dist/cdn/js/kendo-react-dropdowns.js +1 -1
- package/index.d.mts +15 -19
- package/index.d.ts +15 -19
- package/package-metadata.mjs +1 -1
- package/package.json +9 -9
package/common/ClearButton.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 i=require("react"),
|
|
8
|
+
"use client";"use strict";const i=require("react"),d=require("@progress/kendo-react-intl"),s=require("../messages/index.js"),c=require("@progress/kendo-react-common"),m=require("@progress/kendo-svg-icons");function p(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const a=p(i),f=e=>{const n=d.useLocalization(),t=c.useUnstyled(),o=t&&t.uDropDownsBase,r=n.toLanguageString(s.clear,s.messages[s.clear]),l=u=>u.preventDefault();return a.createElement("span",{className:c.classNames(c.uDropDownsBase.clearButton({c:o})),role:"button",onClick:e.onClick,onMouseDown:l,tabIndex:-1,title:r,key:"clearbutton"},a.createElement(c.IconWrap,{name:"x",icon:m.xIcon}))};module.exports=f;
|
package/common/ClearButton.mjs
CHANGED
|
@@ -7,32 +7,26 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as o from "react";
|
|
10
|
-
import {
|
|
11
|
-
import { clear as t, messages as
|
|
12
|
-
import { IconWrap as
|
|
13
|
-
import { xIcon as
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
/* @__PURE__ */ o.createElement(s, { name: "x", icon: i })
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
n(c);
|
|
10
|
+
import { useLocalization as m } from "@progress/kendo-react-intl";
|
|
11
|
+
import { clear as t, messages as i } from "../messages/index.mjs";
|
|
12
|
+
import { useUnstyled as u, classNames as p, uDropDownsBase as f, IconWrap as d } from "@progress/kendo-react-common";
|
|
13
|
+
import { xIcon as D } from "@progress/kendo-svg-icons";
|
|
14
|
+
const b = (n) => {
|
|
15
|
+
const s = m(), e = u(), a = e && e.uDropDownsBase, r = s.toLanguageString(t, i[t]), c = (l) => l.preventDefault();
|
|
16
|
+
return /* @__PURE__ */ o.createElement(
|
|
17
|
+
"span",
|
|
18
|
+
{
|
|
19
|
+
className: p(f.clearButton({ c: a })),
|
|
20
|
+
role: "button",
|
|
21
|
+
onClick: n.onClick,
|
|
22
|
+
onMouseDown: c,
|
|
23
|
+
tabIndex: -1,
|
|
24
|
+
title: r,
|
|
25
|
+
key: "clearbutton"
|
|
26
|
+
},
|
|
27
|
+
/* @__PURE__ */ o.createElement(d, { name: "x", icon: D })
|
|
28
|
+
);
|
|
29
|
+
};
|
|
36
30
|
export {
|
|
37
|
-
|
|
31
|
+
b as default
|
|
38
32
|
};
|
|
@@ -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 c=require("@progress/kendo-react-common"),u=require("react");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const l=i(u),d=e=>{const{group:t,groupMode:s,render:r}=e,n=c.useUnstyled(),o=n&&n.uDropDownsBase,a=l.createElement("div",{className:c.classNames(c.uDropDownsBase.groupStickyHeader({c:o}))},s==="classic"?t:l.createElement("div",{className:c.classNames(c.uDropDownsBase.listHeaderText({c:o}))},t));return r!==void 0?r.call(void 0,a,e):a};module.exports=d;
|
|
@@ -6,17 +6,16 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
9
|
+
import { useUnstyled as i, classNames as c, uDropDownsBase as d } from "@progress/kendo-react-common";
|
|
10
|
+
import * as l from "react";
|
|
11
|
+
const m = (e) => {
|
|
12
|
+
const {
|
|
13
|
+
group: s,
|
|
14
|
+
groupMode: n,
|
|
15
|
+
render: t
|
|
16
|
+
} = e, r = i(), a = r && r.uDropDownsBase, o = /* @__PURE__ */ l.createElement("div", { className: c(d.groupStickyHeader({ c: a })) }, n === "classic" ? s : /* @__PURE__ */ l.createElement("div", { className: c(d.listHeaderText({ c: a })) }, s));
|
|
17
|
+
return t !== void 0 ? t.call(void 0, o, e) : o;
|
|
18
|
+
};
|
|
20
19
|
export {
|
|
21
|
-
|
|
20
|
+
m as default
|
|
22
21
|
};
|
package/common/List.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 T=require("react"),U=require("./ListItem.js"),J=require("./ListGroupItem.js"),f=require("./utils.js"),K=require("@progress/kendo-react-intl"),I=require("../messages/index.js"),n=require("@progress/kendo-react-common");function Q(e){const c=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(c,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const r=Q(T),W=e=>{const c=K.useLocalization(),t=n.useUnstyled(),s=t&&t.uDropDownsBase,{id:k,show:q,wrapperCssClass:B,wrapperStyle:L,listStyle:z,listRef:M,wrapperRef:O,listClassName:$,ariaSetSize:j}=e,S=(()=>{const{textField:u,valueField:i,groupField:v,groupMode:d,isMultiColumn:A,optionsGuid:b,skip:w=0,virtual:C,focusedIndex:N,hasDuplicates:F,highlightSelected:V=!0,value:m,data:R,itemRender:_,groupHeaderItemRender:G}=e,h=Array.isArray(m);let E=0;return R.map((a,o)=>{const D=w+o,p=w+o+E,P=F?m?N===o:!1:a.disabled?!1:V&&(!h&&f.areSame(a,m,i)||h&&m.findIndex(H=>f.areSame(H,a,i))!==-1);let l,g,y;return o>0&&v!==void 0&&(g=f.getItemValue(a,v),y=f.getItemValue(R[o-1],v),g&&y&&g!==y&&(l=g)),l!==void 0&&d==="modern"&&(E+=1),[l!==void 0&&d==="modern"&&r.createElement(J,{id:`option-${b}-${p}`,virtual:C,key:D+"-group-item",group:l,isMultiColumn:A,render:G}),r.createElement(U,{id:`option-${b}-${l!==void 0&&d==="modern"?p+1:p}`,virtual:C,dataItem:a,groupMode:d,selected:P,focused:N===o,index:D,key:D,onClick:e.onClick,textField:u,group:l,render:_,disabled:a.disabled})]})})(),x=()=>{const u=e.noDataRender,i=r.createElement("div",{className:n.classNames(n.uDropDownsBase.noData({c:s}))},r.createElement("div",null,c.toLanguageString(I.nodata,I.messages[I.nodata])));return u?u.call(void 0,i):i};return S.length?r.createElement("div",{className:B,style:L,ref:O,onMouseDown:e.onMouseDown,onBlur:e.onBlur,onScroll:e.onScroll,unselectable:"on"},r.createElement("ul",{id:k,role:"listbox","aria-hidden":q?void 0:!0,"aria-setsize":j,className:$||n.classNames(n.uDropDownsBase.ul({c:s})),ref:M,style:z},S),e.scroller&&r.createElement("div",{className:n.classNames(n.uDropDownsBase.heightContainer({c:s}))},e.scroller)):x()},X=W;module.exports=X;
|
package/common/List.mjs
CHANGED
|
@@ -7,112 +7,108 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import * as t from "react";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { areSame as
|
|
13
|
-
import {
|
|
14
|
-
import { nodata as
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
import Q from "./ListItem.mjs";
|
|
11
|
+
import T from "./ListGroupItem.mjs";
|
|
12
|
+
import { areSame as R, getItemValue as L } from "./utils.mjs";
|
|
13
|
+
import { useLocalization as W } from "@progress/kendo-react-intl";
|
|
14
|
+
import { nodata as b, messages as X } from "../messages/index.mjs";
|
|
15
|
+
import { useUnstyled as Y, classNames as g, uDropDownsBase as p } from "@progress/kendo-react-common";
|
|
16
|
+
const Z = (e) => {
|
|
17
|
+
const k = W(), y = Y(), c = y && y.uDropDownsBase, {
|
|
18
|
+
id: B,
|
|
19
|
+
show: $,
|
|
20
|
+
wrapperCssClass: z,
|
|
21
|
+
wrapperStyle: M,
|
|
22
|
+
listStyle: x,
|
|
23
|
+
listRef: A,
|
|
24
|
+
wrapperRef: F,
|
|
25
|
+
listClassName: G,
|
|
26
|
+
ariaSetSize: V
|
|
27
|
+
} = e, D = (() => {
|
|
17
28
|
const {
|
|
18
|
-
textField:
|
|
19
|
-
valueField:
|
|
20
|
-
groupField:
|
|
21
|
-
groupMode:
|
|
22
|
-
isMultiColumn:
|
|
23
|
-
optionsGuid:
|
|
24
|
-
skip:
|
|
25
|
-
virtual:
|
|
26
|
-
focusedIndex:
|
|
27
|
-
hasDuplicates:
|
|
28
|
-
highlightSelected:
|
|
29
|
-
value:
|
|
29
|
+
textField: n,
|
|
30
|
+
valueField: s,
|
|
31
|
+
groupField: u,
|
|
32
|
+
groupMode: l,
|
|
33
|
+
isMultiColumn: U,
|
|
34
|
+
optionsGuid: I,
|
|
35
|
+
skip: S = 0,
|
|
36
|
+
virtual: h,
|
|
37
|
+
focusedIndex: C,
|
|
38
|
+
hasDuplicates: j,
|
|
39
|
+
highlightSelected: q = !0,
|
|
40
|
+
value: i,
|
|
30
41
|
data: E,
|
|
31
|
-
itemRender:
|
|
32
|
-
groupHeaderItemRender:
|
|
33
|
-
} =
|
|
34
|
-
let
|
|
35
|
-
return E.map((
|
|
36
|
-
const
|
|
37
|
-
let a,
|
|
38
|
-
return
|
|
39
|
-
a !== void 0 &&
|
|
40
|
-
|
|
42
|
+
itemRender: J,
|
|
43
|
+
groupHeaderItemRender: K
|
|
44
|
+
} = e, w = Array.isArray(i);
|
|
45
|
+
let N = 0;
|
|
46
|
+
return E.map((o, r) => {
|
|
47
|
+
const m = S + r, f = S + r + N, O = j ? i ? C === r : !1 : o.disabled ? !1 : q && (!w && R(o, i, s) || w && i.findIndex((P) => R(P, o, s)) !== -1);
|
|
48
|
+
let a, d, v;
|
|
49
|
+
return r > 0 && u !== void 0 && (d = L(o, u), v = L(E[r - 1], u), d && v && d !== v && (a = d)), a !== void 0 && l === "modern" && (N += 1), [
|
|
50
|
+
a !== void 0 && l === "modern" && /* @__PURE__ */ t.createElement(
|
|
51
|
+
T,
|
|
41
52
|
{
|
|
42
|
-
id: `option-${
|
|
43
|
-
virtual:
|
|
44
|
-
key:
|
|
53
|
+
id: `option-${I}-${f}`,
|
|
54
|
+
virtual: h,
|
|
55
|
+
key: m + "-group-item",
|
|
45
56
|
group: a,
|
|
46
|
-
isMultiColumn:
|
|
47
|
-
render:
|
|
57
|
+
isMultiColumn: U,
|
|
58
|
+
render: K
|
|
48
59
|
}
|
|
49
60
|
),
|
|
50
61
|
/* @__PURE__ */ t.createElement(
|
|
51
|
-
|
|
62
|
+
Q,
|
|
52
63
|
{
|
|
53
|
-
id: `option-${
|
|
54
|
-
virtual:
|
|
55
|
-
dataItem:
|
|
56
|
-
groupMode:
|
|
57
|
-
selected:
|
|
58
|
-
focused:
|
|
59
|
-
index:
|
|
60
|
-
key:
|
|
61
|
-
onClick:
|
|
62
|
-
textField:
|
|
64
|
+
id: `option-${I}-${a !== void 0 && l === "modern" ? f + 1 : f}`,
|
|
65
|
+
virtual: h,
|
|
66
|
+
dataItem: o,
|
|
67
|
+
groupMode: l,
|
|
68
|
+
selected: O,
|
|
69
|
+
focused: C === r,
|
|
70
|
+
index: m,
|
|
71
|
+
key: m,
|
|
72
|
+
onClick: e.onClick,
|
|
73
|
+
textField: n,
|
|
63
74
|
group: a,
|
|
64
|
-
render:
|
|
65
|
-
disabled:
|
|
75
|
+
render: J,
|
|
76
|
+
disabled: o.disabled
|
|
66
77
|
}
|
|
67
78
|
)
|
|
68
79
|
];
|
|
69
80
|
});
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return m.length ? /* @__PURE__ */ t.createElement(
|
|
88
|
-
"div",
|
|
81
|
+
})(), H = () => {
|
|
82
|
+
const n = e.noDataRender, s = /* @__PURE__ */ t.createElement("div", { className: g(p.noData({ c })) }, /* @__PURE__ */ t.createElement("div", null, k.toLanguageString(b, X[b])));
|
|
83
|
+
return n ? n.call(void 0, s) : s;
|
|
84
|
+
};
|
|
85
|
+
return D.length ? /* @__PURE__ */ t.createElement(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
className: z,
|
|
89
|
+
style: M,
|
|
90
|
+
ref: F,
|
|
91
|
+
onMouseDown: e.onMouseDown,
|
|
92
|
+
onBlur: e.onBlur,
|
|
93
|
+
onScroll: e.onScroll,
|
|
94
|
+
unselectable: "on"
|
|
95
|
+
},
|
|
96
|
+
/* @__PURE__ */ t.createElement(
|
|
97
|
+
"ul",
|
|
89
98
|
{
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
99
|
+
id: B,
|
|
100
|
+
role: "listbox",
|
|
101
|
+
"aria-hidden": $ ? void 0 : !0,
|
|
102
|
+
"aria-setsize": V,
|
|
103
|
+
className: G || g(p.ul({ c })),
|
|
104
|
+
ref: A,
|
|
105
|
+
style: x
|
|
97
106
|
},
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
"aria-hidden": e ? void 0 : !0,
|
|
104
|
-
"aria-setsize": v,
|
|
105
|
-
className: c,
|
|
106
|
-
ref: d,
|
|
107
|
-
style: n
|
|
108
|
-
},
|
|
109
|
-
m
|
|
110
|
-
),
|
|
111
|
-
this.props.scroller && /* @__PURE__ */ t.createElement("div", { className: "k-height-container" }, this.props.scroller)
|
|
112
|
-
) : this.renderNoValueElement(l);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
M(A);
|
|
107
|
+
D
|
|
108
|
+
),
|
|
109
|
+
e.scroller && /* @__PURE__ */ t.createElement("div", { className: g(p.heightContainer({ c })) }, e.scroller)
|
|
110
|
+
) : H();
|
|
111
|
+
}, ne = Z;
|
|
116
112
|
export {
|
|
117
|
-
|
|
113
|
+
ne as default
|
|
118
114
|
};
|
package/common/ListContainer.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 i=require("react"),s=require("@progress/kendo-react-popup");function u(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const a=u(i),p=e=>{const{children:n,width:t,dir:o,itemsCount:r,popupSettings:c}=e;return a.createElement(s.Popup,{style:{width:t,direction:o},contentKey:r&&r.join(),...c},n)},l=p;module.exports=l;
|
package/common/ListContainer.mjs
CHANGED
|
@@ -6,28 +6,26 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import { Popup as
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
}
|
|
9
|
+
import * as s from "react";
|
|
10
|
+
import { Popup as c } from "@progress/kendo-react-popup";
|
|
11
|
+
const p = (e) => {
|
|
12
|
+
const {
|
|
13
|
+
children: n,
|
|
14
|
+
width: o,
|
|
15
|
+
dir: i,
|
|
16
|
+
itemsCount: t,
|
|
17
|
+
popupSettings: r
|
|
18
|
+
} = e;
|
|
19
|
+
return /* @__PURE__ */ s.createElement(
|
|
20
|
+
c,
|
|
21
|
+
{
|
|
22
|
+
style: { width: o, direction: i },
|
|
23
|
+
contentKey: t && t.join(),
|
|
24
|
+
...r
|
|
25
|
+
},
|
|
26
|
+
n
|
|
27
|
+
);
|
|
28
|
+
}, m = p;
|
|
31
29
|
export {
|
|
32
|
-
|
|
30
|
+
m as default
|
|
33
31
|
};
|
|
@@ -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 a=require("react"),o=require("@progress/kendo-react-common"),r=require("./utils.js");function u(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 i=u(a),d=e=>e.preventDefault(),f=e=>{const{selected:n,defaultItem:t,textField:s}=e,c=o.useUnstyled(),l=c&&c.uDropDownsBase;return i.createElement("div",{onClick:e.onClick,onMouseDown:d,style:{position:"unset"},className:o.classNames(o.uDropDownsBase.optionlabel({c:l,selected:n}))},r.getItemValue(t,s)||"")};module.exports=f;
|
|
@@ -6,31 +6,26 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import { classNames as
|
|
11
|
-
import { getItemValue as
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
a(o, l) || ""
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
9
|
+
import * as a from "react";
|
|
10
|
+
import { useUnstyled as c, classNames as u, uDropDownsBase as r } from "@progress/kendo-react-common";
|
|
11
|
+
import { getItemValue as i } from "./utils.mjs";
|
|
12
|
+
const m = (e) => e.preventDefault(), p = (e) => {
|
|
13
|
+
const {
|
|
14
|
+
selected: s,
|
|
15
|
+
defaultItem: o,
|
|
16
|
+
textField: l
|
|
17
|
+
} = e, t = c(), n = t && t.uDropDownsBase;
|
|
18
|
+
return /* @__PURE__ */ a.createElement(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
onClick: e.onClick,
|
|
22
|
+
onMouseDown: m,
|
|
23
|
+
style: { position: "unset" },
|
|
24
|
+
className: u(r.optionlabel({ c: n, selected: s }))
|
|
25
|
+
},
|
|
26
|
+
i(o, l) || ""
|
|
27
|
+
);
|
|
28
|
+
};
|
|
34
29
|
export {
|
|
35
30
|
p as default
|
|
36
31
|
};
|
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 client";"use strict";const
|
|
8
|
+
"use client";"use strict";const g=require("react"),n=require("prop-types"),c=require("@progress/kendo-react-inputs"),x=require("@progress/kendo-svg-icons"),r=require("@progress/kendo-react-common");function y(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(o,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return o.default=e,Object.freeze(o)}const t=y(g),u=t.forwardRef((e,o)=>{const a=t.useRef(null),{renderListFilterWrapper:l=!1,renderPrefixSeparator:f=!1,...m}=e,i=r.useUnstyled(),s=i&&i.uDropDownsBase;t.useImperativeHandle(o,()=>a.current);const p=()=>t.createElement(t.Fragment,null,t.createElement(c.InputPrefix,null,t.createElement(r.IconWrap,{name:"search",icon:x.searchIcon,className:r.classNames(r.uDropDownsBase.inputIcon({c:s}))})),f&&t.createElement(c.InputSeparator,null)),d=t.createElement(c.TextBox,{...m,ref:a,className:r.classNames(r.uDropDownsBase.searchbox({c:s})),value:e.value||"",onChange:e.onChange,onKeyDown:e.onKeyDown,tabIndex:e.tabIndex,onClick:b=>b.stopPropagation(),size:e.size,fillMode:e.fillMode,rounded:e.rounded,prefix:p});return l?t.createElement("div",{className:r.classNames(r.uDropDownsBase.listFilter({c:s}))}," ",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([null,"small","medium","large"]),rounded:n.oneOf([null,"small","medium","large","full"]),fillMode:n.oneOf([null,"solid","flat","outline"]),renderListFilterWrapper:n.bool,renderPrefixSeparator:n.bool};u.displayName="KendoReactListFilter";const D=u;module.exports=D;
|
package/common/ListFilter.mjs
CHANGED
|
@@ -8,35 +8,35 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
import * as n from "react";
|
|
10
10
|
import e from "prop-types";
|
|
11
|
-
import { TextBox as
|
|
12
|
-
import { searchIcon as
|
|
13
|
-
import { IconWrap as
|
|
14
|
-
const
|
|
15
|
-
const
|
|
11
|
+
import { TextBox as y, InputPrefix as b, InputSeparator as I } from "@progress/kendo-react-inputs";
|
|
12
|
+
import { searchIcon as g } from "@progress/kendo-svg-icons";
|
|
13
|
+
import { useUnstyled as h, classNames as l, uDropDownsBase as a, IconWrap as D } from "@progress/kendo-react-common";
|
|
14
|
+
const o = n.forwardRef((r, u) => {
|
|
15
|
+
const s = n.useRef(null), { renderListFilterWrapper: m = !1, renderPrefixSeparator: d = !1, ...f } = r, i = h(), t = i && i.uDropDownsBase;
|
|
16
16
|
n.useImperativeHandle(
|
|
17
|
-
|
|
18
|
-
() =>
|
|
17
|
+
u,
|
|
18
|
+
() => s.current
|
|
19
19
|
);
|
|
20
|
-
const
|
|
21
|
-
|
|
20
|
+
const p = () => /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(b, null, /* @__PURE__ */ n.createElement(D, { name: "search", icon: g, className: l(a.inputIcon({ c: t })) })), d && /* @__PURE__ */ n.createElement(I, null)), c = /* @__PURE__ */ n.createElement(
|
|
21
|
+
y,
|
|
22
22
|
{
|
|
23
|
-
...
|
|
24
|
-
ref:
|
|
25
|
-
className:
|
|
23
|
+
...f,
|
|
24
|
+
ref: s,
|
|
25
|
+
className: l(a.searchbox({ c: t })),
|
|
26
26
|
value: r.value || "",
|
|
27
27
|
onChange: r.onChange,
|
|
28
28
|
onKeyDown: r.onKeyDown,
|
|
29
29
|
tabIndex: r.tabIndex,
|
|
30
|
-
onClick: (
|
|
30
|
+
onClick: (x) => x.stopPropagation(),
|
|
31
31
|
size: r.size,
|
|
32
32
|
fillMode: r.fillMode,
|
|
33
33
|
rounded: r.rounded,
|
|
34
|
-
prefix:
|
|
34
|
+
prefix: p
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
|
-
return
|
|
37
|
+
return m ? /* @__PURE__ */ n.createElement("div", { className: l(a.listFilter({ c: t })) }, " ", c, " ") : c;
|
|
38
38
|
});
|
|
39
|
-
|
|
39
|
+
o.propTypes = {
|
|
40
40
|
value: e.oneOfType([e.string, e.number, e.array]),
|
|
41
41
|
tabIndex: e.number,
|
|
42
42
|
onChange: e.func,
|
|
@@ -47,8 +47,8 @@ t.propTypes = {
|
|
|
47
47
|
renderListFilterWrapper: e.bool,
|
|
48
48
|
renderPrefixSeparator: e.bool
|
|
49
49
|
};
|
|
50
|
-
|
|
51
|
-
const
|
|
50
|
+
o.displayName = "KendoReactListFilter";
|
|
51
|
+
const C = o;
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
C as default
|
|
54
54
|
};
|
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;
|