@progress/kendo-vue-dropdowns 8.4.0-develop.2 → 8.4.0-develop.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ComboBox/ComboBox.js +1 -1
- package/ComboBox/ComboBox.mjs +2 -2
- package/DropDownList/DropDownList.js +1 -1
- package/DropDownList/DropDownList.mjs +97 -94
- package/DropDownTree/DropDownTree.js +1 -1
- package/DropDownTree/DropDownTree.mjs +15 -15
- package/common/SearchBar.js +1 -1
- package/common/SearchBar.mjs +2 -1
- package/dist/cdn/js/kendo-vue-dropdowns.js +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +16 -11
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
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
|
|
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 ve, kendoThemeMaps as ge, 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
10
|
import { Popup as Se } from "@progress/kendo-vue-popup";
|
|
11
11
|
import { provideLocalizationService as $e } from "@progress/kendo-vue-intl";
|
|
12
12
|
import { TreeView as K } from "@progress/kendo-vue-treeview";
|
|
@@ -17,7 +17,7 @@ import { nodata as N, messages as z, clear as j } from "../messages/main.mjs";
|
|
|
17
17
|
import { FloatingLabel as Ie } from "@progress/kendo-vue-labels";
|
|
18
18
|
import { ListFilter as q } from "../common/ListFilter.mjs";
|
|
19
19
|
import { Button as _ } from "@progress/kendo-vue-buttons";
|
|
20
|
-
import { xIcon as G,
|
|
20
|
+
import { xIcon as G, chevronDownIcon as De } from "@progress/kendo-svg-icons";
|
|
21
21
|
import { MOBILE_MEDIUM_DEVICE as Me, MOBILE_SMALL_DEVICE as Ce } from "../common/constants.mjs";
|
|
22
22
|
import { ActionSheet as Oe } from "@progress/kendo-vue-layout";
|
|
23
23
|
import Be from "../common/DropDownBase.mjs";
|
|
@@ -27,7 +27,7 @@ function H(e) {
|
|
|
27
27
|
const {
|
|
28
28
|
sizeMap: Ee,
|
|
29
29
|
roundedMap: Te
|
|
30
|
-
} =
|
|
30
|
+
} = ge, 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,
|
|
@@ -253,7 +253,7 @@ const {
|
|
|
253
253
|
}
|
|
254
254
|
},
|
|
255
255
|
mounted() {
|
|
256
|
-
this.observer =
|
|
256
|
+
this.observer = ve && 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();
|
|
257
257
|
},
|
|
258
258
|
updated() {
|
|
259
259
|
this.inputRef = f(this, "input"), this.treeViewRef = f(this, "treeView"), this.popupRef && this.isOpen && this.hasValue && this.popupRef.reposition(), this.setValidity(), this.calculatePopupWidth();
|
|
@@ -279,7 +279,7 @@ const {
|
|
|
279
279
|
validationMessage: J,
|
|
280
280
|
valid: Q,
|
|
281
281
|
required: D
|
|
282
|
-
}, this.hasValue), C = this.adaptiveState,
|
|
282
|
+
}, this.hasValue), C = this.adaptiveState, v = 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, {
|
|
283
283
|
h: u,
|
|
284
284
|
template: te
|
|
285
285
|
}), $ = w.call(this, {
|
|
@@ -327,7 +327,7 @@ const {
|
|
|
327
327
|
ref: m(this, "input"),
|
|
328
328
|
onChange: this.onFilterChange,
|
|
329
329
|
onKeydown: this.onInputKeyDown,
|
|
330
|
-
size:
|
|
330
|
+
size: g,
|
|
331
331
|
rounded: E,
|
|
332
332
|
fillMode: F,
|
|
333
333
|
onFocus: this.onFocus,
|
|
@@ -369,7 +369,7 @@ const {
|
|
|
369
369
|
navigatableElements: ["input.k-input-inner", ".k-actionsheet-actions > button"]
|
|
370
370
|
}, null);
|
|
371
371
|
}, he = !X || Z.valid, {
|
|
372
|
-
size:
|
|
372
|
+
size: g,
|
|
373
373
|
rounded: E,
|
|
374
374
|
fillMode: F
|
|
375
375
|
} = this.$props, b = [u(function() {
|
|
@@ -378,7 +378,7 @@ const {
|
|
|
378
378
|
tabindex: k,
|
|
379
379
|
accesskey: this.$props.accessKey,
|
|
380
380
|
id: t,
|
|
381
|
-
dir:
|
|
381
|
+
dir: v,
|
|
382
382
|
ref: m(this, "kendoAnchor"),
|
|
383
383
|
onKeydown: this.onWrapperKeyDown,
|
|
384
384
|
onClick: this.onWrapperClick,
|
|
@@ -417,11 +417,11 @@ const {
|
|
|
417
417
|
type: "button",
|
|
418
418
|
"aria-label": "select",
|
|
419
419
|
class: "k-input-button",
|
|
420
|
-
size:
|
|
420
|
+
size: g,
|
|
421
421
|
fillMode: F,
|
|
422
422
|
themeColor: "base",
|
|
423
423
|
rounded: null,
|
|
424
|
-
icon: "
|
|
424
|
+
icon: "chevron-down",
|
|
425
425
|
svgIcon: De
|
|
426
426
|
}, null),
|
|
427
427
|
/* Dummy component to support forms */
|
|
@@ -448,11 +448,11 @@ const {
|
|
|
448
448
|
!C && i(Se, {
|
|
449
449
|
style: {
|
|
450
450
|
width: this.popupWidth,
|
|
451
|
-
direction:
|
|
451
|
+
direction: v
|
|
452
452
|
},
|
|
453
453
|
ref: m(this, "popup"),
|
|
454
454
|
class: A(o.className, {
|
|
455
|
-
"k-rtl":
|
|
455
|
+
"k-rtl": v === "rtl"
|
|
456
456
|
}),
|
|
457
457
|
popupClass: A(o.popupClass, "k-dropdowntree-popup", "popup-" + this.componentGuid),
|
|
458
458
|
animate: o.animate,
|
|
@@ -468,7 +468,7 @@ const {
|
|
|
468
468
|
onChange: this.onFilterChange,
|
|
469
469
|
onKeydown: this.onInputKeyDown,
|
|
470
470
|
onBlur: this.onBlur,
|
|
471
|
-
size:
|
|
471
|
+
size: g,
|
|
472
472
|
rounded: E,
|
|
473
473
|
fillMode: F
|
|
474
474
|
}, null), S && i("div", {
|
|
@@ -488,7 +488,7 @@ const {
|
|
|
488
488
|
onFocus: this.onFocus,
|
|
489
489
|
onBlur: this.onBlur,
|
|
490
490
|
onKeydown: this.onWrapperKeyDown,
|
|
491
|
-
size:
|
|
491
|
+
size: g,
|
|
492
492
|
item: O
|
|
493
493
|
}, null) : B, $ && i("div", {
|
|
494
494
|
class: "k-list-footer"
|
|
@@ -506,7 +506,7 @@ const {
|
|
|
506
506
|
editorDisabled: d,
|
|
507
507
|
editorId: t,
|
|
508
508
|
focused: this.focused,
|
|
509
|
-
dir:
|
|
509
|
+
dir: v
|
|
510
510
|
}, H(b) ? b : {
|
|
511
511
|
default: () => [b]
|
|
512
512
|
}) : b;
|
package/common/SearchBar.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),n=require("@progress/kendo-vue-common"),d=s.defineComponent({name:"search-bar",emits:{change:e=>!0,keydown:e=>!0,focus:e=>!0,blur:e=>!0},props:{value:String,id:String,placeholder:String,tabIndex:Number,size:{type:Number,default:void 0},suggestedText:String,focused:Boolean,disabled:Boolean,readOnly:Boolean,expanded:Boolean,owns:String,name:String,activedescendant:String,ariaDescribedBy:String,clearButton:Boolean,accessKey:String,ariaLabelledBy:String,ariaLabel:{type:String,default:void 0},onClearbuttonclick:Function,inputAttributes:Object},data(){return{prevValue:void 0,prevSuggestedText:void 0}},watch:{suggestedText:function(e,t){this.prevSuggestedText=t},value:function(e,t){this.prevValue=t}},updated(){const{value:e,suggestedText:t,focused:r}=this.$props;this.input||(this.input=this.$refs.input);const i=this.input,a=this.$data.prevValue!==e||t!==this.prevSuggestedText,o=a&&this.$data.prevValue&&this.$data.prevValue.startsWith(e)&&!(this.$data.prevSuggestedText&&t&&this.$data.prevSuggestedText.endsWith(t));r&&i&&n.canUseDOM&&document.activeElement!==i&&i.focus(),t&&a&&!o&&i&&i.setSelectionRange(e.length-t.length,e.length)},setup(){return{inputRef:s.ref(null)}},mounted(){this.input=n.getRef(this,"input")},methods:{onChange(e){this.$emit("change",e)},onBlur(e){this.$emit("blur",e)},onFocus(e){this.$emit("focus",e)},onKeyDown(e){this.$emit("keydown",e)},clearButtonClick(e){this.$emit("clearbuttonclick",e)}},render(){return s.createVNode("input",s.mergeProps({autocomplete:"off",id:this.$props.id,type:"text",key:"searchbar",placeholder:this.$props.placeholder,class:"k-input-inner",tabindex:this.$props.tabIndex,accesskey:this.$props.accessKey,role:"combobox",name:this.$props.name,value:this.$props.value,size:this.$props.size?this.$props.size:20,onInput:this.onChange,ref:n.setRef(this,"input"),onKeydown:this.onKeyDown,onFocusin:this.onFocus,onBlur:this.onBlur,"aria-disabled":this.$props.disabled||void 0,disabled:this.$props.disabled||void 0,readonly:this.$props.readOnly||void 0,"aria-autocomplete":this.$props.suggestedText?"both":"list","aria-haspopup":"listbox","aria-expanded":this.$props.expanded||!1,"aria-controls":this.$props.owns,"aria-activedescendant":this.$props.expanded?this.$props.activedescendant:void 0,"aria-describedby":this.$props.ariaDescribedBy,"aria-labelledby":this.$props.ariaLabelledBy,"aria-label":this.$props.ariaLabel},this.$props.inputAttributes),null)}});exports.SearchBar=d;
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),n=require("@progress/kendo-vue-common"),d=s.defineComponent({name:"search-bar",emits:{change:e=>!0,keydown:e=>!0,focus:e=>!0,blur:e=>!0},props:{value:String,id:String,placeholder:String,tabIndex:Number,size:{type:Number,default:void 0},suggestedText:String,focused:Boolean,disabled:Boolean,readOnly:Boolean,expanded:Boolean,owns:String,name:String,activedescendant:String,ariaDescribedBy:String,clearButton:Boolean,accessKey:String,ariaLabelledBy:String,ariaLabel:{type:String,default:void 0},onClearbuttonclick:Function,inputAttributes:Object},data(){return{prevValue:void 0,prevSuggestedText:void 0}},watch:{suggestedText:function(e,t){this.prevSuggestedText=t},value:function(e,t){this.prevValue=t}},updated(){const{value:e,suggestedText:t,focused:r}=this.$props;this.input||(this.input=this.$refs.input);const i=this.input,a=this.$data.prevValue!==e||t!==this.prevSuggestedText,o=a&&this.$data.prevValue&&this.$data.prevValue.startsWith(e)&&!(this.$data.prevSuggestedText&&t&&this.$data.prevSuggestedText.endsWith(t));r&&i&&n.canUseDOM&&document.activeElement!==i&&i.focus(),t&&a&&!o&&i&&i.setSelectionRange(e.length-t.length,e.length)},setup(){return{inputRef:s.ref(null)}},mounted(){this.input=n.getRef(this,"input")},methods:{onChange(e){this.$emit("change",e)},onBlur(e){this.$emit("blur",e)},onFocus(e){this.$emit("focus",e)},onKeyDown(e){this.$emit("keydown",e)},clearButtonClick(e){this.$emit("clearbuttonclick",e)}},render(){var e;return s.createVNode("input",s.mergeProps({autocomplete:"off",id:this.$props.id,type:"text",key:"searchbar",placeholder:this.$props.placeholder,class:"k-input-inner",tabindex:(e=this.$props.tabIndex)!=null?e:0,accesskey:this.$props.accessKey,role:"combobox",name:this.$props.name,value:this.$props.value,size:this.$props.size?this.$props.size:20,onInput:this.onChange,ref:n.setRef(this,"input"),onKeydown:this.onKeyDown,onFocusin:this.onFocus,onBlur:this.onBlur,"aria-disabled":this.$props.disabled||void 0,disabled:this.$props.disabled||void 0,readonly:this.$props.readOnly||void 0,"aria-autocomplete":this.$props.suggestedText?"both":"list","aria-haspopup":"listbox","aria-expanded":this.$props.expanded||!1,"aria-controls":this.$props.owns,"aria-activedescendant":this.$props.expanded?this.$props.activedescendant:void 0,"aria-describedby":this.$props.ariaDescribedBy,"aria-labelledby":this.$props.ariaLabelledBy,"aria-label":this.$props.ariaLabel},this.$props.inputAttributes),null)}});exports.SearchBar=d;
|
package/common/SearchBar.mjs
CHANGED
|
@@ -93,6 +93,7 @@ const b = /* @__PURE__ */ r({
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
render() {
|
|
96
|
+
var e;
|
|
96
97
|
return o("input", d({
|
|
97
98
|
autocomplete: "off",
|
|
98
99
|
id: this.$props.id,
|
|
@@ -100,7 +101,7 @@ const b = /* @__PURE__ */ r({
|
|
|
100
101
|
key: "searchbar",
|
|
101
102
|
placeholder: this.$props.placeholder,
|
|
102
103
|
class: "k-input-inner",
|
|
103
|
-
tabindex: this.$props.tabIndex,
|
|
104
|
+
tabindex: (e = this.$props.tabIndex) != null ? e : 0,
|
|
104
105
|
accesskey: this.$props.accessKey,
|
|
105
106
|
role: "combobox",
|
|
106
107
|
name: this.$props.name,
|