nxt-dropzone-wrapper 22.0.0-alpha.0 → 22.1.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 +1 @@
1
- {"version":3,"file":"nxt-dropzone-wrapper.mjs","sources":["../../../packages/dropzone-wrapper/src/lib/dropzone.interfaces.ts","../../../packages/dropzone-wrapper/src/lib/dropzone.directive.ts","../../../packages/dropzone-wrapper/src/lib/dropzone.component.ts","../../../packages/dropzone-wrapper/src/lib/dropzone.component.html","../../../packages/dropzone-wrapper/src/nxt-dropzone-wrapper.ts"],"sourcesContent":["/* eslint-disable @angular-eslint/no-output-rename */\r\nimport { InjectionToken, makeEnvironmentProviders, output, Directive, OutputEmitterRef } from '@angular/core'\r\n\r\nexport const NXT_DROPZONE_CONFIG = new InjectionToken<DropzoneConfig>('NXT_DROPZONE_CONFIG')\r\n\r\nexport function provideDropzoneConfig(config: DropzoneConfig) {\r\n return makeEnvironmentProviders([\r\n {\r\n provide: NXT_DROPZONE_CONFIG,\r\n useValue: config\r\n }\r\n ])\r\n}\r\n\r\n/** @internal */\r\nexport const DropzoneEvents = [\r\n 'init',\r\n\r\n 'drop',\r\n 'dragStart',\r\n 'dragEnd',\r\n 'dragEnter',\r\n 'dragOver',\r\n 'dragLeave',\r\n 'paste',\r\n\r\n 'reset',\r\n\r\n 'addedFile',\r\n 'addedFiles',\r\n 'removedFile',\r\n 'thumbnail',\r\n\r\n 'error',\r\n 'errorMultiple',\r\n\r\n 'processing',\r\n 'processingMultiple',\r\n\r\n 'uploadProgress',\r\n 'totalUploadProgress',\r\n\r\n 'sending',\r\n 'sendingMultiple',\r\n\r\n 'success',\r\n 'successMultiple',\r\n\r\n 'canceled',\r\n 'canceledMultiple',\r\n\r\n 'complete',\r\n 'completeMultiple',\r\n\r\n 'maxFilesExceeded',\r\n 'maxFilesReached',\r\n\r\n 'queueComplete'\r\n] as const\r\n\r\n/** @internal */\r\nexport type DropzoneEvent = typeof DropzoneEvents[number]\r\n\r\n/** @internal */\r\nexport type DZ_EVENTS = { [P in `DZ_${Uppercase<DropzoneEvent>}`]: OutputEmitterRef<any> }\r\n\r\nexport interface DropzoneConfig extends Dropzone.DropzoneOptions {\r\n /**\r\n * Time in ms until input resets after a successful upload\r\n */\r\n autoReset?: number\r\n /**\r\n * Time in ms until input resets after upload error\r\n */\r\n errorReset?: number\r\n /**\r\n * Time in ms until input resets after cancelled upload\r\n */\r\n cancelReset?: number\r\n}\r\n\r\n/** @internal */\r\nexport const internalChanges = new Set([\r\n 'autoReset',\r\n 'errorReset',\r\n 'cancelReset'\r\n])\r\n\r\n/** @internal */\r\nexport class _DropzoneConfig implements DropzoneConfig {\r\n autoReset?: number\r\n errorReset?: number\r\n cancelReset?: number\r\n\r\n maxFiles?: number\r\n\r\n constructor(config: DropzoneConfig = {}) {\r\n this.assign(config)\r\n }\r\n\r\n assign(config: DropzoneConfig | any = {}, target?: any) {\r\n target = target || this\r\n\r\n for (const key in config) {\r\n if (config[key] != null\r\n && config[key] != undefined\r\n && !Array.isArray(config[key])\r\n && typeof config[key] === 'object'\r\n && !(config[key] instanceof HTMLElement)\r\n ) {\r\n target[key] = {}\r\n\r\n this.assign(config[key], target[key])\r\n } else {\r\n target[key] = config[key]\r\n }\r\n }\r\n }\r\n}\r\n\r\n@Directive()\r\nexport class DropzoneListeners implements DZ_EVENTS {\r\n readonly DZ_INIT = output<Dropzone>({ alias: 'init' })\r\n readonly DZ_DROP = output<DragEvent>({ alias: 'drop' })\r\n readonly DZ_DRAGSTART = output<DragEvent>({ alias: 'dragStart' })\r\n readonly DZ_DRAGEND = output<DragEvent>({ alias: 'dragEnd' })\r\n readonly DZ_DRAGENTER = output<DragEvent>({ alias: 'dragEnter' })\r\n readonly DZ_DRAGOVER = output<DragEvent>({ alias: 'dragOver' })\r\n readonly DZ_DRAGLEAVE = output<DragEvent>({ alias: 'dragLeave' })\r\n readonly DZ_PASTE = output<DragEvent>({ alias: 'paste' })\r\n readonly DZ_RESET = output<void>({ alias: 'reset' })\r\n readonly DZ_ADDEDFILE = output<Dropzone.DropzoneFile>({ alias: 'addedFile' })\r\n readonly DZ_ADDEDFILES = output<Dropzone.DropzoneFile>({ alias: 'addedFiles' })\r\n readonly DZ_REMOVEDFILE = output<Dropzone.DropzoneFile>({ alias: 'removedFile' })\r\n readonly DZ_THUMBNAIL = output<[Dropzone.DropzoneFile, string]>({ alias: 'thumbnail' })\r\n readonly DZ_ERROR = output<[Dropzone.DropzoneFile, string | Error]>({ alias: 'error' })\r\n readonly DZ_ERRORMULTIPLE = output<[Dropzone.DropzoneFile[], string | Error]>({ alias: 'errorMultiple' })\r\n readonly DZ_PROCESSING = output<Dropzone.DropzoneFile>({ alias: 'processing' })\r\n readonly DZ_PROCESSINGMULTIPLE = output<Dropzone.DropzoneFile[]>({ alias: 'processingMultiple' })\r\n readonly DZ_UPLOADPROGRESS = output<[Dropzone.DropzoneFile, number, number]>({ alias: 'uploadProgress' })\r\n readonly DZ_TOTALUPLOADPROGRESS = output<[number, number, number]>({ alias: 'totalUploadProgress' })\r\n readonly DZ_SENDING = output<[Dropzone.DropzoneFile, XMLHttpRequest, FormData]>({ alias: 'sending' })\r\n readonly DZ_SENDINGMULTIPLE = output<[Dropzone.DropzoneFile[], XMLHttpRequest, FormData]>({ alias: 'sendingMultiple' })\r\n // eslint-disable-next-line @typescript-eslint/no-restricted-types\r\n readonly DZ_SUCCESS = output<[Dropzone.DropzoneFile, Object | string]>({ alias: 'success' })\r\n readonly DZ_SUCCESSMULTIPLE = output<Dropzone.DropzoneFile[]>({ alias: 'successMultiple' })\r\n readonly DZ_CANCELED = output<Dropzone.DropzoneFile>({ alias: 'canceled' })\r\n readonly DZ_CANCELEDMULTIPLE = output<Dropzone.DropzoneFile[]>({ alias: 'canceledMultiple' })\r\n readonly DZ_COMPLETE = output<Dropzone.DropzoneFile>({ alias: 'complete' })\r\n readonly DZ_COMPLETEMULTIPLE = output<Dropzone.DropzoneFile[]>({ alias: 'completeMultiple' })\r\n readonly DZ_MAXFILESEXCEEDED = output<Dropzone.DropzoneFile>({ alias: 'maxFilesExceeded' })\r\n readonly DZ_MAXFILESREACHED = output<Dropzone.DropzoneFile[]>({ alias: 'maxFilesReached' })\r\n readonly DZ_QUEUECOMPLETE = output<void>({ alias: 'queueComplete' })\r\n}\r\n\r\n/** @internal */\r\nexport const NXT_DROPZONE_LISTENERS = new InjectionToken<DropzoneListeners>('NXT_DROPZONE_LISTENERS')\r\n","import { isPlatformBrowser } from '@angular/common'\nimport { Directive, ElementRef, KeyValueDiffers, NgZone, OnDestroy, PLATFORM_ID, computed, effect, inject, input } from '@angular/core'\nimport Dropzone from 'dropzone'\nimport { DropzoneConfig, DropzoneEvent, DropzoneEvents, DropzoneListeners, internalChanges, NXT_DROPZONE_CONFIG, _DropzoneConfig, NXT_DROPZONE_LISTENERS } from './dropzone.interfaces'\n\n@Directive({\n selector: '[nxtDropzone]',\n exportAs: 'nxtDropzone',\n host: {\n '[class.dz-single]': '_isSingle()',\n '[class.dz-multiple]': '_isMultiple()'\n }\n})\nexport class DropzoneDirective extends DropzoneListeners implements OnDestroy {\n\n private readonly zone = inject(NgZone)\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef)\n private readonly differs = inject(KeyValueDiffers)\n private readonly platformId = inject(PLATFORM_ID)\n private readonly defaults = inject(NXT_DROPZONE_CONFIG, { optional: true })\n private readonly listeners: DropzoneListeners = inject(NXT_DROPZONE_LISTENERS, { optional: true }) || this\n\n readonly disabled = input<boolean>(false)\n\n /** Can be used to provide optional custom config */\n readonly _config = input<DropzoneConfig>(undefined, { alias: 'nxtDropzone' })\n private readonly configDiff = this.differs.find(this._config() || {}).create()\n private readonly config = computed(() => ({ ...this._config() }), {\n equal: (_, n) => !this.configDiff.diff(n)\n })\n\n private readonly _params = computed(() => {\n let newParams = this.defaults\n ? new _DropzoneConfig(this.defaults)\n : undefined\n const config = this.config()\n if (newParams && config)\n newParams.assign(config)\n else if (config)\n newParams = new _DropzoneConfig(config)\n const params = { ...newParams }\n Object.entries(params).forEach(([k, v]) => {\n if (v === undefined)\n delete (params as any)[k]\n })\n return params as DropzoneConfig\n })\n private readonly paramDiff = this.differs.find({ ...this._params() }).create()\n private readonly params = computed(() => ({ ...this._params() }), {\n equal: (_, n) => {\n const d = this.paramDiff.diff(n)\n if (d) {\n let hasChanges = false\n d.forEachRemovedItem((r) => {\n if (!internalChanges.has(r.key as any) && r.currentValue !== r.previousValue)\n hasChanges = true\n })\n d.forEachItem(r => {\n if (!internalChanges.has(r.key as any) && r.currentValue !== r.previousValue)\n hasChanges = true\n })\n return !hasChanges\n }\n return !d\n }\n })\n\n private _instance?: Dropzone | undefined\n\n get dropzone() {\n return this._instance\n }\n\n /** @internal */\n readonly _isSingle = computed(() => this.params()?.maxFiles === 1)\n\n /** @internal */\n readonly _isMultiple = computed(() => this.params()?.maxFiles !== 1)\n\n constructor() {\n super()\n let disabled = this.disabled()\n effect(() => {\n disabled = this.disabled()\n const instance = this._instance\n if (instance) {\n if (disabled)\n this.zone.runOutsideAngular(() => {\n instance.disable()\n })\n else\n this.zone.runOutsideAngular(() => {\n instance.enable()\n })\n }\n })\n effect(() => {\n const params = this.params()\n this.destroyInstance()\n this.initInstance(params, disabled)\n })\n }\n\n /** @internal */\n ngOnDestroy(): void {\n this.destroyInstance()\n }\n\n /** @internal */\n reset(cancel?: boolean) {\n const instance = this._instance\n if (instance) {\n this.zone.runOutsideAngular(() => {\n instance.removeAllFiles(cancel)\n })\n }\n }\n\n private initInstance(params?: DropzoneConfig, disabled = false) {\n if (!isPlatformBrowser(this.platformId) || !params) {\n return\n }\n\n this.zone.runOutsideAngular(() => {\n const instance = new Dropzone(this.elementRef.nativeElement, params)\n if (disabled)\n this.zone.runOutsideAngular(() => {\n instance.disable()\n })\n\n this._instance = instance\n\n this.zone.run(() => {\n this.listeners.DZ_INIT.emit(instance)\n })\n\n // Add auto reset handling for events\n instance.on('success', () => {\n const timeout = this.params()?.autoReset ?? -1\n if (timeout >= 0) {\n setTimeout(() => this.reset(), timeout)\n }\n })\n\n instance.on('error', () => {\n const timeout = this.params()?.errorReset ?? -1\n if (timeout >= 0) {\n setTimeout(() => this.reset(), timeout)\n }\n })\n\n instance.on('canceled', () => {\n const timeout = this.params()?.cancelReset ?? -1\n if (timeout >= 0) {\n setTimeout(() => this.reset(), timeout)\n }\n })\n\n // Add native Dropzone event handling\n DropzoneEvents.forEach((eventName: DropzoneEvent) => {\n instance.on(eventName.toLowerCase(), (...args: any[]) => {\n args = (args.length === 1) ? args[0] : args\n\n const output = `DZ_${eventName.toUpperCase()}`\n\n const emitter = this.listeners[output as keyof DropzoneListeners]\n\n this.zone.run(() => {\n emitter.emit(args as any)\n })\n })\n })\n })\n }\n\n private destroyInstance() {\n const instance = this._instance\n if (instance) {\n this.zone.runOutsideAngular(() => {\n instance.destroy()\n })\n\n this._instance = undefined\n }\n }\n}\n","import { Component, OnInit, ViewEncapsulation, computed, input, viewChild } from '@angular/core'\nimport { DropzoneDirective } from './dropzone.directive'\nimport { DropzoneConfig, DropzoneListeners, NXT_DROPZONE_LISTENERS } from './dropzone.interfaces'\n\n@Component({\n selector: 'nxt-dropzone',\n templateUrl: './dropzone.component.html',\n styleUrls: [\n './dropzone.component.scss',\n '../../../../node_modules/dropzone/dist/dropzone.css'\n ],\n encapsulation: ViewEncapsulation.None,\n providers: [{\n provide: NXT_DROPZONE_LISTENERS,\n useExisting: DropzoneComponent\n }],\n imports: [\n DropzoneDirective\n ]\n})\nexport class DropzoneComponent extends DropzoneListeners implements OnInit {\n\n /** Disables / detaches Dropzone from the element */\n readonly disabled = input<boolean>(false)\n\n /** Custom config to override the global defaults */\n readonly config = input<DropzoneConfig>()\n\n /** Message to show for the user on the upload area */\n readonly message = input<string>('Click or drag files to upload')\n /** Placeholder image to be shown as the upload area */\n readonly placeholder = input<string>('')\n\n /** Use 'dropzone' class (use provided default styles) */\n readonly useDropzoneClass = input<boolean>(true)\n\n readonly directiveRef = viewChild(DropzoneDirective)\n\n /** @internal */\n readonly text = computed(() => this.config()?.dictDefaultMessage || this.message())\n\n /** @internal */\n ngOnInit(): void { }\n\n /** @internal */\n getPlaceholder(): string {\n return 'url(' + encodeURI(this.placeholder()) + ')'\n }\n}\n","<div class=\"dz-wrapper\"\r\n [class.dropzone]=\"useDropzoneClass()\"\r\n [nxtDropzone]=\"config()\"\r\n [disabled]=\"disabled()\">\r\n <div class=\"dz-message\"\r\n [class.disabled]=\"disabled()\"\r\n [class.dz-placeholder]=\"placeholder()\">\r\n <div class=\"dz-text\"\r\n [innerHTML]=\"text()\"></div>\r\n\r\n @if (placeholder()) {\r\n <div class=\"dz-image\"\r\n [style.background-image]=\"getPlaceholder()\"></div>\r\n }\r\n </div>\r\n\r\n <ng-content />\r\n</div>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAAA;MAGa,mBAAmB,GAAG,IAAI,cAAc,CAAiB,qBAAqB;AAErF,SAAU,qBAAqB,CAAC,MAAsB,EAAA;AACxD,IAAA,OAAO,wBAAwB,CAAC;AAC5B,QAAA;AACI,YAAA,OAAO,EAAE,mBAAmB;AAC5B,YAAA,QAAQ,EAAE;AACb;AACJ,KAAA,CAAC;AACN;AAEA;AACO,MAAM,cAAc,GAAG;IAC1B,MAAM;IAEN,MAAM;IACN,WAAW;IACX,SAAS;IACT,WAAW;IACX,UAAU;IACV,WAAW;IACX,OAAO;IAEP,OAAO;IAEP,WAAW;IACX,YAAY;IACZ,aAAa;IACb,WAAW;IAEX,OAAO;IACP,eAAe;IAEf,YAAY;IACZ,oBAAoB;IAEpB,gBAAgB;IAChB,qBAAqB;IAErB,SAAS;IACT,iBAAiB;IAEjB,SAAS;IACT,iBAAiB;IAEjB,UAAU;IACV,kBAAkB;IAElB,UAAU;IACV,kBAAkB;IAElB,kBAAkB;IAClB,iBAAiB;IAEjB;CACM;AAuBV;AACO,MAAM,eAAe,GAAG,IAAI,GAAG,CAA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,qBAAA,EAAA,QAAA,EAAA,6iBAAA,EAAA,MAAA,EAAA,CAAA,skGAAA,EAAA,2/IAAA,CAAA,EAAA;8kBAkBiC,iBAAiB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEpCvD;;AAEG;;;;"}
1
+ {"version":3,"file":"nxt-dropzone-wrapper.mjs","names":[],"sources":["../../../packages/dropzone-wrapper/src/lib/dropzone.interfaces.ts","../../../packages/dropzone-wrapper/src/lib/dropzone.directive.ts","../../../packages/dropzone-wrapper/src/lib/dropzone.component.ts","../../../packages/dropzone-wrapper/src/lib/dropzone.component.html"],"sourcesContent":["/* eslint-disable @angular-eslint/no-output-rename */\nimport { InjectionToken, makeEnvironmentProviders, output, Directive, OutputEmitterRef } from '@angular/core'\nimport Dropzone, { DropzoneFile, DropzoneOptions } from 'dropzone'\n\nexport const NXT_DROPZONE_CONFIG = new InjectionToken<DropzoneConfig>('NXT_DROPZONE_CONFIG')\n\nexport function provideDropzoneConfig(config: DropzoneConfig) {\n return makeEnvironmentProviders([\n {\n provide: NXT_DROPZONE_CONFIG,\n useValue: config\n }\n ])\n}\n\n/** @internal */\nexport const DropzoneEvents = [\n 'init',\n\n 'drop',\n 'dragStart',\n 'dragEnd',\n 'dragEnter',\n 'dragOver',\n 'dragLeave',\n 'paste',\n\n 'reset',\n\n 'addedFile',\n 'addedFiles',\n 'removedFile',\n 'thumbnail',\n\n 'error',\n 'errorMultiple',\n\n 'processing',\n 'processingMultiple',\n\n 'uploadProgress',\n 'totalUploadProgress',\n\n 'sending',\n 'sendingMultiple',\n\n 'success',\n 'successMultiple',\n\n 'canceled',\n 'canceledMultiple',\n\n 'complete',\n 'completeMultiple',\n\n 'maxFilesExceeded',\n 'maxFilesReached',\n\n 'queueComplete'\n] as const\n\n/** @internal */\nexport type DropzoneEvent = typeof DropzoneEvents[number]\n\n/** @internal */\nexport type DZ_EVENTS = { [P in `DZ_${Uppercase<DropzoneEvent>}`]: OutputEmitterRef<any> }\n\nexport interface DropzoneConfig extends DropzoneOptions {\n /**\n * Time in ms until input resets after a successful upload\n */\n autoReset?: number\n /**\n * Time in ms until input resets after upload error\n */\n errorReset?: number\n /**\n * Time in ms until input resets after cancelled upload\n */\n cancelReset?: number\n}\n\n/** @internal */\nexport const internalChanges = new Set([\n 'autoReset',\n 'errorReset',\n 'cancelReset'\n])\n\n/** @internal */\nexport class _DropzoneConfig implements DropzoneConfig {\n autoReset?: number\n errorReset?: number\n cancelReset?: number\n\n maxFiles?: number\n\n constructor(config: DropzoneConfig = {}) {\n this.assign(config)\n }\n\n assign(config: DropzoneConfig | any = {}, target?: any) {\n target = target || this\n\n for (const key in config) {\n if (config[key] != null\n && config[key] != undefined\n && !Array.isArray(config[key])\n && typeof config[key] === 'object'\n && !(config[key] instanceof HTMLElement)\n ) {\n target[key] = {}\n\n this.assign(config[key], target[key])\n } else {\n target[key] = config[key]\n }\n }\n }\n}\n\n@Directive()\nexport class DropzoneListeners implements DZ_EVENTS {\n readonly DZ_INIT = output<Dropzone>({ alias: 'init' })\n readonly DZ_DROP = output<DragEvent>({ alias: 'drop' })\n readonly DZ_DRAGSTART = output<DragEvent>({ alias: 'dragStart' })\n readonly DZ_DRAGEND = output<DragEvent>({ alias: 'dragEnd' })\n readonly DZ_DRAGENTER = output<DragEvent>({ alias: 'dragEnter' })\n readonly DZ_DRAGOVER = output<DragEvent>({ alias: 'dragOver' })\n readonly DZ_DRAGLEAVE = output<DragEvent>({ alias: 'dragLeave' })\n readonly DZ_PASTE = output<DragEvent>({ alias: 'paste' })\n readonly DZ_RESET = output<void>({ alias: 'reset' })\n readonly DZ_ADDEDFILE = output<DropzoneFile>({ alias: 'addedFile' })\n readonly DZ_ADDEDFILES = output<DropzoneFile>({ alias: 'addedFiles' })\n readonly DZ_REMOVEDFILE = output<DropzoneFile>({ alias: 'removedFile' })\n readonly DZ_THUMBNAIL = output<[DropzoneFile, string]>({ alias: 'thumbnail' })\n readonly DZ_ERROR = output<[DropzoneFile, string | Error]>({ alias: 'error' })\n readonly DZ_ERRORMULTIPLE = output<[DropzoneFile[], string | Error]>({ alias: 'errorMultiple' })\n readonly DZ_PROCESSING = output<DropzoneFile>({ alias: 'processing' })\n readonly DZ_PROCESSINGMULTIPLE = output<DropzoneFile[]>({ alias: 'processingMultiple' })\n readonly DZ_UPLOADPROGRESS = output<[DropzoneFile, number, number]>({ alias: 'uploadProgress' })\n readonly DZ_TOTALUPLOADPROGRESS = output<[number, number, number]>({ alias: 'totalUploadProgress' })\n readonly DZ_SENDING = output<[DropzoneFile, XMLHttpRequest, FormData]>({ alias: 'sending' })\n readonly DZ_SENDINGMULTIPLE = output<[DropzoneFile[], XMLHttpRequest, FormData]>({ alias: 'sendingMultiple' })\n // eslint-disable-next-line @typescript-eslint/no-restricted-types\n readonly DZ_SUCCESS = output<[DropzoneFile, Object | string]>({ alias: 'success' })\n readonly DZ_SUCCESSMULTIPLE = output<DropzoneFile[]>({ alias: 'successMultiple' })\n readonly DZ_CANCELED = output<DropzoneFile>({ alias: 'canceled' })\n readonly DZ_CANCELEDMULTIPLE = output<DropzoneFile[]>({ alias: 'canceledMultiple' })\n readonly DZ_COMPLETE = output<DropzoneFile>({ alias: 'complete' })\n readonly DZ_COMPLETEMULTIPLE = output<DropzoneFile[]>({ alias: 'completeMultiple' })\n readonly DZ_MAXFILESEXCEEDED = output<DropzoneFile>({ alias: 'maxFilesExceeded' })\n readonly DZ_MAXFILESREACHED = output<DropzoneFile[]>({ alias: 'maxFilesReached' })\n readonly DZ_QUEUECOMPLETE = output<void>({ alias: 'queueComplete' })\n}\n\n/** @internal */\nexport const NXT_DROPZONE_LISTENERS = new InjectionToken<DropzoneListeners>('NXT_DROPZONE_LISTENERS')\n","import { isPlatformBrowser } from '@angular/common'\nimport { Directive, ElementRef, KeyValueDiffers, NgZone, OnDestroy, PLATFORM_ID, computed, effect, inject, input } from '@angular/core'\nimport Dropzone from 'dropzone'\nimport { DropzoneConfig, DropzoneEvent, DropzoneEvents, DropzoneListeners, internalChanges, NXT_DROPZONE_CONFIG, _DropzoneConfig, NXT_DROPZONE_LISTENERS } from './dropzone.interfaces'\n\n@Directive({\n selector: '[nxtDropzone]',\n exportAs: 'nxtDropzone',\n host: {\n '[class.dz-single]': '_isSingle()',\n '[class.dz-multiple]': '_isMultiple()'\n }\n})\nexport class DropzoneDirective extends DropzoneListeners implements OnDestroy {\n\n private readonly zone = inject(NgZone)\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef)\n private readonly differs = inject(KeyValueDiffers)\n private readonly platformId = inject(PLATFORM_ID)\n private readonly defaults = inject(NXT_DROPZONE_CONFIG, { optional: true })\n private readonly listeners: DropzoneListeners = inject(NXT_DROPZONE_LISTENERS, { optional: true }) || this\n\n readonly disabled = input<boolean>(false)\n\n /** Can be used to provide optional custom config */\n readonly _config = input<DropzoneConfig>(undefined, { alias: 'nxtDropzone' })\n private readonly configDiff = this.differs.find(this._config() || {}).create()\n private readonly config = computed(() => ({ ...this._config() }), {\n equal: (_, n) => !this.configDiff.diff(n)\n })\n\n private readonly _params = computed(() => {\n let newParams = this.defaults\n ? new _DropzoneConfig(this.defaults)\n : undefined\n const config = this.config()\n if (newParams && config)\n newParams.assign(config)\n else if (config)\n newParams = new _DropzoneConfig(config)\n const params = { ...newParams }\n Object.entries(params).forEach(([k, v]) => {\n if (v === undefined)\n delete (params as any)[k]\n })\n return params as DropzoneConfig\n })\n private readonly paramDiff = this.differs.find({ ...this._params() }).create()\n private readonly params = computed(() => ({ ...this._params() }), {\n equal: (_, n) => {\n const d = this.paramDiff.diff(n)\n if (d) {\n let hasChanges = false\n d.forEachRemovedItem((r) => {\n if (!internalChanges.has(r.key as any) && r.currentValue !== r.previousValue)\n hasChanges = true\n })\n d.forEachItem(r => {\n if (!internalChanges.has(r.key as any) && r.currentValue !== r.previousValue)\n hasChanges = true\n })\n return !hasChanges\n }\n return !d\n }\n })\n\n private _instance?: Dropzone\n\n get dropzone() {\n return this._instance\n }\n\n /** @internal */\n readonly _isSingle = computed(() => this.params()?.maxFiles === 1)\n\n /** @internal */\n readonly _isMultiple = computed(() => this.params()?.maxFiles !== 1)\n\n constructor() {\n super()\n let disabled = this.disabled()\n effect(() => {\n disabled = this.disabled()\n const instance = this._instance\n if (instance) {\n if (disabled)\n this.zone.runOutsideAngular(() => {\n instance.disable()\n })\n else\n this.zone.runOutsideAngular(() => {\n instance.enable()\n })\n }\n })\n effect(() => {\n const params = this.params()\n this.destroyInstance()\n this.initInstance(params, disabled)\n })\n }\n\n /** @internal */\n ngOnDestroy(): void {\n this.destroyInstance()\n }\n\n /** @internal */\n reset(cancel?: boolean) {\n const instance = this._instance\n if (instance) {\n this.zone.runOutsideAngular(() => {\n instance.removeAllFiles(!!cancel)\n })\n }\n }\n\n private initInstance(params?: DropzoneConfig, disabled = false) {\n if (!isPlatformBrowser(this.platformId) || !params) {\n return\n }\n\n this.zone.runOutsideAngular(() => {\n const instance = new Dropzone(this.elementRef.nativeElement, params)\n if (disabled)\n this.zone.runOutsideAngular(() => {\n instance.disable()\n })\n\n this._instance = instance\n\n this.zone.run(() => {\n this.listeners.DZ_INIT.emit(instance)\n })\n\n // Add auto reset handling for events\n instance.on('success', () => {\n const timeout = this.params()?.autoReset ?? -1\n if (timeout >= 0) {\n setTimeout(() => this.reset(), timeout)\n }\n })\n\n instance.on('error', () => {\n const timeout = this.params()?.errorReset ?? -1\n if (timeout >= 0) {\n setTimeout(() => this.reset(), timeout)\n }\n })\n\n instance.on('canceled', () => {\n const timeout = this.params()?.cancelReset ?? -1\n if (timeout >= 0) {\n setTimeout(() => this.reset(), timeout)\n }\n })\n\n // Add native Dropzone event handling\n DropzoneEvents.forEach((eventName: DropzoneEvent) => {\n instance.on(eventName.toLowerCase(), (...args: any[]) => {\n args = (args.length === 1) ? args[0] : args\n\n const output = `DZ_${eventName.toUpperCase()}`\n\n const emitter = this.listeners[output as keyof DropzoneListeners]\n\n this.zone.run(() => {\n emitter.emit(args as any)\n })\n })\n })\n })\n }\n\n private destroyInstance() {\n const instance = this._instance\n if (instance) {\n this.zone.runOutsideAngular(() => {\n instance.destroy()\n })\n\n this._instance = undefined\n }\n }\n}\n","import { Component, OnInit, ViewEncapsulation, computed, input, viewChild } from '@angular/core'\nimport { DropzoneDirective } from './dropzone.directive'\nimport { DropzoneConfig, DropzoneListeners, NXT_DROPZONE_LISTENERS } from './dropzone.interfaces'\n\n@Component({\n selector: 'nxt-dropzone',\n templateUrl: './dropzone.component.html',\n styleUrls: [\n './dropzone.component.scss',\n '../../../../node_modules/dropzone/dist/dropzone.css'\n ],\n encapsulation: ViewEncapsulation.None,\n providers: [{\n provide: NXT_DROPZONE_LISTENERS,\n useExisting: DropzoneComponent\n }],\n imports: [\n DropzoneDirective\n ]\n})\nexport class DropzoneComponent extends DropzoneListeners implements OnInit {\n\n /** Disables / detaches Dropzone from the element */\n readonly disabled = input<boolean>(false)\n\n /** Custom config to override the global defaults */\n readonly config = input<DropzoneConfig>()\n\n /** Message to show for the user on the upload area */\n readonly message = input<string>('Click or drag files to upload')\n /** Placeholder image to be shown as the upload area */\n readonly placeholder = input<string>('')\n\n /** Use 'dropzone' class (use provided default styles) */\n readonly useDropzoneClass = input<boolean>(true)\n\n readonly directiveRef = viewChild(DropzoneDirective)\n\n /** @internal */\n readonly text = computed(() => this.config()?.dictDefaultMessage || this.message())\n\n /** @internal */\n ngOnInit(): void { }\n\n /** @internal */\n getPlaceholder(): string {\n return 'url(' + encodeURI(this.placeholder()) + ')'\n }\n}\n","<div class=\"dz-wrapper\"\r\n [class.dropzone]=\"useDropzoneClass()\"\r\n [nxtDropzone]=\"config()\"\r\n [disabled]=\"disabled()\">\r\n <div class=\"dz-message\"\r\n [class.disabled]=\"disabled()\"\r\n [class.dz-placeholder]=\"placeholder()\">\r\n <div class=\"dz-text\"\r\n [innerHTML]=\"text()\"></div>\r\n\r\n @if (placeholder()) {\r\n <div class=\"dz-image\"\r\n [style.background-image]=\"getPlace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JS/nxt-components/issues",
5
- "version": "22.0.0-alpha.0",
5
+ "version": "22.1.0",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
8
  "repository": {
@@ -22,7 +22,7 @@
22
22
  "peerDependencies": {
23
23
  "@angular/common": "^22.0.0",
24
24
  "@angular/core": "^22.0.0",
25
- "dropzone": "^6.0.0-beta.2"
25
+ "dropzone": "^6.0.0"
26
26
  },
27
27
  "module": "fesm2022/nxt-dropzone-wrapper.mjs",
28
28
  "typings": "types/nxt-dropzone-wrapper.d.ts",
@@ -1,120 +1,180 @@
1
- import * as _angular_core from '@angular/core';
2
- import { OutputEmitterRef, InjectionToken, OnDestroy, OnInit } from '@angular/core';
3
- import * as dropzone from 'dropzone';
4
- import dropzone__default from 'dropzone';
5
-
6
- declare const NXT_DROPZONE_CONFIG: InjectionToken<DropzoneConfig>;
7
- declare function provideDropzoneConfig(config: DropzoneConfig): _angular_core.EnvironmentProviders;
1
+ import * as i0 from "@angular/core";
2
+ import { InjectionToken, OnDestroy, OnInit, OutputEmitterRef } from "@angular/core";
3
+ import Dropzone, { DropzoneFile, DropzoneOptions } from "dropzone";
4
+ export declare const NXT_DROPZONE_CONFIG: InjectionToken<DropzoneConfig>;
5
+ export declare function provideDropzoneConfig(config: DropzoneConfig): import("@angular/core").EnvironmentProviders;
8
6
  /** @internal */
9
7
  declare const DropzoneEvents: readonly ["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"];
10
8
  /** @internal */
11
9
  type DropzoneEvent = typeof DropzoneEvents[number];
12
10
  /** @internal */
13
- type DZ_EVENTS = {
14
- [P in `DZ_${Uppercase<DropzoneEvent>}`]: OutputEmitterRef<any>;
15
- };
16
- interface DropzoneConfig extends Dropzone.DropzoneOptions {
17
- /**
18
- * Time in ms until input resets after a successful upload
19
- */
20
- autoReset?: number;
21
- /**
22
- * Time in ms until input resets after upload error
23
- */
24
- errorReset?: number;
25
- /**
26
- * Time in ms until input resets after cancelled upload
27
- */
28
- cancelReset?: number;
11
+ type DZ_EVENTS = { [P in `DZ_${Uppercase<DropzoneEvent>}`]: OutputEmitterRef<any>; };
12
+ export interface DropzoneConfig extends DropzoneOptions {
13
+ /**
14
+ * Time in ms until input resets after a successful upload
15
+ */
16
+ autoReset?: number;
17
+ /**
18
+ * Time in ms until input resets after upload error
19
+ */
20
+ errorReset?: number;
21
+ /**
22
+ * Time in ms until input resets after cancelled upload
23
+ */
24
+ cancelReset?: number;
29
25
  }
30
- declare class DropzoneListeners implements DZ_EVENTS {
31
- readonly DZ_INIT: OutputEmitterRef<dropzone>;
32
- readonly DZ_DROP: OutputEmitterRef<DragEvent>;
33
- readonly DZ_DRAGSTART: OutputEmitterRef<DragEvent>;
34
- readonly DZ_DRAGEND: OutputEmitterRef<DragEvent>;
35
- readonly DZ_DRAGENTER: OutputEmitterRef<DragEvent>;
36
- readonly DZ_DRAGOVER: OutputEmitterRef<DragEvent>;
37
- readonly DZ_DRAGLEAVE: OutputEmitterRef<DragEvent>;
38
- readonly DZ_PASTE: OutputEmitterRef<DragEvent>;
39
- readonly DZ_RESET: OutputEmitterRef<void>;
40
- readonly DZ_ADDEDFILE: OutputEmitterRef<dropzone.DropzoneFile>;
41
- readonly DZ_ADDEDFILES: OutputEmitterRef<dropzone.DropzoneFile>;
42
- readonly DZ_REMOVEDFILE: OutputEmitterRef<dropzone.DropzoneFile>;
43
- readonly DZ_THUMBNAIL: OutputEmitterRef<[dropzone.DropzoneFile, string]>;
44
- readonly DZ_ERROR: OutputEmitterRef<[dropzone.DropzoneFile, string | Error]>;
45
- readonly DZ_ERRORMULTIPLE: OutputEmitterRef<[dropzone.DropzoneFile[], string | Error]>;
46
- readonly DZ_PROCESSING: OutputEmitterRef<dropzone.DropzoneFile>;
47
- readonly DZ_PROCESSINGMULTIPLE: OutputEmitterRef<dropzone.DropzoneFile[]>;
48
- readonly DZ_UPLOADPROGRESS: OutputEmitterRef<[dropzone.DropzoneFile, number, number]>;
49
- readonly DZ_TOTALUPLOADPROGRESS: OutputEmitterRef<[number, number, number]>;
50
- readonly DZ_SENDING: OutputEmitterRef<[dropzone.DropzoneFile, XMLHttpRequest, FormData]>;
51
- readonly DZ_SENDINGMULTIPLE: OutputEmitterRef<[dropzone.DropzoneFile[], XMLHttpRequest, FormData]>;
52
- readonly DZ_SUCCESS: OutputEmitterRef<[dropzone.DropzoneFile, string | Object]>;
53
- readonly DZ_SUCCESSMULTIPLE: OutputEmitterRef<dropzone.DropzoneFile[]>;
54
- readonly DZ_CANCELED: OutputEmitterRef<dropzone.DropzoneFile>;
55
- readonly DZ_CANCELEDMULTIPLE: OutputEmitterRef<dropzone.DropzoneFile[]>;
56
- readonly DZ_COMPLETE: OutputEmitterRef<dropzone.DropzoneFile>;
57
- readonly DZ_COMPLETEMULTIPLE: OutputEmitterRef<dropzone.DropzoneFile[]>;
58
- readonly DZ_MAXFILESEXCEEDED: OutputEmitterRef<dropzone.DropzoneFile>;
59
- readonly DZ_MAXFILESREACHED: OutputEmitterRef<dropzone.DropzoneFile[]>;
60
- readonly DZ_QUEUECOMPLETE: OutputEmitterRef<void>;
61
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropzoneListeners, never>;
62
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DropzoneListeners, never, never, {}, { "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"; }, never, never, true, never>;
26
+ export declare class DropzoneListeners implements DZ_EVENTS {
27
+ readonly DZ_INIT: OutputEmitterRef<Dropzone>;
28
+ readonly DZ_DROP: OutputEmitterRef<DragEvent>;
29
+ readonly DZ_DRAGSTART: OutputEmitterRef<DragEvent>;
30
+ readonly DZ_DRAGEND: OutputEmitterRef<DragEvent>;
31
+ readonly DZ_DRAGENTER: OutputEmitterRef<DragEvent>;
32
+ readonly DZ_DRAGOVER: OutputEmitterRef<DragEvent>;
33
+ readonly DZ_DRAGLEAVE: OutputEmitterRef<DragEvent>;
34
+ readonly DZ_PASTE: OutputEmitterRef<DragEvent>;
35
+ readonly DZ_RESET: OutputEmitterRef<void>;
36
+ readonly DZ_ADDEDFILE: OutputEmitterRef<DropzoneFile>;
37
+ readonly DZ_ADDEDFILES: OutputEmitterRef<DropzoneFile>;
38
+ readonly DZ_REMOVEDFILE: OutputEmitterRef<DropzoneFile>;
39
+ readonly DZ_THUMBNAIL: OutputEmitterRef<[DropzoneFile, string]>;
40
+ readonly DZ_ERROR: OutputEmitterRef<[DropzoneFile, string | Error]>;
41
+ readonly DZ_ERRORMULTIPLE: OutputEmitterRef<[DropzoneFile[], string | Error]>;
42
+ readonly DZ_PROCESSING: OutputEmitterRef<DropzoneFile>;
43
+ readonly DZ_PROCESSINGMULTIPLE: OutputEmitterRef<DropzoneFile[]>;
44
+ readonly DZ_UPLOADPROGRESS: OutputEmitterRef<[DropzoneFile, number, number]>;
45
+ readonly DZ_TOTALUPLOADPROGRESS: OutputEmitterRef<[number, number, number]>;
46
+ readonly DZ_SENDING: OutputEmitterRef<[DropzoneFile, XMLHttpRequest, FormData]>;
47
+ readonly DZ_SENDINGMULTIPLE: OutputEmitterRef<[DropzoneFile[], XMLHttpRequest, FormData]>;
48
+ readonly DZ_SUCCESS: OutputEmitterRef<[DropzoneFile, string | Object]>;
49
+ readonly DZ_SUCCESSMULTIPLE: OutputEmitterRef<DropzoneFile[]>;
50
+ readonly DZ_CANCELED: OutputEmitterRef<DropzoneFile>;
51
+ readonly DZ_CANCELEDMULTIPLE: OutputEmitterRef<DropzoneFile[]>;
52
+ readonly DZ_COMPLETE: OutputEmitterRef<DropzoneFile>;
53
+ readonly DZ_COMPLETEMULTIPLE: OutputEmitterRef<DropzoneFile[]>;
54
+ readonly DZ_MAXFILESEXCEEDED: OutputEmitterRef<DropzoneFile>;
55
+ readonly DZ_MAXFILESREACHED: OutputEmitterRef<DropzoneFile[]>;
56
+ readonly DZ_QUEUECOMPLETE: OutputEmitterRef<void>;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneListeners, never>;
58
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DropzoneListeners, never, never, {}, {
59
+ "DZ_INIT": "init";
60
+ "DZ_DROP": "drop";
61
+ "DZ_DRAGSTART": "dragStart";
62
+ "DZ_DRAGEND": "dragEnd";
63
+ "DZ_DRAGENTER": "dragEnter";
64
+ "DZ_DRAGOVER": "dragOver";
65
+ "DZ_DRAGLEAVE": "dragLeave";
66
+ "DZ_PASTE": "paste";
67
+ "DZ_RESET": "reset";
68
+ "DZ_ADDEDFILE": "addedFile";
69
+ "DZ_ADDEDFILES": "addedFiles";
70
+ "DZ_REMOVEDFILE": "removedFile";
71
+ "DZ_THUMBNAIL": "thumbnail";
72
+ "DZ_ERROR": "error";
73
+ "DZ_ERRORMULTIPLE": "errorMultiple";
74
+ "DZ_PROCESSING": "processing";
75
+ "DZ_PROCESSINGMULTIPLE": "processingMultiple";
76
+ "DZ_UPLOADPROGRESS": "uploadProgress";
77
+ "DZ_TOTALUPLOADPROGRESS": "totalUploadProgress";
78
+ "DZ_SENDING": "sending";
79
+ "DZ_SENDINGMULTIPLE": "sendingMultiple";
80
+ "DZ_SUCCESS": "success";
81
+ "DZ_SUCCESSMULTIPLE": "successMultiple";
82
+ "DZ_CANCELED": "canceled";
83
+ "DZ_CANCELEDMULTIPLE": "canceledMultiple";
84
+ "DZ_COMPLETE": "complete";
85
+ "DZ_COMPLETEMULTIPLE": "completeMultiple";
86
+ "DZ_MAXFILESEXCEEDED": "maxFilesExceeded";
87
+ "DZ_MAXFILESREACHED": "maxFilesReached";
88
+ "DZ_QUEUECOMPLETE": "queueComplete";
89
+ }, never, never, true, never>;
63
90
  }
64
-
65
- declare class DropzoneDirective extends DropzoneListeners implements OnDestroy {
66
- private readonly zone;
67
- private readonly elementRef;
68
- private readonly differs;
69
- private readonly platformId;
70
- private readonly defaults;
71
- private readonly listeners;
72
- readonly disabled: _angular_core.InputSignal<boolean>;
73
- /** Can be used to provide optional custom config */
74
- readonly _config: _angular_core.InputSignal<DropzoneConfig | undefined>;
75
- private readonly configDiff;
76
- private readonly config;
77
- private readonly _params;
78
- private readonly paramDiff;
79
- private readonly params;
80
- private _instance?;
81
- get dropzone(): dropzone__default | undefined;
82
- /** @internal */
83
- readonly _isSingle: _angular_core.Signal<boolean>;
84
- /** @internal */
85
- readonly _isMultiple: _angular_core.Signal<boolean>;
86
- constructor();
87
- /** @internal */
88
- ngOnDestroy(): void;
89
- /** @internal */
90
- reset(cancel?: boolean): void;
91
- private initInstance;
92
- private destroyInstance;
93
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropzoneDirective, never>;
94
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DropzoneDirective, "[nxtDropzone]", ["nxtDropzone"], { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "_config": { "alias": "nxtDropzone"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
91
+ export declare class DropzoneDirective extends DropzoneListeners implements OnDestroy {
92
+ private readonly zone;
93
+ private readonly elementRef;
94
+ private readonly differs;
95
+ private readonly platformId;
96
+ private readonly defaults;
97
+ private readonly listeners;
98
+ readonly disabled: import("@angular/core").InputSignal<boolean>;
99
+ /** Can be used to provide optional custom config */
100
+ readonly _config: import("@angular/core").InputSignal<DropzoneConfig | undefined>;
101
+ private readonly configDiff;
102
+ private readonly config;
103
+ private readonly _params;
104
+ private readonly paramDiff;
105
+ private readonly params;
106
+ private _instance?;
107
+ get dropzone(): Dropzone | undefined;
108
+ /** @internal */
109
+ readonly _isSingle: import("@angular/core").Signal<boolean>;
110
+ /** @internal */
111
+ readonly _isMultiple: import("@angular/core").Signal<boolean>;
112
+ constructor();
113
+ /** @internal */
114
+ ngOnDestroy(): void;
115
+ /** @internal */
116
+ reset(cancel?: boolean): void;
117
+ private initInstance;
118
+ private destroyInstance;
119
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneDirective, never>;
120
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DropzoneDirective, "[nxtDropzone]", ["nxtDropzone"], {
121
+ "disabled": {
122
+ "alias": "disabled";
123
+ "required": false;
124
+ "isSignal": true;
125
+ };
126
+ "_config": {
127
+ "alias": "nxtDropzone";
128
+ "required": false;
129
+ "isSignal": true;
130
+ };
131
+ }, {}, never, never, true, never>;
95
132
  }
96
-
97
- declare class DropzoneComponent extends DropzoneListeners implements OnInit {
98
- /** Disables / detaches Dropzone from the element */
99
- readonly disabled: _angular_core.InputSignal<boolean>;
100
- /** Custom config to override the global defaults */
101
- readonly config: _angular_core.InputSignal<DropzoneConfig | undefined>;
102
- /** Message to show for the user on the upload area */
103
- readonly message: _angular_core.InputSignal<string>;
104
- /** Placeholder image to be shown as the upload area */
105
- readonly placeholder: _angular_core.InputSignal<string>;
106
- /** Use 'dropzone' class (use provided default styles) */
107
- readonly useDropzoneClass: _angular_core.InputSignal<boolean>;
108
- readonly directiveRef: _angular_core.Signal<DropzoneDirective | undefined>;
109
- /** @internal */
110
- readonly text: _angular_core.Signal<string>;
111
- /** @internal */
112
- ngOnInit(): void;
113
- /** @internal */
114
- getPlaceholder(): string;
115
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropzoneComponent, never>;
116
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropzoneComponent, "nxt-dropzone", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "useDropzoneClass": { "alias": "useDropzoneClass"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
133
+ export declare class DropzoneComponent extends DropzoneListeners implements OnInit {
134
+ /** Disables / detaches Dropzone from the element */
135
+ readonly disabled: import("@angular/core").InputSignal<boolean>;
136
+ /** Custom config to override the global defaults */
137
+ readonly config: import("@angular/core").InputSignal<DropzoneConfig | undefined>;
138
+ /** Message to show for the user on the upload area */
139
+ readonly message: import("@angular/core").InputSignal<string>;
140
+ /** Placeholder image to be shown as the upload area */
141
+ readonly placeholder: import("@angular/core").InputSignal<string>;
142
+ /** Use 'dropzone' class (use provided default styles) */
143
+ readonly useDropzoneClass: import("@angular/core").InputSignal<boolean>;
144
+ readonly directiveRef: import("@angular/core").Signal<DropzoneDirective | undefined>;
145
+ /** @internal */
146
+ readonly text: import("@angular/core").Signal<string>;
147
+ /** @internal */
148
+ ngOnInit(): void;
149
+ /** @internal */
150
+ getPlaceholder(): string;
151
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneComponent, never>;
152
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropzoneComponent, "nxt-dropzone", never, {
153
+ "disabled": {
154
+ "alias": "disabled";
155
+ "required": false;
156
+ "isSignal": true;
157
+ };
158
+ "config": {
159
+ "alias": "config";
160
+ "required": false;
161
+ "isSignal": true;
162
+ };
163
+ "message": {
164
+ "alias": "message";
165
+ "required": false;
166
+ "isSignal": true;
167
+ };
168
+ "placeholder": {
169
+ "alias": "placeholder";
170
+ "required": false;
171
+ "isSignal": true;
172
+ };
173
+ "useDropzoneClass": {
174
+ "alias": "useDropzoneClass";
175
+ "required": false;
176
+ "isSignal": true;
177
+ };
178
+ }, {}, never, ["*"], true, never>;
117
179
  }
118
-
119
- export { DropzoneComponent, DropzoneDirective, DropzoneListeners, NXT_DROPZONE_CONFIG, provideDropzoneConfig };
120
- export type { DropzoneConfig };
180
+ export {};