@progress/kendo-react-dropdowns 11.0.0-develop.3 → 11.0.0-develop.4
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 +139 -136
- package/ComboBox/ComboBox.js +1 -1
- package/ComboBox/ComboBox.mjs +425 -461
- package/DropDownList/DropDownList.js +1 -1
- package/DropDownList/DropDownList.mjs +420 -442
- package/DropDownTree/DropDownTree.js +1 -1
- package/DropDownTree/DropDownTree.mjs +158 -155
- package/MultiColumnComboBox/MultiColumnComboBox.js +1 -1
- package/MultiColumnComboBox/MultiColumnComboBox.mjs +25 -24
- package/MultiSelect/MultiSelect.js +1 -1
- package/MultiSelect/MultiSelect.mjs +173 -181
- package/MultiSelectTree/MultiSelectTree.js +1 -1
- package/MultiSelectTree/MultiSelectTree.mjs +264 -269
- package/common/AdaptiveMode.js +1 -1
- package/common/AdaptiveMode.mjs +14 -13
- package/common/ListFilter.js +1 -1
- package/common/ListFilter.mjs +22 -20
- package/dist/cdn/js/kendo-react-dropdowns.js +1 -1
- package/index.d.mts +101 -15
- package/index.d.ts +101 -15
- package/messages/index.js +1 -1
- package/messages/index.mjs +16 -14
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +10 -10
package/common/AdaptiveMode.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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),c=require("@progress/kendo-react-layout"),v=require("@progress/kendo-svg-icons"),i=require("@progress/kendo-react-buttons"),h=require("@progress/kendo-react-common");function k(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>t[a]})}}return e.default=t,Object.freeze(e)}const n=k(y),C=t=>{const{footer:e,windowWidth:a=0,mobileFilter:o,children:s,navigatable:d,navigatableElements:u,expand:b,animation:m,title:p,subTitle:f,onClose:r}=t,l=h.useAdaptiveModeContext(),g={navigatable:d||!1,navigatableElements:u||[],expand:b,animation:m!==!1,suffixActions:n.createElement(i.Button,{tabIndex:0,"aria-label":"Cancel","aria-disabled":"false",type:"button",fillMode:"flat",size:"large",themeColor:"primary",svgIcon:v.checkIcon,onClick:r}),filter:o,onClose:r,animationStyles:l&&a<=l.small?{top:0,width:"100%",height:"100%"}:void 0,title:p,subTitle:f,className:"k-adaptive-actionsheet",position:l&&a<=l.small?"fullscreen":void 0};return n.createElement(c.ActionSheet,{...g},s,e&&n.createElement(c.ActionSheetFooter,{className:"k-actions k-actions-stretched"},n.createElement(i.Button,{size:"large",tabIndex:0,"aria-label":e.cancelText,"aria-disabled":"false",type:"button",onClick:e.onCancel},e.cancelText),n.createElement(i.Button,{tabIndex:0,themeColor:"primary",size:"large","aria-label":e.applyText,"aria-disabled":"false",type:"button",onClick:e.onApply},e.applyText)))};exports.AdaptiveMode=C;
|
package/common/AdaptiveMode.mjs
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import * as t from "react";
|
|
9
|
-
import { ActionSheet as
|
|
10
|
-
import {
|
|
9
|
+
import { ActionSheet as x, ActionSheetFooter as u } from "@progress/kendo-react-layout";
|
|
10
|
+
import { checkIcon as C } from "@progress/kendo-svg-icons";
|
|
11
11
|
import { Button as o } from "@progress/kendo-react-buttons";
|
|
12
|
-
import { useAdaptiveModeContext as
|
|
12
|
+
import { useAdaptiveModeContext as v } from "@progress/kendo-react-common";
|
|
13
13
|
const I = (i) => {
|
|
14
14
|
const {
|
|
15
15
|
footer: e,
|
|
16
|
-
windowWidth:
|
|
16
|
+
windowWidth: l = 0,
|
|
17
17
|
mobileFilter: r,
|
|
18
18
|
children: s,
|
|
19
19
|
navigatable: c,
|
|
@@ -22,8 +22,8 @@ const I = (i) => {
|
|
|
22
22
|
animation: p,
|
|
23
23
|
title: b,
|
|
24
24
|
subTitle: f,
|
|
25
|
-
onClose:
|
|
26
|
-
} = i, a =
|
|
25
|
+
onClose: n
|
|
26
|
+
} = i, a = v(), h = {
|
|
27
27
|
navigatable: c || !1,
|
|
28
28
|
navigatableElements: m || [],
|
|
29
29
|
expand: d,
|
|
@@ -36,20 +36,21 @@ const I = (i) => {
|
|
|
36
36
|
"aria-disabled": "false",
|
|
37
37
|
type: "button",
|
|
38
38
|
fillMode: "flat",
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
size: "large",
|
|
40
|
+
themeColor: "primary",
|
|
41
|
+
svgIcon: C,
|
|
42
|
+
onClick: n
|
|
42
43
|
}
|
|
43
44
|
),
|
|
44
45
|
filter: r,
|
|
45
|
-
onClose:
|
|
46
|
-
animationStyles: a &&
|
|
46
|
+
onClose: n,
|
|
47
|
+
animationStyles: a && l <= a.small ? { top: 0, width: "100%", height: "100%" } : void 0,
|
|
47
48
|
title: b,
|
|
48
49
|
subTitle: f,
|
|
49
50
|
className: "k-adaptive-actionsheet",
|
|
50
|
-
position: a &&
|
|
51
|
+
position: a && l <= a.small ? "fullscreen" : void 0
|
|
51
52
|
};
|
|
52
|
-
return /* @__PURE__ */ t.createElement(
|
|
53
|
+
return /* @__PURE__ */ t.createElement(x, { ...h }, s, e && /* @__PURE__ */ t.createElement(u, { className: "k-actions k-actions-stretched" }, /* @__PURE__ */ t.createElement(
|
|
53
54
|
o,
|
|
54
55
|
{
|
|
55
56
|
size: "large",
|
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
|
|
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 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=D(x),u=t.forwardRef((e,o)=>{const a=t.useRef(null),{renderListFilterWrapper:l=!1,renderPrefixSeparator:f=!1,placeholder:m,...p}=e,i=r.useUnstyled(),s=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:s}))})),f&&t.createElement(c.InputSeparator,null)),d=t.createElement(c.TextBox,{...p,ref:a,className:r.classNames(r.uDropDownsBase.searchbox({c:s})),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 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,placeholder:n.string,renderPrefixSeparator:n.bool};u.displayName="KendoReactListFilter";module.exports=u;
|
package/common/ListFilter.mjs
CHANGED
|
@@ -7,39 +7,40 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as n from "react";
|
|
9
9
|
import e from "prop-types";
|
|
10
|
-
import { TextBox as
|
|
11
|
-
import { searchIcon as
|
|
12
|
-
import { useUnstyled as
|
|
13
|
-
const
|
|
14
|
-
const o = n.useRef(null), { renderListFilterWrapper: m = !1, renderPrefixSeparator: d = !1,
|
|
15
|
-
n.useImperativeHandle(
|
|
16
|
-
const
|
|
17
|
-
|
|
10
|
+
import { TextBox as b, InputPrefix as g, InputSeparator as h } from "@progress/kendo-react-inputs";
|
|
11
|
+
import { searchIcon as I } from "@progress/kendo-svg-icons";
|
|
12
|
+
import { useUnstyled as D, classNames as a, uDropDownsBase as t, IconWrap as w } from "@progress/kendo-react-common";
|
|
13
|
+
const c = n.forwardRef((r, u) => {
|
|
14
|
+
const o = n.useRef(null), { renderListFilterWrapper: m = !1, renderPrefixSeparator: d = !1, placeholder: f, ...p } = r, s = D(), l = s && s.uDropDownsBase;
|
|
15
|
+
n.useImperativeHandle(u, () => o.current);
|
|
16
|
+
const x = () => /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(g, null, /* @__PURE__ */ n.createElement(
|
|
17
|
+
w,
|
|
18
18
|
{
|
|
19
19
|
name: "search",
|
|
20
|
-
icon:
|
|
21
|
-
className: a(
|
|
20
|
+
icon: I,
|
|
21
|
+
className: a(t.inputIcon({ c: l }))
|
|
22
22
|
}
|
|
23
|
-
)), d && /* @__PURE__ */ n.createElement(
|
|
24
|
-
|
|
23
|
+
)), d && /* @__PURE__ */ n.createElement(h, null)), i = /* @__PURE__ */ n.createElement(
|
|
24
|
+
b,
|
|
25
25
|
{
|
|
26
|
-
...
|
|
26
|
+
...p,
|
|
27
27
|
ref: o,
|
|
28
|
-
className: a(
|
|
28
|
+
className: a(t.searchbox({ c: l })),
|
|
29
29
|
value: r.value || "",
|
|
30
30
|
onChange: r.onChange,
|
|
31
31
|
onKeyDown: r.onKeyDown,
|
|
32
32
|
tabIndex: r.tabIndex,
|
|
33
|
-
onClick: (
|
|
33
|
+
onClick: (y) => y.stopPropagation(),
|
|
34
34
|
size: r.size,
|
|
35
35
|
fillMode: r.fillMode,
|
|
36
36
|
rounded: r.rounded,
|
|
37
|
-
prefix:
|
|
37
|
+
prefix: x,
|
|
38
|
+
placeholder: f
|
|
38
39
|
}
|
|
39
40
|
);
|
|
40
|
-
return m ? /* @__PURE__ */ n.createElement("div", { className: a(
|
|
41
|
+
return m ? /* @__PURE__ */ n.createElement("div", { className: a(t.listFilter({ c: l })) }, " ", i, " ") : i;
|
|
41
42
|
});
|
|
42
|
-
|
|
43
|
+
c.propTypes = {
|
|
43
44
|
value: e.oneOfType([e.string, e.number, e.array]),
|
|
44
45
|
tabIndex: e.number,
|
|
45
46
|
onChange: e.func,
|
|
@@ -48,9 +49,10 @@ u.propTypes = {
|
|
|
48
49
|
rounded: e.oneOf([null, "small", "medium", "large", "full"]),
|
|
49
50
|
fillMode: e.oneOf([null, "solid", "flat", "outline"]),
|
|
50
51
|
renderListFilterWrapper: e.bool,
|
|
52
|
+
placeholder: e.string,
|
|
51
53
|
renderPrefixSeparator: e.bool
|
|
52
54
|
};
|
|
53
|
-
|
|
55
|
+
c.displayName = "KendoReactListFilter";
|
|
54
56
|
export {
|
|
55
|
-
|
|
57
|
+
c as default
|
|
56
58
|
};
|