@progress/kendo-vue-dropdowns 3.9.4-dev.202304190945 → 3.9.4-dev.202304241333
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/dist/cdn/js/kendo-vue-dropdowns.js +1 -1
- package/dist/es/ComboBox/ComboBox.js +3 -1
- package/dist/es/DropDownTree/DropDownTreeProps.d.ts +2 -2
- package/dist/es/MultiSelectTree/MultiSelectTree.js +65 -21
- package/dist/es/MultiSelectTree/MultiSelectTreeProps.d.ts +11 -3
- package/dist/es/common/ListFilter.js +15 -3
- package/dist/es/package-metadata.js +1 -1
- package/dist/esm/ComboBox/ComboBox.js +3 -1
- package/dist/esm/DropDownTree/DropDownTreeProps.d.ts +2 -2
- package/dist/esm/MultiSelectTree/MultiSelectTree.js +65 -21
- package/dist/esm/MultiSelectTree/MultiSelectTreeProps.d.ts +11 -3
- package/dist/esm/common/ListFilter.js +15 -3
- package/dist/esm/package-metadata.js +1 -1
- package/dist/npm/ComboBox/ComboBox.js +3 -1
- package/dist/npm/DropDownTree/DropDownTreeProps.d.ts +2 -2
- package/dist/npm/MultiSelectTree/MultiSelectTree.js +65 -21
- package/dist/npm/MultiSelectTree/MultiSelectTreeProps.d.ts +11 -3
- package/dist/npm/common/ListFilter.js +15 -3
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +8 -8
|
@@ -17,6 +17,10 @@ export interface MultiSelectTreeChangeEvent extends DropdownEvent {
|
|
|
17
17
|
* The items related to current operation.
|
|
18
18
|
*/
|
|
19
19
|
items: any[];
|
|
20
|
+
/**
|
|
21
|
+
* The new value.
|
|
22
|
+
*/
|
|
23
|
+
value: any[];
|
|
20
24
|
/**
|
|
21
25
|
* Describes the current operation:
|
|
22
26
|
* * `clear` - clear button is clicked and value is cleared. Null value is returned.
|
|
@@ -85,9 +89,13 @@ export interface MultiSelectTreeProps extends FormComponentProps {
|
|
|
85
89
|
*/
|
|
86
90
|
opened?: boolean;
|
|
87
91
|
/**
|
|
88
|
-
* Sets the value of the MultiSelectTree. It can either be of the primitive (string, numbers) or of the complex (objects) type.
|
|
92
|
+
* Sets the value of the MultiSelectTree. It can either be an array of the primitive (string, numbers) or of the complex (objects) type.
|
|
89
93
|
*/
|
|
90
94
|
value?: Array<any>;
|
|
95
|
+
/**
|
|
96
|
+
* Sets the modelValue of the MultiSelectTree. It can either be an array of the primitive (string, numbers) or of the complex (objects) type.
|
|
97
|
+
*/
|
|
98
|
+
modelValue?: Array<any>;
|
|
91
99
|
/**
|
|
92
100
|
* The hint that is displayed when the MultiSelectTree is empty.
|
|
93
101
|
*/
|
|
@@ -161,7 +169,7 @@ export interface MultiSelectTreeProps extends FormComponentProps {
|
|
|
161
169
|
filterable?: boolean;
|
|
162
170
|
/**
|
|
163
171
|
* Sets the value of filtering input.
|
|
164
|
-
* Useful for making the filtering input a
|
|
172
|
+
* Useful for making the filtering input a controlled component.
|
|
165
173
|
*/
|
|
166
174
|
filter?: string;
|
|
167
175
|
/**
|
|
@@ -202,7 +210,7 @@ export interface MultiSelectTreeProps extends FormComponentProps {
|
|
|
202
210
|
*/
|
|
203
211
|
popupSettings?: DropDownsPopupSettings;
|
|
204
212
|
/**
|
|
205
|
-
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden
|
|
213
|
+
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden `select` element.
|
|
206
214
|
*
|
|
207
215
|
* @example
|
|
208
216
|
* ```jsx-no-run
|
|
@@ -16,7 +16,9 @@ var ListFilterVue2 = {
|
|
|
16
16
|
// @ts-ignore
|
|
17
17
|
emits: {
|
|
18
18
|
keydown: null,
|
|
19
|
-
change: null
|
|
19
|
+
change: null,
|
|
20
|
+
focus: null,
|
|
21
|
+
blur: null
|
|
20
22
|
},
|
|
21
23
|
props: {
|
|
22
24
|
value: String,
|
|
@@ -69,6 +71,12 @@ var ListFilterVue2 = {
|
|
|
69
71
|
},
|
|
70
72
|
onChange: function onChange(e) {
|
|
71
73
|
this.$emit('change', e);
|
|
74
|
+
},
|
|
75
|
+
handleFocus: function handleFocus(e) {
|
|
76
|
+
this.$emit('focus', e);
|
|
77
|
+
},
|
|
78
|
+
handleBlur: function handleBlur(e) {
|
|
79
|
+
this.$emit('blur', e);
|
|
72
80
|
}
|
|
73
81
|
},
|
|
74
82
|
mounted: function mounted() {
|
|
@@ -103,9 +111,13 @@ var ListFilterVue2 = {
|
|
|
103
111
|
onInput: this.onChange,
|
|
104
112
|
on: this.v3 ? undefined : {
|
|
105
113
|
"input": this.onChange,
|
|
106
|
-
"keydown": this.onKeyDown
|
|
114
|
+
"keydown": this.onKeyDown,
|
|
115
|
+
"focusin": this.handleFocus,
|
|
116
|
+
"focusout": this.handleBlur
|
|
107
117
|
},
|
|
108
|
-
onKeydown: this.onKeyDown
|
|
118
|
+
onKeydown: this.onKeyDown,
|
|
119
|
+
onFocusin: this.handleFocus,
|
|
120
|
+
onFocusout: this.handleBlur
|
|
109
121
|
})])]);
|
|
110
122
|
}
|
|
111
123
|
};
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-dropdowns',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1682342566,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -275,10 +275,12 @@ var ComboBoxVue2 = {
|
|
|
275
275
|
this.base.scrollToVirtualItem(virtual, selectedItemIndex);
|
|
276
276
|
this.prevCurrentOpened = true;
|
|
277
277
|
} else if (opening && !virtual) {
|
|
278
|
-
this.base.scrollToItem(selectedItemIndex);
|
|
278
|
+
this.base.scrollToItem(selectedItem ? selectedItemIndex : this.getFocusedIndex());
|
|
279
279
|
this.prevCurrentOpened = true;
|
|
280
280
|
} else if (opened && prevOpened && selectedItem && selectedItemChanged) {
|
|
281
281
|
this.base.scrollToItem(selectedItemIndex);
|
|
282
|
+
} else if (opened && !selectedItem) {
|
|
283
|
+
this.base.scrollToItem(this.getFocusedIndex());
|
|
282
284
|
}
|
|
283
285
|
}
|
|
284
286
|
if (opening && this.input) {
|
|
@@ -135,7 +135,7 @@ export interface DropDownTreeProps extends FormComponentProps {
|
|
|
135
135
|
filterable?: boolean;
|
|
136
136
|
/**
|
|
137
137
|
* Sets the value of filtering input.
|
|
138
|
-
* Useful for making the filtering input a
|
|
138
|
+
* Useful for making the filtering input a controlled component.
|
|
139
139
|
*/
|
|
140
140
|
filter?: string;
|
|
141
141
|
/**
|
|
@@ -172,7 +172,7 @@ export interface DropDownTreeProps extends FormComponentProps {
|
|
|
172
172
|
*/
|
|
173
173
|
popupSettings?: DropDownsPopupSettings;
|
|
174
174
|
/**
|
|
175
|
-
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden
|
|
175
|
+
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden `select`.
|
|
176
176
|
*
|
|
177
177
|
* @example
|
|
178
178
|
* ```jsx-no-run
|
|
@@ -42,6 +42,7 @@ var kendo_vue_labels_1 = require("@progress/kendo-vue-labels");
|
|
|
42
42
|
var TagList_1 = require("../MultiSelect/TagList");
|
|
43
43
|
var ClearButton_1 = require("../common/ClearButton");
|
|
44
44
|
var ListFilter_1 = require("../common/ListFilter");
|
|
45
|
+
var utils_2 = require("./utils");
|
|
45
46
|
var VALIDATION_MESSAGE = 'Please select a value from the list!';
|
|
46
47
|
var sizeMap = kendo_vue_common_1.kendoThemeMaps.sizeMap,
|
|
47
48
|
roundedMap = kendo_vue_common_1.kendoThemeMaps.roundedMap;
|
|
@@ -65,6 +66,9 @@ var getValidity = function getValidity(parameters, hasValue) {
|
|
|
65
66
|
*/
|
|
66
67
|
var MultiSelectTreeVue2 = {
|
|
67
68
|
name: 'KendoMultiSelectTree',
|
|
69
|
+
model: {
|
|
70
|
+
event: 'changemodel'
|
|
71
|
+
},
|
|
68
72
|
// @ts-ignore
|
|
69
73
|
emits: {
|
|
70
74
|
open: null,
|
|
@@ -73,7 +77,9 @@ var MultiSelectTreeVue2 = {
|
|
|
73
77
|
blur: null,
|
|
74
78
|
change: null,
|
|
75
79
|
filterChange: null,
|
|
76
|
-
expandChange: null
|
|
80
|
+
expandChange: null,
|
|
81
|
+
'changemodel': null,
|
|
82
|
+
'update:modelValue': null
|
|
77
83
|
},
|
|
78
84
|
props: {
|
|
79
85
|
opened: {
|
|
@@ -91,6 +97,7 @@ var MultiSelectTreeVue2 = {
|
|
|
91
97
|
}
|
|
92
98
|
},
|
|
93
99
|
value: Array,
|
|
100
|
+
modelValue: Array,
|
|
94
101
|
valueMap: Function,
|
|
95
102
|
placeholder: String,
|
|
96
103
|
dataItemKey: {
|
|
@@ -123,7 +130,7 @@ var MultiSelectTreeVue2 = {
|
|
|
123
130
|
},
|
|
124
131
|
valid: {
|
|
125
132
|
type: Boolean,
|
|
126
|
-
default:
|
|
133
|
+
default: undefined
|
|
127
134
|
},
|
|
128
135
|
required: Boolean,
|
|
129
136
|
name: String,
|
|
@@ -195,7 +202,7 @@ var MultiSelectTreeVue2 = {
|
|
|
195
202
|
return this.opened !== undefined ? this.opened : this.openState;
|
|
196
203
|
},
|
|
197
204
|
computedValue: function computedValue() {
|
|
198
|
-
return this.value !== undefined ? this.value : this.currentValue;
|
|
205
|
+
return this.value !== undefined ? this.value : this.$props.modelValue !== undefined ? this.$props.modelValue : this.currentValue;
|
|
199
206
|
},
|
|
200
207
|
hasValue: function hasValue() {
|
|
201
208
|
return !!this.computedValue.length;
|
|
@@ -320,13 +327,13 @@ var MultiSelectTreeVue2 = {
|
|
|
320
327
|
on: this.v3 ? undefined : {
|
|
321
328
|
"keydown": this.onWrapperKeyDown,
|
|
322
329
|
"mousedown": this.onWrapperMouseDown,
|
|
323
|
-
"
|
|
324
|
-
"
|
|
330
|
+
"focusin": this.onFocus,
|
|
331
|
+
"focusout": this.onBlur,
|
|
325
332
|
"click": this.onWrapperClick
|
|
326
333
|
},
|
|
327
334
|
onMousedown: this.onWrapperMouseDown,
|
|
328
|
-
|
|
329
|
-
|
|
335
|
+
onFocusin: this.onFocus,
|
|
336
|
+
onFocusout: this.onBlur,
|
|
330
337
|
role: "combobox",
|
|
331
338
|
"aria-haspopup": "true",
|
|
332
339
|
"aria-expanded": this.isOpen,
|
|
@@ -351,7 +358,9 @@ var MultiSelectTreeVue2 = {
|
|
|
351
358
|
focused: this.focusedTagState ? this.tagsToRenderRef.find(function (t) {
|
|
352
359
|
return (0, utils_1.matchTags)(t, _this.focusedTagState, dataItemKey);
|
|
353
360
|
}) : undefined,
|
|
354
|
-
|
|
361
|
+
tagsRounded: rounded,
|
|
362
|
+
size: size,
|
|
363
|
+
fillMode: fillMode
|
|
355
364
|
},
|
|
356
365
|
onTagdelete: this.onTagDelete,
|
|
357
366
|
on: this.v3 ? undefined : {
|
|
@@ -362,8 +371,10 @@ var MultiSelectTreeVue2 = {
|
|
|
362
371
|
focused: this.focusedTagState ? this.tagsToRenderRef.find(function (t) {
|
|
363
372
|
return (0, utils_1.matchTags)(t, _this.focusedTagState, dataItemKey);
|
|
364
373
|
}) : undefined,
|
|
365
|
-
|
|
366
|
-
|
|
374
|
+
tagsRounded: rounded,
|
|
375
|
+
size: size,
|
|
376
|
+
fillMode: fillMode
|
|
377
|
+
}) : !this.hasValue && h("span", {
|
|
367
378
|
"class": "k-input-inner",
|
|
368
379
|
role: 'combobox',
|
|
369
380
|
attrs: this.v3 ? undefined : {
|
|
@@ -379,7 +390,7 @@ var MultiSelectTreeVue2 = {
|
|
|
379
390
|
"aria-label": this.$props.ariaLabelledBy
|
|
380
391
|
}, [h("span", {
|
|
381
392
|
"class": "k-input-value-text"
|
|
382
|
-
}, [
|
|
393
|
+
}, [placeholder])])]), this.$props.loading && h(kendo_vue_common_1.Icon, {
|
|
383
394
|
"class": "k-input-loading-icon",
|
|
384
395
|
name: "loading",
|
|
385
396
|
attrs: this.v3 ? undefined : {
|
|
@@ -396,11 +407,13 @@ var MultiSelectTreeVue2 = {
|
|
|
396
407
|
name: name,
|
|
397
408
|
tabIndex: -1,
|
|
398
409
|
"aria-hidden": true,
|
|
410
|
+
required: required,
|
|
399
411
|
title: label
|
|
400
412
|
},
|
|
401
413
|
ref: (0, kendo_vue_common_1.setRef)(this, 'select'),
|
|
402
414
|
tabIndex: -1,
|
|
403
415
|
"aria-hidden": true,
|
|
416
|
+
required: required,
|
|
404
417
|
title: label,
|
|
405
418
|
style: {
|
|
406
419
|
opacity: 0,
|
|
@@ -459,12 +472,16 @@ var MultiSelectTreeVue2 = {
|
|
|
459
472
|
onChange: _this2.onFilterChange,
|
|
460
473
|
on: _this2.v3 ? undefined : {
|
|
461
474
|
"change": _this2.onFilterChange,
|
|
462
|
-
"keydown": _this2.onInputKeyDown
|
|
475
|
+
"keydown": _this2.onInputKeyDown,
|
|
476
|
+
"focus": _this2.onFocus,
|
|
477
|
+
"blur": _this2.onBlur
|
|
463
478
|
},
|
|
464
479
|
onKeydown: _this2.onInputKeyDown,
|
|
465
480
|
size: size,
|
|
466
481
|
rounded: rounded,
|
|
467
|
-
fillMode: fillMode
|
|
482
|
+
fillMode: fillMode,
|
|
483
|
+
onFocus: _this2.onFocus,
|
|
484
|
+
onBlur: _this2.onBlur
|
|
468
485
|
}), header && h("div", {
|
|
469
486
|
"class": "k-list-header"
|
|
470
487
|
}, [header]), dataItems.length > 0 ?
|
|
@@ -499,11 +516,13 @@ var MultiSelectTreeVue2 = {
|
|
|
499
516
|
"itemclick": _this2.onChange,
|
|
500
517
|
"checkchange": _this2.onChange,
|
|
501
518
|
"expandchange": _this2.onExpand,
|
|
519
|
+
"focus": _this2.onFocus,
|
|
502
520
|
"blur": _this2.onBlur,
|
|
503
521
|
"keydown": _this2.onWrapperKeyDown
|
|
504
522
|
},
|
|
505
523
|
onCheckchange: _this2.onChange,
|
|
506
524
|
onExpandchange: _this2.onExpand,
|
|
525
|
+
onFocus: _this2.onFocus,
|
|
507
526
|
onBlur: _this2.onBlur,
|
|
508
527
|
onKeydown: _this2.onWrapperKeyDown,
|
|
509
528
|
checkboxes: true,
|
|
@@ -524,12 +543,16 @@ var MultiSelectTreeVue2 = {
|
|
|
524
543
|
onChange: _this2.onFilterChange,
|
|
525
544
|
on: _this2.v3 ? undefined : {
|
|
526
545
|
"change": _this2.onFilterChange,
|
|
527
|
-
"keydown": _this2.onInputKeyDown
|
|
546
|
+
"keydown": _this2.onInputKeyDown,
|
|
547
|
+
"focus": _this2.onFocus,
|
|
548
|
+
"blur": _this2.onBlur
|
|
528
549
|
},
|
|
529
550
|
onKeydown: _this2.onInputKeyDown,
|
|
530
551
|
size: size,
|
|
531
552
|
rounded: rounded,
|
|
532
|
-
fillMode: fillMode
|
|
553
|
+
fillMode: fillMode,
|
|
554
|
+
onFocus: _this2.onFocus,
|
|
555
|
+
onBlur: _this2.onBlur
|
|
533
556
|
}), header && h("div", {
|
|
534
557
|
"class": "k-list-header"
|
|
535
558
|
}, [header]), dataItems.length > 0 ? h(kendo_vue_treeview_1.TreeView, {
|
|
@@ -562,11 +585,13 @@ var MultiSelectTreeVue2 = {
|
|
|
562
585
|
"itemclick": _this2.onChange,
|
|
563
586
|
"checkchange": _this2.onChange,
|
|
564
587
|
"expandchange": _this2.onExpand,
|
|
588
|
+
"focus": _this2.onFocus,
|
|
565
589
|
"blur": _this2.onBlur,
|
|
566
590
|
"keydown": _this2.onWrapperKeyDown
|
|
567
591
|
},
|
|
568
592
|
onCheckchange: _this2.onChange,
|
|
569
593
|
onExpandchange: _this2.onExpand,
|
|
594
|
+
onFocus: _this2.onFocus,
|
|
570
595
|
onBlur: _this2.onBlur,
|
|
571
596
|
onKeydown: _this2.onWrapperKeyDown,
|
|
572
597
|
checkboxes: true,
|
|
@@ -623,11 +648,26 @@ var MultiSelectTreeVue2 = {
|
|
|
623
648
|
this.selectRef.setCustomValidity(validity.valid ? '' : this.validationMessage === undefined ? VALIDATION_MESSAGE : this.validationMessage);
|
|
624
649
|
}
|
|
625
650
|
},
|
|
626
|
-
changeValue: function changeValue(event,
|
|
651
|
+
changeValue: function changeValue(event, items, operation) {
|
|
652
|
+
var fields = {
|
|
653
|
+
dataItemKey: this.dataItemKey,
|
|
654
|
+
checkField: this.checkField,
|
|
655
|
+
checkIndeterminateField: this.checkIndeterminateField,
|
|
656
|
+
expandField: this.expandField,
|
|
657
|
+
subItemsField: this.subItemsField
|
|
658
|
+
};
|
|
659
|
+
var value = (0, utils_2.getMultiSelectTreeValue)(this.dataItems, __assign(__assign({}, fields), {
|
|
660
|
+
items: items,
|
|
661
|
+
operation: operation,
|
|
662
|
+
value: this.value
|
|
663
|
+
}));
|
|
627
664
|
var changeEvent = __assign({
|
|
628
|
-
items:
|
|
629
|
-
operation: operation
|
|
665
|
+
items: items,
|
|
666
|
+
operation: operation,
|
|
667
|
+
value: value
|
|
630
668
|
}, event);
|
|
669
|
+
this.$emit('changemodel', value);
|
|
670
|
+
this.$emit('update:modelValue', value);
|
|
631
671
|
this.$emit('change', changeEvent);
|
|
632
672
|
},
|
|
633
673
|
onChange: function onChange(e) {
|
|
@@ -707,6 +747,7 @@ var MultiSelectTreeVue2 = {
|
|
|
707
747
|
},
|
|
708
748
|
onBlur: function onBlur(event) {
|
|
709
749
|
if (this.focusedState && !this.skipFocusRef) {
|
|
750
|
+
this.focusedTagState = undefined;
|
|
710
751
|
this.focusedState = false;
|
|
711
752
|
var ev = {
|
|
712
753
|
event: event,
|
|
@@ -750,7 +791,7 @@ var MultiSelectTreeVue2 = {
|
|
|
750
791
|
event: event,
|
|
751
792
|
target: this
|
|
752
793
|
};
|
|
753
|
-
if (this.value && this.value.length > 0 && (keyCode === kendo_vue_common_1.Keys.left || keyCode === kendo_vue_common_1.Keys.right || keyCode === kendo_vue_common_1.Keys.home || keyCode === kendo_vue_common_1.Keys.end || keyCode === kendo_vue_common_1.Keys.delete)) {
|
|
794
|
+
if (this.value && this.value.length > 0 && (keyCode === kendo_vue_common_1.Keys.left || keyCode === kendo_vue_common_1.Keys.right || keyCode === kendo_vue_common_1.Keys.home || keyCode === kendo_vue_common_1.Keys.end || keyCode === kendo_vue_common_1.Keys.delete || keyCode === kendo_vue_common_1.Keys.backspace)) {
|
|
754
795
|
var tagsToRender = this.tagsToRenderRef;
|
|
755
796
|
var focusedIndex = this.focusedTagState ? tagsToRender.findIndex(function (t) {
|
|
756
797
|
return (0, utils_1.matchTags)(t, _this.focusedTagState, _this.dataItemKey);
|
|
@@ -775,7 +816,7 @@ var MultiSelectTreeVue2 = {
|
|
|
775
816
|
newFocusedTag = tagsToRender[0];
|
|
776
817
|
} else if (keyCode === kendo_vue_common_1.Keys.end) {
|
|
777
818
|
newFocusedTag = tagsToRender[tagsToRender.length - 1];
|
|
778
|
-
} else if (keyCode === kendo_vue_common_1.Keys.delete) {
|
|
819
|
+
} else if (keyCode === kendo_vue_common_1.Keys.delete || keyCode === kendo_vue_common_1.Keys.backspace) {
|
|
779
820
|
if (hasFocused) {
|
|
780
821
|
this.changeValue(ev, tagsToRender[focusedIndex].data, 'delete');
|
|
781
822
|
}
|
|
@@ -787,6 +828,9 @@ var MultiSelectTreeVue2 = {
|
|
|
787
828
|
if (this.isOpen) {
|
|
788
829
|
if (keyCode === kendo_vue_common_1.Keys.esc || altKey && keyCode === kendo_vue_common_1.Keys.up) {
|
|
789
830
|
event.preventDefault();
|
|
831
|
+
this.switchFocus(function () {
|
|
832
|
+
_this.focusElement(_this.elementRef);
|
|
833
|
+
});
|
|
790
834
|
this.closePopup(ev);
|
|
791
835
|
} else if (treeviewElement && treeviewElement.querySelector('.k-focus') && (keyCode === kendo_vue_common_1.Keys.up || keyCode === kendo_vue_common_1.Keys.down || keyCode === kendo_vue_common_1.Keys.left || keyCode === kendo_vue_common_1.Keys.right || keyCode === kendo_vue_common_1.Keys.home || keyCode === kendo_vue_common_1.Keys.end)) {
|
|
792
836
|
if (keyCode === kendo_vue_common_1.Keys.up) {
|
|
@@ -822,7 +866,7 @@ var MultiSelectTreeVue2 = {
|
|
|
822
866
|
}
|
|
823
867
|
event.preventDefault();
|
|
824
868
|
this.switchFocus(keyCode === kendo_vue_common_1.Keys.up ? function () {
|
|
825
|
-
_this.focusElement(_this
|
|
869
|
+
_this.focusElement(_this.elementRef);
|
|
826
870
|
} : function () {
|
|
827
871
|
_this.focusElement(_this.treeViewRef && _this.treeViewRef.$el);
|
|
828
872
|
});
|
|
@@ -17,6 +17,10 @@ export interface MultiSelectTreeChangeEvent extends DropdownEvent {
|
|
|
17
17
|
* The items related to current operation.
|
|
18
18
|
*/
|
|
19
19
|
items: any[];
|
|
20
|
+
/**
|
|
21
|
+
* The new value.
|
|
22
|
+
*/
|
|
23
|
+
value: any[];
|
|
20
24
|
/**
|
|
21
25
|
* Describes the current operation:
|
|
22
26
|
* * `clear` - clear button is clicked and value is cleared. Null value is returned.
|
|
@@ -85,9 +89,13 @@ export interface MultiSelectTreeProps extends FormComponentProps {
|
|
|
85
89
|
*/
|
|
86
90
|
opened?: boolean;
|
|
87
91
|
/**
|
|
88
|
-
* Sets the value of the MultiSelectTree. It can either be of the primitive (string, numbers) or of the complex (objects) type.
|
|
92
|
+
* Sets the value of the MultiSelectTree. It can either be an array of the primitive (string, numbers) or of the complex (objects) type.
|
|
89
93
|
*/
|
|
90
94
|
value?: Array<any>;
|
|
95
|
+
/**
|
|
96
|
+
* Sets the modelValue of the MultiSelectTree. It can either be an array of the primitive (string, numbers) or of the complex (objects) type.
|
|
97
|
+
*/
|
|
98
|
+
modelValue?: Array<any>;
|
|
91
99
|
/**
|
|
92
100
|
* The hint that is displayed when the MultiSelectTree is empty.
|
|
93
101
|
*/
|
|
@@ -161,7 +169,7 @@ export interface MultiSelectTreeProps extends FormComponentProps {
|
|
|
161
169
|
filterable?: boolean;
|
|
162
170
|
/**
|
|
163
171
|
* Sets the value of filtering input.
|
|
164
|
-
* Useful for making the filtering input a
|
|
172
|
+
* Useful for making the filtering input a controlled component.
|
|
165
173
|
*/
|
|
166
174
|
filter?: string;
|
|
167
175
|
/**
|
|
@@ -202,7 +210,7 @@ export interface MultiSelectTreeProps extends FormComponentProps {
|
|
|
202
210
|
*/
|
|
203
211
|
popupSettings?: DropDownsPopupSettings;
|
|
204
212
|
/**
|
|
205
|
-
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden
|
|
213
|
+
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden `select` element.
|
|
206
214
|
*
|
|
207
215
|
* @example
|
|
208
216
|
* ```jsx-no-run
|
|
@@ -22,7 +22,9 @@ var ListFilterVue2 = {
|
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
emits: {
|
|
24
24
|
keydown: null,
|
|
25
|
-
change: null
|
|
25
|
+
change: null,
|
|
26
|
+
focus: null,
|
|
27
|
+
blur: null
|
|
26
28
|
},
|
|
27
29
|
props: {
|
|
28
30
|
value: String,
|
|
@@ -75,6 +77,12 @@ var ListFilterVue2 = {
|
|
|
75
77
|
},
|
|
76
78
|
onChange: function onChange(e) {
|
|
77
79
|
this.$emit('change', e);
|
|
80
|
+
},
|
|
81
|
+
handleFocus: function handleFocus(e) {
|
|
82
|
+
this.$emit('focus', e);
|
|
83
|
+
},
|
|
84
|
+
handleBlur: function handleBlur(e) {
|
|
85
|
+
this.$emit('blur', e);
|
|
78
86
|
}
|
|
79
87
|
},
|
|
80
88
|
mounted: function mounted() {
|
|
@@ -109,9 +117,13 @@ var ListFilterVue2 = {
|
|
|
109
117
|
onInput: this.onChange,
|
|
110
118
|
on: this.v3 ? undefined : {
|
|
111
119
|
"input": this.onChange,
|
|
112
|
-
"keydown": this.onKeyDown
|
|
120
|
+
"keydown": this.onKeyDown,
|
|
121
|
+
"focusin": this.handleFocus,
|
|
122
|
+
"focusout": this.handleBlur
|
|
113
123
|
},
|
|
114
|
-
onKeydown: this.onKeyDown
|
|
124
|
+
onKeydown: this.onKeyDown,
|
|
125
|
+
onFocusin: this.handleFocus,
|
|
126
|
+
onFocusout: this.handleBlur
|
|
115
127
|
})])]);
|
|
116
128
|
}
|
|
117
129
|
};
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-vue-dropdowns',
|
|
9
9
|
productName: 'Kendo UI for Vue',
|
|
10
10
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1682342566,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
14
14
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-dropdowns",
|
|
3
3
|
"description": "Kendo UI for Vue Dropdowns package",
|
|
4
|
-
"version": "3.9.4-dev.
|
|
4
|
+
"version": "3.9.4-dev.202304241333",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -51,18 +51,18 @@
|
|
|
51
51
|
"vue": "^2.6.12 || ^3.0.2"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@progress/kendo-vue-buttons": "3.9.4-dev.
|
|
55
|
-
"@progress/kendo-vue-common": "3.9.4-dev.
|
|
56
|
-
"@progress/kendo-vue-popup": "3.9.4-dev.
|
|
54
|
+
"@progress/kendo-vue-buttons": "3.9.4-dev.202304241333",
|
|
55
|
+
"@progress/kendo-vue-common": "3.9.4-dev.202304241333",
|
|
56
|
+
"@progress/kendo-vue-popup": "3.9.4-dev.202304241333"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@progress/kendo-data-query": "^1.5.4",
|
|
60
60
|
"@progress/kendo-licensing": "^1.3.0",
|
|
61
61
|
"@progress/kendo-svg-icons": "^1.0.0",
|
|
62
|
-
"@progress/kendo-vue-data-tools": "3.9.4-dev.
|
|
63
|
-
"@progress/kendo-vue-intl": "3.9.4-dev.
|
|
64
|
-
"@progress/kendo-vue-labels": "3.9.4-dev.
|
|
65
|
-
"@progress/kendo-vue-treeview": "3.9.4-dev.
|
|
62
|
+
"@progress/kendo-vue-data-tools": "3.9.4-dev.202304241333",
|
|
63
|
+
"@progress/kendo-vue-intl": "3.9.4-dev.202304241333",
|
|
64
|
+
"@progress/kendo-vue-labels": "3.9.4-dev.202304241333",
|
|
65
|
+
"@progress/kendo-vue-treeview": "3.9.4-dev.202304241333"
|
|
66
66
|
},
|
|
67
67
|
"author": "Progress",
|
|
68
68
|
"license": "SEE LICENSE IN LICENSE.md",
|