@progress/kendo-vue-dropdowns 3.3.4 → 3.3.6-dev.202206170937

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.
Files changed (66) hide show
  1. package/dist/cdn/js/kendo-vue-dropdowns.js +1 -1
  2. package/dist/es/AutoComplete/AutoComplete.d.ts +4 -1
  3. package/dist/es/AutoComplete/AutoComplete.js +9 -1
  4. package/dist/es/AutoComplete/AutoCompleteProps.d.ts +0 -5
  5. package/dist/es/ComboBox/ComboBox.d.ts +4 -1
  6. package/dist/es/ComboBox/ComboBox.js +18 -2
  7. package/dist/es/ComboBox/ComboBoxProps.d.ts +8 -1
  8. package/dist/es/DropDownList/DropDownList.d.ts +4 -1
  9. package/dist/es/DropDownList/DropDownList.js +19 -3
  10. package/dist/es/DropDownList/DropDownListProps.d.ts +23 -17
  11. package/dist/es/MultiSelect/MultiSelect.d.ts +4 -1
  12. package/dist/es/MultiSelect/MultiSelect.js +29 -2
  13. package/dist/es/MultiSelect/MultiSelectProps.d.ts +8 -1
  14. package/dist/es/MultiSelect/TagList.d.ts +4 -1
  15. package/dist/es/MultiSelect/TagList.js +5 -1
  16. package/dist/es/additionalTypes.ts +11 -0
  17. package/dist/es/common/ClearButton.d.ts +4 -1
  18. package/dist/es/common/ClearButton.js +5 -1
  19. package/dist/es/common/DropDownBase.js +1 -1
  20. package/dist/es/common/List.d.ts +4 -1
  21. package/dist/es/common/List.js +5 -1
  22. package/dist/es/common/ListContainer.d.ts +4 -1
  23. package/dist/es/common/ListContainer.js +5 -1
  24. package/dist/es/common/ListDefaultItem.d.ts +4 -1
  25. package/dist/es/common/ListDefaultItem.js +5 -1
  26. package/dist/es/common/ListFilter.d.ts +4 -1
  27. package/dist/es/common/ListFilter.js +5 -1
  28. package/dist/es/common/ListItem.d.ts +4 -1
  29. package/dist/es/common/ListItem.js +5 -1
  30. package/dist/es/common/SearchBar.d.ts +4 -1
  31. package/dist/es/common/SearchBar.js +5 -1
  32. package/dist/es/common/settings.d.ts +1 -1
  33. package/dist/es/package-metadata.js +1 -1
  34. package/dist/npm/AutoComplete/AutoComplete.d.ts +4 -1
  35. package/dist/npm/AutoComplete/AutoComplete.js +9 -1
  36. package/dist/npm/AutoComplete/AutoCompleteProps.d.ts +0 -5
  37. package/dist/npm/ComboBox/ComboBox.d.ts +4 -1
  38. package/dist/npm/ComboBox/ComboBox.js +18 -2
  39. package/dist/npm/ComboBox/ComboBoxProps.d.ts +8 -1
  40. package/dist/npm/DropDownList/DropDownList.d.ts +4 -1
  41. package/dist/npm/DropDownList/DropDownList.js +19 -3
  42. package/dist/npm/DropDownList/DropDownListProps.d.ts +23 -17
  43. package/dist/npm/MultiSelect/MultiSelect.d.ts +4 -1
  44. package/dist/npm/MultiSelect/MultiSelect.js +29 -2
  45. package/dist/npm/MultiSelect/MultiSelectProps.d.ts +8 -1
  46. package/dist/npm/MultiSelect/TagList.d.ts +4 -1
  47. package/dist/npm/MultiSelect/TagList.js +5 -1
  48. package/dist/npm/additionalTypes.ts +11 -0
  49. package/dist/npm/common/ClearButton.d.ts +4 -1
  50. package/dist/npm/common/ClearButton.js +5 -1
  51. package/dist/npm/common/DropDownBase.js +1 -1
  52. package/dist/npm/common/List.d.ts +4 -1
  53. package/dist/npm/common/List.js +5 -1
  54. package/dist/npm/common/ListContainer.d.ts +4 -1
  55. package/dist/npm/common/ListContainer.js +5 -1
  56. package/dist/npm/common/ListDefaultItem.d.ts +4 -1
  57. package/dist/npm/common/ListDefaultItem.js +5 -1
  58. package/dist/npm/common/ListFilter.d.ts +4 -1
  59. package/dist/npm/common/ListFilter.js +5 -1
  60. package/dist/npm/common/ListItem.d.ts +4 -1
  61. package/dist/npm/common/ListItem.js +5 -1
  62. package/dist/npm/common/SearchBar.d.ts +4 -1
  63. package/dist/npm/common/SearchBar.js +5 -1
  64. package/dist/npm/common/settings.d.ts +1 -1
  65. package/dist/npm/package-metadata.js +1 -1
  66. package/package.json +5 -5
@@ -7,7 +7,7 @@ import { kendoThemeMaps } from '@progress/kendo-vue-common';
7
7
  var sizeMap = kendoThemeMaps.sizeMap,
8
8
  roundedMap = kendoThemeMaps.roundedMap;
9
9
  /**
10
- * Represents the default `ListFilter` component.
10
+ * @hidden
11
11
  */
12
12
 
13
13
  var ListFilterVue2 = {
@@ -107,5 +107,9 @@ var ListFilterVue2 = {
107
107
  })])]);
108
108
  }
109
109
  };
110
+ /**
111
+ * @hidden
112
+ */
113
+
110
114
  var ListFilter = ListFilterVue2;
111
115
  export { ListFilter, ListFilterVue2 };
@@ -61,8 +61,11 @@ export interface ListItemAll extends Vue2type, ListItemMethods, ListItemComputed
61
61
  itemClass: object;
62
62
  }
63
63
  /**
64
- * Represents the default `ListItem` component.
64
+ * @hidden
65
65
  */
66
66
  declare let ListItemVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ListItemAll>, ListItemComputed, RecordPropsDefinition<ListItemProps>>;
67
+ /**
68
+ * @hidden
69
+ */
67
70
  declare const ListItem: DefineComponent<ListItemProps, any, {}, {}, ListItemMethods, {}, {}, {}, string, ListItemProps, ListItemProps, {}>;
68
71
  export { ListItem, ListItemVue2 };
@@ -21,7 +21,7 @@ var gh = allVue.h;
21
21
  import { classNames, getTemplate } from '@progress/kendo-vue-common';
22
22
  import { getItemValue } from './utils';
23
23
  /**
24
- * Represents the default `ListItem` component.
24
+ * @hidden
25
25
  */
26
26
 
27
27
  var ListItemVue2 = {
@@ -96,5 +96,9 @@ var ListItemVue2 = {
96
96
  });
97
97
  }
98
98
  };
99
+ /**
100
+ * @hidden
101
+ */
102
+
99
103
  var ListItem = ListItemVue2;
100
104
  export { ListItem, ListItemVue2 };
@@ -55,8 +55,11 @@ export interface SearchBarData {
55
55
  export interface SearchBarAll extends SearchBarMethods, SearchBarData {
56
56
  }
57
57
  /**
58
- * Represents the default `SearchBar` component.
58
+ * @hidden
59
59
  */
60
60
  declare let SearchBarVue2: ComponentOptions<Vue2type, DefaultData<SearchBarData>, DefaultMethods<SearchBarAll>, {}, RecordPropsDefinition<SearchBarProps>>;
61
+ /**
62
+ * @hidden
63
+ */
61
64
  declare const SearchBar: DefineComponent<SearchBarProps, any, SearchBarData, {}, SearchBarMethods, {}, {}, {}, string, SearchBarProps, SearchBarProps, {}>;
62
65
  export { SearchBar, SearchBarVue2 };
@@ -5,7 +5,7 @@ var gh = allVue.h;
5
5
  var ref = allVue.ref;
6
6
  import { canUseDOM } from '@progress/kendo-vue-common';
7
7
  /**
8
- * Represents the default `SearchBar` component.
8
+ * @hidden
9
9
  */
10
10
 
11
11
  var SearchBarVue2 = {
@@ -170,5 +170,9 @@ var SearchBarVue2 = {
170
170
  });
171
171
  }
172
172
  };
173
+ /**
174
+ * @hidden
175
+ */
176
+
173
177
  var SearchBar = SearchBarVue2;
174
178
  export { SearchBar, SearchBarVue2 };
@@ -55,7 +55,7 @@ import { FilterDescriptor } from './filterDescriptor';
55
55
  * @hidden
56
56
  */
57
57
  export interface EventData {
58
- type: string;
58
+ type?: string;
59
59
  filter?: FilterDescriptor;
60
60
  page?: Page;
61
61
  suggestion?: Suggestion;
@@ -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: 1654589023,
8
+ publishDate: 1655458005,
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
  };
@@ -97,8 +97,11 @@ export interface AutoCompleteComputed {
97
97
  export interface AutoCompleteAll extends AutoCompleteMethods, AutoCompleteState, AutoCompleteData, AutoCompleteComputed, Vue2type {
98
98
  }
99
99
  /**
100
- * Represents the default `AutoComplete` component.
100
+ * @hidden
101
101
  */
102
102
  declare let AutoCompleteVue2: ComponentOptions<Vue2type, DefaultData<AutoCompleteData>, DefaultMethods<AutoCompleteAll>, AutoCompleteComputed, RecordPropsDefinition<AutoCompleteProps>>;
103
+ /**
104
+ * @hidden
105
+ */
103
106
  declare const AutoComplete: DefineComponent<AutoCompleteProps, any, AutoCompleteData, AutoCompleteComputed, AutoCompleteMethods, {}, {}, {}, string, AutoCompleteProps, AutoCompleteProps, {}>;
104
107
  export { AutoComplete, AutoCompleteVue2 };
@@ -45,7 +45,7 @@ var sizeMap = kendo_vue_common_1.kendoThemeMaps.sizeMap,
45
45
  roundedMap = kendo_vue_common_1.kendoThemeMaps.roundedMap;
46
46
  var VALIDATION_MESSAGE = 'Please enter a valid value!';
47
47
  /**
48
- * Represents the default `AutoComplete` component.
48
+ * @hidden
49
49
  */
50
50
 
51
51
  var AutoCompleteVue2 = {
@@ -270,6 +270,10 @@ var AutoCompleteVue2 = {
270
270
 
271
271
  return value;
272
272
  },
273
+ primitiveValue: function primitiveValue() {
274
+ var value = this.computedValue();
275
+ return this.valuePrimitive ? utils_1.getItemValue(value, this.valueField) : value;
276
+ },
273
277
  validity: function validity() {
274
278
  var customError = this.$props.validationMessage !== undefined;
275
279
  var isValid = !this.$props.required || this.computedValue() !== null && this.computedValue() !== '' && this.computedValue() !== undefined;
@@ -762,5 +766,9 @@ var AutoCompleteVue2 = {
762
766
  }
763
767
  };
764
768
  exports.AutoCompleteVue2 = AutoCompleteVue2;
769
+ /**
770
+ * @hidden
771
+ */
772
+
765
773
  var AutoComplete = AutoCompleteVue2;
766
774
  exports.AutoComplete = AutoComplete;
@@ -51,10 +51,6 @@ export interface AutoCompleteProps extends FormComponentProps {
51
51
  * Sets the default value of the AutoComplete. Similar to the native `input` HTML element.
52
52
  */
53
53
  defaultValue?: string;
54
- /**
55
- * Sets additional classes to the AutoComplete.
56
- */
57
- className?: string;
58
54
  /**
59
55
  * The hint that is displayed when the AutoComplete is empty.
60
56
  */
@@ -184,7 +180,6 @@ export interface AutoCompleteProps extends FormComponentProps {
184
180
  * - small
185
181
  * - medium
186
182
  * - large
187
- * - circle
188
183
  * - full
189
184
  * - null&mdash;Does not set a rounded `class`.
190
185
  *
@@ -89,8 +89,11 @@ export interface ComboBoxComputed {
89
89
  export interface ComboBoxAll extends ComboBoxMethods, ComboBoxState, ComboBoxData, ComboBoxComputed, Vue2type {
90
90
  }
91
91
  /**
92
- * Represents the default `ComboBox` component.
92
+ * @hidden
93
93
  */
94
94
  declare let ComboBoxVue2: ComponentOptions<Vue2type, DefaultData<ComboBoxData>, DefaultMethods<ComboBoxAll>, ComboBoxComputed, RecordPropsDefinition<ComboBoxProps>>;
95
+ /**
96
+ * @hidden
97
+ */
95
98
  declare const ComboBox: DefineComponent<ComboBoxProps, any, ComboBoxData, ComboBoxComputed, ComboBoxMethods, {}, {}, {}, string, ComboBoxProps, ComboBoxProps, {}>;
96
99
  export { ComboBox, ComboBoxVue2 };
@@ -48,7 +48,7 @@ var ClearButton_1 = require("../common/ClearButton");
48
48
 
49
49
  var VALIDATION_MESSAGE = 'Please enter a valid value!';
50
50
  /**
51
- * Represents the default `ComboBox` component.
51
+ * @hidden
52
52
  */
53
53
 
54
54
  var ComboBoxVue2 = {
@@ -162,6 +162,8 @@ var ComboBoxVue2 = {
162
162
  },
163
163
  ariaLabelledBy: String,
164
164
  ariaDescribedBy: String,
165
+ valueField: String,
166
+ valuePrimitive: Boolean,
165
167
  rounded: {
166
168
  type: String,
167
169
  default: 'medium',
@@ -358,7 +360,17 @@ var ComboBoxVue2 = {
358
360
  value = this.$props.defaultValue;
359
361
  }
360
362
 
361
- return value;
363
+ return this.valuePrimitive ? this.findByFieldValue(this.valueField, value) || value : value;
364
+ },
365
+ findByFieldValue: function findByFieldValue(field, value) {
366
+ var index = this.dataItems.findIndex(function (i) {
367
+ return utils_1.getItemValue(i, field) === value;
368
+ });
369
+ return this.dataItems[index];
370
+ },
371
+ primitiveValue: function primitiveValue() {
372
+ var value = this.computedValue();
373
+ return this.valuePrimitive ? utils_1.getItemValue(value, this.valueField) : value;
362
374
  },
363
375
  validity: function validity() {
364
376
  var customError = this.$props.validationMessage !== undefined;
@@ -1047,5 +1059,9 @@ var ComboBoxVue2 = {
1047
1059
  }
1048
1060
  };
1049
1061
  exports.ComboBoxVue2 = ComboBoxVue2;
1062
+ /**
1063
+ * @hidden
1064
+ */
1065
+
1050
1066
  var ComboBox = ComboBoxVue2;
1051
1067
  exports.ComboBox = ComboBox;
@@ -116,6 +116,14 @@ export interface ComboBoxProps extends FormComponentProps {
116
116
  * Sets the data item field that represents the item text. If the data contains only primitive values, do not define it.
117
117
  */
118
118
  textField?: string;
119
+ /**
120
+ * Sets the data item field that represents the item value.
121
+ */
122
+ valueField?: string;
123
+ /**
124
+ * Specifies the type of the selected value. If set to true, the selected value has to be of a primitive value.
125
+ */
126
+ valuePrimitive?: boolean;
119
127
  /**
120
128
  * Sets the key for comparing the data items of the ComboBox. If `dataItemKey` is not set, the ComboBox compares the items by reference ([see example]({% slug binding_combobox %}#toc-datasets-of-objects)).
121
129
  */
@@ -214,7 +222,6 @@ export interface ComboBoxProps extends FormComponentProps {
214
222
  * - small
215
223
  * - medium
216
224
  * - large
217
- * - circle
218
225
  * - full
219
226
  * - null&mdash;Does not set a rounded `class`.
220
227
  *
@@ -90,8 +90,11 @@ export interface DropDownListComputed {
90
90
  export interface DropDownListAll extends DropDownListMethods, DropDownListState, DropDownListData, DropDownListComputed, Vue2type {
91
91
  }
92
92
  /**
93
- * Represents the default `DropDownList` component.
93
+ * @hidden
94
94
  */
95
95
  declare let DropDownListVue2: ComponentOptions<Vue2type, DefaultData<DropDownListData>, DefaultMethods<DropDownListAll>, DropDownListComputed, RecordPropsDefinition<DropDownListProps>>;
96
+ /**
97
+ * @hidden
98
+ */
96
99
  declare let DropDownList: DefineComponent<DropDownListProps, any, DropDownListData, DropDownListComputed, DropDownListMethods, {}, {}, {}, string, DropDownListProps, DropDownListProps, {}>;
97
100
  export { DropDownList, DropDownListVue2 };
@@ -48,7 +48,7 @@ var utils_1 = require("../common/utils");
48
48
 
49
49
  var VALIDATION_MESSAGE = 'Please select a value from the list!';
50
50
  /**
51
- * Represents the default `DropDownList` component.
51
+ * @hidden
52
52
  */
53
53
 
54
54
  var DropDownListVue2 = {
@@ -130,6 +130,8 @@ var DropDownListVue2 = {
130
130
  accessKey: String,
131
131
  dataItems: Array,
132
132
  textField: String,
133
+ valueField: String,
134
+ valuePrimitive: Boolean,
133
135
  className: String,
134
136
  loading: Boolean,
135
137
  popupSettings: {
@@ -372,7 +374,17 @@ var DropDownListVue2 = {
372
374
  value = this.$props.defaultItem;
373
375
  }
374
376
 
375
- return value;
377
+ return this.valuePrimitive ? this.findByFieldValue(this.valueField, value) || value : value;
378
+ },
379
+ findByFieldValue: function findByFieldValue(field, value) {
380
+ var index = this.dataItems.findIndex(function (i) {
381
+ return utils_1.getItemValue(i, field) === value;
382
+ });
383
+ return this.dataItems[index];
384
+ },
385
+ primitiveValue: function primitiveValue() {
386
+ var value = this.computedValue();
387
+ return this.valuePrimitive ? utils_1.getItemValue(value, this.valueField) : value;
376
388
  },
377
389
  validity: function validity() {
378
390
  var customError = this.$props.validationMessage !== undefined;
@@ -757,7 +769,7 @@ var DropDownListVue2 = {
757
769
  iconClassName = _d.iconClassName;
758
770
  var valueRender = kendo_vue_common_1.templateRendering.call(this, this.$props.valueRender, kendo_vue_common_1.getListeners.call(this));
759
771
  var focused = this.currentFocused;
760
- var value = this.computedValue();
772
+ var value = this.primitiveValue();
761
773
  var selectedIndex = dataItems.findIndex(function (i) {
762
774
  return utils_1.areSame(i, value, dataItemKey);
763
775
  });
@@ -1103,5 +1115,9 @@ var DropDownListVue2 = {
1103
1115
  }
1104
1116
  };
1105
1117
  exports.DropDownListVue2 = DropDownListVue2;
1118
+ /**
1119
+ * @hidden
1120
+ */
1121
+
1106
1122
  var DropDownList = DropDownListVue2;
1107
1123
  exports.DropDownList = DropDownList;
@@ -37,7 +37,7 @@ export interface DropDownListBlurEvent extends BlurEvent {
37
37
  export interface DropDownListPageChangeEvent extends PageChangeEvent {
38
38
  }
39
39
  /**
40
- * Represents the props of the [KendoVue DropDownList component]({% slug overview_dropdownlist_native %}).
40
+ * Represents the props of the [KendoVue DropDownList component]({% slug overview_dropdownlist %}).
41
41
  */
42
42
  export interface DropDownListProps extends FormComponentProps {
43
43
  /**
@@ -66,7 +66,7 @@ export interface DropDownListProps extends FormComponentProps {
66
66
  */
67
67
  validate?: boolean;
68
68
  /**
69
- * Sets the data of the DropDownList ([see example]({% slug binding_dropdownlist_native %})).
69
+ * Sets the data of the DropDownList ([see example]({% slug binding_dropdownlist %})).
70
70
  */
71
71
  dataItems?: any[];
72
72
  /**
@@ -94,11 +94,11 @@ export interface DropDownListProps extends FormComponentProps {
94
94
  */
95
95
  modelValue?: any;
96
96
  /**
97
- * Sets the value of the DropDownList ([see example]({% slug binding_dropdownlist_native %})). It can either be of the primitive (string, numbers) or of the complex (objects) type.
97
+ * Sets the value of the DropDownList ([see example]({% slug binding_dropdownlist %})). It can either be of the primitive (string, numbers) or of the complex (objects) type.
98
98
  */
99
99
  value?: any;
100
100
  /**
101
- * Sets the default value of the DropDownList ([see example]({% slug defaultitem_dropdownlist_native %})). Similar to the native `select` HTML element.
101
+ * Sets the default value of the DropDownList ([see example]({% slug defaultitem_dropdownlist %})). Similar to the native `select` HTML element.
102
102
  */
103
103
  defaultValue?: any;
104
104
  /**
@@ -118,7 +118,7 @@ export interface DropDownListProps extends FormComponentProps {
118
118
  */
119
119
  dir?: string;
120
120
  /**
121
- * Enables the filtering functionality of the DropDownList ([more information and examples]({% slug filtering_dropdownlist_native %})).
121
+ * Enables the filtering functionality of the DropDownList ([more information and examples]({% slug filtering_dropdownlist %})).
122
122
  */
123
123
  filterable?: boolean;
124
124
  /**
@@ -138,11 +138,19 @@ export interface DropDownListProps extends FormComponentProps {
138
138
  */
139
139
  accessKey?: string;
140
140
  /**
141
- * Sets the data item field that represents the item text ([see example]({% slug defaultitem_dropdownlist_native %})). If the data contains only primitive values, do not define it.
141
+ * Sets the data item field that represents the item text ([see example]({% slug defaultitem_dropdownlist %})). If the data contains only primitive values, do not define it.
142
142
  */
143
143
  textField?: string;
144
144
  /**
145
- * Sets the key for comparing the data items of the DropDownList. If `dataItemKey` is not set, the DropDownList compares the items by reference ([see example]({% slug binding_dropdownlist_native %}#toc-datasets-of-objects)).
145
+ * Sets the data item field that represents the item value.
146
+ */
147
+ valueField?: string;
148
+ /**
149
+ * Specifies the type of the selected value. If set to true, the selected value has to be of a primitive value.
150
+ */
151
+ valuePrimitive?: boolean;
152
+ /**
153
+ * Sets the key for comparing the data items of the DropDownList. If `dataItemKey` is not set, the DropDownList compares the items by reference ([see example]({% slug binding_dropdownlist %}#toc-datasets-of-objects)).
146
154
  */
147
155
  dataItemKey?: string;
148
156
  /**
@@ -158,7 +166,7 @@ export interface DropDownListProps extends FormComponentProps {
158
166
  */
159
167
  popupSettings?: DropDownsPopupSettings;
160
168
  /**
161
- * Configures the virtual scrolling of the DropDownList ([see example]({% slug virtualization_dropdownlist_native %})).
169
+ * Configures the virtual scrolling of the DropDownList ([see example]({% slug virtualization_dropdownlist %})).
162
170
  */
163
171
  virtual?: VirtualizationSettings;
164
172
  /**
@@ -185,7 +193,7 @@ export interface DropDownListProps extends FormComponentProps {
185
193
  */
186
194
  onBlur?: (event: DropDownListBlurEvent) => void;
187
195
  /**
188
- * Fires each time the value of the DropDownList is about to change ([see examples]({% slug binding_dropdownlist_native %})).
196
+ * Fires each time the value of the DropDownList is about to change ([see examples]({% slug binding_dropdownlist %})).
189
197
  */
190
198
  onChange?: (event: DropDownListChangeEvent) => void;
191
199
  /**
@@ -193,27 +201,27 @@ export interface DropDownListProps extends FormComponentProps {
193
201
  */
194
202
  onFilterchange?: (event: DropDownListFilterChangeEvent) => void;
195
203
  /**
196
- * Fires when both the virtual scrolling of the DropDownList is enabled and the component requires data for another page ([see example]({% slug virtualization_dropdownlist_native %})).
204
+ * Fires when both the virtual scrolling of the DropDownList is enabled and the component requires data for another page ([see example]({% slug virtualization_dropdownlist %})).
197
205
  */
198
206
  onPagechange?: (event: DropDownListPageChangeEvent) => void;
199
207
  /**
200
- * Fires when a DropDownList item is about to be rendered ([see example]({% slug customrendering_dropdownlist_native %}#toc-items)). Used to override the default appearance of the list items.
208
+ * Fires when a DropDownList item is about to be rendered ([see example]({% slug customrendering_dropdownlist %}#toc-items)). Used to override the default appearance of the list items.
201
209
  */
202
210
  itemRender?: any;
203
211
  /**
204
- * Fires when the element which renders the value is about to be rendered ([see example]({% slug customrendering_dropdownlist_native %}#toc-values)). Used to override the default appearance of the element.
212
+ * Fires when the element which renders the value is about to be rendered ([see example]({% slug customrendering_dropdownlist %}#toc-values)). Used to override the default appearance of the element.
205
213
  */
206
214
  valueRender?: any;
207
215
  /**
208
- * Fires when the element which indicates no data in the popup is about to be rendered ([see example]({% slug customrendering_dropdownlist_native %}#toc-no-data)). Used to override the default appearance of the element.
216
+ * Fires when the element which indicates no data in the popup is about to be rendered ([see example]({% slug customrendering_dropdownlist %}#toc-no-data)). Used to override the default appearance of the element.
209
217
  */
210
218
  listNoDataRender?: any;
211
219
  /**
212
- * Sets the header component of the DropDownList ([see example]({% slug customrendering_dropdownlist_native %}#toc-headers-and-footers)).
220
+ * Sets the header component of the DropDownList ([see example]({% slug customrendering_dropdownlist %}#toc-headers-and-footers)).
213
221
  */
214
222
  header?: any;
215
223
  /**
216
- * Sets the footer component of the DropDownList ([see example]({% slug customrendering_dropdownlist_native %}#toc-headers-and-footers)).
224
+ * Sets the footer component of the DropDownList ([see example]({% slug customrendering_dropdownlist %}#toc-headers-and-footers)).
217
225
  */
218
226
  footer?: any;
219
227
  /**
@@ -244,7 +252,6 @@ export interface DropDownListProps extends FormComponentProps {
244
252
  * - small
245
253
  * - medium
246
254
  * - large
247
- * - circle
248
255
  * - full
249
256
  * - null&mdash;Does not set a rounded `class`.
250
257
  *
@@ -258,7 +265,6 @@ export interface DropDownListProps extends FormComponentProps {
258
265
  * - solid
259
266
  * - outline
260
267
  * - flat
261
- * - link
262
268
  * - null&mdash;Does not set a fillMode `class`.
263
269
  *
264
270
  * @default `solid`
@@ -105,8 +105,11 @@ export interface MultiSelectComputed {
105
105
  export interface MultiSelectAll extends MultiSelectMethods, MultiSelectState, MultiSelectData, MultiSelectComputed, Vue2type {
106
106
  }
107
107
  /**
108
- * Represents the default `MultiSelect` component.
108
+ * @hidden
109
109
  */
110
110
  declare let MultiSelectVue2: ComponentOptions<Vue2type, DefaultData<MultiSelectData>, DefaultMethods<MultiSelectAll>, MultiSelectComputed, RecordPropsDefinition<MultiSelectProps>>;
111
+ /**
112
+ * @hidden
113
+ */
111
114
  declare const MultiSelect: DefineComponent<MultiSelectProps, any, MultiSelectData, MultiSelectComputed, MultiSelectMethods, {}, {}, {}, string, MultiSelectProps, MultiSelectProps, {}>;
112
115
  export { MultiSelect, MultiSelectVue2 };
@@ -88,7 +88,7 @@ var FocusedItemType;
88
88
  FocusedItemType[FocusedItemType["CustomItem"] = 2] = "CustomItem";
89
89
  })(FocusedItemType || (FocusedItemType = {}));
90
90
  /**
91
- * Represents the default `MultiSelect` component.
91
+ * @hidden
92
92
  */
93
93
 
94
94
 
@@ -134,6 +134,8 @@ var MultiSelectVue2 = {
134
134
  name: String,
135
135
  value: Array,
136
136
  defaultValue: Array,
137
+ valueField: String,
138
+ valuePrimitive: Boolean,
137
139
  dataItemKey: String,
138
140
  placeholder: String,
139
141
  tags: Array,
@@ -361,7 +363,28 @@ var MultiSelectVue2 = {
361
363
  result.push.apply(result, this.$props.defaultValue);
362
364
  }
363
365
 
364
- return result;
366
+ return this.valuePrimitive ? this.findByFieldValue(this.valueField, result) || result : result;
367
+ },
368
+ findByFieldValue: function findByFieldValue(field, result) {
369
+ var _this = this;
370
+
371
+ var newResult = result.map(function (currentValue) {
372
+ var index = _this.dataItems.findIndex(function (i) {
373
+ return utils_1.getItemValue(i, field) === currentValue;
374
+ });
375
+
376
+ return _this.dataItems[index] || currentValue;
377
+ });
378
+ return newResult;
379
+ },
380
+ primitiveValue: function primitiveValue() {
381
+ var _this = this;
382
+
383
+ var computed = this.computedValue();
384
+ var value = computed.map(function (v) {
385
+ return utils_1.getItemValue(v, _this.valueField);
386
+ });
387
+ return this.valuePrimitive ? value : computed;
365
388
  },
366
389
  validity: function validity() {
367
390
  var customError = this.$props.validationMessage !== undefined;
@@ -1244,5 +1267,9 @@ var MultiSelectVue2 = {
1244
1267
  }
1245
1268
  };
1246
1269
  exports.MultiSelectVue2 = MultiSelectVue2;
1270
+ /**
1271
+ * @hidden
1272
+ */
1273
+
1247
1274
  var MultiSelect = MultiSelectVue2;
1248
1275
  exports.MultiSelect = MultiSelect;
@@ -79,6 +79,14 @@ export interface MultiSelectProps extends FormComponentProps {
79
79
  * Sets the tags of the MultiSelect ([see example]({% slug customtags_multiselect %})).
80
80
  */
81
81
  tags?: Array<TagData>;
82
+ /**
83
+ * Sets the data item field that represents the item value.
84
+ */
85
+ valueField?: string;
86
+ /**
87
+ * Specifies the type of the selected value. If set to true, the selected value has to be of a primitive value.
88
+ */
89
+ valuePrimitive?: boolean;
82
90
  /**
83
91
  * Sets the key for comparing the data items of the MultiSelect ([see example]({% slug binding_multiselect %}#toc-datasets-of-objects)). If `dataItemKey` is not set, the MultiSelect compares the items by reference.
84
92
  */
@@ -218,7 +226,6 @@ export interface MultiSelectProps extends FormComponentProps {
218
226
  * - small
219
227
  * - medium
220
228
  * - large
221
- * - circle
222
229
  * - full
223
230
  * - null&mdash;Does not set a rounded `class`.
224
231
  *
@@ -41,8 +41,11 @@ export interface TagListMethods extends Vue2type {
41
41
  export interface TagListAll extends TagListMethods {
42
42
  }
43
43
  /**
44
- * Represents the default `TagList` component.
44
+ * @hidden
45
45
  */
46
46
  declare let TagListVue2: ComponentOptions<Vue2type, DefaultData<TagListAll>, DefaultMethods<TagListAll>, {}, RecordPropsDefinition<TagListProps>>;
47
+ /**
48
+ * @hidden
49
+ */
47
50
  declare const TagList: DefineComponent<{}, any, {}, {}, TagListMethods, {}, {}, {}, string, {}, {}, {}>;
48
51
  export { TagList, TagListVue2 };
@@ -37,7 +37,7 @@ var stopPropagation = function stopPropagation(event) {
37
37
  return event.stopPropagation();
38
38
  };
39
39
  /**
40
- * Represents the default `TagList` component.
40
+ * @hidden
41
41
  */
42
42
 
43
43
 
@@ -180,5 +180,9 @@ var TagListVue2 = {
180
180
  }
181
181
  };
182
182
  exports.TagListVue2 = TagListVue2;
183
+ /**
184
+ * @hidden
185
+ */
186
+
183
187
  var TagList = TagListVue2;
184
188
  exports.TagList = TagList;
@@ -2,9 +2,20 @@
2
2
  import { DefineComponent } from 'vue';
3
3
  // @ts-ignore
4
4
  import * as Vue from 'vue';
5
+
6
+ /**
7
+ * @hidden
8
+ */
5
9
  // @ts-ignore
6
10
  type Vue2type = Vue.default;
11
+
12
+ /**
13
+ * @hidden
14
+ */
7
15
  // @ts-ignore
8
16
  import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
17
+ /**
18
+ * @hidden
19
+ */
9
20
  // @ts-ignore
10
21
  export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
@@ -11,8 +11,11 @@ export interface ClearButtonMethods extends Vue2type {
11
11
  onClickHandler: (e: any) => void;
12
12
  }
13
13
  /**
14
- * Represents the default `ClearButton` component.
14
+ * @hidden
15
15
  */
16
16
  declare let ClearButtonVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ClearButtonMethods>, {}, RecordPropsDefinition<{}>>;
17
+ /**
18
+ * @hidden
19
+ */
17
20
  declare const ClearButton: DefineComponent<{}, any, {}, {}, ClearButtonMethods, {}, {}, {}, string, {}, {}, {}>;
18
21
  export { ClearButton, ClearButtonVue2 };
@@ -15,7 +15,7 @@ var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
15
15
 
16
16
  var messages_1 = require("../messages");
17
17
  /**
18
- * Represents the default `ClearButton` component.
18
+ * @hidden
19
19
  */
20
20
 
21
21
 
@@ -70,5 +70,9 @@ var ClearButtonVue2 = {
70
70
  }
71
71
  };
72
72
  exports.ClearButtonVue2 = ClearButtonVue2;
73
+ /**
74
+ * @hidden
75
+ */
76
+
73
77
  var ClearButton = ClearButtonVue2;
74
78
  exports.ClearButton = ClearButton;
@@ -233,7 +233,7 @@ function () {
233
233
  } // @ts-ignore
234
234
 
235
235
 
236
- var newValue = this.component.computedValue();
236
+ var newValue = this.component.primitiveValue();
237
237
  var eventArgs = {
238
238
  event: state.event,
239
239
  component: this.component,
@@ -48,8 +48,11 @@ export interface ListAll extends ListMethods, ListState {
48
48
  listRef: any;
49
49
  }
50
50
  /**
51
- * Represents the default `List` component.
51
+ * @hidden
52
52
  */
53
53
  declare let ListVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ListMethods>, {}, RecordPropsDefinition<ListProps>>;
54
+ /**
55
+ * @hidden
56
+ */
54
57
  declare const List: DefineComponent<{}, any, {}, {}, ListMethods, {}, {}, {}, string, {}, {}, {}>;
55
58
  export { List, ListVue2 };