@progress/kendo-angular-inputs
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -27,4 +27,5 @@ import { ElementRef, EventEmitter, OnChanges, OnDestroy, Renderer } from '@angular/core'; | ||
* Specifies the number format used when the component is not focused. | ||
* If `null` or `undefined` is set the default format will be used. | ||
*/ | ||
format: string | NumberFormatOptions; | ||
format: string | NumberFormatOptions | null | undefined; | ||
/** | ||
@@ -103,2 +104,3 @@ * Specifies the greatest value that is valid. | ||
private numericRegex; | ||
private _format; | ||
readonly widgetClasses: boolean; | ||
@@ -105,0 +107,0 @@ constructor(intl: IntlService, renderer: Renderer, localizationService: LocalizationService, rtl: boolean); |
@@ -32,6 +32,2 @@ import { Component, EventEmitter, HostBinding, Inject, Input, Optional, Output, Renderer, ViewChild, forwardRef, isDevMode } from '@angular/core'; | ||
/** | ||
* Specifies the number format used when the component is not focused. | ||
*/ | ||
this.format = "n2"; | ||
/** | ||
* Specifies the number of decimals that the user can enter when the input is focused. | ||
@@ -91,2 +87,3 @@ */ | ||
this.maxValidateFn = noop; | ||
this._format = "n2"; | ||
//TODO: disable tslint and move those to the constructor level | ||
@@ -97,2 +94,17 @@ this.ngChange = function (_) { }; | ||
} | ||
Object.defineProperty(NumericTextBoxComponent.prototype, "format", { | ||
/** | ||
* Specifies the number format used when the component is not focused. | ||
* If `null` or `undefined` is set the default format will be used. | ||
*/ | ||
get: function () { | ||
var format = this._format; | ||
return format !== null && format !== undefined ? format : 'n2'; | ||
}, | ||
set: function (value) { | ||
this._format = value; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
Object.defineProperty(NumericTextBoxComponent.prototype, "widgetClasses", { | ||
@@ -99,0 +111,0 @@ get: function () { |
@@ -27,4 +27,5 @@ import { ElementRef, EventEmitter, OnChanges, OnDestroy, Renderer } from '@angular/core'; | ||
* Specifies the number format used when the component is not focused. | ||
* If `null` or `undefined` is set the default format will be used. | ||
*/ | ||
format: string | NumberFormatOptions; | ||
format: string | NumberFormatOptions | null | undefined; | ||
/** | ||
@@ -103,2 +104,3 @@ * Specifies the greatest value that is valid. | ||
private numericRegex; | ||
private _format; | ||
readonly widgetClasses: boolean; | ||
@@ -105,0 +107,0 @@ constructor(intl: IntlService, renderer: Renderer, localizationService: LocalizationService, rtl: boolean); |
@@ -34,6 +34,2 @@ "use strict"; | ||
/** | ||
* Specifies the number format used when the component is not focused. | ||
*/ | ||
this.format = "n2"; | ||
/** | ||
* Specifies the number of decimals that the user can enter when the input is focused. | ||
@@ -93,2 +89,3 @@ */ | ||
this.maxValidateFn = utils_1.noop; | ||
this._format = "n2"; | ||
//TODO: disable tslint and move those to the constructor level | ||
@@ -99,2 +96,17 @@ this.ngChange = function (_) { }; | ||
} | ||
Object.defineProperty(NumericTextBoxComponent.prototype, "format", { | ||
/** | ||
* Specifies the number format used when the component is not focused. | ||
* If `null` or `undefined` is set the default format will be used. | ||
*/ | ||
get: function () { | ||
var format = this._format; | ||
return format !== null && format !== undefined ? format : 'n2'; | ||
}, | ||
set: function (value) { | ||
this._format = value; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
Object.defineProperty(NumericTextBoxComponent.prototype, "widgetClasses", { | ||
@@ -101,0 +113,0 @@ get: function () { |
{ | ||
"name": "@progress/kendo-angular-inputs", | ||
"description": "Inputs Package for Angular", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"publishConfig": { | ||
@@ -6,0 +6,0 @@ "registry": "https://registry.npm.telerik.com" |
Sorry, the diff of this file is too big to display
562076
8386