@syncfusion/ej2-inputs
Advanced tools
Comparing version 16.3.25 to 16.3.27
@@ -9,2 +9,10 @@ # Changelog | ||
- The issue with updating `value` property on model binding has been fixed. | ||
## 16.3.25 (2018-10-15) | ||
### TextBox | ||
#### Bug Fixes | ||
- The issue with adding multiple classes in `cssClass` property has been fixed. | ||
@@ -11,0 +19,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 16.3.25 | ||
* version : 16.3.27 | ||
* Copyright Syncfusion Inc. 2001 - 2018. All rights reserved. | ||
@@ -11,13 +11,5 @@ * Use of this code is subject to the terms of our license. | ||
import * as _inputs from '@syncfusion/ej2-inputs'; | ||
import * as _base from '@syncfusion/ej2-base'; | ||
import * as _buttons from '@syncfusion/ej2-buttons'; | ||
import * as _popups from '@syncfusion/ej2-popups'; | ||
import * as _splitbuttons from '@syncfusion/ej2-splitbuttons'; | ||
export declare namespace ej { | ||
const inputs: typeof _inputs; | ||
const base: typeof _base; | ||
const buttons: typeof _buttons; | ||
const popups: typeof _popups; | ||
const splitbuttons: typeof _splitbuttons; | ||
} |
{ | ||
"name": "@syncfusion/ej2-inputs", | ||
"version": "16.3.25", | ||
"version": "16.3.27", | ||
"description": "A package of Essential JS 2 input components such as Textbox, Color-picker, Masked-textbox, Numeric-textbox, Slider, Upload, and Form-validator that is used to get input from the users.", | ||
@@ -5,0 +5,0 @@ "author": "Syncfusion Inc.", |
@@ -5,2 +5,6 @@ import { Base, EmitType } from '@syncfusion/ej2-base'; | ||
/** | ||
* global declarations | ||
*/ | ||
export declare let regex: any; | ||
/** | ||
* ErrorOption values | ||
@@ -7,0 +11,0 @@ * @private |
@@ -23,9 +23,12 @@ var __extends = (this && this.__extends) || (function () { | ||
*/ | ||
var VALIDATE_EMAIL = new RegExp('^[A-Za-z0-9._%+-]{1,}@[a-zA-Z0-9]{1,}([.]{1}[a-zA-Z]{2,5}' + | ||
'|[.]{1}[a-zA-Z]{2,4}[.]{1}[a-zA-Z]{2,4})$'); | ||
var VALIDATE_URL = new RegExp('^((ftp|http|https):\/\/)?www\.([A-z]{2,})\.([A-z]{2,})$'); | ||
var VALIDATE_DATE_ISO = new RegExp('^([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$'); | ||
var VALIDATE_DIGITS = new RegExp('^[0-9]*$'); | ||
var VALIDATE_PHONE = new RegExp('^[+]?[0-9]{9,13}$'); | ||
var VALIDATE_CREDITCARD = new RegExp('^\\d{13,16}$'); | ||
// tslint:disable-next-line:no-any | ||
export var regex = { | ||
EMAIL: new RegExp('^[A-Za-z0-9._%+-]{1,}@[A-Za-z0-9._%+-]{1,}([.]{1}[a-zA-Z0-9]{2,5}' + | ||
'|[.]{1}[a-zA-Z0-9]{2,4}[.]{1}[a-zA-Z0-9]{2,4})$'), | ||
URL: new RegExp('^((ftp|http|https):\/\/)?www\.([A-z]{2,})\.([A-z]{2,})$'), | ||
DATE_ISO: new RegExp('^([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$'), | ||
DIGITS: new RegExp('^[0-9]*$'), | ||
PHONE: new RegExp('^[+]?[0-9]{9,13}$'), | ||
CREDITCARD: new RegExp('^\\d{13,16}$') | ||
}; | ||
/** | ||
@@ -625,15 +628,15 @@ * ErrorOption values | ||
email: function (option) { | ||
return VALIDATE_EMAIL.test(option.value); | ||
return regex.EMAIL.test(option.value); | ||
}, | ||
url: function (option) { | ||
return VALIDATE_URL.test(option.value); | ||
return regex.URL.test(option.value); | ||
}, | ||
dateIso: function (option) { | ||
return VALIDATE_DATE_ISO.test(option.value); | ||
return regex.DATE_ISO.test(option.value); | ||
}, | ||
tel: function (option) { | ||
return VALIDATE_PHONE.test(option.value); | ||
return regex.PHONE.test(option.value); | ||
}, | ||
creditcard: function (option) { | ||
return VALIDATE_CREDITCARD.test(option.value); | ||
return regex.CREDITCARD.test(option.value); | ||
}, | ||
@@ -644,3 +647,3 @@ number: function (option) { | ||
digits: function (option) { | ||
return VALIDATE_DIGITS.test(option.value); | ||
return regex.DIGITS.test(option.value); | ||
}, | ||
@@ -647,0 +650,0 @@ maxLength: function (option) { |
@@ -1,6 +0,1 @@ | ||
import * as inputs from './index'; | ||
import * as base from '@syncfusion/ej2-base'; | ||
import * as buttons from '@syncfusion/ej2-buttons'; | ||
import * as popups from '@syncfusion/ej2-popups'; | ||
import * as splitbuttons from '@syncfusion/ej2-splitbuttons'; | ||
export { inputs, base, buttons, popups, splitbuttons }; | ||
export * from './index'; |
@@ -680,3 +680,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var focusEvent = document.createEvent('FocusEvent'); | ||
focusEvent.initEvent('focusout', true, true); | ||
focusEvent.initEvent('focusout', false, true); | ||
element.dispatchEvent(focusEvent); | ||
@@ -683,0 +683,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { Component, Property, Event, EmitType, EventHandler, L10n, setValue, getValue } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, detach, Internationalization, getUniqueID } from '@syncfusion/ej2-base';import { FloatLabelType, Input, InputObject } from '../input/input'; | ||
import { Component, Property, Event, EmitType, EventHandler, L10n, setValue, getValue, isNullOrUndefined } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, detach, Internationalization, getUniqueID } from '@syncfusion/ej2-base';import { FloatLabelType, Input, InputObject } from '../input/input'; | ||
import {ChangedEventArgs,FocusOutEventArgs,FocusInEventArgs,InputEventArgs} from "./textbox"; | ||
@@ -3,0 +3,0 @@ import {ComponentModel} from '@syncfusion/ej2-base'; |
@@ -17,3 +17,3 @@ var __extends = (this && this.__extends) || (function () { | ||
}; | ||
import { Component, Property, Event, EventHandler, L10n, setValue, getValue } from '@syncfusion/ej2-base'; | ||
import { Component, Property, Event, EventHandler, L10n, setValue, getValue, isNullOrUndefined } from '@syncfusion/ej2-base'; | ||
import { NotifyPropertyChanges, detach, Internationalization, getUniqueID } from '@syncfusion/ej2-base'; | ||
@@ -134,2 +134,5 @@ import { Input } from '../input/input'; | ||
} | ||
if (!this.element.hasAttribute('name')) { | ||
this.element.setAttribute('name', this.element.getAttribute('id')); | ||
} | ||
}; | ||
@@ -168,2 +171,8 @@ TextBox.prototype.checkAttributes = function (attrs) { | ||
this.wireEvents(); | ||
if (this.element.value !== '') { | ||
this.value = this.element.value; | ||
} | ||
if (!isNullOrUndefined(this.value)) { | ||
Input.setValue(this.value, this.element, this.floatLabelType, this.showClearButton); | ||
} | ||
}; | ||
@@ -170,0 +179,0 @@ TextBox.prototype.wireEvents = function () { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
205
7833448
81022