Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@syncfusion/ej2-inputs

Package Overview
Dependencies
Maintainers
4
Versions
253
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-inputs - npm Package Compare versions

Comparing version 17.2.40 to 17.2.41

14

CHANGELOG.md

@@ -5,2 +5,16 @@ # Changelog

### NumericTextBox
#### Bug Fixes
- `#244336` - Now, the percentage textbox value never changed in read-only mode after `focusIn` and `focusOut`.
### Uploader
#### Bug Fixes
- `#F146285`, `244026` - Now, you can get the files in server-side when drag and drop the files in the synchronous upload.
## 17.2.40 (2019-08-06)
### MaskedTextBox

@@ -7,0 +21,0 @@

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 17.2.40
* version : 17.2.41
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

{
"_from": "@syncfusion/ej2-inputs@*",
"_id": "@syncfusion/ej2-inputs@17.2.39",
"_id": "@syncfusion/ej2-inputs@17.2.40",
"_inBundle": false,
"_integrity": "sha512-ic1EKqXzNpRkWPt91j6pWMsNE6yDsmv19hzJVEwlsCbhFBt7t24icy7kUP9Y3XWYoP78C/L8XwyKHXMD/SBq0g==",
"_integrity": "sha512-l5vX+h3J9VKZEP36j/SeYCR8WRq6s5etw5qpV7+OytTgfT8jXhcTrLJGg6XupJbjjQ48X6o39y50o8Cvkyv0sA==",
"_location": "/@syncfusion/ej2-inputs",

@@ -38,4 +38,4 @@ "_phantomChildren": {},

],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-inputs/-/ej2-inputs-17.2.39.tgz",
"_shasum": "ac5111dca9d22cbfd8aacc03b3f8cba972c3adeb",
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-inputs/-/ej2-inputs-17.2.40.tgz",
"_shasum": "6f48aba2d3c3ab6e1111073d4e58f8be8561e486",
"_spec": "@syncfusion/ej2-inputs@*",

@@ -118,4 +118,4 @@ "_where": "/jenkins/workspace/ation_hotfix_16.4.0.42_Vol4-CJVRBFC7Z7RSISPRJNEMNQSRMCB6XTG67IJD6R2DVNXFIKQEITTQ/packages/included",

},
"version": "17.2.40",
"version": "17.2.41",
"sideEffects": false
}

@@ -101,3 +101,3 @@ var __extends = (this && this.__extends) || (function () {

this.updateHTMLAttrToElement();
this.checkHtmlAttributes(true);
this.checkHtmlAttributes(false);
if (this.formElement) {

@@ -211,3 +211,3 @@ this.initInputValue = this.value;

MaskedTextBox.prototype.checkHtmlAttributes = function (isDynamic) {
var attributes = ['placeholder', 'disabled', 'value', 'readonly'];
var attributes = isDynamic ? Object.keys(this.htmlAttributes) : ['placeholder', 'disabled', 'value', 'readonly'];
for (var _i = 0, attributes_1 = attributes; _i < attributes_1.length; _i++) {

@@ -219,4 +219,4 @@ var key = attributes_1[_i];

// tslint:disable-next-line
if ((isNullOrUndefined(this.maskOptions) || (this.maskOptions['placeholder'] === undefined)) || !isDynamic) {
this.setProperties({ placeholder: this.element.placeholder }, isDynamic);
if ((isNullOrUndefined(this.maskOptions) || (this.maskOptions['placeholder'] === undefined)) || isDynamic) {
this.setProperties({ placeholder: this.element.placeholder }, !isDynamic);
}

@@ -226,6 +226,6 @@ break;

// tslint:disable-next-line
if ((isNullOrUndefined(this.maskOptions) || (this.maskOptions['enabled'] === undefined)) || !isDynamic) {
if ((isNullOrUndefined(this.maskOptions) || (this.maskOptions['enabled'] === undefined)) || isDynamic) {
var enabled = this.element.getAttribute(key) === 'disabled' || this.element.getAttribute(key) === '' ||
this.element.getAttribute(key) === 'true' ? false : true;
this.setProperties({ enabled: enabled }, isDynamic);
this.setProperties({ enabled: enabled }, !isDynamic);
}

@@ -235,4 +235,4 @@ break;

// tslint:disable-next-line
if ((isNullOrUndefined(this.maskOptions) || (this.maskOptions['value'] === undefined)) || !isDynamic) {
this.setProperties({ value: this.element.value }, isDynamic);
if ((isNullOrUndefined(this.maskOptions) || (this.maskOptions['value'] === undefined)) || isDynamic) {
this.setProperties({ value: this.element.value }, !isDynamic);
}

@@ -242,6 +242,6 @@ break;

// tslint:disable-next-line
if ((isNullOrUndefined(this.maskOptions) || (this.maskOptions['readonly'] === undefined)) || !isDynamic) {
if ((isNullOrUndefined(this.maskOptions) || (this.maskOptions['readonly'] === undefined)) || isDynamic) {
var readonly = this.element.getAttribute(key) === 'readonly' || this.element.getAttribute(key) === ''
|| this.element.getAttribute(key) === 'true' ? true : false;
this.setProperties({ readonly: readonly }, isDynamic);
this.setProperties({ readonly: readonly }, !isDynamic);
}

@@ -316,3 +316,3 @@ break;

this.updateHTMLAttrToWrapper();
this.checkHtmlAttributes(false);
this.checkHtmlAttributes(true);
break;

@@ -319,0 +319,0 @@ case 'mask':

@@ -88,4 +88,7 @@ var __extends = (this && this.__extends) || (function () {

attributes(this.element, { 'role': 'spinbutton', 'tabindex': '0', 'autocomplete': 'off', 'aria-live': 'assertive' });
var localeText = { incrementTitle: 'Increment value', decrementTitle: 'Decrement value', placeholder: '' };
var localeText = { incrementTitle: 'Increment value', decrementTitle: 'Decrement value', placeholder: this.placeholder };
this.l10n = new L10n('numerictextbox', localeText, this.locale);
if (this.l10n.getConstant('placeholder') !== '') {
this.setProperties({ placeholder: this.placeholder || this.l10n.getConstant('placeholder') }, true);
}
this.isValidState = true;

@@ -98,3 +101,3 @@ this.inputStyle = null;

this.updateHTMLAttrToElement();
this.checkAttributes(true);
this.checkAttributes(false);
this.prevValue = this.value;

@@ -139,3 +142,4 @@ if (this.formEle) {

NumericTextBox.prototype.checkAttributes = function (isDynamic) {
var attributes = ['value', 'min', 'max', 'step', 'disabled', 'readonly', 'style', 'name', 'placeholder'];
var attributes = isDynamic ? Object.keys(this.htmlAttributes) :
['value', 'min', 'max', 'step', 'disabled', 'readonly', 'style', 'name', 'placeholder'];
for (var _i = 0, attributes_1 = attributes; _i < attributes_1.length; _i++) {

@@ -147,6 +151,6 @@ var prop = attributes_1[_i];

// tslint:disable-next-line
if ((isNullOrUndefined(this.numericOptions) || (this.numericOptions['enabled'] === undefined)) || !isDynamic) {
if ((isNullOrUndefined(this.numericOptions) || (this.numericOptions['enabled'] === undefined)) || isDynamic) {
var enabled = this.element.getAttribute(prop) === 'disabled' || this.element.getAttribute(prop) === ''
|| this.element.getAttribute(prop) === 'true' ? false : true;
this.setProperties({ enabled: enabled }, isDynamic);
this.setProperties({ enabled: enabled }, !isDynamic);
}

@@ -156,6 +160,6 @@ break;

// tslint:disable-next-line
if ((isNullOrUndefined(this.numericOptions) || (this.numericOptions['readonly'] === undefined)) || !isDynamic) {
if ((isNullOrUndefined(this.numericOptions) || (this.numericOptions['readonly'] === undefined)) || isDynamic) {
var readonly = this.element.getAttribute(prop) === 'readonly' || this.element.getAttribute(prop) === ''
|| this.element.getAttribute(prop) === 'true' ? true : false;
this.setProperties({ readonly: readonly }, isDynamic);
this.setProperties({ readonly: readonly }, !isDynamic);
}

@@ -165,4 +169,4 @@ break;

// tslint:disable-next-line
if ((isNullOrUndefined(this.numericOptions) || (this.numericOptions['placeholder'] === undefined)) || !isDynamic) {
this.setProperties({ placeholder: this.element.placeholder }, isDynamic);
if ((isNullOrUndefined(this.numericOptions) || (this.numericOptions['placeholder'] === undefined)) || isDynamic) {
this.setProperties({ placeholder: this.element.placeholder }, !isDynamic);
}

@@ -172,5 +176,5 @@ break;

// tslint:disable-next-line
if ((isNullOrUndefined(this.numericOptions) || (this.numericOptions['value'] === undefined)) || !isDynamic) {
if ((isNullOrUndefined(this.numericOptions) || (this.numericOptions['value'] === undefined)) || isDynamic) {
var setNumber = this.instance.getNumberParser({ format: 'n' })(this.element.getAttribute(prop));
this.setProperties(setValue(prop, setNumber, {}), isDynamic);
this.setProperties(setValue(prop, setNumber, {}), !isDynamic);
}

@@ -180,6 +184,6 @@ break;

// tslint:disable-next-line
if ((isNullOrUndefined(this.numericOptions) || (this.numericOptions['min'] === undefined)) || !isDynamic) {
if ((isNullOrUndefined(this.numericOptions) || (this.numericOptions['min'] === undefined)) || isDynamic) {
var minValue = this.instance.getNumberParser({ format: 'n' })(this.element.getAttribute(prop));
if (minValue !== null && !isNaN(minValue)) {
this.setProperties(setValue(prop, minValue, {}), isDynamic);
this.setProperties(setValue(prop, minValue, {}), !isDynamic);
}

@@ -190,6 +194,6 @@ }

// tslint:disable-next-line
if ((isNullOrUndefined(this.numericOptions) || (this.numericOptions['max'] === undefined)) || !isDynamic) {
if ((isNullOrUndefined(this.numericOptions) || (this.numericOptions['max'] === undefined)) || isDynamic) {
var maxValue = this.instance.getNumberParser({ format: 'n' })(this.element.getAttribute(prop));
if (maxValue !== null && !isNaN(maxValue)) {
this.setProperties(setValue(prop, maxValue, {}), isDynamic);
this.setProperties(setValue(prop, maxValue, {}), !isDynamic);
}

@@ -200,6 +204,6 @@ }

// tslint:disable-next-line
if ((isNullOrUndefined(this.numericOptions) || (this.numericOptions['step'] === undefined)) || !isDynamic) {
if ((isNullOrUndefined(this.numericOptions) || (this.numericOptions['step'] === undefined)) || isDynamic) {
var stepValue = this.instance.getNumberParser({ format: 'n' })(this.element.getAttribute(prop));
if (stepValue !== null && !isNaN(stepValue)) {
this.setProperties(setValue(prop, stepValue, {}), isDynamic);
this.setProperties(setValue(prop, stepValue, {}), !isDynamic);
}

@@ -466,2 +470,5 @@ }

var _this = this;
if (!this.enabled || this.readonly) {
return;
}
var beforeUpdate = this.element.value;

@@ -551,2 +558,5 @@ setTimeout(function () {

NumericTextBox.prototype.keyUpHandler = function (event) {
if (!this.enabled || this.readonly) {
return;
}
var iOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);

@@ -569,2 +579,5 @@ if (!iOS && Browser.isDevice) {

NumericTextBox.prototype.inputHandler = function (event) {
if (!this.enabled || this.readonly) {
return;
}
var iOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);

@@ -723,2 +736,5 @@ var fireFox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;

NumericTextBox.prototype.keyPressHandler = function (event) {
if (!this.enabled || this.readonly) {
return true;
}
if (!Browser.isDevice && Browser.info.version === '11.0' && event.keyCode === 13) {

@@ -809,2 +825,5 @@ var parsedInput = this.instance.getNumberParser({ format: 'n' })(this.element.value);

this.trigger('blur', this.blurEventArgs);
if (!this.enabled || this.readonly) {
return;
}
if (this.isPrevFocused) {

@@ -1031,3 +1050,3 @@ event.preventDefault();

this.updateHTMLAttrToWrapper();
this.checkAttributes(false);
this.checkAttributes(true);
break;

@@ -1034,0 +1053,0 @@ case 'placeholder':

@@ -94,3 +94,3 @@ var __extends = (this && this.__extends) || (function () {

var attributes = this.element.attributes;
this.checkAttributes(attributes, false);
this.checkAttributes(true);
break;

@@ -168,4 +168,3 @@ case 'readonly':

this.updateHTMLAttrToElement();
var attributes = this.element.attributes;
this.checkAttributes(attributes, true);
this.checkAttributes(false);
if (this.element.tagName !== 'TEXTAREA') {

@@ -206,40 +205,43 @@ this.element.setAttribute('type', this.type);

};
TextBox.prototype.checkAttributes = function (attrs, isDynamic) {
for (var i = 0; i < attrs.length; i++) {
var key = attrs[i].nodeName;
switch (key) {
case 'disabled':
// tslint:disable-next-line
if ((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['enabled'] === undefined)) || !isDynamic) {
var enabled = this.element.getAttribute(key) === 'disabled' || this.element.getAttribute(key) === '' ||
this.element.getAttribute(key) === 'true' ? false : true;
this.setProperties({ enabled: enabled }, isDynamic);
}
break;
case 'readonly':
// tslint:disable-next-line
if ((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['readonly'] === undefined)) || !isDynamic) {
var readonly = this.element.getAttribute(key) === 'readonly' || this.element.getAttribute(key) === ''
|| this.element.getAttribute(key) === 'true' ? true : false;
this.setProperties({ readonly: readonly }, isDynamic);
}
break;
case 'placeholder':
// tslint:disable-next-line
if ((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['placeholder'] === undefined)) || !isDynamic) {
this.setProperties({ placeholder: attrs[i].nodeValue }, isDynamic);
}
break;
case 'value':
// tslint:disable-next-line
if ((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['value'] === undefined)) || !isDynamic) {
this.setProperties({ value: attrs[i].nodeValue }, isDynamic);
}
break;
case 'type':
// tslint:disable-next-line
if ((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['type'] === undefined)) || !isDynamic) {
this.setProperties({ type: attrs[i].nodeValue }, isDynamic);
}
break;
TextBox.prototype.checkAttributes = function (isDynamic) {
var attrs = isDynamic ? Object.keys(this.htmlAttributes) : ['placeholder', 'disabled', 'value', 'readonly', 'type'];
for (var _i = 0, attrs_1 = attrs; _i < attrs_1.length; _i++) {
var key = attrs_1[_i];
if (!isNullOrUndefined(this.element.getAttribute(key))) {
switch (key) {
case 'disabled':
// tslint:disable-next-line
if ((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['enabled'] === undefined)) || isDynamic) {
var enabled = this.element.getAttribute(key) === 'disabled' || this.element.getAttribute(key) === '' ||
this.element.getAttribute(key) === 'true' ? false : true;
this.setProperties({ enabled: enabled }, !isDynamic);
}
break;
case 'readonly':
// tslint:disable-next-line
if ((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['readonly'] === undefined)) || isDynamic) {
var readonly = this.element.getAttribute(key) === 'readonly' || this.element.getAttribute(key) === ''
|| this.element.getAttribute(key) === 'true' ? true : false;
this.setProperties({ readonly: readonly }, !isDynamic);
}
break;
case 'placeholder':
// tslint:disable-next-line
if ((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['placeholder'] === undefined)) || isDynamic) {
this.setProperties({ placeholder: this.element.placeholder }, !isDynamic);
}
break;
case 'value':
// tslint:disable-next-line
if ((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['value'] === undefined)) || isDynamic) {
this.setProperties({ value: this.element.value }, !isDynamic);
}
break;
case 'type':
// tslint:disable-next-line
if ((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['type'] === undefined)) || isDynamic) {
this.setProperties({ type: this.element.type }, !isDynamic);
}
break;
}
}

@@ -246,0 +248,0 @@ }

@@ -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, closest } from '@syncfusion/ej2-base';import { createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';import { updateBlazorTemplate, resetBlazorTemplate } from '@syncfusion/ej2-base';
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 { updateBlazorTemplate, resetBlazorTemplate, isBlazor } from '@syncfusion/ej2-base';
import {ActionCompleteEventArgs,RenderingEventArgs,FileListRenderingEventArgs,SelectedEventArgs,UploadingEventArgs,RemovingEventArgs,ClearingEventArgs,CancelEventArgs,PauseResumeEventArgs} from "./uploader";

@@ -3,0 +3,0 @@ import {ComponentModel} from '@syncfusion/ej2-base';

@@ -84,2 +84,3 @@ import { Component, EmitType } from '@syncfusion/ej2-base';

* Returns the details about upload file.
* @blazorType string
*/

@@ -160,2 +161,15 @@ rawFile: string | Blob;

isCanceled?: boolean;
/**
* Set the current request header to the XMLHttpRequest instance.
* @blazorType object
*/
currentRequest?: {
[key: string]: string;
}[];
/**
* Defines the additional data in key and value pair format that will be submitted to the upload action.
*/
customFormData: {
[key: string]: Object;
}[];
}

@@ -209,2 +223,3 @@ export interface RemovingEventArgs {

* Defines the additional data in key and value pair format that will be submitted to the upload action.
* @deprecated
*/

@@ -228,2 +243,3 @@ customFormData: {

* Returns the XMLHttpRequest instance that is associated with upload action.
* @deprecated
*/

@@ -396,2 +412,3 @@ currentRequest?: XMLHttpRequest;

private fileList;
private sortFilesList;
private actionButtons;

@@ -406,2 +423,5 @@ private uploadButton;

private uploadedFilesData;
private base64String;
private currentRequestHeader;
private customFormDatas;
private dropZoneElement;

@@ -862,2 +882,3 @@ private currentStatus;

private updateFormData;
private updateCustomheader;
private removeCompleted;

@@ -869,2 +890,3 @@ private removeFailed;

private onSelectFiles;
private getBase64;
private renderSelectedFiles;

@@ -944,3 +966,3 @@ private allowUpload;

*/
sortFileList(filesData: FileList): File[];
sortFileList(filesData?: FileList): File[];
/**

@@ -959,3 +981,3 @@ * Removes the component from the DOM and detaches all its related event handlers. Also it removes the attributes and classes.

*/
upload(files: FileInfo | FileInfo[], custom?: boolean): void;
upload(files?: FileInfo | FileInfo[], custom?: boolean): void;
private validateFileType;

@@ -990,3 +1012,3 @@ private uploadFiles;

*/
pause(fileData: FileInfo | FileInfo[], custom?: boolean): void;
pause(fileData?: FileInfo | FileInfo[], custom?: boolean): void;
private pauseUploading;

@@ -1000,3 +1022,3 @@ private getFiles;

*/
resume(fileData: FileInfo | FileInfo[], custom?: boolean): void;
resume(fileData?: FileInfo | FileInfo[], custom?: boolean): void;
private resumeFiles;

@@ -1009,3 +1031,3 @@ /**

*/
retry(fileData: FileInfo | FileInfo[], fromcanceledStage?: boolean, custom?: boolean): void;
retry(fileData?: FileInfo | FileInfo[], fromcanceledStage?: boolean, custom?: boolean): void;
private retryFailedFiles;

@@ -1018,3 +1040,3 @@ /**

*/
cancel(fileData: FileInfo[]): void;
cancel(fileData?: FileInfo[]): void;
private cancelUpload;

@@ -1021,0 +1043,0 @@ private showHideUploadSpinner;

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc