@progress/kendo-vue-dropdowns 8.0.3-develop.4 → 8.1.0-develop.2

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 s=require("vue"),i=require("@progress/kendo-vue-common"),ae=require("@progress/kendo-vue-popup"),ne=require("@progress/kendo-vue-intl"),D=require("@progress/kendo-vue-treeview"),oe=require("../package-metadata.js"),y=require("../common/utils.js"),le=require("../DropDownTree/ListNoData.js"),p=require("../messages/main.js"),re=require("@progress/kendo-vue-labels"),$=require("@progress/kendo-vue-buttons"),de=require("../MultiSelect/TagList.js"),ce=require("../common/ClearButton.js"),E=require("../common/ListFilter.js"),he=require("./utils.js"),L=require("../common/constants.js"),ue=require("@progress/kendo-vue-layout"),pe=require("@progress/kendo-svg-icons"),fe=require("../common/DropDownBase.js");function F(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!s.isVNode(e)}const ge="Please select a value from the list!",{sizeMap:q,roundedMap:me}=i.kendoThemeMaps,ve=e=>e.split("_").map(t=>parseInt(t,10)),A=(e,t)=>{const{validationMessage:a,valid:n,required:o}=e;return{customError:a!==void 0,valid:!!(n!==void 0?n:!o||t),valueMissing:!t}},ye=s.defineComponent({name:"KendoMultiSelectTree",model:{event:"changemodel"},emits:{open:e=>!0,close:e=>!0,focus:e=>!0,blur:e=>!0,change:e=>!0,filterchange:e=>!0,expandchange:e=>!0,changemodel:e=>!0,"update:modelValue":e=>!0},props:{opened:{type:Boolean,default:void 0},disabled:Boolean,dir:String,tabIndex:Number,accessKey:String,dataItems:{type:Array,default:function(){return[]}},value:Array,modelValue:Array,valueMap:Function,placeholder:String,dataItemKey:{type:String,required:!0},textField:{type:String,required:!0},checkField:{type:String,default:"checkField"},checkIndeterminateField:{type:String,default:"checkIndeterminateField"},expandField:String,subItemsField:{type:String,default:"items"},className:String,label:String,validationMessage:String,validityStyles:{type:Boolean,default:!0},valid:{type:Boolean,default:void 0},required:Boolean,name:String,id:String,ariaLabelledBy:String,ariaDescribedBy:String,filterable:Boolean,filter:String,loading:Boolean,tags:Array,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px",anchor:""}}},size:{type:String,validator:function(e){return["small","medium","large"].includes(e)}},rounded:{type:String,validator:function(e){return["none","small","medium","large","full"].includes(e)}},fillMode:{type:String,validator:function(e){return["flat","outline","solid"].includes(e)}},item:[String,Function,Object],tag:[String,Function,Object],header:[String,Function,Object],footer:[String,Function,Object],listNoData:[String,Function,Object],adaptive:{type:Boolean,default:void 0},adaptiveTitle:{type:String,default:void 0}},inject:{kendoLocalizationService:{default:null},adaptiveModeBreakpoints:{default:{small:L.MOBILE_SMALL_DEVICE,medium:L.MOBILE_MEDIUM_DEVICE}}},created(){this.observer=null,i.validatePackage(oe.packageMetadata),this.base=new fe(this),this.componentGuid=i.guid(),this.anchor=i.guid()},data(){return{focusedTagState:void 0,openState:!1,focusedState:!1,filterState:"",currentValue:[],popupWidth:"200px",windowWidth:0,initialAdaptiveRenderingValues:void 0}},computed:{animationStyles(){return this.windowWidth<=this.adaptiveModeBreakpoints.small?{top:0,width:"100%",height:"100%"}:void 0},classNameAdaptive(){return this.windowWidth<=this.adaptiveModeBreakpoints.small?"k-adaptive-actionsheet k-actionsheet-fullscreen":"k-adaptive-actionsheet k-actionsheet-bottom"},adaptiveState(){return this.windowWidth<=this.adaptiveModeBreakpoints.medium&&this.$props.adaptive},isOpen(){return this.opened!==void 0?this.opened:this.openState},computedValue(){return this.value!==void 0?this.value:this.$props.modelValue!==void 0?this.$props.modelValue:this.currentValue},hasValue(){return!!this.computedValue.length},tagsToRenderRef(){if(this.initialAdaptiveRenderingValues===void 0)return this.tags===void 0?this.computedValue.map(e=>({text:y.getItemValue(e,this.$props.textField),data:[e]})):[...this.tags];{const e=this.initialAdaptiveRenderingValues;return e.length>0&&e.map(t=>({text:y.getItemValue(t,this.$props.textField),data:[t]}))}}},watch:{isOpen:function(e){e&&this.value?this.initialAdaptiveRenderingValues=[...this.value]:this.initialAdaptiveRenderingValues=void 0}},mounted(){this.observer=i.canUseDOM&&window.ResizeObserver&&new ResizeObserver(this.calculateMedia),document!=null&&document.body&&this.observer&&this.observer.observe(document.body),this.elementRef=i.getRef(this,"kendoAnchor"),this.inputRef=i.getRef(this,"input"),this.selectRef=i.getRef(this,"select"),this.treeViewRef=i.getRef(this,"treeView"),this.skipFocusRef=!1,this.popupRef=i.getRef(this,"popup"),this.calculatePopupWidth()},updated(){this.inputRef=i.getRef(this,"input"),this.treeViewRef=i.getRef(this,"treeView"),this.popupRef&&this.isOpen&&this.hasValue&&this.popupRef.reposition(),this.setValidity(),this.calculatePopupWidth()},render(){let e;const t=this.$props.id||this.componentGuid,{dataItems:a,dataItemKey:n,popupSettings:o={},disabled:d,placeholder:l,label:r,name:c,checkField:g,checkIndeterminateField:k,subItemsField:I,validationMessage:O,valid:P,value:C,required:R,validityStyles:W,adaptiveTitle:z}=this.$props,b=i.getTabIndex(this.$props.tabIndex,d),w=ne.provideLocalizationService(this),j=A({validationMessage:O,valid:P,required:R},this.hasValue),V=this.$props.dir,K=this.adaptiveState,N=i.templateRendering.call(this,this.item,i.getListeners.call(this)),_=i.templateRendering.call(this,this.tag,i.getListeners.call(this)),G=i.templateRendering.call(this,this.$props.header,i.getListeners.call(this)),H=i.templateRendering.call(this,this.$props.footer,i.getListeners.call(this)),x=i.getTemplate.call(this,{h:s.h,template:G}),T=i.getTemplate.call(this,{h:s.h,template:H}),U=i.templateRendering.call(this,this.$props.listNoData,i.getListeners.call(this)),J=s.createVNode(le.ListNoData,null,F(e=w.toLanguageString(p.nodata,p.messages[p.nodata]))?e:{default:()=>[e]}),M=i.getTemplate.call(this,{h:s.h,defaultRendering:J,template:U}),B=!W||j.valid,{size:h,rounded:m,fillMode:v}=this.$props,Q=()=>[s.createVNode("div",{class:"k-actionsheet-titlebar-group k-hbox"},[s.createVNode("div",{class:"k-actionsheet-title"},[s.createVNode("div",{class:"k-text-center"},[z]),s.createVNode("div",{class:"k-actionsheet-subtitle k-text-center"},[l])]),s.createVNode("div",{class:"k-actionsheet-actions"},[s.createVNode($.Button,{tabIndex:5,"aria-label":"Cancel","aria-disabled":"false",type:"button",fillMode:"flat",onClick:this.onCancel,icon:"x",svgIcon:pe.xIcon},null)])]),s.createVNode("div",{class:"k-actionsheet-titlebar-group k-actionsheet-filter"},[this.$props.filterable&&s.createVNode(E.ListFilter,{value:this.$props.filter===void 0?this.filterState:this.$props.filter,ref:i.setRef(this,"input"),onChange:this.onFilterChange,onKeydown:this.onInputKeyDown,size:h,rounded:m,fillMode:v,onFocus:this.onFocus,onBlur:this.onBlur},null)])],X=i.templateRendering.call(this,Q,i.getListeners.call(this)),Y=()=>{const u=w.toLanguageString(p.adaptiveModeFooterCancel,p.messages[p.adaptiveModeFooterCancel]),f=w.toLanguageString(p.adaptiveModeFooterApply,p.messages[p.adaptiveModeFooterApply]);return[s.createVNode($.Button,{size:"large","aria-label":u,"aria-disabled":"false",type:"button",onClick:this.onCancel},F(u)?u:{default:()=>[u]}),s.createVNode($.Button,{themeColor:"primary",size:"large","aria-label":f,"aria-disabled":"false",type:"button",onClick:this.closePopup},F(f)?f:{default:()=>[f]})]},Z=i.templateRendering.call(this,Y,i.getListeners.call(this)),ee=()=>{const u=this.base.getTemplateDef.call(this,x,s.h),f=this.base.getTemplateDef.call(this,T,s.h);return[u&&s.createVNode("div",{class:"k-list-header"},[u]),a.length>0?s.createVNode(D.TreeView,{ref:i.setRef(this,"treeView"),tabIndex:b,dataItems:a,focusIdField:n,textField:this.$props.textField,checkField:g,checkIndeterminateField:k,expandField:this.$props.expandField,childrenField:I,expandIcons:!0,onItemclick:this.onChange,onCheckchange:this.onChange,onExpandchange:this.onExpand,onFocus:this.onFocus,onBlur:this.onBlur,onKeydown:this.onWrapperKeyDown,checkboxes:!0,size:"large",item:N},null):M,f&&s.createVNode("div",{class:"k-list-footer"},[f])]},te=i.templateRendering.call(this,ee,i.getListeners.call(this)),ie=function(){return s.createVNode(ue.ActionSheet,{expand:this.isOpen,animation:!0,animationStyles:this.animationStyles,className:this.classNameAdaptive,footerClassName:"k-actions k-actions-stretched",contentClassName:"!k-overflow-hidden",header:X,content:te,footer:Z,onClose:this.onCancel,navigatableElements:["input.k-input-inner",".k-actionsheet-actions > button"]},null)},se=function(){return s.createVNode("span",{ref:i.setRef(this,"kendoAnchor"),class:i.classNames("k-multiselecttree k-input",this.$props.className,{[`k-input-${q[h]||h}`]:h,[`k-rounded-${me[m]||m}`]:m,[`k-input-${v}`]:v,"k-focus":this.focusedState&&!d,"k-invalid":!B,"k-disabled":d,"k-loading":this.$props.loading,"k-required":R}),tabindex:b,accesskey:this.$props.accessKey,id:t,dir:V,onKeydown:this.onWrapperKeyDown,onMousedown:this.onWrapperMouseDown,onFocusin:this.onFocus,onFocusout:this.onBlur,role:"combobox","aria-haspopup":"tree","aria-expanded":this.isOpen,"aria-disabled":d,"aria-label":r,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaLabelledBy?this.$props.ariaLabelledBy:"tagslist-"+t,"aria-required":this.$props.required,onClick:this.onWrapperClick},[this.tagsToRenderRef.length>0&&s.createVNode(de.TagList,{id:"tagslist-"+t,class:i.classNames("k-input-values k-chip-list k-selection-multiple",{[`k-chip-list-${q[h]||h}`]:h,"k-readonly":this.hasValue}),tagRender:_,onTagdelete:this.onTagDelete,dataItems:this.tagsToRenderRef,guid:t,focused:this.focusedTagState?this.tagsToRenderRef.find(u=>this.focusedTagState&&y.matchTags(u,this.focusedTagState,n)):void 0,tagsRounded:m,size:h,fillMode:v},null),s.createVNode("span",{class:"k-input-inner",role:"combobox",tabindex:b,"aria-expanded":this.isOpen,"aria-describedby":"tagslist-"+t,"aria-label":this.$props.ariaLabelledBy},[this.tagsToRenderRef.length===0&&s.createVNode("span",{class:"k-input-value-text"},[l])]),this.$props.loading&&s.createVNode(i.Icon,{class:"k-input-loading-icon",name:"loading"},null),this.hasValue&&!d&&s.createVNode(ce.ClearButton,{onClearclick:this.onClear},null),s.createVNode("select",{name:c,ref:i.setRef(this,"select"),tabindex:-1,"aria-hidden":!0,required:R,title:r,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},[s.createVNode("option",{value:this.$props.valueMap?this.$props.valueMap.call(void 0,C):C},null)]),!K&&s.createVNode(ae.Popup,{style:{width:this.popupWidth,direction:V},popupClass:i.classNames(o.popupClass,"k-multiselecttree-popup","popup-"+this.componentGuid),class:i.classNames(o.className,{"k-rtl":V==="rtl"}),animate:o.animate,anchor:this.anchor,show:this.isOpen,onOpen:this.onPopupOpened,onClose:this.onPopupClosed,appendTo:o.appendTo,ref:i.setRef(this,"popup")},{default:()=>[this.$props.filterable&&s.createVNode(E.ListFilter,{value:this.$props.filter===void 0?this.filterState:this.$props.filter,ref:i.setRef(this,"input"),onChange:this.onFilterChange,onKeydown:this.onInputKeyDown,size:h,rounded:m,fillMode:v,onFocus:this.onFocus,onBlur:this.onBlur},null),x&&s.createVNode("div",{class:"k-list-header"},[x]),a.length>0?s.createVNode(D.TreeView,{ref:i.setRef(this,"treeView"),tabIndex:b,dataItems:a,focusIdField:n,textField:this.$props.textField,checkField:g,checkIndeterminateField:k,expandField:this.$props.expandField,childrenField:I,expandIcons:!0,onItemclick:this.onChange,onCheckchange:this.onChange,onExpandchange:this.onExpand,onFocus:this.onFocus,onBlur:this.onBlur,onKeydown:this.onWrapperKeyDown,checkboxes:!0,size:h,item:N},null):M,T&&s.createVNode("div",{class:"k-list-footer"},[T])]})])},S=[s.h(se.call(this),{...this.$attrs}),K&&ie.call(this)];return r?s.createVNode(re.FloatingLabel,{label:r,editorValue:this.hasValue,editorPlaceholder:l,editorValid:B,editorDisabled:d,editorId:t,dir:V},F(S)?S:{default:()=>[S]}):S},methods:{clearFilter(e){this.onFilterChange(e,"")},onCancel(e){const t={event:e,target:this},a={items:[],operation:"toggle",value:this.initialAdaptiveRenderingValues,...t};this.$emit("change",a),this.closePopup(e)},calculateMedia(e){for(let t of e)this.windowWidth=t.target.clientWidth},calculatePopupWidth(){this.elementRef&&(this.popupWidth=this.popupSettings.width!==void 0?this.popupSettings.width:this.elementRef.offsetWidth+"px")},focus(){this.$el&&this.$el.focus()},setValidity(){if(this.selectRef&&this.selectRef.setCustomValidity){const{validationMessage:e,valid:t,required:a}=this.$props,n=A({validationMessage:e,valid:t,required:a},this.hasValue);this.selectRef.setCustomValidity(n.valid?"":this.validationMessage===void 0?ge:this.validationMessage)}},changeValue(e,t,a){const n={dataItemKey:this.dataItemKey,checkField:this.checkField,checkIndeterminateField:this.checkIndeterminateField,expandField:this.expandField,subItemsField:this.subItemsField},o=he.getMultiSelectTreeValue(this.dataItems,{...n,items:t,operation:a,value:this.computedValue}),d={items:t,operation:a,value:o,...e};this.$emit("changemodel",o),this.$emit("update:modelValue",o),this.$emit("change",d)},onChange(e){if(y.areSame(e.item,this.computedValue,this.dataItemKey))return;const{item:t,event:a}=e,n={event:a,target:this};this.changeValue(n,[t],"toggle")},openPopup(e){if(!this.isOpen){const t={...e};this.$emit("open",t),this.opened===void 0&&(this.openState=!0)}},closePopup(e){if(this.$props.filterable&&this.clearFilter({...e,target:{...e.target,value:""}}),this.isOpen){const t={...e};this.$emit("close",t),this.opened===void 0&&(this.openState=!1)}},switchFocus(e){this.skipFocusRef=!0,e(),window.setTimeout(()=>this.skipFocusRef=!1,0)},focusElement(e){e&&this.switchFocus(()=>e.focus())},onPopupOpened(){if(!this.focusedState&&this.isOpen)this.closePopup({target:this});else if(this.$props.filterable){const e=this.inputRef&&this.inputRef.input;this.focusElement(e)}else this.focusElement(this.treeViewRef&&this.treeViewRef.input)},onPopupClosed(){this.focusedState&&this.focusElement(this.elementRef)},onFocus(e){if(!this.focusedState&&!this.skipFocusRef){this.focusedState=!0;const t={event:e,target:this};this.$emit("focus",t)}},onBlur(e){var t;if(this.focusedState&&!this.skipFocusRef&&!this.adaptiveState){this.focusedTagState=void 0,this.focusedState=!1;const a={event:e,target:this},n={...a},o=e.relatedTarget||((t=e.event)==null?void 0:t.relatedTarget);o!=null&&o.closest(".popup-"+this.componentGuid)||(this.$emit("blur",n),this.closePopup(a))}},onWrapperMouseDown(){this.focusedState&&this.switchFocus(i.noop)},onWrapperClick(e){if(!this.$props.disabled&&!e.defaultPrevented){this.focusedState=!0;const t={event:e,target:this};this.isOpen||this.openPopup(t)}},onWrapperKeyDown(e){const{keyCode:t,altKey:a}=e,n=this.treeViewRef&&this.treeViewRef.$el,o=this.inputRef&&this.inputRef.input;if(this.$props.disabled||e.defaultPrevented&&o===e.target)return;const d={event:e,target:this};if(this.computedValue&&this.computedValue.length>0&&(t===i.Keys.left||t===i.Keys.right||t===i.Keys.home||t===i.Keys.end||t===i.Keys.delete||t===i.Keys.backspace)){const l=this.tagsToRenderRef;let r=this.focusedTagState?l.findIndex(k=>y.matchTags(k,this.focusedTagState,this.dataItemKey)):-1,c;const g=r!==-1;t===i.Keys.left?(g?r=Math.max(0,r-1):r=l.length-1,c=l[r]):t===i.Keys.right?g?(r=Math.min(l.length-1,r+1),c=l[r]):c=l[0]:t===i.Keys.home?c=l[0]:t===i.Keys.end?c=l[l.length-1]:(t===i.Keys.delete||t===i.Keys.backspace)&&g&&this.changeValue(d,l[r].data,"delete"),c!==this.focusedTagState&&(this.focusedTagState=c)}if(this.isOpen)if(t===i.Keys.esc||a&&t===i.Keys.up)e.preventDefault(),this.switchFocus(()=>{this.focusElement(this.elementRef)}),this.closePopup(d);else if(n&&n.querySelector(".k-focus")&&(t===i.Keys.up||t===i.Keys.down||t===i.Keys.left||t===i.Keys.right||t===i.Keys.home||t===i.Keys.end)){if(t===i.Keys.up){const l=Array.from(n.querySelectorAll(".k-treeview-item")),r=[...l].reverse().find(c=>!!(c&&c.querySelector(".k-focus")));if(r&&l.indexOf(r)===0)return this.switchFocus(()=>{this.focusElement(o||this.elementRef)})}this.switchFocus(i.noop)}else t===i.Keys.down&&this.switchFocus(()=>{this.focusElement(o||n)});else a&&t===i.Keys.down&&(e.preventDefault(),this.openPopup(d))},onInputKeyDown(e){const{keyCode:t,altKey:a}=e;(t===i.Keys.esc||a&&t===i.Keys.up)&&(e.preventDefault(),this.switchFocus(()=>{this.focusElement(this.elementRef)}),t===i.Keys.esc&&this.adaptiveState?this.onCancel(e):this.closePopup(e)),!(a||t!==i.Keys.up&&t!==i.Keys.down)&&(e.preventDefault(),this.switchFocus(t===i.Keys.up?()=>{this.focusElement(this.elementRef)}:()=>{this.focusElement(this.treeViewRef&&this.treeViewRef.$el)}))},onClear(e){const t={event:e,target:this};this.changeValue(t,[],"clear"),this.closePopup(t),this.filterState="",e.preventDefault()},onTagDelete(e,t){if(this.closePopup({target:this}),!this.focusedState){const a=this.inputRef&&this.inputRef.input;this.focusElement(a)}this.changeValue({event:t,target:this},e,"delete")},onExpand(e){const{item:t,itemHierarchicalIndex:a,event:n}=e,o={level:ve(a),item:t,event:n,target:this};this.$emit("expandchange",o)},onFilterChange(e,t){const a=t?"":e.target.value,o={filter:{field:this.$props.textField,operator:"contains",value:a},event:e,target:this};this.$emit("filterchange",o),this.$props.filter===void 0&&(this.filterState=a)}}});exports.MultiSelectTree=ye;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),t=require("@progress/kendo-vue-common"),ne=require("@progress/kendo-vue-popup"),oe=require("@progress/kendo-vue-intl"),E=require("@progress/kendo-vue-treeview"),T=require("../package-metadata.js"),y=require("../common/utils.js"),le=require("../DropDownTree/ListNoData.js"),p=require("../messages/main.js"),re=require("@progress/kendo-vue-labels"),$=require("@progress/kendo-vue-buttons"),de=require("../MultiSelect/TagList.js"),ce=require("../common/ClearButton.js"),L=require("../common/ListFilter.js"),he=require("./utils.js"),q=require("../common/constants.js"),ue=require("@progress/kendo-vue-layout"),pe=require("@progress/kendo-svg-icons"),fe=require("../common/DropDownBase.js");function F(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!s.isVNode(e)}const ge="Please select a value from the list!",{sizeMap:A,roundedMap:me}=t.kendoThemeMaps,ve=e=>e.split("_").map(i=>parseInt(i,10)),O=(e,i)=>{const{validationMessage:a,valid:n,required:o}=e;return{customError:a!==void 0,valid:!!(n!==void 0?n:!o||i),valueMissing:!i}},ye=s.defineComponent({name:"KendoMultiSelectTree",model:{event:"changemodel"},emits:{open:e=>!0,close:e=>!0,focus:e=>!0,blur:e=>!0,change:e=>!0,filterchange:e=>!0,expandchange:e=>!0,changemodel:e=>!0,"update:modelValue":e=>!0},props:{opened:{type:Boolean,default:void 0},disabled:Boolean,dir:String,tabIndex:Number,accessKey:String,dataItems:{type:Array,default:function(){return[]}},value:Array,modelValue:Array,valueMap:Function,placeholder:String,dataItemKey:{type:String,required:!0},textField:{type:String,required:!0},checkField:{type:String,default:"checkField"},checkIndeterminateField:{type:String,default:"checkIndeterminateField"},expandField:String,subItemsField:{type:String,default:"items"},className:String,label:String,validationMessage:String,validityStyles:{type:Boolean,default:!0},valid:{type:Boolean,default:void 0},required:Boolean,name:String,id:String,ariaLabelledBy:String,ariaDescribedBy:String,filterable:Boolean,filter:String,loading:Boolean,tags:Array,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px",anchor:""}}},size:{type:String,validator:function(e){return["small","medium","large"].includes(e)}},rounded:{type:String,validator:function(e){return["none","small","medium","large","full"].includes(e)}},fillMode:{type:String,validator:function(e){return["flat","outline","solid"].includes(e)}},item:[String,Function,Object],tag:[String,Function,Object],header:[String,Function,Object],footer:[String,Function,Object],listNoData:[String,Function,Object],adaptive:{type:Boolean,default:void 0},adaptiveTitle:{type:String,default:void 0}},inject:{kendoLocalizationService:{default:null},adaptiveModeBreakpoints:{default:{small:q.MOBILE_SMALL_DEVICE,medium:q.MOBILE_MEDIUM_DEVICE}}},created(){this.observer=null,t.validatePackage(T.packageMetadata),this.showLicenseWatermark=t.shouldShowValidationUI(T.packageMetadata),this.licenseMessage=t.getLicenseMessage(T.packageMetadata),this.base=new fe(this),this.componentGuid=t.guid(),this.anchor=t.guid()},data(){return{showLicenseWatermark:!1,licenseMessage:void 0,focusedTagState:void 0,openState:!1,focusedState:!1,filterState:"",currentValue:[],popupWidth:"200px",windowWidth:0,initialAdaptiveRenderingValues:void 0}},computed:{animationStyles(){return this.windowWidth<=this.adaptiveModeBreakpoints.small?{top:0,width:"100%",height:"100%"}:void 0},classNameAdaptive(){return this.windowWidth<=this.adaptiveModeBreakpoints.small?"k-adaptive-actionsheet k-actionsheet-fullscreen":"k-adaptive-actionsheet k-actionsheet-bottom"},adaptiveState(){return this.windowWidth<=this.adaptiveModeBreakpoints.medium&&this.$props.adaptive},isOpen(){return this.opened!==void 0?this.opened:this.openState},computedValue(){return this.value!==void 0?this.value:this.$props.modelValue!==void 0?this.$props.modelValue:this.currentValue},hasValue(){return!!this.computedValue.length},tagsToRenderRef(){if(this.initialAdaptiveRenderingValues===void 0)return this.tags===void 0?this.computedValue.map(e=>({text:y.getItemValue(e,this.$props.textField),data:[e]})):[...this.tags];{const e=this.initialAdaptiveRenderingValues;return e.length>0&&e.map(i=>({text:y.getItemValue(i,this.$props.textField),data:[i]}))}}},watch:{isOpen:function(e){e&&this.value?this.initialAdaptiveRenderingValues=[...this.value]:this.initialAdaptiveRenderingValues=void 0}},mounted(){this.observer=t.canUseDOM&&window.ResizeObserver&&new ResizeObserver(this.calculateMedia),document!=null&&document.body&&this.observer&&this.observer.observe(document.body),this.elementRef=t.getRef(this,"kendoAnchor"),this.inputRef=t.getRef(this,"input"),this.selectRef=t.getRef(this,"select"),this.treeViewRef=t.getRef(this,"treeView"),this.skipFocusRef=!1,this.popupRef=t.getRef(this,"popup"),this.calculatePopupWidth()},updated(){this.inputRef=t.getRef(this,"input"),this.treeViewRef=t.getRef(this,"treeView"),this.popupRef&&this.isOpen&&this.hasValue&&this.popupRef.reposition(),this.setValidity(),this.calculatePopupWidth()},render(){let e;const i=this.$props.id||this.componentGuid,{dataItems:a,dataItemKey:n,popupSettings:o={},disabled:d,placeholder:l,label:r,name:c,checkField:g,checkIndeterminateField:k,subItemsField:M,validationMessage:P,valid:W,value:C,required:R,validityStyles:z,adaptiveTitle:j}=this.$props,V=t.getTabIndex(this.$props.tabIndex,d),w=oe.provideLocalizationService(this),_=O({validationMessage:P,valid:W,required:R},this.hasValue),b=this.$props.dir,K=this.adaptiveState,N=t.templateRendering.call(this,this.item,t.getListeners.call(this)),G=t.templateRendering.call(this,this.tag,t.getListeners.call(this)),H=t.templateRendering.call(this,this.$props.header,t.getListeners.call(this)),U=t.templateRendering.call(this,this.$props.footer,t.getListeners.call(this)),x=t.getTemplate.call(this,{h:s.h,template:H}),I=t.getTemplate.call(this,{h:s.h,template:U}),J=t.templateRendering.call(this,this.$props.listNoData,t.getListeners.call(this)),Q=s.createVNode(le.ListNoData,null,F(e=w.toLanguageString(p.nodata,p.messages[p.nodata]))?e:{default:()=>[e]}),B=t.getTemplate.call(this,{h:s.h,defaultRendering:Q,template:J}),D=!z||_.valid,{size:h,rounded:m,fillMode:v}=this.$props,X=()=>[s.createVNode("div",{class:"k-actionsheet-titlebar-group k-hbox"},[s.createVNode("div",{class:"k-actionsheet-title"},[s.createVNode("div",{class:"k-text-center"},[j]),s.createVNode("div",{class:"k-actionsheet-subtitle k-text-center"},[l])]),s.createVNode("div",{class:"k-actionsheet-actions"},[s.createVNode($.Button,{tabIndex:5,"aria-label":"Cancel","aria-disabled":"false",type:"button",fillMode:"flat",onClick:this.onCancel,icon:"x",svgIcon:pe.xIcon},null)])]),s.createVNode("div",{class:"k-actionsheet-titlebar-group k-actionsheet-filter"},[this.$props.filterable&&s.createVNode(L.ListFilter,{value:this.$props.filter===void 0?this.filterState:this.$props.filter,ref:t.setRef(this,"input"),onChange:this.onFilterChange,onKeydown:this.onInputKeyDown,size:h,rounded:m,fillMode:v,onFocus:this.onFocus,onBlur:this.onBlur},null)])],Y=t.templateRendering.call(this,X,t.getListeners.call(this)),Z=()=>{const u=w.toLanguageString(p.adaptiveModeFooterCancel,p.messages[p.adaptiveModeFooterCancel]),f=w.toLanguageString(p.adaptiveModeFooterApply,p.messages[p.adaptiveModeFooterApply]);return[s.createVNode($.Button,{size:"large","aria-label":u,"aria-disabled":"false",type:"button",onClick:this.onCancel},F(u)?u:{default:()=>[u]}),s.createVNode($.Button,{themeColor:"primary",size:"large","aria-label":f,"aria-disabled":"false",type:"button",onClick:this.closePopup},F(f)?f:{default:()=>[f]})]},ee=t.templateRendering.call(this,Z,t.getListeners.call(this)),te=()=>{const u=this.base.getTemplateDef.call(this,x,s.h),f=this.base.getTemplateDef.call(this,I,s.h);return[u&&s.createVNode("div",{class:"k-list-header"},[u]),a.length>0?s.createVNode(E.TreeView,{ref:t.setRef(this,"treeView"),tabIndex:V,dataItems:a,focusIdField:n,textField:this.$props.textField,checkField:g,checkIndeterminateField:k,expandField:this.$props.expandField,childrenField:M,expandIcons:!0,onItemclick:this.onChange,onCheckchange:this.onChange,onExpandchange:this.onExpand,onFocus:this.onFocus,onBlur:this.onBlur,onKeydown:this.onWrapperKeyDown,checkboxes:!0,size:"large",item:N},null):B,f&&s.createVNode("div",{class:"k-list-footer"},[f])]},ie=t.templateRendering.call(this,te,t.getListeners.call(this)),se=function(){return s.createVNode(ue.ActionSheet,{expand:this.isOpen,animation:!0,animationStyles:this.animationStyles,className:this.classNameAdaptive,footerClassName:"k-actions k-actions-stretched",contentClassName:"!k-overflow-hidden",header:Y,content:ie,footer:ee,onClose:this.onCancel,navigatableElements:["input.k-input-inner",".k-actionsheet-actions > button"]},null)},ae=function(){return s.createVNode("span",{ref:t.setRef(this,"kendoAnchor"),class:t.classNames("k-multiselecttree k-input",this.$props.className,{[`k-input-${A[h]||h}`]:h,[`k-rounded-${me[m]||m}`]:m,[`k-input-${v}`]:v,"k-focus":this.focusedState&&!d,"k-invalid":!D,"k-disabled":d,"k-loading":this.$props.loading,"k-required":R}),tabindex:V,accesskey:this.$props.accessKey,id:i,dir:b,onKeydown:this.onWrapperKeyDown,onMousedown:this.onWrapperMouseDown,onFocusin:this.onFocus,onFocusout:this.onBlur,role:"combobox","aria-haspopup":"tree","aria-expanded":this.isOpen,"aria-disabled":d,"aria-label":r,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaLabelledBy?this.$props.ariaLabelledBy:"tagslist-"+i,"aria-required":this.$props.required,onClick:this.onWrapperClick},[this.tagsToRenderRef.length>0&&s.createVNode(de.TagList,{id:"tagslist-"+i,class:t.classNames("k-input-values k-chip-list k-selection-multiple",{[`k-chip-list-${A[h]||h}`]:h,"k-readonly":this.hasValue}),tagRender:G,onTagdelete:this.onTagDelete,dataItems:this.tagsToRenderRef,guid:i,focused:this.focusedTagState?this.tagsToRenderRef.find(u=>this.focusedTagState&&y.matchTags(u,this.focusedTagState,n)):void 0,tagsRounded:m,size:h,fillMode:v},null),s.createVNode("span",{class:"k-input-inner",role:"combobox",tabindex:V,"aria-expanded":this.isOpen,"aria-describedby":"tagslist-"+i,"aria-label":this.$props.ariaLabelledBy},[this.tagsToRenderRef.length===0&&s.createVNode("span",{class:"k-input-value-text"},[l])]),this.$props.loading&&s.createVNode(t.Icon,{class:"k-input-loading-icon",name:"loading"},null),this.hasValue&&!d&&s.createVNode(ce.ClearButton,{onClearclick:this.onClear},null),s.createVNode("select",{name:c,ref:t.setRef(this,"select"),tabindex:-1,"aria-hidden":!0,required:R,title:r,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},[s.createVNode("option",{value:this.$props.valueMap?this.$props.valueMap.call(void 0,C):C},null)]),this.showLicenseWatermark?s.createVNode(t.WatermarkOverlay,{message:this.licenseMessage},null):null,!K&&s.createVNode(ne.Popup,{style:{width:this.popupWidth,direction:b},popupClass:t.classNames(o.popupClass,"k-multiselecttree-popup","popup-"+this.componentGuid),class:t.classNames(o.className,{"k-rtl":b==="rtl"}),animate:o.animate,anchor:this.anchor,show:this.isOpen,onOpen:this.onPopupOpened,onClose:this.onPopupClosed,appendTo:o.appendTo,ref:t.setRef(this,"popup")},{default:()=>[this.$props.filterable&&s.createVNode(L.ListFilter,{value:this.$props.filter===void 0?this.filterState:this.$props.filter,ref:t.setRef(this,"input"),onChange:this.onFilterChange,onKeydown:this.onInputKeyDown,size:h,rounded:m,fillMode:v,onFocus:this.onFocus,onBlur:this.onBlur},null),x&&s.createVNode("div",{class:"k-list-header"},[x]),a.length>0?s.createVNode(E.TreeView,{ref:t.setRef(this,"treeView"),tabIndex:V,dataItems:a,focusIdField:n,textField:this.$props.textField,checkField:g,checkIndeterminateField:k,expandField:this.$props.expandField,childrenField:M,expandIcons:!0,onItemclick:this.onChange,onCheckchange:this.onChange,onExpandchange:this.onExpand,onFocus:this.onFocus,onBlur:this.onBlur,onKeydown:this.onWrapperKeyDown,checkboxes:!0,size:h,item:N},null):B,I&&s.createVNode("div",{class:"k-list-footer"},[I])]})])},S=[s.h(ae.call(this),{...this.$attrs}),K&&se.call(this)];return r?s.createVNode(re.FloatingLabel,{label:r,editorValue:this.hasValue,editorPlaceholder:l,editorValid:D,editorDisabled:d,editorId:i,dir:b},F(S)?S:{default:()=>[S]}):S},methods:{clearFilter(e){this.onFilterChange(e,"")},onCancel(e){const i={event:e,target:this},a={items:[],operation:"toggle",value:this.initialAdaptiveRenderingValues,...i};this.$emit("change",a),this.closePopup(e)},calculateMedia(e){for(let i of e)this.windowWidth=i.target.clientWidth},calculatePopupWidth(){this.elementRef&&(this.popupWidth=this.popupSettings.width!==void 0?this.popupSettings.width:this.elementRef.offsetWidth+"px")},focus(){this.$el&&this.$el.focus()},setValidity(){if(this.selectRef&&this.selectRef.setCustomValidity){const{validationMessage:e,valid:i,required:a}=this.$props,n=O({validationMessage:e,valid:i,required:a},this.hasValue);this.selectRef.setCustomValidity(n.valid?"":this.validationMessage===void 0?ge:this.validationMessage)}},changeValue(e,i,a){const n={dataItemKey:this.dataItemKey,checkField:this.checkField,checkIndeterminateField:this.checkIndeterminateField,expandField:this.expandField,subItemsField:this.subItemsField},o=he.getMultiSelectTreeValue(this.dataItems,{...n,items:i,operation:a,value:this.computedValue}),d={items:i,operation:a,value:o,...e};this.$emit("changemodel",o),this.$emit("update:modelValue",o),this.$emit("change",d)},onChange(e){if(y.areSame(e.item,this.computedValue,this.dataItemKey))return;const{item:i,event:a}=e,n={event:a,target:this};this.changeValue(n,[i],"toggle")},openPopup(e){if(!this.isOpen){const i={...e};this.$emit("open",i),this.opened===void 0&&(this.openState=!0)}},closePopup(e){if(this.$props.filterable&&this.clearFilter({...e,target:{...e.target,value:""}}),this.isOpen){const i={...e};this.$emit("close",i),this.opened===void 0&&(this.openState=!1)}},switchFocus(e){this.skipFocusRef=!0,e(),window.setTimeout(()=>this.skipFocusRef=!1,0)},focusElement(e){e&&this.switchFocus(()=>e.focus())},onPopupOpened(){if(!this.focusedState&&this.isOpen)this.closePopup({target:this});else if(this.$props.filterable){const e=this.inputRef&&this.inputRef.input;this.focusElement(e)}else this.focusElement(this.treeViewRef&&this.treeViewRef.input)},onPopupClosed(){this.focusedState&&this.focusElement(this.elementRef)},onFocus(e){if(!this.focusedState&&!this.skipFocusRef){this.focusedState=!0;const i={event:e,target:this};this.$emit("focus",i)}},onBlur(e){var i;if(this.focusedState&&!this.skipFocusRef&&!this.adaptiveState){this.focusedTagState=void 0,this.focusedState=!1;const a={event:e,target:this},n={...a},o=e.relatedTarget||((i=e.event)==null?void 0:i.relatedTarget);o!=null&&o.closest(".popup-"+this.componentGuid)||(this.$emit("blur",n),this.closePopup(a))}},onWrapperMouseDown(){this.focusedState&&this.switchFocus(t.noop)},onWrapperClick(e){if(!this.$props.disabled&&!e.defaultPrevented){this.focusedState=!0;const i={event:e,target:this};this.isOpen||this.openPopup(i)}},onWrapperKeyDown(e){const{keyCode:i,altKey:a}=e,n=this.treeViewRef&&this.treeViewRef.$el,o=this.inputRef&&this.inputRef.input;if(this.$props.disabled||e.defaultPrevented&&o===e.target)return;const d={event:e,target:this};if(this.computedValue&&this.computedValue.length>0&&(i===t.Keys.left||i===t.Keys.right||i===t.Keys.home||i===t.Keys.end||i===t.Keys.delete||i===t.Keys.backspace)){const l=this.tagsToRenderRef;let r=this.focusedTagState?l.findIndex(k=>y.matchTags(k,this.focusedTagState,this.dataItemKey)):-1,c;const g=r!==-1;i===t.Keys.left?(g?r=Math.max(0,r-1):r=l.length-1,c=l[r]):i===t.Keys.right?g?(r=Math.min(l.length-1,r+1),c=l[r]):c=l[0]:i===t.Keys.home?c=l[0]:i===t.Keys.end?c=l[l.length-1]:(i===t.Keys.delete||i===t.Keys.backspace)&&g&&this.changeValue(d,l[r].data,"delete"),c!==this.focusedTagState&&(this.focusedTagState=c)}if(this.isOpen)if(i===t.Keys.esc||a&&i===t.Keys.up)e.preventDefault(),this.switchFocus(()=>{this.focusElement(this.elementRef)}),this.closePopup(d);else if(n&&n.querySelector(".k-focus")&&(i===t.Keys.up||i===t.Keys.down||i===t.Keys.left||i===t.Keys.right||i===t.Keys.home||i===t.Keys.end)){if(i===t.Keys.up){const l=Array.from(n.querySelectorAll(".k-treeview-item")),r=[...l].reverse().find(c=>!!(c&&c.querySelector(".k-focus")));if(r&&l.indexOf(r)===0)return this.switchFocus(()=>{this.focusElement(o||this.elementRef)})}this.switchFocus(t.noop)}else i===t.Keys.down&&this.switchFocus(()=>{this.focusElement(o||n)});else a&&i===t.Keys.down&&(e.preventDefault(),this.openPopup(d))},onInputKeyDown(e){const{keyCode:i,altKey:a}=e;(i===t.Keys.esc||a&&i===t.Keys.up)&&(e.preventDefault(),this.switchFocus(()=>{this.focusElement(this.elementRef)}),i===t.Keys.esc&&this.adaptiveState?this.onCancel(e):this.closePopup(e)),!(a||i!==t.Keys.up&&i!==t.Keys.down)&&(e.preventDefault(),this.switchFocus(i===t.Keys.up?()=>{this.focusElement(this.elementRef)}:()=>{this.focusElement(this.treeViewRef&&this.treeViewRef.$el)}))},onClear(e){const i={event:e,target:this};this.changeValue(i,[],"clear"),this.closePopup(i),this.filterState="",e.preventDefault()},onTagDelete(e,i){if(this.closePopup({target:this}),!this.focusedState){const a=this.inputRef&&this.inputRef.input;this.focusElement(a)}this.changeValue({event:i,target:this},e,"delete")},onExpand(e){const{item:i,itemHierarchicalIndex:a,event:n}=e,o={level:ve(a),item:i,event:n,target:this};this.$emit("expandchange",o)},onFilterChange(e,i){const a=i?"":e.target.value,o={filter:{field:this.$props.textField,operator:"contains",value:a},event:e,target:this};this.$emit("filterchange",o),this.$props.filter===void 0&&(this.filterState=a)}}});exports.MultiSelectTree=ye;
@@ -5,32 +5,32 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as me, h as S, createVNode as s, isVNode as ge } from "vue";
9
- import { Keys as a, noop as N, getTabIndex as ve, templateRendering as u, getListeners as f, getTemplate as D, getRef as g, canUseDOM as be, validatePackage as ke, guid as z, setRef as v, classNames as V, kendoThemeMaps as Se, Icon as ye } from "@progress/kendo-vue-common";
10
- import { Popup as Fe } from "@progress/kendo-vue-popup";
11
- import { provideLocalizationService as we } from "@progress/kendo-vue-intl";
12
- import { TreeView as q } from "@progress/kendo-vue-treeview";
13
- import { packageMetadata as Re } from "../package-metadata.mjs";
14
- import { matchTags as j, areSame as xe, getItemValue as _ } from "../common/utils.mjs";
15
- import { ListNoData as Ve } from "../DropDownTree/ListNoData.mjs";
16
- import { nodata as G, messages as E, adaptiveModeFooterCancel as H, adaptiveModeFooterApply as U } from "../messages/main.mjs";
17
- import { FloatingLabel as $e } from "@progress/kendo-vue-labels";
18
- import { Button as B } from "@progress/kendo-vue-buttons";
19
- import { TagList as Ie } from "../MultiSelect/TagList.mjs";
20
- import { ClearButton as Te } from "../common/ClearButton.mjs";
21
- import { ListFilter as J } from "../common/ListFilter.mjs";
22
- import { getMultiSelectTreeValue as Ce } from "./utils.mjs";
23
- import { MOBILE_MEDIUM_DEVICE as Me, MOBILE_SMALL_DEVICE as De } from "../common/constants.mjs";
24
- import { ActionSheet as Ee } from "@progress/kendo-vue-layout";
25
- import { xIcon as Be } from "@progress/kendo-svg-icons";
26
- import Ae from "../common/DropDownBase.mjs";
8
+ import { defineComponent as ge, h as S, createVNode as s, isVNode as ve } from "vue";
9
+ import { Keys as a, noop as z, getTabIndex as ke, templateRendering as u, getListeners as f, getTemplate as D, getRef as g, canUseDOM as be, validatePackage as Se, shouldShowValidationUI as ye, getLicenseMessage as Fe, guid as q, setRef as v, classNames as V, kendoThemeMaps as we, Icon as Re, WatermarkOverlay as xe } from "@progress/kendo-vue-common";
10
+ import { Popup as Ve } from "@progress/kendo-vue-popup";
11
+ import { provideLocalizationService as $e } from "@progress/kendo-vue-intl";
12
+ import { TreeView as j } from "@progress/kendo-vue-treeview";
13
+ import { packageMetadata as E } from "../package-metadata.mjs";
14
+ import { matchTags as _, areSame as Ie, getItemValue as G } from "../common/utils.mjs";
15
+ import { ListNoData as Te } from "../DropDownTree/ListNoData.mjs";
16
+ import { nodata as H, messages as B, adaptiveModeFooterCancel as U, adaptiveModeFooterApply as J } from "../messages/main.mjs";
17
+ import { FloatingLabel as Ce } from "@progress/kendo-vue-labels";
18
+ import { Button as A } from "@progress/kendo-vue-buttons";
19
+ import { TagList as Me } from "../MultiSelect/TagList.mjs";
20
+ import { ClearButton as De } from "../common/ClearButton.mjs";
21
+ import { ListFilter as Q } from "../common/ListFilter.mjs";
22
+ import { getMultiSelectTreeValue as Ee } from "./utils.mjs";
23
+ import { MOBILE_MEDIUM_DEVICE as Be, MOBILE_SMALL_DEVICE as Ae } from "../common/constants.mjs";
24
+ import { ActionSheet as Oe } from "@progress/kendo-vue-layout";
25
+ import { xIcon as Le } from "@progress/kendo-svg-icons";
26
+ import Pe from "../common/DropDownBase.mjs";
27
27
  function $(e) {
28
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ge(e);
28
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ve(e);
29
29
  }
30
- const Oe = "Please select a value from the list!", {
31
- sizeMap: Q,
32
- roundedMap: Pe
33
- } = Se, Ke = (e) => e.split("_").map((t) => parseInt(t, 10)), X = (e, t) => {
30
+ const We = "Please select a value from the list!", {
31
+ sizeMap: X,
32
+ roundedMap: Ke
33
+ } = we, Ne = (e) => e.split("_").map((t) => parseInt(t, 10)), Y = (e, t) => {
34
34
  const {
35
35
  validationMessage: i,
36
36
  valid: n,
@@ -41,7 +41,7 @@ const Oe = "Please select a value from the list!", {
41
41
  valid: !!(n !== void 0 ? n : !o || t),
42
42
  valueMissing: !t
43
43
  };
44
- }, nt = /* @__PURE__ */ me({
44
+ }, rt = /* @__PURE__ */ ge({
45
45
  name: "KendoMultiSelectTree",
46
46
  model: {
47
47
  event: "changemodel"
@@ -165,16 +165,18 @@ const Oe = "Please select a value from the list!", {
165
165
  },
166
166
  adaptiveModeBreakpoints: {
167
167
  default: {
168
- small: De,
169
- medium: Me
168
+ small: Ae,
169
+ medium: Be
170
170
  }
171
171
  }
172
172
  },
173
173
  created() {
174
- this.observer = null, ke(Re), this.base = new Ae(this), this.componentGuid = z(), this.anchor = z();
174
+ this.observer = null, Se(E), this.showLicenseWatermark = ye(E), this.licenseMessage = Fe(E), this.base = new Pe(this), this.componentGuid = q(), this.anchor = q();
175
175
  },
176
176
  data() {
177
177
  return {
178
+ showLicenseWatermark: !1,
179
+ licenseMessage: void 0,
178
180
  focusedTagState: void 0,
179
181
  openState: !1,
180
182
  focusedState: !1,
@@ -211,13 +213,13 @@ const Oe = "Please select a value from the list!", {
211
213
  tagsToRenderRef() {
212
214
  if (this.initialAdaptiveRenderingValues === void 0)
213
215
  return this.tags === void 0 ? this.computedValue.map((e) => ({
214
- text: _(e, this.$props.textField),
216
+ text: G(e, this.$props.textField),
215
217
  data: [e]
216
218
  })) : [...this.tags];
217
219
  {
218
220
  const e = this.initialAdaptiveRenderingValues;
219
221
  return e.length > 0 && e.map((t) => ({
220
- text: _(t, this.$props.textField),
222
+ text: G(t, this.$props.textField),
221
223
  data: [t]
222
224
  }));
223
225
  }
@@ -245,46 +247,46 @@ const Oe = "Please select a value from the list!", {
245
247
  placeholder: l,
246
248
  label: r,
247
249
  name: h,
248
- checkField: b,
250
+ checkField: k,
249
251
  checkIndeterminateField: F,
250
- subItemsField: A,
251
- validationMessage: Y,
252
- valid: Z,
253
- value: O,
252
+ subItemsField: O,
253
+ validationMessage: Z,
254
+ valid: ee,
255
+ value: L,
254
256
  required: I,
255
- validityStyles: ee,
256
- adaptiveTitle: te
257
- } = this.$props, w = ve(this.$props.tabIndex, d), T = we(this), ie = X({
258
- validationMessage: Y,
259
- valid: Z,
257
+ validityStyles: te,
258
+ adaptiveTitle: ie
259
+ } = this.$props, w = ke(this.$props.tabIndex, d), T = $e(this), se = Y({
260
+ validationMessage: Z,
261
+ valid: ee,
260
262
  required: I
261
- }, this.hasValue), R = this.$props.dir, P = this.adaptiveState, K = u.call(this, this.item, f.call(this)), se = u.call(this, this.tag, f.call(this)), ae = u.call(this, this.$props.header, f.call(this)), ne = u.call(this, this.$props.footer, f.call(this)), C = D.call(this, {
263
+ }, this.hasValue), R = this.$props.dir, P = this.adaptiveState, W = u.call(this, this.item, f.call(this)), ae = u.call(this, this.tag, f.call(this)), ne = u.call(this, this.$props.header, f.call(this)), oe = u.call(this, this.$props.footer, f.call(this)), C = D.call(this, {
262
264
  h: S,
263
- template: ae
265
+ template: ne
264
266
  }), M = D.call(this, {
265
267
  h: S,
266
- template: ne
267
- }), oe = u.call(this, this.$props.listNoData, f.call(this)), le = s(Ve, null, $(e = T.toLanguageString(G, E[G])) ? e : {
268
+ template: oe
269
+ }), le = u.call(this, this.$props.listNoData, f.call(this)), re = s(Te, null, $(e = T.toLanguageString(H, B[H])) ? e : {
268
270
  default: () => [e]
269
- }), L = D.call(this, {
271
+ }), K = D.call(this, {
270
272
  h: S,
271
- defaultRendering: le,
272
- template: oe
273
- }), W = !ee || ie.valid, {
273
+ defaultRendering: re,
274
+ template: le
275
+ }), N = !te || se.valid, {
274
276
  size: c,
275
- rounded: k,
277
+ rounded: b,
276
278
  fillMode: y
277
- } = this.$props, re = () => [s("div", {
279
+ } = this.$props, de = () => [s("div", {
278
280
  class: "k-actionsheet-titlebar-group k-hbox"
279
281
  }, [s("div", {
280
282
  class: "k-actionsheet-title"
281
283
  }, [s("div", {
282
284
  class: "k-text-center"
283
- }, [te]), s("div", {
285
+ }, [ie]), s("div", {
284
286
  class: "k-actionsheet-subtitle k-text-center"
285
287
  }, [l])]), s("div", {
286
288
  class: "k-actionsheet-actions"
287
- }, [s(B, {
289
+ }, [s(A, {
288
290
  tabIndex: 5,
289
291
  "aria-label": "Cancel",
290
292
  "aria-disabled": "false",
@@ -292,22 +294,22 @@ const Oe = "Please select a value from the list!", {
292
294
  fillMode: "flat",
293
295
  onClick: this.onCancel,
294
296
  icon: "x",
295
- svgIcon: Be
297
+ svgIcon: Le
296
298
  }, null)])]), s("div", {
297
299
  class: "k-actionsheet-titlebar-group k-actionsheet-filter"
298
- }, [this.$props.filterable && s(J, {
300
+ }, [this.$props.filterable && s(Q, {
299
301
  value: this.$props.filter === void 0 ? this.filterState : this.$props.filter,
300
302
  ref: v(this, "input"),
301
303
  onChange: this.onFilterChange,
302
304
  onKeydown: this.onInputKeyDown,
303
305
  size: c,
304
- rounded: k,
306
+ rounded: b,
305
307
  fillMode: y,
306
308
  onFocus: this.onFocus,
307
309
  onBlur: this.onBlur
308
- }, null)])], de = u.call(this, re, f.call(this)), he = () => {
309
- const p = T.toLanguageString(H, E[H]), m = T.toLanguageString(U, E[U]);
310
- return [s(B, {
310
+ }, null)])], he = u.call(this, de, f.call(this)), ce = () => {
311
+ const p = T.toLanguageString(U, B[U]), m = T.toLanguageString(J, B[J]);
312
+ return [s(A, {
311
313
  size: "large",
312
314
  "aria-label": p,
313
315
  "aria-disabled": "false",
@@ -315,7 +317,7 @@ const Oe = "Please select a value from the list!", {
315
317
  onClick: this.onCancel
316
318
  }, $(p) ? p : {
317
319
  default: () => [p]
318
- }), s(B, {
320
+ }), s(A, {
319
321
  themeColor: "primary",
320
322
  size: "large",
321
323
  "aria-label": m,
@@ -325,20 +327,20 @@ const Oe = "Please select a value from the list!", {
325
327
  }, $(m) ? m : {
326
328
  default: () => [m]
327
329
  })];
328
- }, ce = u.call(this, he, f.call(this)), pe = () => {
330
+ }, pe = u.call(this, ce, f.call(this)), ue = () => {
329
331
  const p = this.base.getTemplateDef.call(this, C, S), m = this.base.getTemplateDef.call(this, M, S);
330
332
  return [p && s("div", {
331
333
  class: "k-list-header"
332
- }, [p]), i.length > 0 ? s(q, {
334
+ }, [p]), i.length > 0 ? s(j, {
333
335
  ref: v(this, "treeView"),
334
336
  tabIndex: w,
335
337
  dataItems: i,
336
338
  focusIdField: n,
337
339
  textField: this.$props.textField,
338
- checkField: b,
340
+ checkField: k,
339
341
  checkIndeterminateField: F,
340
342
  expandField: this.$props.expandField,
341
- childrenField: A,
343
+ childrenField: O,
342
344
  expandIcons: !0,
343
345
  onItemclick: this.onChange,
344
346
  onCheckchange: this.onChange,
@@ -348,21 +350,21 @@ const Oe = "Please select a value from the list!", {
348
350
  onKeydown: this.onWrapperKeyDown,
349
351
  checkboxes: !0,
350
352
  size: "large",
351
- item: K
352
- }, null) : L, m && s("div", {
353
+ item: W
354
+ }, null) : K, m && s("div", {
353
355
  class: "k-list-footer"
354
356
  }, [m])];
355
- }, ue = u.call(this, pe, f.call(this)), fe = function() {
356
- return s(Ee, {
357
+ }, fe = u.call(this, ue, f.call(this)), me = function() {
358
+ return s(Oe, {
357
359
  expand: this.isOpen,
358
360
  animation: !0,
359
361
  animationStyles: this.animationStyles,
360
362
  className: this.classNameAdaptive,
361
363
  footerClassName: "k-actions k-actions-stretched",
362
364
  contentClassName: "!k-overflow-hidden",
363
- header: de,
364
- content: ue,
365
- footer: ce,
365
+ header: he,
366
+ content: fe,
367
+ footer: pe,
366
368
  onClose: this.onCancel,
367
369
  navigatableElements: ["input.k-input-inner", ".k-actionsheet-actions > button"]
368
370
  }, null);
@@ -370,11 +372,11 @@ const Oe = "Please select a value from the list!", {
370
372
  return s("span", {
371
373
  ref: v(this, "kendoAnchor"),
372
374
  class: V("k-multiselecttree k-input", this.$props.className, {
373
- [`k-input-${Q[c] || c}`]: c,
374
- [`k-rounded-${Pe[k] || k}`]: k,
375
+ [`k-input-${X[c] || c}`]: c,
376
+ [`k-rounded-${Ke[b] || b}`]: b,
375
377
  [`k-input-${y}`]: y,
376
378
  "k-focus": this.focusedState && !d,
377
- "k-invalid": !W,
379
+ "k-invalid": !N,
378
380
  "k-disabled": d,
379
381
  "k-loading": this.$props.loading,
380
382
  "k-required": I
@@ -397,18 +399,18 @@ const Oe = "Please select a value from the list!", {
397
399
  "aria-required": this.$props.required,
398
400
  onClick: this.onWrapperClick
399
401
  }, [
400
- this.tagsToRenderRef.length > 0 && s(Ie, {
402
+ this.tagsToRenderRef.length > 0 && s(Me, {
401
403
  id: "tagslist-" + t,
402
404
  class: V("k-input-values k-chip-list k-selection-multiple", {
403
- [`k-chip-list-${Q[c] || c}`]: c,
405
+ [`k-chip-list-${X[c] || c}`]: c,
404
406
  "k-readonly": this.hasValue
405
407
  }),
406
- tagRender: se,
408
+ tagRender: ae,
407
409
  onTagdelete: this.onTagDelete,
408
410
  dataItems: this.tagsToRenderRef,
409
411
  guid: t,
410
- focused: this.focusedTagState ? this.tagsToRenderRef.find((p) => this.focusedTagState && j(p, this.focusedTagState, n)) : void 0,
411
- tagsRounded: k,
412
+ focused: this.focusedTagState ? this.tagsToRenderRef.find((p) => this.focusedTagState && _(p, this.focusedTagState, n)) : void 0,
413
+ tagsRounded: b,
412
414
  size: c,
413
415
  fillMode: y
414
416
  }, null),
@@ -422,11 +424,11 @@ const Oe = "Please select a value from the list!", {
422
424
  }, [this.tagsToRenderRef.length === 0 && s("span", {
423
425
  class: "k-input-value-text"
424
426
  }, [l])]),
425
- this.$props.loading && s(ye, {
427
+ this.$props.loading && s(Re, {
426
428
  class: "k-input-loading-icon",
427
429
  name: "loading"
428
430
  }, null),
429
- this.hasValue && !d && s(Te, {
431
+ this.hasValue && !d && s(De, {
430
432
  onClearclick: this.onClear
431
433
  }, null),
432
434
  /* Dummy component to support forms */
@@ -446,9 +448,12 @@ const Oe = "Please select a value from the list!", {
446
448
  left: "50%"
447
449
  }
448
450
  }, [s("option", {
449
- value: this.$props.valueMap ? this.$props.valueMap.call(void 0, O) : O
451
+ value: this.$props.valueMap ? this.$props.valueMap.call(void 0, L) : L
450
452
  }, null)]),
451
- !P && s(Fe, {
453
+ this.showLicenseWatermark ? s(xe, {
454
+ message: this.licenseMessage
455
+ }, null) : null,
456
+ !P && s(Ve, {
452
457
  style: {
453
458
  width: this.popupWidth,
454
459
  direction: R
@@ -465,28 +470,28 @@ const Oe = "Please select a value from the list!", {
465
470
  appendTo: o.appendTo,
466
471
  ref: v(this, "popup")
467
472
  }, {
468
- default: () => [this.$props.filterable && s(J, {
473
+ default: () => [this.$props.filterable && s(Q, {
469
474
  value: this.$props.filter === void 0 ? this.filterState : this.$props.filter,
470
475
  ref: v(this, "input"),
471
476
  onChange: this.onFilterChange,
472
477
  onKeydown: this.onInputKeyDown,
473
478
  size: c,
474
- rounded: k,
479
+ rounded: b,
475
480
  fillMode: y,
476
481
  onFocus: this.onFocus,
477
482
  onBlur: this.onBlur
478
483
  }, null), C && s("div", {
479
484
  class: "k-list-header"
480
- }, [C]), i.length > 0 ? s(q, {
485
+ }, [C]), i.length > 0 ? s(j, {
481
486
  ref: v(this, "treeView"),
482
487
  tabIndex: w,
483
488
  dataItems: i,
484
489
  focusIdField: n,
485
490
  textField: this.$props.textField,
486
- checkField: b,
491
+ checkField: k,
487
492
  checkIndeterminateField: F,
488
493
  expandField: this.$props.expandField,
489
- childrenField: A,
494
+ childrenField: O,
490
495
  expandIcons: !0,
491
496
  onItemclick: this.onChange,
492
497
  onCheckchange: this.onChange,
@@ -496,20 +501,20 @@ const Oe = "Please select a value from the list!", {
496
501
  onKeydown: this.onWrapperKeyDown,
497
502
  checkboxes: !0,
498
503
  size: c,
499
- item: K
500
- }, null) : L, M && s("div", {
504
+ item: W
505
+ }, null) : K, M && s("div", {
501
506
  class: "k-list-footer"
502
507
  }, [M])]
503
508
  })
504
509
  ]);
505
510
  }.call(this), {
506
511
  ...this.$attrs
507
- }), P && fe.call(this)];
508
- return r ? s($e, {
512
+ }), P && me.call(this)];
513
+ return r ? s(Ce, {
509
514
  label: r,
510
515
  editorValue: this.hasValue,
511
516
  editorPlaceholder: l,
512
- editorValid: W,
517
+ editorValid: N,
513
518
  editorDisabled: d,
514
519
  editorId: t,
515
520
  dir: R
@@ -549,12 +554,12 @@ const Oe = "Please select a value from the list!", {
549
554
  validationMessage: e,
550
555
  valid: t,
551
556
  required: i
552
- } = this.$props, n = X({
557
+ } = this.$props, n = Y({
553
558
  validationMessage: e,
554
559
  valid: t,
555
560
  required: i
556
561
  }, this.hasValue);
557
- this.selectRef.setCustomValidity(n.valid ? "" : this.validationMessage === void 0 ? Oe : this.validationMessage);
562
+ this.selectRef.setCustomValidity(n.valid ? "" : this.validationMessage === void 0 ? We : this.validationMessage);
558
563
  }
559
564
  },
560
565
  changeValue(e, t, i) {
@@ -564,7 +569,7 @@ const Oe = "Please select a value from the list!", {
564
569
  checkIndeterminateField: this.checkIndeterminateField,
565
570
  expandField: this.expandField,
566
571
  subItemsField: this.subItemsField
567
- }, o = Ce(this.dataItems, {
572
+ }, o = Ee(this.dataItems, {
568
573
  ...n,
569
574
  items: t,
570
575
  operation: i,
@@ -578,7 +583,7 @@ const Oe = "Please select a value from the list!", {
578
583
  this.$emit("changemodel", o), this.$emit("update:modelValue", o), this.$emit("change", d);
579
584
  },
580
585
  onChange(e) {
581
- if (xe(e.item, this.computedValue, this.dataItemKey))
586
+ if (Ie(e.item, this.computedValue, this.dataItemKey))
582
587
  return;
583
588
  const {
584
589
  item: t,
@@ -655,7 +660,7 @@ const Oe = "Please select a value from the list!", {
655
660
  }
656
661
  },
657
662
  onWrapperMouseDown() {
658
- this.focusedState && this.switchFocus(N);
663
+ this.focusedState && this.switchFocus(z);
659
664
  },
660
665
  onWrapperClick(e) {
661
666
  if (!this.$props.disabled && !e.defaultPrevented) {
@@ -680,9 +685,9 @@ const Oe = "Please select a value from the list!", {
680
685
  };
681
686
  if (this.computedValue && this.computedValue.length > 0 && (t === a.left || t === a.right || t === a.home || t === a.end || t === a.delete || t === a.backspace)) {
682
687
  const l = this.tagsToRenderRef;
683
- let r = this.focusedTagState ? l.findIndex((F) => j(F, this.focusedTagState, this.dataItemKey)) : -1, h;
684
- const b = r !== -1;
685
- t === a.left ? (b ? r = Math.max(0, r - 1) : r = l.length - 1, h = l[r]) : t === a.right ? b ? (r = Math.min(l.length - 1, r + 1), h = l[r]) : h = l[0] : t === a.home ? h = l[0] : t === a.end ? h = l[l.length - 1] : (t === a.delete || t === a.backspace) && b && this.changeValue(d, l[r].data, "delete"), h !== this.focusedTagState && (this.focusedTagState = h);
688
+ let r = this.focusedTagState ? l.findIndex((F) => _(F, this.focusedTagState, this.dataItemKey)) : -1, h;
689
+ const k = r !== -1;
690
+ t === a.left ? (k ? r = Math.max(0, r - 1) : r = l.length - 1, h = l[r]) : t === a.right ? k ? (r = Math.min(l.length - 1, r + 1), h = l[r]) : h = l[0] : t === a.home ? h = l[0] : t === a.end ? h = l[l.length - 1] : (t === a.delete || t === a.backspace) && k && this.changeValue(d, l[r].data, "delete"), h !== this.focusedTagState && (this.focusedTagState = h);
686
691
  }
687
692
  if (this.isOpen)
688
693
  if (t === a.esc || i && t === a.up)
@@ -697,7 +702,7 @@ const Oe = "Please select a value from the list!", {
697
702
  this.focusElement(o || this.elementRef);
698
703
  });
699
704
  }
700
- this.switchFocus(N);
705
+ this.switchFocus(z);
701
706
  } else t === a.down && this.switchFocus(() => {
702
707
  this.focusElement(o || n);
703
708
  });
@@ -742,7 +747,7 @@ const Oe = "Please select a value from the list!", {
742
747
  itemHierarchicalIndex: i,
743
748
  event: n
744
749
  } = e, o = {
745
- level: Ke(i),
750
+ level: Ne(i),
746
751
  item: t,
747
752
  event: n,
748
753
  target: this
@@ -764,5 +769,5 @@ const Oe = "Please select a value from the list!", {
764
769
  }
765
770
  });
766
771
  export {
767
- nt as MultiSelectTree
772
+ rt as MultiSelectTree
768
773
  };