@syncfusion/ej2-inputs
Advanced tools
Comparing version 16.4.45 to 16.4.46
@@ -5,2 +5,18 @@ # Changelog | ||
### Uploader | ||
#### New Features | ||
- Provided option to customize file upload's status message (label) which is sent from server on success and failure events. | ||
- Provided event which trigger before rendering each file item in a page that helps to customize its default UI structure. | ||
- Provided event to denote all the selected files has processed to upload successfully or failed to server. | ||
#### Bug Fixes | ||
- Resolved the issue with updating file data in uploader element while drag-and-drop the files. | ||
## 16.4.45 (2019-01-02) | ||
### Common | ||
@@ -7,0 +23,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 16.4.45 | ||
* version : 16.4.46 | ||
* Copyright Syncfusion Inc. 2001 - 2018. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"name": "@syncfusion/ej2-inputs", | ||
"version": "16.4.45", | ||
"version": "16.4.46", | ||
"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.", | ||
@@ -14,3 +14,3 @@ "author": "Syncfusion Inc.", | ||
"@syncfusion/ej2-popups": "~16.4.45", | ||
"@syncfusion/ej2-splitbuttons": "~16.4.42" | ||
"@syncfusion/ej2-splitbuttons": "~16.4.46" | ||
}, | ||
@@ -17,0 +17,0 @@ "devDependencies": { |
@@ -907,7 +907,4 @@ /** | ||
this.maskKeyPress = true; | ||
if (val === null && this.floatLabelType === 'Never' && this.placeholder) { | ||
setElementValue.call(this, this.promptMask); | ||
} | ||
else if (val !== '') { | ||
setElementValue.call(this, this.promptMask); | ||
setElementValue.call(this, this.promptMask); | ||
if (val !== '' && !(val === null && this.floatLabelType === 'Never' && this.placeholder)) { | ||
this.element.selectionStart = 0; | ||
@@ -914,0 +911,0 @@ this.element.selectionEnd = 0; |
@@ -324,2 +324,5 @@ var __extends = (this && this.__extends) || (function () { | ||
} | ||
if (this.changeEventArgs.event === undefined) { | ||
this.changeEventArgs.isInteraction = false; | ||
} | ||
merge(eventArgs, this.changeEventArgs); | ||
@@ -326,0 +329,0 @@ this.prevValue = this.value; |
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 {SelectedEventArgs,UploadingEventArgs,RemovingEventArgs,ClearingEventArgs,CancelEventArgs,PauseResumeEventArgs} from "./uploader"; | ||
import {ActionCompleteEventArgs,RenderingEventArgs,SelectedEventArgs,UploadingEventArgs,RemovingEventArgs,ClearingEventArgs,CancelEventArgs,PauseResumeEventArgs} from "./uploader"; | ||
import {ComponentModel} from '@syncfusion/ej2-base'; | ||
@@ -236,2 +236,15 @@ | ||
/** | ||
* Triggers after all the selected files has processed to upload successfully or failed to server. | ||
* @event | ||
*/ | ||
actionComplete?: EmitType<ActionCompleteEventArgs>; | ||
/** | ||
* Triggers before rendering each file item from the file list in a page. | ||
* It helps to customize specific file item structure. | ||
* @event | ||
*/ | ||
rendering?: EmitType<RenderingEventArgs>; | ||
/** | ||
* Triggers after selecting or dropping the files by adding the files in upload queue. | ||
@@ -238,0 +251,0 @@ * @event |
@@ -264,2 +264,22 @@ import { Component, EmitType } from '@syncfusion/ej2-base'; | ||
} | ||
export interface ActionCompleteEventArgs { | ||
/** | ||
* Return the selected file details. | ||
*/ | ||
fileData: FileInfo[]; | ||
} | ||
export interface RenderingEventArgs { | ||
/** | ||
* Return the current file item element. | ||
*/ | ||
element: HTMLElement; | ||
/** | ||
* Return the current rendering file item data as File object. | ||
*/ | ||
fileInfo: FileInfo; | ||
/** | ||
* Return the index of the file item in the file list. | ||
*/ | ||
index: number; | ||
} | ||
/** | ||
@@ -309,2 +329,5 @@ * The uploader component allows to upload images, documents, and other files from local to server. | ||
private count; | ||
private actionCompleteCount; | ||
private flag; | ||
private selectedFiles; | ||
/** | ||
@@ -423,2 +446,13 @@ * Configures the save and remove URL to perform the upload operations in the server asynchronously. | ||
/** | ||
* Triggers after all the selected files has processed to upload successfully or failed to server. | ||
* @event | ||
*/ | ||
actionComplete: EmitType<ActionCompleteEventArgs>; | ||
/** | ||
* Triggers before rendering each file item from the file list in a page. | ||
* It helps to customize specific file item structure. | ||
* @event | ||
*/ | ||
rendering: EmitType<RenderingEventArgs>; | ||
/** | ||
* Triggers after selecting or dropping the files by adding the files in upload queue. | ||
@@ -727,2 +761,5 @@ * @event | ||
private uploadSequential; | ||
private checkActionComplete; | ||
private raiseActionComplete; | ||
private getSelectedFileStatus; | ||
private updateProgressBarClasses; | ||
@@ -729,0 +766,0 @@ private removeProgressbar; |
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
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
9658715
114963