@progress/kendo-angular-dropdowns
Advanced tools
Comparing version 0.20.2 to 0.20.3
@@ -41,5 +41,3 @@ import { ElementRef, EventEmitter, OnDestroy, Renderer } from '@angular/core'; | ||
/** | ||
* Sets or gets the `open` property of the ComboBox. | ||
* | ||
* > The `open` property determines whether the popup list of the ComboBox is visible or not. | ||
* Sets or gets the `open` property of the ComboBox. The `open` property determines whether the popup list of the ComboBox is visible or not. | ||
*/ | ||
@@ -58,4 +56,3 @@ open: boolean; | ||
/** | ||
* Sets the value of the ComboBox. It could be either of the primivite (string, numbers) | ||
* or of the complex (objects) type. Use the `valuePrimitive` option to define the type. | ||
* Sets the value of the ComboBox. It could be either of the primitive (string, numbers) or of the complex (objects) type. Use the `valuePrimitive` option to define the type. | ||
* | ||
@@ -66,11 +63,7 @@ * > Selected values that are not present in the source are considered custom values. | ||
/** | ||
* Sets the data item field that represents the item text. | ||
* | ||
* If the data contains only primitive values, do not define it. | ||
* Sets the data item field that represents the item text. If the data contains only primitive values, do not define it. | ||
*/ | ||
textField: string; | ||
/** | ||
* Sets the data item field that represents the item value. | ||
* | ||
* If the data contains only primitive values, do not define it. | ||
* Sets the data item field that represents the item value. If the data contains only primitive values, do not define it. | ||
*/ | ||
@@ -81,9 +74,7 @@ valueField: string; | ||
* | ||
* For more details, refer to the section on | ||
* the [`valuePrimitive`]({% slug overview_combobox_kendouiforangular %}#toc-valueprimitive) property. | ||
* For more details, refer to the section on the [`valuePrimitive`]({% slug overview_combobox_kendouiforangular %}#toc-valueprimitive) property. | ||
*/ | ||
valuePrimitive: boolean; | ||
/** | ||
* A user-defined callback returning normalized custom values. | ||
* Typically used when the data items are not of type `string`. | ||
* A user-defined callback returning normalized custom values. Typically used when the data items are not of type `string`. | ||
* @param { Any } value - The custom value defined by the user. | ||
@@ -99,8 +90,7 @@ * @returns { Any } | ||
/** | ||
* Configures the popup of the DropDownList. | ||
* Configures the popup of the ComboBox. | ||
* | ||
* The available options of the `IPopupSettings` are: | ||
* | ||
* - `width: Number`—Sets the width of the popup container. By default will be used the width of the host element. | ||
* - `height: Number`—Sets the height of the popup container. By default height is 200px. | ||
* The available options are: | ||
* - `width: Number`—Sets the width of the popup container. By default, the width of the host element is used. | ||
* - `height: Number`—Sets the height of the popup container. By default, the height is 200px. | ||
*/ | ||
@@ -135,4 +125,3 @@ popupSettings: IPopupSettings; | ||
* | ||
* For more details, refer to the section on | ||
* the [`selectionChange`]({% slug overview_combobox_kendouiforangular %}#toc-on-change-of-item-selection) event. | ||
* For more details, refer to the section on the [`selectionChange`]({% slug overview_combobox_kendouiforangular %}#toc-on-change-of-item-selection) event. | ||
*/ | ||
@@ -144,4 +133,3 @@ selectionChange: EventEmitter<any>; | ||
* | ||
* For more details, refer to the section on | ||
* the [`filterChange`]({% slug overview_combobox_kendouiforangular %}#toc-on-filter-change) event. | ||
* For more details, refer to the section on the [`filterChange`]({% slug overview_combobox_kendouiforangular %}#toc-on-filter-change) event. | ||
*/ | ||
@@ -148,0 +136,0 @@ filterChange: EventEmitter<any>; |
@@ -60,4 +60,3 @@ /* tslint:disable:no-null-keyword */ | ||
/** | ||
* A user-defined callback returning normalized custom values. | ||
* Typically used when the data items are not of type `string`. | ||
* A user-defined callback returning normalized custom values. Typically used when the data items are not of type `string`. | ||
* @param { Any } value - The custom value defined by the user. | ||
@@ -75,8 +74,7 @@ * @returns { Any } | ||
/** | ||
* Configures the popup of the DropDownList. | ||
* Configures the popup of the ComboBox. | ||
* | ||
* The available options of the `IPopupSettings` are: | ||
* | ||
* - `width: Number`—Sets the width of the popup container. By default will be used the width of the host element. | ||
* - `height: Number`—Sets the height of the popup container. By default height is 200px. | ||
* The available options are: | ||
* - `width: Number`—Sets the width of the popup container. By default, the width of the host element is used. | ||
* - `height: Number`—Sets the height of the popup container. By default, the height is 200px. | ||
*/ | ||
@@ -107,4 +105,3 @@ this.popupSettings = { height: 200 }; | ||
* | ||
* For more details, refer to the section on | ||
* the [`selectionChange`]({% slug overview_combobox_kendouiforangular %}#toc-on-change-of-item-selection) event. | ||
* For more details, refer to the section on the [`selectionChange`]({% slug overview_combobox_kendouiforangular %}#toc-on-change-of-item-selection) event. | ||
*/ | ||
@@ -116,4 +113,3 @@ this.selectionChange = new EventEmitter(); | ||
* | ||
* For more details, refer to the section on | ||
* the [`filterChange`]({% slug overview_combobox_kendouiforangular %}#toc-on-filter-change) event. | ||
* For more details, refer to the section on the [`filterChange`]({% slug overview_combobox_kendouiforangular %}#toc-on-filter-change) event. | ||
*/ | ||
@@ -139,5 +135,3 @@ this.filterChange = new EventEmitter(); | ||
/** | ||
* Sets or gets the `open` property of the ComboBox. | ||
* | ||
* > The `open` property determines whether the popup list of the ComboBox is visible or not. | ||
* Sets or gets the `open` property of the ComboBox. The `open` property determines whether the popup list of the ComboBox is visible or not. | ||
*/ | ||
@@ -176,4 +170,3 @@ set: function (open) { | ||
/** | ||
* Sets the value of the ComboBox. It could be either of the primivite (string, numbers) | ||
* or of the complex (objects) type. Use the `valuePrimitive` option to define the type. | ||
* Sets the value of the ComboBox. It could be either of the primitive (string, numbers) or of the complex (objects) type. Use the `valuePrimitive` option to define the type. | ||
* | ||
@@ -482,3 +475,3 @@ * > Selected values that are not present in the source are considered custom values. | ||
var currentText = this.searchbar.value; | ||
if (!currentText) { | ||
if (!currentText && !isPresent(this._previousValue)) { | ||
this.open = false; | ||
@@ -485,0 +478,0 @@ this.isFocused = false; |
@@ -45,5 +45,3 @@ import { ElementRef, EventEmitter, OnDestroy, AfterViewChecked, Renderer, NgZone } from '@angular/core'; | ||
/** | ||
* Sets or gets the `open` property of the DropDownList. | ||
* | ||
* > The `open` property determines whether the popup list of the DropDownList is visible or not. | ||
* Sets or gets the `open` property of the DropDownList. The `open` property determines whether the popup list of the DropDownList is visible or not. | ||
*/ | ||
@@ -58,4 +56,3 @@ open: boolean; | ||
/** | ||
* Sets the value of the DropDownList. It could be either of the *primivite* (string numbers) | ||
* or of the *complex* (objects) type. Use the `valuePrimitive` option to define the type. | ||
* Sets the value of the DropDownList. It could be either of the primitive (string, numbers) or of the complex (objects) type. Use the `valuePrimitive` option to define the type. | ||
* | ||
@@ -66,16 +63,13 @@ * > Selected values that are not present in the source are ignored. | ||
/** | ||
* Sets the data item field that represents the item text. | ||
* | ||
* If the data contains only primitive values, do not define it. | ||
* Sets the data item field that represents the item text. If the data contains only primitive values, do not define it. | ||
*/ | ||
textField: string; | ||
/** | ||
* Sets the data item field that represents the item value. | ||
* | ||
* If the data contains only primitive values, do not define it. | ||
* Sets the data item field that represents the item value. If the data contains only primitive values, do not define it. | ||
*/ | ||
valueField: string; | ||
/** | ||
* Configures the popup of the DropDownList. The available options of the `IPopupSettings` are: | ||
* Configures the popup of the DropDownList. | ||
* | ||
* The available options are: | ||
* - `width: Number`—Sets the width of the popup container. By default, the width of the host element is used. | ||
@@ -98,14 +92,13 @@ * - `height: Number`—Sets the height of the popup container. By default, the height is 200px. | ||
/** | ||
* Enables a case-insensitive search. Use this option when `filtration` is disabled. | ||
* Enables a case-insensitive search. When `filtration` is disabled, use this option. | ||
*/ | ||
ignoreCase: boolean; | ||
/** | ||
* Sets the delay before an item search is performed. Use this option when `filtration` is disabled. | ||
* Sets the delay before an item search is performed. When `filtration` is disabled, use this option. | ||
*/ | ||
delay: number; | ||
/** | ||
* Specifies the type of the selected value. If set to `true`, the selected value has to be of a *primitive* value. | ||
* Specifies the type of the selected value. If set to `true`, the selected value has to be of a primitive value. | ||
* | ||
* For more details, refer to the section on | ||
* the [`valuePrimitive`]({% slug overview_ddl_kendouiforangular %}#toc-specify-the-value-type) property. | ||
* For more details, refer to the section on the [`valuePrimitive`]({% slug overview_ddl_kendouiforangular %}#toc-specify-the-value-type) property. | ||
*/ | ||
@@ -124,4 +117,3 @@ valuePrimitive: boolean; | ||
/** | ||
* This event is triggered when the user types in the filter input. You can filter the source | ||
* based on the passed filtration value. | ||
* This event is triggered when the user types in the filter input. You can filter the source based on the passed filtration value. | ||
* | ||
@@ -134,4 +126,3 @@ * For more details, refer to the section on the [`filterChange`]({% slug overview_ddl_kendouiforangular %}#toc-on-filter-change) event. | ||
* | ||
* For more details, refer to the section on | ||
* the [`selectionChange`]({% slug overview_ddl_kendouiforangular %}#toc-on-change-of-item-selection) event. | ||
* For more details, refer to the section on the [`selectionChange`]({% slug overview_ddl_kendouiforangular %}#toc-on-change-of-item-selection) event. | ||
*/ | ||
@@ -138,0 +129,0 @@ selectionChange: EventEmitter<any>; |
@@ -59,4 +59,5 @@ /* tslint:disable:max-line-length */ | ||
/** | ||
* Configures the popup of the DropDownList. The available options of the `IPopupSettings` are: | ||
* Configures the popup of the DropDownList. | ||
* | ||
* The available options are: | ||
* - `width: Number`—Sets the width of the popup container. By default, the width of the host element is used. | ||
@@ -75,7 +76,7 @@ * - `height: Number`—Sets the height of the popup container. By default, the height is 200px. | ||
/** | ||
* Enables a case-insensitive search. Use this option when `filtration` is disabled. | ||
* Enables a case-insensitive search. When `filtration` is disabled, use this option. | ||
*/ | ||
this.ignoreCase = true; | ||
/** | ||
* Sets the delay before an item search is performed. Use this option when `filtration` is disabled. | ||
* Sets the delay before an item search is performed. When `filtration` is disabled, use this option. | ||
*/ | ||
@@ -94,4 +95,3 @@ this.delay = 500; | ||
/** | ||
* This event is triggered when the user types in the filter input. You can filter the source | ||
* based on the passed filtration value. | ||
* This event is triggered when the user types in the filter input. You can filter the source based on the passed filtration value. | ||
* | ||
@@ -104,4 +104,3 @@ * For more details, refer to the section on the [`filterChange`]({% slug overview_ddl_kendouiforangular %}#toc-on-filter-change) event. | ||
* | ||
* For more details, refer to the section on | ||
* the [`selectionChange`]({% slug overview_ddl_kendouiforangular %}#toc-on-change-of-item-selection) event. | ||
* For more details, refer to the section on the [`selectionChange`]({% slug overview_ddl_kendouiforangular %}#toc-on-change-of-item-selection) event. | ||
*/ | ||
@@ -132,5 +131,3 @@ this.selectionChange = new EventEmitter(); | ||
/** | ||
* Sets or gets the `open` property of the DropDownList. | ||
* | ||
* > The `open` property determines whether the popup list of the DropDownList is visible or not. | ||
* Sets or gets the `open` property of the DropDownList. The `open` property determines whether the popup list of the DropDownList is visible or not. | ||
*/ | ||
@@ -169,4 +166,3 @@ set: function (open) { | ||
/** | ||
* Sets the value of the DropDownList. It could be either of the *primivite* (string numbers) | ||
* or of the *complex* (objects) type. Use the `valuePrimitive` option to define the type. | ||
* Sets the value of the DropDownList. It could be either of the primitive (string, numbers) or of the complex (objects) type. Use the `valuePrimitive` option to define the type. | ||
* | ||
@@ -558,4 +554,9 @@ * > Selected values that are not present in the source are ignored. | ||
if (!this.data.length) { | ||
valueCandidate = value; | ||
textCandidate = Util.getter(value, this.textField); | ||
if (isPresent(value)) { | ||
valueCandidate = value; | ||
} | ||
else { | ||
valueCandidate = this.valuePrimitive ? Util.getter(this.defaultItem, this.valueField) : this.defaultItem; | ||
} | ||
textCandidate = Util.getter(isPresent(value) ? value : this.defaultItem, this.textField); | ||
} | ||
@@ -562,0 +563,0 @@ else { |
@@ -41,5 +41,3 @@ import { ElementRef, EventEmitter, OnDestroy, Renderer } from '@angular/core'; | ||
/** | ||
* Sets or gets the `open` property of the ComboBox. | ||
* | ||
* > The `open` property determines whether the popup list of the ComboBox is visible or not. | ||
* Sets or gets the `open` property of the ComboBox. The `open` property determines whether the popup list of the ComboBox is visible or not. | ||
*/ | ||
@@ -58,4 +56,3 @@ open: boolean; | ||
/** | ||
* Sets the value of the ComboBox. It could be either of the primivite (string, numbers) | ||
* or of the complex (objects) type. Use the `valuePrimitive` option to define the type. | ||
* Sets the value of the ComboBox. It could be either of the primitive (string, numbers) or of the complex (objects) type. Use the `valuePrimitive` option to define the type. | ||
* | ||
@@ -66,11 +63,7 @@ * > Selected values that are not present in the source are considered custom values. | ||
/** | ||
* Sets the data item field that represents the item text. | ||
* | ||
* If the data contains only primitive values, do not define it. | ||
* Sets the data item field that represents the item text. If the data contains only primitive values, do not define it. | ||
*/ | ||
textField: string; | ||
/** | ||
* Sets the data item field that represents the item value. | ||
* | ||
* If the data contains only primitive values, do not define it. | ||
* Sets the data item field that represents the item value. If the data contains only primitive values, do not define it. | ||
*/ | ||
@@ -81,9 +74,7 @@ valueField: string; | ||
* | ||
* For more details, refer to the section on | ||
* the [`valuePrimitive`]({% slug overview_combobox_kendouiforangular %}#toc-valueprimitive) property. | ||
* For more details, refer to the section on the [`valuePrimitive`]({% slug overview_combobox_kendouiforangular %}#toc-valueprimitive) property. | ||
*/ | ||
valuePrimitive: boolean; | ||
/** | ||
* A user-defined callback returning normalized custom values. | ||
* Typically used when the data items are not of type `string`. | ||
* A user-defined callback returning normalized custom values. Typically used when the data items are not of type `string`. | ||
* @param { Any } value - The custom value defined by the user. | ||
@@ -99,8 +90,7 @@ * @returns { Any } | ||
/** | ||
* Configures the popup of the DropDownList. | ||
* Configures the popup of the ComboBox. | ||
* | ||
* The available options of the `IPopupSettings` are: | ||
* | ||
* - `width: Number`—Sets the width of the popup container. By default will be used the width of the host element. | ||
* - `height: Number`—Sets the height of the popup container. By default height is 200px. | ||
* The available options are: | ||
* - `width: Number`—Sets the width of the popup container. By default, the width of the host element is used. | ||
* - `height: Number`—Sets the height of the popup container. By default, the height is 200px. | ||
*/ | ||
@@ -135,4 +125,3 @@ popupSettings: IPopupSettings; | ||
* | ||
* For more details, refer to the section on | ||
* the [`selectionChange`]({% slug overview_combobox_kendouiforangular %}#toc-on-change-of-item-selection) event. | ||
* For more details, refer to the section on the [`selectionChange`]({% slug overview_combobox_kendouiforangular %}#toc-on-change-of-item-selection) event. | ||
*/ | ||
@@ -144,4 +133,3 @@ selectionChange: EventEmitter<any>; | ||
* | ||
* For more details, refer to the section on | ||
* the [`filterChange`]({% slug overview_combobox_kendouiforangular %}#toc-on-filter-change) event. | ||
* For more details, refer to the section on the [`filterChange`]({% slug overview_combobox_kendouiforangular %}#toc-on-filter-change) event. | ||
*/ | ||
@@ -148,0 +136,0 @@ filterChange: EventEmitter<any>; |
@@ -61,4 +61,3 @@ /* tslint:disable:no-null-keyword */ | ||
/** | ||
* A user-defined callback returning normalized custom values. | ||
* Typically used when the data items are not of type `string`. | ||
* A user-defined callback returning normalized custom values. Typically used when the data items are not of type `string`. | ||
* @param { Any } value - The custom value defined by the user. | ||
@@ -76,8 +75,7 @@ * @returns { Any } | ||
/** | ||
* Configures the popup of the DropDownList. | ||
* Configures the popup of the ComboBox. | ||
* | ||
* The available options of the `IPopupSettings` are: | ||
* | ||
* - `width: Number`—Sets the width of the popup container. By default will be used the width of the host element. | ||
* - `height: Number`—Sets the height of the popup container. By default height is 200px. | ||
* The available options are: | ||
* - `width: Number`—Sets the width of the popup container. By default, the width of the host element is used. | ||
* - `height: Number`—Sets the height of the popup container. By default, the height is 200px. | ||
*/ | ||
@@ -108,4 +106,3 @@ this.popupSettings = { height: 200 }; | ||
* | ||
* For more details, refer to the section on | ||
* the [`selectionChange`]({% slug overview_combobox_kendouiforangular %}#toc-on-change-of-item-selection) event. | ||
* For more details, refer to the section on the [`selectionChange`]({% slug overview_combobox_kendouiforangular %}#toc-on-change-of-item-selection) event. | ||
*/ | ||
@@ -117,4 +114,3 @@ this.selectionChange = new core_1.EventEmitter(); | ||
* | ||
* For more details, refer to the section on | ||
* the [`filterChange`]({% slug overview_combobox_kendouiforangular %}#toc-on-filter-change) event. | ||
* For more details, refer to the section on the [`filterChange`]({% slug overview_combobox_kendouiforangular %}#toc-on-filter-change) event. | ||
*/ | ||
@@ -140,5 +136,3 @@ this.filterChange = new core_1.EventEmitter(); | ||
/** | ||
* Sets or gets the `open` property of the ComboBox. | ||
* | ||
* > The `open` property determines whether the popup list of the ComboBox is visible or not. | ||
* Sets or gets the `open` property of the ComboBox. The `open` property determines whether the popup list of the ComboBox is visible or not. | ||
*/ | ||
@@ -177,4 +171,3 @@ set: function (open) { | ||
/** | ||
* Sets the value of the ComboBox. It could be either of the primivite (string, numbers) | ||
* or of the complex (objects) type. Use the `valuePrimitive` option to define the type. | ||
* Sets the value of the ComboBox. It could be either of the primitive (string, numbers) or of the complex (objects) type. Use the `valuePrimitive` option to define the type. | ||
* | ||
@@ -483,3 +476,3 @@ * > Selected values that are not present in the source are considered custom values. | ||
var currentText = this.searchbar.value; | ||
if (!currentText) { | ||
if (!currentText && !util_1.isPresent(this._previousValue)) { | ||
this.open = false; | ||
@@ -486,0 +479,0 @@ this.isFocused = false; |
@@ -45,5 +45,3 @@ import { ElementRef, EventEmitter, OnDestroy, AfterViewChecked, Renderer, NgZone } from '@angular/core'; | ||
/** | ||
* Sets or gets the `open` property of the DropDownList. | ||
* | ||
* > The `open` property determines whether the popup list of the DropDownList is visible or not. | ||
* Sets or gets the `open` property of the DropDownList. The `open` property determines whether the popup list of the DropDownList is visible or not. | ||
*/ | ||
@@ -58,4 +56,3 @@ open: boolean; | ||
/** | ||
* Sets the value of the DropDownList. It could be either of the *primivite* (string numbers) | ||
* or of the *complex* (objects) type. Use the `valuePrimitive` option to define the type. | ||
* Sets the value of the DropDownList. It could be either of the primitive (string, numbers) or of the complex (objects) type. Use the `valuePrimitive` option to define the type. | ||
* | ||
@@ -66,16 +63,13 @@ * > Selected values that are not present in the source are ignored. | ||
/** | ||
* Sets the data item field that represents the item text. | ||
* | ||
* If the data contains only primitive values, do not define it. | ||
* Sets the data item field that represents the item text. If the data contains only primitive values, do not define it. | ||
*/ | ||
textField: string; | ||
/** | ||
* Sets the data item field that represents the item value. | ||
* | ||
* If the data contains only primitive values, do not define it. | ||
* Sets the data item field that represents the item value. If the data contains only primitive values, do not define it. | ||
*/ | ||
valueField: string; | ||
/** | ||
* Configures the popup of the DropDownList. The available options of the `IPopupSettings` are: | ||
* Configures the popup of the DropDownList. | ||
* | ||
* The available options are: | ||
* - `width: Number`—Sets the width of the popup container. By default, the width of the host element is used. | ||
@@ -98,14 +92,13 @@ * - `height: Number`—Sets the height of the popup container. By default, the height is 200px. | ||
/** | ||
* Enables a case-insensitive search. Use this option when `filtration` is disabled. | ||
* Enables a case-insensitive search. When `filtration` is disabled, use this option. | ||
*/ | ||
ignoreCase: boolean; | ||
/** | ||
* Sets the delay before an item search is performed. Use this option when `filtration` is disabled. | ||
* Sets the delay before an item search is performed. When `filtration` is disabled, use this option. | ||
*/ | ||
delay: number; | ||
/** | ||
* Specifies the type of the selected value. If set to `true`, the selected value has to be of a *primitive* value. | ||
* Specifies the type of the selected value. If set to `true`, the selected value has to be of a primitive value. | ||
* | ||
* For more details, refer to the section on | ||
* the [`valuePrimitive`]({% slug overview_ddl_kendouiforangular %}#toc-specify-the-value-type) property. | ||
* For more details, refer to the section on the [`valuePrimitive`]({% slug overview_ddl_kendouiforangular %}#toc-specify-the-value-type) property. | ||
*/ | ||
@@ -124,4 +117,3 @@ valuePrimitive: boolean; | ||
/** | ||
* This event is triggered when the user types in the filter input. You can filter the source | ||
* based on the passed filtration value. | ||
* This event is triggered when the user types in the filter input. You can filter the source based on the passed filtration value. | ||
* | ||
@@ -134,4 +126,3 @@ * For more details, refer to the section on the [`filterChange`]({% slug overview_ddl_kendouiforangular %}#toc-on-filter-change) event. | ||
* | ||
* For more details, refer to the section on | ||
* the [`selectionChange`]({% slug overview_ddl_kendouiforangular %}#toc-on-change-of-item-selection) event. | ||
* For more details, refer to the section on the [`selectionChange`]({% slug overview_ddl_kendouiforangular %}#toc-on-change-of-item-selection) event. | ||
*/ | ||
@@ -138,0 +129,0 @@ selectionChange: EventEmitter<any>; |
@@ -60,4 +60,5 @@ /* tslint:disable:max-line-length */ | ||
/** | ||
* Configures the popup of the DropDownList. The available options of the `IPopupSettings` are: | ||
* Configures the popup of the DropDownList. | ||
* | ||
* The available options are: | ||
* - `width: Number`—Sets the width of the popup container. By default, the width of the host element is used. | ||
@@ -76,7 +77,7 @@ * - `height: Number`—Sets the height of the popup container. By default, the height is 200px. | ||
/** | ||
* Enables a case-insensitive search. Use this option when `filtration` is disabled. | ||
* Enables a case-insensitive search. When `filtration` is disabled, use this option. | ||
*/ | ||
this.ignoreCase = true; | ||
/** | ||
* Sets the delay before an item search is performed. Use this option when `filtration` is disabled. | ||
* Sets the delay before an item search is performed. When `filtration` is disabled, use this option. | ||
*/ | ||
@@ -95,4 +96,3 @@ this.delay = 500; | ||
/** | ||
* This event is triggered when the user types in the filter input. You can filter the source | ||
* based on the passed filtration value. | ||
* This event is triggered when the user types in the filter input. You can filter the source based on the passed filtration value. | ||
* | ||
@@ -105,4 +105,3 @@ * For more details, refer to the section on the [`filterChange`]({% slug overview_ddl_kendouiforangular %}#toc-on-filter-change) event. | ||
* | ||
* For more details, refer to the section on | ||
* the [`selectionChange`]({% slug overview_ddl_kendouiforangular %}#toc-on-change-of-item-selection) event. | ||
* For more details, refer to the section on the [`selectionChange`]({% slug overview_ddl_kendouiforangular %}#toc-on-change-of-item-selection) event. | ||
*/ | ||
@@ -133,5 +132,3 @@ this.selectionChange = new core_1.EventEmitter(); | ||
/** | ||
* Sets or gets the `open` property of the DropDownList. | ||
* | ||
* > The `open` property determines whether the popup list of the DropDownList is visible or not. | ||
* Sets or gets the `open` property of the DropDownList. The `open` property determines whether the popup list of the DropDownList is visible or not. | ||
*/ | ||
@@ -170,4 +167,3 @@ set: function (open) { | ||
/** | ||
* Sets the value of the DropDownList. It could be either of the *primivite* (string numbers) | ||
* or of the *complex* (objects) type. Use the `valuePrimitive` option to define the type. | ||
* Sets the value of the DropDownList. It could be either of the primitive (string, numbers) or of the complex (objects) type. Use the `valuePrimitive` option to define the type. | ||
* | ||
@@ -559,4 +555,9 @@ * > Selected values that are not present in the source are ignored. | ||
if (!this.data.length) { | ||
valueCandidate = value; | ||
textCandidate = kendo_dropdowns_common_1.DropDownsUtil.getter(value, this.textField); | ||
if (util_1.isPresent(value)) { | ||
valueCandidate = value; | ||
} | ||
else { | ||
valueCandidate = this.valuePrimitive ? kendo_dropdowns_common_1.DropDownsUtil.getter(this.defaultItem, this.valueField) : this.defaultItem; | ||
} | ||
textCandidate = kendo_dropdowns_common_1.DropDownsUtil.getter(util_1.isPresent(value) ? value : this.defaultItem, this.textField); | ||
} | ||
@@ -563,0 +564,0 @@ else { |
{ | ||
"name": "@progress/kendo-angular-dropdowns", | ||
"description": "Dropdowns Package for Angular 2", | ||
"version": "0.20.2", | ||
"version": "0.20.3", | ||
"publishConfig": { | ||
@@ -6,0 +6,0 @@ "registry": "https://registry.npm.telerik.com" |
Sorry, the diff of this file is too big to display
423059
6666