@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.
@@ -315,10 +315,10 @@ declare const AutoComplete: import('vue').DefineComponent<import('vue').ExtractP
315
315
  inputAttributes: PropType<Object>;
316
316
  }>> & Readonly<{}>, {
317
317
  required: boolean;
318
+ dir: string;
318
319
  value: string;
319
320
  ariaLabel: string;
320
321
  tabIndex: number;
321
- dir: string;
322
322
  defaultValue: string;
323
323
  opened: boolean;
324
324
  popupSettings: import('./../common/settings').DropDownsPopupSettings;
@@ -350,13 +350,13 @@ declare const ComboBox: import('vue').DefineComponent<import('vue').ExtractPropT
350
350
  }>, {
351
351
  filter: string;
352
352
  required: boolean;
353
+ dir: string;
353
354
  value: any;
354
355
  ariaLabel: string;
355
356
  tabIndex: number;
356
357
  virtual: import('./../common/settings').VirtualizationSettings;
357
358
  adaptive: boolean;
358
359
  clearButton: boolean;
359
- dir: string;
360
360
  defaultValue: any;
361
361
  opened: boolean;
362
362
  popupSettings: import('./../common/settings').DropDownsPopupSettings;
@@ -333,11 +333,11 @@ declare const DropDownList: import('vue').DefineComponent<import('vue').ExtractP
333
333
  }>> & Readonly<{}>, {
334
334
  filter: string;
335
335
  required: boolean;
336
+ dir: string;
336
337
  value: any;
337
338
  tabIndex: number;
338
339
  virtual: import('./../common/settings').VirtualizationSettings;
339
340
  adaptive: boolean;
340
- dir: string;
341
341
  defaultValue: any;
342
342
  opened: boolean;
343
343
  popupSettings: import('./../common/settings').DropDownsPopupSettings;
@@ -120,6 +120,8 @@ declare const DropDownTree: import('vue').DefineComponent<import('vue').ExtractP
120
120
  default: any;
121
121
  };
122
122
  }>, {}, {
123
+ showLicenseWatermark: boolean;
124
+ licenseMessage: any;
123
125
  currentOpened: boolean;
124
126
  focused: boolean;
125
127
  filterState: string;
@@ -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"),t=require("@progress/kendo-vue-common"),se=require("@progress/kendo-vue-popup"),ne=require("@progress/kendo-vue-intl"),M=require("@progress/kendo-vue-treeview"),oe=require("../package-metadata.js"),V=require("../common/utils.js"),ae=require("./ListNoData.js"),c=require("../messages/main.js"),le=require("@progress/kendo-vue-labels"),T=require("../common/ListFilter.js"),O=require("@progress/kendo-vue-buttons"),k=require("@progress/kendo-svg-icons"),B=require("../common/constants.js"),re=require("@progress/kendo-vue-layout"),de=require("../common/DropDownBase.js");function K(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!s.isVNode(e)}const{sizeMap:ue,roundedMap:ce}=t.kendoThemeMaps,pe="Please select a value from the list!",E=e=>e.split("_").map(i=>parseInt(i,10)),w=(e,i)=>{const{validationMessage:n,valid:o,required:a}=e;return{customError:n!==void 0,valid:!!(o!==void 0?o:!a||i),valueMissing:!i}},he=s.defineComponent({name:"KendoDropDownTree",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:{type:[Object,String,Number,Boolean],default:function(){}},modelValue:{type:[Object,String,Number,Boolean],default:function(){}},valueMap:Function,placeholder:String,dataItemKey:{type:String,required:!0},textField:{type:String,required:!0},selectField:{type:String,default:"selected"},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,ariaLabel:{type:String,default:void 0},ariaLabelledBy:String,ariaDescribedBy:String,filterable:Boolean,filter:String,loading:Boolean,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],header:[String,Function,Object],footer:[String,Function,Object],valueRender:[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:B.MOBILE_SMALL_DEVICE,medium:B.MOBILE_MEDIUM_DEVICE}}},created(){this.observer=null,t.validatePackage(oe.packageMetadata),this.base=new de(this),this.componentGuid=t.guid(),this.anchor=t.guid()},data(){return{currentOpened:!1,focused:!1,filterState:"",currentValue:void 0,popupWidth:"200px",windowWidth:0,initialAdaptiveRenderingValues:void 0}},computed:{wrapperClass(){const{validationMessage:e,valid:i,required:n,validityStyles:o}=this.$props,a=w({validationMessage:e,valid:i,required:n},this.hasValue),d=!o||a.valid,{size:r,rounded:l,fillMode:u}=this.$props;return{"k-dropdowntree":!0,"k-picker":!0,[this.$props.className]:this.$props.className,[`k-picker-${ue[r]||r}`]:r,[`k-rounded-${ce[l]||l}`]:l,[`k-picker-${u}`]:u,"k-focus":this.focused,"k-invalid":!d,"k-loading":this.$props.loading,"k-required":n,"k-disabled":this.$props.disabled}},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.currentOpened},computedValue(){return this.value!==void 0?this.value:this.$props.modelValue!==void 0?this.$props.modelValue:this.currentValue},hasValue(){return V.isPresent(this.computedValue)},currentValueText(){return this.hasValue?V.getItemValue(this.computedValue,this.$props.textField):""}},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:n,dataItemKey:o,popupSettings:a,disabled:d,placeholder:r,label:l,name:u,selectField:S,subItemsField:R,validationMessage:L,valid:q,required:$,validityStyles:P,adaptiveTitle:W}=this.$props,g=t.getTabIndex(this.$props.tabIndex,d),F=ne.provideLocalizationService(this),A=w({validationMessage:L,valid:q,required:$},this.hasValue),x=this.adaptiveState,p=this.$props.dir,I=t.templateRendering.call(this,this.item,t.getListeners.call(this)),z=t.templateRendering.call(this,this.valueRender,t.getListeners.call(this)),j=t.templateRendering.call(this,this.$props.header,t.getListeners.call(this)),_=t.templateRendering.call(this,this.$props.footer,t.getListeners.call(this)),v=t.getTemplate.call(this,{h:s.h,template:j}),y=t.getTemplate.call(this,{h:s.h,template:_}),G=t.templateRendering.call(this,this.$props.listNoData,t.getListeners.call(this)),H=s.createVNode(ae.ListNoData,null,K(e=F.toLanguageString(c.nodata,c.messages[c.nodata]))?e:{default:()=>[e]}),N=t.getTemplate.call(this,{h:s.h,defaultRendering:H,template:G}),U=s.createVNode("span",{class:"k-input-value-text"},[this.currentValueText||r]),J=t.getTemplate.call(this,{h:s.h,defaultRendering:U,template:z,additionalProps:{value:this.computedValue}}),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"},[W]),s.createVNode("div",{class:"k-actionsheet-subtitle k-text-center"},[r])]),s.createVNode("div",{class:"k-actionsheet-actions"},[s.createVNode(O.Button,{tabIndex:1,"aria-label":"Cancel","aria-disabled":"false",type:"button",fillMode:"flat",onClick:this.onWrapperClick,icon:"x",svgIcon:k.xIcon},null)])]),s.createVNode("div",{class:"k-actionsheet-titlebar-group k-actionsheet-filter"},[this.$props.filterable&&s.createVNode(T.ListFilter,{tabIndex:0,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:D,fillMode:b,onFocus:this.onFocus,onBlur:this.onBlur},null)])],X=t.templateRendering.call(this,Q,t.getListeners.call(this)),Y=()=>{const m=this.base.getTemplateDef.call(this,v,s.h),C=this.base.getTemplateDef.call(this,y,s.h);return[m&&s.createVNode("div",{class:"k-list-header"},[m]),n.length>0?s.createVNode(M.TreeView,{ref:t.setRef(this,"treeView"),tabIndex:g,dataItems:n,focusIdField:o,textField:this.$props.textField,selectField:S,expandField:this.$props.expandField,childrenField:R,expandIcons:!0,onItemclick:this.onChange,onExpandchange:this.onExpand,onFocus:this.onFocus,onBlur:this.onBlur,onKeydown:this.onWrapperKeyDown,size:"large",item:I},null):N,C&&s.createVNode("div",{class:"k-list-footer"},[C])]},Z=t.templateRendering.call(this,Y,t.getListeners.call(this)),ee=function(){return s.createVNode(re.ActionSheet,{expand:this.isOpen,animation:!0,animationStyles:this.animationStyles,className:this.classNameAdaptive,header:X,content:Z,contentClassName:"!k-overflow-hidden",onClose:this.onWrapperClick,navigatableElements:["input.k-input-inner",".k-actionsheet-actions > button"]},null)},te=!P||A.valid,{size:h,rounded:D,fillMode:b}=this.$props,ie=function(){return s.createVNode("span",{class:this.wrapperClass,tabindex:g,accesskey:this.$props.accessKey,id:i,dir:p,ref:t.setRef(this,"kendoAnchor"),onKeydown:this.onWrapperKeyDown,onClick:this.onWrapperClick,onMousedown:this.onWrapperMouseDown,onFocusin:this.onFocus,onFocusout:this.onBlur,role:"combobox","aria-haspopup":"tree","aria-expanded":this.isOpen,"aria-disabled":d,"aria-label":l||this.$props.ariaLabel,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,"aria-required":$},[s.createVNode("span",{class:"k-input-inner"},[J]),this.$props.loading&&s.createVNode(t.Icon,{class:"k-input-loading-icon",name:"loading"},null),this.hasValue&&!d&&s.createVNode("span",{onClick:this.onClear,class:"k-clear-value",title:F.toLanguageString(c.clear,c.messages[c.clear]),role:"button",tabindex:-1,onMousedown:m=>m.preventDefault()},[s.createVNode(t.Icon,{name:"x",icon:k.xIcon},null)]),s.createVNode(O.Button,{tabIndex:-1,type:"button","aria-label":"select",class:"k-input-button",size:h,fillMode:b,themeColor:"base",rounded:null,icon:"caret-alt-down",svgIcon:k.caretAltDownIcon},null),s.createVNode("select",{name:u,ref:t.setRef(this,"select"),tabindex:-1,"aria-hidden":!0,title:l,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,this.computedValue):this.computedValue},null)]),!x&&s.createVNode(se.Popup,{style:{width:this.popupWidth,direction:p},ref:t.setRef(this,"popup"),class:t.classNames(a.className,{"k-rtl":p==="rtl"}),popupClass:t.classNames(a.popupClass,"k-dropdowntree-popup","popup-"+this.componentGuid),animate:a.animate,anchor:this.anchor,show:this.isOpen,onOpen:this.onPopupOpened,onClose:this.onPopupClosed,appendTo:a.appendTo},{default:()=>[this.$props.filterable&&s.createVNode(T.ListFilter,{value:this.$props.filter===void 0?this.filterState:this.$props.filter,ref:t.setRef(this,"input"),onChange:this.onFilterChange,onKeydown:this.onInputKeyDown,onBlur:this.onBlur,size:h,rounded:D,fillMode:b},null),v&&s.createVNode("div",{class:"k-list-header"},[v]),n.length>0?s.createVNode(M.TreeView,{ref:t.setRef(this,"treeView"),tabIndex:g,dataItems:n,focusIdField:o,textField:this.$props.textField,selectField:S,expandField:this.$props.expandField,childrenField:R,expandIcons:!0,onItemclick:this.onChange,onExpandchange:this.onExpand,onFocus:this.onFocus,onBlur:this.onBlur,onKeydown:this.onWrapperKeyDown,size:h,item:I},null):N,y&&s.createVNode("div",{class:"k-list-footer"},[y])]})])},f=[s.h(ie.call(this),{...this.$attrs}),x&&ee.call(this)];return l?s.createVNode(le.FloatingLabel,{label:l,editorValue:this.currentValueText,editorPlaceholder:r,editorValid:te,editorDisabled:d,editorId:i,focused:this.focused,dir:p},K(f)?f:{default:()=>[f]}):f},methods:{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:n}=this.$props,o=w({validationMessage:e,valid:i,required:n},this.hasValue);this.selectRef.setCustomValidity(o.valid?"":this.validationMessage===void 0?pe:this.validationMessage)}},openPopup(e){if(!this.isOpen){const i={...e};this.$emit("open",i),this.currentOpened=!0}},closePopup(e){if(this.isOpen){const i={...e};this.$emit("close",i),this.currentOpened=!1}},onWrapperClick(e){if(this.onFilterChange({...e,target:{value:""}}),!e.defaultPrevented&&this.$el){this.focused=!0;const i={event:e,target:this};(this.isOpen?this.closePopup:this.openPopup)(i)}},switchFocus(e){this.skipFocusRef=!0,e(),window.setTimeout(()=>this.skipFocusRef=!1,0)},onWrapperKeyDown(e){const{keyCode:i,altKey:n}=e,o=this.treeViewRef&&this.treeViewRef.$el,a=this.inputRef&&this.inputRef.input;if(this.$props.disabled||e.defaultPrevented&&a===e.target)return;const d={event:e,target:this};if(this.isOpen)if(i===t.Keys.esc||n&&i===t.Keys.up)e.preventDefault(),this.closePopup(d);else if(o&&o.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&&a){const r=Array.from(o.querySelectorAll(".k-treeview-item")),l=[...r].reverse().find(u=>!!(u&&u.querySelector(".k-focus")));if(l&&r.indexOf(l)===0)return this.switchFocus(()=>{this.focusElement(a)})}this.switchFocus(t.noop)}else i===t.Keys.down&&this.switchFocus(()=>{this.focusElement(a||o)});else n&&i===t.Keys.down&&(e.preventDefault(),this.openPopup(d))},onInputKeyDown(e){const{keyCode:i,altKey:n}=e;if(i===t.Keys.esc)this.onWrapperClick(e);else if(n||i!==t.Keys.up&&i!==t.Keys.down)return;e.preventDefault(),this.switchFocus(i===t.Keys.up?()=>{this.focusElement(this.elementRef)}:()=>{this.focusElement(this.treeViewRef&&this.treeViewRef.$el)})},focusElement(e){e&&this.switchFocus(()=>e.focus())},onPopupOpened(){if(!this.focused&&this.isOpen&&!this.currentOpened)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.$el)},onPopupClosed(){this.focused&&this.focusElement(this.elementRef)},onFocus(e){if(!this.focused&&!this.skipFocusRef){this.focused=!0;const i={event:e,target:this};this.$emit("focus",i)}},onBlur(e){if(this.focused&&!this.skipFocusRef){this.focused=!1;const i={event:e,target:this},n={...i};(!e.relatedTarget||!e.relatedTarget.closest(".popup-"+this.componentGuid))&&!this.adaptiveState&&(this.$emit("blur",n),this.closePopup(i))}},onWrapperMouseDown(){this.focused&&this.switchFocus(t.noop)},changeValue(e,i,n){const o={value:i,level:n?E(n):[],...e};this.$emit("changemodel",i),this.$emit("update:modelValue",i),this.$emit("change",o),this.currentValue=i},onChange(e){if(V.areSame(e.item,this.computedValue,this.dataItemKey)||!this.$el)return;const{item:i,itemHierarchicalIndex:n,event:o}=e,a={event:o,target:this};this.changeValue(a,i,n),this.closePopup(a)},onClear(e){const i={event:e,target:this};this.changeValue(i,null),this.closePopup(i),e.preventDefault()},onExpand(e){const{item:i,itemHierarchicalIndex:n,event:o}=e,a={level:E(n),item:i,event:o,target:this};this.$emit("expandchange",a)},onFilterChange(e){const n={filter:{field:this.$props.textField,operator:"contains",value:e.target.value},event:e,target:this};this.$emit("filterchange",n),this.$props.filter===void 0&&(this.filterState=e.target.value)}}});exports.DropDownTree=he;
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"),ae=require("@progress/kendo-vue-intl"),O=require("@progress/kendo-vue-treeview"),b=require("../package-metadata.js"),k=require("../common/utils.js"),oe=require("./ListNoData.js"),c=require("../messages/main.js"),le=require("@progress/kendo-vue-labels"),T=require("../common/ListFilter.js"),B=require("@progress/kendo-vue-buttons"),w=require("@progress/kendo-svg-icons"),K=require("../common/constants.js"),re=require("@progress/kendo-vue-layout"),de=require("../common/DropDownBase.js");function L(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!s.isVNode(e)}const{sizeMap:ue,roundedMap:ce}=t.kendoThemeMaps,pe="Please select a value from the list!",E=e=>e.split("_").map(i=>parseInt(i,10)),S=(e,i)=>{const{validationMessage:n,valid:a,required:o}=e;return{customError:n!==void 0,valid:!!(a!==void 0?a:!o||i),valueMissing:!i}},he=s.defineComponent({name:"KendoDropDownTree",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:{type:[Object,String,Number,Boolean],default:function(){}},modelValue:{type:[Object,String,Number,Boolean],default:function(){}},valueMap:Function,placeholder:String,dataItemKey:{type:String,required:!0},textField:{type:String,required:!0},selectField:{type:String,default:"selected"},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,ariaLabel:{type:String,default:void 0},ariaLabelledBy:String,ariaDescribedBy:String,filterable:Boolean,filter:String,loading:Boolean,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],header:[String,Function,Object],footer:[String,Function,Object],valueRender:[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:K.MOBILE_SMALL_DEVICE,medium:K.MOBILE_MEDIUM_DEVICE}}},created(){this.observer=null,t.validatePackage(b.packageMetadata),this.showLicenseWatermark=t.shouldShowValidationUI(b.packageMetadata),this.licenseMessage=t.getLicenseMessage(b.packageMetadata),this.base=new de(this),this.componentGuid=t.guid(),this.anchor=t.guid()},data(){return{showLicenseWatermark:!1,licenseMessage:void 0,currentOpened:!1,focused:!1,filterState:"",currentValue:void 0,popupWidth:"200px",windowWidth:0,initialAdaptiveRenderingValues:void 0}},computed:{wrapperClass(){const{validationMessage:e,valid:i,required:n,validityStyles:a}=this.$props,o=S({validationMessage:e,valid:i,required:n},this.hasValue),d=!a||o.valid,{size:r,rounded:l,fillMode:u}=this.$props;return{"k-dropdowntree":!0,"k-picker":!0,[this.$props.className]:this.$props.className,[`k-picker-${ue[r]||r}`]:r,[`k-rounded-${ce[l]||l}`]:l,[`k-picker-${u}`]:u,"k-focus":this.focused,"k-invalid":!d,"k-loading":this.$props.loading,"k-required":n,"k-disabled":this.$props.disabled}},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.currentOpened},computedValue(){return this.value!==void 0?this.value:this.$props.modelValue!==void 0?this.$props.modelValue:this.currentValue},hasValue(){return k.isPresent(this.computedValue)},currentValueText(){return this.hasValue?k.getItemValue(this.computedValue,this.$props.textField):""}},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:n,dataItemKey:a,popupSettings:o,disabled:d,placeholder:r,label:l,name:u,selectField:R,subItemsField:$,validationMessage:q,valid:W,required:F,validityStyles:P,adaptiveTitle:A}=this.$props,g=t.getTabIndex(this.$props.tabIndex,d),x=ae.provideLocalizationService(this),z=S({validationMessage:q,valid:W,required:F},this.hasValue),I=this.adaptiveState,p=this.$props.dir,N=t.templateRendering.call(this,this.item,t.getListeners.call(this)),j=t.templateRendering.call(this,this.valueRender,t.getListeners.call(this)),_=t.templateRendering.call(this,this.$props.header,t.getListeners.call(this)),G=t.templateRendering.call(this,this.$props.footer,t.getListeners.call(this)),v=t.getTemplate.call(this,{h:s.h,template:_}),y=t.getTemplate.call(this,{h:s.h,template:G}),H=t.templateRendering.call(this,this.$props.listNoData,t.getListeners.call(this)),U=s.createVNode(oe.ListNoData,null,L(e=x.toLanguageString(c.nodata,c.messages[c.nodata]))?e:{default:()=>[e]}),M=t.getTemplate.call(this,{h:s.h,defaultRendering:U,template:H}),J=s.createVNode("span",{class:"k-input-value-text"},[this.currentValueText||r]),Q=t.getTemplate.call(this,{h:s.h,defaultRendering:J,template:j,additionalProps:{value:this.computedValue}}),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"},[A]),s.createVNode("div",{class:"k-actionsheet-subtitle k-text-center"},[r])]),s.createVNode("div",{class:"k-actionsheet-actions"},[s.createVNode(B.Button,{tabIndex:1,"aria-label":"Cancel","aria-disabled":"false",type:"button",fillMode:"flat",onClick:this.onWrapperClick,icon:"x",svgIcon:w.xIcon},null)])]),s.createVNode("div",{class:"k-actionsheet-titlebar-group k-actionsheet-filter"},[this.$props.filterable&&s.createVNode(T.ListFilter,{tabIndex:0,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:D,fillMode:V,onFocus:this.onFocus,onBlur:this.onBlur},null)])],Y=t.templateRendering.call(this,X,t.getListeners.call(this)),Z=()=>{const m=this.base.getTemplateDef.call(this,v,s.h),C=this.base.getTemplateDef.call(this,y,s.h);return[m&&s.createVNode("div",{class:"k-list-header"},[m]),n.length>0?s.createVNode(O.TreeView,{ref:t.setRef(this,"treeView"),tabIndex:g,dataItems:n,focusIdField:a,textField:this.$props.textField,selectField:R,expandField:this.$props.expandField,childrenField:$,expandIcons:!0,onItemclick:this.onChange,onExpandchange:this.onExpand,onFocus:this.onFocus,onBlur:this.onBlur,onKeydown:this.onWrapperKeyDown,size:"large",item:N},null):M,C&&s.createVNode("div",{class:"k-list-footer"},[C])]},ee=t.templateRendering.call(this,Z,t.getListeners.call(this)),te=function(){return s.createVNode(re.ActionSheet,{expand:this.isOpen,animation:!0,animationStyles:this.animationStyles,className:this.classNameAdaptive,header:Y,content:ee,contentClassName:"!k-overflow-hidden",onClose:this.onWrapperClick,navigatableElements:["input.k-input-inner",".k-actionsheet-actions > button"]},null)},ie=!P||z.valid,{size:h,rounded:D,fillMode:V}=this.$props,se=function(){return s.createVNode("span",{class:this.wrapperClass,tabindex:g,accesskey:this.$props.accessKey,id:i,dir:p,ref:t.setRef(this,"kendoAnchor"),onKeydown:this.onWrapperKeyDown,onClick:this.onWrapperClick,onMousedown:this.onWrapperMouseDown,onFocusin:this.onFocus,onFocusout:this.onBlur,role:"combobox","aria-haspopup":"tree","aria-expanded":this.isOpen,"aria-disabled":d,"aria-label":l||this.$props.ariaLabel,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,"aria-required":F},[s.createVNode("span",{class:"k-input-inner"},[Q]),this.$props.loading&&s.createVNode(t.Icon,{class:"k-input-loading-icon",name:"loading"},null),this.hasValue&&!d&&s.createVNode("span",{onClick:this.onClear,class:"k-clear-value",title:x.toLanguageString(c.clear,c.messages[c.clear]),role:"button",tabindex:-1,onMousedown:m=>m.preventDefault()},[s.createVNode(t.Icon,{name:"x",icon:w.xIcon},null)]),s.createVNode(B.Button,{tabIndex:-1,type:"button","aria-label":"select",class:"k-input-button",size:h,fillMode:V,themeColor:"base",rounded:null,icon:"caret-alt-down",svgIcon:w.caretAltDownIcon},null),s.createVNode("select",{name:u,ref:t.setRef(this,"select"),tabindex:-1,"aria-hidden":!0,title:l,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,this.computedValue):this.computedValue},null)]),this.showLicenseWatermark?s.createVNode(t.WatermarkOverlay,{message:this.licenseMessage},null):null,!I&&s.createVNode(ne.Popup,{style:{width:this.popupWidth,direction:p},ref:t.setRef(this,"popup"),class:t.classNames(o.className,{"k-rtl":p==="rtl"}),popupClass:t.classNames(o.popupClass,"k-dropdowntree-popup","popup-"+this.componentGuid),animate:o.animate,anchor:this.anchor,show:this.isOpen,onOpen:this.onPopupOpened,onClose:this.onPopupClosed,appendTo:o.appendTo},{default:()=>[this.$props.filterable&&s.createVNode(T.ListFilter,{value:this.$props.filter===void 0?this.filterState:this.$props.filter,ref:t.setRef(this,"input"),onChange:this.onFilterChange,onKeydown:this.onInputKeyDown,onBlur:this.onBlur,size:h,rounded:D,fillMode:V},null),v&&s.createVNode("div",{class:"k-list-header"},[v]),n.length>0?s.createVNode(O.TreeView,{ref:t.setRef(this,"treeView"),tabIndex:g,dataItems:n,focusIdField:a,textField:this.$props.textField,selectField:R,expandField:this.$props.expandField,childrenField:$,expandIcons:!0,onItemclick:this.onChange,onExpandchange:this.onExpand,onFocus:this.onFocus,onBlur:this.onBlur,onKeydown:this.onWrapperKeyDown,size:h,item:N},null):M,y&&s.createVNode("div",{class:"k-list-footer"},[y])]})])},f=[s.h(se.call(this),{...this.$attrs}),I&&te.call(this)];return l?s.createVNode(le.FloatingLabel,{label:l,editorValue:this.currentValueText,editorPlaceholder:r,editorValid:ie,editorDisabled:d,editorId:i,focused:this.focused,dir:p},L(f)?f:{default:()=>[f]}):f},methods:{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:n}=this.$props,a=S({validationMessage:e,valid:i,required:n},this.hasValue);this.selectRef.setCustomValidity(a.valid?"":this.validationMessage===void 0?pe:this.validationMessage)}},openPopup(e){if(!this.isOpen){const i={...e};this.$emit("open",i),this.currentOpened=!0}},closePopup(e){if(this.isOpen){const i={...e};this.$emit("close",i),this.currentOpened=!1}},onWrapperClick(e){if(this.onFilterChange({...e,target:{value:""}}),!e.defaultPrevented&&this.$el){this.focused=!0;const i={event:e,target:this};(this.isOpen?this.closePopup:this.openPopup)(i)}},switchFocus(e){this.skipFocusRef=!0,e(),window.setTimeout(()=>this.skipFocusRef=!1,0)},onWrapperKeyDown(e){const{keyCode:i,altKey:n}=e,a=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.isOpen)if(i===t.Keys.esc||n&&i===t.Keys.up)e.preventDefault(),this.closePopup(d);else if(a&&a.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&&o){const r=Array.from(a.querySelectorAll(".k-treeview-item")),l=[...r].reverse().find(u=>!!(u&&u.querySelector(".k-focus")));if(l&&r.indexOf(l)===0)return this.switchFocus(()=>{this.focusElement(o)})}this.switchFocus(t.noop)}else i===t.Keys.down&&this.switchFocus(()=>{this.focusElement(o||a)});else n&&i===t.Keys.down&&(e.preventDefault(),this.openPopup(d))},onInputKeyDown(e){const{keyCode:i,altKey:n}=e;if(i===t.Keys.esc)this.onWrapperClick(e);else if(n||i!==t.Keys.up&&i!==t.Keys.down)return;e.preventDefault(),this.switchFocus(i===t.Keys.up?()=>{this.focusElement(this.elementRef)}:()=>{this.focusElement(this.treeViewRef&&this.treeViewRef.$el)})},focusElement(e){e&&this.switchFocus(()=>e.focus())},onPopupOpened(){if(!this.focused&&this.isOpen&&!this.currentOpened)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.$el)},onPopupClosed(){this.focused&&this.focusElement(this.elementRef)},onFocus(e){if(!this.focused&&!this.skipFocusRef){this.focused=!0;const i={event:e,target:this};this.$emit("focus",i)}},onBlur(e){if(this.focused&&!this.skipFocusRef){this.focused=!1;const i={event:e,target:this},n={...i};(!e.relatedTarget||!e.relatedTarget.closest(".popup-"+this.componentGuid))&&!this.adaptiveState&&(this.$emit("blur",n),this.closePopup(i))}},onWrapperMouseDown(){this.focused&&this.switchFocus(t.noop)},changeValue(e,i,n){const a={value:i,level:n?E(n):[],...e};this.$emit("changemodel",i),this.$emit("update:modelValue",i),this.$emit("change",a),this.currentValue=i},onChange(e){if(k.areSame(e.item,this.computedValue,this.dataItemKey)||!this.$el)return;const{item:i,itemHierarchicalIndex:n,event:a}=e,o={event:a,target:this};this.changeValue(o,i,n),this.closePopup(o)},onClear(e){const i={event:e,target:this};this.changeValue(i,null),this.closePopup(i),e.preventDefault()},onExpand(e){const{item:i,itemHierarchicalIndex:n,event:a}=e,o={level:E(n),item:i,event:a,target:this};this.$emit("expandchange",o)},onFilterChange(e){const n={filter:{field:this.$props.textField,operator:"contains",value:e.target.value},event:e,target:this};this.$emit("filterchange",n),this.$props.filter===void 0&&(this.filterState=e.target.value)}}});exports.DropDownTree=he;
@@ -5,29 +5,29 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as he, h as u, createVNode as i, isVNode as ce } from "vue";
9
- import { noop as T, Keys as a, getTabIndex as fe, templateRendering as h, getListeners as c, getTemplate as w, getRef as f, canUseDOM as me, kendoThemeMaps as ve, validatePackage as ge, guid as P, setRef as m, Icon as W, classNames as A } from "@progress/kendo-vue-common";
10
- import { Popup as be } from "@progress/kendo-vue-popup";
11
- import { provideLocalizationService as ye } from "@progress/kendo-vue-intl";
8
+ import { defineComponent as ce, h as u, createVNode as i, isVNode as fe } from "vue";
9
+ import { noop as W, Keys as a, getTabIndex as me, templateRendering as h, getListeners as c, getTemplate as w, getRef as f, canUseDOM as ge, kendoThemeMaps as ve, validatePackage as be, shouldShowValidationUI as ye, getLicenseMessage as we, guid as P, setRef as m, Icon as L, WatermarkOverlay as ke, classNames as A } from "@progress/kendo-vue-common";
10
+ import { Popup as Se } from "@progress/kendo-vue-popup";
11
+ import { provideLocalizationService as $e } from "@progress/kendo-vue-intl";
12
12
  import { TreeView as K } from "@progress/kendo-vue-treeview";
13
- import { packageMetadata as we } from "../package-metadata.mjs";
14
- import { areSame as ke, getItemValue as Se, isPresent as $e } from "../common/utils.mjs";
15
- import { ListNoData as Fe } from "./ListNoData.mjs";
16
- import { nodata as L, messages as N, clear as z } from "../messages/main.mjs";
17
- import { FloatingLabel as Ve } from "@progress/kendo-vue-labels";
18
- import { ListFilter as j } from "../common/ListFilter.mjs";
19
- import { Button as q } from "@progress/kendo-vue-buttons";
20
- import { xIcon as _, caretAltDownIcon as xe } from "@progress/kendo-svg-icons";
21
- import { MOBILE_MEDIUM_DEVICE as Re, MOBILE_SMALL_DEVICE as Ie } from "../common/constants.mjs";
22
- import { ActionSheet as De } from "@progress/kendo-vue-layout";
23
- import Ce from "../common/DropDownBase.mjs";
24
- function G(e) {
25
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ce(e);
13
+ import { packageMetadata as V } from "../package-metadata.mjs";
14
+ import { areSame as Fe, getItemValue as Ve, isPresent as xe } from "../common/utils.mjs";
15
+ import { ListNoData as Re } from "./ListNoData.mjs";
16
+ import { nodata as N, messages as z, clear as j } from "../messages/main.mjs";
17
+ import { FloatingLabel as Ie } from "@progress/kendo-vue-labels";
18
+ import { ListFilter as q } from "../common/ListFilter.mjs";
19
+ import { Button as _ } from "@progress/kendo-vue-buttons";
20
+ import { xIcon as G, caretAltDownIcon as De } from "@progress/kendo-svg-icons";
21
+ import { MOBILE_MEDIUM_DEVICE as Me, MOBILE_SMALL_DEVICE as Ce } from "../common/constants.mjs";
22
+ import { ActionSheet as Oe } from "@progress/kendo-vue-layout";
23
+ import Be from "../common/DropDownBase.mjs";
24
+ function H(e) {
25
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !fe(e);
26
26
  }
27
27
  const {
28
- sizeMap: Me,
29
- roundedMap: Oe
30
- } = ve, Be = "Please select a value from the list!", H = (e) => e.split("_").map((t) => parseInt(t, 10)), V = (e, t) => {
28
+ sizeMap: Ee,
29
+ roundedMap: Te
30
+ } = ve, We = "Please select a value from the list!", U = (e) => e.split("_").map((t) => parseInt(t, 10)), x = (e, t) => {
31
31
  const {
32
32
  validationMessage: s,
33
33
  valid: n,
@@ -38,7 +38,7 @@ const {
38
38
  valid: !!(n !== void 0 ? n : !o || t),
39
39
  valueMissing: !t
40
40
  };
41
- }, Xe = /* @__PURE__ */ he({
41
+ }, et = /* @__PURE__ */ ce({
42
42
  name: "KendoDropDownTree",
43
43
  model: {
44
44
  event: "changemodel"
@@ -169,16 +169,18 @@ const {
169
169
  },
170
170
  adaptiveModeBreakpoints: {
171
171
  default: {
172
- small: Ie,
173
- medium: Re
172
+ small: Ce,
173
+ medium: Me
174
174
  }
175
175
  }
176
176
  },
177
177
  created() {
178
- this.observer = null, ge(we), this.base = new Ce(this), this.componentGuid = P(), this.anchor = P();
178
+ this.observer = null, be(V), this.showLicenseWatermark = ye(V), this.licenseMessage = we(V), this.base = new Be(this), this.componentGuid = P(), this.anchor = P();
179
179
  },
180
180
  data() {
181
181
  return {
182
+ showLicenseWatermark: !1,
183
+ licenseMessage: void 0,
182
184
  currentOpened: !1,
183
185
  focused: !1,
184
186
  filterState: "",
@@ -195,7 +197,7 @@ const {
195
197
  valid: t,
196
198
  required: s,
197
199
  validityStyles: n
198
- } = this.$props, o = V({
200
+ } = this.$props, o = x({
199
201
  validationMessage: e,
200
202
  valid: t,
201
203
  required: s
@@ -208,8 +210,8 @@ const {
208
210
  "k-dropdowntree": !0,
209
211
  "k-picker": !0,
210
212
  [this.$props.className]: this.$props.className,
211
- [`k-picker-${Me[r] || r}`]: r,
212
- [`k-rounded-${Oe[l] || l}`]: l,
213
+ [`k-picker-${Ee[r] || r}`]: r,
214
+ [`k-rounded-${Te[l] || l}`]: l,
213
215
  [`k-picker-${p}`]: p,
214
216
  "k-focus": this.focused,
215
217
  "k-invalid": !d,
@@ -238,10 +240,10 @@ const {
238
240
  return this.value !== void 0 ? this.value : this.$props.modelValue !== void 0 ? this.$props.modelValue : this.currentValue;
239
241
  },
240
242
  hasValue() {
241
- return $e(this.computedValue);
243
+ return xe(this.computedValue);
242
244
  },
243
245
  currentValueText() {
244
- return this.hasValue ? Se(this.computedValue, this.$props.textField) : "";
246
+ return this.hasValue ? Ve(this.computedValue, this.$props.textField) : "";
245
247
  }
246
248
  },
247
249
  watch: {
@@ -251,7 +253,7 @@ const {
251
253
  }
252
254
  },
253
255
  mounted() {
254
- this.observer = me && window.ResizeObserver && new ResizeObserver(this.calculateMedia), document != null && document.body && this.observer && this.observer.observe(document.body), this.elementRef = f(this, "kendoAnchor"), this.inputRef = f(this, "input"), this.selectRef = f(this, "select"), this.treeViewRef = f(this, "treeView"), this.skipFocusRef = !1, this.popupRef = f(this, "popup"), this.calculatePopupWidth();
256
+ this.observer = ge && window.ResizeObserver && new ResizeObserver(this.calculateMedia), document != null && document.body && this.observer && this.observer.observe(document.body), this.elementRef = f(this, "kendoAnchor"), this.inputRef = f(this, "input"), this.selectRef = f(this, "select"), this.treeViewRef = f(this, "treeView"), this.skipFocusRef = !1, this.popupRef = f(this, "popup"), this.calculatePopupWidth();
255
257
  },
256
258
  updated() {
257
259
  this.inputRef = f(this, "input"), this.treeViewRef = f(this, "treeView"), this.popupRef && this.isOpen && this.hasValue && this.popupRef.reposition(), this.setValidity(), this.calculatePopupWidth();
@@ -266,49 +268,49 @@ const {
266
268
  placeholder: r,
267
269
  label: l,
268
270
  name: p,
269
- selectField: x,
270
- subItemsField: R,
271
- validationMessage: U,
272
- valid: J,
273
- required: I,
274
- validityStyles: Q,
275
- adaptiveTitle: X
276
- } = this.$props, k = fe(this.$props.tabIndex, d), D = ye(this), Y = V({
277
- validationMessage: U,
278
- valid: J,
279
- required: I
280
- }, this.hasValue), C = this.adaptiveState, v = this.$props.dir, M = h.call(this, this.item, c.call(this)), Z = h.call(this, this.valueRender, c.call(this)), ee = h.call(this, this.$props.header, c.call(this)), te = h.call(this, this.$props.footer, c.call(this)), S = w.call(this, {
271
+ selectField: R,
272
+ subItemsField: I,
273
+ validationMessage: J,
274
+ valid: Q,
275
+ required: D,
276
+ validityStyles: X,
277
+ adaptiveTitle: Y
278
+ } = this.$props, k = me(this.$props.tabIndex, d), M = $e(this), Z = x({
279
+ validationMessage: J,
280
+ valid: Q,
281
+ required: D
282
+ }, this.hasValue), C = this.adaptiveState, g = this.$props.dir, O = h.call(this, this.item, c.call(this)), ee = h.call(this, this.valueRender, c.call(this)), te = h.call(this, this.$props.header, c.call(this)), ie = h.call(this, this.$props.footer, c.call(this)), S = w.call(this, {
281
283
  h: u,
282
- template: ee
284
+ template: te
283
285
  }), $ = w.call(this, {
284
286
  h: u,
285
- template: te
286
- }), ie = h.call(this, this.$props.listNoData, c.call(this)), se = i(Fe, null, G(e = D.toLanguageString(L, N[L])) ? e : {
287
+ template: ie
288
+ }), se = h.call(this, this.$props.listNoData, c.call(this)), ne = i(Re, null, H(e = M.toLanguageString(N, z[N])) ? e : {
287
289
  default: () => [e]
288
- }), O = w.call(this, {
290
+ }), B = w.call(this, {
289
291
  h: u,
290
- defaultRendering: se,
291
- template: ie
292
- }), ne = i("span", {
292
+ defaultRendering: ne,
293
+ template: se
294
+ }), oe = i("span", {
293
295
  class: "k-input-value-text"
294
- }, [this.currentValueText || r]), oe = w.call(this, {
296
+ }, [this.currentValueText || r]), ae = w.call(this, {
295
297
  h: u,
296
- defaultRendering: ne,
297
- template: Z,
298
+ defaultRendering: oe,
299
+ template: ee,
298
300
  additionalProps: {
299
301
  value: this.computedValue
300
302
  }
301
- }), ae = () => [i("div", {
303
+ }), le = () => [i("div", {
302
304
  class: "k-actionsheet-titlebar-group k-hbox"
303
305
  }, [i("div", {
304
306
  class: "k-actionsheet-title"
305
307
  }, [i("div", {
306
308
  class: "k-text-center"
307
- }, [X]), i("div", {
309
+ }, [Y]), i("div", {
308
310
  class: "k-actionsheet-subtitle k-text-center"
309
311
  }, [r])]), i("div", {
310
312
  class: "k-actionsheet-actions"
311
- }, [i(q, {
313
+ }, [i(_, {
312
314
  tabIndex: 1,
313
315
  "aria-label": "Cancel",
314
316
  "aria-disabled": "false",
@@ -316,22 +318,22 @@ const {
316
318
  fillMode: "flat",
317
319
  onClick: this.onWrapperClick,
318
320
  icon: "x",
319
- svgIcon: _
321
+ svgIcon: G
320
322
  }, null)])]), i("div", {
321
323
  class: "k-actionsheet-titlebar-group k-actionsheet-filter"
322
- }, [this.$props.filterable && i(j, {
324
+ }, [this.$props.filterable && i(q, {
323
325
  tabIndex: 0,
324
326
  value: this.$props.filter === void 0 ? this.filterState : this.$props.filter,
325
327
  ref: m(this, "input"),
326
328
  onChange: this.onFilterChange,
327
329
  onKeydown: this.onInputKeyDown,
328
- size: g,
329
- rounded: B,
330
+ size: v,
331
+ rounded: E,
330
332
  fillMode: F,
331
333
  onFocus: this.onFocus,
332
334
  onBlur: this.onBlur
333
- }, null)])], le = h.call(this, ae, c.call(this)), re = () => {
334
- const y = this.base.getTemplateDef.call(this, S, u), E = this.base.getTemplateDef.call(this, $, u);
335
+ }, null)])], re = h.call(this, le, c.call(this)), de = () => {
336
+ const y = this.base.getTemplateDef.call(this, S, u), T = this.base.getTemplateDef.call(this, $, u);
335
337
  return [y && i("div", {
336
338
  class: "k-list-header"
337
339
  }, [y]), s.length > 0 ? i(K, {
@@ -340,9 +342,9 @@ const {
340
342
  dataItems: s,
341
343
  focusIdField: n,
342
344
  textField: this.$props.textField,
343
- selectField: x,
345
+ selectField: R,
344
346
  expandField: this.$props.expandField,
345
- childrenField: R,
347
+ childrenField: I,
346
348
  expandIcons: !0,
347
349
  onItemclick: this.onChange,
348
350
  onExpandchange: this.onExpand,
@@ -350,25 +352,25 @@ const {
350
352
  onBlur: this.onBlur,
351
353
  onKeydown: this.onWrapperKeyDown,
352
354
  size: "large",
353
- item: M
354
- }, null) : O, E && i("div", {
355
+ item: O
356
+ }, null) : B, T && i("div", {
355
357
  class: "k-list-footer"
356
- }, [E])];
357
- }, de = h.call(this, re, c.call(this)), pe = function() {
358
- return i(De, {
358
+ }, [T])];
359
+ }, pe = h.call(this, de, c.call(this)), ue = function() {
360
+ return i(Oe, {
359
361
  expand: this.isOpen,
360
362
  animation: !0,
361
363
  animationStyles: this.animationStyles,
362
364
  className: this.classNameAdaptive,
363
- header: le,
364
- content: de,
365
+ header: re,
366
+ content: pe,
365
367
  contentClassName: "!k-overflow-hidden",
366
368
  onClose: this.onWrapperClick,
367
369
  navigatableElements: ["input.k-input-inner", ".k-actionsheet-actions > button"]
368
370
  }, null);
369
- }, ue = !Q || Y.valid, {
370
- size: g,
371
- rounded: B,
371
+ }, he = !X || Z.valid, {
372
+ size: v,
373
+ rounded: E,
372
374
  fillMode: F
373
375
  } = this.$props, b = [u(function() {
374
376
  return i("span", {
@@ -376,7 +378,7 @@ const {
376
378
  tabindex: k,
377
379
  accesskey: this.$props.accessKey,
378
380
  id: t,
379
- dir: v,
381
+ dir: g,
380
382
  ref: m(this, "kendoAnchor"),
381
383
  onKeydown: this.onWrapperKeyDown,
382
384
  onClick: this.onWrapperClick,
@@ -390,37 +392,37 @@ const {
390
392
  "aria-label": l || this.$props.ariaLabel,
391
393
  "aria-labelledby": this.$props.ariaLabelledBy,
392
394
  "aria-describedby": this.$props.ariaDescribedBy,
393
- "aria-required": I
395
+ "aria-required": D
394
396
  }, [
395
397
  i("span", {
396
398
  class: "k-input-inner"
397
- }, [oe]),
398
- this.$props.loading && i(W, {
399
+ }, [ae]),
400
+ this.$props.loading && i(L, {
399
401
  class: "k-input-loading-icon",
400
402
  name: "loading"
401
403
  }, null),
402
404
  this.hasValue && !d && i("span", {
403
405
  onClick: this.onClear,
404
406
  class: "k-clear-value",
405
- title: D.toLanguageString(z, N[z]),
407
+ title: M.toLanguageString(j, z[j]),
406
408
  role: "button",
407
409
  tabindex: -1,
408
410
  onMousedown: (y) => y.preventDefault()
409
- }, [i(W, {
411
+ }, [i(L, {
410
412
  name: "x",
411
- icon: _
413
+ icon: G
412
414
  }, null)]),
413
- i(q, {
415
+ i(_, {
414
416
  tabIndex: -1,
415
417
  type: "button",
416
418
  "aria-label": "select",
417
419
  class: "k-input-button",
418
- size: g,
420
+ size: v,
419
421
  fillMode: F,
420
422
  themeColor: "base",
421
423
  rounded: null,
422
424
  icon: "caret-alt-down",
423
- svgIcon: xe
425
+ svgIcon: De
424
426
  }, null),
425
427
  /* Dummy component to support forms */
426
428
  i("select", {
@@ -440,14 +442,17 @@ const {
440
442
  }, [i("option", {
441
443
  value: this.$props.valueMap ? this.$props.valueMap.call(void 0, this.computedValue) : this.computedValue
442
444
  }, null)]),
443
- !C && i(be, {
445
+ this.showLicenseWatermark ? i(ke, {
446
+ message: this.licenseMessage
447
+ }, null) : null,
448
+ !C && i(Se, {
444
449
  style: {
445
450
  width: this.popupWidth,
446
- direction: v
451
+ direction: g
447
452
  },
448
453
  ref: m(this, "popup"),
449
454
  class: A(o.className, {
450
- "k-rtl": v === "rtl"
455
+ "k-rtl": g === "rtl"
451
456
  }),
452
457
  popupClass: A(o.popupClass, "k-dropdowntree-popup", "popup-" + this.componentGuid),
453
458
  animate: o.animate,
@@ -457,14 +462,14 @@ const {
457
462
  onClose: this.onPopupClosed,
458
463
  appendTo: o.appendTo
459
464
  }, {
460
- default: () => [this.$props.filterable && i(j, {
465
+ default: () => [this.$props.filterable && i(q, {
461
466
  value: this.$props.filter === void 0 ? this.filterState : this.$props.filter,
462
467
  ref: m(this, "input"),
463
468
  onChange: this.onFilterChange,
464
469
  onKeydown: this.onInputKeyDown,
465
470
  onBlur: this.onBlur,
466
- size: g,
467
- rounded: B,
471
+ size: v,
472
+ rounded: E,
468
473
  fillMode: F
469
474
  }, null), S && i("div", {
470
475
  class: "k-list-header"
@@ -474,35 +479,35 @@ const {
474
479
  dataItems: s,
475
480
  focusIdField: n,
476
481
  textField: this.$props.textField,
477
- selectField: x,
482
+ selectField: R,
478
483
  expandField: this.$props.expandField,
479
- childrenField: R,
484
+ childrenField: I,
480
485
  expandIcons: !0,
481
486
  onItemclick: this.onChange,
482
487
  onExpandchange: this.onExpand,
483
488
  onFocus: this.onFocus,
484
489
  onBlur: this.onBlur,
485
490
  onKeydown: this.onWrapperKeyDown,
486
- size: g,
487
- item: M
488
- }, null) : O, $ && i("div", {
491
+ size: v,
492
+ item: O
493
+ }, null) : B, $ && i("div", {
489
494
  class: "k-list-footer"
490
495
  }, [$])]
491
496
  })
492
497
  ]);
493
498
  }.call(this), {
494
499
  ...this.$attrs
495
- }), C && pe.call(this)];
496
- return l ? i(Ve, {
500
+ }), C && ue.call(this)];
501
+ return l ? i(Ie, {
497
502
  label: l,
498
503
  editorValue: this.currentValueText,
499
504
  editorPlaceholder: r,
500
- editorValid: ue,
505
+ editorValid: he,
501
506
  editorDisabled: d,
502
507
  editorId: t,
503
508
  focused: this.focused,
504
- dir: v
505
- }, G(b) ? b : {
509
+ dir: g
510
+ }, H(b) ? b : {
506
511
  default: () => [b]
507
512
  }) : b;
508
513
  },
@@ -523,12 +528,12 @@ const {
523
528
  validationMessage: e,
524
529
  valid: t,
525
530
  required: s
526
- } = this.$props, n = V({
531
+ } = this.$props, n = x({
527
532
  validationMessage: e,
528
533
  valid: t,
529
534
  required: s
530
535
  }, this.hasValue);
531
- this.selectRef.setCustomValidity(n.valid ? "" : this.validationMessage === void 0 ? Be : this.validationMessage);
536
+ this.selectRef.setCustomValidity(n.valid ? "" : this.validationMessage === void 0 ? We : this.validationMessage);
532
537
  }
533
538
  },
534
539
  openPopup(e) {
@@ -587,7 +592,7 @@ const {
587
592
  this.focusElement(o);
588
593
  });
589
594
  }
590
- this.switchFocus(T);
595
+ this.switchFocus(W);
591
596
  } else t === a.down && this.switchFocus(() => {
592
597
  this.focusElement(o || n);
593
598
  });
@@ -649,18 +654,18 @@ const {
649
654
  }
650
655
  },
651
656
  onWrapperMouseDown() {
652
- this.focused && this.switchFocus(T);
657
+ this.focused && this.switchFocus(W);
653
658
  },
654
659
  changeValue(e, t, s) {
655
660
  const n = {
656
661
  value: t,
657
- level: s ? H(s) : [],
662
+ level: s ? U(s) : [],
658
663
  ...e
659
664
  };
660
665
  this.$emit("changemodel", t), this.$emit("update:modelValue", t), this.$emit("change", n), this.currentValue = t;
661
666
  },
662
667
  onChange(e) {
663
- if (ke(e.item, this.computedValue, this.dataItemKey) || !this.$el)
668
+ if (Fe(e.item, this.computedValue, this.dataItemKey) || !this.$el)
664
669
  return;
665
670
  const {
666
671
  item: t,
@@ -685,7 +690,7 @@ const {
685
690
  itemHierarchicalIndex: s,
686
691
  event: n
687
692
  } = e, o = {
688
- level: H(s),
693
+ level: U(s),
689
694
  item: t,
690
695
  event: n,
691
696
  target: this
@@ -707,5 +712,5 @@ const {
707
712
  }
708
713
  });
709
714
  export {
710
- Xe as DropDownTree
715
+ et as DropDownTree
711
716
  };
@@ -105,6 +105,8 @@ declare const MultiSelectTree: import('vue').DefineComponent<import('vue').Extra
105
105
  default: any;
106
106
  };
107
107
  }>, {}, {
108
+ showLicenseWatermark: boolean;
109
+ licenseMessage: any;
108
110
  focusedTagState: any;
109
111
  openState: boolean;
110
112
  focusedState: boolean;