@progress/kendo-vue-dropdowns 3.9.0 → 3.9.1-dev.202303280945
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/AutoComplete/AutoComplete.js +21 -4
- package/dist/es/AutoComplete/AutoCompleteProps.d.ts +16 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/esm/AutoComplete/AutoComplete.js +21 -4
- package/dist/esm/AutoComplete/AutoCompleteProps.d.ts +16 -0
- package/dist/esm/package-metadata.js +1 -1
- package/dist/npm/AutoComplete/AutoComplete.js +21 -4
- package/dist/npm/AutoComplete/AutoCompleteProps.d.ts +16 -0
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +5 -5
|
@@ -263,8 +263,14 @@ var AutoCompleteVue2 = {
|
|
|
263
263
|
handleItemSelect: function handleItemSelect(index, state) {
|
|
264
264
|
var _a = this.$props.dataItems,
|
|
265
265
|
dataItems = _a === void 0 ? [] : _a;
|
|
266
|
-
var
|
|
267
|
-
|
|
266
|
+
var item = dataItems[index];
|
|
267
|
+
var newText = getItemValue(item, this.$props.textField);
|
|
268
|
+
this.triggerOnChange(newText, state, {
|
|
269
|
+
item: item
|
|
270
|
+
});
|
|
271
|
+
this.triggerOnSelect(state, {
|
|
272
|
+
item: item
|
|
273
|
+
});
|
|
268
274
|
},
|
|
269
275
|
itemFocus: function itemFocus(index, state) {
|
|
270
276
|
var _a = this.$props,
|
|
@@ -312,8 +318,14 @@ var AutoCompleteVue2 = {
|
|
|
312
318
|
textField = _a.textField;
|
|
313
319
|
this.suggested = '';
|
|
314
320
|
if (opened && eventKey === Keys.enter) {
|
|
315
|
-
var
|
|
316
|
-
|
|
321
|
+
var item = dataItems[this.focusedIndex(value)];
|
|
322
|
+
var newValue = getItemValue(item, textField);
|
|
323
|
+
this.triggerOnChange(newValue, state, {
|
|
324
|
+
item: item
|
|
325
|
+
});
|
|
326
|
+
this.triggerOnSelect(state, {
|
|
327
|
+
item: item
|
|
328
|
+
});
|
|
317
329
|
}
|
|
318
330
|
if (opened) {
|
|
319
331
|
this.togglePopup(state);
|
|
@@ -430,6 +442,11 @@ var AutoCompleteVue2 = {
|
|
|
430
442
|
type: 'change'
|
|
431
443
|
}, eventArgs || {}));
|
|
432
444
|
},
|
|
445
|
+
triggerOnSelect: function triggerOnSelect(state, eventArgs) {
|
|
446
|
+
state.events.push(__assign({
|
|
447
|
+
type: 'select'
|
|
448
|
+
}, eventArgs || {}));
|
|
449
|
+
},
|
|
433
450
|
applyState: function applyState(state) {
|
|
434
451
|
this.base.applyState(state);
|
|
435
452
|
this.valueDuringOnChange = undefined;
|
|
@@ -5,7 +5,23 @@ import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
|
5
5
|
* Represents the object of the `change` AutoComplete event.
|
|
6
6
|
*/
|
|
7
7
|
export interface AutoCompleteChangeEvent extends ChangeEvent {
|
|
8
|
+
/**
|
|
9
|
+
* The selected Suggestion object.
|
|
10
|
+
*/
|
|
8
11
|
suggestion?: Suggestion;
|
|
12
|
+
/**
|
|
13
|
+
* Represents the selected item.
|
|
14
|
+
*/
|
|
15
|
+
item?: any;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Represents the object of the `select` AutoComplete event.
|
|
19
|
+
*/
|
|
20
|
+
export interface AutoCompleteChangeEvent extends ChangeEvent {
|
|
21
|
+
/**
|
|
22
|
+
* Represents the selected item.
|
|
23
|
+
*/
|
|
24
|
+
item?: any;
|
|
9
25
|
}
|
|
10
26
|
/**
|
|
11
27
|
* Represents the object of the `open` AutoComplete event.
|
|
@@ -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: 1679995797,
|
|
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
|
};
|
|
@@ -263,8 +263,14 @@ var AutoCompleteVue2 = {
|
|
|
263
263
|
handleItemSelect: function handleItemSelect(index, state) {
|
|
264
264
|
var _a = this.$props.dataItems,
|
|
265
265
|
dataItems = _a === void 0 ? [] : _a;
|
|
266
|
-
var
|
|
267
|
-
|
|
266
|
+
var item = dataItems[index];
|
|
267
|
+
var newText = getItemValue(item, this.$props.textField);
|
|
268
|
+
this.triggerOnChange(newText, state, {
|
|
269
|
+
item: item
|
|
270
|
+
});
|
|
271
|
+
this.triggerOnSelect(state, {
|
|
272
|
+
item: item
|
|
273
|
+
});
|
|
268
274
|
},
|
|
269
275
|
itemFocus: function itemFocus(index, state) {
|
|
270
276
|
var _a = this.$props,
|
|
@@ -312,8 +318,14 @@ var AutoCompleteVue2 = {
|
|
|
312
318
|
textField = _a.textField;
|
|
313
319
|
this.suggested = '';
|
|
314
320
|
if (opened && eventKey === Keys.enter) {
|
|
315
|
-
var
|
|
316
|
-
|
|
321
|
+
var item = dataItems[this.focusedIndex(value)];
|
|
322
|
+
var newValue = getItemValue(item, textField);
|
|
323
|
+
this.triggerOnChange(newValue, state, {
|
|
324
|
+
item: item
|
|
325
|
+
});
|
|
326
|
+
this.triggerOnSelect(state, {
|
|
327
|
+
item: item
|
|
328
|
+
});
|
|
317
329
|
}
|
|
318
330
|
if (opened) {
|
|
319
331
|
this.togglePopup(state);
|
|
@@ -430,6 +442,11 @@ var AutoCompleteVue2 = {
|
|
|
430
442
|
type: 'change'
|
|
431
443
|
}, eventArgs || {}));
|
|
432
444
|
},
|
|
445
|
+
triggerOnSelect: function triggerOnSelect(state, eventArgs) {
|
|
446
|
+
state.events.push(__assign({
|
|
447
|
+
type: 'select'
|
|
448
|
+
}, eventArgs || {}));
|
|
449
|
+
},
|
|
433
450
|
applyState: function applyState(state) {
|
|
434
451
|
this.base.applyState(state);
|
|
435
452
|
this.valueDuringOnChange = undefined;
|
|
@@ -5,7 +5,23 @@ import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
|
5
5
|
* Represents the object of the `change` AutoComplete event.
|
|
6
6
|
*/
|
|
7
7
|
export interface AutoCompleteChangeEvent extends ChangeEvent {
|
|
8
|
+
/**
|
|
9
|
+
* The selected Suggestion object.
|
|
10
|
+
*/
|
|
8
11
|
suggestion?: Suggestion;
|
|
12
|
+
/**
|
|
13
|
+
* Represents the selected item.
|
|
14
|
+
*/
|
|
15
|
+
item?: any;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Represents the object of the `select` AutoComplete event.
|
|
19
|
+
*/
|
|
20
|
+
export interface AutoCompleteChangeEvent extends ChangeEvent {
|
|
21
|
+
/**
|
|
22
|
+
* Represents the selected item.
|
|
23
|
+
*/
|
|
24
|
+
item?: any;
|
|
9
25
|
}
|
|
10
26
|
/**
|
|
11
27
|
* Represents the object of the `open` AutoComplete event.
|
|
@@ -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: 1679995797,
|
|
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
|
};
|
|
@@ -269,8 +269,14 @@ var AutoCompleteVue2 = {
|
|
|
269
269
|
handleItemSelect: function handleItemSelect(index, state) {
|
|
270
270
|
var _a = this.$props.dataItems,
|
|
271
271
|
dataItems = _a === void 0 ? [] : _a;
|
|
272
|
-
var
|
|
273
|
-
|
|
272
|
+
var item = dataItems[index];
|
|
273
|
+
var newText = (0, utils_1.getItemValue)(item, this.$props.textField);
|
|
274
|
+
this.triggerOnChange(newText, state, {
|
|
275
|
+
item: item
|
|
276
|
+
});
|
|
277
|
+
this.triggerOnSelect(state, {
|
|
278
|
+
item: item
|
|
279
|
+
});
|
|
274
280
|
},
|
|
275
281
|
itemFocus: function itemFocus(index, state) {
|
|
276
282
|
var _a = this.$props,
|
|
@@ -318,8 +324,14 @@ var AutoCompleteVue2 = {
|
|
|
318
324
|
textField = _a.textField;
|
|
319
325
|
this.suggested = '';
|
|
320
326
|
if (opened && eventKey === kendo_vue_common_1.Keys.enter) {
|
|
321
|
-
var
|
|
322
|
-
|
|
327
|
+
var item = dataItems[this.focusedIndex(value)];
|
|
328
|
+
var newValue = (0, utils_1.getItemValue)(item, textField);
|
|
329
|
+
this.triggerOnChange(newValue, state, {
|
|
330
|
+
item: item
|
|
331
|
+
});
|
|
332
|
+
this.triggerOnSelect(state, {
|
|
333
|
+
item: item
|
|
334
|
+
});
|
|
323
335
|
}
|
|
324
336
|
if (opened) {
|
|
325
337
|
this.togglePopup(state);
|
|
@@ -436,6 +448,11 @@ var AutoCompleteVue2 = {
|
|
|
436
448
|
type: 'change'
|
|
437
449
|
}, eventArgs || {}));
|
|
438
450
|
},
|
|
451
|
+
triggerOnSelect: function triggerOnSelect(state, eventArgs) {
|
|
452
|
+
state.events.push(__assign({
|
|
453
|
+
type: 'select'
|
|
454
|
+
}, eventArgs || {}));
|
|
455
|
+
},
|
|
439
456
|
applyState: function applyState(state) {
|
|
440
457
|
this.base.applyState(state);
|
|
441
458
|
this.valueDuringOnChange = undefined;
|
|
@@ -5,7 +5,23 @@ import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
|
5
5
|
* Represents the object of the `change` AutoComplete event.
|
|
6
6
|
*/
|
|
7
7
|
export interface AutoCompleteChangeEvent extends ChangeEvent {
|
|
8
|
+
/**
|
|
9
|
+
* The selected Suggestion object.
|
|
10
|
+
*/
|
|
8
11
|
suggestion?: Suggestion;
|
|
12
|
+
/**
|
|
13
|
+
* Represents the selected item.
|
|
14
|
+
*/
|
|
15
|
+
item?: any;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Represents the object of the `select` AutoComplete event.
|
|
19
|
+
*/
|
|
20
|
+
export interface AutoCompleteChangeEvent extends ChangeEvent {
|
|
21
|
+
/**
|
|
22
|
+
* Represents the selected item.
|
|
23
|
+
*/
|
|
24
|
+
item?: any;
|
|
9
25
|
}
|
|
10
26
|
/**
|
|
11
27
|
* Represents the object of the `open` AutoComplete event.
|
|
@@ -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: 1679995797,
|
|
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
|
+
"version": "3.9.1-dev.202303280945",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"vue": "^2.6.12 || ^3.0.2"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@progress/kendo-vue-buttons": "3.9.
|
|
54
|
-
"@progress/kendo-vue-common": "3.9.
|
|
55
|
-
"@progress/kendo-vue-popup": "3.9.
|
|
53
|
+
"@progress/kendo-vue-buttons": "3.9.1-dev.202303280945",
|
|
54
|
+
"@progress/kendo-vue-common": "3.9.1-dev.202303280945",
|
|
55
|
+
"@progress/kendo-vue-popup": "3.9.1-dev.202303280945"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@progress/kendo-data-query": "^1.5.4",
|
|
59
59
|
"@progress/kendo-licensing": "^1.3.0",
|
|
60
60
|
"@progress/kendo-svg-icons": "^1.0.0",
|
|
61
|
-
"@progress/kendo-vue-intl": "3.9.
|
|
61
|
+
"@progress/kendo-vue-intl": "3.9.1-dev.202303280945"
|
|
62
62
|
},
|
|
63
63
|
"author": "Progress",
|
|
64
64
|
"license": "SEE LICENSE IN LICENSE.md",
|