@progress/kendo-vue-dropdowns 3.9.4-dev.202304210655 → 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/MultiSelectTree/MultiSelectTree.js +40 -12
- package/dist/es/MultiSelectTree/MultiSelectTreeProps.d.ts +9 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/esm/MultiSelectTree/MultiSelectTree.js +40 -12
- package/dist/esm/MultiSelectTree/MultiSelectTreeProps.d.ts +9 -1
- package/dist/esm/package-metadata.js +1 -1
- package/dist/npm/MultiSelectTree/MultiSelectTree.js +40 -12
- package/dist/npm/MultiSelectTree/MultiSelectTreeProps.d.ts +9 -1
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +8 -8
|
@@ -36,6 +36,7 @@ import { FloatingLabel } from '@progress/kendo-vue-labels';
|
|
|
36
36
|
import { TagList } from '../MultiSelect/TagList';
|
|
37
37
|
import { ClearButton } from '../common/ClearButton';
|
|
38
38
|
import { ListFilter } from '../common/ListFilter';
|
|
39
|
+
import { getMultiSelectTreeValue } from './utils';
|
|
39
40
|
var VALIDATION_MESSAGE = 'Please select a value from the list!';
|
|
40
41
|
var sizeMap = kendoThemeMaps.sizeMap,
|
|
41
42
|
roundedMap = kendoThemeMaps.roundedMap;
|
|
@@ -59,6 +60,9 @@ var getValidity = function getValidity(parameters, hasValue) {
|
|
|
59
60
|
*/
|
|
60
61
|
var MultiSelectTreeVue2 = {
|
|
61
62
|
name: 'KendoMultiSelectTree',
|
|
63
|
+
model: {
|
|
64
|
+
event: 'changemodel'
|
|
65
|
+
},
|
|
62
66
|
// @ts-ignore
|
|
63
67
|
emits: {
|
|
64
68
|
open: null,
|
|
@@ -67,7 +71,9 @@ var MultiSelectTreeVue2 = {
|
|
|
67
71
|
blur: null,
|
|
68
72
|
change: null,
|
|
69
73
|
filterChange: null,
|
|
70
|
-
expandChange: null
|
|
74
|
+
expandChange: null,
|
|
75
|
+
'changemodel': null,
|
|
76
|
+
'update:modelValue': null
|
|
71
77
|
},
|
|
72
78
|
props: {
|
|
73
79
|
opened: {
|
|
@@ -85,6 +91,7 @@ var MultiSelectTreeVue2 = {
|
|
|
85
91
|
}
|
|
86
92
|
},
|
|
87
93
|
value: Array,
|
|
94
|
+
modelValue: Array,
|
|
88
95
|
valueMap: Function,
|
|
89
96
|
placeholder: String,
|
|
90
97
|
dataItemKey: {
|
|
@@ -117,7 +124,7 @@ var MultiSelectTreeVue2 = {
|
|
|
117
124
|
},
|
|
118
125
|
valid: {
|
|
119
126
|
type: Boolean,
|
|
120
|
-
default:
|
|
127
|
+
default: undefined
|
|
121
128
|
},
|
|
122
129
|
required: Boolean,
|
|
123
130
|
name: String,
|
|
@@ -189,7 +196,7 @@ var MultiSelectTreeVue2 = {
|
|
|
189
196
|
return this.opened !== undefined ? this.opened : this.openState;
|
|
190
197
|
},
|
|
191
198
|
computedValue: function computedValue() {
|
|
192
|
-
return this.value !== undefined ? this.value : this.currentValue;
|
|
199
|
+
return this.value !== undefined ? this.value : this.$props.modelValue !== undefined ? this.$props.modelValue : this.currentValue;
|
|
193
200
|
},
|
|
194
201
|
hasValue: function hasValue() {
|
|
195
202
|
return !!this.computedValue.length;
|
|
@@ -314,13 +321,13 @@ var MultiSelectTreeVue2 = {
|
|
|
314
321
|
on: this.v3 ? undefined : {
|
|
315
322
|
"keydown": this.onWrapperKeyDown,
|
|
316
323
|
"mousedown": this.onWrapperMouseDown,
|
|
317
|
-
"
|
|
318
|
-
"
|
|
324
|
+
"focusin": this.onFocus,
|
|
325
|
+
"focusout": this.onBlur,
|
|
319
326
|
"click": this.onWrapperClick
|
|
320
327
|
},
|
|
321
328
|
onMousedown: this.onWrapperMouseDown,
|
|
322
|
-
|
|
323
|
-
|
|
329
|
+
onFocusin: this.onFocus,
|
|
330
|
+
onFocusout: this.onBlur,
|
|
324
331
|
role: "combobox",
|
|
325
332
|
"aria-haspopup": "true",
|
|
326
333
|
"aria-expanded": this.isOpen,
|
|
@@ -345,7 +352,9 @@ var MultiSelectTreeVue2 = {
|
|
|
345
352
|
focused: this.focusedTagState ? this.tagsToRenderRef.find(function (t) {
|
|
346
353
|
return matchTags(t, _this.focusedTagState, dataItemKey);
|
|
347
354
|
}) : undefined,
|
|
348
|
-
|
|
355
|
+
tagsRounded: rounded,
|
|
356
|
+
size: size,
|
|
357
|
+
fillMode: fillMode
|
|
349
358
|
},
|
|
350
359
|
onTagdelete: this.onTagDelete,
|
|
351
360
|
on: this.v3 ? undefined : {
|
|
@@ -356,7 +365,9 @@ var MultiSelectTreeVue2 = {
|
|
|
356
365
|
focused: this.focusedTagState ? this.tagsToRenderRef.find(function (t) {
|
|
357
366
|
return matchTags(t, _this.focusedTagState, dataItemKey);
|
|
358
367
|
}) : undefined,
|
|
359
|
-
|
|
368
|
+
tagsRounded: rounded,
|
|
369
|
+
size: size,
|
|
370
|
+
fillMode: fillMode
|
|
360
371
|
}) : !this.hasValue && h("span", {
|
|
361
372
|
"class": "k-input-inner",
|
|
362
373
|
role: 'combobox',
|
|
@@ -390,11 +401,13 @@ var MultiSelectTreeVue2 = {
|
|
|
390
401
|
name: name,
|
|
391
402
|
tabIndex: -1,
|
|
392
403
|
"aria-hidden": true,
|
|
404
|
+
required: required,
|
|
393
405
|
title: label
|
|
394
406
|
},
|
|
395
407
|
ref: setRef(this, 'select'),
|
|
396
408
|
tabIndex: -1,
|
|
397
409
|
"aria-hidden": true,
|
|
410
|
+
required: required,
|
|
398
411
|
title: label,
|
|
399
412
|
style: {
|
|
400
413
|
opacity: 0,
|
|
@@ -629,11 +642,26 @@ var MultiSelectTreeVue2 = {
|
|
|
629
642
|
this.selectRef.setCustomValidity(validity.valid ? '' : this.validationMessage === undefined ? VALIDATION_MESSAGE : this.validationMessage);
|
|
630
643
|
}
|
|
631
644
|
},
|
|
632
|
-
changeValue: function changeValue(event,
|
|
645
|
+
changeValue: function changeValue(event, items, operation) {
|
|
646
|
+
var fields = {
|
|
647
|
+
dataItemKey: this.dataItemKey,
|
|
648
|
+
checkField: this.checkField,
|
|
649
|
+
checkIndeterminateField: this.checkIndeterminateField,
|
|
650
|
+
expandField: this.expandField,
|
|
651
|
+
subItemsField: this.subItemsField
|
|
652
|
+
};
|
|
653
|
+
var value = getMultiSelectTreeValue(this.dataItems, __assign(__assign({}, fields), {
|
|
654
|
+
items: items,
|
|
655
|
+
operation: operation,
|
|
656
|
+
value: this.value
|
|
657
|
+
}));
|
|
633
658
|
var changeEvent = __assign({
|
|
634
|
-
items:
|
|
635
|
-
operation: operation
|
|
659
|
+
items: items,
|
|
660
|
+
operation: operation,
|
|
661
|
+
value: value
|
|
636
662
|
}, event);
|
|
663
|
+
this.$emit('changemodel', value);
|
|
664
|
+
this.$emit('update:modelValue', value);
|
|
637
665
|
this.$emit('change', changeEvent);
|
|
638
666
|
},
|
|
639
667
|
onChange: function onChange(e) {
|
|
@@ -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
|
*/
|
|
@@ -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
|
};
|
|
@@ -36,6 +36,7 @@ import { FloatingLabel } from '@progress/kendo-vue-labels';
|
|
|
36
36
|
import { TagList } from '../MultiSelect/TagList.js';
|
|
37
37
|
import { ClearButton } from '../common/ClearButton.js';
|
|
38
38
|
import { ListFilter } from '../common/ListFilter.js';
|
|
39
|
+
import { getMultiSelectTreeValue } from './utils.js';
|
|
39
40
|
var VALIDATION_MESSAGE = 'Please select a value from the list!';
|
|
40
41
|
var sizeMap = kendoThemeMaps.sizeMap,
|
|
41
42
|
roundedMap = kendoThemeMaps.roundedMap;
|
|
@@ -59,6 +60,9 @@ var getValidity = function getValidity(parameters, hasValue) {
|
|
|
59
60
|
*/
|
|
60
61
|
var MultiSelectTreeVue2 = {
|
|
61
62
|
name: 'KendoMultiSelectTree',
|
|
63
|
+
model: {
|
|
64
|
+
event: 'changemodel'
|
|
65
|
+
},
|
|
62
66
|
// @ts-ignore
|
|
63
67
|
emits: {
|
|
64
68
|
open: null,
|
|
@@ -67,7 +71,9 @@ var MultiSelectTreeVue2 = {
|
|
|
67
71
|
blur: null,
|
|
68
72
|
change: null,
|
|
69
73
|
filterChange: null,
|
|
70
|
-
expandChange: null
|
|
74
|
+
expandChange: null,
|
|
75
|
+
'changemodel': null,
|
|
76
|
+
'update:modelValue': null
|
|
71
77
|
},
|
|
72
78
|
props: {
|
|
73
79
|
opened: {
|
|
@@ -85,6 +91,7 @@ var MultiSelectTreeVue2 = {
|
|
|
85
91
|
}
|
|
86
92
|
},
|
|
87
93
|
value: Array,
|
|
94
|
+
modelValue: Array,
|
|
88
95
|
valueMap: Function,
|
|
89
96
|
placeholder: String,
|
|
90
97
|
dataItemKey: {
|
|
@@ -117,7 +124,7 @@ var MultiSelectTreeVue2 = {
|
|
|
117
124
|
},
|
|
118
125
|
valid: {
|
|
119
126
|
type: Boolean,
|
|
120
|
-
default:
|
|
127
|
+
default: undefined
|
|
121
128
|
},
|
|
122
129
|
required: Boolean,
|
|
123
130
|
name: String,
|
|
@@ -189,7 +196,7 @@ var MultiSelectTreeVue2 = {
|
|
|
189
196
|
return this.opened !== undefined ? this.opened : this.openState;
|
|
190
197
|
},
|
|
191
198
|
computedValue: function computedValue() {
|
|
192
|
-
return this.value !== undefined ? this.value : this.currentValue;
|
|
199
|
+
return this.value !== undefined ? this.value : this.$props.modelValue !== undefined ? this.$props.modelValue : this.currentValue;
|
|
193
200
|
},
|
|
194
201
|
hasValue: function hasValue() {
|
|
195
202
|
return !!this.computedValue.length;
|
|
@@ -314,13 +321,13 @@ var MultiSelectTreeVue2 = {
|
|
|
314
321
|
on: this.v3 ? undefined : {
|
|
315
322
|
"keydown": this.onWrapperKeyDown,
|
|
316
323
|
"mousedown": this.onWrapperMouseDown,
|
|
317
|
-
"
|
|
318
|
-
"
|
|
324
|
+
"focusin": this.onFocus,
|
|
325
|
+
"focusout": this.onBlur,
|
|
319
326
|
"click": this.onWrapperClick
|
|
320
327
|
},
|
|
321
328
|
onMousedown: this.onWrapperMouseDown,
|
|
322
|
-
|
|
323
|
-
|
|
329
|
+
onFocusin: this.onFocus,
|
|
330
|
+
onFocusout: this.onBlur,
|
|
324
331
|
role: "combobox",
|
|
325
332
|
"aria-haspopup": "true",
|
|
326
333
|
"aria-expanded": this.isOpen,
|
|
@@ -345,7 +352,9 @@ var MultiSelectTreeVue2 = {
|
|
|
345
352
|
focused: this.focusedTagState ? this.tagsToRenderRef.find(function (t) {
|
|
346
353
|
return matchTags(t, _this.focusedTagState, dataItemKey);
|
|
347
354
|
}) : undefined,
|
|
348
|
-
|
|
355
|
+
tagsRounded: rounded,
|
|
356
|
+
size: size,
|
|
357
|
+
fillMode: fillMode
|
|
349
358
|
},
|
|
350
359
|
onTagdelete: this.onTagDelete,
|
|
351
360
|
on: this.v3 ? undefined : {
|
|
@@ -356,7 +365,9 @@ var MultiSelectTreeVue2 = {
|
|
|
356
365
|
focused: this.focusedTagState ? this.tagsToRenderRef.find(function (t) {
|
|
357
366
|
return matchTags(t, _this.focusedTagState, dataItemKey);
|
|
358
367
|
}) : undefined,
|
|
359
|
-
|
|
368
|
+
tagsRounded: rounded,
|
|
369
|
+
size: size,
|
|
370
|
+
fillMode: fillMode
|
|
360
371
|
}) : !this.hasValue && h("span", {
|
|
361
372
|
"class": "k-input-inner",
|
|
362
373
|
role: 'combobox',
|
|
@@ -390,11 +401,13 @@ var MultiSelectTreeVue2 = {
|
|
|
390
401
|
name: name,
|
|
391
402
|
tabIndex: -1,
|
|
392
403
|
"aria-hidden": true,
|
|
404
|
+
required: required,
|
|
393
405
|
title: label
|
|
394
406
|
},
|
|
395
407
|
ref: setRef(this, 'select'),
|
|
396
408
|
tabIndex: -1,
|
|
397
409
|
"aria-hidden": true,
|
|
410
|
+
required: required,
|
|
398
411
|
title: label,
|
|
399
412
|
style: {
|
|
400
413
|
opacity: 0,
|
|
@@ -629,11 +642,26 @@ var MultiSelectTreeVue2 = {
|
|
|
629
642
|
this.selectRef.setCustomValidity(validity.valid ? '' : this.validationMessage === undefined ? VALIDATION_MESSAGE : this.validationMessage);
|
|
630
643
|
}
|
|
631
644
|
},
|
|
632
|
-
changeValue: function changeValue(event,
|
|
645
|
+
changeValue: function changeValue(event, items, operation) {
|
|
646
|
+
var fields = {
|
|
647
|
+
dataItemKey: this.dataItemKey,
|
|
648
|
+
checkField: this.checkField,
|
|
649
|
+
checkIndeterminateField: this.checkIndeterminateField,
|
|
650
|
+
expandField: this.expandField,
|
|
651
|
+
subItemsField: this.subItemsField
|
|
652
|
+
};
|
|
653
|
+
var value = getMultiSelectTreeValue(this.dataItems, __assign(__assign({}, fields), {
|
|
654
|
+
items: items,
|
|
655
|
+
operation: operation,
|
|
656
|
+
value: this.value
|
|
657
|
+
}));
|
|
633
658
|
var changeEvent = __assign({
|
|
634
|
-
items:
|
|
635
|
-
operation: operation
|
|
659
|
+
items: items,
|
|
660
|
+
operation: operation,
|
|
661
|
+
value: value
|
|
636
662
|
}, event);
|
|
663
|
+
this.$emit('changemodel', value);
|
|
664
|
+
this.$emit('update:modelValue', value);
|
|
637
665
|
this.$emit('change', changeEvent);
|
|
638
666
|
},
|
|
639
667
|
onChange: function onChange(e) {
|
|
@@ -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
|
*/
|
|
@@ -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
|
};
|
|
@@ -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,7 +371,9 @@ 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
|
-
|
|
374
|
+
tagsRounded: rounded,
|
|
375
|
+
size: size,
|
|
376
|
+
fillMode: fillMode
|
|
366
377
|
}) : !this.hasValue && h("span", {
|
|
367
378
|
"class": "k-input-inner",
|
|
368
379
|
role: 'combobox',
|
|
@@ -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,
|
|
@@ -635,11 +648,26 @@ var MultiSelectTreeVue2 = {
|
|
|
635
648
|
this.selectRef.setCustomValidity(validity.valid ? '' : this.validationMessage === undefined ? VALIDATION_MESSAGE : this.validationMessage);
|
|
636
649
|
}
|
|
637
650
|
},
|
|
638
|
-
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
|
+
}));
|
|
639
664
|
var changeEvent = __assign({
|
|
640
|
-
items:
|
|
641
|
-
operation: operation
|
|
665
|
+
items: items,
|
|
666
|
+
operation: operation,
|
|
667
|
+
value: value
|
|
642
668
|
}, event);
|
|
669
|
+
this.$emit('changemodel', value);
|
|
670
|
+
this.$emit('update:modelValue', value);
|
|
643
671
|
this.$emit('change', changeEvent);
|
|
644
672
|
},
|
|
645
673
|
onChange: function onChange(e) {
|
|
@@ -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
|
*/
|
|
@@ -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",
|