nxt-dropzone-wrapper 14.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.
@@ -1,49 +1,62 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, EventEmitter, PLATFORM_ID, Directive, Inject, Optional, Input, Output, Component, ViewEncapsulation, ViewChild, NgModule } from '@angular/core';
2
+ import { InjectionToken, EventEmitter, PLATFORM_ID, Directive, Inject, Optional, Input, Output, HostBinding, forwardRef, Component, ViewEncapsulation, ViewChild, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { isPlatformBrowser, CommonModule } from '@angular/common';
5
- import _dz from 'dropzone';
5
+ import Dropzone from 'dropzone';
6
6
 
7
- const DROPZONE_CONFIG = new InjectionToken('DROPZONE_CONFIG');
7
+ const NXT_DROPZONE_CONFIG = new InjectionToken('NXT_DROPZONE_CONFIG');
8
+ /** @internal */
8
9
  const DropzoneEvents = [
9
- 'error',
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
- 'thumbnail',
17
+ 'paste',
18
+ 'reset',
22
19
  'addedFile',
23
20
  'addedFiles',
24
21
  'removedFile',
25
- 'uploadProgress',
26
- 'maxFilesReached',
27
- 'maxFilesExceeded',
22
+ 'thumbnail',
23
+ 'error',
28
24
  'errorMultiple',
29
- 'successMultiple',
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
- 'processingMultiple',
34
- 'reset',
35
- 'queueComplete',
36
- 'totalUploadProgress'
37
+ 'maxFilesExceeded',
38
+ 'maxFilesReached',
39
+ 'queueComplete'
37
40
  ];
38
- class DropzoneConfig {
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 && !(Array.isArray(config[key])) &&
46
- typeof config[key] === 'object' && !(config[key] instanceof HTMLElement)) {
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,85 +65,180 @@ 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
- // Fix until Dropzone types are updated
58
- const Dropzone = _dz.Dropzone;
72
+ /* eslint-disable @angular-eslint/no-output-rename */
59
73
  class DropzoneDirective {
60
- constructor(zone, renderer, elementRef, differs, platformId, defaults) {
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) {
61
104
  this.zone = zone;
62
- this.renderer = renderer;
63
105
  this.elementRef = elementRef;
64
106
  this.differs = differs;
65
107
  this.platformId = platformId;
66
108
  this.defaults = defaults;
67
- this.configDiff = null;
68
- this.disabled = false;
69
- this.DZ_INIT = new EventEmitter();
70
- this.DZ_ERROR = new EventEmitter();
71
- this.DZ_SUCCESS = new EventEmitter();
72
- this.DZ_SENDING = new EventEmitter();
73
- this.DZ_CANCELED = new EventEmitter();
74
- this.DZ_COMPLETE = new EventEmitter();
75
- this.DZ_PROCESSING = new EventEmitter();
76
- this.DZ_DROP = new EventEmitter();
77
- this.DZ_DRAGSTART = new EventEmitter();
78
- this.DZ_DRAGEND = new EventEmitter();
79
- this.DZ_DRAGENTER = new EventEmitter();
80
- this.DZ_DRAGOVER = new EventEmitter();
81
- this.DZ_DRAGLEAVE = new EventEmitter();
82
- this.DZ_THUMBNAIL = new EventEmitter();
83
- this.DZ_ADDEDFILE = new EventEmitter();
84
- this.DZ_ADDEDFILES = new EventEmitter();
85
- this.DZ_REMOVEDFILE = new EventEmitter();
86
- this.DZ_UPLOADPROGRESS = new EventEmitter();
87
- this.DZ_MAXFILESREACHED = new EventEmitter();
88
- this.DZ_MAXFILESEXCEEDED = new EventEmitter();
89
- this.DZ_ERRORMULTIPLE = new EventEmitter();
90
- this.DZ_SUCCESSMULTIPLE = new EventEmitter();
91
- this.DZ_SENDINGMULTIPLE = new EventEmitter();
92
- this.DZ_CANCELEDMULTIPLE = new EventEmitter();
93
- this.DZ_COMPLETEMULTIPLE = new EventEmitter();
94
- this.DZ_PROCESSINGMULTIPLE = new EventEmitter();
95
- this.DZ_RESET = new EventEmitter();
96
- this.DZ_QUEUECOMPLETE = new EventEmitter();
97
- this.DZ_TOTALUPLOADPROGRESS = new EventEmitter();
98
- const dz = Dropzone;
99
- dz.autoDiscover = false;
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();
100
175
  }
176
+ /** @internal */
101
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() {
102
214
  if (!isPlatformBrowser(this.platformId)) {
103
215
  return;
104
216
  }
105
- const params = new DropzoneConfig(this.defaults);
106
- params.assign(this.config); // Custom configuration
107
- this.renderer.addClass(this.elementRef.nativeElement, (params.maxFiles === 1) ? 'dz-single' : 'dz-multiple');
108
- this.renderer.removeClass(this.elementRef.nativeElement, (params.maxFiles === 1) ? 'dz-multiple' : 'dz-single');
109
217
  this.zone.runOutsideAngular(() => {
110
- this.instance = new Dropzone(this.elementRef.nativeElement, params);
218
+ this.instance = new Dropzone(this.elementRef.nativeElement, this._params);
111
219
  });
112
220
  if (this.disabled) {
113
221
  this.instance.disable();
114
222
  }
115
- if (this.DZ_INIT.observers.length) {
223
+ if (this.DZ_INIT.observed) {
116
224
  this.zone.run(() => {
117
225
  this.DZ_INIT.emit(this.instance);
118
226
  });
119
227
  }
120
228
  // Add auto reset handling for events
121
229
  this.instance.on('success', () => {
122
- if (params.autoReset != null) {
123
- setTimeout(() => this.reset(), params.autoReset);
230
+ if ((this._params.autoReset ?? -1) >= 0) {
231
+ setTimeout(() => this.reset(), this._params.autoReset);
124
232
  }
125
233
  });
126
234
  this.instance.on('error', () => {
127
- if (params.errorReset != null) {
128
- setTimeout(() => this.reset(), params.errorReset);
235
+ if ((this._params.errorReset ?? -1) >= 0) {
236
+ setTimeout(() => this.reset(), this._params.errorReset);
129
237
  }
130
238
  });
131
239
  this.instance.on('canceled', () => {
132
- if (params.cancelReset != null) {
133
- setTimeout(() => this.reset(), params.cancelReset);
240
+ if ((this._params.cancelReset ?? -1) >= 0) {
241
+ setTimeout(() => this.reset(), this._params.cancelReset);
134
242
  }
135
243
  });
136
244
  // Add native Dropzone event handling
@@ -139,104 +247,52 @@ class DropzoneDirective {
139
247
  args = (args.length === 1) ? args[0] : args;
140
248
  const output = `DZ_${eventName.toUpperCase()}`;
141
249
  const emitter = this[output];
142
- if (emitter.observers.length > 0) {
250
+ if (emitter.observed) {
143
251
  this.zone.run(() => {
144
252
  emitter.emit(args);
145
253
  });
146
254
  }
147
255
  });
148
256
  });
149
- if (!this.configDiff) {
150
- this.configDiff = this.differs.find(this.config || {}).create();
151
- this.configDiff.diff(this.config || {});
152
- }
153
257
  }
154
- ngOnDestroy() {
258
+ destroyInstance() {
155
259
  if (this.instance) {
156
260
  this.zone.runOutsideAngular(() => {
157
261
  this.instance.destroy();
158
262
  });
159
- this.instance = null;
160
- }
161
- }
162
- ngDoCheck() {
163
- if (!this.disabled && this.configDiff) {
164
- const changes = this.configDiff.diff(this.config || {});
165
- if (changes && this.instance) {
166
- this.ngOnDestroy();
167
- this.ngOnInit();
168
- }
169
- }
170
- }
171
- ngOnChanges(changes) {
172
- if (this.instance && changes['disabled']) {
173
- if (changes['disabled'].currentValue !== changes['disabled'].previousValue) {
174
- if (changes['disabled'].currentValue === false) {
175
- this.zone.runOutsideAngular(() => {
176
- this.instance.enable();
177
- });
178
- }
179
- else if (changes['disabled'].currentValue === true) {
180
- this.zone.runOutsideAngular(() => {
181
- this.instance.disable();
182
- });
183
- }
184
- }
185
- }
186
- }
187
- dropzone() {
188
- return this.instance;
189
- }
190
- reset(cancel) {
191
- if (this.instance) {
192
- this.zone.runOutsideAngular(() => {
193
- this.instance.removeAllFiles(cancel);
194
- });
263
+ this.instance = undefined;
195
264
  }
196
265
  }
197
266
  }
198
- DropzoneDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropzoneDirective, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.KeyValueDiffers }, { token: PLATFORM_ID }, { token: DROPZONE_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
199
- DropzoneDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: DropzoneDirective, selector: "[dropzone]", inputs: { disabled: "disabled", config: ["dropzone", "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: ["ngxDropzone"], usesOnChanges: true, ngImport: i0 });
200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropzoneDirective, decorators: [{
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: [{
201
270
  type: Directive,
202
271
  args: [{
203
- selector: '[dropzone]',
204
- exportAs: 'ngxDropzone'
272
+ selector: '[nxtDropzone]',
273
+ exportAs: 'nxtDropzone'
205
274
  }]
206
- }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.KeyValueDiffers }, { type: Object, decorators: [{
275
+ }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.ElementRef }, { type: i0.KeyValueDiffers }, { type: Object, decorators: [{
207
276
  type: Inject,
208
277
  args: [PLATFORM_ID]
209
278
  }] }, { type: undefined, decorators: [{
210
279
  type: Optional
211
280
  }, {
212
281
  type: Inject,
213
- args: [DROPZONE_CONFIG]
282
+ args: [NXT_DROPZONE_CONFIG]
283
+ }] }, { type: undefined, decorators: [{
284
+ type: Optional
285
+ }, {
286
+ type: Inject,
287
+ args: [NXT_DROPZONE_LISTENERS]
214
288
  }] }]; }, propDecorators: { disabled: [{
215
289
  type: Input
216
290
  }], config: [{
217
291
  type: Input,
218
- args: ['dropzone']
292
+ args: ['nxtDropzone']
219
293
  }], DZ_INIT: [{
220
294
  type: Output,
221
295
  args: ['init']
222
- }], DZ_ERROR: [{
223
- type: Output,
224
- args: ['error']
225
- }], DZ_SUCCESS: [{
226
- type: Output,
227
- args: ['success']
228
- }], DZ_SENDING: [{
229
- type: Output,
230
- args: ['sending']
231
- }], DZ_CANCELED: [{
232
- type: Output,
233
- args: ['canceled']
234
- }], DZ_COMPLETE: [{
235
- type: Output,
236
- args: ['complete']
237
- }], DZ_PROCESSING: [{
238
- type: Output,
239
- args: ['processing']
240
296
  }], DZ_DROP: [{
241
297
  type: Output,
242
298
  args: ['drop']
@@ -255,9 +311,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
255
311
  }], DZ_DRAGLEAVE: [{
256
312
  type: Output,
257
313
  args: ['dragLeave']
258
- }], DZ_THUMBNAIL: [{
314
+ }], DZ_PASTE: [{
259
315
  type: Output,
260
- args: ['thumbnail']
316
+ args: ['paste']
317
+ }], DZ_RESET: [{
318
+ type: Output,
319
+ args: ['reset']
261
320
  }], DZ_ADDEDFILE: [{
262
321
  type: Output,
263
322
  args: ['addedFile']
@@ -267,109 +326,130 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
267
326
  }], DZ_REMOVEDFILE: [{
268
327
  type: Output,
269
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']
270
344
  }], DZ_UPLOADPROGRESS: [{
271
345
  type: Output,
272
346
  args: ['uploadProgress']
273
- }], DZ_MAXFILESREACHED: [{
347
+ }], DZ_TOTALUPLOADPROGRESS: [{
274
348
  type: Output,
275
- args: ['maxFilesReached']
276
- }], DZ_MAXFILESEXCEEDED: [{
349
+ args: ['totalUploadProgress']
350
+ }], DZ_SENDING: [{
277
351
  type: Output,
278
- args: ['maxFilesExceeded']
279
- }], DZ_ERRORMULTIPLE: [{
352
+ args: ['sending']
353
+ }], DZ_SENDINGMULTIPLE: [{
280
354
  type: Output,
281
- args: ['errorMultiple']
355
+ args: ['sendingMultiple']
356
+ }], DZ_SUCCESS: [{
357
+ type: Output,
358
+ args: ['success']
282
359
  }], DZ_SUCCESSMULTIPLE: [{
283
360
  type: Output,
284
361
  args: ['successMultiple']
285
- }], DZ_SENDINGMULTIPLE: [{
362
+ }], DZ_CANCELED: [{
286
363
  type: Output,
287
- args: ['sendingMultiple']
364
+ args: ['canceled']
288
365
  }], DZ_CANCELEDMULTIPLE: [{
289
366
  type: Output,
290
367
  args: ['canceledMultiple']
368
+ }], DZ_COMPLETE: [{
369
+ type: Output,
370
+ args: ['complete']
291
371
  }], DZ_COMPLETEMULTIPLE: [{
292
372
  type: Output,
293
373
  args: ['completeMultiple']
294
- }], DZ_PROCESSINGMULTIPLE: [{
374
+ }], DZ_MAXFILESEXCEEDED: [{
295
375
  type: Output,
296
- args: ['processingMultiple']
297
- }], DZ_RESET: [{
376
+ args: ['maxFilesExceeded']
377
+ }], DZ_MAXFILESREACHED: [{
298
378
  type: Output,
299
- args: ['reset']
379
+ args: ['maxFilesReached']
300
380
  }], DZ_QUEUECOMPLETE: [{
301
381
  type: Output,
302
382
  args: ['queueComplete']
303
- }], DZ_TOTALUPLOADPROGRESS: [{
304
- type: Output,
305
- args: ['totalUploadProgress']
383
+ }], isSingle: [{
384
+ type: HostBinding,
385
+ args: ['class.dz-single']
386
+ }], isMultiple: [{
387
+ type: HostBinding,
388
+ args: ['class.dz-multiple']
306
389
  }] } });
307
390
 
391
+ /* eslint-disable @angular-eslint/no-output-rename */
308
392
  class DropzoneComponent {
309
- constructor(platformId) {
310
- this.platformId = platformId;
393
+ constructor() {
394
+ /** Disables / detaches Dropzone from the element */
311
395
  this.disabled = false;
396
+ /** Message to show for the user on the upload area */
312
397
  this.message = 'Click or drag files to upload';
398
+ /** Placeholder image to be shown as the upload area */
313
399
  this.placeholder = '';
400
+ /** Use 'dropzone' class (use provided default styles) */
314
401
  this.useDropzoneClass = true;
315
402
  this.DZ_INIT = new EventEmitter();
316
- this.DZ_ERROR = new EventEmitter();
317
- this.DZ_SUCCESS = new EventEmitter();
318
- this.DZ_SENDING = new EventEmitter();
319
- this.DZ_CANCELED = new EventEmitter();
320
- this.DZ_COMPLETE = new EventEmitter();
321
- this.DZ_PROCESSING = new EventEmitter();
322
403
  this.DZ_DROP = new EventEmitter();
323
404
  this.DZ_DRAGSTART = new EventEmitter();
324
405
  this.DZ_DRAGEND = new EventEmitter();
325
406
  this.DZ_DRAGENTER = new EventEmitter();
326
407
  this.DZ_DRAGOVER = new EventEmitter();
327
408
  this.DZ_DRAGLEAVE = new EventEmitter();
328
- this.DZ_THUMBNAIL = new EventEmitter();
409
+ this.DZ_PASTE = new EventEmitter();
410
+ this.DZ_RESET = new EventEmitter();
329
411
  this.DZ_ADDEDFILE = new EventEmitter();
330
412
  this.DZ_ADDEDFILES = new EventEmitter();
331
413
  this.DZ_REMOVEDFILE = new EventEmitter();
332
- this.DZ_UPLOADPROGRESS = new EventEmitter();
333
- this.DZ_MAXFILESREACHED = new EventEmitter();
334
- this.DZ_MAXFILESEXCEEDED = new EventEmitter();
414
+ this.DZ_THUMBNAIL = new EventEmitter();
415
+ this.DZ_ERROR = new EventEmitter();
335
416
  this.DZ_ERRORMULTIPLE = new EventEmitter();
336
- this.DZ_SUCCESSMULTIPLE = new EventEmitter();
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();
337
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();
338
427
  this.DZ_CANCELEDMULTIPLE = new EventEmitter();
428
+ this.DZ_COMPLETE = new EventEmitter();
339
429
  this.DZ_COMPLETEMULTIPLE = new EventEmitter();
340
- this.DZ_PROCESSINGMULTIPLE = new EventEmitter();
341
- this.DZ_RESET = new EventEmitter();
430
+ this.DZ_MAXFILESEXCEEDED = new EventEmitter();
431
+ this.DZ_MAXFILESREACHED = new EventEmitter();
342
432
  this.DZ_QUEUECOMPLETE = new EventEmitter();
343
- this.DZ_TOTALUPLOADPROGRESS = new EventEmitter();
344
- }
345
- ngOnInit() {
346
- if (!isPlatformBrowser(this.platformId)) {
347
- return;
348
- }
349
- window.setTimeout(() => {
350
- DropzoneEvents.forEach((eventName) => {
351
- if (this.directiveRef) {
352
- const output = `DZ_${eventName.toUpperCase()}`;
353
- const directiveOutput = output;
354
- const componentOutput = output;
355
- this.directiveRef[directiveOutput] = this[componentOutput];
356
- }
357
- });
358
- }, 0);
359
433
  }
434
+ /** @internal */
435
+ ngOnInit() { }
436
+ /** @internal */
360
437
  getPlaceholder() {
361
438
  return 'url(' + encodeURI(this.placeholder) + ')';
362
439
  }
363
440
  }
364
- DropzoneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropzoneComponent, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component });
365
- DropzoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", 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"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", 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"] }], encapsulation: i0.ViewEncapsulation.None });
366
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropzoneComponent, decorators: [{
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: [{
367
447
  type: Component,
368
- args: [{ selector: 'dropzone', exportAs: 'ngxDropzone', encapsulation: ViewEncapsulation.None, 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"] }]
369
- }], ctorParameters: function () { return [{ type: Object, decorators: [{
370
- type: Inject,
371
- args: [PLATFORM_ID]
372
- }] }]; }, propDecorators: { disabled: [{
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: [{
373
453
  type: Input
374
454
  }], config: [{
375
455
  type: Input
@@ -382,24 +462,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
382
462
  }], DZ_INIT: [{
383
463
  type: Output,
384
464
  args: ['init']
385
- }], DZ_ERROR: [{
386
- type: Output,
387
- args: ['error']
388
- }], DZ_SUCCESS: [{
389
- type: Output,
390
- args: ['success']
391
- }], DZ_SENDING: [{
392
- type: Output,
393
- args: ['sending']
394
- }], DZ_CANCELED: [{
395
- type: Output,
396
- args: ['canceled']
397
- }], DZ_COMPLETE: [{
398
- type: Output,
399
- args: ['complete']
400
- }], DZ_PROCESSING: [{
401
- type: Output,
402
- args: ['processing']
403
465
  }], DZ_DROP: [{
404
466
  type: Output,
405
467
  args: ['drop']
@@ -418,9 +480,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
418
480
  }], DZ_DRAGLEAVE: [{
419
481
  type: Output,
420
482
  args: ['dragLeave']
421
- }], DZ_THUMBNAIL: [{
483
+ }], DZ_PASTE: [{
422
484
  type: Output,
423
- args: ['thumbnail']
485
+ args: ['paste']
486
+ }], DZ_RESET: [{
487
+ type: Output,
488
+ args: ['reset']
424
489
  }], DZ_ADDEDFILE: [{
425
490
  type: Output,
426
491
  args: ['addedFile']
@@ -430,58 +495,86 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
430
495
  }], DZ_REMOVEDFILE: [{
431
496
  type: Output,
432
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']
433
513
  }], DZ_UPLOADPROGRESS: [{
434
514
  type: Output,
435
515
  args: ['uploadProgress']
436
- }], DZ_MAXFILESREACHED: [{
516
+ }], DZ_TOTALUPLOADPROGRESS: [{
437
517
  type: Output,
438
- args: ['maxFilesReached']
439
- }], DZ_MAXFILESEXCEEDED: [{
518
+ args: ['totalUploadProgress']
519
+ }], DZ_SENDING: [{
440
520
  type: Output,
441
- args: ['maxFilesExceeded']
442
- }], DZ_ERRORMULTIPLE: [{
521
+ args: ['sending']
522
+ }], DZ_SENDINGMULTIPLE: [{
443
523
  type: Output,
444
- args: ['errorMultiple']
524
+ args: ['sendingMultiple']
525
+ }], DZ_SUCCESS: [{
526
+ type: Output,
527
+ args: ['success']
445
528
  }], DZ_SUCCESSMULTIPLE: [{
446
529
  type: Output,
447
530
  args: ['successMultiple']
448
- }], DZ_SENDINGMULTIPLE: [{
531
+ }], DZ_CANCELED: [{
449
532
  type: Output,
450
- args: ['sendingMultiple']
533
+ args: ['canceled']
451
534
  }], DZ_CANCELEDMULTIPLE: [{
452
535
  type: Output,
453
536
  args: ['canceledMultiple']
537
+ }], DZ_COMPLETE: [{
538
+ type: Output,
539
+ args: ['complete']
454
540
  }], DZ_COMPLETEMULTIPLE: [{
455
541
  type: Output,
456
542
  args: ['completeMultiple']
457
- }], DZ_PROCESSINGMULTIPLE: [{
543
+ }], DZ_MAXFILESEXCEEDED: [{
458
544
  type: Output,
459
- args: ['processingMultiple']
460
- }], DZ_RESET: [{
545
+ args: ['maxFilesExceeded']
546
+ }], DZ_MAXFILESREACHED: [{
461
547
  type: Output,
462
- args: ['reset']
548
+ args: ['maxFilesReached']
463
549
  }], DZ_QUEUECOMPLETE: [{
464
550
  type: Output,
465
551
  args: ['queueComplete']
466
- }], DZ_TOTALUPLOADPROGRESS: [{
467
- type: Output,
468
- args: ['totalUploadProgress']
469
552
  }], directiveRef: [{
470
553
  type: ViewChild,
471
- args: [DropzoneDirective, { static: true }]
554
+ args: [DropzoneDirective]
472
555
  }] } });
473
556
 
474
557
  class DropzoneModule {
475
558
  }
476
- DropzoneModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropzoneModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
477
- DropzoneModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: DropzoneModule, declarations: [DropzoneComponent, DropzoneDirective], imports: [CommonModule], exports: [CommonModule, DropzoneComponent, DropzoneDirective] });
478
- DropzoneModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropzoneModule, imports: [CommonModule, CommonModule] });
479
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DropzoneModule, decorators: [{
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,
561
+ DropzoneDirective], imports: [CommonModule], exports: [DropzoneComponent,
562
+ DropzoneDirective] });
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: [{
480
565
  type: NgModule,
481
566
  args: [{
482
- imports: [CommonModule],
483
- declarations: [DropzoneComponent, DropzoneDirective],
484
- exports: [CommonModule, DropzoneComponent, DropzoneDirective]
567
+ declarations: [
568
+ DropzoneComponent,
569
+ DropzoneDirective
570
+ ],
571
+ imports: [
572
+ CommonModule
573
+ ],
574
+ exports: [
575
+ DropzoneComponent,
576
+ DropzoneDirective
577
+ ]
485
578
  }]
486
579
  }] });
487
580
 
@@ -489,5 +582,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
489
582
  * Generated bundle index. Do not edit.
490
583
  */
491
584
 
492
- export { DROPZONE_CONFIG, DropzoneComponent, DropzoneConfig, DropzoneDirective, DropzoneModule };
585
+ export { DropzoneComponent, DropzoneDirective, DropzoneModule, NXT_DROPZONE_CONFIG };
493
586
  //# sourceMappingURL=nxt-dropzone-wrapper.mjs.map