nxt-dropzone-wrapper 16.0.0-alpha.6 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,570 +0,0 @@
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';
3
- import * as i1 from '@angular/common';
4
- import { isPlatformBrowser, CommonModule } from '@angular/common';
5
- import Dropzone from 'dropzone';
6
-
7
- const NXT_DROPZONE_CONFIG = new InjectionToken('NXT_DROPZONE_CONFIG');
8
- /** @internal */
9
- const DropzoneEvents = [
10
- 'init',
11
- 'drop',
12
- 'dragStart',
13
- 'dragEnd',
14
- 'dragEnter',
15
- 'dragOver',
16
- 'dragLeave',
17
- 'paste',
18
- 'reset',
19
- 'addedFile',
20
- 'addedFiles',
21
- 'removedFile',
22
- 'thumbnail',
23
- 'error',
24
- 'errorMultiple',
25
- 'processing',
26
- 'processingMultiple',
27
- 'uploadProgress',
28
- 'totalUploadProgress',
29
- 'sending',
30
- 'sendingMultiple',
31
- 'success',
32
- 'successMultiple',
33
- 'canceled',
34
- 'canceledMultiple',
35
- 'complete',
36
- 'completeMultiple',
37
- 'maxFilesExceeded',
38
- 'maxFilesReached',
39
- 'queueComplete'
40
- ];
41
- /** @internal */
42
- const internalChanges = new Set([
43
- 'autoReset',
44
- 'errorReset',
45
- 'cancelReset'
46
- ]);
47
- /** @internal */
48
- class _DropzoneConfig {
49
- constructor(config = {}) {
50
- this.assign(config);
51
- }
52
- assign(config = {}, target) {
53
- target = target || this;
54
- for (const key in config) {
55
- if (config[key] != null
56
- && config[key] != undefined
57
- && !Array.isArray(config[key])
58
- && typeof config[key] === 'object'
59
- && !(config[key] instanceof HTMLElement)) {
60
- target[key] = {};
61
- this.assign(config[key], target[key]);
62
- }
63
- else {
64
- target[key] = config[key];
65
- }
66
- }
67
- }
68
- }
69
- /** @internal */
70
- const NXT_DROPZONE_LISTENERS = new InjectionToken('NXT_DROPZONE_LISTENERS');
71
-
72
- /* eslint-disable @angular-eslint/no-output-rename */
73
- class DropzoneDirective {
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
- var _a;
98
- return ((_a = this._params) === null || _a === void 0 ? void 0 : _a.maxFiles) === 1;
99
- }
100
- /** @internal */
101
- get isMultiple() {
102
- var _a;
103
- return ((_a = this._params) === null || _a === void 0 ? void 0 : _a.maxFiles) !== 1;
104
- }
105
- constructor(zone, elementRef, differs, platformId, defaults, component) {
106
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35;
107
- this.zone = zone;
108
- this.elementRef = elementRef;
109
- this.differs = differs;
110
- this.platformId = platformId;
111
- this.defaults = defaults;
112
- this.component = component;
113
- this._disabled = false;
114
- this._params = this.defaults
115
- ? new _DropzoneConfig(this.defaults)
116
- : undefined;
117
- this.configDiff = this.differs.find(this.config || {}).create();
118
- this.paramDiff = this.differs.find(this._params || {}).create();
119
- this.DZ_INIT = (_b = (_a = this.component) === null || _a === void 0 ? void 0 : _a.DZ_INIT) !== null && _b !== void 0 ? _b : new EventEmitter();
120
- this.DZ_DROP = (_d = (_c = this.component) === null || _c === void 0 ? void 0 : _c.DZ_DROP) !== null && _d !== void 0 ? _d : new EventEmitter();
121
- this.DZ_DRAGSTART = (_f = (_e = this.component) === null || _e === void 0 ? void 0 : _e.DZ_DRAGSTART) !== null && _f !== void 0 ? _f : new EventEmitter();
122
- this.DZ_DRAGEND = (_h = (_g = this.component) === null || _g === void 0 ? void 0 : _g.DZ_DRAGEND) !== null && _h !== void 0 ? _h : new EventEmitter();
123
- this.DZ_DRAGENTER = (_k = (_j = this.component) === null || _j === void 0 ? void 0 : _j.DZ_DRAGENTER) !== null && _k !== void 0 ? _k : new EventEmitter();
124
- this.DZ_DRAGOVER = (_m = (_l = this.component) === null || _l === void 0 ? void 0 : _l.DZ_DRAGOVER) !== null && _m !== void 0 ? _m : new EventEmitter();
125
- this.DZ_DRAGLEAVE = (_p = (_o = this.component) === null || _o === void 0 ? void 0 : _o.DZ_DRAGLEAVE) !== null && _p !== void 0 ? _p : new EventEmitter();
126
- this.DZ_PASTE = (_r = (_q = this.component) === null || _q === void 0 ? void 0 : _q.DZ_PASTE) !== null && _r !== void 0 ? _r : new EventEmitter();
127
- this.DZ_RESET = (_t = (_s = this.component) === null || _s === void 0 ? void 0 : _s.DZ_RESET) !== null && _t !== void 0 ? _t : new EventEmitter();
128
- this.DZ_ADDEDFILE = (_v = (_u = this.component) === null || _u === void 0 ? void 0 : _u.DZ_ADDEDFILE) !== null && _v !== void 0 ? _v : new EventEmitter();
129
- this.DZ_ADDEDFILES = (_x = (_w = this.component) === null || _w === void 0 ? void 0 : _w.DZ_ADDEDFILES) !== null && _x !== void 0 ? _x : new EventEmitter();
130
- this.DZ_REMOVEDFILE = (_z = (_y = this.component) === null || _y === void 0 ? void 0 : _y.DZ_REMOVEDFILE) !== null && _z !== void 0 ? _z : new EventEmitter();
131
- this.DZ_THUMBNAIL = (_1 = (_0 = this.component) === null || _0 === void 0 ? void 0 : _0.DZ_THUMBNAIL) !== null && _1 !== void 0 ? _1 : new EventEmitter();
132
- this.DZ_ERROR = (_3 = (_2 = this.component) === null || _2 === void 0 ? void 0 : _2.DZ_ERROR) !== null && _3 !== void 0 ? _3 : new EventEmitter();
133
- this.DZ_ERRORMULTIPLE = (_5 = (_4 = this.component) === null || _4 === void 0 ? void 0 : _4.DZ_ERRORMULTIPLE) !== null && _5 !== void 0 ? _5 : new EventEmitter();
134
- this.DZ_PROCESSING = (_7 = (_6 = this.component) === null || _6 === void 0 ? void 0 : _6.DZ_PROCESSING) !== null && _7 !== void 0 ? _7 : new EventEmitter();
135
- this.DZ_PROCESSINGMULTIPLE = (_9 = (_8 = this.component) === null || _8 === void 0 ? void 0 : _8.DZ_PROCESSINGMULTIPLE) !== null && _9 !== void 0 ? _9 : new EventEmitter();
136
- this.DZ_UPLOADPROGRESS = (_11 = (_10 = this.component) === null || _10 === void 0 ? void 0 : _10.DZ_UPLOADPROGRESS) !== null && _11 !== void 0 ? _11 : new EventEmitter();
137
- this.DZ_TOTALUPLOADPROGRESS = (_13 = (_12 = this.component) === null || _12 === void 0 ? void 0 : _12.DZ_TOTALUPLOADPROGRESS) !== null && _13 !== void 0 ? _13 : new EventEmitter();
138
- this.DZ_SENDING = (_15 = (_14 = this.component) === null || _14 === void 0 ? void 0 : _14.DZ_SENDING) !== null && _15 !== void 0 ? _15 : new EventEmitter();
139
- this.DZ_SENDINGMULTIPLE = (_17 = (_16 = this.component) === null || _16 === void 0 ? void 0 : _16.DZ_SENDINGMULTIPLE) !== null && _17 !== void 0 ? _17 : new EventEmitter();
140
- this.DZ_SUCCESS = (_19 = (_18 = this.component) === null || _18 === void 0 ? void 0 : _18.DZ_SUCCESS) !== null && _19 !== void 0 ? _19 : new EventEmitter();
141
- this.DZ_SUCCESSMULTIPLE = (_21 = (_20 = this.component) === null || _20 === void 0 ? void 0 : _20.DZ_SUCCESSMULTIPLE) !== null && _21 !== void 0 ? _21 : new EventEmitter();
142
- this.DZ_CANCELED = (_23 = (_22 = this.component) === null || _22 === void 0 ? void 0 : _22.DZ_CANCELED) !== null && _23 !== void 0 ? _23 : new EventEmitter();
143
- this.DZ_CANCELEDMULTIPLE = (_25 = (_24 = this.component) === null || _24 === void 0 ? void 0 : _24.DZ_CANCELEDMULTIPLE) !== null && _25 !== void 0 ? _25 : new EventEmitter();
144
- this.DZ_COMPLETE = (_27 = (_26 = this.component) === null || _26 === void 0 ? void 0 : _26.DZ_COMPLETE) !== null && _27 !== void 0 ? _27 : new EventEmitter();
145
- this.DZ_COMPLETEMULTIPLE = (_29 = (_28 = this.component) === null || _28 === void 0 ? void 0 : _28.DZ_COMPLETEMULTIPLE) !== null && _29 !== void 0 ? _29 : new EventEmitter();
146
- this.DZ_MAXFILESEXCEEDED = (_31 = (_30 = this.component) === null || _30 === void 0 ? void 0 : _30.DZ_MAXFILESEXCEEDED) !== null && _31 !== void 0 ? _31 : new EventEmitter();
147
- this.DZ_MAXFILESREACHED = (_33 = (_32 = this.component) === null || _32 === void 0 ? void 0 : _32.DZ_MAXFILESREACHED) !== null && _33 !== void 0 ? _33 : new EventEmitter();
148
- this.DZ_QUEUECOMPLETE = (_35 = (_34 = this.component) === null || _34 === void 0 ? void 0 : _34.DZ_QUEUECOMPLETE) !== null && _35 !== void 0 ? _35 : new EventEmitter();
149
- }
150
- /** @internal */
151
- ngOnInit() {
152
- this.initInstance();
153
- }
154
- /** @internal */
155
- ngOnDestroy() {
156
- this.destroyInstance();
157
- }
158
- /** @internal */
159
- ngDoCheck() {
160
- const changes = this.configDiff.diff(this.config || {});
161
- if (changes) {
162
- let newParams = this.defaults
163
- ? new _DropzoneConfig(this.defaults)
164
- : undefined;
165
- if (newParams && this.config)
166
- newParams.assign(this.config);
167
- else if (this.config)
168
- newParams = new _DropzoneConfig(this.config);
169
- const d = this.paramDiff.diff(newParams || {});
170
- if (d) {
171
- this._params = newParams;
172
- let hasChanges = false;
173
- d.forEachItem(r => {
174
- if (!internalChanges.has(r.key) && r.currentValue !== r.previousValue)
175
- hasChanges = true;
176
- });
177
- if (hasChanges) {
178
- this.destroyInstance();
179
- this.initInstance();
180
- }
181
- }
182
- }
183
- }
184
- /** @internal */
185
- reset(cancel) {
186
- if (this.instance) {
187
- this.zone.runOutsideAngular(() => {
188
- this.instance.removeAllFiles(cancel);
189
- });
190
- }
191
- }
192
- initInstance() {
193
- if (!isPlatformBrowser(this.platformId) || !this._params) {
194
- return;
195
- }
196
- this.zone.runOutsideAngular(() => {
197
- this.instance = new Dropzone(this.elementRef.nativeElement, this._params);
198
- });
199
- if (this.disabled) {
200
- this.instance.disable();
201
- }
202
- if (this.DZ_INIT.observed) {
203
- this.zone.run(() => {
204
- this.DZ_INIT.emit(this.instance);
205
- });
206
- }
207
- // Add auto reset handling for events
208
- this.instance.on('success', () => {
209
- var _a, _b, _c;
210
- if (((_b = (_a = this._params) === null || _a === void 0 ? void 0 : _a.autoReset) !== null && _b !== void 0 ? _b : -1) >= 0) {
211
- setTimeout(() => this.reset(), (_c = this._params) === null || _c === void 0 ? void 0 : _c.autoReset);
212
- }
213
- });
214
- this.instance.on('error', () => {
215
- var _a, _b, _c;
216
- if (((_b = (_a = this._params) === null || _a === void 0 ? void 0 : _a.errorReset) !== null && _b !== void 0 ? _b : -1) >= 0) {
217
- setTimeout(() => this.reset(), (_c = this._params) === null || _c === void 0 ? void 0 : _c.errorReset);
218
- }
219
- });
220
- this.instance.on('canceled', () => {
221
- var _a, _b, _c;
222
- if (((_b = (_a = this._params) === null || _a === void 0 ? void 0 : _a.cancelReset) !== null && _b !== void 0 ? _b : -1) >= 0) {
223
- setTimeout(() => this.reset(), (_c = this._params) === null || _c === void 0 ? void 0 : _c.cancelReset);
224
- }
225
- });
226
- // Add native Dropzone event handling
227
- DropzoneEvents.forEach((eventName) => {
228
- this.instance.on(eventName.toLowerCase(), (...args) => {
229
- args = (args.length === 1) ? args[0] : args;
230
- const output = `DZ_${eventName.toUpperCase()}`;
231
- const emitter = this[output];
232
- if (emitter.observed) {
233
- this.zone.run(() => {
234
- emitter.emit(args);
235
- });
236
- }
237
- });
238
- });
239
- }
240
- destroyInstance() {
241
- if (this.instance) {
242
- this.zone.runOutsideAngular(() => {
243
- this.instance.destroy();
244
- });
245
- this.instance = undefined;
246
- }
247
- }
248
- }
249
- DropzoneDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", 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 });
250
- DropzoneDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.4", 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 });
251
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DropzoneDirective, decorators: [{
252
- type: Directive,
253
- args: [{
254
- selector: '[nxtDropzone]',
255
- exportAs: 'nxtDropzone'
256
- }]
257
- }], ctorParameters: function () {
258
- return [{ type: i0.NgZone }, { type: i0.ElementRef }, { type: i0.KeyValueDiffers }, { type: Object, decorators: [{
259
- type: Inject,
260
- args: [PLATFORM_ID]
261
- }] }, { type: undefined, decorators: [{
262
- type: Optional
263
- }, {
264
- type: Inject,
265
- args: [NXT_DROPZONE_CONFIG]
266
- }] }, { type: undefined, decorators: [{
267
- type: Optional
268
- }, {
269
- type: Inject,
270
- args: [NXT_DROPZONE_LISTENERS]
271
- }] }];
272
- }, propDecorators: { disabled: [{
273
- type: Input
274
- }], config: [{
275
- type: Input,
276
- args: ['nxtDropzone']
277
- }], DZ_INIT: [{
278
- type: Output,
279
- args: ['init']
280
- }], DZ_DROP: [{
281
- type: Output,
282
- args: ['drop']
283
- }], DZ_DRAGSTART: [{
284
- type: Output,
285
- args: ['dragStart']
286
- }], DZ_DRAGEND: [{
287
- type: Output,
288
- args: ['dragEnd']
289
- }], DZ_DRAGENTER: [{
290
- type: Output,
291
- args: ['dragEnter']
292
- }], DZ_DRAGOVER: [{
293
- type: Output,
294
- args: ['dragOver']
295
- }], DZ_DRAGLEAVE: [{
296
- type: Output,
297
- args: ['dragLeave']
298
- }], DZ_PASTE: [{
299
- type: Output,
300
- args: ['paste']
301
- }], DZ_RESET: [{
302
- type: Output,
303
- args: ['reset']
304
- }], DZ_ADDEDFILE: [{
305
- type: Output,
306
- args: ['addedFile']
307
- }], DZ_ADDEDFILES: [{
308
- type: Output,
309
- args: ['addedFiles']
310
- }], DZ_REMOVEDFILE: [{
311
- type: Output,
312
- args: ['removedFile']
313
- }], DZ_THUMBNAIL: [{
314
- type: Output,
315
- args: ['thumbnail']
316
- }], DZ_ERROR: [{
317
- type: Output,
318
- args: ['error']
319
- }], DZ_ERRORMULTIPLE: [{
320
- type: Output,
321
- args: ['errorMultiple']
322
- }], DZ_PROCESSING: [{
323
- type: Output,
324
- args: ['processing']
325
- }], DZ_PROCESSINGMULTIPLE: [{
326
- type: Output,
327
- args: ['processingMultiple']
328
- }], DZ_UPLOADPROGRESS: [{
329
- type: Output,
330
- args: ['uploadProgress']
331
- }], DZ_TOTALUPLOADPROGRESS: [{
332
- type: Output,
333
- args: ['totalUploadProgress']
334
- }], DZ_SENDING: [{
335
- type: Output,
336
- args: ['sending']
337
- }], DZ_SENDINGMULTIPLE: [{
338
- type: Output,
339
- args: ['sendingMultiple']
340
- }], DZ_SUCCESS: [{
341
- type: Output,
342
- args: ['success']
343
- }], DZ_SUCCESSMULTIPLE: [{
344
- type: Output,
345
- args: ['successMultiple']
346
- }], DZ_CANCELED: [{
347
- type: Output,
348
- args: ['canceled']
349
- }], DZ_CANCELEDMULTIPLE: [{
350
- type: Output,
351
- args: ['canceledMultiple']
352
- }], DZ_COMPLETE: [{
353
- type: Output,
354
- args: ['complete']
355
- }], DZ_COMPLETEMULTIPLE: [{
356
- type: Output,
357
- args: ['completeMultiple']
358
- }], DZ_MAXFILESEXCEEDED: [{
359
- type: Output,
360
- args: ['maxFilesExceeded']
361
- }], DZ_MAXFILESREACHED: [{
362
- type: Output,
363
- args: ['maxFilesReached']
364
- }], DZ_QUEUECOMPLETE: [{
365
- type: Output,
366
- args: ['queueComplete']
367
- }], isSingle: [{
368
- type: HostBinding,
369
- args: ['class.dz-single']
370
- }], isMultiple: [{
371
- type: HostBinding,
372
- args: ['class.dz-multiple']
373
- }] } });
374
-
375
- /* eslint-disable @angular-eslint/no-output-rename */
376
- class DropzoneComponent {
377
- constructor() {
378
- /** Disables / detaches Dropzone from the element */
379
- this.disabled = false;
380
- /** Message to show for the user on the upload area */
381
- this.message = 'Click or drag files to upload';
382
- /** Placeholder image to be shown as the upload area */
383
- this.placeholder = '';
384
- /** Use 'dropzone' class (use provided default styles) */
385
- this.useDropzoneClass = true;
386
- this.DZ_INIT = new EventEmitter();
387
- this.DZ_DROP = new EventEmitter();
388
- this.DZ_DRAGSTART = new EventEmitter();
389
- this.DZ_DRAGEND = new EventEmitter();
390
- this.DZ_DRAGENTER = new EventEmitter();
391
- this.DZ_DRAGOVER = new EventEmitter();
392
- this.DZ_DRAGLEAVE = new EventEmitter();
393
- this.DZ_PASTE = new EventEmitter();
394
- this.DZ_RESET = new EventEmitter();
395
- this.DZ_ADDEDFILE = new EventEmitter();
396
- this.DZ_ADDEDFILES = new EventEmitter();
397
- this.DZ_REMOVEDFILE = new EventEmitter();
398
- this.DZ_THUMBNAIL = new EventEmitter();
399
- this.DZ_ERROR = new EventEmitter();
400
- this.DZ_ERRORMULTIPLE = new EventEmitter();
401
- this.DZ_PROCESSING = new EventEmitter();
402
- this.DZ_PROCESSINGMULTIPLE = new EventEmitter();
403
- this.DZ_UPLOADPROGRESS = new EventEmitter();
404
- this.DZ_TOTALUPLOADPROGRESS = new EventEmitter();
405
- this.DZ_SENDING = new EventEmitter();
406
- this.DZ_SENDINGMULTIPLE = new EventEmitter();
407
- // eslint-disable-next-line @typescript-eslint/ban-types
408
- this.DZ_SUCCESS = new EventEmitter();
409
- this.DZ_SUCCESSMULTIPLE = new EventEmitter();
410
- this.DZ_CANCELED = new EventEmitter();
411
- this.DZ_CANCELEDMULTIPLE = new EventEmitter();
412
- this.DZ_COMPLETE = new EventEmitter();
413
- this.DZ_COMPLETEMULTIPLE = new EventEmitter();
414
- this.DZ_MAXFILESEXCEEDED = new EventEmitter();
415
- this.DZ_MAXFILESREACHED = new EventEmitter();
416
- this.DZ_QUEUECOMPLETE = new EventEmitter();
417
- }
418
- /** @internal */
419
- ngOnInit() { }
420
- /** @internal */
421
- getPlaceholder() {
422
- return 'url(' + encodeURI(this.placeholder) + ')';
423
- }
424
- }
425
- DropzoneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DropzoneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
426
- DropzoneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.4", 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: [{
427
- provide: NXT_DROPZONE_LISTENERS,
428
- useValue: forwardRef(() => DropzoneComponent)
429
- }], 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 });
430
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DropzoneComponent, decorators: [{
431
- type: Component,
432
- args: [{ selector: 'nxt-dropzone', encapsulation: ViewEncapsulation.None, providers: [{
433
- provide: NXT_DROPZONE_LISTENERS,
434
- useValue: forwardRef(() => DropzoneComponent)
435
- }], 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"] }]
436
- }], ctorParameters: function () { return []; }, propDecorators: { disabled: [{
437
- type: Input
438
- }], config: [{
439
- type: Input
440
- }], message: [{
441
- type: Input
442
- }], placeholder: [{
443
- type: Input
444
- }], useDropzoneClass: [{
445
- type: Input
446
- }], DZ_INIT: [{
447
- type: Output,
448
- args: ['init']
449
- }], DZ_DROP: [{
450
- type: Output,
451
- args: ['drop']
452
- }], DZ_DRAGSTART: [{
453
- type: Output,
454
- args: ['dragStart']
455
- }], DZ_DRAGEND: [{
456
- type: Output,
457
- args: ['dragEnd']
458
- }], DZ_DRAGENTER: [{
459
- type: Output,
460
- args: ['dragEnter']
461
- }], DZ_DRAGOVER: [{
462
- type: Output,
463
- args: ['dragOver']
464
- }], DZ_DRAGLEAVE: [{
465
- type: Output,
466
- args: ['dragLeave']
467
- }], DZ_PASTE: [{
468
- type: Output,
469
- args: ['paste']
470
- }], DZ_RESET: [{
471
- type: Output,
472
- args: ['reset']
473
- }], DZ_ADDEDFILE: [{
474
- type: Output,
475
- args: ['addedFile']
476
- }], DZ_ADDEDFILES: [{
477
- type: Output,
478
- args: ['addedFiles']
479
- }], DZ_REMOVEDFILE: [{
480
- type: Output,
481
- args: ['removedFile']
482
- }], DZ_THUMBNAIL: [{
483
- type: Output,
484
- args: ['thumbnail']
485
- }], DZ_ERROR: [{
486
- type: Output,
487
- args: ['error']
488
- }], DZ_ERRORMULTIPLE: [{
489
- type: Output,
490
- args: ['errorMultiple']
491
- }], DZ_PROCESSING: [{
492
- type: Output,
493
- args: ['processing']
494
- }], DZ_PROCESSINGMULTIPLE: [{
495
- type: Output,
496
- args: ['processingMultiple']
497
- }], DZ_UPLOADPROGRESS: [{
498
- type: Output,
499
- args: ['uploadProgress']
500
- }], DZ_TOTALUPLOADPROGRESS: [{
501
- type: Output,
502
- args: ['totalUploadProgress']
503
- }], DZ_SENDING: [{
504
- type: Output,
505
- args: ['sending']
506
- }], DZ_SENDINGMULTIPLE: [{
507
- type: Output,
508
- args: ['sendingMultiple']
509
- }], DZ_SUCCESS: [{
510
- type: Output,
511
- args: ['success']
512
- }], DZ_SUCCESSMULTIPLE: [{
513
- type: Output,
514
- args: ['successMultiple']
515
- }], DZ_CANCELED: [{
516
- type: Output,
517
- args: ['canceled']
518
- }], DZ_CANCELEDMULTIPLE: [{
519
- type: Output,
520
- args: ['canceledMultiple']
521
- }], DZ_COMPLETE: [{
522
- type: Output,
523
- args: ['complete']
524
- }], DZ_COMPLETEMULTIPLE: [{
525
- type: Output,
526
- args: ['completeMultiple']
527
- }], DZ_MAXFILESEXCEEDED: [{
528
- type: Output,
529
- args: ['maxFilesExceeded']
530
- }], DZ_MAXFILESREACHED: [{
531
- type: Output,
532
- args: ['maxFilesReached']
533
- }], DZ_QUEUECOMPLETE: [{
534
- type: Output,
535
- args: ['queueComplete']
536
- }], directiveRef: [{
537
- type: ViewChild,
538
- args: [DropzoneDirective]
539
- }] } });
540
-
541
- class DropzoneModule {
542
- }
543
- DropzoneModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DropzoneModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
544
- DropzoneModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.4", ngImport: i0, type: DropzoneModule, declarations: [DropzoneComponent,
545
- DropzoneDirective], imports: [CommonModule], exports: [DropzoneComponent,
546
- DropzoneDirective] });
547
- DropzoneModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DropzoneModule, imports: [CommonModule] });
548
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: DropzoneModule, decorators: [{
549
- type: NgModule,
550
- args: [{
551
- declarations: [
552
- DropzoneComponent,
553
- DropzoneDirective
554
- ],
555
- imports: [
556
- CommonModule
557
- ],
558
- exports: [
559
- DropzoneComponent,
560
- DropzoneDirective
561
- ]
562
- }]
563
- }] });
564
-
565
- /**
566
- * Generated bundle index. Do not edit.
567
- */
568
-
569
- export { DropzoneComponent, DropzoneDirective, DropzoneModule, NXT_DROPZONE_CONFIG };
570
- //# sourceMappingURL=nxt-dropzone-wrapper.mjs.map