nxt-dropzone-wrapper 15.0.0 → 16.0.0-alpha.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 +23 -120
- package/esm2020/lib/dropzone.component.mjs +77 -81
- package/esm2020/lib/dropzone.directive.mjs +198 -130
- package/esm2020/lib/dropzone.interfaces.mjs +34 -19
- package/esm2020/lib/dropzone.module.mjs +4 -4
- package/esm2020/public-api.mjs +2 -2
- package/fesm2015/nxt-dropzone-wrapper.mjs +283 -231
- package/fesm2015/nxt-dropzone-wrapper.mjs.map +1 -1
- package/fesm2020/nxt-dropzone-wrapper.mjs +310 -229
- package/fesm2020/nxt-dropzone-wrapper.mjs.map +1 -1
- package/lib/dropzone.component.d.ts +42 -35
- package/lib/dropzone.directive.d.ts +58 -41
- package/lib/dropzone.interfaces.d.ts +59 -138
- package/package.json +3 -3
- package/public-api.d.ts +1 -1
|
@@ -1,49 +1,62 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, EventEmitter, PLATFORM_ID, Directive, Inject, Optional, Input, Output, HostBinding, forwardRef, Component, ViewEncapsulation, ViewChild, NgModule } from '@angular/core';
|
|
1
3
|
import * as i1 from '@angular/common';
|
|
2
4
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, EventEmitter, PLATFORM_ID, Directive, Inject, Optional, Input, Output, Component, ViewEncapsulation, ViewChild, NgModule } from '@angular/core';
|
|
5
5
|
import Dropzone from 'dropzone';
|
|
6
6
|
|
|
7
7
|
const NXT_DROPZONE_CONFIG = new InjectionToken('NXT_DROPZONE_CONFIG');
|
|
8
|
+
/** @internal */
|
|
8
9
|
const DropzoneEvents = [
|
|
9
|
-
'
|
|
10
|
-
'success',
|
|
11
|
-
'sending',
|
|
12
|
-
'canceled',
|
|
13
|
-
'complete',
|
|
14
|
-
'processing',
|
|
10
|
+
'init',
|
|
15
11
|
'drop',
|
|
16
12
|
'dragStart',
|
|
17
13
|
'dragEnd',
|
|
18
14
|
'dragEnter',
|
|
19
15
|
'dragOver',
|
|
20
16
|
'dragLeave',
|
|
21
|
-
'
|
|
17
|
+
'paste',
|
|
18
|
+
'reset',
|
|
22
19
|
'addedFile',
|
|
23
20
|
'addedFiles',
|
|
24
21
|
'removedFile',
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'maxFilesExceeded',
|
|
22
|
+
'thumbnail',
|
|
23
|
+
'error',
|
|
28
24
|
'errorMultiple',
|
|
29
|
-
'
|
|
25
|
+
'processing',
|
|
26
|
+
'processingMultiple',
|
|
27
|
+
'uploadProgress',
|
|
28
|
+
'totalUploadProgress',
|
|
29
|
+
'sending',
|
|
30
30
|
'sendingMultiple',
|
|
31
|
+
'success',
|
|
32
|
+
'successMultiple',
|
|
33
|
+
'canceled',
|
|
31
34
|
'canceledMultiple',
|
|
35
|
+
'complete',
|
|
32
36
|
'completeMultiple',
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
'queueComplete'
|
|
36
|
-
'totalUploadProgress'
|
|
37
|
+
'maxFilesExceeded',
|
|
38
|
+
'maxFilesReached',
|
|
39
|
+
'queueComplete'
|
|
37
40
|
];
|
|
38
|
-
|
|
41
|
+
/** @internal */
|
|
42
|
+
const internalChanges = new Set([
|
|
43
|
+
'autoReset',
|
|
44
|
+
'errorReset',
|
|
45
|
+
'cancelReset'
|
|
46
|
+
]);
|
|
47
|
+
/** @internal */
|
|
48
|
+
class _DropzoneConfig {
|
|
39
49
|
constructor(config = {}) {
|
|
40
50
|
this.assign(config);
|
|
41
51
|
}
|
|
42
52
|
assign(config = {}, target) {
|
|
43
53
|
target = target || this;
|
|
44
54
|
for (const key in config) {
|
|
45
|
-
if (config[key] != null
|
|
46
|
-
|
|
55
|
+
if (config[key] != null
|
|
56
|
+
&& config[key] != undefined
|
|
57
|
+
&& !Array.isArray(config[key])
|
|
58
|
+
&& typeof config[key] === 'object'
|
|
59
|
+
&& !(config[key] instanceof HTMLElement)) {
|
|
47
60
|
target[key] = {};
|
|
48
61
|
this.assign(config[key], target[key]);
|
|
49
62
|
}
|
|
@@ -52,61 +65,157 @@ class DropzoneConfig {
|
|
|
52
65
|
}
|
|
53
66
|
}
|
|
54
67
|
}
|
|
55
|
-
}
|
|
68
|
+
}
|
|
69
|
+
/** @internal */
|
|
70
|
+
const NXT_DROPZONE_LISTENERS = new InjectionToken('NXT_DROPZONE_LISTENERS');
|
|
56
71
|
|
|
57
72
|
/* eslint-disable @angular-eslint/no-output-rename */
|
|
58
73
|
class DropzoneDirective {
|
|
59
|
-
|
|
74
|
+
/** Disables / detaches Dropzone from the element */
|
|
75
|
+
set disabled(val) {
|
|
76
|
+
val = !!val;
|
|
77
|
+
if (val != this._disabled && this.instance) {
|
|
78
|
+
if (val)
|
|
79
|
+
this.zone.runOutsideAngular(() => {
|
|
80
|
+
this.instance.disable();
|
|
81
|
+
});
|
|
82
|
+
else
|
|
83
|
+
this.zone.runOutsideAngular(() => {
|
|
84
|
+
this.instance.enable();
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
this._disabled = val;
|
|
88
|
+
}
|
|
89
|
+
get disabled() {
|
|
90
|
+
return this._disabled;
|
|
91
|
+
}
|
|
92
|
+
get dropzone() {
|
|
93
|
+
return this.instance;
|
|
94
|
+
}
|
|
95
|
+
/** @internal */
|
|
96
|
+
get isSingle() {
|
|
97
|
+
return this._params.maxFiles === 1;
|
|
98
|
+
}
|
|
99
|
+
/** @internal */
|
|
100
|
+
get isMultiple() {
|
|
101
|
+
return this._params.maxFiles !== 1;
|
|
102
|
+
}
|
|
103
|
+
constructor(zone, elementRef, differs, platformId, defaults, component) {
|
|
60
104
|
this.zone = zone;
|
|
61
|
-
this.renderer = renderer;
|
|
62
105
|
this.elementRef = elementRef;
|
|
63
106
|
this.differs = differs;
|
|
64
107
|
this.platformId = platformId;
|
|
65
108
|
this.defaults = defaults;
|
|
66
|
-
this.
|
|
67
|
-
this.
|
|
68
|
-
this.
|
|
69
|
-
this.
|
|
70
|
-
this.
|
|
71
|
-
this.
|
|
72
|
-
|
|
73
|
-
this.
|
|
74
|
-
|
|
75
|
-
this.
|
|
76
|
-
|
|
77
|
-
this.DZ_DRAGEND =
|
|
78
|
-
|
|
79
|
-
this.
|
|
80
|
-
|
|
81
|
-
this.
|
|
82
|
-
|
|
83
|
-
this.
|
|
84
|
-
|
|
85
|
-
this.
|
|
86
|
-
|
|
87
|
-
this.
|
|
88
|
-
|
|
89
|
-
this.
|
|
90
|
-
|
|
91
|
-
this.
|
|
92
|
-
|
|
93
|
-
this.
|
|
94
|
-
|
|
95
|
-
this.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
109
|
+
this.component = component;
|
|
110
|
+
this._disabled = false;
|
|
111
|
+
this._params = new _DropzoneConfig(this.defaults);
|
|
112
|
+
this.configDiff = this.differs.find(this.config || {}).create();
|
|
113
|
+
this.paramDiff = this.differs.find(this._params).create();
|
|
114
|
+
this.DZ_INIT = this.component?.DZ_INIT
|
|
115
|
+
?? new EventEmitter();
|
|
116
|
+
this.DZ_DROP = this.component?.DZ_DROP
|
|
117
|
+
?? new EventEmitter();
|
|
118
|
+
this.DZ_DRAGSTART = this.component?.DZ_DRAGSTART
|
|
119
|
+
?? new EventEmitter();
|
|
120
|
+
this.DZ_DRAGEND = this.component?.DZ_DRAGEND
|
|
121
|
+
?? new EventEmitter();
|
|
122
|
+
this.DZ_DRAGENTER = this.component?.DZ_DRAGENTER
|
|
123
|
+
?? new EventEmitter();
|
|
124
|
+
this.DZ_DRAGOVER = this.component?.DZ_DRAGOVER
|
|
125
|
+
?? new EventEmitter();
|
|
126
|
+
this.DZ_DRAGLEAVE = this.component?.DZ_DRAGLEAVE
|
|
127
|
+
?? new EventEmitter();
|
|
128
|
+
this.DZ_PASTE = this.component?.DZ_PASTE
|
|
129
|
+
?? new EventEmitter();
|
|
130
|
+
this.DZ_RESET = this.component?.DZ_RESET
|
|
131
|
+
?? new EventEmitter();
|
|
132
|
+
this.DZ_ADDEDFILE = this.component?.DZ_ADDEDFILE
|
|
133
|
+
?? new EventEmitter();
|
|
134
|
+
this.DZ_ADDEDFILES = this.component?.DZ_ADDEDFILES
|
|
135
|
+
?? new EventEmitter();
|
|
136
|
+
this.DZ_REMOVEDFILE = this.component?.DZ_REMOVEDFILE
|
|
137
|
+
?? new EventEmitter();
|
|
138
|
+
this.DZ_THUMBNAIL = this.component?.DZ_THUMBNAIL
|
|
139
|
+
?? new EventEmitter();
|
|
140
|
+
this.DZ_ERROR = this.component?.DZ_ERROR
|
|
141
|
+
?? new EventEmitter();
|
|
142
|
+
this.DZ_ERRORMULTIPLE = this.component?.DZ_ERRORMULTIPLE
|
|
143
|
+
?? new EventEmitter();
|
|
144
|
+
this.DZ_PROCESSING = this.component?.DZ_PROCESSING
|
|
145
|
+
?? new EventEmitter();
|
|
146
|
+
this.DZ_PROCESSINGMULTIPLE = this.component?.DZ_PROCESSINGMULTIPLE
|
|
147
|
+
?? new EventEmitter();
|
|
148
|
+
this.DZ_UPLOADPROGRESS = this.component?.DZ_UPLOADPROGRESS
|
|
149
|
+
?? new EventEmitter();
|
|
150
|
+
this.DZ_TOTALUPLOADPROGRESS = this.component?.DZ_TOTALUPLOADPROGRESS
|
|
151
|
+
?? new EventEmitter();
|
|
152
|
+
this.DZ_SENDING = this.component?.DZ_SENDING
|
|
153
|
+
?? new EventEmitter();
|
|
154
|
+
this.DZ_SENDINGMULTIPLE = this.component?.DZ_SENDINGMULTIPLE
|
|
155
|
+
?? new EventEmitter();
|
|
156
|
+
this.DZ_SUCCESS = this.component?.DZ_SUCCESS
|
|
157
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
158
|
+
?? new EventEmitter();
|
|
159
|
+
this.DZ_SUCCESSMULTIPLE = this.component?.DZ_SUCCESSMULTIPLE
|
|
160
|
+
?? new EventEmitter();
|
|
161
|
+
this.DZ_CANCELED = this.component?.DZ_CANCELED
|
|
162
|
+
?? new EventEmitter();
|
|
163
|
+
this.DZ_CANCELEDMULTIPLE = this.component?.DZ_CANCELEDMULTIPLE
|
|
164
|
+
?? new EventEmitter();
|
|
165
|
+
this.DZ_COMPLETE = this.component?.DZ_COMPLETE
|
|
166
|
+
?? new EventEmitter();
|
|
167
|
+
this.DZ_COMPLETEMULTIPLE = this.component?.DZ_COMPLETEMULTIPLE
|
|
168
|
+
?? new EventEmitter();
|
|
169
|
+
this.DZ_MAXFILESEXCEEDED = this.component?.DZ_MAXFILESEXCEEDED
|
|
170
|
+
?? new EventEmitter();
|
|
171
|
+
this.DZ_MAXFILESREACHED = this.component?.DZ_MAXFILESREACHED
|
|
172
|
+
?? new EventEmitter();
|
|
173
|
+
this.DZ_QUEUECOMPLETE = this.component?.DZ_QUEUECOMPLETE
|
|
174
|
+
?? new EventEmitter();
|
|
99
175
|
}
|
|
176
|
+
/** @internal */
|
|
100
177
|
ngOnInit() {
|
|
178
|
+
this.initInstance();
|
|
179
|
+
}
|
|
180
|
+
/** @internal */
|
|
181
|
+
ngOnDestroy() {
|
|
182
|
+
this.destroyInstance();
|
|
183
|
+
}
|
|
184
|
+
/** @internal */
|
|
185
|
+
ngDoCheck() {
|
|
186
|
+
const changes = this.configDiff.diff(this.config || {});
|
|
187
|
+
if (changes) {
|
|
188
|
+
const newParams = new _DropzoneConfig(this.defaults);
|
|
189
|
+
newParams.assign(this.config);
|
|
190
|
+
const d = this.paramDiff.diff(newParams);
|
|
191
|
+
if (d) {
|
|
192
|
+
this._params = newParams;
|
|
193
|
+
let hasChanges = false;
|
|
194
|
+
d.forEachItem(r => {
|
|
195
|
+
if (!internalChanges.has(r.key) && r.currentValue !== r.previousValue)
|
|
196
|
+
hasChanges = true;
|
|
197
|
+
});
|
|
198
|
+
if (hasChanges && this.instance) {
|
|
199
|
+
this.destroyInstance();
|
|
200
|
+
this.initInstance();
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
/** @internal */
|
|
206
|
+
reset(cancel) {
|
|
207
|
+
if (this.instance) {
|
|
208
|
+
this.zone.runOutsideAngular(() => {
|
|
209
|
+
this.instance.removeAllFiles(cancel);
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
initInstance() {
|
|
101
214
|
if (!isPlatformBrowser(this.platformId)) {
|
|
102
215
|
return;
|
|
103
216
|
}
|
|
104
|
-
const params = new DropzoneConfig(this.defaults);
|
|
105
|
-
params.assign(this.config); // Custom configuration
|
|
106
|
-
this.renderer.addClass(this.elementRef.nativeElement, (params.maxFiles === 1) ? 'dz-single' : 'dz-multiple');
|
|
107
|
-
this.renderer.removeClass(this.elementRef.nativeElement, (params.maxFiles === 1) ? 'dz-multiple' : 'dz-single');
|
|
108
217
|
this.zone.runOutsideAngular(() => {
|
|
109
|
-
this.instance = new Dropzone(this.elementRef.nativeElement,
|
|
218
|
+
this.instance = new Dropzone(this.elementRef.nativeElement, this._params);
|
|
110
219
|
});
|
|
111
220
|
if (this.disabled) {
|
|
112
221
|
this.instance.disable();
|
|
@@ -118,18 +227,18 @@ class DropzoneDirective {
|
|
|
118
227
|
}
|
|
119
228
|
// Add auto reset handling for events
|
|
120
229
|
this.instance.on('success', () => {
|
|
121
|
-
if (
|
|
122
|
-
setTimeout(() => this.reset(),
|
|
230
|
+
if ((this._params.autoReset ?? -1) >= 0) {
|
|
231
|
+
setTimeout(() => this.reset(), this._params.autoReset);
|
|
123
232
|
}
|
|
124
233
|
});
|
|
125
234
|
this.instance.on('error', () => {
|
|
126
|
-
if (
|
|
127
|
-
setTimeout(() => this.reset(),
|
|
235
|
+
if ((this._params.errorReset ?? -1) >= 0) {
|
|
236
|
+
setTimeout(() => this.reset(), this._params.errorReset);
|
|
128
237
|
}
|
|
129
238
|
});
|
|
130
239
|
this.instance.on('canceled', () => {
|
|
131
|
-
if (
|
|
132
|
-
setTimeout(() => this.reset(),
|
|
240
|
+
if ((this._params.cancelReset ?? -1) >= 0) {
|
|
241
|
+
setTimeout(() => this.reset(), this._params.cancelReset);
|
|
133
242
|
}
|
|
134
243
|
});
|
|
135
244
|
// Add native Dropzone event handling
|
|
@@ -145,64 +254,25 @@ class DropzoneDirective {
|
|
|
145
254
|
}
|
|
146
255
|
});
|
|
147
256
|
});
|
|
148
|
-
if (!this.configDiff) {
|
|
149
|
-
this.configDiff = this.differs.find(this.config || {}).create();
|
|
150
|
-
this.configDiff.diff(this.config || {});
|
|
151
|
-
}
|
|
152
257
|
}
|
|
153
|
-
|
|
258
|
+
destroyInstance() {
|
|
154
259
|
if (this.instance) {
|
|
155
260
|
this.zone.runOutsideAngular(() => {
|
|
156
261
|
this.instance.destroy();
|
|
157
262
|
});
|
|
158
|
-
this.instance =
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
ngDoCheck() {
|
|
162
|
-
if (!this.disabled && this.configDiff) {
|
|
163
|
-
const changes = this.configDiff.diff(this.config || {});
|
|
164
|
-
if (changes && this.instance) {
|
|
165
|
-
this.ngOnDestroy();
|
|
166
|
-
this.ngOnInit();
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
ngOnChanges(changes) {
|
|
171
|
-
if (this.instance && changes['disabled']) {
|
|
172
|
-
if (changes['disabled'].currentValue !== changes['disabled'].previousValue) {
|
|
173
|
-
if (changes['disabled'].currentValue === false) {
|
|
174
|
-
this.zone.runOutsideAngular(() => {
|
|
175
|
-
this.instance.enable();
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
else if (changes['disabled'].currentValue === true) {
|
|
179
|
-
this.zone.runOutsideAngular(() => {
|
|
180
|
-
this.instance.disable();
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
dropzone() {
|
|
187
|
-
return this.instance;
|
|
188
|
-
}
|
|
189
|
-
reset(cancel) {
|
|
190
|
-
if (this.instance) {
|
|
191
|
-
this.zone.runOutsideAngular(() => {
|
|
192
|
-
this.instance.removeAllFiles(cancel);
|
|
193
|
-
});
|
|
263
|
+
this.instance = undefined;
|
|
194
264
|
}
|
|
195
265
|
}
|
|
196
266
|
}
|
|
197
|
-
DropzoneDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
198
|
-
DropzoneDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.
|
|
199
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
267
|
+
DropzoneDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: DropzoneDirective, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i0.KeyValueDiffers }, { token: PLATFORM_ID }, { token: NXT_DROPZONE_CONFIG, optional: true }, { token: NXT_DROPZONE_LISTENERS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
268
|
+
DropzoneDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.3", type: DropzoneDirective, selector: "[nxtDropzone]", inputs: { disabled: "disabled", config: ["nxtDropzone", "config"] }, outputs: { DZ_INIT: "init", DZ_DROP: "drop", DZ_DRAGSTART: "dragStart", DZ_DRAGEND: "dragEnd", DZ_DRAGENTER: "dragEnter", DZ_DRAGOVER: "dragOver", DZ_DRAGLEAVE: "dragLeave", DZ_PASTE: "paste", DZ_RESET: "reset", DZ_ADDEDFILE: "addedFile", DZ_ADDEDFILES: "addedFiles", DZ_REMOVEDFILE: "removedFile", DZ_THUMBNAIL: "thumbnail", DZ_ERROR: "error", DZ_ERRORMULTIPLE: "errorMultiple", DZ_PROCESSING: "processing", DZ_PROCESSINGMULTIPLE: "processingMultiple", DZ_UPLOADPROGRESS: "uploadProgress", DZ_TOTALUPLOADPROGRESS: "totalUploadProgress", DZ_SENDING: "sending", DZ_SENDINGMULTIPLE: "sendingMultiple", DZ_SUCCESS: "success", DZ_SUCCESSMULTIPLE: "successMultiple", DZ_CANCELED: "canceled", DZ_CANCELEDMULTIPLE: "canceledMultiple", DZ_COMPLETE: "complete", DZ_COMPLETEMULTIPLE: "completeMultiple", DZ_MAXFILESEXCEEDED: "maxFilesExceeded", DZ_MAXFILESREACHED: "maxFilesReached", DZ_QUEUECOMPLETE: "queueComplete" }, host: { properties: { "class.dz-single": "this.isSingle", "class.dz-multiple": "this.isMultiple" } }, exportAs: ["nxtDropzone"], ngImport: i0 });
|
|
269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: DropzoneDirective, decorators: [{
|
|
200
270
|
type: Directive,
|
|
201
271
|
args: [{
|
|
202
272
|
selector: '[nxtDropzone]',
|
|
203
273
|
exportAs: 'nxtDropzone'
|
|
204
274
|
}]
|
|
205
|
-
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.
|
|
275
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.ElementRef }, { type: i0.KeyValueDiffers }, { type: Object, decorators: [{
|
|
206
276
|
type: Inject,
|
|
207
277
|
args: [PLATFORM_ID]
|
|
208
278
|
}] }, { type: undefined, decorators: [{
|
|
@@ -210,6 +280,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
|
|
|
210
280
|
}, {
|
|
211
281
|
type: Inject,
|
|
212
282
|
args: [NXT_DROPZONE_CONFIG]
|
|
283
|
+
}] }, { type: undefined, decorators: [{
|
|
284
|
+
type: Optional
|
|
285
|
+
}, {
|
|
286
|
+
type: Inject,
|
|
287
|
+
args: [NXT_DROPZONE_LISTENERS]
|
|
213
288
|
}] }]; }, propDecorators: { disabled: [{
|
|
214
289
|
type: Input
|
|
215
290
|
}], config: [{
|
|
@@ -218,24 +293,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
|
|
|
218
293
|
}], DZ_INIT: [{
|
|
219
294
|
type: Output,
|
|
220
295
|
args: ['init']
|
|
221
|
-
}], DZ_ERROR: [{
|
|
222
|
-
type: Output,
|
|
223
|
-
args: ['error']
|
|
224
|
-
}], DZ_SUCCESS: [{
|
|
225
|
-
type: Output,
|
|
226
|
-
args: ['success']
|
|
227
|
-
}], DZ_SENDING: [{
|
|
228
|
-
type: Output,
|
|
229
|
-
args: ['sending']
|
|
230
|
-
}], DZ_CANCELED: [{
|
|
231
|
-
type: Output,
|
|
232
|
-
args: ['canceled']
|
|
233
|
-
}], DZ_COMPLETE: [{
|
|
234
|
-
type: Output,
|
|
235
|
-
args: ['complete']
|
|
236
|
-
}], DZ_PROCESSING: [{
|
|
237
|
-
type: Output,
|
|
238
|
-
args: ['processing']
|
|
239
296
|
}], DZ_DROP: [{
|
|
240
297
|
type: Output,
|
|
241
298
|
args: ['drop']
|
|
@@ -254,9 +311,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
|
|
|
254
311
|
}], DZ_DRAGLEAVE: [{
|
|
255
312
|
type: Output,
|
|
256
313
|
args: ['dragLeave']
|
|
257
|
-
}],
|
|
314
|
+
}], DZ_PASTE: [{
|
|
258
315
|
type: Output,
|
|
259
|
-
args: ['
|
|
316
|
+
args: ['paste']
|
|
317
|
+
}], DZ_RESET: [{
|
|
318
|
+
type: Output,
|
|
319
|
+
args: ['reset']
|
|
260
320
|
}], DZ_ADDEDFILE: [{
|
|
261
321
|
type: Output,
|
|
262
322
|
args: ['addedFile']
|
|
@@ -266,112 +326,130 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
|
|
|
266
326
|
}], DZ_REMOVEDFILE: [{
|
|
267
327
|
type: Output,
|
|
268
328
|
args: ['removedFile']
|
|
329
|
+
}], DZ_THUMBNAIL: [{
|
|
330
|
+
type: Output,
|
|
331
|
+
args: ['thumbnail']
|
|
332
|
+
}], DZ_ERROR: [{
|
|
333
|
+
type: Output,
|
|
334
|
+
args: ['error']
|
|
335
|
+
}], DZ_ERRORMULTIPLE: [{
|
|
336
|
+
type: Output,
|
|
337
|
+
args: ['errorMultiple']
|
|
338
|
+
}], DZ_PROCESSING: [{
|
|
339
|
+
type: Output,
|
|
340
|
+
args: ['processing']
|
|
341
|
+
}], DZ_PROCESSINGMULTIPLE: [{
|
|
342
|
+
type: Output,
|
|
343
|
+
args: ['processingMultiple']
|
|
269
344
|
}], DZ_UPLOADPROGRESS: [{
|
|
270
345
|
type: Output,
|
|
271
346
|
args: ['uploadProgress']
|
|
272
|
-
}],
|
|
347
|
+
}], DZ_TOTALUPLOADPROGRESS: [{
|
|
273
348
|
type: Output,
|
|
274
|
-
args: ['
|
|
275
|
-
}],
|
|
349
|
+
args: ['totalUploadProgress']
|
|
350
|
+
}], DZ_SENDING: [{
|
|
276
351
|
type: Output,
|
|
277
|
-
args: ['
|
|
278
|
-
}],
|
|
352
|
+
args: ['sending']
|
|
353
|
+
}], DZ_SENDINGMULTIPLE: [{
|
|
279
354
|
type: Output,
|
|
280
|
-
args: ['
|
|
355
|
+
args: ['sendingMultiple']
|
|
356
|
+
}], DZ_SUCCESS: [{
|
|
357
|
+
type: Output,
|
|
358
|
+
args: ['success']
|
|
281
359
|
}], DZ_SUCCESSMULTIPLE: [{
|
|
282
360
|
type: Output,
|
|
283
361
|
args: ['successMultiple']
|
|
284
|
-
}],
|
|
362
|
+
}], DZ_CANCELED: [{
|
|
285
363
|
type: Output,
|
|
286
|
-
args: ['
|
|
364
|
+
args: ['canceled']
|
|
287
365
|
}], DZ_CANCELEDMULTIPLE: [{
|
|
288
366
|
type: Output,
|
|
289
367
|
args: ['canceledMultiple']
|
|
368
|
+
}], DZ_COMPLETE: [{
|
|
369
|
+
type: Output,
|
|
370
|
+
args: ['complete']
|
|
290
371
|
}], DZ_COMPLETEMULTIPLE: [{
|
|
291
372
|
type: Output,
|
|
292
373
|
args: ['completeMultiple']
|
|
293
|
-
}],
|
|
374
|
+
}], DZ_MAXFILESEXCEEDED: [{
|
|
294
375
|
type: Output,
|
|
295
|
-
args: ['
|
|
296
|
-
}],
|
|
376
|
+
args: ['maxFilesExceeded']
|
|
377
|
+
}], DZ_MAXFILESREACHED: [{
|
|
297
378
|
type: Output,
|
|
298
|
-
args: ['
|
|
379
|
+
args: ['maxFilesReached']
|
|
299
380
|
}], DZ_QUEUECOMPLETE: [{
|
|
300
381
|
type: Output,
|
|
301
382
|
args: ['queueComplete']
|
|
302
|
-
}],
|
|
303
|
-
type:
|
|
304
|
-
args: ['
|
|
383
|
+
}], isSingle: [{
|
|
384
|
+
type: HostBinding,
|
|
385
|
+
args: ['class.dz-single']
|
|
386
|
+
}], isMultiple: [{
|
|
387
|
+
type: HostBinding,
|
|
388
|
+
args: ['class.dz-multiple']
|
|
305
389
|
}] } });
|
|
306
390
|
|
|
307
391
|
/* eslint-disable @angular-eslint/no-output-rename */
|
|
308
392
|
class DropzoneComponent {
|
|
309
|
-
constructor(
|
|
310
|
-
|
|
311
|
-
platformId) {
|
|
312
|
-
this.platformId = platformId;
|
|
393
|
+
constructor() {
|
|
394
|
+
/** Disables / detaches Dropzone from the element */
|
|
313
395
|
this.disabled = false;
|
|
396
|
+
/** Message to show for the user on the upload area */
|
|
314
397
|
this.message = 'Click or drag files to upload';
|
|
398
|
+
/** Placeholder image to be shown as the upload area */
|
|
315
399
|
this.placeholder = '';
|
|
400
|
+
/** Use 'dropzone' class (use provided default styles) */
|
|
316
401
|
this.useDropzoneClass = true;
|
|
317
402
|
this.DZ_INIT = new EventEmitter();
|
|
318
|
-
this.DZ_ERROR = new EventEmitter();
|
|
319
|
-
this.DZ_SUCCESS = new EventEmitter();
|
|
320
|
-
this.DZ_SENDING = new EventEmitter();
|
|
321
|
-
this.DZ_CANCELED = new EventEmitter();
|
|
322
|
-
this.DZ_COMPLETE = new EventEmitter();
|
|
323
|
-
this.DZ_PROCESSING = new EventEmitter();
|
|
324
403
|
this.DZ_DROP = new EventEmitter();
|
|
325
404
|
this.DZ_DRAGSTART = new EventEmitter();
|
|
326
405
|
this.DZ_DRAGEND = new EventEmitter();
|
|
327
406
|
this.DZ_DRAGENTER = new EventEmitter();
|
|
328
407
|
this.DZ_DRAGOVER = new EventEmitter();
|
|
329
408
|
this.DZ_DRAGLEAVE = new EventEmitter();
|
|
330
|
-
this.
|
|
409
|
+
this.DZ_PASTE = new EventEmitter();
|
|
410
|
+
this.DZ_RESET = new EventEmitter();
|
|
331
411
|
this.DZ_ADDEDFILE = new EventEmitter();
|
|
332
412
|
this.DZ_ADDEDFILES = new EventEmitter();
|
|
333
413
|
this.DZ_REMOVEDFILE = new EventEmitter();
|
|
334
|
-
this.
|
|
335
|
-
this.
|
|
336
|
-
this.DZ_MAXFILESEXCEEDED = new EventEmitter();
|
|
414
|
+
this.DZ_THUMBNAIL = new EventEmitter();
|
|
415
|
+
this.DZ_ERROR = new EventEmitter();
|
|
337
416
|
this.DZ_ERRORMULTIPLE = new EventEmitter();
|
|
338
|
-
this.
|
|
417
|
+
this.DZ_PROCESSING = new EventEmitter();
|
|
418
|
+
this.DZ_PROCESSINGMULTIPLE = new EventEmitter();
|
|
419
|
+
this.DZ_UPLOADPROGRESS = new EventEmitter();
|
|
420
|
+
this.DZ_TOTALUPLOADPROGRESS = new EventEmitter();
|
|
421
|
+
this.DZ_SENDING = new EventEmitter();
|
|
339
422
|
this.DZ_SENDINGMULTIPLE = new EventEmitter();
|
|
423
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
424
|
+
this.DZ_SUCCESS = new EventEmitter();
|
|
425
|
+
this.DZ_SUCCESSMULTIPLE = new EventEmitter();
|
|
426
|
+
this.DZ_CANCELED = new EventEmitter();
|
|
340
427
|
this.DZ_CANCELEDMULTIPLE = new EventEmitter();
|
|
428
|
+
this.DZ_COMPLETE = new EventEmitter();
|
|
341
429
|
this.DZ_COMPLETEMULTIPLE = new EventEmitter();
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
430
|
+
this.DZ_MAXFILESEXCEEDED = new EventEmitter();
|
|
431
|
+
this.DZ_MAXFILESREACHED = new EventEmitter();
|
|
344
432
|
this.DZ_QUEUECOMPLETE = new EventEmitter();
|
|
345
|
-
this.DZ_TOTALUPLOADPROGRESS = new EventEmitter();
|
|
346
|
-
}
|
|
347
|
-
ngOnInit() {
|
|
348
|
-
if (!isPlatformBrowser(this.platformId)) {
|
|
349
|
-
return;
|
|
350
|
-
}
|
|
351
|
-
setTimeout(() => {
|
|
352
|
-
DropzoneEvents.forEach((eventName) => {
|
|
353
|
-
if (this.directiveRef) {
|
|
354
|
-
const output = `DZ_${eventName.toUpperCase()}`;
|
|
355
|
-
const directiveOutput = output;
|
|
356
|
-
const componentOutput = output;
|
|
357
|
-
this.directiveRef[directiveOutput] = this[componentOutput];
|
|
358
|
-
}
|
|
359
|
-
});
|
|
360
|
-
}, 0);
|
|
361
433
|
}
|
|
434
|
+
/** @internal */
|
|
435
|
+
ngOnInit() { }
|
|
436
|
+
/** @internal */
|
|
362
437
|
getPlaceholder() {
|
|
363
438
|
return 'url(' + encodeURI(this.placeholder) + ')';
|
|
364
439
|
}
|
|
365
440
|
}
|
|
366
|
-
DropzoneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
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
|
-
|
|
441
|
+
DropzoneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: DropzoneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
442
|
+
DropzoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.3", type: DropzoneComponent, selector: "nxt-dropzone", inputs: { disabled: "disabled", config: "config", message: "message", placeholder: "placeholder", useDropzoneClass: "useDropzoneClass" }, outputs: { DZ_INIT: "init", DZ_DROP: "drop", DZ_DRAGSTART: "dragStart", DZ_DRAGEND: "dragEnd", DZ_DRAGENTER: "dragEnter", DZ_DRAGOVER: "dragOver", DZ_DRAGLEAVE: "dragLeave", DZ_PASTE: "paste", DZ_RESET: "reset", DZ_ADDEDFILE: "addedFile", DZ_ADDEDFILES: "addedFiles", DZ_REMOVEDFILE: "removedFile", DZ_THUMBNAIL: "thumbnail", DZ_ERROR: "error", DZ_ERRORMULTIPLE: "errorMultiple", DZ_PROCESSING: "processing", DZ_PROCESSINGMULTIPLE: "processingMultiple", DZ_UPLOADPROGRESS: "uploadProgress", DZ_TOTALUPLOADPROGRESS: "totalUploadProgress", DZ_SENDING: "sending", DZ_SENDINGMULTIPLE: "sendingMultiple", DZ_SUCCESS: "success", DZ_SUCCESSMULTIPLE: "successMultiple", DZ_CANCELED: "canceled", DZ_CANCELEDMULTIPLE: "canceledMultiple", DZ_COMPLETE: "complete", DZ_COMPLETEMULTIPLE: "completeMultiple", DZ_MAXFILESEXCEEDED: "maxFilesExceeded", DZ_MAXFILESREACHED: "maxFilesReached", DZ_QUEUECOMPLETE: "queueComplete" }, providers: [{
|
|
443
|
+
provide: NXT_DROPZONE_LISTENERS,
|
|
444
|
+
useValue: forwardRef(() => DropzoneComponent)
|
|
445
|
+
}], viewQueries: [{ propertyName: "directiveRef", first: true, predicate: DropzoneDirective, descendants: true }], ngImport: i0, template: "<div class=\"dz-wrapper\"\n [class.dropzone]=\"useDropzoneClass\"\n [nxtDropzone]=\"config\"\n [disabled]=\"disabled\">\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:flex;width:100%;height:auto}nxt-dropzone>.dropzone.dz-wrapper{overflow:auto;width:100%;min-height:0;max-height:100%;padding:0;border:none;color:#666;background:transparent;border-radius:0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:16px}nxt-dropzone>.dropzone.dz-wrapper .dz-message{overflow:auto;min-height:60px;max-height:100%;border:2px dashed #aaa;background-color:#eee;display:flex;align-items:center;justify-content:center;margin:0;border-radius:5px;grid-column:span 2;grid-row:span 2}nxt-dropzone>.dropzone.dz-wrapper .dz-message .dz-text{padding:8px 16px;text-align:center}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{position:relative;border-color:#aaa0;transition:border-color .25s ease-in-out}nxt-dropzone>.dropzone.dz-wrapper .dz-message.dz-placeholder .dz-text{position:absolute;z-index:1;opacity:0;font-weight:700;background-color:#ffffff80;transition:filter .25s ease-in-out,opacity .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:0}nxt-dropzone>.dropzone.dz-wrapper .dz-preview .dz-details{padding:24px}nxt-dropzone>.dropzone.dz-wrapper .dz-preview .dz-progress{width:80%;border:1px solid #aaa;border-radius:5px;overflow:hidden}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-preview .dz-image{border-radius:5px;overflow:hidden;min-width:120px;min-height:120px;width:auto;height:auto}nxt-dropzone>.dropzone.dz-wrapper.dz-single .dz-message{width:100%;height:100%}nxt-dropzone>.dropzone.dz-wrapper.dz-single .dz-preview{width:100%;height:100%;grid-column:span 2;grid-row:span 2}nxt-dropzone>.dropzone.dz-wrapper.dz-single .dz-preview .dz-image{width:100%;height:100%}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:flex}\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", "drop", "dragStart", "dragEnd", "dragEnter", "dragOver", "dragLeave", "paste", "reset", "addedFile", "addedFiles", "removedFile", "thumbnail", "error", "errorMultiple", "processing", "processingMultiple", "uploadProgress", "totalUploadProgress", "sending", "sendingMultiple", "success", "successMultiple", "canceled", "canceledMultiple", "complete", "completeMultiple", "maxFilesExceeded", "maxFilesReached", "queueComplete"], exportAs: ["nxtDropzone"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: DropzoneComponent, decorators: [{
|
|
369
447
|
type: Component,
|
|
370
|
-
args: [{ selector: 'nxt-dropzone',
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
448
|
+
args: [{ selector: 'nxt-dropzone', encapsulation: ViewEncapsulation.None, providers: [{
|
|
449
|
+
provide: NXT_DROPZONE_LISTENERS,
|
|
450
|
+
useValue: forwardRef(() => DropzoneComponent)
|
|
451
|
+
}], template: "<div class=\"dz-wrapper\"\n [class.dropzone]=\"useDropzoneClass\"\n [nxtDropzone]=\"config\"\n [disabled]=\"disabled\">\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:flex;width:100%;height:auto}nxt-dropzone>.dropzone.dz-wrapper{overflow:auto;width:100%;min-height:0;max-height:100%;padding:0;border:none;color:#666;background:transparent;border-radius:0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:16px}nxt-dropzone>.dropzone.dz-wrapper .dz-message{overflow:auto;min-height:60px;max-height:100%;border:2px dashed #aaa;background-color:#eee;display:flex;align-items:center;justify-content:center;margin:0;border-radius:5px;grid-column:span 2;grid-row:span 2}nxt-dropzone>.dropzone.dz-wrapper .dz-message .dz-text{padding:8px 16px;text-align:center}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{position:relative;border-color:#aaa0;transition:border-color .25s ease-in-out}nxt-dropzone>.dropzone.dz-wrapper .dz-message.dz-placeholder .dz-text{position:absolute;z-index:1;opacity:0;font-weight:700;background-color:#ffffff80;transition:filter .25s ease-in-out,opacity .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:0}nxt-dropzone>.dropzone.dz-wrapper .dz-preview .dz-details{padding:24px}nxt-dropzone>.dropzone.dz-wrapper .dz-preview .dz-progress{width:80%;border:1px solid #aaa;border-radius:5px;overflow:hidden}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-preview .dz-image{border-radius:5px;overflow:hidden;min-width:120px;min-height:120px;width:auto;height:auto}nxt-dropzone>.dropzone.dz-wrapper.dz-single .dz-message{width:100%;height:100%}nxt-dropzone>.dropzone.dz-wrapper.dz-single .dz-preview{width:100%;height:100%;grid-column:span 2;grid-row:span 2}nxt-dropzone>.dropzone.dz-wrapper.dz-single .dz-preview .dz-image{width:100%;height:100%}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:flex}\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"] }]
|
|
452
|
+
}], ctorParameters: function () { return []; }, propDecorators: { disabled: [{
|
|
375
453
|
type: Input
|
|
376
454
|
}], config: [{
|
|
377
455
|
type: Input
|
|
@@ -384,24 +462,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
|
|
|
384
462
|
}], DZ_INIT: [{
|
|
385
463
|
type: Output,
|
|
386
464
|
args: ['init']
|
|
387
|
-
}], DZ_ERROR: [{
|
|
388
|
-
type: Output,
|
|
389
|
-
args: ['error']
|
|
390
|
-
}], DZ_SUCCESS: [{
|
|
391
|
-
type: Output,
|
|
392
|
-
args: ['success']
|
|
393
|
-
}], DZ_SENDING: [{
|
|
394
|
-
type: Output,
|
|
395
|
-
args: ['sending']
|
|
396
|
-
}], DZ_CANCELED: [{
|
|
397
|
-
type: Output,
|
|
398
|
-
args: ['canceled']
|
|
399
|
-
}], DZ_COMPLETE: [{
|
|
400
|
-
type: Output,
|
|
401
|
-
args: ['complete']
|
|
402
|
-
}], DZ_PROCESSING: [{
|
|
403
|
-
type: Output,
|
|
404
|
-
args: ['processing']
|
|
405
465
|
}], DZ_DROP: [{
|
|
406
466
|
type: Output,
|
|
407
467
|
args: ['drop']
|
|
@@ -420,9 +480,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
|
|
|
420
480
|
}], DZ_DRAGLEAVE: [{
|
|
421
481
|
type: Output,
|
|
422
482
|
args: ['dragLeave']
|
|
423
|
-
}],
|
|
483
|
+
}], DZ_PASTE: [{
|
|
424
484
|
type: Output,
|
|
425
|
-
args: ['
|
|
485
|
+
args: ['paste']
|
|
486
|
+
}], DZ_RESET: [{
|
|
487
|
+
type: Output,
|
|
488
|
+
args: ['reset']
|
|
426
489
|
}], DZ_ADDEDFILE: [{
|
|
427
490
|
type: Output,
|
|
428
491
|
args: ['addedFile']
|
|
@@ -432,55 +495,73 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
|
|
|
432
495
|
}], DZ_REMOVEDFILE: [{
|
|
433
496
|
type: Output,
|
|
434
497
|
args: ['removedFile']
|
|
498
|
+
}], DZ_THUMBNAIL: [{
|
|
499
|
+
type: Output,
|
|
500
|
+
args: ['thumbnail']
|
|
501
|
+
}], DZ_ERROR: [{
|
|
502
|
+
type: Output,
|
|
503
|
+
args: ['error']
|
|
504
|
+
}], DZ_ERRORMULTIPLE: [{
|
|
505
|
+
type: Output,
|
|
506
|
+
args: ['errorMultiple']
|
|
507
|
+
}], DZ_PROCESSING: [{
|
|
508
|
+
type: Output,
|
|
509
|
+
args: ['processing']
|
|
510
|
+
}], DZ_PROCESSINGMULTIPLE: [{
|
|
511
|
+
type: Output,
|
|
512
|
+
args: ['processingMultiple']
|
|
435
513
|
}], DZ_UPLOADPROGRESS: [{
|
|
436
514
|
type: Output,
|
|
437
515
|
args: ['uploadProgress']
|
|
438
|
-
}],
|
|
516
|
+
}], DZ_TOTALUPLOADPROGRESS: [{
|
|
439
517
|
type: Output,
|
|
440
|
-
args: ['
|
|
441
|
-
}],
|
|
518
|
+
args: ['totalUploadProgress']
|
|
519
|
+
}], DZ_SENDING: [{
|
|
442
520
|
type: Output,
|
|
443
|
-
args: ['
|
|
444
|
-
}],
|
|
521
|
+
args: ['sending']
|
|
522
|
+
}], DZ_SENDINGMULTIPLE: [{
|
|
445
523
|
type: Output,
|
|
446
|
-
args: ['
|
|
524
|
+
args: ['sendingMultiple']
|
|
525
|
+
}], DZ_SUCCESS: [{
|
|
526
|
+
type: Output,
|
|
527
|
+
args: ['success']
|
|
447
528
|
}], DZ_SUCCESSMULTIPLE: [{
|
|
448
529
|
type: Output,
|
|
449
530
|
args: ['successMultiple']
|
|
450
|
-
}],
|
|
531
|
+
}], DZ_CANCELED: [{
|
|
451
532
|
type: Output,
|
|
452
|
-
args: ['
|
|
533
|
+
args: ['canceled']
|
|
453
534
|
}], DZ_CANCELEDMULTIPLE: [{
|
|
454
535
|
type: Output,
|
|
455
536
|
args: ['canceledMultiple']
|
|
537
|
+
}], DZ_COMPLETE: [{
|
|
538
|
+
type: Output,
|
|
539
|
+
args: ['complete']
|
|
456
540
|
}], DZ_COMPLETEMULTIPLE: [{
|
|
457
541
|
type: Output,
|
|
458
542
|
args: ['completeMultiple']
|
|
459
|
-
}],
|
|
543
|
+
}], DZ_MAXFILESEXCEEDED: [{
|
|
460
544
|
type: Output,
|
|
461
|
-
args: ['
|
|
462
|
-
}],
|
|
545
|
+
args: ['maxFilesExceeded']
|
|
546
|
+
}], DZ_MAXFILESREACHED: [{
|
|
463
547
|
type: Output,
|
|
464
|
-
args: ['
|
|
548
|
+
args: ['maxFilesReached']
|
|
465
549
|
}], DZ_QUEUECOMPLETE: [{
|
|
466
550
|
type: Output,
|
|
467
551
|
args: ['queueComplete']
|
|
468
|
-
}], DZ_TOTALUPLOADPROGRESS: [{
|
|
469
|
-
type: Output,
|
|
470
|
-
args: ['totalUploadProgress']
|
|
471
552
|
}], directiveRef: [{
|
|
472
553
|
type: ViewChild,
|
|
473
|
-
args: [DropzoneDirective
|
|
554
|
+
args: [DropzoneDirective]
|
|
474
555
|
}] } });
|
|
475
556
|
|
|
476
557
|
class DropzoneModule {
|
|
477
558
|
}
|
|
478
|
-
DropzoneModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
479
|
-
DropzoneModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.
|
|
559
|
+
DropzoneModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: DropzoneModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
560
|
+
DropzoneModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.3", ngImport: i0, type: DropzoneModule, declarations: [DropzoneComponent,
|
|
480
561
|
DropzoneDirective], imports: [CommonModule], exports: [DropzoneComponent,
|
|
481
562
|
DropzoneDirective] });
|
|
482
|
-
DropzoneModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.
|
|
483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
563
|
+
DropzoneModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: DropzoneModule, imports: [CommonModule] });
|
|
564
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: DropzoneModule, decorators: [{
|
|
484
565
|
type: NgModule,
|
|
485
566
|
args: [{
|
|
486
567
|
declarations: [
|
|
@@ -501,5 +582,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
|
|
|
501
582
|
* Generated bundle index. Do not edit.
|
|
502
583
|
*/
|
|
503
584
|
|
|
504
|
-
export { DropzoneComponent,
|
|
585
|
+
export { DropzoneComponent, DropzoneDirective, DropzoneModule, NXT_DROPZONE_CONFIG };
|
|
505
586
|
//# sourceMappingURL=nxt-dropzone-wrapper.mjs.map
|