@vaadin/upload
Advanced tools
Comparing version 23.0.0-beta1 to 23.0.0-beta2
{ | ||
"name": "@vaadin/upload", | ||
"version": "23.0.0-beta1", | ||
"version": "23.0.0-beta2", | ||
"publishConfig": { | ||
@@ -37,16 +37,16 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/button": "23.0.0-beta1", | ||
"@vaadin/component-base": "23.0.0-beta1", | ||
"@vaadin/progress-bar": "23.0.0-beta1", | ||
"@vaadin/vaadin-lumo-styles": "23.0.0-beta1", | ||
"@vaadin/vaadin-material-styles": "23.0.0-beta1", | ||
"@vaadin/vaadin-themable-mixin": "23.0.0-beta1" | ||
"@vaadin/button": "23.0.0-beta2", | ||
"@vaadin/component-base": "23.0.0-beta2", | ||
"@vaadin/progress-bar": "23.0.0-beta2", | ||
"@vaadin/vaadin-lumo-styles": "23.0.0-beta2", | ||
"@vaadin/vaadin-material-styles": "23.0.0-beta2", | ||
"@vaadin/vaadin-themable-mixin": "23.0.0-beta2" | ||
}, | ||
"devDependencies": { | ||
"@esm-bundle/chai": "^4.3.4", | ||
"@vaadin/form-layout": "23.0.0-beta1", | ||
"@vaadin/form-layout": "23.0.0-beta2", | ||
"@vaadin/testing-helpers": "^0.3.2", | ||
"sinon": "^9.2.0" | ||
}, | ||
"gitHead": "467244b76021176c109df675799b07029b293e58" | ||
"gitHead": "a276f7a0fd00e5459b87267468e0dd0d4fb6f7f3" | ||
} |
@@ -11,2 +11,3 @@ /** | ||
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js'; | ||
import { announce } from '@vaadin/component-base/src/a11y-announcer.js'; | ||
import { isTouch } from '@vaadin/component-base/src/browser-utils.js'; | ||
@@ -447,2 +448,6 @@ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js'; | ||
this.addEventListener('file-start', this._onFileStart.bind(this)); | ||
this.addEventListener('file-reject', this._onFileReject.bind(this)); | ||
this.addEventListener('upload-start', this._onUploadStart.bind(this)); | ||
this.addEventListener('upload-success', this._onUploadSuccess.bind(this)); | ||
this.addEventListener('upload-error', this._onUploadError.bind(this)); | ||
} | ||
@@ -863,2 +868,22 @@ | ||
/** @private */ | ||
_onFileReject(event) { | ||
announce(`${event.detail.file.name}: ${event.detail.file.error}`, { mode: 'alert' }); | ||
} | ||
/** @private */ | ||
_onUploadStart(event) { | ||
announce(`${event.detail.file.name}: 0%`, { mode: 'alert' }); | ||
} | ||
/** @private */ | ||
_onUploadSuccess(event) { | ||
announce(`${event.detail.file.name}: 100%`, { mode: 'alert' }); | ||
} | ||
/** @private */ | ||
_onUploadError(event) { | ||
announce(`${event.detail.file.name}: ${event.detail.file.error}`, { mode: 'alert' }); | ||
} | ||
/** @private */ | ||
_dragoverChanged(dragover) { | ||
@@ -865,0 +890,0 @@ dragover ? this.setAttribute('dragover', dragover) : this.removeAttribute('dragover'); |
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
79347
1947
+ Added@vaadin/button@23.0.0-beta2(transitive)
+ Added@vaadin/component-base@23.0.0-beta2(transitive)
+ Added@vaadin/icon@23.0.0-beta2(transitive)
+ Added@vaadin/progress-bar@23.0.0-beta2(transitive)
+ Added@vaadin/vaadin-lumo-styles@23.0.0-beta2(transitive)
+ Added@vaadin/vaadin-material-styles@23.0.0-beta2(transitive)
+ Added@vaadin/vaadin-themable-mixin@23.0.0-beta2(transitive)
- Removed@vaadin/button@23.0.0-beta1(transitive)
- Removed@vaadin/component-base@23.0.0-beta1(transitive)
- Removed@vaadin/icon@23.0.0-beta1(transitive)
- Removed@vaadin/progress-bar@23.0.0-beta1(transitive)
- Removed@vaadin/vaadin-lumo-styles@23.0.0-beta1(transitive)
- Removed@vaadin/vaadin-material-styles@23.0.0-beta1(transitive)
- Removed@vaadin/vaadin-themable-mixin@23.0.0-beta1(transitive)
Updated@vaadin/button@23.0.0-beta2