@acorex/components 18.5.12 → 18.5.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/README.md +29 -4
  2. package/calendar/lib/calendar-range.component.d.ts +2 -1
  3. package/datetime-box/lib/datetime-box.component.d.ts +1 -1
  4. package/dialog/lib/dialog.class.d.ts +1 -0
  5. package/esm2022/calendar/lib/calendar-range.component.mjs +7 -7
  6. package/esm2022/calendar/lib/calendar.component.mjs +3 -3
  7. package/esm2022/datetime-box/lib/datetime-box.component.mjs +2 -2
  8. package/esm2022/datetime-picker/lib/datetime-picker.component.mjs +4 -1
  9. package/esm2022/dialog/lib/dialog.class.mjs +1 -1
  10. package/esm2022/dialog/lib/dialog.component.mjs +3 -3
  11. package/esm2022/number-box/lib/number-box.component.mjs +1 -1
  12. package/esm2022/uploader/index.mjs +2 -1
  13. package/esm2022/uploader/lib/uploader-browse-handle.directive.mjs +3 -3
  14. package/esm2022/uploader/lib/uploader-drop-zone.component.mjs +1 -1
  15. package/esm2022/uploader/lib/uploader-zone.directive.mjs +41 -12
  16. package/esm2022/uploader/lib/uploader.models.mjs +37 -31
  17. package/esm2022/uploader/lib/uploader.module.mjs +3 -8
  18. package/esm2022/uploader/lib/uploader.service.mjs +20 -5
  19. package/fesm2022/acorex-components-calendar.mjs +8 -8
  20. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  21. package/fesm2022/acorex-components-datetime-box.mjs +1 -1
  22. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  23. package/fesm2022/acorex-components-datetime-picker.mjs +3 -0
  24. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  25. package/fesm2022/acorex-components-dialog.mjs +2 -2
  26. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  27. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  28. package/fesm2022/acorex-components-uploader.mjs +101 -54
  29. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  30. package/number-box/lib/number-box.component.d.ts +1 -1
  31. package/package.json +47 -47
  32. package/uploader/index.d.ts +1 -0
  33. package/uploader/lib/uploader-zone.directive.d.ts +9 -5
  34. package/uploader/lib/uploader.models.d.ts +26 -9
  35. package/uploader/lib/uploader.module.d.ts +10 -11
  36. package/uploader/lib/uploader.service.d.ts +8 -4
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-uploader.mjs","sources":["../../../../libs/components/uploader/src/lib/uploader.models.ts","../../../../libs/components/uploader/src/lib/uploader.service.ts","../../../../libs/components/uploader/src/lib/uploader-zone.directive.ts","../../../../libs/components/uploader/src/lib/uploader-browse-handle.directive.ts","../../../../libs/components/uploader/src/lib/uploader-list.component.ts","../../../../libs/components/uploader/src/lib/uploader-list.component.html","../../../../libs/components/uploader/src/lib/uploader-dialog-container.component.ts","../../../../libs/components/uploader/src/lib/uploader-dialog-container.component.html","../../../../libs/components/uploader/src/lib/uploader-drop-zone.component.ts","../../../../libs/components/uploader/src/lib/uploader-drop-zone.component.html","../../../../libs/components/uploader/src/lib/uploader.module.ts","../../../../libs/components/uploader/src/acorex-components-uploader.ts"],"sourcesContent":["import { signal } from '@angular/core';\n\nexport type AXUploadStatus = 'new' | 'inprogress' | 'completed' | 'failed' | 'canceled';\n\nexport class AXUploadRequest {\n get name(): string {\n return this.file.name;\n }\n\n get ext(): string {\n const parts = this.name.split('.');\n if (parts.length > 1) {\n return parts[parts.length - 1];\n } else {\n // No extension found\n return '';\n }\n }\n\n get size(): number {\n return this.file.size;\n }\n\n readonly progress = signal(0);\n readonly estimateTime = signal(0);\n\n readonly status = signal<AXUploadStatus>('new');\n\n private startTime: number;\n private bytesTransferred = 0;\n private uploadSpeed = 1000000; // Simulated upload speed in bytes per interval (e.g., 50KB per interval)\n private interval = 1000;\n private intervalId: any = -1;\n\n constructor(private file: File) {}\n\n private estimateTimeRemaining(bytesTransferred: number): number | null {\n const now = Date.now();\n const elapsed = now - this.startTime; // Time in milliseconds\n\n if (elapsed === 0) {\n return null; // Avoid division by zero\n }\n\n const speed = bytesTransferred / elapsed; // Bytes per millisecond\n const remainingBytes = this.size - bytesTransferred;\n const estimatedTime = Math.ceil(remainingBytes / speed); // Time in milliseconds\n return estimatedTime; // Return the estimated time in milliseconds\n }\n\n public async upload(): Promise<void> {\n this.startTime = Date.now();\n this.progress.set(0);\n this.status.set('inprogress');\n\n this.intervalId = setInterval(() => {\n this.bytesTransferred += this.uploadSpeed;\n if (this.bytesTransferred > this.size) {\n this.bytesTransferred = this.size;\n }\n const progress = Math.floor((this.bytesTransferred / this.size) * 100);\n this.progress.set(progress);\n\n this.estimateTime.set(this.estimateTimeRemaining(this.bytesTransferred));\n\n if (this.bytesTransferred === this.size) {\n clearInterval(this.intervalId);\n this.progress.set(100);\n this.status.set('completed');\n }\n }, this.interval);\n }\n\n public cancel(): Promise<void> {\n this.status.set('canceled');\n this.bytesTransferred = 0;\n this.estimateTime.set(0);\n this.progress.set(0);\n clearInterval(this.intervalId);\n return Promise.resolve();\n }\n}\n","import { AXPopupService } from '@acorex/components/popup';\nimport { AXFileService } from '@acorex/core/file';\nimport { Injectable, inject } from '@angular/core';\nimport { sumBy } from 'lodash-es';\nimport { BehaviorSubject, interval, map, switchMap } from 'rxjs';\nimport { AXUploadRequest } from './uploader.models';\n\n@Injectable({ providedIn: 'root' })\nexport class AXUploaderService {\n private popupService = inject(AXPopupService);\n private fileService: AXFileService = inject(AXFileService);\n private files$: BehaviorSubject<AXUploadRequest[]> = new BehaviorSubject<AXUploadRequest[]>([]);\n public get files(): BehaviorSubject<AXUploadRequest[]> {\n return this.files$;\n }\n\n public readonly totalEstimateTime = interval(500).pipe(\n switchMap(() => this.files$.asObservable()),\n map((f) => sumBy(f, (c) => c.estimateTime())),\n );\n\n private showDialog() {\n import('./uploader-list.component').then((c) => {\n this.popupService\n .open(c.AXUploaderListComponent, {\n size: 'md',\n title: 'Upload File',\n })\n .then(async () => {\n await this.cancelAll();\n this.clearAll();\n });\n });\n }\n\n private convertFileToRequest(file: File): AXUploadRequest {\n return new AXUploadRequest(file);\n }\n\n private startUpload() {\n this.files.value\n .filter((c) => c.status() == 'new')\n .forEach((c) => {\n c.upload();\n });\n }\n\n async browse(): Promise<AXUploadRequest[]> {\n try {\n const files = await this.fileService.choose();\n if (files.length) {\n return this.add(files);\n }\n return Promise.resolve([]);\n } catch (error) {\n return Promise.resolve([]);\n }\n }\n\n async add(files: FileList | File[]): Promise<AXUploadRequest[]> {\n const list = Array.from(files).map((f) => this.convertFileToRequest(f));\n const currentValue = this.files$.value;\n currentValue.push(...list);\n this.files$.next(currentValue);\n this.showDialog();\n this.startUpload();\n return Promise.resolve(list);\n }\n\n upload() {}\n\n async cancelAll() {\n await Promise.all(this.files$.value.filter((c) => c.status() != 'completed').map((c) => c.cancel()));\n }\n\n clearAll() {\n this.files$.value.filter((c) => c.status() != 'inprogress').forEach((c) => this.remove(c));\n }\n\n remove(item: AXUploadRequest) {\n let currentValue = this.files$.value;\n currentValue = currentValue.filter((c) => c != item);\n this.files$.next(currentValue);\n }\n}\n","import { AXFileService } from '@acorex/core/file';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { Directive, ElementRef, HostBinding, Input, OnDestroy, inject } from '@angular/core';\nimport { AXUploaderService } from './uploader.service';\n@Directive({\n selector: '[axUploaderZone]',\n})\nexport class AXUploaderZoneDirective implements OnDestroy {\n @Input() multiple = true;\n private fileService: AXFileService = inject(AXFileService);\n private uploadService: AXUploaderService = inject(AXUploaderService);\n private translateService = inject(AXTranslationService);\n private element: HTMLElement;\n\n stateClass = 'ax-uploader-overlay-state';\n overlayElement: HTMLDivElement;\n\n init() {\n this.element = this.elementRef.nativeElement as HTMLElement;\n this.element.style.position = 'relative';\n }\n\n constructor(private elementRef: ElementRef) {\n this.init();\n this.element.addEventListener('dragenter', this.handleDragEnter.bind(this), true);\n this.element.addEventListener('dragover', this.handleDragOver.bind(this), true);\n this.element.addEventListener('drop', this.handleOnDrop.bind(this), true);\n this.element.addEventListener('dragleave', this.removeZone.bind(this), true);\n }\n\n ngOnDestroy(): void {\n this.element.removeEventListener('dragenter', this.handleDragEnter.bind(this));\n this.element.removeEventListener('drop', this.handleOnDrop.bind(this));\n this.element.removeEventListener('dragover', this.handleDragOver.bind(this));\n this.element.removeEventListener('dragleave', this.removeZone.bind(this));\n }\n private handleDragEnter(event: Event) {\n this.createZone();\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n private handleOnDrop(event: DragEvent) {\n event.preventDefault();\n event.stopImmediatePropagation();\n this.uploadService.add(event.dataTransfer?.files);\n this.removeZone();\n }\n\n private handleDragOver(event: Event) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n\n private createZone() {\n this.overlayElement = document.createElement('div');\n this.overlayElement.classList.add('ax-uploader-overlay-state');\n\n const icon: HTMLSpanElement = document.createElement('span');\n icon.classList.add('ax-icon', 'ax-icon-upload');\n\n const text = document.createElement('span');\n text.innerText = this.translateService.translateSync('uploader.zone.text');\n\n this.overlayElement.appendChild(icon);\n this.overlayElement.appendChild(text);\n\n this.element.appendChild(this.overlayElement);\n }\n\n private removeZone() {\n this.overlayElement.remove();\n }\n\n public browser() {\n this.uploadService.browse();\n }\n\n @HostBinding('class')\n get __hostClass(): string {\n return `ax-drop-zone`;\n }\n}\n","import { Directive, ElementRef, OnDestroy, OnInit, inject } from '@angular/core';\nimport { AXUploaderZoneDirective } from './uploader-zone.directive';\n\n@Directive({\n selector: '[axUploaderBrowseHandle]',\n})\nexport class AXUploaderBrowseDirective implements OnInit, OnDestroy {\n private uploaderZone = inject(AXUploaderZoneDirective);\n private elemenrRef: ElementRef<HTMLDivElement> = inject(ElementRef<HTMLDivElement>);\n\n ngOnInit() {\n this.elemenrRef.nativeElement.addEventListener('click', this.handleClick.bind(this));\n }\n\n ngOnDestroy(): void {\n this.elemenrRef.nativeElement.removeEventListener('click', this.handleClick.bind(this));\n }\n\n private handleClick() {\n this.uploaderZone.browser();\n }\n}\n","import { AXBasePageComponent } from '@acorex/components/page';\nimport { Component, ViewEncapsulation, inject } from '@angular/core';\nimport { AXUploaderService } from './uploader.service';\n\n@Component({\n selector: 'ax-uploader-list',\n templateUrl: './uploader-list.component.html',\n styleUrls: ['./uploader-list.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXUploaderListComponent extends AXBasePageComponent {\n protected uploadService: AXUploaderService = inject(AXUploaderService);\n}\n","@if((uploadService.totalEstimateTime | async) > 0)\n{\n<div class=\"ax-uploader-progress-status\">\n <div>{{ (uploadService.totalEstimateTime | async) | format: 'timeleft' | async }}</div>\n <button (click)=\"uploadService.cancelAll()\">{{ 'cancel' | translate | async }}</button>\n</div>\n}\n<ul class=\"ax-uploader-list-items\">\n @for (item of uploadService.files | async; track item.name) {\n <li>\n <div class=\"ax-file ax-bg-success-500\">\n <span>{{ item.ext }}</span>\n </div>\n <div class=\"ax-item-container\">\n <div class=\"ax-item-name\" [title]=\"item.name\">{{ item.name }}</div>\n <div><span>{{ item.size | format: 'filesize' | async }}</span>\n @switch (item.status()) {\n @case ('inprogress') {\n / {{ item.estimateTime() | format: 'timeleft' | async }}\n }\n }\n </div>\n </div>\n @switch (item.status()) {\n @case ('completed') {\n <div class=\"ax-status\">\n <i class=\"ax-icon ax-icon-solid ax-icon-check-circle ax-state-completed\"></i>\n </div>\n }\n @case ('canceled') {\n <span class=\"ax-state-canceled\">{{ 'canceled' | translate | async }}</span>\n }\n @case ('failed') {\n <span class=\"ax-state-failed\">{{ 'failed' | translate | async }}</span>\n }\n @default {\n <div class=\"ax-status\">\n <ax-circular-progress [size]=\"22\" [stroke]=\"6\" [progress]=\"item.progress()\" class=\"ax-show\">\n </ax-circular-progress>\n <i class=\"ax-icon ax-icon-solid ax-icon-close ax-hide\" (click)=\"item.cancel()\"\n title=\"{{ 'cancel' | translate | async }}\"></i>\n </div>\n }\n }\n </li>\n }\n</ul>","import { AXClosbaleComponent } from '@acorex/components/common';\nimport { AUTO_STYLE, animate, state, style, transition, trigger } from '@angular/animations';\nimport { Component, ViewEncapsulation, inject } from '@angular/core';\n\n@Component({\n selector: 'ax-uploader-dialog-container',\n templateUrl: './uploader-dialog-container.component.html',\n styleUrls: ['./uploader-dialog-container.component.scss'],\n encapsulation: ViewEncapsulation.None,\n animations: [\n trigger('collapse', [\n state('false', style({ height: AUTO_STYLE, visibility: AUTO_STYLE })),\n state('true', style({ height: '0', visibility: 'hidden' })),\n transition('false => true', animate(150 + 'ms ease-in')),\n transition('true => false', animate(150 + 'ms ease-out')),\n ]),\n ],\n})\nexport class AXUploaderDialogContainerComponent {\n private parent = inject(AXClosbaleComponent);\n\n isCollapsed = false;\n\n close() {\n this.parent.close();\n }\n\n toggle() {\n this.isCollapsed = !this.isCollapsed;\n }\n}\n","<div class=\"ax-uploader-list-header\">\n <div>{{'Uploading' | translate | async }}</div>\n <div>\n <i class=\"ax-icon\" [ngClass]=\"{ 'ax-icon-chevron-down': !isCollapsed, 'ax-icon-chevron-up': isCollapsed }\"\n (click)=\"toggle()\"></i>\n <i class=\"ax-icon ax-icon-close\" (click)=\"close()\"></i>\n </div>\n</div>\n<div [@collapse]=\"isCollapsed\">\n <ax-uploader-list></ax-uploader-list>\n</div>","import { MXBaseComponent } from '@acorex/components/common';\nimport { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ax-uploader-drop-zone',\n templateUrl: './uploader-drop-zone.component.html',\n styleUrls: ['./uploader.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXUploaderDropZoneComponent extends MXBaseComponent {}\n","<div class=\"ax-uploader-drop-zone-container\" axUploaderZone>\n <ax-icon class=\"ax-icon ax-icon-upload\"></ax-icon>\n <div class=\"ax-uploader-drop-zone-description\">\n <span>Drag & Drop or <a href=\"#\">Choose file</a> to upload</span>\n <p>SVG, PNG, JPG or GIF (MAX. 800x400px)</p>\n </div>\n</div>","import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { AXCircularProgressModule } from '@acorex/components/circular-progress';\nimport { AXPopupModule } from '@acorex/components/popup';\nimport { AXProgressBarModule } from '@acorex/components/progress-bar';\nimport { AXDateTimeModule } from '@acorex/core/date-time';\nimport { AXFileModule } from '@acorex/core/file';\nimport { AXFormatModule } from '@acorex/core/format';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { HttpClientModule } from '@angular/common/http';\nimport { AXUploaderBrowseDirective } from './uploader-browse-handle.directive';\nimport { AXUploaderDialogContainerComponent } from './uploader-dialog-container.component';\nimport { AXUploaderDropZoneComponent } from './uploader-drop-zone.component';\nimport { AXUploaderListComponent } from './uploader-list.component';\nimport { AXUploaderZoneDirective } from './uploader-zone.directive';\nimport { AXUploaderService } from './uploader.service';\n\n@NgModule({\n declarations: [\n AXUploaderDropZoneComponent,\n AXUploaderListComponent,\n AXUploaderZoneDirective,\n AXUploaderBrowseDirective,\n AXUploaderDialogContainerComponent,\n ],\n imports: [\n CommonModule,\n HttpClientModule,\n AXDecoratorModule,\n AXButtonModule,\n AXTranslationModule,\n AXProgressBarModule,\n AXFormatModule,\n AXFileModule,\n AXDateTimeModule,\n AXCircularProgressModule,\n AXPopupModule,\n ],\n exports: [AXUploaderDropZoneComponent, AXUploaderZoneDirective, AXUploaderBrowseDirective, AXUploaderDialogContainerComponent],\n providers: [AXUploaderService],\n})\nexport class AXUploaderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i1","i2.AXUploaderListComponent","i2.AXUploaderZoneDirective"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;MAIa,eAAe,CAAA;AAC1B,IAAA,IAAI,IAAI,GAAA;AACN,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;KACvB;AAED,IAAA,IAAI,GAAG,GAAA;QACL,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACnC,QAAA,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YACpB,OAAO,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YACnB,mBAAmB;YACnB,cAAc;YACd,YAAY;YACZ,gBAAgB;YAChB,wBAAwB;YACxB,aAAa,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAKJ,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAxB5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,2BAA2B;wBAC3B,uBAAuB;wBACvB,uBAAuB;wBACvB,yBAAyB;wBACzB,kCAAkC;AACnC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,gBAAgB;wBAChB,iBAAiB;wBACjB,cAAc;wBACd,mBAAmB;wBACnB,mBAAmB;wBACnB,cAAc;wBACd,YAAY;wBACZ,gBAAgB;wBAChB,wBAAwB;wBACxB,aAAa;AACd,qBAAA;oBACD,OAAO,EAAE,CAAC,2BAA2B,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,kCAAkC,CAAC;oBAC9H,SAAS,EAAE,CAAC,iBAAiB,CAAC;AAC/B,iBAAA,CAAA;;;AC3CD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-uploader.mjs","sources":["../../../../libs/components/uploader/src/lib/uploader.models.ts","../../../../libs/components/uploader/src/lib/uploader.service.ts","../../../../libs/components/uploader/src/lib/uploader-zone.directive.ts","../../../../libs/components/uploader/src/lib/uploader-browse-handle.directive.ts","../../../../libs/components/uploader/src/lib/uploader-list.component.ts","../../../../libs/components/uploader/src/lib/uploader-list.component.html","../../../../libs/components/uploader/src/lib/uploader-dialog-container.component.ts","../../../../libs/components/uploader/src/lib/uploader-dialog-container.component.html","../../../../libs/components/uploader/src/lib/uploader-drop-zone.component.ts","../../../../libs/components/uploader/src/lib/uploader-drop-zone.component.html","../../../../libs/components/uploader/src/lib/uploader.module.ts","../../../../libs/components/uploader/src/acorex-components-uploader.ts"],"sourcesContent":["import { AXEvent } from '@acorex/components/common';\nimport { computed, signal } from '@angular/core';\n\nexport type AXUploadStatus = 'new' | 'inprogress' | 'completed' | 'failed' | 'canceled';\n\n\nexport interface AXUploaderChangedEvent extends AXEvent {\n requests: AXUploadRequest[];\n}\n\nexport interface AXUploaderFileCompleteEvent extends AXEvent {\n uploadedFile: AXUploadRequest;\n}\n\nexport interface AXUploaderFilesCompleteEvent extends AXEvent {\n uploadedFiles: AXUploadRequest[];\n}\n\nexport class AXUploadRequest {\n\n get name(): string {\n return this.file.name;\n }\n\n get ext(): string {\n const parts = this.name.split('.');\n if (parts.length > 1) {\n return parts[parts.length - 1];\n } else {\n // No extension found\n return '';\n }\n }\n\n get size(): number {\n return this.file.size;\n }\n\n get file(): File {\n return this.uploadFile;\n }\n\n private readonly _progress = signal(0);\n progress = computed(() => this._progress())\n\n private readonly _estimateTime = signal(0);\n estimateTime = computed(() => this._estimateTime())\n\n private readonly _status = signal<AXUploadStatus>('new');\n status = computed(() => this._status())\n\n private startTime: number;\n private bytesTransferred = 0;\n\n public onStart: (file: AXUploadRequest) => void;\n public onCancel: (file: AXUploadRequest) => void;\n public onComplete: (file: AXUploadRequest) => void;\n\n constructor(private uploadFile: File) { }\n\n private estimateTimeRemaining(bytesTransferred: number): number | null {\n const now = Date.now();\n const elapsed = now - this.startTime; // Time in milliseconds\n\n if (elapsed === 0) {\n return null; // Avoid division by zero\n }\n\n const speed = bytesTransferred / elapsed; // Bytes per millisecond\n const remainingBytes = this.size - bytesTransferred;\n const estimatedTime = Math.ceil(remainingBytes / speed); // Time in milliseconds\n return estimatedTime; // Return the estimated time in milliseconds\n }\n\n public setTransferredBytes(value: number) {\n this.bytesTransferred = value;\n this.updateEstimateTime();\n }\n\n private updateEstimateTime() {\n this._estimateTime.set(this.estimateTimeRemaining(this.bytesTransferred))\n const progress = Math.floor((this.bytesTransferred / this.size) * 100);\n this._progress.set(progress);\n }\n\n public async upload(): Promise<void> {\n this.startTime = Date.now();\n this._progress.set(0);\n this._status.set('inprogress');\n if (this.onStart)\n this.onStart(this);\n }\n\n public cancel(): void {\n this._status.set('canceled');\n this.bytesTransferred = 0;\n this._estimateTime.set(0);\n this._progress.set(0);\n }\n\n public finish(data?: any): void {\n this._status.set('completed');\n this.bytesTransferred = this.size;\n this._estimateTime.set(0);\n this._progress.set(100);\n if (this.onComplete)\n this.onComplete(this);\n }\n}\n","import { AXPopupService } from '@acorex/components/popup';\nimport { AXFileService } from '@acorex/core/file';\nimport { Injectable, inject } from '@angular/core';\nimport { sumBy } from 'lodash-es';\nimport { BehaviorSubject, interval, map, Subject, switchMap } from 'rxjs';\nimport { AXUploaderFileCompleteEvent, AXUploaderFilesCompleteEvent, AXUploadRequest } from './uploader.models';\n\n@Injectable({ providedIn: 'root' })\nexport class AXUploaderService {\n\n private popupService = inject(AXPopupService);\n private fileService: AXFileService = inject(AXFileService);\n private files$: BehaviorSubject<AXUploadRequest[]> = new BehaviorSubject<AXUploadRequest[]>([]);\n public get files(): BehaviorSubject<AXUploadRequest[]> {\n return this.files$;\n }\n\n public readonly onFileUploadComplete: Subject<AXUploaderFileCompleteEvent> = new Subject<AXUploaderFileCompleteEvent>();\n public readonly onFilesUploadComplete: Subject<AXUploaderFilesCompleteEvent> = new Subject<AXUploaderFilesCompleteEvent>();\n\n public readonly totalEstimateTime = interval(500).pipe(\n switchMap(() => this.files$.asObservable()),\n map((f) => sumBy(f, (c) => c.estimateTime())),\n );\n\n private showDialog() {\n import('./uploader-list.component').then((c) => {\n this.popupService\n .open(c.AXUploaderListComponent, {\n size: 'md',\n title: 'Upload File',\n })\n .then(async () => {\n await this.cancelAll();\n this.clearAll();\n });\n });\n }\n\n private convertFileToRequest(file: File): AXUploadRequest {\n return new AXUploadRequest(file);\n }\n\n private startUpload() {\n this.files.value\n .filter((c) => c.status() == 'new')\n .forEach((c) => {\n c.onComplete = () => {\n this.onFileUploadComplete.next({\n component: this,\n uploadedFile: c,\n isUserInteraction: false\n });\n if (this.files.value.every(c => c.status() == 'completed')) {\n this.onFilesUploadComplete.next({\n component: this,\n uploadedFiles: this.files.value,\n isUserInteraction: false\n });\n }\n };\n c.upload();\n });\n }\n\n async browse(options: { multiple?: boolean, accept?: string } = { multiple: false }): Promise<AXUploadRequest[]> {\n try {\n const files = await this.fileService.choose({ multiple: options?.multiple || false, accept: options.accept });\n if (files.length) {\n return this.add(files);\n }\n return Promise.resolve([]);\n } catch (error) {\n return Promise.resolve([]);\n }\n }\n\n async add(files: FileList | File[]): Promise<AXUploadRequest[]> {\n const list = Array.from(files).map((f) => this.convertFileToRequest(f));\n const currentValue = this.files$.value;\n currentValue.push(...list);\n this.files$.next(currentValue);\n this.showDialog();\n this.startUpload();\n return Promise.resolve(list);\n }\n\n\n async cancelAll() {\n await Promise.all(this.files$.value.filter((c) => c.status() != 'completed').map((c) => c.cancel()));\n }\n\n clearAll() {\n this.files$.value.filter((c) => c.status() != 'inprogress').forEach((c) => this.remove(c));\n }\n\n remove(item: AXUploadRequest) {\n let currentValue = this.files$.value;\n currentValue = currentValue.filter((c) => c != item);\n this.files$.next(currentValue);\n }\n}\n","import { AXTranslationService } from '@acorex/core/translation';\nimport { Directive, ElementRef, EventEmitter, HostBinding, Input, OnDestroy, Output, inject } from '@angular/core';\nimport { AXUploaderService } from './uploader.service';\nimport { AXUploaderChangedEvent, AXUploaderFileCompleteEvent, AXUploaderFilesCompleteEvent } from './uploader.models';\nimport { AXUnsubscriber } from '@acorex/core/utils';\n@Directive({\n selector: '[axUploaderZone]',\n providers: [AXUnsubscriber]\n})\nexport class AXUploaderZoneDirective implements OnDestroy {\n @Input()\n multiple = true;\n\n @Input()\n accept: string = null;\n\n private uploadService = inject(AXUploaderService);\n private unsubscriber = inject(AXUnsubscriber);\n private translateService = inject(AXTranslationService);\n private element: HTMLElement;\n\n\n @Output()\n onChanged: EventEmitter<AXUploaderChangedEvent> = new EventEmitter<AXUploaderChangedEvent>();\n\n @Output()\n onFileUploadComplete: EventEmitter<AXUploaderFileCompleteEvent> = new EventEmitter<AXUploaderFileCompleteEvent>();\n\n @Output()\n onFilesUploadComplete: EventEmitter<AXUploaderFilesCompleteEvent> = new EventEmitter<AXUploaderFilesCompleteEvent>();\n\n\n stateClass = 'ax-uploader-overlay-state';\n overlayElement: HTMLDivElement;\n\n\n\n constructor(private elementRef: ElementRef) {\n this.element = this.elementRef.nativeElement as HTMLElement;\n this.element.style.position = 'relative';\n //\n this.uploadService\n .onFileUploadComplete\n .pipe(this.unsubscriber.takeUntilDestroy)\n .subscribe(c => {\n this.onFileUploadComplete.next(c);\n });\n\n this.uploadService\n .onFilesUploadComplete\n .pipe(this.unsubscriber.takeUntilDestroy)\n .subscribe(c => {\n this.onFilesUploadComplete.next(c);\n });\n //\n this.element.addEventListener('dragenter', this.handleDragEnter.bind(this), true);\n this.element.addEventListener('dragover', this.handleDragOver.bind(this), true);\n this.element.addEventListener('drop', this.handleOnDrop.bind(this), true);\n this.element.addEventListener('dragleave', this.removeZone.bind(this), true);\n }\n\n ngOnDestroy(): void {\n this.element.removeEventListener('dragenter', this.handleDragEnter.bind(this));\n this.element.removeEventListener('drop', this.handleOnDrop.bind(this));\n this.element.removeEventListener('dragover', this.handleDragOver.bind(this));\n this.element.removeEventListener('dragleave', this.removeZone.bind(this));\n }\n\n private handleDragEnter(event: Event) {\n this.createZone();\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n private handleOnDrop(event: DragEvent) {\n event.preventDefault();\n event.stopImmediatePropagation();\n this.uploadService.add(event.dataTransfer?.files);\n this.removeZone();\n }\n\n private handleDragOver(event: Event) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n\n private createZone() {\n this.overlayElement = document.createElement('div');\n this.overlayElement.classList.add('ax-uploader-overlay-state');\n\n const icon: HTMLSpanElement = document.createElement('span');\n icon.classList.add('ax-icon', 'ax-icon-upload');\n\n const text = document.createElement('span');\n text.innerText = this.translateService.translateSync('uploader.zone.text');\n\n this.overlayElement.appendChild(icon);\n this.overlayElement.appendChild(text);\n\n this.element.appendChild(this.overlayElement);\n }\n\n private removeZone() {\n this.overlayElement.remove();\n }\n\n public async browser(): Promise<void> {\n const requests = await this.uploadService.browse({ accept: this.accept, multiple: this.multiple });\n this.onChanged.emit({\n component: this,\n requests,\n isUserInteraction: true\n });\n }\n\n @HostBinding('class')\n get __hostClass(): string {\n return `ax-drop-zone`;\n }\n}\n","import { Directive, ElementRef, OnDestroy, OnInit, inject } from '@angular/core';\nimport { AXUploaderZoneDirective } from './uploader-zone.directive';\n\n@Directive({\n selector: '[axUploaderBrowseHandle]',\n})\nexport class AXUploaderBrowseDirective implements OnInit, OnDestroy {\n private uploaderZone = inject(AXUploaderZoneDirective);\n private elemenrRef: ElementRef<HTMLDivElement> = inject(ElementRef<HTMLDivElement>);\n\n ngOnInit() {\n this.elemenrRef.nativeElement.addEventListener('click', this.handleClick.bind(this));\n }\n\n ngOnDestroy(): void {\n this.elemenrRef.nativeElement.removeEventListener('click', this.handleClick.bind(this));\n }\n\n private async handleClick() {\n await this.uploaderZone.browser();\n }\n}\n","import { AXBasePageComponent } from '@acorex/components/page';\nimport { Component, ViewEncapsulation, inject } from '@angular/core';\nimport { AXUploaderService } from './uploader.service';\n\n@Component({\n selector: 'ax-uploader-list',\n templateUrl: './uploader-list.component.html',\n styleUrls: ['./uploader-list.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXUploaderListComponent extends AXBasePageComponent {\n protected uploadService: AXUploaderService = inject(AXUploaderService);\n}\n","@if((uploadService.totalEstimateTime | async) > 0)\n{\n<div class=\"ax-uploader-progress-status\">\n <div>{{ (uploadService.totalEstimateTime | async) | format: 'timeleft' | async }}</div>\n <button (click)=\"uploadService.cancelAll()\">{{ 'cancel' | translate | async }}</button>\n</div>\n}\n<ul class=\"ax-uploader-list-items\">\n @for (item of uploadService.files | async; track item.name) {\n <li>\n <div class=\"ax-file ax-bg-success-500\">\n <span>{{ item.ext }}</span>\n </div>\n <div class=\"ax-item-container\">\n <div class=\"ax-item-name\" [title]=\"item.name\">{{ item.name }}</div>\n <div><span>{{ item.size | format: 'filesize' | async }}</span>\n @switch (item.status()) {\n @case ('inprogress') {\n / {{ item.estimateTime() | format: 'timeleft' | async }}\n }\n }\n </div>\n </div>\n @switch (item.status()) {\n @case ('completed') {\n <div class=\"ax-status\">\n <i class=\"ax-icon ax-icon-solid ax-icon-check-circle ax-state-completed\"></i>\n </div>\n }\n @case ('canceled') {\n <span class=\"ax-state-canceled\">{{ 'canceled' | translate | async }}</span>\n }\n @case ('failed') {\n <span class=\"ax-state-failed\">{{ 'failed' | translate | async }}</span>\n }\n @default {\n <div class=\"ax-status\">\n <ax-circular-progress [size]=\"22\" [stroke]=\"6\" [progress]=\"item.progress()\" class=\"ax-show\">\n </ax-circular-progress>\n <i class=\"ax-icon ax-icon-solid ax-icon-close ax-hide\" (click)=\"item.cancel()\"\n title=\"{{ 'cancel' | translate | async }}\"></i>\n </div>\n }\n }\n </li>\n }\n</ul>","import { AXClosbaleComponent } from '@acorex/components/common';\nimport { AUTO_STYLE, animate, state, style, transition, trigger } from '@angular/animations';\nimport { Component, ViewEncapsulation, inject } from '@angular/core';\n\n@Component({\n selector: 'ax-uploader-dialog-container',\n templateUrl: './uploader-dialog-container.component.html',\n styleUrls: ['./uploader-dialog-container.component.scss'],\n encapsulation: ViewEncapsulation.None,\n animations: [\n trigger('collapse', [\n state('false', style({ height: AUTO_STYLE, visibility: AUTO_STYLE })),\n state('true', style({ height: '0', visibility: 'hidden' })),\n transition('false => true', animate(150 + 'ms ease-in')),\n transition('true => false', animate(150 + 'ms ease-out')),\n ]),\n ],\n})\nexport class AXUploaderDialogContainerComponent {\n private parent = inject(AXClosbaleComponent);\n\n isCollapsed = false;\n\n close() {\n this.parent.close();\n }\n\n toggle() {\n this.isCollapsed = !this.isCollapsed;\n }\n}\n","<div class=\"ax-uploader-list-header\">\n <div>{{'Uploading' | translate | async }}</div>\n <div>\n <i class=\"ax-icon\" [ngClass]=\"{ 'ax-icon-chevron-down': !isCollapsed, 'ax-icon-chevron-up': isCollapsed }\"\n (click)=\"toggle()\"></i>\n <i class=\"ax-icon ax-icon-close\" (click)=\"close()\"></i>\n </div>\n</div>\n<div [@collapse]=\"isCollapsed\">\n <ax-uploader-list></ax-uploader-list>\n</div>","import { MXBaseComponent } from '@acorex/components/common';\nimport { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ax-uploader-drop-zone',\n templateUrl: './uploader-drop-zone.component.html',\n styleUrls: ['./uploader.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXUploaderDropZoneComponent extends MXBaseComponent {}\n","<div class=\"ax-uploader-drop-zone-container\" axUploaderZone>\n <ax-icon class=\"ax-icon ax-icon-upload\"></ax-icon>\n <div class=\"ax-uploader-drop-zone-description\">\n <span>Drag & Drop or <a href=\"#\">Choose file</a> to upload</span>\n <p>SVG, PNG, JPG or GIF (MAX. 800x400px)</p>\n </div>\n</div>","import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { AXCircularProgressModule } from '@acorex/components/circular-progress';\nimport { AXPopupModule } from '@acorex/components/popup';\nimport { AXProgressBarModule } from '@acorex/components/progress-bar';\nimport { AXDateTimeModule } from '@acorex/core/date-time';\nimport { AXFileModule } from '@acorex/core/file';\nimport { AXFormatModule } from '@acorex/core/format';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXUploaderBrowseDirective } from './uploader-browse-handle.directive';\nimport { AXUploaderDialogContainerComponent } from './uploader-dialog-container.component';\nimport { AXUploaderDropZoneComponent } from './uploader-drop-zone.component';\nimport { AXUploaderListComponent } from './uploader-list.component';\nimport { AXUploaderZoneDirective } from './uploader-zone.directive';\nimport { AXUploaderService } from './uploader.service';\n\n@NgModule({\n declarations: [\n AXUploaderDropZoneComponent,\n AXUploaderListComponent,\n AXUploaderZoneDirective,\n AXUploaderBrowseDirective,\n AXUploaderDialogContainerComponent,\n ],\n imports: [\n CommonModule,\n AXDecoratorModule,\n AXButtonModule,\n AXTranslationModule,\n AXProgressBarModule,\n AXFormatModule,\n AXFileModule,\n AXDateTimeModule,\n AXCircularProgressModule,\n AXPopupModule,\n ],\n exports: [AXUploaderDropZoneComponent, AXUploaderZoneDirective, AXUploaderBrowseDirective, AXUploaderDialogContainerComponent],\n providers: [],\n})\nexport class AXUploaderModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i1","i2.AXUploaderListComponent","i2.AXUploaderZoneDirective"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;MAkBa,eAAe,CAAA;AAE1B,IAAA,IAAI,IAAI,GAAA;AACN,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;KACvB;AAED,IAAA,IAAI,GAAG,GAAA;QACL,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACnC,QAAA,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YACpB,OAAO,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;SAChC;aAAM;;AAEL,YAAA,OAAO,EAAE,CAAC;SACX;KACF;AAED,IAAA,IAAI,IAAI,GAAA;AACN,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;KACvB;AAED,IAAA,IAAI,IAAI,GAAA;QACN,OAAO,IAAI,CAAC,UAAU,CAAC;KACxB;AAkBD,IAAA,WAAA,CAAoB,UAAgB,EAAA;QAAhB,IAAU,CAAA,UAAA,GAAV,UAAU,CAAM;AAhBnB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QACvC,IAAQ,CAAA,QAAA,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,CAAA;AAE1B,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QAC3C,IAAY,CAAA,YAAA,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,a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AmB;YACnB,cAAc;YACd,YAAY;YACZ,gBAAgB;YAChB,wBAAwB;AACxB,YAAA,aAAa,aAEL,2BAA2B,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,kCAAkC,CAAA,EAAA,CAAA,CAAA,EAAA;AAGlH,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAdzB,YAAY;YACZ,iBAAiB;YACjB,cAAc;YACd,mBAAmB;YACnB,mBAAmB;YACnB,cAAc;YACd,YAAY;YACZ,gBAAgB;YAChB,wBAAwB;YACxB,aAAa,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAKJ,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAvB5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,2BAA2B;wBAC3B,uBAAuB;wBACvB,uBAAuB;wBACvB,yBAAyB;wBACzB,kCAAkC;AACnC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,iBAAiB;wBACjB,cAAc;wBACd,mBAAmB;wBACnB,mBAAmB;wBACnB,cAAc;wBACd,YAAY;wBACZ,gBAAgB;wBAChB,wBAAwB;wBACxB,aAAa;AACd,qBAAA;oBACD,OAAO,EAAE,CAAC,2BAA2B,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,kCAAkC,CAAC;AAC9H,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;ACzCD;;AAEG;;;;"}
@@ -69,7 +69,7 @@ export declare class AXNumberBoxComponent extends AXNumberBoxComponent_base impl
69
69
  private _updateMask;
70
70
  _handleModelChange(value: number): void;
71
71
  _handleOnKeydownEvent(e: KeyboardEvent): void;
72
- _handleUpDownClick(v: -1 | 1): void;
72
+ protected _handleUpDownClick(v: -1 | 1): void;
73
73
  stepUp(u?: boolean): void;
74
74
  stepDown(u?: boolean): void;
75
75
  decimalStepUp(u?: boolean): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "18.5.12",
3
+ "version": "18.5.13",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
@@ -31,23 +31,17 @@
31
31
  "esm": "./esm2022/action-sheet/acorex-components-action-sheet.mjs",
32
32
  "default": "./fesm2022/acorex-components-action-sheet.mjs"
33
33
  },
34
- "./audio-wave": {
35
- "types": "./audio-wave/index.d.ts",
36
- "esm2022": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
37
- "esm": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
38
- "default": "./fesm2022/acorex-components-audio-wave.mjs"
39
- },
40
34
  "./alert": {
41
35
  "types": "./alert/index.d.ts",
42
36
  "esm2022": "./esm2022/alert/acorex-components-alert.mjs",
43
37
  "esm": "./esm2022/alert/acorex-components-alert.mjs",
44
38
  "default": "./fesm2022/acorex-components-alert.mjs"
45
39
  },
46
- "./badge": {
47
- "types": "./badge/index.d.ts",
48
- "esm2022": "./esm2022/badge/acorex-components-badge.mjs",
49
- "esm": "./esm2022/badge/acorex-components-badge.mjs",
50
- "default": "./fesm2022/acorex-components-badge.mjs"
40
+ "./avatar": {
41
+ "types": "./avatar/index.d.ts",
42
+ "esm2022": "./esm2022/avatar/acorex-components-avatar.mjs",
43
+ "esm": "./esm2022/avatar/acorex-components-avatar.mjs",
44
+ "default": "./fesm2022/acorex-components-avatar.mjs"
51
45
  },
52
46
  "./bottom-navigation": {
53
47
  "types": "./bottom-navigation/index.d.ts",
@@ -55,11 +49,17 @@
55
49
  "esm": "./esm2022/bottom-navigation/acorex-components-bottom-navigation.mjs",
56
50
  "default": "./fesm2022/acorex-components-bottom-navigation.mjs"
57
51
  },
58
- "./avatar": {
59
- "types": "./avatar/index.d.ts",
60
- "esm2022": "./esm2022/avatar/acorex-components-avatar.mjs",
61
- "esm": "./esm2022/avatar/acorex-components-avatar.mjs",
62
- "default": "./fesm2022/acorex-components-avatar.mjs"
52
+ "./audio-wave": {
53
+ "types": "./audio-wave/index.d.ts",
54
+ "esm2022": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
55
+ "esm": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
56
+ "default": "./fesm2022/acorex-components-audio-wave.mjs"
57
+ },
58
+ "./badge": {
59
+ "types": "./badge/index.d.ts",
60
+ "esm2022": "./esm2022/badge/acorex-components-badge.mjs",
61
+ "esm": "./esm2022/badge/acorex-components-badge.mjs",
62
+ "default": "./fesm2022/acorex-components-badge.mjs"
63
63
  },
64
64
  "./breadcrumbs": {
65
65
  "types": "./breadcrumbs/index.d.ts",
@@ -79,12 +79,6 @@
79
79
  "esm": "./esm2022/button-group/acorex-components-button-group.mjs",
80
80
  "default": "./fesm2022/acorex-components-button-group.mjs"
81
81
  },
82
- "./calendar": {
83
- "types": "./calendar/index.d.ts",
84
- "esm2022": "./esm2022/calendar/acorex-components-calendar.mjs",
85
- "esm": "./esm2022/calendar/acorex-components-calendar.mjs",
86
- "default": "./fesm2022/acorex-components-calendar.mjs"
87
- },
88
82
  "./check-box": {
89
83
  "types": "./check-box/index.d.ts",
90
84
  "esm2022": "./esm2022/check-box/acorex-components-check-box.mjs",
@@ -97,6 +91,12 @@
97
91
  "esm": "./esm2022/chips/acorex-components-chips.mjs",
98
92
  "default": "./fesm2022/acorex-components-chips.mjs"
99
93
  },
94
+ "./calendar": {
95
+ "types": "./calendar/index.d.ts",
96
+ "esm2022": "./esm2022/calendar/acorex-components-calendar.mjs",
97
+ "esm": "./esm2022/calendar/acorex-components-calendar.mjs",
98
+ "default": "./fesm2022/acorex-components-calendar.mjs"
99
+ },
100
100
  "./circular-progress": {
101
101
  "types": "./circular-progress/index.d.ts",
102
102
  "esm2022": "./esm2022/circular-progress/acorex-components-circular-progress.mjs",
@@ -163,6 +163,12 @@
163
163
  "esm": "./esm2022/datetime-input/acorex-components-datetime-input.mjs",
164
164
  "default": "./fesm2022/acorex-components-datetime-input.mjs"
165
165
  },
166
+ "./decorators": {
167
+ "types": "./decorators/index.d.ts",
168
+ "esm2022": "./esm2022/decorators/acorex-components-decorators.mjs",
169
+ "esm": "./esm2022/decorators/acorex-components-decorators.mjs",
170
+ "default": "./fesm2022/acorex-components-decorators.mjs"
171
+ },
166
172
  "./datetime-picker": {
167
173
  "types": "./datetime-picker/index.d.ts",
168
174
  "esm2022": "./esm2022/datetime-picker/acorex-components-datetime-picker.mjs",
@@ -175,12 +181,6 @@
175
181
  "esm": "./esm2022/dialog/acorex-components-dialog.mjs",
176
182
  "default": "./fesm2022/acorex-components-dialog.mjs"
177
183
  },
178
- "./decorators": {
179
- "types": "./decorators/index.d.ts",
180
- "esm2022": "./esm2022/decorators/acorex-components-decorators.mjs",
181
- "esm": "./esm2022/decorators/acorex-components-decorators.mjs",
182
- "default": "./fesm2022/acorex-components-decorators.mjs"
183
- },
184
184
  "./drawer": {
185
185
  "types": "./drawer/index.d.ts",
186
186
  "esm2022": "./esm2022/drawer/acorex-components-drawer.mjs",
@@ -199,18 +199,18 @@
199
199
  "esm": "./esm2022/dropdown-button/acorex-components-dropdown-button.mjs",
200
200
  "default": "./fesm2022/acorex-components-dropdown-button.mjs"
201
201
  },
202
- "./image": {
203
- "types": "./image/index.d.ts",
204
- "esm2022": "./esm2022/image/acorex-components-image.mjs",
205
- "esm": "./esm2022/image/acorex-components-image.mjs",
206
- "default": "./fesm2022/acorex-components-image.mjs"
207
- },
208
202
  "./form": {
209
203
  "types": "./form/index.d.ts",
210
204
  "esm2022": "./esm2022/form/acorex-components-form.mjs",
211
205
  "esm": "./esm2022/form/acorex-components-form.mjs",
212
206
  "default": "./fesm2022/acorex-components-form.mjs"
213
207
  },
208
+ "./image": {
209
+ "types": "./image/index.d.ts",
210
+ "esm2022": "./esm2022/image/acorex-components-image.mjs",
211
+ "esm": "./esm2022/image/acorex-components-image.mjs",
212
+ "default": "./fesm2022/acorex-components-image.mjs"
213
+ },
214
214
  "./label": {
215
215
  "types": "./label/index.d.ts",
216
216
  "esm2022": "./esm2022/label/acorex-components-label.mjs",
@@ -367,18 +367,18 @@
367
367
  "esm": "./esm2022/selection-list/acorex-components-selection-list.mjs",
368
368
  "default": "./fesm2022/acorex-components-selection-list.mjs"
369
369
  },
370
- "./skeleton": {
371
- "types": "./skeleton/index.d.ts",
372
- "esm2022": "./esm2022/skeleton/acorex-components-skeleton.mjs",
373
- "esm": "./esm2022/skeleton/acorex-components-skeleton.mjs",
374
- "default": "./fesm2022/acorex-components-skeleton.mjs"
375
- },
376
370
  "./side-menu": {
377
371
  "types": "./side-menu/index.d.ts",
378
372
  "esm2022": "./esm2022/side-menu/acorex-components-side-menu.mjs",
379
373
  "esm": "./esm2022/side-menu/acorex-components-side-menu.mjs",
380
374
  "default": "./fesm2022/acorex-components-side-menu.mjs"
381
375
  },
376
+ "./skeleton": {
377
+ "types": "./skeleton/index.d.ts",
378
+ "esm2022": "./esm2022/skeleton/acorex-components-skeleton.mjs",
379
+ "esm": "./esm2022/skeleton/acorex-components-skeleton.mjs",
380
+ "default": "./fesm2022/acorex-components-skeleton.mjs"
381
+ },
382
382
  "./slider": {
383
383
  "types": "./slider/index.d.ts",
384
384
  "esm2022": "./esm2022/slider/acorex-components-slider.mjs",
@@ -403,18 +403,18 @@
403
403
  "esm": "./esm2022/tabs/acorex-components-tabs.mjs",
404
404
  "default": "./fesm2022/acorex-components-tabs.mjs"
405
405
  },
406
- "./text-area": {
407
- "types": "./text-area/index.d.ts",
408
- "esm2022": "./esm2022/text-area/acorex-components-text-area.mjs",
409
- "esm": "./esm2022/text-area/acorex-components-text-area.mjs",
410
- "default": "./fesm2022/acorex-components-text-area.mjs"
411
- },
412
406
  "./tag": {
413
407
  "types": "./tag/index.d.ts",
414
408
  "esm2022": "./esm2022/tag/acorex-components-tag.mjs",
415
409
  "esm": "./esm2022/tag/acorex-components-tag.mjs",
416
410
  "default": "./fesm2022/acorex-components-tag.mjs"
417
411
  },
412
+ "./text-area": {
413
+ "types": "./text-area/index.d.ts",
414
+ "esm2022": "./esm2022/text-area/acorex-components-text-area.mjs",
415
+ "esm": "./esm2022/text-area/acorex-components-text-area.mjs",
416
+ "default": "./fesm2022/acorex-components-text-area.mjs"
417
+ },
418
418
  "./text-box": {
419
419
  "types": "./text-box/index.d.ts",
420
420
  "esm2022": "./esm2022/text-box/acorex-components-text-box.mjs",
@@ -5,3 +5,4 @@ export * from './lib/uploader-list.component';
5
5
  export * from './lib/uploader-zone.directive';
6
6
  export * from './lib/uploader.module';
7
7
  export * from './lib/uploader.service';
8
+ export * from './lib/uploader.models';
@@ -1,15 +1,19 @@
1
- import { ElementRef, OnDestroy } from '@angular/core';
1
+ import { ElementRef, EventEmitter, OnDestroy } from '@angular/core';
2
+ import { AXUploaderChangedEvent, AXUploaderFileCompleteEvent, AXUploaderFilesCompleteEvent } from './uploader.models';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class AXUploaderZoneDirective implements OnDestroy {
4
5
  private elementRef;
5
6
  multiple: boolean;
6
- private fileService;
7
+ accept: string;
7
8
  private uploadService;
9
+ private unsubscriber;
8
10
  private translateService;
9
11
  private element;
12
+ onChanged: EventEmitter<AXUploaderChangedEvent>;
13
+ onFileUploadComplete: EventEmitter<AXUploaderFileCompleteEvent>;
14
+ onFilesUploadComplete: EventEmitter<AXUploaderFilesCompleteEvent>;
10
15
  stateClass: string;
11
16
  overlayElement: HTMLDivElement;
12
- init(): void;
13
17
  constructor(elementRef: ElementRef);
14
18
  ngOnDestroy(): void;
15
19
  private handleDragEnter;
@@ -17,8 +21,8 @@ export declare class AXUploaderZoneDirective implements OnDestroy {
17
21
  private handleDragOver;
18
22
  private createZone;
19
23
  private removeZone;
20
- browser(): void;
24
+ browser(): Promise<void>;
21
25
  get __hostClass(): string;
22
26
  static ɵfac: i0.ɵɵFactoryDeclaration<AXUploaderZoneDirective, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<AXUploaderZoneDirective, "[axUploaderZone]", never, { "multiple": { "alias": "multiple"; "required": false; }; }, {}, never, never, false, never>;
27
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXUploaderZoneDirective, "[axUploaderZone]", never, { "multiple": { "alias": "multiple"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; }, { "onChanged": "onChanged"; "onFileUploadComplete": "onFileUploadComplete"; "onFilesUploadComplete": "onFilesUploadComplete"; }, never, never, false, never>;
24
28
  }
@@ -1,19 +1,36 @@
1
+ import { AXEvent } from '@acorex/components/common';
1
2
  export type AXUploadStatus = 'new' | 'inprogress' | 'completed' | 'failed' | 'canceled';
3
+ export interface AXUploaderChangedEvent extends AXEvent {
4
+ requests: AXUploadRequest[];
5
+ }
6
+ export interface AXUploaderFileCompleteEvent extends AXEvent {
7
+ uploadedFile: AXUploadRequest;
8
+ }
9
+ export interface AXUploaderFilesCompleteEvent extends AXEvent {
10
+ uploadedFiles: AXUploadRequest[];
11
+ }
2
12
  export declare class AXUploadRequest {
3
- private file;
13
+ private uploadFile;
4
14
  get name(): string;
5
15
  get ext(): string;
6
16
  get size(): number;
7
- readonly progress: import("@angular/core").WritableSignal<number>;
8
- readonly estimateTime: import("@angular/core").WritableSignal<number>;
9
- readonly status: import("@angular/core").WritableSignal<AXUploadStatus>;
17
+ get file(): File;
18
+ private readonly _progress;
19
+ progress: import("@angular/core").Signal<number>;
20
+ private readonly _estimateTime;
21
+ estimateTime: import("@angular/core").Signal<number>;
22
+ private readonly _status;
23
+ status: import("@angular/core").Signal<AXUploadStatus>;
10
24
  private startTime;
11
25
  private bytesTransferred;
12
- private uploadSpeed;
13
- private interval;
14
- private intervalId;
15
- constructor(file: File);
26
+ onStart: (file: AXUploadRequest) => void;
27
+ onCancel: (file: AXUploadRequest) => void;
28
+ onComplete: (file: AXUploadRequest) => void;
29
+ constructor(uploadFile: File);
16
30
  private estimateTimeRemaining;
31
+ setTransferredBytes(value: number): void;
32
+ private updateEstimateTime;
17
33
  upload(): Promise<void>;
18
- cancel(): Promise<void>;
34
+ cancel(): void;
35
+ finish(data?: any): void;
19
36
  }
@@ -5,18 +5,17 @@ import * as i3 from "./uploader-zone.directive";
5
5
  import * as i4 from "./uploader-browse-handle.directive";
6
6
  import * as i5 from "./uploader-dialog-container.component";
7
7
  import * as i6 from "@angular/common";
8
- import * as i7 from "@angular/common/http";
9
- import * as i8 from "@acorex/components/decorators";
10
- import * as i9 from "@acorex/components/button";
11
- import * as i10 from "@acorex/core/translation";
12
- import * as i11 from "@acorex/components/progress-bar";
13
- import * as i12 from "@acorex/core/format";
14
- import * as i13 from "@acorex/core/file";
15
- import * as i14 from "@acorex/core/date-time";
16
- import * as i15 from "@acorex/components/circular-progress";
17
- import * as i16 from "@acorex/components/popup";
8
+ import * as i7 from "@acorex/components/decorators";
9
+ import * as i8 from "@acorex/components/button";
10
+ import * as i9 from "@acorex/core/translation";
11
+ import * as i10 from "@acorex/components/progress-bar";
12
+ import * as i11 from "@acorex/core/format";
13
+ import * as i12 from "@acorex/core/file";
14
+ import * as i13 from "@acorex/core/date-time";
15
+ import * as i14 from "@acorex/components/circular-progress";
16
+ import * as i15 from "@acorex/components/popup";
18
17
  export declare class AXUploaderModule {
19
18
  static ɵfac: i0.ɵɵFactoryDeclaration<AXUploaderModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXUploaderModule, [typeof i1.AXUploaderDropZoneComponent, typeof i2.AXUploaderListComponent, typeof i3.AXUploaderZoneDirective, typeof i4.AXUploaderBrowseDirective, typeof i5.AXUploaderDialogContainerComponent], [typeof i6.CommonModule, typeof i7.HttpClientModule, typeof i8.AXDecoratorModule, typeof i9.AXButtonModule, typeof i10.AXTranslationModule, typeof i11.AXProgressBarModule, typeof i12.AXFormatModule, typeof i13.AXFileModule, typeof i14.AXDateTimeModule, typeof i15.AXCircularProgressModule, typeof i16.AXPopupModule], [typeof i1.AXUploaderDropZoneComponent, typeof i3.AXUploaderZoneDirective, typeof i4.AXUploaderBrowseDirective, typeof i5.AXUploaderDialogContainerComponent]>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXUploaderModule, [typeof i1.AXUploaderDropZoneComponent, typeof i2.AXUploaderListComponent, typeof i3.AXUploaderZoneDirective, typeof i4.AXUploaderBrowseDirective, typeof i5.AXUploaderDialogContainerComponent], [typeof i6.CommonModule, typeof i7.AXDecoratorModule, typeof i8.AXButtonModule, typeof i9.AXTranslationModule, typeof i10.AXProgressBarModule, typeof i11.AXFormatModule, typeof i12.AXFileModule, typeof i13.AXDateTimeModule, typeof i14.AXCircularProgressModule, typeof i15.AXPopupModule], [typeof i1.AXUploaderDropZoneComponent, typeof i3.AXUploaderZoneDirective, typeof i4.AXUploaderBrowseDirective, typeof i5.AXUploaderDialogContainerComponent]>;
21
20
  static ɵinj: i0.ɵɵInjectorDeclaration<AXUploaderModule>;
22
21
  }
@@ -1,18 +1,22 @@
1
- import { BehaviorSubject } from 'rxjs';
2
- import { AXUploadRequest } from './uploader.models';
1
+ import { BehaviorSubject, Subject } from 'rxjs';
2
+ import { AXUploaderFileCompleteEvent, AXUploaderFilesCompleteEvent, AXUploadRequest } from './uploader.models';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class AXUploaderService {
5
5
  private popupService;
6
6
  private fileService;
7
7
  private files$;
8
8
  get files(): BehaviorSubject<AXUploadRequest[]>;
9
+ readonly onFileUploadComplete: Subject<AXUploaderFileCompleteEvent>;
10
+ readonly onFilesUploadComplete: Subject<AXUploaderFilesCompleteEvent>;
9
11
  readonly totalEstimateTime: import("rxjs").Observable<number>;
10
12
  private showDialog;
11
13
  private convertFileToRequest;
12
14
  private startUpload;
13
- browse(): Promise<AXUploadRequest[]>;
15
+ browse(options?: {
16
+ multiple?: boolean;
17
+ accept?: string;
18
+ }): Promise<AXUploadRequest[]>;
14
19
  add(files: FileList | File[]): Promise<AXUploadRequest[]>;
15
- upload(): void;
16
20
  cancelAll(): Promise<void>;
17
21
  clearAll(): void;
18
22
  remove(item: AXUploadRequest): void;