@acorex/components 18.5.11 → 18.5.13
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +29 -4
- package/calendar/lib/calendar-range.component.d.ts +2 -1
- package/conversation/lib/services/conversation.service.d.ts +1 -53
- package/data-table/lib/base-data-table.class.d.ts +1 -0
- package/datetime-box/lib/datetime-box.component.d.ts +1 -1
- package/dialog/lib/dialog.class.d.ts +1 -0
- package/esm2022/calendar/lib/calendar-range.component.mjs +7 -7
- package/esm2022/calendar/lib/calendar.component.mjs +3 -3
- package/esm2022/conversation/lib/services/conversation.service.mjs +2 -139
- package/esm2022/data-table/lib/base-data-table.class.mjs +13 -4
- package/esm2022/data-table/lib/data-table/data-table.component.mjs +2 -2
- package/esm2022/datetime-box/lib/datetime-box.component.mjs +2 -2
- package/esm2022/datetime-picker/lib/datetime-picker.component.mjs +4 -1
- package/esm2022/dialog/lib/dialog.class.mjs +1 -1
- package/esm2022/dialog/lib/dialog.component.mjs +3 -3
- package/esm2022/number-box/lib/number-box.component.mjs +1 -1
- package/esm2022/uploader/index.mjs +2 -1
- package/esm2022/uploader/lib/uploader-browse-handle.directive.mjs +3 -3
- package/esm2022/uploader/lib/uploader-drop-zone.component.mjs +1 -1
- package/esm2022/uploader/lib/uploader-zone.directive.mjs +41 -12
- package/esm2022/uploader/lib/uploader.models.mjs +37 -31
- package/esm2022/uploader/lib/uploader.module.mjs +3 -8
- package/esm2022/uploader/lib/uploader.service.mjs +20 -5
- package/fesm2022/acorex-components-calendar.mjs +8 -8
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +1 -138
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +14 -5
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +3 -0
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +2 -2
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +101 -54
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/number-box/lib/number-box.component.d.ts +1 -1
- package/package.json +42 -42
- package/uploader/index.d.ts +1 -0
- package/uploader/lib/uploader-zone.directive.d.ts +9 -5
- package/uploader/lib/uploader.models.d.ts +26 -9
- package/uploader/lib/uploader.module.d.ts +10 -11
- package/uploader/lib/uploader.service.d.ts +8 -4
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@acorex/components",
|
3
|
-
"version": "18.5.
|
3
|
+
"version": "18.5.13",
|
4
4
|
"peerDependencies": {
|
5
5
|
"@angular/common": ">=18.0.0",
|
6
6
|
"@angular/core": ">=18.0.0",
|
@@ -31,6 +31,12 @@
|
|
31
31
|
"esm": "./esm2022/action-sheet/acorex-components-action-sheet.mjs",
|
32
32
|
"default": "./fesm2022/acorex-components-action-sheet.mjs"
|
33
33
|
},
|
34
|
+
"./alert": {
|
35
|
+
"types": "./alert/index.d.ts",
|
36
|
+
"esm2022": "./esm2022/alert/acorex-components-alert.mjs",
|
37
|
+
"esm": "./esm2022/alert/acorex-components-alert.mjs",
|
38
|
+
"default": "./fesm2022/acorex-components-alert.mjs"
|
39
|
+
},
|
34
40
|
"./avatar": {
|
35
41
|
"types": "./avatar/index.d.ts",
|
36
42
|
"esm2022": "./esm2022/avatar/acorex-components-avatar.mjs",
|
@@ -43,23 +49,17 @@
|
|
43
49
|
"esm": "./esm2022/bottom-navigation/acorex-components-bottom-navigation.mjs",
|
44
50
|
"default": "./fesm2022/acorex-components-bottom-navigation.mjs"
|
45
51
|
},
|
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"
|
51
|
-
},
|
52
52
|
"./audio-wave": {
|
53
53
|
"types": "./audio-wave/index.d.ts",
|
54
54
|
"esm2022": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
|
55
55
|
"esm": "./esm2022/audio-wave/acorex-components-audio-wave.mjs",
|
56
56
|
"default": "./fesm2022/acorex-components-audio-wave.mjs"
|
57
57
|
},
|
58
|
-
"./
|
59
|
-
"types": "./
|
60
|
-
"esm2022": "./esm2022/
|
61
|
-
"esm": "./esm2022/
|
62
|
-
"default": "./fesm2022/acorex-components-
|
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",
|
@@ -85,18 +85,18 @@
|
|
85
85
|
"esm": "./esm2022/check-box/acorex-components-check-box.mjs",
|
86
86
|
"default": "./fesm2022/acorex-components-check-box.mjs"
|
87
87
|
},
|
88
|
-
"./calendar": {
|
89
|
-
"types": "./calendar/index.d.ts",
|
90
|
-
"esm2022": "./esm2022/calendar/acorex-components-calendar.mjs",
|
91
|
-
"esm": "./esm2022/calendar/acorex-components-calendar.mjs",
|
92
|
-
"default": "./fesm2022/acorex-components-calendar.mjs"
|
93
|
-
},
|
94
88
|
"./chips": {
|
95
89
|
"types": "./chips/index.d.ts",
|
96
90
|
"esm2022": "./esm2022/chips/acorex-components-chips.mjs",
|
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,18 +163,18 @@
|
|
163
163
|
"esm": "./esm2022/datetime-input/acorex-components-datetime-input.mjs",
|
164
164
|
"default": "./fesm2022/acorex-components-datetime-input.mjs"
|
165
165
|
},
|
166
|
-
"./datetime-picker": {
|
167
|
-
"types": "./datetime-picker/index.d.ts",
|
168
|
-
"esm2022": "./esm2022/datetime-picker/acorex-components-datetime-picker.mjs",
|
169
|
-
"esm": "./esm2022/datetime-picker/acorex-components-datetime-picker.mjs",
|
170
|
-
"default": "./fesm2022/acorex-components-datetime-picker.mjs"
|
171
|
-
},
|
172
166
|
"./decorators": {
|
173
167
|
"types": "./decorators/index.d.ts",
|
174
168
|
"esm2022": "./esm2022/decorators/acorex-components-decorators.mjs",
|
175
169
|
"esm": "./esm2022/decorators/acorex-components-decorators.mjs",
|
176
170
|
"default": "./fesm2022/acorex-components-decorators.mjs"
|
177
171
|
},
|
172
|
+
"./datetime-picker": {
|
173
|
+
"types": "./datetime-picker/index.d.ts",
|
174
|
+
"esm2022": "./esm2022/datetime-picker/acorex-components-datetime-picker.mjs",
|
175
|
+
"esm": "./esm2022/datetime-picker/acorex-components-datetime-picker.mjs",
|
176
|
+
"default": "./fesm2022/acorex-components-datetime-picker.mjs"
|
177
|
+
},
|
178
178
|
"./dialog": {
|
179
179
|
"types": "./dialog/index.d.ts",
|
180
180
|
"esm2022": "./esm2022/dialog/acorex-components-dialog.mjs",
|
@@ -205,18 +205,18 @@
|
|
205
205
|
"esm": "./esm2022/form/acorex-components-form.mjs",
|
206
206
|
"default": "./fesm2022/acorex-components-form.mjs"
|
207
207
|
},
|
208
|
-
"./label": {
|
209
|
-
"types": "./label/index.d.ts",
|
210
|
-
"esm2022": "./esm2022/label/acorex-components-label.mjs",
|
211
|
-
"esm": "./esm2022/label/acorex-components-label.mjs",
|
212
|
-
"default": "./fesm2022/acorex-components-label.mjs"
|
213
|
-
},
|
214
208
|
"./image": {
|
215
209
|
"types": "./image/index.d.ts",
|
216
210
|
"esm2022": "./esm2022/image/acorex-components-image.mjs",
|
217
211
|
"esm": "./esm2022/image/acorex-components-image.mjs",
|
218
212
|
"default": "./fesm2022/acorex-components-image.mjs"
|
219
213
|
},
|
214
|
+
"./label": {
|
215
|
+
"types": "./label/index.d.ts",
|
216
|
+
"esm2022": "./esm2022/label/acorex-components-label.mjs",
|
217
|
+
"esm": "./esm2022/label/acorex-components-label.mjs",
|
218
|
+
"default": "./fesm2022/acorex-components-label.mjs"
|
219
|
+
},
|
220
220
|
"./list": {
|
221
221
|
"types": "./list/index.d.ts",
|
222
222
|
"esm2022": "./esm2022/list/acorex-components-list.mjs",
|
@@ -229,18 +229,18 @@
|
|
229
229
|
"esm": "./esm2022/loading/acorex-components-loading.mjs",
|
230
230
|
"default": "./fesm2022/acorex-components-loading.mjs"
|
231
231
|
},
|
232
|
-
"./menu": {
|
233
|
-
"types": "./menu/index.d.ts",
|
234
|
-
"esm2022": "./esm2022/menu/acorex-components-menu.mjs",
|
235
|
-
"esm": "./esm2022/menu/acorex-components-menu.mjs",
|
236
|
-
"default": "./fesm2022/acorex-components-menu.mjs"
|
237
|
-
},
|
238
232
|
"./loading-dialog": {
|
239
233
|
"types": "./loading-dialog/index.d.ts",
|
240
234
|
"esm2022": "./esm2022/loading-dialog/acorex-components-loading-dialog.mjs",
|
241
235
|
"esm": "./esm2022/loading-dialog/acorex-components-loading-dialog.mjs",
|
242
236
|
"default": "./fesm2022/acorex-components-loading-dialog.mjs"
|
243
237
|
},
|
238
|
+
"./menu": {
|
239
|
+
"types": "./menu/index.d.ts",
|
240
|
+
"esm2022": "./esm2022/menu/acorex-components-menu.mjs",
|
241
|
+
"esm": "./esm2022/menu/acorex-components-menu.mjs",
|
242
|
+
"default": "./fesm2022/acorex-components-menu.mjs"
|
243
|
+
},
|
244
244
|
"./nav": {
|
245
245
|
"types": "./nav/index.d.ts",
|
246
246
|
"esm2022": "./esm2022/nav/acorex-components-nav.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",
|
package/uploader/index.d.ts
CHANGED
@@ -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
|
-
|
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
|
13
|
+
private uploadFile;
|
4
14
|
get name(): string;
|
5
15
|
get ext(): string;
|
6
16
|
get size(): number;
|
7
|
-
|
8
|
-
readonly
|
9
|
-
|
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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
constructor(
|
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():
|
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 "@
|
9
|
-
import * as i8 from "@acorex/components/
|
10
|
-
import * as i9 from "@acorex/
|
11
|
-
import * as i10 from "@acorex/
|
12
|
-
import * as i11 from "@acorex/
|
13
|
-
import * as i12 from "@acorex/core/
|
14
|
-
import * as i13 from "@acorex/core/
|
15
|
-
import * as i14 from "@acorex/
|
16
|
-
import * as i15 from "@acorex/components/
|
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.
|
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(
|
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;
|