@uppy/angular 0.6.1 → 0.7.0-beta.2
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.
- package/esm2022/lib/components/dashboard/dashboard.component.mjs +8 -8
- package/esm2022/lib/components/dashboard/dashboard.module.mjs +4 -4
- package/esm2022/lib/components/dashboard-modal/dashboard-modal.component.mjs +9 -9
- package/esm2022/lib/components/dashboard-modal/dashboard-modal.module.mjs +4 -4
- package/esm2022/lib/components/drag-drop/drag-drop.component.mjs +8 -8
- package/esm2022/lib/components/drag-drop/drag-drop.module.mjs +4 -4
- package/esm2022/lib/components/progress-bar/progress-bar.component.mjs +8 -8
- package/esm2022/lib/components/progress-bar/progress-bar.module.mjs +4 -4
- package/esm2022/lib/components/status-bar/status-bar.component.mjs +8 -8
- package/esm2022/lib/components/status-bar/status-bar.module.mjs +4 -4
- package/esm2022/lib/utils/wrapper.mjs +8 -3
- package/fesm2022/uppy-angular.mjs +58 -53
- package/fesm2022/uppy-angular.mjs.map +1 -1
- package/lib/components/dashboard/dashboard.component.d.ts +6 -5
- package/lib/components/dashboard-modal/dashboard-modal.component.d.ts +6 -5
- package/lib/components/drag-drop/drag-drop.component.d.ts +5 -4
- package/lib/components/progress-bar/progress-bar.component.d.ts +5 -4
- package/lib/components/status-bar/status-bar.component.d.ts +5 -4
- package/lib/utils/wrapper.d.ts +6 -5
- package/package.json +10 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
|
|
1
|
+
import { Component, ChangeDetectionStrategy, Input, } from '@angular/core';
|
|
2
2
|
import Dashboard from '@uppy/dashboard';
|
|
3
3
|
import { Uppy } from '@uppy/core';
|
|
4
4
|
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
@@ -7,7 +7,7 @@ export class DashboardComponent extends UppyAngularWrapper {
|
|
|
7
7
|
constructor(el) {
|
|
8
8
|
super();
|
|
9
9
|
this.el = el;
|
|
10
|
-
this.uppy = new Uppy;
|
|
10
|
+
this.uppy = new Uppy();
|
|
11
11
|
this.props = {};
|
|
12
12
|
}
|
|
13
13
|
ngOnInit() {
|
|
@@ -19,19 +19,19 @@ export class DashboardComponent extends UppyAngularWrapper {
|
|
|
19
19
|
ngOnDestroy() {
|
|
20
20
|
this.uninstall();
|
|
21
21
|
}
|
|
22
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
23
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DashboardComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
23
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: DashboardComponent, selector: "uppy-dashboard", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
24
24
|
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DashboardComponent, decorators: [{
|
|
26
26
|
type: Component,
|
|
27
27
|
args: [{
|
|
28
28
|
selector: 'uppy-dashboard',
|
|
29
29
|
template: '',
|
|
30
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
30
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
31
31
|
}]
|
|
32
|
-
}], ctorParameters:
|
|
32
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { uppy: [{
|
|
33
33
|
type: Input
|
|
34
34
|
}], props: [{
|
|
35
35
|
type: Input
|
|
36
36
|
}] } });
|
|
37
|
-
//# sourceMappingURL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0ZWd5Lk9uUHVzaCxcbn0pXG5leHBvcnQgY2xhc3MgRGFzaGJvYXJkQ29tcG9uZW50PE0gZXh0ZW5kcyBNZXRhLCBCIGV4dGVuZHMgQm9keT5cbiAgZXh0ZW5kcyBVcHB5QW5ndWxhcldyYXBwZXI8TSwgQiwgRGFzaGJvYXJkT3B0aW9uczxNLEI+PlxuICBpbXBsZW1lbnRzIE9uRGVzdHJveSwgT25DaGFuZ2VzXG57XG4gIEBJbnB1dCgpIHVwcHk6IFVwcHk8TSwgQj4gPSBuZXcgVXBweSgpO1xuICBASW5wdXQoKSBwcm9wczogRGFzaGJvYXJkT3B0aW9uczxNLCBCPiA9IHt9O1xuXG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBlbDogRWxlbWVudFJlZikge1xuICAgIHN1cGVyKCk7XG4gIH1cblxuICBuZ09uSW5pdCgpIHtcbiAgICB0aGlzLm9uTW91bnQoXG4gICAgICB7IGlkOiAnYW5ndWxhcjpEYXNoYm9hcmQnLCBpbmxpbmU6IHRydWUsIHRhcmdldDogdGhpcy5lbC5uYXRpdmVFbGVtZW50IH0sXG4gICAgICBEYXNoYm9hcmQsXG4gICAgKTtcbiAgfVxuXG4gIG5nT25DaGFuZ2VzKGNoYW5nZXM6IFNpbXBsZUNoYW5nZXMpOiB2b2lkIHtcbiAgICB0aGlzLmhhbmRsZUNoYW5nZXMoY2hhbmdlcywgRGFzaGJvYXJkKTtcbiAgfVxuXG4gIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgIHRoaXMudW5pbnN0YWxsKCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -3,11 +3,11 @@ import { DashboardComponent } from './dashboard.component';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export const COMPONENTS = [DashboardComponent];
|
|
5
5
|
export class UppyAngularDashboardModule {
|
|
6
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
8
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDashboardModule, declarations: [DashboardComponent], exports: [DashboardComponent] }); }
|
|
8
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDashboardModule }); }
|
|
9
9
|
}
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDashboardModule, decorators: [{
|
|
11
11
|
type: NgModule,
|
|
12
12
|
args: [{
|
|
13
13
|
declarations: COMPONENTS,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
|
|
1
|
+
import { Component, ChangeDetectionStrategy, Input, } from '@angular/core';
|
|
2
2
|
import Dashboard from '@uppy/dashboard';
|
|
3
3
|
import { Uppy } from '@uppy/core';
|
|
4
4
|
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
@@ -7,7 +7,7 @@ export class DashboardModalComponent extends UppyAngularWrapper {
|
|
|
7
7
|
constructor(el) {
|
|
8
8
|
super();
|
|
9
9
|
this.el = el;
|
|
10
|
-
this.uppy = new Uppy;
|
|
10
|
+
this.uppy = new Uppy();
|
|
11
11
|
this.props = {};
|
|
12
12
|
this.open = false;
|
|
13
13
|
}
|
|
@@ -15,7 +15,7 @@ export class DashboardModalComponent extends UppyAngularWrapper {
|
|
|
15
15
|
this.onMount({
|
|
16
16
|
id: 'angular:DashboardModal',
|
|
17
17
|
inline: false,
|
|
18
|
-
target: this.el.nativeElement
|
|
18
|
+
target: this.el.nativeElement,
|
|
19
19
|
}, Dashboard);
|
|
20
20
|
}
|
|
21
21
|
ngOnChanges(changes) {
|
|
@@ -33,21 +33,21 @@ export class DashboardModalComponent extends UppyAngularWrapper {
|
|
|
33
33
|
ngOnDestroy() {
|
|
34
34
|
this.uninstall();
|
|
35
35
|
}
|
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
37
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DashboardModalComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
37
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: DashboardModalComponent, selector: "uppy-dashboard-modal", inputs: { uppy: "uppy", props: "props", open: "open" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
38
38
|
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DashboardModalComponent, decorators: [{
|
|
40
40
|
type: Component,
|
|
41
41
|
args: [{
|
|
42
42
|
selector: 'uppy-dashboard-modal',
|
|
43
43
|
template: '',
|
|
44
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
44
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
45
45
|
}]
|
|
46
|
-
}], ctorParameters:
|
|
46
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { uppy: [{
|
|
47
47
|
type: Input
|
|
48
48
|
}], props: [{
|
|
49
49
|
type: Input
|
|
50
50
|
}], open: [{
|
|
51
51
|
type: Input
|
|
52
52
|
}] } });
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFzaGJvYXJkLW1vZGFsLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3VwcHkvYW5ndWxhci9zcmMvbGliL2NvbXBvbmVudHMvZGFzaGJvYXJkLW1vZGFsL2Rhc2hib2FyZC1tb2RhbC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCx1QkFBdUIsRUFFdkIsS0FBSyxHQUlOLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sU0FBUyxNQUFNLGlCQUFpQixDQUFDO0FBRXhDLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDbEMsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0scUJBQXFCLENBQUM7O0FBUXpELE1BQU0sT0FBTyx1QkFDWCxTQUFRLGtCQUFpRTtJQU96RSxZQUFtQixFQUFjO1FBQy9CLEtBQUssRUFBRSxDQUFDO1FBRFMsT0FBRSxHQUFGLEVBQUUsQ0FBWTtRQUp4QixTQUFJLEdBQWUsSUFBSSxJQUFJLEVBQUUsQ0FBQztRQUM5QixVQUFLLEdBQTJCLEVBQUUsQ0FBQztRQUNuQyxTQUFJLEdBQVksS0FBSyxDQUFDO0lBSS9CLENBQUM7SUFFRCxRQUFRO1FBQ04sSUFBSSxDQUFDLE9BQU8sQ0FDVjtZQUNFLEVBQUUsRUFBRSx3QkFBd0I7WUFDNUIsTUFBTSxFQUFFL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WxsKCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -3,11 +3,11 @@ import { DashboardModalComponent } from './dashboard-modal.component';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export const COMPONENTS = [DashboardModalComponent];
|
|
5
5
|
export class UppyAngularDashboardModalModule {
|
|
6
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
8
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDashboardModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDashboardModalModule, declarations: [DashboardModalComponent], exports: [DashboardModalComponent] }); }
|
|
8
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDashboardModalModule }); }
|
|
9
9
|
}
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDashboardModalModule, decorators: [{
|
|
11
11
|
type: NgModule,
|
|
12
12
|
args: [{
|
|
13
13
|
declarations: COMPONENTS,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
|
|
1
|
+
import { Component, ChangeDetectionStrategy, Input, } from '@angular/core';
|
|
2
2
|
import { Uppy } from '@uppy/core';
|
|
3
3
|
import DragDrop from '@uppy/drag-drop';
|
|
4
4
|
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
@@ -7,7 +7,7 @@ export class DragDropComponent extends UppyAngularWrapper {
|
|
|
7
7
|
constructor(el) {
|
|
8
8
|
super();
|
|
9
9
|
this.el = el;
|
|
10
|
-
this.uppy = new Uppy;
|
|
10
|
+
this.uppy = new Uppy();
|
|
11
11
|
this.props = {};
|
|
12
12
|
}
|
|
13
13
|
ngOnInit() {
|
|
@@ -19,19 +19,19 @@ export class DragDropComponent extends UppyAngularWrapper {
|
|
|
19
19
|
ngOnDestroy() {
|
|
20
20
|
this.uninstall();
|
|
21
21
|
}
|
|
22
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
23
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DragDropComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
23
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: DragDropComponent, selector: "uppy-drag-drop", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
24
24
|
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DragDropComponent, decorators: [{
|
|
26
26
|
type: Component,
|
|
27
27
|
args: [{
|
|
28
28
|
selector: 'uppy-drag-drop',
|
|
29
29
|
template: '',
|
|
30
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
30
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
31
31
|
}]
|
|
32
|
-
}], ctorParameters:
|
|
32
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { uppy: [{
|
|
33
33
|
type: Input
|
|
34
34
|
}], props: [{
|
|
35
35
|
type: Input
|
|
36
36
|
}] } });
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJhZy1kcm9wLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3VwcHkvYW5ndWxhci9zcmMvbGliL2NvbXBvbmVudHMvZHJhZy1kcm9wL2RyYWctZHJvcC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCx1QkFBdUIsRUFDdkIsS0FBSyxHQUtOLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDbEMsT0FBTyxRQUFRLE1BQU0saUJBQWlCLENBQUM7QUFHdkMsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0scUJBQXFCLENBQUM7O0FBT3pELE1BQU0sT0FBTyxpQkFDWCxTQUFRLGtCQUF5QztJQU1qRCxZQUFtQixFQUFjO1FBQy9CLEtBQUssRUFBRSxDQUFDO1FBRFMsT0FBRSxHQUFGLEVBQUUsQ0FBWTtRQUh4QixTQUFJLEdBQWUsSUFBSSxJQUFJLEVBQUUsQ0FBQztRQUM5QixVQUFLLEdBQW9CLEVBQUUsQ0FBQztJQUlyQyxDQUFDO0lBRUQsUUFBUTtRQUNOLElBQUksQ0FBQyxPQUFPLENBQ1YsRUFBRSxFQUFFLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxFQUFFLElBQUksQ0FBQyxFQUFFLENBQUMsYUFBYSxFQUFFLEVBQ3pELFFBQVEsQ0FDVCxDQU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mFnLWRyb3AnLFxuICB0ZW1wbGF0ZTogJycsXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLFxufSlcbmV4cG9ydCBjbGFzcyBEcmFnRHJvcENvbXBvbmVudDxNIGV4dGVuZHMgTWV0YSwgQiBleHRlbmRzIEJvZHk+XG4gIGV4dGVuZHMgVXBweUFuZ3VsYXJXcmFwcGVyPE0sIEIsIERyYWdEcm9wT3B0aW9ucz5cbiAgaW1wbGVtZW50cyBPbkRlc3Ryb3ksIE9uQ2hhbmdlc1xue1xuICBASW5wdXQoKSB1cHB5OiBVcHB5PE0sIEI+ID0gbmV3IFVwcHkoKTtcbiAgQElucHV0KCkgcHJvcHM6IERyYWdEcm9wT3B0aW9ucyA9IHt9O1xuXG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBlbDogRWxlbWVudFJlZikge1xuICAgIHN1cGVyKCk7XG4gIH1cblxuICBuZ09uSW5pdCgpIHtcbiAgICB0aGlzLm9uTW91bnQoXG4gICAgICB7IGlkOiAnYW5ndWxhcjpEcmFnRHJvcCcsIHRhcmdldDogdGhpcy5lbC5uYXRpdmVFbGVtZW50IH0sXG4gICAgICBEcmFnRHJvcCxcbiAgICApO1xuICB9XG5cbiAgbmdPbkNoYW5nZXMoY2hhbmdlczogU2ltcGxlQ2hhbmdlcyk6IHZvaWQge1xuICAgIHRoaXMuaGFuZGxlQ2hhbmdlcyhjaGFuZ2VzLCBEcmFnRHJvcCk7XG4gIH1cblxuICBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICB0aGlzLnVuaW5zdGFsbCgpO1xuICB9XG59XG4iXX0=
|
|
@@ -3,11 +3,11 @@ import { DragDropComponent } from './drag-drop.component';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export const COMPONENTS = [DragDropComponent];
|
|
5
5
|
export class UppyAngularDragDropModule {
|
|
6
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
8
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDragDropModule, declarations: [DragDropComponent], exports: [DragDropComponent] }); }
|
|
8
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDragDropModule }); }
|
|
9
9
|
}
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDragDropModule, decorators: [{
|
|
11
11
|
type: NgModule,
|
|
12
12
|
args: [{
|
|
13
13
|
declarations: COMPONENTS,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
|
|
1
|
+
import { Component, ChangeDetectionStrategy, Input, } from '@angular/core';
|
|
2
2
|
import { Uppy } from '@uppy/core';
|
|
3
3
|
import ProgressBar from '@uppy/progress-bar';
|
|
4
4
|
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
@@ -7,7 +7,7 @@ export class ProgressBarComponent extends UppyAngularWrapper {
|
|
|
7
7
|
constructor(el) {
|
|
8
8
|
super();
|
|
9
9
|
this.el = el;
|
|
10
|
-
this.uppy = new Uppy;
|
|
10
|
+
this.uppy = new Uppy();
|
|
11
11
|
this.props = {};
|
|
12
12
|
}
|
|
13
13
|
ngOnInit() {
|
|
@@ -19,19 +19,19 @@ export class ProgressBarComponent extends UppyAngularWrapper {
|
|
|
19
19
|
ngOnDestroy() {
|
|
20
20
|
this.uninstall();
|
|
21
21
|
}
|
|
22
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
23
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ProgressBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
23
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: ProgressBarComponent, selector: "uppy-progress-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
24
24
|
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ProgressBarComponent, decorators: [{
|
|
26
26
|
type: Component,
|
|
27
27
|
args: [{
|
|
28
28
|
selector: 'uppy-progress-bar',
|
|
29
29
|
template: '',
|
|
30
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
30
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
31
31
|
}]
|
|
32
|
-
}], ctorParameters:
|
|
32
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { uppy: [{
|
|
33
33
|
type: Input
|
|
34
34
|
}], props: [{
|
|
35
35
|
type: Input
|
|
36
36
|
}] } });
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc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TWV0YSwgQiBleHRlbmRzIEJvZHk+XG4gIGV4dGVuZHMgVXBweUFuZ3VsYXJXcmFwcGVyPE0sIEIsIFByb2dyZXNzQmFyT3B0aW9ucz5cbiAgaW1wbGVtZW50cyBPbkRlc3Ryb3ksIE9uQ2hhbmdlc1xue1xuICBASW5wdXQoKSB1cHB5OiBVcHB5PE0sIEI+ID0gbmV3IFVwcHkoKTtcbiAgQElucHV0KCkgcHJvcHM6IFByb2dyZXNzQmFyT3B0aW9ucyA9IHt9O1xuXG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBlbDogRWxlbWVudFJlZikge1xuICAgIHN1cGVyKCk7XG4gIH1cblxuICBuZ09uSW5pdCgpIHtcbiAgICB0aGlzLm9uTW91bnQoXG4gICAgICB7IGlkOiAnYW5ndWxhcjpQcm9ncmVzc0JhcicsIHRhcmdldDogdGhpcy5lbC5uYXRpdmVFbGVtZW50IH0sXG4gICAgICBQcm9ncmVzc0JhcixcbiAgICApO1xuICB9XG5cbiAgbmdPbkNoYW5nZXMoY2hhbmdlczogU2ltcGxlQ2hhbmdlcyk6IHZvaWQge1xuICAgIHRoaXMuaGFuZGxlQ2hhbmdlcyhjaGFuZ2VzLCBQcm9ncmVzc0Jhcik7XG4gIH1cblxuICBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICB0aGlzLnVuaW5zdGFsbCgpO1xuICB9XG59XG4iXX0=
|
|
@@ -3,11 +3,11 @@ import { ProgressBarComponent } from './progress-bar.component';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export const COMPONENTS = [ProgressBarComponent];
|
|
5
5
|
export class UppyAngularProgressBarModule {
|
|
6
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
8
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularProgressBarModule, declarations: [ProgressBarComponent], exports: [ProgressBarComponent] }); }
|
|
8
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularProgressBarModule }); }
|
|
9
9
|
}
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularProgressBarModule, decorators: [{
|
|
11
11
|
type: NgModule,
|
|
12
12
|
args: [{
|
|
13
13
|
declarations: COMPONENTS,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
|
|
1
|
+
import { Component, ChangeDetectionStrategy, Input, } from '@angular/core';
|
|
2
2
|
import { Uppy } from '@uppy/core';
|
|
3
3
|
import StatusBar from '@uppy/status-bar';
|
|
4
4
|
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
@@ -7,7 +7,7 @@ export class StatusBarComponent extends UppyAngularWrapper {
|
|
|
7
7
|
constructor(el) {
|
|
8
8
|
super();
|
|
9
9
|
this.el = el;
|
|
10
|
-
this.uppy = new Uppy;
|
|
10
|
+
this.uppy = new Uppy();
|
|
11
11
|
this.props = {};
|
|
12
12
|
}
|
|
13
13
|
ngOnInit() {
|
|
@@ -19,19 +19,19 @@ export class StatusBarComponent extends UppyAngularWrapper {
|
|
|
19
19
|
ngOnDestroy() {
|
|
20
20
|
this.uninstall();
|
|
21
21
|
}
|
|
22
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
23
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: StatusBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
23
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: StatusBarComponent, selector: "uppy-status-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
24
24
|
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: StatusBarComponent, decorators: [{
|
|
26
26
|
type: Component,
|
|
27
27
|
args: [{
|
|
28
28
|
selector: 'uppy-status-bar',
|
|
29
29
|
template: '',
|
|
30
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
30
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
31
31
|
}]
|
|
32
|
-
}], ctorParameters:
|
|
32
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { uppy: [{
|
|
33
33
|
type: Input
|
|
34
34
|
}], props: [{
|
|
35
35
|
type: Input
|
|
36
36
|
}] } });
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzLWJhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91cHB5L2FuZ3VsYXIvc3JjL2xpYi9jb21wb25lbnRzL3N0YXR1cy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XBweTxNLCBCPiA9IG5ldyBVcHB5KCk7XG4gIEBJbnB1dCgpIHByb3BzOiBTdGF0dXNCYXJPcHRpb25zID0ge307XG5cbiAgY29uc3RydWN0b3IocHVibGljIGVsOiBFbGVtZW50UmVmKSB7XG4gICAgc3VwZXIoKTtcbiAgfVxuXG4gIG5nT25Jbml0KCkge1xuICAgIHRoaXMub25Nb3VudChcbiAgICAgIHsgaWQ6ICdhbmd1bGFyOlN0YXR1c0JhcicsIHRhcmdldDogdGhpcy5lbC5uYXRpdmVFbGVtZW50IH0sXG4gICAgICBTdGF0dXNCYXIsXG4gICAgKTtcbiAgfVxuXG4gIG5nT25DaGFuZ2VzKGNoYW5nZXM6IFNpbXBsZUNoYW5nZXMpOiB2b2lkIHtcbiAgICB0aGlzLmhhbmRsZUNoYW5nZXMoY2hhbmdlcywgU3RhdHVzQmFyKTtcbiAgfVxuXG4gIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgIHRoaXMudW5pbnN0YWxsKCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -3,11 +3,11 @@ import { StatusBarComponent } from './status-bar.component';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export const COMPONENTS = [StatusBarComponent];
|
|
5
5
|
export class UppyAngularStatusBarModule {
|
|
6
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
8
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularStatusBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularStatusBarModule, declarations: [StatusBarComponent], exports: [StatusBarComponent] }); }
|
|
8
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularStatusBarModule }); }
|
|
9
9
|
}
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularStatusBarModule, decorators: [{
|
|
11
11
|
type: NgModule,
|
|
12
12
|
args: [{
|
|
13
13
|
declarations: COMPONENTS,
|
|
@@ -9,13 +9,18 @@ export class UppyAngularWrapper {
|
|
|
9
9
|
}
|
|
10
10
|
handleChanges(changes, plugin) {
|
|
11
11
|
// Without the last part of this conditional, it tries to uninstall before the plugin is mounted
|
|
12
|
-
if (changes['uppy'] &&
|
|
12
|
+
if (changes['uppy'] &&
|
|
13
|
+
this.uppy !== changes['uppy'].previousValue &&
|
|
14
|
+
changes['uppy'].previousValue !== undefined) {
|
|
13
15
|
this.uninstall(changes['uppy'].previousValue);
|
|
16
|
+
// @ts-expect-error The options correspond to the plugin, I swear
|
|
14
17
|
this.uppy.use(plugin, this.options);
|
|
15
18
|
}
|
|
16
19
|
this.options = { ...this.options, ...this.props };
|
|
17
20
|
this.plugin = this.uppy.getPlugin(this.options.id);
|
|
18
|
-
if (changes['props'] &&
|
|
21
|
+
if (changes['props'] &&
|
|
22
|
+
this.props !== changes['props'].previousValue &&
|
|
23
|
+
changes['props'].previousValue !== undefined) {
|
|
19
24
|
this.plugin.setOptions({ ...this.options });
|
|
20
25
|
}
|
|
21
26
|
}
|
|
@@ -23,4 +28,4 @@ export class UppyAngularWrapper {
|
|
|
23
28
|
uppy.removePlugin(this.plugin);
|
|
24
29
|
}
|
|
25
30
|
}
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWx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sdWdpbi5zZXRPcHRpb25zKHsgLi4udGhpcy5vcHRpb25zIH0pO1xuICAgIH1cbiAgfVxuXG4gIHVuaW5zdGFsbCh1cHB5ID0gdGhpcy51cHB5KTogdm9pZCB7XG4gICAgdXBweS5yZW1vdmVQbHVnaW4odGhpcy5wbHVnaW4hKTtcbiAgfVxufVxuIl19
|
|
@@ -17,13 +17,18 @@ class UppyAngularWrapper {
|
|
|
17
17
|
}
|
|
18
18
|
handleChanges(changes, plugin) {
|
|
19
19
|
// Without the last part of this conditional, it tries to uninstall before the plugin is mounted
|
|
20
|
-
if (changes['uppy'] &&
|
|
20
|
+
if (changes['uppy'] &&
|
|
21
|
+
this.uppy !== changes['uppy'].previousValue &&
|
|
22
|
+
changes['uppy'].previousValue !== undefined) {
|
|
21
23
|
this.uninstall(changes['uppy'].previousValue);
|
|
24
|
+
// @ts-expect-error The options correspond to the plugin, I swear
|
|
22
25
|
this.uppy.use(plugin, this.options);
|
|
23
26
|
}
|
|
24
27
|
this.options = { ...this.options, ...this.props };
|
|
25
28
|
this.plugin = this.uppy.getPlugin(this.options.id);
|
|
26
|
-
if (changes['props'] &&
|
|
29
|
+
if (changes['props'] &&
|
|
30
|
+
this.props !== changes['props'].previousValue &&
|
|
31
|
+
changes['props'].previousValue !== undefined) {
|
|
27
32
|
this.plugin.setOptions({ ...this.options });
|
|
28
33
|
}
|
|
29
34
|
}
|
|
@@ -36,7 +41,7 @@ class DashboardComponent extends UppyAngularWrapper {
|
|
|
36
41
|
constructor(el) {
|
|
37
42
|
super();
|
|
38
43
|
this.el = el;
|
|
39
|
-
this.uppy = new Uppy;
|
|
44
|
+
this.uppy = new Uppy();
|
|
40
45
|
this.props = {};
|
|
41
46
|
}
|
|
42
47
|
ngOnInit() {
|
|
@@ -48,17 +53,17 @@ class DashboardComponent extends UppyAngularWrapper {
|
|
|
48
53
|
ngOnDestroy() {
|
|
49
54
|
this.uninstall();
|
|
50
55
|
}
|
|
51
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
52
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
56
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DashboardComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
57
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: DashboardComponent, selector: "uppy-dashboard", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
53
58
|
}
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DashboardComponent, decorators: [{
|
|
55
60
|
type: Component,
|
|
56
61
|
args: [{
|
|
57
62
|
selector: 'uppy-dashboard',
|
|
58
63
|
template: '',
|
|
59
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
64
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
60
65
|
}]
|
|
61
|
-
}], ctorParameters:
|
|
66
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { uppy: [{
|
|
62
67
|
type: Input
|
|
63
68
|
}], props: [{
|
|
64
69
|
type: Input
|
|
@@ -66,11 +71,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImpor
|
|
|
66
71
|
|
|
67
72
|
const COMPONENTS$4 = [DashboardComponent];
|
|
68
73
|
class UppyAngularDashboardModule {
|
|
69
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
70
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
71
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
74
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
75
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDashboardModule, declarations: [DashboardComponent], exports: [DashboardComponent] }); }
|
|
76
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDashboardModule }); }
|
|
72
77
|
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDashboardModule, decorators: [{
|
|
74
79
|
type: NgModule,
|
|
75
80
|
args: [{
|
|
76
81
|
declarations: COMPONENTS$4,
|
|
@@ -82,7 +87,7 @@ class DashboardModalComponent extends UppyAngularWrapper {
|
|
|
82
87
|
constructor(el) {
|
|
83
88
|
super();
|
|
84
89
|
this.el = el;
|
|
85
|
-
this.uppy = new Uppy;
|
|
90
|
+
this.uppy = new Uppy();
|
|
86
91
|
this.props = {};
|
|
87
92
|
this.open = false;
|
|
88
93
|
}
|
|
@@ -90,7 +95,7 @@ class DashboardModalComponent extends UppyAngularWrapper {
|
|
|
90
95
|
this.onMount({
|
|
91
96
|
id: 'angular:DashboardModal',
|
|
92
97
|
inline: false,
|
|
93
|
-
target: this.el.nativeElement
|
|
98
|
+
target: this.el.nativeElement,
|
|
94
99
|
}, Dashboard);
|
|
95
100
|
}
|
|
96
101
|
ngOnChanges(changes) {
|
|
@@ -108,17 +113,17 @@ class DashboardModalComponent extends UppyAngularWrapper {
|
|
|
108
113
|
ngOnDestroy() {
|
|
109
114
|
this.uninstall();
|
|
110
115
|
}
|
|
111
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
112
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
116
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DashboardModalComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
117
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: DashboardModalComponent, selector: "uppy-dashboard-modal", inputs: { uppy: "uppy", props: "props", open: "open" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
113
118
|
}
|
|
114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DashboardModalComponent, decorators: [{
|
|
115
120
|
type: Component,
|
|
116
121
|
args: [{
|
|
117
122
|
selector: 'uppy-dashboard-modal',
|
|
118
123
|
template: '',
|
|
119
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
124
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
120
125
|
}]
|
|
121
|
-
}], ctorParameters:
|
|
126
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { uppy: [{
|
|
122
127
|
type: Input
|
|
123
128
|
}], props: [{
|
|
124
129
|
type: Input
|
|
@@ -128,11 +133,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImpor
|
|
|
128
133
|
|
|
129
134
|
const COMPONENTS$3 = [DashboardModalComponent];
|
|
130
135
|
class UppyAngularDashboardModalModule {
|
|
131
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
132
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
133
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
136
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDashboardModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
137
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDashboardModalModule, declarations: [DashboardModalComponent], exports: [DashboardModalComponent] }); }
|
|
138
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDashboardModalModule }); }
|
|
134
139
|
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDashboardModalModule, decorators: [{
|
|
136
141
|
type: NgModule,
|
|
137
142
|
args: [{
|
|
138
143
|
declarations: COMPONENTS$3,
|
|
@@ -144,7 +149,7 @@ class ProgressBarComponent extends UppyAngularWrapper {
|
|
|
144
149
|
constructor(el) {
|
|
145
150
|
super();
|
|
146
151
|
this.el = el;
|
|
147
|
-
this.uppy = new Uppy;
|
|
152
|
+
this.uppy = new Uppy();
|
|
148
153
|
this.props = {};
|
|
149
154
|
}
|
|
150
155
|
ngOnInit() {
|
|
@@ -156,17 +161,17 @@ class ProgressBarComponent extends UppyAngularWrapper {
|
|
|
156
161
|
ngOnDestroy() {
|
|
157
162
|
this.uninstall();
|
|
158
163
|
}
|
|
159
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
160
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
164
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ProgressBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
165
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: ProgressBarComponent, selector: "uppy-progress-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
161
166
|
}
|
|
162
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ProgressBarComponent, decorators: [{
|
|
163
168
|
type: Component,
|
|
164
169
|
args: [{
|
|
165
170
|
selector: 'uppy-progress-bar',
|
|
166
171
|
template: '',
|
|
167
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
172
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
168
173
|
}]
|
|
169
|
-
}], ctorParameters:
|
|
174
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { uppy: [{
|
|
170
175
|
type: Input
|
|
171
176
|
}], props: [{
|
|
172
177
|
type: Input
|
|
@@ -174,11 +179,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImpor
|
|
|
174
179
|
|
|
175
180
|
const COMPONENTS$2 = [ProgressBarComponent];
|
|
176
181
|
class UppyAngularProgressBarModule {
|
|
177
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
178
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
179
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
182
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
183
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularProgressBarModule, declarations: [ProgressBarComponent], exports: [ProgressBarComponent] }); }
|
|
184
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularProgressBarModule }); }
|
|
180
185
|
}
|
|
181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularProgressBarModule, decorators: [{
|
|
182
187
|
type: NgModule,
|
|
183
188
|
args: [{
|
|
184
189
|
declarations: COMPONENTS$2,
|
|
@@ -190,7 +195,7 @@ class StatusBarComponent extends UppyAngularWrapper {
|
|
|
190
195
|
constructor(el) {
|
|
191
196
|
super();
|
|
192
197
|
this.el = el;
|
|
193
|
-
this.uppy = new Uppy;
|
|
198
|
+
this.uppy = new Uppy();
|
|
194
199
|
this.props = {};
|
|
195
200
|
}
|
|
196
201
|
ngOnInit() {
|
|
@@ -202,17 +207,17 @@ class StatusBarComponent extends UppyAngularWrapper {
|
|
|
202
207
|
ngOnDestroy() {
|
|
203
208
|
this.uninstall();
|
|
204
209
|
}
|
|
205
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
206
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
210
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: StatusBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
211
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: StatusBarComponent, selector: "uppy-status-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
207
212
|
}
|
|
208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: StatusBarComponent, decorators: [{
|
|
209
214
|
type: Component,
|
|
210
215
|
args: [{
|
|
211
216
|
selector: 'uppy-status-bar',
|
|
212
217
|
template: '',
|
|
213
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
218
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
214
219
|
}]
|
|
215
|
-
}], ctorParameters:
|
|
220
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { uppy: [{
|
|
216
221
|
type: Input
|
|
217
222
|
}], props: [{
|
|
218
223
|
type: Input
|
|
@@ -220,11 +225,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImpor
|
|
|
220
225
|
|
|
221
226
|
const COMPONENTS$1 = [StatusBarComponent];
|
|
222
227
|
class UppyAngularStatusBarModule {
|
|
223
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
224
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
225
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
228
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularStatusBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
229
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularStatusBarModule, declarations: [StatusBarComponent], exports: [StatusBarComponent] }); }
|
|
230
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularStatusBarModule }); }
|
|
226
231
|
}
|
|
227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularStatusBarModule, decorators: [{
|
|
228
233
|
type: NgModule,
|
|
229
234
|
args: [{
|
|
230
235
|
declarations: COMPONENTS$1,
|
|
@@ -236,7 +241,7 @@ class DragDropComponent extends UppyAngularWrapper {
|
|
|
236
241
|
constructor(el) {
|
|
237
242
|
super();
|
|
238
243
|
this.el = el;
|
|
239
|
-
this.uppy = new Uppy;
|
|
244
|
+
this.uppy = new Uppy();
|
|
240
245
|
this.props = {};
|
|
241
246
|
}
|
|
242
247
|
ngOnInit() {
|
|
@@ -248,17 +253,17 @@ class DragDropComponent extends UppyAngularWrapper {
|
|
|
248
253
|
ngOnDestroy() {
|
|
249
254
|
this.uninstall();
|
|
250
255
|
}
|
|
251
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
252
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
256
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DragDropComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
257
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: DragDropComponent, selector: "uppy-drag-drop", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
253
258
|
}
|
|
254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DragDropComponent, decorators: [{
|
|
255
260
|
type: Component,
|
|
256
261
|
args: [{
|
|
257
262
|
selector: 'uppy-drag-drop',
|
|
258
263
|
template: '',
|
|
259
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
264
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
260
265
|
}]
|
|
261
|
-
}], ctorParameters:
|
|
266
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { uppy: [{
|
|
262
267
|
type: Input
|
|
263
268
|
}], props: [{
|
|
264
269
|
type: Input
|
|
@@ -266,11 +271,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImpor
|
|
|
266
271
|
|
|
267
272
|
const COMPONENTS = [DragDropComponent];
|
|
268
273
|
class UppyAngularDragDropModule {
|
|
269
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
270
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
271
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
274
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
275
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDragDropModule, declarations: [DragDropComponent], exports: [DragDropComponent] }); }
|
|
276
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDragDropModule }); }
|
|
272
277
|
}
|
|
273
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UppyAngularDragDropModule, decorators: [{
|
|
274
279
|
type: NgModule,
|
|
275
280
|
args: [{
|
|
276
281
|
declarations: COMPONENTS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uppy-angular.mjs","sources":["../../../../projects/uppy/angular/src/lib/utils/wrapper.ts","../../../../projects/uppy/angular/src/lib/components/dashboard/dashboard.component.ts","../../../../projects/uppy/angular/src/lib/components/dashboard/dashboard.module.ts","../../../../projects/uppy/angular/src/lib/components/dashboard-modal/dashboard-modal.component.ts","../../../../projects/uppy/angular/src/lib/components/dashboard-modal/dashboard-modal.module.ts","../../../../projects/uppy/angular/src/lib/components/progress-bar/progress-bar.component.ts","../../../../projects/uppy/angular/src/lib/components/progress-bar/progress-bar.module.ts","../../../../projects/uppy/angular/src/lib/components/status-bar/status-bar.component.ts","../../../../projects/uppy/angular/src/lib/components/status-bar/status-bar.module.ts","../../../../projects/uppy/angular/src/lib/components/drag-drop/drag-drop.component.ts","../../../../projects/uppy/angular/src/lib/components/drag-drop/drag-drop.module.ts","../../../../projects/uppy/angular/src/public-api.ts","../../../../projects/uppy/angular/src/uppy-angular.ts"],"sourcesContent":["import type { Uppy, UIPlugin } from '@uppy/core';\nimport type { ElementRef, SimpleChanges } from '@angular/core';\nimport type { DragDropOptions } from '@uppy/drag-drop';\nimport type { StatusBarOptions } from '@uppy/status-bar';\nimport type { ProgressBarOptions } from '@uppy/progress-bar';\n\nexport abstract class UppyAngularWrapper<PluginType extends UIPlugin = UIPlugin> {\n abstract props: DragDropOptions|StatusBarOptions|ProgressBarOptions;\n abstract el: ElementRef\n abstract uppy: Uppy;\n private options: any;\n plugin: PluginType | undefined;\n\n onMount(defaultOptions: Record<string, unknown>, plugin: new (uppy: Uppy, opts?: Record<string, unknown>) => UIPlugin) {\n this.options = {\n ...defaultOptions,\n ...this.props,\n };\n\n this.uppy.use(plugin, this.options);\n this.plugin = this.uppy.getPlugin(this.options.id) as PluginType;\n }\n\n handleChanges(changes: SimpleChanges, plugin: any): void {\n // Without the last part of this conditional, it tries to uninstall before the plugin is mounted\n if (changes['uppy'] && this.uppy !== changes['uppy'].previousValue && changes['uppy'].previousValue !== undefined) {\n this.uninstall(changes['uppy'].previousValue);\n this.uppy.use(plugin, this.options);\n }\n this.options = { ...this.options, ...this.props }\n this.plugin = this.uppy.getPlugin(this.options.id) as PluginType;\n if(changes['props'] && this.props !== changes['props'].previousValue && changes['props'].previousValue !== undefined) {\n this.plugin.setOptions({ ...this.options })\n }\n }\n\n uninstall(uppy = this.uppy): void {\n uppy.removePlugin(this.plugin!);\n }\n\n}\n","import { Component, ChangeDetectionStrategy, ElementRef, Input, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';\nimport Dashboard from '@uppy/dashboard';\nimport type { DashboardOptions } from '@uppy/dashboard';\nimport { Uppy } from '@uppy/core';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\n\n@Component({\n selector: 'uppy-dashboard',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DashboardComponent extends UppyAngularWrapper implements OnDestroy, OnChanges {\n @Input() uppy: Uppy = new Uppy;\n @Input() props: DashboardOptions = {};\n\n constructor(public el: ElementRef) {\n super();\n }\n\n ngOnInit() {\n this.onMount({ id: 'angular:Dashboard', inline: true, target: this.el.nativeElement }, Dashboard)\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, Dashboard);\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { DashboardComponent } from './dashboard.component';\n\nexport const COMPONENTS = [DashboardComponent];\n@NgModule({\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class UppyAngularDashboardModule { }\n","import { Component, ChangeDetectionStrategy, ElementRef, Input, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';\nimport Dashboard from '@uppy/dashboard';\nimport type { DashboardOptions } from '@uppy/dashboard';\nimport { Uppy } from '@uppy/core';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\n\n@Component({\n selector: 'uppy-dashboard-modal',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DashboardModalComponent extends UppyAngularWrapper<Dashboard> implements OnDestroy, OnChanges {\n @Input() uppy: Uppy = new Uppy;\n @Input() props: DashboardOptions = {};\n @Input() open: boolean = false;\n\n constructor(public el: ElementRef) {\n super();\n }\n\n ngOnInit() {\n this.onMount({\n id: 'angular:DashboardModal',\n inline: false,\n target: this.el.nativeElement\n }, Dashboard)\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, Dashboard);\n // Handle dashboard-modal specific changes\n if (changes['open'] && this.open !== changes['open'].previousValue) {\n if(this.open && !changes['open'].previousValue) {\n this.plugin!.openModal()\n }\n if (!this.open && changes['open'].previousValue) {\n this.plugin!.closeModal()\n }\n }\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { DashboardModalComponent } from './dashboard-modal.component';\n\nexport const COMPONENTS = [DashboardModalComponent];\n@NgModule({\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class UppyAngularDashboardModalModule { }\n","import { Component, ChangeDetectionStrategy, ElementRef, Input, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';\nimport { Uppy } from '@uppy/core';\nimport ProgressBar from '@uppy/progress-bar';\nimport type { ProgressBarOptions } from '@uppy/progress-bar';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\n\n@Component({\n selector: 'uppy-progress-bar',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ProgressBarComponent extends UppyAngularWrapper implements OnDestroy, OnChanges {\n @Input() uppy: Uppy = new Uppy;\n @Input() props: ProgressBarOptions = {};\n\n constructor(public el: ElementRef) {\n super();\n }\n\n ngOnInit() {\n this.onMount({ id: 'angular:ProgressBar', target: this.el.nativeElement }, ProgressBar)\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, ProgressBar);\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { ProgressBarComponent } from './progress-bar.component';\n\nexport const COMPONENTS = [ProgressBarComponent];\n@NgModule({\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class UppyAngularProgressBarModule { }\n","import { Component, ChangeDetectionStrategy, Input, ElementRef, SimpleChange, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';\nimport { Uppy } from '@uppy/core';\nimport StatusBar from '@uppy/status-bar';\nimport type { StatusBarOptions } from '@uppy/status-bar';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\n\n@Component({\n selector: 'uppy-status-bar',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class StatusBarComponent extends UppyAngularWrapper implements OnDestroy, OnChanges {\n @Input() uppy: Uppy = new Uppy;\n @Input() props: StatusBarOptions = {};\n\n constructor(public el: ElementRef) {\n super();\n }\n\n ngOnInit() {\n this.onMount({ id: 'angular:StatusBar', target: this.el.nativeElement }, StatusBar)\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, StatusBar);\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { StatusBarComponent } from './status-bar.component';\n\nexport const COMPONENTS = [StatusBarComponent];\n@NgModule({\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class UppyAngularStatusBarModule { }\n","import { Component, ChangeDetectionStrategy, Input, OnDestroy, OnChanges, SimpleChanges, ElementRef } from '@angular/core';\nimport { Uppy } from '@uppy/core';\nimport DragDrop from '@uppy/drag-drop';\nimport type { DragDropOptions } from '@uppy/drag-drop';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\n\n@Component({\n selector: 'uppy-drag-drop',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DragDropComponent extends UppyAngularWrapper implements OnDestroy, OnChanges {\n @Input() uppy: Uppy = new Uppy;\n @Input() props: DragDropOptions = {};\n\n constructor(public el: ElementRef) {\n super();\n }\n\n ngOnInit() {\n this.onMount({ id: 'angular:DragDrop', target: this.el.nativeElement }, DragDrop)\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, DragDrop);\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { DragDropComponent } from './drag-drop.component';\n\nexport const COMPONENTS = [DragDropComponent];\n@NgModule({\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class UppyAngularDragDropModule { }\n","/*\n * Public API Surface of @uppy/angular\n */\n\nexport { UppyAngularDashboardModule } from './lib/components/dashboard/dashboard.module';\nexport { UppyAngularDashboardModalModule } from './lib/components/dashboard-modal/dashboard-modal.module';\nexport { UppyAngularProgressBarModule } from './lib/components/progress-bar/progress-bar.module';\nexport { UppyAngularStatusBarModule } from './lib/components/status-bar/status-bar.module';\nexport { UppyAngularDragDropModule } from './lib/components/drag-drop/drag-drop.module';\nexport { StatusBarComponent } from './lib/components/status-bar/status-bar.component';\nexport { ProgressBarComponent } from './lib/components/progress-bar/progress-bar.component';\nexport { DragDropComponent } from './lib/components/drag-drop/drag-drop.component';\nexport { DashboardComponent } from './lib/components/dashboard/dashboard.component';\nexport { DashboardModalComponent } from './lib/components/dashboard-modal/dashboard-modal.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["COMPONENTS"],"mappings":";;;;;;;;MAMsB,kBAAkB,CAAA;IAOpC,OAAO,CAAC,cAAuC,EAAE,MAAoE,EAAA;QACnH,IAAI,CAAC,OAAO,GAAG;AACb,YAAA,GAAG,cAAc;YACjB,GAAG,IAAI,C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,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,4IAHlB,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAGD,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,QAAQ,EAAE,EAAE;oBACZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA,CAAA;iGAEU,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;;;ACVD,MAAM,UAAU,GAAG,CAAC,iBAAiB,CAAC,CAAC;MAKjC,yBAAyB,CAAA;8GAAzB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAzB,yBAAyB,EAAA,YAAA,EAAA,CALX,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAAjB,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;+GAK/B,yBAAyB,EAAA,CAAA,CAAA,EAAA;;2FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAJrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,UAAU;AACxB,oBAAA,OAAO,EAAE,UAAU;AACpB,iBAAA,CAAA;;;ACPD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"uppy-angular.mjs","sources":["../../../../projects/uppy/angular/src/lib/utils/wrapper.ts","../../../../projects/uppy/angular/src/lib/components/dashboard/dashboard.component.ts","../../../../projects/uppy/angular/src/lib/components/dashboard/dashboard.module.ts","../../../../projects/uppy/angular/src/lib/components/dashboard-modal/dashboard-modal.component.ts","../../../../projects/uppy/angular/src/lib/components/dashboard-modal/dashboard-modal.module.ts","../../../../projects/uppy/angular/src/lib/components/progress-bar/progress-bar.component.ts","../../../../projects/uppy/angular/src/lib/components/progress-bar/progress-bar.module.ts","../../../../projects/uppy/angular/src/lib/components/status-bar/status-bar.component.ts","../../../../projects/uppy/angular/src/lib/components/status-bar/status-bar.module.ts","../../../../projects/uppy/angular/src/lib/components/drag-drop/drag-drop.component.ts","../../../../projects/uppy/angular/src/lib/components/drag-drop/drag-drop.module.ts","../../../../projects/uppy/angular/src/public-api.ts","../../../../projects/uppy/angular/src/uppy-angular.ts"],"sourcesContent":["import type { Uppy, UIPlugin, UIPluginOptions } from '@uppy/core';\nimport type { ElementRef, SimpleChanges } from '@angular/core';\nimport type { DragDropOptions } from '@uppy/drag-drop';\nimport type { StatusBarOptions } from '@uppy/status-bar';\nimport type { ProgressBarOptions } from '@uppy/progress-bar';\nimport { Body, Meta } from '@uppy/utils/lib/UppyFile';\n\nexport abstract class UppyAngularWrapper<\n M extends Meta,\n B extends Body,\n Opts extends UIPluginOptions,\n PluginType extends UIPlugin<Opts, M, B> = UIPlugin<Opts, M, B>,\n> {\n abstract props: DragDropOptions | StatusBarOptions | ProgressBarOptions;\n abstract el: ElementRef;\n abstract uppy: Uppy<M, B>;\n private options: any;\n plugin: PluginType | undefined;\n\n onMount(\n defaultOptions: Partial<Opts>,\n plugin: new (uppy: any, opts?: Opts) => UIPlugin<Opts, M, B>,\n ) {\n this.options = {\n ...defaultOptions,\n ...this.props,\n };\n\n this.uppy.use(plugin, this.options);\n this.plugin = this.uppy.getPlugin(this.options.id) as PluginType;\n }\n\n handleChanges(changes: SimpleChanges, plugin: any): void {\n // Without the last part of this conditional, it tries to uninstall before the plugin is mounted\n if (\n changes['uppy'] &&\n this.uppy !== changes['uppy'].previousValue &&\n changes['uppy'].previousValue !== undefined\n ) {\n this.uninstall(changes['uppy'].previousValue);\n // @ts-expect-error The options correspond to the plugin, I swear\n this.uppy.use(plugin, this.options);\n }\n this.options = { ...this.options, ...this.props };\n this.plugin = this.uppy.getPlugin(this.options.id) as PluginType;\n if (\n changes['props'] &&\n this.props !== changes['props'].previousValue &&\n changes['props'].previousValue !== undefined\n ) {\n this.plugin.setOptions({ ...this.options });\n }\n }\n\n uninstall(uppy = this.uppy): void {\n uppy.removePlugin(this.plugin!);\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n ElementRef,\n Input,\n OnDestroy,\n OnChanges,\n SimpleChanges,\n} from '@angular/core';\nimport Dashboard from '@uppy/dashboard';\nimport type { DashboardOptions } from '@uppy/dashboard';\nimport { Uppy } from '@uppy/core';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\nimport { Body, Meta } from '@uppy/utils/lib/UppyFile';\n\n@Component({\n selector: 'uppy-dashboard',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DashboardComponent<M extends Meta, B extends Body>\n extends UppyAngularWrapper<M, B, DashboardOptions<M,B>>\n implements OnDestroy, OnChanges\n{\n @Input() uppy: Uppy<M, B> = new Uppy();\n @Input() props: DashboardOptions<M, B> = {};\n\n constructor(public el: ElementRef) {\n super();\n }\n\n ngOnInit() {\n this.onMount(\n { id: 'angular:Dashboard', inline: true, target: this.el.nativeElement },\n Dashboard,\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, Dashboard);\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { DashboardComponent } from './dashboard.component';\n\nexport const COMPONENTS = [DashboardComponent];\n@NgModule({\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class UppyAngularDashboardModule { }\n","import {\n Component,\n ChangeDetectionStrategy,\n ElementRef,\n Input,\n OnDestroy,\n OnChanges,\n SimpleChanges,\n} from '@angular/core';\nimport Dashboard from '@uppy/dashboard';\nimport type { DashboardOptions } from '@uppy/dashboard';\nimport { Uppy } from '@uppy/core';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\nimport { Body, Meta } from '@uppy/utils/lib/UppyFile';\n\n@Component({\n selector: 'uppy-dashboard-modal',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DashboardModalComponent<M extends Meta, B extends Body>\n extends UppyAngularWrapper<M, B, DashboardOptions<M, B>, Dashboard<M, B>>\n implements OnDestroy, OnChanges\n{\n @Input() uppy: Uppy<M, B> = new Uppy();\n @Input() props: DashboardOptions<M, B> = {};\n @Input() open: boolean = false;\n\n constructor(public el: ElementRef) {\n super();\n }\n\n ngOnInit() {\n this.onMount(\n {\n id: 'angular:DashboardModal',\n inline: false,\n target: this.el.nativeElement,\n },\n Dashboard,\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, Dashboard);\n // Handle dashboard-modal specific changes\n if (changes['open'] && this.open !== changes['open'].previousValue) {\n if (this.open && !changes['open'].previousValue) {\n this.plugin!.openModal();\n }\n if (!this.open && changes['open'].previousValue) {\n this.plugin!.closeModal();\n }\n }\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { DashboardModalComponent } from './dashboard-modal.component';\n\nexport const COMPONENTS = [DashboardModalComponent];\n@NgModule({\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class UppyAngularDashboardModalModule { }\n","import {\n Component,\n ChangeDetectionStrategy,\n ElementRef,\n Input,\n OnDestroy,\n OnChanges,\n SimpleChanges,\n} from '@angular/core';\nimport { Uppy } from '@uppy/core';\nimport ProgressBar from '@uppy/progress-bar';\nimport type { ProgressBarOptions } from '@uppy/progress-bar';\nimport { Body, Meta } from '@uppy/utils/lib/UppyFile';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\n\n@Component({\n selector: 'uppy-progress-bar',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ProgressBarComponent<M extends Meta, B extends Body>\n extends UppyAngularWrapper<M, B, ProgressBarOptions>\n implements OnDestroy, OnChanges\n{\n @Input() uppy: Uppy<M, B> = new Uppy();\n @Input() props: ProgressBarOptions = {};\n\n constructor(public el: ElementRef) {\n super();\n }\n\n ngOnInit() {\n this.onMount(\n { id: 'angular:ProgressBar', target: this.el.nativeElement },\n ProgressBar,\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, ProgressBar);\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { ProgressBarComponent } from './progress-bar.component';\n\nexport const COMPONENTS = [ProgressBarComponent];\n@NgModule({\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class UppyAngularProgressBarModule { }\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n ElementRef,\n OnDestroy,\n OnChanges,\n SimpleChanges,\n} from '@angular/core';\nimport { Uppy } from '@uppy/core';\nimport StatusBar from '@uppy/status-bar';\nimport type { StatusBarOptions } from '@uppy/status-bar';\nimport { Body, Meta } from '@uppy/utils/lib/UppyFile';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\n\n@Component({\n selector: 'uppy-status-bar',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class StatusBarComponent<M extends Meta, B extends Body>\n extends UppyAngularWrapper<M, B, StatusBarOptions>\n implements OnDestroy, OnChanges\n{\n @Input() uppy: Uppy<M, B> = new Uppy();\n @Input() props: StatusBarOptions = {};\n\n constructor(public el: ElementRef) {\n super();\n }\n\n ngOnInit() {\n this.onMount(\n { id: 'angular:StatusBar', target: this.el.nativeElement },\n StatusBar,\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, StatusBar);\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { StatusBarComponent } from './status-bar.component';\n\nexport const COMPONENTS = [StatusBarComponent];\n@NgModule({\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class UppyAngularStatusBarModule { }\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n OnDestroy,\n OnChanges,\n SimpleChanges,\n ElementRef,\n} from '@angular/core';\nimport { Uppy } from '@uppy/core';\nimport DragDrop from '@uppy/drag-drop';\nimport type { DragDropOptions } from '@uppy/drag-drop';\nimport { Body, Meta } from '@uppy/utils/lib/UppyFile';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\n\n@Component({\n selector: 'uppy-drag-drop',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DragDropComponent<M extends Meta, B extends Body>\n extends UppyAngularWrapper<M, B, DragDropOptions>\n implements OnDestroy, OnChanges\n{\n @Input() uppy: Uppy<M, B> = new Uppy();\n @Input() props: DragDropOptions = {};\n\n constructor(public el: ElementRef) {\n super();\n }\n\n ngOnInit() {\n this.onMount(\n { id: 'angular:DragDrop', target: this.el.nativeElement },\n DragDrop,\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, DragDrop);\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { DragDropComponent } from './drag-drop.component';\n\nexport const COMPONENTS = [DragDropComponent];\n@NgModule({\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class UppyAngularDragDropModule { }\n","/*\n * Public API Surface of @uppy/angular\n */\n\nexport { UppyAngularDashboardModule } from './lib/components/dashboard/dashboard.module';\nexport { UppyAngularDashboardModalModule } from './lib/components/dashboard-modal/dashboard-modal.module';\nexport { UppyAngularProgressBarModule } from './lib/components/progress-bar/progress-bar.module';\nexport { UppyAngularStatusBarModule } from './lib/components/status-bar/status-bar.module';\nexport { UppyAngularDragDropModule } from './lib/components/drag-drop/drag-drop.module';\nexport { StatusBarComponent } from './lib/components/status-bar/status-bar.component';\nexport { ProgressBarComponent } from './lib/components/progress-bar/progress-bar.component';\nexport { DragDropComponent } from './lib/components/drag-drop/drag-drop.component';\nexport { DashboardComponent } from './lib/components/dashboard/dashboard.component';\nexport { DashboardModalComponent } from './lib/components/dashboard-modal/dashboard-modal.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["COMPONENTS"],"mappings":";;;;;;;;MAOsB,kBAAkB,CAAA;IAYtC,OAAO,CACL,cAA6B,EAC7B,MAA4D,EAAA;QAE5D,IAAI,CAAC,OAAO,GAAG;AACb,YAAA,GAAG,cAAc;YACjB,GAAG,IAAI,CAAC,KAAK;SACd,CAAC;QAEF,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;AACpC,QAAA,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAe,CAAC;KAClE;IAED,aAAa,CAAC,OAAsB,EAAE,MAAW,EAAA;;QAE/C,IACE,OAAO,CAAC,MAAM,CAAC;YACf,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,aAAa;YAC3C,OAAO,CAAC,MAAM,CAAC,CAAC,aAAa,KAAK,SAAS,EAC3C;YACA,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC;;YAE9C,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;SACrC;AACD,QAAA,IAAI,CAAC,OAAO,GAAG,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;AAClD,QAAA,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAe,CAAC;QACjE,IACE,OAAO,CAAC,OAAO,CAAC;YAChB,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC,aAAa;YAC7C,OAAO,CAAC,OAAO,CAAC,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Y,EAAE,UAAU;AACxB,oBAAA,OAAO,EAAE,UAAU;AACpB,iBAAA,CAAA;;;ACPD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -2,15 +2,16 @@ import { ElementRef, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import type { DashboardOptions } from '@uppy/dashboard';
|
|
3
3
|
import { Uppy } from '@uppy/core';
|
|
4
4
|
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
5
|
+
import { Body, Meta } from '@uppy/utils/lib/UppyFile';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class DashboardComponent extends UppyAngularWrapper implements OnDestroy, OnChanges {
|
|
7
|
+
export declare class DashboardComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, DashboardOptions<M, B>> implements OnDestroy, OnChanges {
|
|
7
8
|
el: ElementRef;
|
|
8
|
-
uppy: Uppy
|
|
9
|
-
props: DashboardOptions
|
|
9
|
+
uppy: Uppy<M, B>;
|
|
10
|
+
props: DashboardOptions<M, B>;
|
|
10
11
|
constructor(el: ElementRef);
|
|
11
12
|
ngOnInit(): void;
|
|
12
13
|
ngOnChanges(changes: SimpleChanges): void;
|
|
13
14
|
ngOnDestroy(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "uppy-dashboard", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardComponent<any, any>, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent<any, any>, "uppy-dashboard", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
17
|
}
|
|
@@ -3,16 +3,17 @@ import Dashboard from '@uppy/dashboard';
|
|
|
3
3
|
import type { DashboardOptions } from '@uppy/dashboard';
|
|
4
4
|
import { Uppy } from '@uppy/core';
|
|
5
5
|
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
6
|
+
import { Body, Meta } from '@uppy/utils/lib/UppyFile';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DashboardModalComponent extends UppyAngularWrapper<Dashboard
|
|
8
|
+
export declare class DashboardModalComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, DashboardOptions<M, B>, Dashboard<M, B>> implements OnDestroy, OnChanges {
|
|
8
9
|
el: ElementRef;
|
|
9
|
-
uppy: Uppy
|
|
10
|
-
props: DashboardOptions
|
|
10
|
+
uppy: Uppy<M, B>;
|
|
11
|
+
props: DashboardOptions<M, B>;
|
|
11
12
|
open: boolean;
|
|
12
13
|
constructor(el: ElementRef);
|
|
13
14
|
ngOnInit(): void;
|
|
14
15
|
ngOnChanges(changes: SimpleChanges): void;
|
|
15
16
|
ngOnDestroy(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardModalComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardModalComponent, "uppy-dashboard-modal", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; "open": { "alias": "open"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardModalComponent<any, any>, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardModalComponent<any, any>, "uppy-dashboard-modal", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; "open": { "alias": "open"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
19
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { OnDestroy, OnChanges, SimpleChanges, ElementRef } from '@angular/core';
|
|
2
2
|
import { Uppy } from '@uppy/core';
|
|
3
3
|
import type { DragDropOptions } from '@uppy/drag-drop';
|
|
4
|
+
import { Body, Meta } from '@uppy/utils/lib/UppyFile';
|
|
4
5
|
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class DragDropComponent extends UppyAngularWrapper implements OnDestroy, OnChanges {
|
|
7
|
+
export declare class DragDropComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, DragDropOptions> implements OnDestroy, OnChanges {
|
|
7
8
|
el: ElementRef;
|
|
8
|
-
uppy: Uppy
|
|
9
|
+
uppy: Uppy<M, B>;
|
|
9
10
|
props: DragDropOptions;
|
|
10
11
|
constructor(el: ElementRef);
|
|
11
12
|
ngOnInit(): void;
|
|
12
13
|
ngOnChanges(changes: SimpleChanges): void;
|
|
13
14
|
ngOnDestroy(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DragDropComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DragDropComponent, "uppy-drag-drop", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragDropComponent<any, any>, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DragDropComponent<any, any>, "uppy-drag-drop", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
17
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { ElementRef, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Uppy } from '@uppy/core';
|
|
3
3
|
import type { ProgressBarOptions } from '@uppy/progress-bar';
|
|
4
|
+
import { Body, Meta } from '@uppy/utils/lib/UppyFile';
|
|
4
5
|
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class ProgressBarComponent extends UppyAngularWrapper implements OnDestroy, OnChanges {
|
|
7
|
+
export declare class ProgressBarComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, ProgressBarOptions> implements OnDestroy, OnChanges {
|
|
7
8
|
el: ElementRef;
|
|
8
|
-
uppy: Uppy
|
|
9
|
+
uppy: Uppy<M, B>;
|
|
9
10
|
props: ProgressBarOptions;
|
|
10
11
|
constructor(el: ElementRef);
|
|
11
12
|
ngOnInit(): void;
|
|
12
13
|
ngOnChanges(changes: SimpleChanges): void;
|
|
13
14
|
ngOnDestroy(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "uppy-progress-bar", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent<any, any>, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent<any, any>, "uppy-progress-bar", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
17
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { ElementRef, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Uppy } from '@uppy/core';
|
|
3
3
|
import type { StatusBarOptions } from '@uppy/status-bar';
|
|
4
|
+
import { Body, Meta } from '@uppy/utils/lib/UppyFile';
|
|
4
5
|
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class StatusBarComponent extends UppyAngularWrapper implements OnDestroy, OnChanges {
|
|
7
|
+
export declare class StatusBarComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, StatusBarOptions> implements OnDestroy, OnChanges {
|
|
7
8
|
el: ElementRef;
|
|
8
|
-
uppy: Uppy
|
|
9
|
+
uppy: Uppy<M, B>;
|
|
9
10
|
props: StatusBarOptions;
|
|
10
11
|
constructor(el: ElementRef);
|
|
11
12
|
ngOnInit(): void;
|
|
12
13
|
ngOnChanges(changes: SimpleChanges): void;
|
|
13
14
|
ngOnDestroy(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StatusBarComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StatusBarComponent, "uppy-status-bar", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StatusBarComponent<any, any>, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StatusBarComponent<any, any>, "uppy-status-bar", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
17
|
}
|
package/lib/utils/wrapper.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import type { Uppy, UIPlugin } from '@uppy/core';
|
|
1
|
+
import type { Uppy, UIPlugin, UIPluginOptions } from '@uppy/core';
|
|
2
2
|
import type { ElementRef, SimpleChanges } from '@angular/core';
|
|
3
3
|
import type { DragDropOptions } from '@uppy/drag-drop';
|
|
4
4
|
import type { StatusBarOptions } from '@uppy/status-bar';
|
|
5
5
|
import type { ProgressBarOptions } from '@uppy/progress-bar';
|
|
6
|
-
|
|
6
|
+
import { Body, Meta } from '@uppy/utils/lib/UppyFile';
|
|
7
|
+
export declare abstract class UppyAngularWrapper<M extends Meta, B extends Body, Opts extends UIPluginOptions, PluginType extends UIPlugin<Opts, M, B> = UIPlugin<Opts, M, B>> {
|
|
7
8
|
abstract props: DragDropOptions | StatusBarOptions | ProgressBarOptions;
|
|
8
9
|
abstract el: ElementRef;
|
|
9
|
-
abstract uppy: Uppy
|
|
10
|
+
abstract uppy: Uppy<M, B>;
|
|
10
11
|
private options;
|
|
11
12
|
plugin: PluginType | undefined;
|
|
12
|
-
onMount(defaultOptions:
|
|
13
|
+
onMount(defaultOptions: Partial<Opts>, plugin: new (uppy: any, opts?: Opts) => UIPlugin<Opts, M, B>): void;
|
|
13
14
|
handleChanges(changes: SimpleChanges, plugin: any): void;
|
|
14
|
-
uninstall(uppy?: Uppy): void;
|
|
15
|
+
uninstall(uppy?: Uppy<M, B>): void;
|
|
15
16
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uppy/angular",
|
|
3
3
|
"description": "Angular component wrappers around Uppy's official UI plugins.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0-beta.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://uppy.io",
|
|
7
7
|
"keywords": [
|
|
@@ -22,16 +22,17 @@
|
|
|
22
22
|
"tslib": "^2.0.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@angular/common": "^
|
|
26
|
-
"@angular/core": "^
|
|
27
|
-
"@uppy/core": "^
|
|
28
|
-
"@uppy/dashboard": "^
|
|
29
|
-
"@uppy/drag-drop": "^
|
|
30
|
-
"@uppy/progress-bar": "^
|
|
31
|
-
"@uppy/status-bar": "^
|
|
32
|
-
"@uppy/utils": "^
|
|
25
|
+
"@angular/common": "^17.3.0",
|
|
26
|
+
"@angular/core": "^17.3.0",
|
|
27
|
+
"@uppy/core": "^4.0.0-beta.2",
|
|
28
|
+
"@uppy/dashboard": "^4.0.0-beta.2",
|
|
29
|
+
"@uppy/drag-drop": "^4.0.0-beta.2",
|
|
30
|
+
"@uppy/progress-bar": "^4.0.0-beta.2",
|
|
31
|
+
"@uppy/status-bar": "^4.0.0-beta.2",
|
|
32
|
+
"@uppy/utils": "^6.0.0-beta.2"
|
|
33
33
|
},
|
|
34
34
|
"sideEffects": false,
|
|
35
|
+
"stableVersion": "0.6.1",
|
|
35
36
|
"module": "fesm2022/uppy-angular.mjs",
|
|
36
37
|
"typings": "index.d.ts",
|
|
37
38
|
"exports": {
|