@progress/kendo-vue-dropdowns 7.0.1-develop.2 → 7.0.1-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 +10 -10
- package/DropDownTree/DropDownTree.js +1 -1
- package/DropDownTree/DropDownTree.mjs +22 -22
- package/MultiSelect/MultiSelect.js +1 -1
- package/MultiSelect/MultiSelect.mjs +71 -71
- package/MultiSelectTree/MultiSelectTree.js +1 -1
- package/MultiSelectTree/MultiSelectTree.mjs +34 -34
- package/common/List.js +1 -1
- package/common/List.mjs +7 -7
- package/common/ListContainer.js +1 -1
- package/common/ListContainer.mjs +29 -29
- package/common/ListFilter.js +1 -1
- package/common/ListFilter.mjs +12 -12
- package/common/SearchBar.js +1 -1
- package/common/SearchBar.mjs +4 -4
- package/dist/cdn/js/kendo-vue-dropdowns.js +1 -1
- package/index.d.mts +78 -79
- package/index.d.ts +78 -79
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +10 -10
|
@@ -47,15 +47,15 @@ const Oe = "Please select a value from the list!", {
|
|
|
47
47
|
event: "changemodel"
|
|
48
48
|
},
|
|
49
49
|
emits: {
|
|
50
|
-
open:
|
|
51
|
-
close:
|
|
52
|
-
focus:
|
|
53
|
-
blur:
|
|
54
|
-
change:
|
|
55
|
-
filterchange:
|
|
56
|
-
expandchange:
|
|
57
|
-
changemodel:
|
|
58
|
-
"update:modelValue":
|
|
50
|
+
open: (e) => !0,
|
|
51
|
+
close: (e) => !0,
|
|
52
|
+
focus: (e) => !0,
|
|
53
|
+
blur: (e) => !0,
|
|
54
|
+
change: (e) => !0,
|
|
55
|
+
filterchange: (e) => !0,
|
|
56
|
+
expandchange: (e) => !0,
|
|
57
|
+
changemodel: (e) => !0,
|
|
58
|
+
"update:modelValue": (e) => !0
|
|
59
59
|
},
|
|
60
60
|
props: {
|
|
61
61
|
opened: {
|
|
@@ -244,9 +244,9 @@ const Oe = "Please select a value from the list!", {
|
|
|
244
244
|
dataItems: i,
|
|
245
245
|
dataItemKey: n,
|
|
246
246
|
popupSettings: o = {},
|
|
247
|
-
disabled:
|
|
247
|
+
disabled: d,
|
|
248
248
|
placeholder: l,
|
|
249
|
-
label:
|
|
249
|
+
label: r,
|
|
250
250
|
name: h,
|
|
251
251
|
checkField: b,
|
|
252
252
|
checkIndeterminateField: F,
|
|
@@ -257,7 +257,7 @@ const Oe = "Please select a value from the list!", {
|
|
|
257
257
|
required: I,
|
|
258
258
|
validityStyles: ee,
|
|
259
259
|
adaptiveTitle: te
|
|
260
|
-
} = this.$props, w = ve(this.$props.tabIndex,
|
|
260
|
+
} = this.$props, w = ve(this.$props.tabIndex, d), T = we(this), ie = X({
|
|
261
261
|
validationMessage: Y,
|
|
262
262
|
valid: Z,
|
|
263
263
|
required: I
|
|
@@ -277,7 +277,7 @@ const Oe = "Please select a value from the list!", {
|
|
|
277
277
|
size: c,
|
|
278
278
|
rounded: k,
|
|
279
279
|
fillMode: y
|
|
280
|
-
} = this.$props,
|
|
280
|
+
} = this.$props, re = () => [s("div", {
|
|
281
281
|
class: "k-actionsheet-titlebar-group k-hbox"
|
|
282
282
|
}, [s("div", {
|
|
283
283
|
class: "k-actionsheet-title"
|
|
@@ -308,7 +308,7 @@ const Oe = "Please select a value from the list!", {
|
|
|
308
308
|
fillMode: y,
|
|
309
309
|
onFocus: this.onFocus,
|
|
310
310
|
onBlur: this.onBlur
|
|
311
|
-
}, null)])],
|
|
311
|
+
}, null)])], de = u.call(this, re, f.call(this)), he = () => {
|
|
312
312
|
const p = T.toLanguageString(H, E[H]), m = T.toLanguageString(U, E[U]);
|
|
313
313
|
return [s(B, {
|
|
314
314
|
size: "large",
|
|
@@ -363,7 +363,7 @@ const Oe = "Please select a value from the list!", {
|
|
|
363
363
|
className: this.classNameAdaptive,
|
|
364
364
|
footerClassName: "k-actions k-actions-stretched",
|
|
365
365
|
contentClassName: "!k-overflow-hidden",
|
|
366
|
-
header:
|
|
366
|
+
header: de,
|
|
367
367
|
content: ue,
|
|
368
368
|
footer: ce,
|
|
369
369
|
onClose: this.onCancel,
|
|
@@ -376,9 +376,9 @@ const Oe = "Please select a value from the list!", {
|
|
|
376
376
|
[`k-input-${Q[c] || c}`]: c,
|
|
377
377
|
[`k-rounded-${Pe[k] || k}`]: k,
|
|
378
378
|
[`k-input-${y}`]: y,
|
|
379
|
-
"k-focus": this.focusedState && !
|
|
379
|
+
"k-focus": this.focusedState && !d,
|
|
380
380
|
"k-invalid": !W,
|
|
381
|
-
"k-disabled":
|
|
381
|
+
"k-disabled": d,
|
|
382
382
|
"k-loading": this.$props.loading,
|
|
383
383
|
"k-required": I
|
|
384
384
|
}),
|
|
@@ -393,8 +393,8 @@ const Oe = "Please select a value from the list!", {
|
|
|
393
393
|
role: "combobox",
|
|
394
394
|
"aria-haspopup": "tree",
|
|
395
395
|
"aria-expanded": this.isOpen,
|
|
396
|
-
"aria-disabled":
|
|
397
|
-
"aria-label":
|
|
396
|
+
"aria-disabled": d,
|
|
397
|
+
"aria-label": r,
|
|
398
398
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
399
399
|
"aria-describedby": this.$props.ariaLabelledBy ? this.$props.ariaLabelledBy : "tagslist-" + t,
|
|
400
400
|
"aria-required": this.$props.required,
|
|
@@ -429,7 +429,7 @@ const Oe = "Please select a value from the list!", {
|
|
|
429
429
|
class: "k-input-loading-icon",
|
|
430
430
|
name: "loading"
|
|
431
431
|
}, null),
|
|
432
|
-
this.hasValue && !
|
|
432
|
+
this.hasValue && !d && s(Te, {
|
|
433
433
|
onClearclick: this.onClear
|
|
434
434
|
}, null),
|
|
435
435
|
/* Dummy component to support forms */
|
|
@@ -439,7 +439,7 @@ const Oe = "Please select a value from the list!", {
|
|
|
439
439
|
tabindex: -1,
|
|
440
440
|
"aria-hidden": !0,
|
|
441
441
|
required: I,
|
|
442
|
-
title:
|
|
442
|
+
title: r,
|
|
443
443
|
style: {
|
|
444
444
|
opacity: 0,
|
|
445
445
|
width: 1,
|
|
@@ -508,12 +508,12 @@ const Oe = "Please select a value from the list!", {
|
|
|
508
508
|
}.call(this), {
|
|
509
509
|
...this.$attrs
|
|
510
510
|
}), P && fe.call(this)];
|
|
511
|
-
return
|
|
512
|
-
label:
|
|
511
|
+
return r ? s($e, {
|
|
512
|
+
label: r,
|
|
513
513
|
editorValue: this.hasValue,
|
|
514
514
|
editorPlaceholder: l,
|
|
515
515
|
editorValid: W,
|
|
516
|
-
editorDisabled:
|
|
516
|
+
editorDisabled: d,
|
|
517
517
|
editorId: t,
|
|
518
518
|
dir: R
|
|
519
519
|
}, $(x) ? x : {
|
|
@@ -572,13 +572,13 @@ const Oe = "Please select a value from the list!", {
|
|
|
572
572
|
items: t,
|
|
573
573
|
operation: i,
|
|
574
574
|
value: this.computedValue
|
|
575
|
-
}),
|
|
575
|
+
}), d = {
|
|
576
576
|
items: t,
|
|
577
577
|
operation: i,
|
|
578
578
|
value: o,
|
|
579
579
|
...e
|
|
580
580
|
};
|
|
581
|
-
this.$emit("changemodel", o), this.$emit("update:modelValue", o), this.$emit("change",
|
|
581
|
+
this.$emit("changemodel", o), this.$emit("update:modelValue", o), this.$emit("change", d);
|
|
582
582
|
},
|
|
583
583
|
onChange(e) {
|
|
584
584
|
if (xe(e.item, this.computedValue, this.dataItemKey))
|
|
@@ -676,25 +676,25 @@ const Oe = "Please select a value from the list!", {
|
|
|
676
676
|
} = e, n = this.treeViewRef && this.treeViewRef.$el, o = this.inputRef && this.inputRef.input;
|
|
677
677
|
if (this.$props.disabled || e.defaultPrevented && o === e.target)
|
|
678
678
|
return;
|
|
679
|
-
const
|
|
679
|
+
const d = {
|
|
680
680
|
event: e,
|
|
681
681
|
target: this
|
|
682
682
|
};
|
|
683
683
|
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)) {
|
|
684
684
|
const l = this.tagsToRenderRef;
|
|
685
|
-
let
|
|
686
|
-
const b =
|
|
687
|
-
t === a.left ? (b ?
|
|
685
|
+
let r = this.focusedTagState ? l.findIndex((F) => j(F, this.focusedTagState, this.dataItemKey)) : -1, h;
|
|
686
|
+
const b = r !== -1;
|
|
687
|
+
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
688
|
}
|
|
689
689
|
if (this.isOpen)
|
|
690
690
|
if (t === a.esc || i && t === a.up)
|
|
691
691
|
e.preventDefault(), this.switchFocus(() => {
|
|
692
692
|
this.focusElement(this.elementRef);
|
|
693
|
-
}), this.closePopup(
|
|
693
|
+
}), this.closePopup(d);
|
|
694
694
|
else if (n && n.querySelector(".k-focus") && (t === a.up || t === a.down || t === a.left || t === a.right || t === a.home || t === a.end)) {
|
|
695
695
|
if (t === a.up) {
|
|
696
|
-
const l = Array.from(n.querySelectorAll(".k-treeview-item")),
|
|
697
|
-
if (
|
|
696
|
+
const l = Array.from(n.querySelectorAll(".k-treeview-item")), r = [...l].reverse().find((h) => !!(h && h.querySelector(".k-focus")));
|
|
697
|
+
if (r && l.indexOf(r) === 0)
|
|
698
698
|
return this.switchFocus(() => {
|
|
699
699
|
this.focusElement(o || this.elementRef);
|
|
700
700
|
});
|
|
@@ -704,7 +704,7 @@ const Oe = "Please select a value from the list!", {
|
|
|
704
704
|
this.focusElement(o || n);
|
|
705
705
|
});
|
|
706
706
|
else
|
|
707
|
-
i && t === a.down && (e.preventDefault(), this.openPopup(
|
|
707
|
+
i && t === a.down && (e.preventDefault(), this.openPopup(d));
|
|
708
708
|
},
|
|
709
709
|
onInputKeyDown(e) {
|
|
710
710
|
const {
|
package/common/List.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 e=require("vue"),w=require("./ListItem.js"),A=require("./ListGroupItem.js"),c=require("./utils.js"),u=require("@progress/kendo-vue-common"),z=require("@progress/kendo-vue-intl"),f=require("../messages/main.js"),D=e.defineComponent({name:"list",emits:{listclick:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("./ListItem.js"),A=require("./ListGroupItem.js"),c=require("./utils.js"),u=require("@progress/kendo-vue-common"),z=require("@progress/kendo-vue-intl"),f=require("../messages/main.js"),D=e.defineComponent({name:"list",emits:{listclick:t=>!0,scroll:t=>!0},inheritAttrs:!1,props:{id:String,show:Boolean,dataItems:Array,value:[Object,String,Number,Boolean,Array],textField:String,valueField:String,optionsGuid:String,wrapperCssClass:String,wrapperStyle:Object,listStyle:Object,skip:Number,focusedIndex:Number,highlightSelected:{type:Boolean,default:!0},itemRender:[String,Function,Object],groupHeaderItemRender:[String,Function,Object],noDataRender:[String,Function,Object],scroller:Boolean,groupField:String},inject:{kendoLocalizationService:{default:null}},setup(){const t=e.ref(null),r=e.inject("kendoLocalizationService",{});return{listRef:t,kendoLocalizationService:r}},mounted(){this.list=u.getRef(this,"list")},methods:{handleClick(t,r){this.$emit("listclick",t,r)},handleScroll(t){this.$emit("scroll",t)}},render(){const t=u.getDefaultSlots(this),r=z.provideLocalizationService(this),{id:y,show:b,wrapperCssClass:R,wrapperStyle:j,listStyle:L,listRef:B}=this.$props,V=function(){const p=this.$props.noDataRender,l=e.createVNode("div",{class:"k-nodata"},[e.createVNode("div",null,[r.toLanguageString(f.nodata,f.messages[f.nodata])])]);return u.getTemplate.call(this,{h:e.h,template:p,defaultRendering:l})},S=function(){const{textField:p,valueField:l,optionsGuid:v,skip:C=0,focusedIndex:F,highlightSelected:N,value:g,groupField:o,itemRender:O,groupHeaderItemRender:$,dataItems:I}=this.$props,k=Array.isArray(g);let s=0;return I.map(function(n,h){const i=C+h,q=N&&(!k&&c.areSame(n,g,l)||k&&g.findIndex(x=>c.areSame(x,n,l))!==-1);let a,d,m;return h>0&&o!==void 0&&(d=c.getItemValue(n,o),m=c.getItemValue(I[h-1],o),d&&m&&d!==m!==void 0&&(a=d)),a!==void 0&&Object.keys(n).length===1&&(s+=1),a!==void 0&&n[o]!==void 0&&Object.keys(n).length===1?e.createVNode(A.ListGroupItem,{id:`option-${v}-${i}`,key:i+"-group-item",group:a,render:$},null):e.createVNode(w.ListItem,{id:`option-${v}-${i}`,dataItem:n,selected:q,focused:F===i-s,index:i-s,key:i-s,onItemClick:this.handleClick,textField:p,render:O},null)},this)}.call(this);return S.length?e.createVNode("div",{class:R,style:j,unselectable:"on",onScroll:this.handleScroll},[e.createVNode("ul",{id:y,role:"listbox","aria-live":"polite","aria-hidden":b?void 0:!0,class:"k-list-ul",ref:u.setRef(this,"list"),style:L},[S]),t]):V.call(this)}});exports.List=D;
|
package/common/List.mjs
CHANGED
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
import { defineComponent as D, createVNode as i, ref as N, inject as B, h as G } from "vue";
|
|
9
9
|
import { ListItem as V } from "./ListItem.mjs";
|
|
10
10
|
import { ListGroupItem as E } from "./ListGroupItem.mjs";
|
|
11
|
-
import { areSame as
|
|
11
|
+
import { areSame as v, getItemValue as k } from "./utils.mjs";
|
|
12
12
|
import { getDefaultSlots as H, setRef as T, getRef as q, getTemplate as J } from "@progress/kendo-vue-common";
|
|
13
13
|
import { provideLocalizationService as K } from "@progress/kendo-vue-intl";
|
|
14
|
-
import { nodata as
|
|
14
|
+
import { nodata as y, messages as M } from "../messages/main.mjs";
|
|
15
15
|
const te = /* @__PURE__ */ D({
|
|
16
16
|
name: "list",
|
|
17
17
|
emits: {
|
|
18
|
-
listclick:
|
|
19
|
-
scroll:
|
|
18
|
+
listclick: (e) => !0,
|
|
19
|
+
scroll: (e) => !0
|
|
20
20
|
},
|
|
21
21
|
inheritAttrs: !1,
|
|
22
22
|
props: {
|
|
@@ -76,7 +76,7 @@ const te = /* @__PURE__ */ D({
|
|
|
76
76
|
} = this.$props, C = function() {
|
|
77
77
|
const c = this.$props.noDataRender, l = i("div", {
|
|
78
78
|
class: "k-nodata"
|
|
79
|
-
}, [i("div", null, [r.toLanguageString(
|
|
79
|
+
}, [i("div", null, [r.toLanguageString(y, M[y])])]);
|
|
80
80
|
return J.call(this, {
|
|
81
81
|
h: G,
|
|
82
82
|
template: c,
|
|
@@ -98,9 +98,9 @@ const te = /* @__PURE__ */ D({
|
|
|
98
98
|
} = this.$props, S = Array.isArray(u);
|
|
99
99
|
let s = 0;
|
|
100
100
|
return g.map(function(t, p) {
|
|
101
|
-
const n = $ + p, A = L && (!S &&
|
|
101
|
+
const n = $ + p, A = L && (!S && v(t, u, l) || S && u.findIndex((z) => v(z, t, l)) !== -1);
|
|
102
102
|
let a, d, m;
|
|
103
|
-
return p > 0 && o !== void 0 && (d =
|
|
103
|
+
return p > 0 && o !== void 0 && (d = k(t, o), m = k(g[p - 1], o), d && m && d !== m !== void 0 && (a = d)), a !== void 0 && Object.keys(t).length === 1 && (s += 1), a !== void 0 && t[o] !== void 0 && Object.keys(t).length === 1 ? i(E, {
|
|
104
104
|
id: `option-${h}-${n}`,
|
|
105
105
|
key: n + "-group-item",
|
|
106
106
|
group: a,
|
package/common/ListContainer.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 o=require("vue"),S=require("@progress/kendo-vue-popup"),b=require("@progress/kendo-vue-common"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),S=require("@progress/kendo-vue-popup"),b=require("@progress/kendo-vue-common"),v=o.defineComponent({name:"list-container",emits:{mousedown:e=>!0,blur:e=>!0,open:e=>!0,close:e=>!0},props:{width:[String,Number],dir:String,itemsCount:Number,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}}},created(){this.kendoAnchorRef=void 0},methods:{onMouseDown(e){this.$emit("mousedown",e)},onBlur(e){this.$emit("blur",e)},onOpen(e){this.$emit("open",e)},onClose(e){this.$emit("close",e)}},render(){const e=b.getDefaultSlots(this),{width:n,dir:i,popupSettings:s}=this.$props,{popupClass:p,className:r,animate:u,anchor:l,anchorAlign:d,show:a,itemsCount:y,appendTo:c,collision:h,direction:m,offset:f,popupAlign:g,style:w,width:t,popupStyle:C}=s;return o.createVNode(S.Popup,{ref:"popup",style:{...w,width:t||n,direction:i},popupClass:r,animate:u,anchor:l,anchorAlign:d,show:a,onOpen:this.onOpen,onClose:this.onClose,appendTo:c,collision:h,direction:m,offset:f,popupAlign:g},{default:()=>[o.createVNode("div",{class:p,style:C,onMousedown:this.onMouseDown,onFocusout:this.onBlur},[e])]})}});exports.ListContainer=v;
|
package/common/ListContainer.mjs
CHANGED
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as S, createVNode as
|
|
8
|
+
import { defineComponent as S, createVNode as t } from "vue";
|
|
9
9
|
import { Popup as b } from "@progress/kendo-vue-popup";
|
|
10
|
-
import { getDefaultSlots as
|
|
11
|
-
const
|
|
10
|
+
import { getDefaultSlots as v } from "@progress/kendo-vue-common";
|
|
11
|
+
const O = /* @__PURE__ */ S({
|
|
12
12
|
name: "list-container",
|
|
13
13
|
emits: {
|
|
14
|
-
mousedown:
|
|
15
|
-
blur:
|
|
16
|
-
open:
|
|
17
|
-
close:
|
|
14
|
+
mousedown: (e) => !0,
|
|
15
|
+
blur: (e) => !0,
|
|
16
|
+
open: (e) => !0,
|
|
17
|
+
close: (e) => !0
|
|
18
18
|
},
|
|
19
19
|
props: {
|
|
20
20
|
width: [String, Number],
|
|
@@ -34,51 +34,51 @@ const D = /* @__PURE__ */ S({
|
|
|
34
34
|
this.kendoAnchorRef = void 0;
|
|
35
35
|
},
|
|
36
36
|
methods: {
|
|
37
|
-
onMouseDown(
|
|
38
|
-
this.$emit("mousedown",
|
|
37
|
+
onMouseDown(e) {
|
|
38
|
+
this.$emit("mousedown", e);
|
|
39
39
|
},
|
|
40
|
-
onBlur(
|
|
41
|
-
this.$emit("blur",
|
|
40
|
+
onBlur(e) {
|
|
41
|
+
this.$emit("blur", e);
|
|
42
42
|
},
|
|
43
|
-
onOpen(
|
|
44
|
-
this.$emit("open",
|
|
43
|
+
onOpen(e) {
|
|
44
|
+
this.$emit("open", e);
|
|
45
45
|
},
|
|
46
|
-
onClose(
|
|
47
|
-
this.$emit("close",
|
|
46
|
+
onClose(e) {
|
|
47
|
+
this.$emit("close", e);
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
render() {
|
|
51
|
-
const
|
|
51
|
+
const e = v(this), {
|
|
52
52
|
width: n,
|
|
53
53
|
dir: i,
|
|
54
54
|
popupSettings: s
|
|
55
55
|
} = this.$props, {
|
|
56
56
|
popupClass: p,
|
|
57
|
-
className:
|
|
58
|
-
animate:
|
|
59
|
-
anchor:
|
|
57
|
+
className: r,
|
|
58
|
+
animate: u,
|
|
59
|
+
anchor: l,
|
|
60
60
|
anchorAlign: d,
|
|
61
61
|
show: a,
|
|
62
|
-
itemsCount:
|
|
62
|
+
itemsCount: y,
|
|
63
63
|
appendTo: h,
|
|
64
64
|
collision: c,
|
|
65
65
|
direction: m,
|
|
66
66
|
offset: f,
|
|
67
67
|
popupAlign: w,
|
|
68
68
|
style: g,
|
|
69
|
-
width:
|
|
69
|
+
width: o,
|
|
70
70
|
popupStyle: C
|
|
71
71
|
} = s;
|
|
72
|
-
return
|
|
72
|
+
return t(b, {
|
|
73
73
|
ref: "popup",
|
|
74
74
|
style: {
|
|
75
75
|
...g,
|
|
76
|
-
width:
|
|
76
|
+
width: o || n,
|
|
77
77
|
direction: i
|
|
78
78
|
},
|
|
79
|
-
popupClass:
|
|
80
|
-
animate:
|
|
81
|
-
anchor:
|
|
79
|
+
popupClass: r,
|
|
80
|
+
animate: u,
|
|
81
|
+
anchor: l,
|
|
82
82
|
anchorAlign: d,
|
|
83
83
|
show: a,
|
|
84
84
|
onOpen: this.onOpen,
|
|
@@ -89,15 +89,15 @@ const D = /* @__PURE__ */ S({
|
|
|
89
89
|
offset: f,
|
|
90
90
|
popupAlign: w
|
|
91
91
|
}, {
|
|
92
|
-
default: () => [
|
|
92
|
+
default: () => [t("div", {
|
|
93
93
|
class: p,
|
|
94
94
|
style: C,
|
|
95
95
|
onMousedown: this.onMouseDown,
|
|
96
96
|
onFocusout: this.onBlur
|
|
97
|
-
}, [
|
|
97
|
+
}, [e])]
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
export {
|
|
102
|
-
|
|
102
|
+
O as ListContainer
|
|
103
103
|
};
|
package/common/ListFilter.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),o=require("@progress/kendo-vue-common"),p=require("@progress/kendo-svg-icons"),f=require("@progress/kendo-vue-inputs"),h=require("@progress/kendo-vue-intl"),r=require("../messages/main.js"),{sizeMap:m,roundedMap:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),o=require("@progress/kendo-vue-common"),p=require("@progress/kendo-svg-icons"),f=require("@progress/kendo-vue-inputs"),h=require("@progress/kendo-vue-intl"),r=require("../messages/main.js"),{sizeMap:m,roundedMap:v}=o.kendoThemeMaps,g=i.defineComponent({name:"list-filter",emits:{keydown:e=>!0,change:e=>!0,focus:e=>!0,blur:e=>!0},inject:{kendoLocalizationService:{default:null}},props:{value:String,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}},adaptiveMode:{type:Boolean,default:!1},ariaControlsId:String,ariaActivedescendantId:String,tabIndex:{type:Number,default:0}},computed:{spanClass(){const{size:e,rounded:t,fillMode:n}=this.$props;return{"k-searchbox k-input":!0,[`k-input-${m[e]||e}`]:e,[`k-rounded-${v[t]||t}`]:t,[`k-input-${n}`]:n}}},setup(){return{inputRef:i.ref(null)}},methods:{onKeyDown(e){this.$emit("keydown",e)},onChange(e){this.$emit("change",e)},handleFocus(e){this.$emit("focus",e)},handleBlur(e){this.$emit("blur",e)},prefixRender(e){const t={class:"k-input-icon",name:"search",icon:p.searchIcon};return e(o.Icon,{...t})}},mounted(){this.input=o.getRef(this,"input")._input},render(){const{size:e,rounded:t,fillMode:n,adaptiveMode:s,ariaControlsId:l,ariaActivedescendantId:u,tabIndex:d}=this.$props,c=h.provideLocalizationService(this).toLanguageString(r.filterLabel,r.messages[r.filterLabel]),a=function(){return i.createVNode(f.TextBox,{ref:o.setRef(this,"input"),value:this.$props.value,onInput:this.onChange,onKeydown:this.onKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,size:e,fillMode:n,rounded:t,inputPrefix:this.prefixRender,role:"searchbox","aria-label":c,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-activedescendant":u,"aria-controls":l,tabIndex:d},null)};return s?a.call(this):i.createVNode("div",{class:"k-list-filter"},[a.call(this)])}});exports.ListFilter=g;
|
package/common/ListFilter.mjs
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { defineComponent as c, createVNode as o, ref as p } from "vue";
|
|
9
|
-
import { getRef as f, Icon as m, kendoThemeMaps as h, setRef as
|
|
10
|
-
import { searchIcon as
|
|
9
|
+
import { getRef as f, Icon as m, kendoThemeMaps as h, setRef as v } from "@progress/kendo-vue-common";
|
|
10
|
+
import { searchIcon as g } from "@progress/kendo-svg-icons";
|
|
11
11
|
import { TextBox as b } from "@progress/kendo-vue-inputs";
|
|
12
12
|
import { provideLocalizationService as x } from "@progress/kendo-vue-intl";
|
|
13
13
|
import { filterLabel as r, messages as k } from "../messages/main.mjs";
|
|
@@ -17,10 +17,10 @@ const {
|
|
|
17
17
|
} = h, R = /* @__PURE__ */ c({
|
|
18
18
|
name: "list-filter",
|
|
19
19
|
emits: {
|
|
20
|
-
keydown:
|
|
21
|
-
change:
|
|
22
|
-
focus:
|
|
23
|
-
blur:
|
|
20
|
+
keydown: (e) => !0,
|
|
21
|
+
change: (e) => !0,
|
|
22
|
+
focus: (e) => !0,
|
|
23
|
+
blur: (e) => !0
|
|
24
24
|
},
|
|
25
25
|
inject: {
|
|
26
26
|
kendoLocalizationService: {
|
|
@@ -99,7 +99,7 @@ const {
|
|
|
99
99
|
...{
|
|
100
100
|
class: "k-input-icon",
|
|
101
101
|
name: "search",
|
|
102
|
-
icon:
|
|
102
|
+
icon: g
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
}
|
|
@@ -113,12 +113,12 @@ const {
|
|
|
113
113
|
rounded: t,
|
|
114
114
|
fillMode: n,
|
|
115
115
|
adaptiveMode: a,
|
|
116
|
-
ariaControlsId:
|
|
117
|
-
ariaActivedescendantId:
|
|
116
|
+
ariaControlsId: s,
|
|
117
|
+
ariaActivedescendantId: l,
|
|
118
118
|
tabIndex: u
|
|
119
119
|
} = this.$props, d = x(this).toLanguageString(r, k[r]), i = function() {
|
|
120
120
|
return o(b, {
|
|
121
|
-
ref:
|
|
121
|
+
ref: v(this, "input"),
|
|
122
122
|
value: this.$props.value,
|
|
123
123
|
onInput: this.onChange,
|
|
124
124
|
onKeydown: this.onKeyDown,
|
|
@@ -132,8 +132,8 @@ const {
|
|
|
132
132
|
"aria-label": d,
|
|
133
133
|
"aria-haspopup": "listbox",
|
|
134
134
|
"aria-autocomplete": "list",
|
|
135
|
-
"aria-activedescendant":
|
|
136
|
-
"aria-controls":
|
|
135
|
+
"aria-activedescendant": l,
|
|
136
|
+
"aria-controls": s,
|
|
137
137
|
tabIndex: u
|
|
138
138
|
}, null);
|
|
139
139
|
};
|
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:
|
|
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;
|
package/common/SearchBar.mjs
CHANGED
|
@@ -10,10 +10,10 @@ import { setRef as u, getRef as l, canUseDOM as h } from "@progress/kendo-vue-co
|
|
|
10
10
|
const b = /* @__PURE__ */ r({
|
|
11
11
|
name: "search-bar",
|
|
12
12
|
emits: {
|
|
13
|
-
change:
|
|
14
|
-
keydown:
|
|
15
|
-
focus:
|
|
16
|
-
blur:
|
|
13
|
+
change: (e) => !0,
|
|
14
|
+
keydown: (e) => !0,
|
|
15
|
+
focus: (e) => !0,
|
|
16
|
+
blur: (e) => !0
|
|
17
17
|
},
|
|
18
18
|
props: {
|
|
19
19
|
value: String,
|