nxt-dropzone-wrapper 13.0.0 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -21
- package/esm2020/lib/dropzone.component.mjs +13 -11
- package/esm2020/lib/dropzone.directive.mjs +15 -16
- package/esm2020/lib/dropzone.interfaces.mjs +2 -2
- package/esm2020/lib/dropzone.module.mjs +19 -9
- package/esm2020/nxt-dropzone-wrapper.mjs +1 -1
- package/esm2020/public-api.mjs +2 -2
- package/fesm2015/nxt-dropzone-wrapper.mjs +41 -29
- package/fesm2015/nxt-dropzone-wrapper.mjs.map +1 -1
- package/fesm2020/nxt-dropzone-wrapper.mjs +41 -29
- package/fesm2020/nxt-dropzone-wrapper.mjs.map +1 -1
- package/{nxt-dropzone-wrapper.d.ts → index.d.ts} +0 -1
- package/lib/dropzone.component.d.ts +3 -4
- package/lib/dropzone.directive.d.ts +9 -10
- package/lib/dropzone.interfaces.d.ts +13 -14
- package/lib/dropzone.module.d.ts +1 -2
- package/package.json +11 -13
- package/public-api.d.ts +1 -2
- package/lib/dropzone.component.d.ts.map +0 -1
- package/lib/dropzone.directive.d.ts.map +0 -1
- package/lib/dropzone.interfaces.d.ts.map +0 -1
- package/lib/dropzone.module.d.ts.map +0 -1
- package/nxt-dropzone-wrapper.d.ts.map +0 -1
- package/public-api.d.ts.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import * as i1 from '@angular/common';
|
|
2
|
+
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
1
3
|
import * as i0 from '@angular/core';
|
|
2
4
|
import { InjectionToken, EventEmitter, PLATFORM_ID, Directive, Inject, Optional, Input, Output, Component, ViewEncapsulation, ViewChild, NgModule } from '@angular/core';
|
|
3
|
-
import
|
|
4
|
-
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
5
|
-
import _dz from 'dropzone';
|
|
5
|
+
import Dropzone from 'dropzone';
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const NXT_DROPZONE_CONFIG = new InjectionToken('NXT_DROPZONE_CONFIG');
|
|
8
8
|
const DropzoneEvents = [
|
|
9
9
|
'error',
|
|
10
10
|
'success',
|
|
@@ -54,8 +54,7 @@ class DropzoneConfig {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
const Dropzone = _dz.Dropzone;
|
|
57
|
+
/* eslint-disable @angular-eslint/no-output-rename */
|
|
59
58
|
class DropzoneDirective {
|
|
60
59
|
constructor(zone, renderer, elementRef, differs, platformId, defaults) {
|
|
61
60
|
this.zone = zone;
|
|
@@ -112,7 +111,7 @@ class DropzoneDirective {
|
|
|
112
111
|
if (this.disabled) {
|
|
113
112
|
this.instance.disable();
|
|
114
113
|
}
|
|
115
|
-
if (this.DZ_INIT.
|
|
114
|
+
if (this.DZ_INIT.observed) {
|
|
116
115
|
this.zone.run(() => {
|
|
117
116
|
this.DZ_INIT.emit(this.instance);
|
|
118
117
|
});
|
|
@@ -139,7 +138,7 @@ class DropzoneDirective {
|
|
|
139
138
|
args = (args.length === 1) ? args[0] : args;
|
|
140
139
|
const output = `DZ_${eventName.toUpperCase()}`;
|
|
141
140
|
const emitter = this[output];
|
|
142
|
-
if (emitter.
|
|
141
|
+
if (emitter.observed) {
|
|
143
142
|
this.zone.run(() => {
|
|
144
143
|
emitter.emit(args);
|
|
145
144
|
});
|
|
@@ -195,13 +194,13 @@ class DropzoneDirective {
|
|
|
195
194
|
}
|
|
196
195
|
}
|
|
197
196
|
}
|
|
198
|
-
DropzoneDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
199
|
-
DropzoneDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
197
|
+
DropzoneDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DropzoneDirective, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.KeyValueDiffers }, { token: PLATFORM_ID }, { token: NXT_DROPZONE_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
198
|
+
DropzoneDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: DropzoneDirective, selector: "[nxtDropzone]", inputs: { disabled: "disabled", config: ["nxtDropzone", "config"] }, outputs: { DZ_INIT: "init", DZ_ERROR: "error", DZ_SUCCESS: "success", DZ_SENDING: "sending", DZ_CANCELED: "canceled", DZ_COMPLETE: "complete", DZ_PROCESSING: "processing", DZ_DROP: "drop", DZ_DRAGSTART: "dragStart", DZ_DRAGEND: "dragEnd", DZ_DRAGENTER: "dragEnter", DZ_DRAGOVER: "dragOver", DZ_DRAGLEAVE: "dragLeave", DZ_THUMBNAIL: "thumbnail", DZ_ADDEDFILE: "addedFile", DZ_ADDEDFILES: "addedFiles", DZ_REMOVEDFILE: "removedFile", DZ_UPLOADPROGRESS: "uploadProgress", DZ_MAXFILESREACHED: "maxFilesReached", DZ_MAXFILESEXCEEDED: "maxFilesExceeded", DZ_ERRORMULTIPLE: "errorMultiple", DZ_SUCCESSMULTIPLE: "successMultiple", DZ_SENDINGMULTIPLE: "sendingMultiple", DZ_CANCELEDMULTIPLE: "canceledMultiple", DZ_COMPLETEMULTIPLE: "completeMultiple", DZ_PROCESSINGMULTIPLE: "processingMultiple", DZ_RESET: "reset", DZ_QUEUECOMPLETE: "queueComplete", DZ_TOTALUPLOADPROGRESS: "totalUploadProgress" }, exportAs: ["nxtDropzone"], usesOnChanges: true, ngImport: i0 });
|
|
199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DropzoneDirective, decorators: [{
|
|
201
200
|
type: Directive,
|
|
202
201
|
args: [{
|
|
203
|
-
selector: '[
|
|
204
|
-
exportAs: '
|
|
202
|
+
selector: '[nxtDropzone]',
|
|
203
|
+
exportAs: 'nxtDropzone'
|
|
205
204
|
}]
|
|
206
205
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.KeyValueDiffers }, { type: Object, decorators: [{
|
|
207
206
|
type: Inject,
|
|
@@ -210,12 +209,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
|
|
|
210
209
|
type: Optional
|
|
211
210
|
}, {
|
|
212
211
|
type: Inject,
|
|
213
|
-
args: [
|
|
212
|
+
args: [NXT_DROPZONE_CONFIG]
|
|
214
213
|
}] }]; }, propDecorators: { disabled: [{
|
|
215
214
|
type: Input
|
|
216
215
|
}], config: [{
|
|
217
216
|
type: Input,
|
|
218
|
-
args: ['
|
|
217
|
+
args: ['nxtDropzone']
|
|
219
218
|
}], DZ_INIT: [{
|
|
220
219
|
type: Output,
|
|
221
220
|
args: ['init']
|
|
@@ -305,8 +304,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
|
|
|
305
304
|
args: ['totalUploadProgress']
|
|
306
305
|
}] } });
|
|
307
306
|
|
|
307
|
+
/* eslint-disable @angular-eslint/no-output-rename */
|
|
308
308
|
class DropzoneComponent {
|
|
309
|
-
constructor(
|
|
309
|
+
constructor(
|
|
310
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
311
|
+
platformId) {
|
|
310
312
|
this.platformId = platformId;
|
|
311
313
|
this.disabled = false;
|
|
312
314
|
this.message = 'Click or drag files to upload';
|
|
@@ -346,7 +348,7 @@ class DropzoneComponent {
|
|
|
346
348
|
if (!isPlatformBrowser(this.platformId)) {
|
|
347
349
|
return;
|
|
348
350
|
}
|
|
349
|
-
|
|
351
|
+
setTimeout(() => {
|
|
350
352
|
DropzoneEvents.forEach((eventName) => {
|
|
351
353
|
if (this.directiveRef) {
|
|
352
354
|
const output = `DZ_${eventName.toUpperCase()}`;
|
|
@@ -361,11 +363,11 @@ class DropzoneComponent {
|
|
|
361
363
|
return 'url(' + encodeURI(this.placeholder) + ')';
|
|
362
364
|
}
|
|
363
365
|
}
|
|
364
|
-
DropzoneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
365
|
-
DropzoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: DropzoneComponent, selector: "dropzone", inputs: { disabled: "disabled", config: "config", message: "message", placeholder: "placeholder", useDropzoneClass: "useDropzoneClass" }, outputs: { DZ_INIT: "init", DZ_ERROR: "error", DZ_SUCCESS: "success", DZ_SENDING: "sending", DZ_CANCELED: "canceled", DZ_COMPLETE: "complete", DZ_PROCESSING: "processing", DZ_DROP: "drop", DZ_DRAGSTART: "dragStart", DZ_DRAGEND: "dragEnd", DZ_DRAGENTER: "dragEnter", DZ_DRAGOVER: "dragOver", DZ_DRAGLEAVE: "dragLeave", DZ_THUMBNAIL: "thumbnail", DZ_ADDEDFILE: "addedFile", DZ_ADDEDFILES: "addedFiles", DZ_REMOVEDFILE: "removedFile", DZ_UPLOADPROGRESS: "uploadProgress", DZ_MAXFILESREACHED: "maxFilesReached", DZ_MAXFILESEXCEEDED: "maxFilesExceeded", DZ_ERRORMULTIPLE: "errorMultiple", DZ_SUCCESSMULTIPLE: "successMultiple", DZ_SENDINGMULTIPLE: "sendingMultiple", DZ_CANCELEDMULTIPLE: "canceledMultiple", DZ_COMPLETEMULTIPLE: "completeMultiple", DZ_PROCESSINGMULTIPLE: "processingMultiple", DZ_RESET: "reset", DZ_QUEUECOMPLETE: "queueComplete", DZ_TOTALUPLOADPROGRESS: "totalUploadProgress" }, viewQueries: [{ propertyName: "directiveRef", first: true, predicate: DropzoneDirective, descendants: true, static: true }], exportAs: ["ngxDropzone"], ngImport: i0, template: "<div class=\"dz-wrapper\" [class.dropzone]=\"useDropzoneClass\" [dropzone]=\"config\" [disabled]=\"disabled\" (init)=\"DZ_INIT.emit($event)\">\n <div class=\"dz-message\" [class.disabled]=\"disabled\" [class.dz-placeholder]=\"placeholder\">\n <div class=\"dz-text\" [innerHTML]=\"config?.dictDefaultMessage || message\"></div>\n\n <div *ngIf=\"placeholder\" class=\"dz-image\" [style.background-image]=\"getPlaceholder()\"></div>\n </div>\n\n <ng-content></ng-content>\n</div>\n", styles: ["dropzone{display:block;width:100%;height:auto}dropzone[fxflex]{display:flex;flex-direction:inherit;min-width:0;min-height:0}dropzone[fxflex]>.dropzone.dz-wrapper{flex:1 1 auto;min-width:0;min-height:0;-webkit-box-flex:1}dropzone[fxlayout]{align-items:inherit;align-content:inherit;justify-content:inherit;-webkit-box-align:inherit;-webkit-box-pack:inherit}dropzone[fxlayout]>.dropzone.dz-wrapper.dz-single{display:flex;flex-direction:column;align-items:center;align-content:center;justify-content:center;-webkit-box-align:center;-webkit-box-pack:center}dropzone[fxlayout]>.dropzone.dz-wrapper.dz-multiple{display:flex;flex-flow:row wrap;align-items:flex-start;align-content:flex-start;justify-content:space-between;-webkit-box-align:flex-start;-webkit-box-pack:flex-start}dropzone>.dropzone.dz-wrapper{position:relative;overflow:auto;width:100%;min-height:0;max-height:100%;padding:0;border:none;color:#666;background:transparent}dropzone>.dropzone.dz-wrapper .dz-message{position:relative;display:inline-block;overflow:auto;width:calc(100% - 16px);min-width:calc(100% - 16px);min-height:40px;max-width:calc(100% - 16px);max-height:100%;margin:8px;border:2px dashed #aaa;background-color:#eee}dropzone>.dropzone.dz-wrapper .dz-message .dz-text{position:absolute;top:50%;width:100%;padding:8px 16px;text-align:center;transform:translateY(-50%)}dropzone>.dropzone.dz-wrapper .dz-message .dz-image{width:100%;height:100%;background-size:contain;background-repeat:no-repeat;background-position:50% 50%}dropzone>.dropzone.dz-wrapper .dz-message.disabled{cursor:not-allowed}dropzone>.dropzone.dz-wrapper .dz-message.disabled .dz-text{opacity:.5}dropzone>.dropzone.dz-wrapper .dz-message.dz-placeholder{border-color:rgba(#aaa,0)}dropzone>.dropzone.dz-wrapper .dz-message.dz-placeholder .dz-text{position:absolute;z-index:1;top:0;right:10%;left:10%;opacity:0;font-weight:700;background-color:rgba(#fff,.5);transform:translateY(-50%);transition:filter .25s ease-in-out,opacity .25s ease-in-out,border-color .25s ease-in-out}dropzone>.dropzone.dz-wrapper .dz-message.dz-placeholder:hover:not(.disabled){border-color:#aaa}dropzone>.dropzone.dz-wrapper .dz-message.dz-placeholder:hover:not(.disabled) .dz-text{opacity:1}dropzone>.dropzone.dz-wrapper .dz-message.dz-placeholder:hover:not(.disabled) .dz-image{filter:blur(8px)}dropzone>.dropzone.dz-wrapper .dz-preview{margin:8px}dropzone>.dropzone.dz-wrapper .dz-preview .dz-details{padding:24px}dropzone>.dropzone.dz-wrapper .dz-preview .dz-progress{width:80%;margin-left:-40%;border:1px solid #aaa;border-radius:4px}dropzone>.dropzone.dz-wrapper .dz-preview .dz-progress .dz-upload{background-color:#666}dropzone>.dropzone.dz-wrapper .dz-preview .dz-filename span{display:block;overflow:hidden;width:100%;max-width:100%;text-overflow:ellipsis}dropzone>.dropzone.dz-wrapper .dz-preview .dz-filename span:hover{overflow:visible;white-space:normal;word-wrap:break-word}dropzone>.dropzone.dz-wrapper.dz-single .dz-message{width:100%;height:100%}dropzone>.dropzone.dz-wrapper.dz-single.dz-started .dz-message{display:none}dropzone>.dropzone.dz-wrapper.dz-single .dz-preview{width:calc(100% - 16px);height:100%}dropzone>.dropzone.dz-wrapper.dz-single .dz-preview .dz-image{width:100%;height:100%;border-radius:0}dropzone>.dropzone.dz-wrapper.dz-single .dz-preview .dz-image img{display:block;width:100%;height:auto;margin:0}dropzone>.dropzone.dz-wrapper.dz-single .dz-error-message{top:50%;left:50%;transform:translate(-50%) translateY(100%)}dropzone>.dropzone.dz-wrapper.dz-multiple.dz-started .dz-message{display:inline-block}\n", "@keyframes passing-through{0%{opacity:0;transform:translateY(40px)}30%,70%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-40px)}}@keyframes slide-in{0%{opacity:0;transform:translateY(40px)}30%{opacity:1;transform:translateY(0)}}@keyframes pulse{0%{transform:scale(1)}10%{transform:scale(1.1)}20%{transform:scale(1)}}.dropzone,.dropzone *{box-sizing:border-box}.dropzone{min-height:150px;border:2px solid rgba(0,0,0,.3);background:#fff;padding:20px}.dropzone.dz-clickable{cursor:pointer}.dropzone.dz-clickable *{cursor:default}.dropzone.dz-clickable .dz-message,.dropzone.dz-clickable .dz-message *{cursor:pointer}.dropzone.dz-started .dz-message{display:none}.dropzone.dz-drag-hover{border-style:solid}.dropzone.dz-drag-hover .dz-message{opacity:.5}.dropzone .dz-message{text-align:center;margin:2em 0}.dropzone .dz-message .dz-button{background:none;color:inherit;border:none;padding:0;font:inherit;cursor:pointer;outline:inherit}.dropzone .dz-preview{position:relative;display:inline-block;vertical-align:top;margin:16px;min-height:100px}.dropzone .dz-preview:hover{z-index:1000}.dropzone .dz-preview.dz-file-preview .dz-image{border-radius:20px;background:#999;background:linear-gradient(to bottom,#eee,#ddd)}.dropzone .dz-preview.dz-file-preview .dz-details{opacity:1}.dropzone .dz-preview.dz-image-preview{background:#fff}.dropzone .dz-preview.dz-image-preview .dz-details{transition:opacity .2s linear}.dropzone .dz-preview .dz-remove{font-size:14px;text-align:center;display:block;cursor:pointer;border:none}.dropzone .dz-preview .dz-remove:hover{text-decoration:underline}.dropzone .dz-preview:hover .dz-details{opacity:1}.dropzone .dz-preview .dz-details{z-index:20;position:absolute;top:0;left:0;opacity:0;font-size:13px;min-width:100%;max-width:100%;padding:2em 1em;text-align:center;color:#000000e6;line-height:150%}.dropzone .dz-preview .dz-details .dz-size{margin-bottom:1em;font-size:16px}.dropzone .dz-preview .dz-details .dz-filename{white-space:nowrap}.dropzone .dz-preview .dz-details .dz-filename:hover span{border:1px solid rgba(200,200,200,.8);background-color:#fffc}.dropzone .dz-preview .dz-details .dz-filename:not(:hover){overflow:hidden;text-overflow:ellipsis}.dropzone .dz-preview .dz-details .dz-filename:not(:hover) span{border:1px solid transparent}.dropzone .dz-preview .dz-details .dz-filename span,.dropzone .dz-preview .dz-details .dz-size span{background-color:#fff6;padding:0 .4em;border-radius:3px}.dropzone .dz-preview:hover .dz-image img{transform:scale(1.05);filter:blur(8px)}.dropzone .dz-preview .dz-image{border-radius:20px;overflow:hidden;width:120px;height:120px;position:relative;display:block;z-index:10}.dropzone .dz-preview .dz-image img{display:block}.dropzone .dz-preview.dz-success .dz-success-mark{animation:passing-through 3s cubic-bezier(.77,0,.175,1)}.dropzone .dz-preview.dz-error .dz-error-mark{opacity:1;animation:slide-in 3s cubic-bezier(.77,0,.175,1)}.dropzone .dz-preview .dz-success-mark,.dropzone .dz-preview .dz-error-mark{pointer-events:none;opacity:0;z-index:500;position:absolute;display:block;top:50%;left:50%;margin-left:-27px;margin-top:-27px}.dropzone .dz-preview .dz-success-mark svg,.dropzone .dz-preview .dz-error-mark svg{display:block;width:54px;height:54px}.dropzone .dz-preview.dz-processing .dz-progress{opacity:1;transition:all .2s linear}.dropzone .dz-preview.dz-complete .dz-progress{opacity:0;transition:opacity .4s ease-in}.dropzone .dz-preview:not(.dz-processing) .dz-progress{animation:pulse 6s ease infinite}.dropzone .dz-preview .dz-progress{opacity:1;z-index:1000;pointer-events:none;position:absolute;height:16px;left:50%;top:50%;margin-top:-8px;width:80px;margin-left:-40px;background:rgba(255,255,255,.9);-webkit-transform:scale(1);border-radius:8px;overflow:hidden}.dropzone .dz-preview .dz-progress .dz-upload{background:#333;background:linear-gradient(to bottom,#666,#444);position:absolute;top:0;left:0;bottom:0;width:0;transition:width .3s ease-in-out}.dropzone .dz-preview.dz-error .dz-error-message{display:block}.dropzone .dz-preview.dz-error:hover .dz-error-message{opacity:1;pointer-events:auto}.dropzone .dz-preview .dz-error-message{pointer-events:none;z-index:1000;position:absolute;display:block;display:none;opacity:0;transition:opacity .3s ease;border-radius:8px;font-size:13px;top:130px;left:-10px;width:140px;background:#be2626;background:linear-gradient(to bottom,#be2626,#a92222);padding:.5em 1.2em;color:#fff}.dropzone .dz-preview .dz-error-message:after{content:\"\";position:absolute;top:-6px;left:64px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #be2626}\n"], directives: [{ type: DropzoneDirective, selector: "[dropzone]", inputs: ["disabled", "dropzone"], outputs: ["init", "error", "success", "sending", "canceled", "complete", "processing", "drop", "dragStart", "dragEnd", "dragEnter", "dragOver", "dragLeave", "thumbnail", "addedFile", "addedFiles", "removedFile", "uploadProgress", "maxFilesReached", "maxFilesExceeded", "errorMultiple", "successMultiple", "sendingMultiple", "canceledMultiple", "completeMultiple", "processingMultiple", "reset", "queueComplete", "totalUploadProgress"], exportAs: ["ngxDropzone"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
366
|
+
DropzoneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DropzoneComponent, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component });
|
|
367
|
+
DropzoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: DropzoneComponent, selector: "nxt-dropzone", inputs: { disabled: "disabled", config: "config", message: "message", placeholder: "placeholder", useDropzoneClass: "useDropzoneClass" }, outputs: { DZ_INIT: "init", DZ_ERROR: "error", DZ_SUCCESS: "success", DZ_SENDING: "sending", DZ_CANCELED: "canceled", DZ_COMPLETE: "complete", DZ_PROCESSING: "processing", DZ_DROP: "drop", DZ_DRAGSTART: "dragStart", DZ_DRAGEND: "dragEnd", DZ_DRAGENTER: "dragEnter", DZ_DRAGOVER: "dragOver", DZ_DRAGLEAVE: "dragLeave", DZ_THUMBNAIL: "thumbnail", DZ_ADDEDFILE: "addedFile", DZ_ADDEDFILES: "addedFiles", DZ_REMOVEDFILE: "removedFile", DZ_UPLOADPROGRESS: "uploadProgress", DZ_MAXFILESREACHED: "maxFilesReached", DZ_MAXFILESEXCEEDED: "maxFilesExceeded", DZ_ERRORMULTIPLE: "errorMultiple", DZ_SUCCESSMULTIPLE: "successMultiple", DZ_SENDINGMULTIPLE: "sendingMultiple", DZ_CANCELEDMULTIPLE: "canceledMultiple", DZ_COMPLETEMULTIPLE: "completeMultiple", DZ_PROCESSINGMULTIPLE: "processingMultiple", DZ_RESET: "reset", DZ_QUEUECOMPLETE: "queueComplete", DZ_TOTALUPLOADPROGRESS: "totalUploadProgress" }, viewQueries: [{ propertyName: "directiveRef", first: true, predicate: DropzoneDirective, descendants: true, static: true }], exportAs: ["nxtDropzone"], ngImport: i0, template: "<div class=\"dz-wrapper\"\n [class.dropzone]=\"useDropzoneClass\"\n [nxtDropzone]=\"config\"\n [disabled]=\"disabled\"\n (init)=\"DZ_INIT.emit($event)\">\n <div class=\"dz-message\"\n [class.disabled]=\"disabled\"\n [class.dz-placeholder]=\"placeholder\">\n <div class=\"dz-text\"\n [innerHTML]=\"config?.dictDefaultMessage || message\"></div>\n\n <div *ngIf=\"placeholder\"\n class=\"dz-image\"\n [style.background-image]=\"getPlaceholder()\"></div>\n </div>\n\n <ng-content></ng-content>\n</div>\n", styles: ["nxt-dropzone{display:block;width:100%;height:auto}nxt-dropzone>.dropzone.dz-wrapper{position:relative;overflow:auto;width:100%;min-height:0;max-height:100%;padding:0;border:none;color:#666;background:transparent}nxt-dropzone>.dropzone.dz-wrapper .dz-message{position:relative;display:inline-block;overflow:auto;width:calc(100% - 16px);min-width:calc(100% - 16px);min-height:40px;max-width:calc(100% - 16px);max-height:100%;margin:8px;border:2px dashed #aaa;background-color:#eee}nxt-dropzone>.dropzone.dz-wrapper .dz-message .dz-text{position:absolute;top:50%;width:100%;padding:8px 16px;text-align:center;transform:translateY(-50%)}nxt-dropzone>.dropzone.dz-wrapper .dz-message .dz-image{width:100%;height:100%;background-size:contain;background-repeat:no-repeat;background-position:50% 50%}nxt-dropzone>.dropzone.dz-wrapper .dz-message.disabled{cursor:not-allowed}nxt-dropzone>.dropzone.dz-wrapper .dz-message.disabled .dz-text{opacity:.5}nxt-dropzone>.dropzone.dz-wrapper .dz-message.dz-placeholder{border-color:#aaa0}nxt-dropzone>.dropzone.dz-wrapper .dz-message.dz-placeholder .dz-text{position:absolute;z-index:1;top:0;right:10%;left:10%;opacity:0;font-weight:700;background-color:#ffffff80;transform:translateY(-50%);transition:filter .25s ease-in-out,opacity .25s ease-in-out,border-color .25s ease-in-out}nxt-dropzone>.dropzone.dz-wrapper .dz-message.dz-placeholder:hover:not(.disabled){border-color:#aaa}nxt-dropzone>.dropzone.dz-wrapper .dz-message.dz-placeholder:hover:not(.disabled) .dz-text{opacity:1}nxt-dropzone>.dropzone.dz-wrapper .dz-message.dz-placeholder:hover:not(.disabled) .dz-image{filter:blur(8px)}nxt-dropzone>.dropzone.dz-wrapper .dz-preview{margin:8px}nxt-dropzone>.dropzone.dz-wrapper .dz-preview .dz-details{padding:24px}nxt-dropzone>.dropzone.dz-wrapper .dz-preview .dz-progress{width:80%;margin-left:-40%;border:1px solid #aaa;border-radius:4px}nxt-dropzone>.dropzone.dz-wrapper .dz-preview .dz-progress .dz-upload{background-color:#666}nxt-dropzone>.dropzone.dz-wrapper .dz-preview .dz-filename span{display:block;overflow:hidden;width:100%;max-width:100%;text-overflow:ellipsis}nxt-dropzone>.dropzone.dz-wrapper .dz-preview .dz-filename span:hover{overflow:visible;white-space:normal;word-wrap:break-word}nxt-dropzone>.dropzone.dz-wrapper.dz-single .dz-message{width:100%;height:100%}nxt-dropzone>.dropzone.dz-wrapper.dz-single .dz-preview{width:calc(100% - 16px);height:100%}nxt-dropzone>.dropzone.dz-wrapper.dz-single .dz-preview .dz-image{width:100%;height:100%;border-radius:0}nxt-dropzone>.dropzone.dz-wrapper.dz-single .dz-preview .dz-image img{display:block;width:100%;height:auto;margin:0}nxt-dropzone>.dropzone.dz-wrapper.dz-single .dz-error-message{top:50%;left:50%;transform:translate(-50%) translateY(100%)}nxt-dropzone>.dropzone.dz-wrapper.dz-single.dz-started .dz-message{display:none}nxt-dropzone>.dropzone.dz-wrapper.dz-multiple.dz-started .dz-message{display:inline-block}nxt-dropzone[fxflex]{display:flex;flex-direction:inherit;min-width:0;min-height:0}nxt-dropzone[fxflex]>.dropzone.dz-wrapper{flex:1 1 auto;min-width:0;min-height:0}nxt-dropzone[fxlayout]{align-items:inherit;align-content:inherit;justify-content:inherit}nxt-dropzone[fxlayout]>.dropzone.dz-wrapper.dz-single{display:flex;flex-direction:column;align-items:center;align-content:center;justify-content:center}nxt-dropzone[fxlayout]>.dropzone.dz-wrapper.dz-multiple{display:flex;flex-flow:row wrap;align-items:flex-start;align-content:flex-start;justify-content:space-between}\n", "@keyframes passing-through{0%{opacity:0;transform:translateY(40px)}30%,70%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-40px)}}@keyframes slide-in{0%{opacity:0;transform:translateY(40px)}30%{opacity:1;transform:translateY(0)}}@keyframes pulse{0%{transform:scale(1)}10%{transform:scale(1.1)}20%{transform:scale(1)}}.dropzone,.dropzone *{box-sizing:border-box}.dropzone{min-height:150px;border:1px solid rgba(0,0,0,.8);border-radius:5px;padding:20px}.dropzone.dz-clickable{cursor:pointer}.dropzone.dz-clickable *{cursor:default}.dropzone.dz-clickable .dz-message,.dropzone.dz-clickable .dz-message *{cursor:pointer}.dropzone.dz-started .dz-message{display:none}.dropzone.dz-drag-hover{border-style:solid}.dropzone.dz-drag-hover .dz-message{opacity:.5}.dropzone .dz-message{text-align:center;margin:3em 0}.dropzone .dz-message .dz-button{background:none;color:inherit;border:none;padding:0;font:inherit;cursor:pointer;outline:inherit}.dropzone .dz-preview{position:relative;display:inline-block;vertical-align:top;margin:16px;min-height:100px}.dropzone .dz-preview:hover{z-index:1000}.dropzone .dz-preview.dz-file-preview .dz-image{border-radius:20px;background:#999;background:linear-gradient(to bottom,#eee,#ddd)}.dropzone .dz-preview.dz-file-preview .dz-details{opacity:1}.dropzone .dz-preview.dz-image-preview{background:#fff}.dropzone .dz-preview.dz-image-preview .dz-details{transition:opacity .2s linear}.dropzone .dz-preview .dz-remove{font-size:14px;text-align:center;display:block;cursor:pointer;border:none}.dropzone .dz-preview .dz-remove:hover{text-decoration:underline}.dropzone .dz-preview:hover .dz-details{opacity:1}.dropzone .dz-preview .dz-details{z-index:20;position:absolute;top:0;left:0;opacity:0;font-size:13px;min-width:100%;max-width:100%;padding:2em 1em;text-align:center;color:#000000e6;line-height:150%}.dropzone .dz-preview .dz-details .dz-size{margin-bottom:1em;font-size:16px}.dropzone .dz-preview .dz-details .dz-filename{white-space:nowrap}.dropzone .dz-preview .dz-details .dz-filename:hover span{border:1px solid rgba(200,200,200,.8);background-color:#fffc}.dropzone .dz-preview .dz-details .dz-filename:not(:hover){overflow:hidden;text-overflow:ellipsis}.dropzone .dz-preview .dz-details .dz-filename:not(:hover) span{border:1px solid transparent}.dropzone .dz-preview .dz-details .dz-filename span,.dropzone .dz-preview .dz-details .dz-size span{background-color:#fff6;padding:0 .4em;border-radius:3px}.dropzone .dz-preview:hover .dz-image img{transform:scale(1.05);filter:blur(8px)}.dropzone .dz-preview .dz-image{border-radius:20px;overflow:hidden;width:120px;height:120px;position:relative;display:block;z-index:10}.dropzone .dz-preview .dz-image img{display:block}.dropzone .dz-preview.dz-success .dz-success-mark{animation:passing-through 3s cubic-bezier(.77,0,.175,1)}.dropzone .dz-preview.dz-error .dz-error-mark{opacity:1;animation:slide-in 3s cubic-bezier(.77,0,.175,1)}.dropzone .dz-preview .dz-success-mark,.dropzone .dz-preview .dz-error-mark{pointer-events:none;opacity:0;z-index:500;position:absolute;display:block;top:50%;left:50%;margin-left:-27px;margin-top:-27px;background:rgba(0,0,0,.8);border-radius:50%}.dropzone .dz-preview .dz-success-mark svg,.dropzone .dz-preview .dz-error-mark svg{display:block;width:54px;height:54px;fill:#fff}.dropzone .dz-preview.dz-processing .dz-progress{opacity:1;transition:all .2s linear}.dropzone .dz-preview.dz-complete .dz-progress{opacity:0;transition:opacity .4s ease-in}.dropzone .dz-preview:not(.dz-processing) .dz-progress{animation:pulse 6s ease infinite}.dropzone .dz-preview .dz-progress{opacity:1;z-index:1000;pointer-events:none;position:absolute;height:20px;top:50%;margin-top:-10px;left:15%;right:15%;border:3px solid rgba(0,0,0,.8);background:rgba(0,0,0,.8);border-radius:10px;overflow:hidden}.dropzone .dz-preview .dz-progress .dz-upload{background:#fff;display:block;position:relative;height:100%;width:0;transition:width .3s ease-in-out;border-radius:17px}.dropzone .dz-preview.dz-error .dz-error-message{display:block}.dropzone .dz-preview.dz-error:hover .dz-error-message{opacity:1;pointer-events:auto}.dropzone .dz-preview .dz-error-message{pointer-events:none;z-index:1000;position:absolute;display:block;display:none;opacity:0;transition:opacity .3s ease;border-radius:8px;font-size:13px;top:130px;left:-10px;width:140px;background:#b10606;padding:.5em 1em;color:#fff}.dropzone .dz-preview .dz-error-message:after{content:\"\";position:absolute;top:-6px;left:64px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #b10606}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: DropzoneDirective, selector: "[nxtDropzone]", inputs: ["disabled", "nxtDropzone"], outputs: ["init", "error", "success", "sending", "canceled", "complete", "processing", "drop", "dragStart", "dragEnd", "dragEnter", "dragOver", "dragLeave", "thumbnail", "addedFile", "addedFiles", "removedFile", "uploadProgress", "maxFilesReached", "maxFilesExceeded", "errorMultiple", "successMultiple", "sendingMultiple", "canceledMultiple", "completeMultiple", "processingMultiple", "reset", "queueComplete", "totalUploadProgress"], exportAs: ["nxtDropzone"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DropzoneComponent, decorators: [{
|
|
367
369
|
type: Component,
|
|
368
|
-
args: [{ selector: 'dropzone', exportAs: '
|
|
370
|
+
args: [{ selector: 'nxt-dropzone', exportAs: 'nxtDropzone', encapsulation: ViewEncapsulation.None, template: "<div class=\"dz-wrapper\"\n [class.dropzone]=\"useDropzoneClass\"\n [nxtDropzone]=\"config\"\n [disabled]=\"disabled\"\n (init)=\"DZ_INIT.emit($event)\">\n <div class=\"dz-message\"\n [class.disabled]=\"disabled\"\n [class.dz-placeholder]=\"placeholder\">\n <div class=\"dz-text\"\n [innerHTML]=\"config?.dictDefaultMessage || message\"></div>\n\n <div *ngIf=\"placeholder\"\n class=\"dz-image\"\n [style.background-image]=\"getPlaceholder()\"></div>\n </div>\n\n <ng-content></ng-content>\n</div>\n", styles: ["nxt-dropzone{display:block;width:100%;height:auto}nxt-dropzone>.dropzone.dz-wrapper{position:relative;overflow:auto;width:100%;min-height:0;max-height:100%;padding:0;border:none;color:#666;background:transparent}nxt-dropzone>.dropzone.dz-wrapper .dz-message{position:relative;display:inline-block;overflow:auto;width:calc(100% - 16px);min-width:calc(100% - 16px);min-height:40px;max-width:calc(100% - 16px);max-height:100%;margin:8px;border:2px dashed #aaa;background-color:#eee}nxt-dropzone>.dropzone.dz-wrapper .dz-message .dz-text{position:absolute;top:50%;width:100%;padding:8px 16px;text-align:center;transform:translateY(-50%)}nxt-dropzone>.dropzone.dz-wrapper .dz-message .dz-image{width:100%;height:100%;background-size:contain;background-repeat:no-repeat;background-position:50% 50%}nxt-dropzone>.dropzone.dz-wrapper .dz-message.disabled{cursor:not-allowed}nxt-dropzone>.dropzone.dz-wrapper .dz-message.disabled .dz-text{opacity:.5}nxt-dropzone>.dropzone.dz-wrapper .dz-message.dz-placeholder{border-color:#aaa0}nxt-dropzone>.dropzone.dz-wrapper .dz-message.dz-placeholder .dz-text{position:absolute;z-index:1;top:0;right:10%;left:10%;opacity:0;font-weight:700;background-color:#ffffff80;transform:translateY(-50%);transition:filter .25s ease-in-out,opacity .25s ease-in-out,border-color .25s ease-in-out}nxt-dropzone>.dropzone.dz-wrapper .dz-message.dz-placeholder:hover:not(.disabled){border-color:#aaa}nxt-dropzone>.dropzone.dz-wrapper .dz-message.dz-placeholder:hover:not(.disabled) .dz-text{opacity:1}nxt-dropzone>.dropzone.dz-wrapper .dz-message.dz-placeholder:hover:not(.disabled) .dz-image{filter:blur(8px)}nxt-dropzone>.dropzone.dz-wrapper .dz-preview{margin:8px}nxt-dropzone>.dropzone.dz-wrapper .dz-preview .dz-details{padding:24px}nxt-dropzone>.dropzone.dz-wrapper .dz-preview .dz-progress{width:80%;margin-left:-40%;border:1px solid #aaa;border-radius:4px}nxt-dropzone>.dropzone.dz-wrapper .dz-preview .dz-progress .dz-upload{background-color:#666}nxt-dropzone>.dropzone.dz-wrapper .dz-preview .dz-filename span{display:block;overflow:hidden;width:100%;max-width:100%;text-overflow:ellipsis}nxt-dropzone>.dropzone.dz-wrapper .dz-preview .dz-filename span:hover{overflow:visible;white-space:normal;word-wrap:break-word}nxt-dropzone>.dropzone.dz-wrapper.dz-single .dz-message{width:100%;height:100%}nxt-dropzone>.dropzone.dz-wrapper.dz-single .dz-preview{width:calc(100% - 16px);height:100%}nxt-dropzone>.dropzone.dz-wrapper.dz-single .dz-preview .dz-image{width:100%;height:100%;border-radius:0}nxt-dropzone>.dropzone.dz-wrapper.dz-single .dz-preview .dz-image img{display:block;width:100%;height:auto;margin:0}nxt-dropzone>.dropzone.dz-wrapper.dz-single .dz-error-message{top:50%;left:50%;transform:translate(-50%) translateY(100%)}nxt-dropzone>.dropzone.dz-wrapper.dz-single.dz-started .dz-message{display:none}nxt-dropzone>.dropzone.dz-wrapper.dz-multiple.dz-started .dz-message{display:inline-block}nxt-dropzone[fxflex]{display:flex;flex-direction:inherit;min-width:0;min-height:0}nxt-dropzone[fxflex]>.dropzone.dz-wrapper{flex:1 1 auto;min-width:0;min-height:0}nxt-dropzone[fxlayout]{align-items:inherit;align-content:inherit;justify-content:inherit}nxt-dropzone[fxlayout]>.dropzone.dz-wrapper.dz-single{display:flex;flex-direction:column;align-items:center;align-content:center;justify-content:center}nxt-dropzone[fxlayout]>.dropzone.dz-wrapper.dz-multiple{display:flex;flex-flow:row wrap;align-items:flex-start;align-content:flex-start;justify-content:space-between}\n", "@keyframes passing-through{0%{opacity:0;transform:translateY(40px)}30%,70%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-40px)}}@keyframes slide-in{0%{opacity:0;transform:translateY(40px)}30%{opacity:1;transform:translateY(0)}}@keyframes pulse{0%{transform:scale(1)}10%{transform:scale(1.1)}20%{transform:scale(1)}}.dropzone,.dropzone *{box-sizing:border-box}.dropzone{min-height:150px;border:1px solid rgba(0,0,0,.8);border-radius:5px;padding:20px}.dropzone.dz-clickable{cursor:pointer}.dropzone.dz-clickable *{cursor:default}.dropzone.dz-clickable .dz-message,.dropzone.dz-clickable .dz-message *{cursor:pointer}.dropzone.dz-started .dz-message{display:none}.dropzone.dz-drag-hover{border-style:solid}.dropzone.dz-drag-hover .dz-message{opacity:.5}.dropzone .dz-message{text-align:center;margin:3em 0}.dropzone .dz-message .dz-button{background:none;color:inherit;border:none;padding:0;font:inherit;cursor:pointer;outline:inherit}.dropzone .dz-preview{position:relative;display:inline-block;vertical-align:top;margin:16px;min-height:100px}.dropzone .dz-preview:hover{z-index:1000}.dropzone .dz-preview.dz-file-preview .dz-image{border-radius:20px;background:#999;background:linear-gradient(to bottom,#eee,#ddd)}.dropzone .dz-preview.dz-file-preview .dz-details{opacity:1}.dropzone .dz-preview.dz-image-preview{background:#fff}.dropzone .dz-preview.dz-image-preview .dz-details{transition:opacity .2s linear}.dropzone .dz-preview .dz-remove{font-size:14px;text-align:center;display:block;cursor:pointer;border:none}.dropzone .dz-preview .dz-remove:hover{text-decoration:underline}.dropzone .dz-preview:hover .dz-details{opacity:1}.dropzone .dz-preview .dz-details{z-index:20;position:absolute;top:0;left:0;opacity:0;font-size:13px;min-width:100%;max-width:100%;padding:2em 1em;text-align:center;color:#000000e6;line-height:150%}.dropzone .dz-preview .dz-details .dz-size{margin-bottom:1em;font-size:16px}.dropzone .dz-preview .dz-details .dz-filename{white-space:nowrap}.dropzone .dz-preview .dz-details .dz-filename:hover span{border:1px solid rgba(200,200,200,.8);background-color:#fffc}.dropzone .dz-preview .dz-details .dz-filename:not(:hover){overflow:hidden;text-overflow:ellipsis}.dropzone .dz-preview .dz-details .dz-filename:not(:hover) span{border:1px solid transparent}.dropzone .dz-preview .dz-details .dz-filename span,.dropzone .dz-preview .dz-details .dz-size span{background-color:#fff6;padding:0 .4em;border-radius:3px}.dropzone .dz-preview:hover .dz-image img{transform:scale(1.05);filter:blur(8px)}.dropzone .dz-preview .dz-image{border-radius:20px;overflow:hidden;width:120px;height:120px;position:relative;display:block;z-index:10}.dropzone .dz-preview .dz-image img{display:block}.dropzone .dz-preview.dz-success .dz-success-mark{animation:passing-through 3s cubic-bezier(.77,0,.175,1)}.dropzone .dz-preview.dz-error .dz-error-mark{opacity:1;animation:slide-in 3s cubic-bezier(.77,0,.175,1)}.dropzone .dz-preview .dz-success-mark,.dropzone .dz-preview .dz-error-mark{pointer-events:none;opacity:0;z-index:500;position:absolute;display:block;top:50%;left:50%;margin-left:-27px;margin-top:-27px;background:rgba(0,0,0,.8);border-radius:50%}.dropzone .dz-preview .dz-success-mark svg,.dropzone .dz-preview .dz-error-mark svg{display:block;width:54px;height:54px;fill:#fff}.dropzone .dz-preview.dz-processing .dz-progress{opacity:1;transition:all .2s linear}.dropzone .dz-preview.dz-complete .dz-progress{opacity:0;transition:opacity .4s ease-in}.dropzone .dz-preview:not(.dz-processing) .dz-progress{animation:pulse 6s ease infinite}.dropzone .dz-preview .dz-progress{opacity:1;z-index:1000;pointer-events:none;position:absolute;height:20px;top:50%;margin-top:-10px;left:15%;right:15%;border:3px solid rgba(0,0,0,.8);background:rgba(0,0,0,.8);border-radius:10px;overflow:hidden}.dropzone .dz-preview .dz-progress .dz-upload{background:#fff;display:block;position:relative;height:100%;width:0;transition:width .3s ease-in-out;border-radius:17px}.dropzone .dz-preview.dz-error .dz-error-message{display:block}.dropzone .dz-preview.dz-error:hover .dz-error-message{opacity:1;pointer-events:auto}.dropzone .dz-preview .dz-error-message{pointer-events:none;z-index:1000;position:absolute;display:block;display:none;opacity:0;transition:opacity .3s ease;border-radius:8px;font-size:13px;top:130px;left:-10px;width:140px;background:#b10606;padding:.5em 1em;color:#fff}.dropzone .dz-preview .dz-error-message:after{content:\"\";position:absolute;top:-6px;left:64px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #b10606}\n"] }]
|
|
369
371
|
}], ctorParameters: function () { return [{ type: Object, decorators: [{
|
|
370
372
|
type: Inject,
|
|
371
373
|
args: [PLATFORM_ID]
|
|
@@ -473,15 +475,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
|
|
|
473
475
|
|
|
474
476
|
class DropzoneModule {
|
|
475
477
|
}
|
|
476
|
-
DropzoneModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
477
|
-
DropzoneModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
478
|
-
|
|
479
|
-
|
|
478
|
+
DropzoneModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DropzoneModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
479
|
+
DropzoneModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: DropzoneModule, declarations: [DropzoneComponent,
|
|
480
|
+
DropzoneDirective], imports: [CommonModule], exports: [DropzoneComponent,
|
|
481
|
+
DropzoneDirective] });
|
|
482
|
+
DropzoneModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DropzoneModule, imports: [CommonModule] });
|
|
483
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: DropzoneModule, decorators: [{
|
|
480
484
|
type: NgModule,
|
|
481
485
|
args: [{
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
486
|
+
declarations: [
|
|
487
|
+
DropzoneComponent,
|
|
488
|
+
DropzoneDirective
|
|
489
|
+
],
|
|
490
|
+
imports: [
|
|
491
|
+
CommonModule
|
|
492
|
+
],
|
|
493
|
+
exports: [
|
|
494
|
+
DropzoneComponent,
|
|
495
|
+
DropzoneDirective
|
|
496
|
+
]
|
|
485
497
|
}]
|
|
486
498
|
}] });
|
|
487
499
|
|
|
@@ -489,5 +501,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
|
|
|
489
501
|
* Generated bundle index. Do not edit.
|
|
490
502
|
*/
|
|
491
503
|
|
|
492
|
-
export {
|
|
504
|
+
export { DropzoneComponent, DropzoneConfig, DropzoneDirective, DropzoneModule, NXT_DROPZONE_CONFIG };
|
|
493
505
|
//# sourceMappingURL=nxt-dropzone-wrapper.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nxt-dropzone-wrapper.mjs","sources":["../../../projects/lib/src/lib/dropzone.interfaces.ts","../../../projects/lib/src/lib/dropzone.directive.ts","../../../projects/lib/src/lib/dropzone.component.ts","../../../projects/lib/src/lib/dropzone.component.html","../../../projects/lib/src/lib/dropzone.module.ts","../../../projects/lib/src/nxt-dropzone-wrapper.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const DROPZONE_CONFIG = new InjectionToken('DROPZONE_CONFIG');\n\nexport type DropzoneEvent = 'error' | 'success' | 'sending' | 'canceled' | 'complete' |\n 'processing' | 'drop' | 'dragStart' | 'dragEnd' | 'dragEnter' | 'dragOver' | 'dragLeave' |\n 'thumbnail' | 'addedFile' | 'addedFiles' | 'removedFile' | 'uploadProgress' | 'maxFilesReached' |\n 'maxFilesExceeded' | 'errorMultiple' | 'successMultiple' | 'sendingMultiple' | 'canceledMultiple' |\n 'completeMultiple' | 'processingMultiple' | 'reset' | 'queueComplete' | 'totalUploadProgress';\n\nexport const DropzoneEvents: DropzoneEvent[] = [\n 'error',\n 'success',\n 'sending',\n 'canceled',\n 'complete',\n 'processing',\n\n 'drop',\n 'dragStart',\n 'dragEnd',\n 'dragEnter',\n 'dragOver',\n 'dragLeave',\n\n 'thumbnail',\n 'addedFile',\n 'addedFiles',\n 'removedFile',\n 'uploadProgress',\n 'maxFilesReached',\n 'maxFilesExceeded',\n\n 'errorMultiple',\n 'successMultiple',\n 'sendingMultiple',\n 'canceledMultiple',\n 'completeMultiple',\n 'processingMultiple',\n\n 'reset',\n 'queueComplete',\n 'totalUploadProgress'\n];\n\nexport interface DropzoneConfigInterface {\n timeout?: number,\n\n autoReset?: number | null,\n errorReset?: number | null,\n cancelReset?: number | null,\n\n url?: string | DropzoneUrlFunction,\n method?: string | DropzoneMethodFunction,\n\n params?: any | DropzoneParamsFunction,\n headers?: any | DropzoneHeadersFunction,\n\n init?: DropzoneInitFunction,\n accept?: DropzoneAcceptFunction,\n resize?: DropzoneResizeFunction,\n fallback?: DropzoneFallbackFunction,\n renameFile?: DropzoneRenameFileFunction,\n transformFile?: DropzoneTransformFileFunction,\n chunksUploaded?: DropzoneChunksUploadedFunction,\n\n withCredentials?: boolean,\n\n previewsContainer?: any,\n hiddenInputContainer?: any,\n\n clickable?: string | string[] | boolean,\n paramName?: any,\n capture?: string,\n maxFiles?: number,\n maxFilesize?: number,\n filesizeBase?: number,\n acceptedFiles?: string,\n forceFallback?: boolean,\n addRemoveLinks?: boolean,\n uploadMultiple?: boolean,\n parallelUploads?: number,\n resizeWidth?: number,\n resizeHeight?: number,\n resizeMethod?: 'contain' | 'crop',\n resizeQuality?: number,\n resizeMimeType?: string,\n thumbnailWidth?: number,\n thumbnailHeight?: number,\n thumbnailMethod?: 'contain' | 'crop',\n previewTemplate?: string,\n autoQueue?: boolean,\n autoProcessQueue?: boolean,\n ignoreHiddenFiles?: boolean,\n maxThumbnailFilesize?: number,\n createImageThumbnails?: boolean,\n\n chunking?: boolean,\n chunkSize?: number,\n retryChunks?: boolean,\n forceChunking?: boolean,\n retryChunksLimit?: number,\n parallelChunkUploads?: boolean,\n\n dictFileSizeUnits?: any,\n\n dictDefaultMessage?: string,\n dictFallbackMessage?: string,\n\n dictFileTooBig?: string,\n dictResponseError?: string,\n dictInvalidFileType?: string,\n\n dictRemoveFile?: string,\n dictCancelUpload?: string,\n dictUploadCanceled?: string,\n dictFallbackText?: string,\n dictMaxFilesExceeded?: string,\n dictRemoveFileConfirmation?: string,\n dictCancelUploadConfirmation?: string\n}\n\nexport class DropzoneConfig implements DropzoneConfigInterface {\n timeout?: number;\n\n autoReset?: number;\n errorReset?: number;\n cancelReset?: number;\n\n url?: string | DropzoneUrlFunction;\n method?: string | DropzoneMethodFunction;\n\n params?: any | DropzoneParamsFunction;\n headers?: any | DropzoneHeadersFunction;\n\n init?: DropzoneInitFunction;\n accept?: DropzoneAcceptFunction;\n resize?: DropzoneResizeFunction;\n fallback?: DropzoneFallbackFunction;\n renameFile?: DropzoneRenameFileFunction;\n transformFile?: DropzoneTransformFileFunction;\n chunksUploaded?: DropzoneChunksUploadedFunction;\n\n withCredentials?: boolean;\n\n previewsContainer?: any;\n hiddenInputContainer?: any;\n\n clickable?: string | string[] | boolean;\n paramName?: any;\n capture?: string;\n maxFiles?: number;\n maxFilesize?: number;\n filesizeBase?: number;\n acceptedFiles?: string;\n forceFallback?: boolean;\n addRemoveLinks?: boolean;\n uploadMultiple?: boolean;\n parallelUploads?: number;\n resizeWidth?: number;\n resizeHeight?: number;\n resizeMethod?: 'contain' | 'crop';\n resizeQuality?: number;\n resizeMimeType?: string;\n thumbnailWidth?: number;\n thumbnailHeight?: number;\n thumbnailMethod?: 'contain' | 'crop';\n previewTemplate?: string;\n autoQueue?: boolean;\n autoProcessQueue?: boolean;\n ignoreHiddenFiles?: boolean;\n maxThumbnailFilesize?: number;\n createImageThumbnails?: boolean;\n\n chunking?: boolean;\n chunkSize?: number;\n retryChunks?: boolean;\n forceChunking?: boolean;\n retryChunksLimit?: number;\n parallelChunkUploads?: boolean;\n\n dictFileSizeUnits?: any;\n\n dictDefaultMessage?: string;\n dictFallbackMessage?: string;\n\n dictFileTooBig?: string;\n dictResponseError?: string;\n dictInvalidFileType?: string;\n\n dictRemoveFile?: string;\n dictCancelUpload?: string;\n dictUploadCanceled?: string;\n dictFallbackText?: string;\n dictMaxFilesExceeded?: string;\n dictRemoveFileConfirmation?: string;\n dictCancelUploadConfirmation?: string;\n\n constructor(config: DropzoneConfigInterface = {}) {\n this.assign(config);\n }\n\n assign(config: DropzoneConfigInterface | any = {}, target?: any) {\n target = target || this;\n\n for (const key in config) {\n if (config[key] != null && !(Array.isArray(config[key])) &&\n typeof config[key] === 'object' && !(config[key] instanceof HTMLElement)) {\n target[key] = {};\n\n this.assign(config[key], target[key]);\n } else {\n target[key] = config[key];\n }\n }\n }\n}\n\nexport type DropzoneUrlFunction = (files: any) => string;\nexport type DropzoneMethodFunction = (files: any) => string;\n\nexport type DropzoneParamsFunction = (files: any, xhr: any, chunk?: any) => any;\nexport type DropzoneHeadersFunction = () => any;\n\nexport type DropzoneInitFunction = () => any;\nexport type DropzoneFallbackFunction = () => HTMLElement;\n\nexport type DropzoneAcceptFunction = (file: File, done: (error?: string | Error) => void) => any;\nexport type DropzoneResizeFunction = (file: File, width: number, height: number, resizeMethod: string) => any;\n\nexport type DropzoneRenameFileFunction = (file: File) => string;\nexport type DropzoneTransformFileFunction = (file: File, done: (file?: string | Blob) => void) => any;\nexport type DropzoneChunksUploadedFunction = (file: File, done: (error?: string | Error) => void) => any;\n","import _dz from 'dropzone';\n// Fix until Dropzone types are updated\nconst Dropzone: typeof _dz = (_dz as any).Dropzone;\n\nimport { PLATFORM_ID } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { NgZone, Inject, Optional, ElementRef, Renderer2, Directive,\n OnInit, OnDestroy, DoCheck, OnChanges, Input, Output, EventEmitter,\n SimpleChanges, KeyValueDiffer, KeyValueDiffers } from '@angular/core';\n\nimport { DROPZONE_CONFIG, DropzoneConfig, DropzoneConfigInterface,\n DropzoneEvent, DropzoneEvents } from './dropzone.interfaces';\n\n@Directive({\n selector: '[dropzone]',\n exportAs: 'ngxDropzone'\n})\nexport class DropzoneDirective implements OnInit, OnDestroy, DoCheck, OnChanges {\n private instance: any;\n\n private configDiff: KeyValueDiffer<string, any> | null = null;\n\n @Input() disabled: boolean = false;\n\n @Input('dropzone') config?: DropzoneConfigInterface;\n\n @Output('init' ) DZ_INIT = new EventEmitter<any>();\n\n @Output('error' ) DZ_ERROR = new EventEmitter<any>();\n @Output('success' ) DZ_SUCCESS = new EventEmitter<any>();\n @Output('sending' ) DZ_SENDING = new EventEmitter<any>();\n @Output('canceled' ) DZ_CANCELED = new EventEmitter<any>();\n @Output('complete' ) DZ_COMPLETE = new EventEmitter<any>();\n @Output('processing' ) DZ_PROCESSING = new EventEmitter<any>();\n\n @Output('drop' ) DZ_DROP = new EventEmitter<any>();\n @Output('dragStart' ) DZ_DRAGSTART = new EventEmitter<any>();\n @Output('dragEnd' ) DZ_DRAGEND = new EventEmitter<any>();\n @Output('dragEnter' ) DZ_DRAGENTER = new EventEmitter<any>();\n @Output('dragOver' ) DZ_DRAGOVER = new EventEmitter<any>();\n @Output('dragLeave' ) DZ_DRAGLEAVE = new EventEmitter<any>();\n\n @Output('thumbnail' ) DZ_THUMBNAIL = new EventEmitter<any>();\n @Output('addedFile' ) DZ_ADDEDFILE = new EventEmitter<any>();\n @Output('addedFiles' ) DZ_ADDEDFILES = new EventEmitter<any>();\n @Output('removedFile' ) DZ_REMOVEDFILE = new EventEmitter<any>();\n @Output('uploadProgress' ) DZ_UPLOADPROGRESS = new EventEmitter<any>();\n @Output('maxFilesReached' ) DZ_MAXFILESREACHED = new EventEmitter<any>();\n @Output('maxFilesExceeded' ) DZ_MAXFILESEXCEEDED = new EventEmitter<any>();\n\n @Output('errorMultiple' ) DZ_ERRORMULTIPLE = new EventEmitter<any>();\n @Output('successMultiple' ) DZ_SUCCESSMULTIPLE = new EventEmitter<any>();\n @Output('sendingMultiple' ) DZ_SENDINGMULTIPLE = new EventEmitter<any>();\n @Output('canceledMultiple' ) DZ_CANCELEDMULTIPLE = new EventEmitter<any>();\n @Output('completeMultiple' ) DZ_COMPLETEMULTIPLE = new EventEmitter<any>();\n @Output('processingMultiple' ) DZ_PROCESSINGMULTIPLE = new EventEmitter<any>();\n\n @Output('reset' ) DZ_RESET = new EventEmitter<any>();\n @Output('queueComplete' ) DZ_QUEUECOMPLETE = new EventEmitter<any>();\n @Output('totalUploadProgress' ) DZ_TOTALUPLOADPROGRESS = new EventEmitter<any>();\n\n constructor(private zone: NgZone, private renderer: Renderer2, private elementRef: ElementRef,\n private differs: KeyValueDiffers, @Inject(PLATFORM_ID) private platformId: Object,\n @Optional() @Inject(DROPZONE_CONFIG) private defaults: DropzoneConfigInterface) {\n const dz = Dropzone;\n\n dz.autoDiscover = false;\n }\n\n ngOnInit(): void {\n if (!isPlatformBrowser(this.platformId)) {\n return;\n }\n\n const params = new DropzoneConfig(this.defaults);\n\n params.assign(this.config); // Custom configuration\n\n this.renderer.addClass(this.elementRef.nativeElement,\n (params.maxFiles === 1) ? 'dz-single' : 'dz-multiple');\n\n this.renderer.removeClass(this.elementRef.nativeElement,\n (params.maxFiles === 1) ? 'dz-multiple' : 'dz-single');\n\n this.zone.runOutsideAngular(() => {\n this.instance = new Dropzone(this.elementRef.nativeElement, params);\n });\n\n if (this.disabled) {\n this.instance.disable();\n }\n\n if (this.DZ_INIT.observers.length) {\n this.zone.run(() => {\n this.DZ_INIT.emit(this.instance);\n });\n }\n\n // Add auto reset handling for events\n this.instance.on('success', () => {\n if (params.autoReset != null) {\n setTimeout(() => this.reset(), params.autoReset);\n }\n });\n\n this.instance.on('error', () => {\n if (params.errorReset != null) {\n setTimeout(() => this.reset(), params.errorReset);\n }\n });\n\n this.instance.on('canceled', () => {\n if (params.cancelReset != null) {\n setTimeout(() => this.reset(), params.cancelReset);\n }\n });\n\n // Add native Dropzone event handling\n DropzoneEvents.forEach((eventName: DropzoneEvent) => {\n this.instance.on(eventName.toLowerCase(), (...args: any[]) => {\n args = (args.length === 1) ? args[0] : args;\n\n const output = `DZ_${eventName.toUpperCase()}`;\n\n const emitter = this[output as keyof DropzoneDirective] as EventEmitter<any>;\n\n if (emitter.observers.length > 0) {\n this.zone.run(() => {\n emitter.emit(args);\n });\n }\n });\n });\n\n if (!this.configDiff) {\n this.configDiff = this.differs.find(this.config || {}).create();\n\n this.configDiff.diff(this.config || {});\n }\n }\n\n ngOnDestroy(): void {\n if (this.instance) {\n this.zone.runOutsideAngular(() => {\n this.instance.destroy();\n });\n\n this.instance = null;\n }\n }\n\n ngDoCheck(): void {\n if (!this.disabled && this.configDiff) {\n const changes = this.configDiff.diff(this.config || {});\n\n if (changes && this.instance) {\n this.ngOnDestroy();\n\n this.ngOnInit();\n }\n }\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (this.instance && changes['disabled']) {\n if (changes['disabled'].currentValue !== changes['disabled'].previousValue) {\n if (changes['disabled'].currentValue === false) {\n this.zone.runOutsideAngular(() => {\n this.instance.enable();\n });\n } else if (changes['disabled'].currentValue === true) {\n this.zone.runOutsideAngular(() => {\n this.instance.disable();\n });\n }\n }\n }\n }\n\n public dropzone(): any {\n return this.instance;\n }\n\n public reset(cancel?: boolean): void {\n if (this.instance) {\n this.zone.runOutsideAngular(() => {\n this.instance.removeAllFiles(cancel);\n });\n }\n }\n}\n","import { PLATFORM_ID } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { Inject, Component,\n OnInit, Input, Output, EventEmitter,\n ViewChild, ViewEncapsulation } from '@angular/core';\n\nimport { DropzoneDirective } from './dropzone.directive';\n\nimport { DropzoneEvent, DropzoneEvents, DropzoneConfigInterface } from './dropzone.interfaces';\n\n@Component({\n selector: 'dropzone',\n exportAs: 'ngxDropzone',\n templateUrl: './dropzone.component.html',\n styleUrls: [\n './dropzone.component.css',\n '../../../../node_modules/dropzone/dist/min/dropzone.min.css'\n ],\n encapsulation: ViewEncapsulation.None\n})\nexport class DropzoneComponent implements OnInit {\n @Input() disabled: boolean = false;\n\n @Input() config?: DropzoneConfigInterface;\n\n @Input() message: string = 'Click or drag files to upload';\n @Input() placeholder: string = '';\n\n @Input() useDropzoneClass: boolean = true;\n\n @Output('init' ) DZ_INIT = new EventEmitter<any>();\n\n @Output('error' ) DZ_ERROR = new EventEmitter<any>();\n @Output('success' ) DZ_SUCCESS = new EventEmitter<any>();\n @Output('sending' ) DZ_SENDING = new EventEmitter<any>();\n @Output('canceled' ) DZ_CANCELED = new EventEmitter<any>();\n @Output('complete' ) DZ_COMPLETE = new EventEmitter<any>();\n @Output('processing' ) DZ_PROCESSING = new EventEmitter<any>();\n\n @Output('drop' ) DZ_DROP = new EventEmitter<any>();\n @Output('dragStart' ) DZ_DRAGSTART = new EventEmitter<any>();\n @Output('dragEnd' ) DZ_DRAGEND = new EventEmitter<any>();\n @Output('dragEnter' ) DZ_DRAGENTER = new EventEmitter<any>();\n @Output('dragOver' ) DZ_DRAGOVER = new EventEmitter<any>();\n @Output('dragLeave' ) DZ_DRAGLEAVE = new EventEmitter<any>();\n\n @Output('thumbnail' ) DZ_THUMBNAIL = new EventEmitter<any>();\n @Output('addedFile' ) DZ_ADDEDFILE = new EventEmitter<any>();\n @Output('addedFiles' ) DZ_ADDEDFILES = new EventEmitter<any>();\n @Output('removedFile' ) DZ_REMOVEDFILE = new EventEmitter<any>();\n @Output('uploadProgress' ) DZ_UPLOADPROGRESS = new EventEmitter<any>();\n @Output('maxFilesReached' ) DZ_MAXFILESREACHED = new EventEmitter<any>();\n @Output('maxFilesExceeded' ) DZ_MAXFILESEXCEEDED = new EventEmitter<any>();\n\n @Output('errorMultiple' ) DZ_ERRORMULTIPLE = new EventEmitter<any>();\n @Output('successMultiple' ) DZ_SUCCESSMULTIPLE = new EventEmitter<any>();\n @Output('sendingMultiple' ) DZ_SENDINGMULTIPLE = new EventEmitter<any>();\n @Output('canceledMultiple' ) DZ_CANCELEDMULTIPLE = new EventEmitter<any>();\n @Output('completeMultiple' ) DZ_COMPLETEMULTIPLE = new EventEmitter<any>();\n @Output('processingMultiple' ) DZ_PROCESSINGMULTIPLE = new EventEmitter<any>();\n\n @Output('reset' ) DZ_RESET = new EventEmitter<any>();\n @Output('queueComplete' ) DZ_QUEUECOMPLETE = new EventEmitter<any>();\n @Output('totalUploadProgress' ) DZ_TOTALUPLOADPROGRESS = new EventEmitter<any>();\n\n @ViewChild(DropzoneDirective, { static: true }) directiveRef?: DropzoneDirective;\n\n constructor(@Inject(PLATFORM_ID) private platformId: Object) {}\n\n ngOnInit(): void {\n if (!isPlatformBrowser(this.platformId)) {\n return;\n }\n\n window.setTimeout(() => {\n DropzoneEvents.forEach((eventName: DropzoneEvent) => {\n if (this.directiveRef) {\n const output = `DZ_${eventName.toUpperCase()}`;\n\n const directiveOutput = output as keyof DropzoneDirective;\n const componentOutput = output as keyof DropzoneComponent;\n\n this.directiveRef[directiveOutput] = this[componentOutput] as any;\n }\n });\n }, 0);\n }\n\n public getPlaceholder(): string {\n return 'url(' + encodeURI(this.placeholder) + ')';\n }\n}\n","<div class=\"dz-wrapper\" [class.dropzone]=\"useDropzoneClass\" [dropzone]=\"config\" [disabled]=\"disabled\" (init)=\"DZ_INIT.emit($event)\">\n <div class=\"dz-message\" [class.disabled]=\"disabled\" [class.dz-placeholder]=\"placeholder\">\n <div class=\"dz-text\" [innerHTML]=\"config?.dictDefaultMessage || message\"></div>\n\n <div *ngIf=\"placeholder\" class=\"dz-image\" [style.background-image]=\"getPlaceholder()\"></div>\n </div>\n\n <ng-content></ng-content>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { DropzoneComponent } from './dropzone.component';\nimport { DropzoneDirective } from './dropzone.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [DropzoneComponent, DropzoneDirective],\n exports: [CommonModule, DropzoneComponent, DropzoneDirective]\n})\nexport class DropzoneModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAEa,eAAe,GAAG,IAAI,cAAc,CAAC,iBAAiB,EAAE;AAQ9D,MAAM,cAAc,GAAoB;IAC7C,OAAO;IACP,SAAS;IACT,SAAS;IACT,UAAU;IACV,UAAU;IACV,YAAY;IAEZ,MAAM;IACN,WAAW;IACX,SAAS;IACT,WAAW;IACX,UAAU;IACV,WAAW;IAEX,WAAW;IACX,WAAW;IACX,YAAY;IACZ,aAAa;IACb,gBAAgB;IAChB,iBAAiB;IACjB,kBAAkB;IAElB,eAAe;IACf,iBAAiB;IACjB,iBAAiB;IACjB,kBAAkB;IAClB,kBAAkB;IAClB,oBAAoB;IAEpB,OAAO;IACP,eAAe;IACf,qBAAqB;CACtB,CAAC;MA+EW,cAAc;IA4EzB,YAAY,SAAkC,EAAE;QAC9C,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;KACrB;IAED,MAAM,CAAC,SAAwC,EAAE,EAAE,MAAY;QAC7D,MAAM,GAAG,MAAM,IAAI,IAAI,CAAC;QAExB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;YACxB,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;gBACtD,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,QAAQ,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,YAAY,WAAW,CAAC,EAAE;gBAC1E,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;gBAEjB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;aACvC;iBAAM;gBACL,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,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,YAAY,EAAE,iBAAiB,EAAE,iBAAiB;4GAEjD,cAAc,YAJhB,CAAC,YAAY,CAAC,EAEb,YAAY;2FAEX,cAAc;kBAL1B,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;oBACpD,OAAO,EAAE,CAAC,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,CAAC;iBAC9D;;;ACVD;;;;;;"}
|
|
1
|
+
{"version":3,"file":"nxt-dropzone-wrapper.mjs","sources":["../../../packages/dropzone-wrapper/src/lib/dropzone.interfaces.ts","../../../packages/dropzone-wrapper/src/lib/dropzone.directive.ts","../../../packages/dropzone-wrapper/src/lib/dropzone.component.ts","../../../packages/dropzone-wrapper/src/lib/dropzone.component.html","../../../packages/dropzone-wrapper/src/lib/dropzone.module.ts","../../../packages/dropzone-wrapper/src/nxt-dropzone-wrapper.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core'\n\nexport const NXT_DROPZONE_CONFIG = new InjectionToken('NXT_DROPZONE_CONFIG')\n\nexport type DropzoneEvent = 'error' | 'success' | 'sending' | 'canceled' | 'complete' |\n 'processing' | 'drop' | 'dragStart' | 'dragEnd' | 'dragEnter' | 'dragOver' | 'dragLeave' |\n 'thumbnail' | 'addedFile' | 'addedFiles' | 'removedFile' | 'uploadProgress' | 'maxFilesReached' |\n 'maxFilesExceeded' | 'errorMultiple' | 'successMultiple' | 'sendingMultiple' | 'canceledMultiple' |\n 'completeMultiple' | 'processingMultiple' | 'reset' | 'queueComplete' | 'totalUploadProgress'\n\nexport const DropzoneEvents: DropzoneEvent[] = [\n 'error',\n 'success',\n 'sending',\n 'canceled',\n 'complete',\n 'processing',\n\n 'drop',\n 'dragStart',\n 'dragEnd',\n 'dragEnter',\n 'dragOver',\n 'dragLeave',\n\n 'thumbnail',\n 'addedFile',\n 'addedFiles',\n 'removedFile',\n 'uploadProgress',\n 'maxFilesReached',\n 'maxFilesExceeded',\n\n 'errorMultiple',\n 'successMultiple',\n 'sendingMultiple',\n 'canceledMultiple',\n 'completeMultiple',\n 'processingMultiple',\n\n 'reset',\n 'queueComplete',\n 'totalUploadProgress'\n]\n\nexport interface DropzoneConfigInterface {\n timeout?: number\n\n autoReset?: number | null\n errorReset?: number | null\n cancelReset?: number | null\n\n url?: string | DropzoneUrlFunction\n method?: string | DropzoneMethodFunction\n\n params?: any | DropzoneParamsFunction\n headers?: any | DropzoneHeadersFunction\n\n init?: DropzoneInitFunction\n accept?: DropzoneAcceptFunction\n resize?: DropzoneResizeFunction\n fallback?: DropzoneFallbackFunction\n renameFile?: DropzoneRenameFileFunction\n transformFile?: DropzoneTransformFileFunction\n chunksUploaded?: DropzoneChunksUploadedFunction\n\n withCredentials?: boolean\n\n previewsContainer?: any\n hiddenInputContainer?: any\n\n clickable?: string | string[] | boolean\n paramName?: any\n capture?: string\n maxFiles?: number\n maxFilesize?: number\n filesizeBase?: number\n acceptedFiles?: string\n forceFallback?: boolean\n addRemoveLinks?: boolean\n uploadMultiple?: boolean\n parallelUploads?: number\n resizeWidth?: number\n resizeHeight?: number\n resizeMethod?: 'contain' | 'crop'\n resizeQuality?: number\n resizeMimeType?: string\n thumbnailWidth?: number\n thumbnailHeight?: number\n thumbnailMethod?: 'contain' | 'crop'\n previewTemplate?: string\n autoQueue?: boolean\n autoProcessQueue?: boolean\n ignoreHiddenFiles?: boolean\n maxThumbnailFilesize?: number\n createImageThumbnails?: boolean\n\n chunking?: boolean\n chunkSize?: number\n retryChunks?: boolean\n forceChunking?: boolean\n retryChunksLimit?: number\n parallelChunkUploads?: boolean\n\n dictFileSizeUnits?: any\n\n dictDefaultMessage?: string\n dictFallbackMessage?: string\n\n dictFileTooBig?: string\n dictResponseError?: string\n dictInvalidFileType?: string\n\n dictRemoveFile?: string\n dictCancelUpload?: string\n dictUploadCanceled?: string\n dictFallbackText?: string\n dictMaxFilesExceeded?: string\n dictRemoveFileConfirmation?: string\n dictCancelUploadConfirmation?: string\n}\n\nexport class DropzoneConfig implements DropzoneConfigInterface {\n timeout?: number\n\n autoReset?: number\n errorReset?: number\n cancelReset?: number\n\n url?: string | DropzoneUrlFunction\n method?: string | DropzoneMethodFunction\n\n params?: any | DropzoneParamsFunction\n headers?: any | DropzoneHeadersFunction\n\n init?: DropzoneInitFunction\n accept?: DropzoneAcceptFunction\n resize?: DropzoneResizeFunction\n fallback?: DropzoneFallbackFunction\n renameFile?: DropzoneRenameFileFunction\n transformFile?: DropzoneTransformFileFunction\n chunksUploaded?: DropzoneChunksUploadedFunction\n\n withCredentials?: boolean\n\n previewsContainer?: any\n hiddenInputContainer?: any\n\n clickable?: string | string[] | boolean\n paramName?: any\n capture?: string\n maxFiles?: number\n maxFilesize?: number\n filesizeBase?: number\n acceptedFiles?: string\n forceFallback?: boolean\n addRemoveLinks?: boolean\n uploadMultiple?: boolean\n parallelUploads?: number\n resizeWidth?: number\n resizeHeight?: number\n resizeMethod?: 'contain' | 'crop'\n resizeQuality?: number\n resizeMimeType?: string\n thumbnailWidth?: number\n thumbnailHeight?: number\n thumbnailMethod?: 'contain' | 'crop'\n previewTemplate?: string\n autoQueue?: boolean\n autoProcessQueue?: boolean\n ignoreHiddenFiles?: boolean\n maxThumbnailFilesize?: number\n createImageThumbnails?: boolean\n\n chunking?: boolean\n chunkSize?: number\n retryChunks?: boolean\n forceChunking?: boolean\n retryChunksLimit?: number\n parallelChunkUploads?: boolean\n\n dictFileSizeUnits?: any\n\n dictDefaultMessage?: string\n dictFallbackMessage?: string\n\n dictFileTooBig?: string\n dictResponseError?: string\n dictInvalidFileType?: string\n\n dictRemoveFile?: string\n dictCancelUpload?: string\n dictUploadCanceled?: string\n dictFallbackText?: string\n dictMaxFilesExceeded?: string\n dictRemoveFileConfirmation?: string\n dictCancelUploadConfirmation?: string\n\n constructor(config: DropzoneConfigInterface = {}) {\n this.assign(config)\n }\n\n assign(config: DropzoneConfigInterface | any = {}, target?: any) {\n target = target || this\n\n for (const key in config) {\n if (config[key] != null && !(Array.isArray(config[key])) &&\n typeof config[key] === 'object' && !(config[key] instanceof HTMLElement)) {\n target[key] = {}\n\n this.assign(config[key], target[key])\n } else {\n target[key] = config[key]\n }\n }\n }\n}\n\nexport type DropzoneUrlFunction = (files: any) => string\nexport type DropzoneMethodFunction = (files: any) => string\n\nexport type DropzoneParamsFunction = (files: any, xhr: any, chunk?: any) => any\nexport type DropzoneHeadersFunction = () => any\n\nexport type DropzoneInitFunction = () => any\nexport type DropzoneFallbackFunction = () => HTMLElement\n\nexport type DropzoneAcceptFunction = (file: File, done: (error?: string | Error) => void) => any\nexport type DropzoneResizeFunction = (file: File, width: number, height: number, resizeMethod: string) => any\n\nexport type DropzoneRenameFileFunction = (file: File) => string\nexport type DropzoneTransformFileFunction = (file: File, done: (file: string | Blob) => void) => any\nexport type DropzoneChunksUploadedFunction = (file: File, done: (error?: string | Error) => void) => any\n","/* eslint-disable @angular-eslint/no-output-rename */\n/* eslint-disable @angular-eslint/no-conflicting-lifecycle */\nimport { isPlatformBrowser } from '@angular/common'\nimport { Directive, DoCheck, ElementRef, EventEmitter, Inject, Input, KeyValueDiffer, KeyValueDiffers, NgZone, OnChanges, OnDestroy, OnInit, Optional, Output, PLATFORM_ID, Renderer2, SimpleChanges } from '@angular/core'\nimport Dropzone from 'dropzone'\nimport { DropzoneConfig, DropzoneConfigInterface, DropzoneEvent, DropzoneEvents, NXT_DROPZONE_CONFIG } from './dropzone.interfaces'\n\n@Directive({\n selector: '[nxtDropzone]',\n exportAs: 'nxtDropzone'\n})\nexport class DropzoneDirective implements OnInit, OnDestroy, DoCheck, OnChanges {\n private instance: any\n\n private configDiff: KeyValueDiffer<string, any> | null = null\n\n @Input() disabled: boolean = false\n\n @Input('nxtDropzone') config?: DropzoneConfigInterface\n\n @Output('init') DZ_INIT = new EventEmitter<any>()\n\n @Output('error') DZ_ERROR = new EventEmitter<any>()\n @Output('success') DZ_SUCCESS = new EventEmitter<any>()\n @Output('sending') DZ_SENDING = new EventEmitter<any>()\n @Output('canceled') DZ_CANCELED = new EventEmitter<any>()\n @Output('complete') DZ_COMPLETE = new EventEmitter<any>()\n @Output('processing') DZ_PROCESSING = new EventEmitter<any>()\n\n @Output('drop') DZ_DROP = new EventEmitter<any>()\n @Output('dragStart') DZ_DRAGSTART = new EventEmitter<any>()\n @Output('dragEnd') DZ_DRAGEND = new EventEmitter<any>()\n @Output('dragEnter') DZ_DRAGENTER = new EventEmitter<any>()\n @Output('dragOver') DZ_DRAGOVER = new EventEmitter<any>()\n @Output('dragLeave') DZ_DRAGLEAVE = new EventEmitter<any>()\n\n @Output('thumbnail') DZ_THUMBNAIL = new EventEmitter<any>()\n @Output('addedFile') DZ_ADDEDFILE = new EventEmitter<any>()\n @Output('addedFiles') DZ_ADDEDFILES = new EventEmitter<any>()\n @Output('removedFile') DZ_REMOVEDFILE = new EventEmitter<any>()\n @Output('uploadProgress') DZ_UPLOADPROGRESS = new EventEmitter<any>()\n @Output('maxFilesReached') DZ_MAXFILESREACHED = new EventEmitter<any>()\n @Output('maxFilesExceeded') DZ_MAXFILESEXCEEDED = new EventEmitter<any>()\n\n @Output('errorMultiple') DZ_ERRORMULTIPLE = new EventEmitter<any>()\n @Output('successMultiple') DZ_SUCCESSMULTIPLE = new EventEmitter<any>()\n @Output('sendingMultiple') DZ_SENDINGMULTIPLE = new EventEmitter<any>()\n @Output('canceledMultiple') DZ_CANCELEDMULTIPLE = new EventEmitter<any>()\n @Output('completeMultiple') DZ_COMPLETEMULTIPLE = new EventEmitter<any>()\n @Output('processingMultiple') DZ_PROCESSINGMULTIPLE = new EventEmitter<any>()\n\n @Output('reset') DZ_RESET = new EventEmitter<any>()\n @Output('queueComplete') DZ_QUEUECOMPLETE = new EventEmitter<any>()\n @Output('totalUploadProgress') DZ_TOTALUPLOADPROGRESS = new EventEmitter<any>()\n\n constructor(\n private readonly zone: NgZone,\n private readonly renderer: Renderer2,\n private readonly elementRef: ElementRef<HTMLElement>,\n private readonly differs: KeyValueDiffers,\n @Inject(PLATFORM_ID)\n // eslint-disable-next-line @typescript-eslint/ban-types\n private readonly platformId: Object,\n @Optional()\n @Inject(NXT_DROPZONE_CONFIG)\n private readonly defaults?: DropzoneConfigInterface | undefined\n ) {\n const dz = Dropzone\n\n dz.autoDiscover = false\n }\n\n ngOnInit(): void {\n if (!isPlatformBrowser(this.platformId)) {\n return\n }\n\n const params = new DropzoneConfig(this.defaults)\n\n params.assign(this.config) // Custom configuration\n\n this.renderer.addClass(this.elementRef.nativeElement,\n (params.maxFiles === 1) ? 'dz-single' : 'dz-multiple')\n\n this.renderer.removeClass(this.elementRef.nativeElement,\n (params.maxFiles === 1) ? 'dz-multiple' : 'dz-single')\n\n this.zone.runOutsideAngular(() => {\n this.instance = new Dropzone(this.elementRef.nativeElement, params)\n })\n\n if (this.disabled) {\n this.instance.disable()\n }\n\n if (this.DZ_INIT.observed) {\n this.zone.run(() => {\n this.DZ_INIT.emit(this.instance)\n })\n }\n\n // Add auto reset handling for events\n this.instance.on('success', () => {\n if (params.autoReset != null) {\n setTimeout(() => this.reset(), params.autoReset)\n }\n })\n\n this.instance.on('error', () => {\n if (params.errorReset != null) {\n setTimeout(() => this.reset(), params.errorReset)\n }\n })\n\n this.instance.on('canceled', () => {\n if (params.cancelReset != null) {\n setTimeout(() => this.reset(), params.cancelReset)\n }\n })\n\n // Add native Dropzone event handling\n DropzoneEvents.forEach((eventName: DropzoneEvent) => {\n this.instance.on(eventName.toLowerCase(), (...args: any[]) => {\n args = (args.length === 1) ? args[0] : args\n\n const output = `DZ_${eventName.toUpperCase()}`\n\n const emitter = this[output as keyof DropzoneDirective] as EventEmitter<any>\n\n if (emitter.observed) {\n this.zone.run(() => {\n emitter.emit(args)\n })\n }\n })\n })\n\n if (!this.configDiff) {\n this.configDiff = this.differs.find(this.config || {}).create()\n\n this.configDiff.diff(this.config || {})\n }\n }\n\n ngOnDestroy(): void {\n if (this.instance) {\n this.zone.runOutsideAngular(() => {\n this.instance.destroy()\n })\n\n this.instance = null\n }\n }\n\n ngDoCheck(): void {\n if (!this.disabled && this.configDiff) {\n const changes = this.configDiff.diff(this.config || {})\n\n if (changes && this.instance) {\n this.ngOnDestroy()\n\n this.ngOnInit()\n }\n }\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (this.instance && changes['disabled']) {\n if (changes['disabled'].currentValue !== changes['disabled'].previousValue) {\n if (changes['disabled'].currentValue === false) {\n this.zone.runOutsideAngular(() => {\n this.instance.enable()\n })\n } else if (changes['disabled'].currentValue === true) {\n this.zone.runOutsideAngular(() => {\n this.instance.disable()\n })\n }\n }\n }\n }\n\n public dropzone(): any {\n return this.instance\n }\n\n public reset(cancel?: boolean): void {\n if (this.instance) {\n this.zone.runOutsideAngular(() => {\n this.instance.removeAllFiles(cancel)\n })\n }\n }\n}\n","/* eslint-disable @angular-eslint/no-output-rename */\nimport { isPlatformBrowser } from '@angular/common'\nimport { Component, EventEmitter, Inject, Input, OnInit, Output, PLATFORM_ID, ViewChild, ViewEncapsulation } from '@angular/core'\nimport { DropzoneDirective } from './dropzone.directive'\nimport { DropzoneConfigInterface, DropzoneEvent, DropzoneEvents } from './dropzone.interfaces'\n\n@Component({\n selector: 'nxt-dropzone',\n exportAs: 'nxtDropzone',\n templateUrl: './dropzone.component.html',\n styleUrls: [\n './dropzone.component.scss',\n '../../../../node_modules/dropzone/dist/dropzone.css'\n ],\n encapsulation: ViewEncapsulation.None\n})\nexport class DropzoneComponent implements OnInit {\n @Input() disabled: boolean = false\n\n @Input() config?: DropzoneConfigInterface\n\n @Input() message: string = 'Click or drag files to upload'\n @Input() placeholder: string = ''\n\n @Input() useDropzoneClass: boolean = true\n\n @Output('init') DZ_INIT = new EventEmitter<any>()\n\n @Output('error') DZ_ERROR = new EventEmitter<any>()\n @Output('success') DZ_SUCCESS = new EventEmitter<any>()\n @Output('sending') DZ_SENDING = new EventEmitter<any>()\n @Output('canceled') DZ_CANCELED = new EventEmitter<any>()\n @Output('complete') DZ_COMPLETE = new EventEmitter<any>()\n @Output('processing') DZ_PROCESSING = new EventEmitter<any>()\n\n @Output('drop') DZ_DROP = new EventEmitter<any>()\n @Output('dragStart') DZ_DRAGSTART = new EventEmitter<any>()\n @Output('dragEnd') DZ_DRAGEND = new EventEmitter<any>()\n @Output('dragEnter') DZ_DRAGENTER = new EventEmitter<any>()\n @Output('dragOver') DZ_DRAGOVER = new EventEmitter<any>()\n @Output('dragLeave') DZ_DRAGLEAVE = new EventEmitter<any>()\n\n @Output('thumbnail') DZ_THUMBNAIL = new EventEmitter<any>()\n @Output('addedFile') DZ_ADDEDFILE = new EventEmitter<any>()\n @Output('addedFiles') DZ_ADDEDFILES = new EventEmitter<any>()\n @Output('removedFile') DZ_REMOVEDFILE = new EventEmitter<any>()\n @Output('uploadProgress') DZ_UPLOADPROGRESS = new EventEmitter<any>()\n @Output('maxFilesReached') DZ_MAXFILESREACHED = new EventEmitter<any>()\n @Output('maxFilesExceeded') DZ_MAXFILESEXCEEDED = new EventEmitter<any>()\n\n @Output('errorMultiple') DZ_ERRORMULTIPLE = new EventEmitter<any>()\n @Output('successMultiple') DZ_SUCCESSMULTIPLE = new EventEmitter<any>()\n @Output('sendingMultiple') DZ_SENDINGMULTIPLE = new EventEmitter<any>()\n @Output('canceledMultiple') DZ_CANCELEDMULTIPLE = new EventEmitter<any>()\n @Output('completeMultiple') DZ_COMPLETEMULTIPLE = new EventEmitter<any>()\n @Output('processingMultiple') DZ_PROCESSINGMULTIPLE = new EventEmitter<any>()\n\n @Output('reset') DZ_RESET = new EventEmitter<any>()\n @Output('queueComplete') DZ_QUEUECOMPLETE = new EventEmitter<any>()\n @Output('totalUploadProgress') DZ_TOTALUPLOADPROGRESS = new EventEmitter<any>()\n\n @ViewChild(DropzoneDirective, { static: true }) directiveRef?: DropzoneDirective\n\n constructor(\n // eslint-disable-next-line @typescript-eslint/ban-types\n @Inject(PLATFORM_ID) private readonly platformId: Object\n ) { }\n\n ngOnInit(): void {\n if (!isPlatformBrowser(this.platformId)) {\n return\n }\n\n setTimeout(() => {\n DropzoneEvents.forEach((eventName: DropzoneEvent) => {\n if (this.directiveRef) {\n const output = `DZ_${eventName.toUpperCase()}`\n\n const directiveOutput = output as keyof DropzoneDirective\n const componentOutput = output as keyof DropzoneComponent\n\n this.directiveRef[directiveOutput] = this[componentOutput] as any\n }\n })\n }, 0)\n }\n\n public getPlaceholder(): string {\n return 'url(' + encodeURI(this.placeholder) + ')'\n }\n}\n","<div class=\"dz-wrapper\"\n [class.dropzone]=\"useDropzoneClass\"\n [nxtDropzone]=\"config\"\n [disabled]=\"disabled\"\n (init)=\"DZ_INIT.emit($event)\">\n <div class=\"dz-message\"\n [class.disabled]=\"disabled\"\n [class.dz-placeholder]=\"placeholder\">\n <div class=\"dz-text\"\n [innerHTML]=\"config?.dictDefaultMessage || message\"></div>\n\n <div *ngIf=\"placeholder\"\n class=\"dz-image\"\n [style.background-image]=\"getPlaceholder()\"></div>\n </div>\n\n <ng-content></ng-content>\n</div>\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\nimport { DropzoneComponent } from './dropzone.component'\nimport { DropzoneDirective } from './dropzone.directive'\n\n@NgModule({\n declarations: [\n DropzoneComponent,\n DropzoneDirective\n ],\n imports: [\n CommonModule\n ],\n exports: [\n DropzoneComponent,\n DropzoneDirective\n ]\n})\nexport class DropzoneModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2.DropzoneDirective"],"mappings":";;;;;;MAEa,mBAAmB,GAAG,IAAI,cAAc,CAAC,qBAAqB,EAAC;AAQrE,MAAM,cAAc,GAAoB;IAC3C,OAAO;IACP,SAAS;IACT,SAAS;IACT,UAAU;IACV,UAAU;IACV,YAAY;IAEZ,MAAM;IACN,WAAW;IACX,SAAS;IACT,WAAW;IACX,UAAU;IACV,WAAW;IAEX,WAAW;IACX,WAAW;IACX,YAAY;IACZ,aAAa;IACb,gBAAgB;IAChB,iBAAiB;IACjB,kBAAkB;IAElB,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,IAAI,EAAE,CAAA;;;ME3CrC,cAAc,CAAA;;2GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAd,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,iBAXnB,iBAAiB;QACjB,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAGjB,YAAY,CAAA,EAAA,OAAA,EAAA,CAGZ,iBAAiB;QACjB,iBAAiB,CAAA,EAAA,CAAA,CAAA;AAGZ,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAPnB,YAAY,CAAA,EAAA,CAAA,CAAA;2FAOP,cAAc,EAAA,UAAA,EAAA,CAAA;kBAb1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE;wBACV,iBAAiB;wBACjB,iBAAiB;AACpB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,YAAY;AACf,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,iBAAiB;wBACjB,iBAAiB;AACpB,qBAAA;AACJ,iBAAA,CAAA;;;ACjBD;;AAEG;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { DropzoneDirective } from './dropzone.directive';
|
|
3
3
|
import { DropzoneConfigInterface } from './dropzone.interfaces';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DropzoneComponent implements OnInit {
|
|
6
|
-
private platformId;
|
|
6
|
+
private readonly platformId;
|
|
7
7
|
disabled: boolean;
|
|
8
8
|
config?: DropzoneConfigInterface;
|
|
9
9
|
message: string;
|
|
@@ -43,6 +43,5 @@ export declare class DropzoneComponent implements OnInit {
|
|
|
43
43
|
ngOnInit(): void;
|
|
44
44
|
getPlaceholder(): string;
|
|
45
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropzoneComponent, "dropzone", ["
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropzoneComponent, "nxt-dropzone", ["nxtDropzone"], { "disabled": "disabled"; "config": "config"; "message": "message"; "placeholder": "placeholder"; "useDropzoneClass": "useDropzoneClass"; }, { "DZ_INIT": "init"; "DZ_ERROR": "error"; "DZ_SUCCESS": "success"; "DZ_SENDING": "sending"; "DZ_CANCELED": "canceled"; "DZ_COMPLETE": "complete"; "DZ_PROCESSING": "processing"; "DZ_DROP": "drop"; "DZ_DRAGSTART": "dragStart"; "DZ_DRAGEND": "dragEnd"; "DZ_DRAGENTER": "dragEnter"; "DZ_DRAGOVER": "dragOver"; "DZ_DRAGLEAVE": "dragLeave"; "DZ_THUMBNAIL": "thumbnail"; "DZ_ADDEDFILE": "addedFile"; "DZ_ADDEDFILES": "addedFiles"; "DZ_REMOVEDFILE": "removedFile"; "DZ_UPLOADPROGRESS": "uploadProgress"; "DZ_MAXFILESREACHED": "maxFilesReached"; "DZ_MAXFILESEXCEEDED": "maxFilesExceeded"; "DZ_ERRORMULTIPLE": "errorMultiple"; "DZ_SUCCESSMULTIPLE": "successMultiple"; "DZ_SENDINGMULTIPLE": "sendingMultiple"; "DZ_CANCELEDMULTIPLE": "canceledMultiple"; "DZ_COMPLETEMULTIPLE": "completeMultiple"; "DZ_PROCESSINGMULTIPLE": "processingMultiple"; "DZ_RESET": "reset"; "DZ_QUEUECOMPLETE": "queueComplete"; "DZ_TOTALUPLOADPROGRESS": "totalUploadProgress"; }, never, ["*"], false, never>;
|
|
47
47
|
}
|
|
48
|
-
//# sourceMappingURL=dropzone.component.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DoCheck, ElementRef, EventEmitter, KeyValueDiffers, NgZone, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { DropzoneConfigInterface } from './dropzone.interfaces';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DropzoneDirective implements OnInit, OnDestroy, DoCheck, OnChanges {
|
|
5
|
-
private zone;
|
|
6
|
-
private renderer;
|
|
7
|
-
private elementRef;
|
|
8
|
-
private differs;
|
|
9
|
-
private platformId;
|
|
10
|
-
private defaults
|
|
5
|
+
private readonly zone;
|
|
6
|
+
private readonly renderer;
|
|
7
|
+
private readonly elementRef;
|
|
8
|
+
private readonly differs;
|
|
9
|
+
private readonly platformId;
|
|
10
|
+
private readonly defaults?;
|
|
11
11
|
private instance;
|
|
12
12
|
private configDiff;
|
|
13
13
|
disabled: boolean;
|
|
@@ -41,7 +41,7 @@ export declare class DropzoneDirective implements OnInit, OnDestroy, DoCheck, On
|
|
|
41
41
|
DZ_RESET: EventEmitter<any>;
|
|
42
42
|
DZ_QUEUECOMPLETE: EventEmitter<any>;
|
|
43
43
|
DZ_TOTALUPLOADPROGRESS: EventEmitter<any>;
|
|
44
|
-
constructor(zone: NgZone, renderer: Renderer2, elementRef: ElementRef
|
|
44
|
+
constructor(zone: NgZone, renderer: Renderer2, elementRef: ElementRef<HTMLElement>, differs: KeyValueDiffers, platformId: Object, defaults?: DropzoneConfigInterface | undefined);
|
|
45
45
|
ngOnInit(): void;
|
|
46
46
|
ngOnDestroy(): void;
|
|
47
47
|
ngDoCheck(): void;
|
|
@@ -49,6 +49,5 @@ export declare class DropzoneDirective implements OnInit, OnDestroy, DoCheck, On
|
|
|
49
49
|
dropzone(): any;
|
|
50
50
|
reset(cancel?: boolean): void;
|
|
51
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneDirective, [null, null, null, null, null, { optional: true; }]>;
|
|
52
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DropzoneDirective, "[
|
|
52
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DropzoneDirective, "[nxtDropzone]", ["nxtDropzone"], { "disabled": "disabled"; "config": "nxtDropzone"; }, { "DZ_INIT": "init"; "DZ_ERROR": "error"; "DZ_SUCCESS": "success"; "DZ_SENDING": "sending"; "DZ_CANCELED": "canceled"; "DZ_COMPLETE": "complete"; "DZ_PROCESSING": "processing"; "DZ_DROP": "drop"; "DZ_DRAGSTART": "dragStart"; "DZ_DRAGEND": "dragEnd"; "DZ_DRAGENTER": "dragEnter"; "DZ_DRAGOVER": "dragOver"; "DZ_DRAGLEAVE": "dragLeave"; "DZ_THUMBNAIL": "thumbnail"; "DZ_ADDEDFILE": "addedFile"; "DZ_ADDEDFILES": "addedFiles"; "DZ_REMOVEDFILE": "removedFile"; "DZ_UPLOADPROGRESS": "uploadProgress"; "DZ_MAXFILESREACHED": "maxFilesReached"; "DZ_MAXFILESEXCEEDED": "maxFilesExceeded"; "DZ_ERRORMULTIPLE": "errorMultiple"; "DZ_SUCCESSMULTIPLE": "successMultiple"; "DZ_SENDINGMULTIPLE": "sendingMultiple"; "DZ_CANCELEDMULTIPLE": "canceledMultiple"; "DZ_COMPLETEMULTIPLE": "completeMultiple"; "DZ_PROCESSINGMULTIPLE": "processingMultiple"; "DZ_RESET": "reset"; "DZ_QUEUECOMPLETE": "queueComplete"; "DZ_TOTALUPLOADPROGRESS": "totalUploadProgress"; }, never, never, false, never>;
|
|
53
53
|
}
|
|
54
|
-
//# sourceMappingURL=dropzone.directive.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export declare const
|
|
3
|
-
export
|
|
2
|
+
export declare const NXT_DROPZONE_CONFIG: InjectionToken<unknown>;
|
|
3
|
+
export type DropzoneEvent = 'error' | 'success' | 'sending' | 'canceled' | 'complete' | 'processing' | 'drop' | 'dragStart' | 'dragEnd' | 'dragEnter' | 'dragOver' | 'dragLeave' | 'thumbnail' | 'addedFile' | 'addedFiles' | 'removedFile' | 'uploadProgress' | 'maxFilesReached' | 'maxFilesExceeded' | 'errorMultiple' | 'successMultiple' | 'sendingMultiple' | 'canceledMultiple' | 'completeMultiple' | 'processingMultiple' | 'reset' | 'queueComplete' | 'totalUploadProgress';
|
|
4
4
|
export declare const DropzoneEvents: DropzoneEvent[];
|
|
5
5
|
export interface DropzoneConfigInterface {
|
|
6
6
|
timeout?: number;
|
|
@@ -132,15 +132,14 @@ export declare class DropzoneConfig implements DropzoneConfigInterface {
|
|
|
132
132
|
constructor(config?: DropzoneConfigInterface);
|
|
133
133
|
assign(config?: DropzoneConfigInterface | any, target?: any): void;
|
|
134
134
|
}
|
|
135
|
-
export
|
|
136
|
-
export
|
|
137
|
-
export
|
|
138
|
-
export
|
|
139
|
-
export
|
|
140
|
-
export
|
|
141
|
-
export
|
|
142
|
-
export
|
|
143
|
-
export
|
|
144
|
-
export
|
|
145
|
-
export
|
|
146
|
-
//# sourceMappingURL=dropzone.interfaces.d.ts.map
|
|
135
|
+
export type DropzoneUrlFunction = (files: any) => string;
|
|
136
|
+
export type DropzoneMethodFunction = (files: any) => string;
|
|
137
|
+
export type DropzoneParamsFunction = (files: any, xhr: any, chunk?: any) => any;
|
|
138
|
+
export type DropzoneHeadersFunction = () => any;
|
|
139
|
+
export type DropzoneInitFunction = () => any;
|
|
140
|
+
export type DropzoneFallbackFunction = () => HTMLElement;
|
|
141
|
+
export type DropzoneAcceptFunction = (file: File, done: (error?: string | Error) => void) => any;
|
|
142
|
+
export type DropzoneResizeFunction = (file: File, width: number, height: number, resizeMethod: string) => any;
|
|
143
|
+
export type DropzoneRenameFileFunction = (file: File) => string;
|
|
144
|
+
export type DropzoneTransformFileFunction = (file: File, done: (file: string | Blob) => void) => any;
|
|
145
|
+
export type DropzoneChunksUploadedFunction = (file: File, done: (error?: string | Error) => void) => any;
|
package/lib/dropzone.module.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import * as i2 from "./dropzone.directive";
|
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
5
|
export declare class DropzoneModule {
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DropzoneModule, [typeof i1.DropzoneComponent, typeof i2.DropzoneDirective], [typeof i3.CommonModule], [typeof
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DropzoneModule, [typeof i1.DropzoneComponent, typeof i2.DropzoneDirective], [typeof i3.CommonModule], [typeof i1.DropzoneComponent, typeof i2.DropzoneDirective]>;
|
|
8
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<DropzoneModule>;
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=dropzone.module.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,33 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nxt-dropzone-wrapper",
|
|
3
3
|
"description": "Angular wrapper library for Dropzone",
|
|
4
|
-
"bugs": "https://github.com/Liquid-JS/nxt-
|
|
5
|
-
"version": "
|
|
4
|
+
"bugs": "https://github.com/Liquid-JS/nxt-components/issues",
|
|
5
|
+
"version": "15.0.0",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"repository":
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
"repository": "https://github.com/Liquid-JS/nxt-components.git",
|
|
8
|
+
"homepage": "https://github.com/Liquid-JS/nxt-components/tree/master/packages/dropzone-wrapper",
|
|
9
|
+
"peerDependencies": {
|
|
10
|
+
"@angular/common": "^15.2.1",
|
|
11
|
+
"@angular/core": "^15.2.1",
|
|
12
|
+
"dropzone": "^6.0.0-beta.2"
|
|
10
13
|
},
|
|
11
14
|
"dependencies": {
|
|
12
|
-
"
|
|
13
|
-
"tslib": "^2.3.0"
|
|
14
|
-
},
|
|
15
|
-
"peerDependencies": {
|
|
16
|
-
"@angular/common": ">=13.0.0",
|
|
17
|
-
"@angular/core": ">=13.0.0"
|
|
15
|
+
"tslib": "^2.5.0"
|
|
18
16
|
},
|
|
19
17
|
"module": "fesm2015/nxt-dropzone-wrapper.mjs",
|
|
20
18
|
"es2020": "fesm2020/nxt-dropzone-wrapper.mjs",
|
|
21
19
|
"esm2020": "esm2020/nxt-dropzone-wrapper.mjs",
|
|
22
20
|
"fesm2020": "fesm2020/nxt-dropzone-wrapper.mjs",
|
|
23
21
|
"fesm2015": "fesm2015/nxt-dropzone-wrapper.mjs",
|
|
24
|
-
"typings": "
|
|
22
|
+
"typings": "index.d.ts",
|
|
25
23
|
"exports": {
|
|
26
24
|
"./package.json": {
|
|
27
25
|
"default": "./package.json"
|
|
28
26
|
},
|
|
29
27
|
".": {
|
|
30
|
-
"types": "./
|
|
28
|
+
"types": "./index.d.ts",
|
|
31
29
|
"esm2020": "./esm2020/nxt-dropzone-wrapper.mjs",
|
|
32
30
|
"es2020": "./fesm2020/nxt-dropzone-wrapper.mjs",
|
|
33
31
|
"es2015": "./fesm2015/nxt-dropzone-wrapper.mjs",
|
package/public-api.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { DropzoneComponent } from './lib/dropzone.component';
|
|
2
2
|
export { DropzoneDirective } from './lib/dropzone.directive';
|
|
3
|
-
export {
|
|
3
|
+
export { NXT_DROPZONE_CONFIG, DropzoneConfig, DropzoneConfigInterface, DropzoneUrlFunction, DropzoneMethodFunction, DropzoneParamsFunction, DropzoneHeadersFunction, DropzoneInitFunction, DropzoneFallbackFunction, DropzoneAcceptFunction, DropzoneResizeFunction, DropzoneRenameFileFunction, DropzoneTransformFileFunction, DropzoneChunksUploadedFunction } from './lib/dropzone.interfaces';
|
|
4
4
|
export { DropzoneModule } from './lib/dropzone.module';
|
|
5
|
-
//# sourceMappingURL=public-api.d.ts.map
|