@progress/kendo-react-dropdowns 14.5.0-develop.13 → 14.5.0-develop.14

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.
@@ -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 et=require("react"),n=require("prop-types"),a=require("@progress/kendo-react-common"),tt=require("@progress/kendo-react-popup"),nt=require("@progress/kendo-react-intl"),Ie=require("@progress/kendo-react-treeview"),Se=require("../package-metadata.js"),G=require("../common/utils.js"),ot=require("./useDropdownWidth.js"),at=require("./ListNoData.js"),E=require("../messages/index.js"),rt=require("@progress/kendo-react-labels"),Re=require("../common/ListFilter.js"),st=require("@progress/kendo-react-buttons"),Te=require("@progress/kendo-svg-icons"),it=require("../common/AdaptiveMode.js"),lt=require("@progress/kendo-react-layout");function ct(u){const v=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(u){for(const C in u)if(C!=="default"){const x=Object.getOwnPropertyDescriptor(u,C);Object.defineProperty(v,C,x.get?x:{enumerable:!0,get:()=>u[C]})}}return v.default=u,Object.freeze(v)}const t=ct(et),{sizeMap:ut,roundedMap:dt}=a.kendoThemeMaps,pt=12e3,ft=2e3,vt="Please select a value from the list!",mt=u=>t.createElement("span",{className:"k-input-value-text"},u.children),Me=u=>u.split("_").map(v=>parseInt(v,10)),gt=(u,v)=>{const{validationMessage:C,valid:x,required:s}=u;return{customError:C!==void 0,valid:!!(x!==void 0?x:!s||v),valueMissing:!v}},re={selectField:"selected",subItemsField:"items",popupSettings:{animate:!0,width:"200px",height:"200px"},data:[],required:!1,style:{},validityStyles:!0,size:void 0,rounded:void 0,fillMode:void 0},Pe=a.createPropsContext(),se=t.forwardRef((u,v)=>{const C=!a.validatePackage(Se.packageMetadata,{component:"DropDownTree"}),x=a.getLicenseMessage(Se.packageMetadata),s=a.usePropsContext(Pe,u),r={...re,...s},qe=a.useId(),ie=r.id||qe,{data:N,dataItemKey:L,popupSettings:m={},style:V,opened:d,disabled:R,onOpen:W=a.noop,onClose:g=a.noop,placeholder:j,label:T,name:Ke,selectField:Z,subItemsField:z,validationMessage:$,valid:Oe,required:J,validityStyles:Ne}=r,Q=a.getTabIndex(r.tabIndex,R),i=t.useRef(null),b=t.useRef(null),M=t.useRef(null),Y=t.useRef(null),U=t.useRef(null),D=t.useRef(null),X=t.useRef(!1),[le,Le]=t.useState(void 0),w=r.value!==void 0,y=w?r.value:le!==void 0?le:r.defaultValue,B=G.isPresent(y),ee=B?G.getItemValue(y,r.textField):"",te=gt({validationMessage:$,valid:Oe,required:J},B),ce=t.useContext(a.ZIndexContext),Ve=ce?ce+ft:pt,We=t.useCallback(()=>b.current&&b.current.focus(),[]);t.useImperativeHandle(i,()=>({props:r,element:b.current,focus:We})),t.useImperativeHandle(v,()=>i.current);const F=a.useRtl(b,r.dir),ze={width:ot.useDropdownWidth(b,re,{...re.popupSettings,...m},V),...F!==void 0?{direction:F}:{}},[Be,ue]=t.useState(!1),l=d!==void 0?d:Be,[f,ne]=t.useState(!1),[oe,Ae]=t.useState(),[de,_e]=t.useState(""),pe=a.useAdaptiveModeContext(),k=!!(oe&&pe&&oe<=pe.medium&&r.adaptive),He=t.useCallback(()=>{U.current&&U.current.setCustomValidity&&U.current.setCustomValidity(te.valid?"":$===void 0?vt:$)},[$,te]);t.useEffect(He),t.useEffect(()=>{const e=a.canUseDOM&&window.ResizeObserver&&new window.ResizeObserver(Qe.bind(void 0));return document!=null&&document.body&&e&&e.observe(document.body),()=>{document!=null&&document.body&&e&&e.disconnect()}},[]);const fe=t.useCallback(e=>{if(!l){if(W){const o={...e};W.call(void 0,o)}d===void 0&&ue(!0)}},[l,d,W]),I=t.useCallback(e=>{if(l){if(g){const o={...e};g.call(void 0,o)}d===void 0&&(ue(!1),k&&setTimeout(()=>{var o;h((o=Y.current)==null?void 0:o.element)},300))}},[l,d,g,k]),ve=t.useCallback(e=>{if(!e.isDefaultPrevented()&&i.current){ne(!0);const o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:i.current};(l?I:fe)(o)}},[l,d,W,g]),P=t.useCallback(e=>{X.current=!0,e(),window.setTimeout(()=>X.current=!1,0)},[]),je=t.useCallback(e=>{var S,we;const{keyCode:o,altKey:c}=e,p=D.current&&D.current.element;if(!i.current||e.isDefaultPrevented()&&((S=M.current)==null?void 0:S.element)===e.target)return;const K={syntheticEvent:e,nativeEvent:e.nativeEvent,target:i.current};if(l)if(o===a.Keys.esc||c&&o===a.Keys.up)e.preventDefault(),I(K);else if(p&&p.querySelector(".k-focus")&&(o===a.Keys.up||o===a.Keys.down||o===a.Keys.left||o===a.Keys.right||o===a.Keys.home||o===a.Keys.end)){if(o===a.Keys.up&&((we=M.current)!=null&&we.element)){const H=Array.from(p.querySelectorAll(".k-treeview-item")),Fe=[...H].reverse().find(O=>O==null?void 0:O.querySelector(".k-focus"));if(Fe&&H.indexOf(Fe)===0)return P(()=>{var O;h((O=M.current)==null?void 0:O.element)})}P(a.noop)}else o===a.Keys.down&&P(()=>{var H;h(((H=M.current)==null?void 0:H.element)||p)});else c&&o===a.Keys.down?(e.preventDefault(),fe(K)):l||o===a.Keys.esc&&ye(e)},[l,d,W,g]),me=t.useCallback(e=>{const{keyCode:o,altKey:c}=e;c||o!==a.Keys.up&&o!==a.Keys.down||(e.preventDefault(),P(o===a.Keys.up?()=>{h(b.current)}:()=>{var p;h((p=D.current)==null?void 0:p.element)}))},[]),h=t.useCallback(e=>{e&&P(()=>e.focus())},[]),Ze=t.useCallback(e=>{var o;m.onOpen&&m.onOpen(e),!f&&l&&!d?I({target:i.current}):s.filterable?h((o=M.current)==null?void 0:o.element):h(D.current&&D.current.element)},[g,s.filterable,f,d,l]),$e=t.useCallback(e=>{m.onClose&&m.onClose(e),f&&h(b.current)},[f]),Ue=t.useCallback(e=>{if(!f&&!X.current&&(ne(!0),s.onFocus&&i.current)){const o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:i.current};s.onFocus.call(void 0,o)}},[f,s.onFocus]),Xe=t.useCallback(e=>{if(f&&!X.current&&i.current){ne(!1);const o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:i.current};if(s.onBlur){const c={...o};s.onBlur.call(void 0,c)}k||I(o)}},[f,s.onBlur,l,d,g]),Ge=t.useCallback(()=>{f&&P(a.noop),k&&setTimeout(()=>{var e;h((e=Y.current)==null?void 0:e.element)},300)},[f,k]),ge=t.useCallback((e,o,c)=>{if(s.onChange){const p={value:o,level:c?Me(c):[],...e};s.onChange.call(void 0,p)}w||Le(o)},[s.onChange,w]),be=t.useCallback(e=>{if(G.areSame(e.item,y,L)||!i.current)return;const{item:o,itemHierarchicalIndex:c,nativeEvent:p,syntheticEvent:K}=e,S={syntheticEvent:K,nativeEvent:p,target:i.current};ge(S,o,c),I(S)},[w,y,s.onChange,L,l,d,g]),ye=t.useCallback(e=>{if(!i.current)return;const o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:i.current};ge(o,null),I(o),e.preventDefault()},[w,s.onChange,l,d,g]),he=t.useCallback(e=>{if(e.syntheticEvent.stopPropagation(),s.onExpandChange&&i.current){const{item:o,itemHierarchicalIndex:c,nativeEvent:p,syntheticEvent:K}=e,S={level:Me(c),item:o,nativeEvent:p,syntheticEvent:K,target:i.current};s.onExpandChange.call(void 0,S)}},[s.onExpandChange]),Ee=t.useCallback(e=>{if(s.onFilterChange&&i.current){const c={filter:{field:s.textField,operator:"contains",value:e.target.value},syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:i.current};s.onFilterChange.call(void 0,c),s.filter===void 0&&_e(e.target.value)}},[s.onFilterChange,s.filter,s.textField]),Je=()=>{const e=r.filterable?t.createElement(Re,{value:r.filter===void 0?de:r.filter,ref:Y,onChange:Ee,onKeyDown:me,size:"large",rounded:A,fillMode:_,placeholder:j}):null,o={title:r.adaptiveTitle||T,subTitle:r.adaptiveSubtitle,expand:l,onClose:c=>I(c),windowWidth:oe,mobileFilter:e};return t.createElement(it.AdaptiveMode,{...o},t.createElement(lt.ActionSheetContent,null,N.length>0?t.createElement(Ie.TreeView,{ref:D,tabIndex:Q,data:Ce,focusIdField:L,textField:r.textField,selectField:Z,expandField:r.expandField,childrenField:z,expandIcons:!0,onItemClick:be,onExpandChange:he,size:"large",item:r.item,dir:F,animate:!1}):t.createElement(ke,null,ae.toLanguageString(E.nodata,E.messages[E.nodata]))))},Qe=t.useCallback(e=>{for(const o of e)Ae(o.target.clientWidth)},[]),Ce=t.useMemo(()=>w||!B?N:a.mapTree(N,z,e=>a.extendDataItem(e,z,{[Z]:G.areSame(e,y,L)})),[N,y,w,B,Z,z]),ke=r.listNoData||at.ListNoData,Ye=r.valueHolder||mt,ae=nt.useLocalization(),xe=!Ne||te.valid,{size:q,rounded:A,fillMode:_}=r,De=t.createElement(t.Fragment,null,t.createElement("span",{className:a.classNames("k-dropdowntree k-picker",r.className,{[`k-picker-${ut[q]||q}`]:q,[`k-rounded-${dt[A]||A}`]:A,[`k-picker-${_}`]:_,"k-focus":f,"k-invalid":!xe,"k-loading":r.loading,"k-required":J,"k-disabled":r.disabled}),tabIndex:Q,accessKey:r.accessKey,id:ie,style:T?{...V,width:void 0}:V,dir:F,ref:b,onKeyDown:R?void 0:je,onMouseDown:Ge,onClick:R?void 0:ve,onFocus:k?e=>ve(e):Ue,onBlur:Xe,role:"combobox","aria-haspopup":"tree","aria-expanded":l,"aria-disabled":R,"aria-label":T,"aria-labelledby":r.ariaLabelledBy,"aria-describedby":r.ariaDescribedBy,"aria-required":J},t.createElement("span",{className:"k-input-inner"},(ee||j)&&t.createElement(Ye,{item:y},ee||j)),r.loading&&t.createElement(a.IconWrap,{className:"k-input-loading-icon",name:"loading"}),B&&!R&&t.createElement("span",{onClick:ye,className:"k-clear-value",title:ae.toLanguageString(E.clear,E.messages[E.clear]),role:"button",tabIndex:-1,onMouseDown:e=>e.preventDefault()},t.createElement(a.IconWrap,{name:"x",icon:Te.xIcon})),t.createElement(st.Button,{tabIndex:-1,type:"button","aria-label":"select",className:"k-input-button",size:q,fillMode:_,icon:"chevron-down",svgIcon:Te.chevronDownIcon}),t.createElement("select",{name:Ke,ref:U,tabIndex:-1,"aria-hidden":!0,title:T,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},t.createElement("option",{value:r.valueMap?r.valueMap.call(void 0,y):y})),!k&&t.createElement(a.ZIndexContext.Provider,{value:Ve},t.createElement(tt.Popup,{...m,className:a.classNames(m.className,{"k-rtl":F==="rtl"}),popupClass:a.classNames(m.popupClass,"k-dropdowntree-popup k-list-container"),style:ze,anchor:m.anchor||b.current,show:l,onOpen:Ze,onClose:$e},r.filterable&&t.createElement(Re,{value:r.filter===void 0?de:r.filter,ref:M,onChange:Ee,onKeyDown:me,size:q,rounded:A,fillMode:_,renderListFilterWrapper:!0,renderPrefixSeparator:!0}),N.length>0?t.createElement(Ie.TreeView,{style:{height:m.height},ref:D,tabIndex:Q,data:Ce,focusIdField:L,textField:r.textField,selectField:Z,expandField:r.expandField,childrenField:z,expandIcons:!0,onItemClick:be,onExpandChange:he,size:q,item:r.item,dir:F,animate:!1}):t.createElement(ke,null,ae.toLanguageString(E.nodata,E.messages[E.nodata])),C&&t.createElement(a.WatermarkOverlay,{message:x})))),k&&Je());return T?t.createElement(rt.FloatingLabel,{label:T,editorValue:ee,editorPlaceholder:j,editorValid:xe,editorDisabled:R,editorId:ie,style:{width:V?V.width:void 0},children:De,dir:F}):De}),bt={opened:n.bool,disabled:n.bool,dir:n.string,tabIndex:n.number,accessKey:n.string,data:n.array,value:n.any,valueMap:n.func,placeholder:n.string,dataItemKey:n.string.isRequired,textField:n.string.isRequired,selectField:n.string,expandField:n.string,subItemsField:n.string,className:n.string,style:n.object,label:n.string,validationMessage:n.string,validityStyles:n.bool,valid:n.bool,required:n.bool,name:n.string,id:n.string,ariaLabelledBy:n.string,ariaDescribedBy:n.string,filterable:n.bool,filter:n.string,loading:n.bool,popupSettings:n.shape({animate:n.oneOfType([n.bool,n.shape({openDuration:n.number,closeDuration:n.number})]),popupClass:n.string,className:n.string,appendTo:n.any,width:n.oneOfType([n.string,n.number]),height:n.oneOfType([n.string,n.number])}),onOpen:n.func,onClose:n.func,onFocus:n.func,onBlur:n.func,onChange:n.func,onFilterChange:n.func,onExpandChange:n.func,item:n.func,valueHolder:n.func,listNoData:n.func,adaptiveTitle:n.string,adaptiveSubtitle:n.string,adaptive:n.bool};se.displayName="KendoReactDropDownTree";se.propTypes=bt;exports.DropDownTree=se;exports.DropDownTreePropsContext=Pe;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const et=require("react"),n=require("prop-types"),a=require("@progress/kendo-react-common"),tt=require("@progress/kendo-react-popup"),nt=require("@progress/kendo-react-intl"),Ie=require("@progress/kendo-react-treeview"),Re=require("../package-metadata.js"),G=require("../common/utils.js"),ot=require("./useDropdownWidth.js"),at=require("./ListNoData.js"),E=require("../messages/index.js"),rt=require("@progress/kendo-react-labels"),Se=require("../common/ListFilter.js"),st=require("@progress/kendo-react-buttons"),Te=require("@progress/kendo-svg-icons"),it=require("../common/AdaptiveMode.js"),lt=require("@progress/kendo-react-layout");function ct(u){const v=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(u){for(const C in u)if(C!=="default"){const x=Object.getOwnPropertyDescriptor(u,C);Object.defineProperty(v,C,x.get?x:{enumerable:!0,get:()=>u[C]})}}return v.default=u,Object.freeze(v)}const t=ct(et),{sizeMap:ut,roundedMap:dt}=a.kendoThemeMaps,pt=12e3,ft=2e3,vt="Please select a value from the list!",mt=u=>t.createElement("span",{className:"k-input-value-text"},u.children),Me=u=>u.split("_").map(v=>parseInt(v,10)),gt=(u,v)=>{const{validationMessage:C,valid:x,required:s}=u;return{customError:C!==void 0,valid:!!(x!==void 0?x:!s||v),valueMissing:!v}},re={selectField:"selected",subItemsField:"items",popupSettings:{animate:!0,width:"200px",height:"200px"},data:[],required:!1,style:{},validityStyles:!0,size:void 0,rounded:void 0,fillMode:void 0},Pe=a.createPropsContext(),se=t.forwardRef((u,v)=>{const C=!a.validatePackage(Re.packageMetadata,{component:"DropDownTree"}),x=a.getLicenseMessage(Re.packageMetadata),s=a.usePropsContext(Pe,u),r={...re,...s},qe=a.useId(),ie=r.id||qe,{data:N,dataItemKey:L,popupSettings:m={},style:V,opened:d,disabled:S,onOpen:W=a.noop,onClose:g=a.noop,placeholder:j,label:T,name:Ke,selectField:Z,subItemsField:z,validationMessage:$,valid:Oe,required:J,validityStyles:Ne}=r,Q=a.getTabIndex(r.tabIndex,S),i=t.useRef(null),b=t.useRef(null),M=t.useRef(null),Y=t.useRef(null),U=t.useRef(null),w=t.useRef(null),X=t.useRef(!1),[le,Le]=t.useState(void 0),D=r.value!==void 0,y=D?r.value:le!==void 0?le:r.defaultValue,B=G.isPresent(y),ee=B?G.getItemValue(y,r.textField):"",te=gt({validationMessage:$,valid:Oe,required:J},B),ce=t.useContext(a.ZIndexContext),Ve=ce?ce+ft:pt,We=t.useCallback(()=>b.current&&b.current.focus(),[]);t.useImperativeHandle(i,()=>({props:r,element:b.current,focus:We})),t.useImperativeHandle(v,()=>i.current),a.useWebMcpRegister("dropdowntree",i,r,r.webMcp);const F=a.useRtl(b,r.dir),ze={width:ot.useDropdownWidth(b,re,{...re.popupSettings,...m},V),...F!==void 0?{direction:F}:{}},[Be,ue]=t.useState(!1),l=d!==void 0?d:Be,[f,ne]=t.useState(!1),[oe,Ae]=t.useState(),[de,_e]=t.useState(""),pe=a.useAdaptiveModeContext(),k=!!(oe&&pe&&oe<=pe.medium&&r.adaptive),He=t.useCallback(()=>{U.current&&U.current.setCustomValidity&&U.current.setCustomValidity(te.valid?"":$===void 0?vt:$)},[$,te]);t.useEffect(He),t.useEffect(()=>{const e=a.canUseDOM&&window.ResizeObserver&&new window.ResizeObserver(Qe.bind(void 0));return document!=null&&document.body&&e&&e.observe(document.body),()=>{document!=null&&document.body&&e&&e.disconnect()}},[]);const fe=t.useCallback(e=>{if(!l){if(W){const o={...e};W.call(void 0,o)}d===void 0&&ue(!0)}},[l,d,W]),I=t.useCallback(e=>{if(l){if(g){const o={...e};g.call(void 0,o)}d===void 0&&(ue(!1),k&&setTimeout(()=>{var o;h((o=Y.current)==null?void 0:o.element)},300))}},[l,d,g,k]),ve=t.useCallback(e=>{if(!e.isDefaultPrevented()&&i.current){ne(!0);const o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:i.current};(l?I:fe)(o)}},[l,d,W,g]),P=t.useCallback(e=>{X.current=!0,e(),window.setTimeout(()=>X.current=!1,0)},[]),je=t.useCallback(e=>{var R,De;const{keyCode:o,altKey:c}=e,p=w.current&&w.current.element;if(!i.current||e.isDefaultPrevented()&&((R=M.current)==null?void 0:R.element)===e.target)return;const K={syntheticEvent:e,nativeEvent:e.nativeEvent,target:i.current};if(l)if(o===a.Keys.esc||c&&o===a.Keys.up)e.preventDefault(),I(K);else if(p&&p.querySelector(".k-focus")&&(o===a.Keys.up||o===a.Keys.down||o===a.Keys.left||o===a.Keys.right||o===a.Keys.home||o===a.Keys.end)){if(o===a.Keys.up&&((De=M.current)!=null&&De.element)){const H=Array.from(p.querySelectorAll(".k-treeview-item")),Fe=[...H].reverse().find(O=>O==null?void 0:O.querySelector(".k-focus"));if(Fe&&H.indexOf(Fe)===0)return P(()=>{var O;h((O=M.current)==null?void 0:O.element)})}P(a.noop)}else o===a.Keys.down&&P(()=>{var H;h(((H=M.current)==null?void 0:H.element)||p)});else c&&o===a.Keys.down?(e.preventDefault(),fe(K)):l||o===a.Keys.esc&&ye(e)},[l,d,W,g]),me=t.useCallback(e=>{const{keyCode:o,altKey:c}=e;c||o!==a.Keys.up&&o!==a.Keys.down||(e.preventDefault(),P(o===a.Keys.up?()=>{h(b.current)}:()=>{var p;h((p=w.current)==null?void 0:p.element)}))},[]),h=t.useCallback(e=>{e&&P(()=>e.focus())},[]),Ze=t.useCallback(e=>{var o;m.onOpen&&m.onOpen(e),!f&&l&&!d?I({target:i.current}):s.filterable?h((o=M.current)==null?void 0:o.element):h(w.current&&w.current.element)},[g,s.filterable,f,d,l]),$e=t.useCallback(e=>{m.onClose&&m.onClose(e),f&&h(b.current)},[f]),Ue=t.useCallback(e=>{if(!f&&!X.current&&(ne(!0),s.onFocus&&i.current)){const o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:i.current};s.onFocus.call(void 0,o)}},[f,s.onFocus]),Xe=t.useCallback(e=>{if(f&&!X.current&&i.current){ne(!1);const o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:i.current};if(s.onBlur){const c={...o};s.onBlur.call(void 0,c)}k||I(o)}},[f,s.onBlur,l,d,g]),Ge=t.useCallback(()=>{f&&P(a.noop),k&&setTimeout(()=>{var e;h((e=Y.current)==null?void 0:e.element)},300)},[f,k]),ge=t.useCallback((e,o,c)=>{if(s.onChange){const p={value:o,level:c?Me(c):[],...e};s.onChange.call(void 0,p)}D||Le(o)},[s.onChange,D]),be=t.useCallback(e=>{if(G.areSame(e.item,y,L)||!i.current)return;const{item:o,itemHierarchicalIndex:c,nativeEvent:p,syntheticEvent:K}=e,R={syntheticEvent:K,nativeEvent:p,target:i.current};ge(R,o,c),I(R)},[D,y,s.onChange,L,l,d,g]),ye=t.useCallback(e=>{if(!i.current)return;const o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:i.current};ge(o,null),I(o),e.preventDefault()},[D,s.onChange,l,d,g]),he=t.useCallback(e=>{if(e.syntheticEvent.stopPropagation(),s.onExpandChange&&i.current){const{item:o,itemHierarchicalIndex:c,nativeEvent:p,syntheticEvent:K}=e,R={level:Me(c),item:o,nativeEvent:p,syntheticEvent:K,target:i.current};s.onExpandChange.call(void 0,R)}},[s.onExpandChange]),Ee=t.useCallback(e=>{if(s.onFilterChange&&i.current){const c={filter:{field:s.textField,operator:"contains",value:e.target.value},syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:i.current};s.onFilterChange.call(void 0,c),s.filter===void 0&&_e(e.target.value)}},[s.onFilterChange,s.filter,s.textField]),Je=()=>{const e=r.filterable?t.createElement(Se,{value:r.filter===void 0?de:r.filter,ref:Y,onChange:Ee,onKeyDown:me,size:"large",rounded:A,fillMode:_,placeholder:j}):null,o={title:r.adaptiveTitle||T,subTitle:r.adaptiveSubtitle,expand:l,onClose:c=>I(c),windowWidth:oe,mobileFilter:e};return t.createElement(it.AdaptiveMode,{...o},t.createElement(lt.ActionSheetContent,null,N.length>0?t.createElement(Ie.TreeView,{ref:w,tabIndex:Q,data:Ce,focusIdField:L,textField:r.textField,selectField:Z,expandField:r.expandField,childrenField:z,expandIcons:!0,onItemClick:be,onExpandChange:he,size:"large",item:r.item,dir:F,animate:!1}):t.createElement(ke,null,ae.toLanguageString(E.nodata,E.messages[E.nodata]))))},Qe=t.useCallback(e=>{for(const o of e)Ae(o.target.clientWidth)},[]),Ce=t.useMemo(()=>D||!B?N:a.mapTree(N,z,e=>a.extendDataItem(e,z,{[Z]:G.areSame(e,y,L)})),[N,y,D,B,Z,z]),ke=r.listNoData||at.ListNoData,Ye=r.valueHolder||mt,ae=nt.useLocalization(),xe=!Ne||te.valid,{size:q,rounded:A,fillMode:_}=r,we=t.createElement(t.Fragment,null,t.createElement("span",{className:a.classNames("k-dropdowntree k-picker",r.className,{[`k-picker-${ut[q]||q}`]:q,[`k-rounded-${dt[A]||A}`]:A,[`k-picker-${_}`]:_,"k-focus":f,"k-invalid":!xe,"k-loading":r.loading,"k-required":J,"k-disabled":r.disabled}),tabIndex:Q,accessKey:r.accessKey,id:ie,style:T?{...V,width:void 0}:V,dir:F,ref:b,onKeyDown:S?void 0:je,onMouseDown:Ge,onClick:S?void 0:ve,onFocus:k?e=>ve(e):Ue,onBlur:Xe,role:"combobox","aria-haspopup":"tree","aria-expanded":l,"aria-disabled":S,"aria-label":T,"aria-labelledby":r.ariaLabelledBy,"aria-describedby":r.ariaDescribedBy,"aria-required":J},t.createElement("span",{className:"k-input-inner"},(ee||j)&&t.createElement(Ye,{item:y},ee||j)),r.loading&&t.createElement(a.IconWrap,{className:"k-input-loading-icon",name:"loading"}),B&&!S&&t.createElement("span",{onClick:ye,className:"k-clear-value",title:ae.toLanguageString(E.clear,E.messages[E.clear]),role:"button",tabIndex:-1,onMouseDown:e=>e.preventDefault()},t.createElement(a.IconWrap,{name:"x",icon:Te.xIcon})),t.createElement(st.Button,{tabIndex:-1,type:"button","aria-label":"select",className:"k-input-button",size:q,fillMode:_,icon:"chevron-down",svgIcon:Te.chevronDownIcon}),t.createElement("select",{name:Ke,ref:U,tabIndex:-1,"aria-hidden":!0,title:T,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},t.createElement("option",{value:r.valueMap?r.valueMap.call(void 0,y):y})),!k&&t.createElement(a.ZIndexContext.Provider,{value:Ve},t.createElement(tt.Popup,{...m,className:a.classNames(m.className,{"k-rtl":F==="rtl"}),popupClass:a.classNames(m.popupClass,"k-dropdowntree-popup k-list-container"),style:ze,anchor:m.anchor||b.current,show:l,onOpen:Ze,onClose:$e},r.filterable&&t.createElement(Se,{value:r.filter===void 0?de:r.filter,ref:M,onChange:Ee,onKeyDown:me,size:q,rounded:A,fillMode:_,renderListFilterWrapper:!0,renderPrefixSeparator:!0}),N.length>0?t.createElement(Ie.TreeView,{style:{height:m.height},ref:w,tabIndex:Q,data:Ce,focusIdField:L,textField:r.textField,selectField:Z,expandField:r.expandField,childrenField:z,expandIcons:!0,onItemClick:be,onExpandChange:he,size:q,item:r.item,dir:F,animate:!1}):t.createElement(ke,null,ae.toLanguageString(E.nodata,E.messages[E.nodata])),C&&t.createElement(a.WatermarkOverlay,{message:x})))),k&&Je());return T?t.createElement(rt.FloatingLabel,{label:T,editorValue:ee,editorPlaceholder:j,editorValid:xe,editorDisabled:S,editorId:ie,style:{width:V?V.width:void 0},children:we,dir:F}):we}),bt={opened:n.bool,disabled:n.bool,dir:n.string,tabIndex:n.number,accessKey:n.string,data:n.array,value:n.any,valueMap:n.func,placeholder:n.string,dataItemKey:n.string.isRequired,textField:n.string.isRequired,selectField:n.string,expandField:n.string,subItemsField:n.string,className:n.string,style:n.object,label:n.string,validationMessage:n.string,validityStyles:n.bool,valid:n.bool,required:n.bool,name:n.string,id:n.string,ariaLabelledBy:n.string,ariaDescribedBy:n.string,filterable:n.bool,filter:n.string,loading:n.bool,popupSettings:n.shape({animate:n.oneOfType([n.bool,n.shape({openDuration:n.number,closeDuration:n.number})]),popupClass:n.string,className:n.string,appendTo:n.any,width:n.oneOfType([n.string,n.number]),height:n.oneOfType([n.string,n.number])}),onOpen:n.func,onClose:n.func,onFocus:n.func,onBlur:n.func,onChange:n.func,onFilterChange:n.func,onExpandChange:n.func,item:n.func,valueHolder:n.func,listNoData:n.func,adaptiveTitle:n.string,adaptiveSubtitle:n.string,adaptive:n.bool};se.displayName="KendoReactDropDownTree";se.propTypes=bt;exports.DropDownTree=se;exports.DropDownTreePropsContext=Pe;
@@ -7,22 +7,22 @@
7
7
  */
8
8
  import * as t from "react";
9
9
  import n from "prop-types";
10
- import { validatePackage as at, getLicenseMessage as rt, usePropsContext as it, useId as lt, getTabIndex as st, ZIndexContext as Se, useRtl as ct, useAdaptiveModeContext as ut, canUseDOM as dt, noop as X, Keys as c, mapTree as pt, extendDataItem as ft, classNames as re, kendoThemeMaps as mt, IconWrap as Te, WatermarkOverlay as vt, createPropsContext as gt } from "@progress/kendo-react-common";
11
- import { Popup as bt } from "@progress/kendo-react-popup";
12
- import { useLocalization as ht } from "@progress/kendo-react-intl";
10
+ import { validatePackage as at, getLicenseMessage as rt, usePropsContext as it, useId as lt, getTabIndex as st, ZIndexContext as Se, useWebMcpRegister as ct, useRtl as ut, useAdaptiveModeContext as dt, canUseDOM as pt, noop as X, Keys as c, mapTree as ft, extendDataItem as mt, classNames as re, kendoThemeMaps as vt, IconWrap as Me, WatermarkOverlay as gt, createPropsContext as bt } from "@progress/kendo-react-common";
11
+ import { Popup as ht } from "@progress/kendo-react-popup";
12
+ import { useLocalization as Et } from "@progress/kendo-react-intl";
13
13
  import { TreeView as Re } from "@progress/kendo-react-treeview";
14
- import { packageMetadata as Me } from "../package-metadata.mjs";
15
- import { getItemValue as Et, areSame as Pe, isPresent as yt } from "../common/utils.mjs";
16
- import { useDropdownWidth as Ct } from "./useDropdownWidth.mjs";
17
- import { ListNoData as kt } from "./ListNoData.mjs";
14
+ import { packageMetadata as Te } from "../package-metadata.mjs";
15
+ import { getItemValue as yt, areSame as Pe, isPresent as Ct } from "../common/utils.mjs";
16
+ import { useDropdownWidth as kt } from "./useDropdownWidth.mjs";
17
+ import { ListNoData as xt } from "./ListNoData.mjs";
18
18
  import { clear as Ne, messages as ie, nodata as j } from "../messages/index.mjs";
19
- import { FloatingLabel as xt } from "@progress/kendo-react-labels";
19
+ import { FloatingLabel as wt } from "@progress/kendo-react-labels";
20
20
  import Oe from "../common/ListFilter.mjs";
21
- import { Button as wt } from "@progress/kendo-react-buttons";
22
- import { xIcon as Dt, chevronDownIcon as Ft } from "@progress/kendo-svg-icons";
23
- import { AdaptiveMode as It } from "../common/AdaptiveMode.mjs";
24
- import { ActionSheetContent as St } from "@progress/kendo-react-layout";
25
- const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please select a value from the list!", Ot = (E) => /* @__PURE__ */ t.createElement("span", { className: "k-input-value-text" }, E.children), Ve = (E) => E.split("_").map((D) => parseInt(D, 10)), Vt = (E, D) => {
21
+ import { Button as Dt } from "@progress/kendo-react-buttons";
22
+ import { xIcon as Ft, chevronDownIcon as It } from "@progress/kendo-svg-icons";
23
+ import { AdaptiveMode as St } from "../common/AdaptiveMode.mjs";
24
+ import { ActionSheetContent as Mt } from "@progress/kendo-react-layout";
25
+ const { sizeMap: Rt, roundedMap: Tt } = vt, Pt = 12e3, Nt = 2e3, Ot = "Please select a value from the list!", Vt = (E) => /* @__PURE__ */ t.createElement("span", { className: "k-input-value-text" }, E.children), Ve = (E) => E.split("_").map((D) => parseInt(D, 10)), Wt = (E, D) => {
26
26
  const { validationMessage: G, valid: A, required: r } = E;
27
27
  return {
28
28
  customError: G !== void 0,
@@ -44,49 +44,49 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
44
44
  size: void 0,
45
45
  rounded: void 0,
46
46
  fillMode: void 0
47
- }, Lt = gt(), Le = t.forwardRef((E, D) => {
48
- const G = !at(Me, { component: "DropDownTree" }), A = rt(Me), r = it(Lt, E), a = {
47
+ }, Lt = bt(), We = t.forwardRef((E, D) => {
48
+ const G = !at(Te, { component: "DropDownTree" }), A = rt(Te), r = it(Lt, E), a = {
49
49
  ...le,
50
50
  ...r
51
- }, We = lt(), se = a.id || We, {
51
+ }, Le = lt(), se = a.id || Le, {
52
52
  data: N,
53
53
  dataItemKey: O,
54
54
  popupSettings: f = {},
55
55
  style: V,
56
56
  opened: u,
57
57
  disabled: F,
58
- onOpen: L = X,
58
+ onOpen: W = X,
59
59
  onClose: m = X,
60
60
  placeholder: H,
61
61
  label: I,
62
62
  name: Ke,
63
63
  selectField: _,
64
- subItemsField: W,
64
+ subItemsField: L,
65
65
  validationMessage: Z,
66
66
  valid: ze,
67
67
  required: J,
68
68
  validityStyles: qe
69
- } = a, Q = st(a.tabIndex, F), i = t.useRef(null), v = t.useRef(null), S = t.useRef(null), Y = t.useRef(null), $ = t.useRef(null), y = t.useRef(null), U = t.useRef(!1), [ce, Be] = t.useState(void 0), C = a.value !== void 0, g = C ? a.value : ce !== void 0 ? ce : a.defaultValue, K = yt(g), ee = K ? Et(g, a.textField) : "", te = Vt({ validationMessage: Z, valid: ze, required: J }, K), ue = t.useContext(Se), Ae = ue ? ue + Pt : Mt, He = t.useCallback(() => v.current && v.current.focus(), []);
69
+ } = a, Q = st(a.tabIndex, F), i = t.useRef(null), v = t.useRef(null), S = t.useRef(null), Y = t.useRef(null), $ = t.useRef(null), y = t.useRef(null), U = t.useRef(!1), [ce, Be] = t.useState(void 0), C = a.value !== void 0, g = C ? a.value : ce !== void 0 ? ce : a.defaultValue, K = Ct(g), ee = K ? yt(g, a.textField) : "", te = Wt({ validationMessage: Z, valid: ze, required: J }, K), ue = t.useContext(Se), Ae = ue ? ue + Nt : Pt, He = t.useCallback(() => v.current && v.current.focus(), []);
70
70
  t.useImperativeHandle(i, () => ({
71
71
  props: a,
72
72
  element: v.current,
73
73
  focus: He
74
- })), t.useImperativeHandle(D, () => i.current);
75
- const k = ct(v, a.dir), _e = {
76
- width: Ct(
74
+ })), t.useImperativeHandle(D, () => i.current), ct("dropdowntree", i, a, a.webMcp);
75
+ const k = ut(v, a.dir), _e = {
76
+ width: kt(
77
77
  v,
78
78
  le,
79
79
  { ...le.popupSettings, ...f },
80
80
  V
81
81
  ),
82
82
  ...k !== void 0 ? { direction: k } : {}
83
- }, [Ze, de] = t.useState(!1), l = u !== void 0 ? u : Ze, [p, ne] = t.useState(!1), [oe, $e] = t.useState(), [pe, Ue] = t.useState(""), fe = ut(), h = !!(oe && fe && oe <= fe.medium && a.adaptive), Xe = t.useCallback(() => {
83
+ }, [Ze, de] = t.useState(!1), l = u !== void 0 ? u : Ze, [p, ne] = t.useState(!1), [oe, $e] = t.useState(), [pe, Ue] = t.useState(""), fe = dt(), h = !!(oe && fe && oe <= fe.medium && a.adaptive), Xe = t.useCallback(() => {
84
84
  $.current && $.current.setCustomValidity && $.current.setCustomValidity(
85
- te.valid ? "" : Z === void 0 ? Nt : Z
85
+ te.valid ? "" : Z === void 0 ? Ot : Z
86
86
  );
87
87
  }, [Z, te]);
88
88
  t.useEffect(Xe), t.useEffect(() => {
89
- const e = dt && window.ResizeObserver && new window.ResizeObserver(nt.bind(void 0));
89
+ const e = pt && window.ResizeObserver && new window.ResizeObserver(nt.bind(void 0));
90
90
  return document != null && document.body && e && e.observe(document.body), () => {
91
91
  document != null && document.body && e && e.disconnect();
92
92
  };
@@ -94,14 +94,14 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
94
94
  const me = t.useCallback(
95
95
  (e) => {
96
96
  if (!l) {
97
- if (L) {
97
+ if (W) {
98
98
  const o = { ...e };
99
- L.call(void 0, o);
99
+ W.call(void 0, o);
100
100
  }
101
101
  u === void 0 && de(!0);
102
102
  }
103
103
  },
104
- [l, u, L]
104
+ [l, u, W]
105
105
  ), x = t.useCallback(
106
106
  (e) => {
107
107
  if (l) {
@@ -128,8 +128,8 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
128
128
  (l ? x : me)(o);
129
129
  }
130
130
  },
131
- [l, u, L, m]
132
- ), T = t.useCallback((e) => {
131
+ [l, u, W, m]
132
+ ), M = t.useCallback((e) => {
133
133
  U.current = !0, e(), window.setTimeout(() => U.current = !1, 0);
134
134
  }, []), je = t.useCallback(
135
135
  (e) => {
@@ -137,34 +137,34 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
137
137
  const { keyCode: o, altKey: s } = e, d = y.current && y.current.element;
138
138
  if (!i.current || e.isDefaultPrevented() && ((w = S.current) == null ? void 0 : w.element) === e.target)
139
139
  return;
140
- const M = {
140
+ const T = {
141
141
  syntheticEvent: e,
142
142
  nativeEvent: e.nativeEvent,
143
143
  target: i.current
144
144
  };
145
145
  if (l)
146
146
  if (o === c.esc || s && o === c.up)
147
- e.preventDefault(), x(M);
147
+ e.preventDefault(), x(T);
148
148
  else if (d && d.querySelector(".k-focus") && (o === c.up || o === c.down || o === c.left || o === c.right || o === c.home || o === c.end)) {
149
149
  if (o === c.up && ((Fe = S.current) != null && Fe.element)) {
150
150
  const B = Array.from(d.querySelectorAll(".k-treeview-item")), Ie = [...B].reverse().find((P) => P == null ? void 0 : P.querySelector(".k-focus"));
151
151
  if (Ie && B.indexOf(Ie) === 0)
152
- return T(() => {
152
+ return M(() => {
153
153
  var P;
154
154
  b((P = S.current) == null ? void 0 : P.element);
155
155
  });
156
156
  }
157
- T(X);
158
- } else o === c.down && T(() => {
157
+ M(X);
158
+ } else o === c.down && M(() => {
159
159
  var B;
160
160
  b(((B = S.current) == null ? void 0 : B.element) || d);
161
161
  });
162
- else s && o === c.down ? (e.preventDefault(), me(M)) : l || o === c.esc && Ee(e);
162
+ else s && o === c.down ? (e.preventDefault(), me(T)) : l || o === c.esc && Ee(e);
163
163
  },
164
- [l, u, L, m]
164
+ [l, u, W, m]
165
165
  ), ge = t.useCallback((e) => {
166
166
  const { keyCode: o, altKey: s } = e;
167
- s || o !== c.up && o !== c.down || (e.preventDefault(), T(
167
+ s || o !== c.up && o !== c.down || (e.preventDefault(), M(
168
168
  o === c.up ? () => {
169
169
  b(v.current);
170
170
  } : () => {
@@ -173,7 +173,7 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
173
173
  }
174
174
  ));
175
175
  }, []), b = t.useCallback((e) => {
176
- e && T(() => e.focus());
176
+ e && M(() => e.focus());
177
177
  }, []), Ge = t.useCallback(
178
178
  (e) => {
179
179
  var o;
@@ -215,7 +215,7 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
215
215
  },
216
216
  [p, r.onBlur, l, u, m]
217
217
  ), et = t.useCallback(() => {
218
- p && T(X), h && setTimeout(() => {
218
+ p && M(X), h && setTimeout(() => {
219
219
  var e;
220
220
  b((e = Y.current) == null ? void 0 : e.element);
221
221
  }, 300);
@@ -236,8 +236,8 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
236
236
  (e) => {
237
237
  if (Pe(e.item, g, O) || !i.current)
238
238
  return;
239
- const { item: o, itemHierarchicalIndex: s, nativeEvent: d, syntheticEvent: M } = e, w = {
240
- syntheticEvent: M,
239
+ const { item: o, itemHierarchicalIndex: s, nativeEvent: d, syntheticEvent: T } = e, w = {
240
+ syntheticEvent: T,
241
241
  nativeEvent: d,
242
242
  target: i.current
243
243
  };
@@ -259,11 +259,11 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
259
259
  ), ye = t.useCallback(
260
260
  (e) => {
261
261
  if (e.syntheticEvent.stopPropagation(), r.onExpandChange && i.current) {
262
- const { item: o, itemHierarchicalIndex: s, nativeEvent: d, syntheticEvent: M } = e, w = {
262
+ const { item: o, itemHierarchicalIndex: s, nativeEvent: d, syntheticEvent: T } = e, w = {
263
263
  level: Ve(s),
264
264
  item: o,
265
265
  nativeEvent: d,
266
- syntheticEvent: M,
266
+ syntheticEvent: T,
267
267
  target: i.current
268
268
  };
269
269
  r.onExpandChange.call(void 0, w);
@@ -308,7 +308,7 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
308
308
  windowWidth: oe,
309
309
  mobileFilter: e
310
310
  };
311
- return /* @__PURE__ */ t.createElement(It, { ...o }, /* @__PURE__ */ t.createElement(St, null, N.length > 0 ? /* @__PURE__ */ t.createElement(
311
+ return /* @__PURE__ */ t.createElement(St, { ...o }, /* @__PURE__ */ t.createElement(Mt, null, N.length > 0 ? /* @__PURE__ */ t.createElement(
312
312
  Re,
313
313
  {
314
314
  ref: y,
@@ -318,7 +318,7 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
318
318
  textField: a.textField,
319
319
  selectField: _,
320
320
  expandField: a.expandField,
321
- childrenField: W,
321
+ childrenField: L,
322
322
  expandIcons: !0,
323
323
  onItemClick: he,
324
324
  onExpandChange: ye,
@@ -331,16 +331,16 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
331
331
  }, nt = t.useCallback((e) => {
332
332
  for (const o of e)
333
333
  $e(o.target.clientWidth);
334
- }, []), ke = t.useMemo(() => C || !K ? N : pt(
334
+ }, []), ke = t.useMemo(() => C || !K ? N : ft(
335
335
  N,
336
- W,
337
- (e) => ft(e, W, { [_]: Pe(e, g, O) })
338
- ), [N, g, C, K, _, W]), xe = a.listNoData || kt, ot = a.valueHolder || Ot, ae = ht(), we = !qe || te.valid, { size: R, rounded: z, fillMode: q } = a, De = /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
336
+ L,
337
+ (e) => mt(e, L, { [_]: Pe(e, g, O) })
338
+ ), [N, g, C, K, _, L]), xe = a.listNoData || xt, ot = a.valueHolder || Vt, ae = Et(), we = !qe || te.valid, { size: R, rounded: z, fillMode: q } = a, De = /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
339
339
  "span",
340
340
  {
341
341
  className: re("k-dropdowntree k-picker", a.className, {
342
- [`k-picker-${Tt[R] || R}`]: R,
343
- [`k-rounded-${Rt[z] || z}`]: z,
342
+ [`k-picker-${Rt[R] || R}`]: R,
343
+ [`k-rounded-${Tt[z] || z}`]: z,
344
344
  [`k-picker-${q}`]: q,
345
345
  "k-focus": p,
346
346
  "k-invalid": !we,
@@ -369,7 +369,7 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
369
369
  "aria-required": J
370
370
  },
371
371
  /* @__PURE__ */ t.createElement("span", { className: "k-input-inner" }, (ee || H) && /* @__PURE__ */ t.createElement(ot, { item: g }, ee || H)),
372
- a.loading && /* @__PURE__ */ t.createElement(Te, { className: "k-input-loading-icon", name: "loading" }),
372
+ a.loading && /* @__PURE__ */ t.createElement(Me, { className: "k-input-loading-icon", name: "loading" }),
373
373
  K && !F && /* @__PURE__ */ t.createElement(
374
374
  "span",
375
375
  {
@@ -380,10 +380,10 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
380
380
  tabIndex: -1,
381
381
  onMouseDown: (e) => e.preventDefault()
382
382
  },
383
- /* @__PURE__ */ t.createElement(Te, { name: "x", icon: Dt })
383
+ /* @__PURE__ */ t.createElement(Me, { name: "x", icon: Ft })
384
384
  ),
385
385
  /* @__PURE__ */ t.createElement(
386
- wt,
386
+ Dt,
387
387
  {
388
388
  tabIndex: -1,
389
389
  type: "button",
@@ -392,7 +392,7 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
392
392
  size: R,
393
393
  fillMode: q,
394
394
  icon: "chevron-down",
395
- svgIcon: Ft
395
+ svgIcon: It
396
396
  }
397
397
  ),
398
398
  /* @__PURE__ */ t.createElement(
@@ -408,7 +408,7 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
408
408
  /* @__PURE__ */ t.createElement("option", { value: a.valueMap ? a.valueMap.call(void 0, g) : g })
409
409
  ),
410
410
  !h && /* @__PURE__ */ t.createElement(Se.Provider, { value: Ae }, /* @__PURE__ */ t.createElement(
411
- bt,
411
+ ht,
412
412
  {
413
413
  ...f,
414
414
  className: re(f.className, { "k-rtl": k === "rtl" }),
@@ -444,7 +444,7 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
444
444
  textField: a.textField,
445
445
  selectField: _,
446
446
  expandField: a.expandField,
447
- childrenField: W,
447
+ childrenField: L,
448
448
  expandIcons: !0,
449
449
  onItemClick: he,
450
450
  onExpandChange: ye,
@@ -454,11 +454,11 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
454
454
  animate: !1
455
455
  }
456
456
  ) : /* @__PURE__ */ t.createElement(xe, null, ae.toLanguageString(j, ie[j])),
457
- G && /* @__PURE__ */ t.createElement(vt, { message: A })
457
+ G && /* @__PURE__ */ t.createElement(gt, { message: A })
458
458
  ))
459
459
  ), h && tt());
460
460
  return I ? /* @__PURE__ */ t.createElement(
461
- xt,
461
+ wt,
462
462
  {
463
463
  label: I,
464
464
  editorValue: ee,
@@ -471,7 +471,7 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
471
471
  dir: k
472
472
  }
473
473
  ) : De;
474
- }), Wt = {
474
+ }), Kt = {
475
475
  opened: n.bool,
476
476
  disabled: n.bool,
477
477
  dir: n.string,
@@ -528,9 +528,9 @@ const { sizeMap: Tt, roundedMap: Rt } = mt, Mt = 12e3, Pt = 2e3, Nt = "Please se
528
528
  adaptiveSubtitle: n.string,
529
529
  adaptive: n.bool
530
530
  };
531
- Le.displayName = "KendoReactDropDownTree";
532
- Le.propTypes = Wt;
531
+ We.displayName = "KendoReactDropDownTree";
532
+ We.propTypes = Kt;
533
533
  export {
534
- Le as DropDownTree,
534
+ We as DropDownTree,
535
535
  Lt as DropDownTreePropsContext
536
536
  };
@@ -5,7 +5,7 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { FormComponentProps } from '@progress/kendo-react-common';
8
+ import { FormComponentProps, WebMcpProps } from '@progress/kendo-react-common';
9
9
  import { ItemRenderProps } from '@progress/kendo-react-treeview';
10
10
  import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, DropdownEvent } from '../common/events';
11
11
  import { DropDownsPopupSettings } from '../common/settings.js';
@@ -515,4 +515,9 @@ export interface DropDownTreeProps extends FormComponentProps {
515
515
  * ```
516
516
  */
517
517
  adaptiveSubtitle?: string;
518
+ /**
519
+ * Enables Web MCP tool registration for this component.
520
+ * Requires a parent `WebMcpProvider` from `@progress/kendo-react-webmcp`.
521
+ */
522
+ webMcp?: boolean | WebMcpProps;
518
523
  }
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import * as g from "react";
9
9
  import v from "prop-types";
10
- import { withIdHOC as J, withPropsContext as Q, withAdaptiveModeContext as X, createPropsContext as Z, Keys as u, classNames as S, kendoThemeMaps as tt, IconWrap as B, WatermarkOverlay as et, getLicenseMessage as st, canUseDOM as V, validatePackage as it, subscribeToKendoPaste as ot } from "@progress/kendo-react-common";
10
+ import { createPropsContext as J, Keys as u, classNames as S, kendoThemeMaps as Q, IconWrap as B, WatermarkOverlay as X, getLicenseMessage as Z, canUseDOM as V, validatePackage as tt, subscribeToKendoPaste as et, withIdHOC as st, withPropsContext as it, withAdaptiveModeContext as ot } from "@progress/kendo-react-common";
11
11
  import { plusIcon as at } from "@progress/kendo-svg-icons";
12
12
  import { FloatingLabel as nt } from "@progress/kendo-react-labels";
13
13
  import lt from "../common/ListContainer.mjs";
@@ -24,7 +24,7 @@ import { AdaptiveMode as mt } from "../common/AdaptiveMode.mjs";
24
24
  import { ActionSheetContent as vt } from "@progress/kendo-react-layout";
25
25
  import bt from "../common/ListFilter.mjs";
26
26
  import H from "../common/withCustomComponent.mjs";
27
- const { sizeMap: P, roundedMap: It } = tt, yt = "Please enter a valid value!", W = (M) => M.preventDefault(), $ = (M) => M === 2, C = class C extends g.Component {
27
+ const { sizeMap: P, roundedMap: It } = Q, yt = "Please enter a valid value!", W = (M) => M.preventDefault(), $ = (M) => M === 2, C = class C extends g.Component {
28
28
  constructor(l) {
29
29
  super(l), this.state = {
30
30
  activedescendant: w.PopupList,
@@ -194,7 +194,7 @@ const { sizeMap: P, roundedMap: It } = tt, yt = "Please enter a valid value!", W
194
194
  },
195
195
  !h && f && r.length !== 0 && /* @__PURE__ */ g.createElement(rt, { group: f, render: a }),
196
196
  this.renderList()
197
- ), this.showLicenseWatermark && /* @__PURE__ */ g.createElement(et, { message: this.licenseMessage }), e && /* @__PURE__ */ g.createElement("div", { className: "k-list-footer" }, e));
197
+ ), this.showLicenseWatermark && /* @__PURE__ */ g.createElement(X, { message: this.licenseMessage }), e && /* @__PURE__ */ g.createElement("div", { className: "k-list-footer" }, e));
198
198
  }, this.renderListContainer = () => {
199
199
  const t = this.base, { dir: e } = this.props, o = x(this.props), s = this.base.getPopupSettings(), a = s.width !== void 0 ? s.width : t.popupWidth, i = {
200
200
  dir: e !== void 0 ? e : t.dirCalculated,
@@ -335,7 +335,7 @@ const { sizeMap: P, roundedMap: It } = tt, yt = "Please enter a valid value!", W
335
335
  this._input && this._input.setCustomValidity && this._input.setCustomValidity(
336
336
  this.validity.valid ? "" : this.props.validationMessage || yt
337
337
  );
338
- }, this.validate(l), this.licenseMessage = st(A);
338
+ }, this.validate(l), this.licenseMessage = Z(A);
339
339
  }
340
340
  get _inputId() {
341
341
  return this.props.id;
@@ -347,7 +347,7 @@ const { sizeMap: P, roundedMap: It } = tt, yt = "Please enter a valid value!", W
347
347
  validate(l) {
348
348
  if (l.filterable || l.virtual) {
349
349
  const t = [];
350
- l.filterable && t.push("filterable"), l.virtual && t.push("virtualization"), this.showLicenseWatermark = !it(A, {
350
+ l.filterable && t.push("filterable"), l.virtual && t.push("virtualization"), this.showLicenseWatermark = !tt(A, {
351
351
  component: "MultiSelect",
352
352
  features: t
353
353
  });
@@ -423,7 +423,7 @@ const { sizeMap: P, roundedMap: It } = tt, yt = "Please enter a valid value!", W
423
423
  var t;
424
424
  this.observerResize = V && window.ResizeObserver && new window.ResizeObserver(this.calculateMedia.bind(this)), this.base.didMount(), this.setValidity(), (t = this.document) != null && t.body && this.observerResize && this.observerResize.observe(this.document.body);
425
425
  const l = this.props.name || this.props.id;
426
- this.KendoPasteSubscription = ot(this._element, {
426
+ this.KendoPasteSubscription = et(this._element, {
427
427
  fieldName: l,
428
428
  onValueChange: (e) => {
429
429
  this.handleKendoPasteValue(e);
@@ -723,10 +723,10 @@ C.displayName = "MultiSelect", C.propTypes = {
723
723
  suffix: void 0
724
724
  };
725
725
  let _ = C;
726
- const xt = Z(), St = J(
727
- Q(
726
+ const xt = J(), St = st(
727
+ it(
728
728
  xt,
729
- X(_)
729
+ ot(_)
730
730
  )
731
731
  );
732
732
  St.displayName = "KendoReactMultiSelect";
@@ -6,7 +6,7 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import { MultiSelect } from './MultiSelect.js';
9
- import { AdaptiveModeContextType, CustomComponent, FormComponentProps } from '@progress/kendo-react-common';
9
+ import { AdaptiveModeContextType, CustomComponent, FormComponentProps, WebMcpProps } from '@progress/kendo-react-common';
10
10
  import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, PageChangeEvent, CancelEvent } from './../common/events';
11
11
  import { VirtualizationSettings, DropDownsPopupSettings } from '../common/settings.js';
12
12
  import { ListGroupItemProps } from '../common/ListGroupItem.js';
@@ -599,6 +599,11 @@ export interface MultiSelectProps extends FormComponentProps {
599
599
  * ```
600
600
  */
601
601
  inputAttributes?: React.InputHTMLAttributes<HTMLInputElement>;
602
+ /**
603
+ * Enables Web MCP tool registration for this component.
604
+ * Requires a parent `WebMcpProvider` from `@progress/kendo-react-webmcp`.
605
+ */
606
+ webMcp?: boolean | WebMcpProps;
602
607
  /**
603
608
  * @hidden
604
609
  * This prop is provided by the withAdaptiveModeContext HOC to subscribe to AdaptiveModeContext.
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { MultiSelectHandle } from './MultiSelect/MultiSelect.js';
9
+ import { MultiSelectProps } from './MultiSelect/MultiSelectProps';
10
+ /**
11
+ * MultiSelect wrapper that integrates the Web MCP hook.
12
+ *
13
+ * @hidden
14
+ */
15
+ import * as React from 'react';
16
+ /** @hidden */
17
+ export declare const MultiSelectWrapper: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<MultiSelectHandle>>;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),a=require("./MultiSelect/MultiSelect.js"),n=require("@progress/kendo-react-common");function i(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const l=i(u),o=l.forwardRef((e,r)=>{const[t,c]=n.useMergedRef(r);return n.useWebMcpRegister("multiselect",t,e,e.webMcp),l.createElement(a.MultiSelect,{...e,ref:c})});o.displayName="KendoReactMultiSelect";exports.MultiSelectWrapper=o;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import * as t from "react";
9
+ import { MultiSelect as l } from "./MultiSelect/MultiSelect.mjs";
10
+ import { useMergedRef as m, useWebMcpRegister as f } from "@progress/kendo-react-common";
11
+ const o = t.forwardRef((e, r) => {
12
+ const [c, i] = m(r);
13
+ return f("multiselect", c, e, e.webMcp), /* @__PURE__ */ t.createElement(l, { ...e, ref: i });
14
+ });
15
+ o.displayName = "KendoReactMultiSelect";
16
+ export {
17
+ o as MultiSelectWrapper
18
+ };