@syncfusion/ej2-inputs
Advanced tools
Comparing version 17.1.32-beta to 17.1.38
@@ -5,2 +5,22 @@ # Changelog | ||
### Form Validator | ||
#### Bug Fixes | ||
- Resolved issue with same validation message displays for all fields when provide validation messages using data attribute. | ||
### Uploader | ||
#### Bug Fixes | ||
- File name ellipsis issue in `edge` browser has been fixed. | ||
### TextBox | ||
#### Bug Fixes | ||
- When textbox contains value initially, no more change event will trigger while focus followed by focus out. | ||
## 17.1.32-beta (2019-03-13) | ||
### MaskedTextBox | ||
@@ -7,0 +27,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 17.1.32-beta | ||
* version : 17.1.38 | ||
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
@@ -1,4 +0,9 @@ | ||
export * from './maskedtextboxHelper'; | ||
export * from './numerictextboxHelper'; | ||
export * from './textboxHelper'; | ||
export * from './uploaderHelper'; | ||
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./maskedtextboxHelper")); | ||
__export(require("./numerictextboxHelper")); | ||
__export(require("./textboxHelper")); | ||
__export(require("./uploaderHelper")); |
@@ -1,3 +0,5 @@ | ||
import { TestHelper } from '@syncfusion/ej2-base/helpers/e2e'; | ||
export class maskedtextboxHelper extends TestHelper { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const e2e_1 = require("@syncfusion/ej2-base/helpers/e2e"); | ||
class maskedtextboxHelper extends e2e_1.TestHelper { | ||
constructor(id, wrapperFn) { | ||
@@ -39,1 +41,2 @@ super(); | ||
} | ||
exports.maskedtextboxHelper = maskedtextboxHelper; |
@@ -1,3 +0,5 @@ | ||
import { TestHelper } from '@syncfusion/ej2-base/helpers/e2e'; | ||
export class numerictextboxHelper extends TestHelper { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const e2e_1 = require("@syncfusion/ej2-base/helpers/e2e"); | ||
class numerictextboxHelper extends e2e_1.TestHelper { | ||
constructor(id, wrapperFn) { | ||
@@ -36,1 +38,2 @@ super(); | ||
} | ||
exports.numerictextboxHelper = numerictextboxHelper; |
@@ -1,3 +0,5 @@ | ||
import { TestHelper } from '@syncfusion/ej2-base/helpers/e2e'; | ||
export class textboxHelper extends TestHelper { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const e2e_1 = require("@syncfusion/ej2-base/helpers/e2e"); | ||
class textboxHelper extends e2e_1.TestHelper { | ||
constructor(id, wrapperFn) { | ||
@@ -36,1 +38,2 @@ super(); | ||
} | ||
exports.textboxHelper = textboxHelper; |
@@ -1,3 +0,5 @@ | ||
import { TestHelper } from '@syncfusion/ej2-base/helpers/e2e'; | ||
export class uploaderHelper extends TestHelper { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const e2e_1 = require("@syncfusion/ej2-base/helpers/e2e"); | ||
class uploaderHelper extends e2e_1.TestHelper { | ||
constructor(id, wrapperFn) { | ||
@@ -89,1 +91,2 @@ super(); | ||
} | ||
exports.uploaderHelper = uploaderHelper; |
{ | ||
"name": "@syncfusion/ej2-inputs", | ||
"version": "17.1.32-beta", | ||
"version": "17.1.38", | ||
"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.", | ||
@@ -11,6 +11,6 @@ "author": "Syncfusion Inc.", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~17.1.32-beta", | ||
"@syncfusion/ej2-buttons": "~17.1.32-beta", | ||
"@syncfusion/ej2-popups": "~17.1.32-beta", | ||
"@syncfusion/ej2-splitbuttons": "~17.1.32-beta" | ||
"@syncfusion/ej2-base": "~17.1.38", | ||
"@syncfusion/ej2-buttons": "~17.1.38", | ||
"@syncfusion/ej2-popups": "~17.1.38", | ||
"@syncfusion/ej2-splitbuttons": "~17.1.38" | ||
}, | ||
@@ -17,0 +17,0 @@ "devDependencies": {}, |
@@ -370,2 +370,3 @@ var __extends = (this && this.__extends) || (function () { | ||
if (this.rules[input.name] && ruleName !== 'validateHidden' && ruleName !== 'hidden') { | ||
this.getInputElement(input.name); | ||
customMessage = this.getErrorMessage(this.rules[input.name][ruleName], ruleName); | ||
@@ -576,4 +577,4 @@ } | ||
FormValidator.prototype.getErrorMessage = function (ruleValue, rule) { | ||
var message = this.element[0].getAttribute('data-' + rule + '-message') ? | ||
this.element[0].getAttribute('data-' + rule + '-message') : | ||
var message = this.inputElement.getAttribute('data-' + rule + '-message') ? | ||
this.inputElement.getAttribute('data-' + rule + '-message') : | ||
(ruleValue instanceof Array && typeof ruleValue[1] === 'string') ? ruleValue[1] : | ||
@@ -580,0 +581,0 @@ (Object.keys(this.localyMessage).length !== 0) ? this.localyMessage[rule] : this.defaultMessages[rule]; |
@@ -85,3 +85,3 @@ import { Component, Event, Property, EmitType, NotifyPropertyChanges, INotifyPropertyChanged, BaseEventArgs } from '@syncfusion/ej2-base';import { isNullOrUndefined, formatUnit, getValue, setValue, attributes, addClass, detach, createElement } from '@syncfusion/ej2-base';import { removeClass , Browser, closest} from '@syncfusion/ej2-base';import { Input, InputObject, FloatLabelType } from '../../input/input';import { regularExpressions, createMask, applyMask, wireEvents, unwireEvents, unstrippedValue, strippedValue } from '../base/index';import { setMaskValue, MaskUndo, setElementValue, bindClearEvent } from '../base/index';import { maskInputBlurHandler } from '../base/mask-base'; | ||
* [prompt-character](../maskedtextbox/mask-configuration#prompt-character/). | ||
* @default _ | ||
* @default '_' | ||
*/ | ||
@@ -88,0 +88,0 @@ promptChar?: string; |
@@ -104,3 +104,3 @@ import { Component, EmitType, INotifyPropertyChanged, BaseEventArgs } from '@syncfusion/ej2-base'; | ||
* [prompt-character](../maskedtextbox/mask-configuration#prompt-character/). | ||
* @default _ | ||
* @default '_' | ||
*/ | ||
@@ -107,0 +107,0 @@ promptChar: string; |
@@ -135,3 +135,3 @@ var __extends = (this && this.__extends) || (function () { | ||
case 'disabled': | ||
var enabled = this.element.getAttribute(prop) === 'disabled' || | ||
var enabled = this.element.getAttribute(prop) === 'disabled' || this.element.getAttribute(prop) === '' || | ||
this.element.getAttribute(prop) === 'true' ? false : true; | ||
@@ -141,3 +141,3 @@ this.setProperties({ enabled: enabled }, true); | ||
case 'readonly': | ||
var readonly = this.element.getAttribute(prop) === 'readonly' | ||
var readonly = this.element.getAttribute(prop) === 'readonly' || this.element.getAttribute(prop) === '' | ||
|| this.element.getAttribute(prop) === 'true' ? true : false; | ||
@@ -144,0 +144,0 @@ this.setProperties({ readonly: readonly }, true); |
@@ -1,2 +0,2 @@ | ||
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 { Component, Property, Event, EmitType, EventHandler, L10n, setValue, getValue, isNullOrUndefined } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, detach, Internationalization, getUniqueID, closest } 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'; |
@@ -51,2 +51,3 @@ import { Component, EmitType } from '@syncfusion/ej2-base'; | ||
private globalize; | ||
private preventChange; | ||
private isAngular; | ||
@@ -53,0 +54,0 @@ private isHiddenInput; |
@@ -21,3 +21,3 @@ var __extends = (this && this.__extends) || (function () { | ||
import { Component, Property, Event, EventHandler, L10n, setValue, getValue, isNullOrUndefined } from '@syncfusion/ej2-base'; | ||
import { NotifyPropertyChanges, detach, Internationalization, getUniqueID } from '@syncfusion/ej2-base'; | ||
import { NotifyPropertyChanges, detach, Internationalization, getUniqueID, closest } from '@syncfusion/ej2-base'; | ||
import { Input } from '../input/input'; | ||
@@ -75,3 +75,11 @@ var ROOT = 'e-textbox'; | ||
} | ||
this.raiseChangeEvent(); | ||
/* istanbul ignore next */ | ||
if (this.isAngular && this.preventChange === true) { | ||
this.previousValue = this.value; | ||
this.preventChange = false; | ||
} | ||
else if (isNullOrUndefined(this.isAngular) || !this.isAngular | ||
|| (this.isAngular && !this.preventChange) || (this.isAngular && isNullOrUndefined(this.preventChange))) { | ||
this.raiseChangeEvent(); | ||
} | ||
break; | ||
@@ -123,3 +131,3 @@ case 'readonly': | ||
this.cloneElement = this.element.cloneNode(true); | ||
this.formElement = this.element.closest('form'); | ||
this.formElement = closest(this.element, 'form'); | ||
if (!isNullOrUndefined(this.formElement)) { | ||
@@ -167,2 +175,10 @@ this.isForm = true; | ||
this.element.removeAttribute('name'); | ||
var attribute = ['required', 'minlength', 'maxlength']; | ||
for (var i = 0; i < attribute.length; i++) { | ||
if (this.element.hasAttribute(attribute[i])) { | ||
var attr = this.element.getAttribute(attribute[i]); | ||
this.textarea.setAttribute(attribute[i], attr); | ||
this.element.removeAttribute(attribute[i]); | ||
} | ||
} | ||
} | ||
@@ -219,2 +235,3 @@ }; | ||
} | ||
this.previousValue = this.value; | ||
}; | ||
@@ -282,2 +299,4 @@ TextBox.prototype.setInitialValue = function () { | ||
TextBox.prototype.inputHandler = function (args) { | ||
// tslint:disable-next-line | ||
var textboxObj = this; | ||
var eventArgs = { | ||
@@ -289,2 +308,7 @@ event: args, | ||
}; | ||
/* istanbul ignore next */ | ||
if (this.isAngular) { | ||
textboxObj.localChange({ value: this.respectiveElement.value }); | ||
this.preventChange = true; | ||
} | ||
this.trigger('input', eventArgs); | ||
@@ -307,2 +331,3 @@ args.stopPropagation(); | ||
}; | ||
this.preventChange = false; | ||
this.trigger('change', eventArgs); | ||
@@ -309,0 +334,0 @@ this.previousValue = this.value; |
@@ -1,2 +0,2 @@ | ||
import { Component, Property, Event, EmitType, EventHandler, classList, L10n, compile, isNullOrUndefined } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, detach, append, Animation } from '@syncfusion/ej2-base';import { addClass, removeClass, KeyboardEvents, KeyboardEventArgs, setValue, getValue, ChildProperty } from '@syncfusion/ej2-base';import { Collection, Complex, Browser, Ajax, BeforeSendEventArgs, getUniqueID } from '@syncfusion/ej2-base';import { createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups'; | ||
import { Component, Property, Event, EmitType, EventHandler, classList, L10n, compile, isNullOrUndefined } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, detach, append, Animation } from '@syncfusion/ej2-base';import { addClass, removeClass, KeyboardEvents, KeyboardEventArgs, setValue, getValue, ChildProperty } from '@syncfusion/ej2-base';import { Collection, Complex, Browser, Ajax, BeforeSendEventArgs, getUniqueID, closest } from '@syncfusion/ej2-base';import { createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups'; | ||
import {ActionCompleteEventArgs,RenderingEventArgs,FileListRenderingEventArgs,SelectedEventArgs,UploadingEventArgs,RemovingEventArgs,ClearingEventArgs,CancelEventArgs,PauseResumeEventArgs} from "./uploader"; | ||
@@ -3,0 +3,0 @@ import {ComponentModel} from '@syncfusion/ej2-base'; |
@@ -355,2 +355,3 @@ import { Component, EmitType } from '@syncfusion/ej2-base'; | ||
private selectedFiles; | ||
private browserName; | ||
/** | ||
@@ -776,2 +777,3 @@ * Configures the save and remove URL to perform the upload operations in the server asynchronously. | ||
private createFileList; | ||
private getSlicedName; | ||
private truncateName; | ||
@@ -778,0 +780,0 @@ private getFileType; |
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 too big to display
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
11308678
352
145942
2