@uppy/angular 0.7.0 → 0.8.1
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/README.md +1 -1
- package/ng-package.json +7 -0
- package/package.json +13 -23
- package/src/lib/components/dashboard/dashboard-demo.component.ts +14 -0
- package/src/lib/components/dashboard/dashboard.component.spec.ts +24 -0
- package/src/lib/components/dashboard/dashboard.component.ts +52 -0
- package/src/lib/components/dashboard/dashboard.stories.ts +15 -0
- package/src/lib/components/dashboard-modal/dashboard-modal-demo.component.ts +17 -0
- package/src/lib/components/dashboard-modal/dashboard-modal.component.spec.ts +24 -0
- package/src/lib/components/dashboard-modal/dashboard-modal.component.ts +66 -0
- package/src/lib/components/dashboard-modal/dashboard-modal.stories.ts +15 -0
- package/src/lib/components/drag-drop/drag-drop-demo.component.ts +14 -0
- package/src/lib/components/drag-drop/drag-drop.component.spec.ts +24 -0
- package/src/lib/components/drag-drop/drag-drop.component.ts +52 -0
- package/src/lib/components/drag-drop/drag-drop.stories.ts +15 -0
- package/src/lib/components/progress-bar/progress-bar-demo.component.ts +100 -0
- package/src/lib/components/progress-bar/progress-bar.component.spec.ts +24 -0
- package/src/lib/components/progress-bar/progress-bar.component.ts +52 -0
- package/src/lib/components/progress-bar/progress-bar.stories.ts +17 -0
- package/src/lib/components/status-bar/status-bar-demo.component.ts +30 -0
- package/src/lib/components/status-bar/status-bar.component.spec.ts +24 -0
- package/src/lib/components/status-bar/status-bar.component.ts +52 -0
- package/src/lib/components/status-bar/status-bar.stories.ts +15 -0
- package/src/lib/utils/wrapper.ts +58 -0
- package/src/public-api.ts +9 -0
- package/tsconfig.lib.json +12 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +9 -0
- package/esm2022/lib/components/dashboard/dashboard.component.mjs +0 -37
- package/esm2022/lib/components/dashboard/dashboard.module.mjs +0 -17
- package/esm2022/lib/components/dashboard-modal/dashboard-modal.component.mjs +0 -53
- package/esm2022/lib/components/dashboard-modal/dashboard-modal.module.mjs +0 -17
- package/esm2022/lib/components/drag-drop/drag-drop.component.mjs +0 -37
- package/esm2022/lib/components/drag-drop/drag-drop.module.mjs +0 -17
- package/esm2022/lib/components/progress-bar/progress-bar.component.mjs +0 -37
- package/esm2022/lib/components/progress-bar/progress-bar.module.mjs +0 -17
- package/esm2022/lib/components/status-bar/status-bar.component.mjs +0 -37
- package/esm2022/lib/components/status-bar/status-bar.module.mjs +0 -17
- package/esm2022/lib/utils/wrapper.mjs +0 -31
- package/esm2022/public-api.mjs +0 -14
- package/esm2022/uppy-angular.mjs +0 -5
- package/fesm2022/uppy-angular.mjs +0 -295
- package/fesm2022/uppy-angular.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/components/dashboard/dashboard.component.d.ts +0 -17
- package/lib/components/dashboard/dashboard.module.d.ts +0 -9
- package/lib/components/dashboard-modal/dashboard-modal.component.d.ts +0 -19
- package/lib/components/dashboard-modal/dashboard-modal.module.d.ts +0 -9
- package/lib/components/drag-drop/drag-drop.component.d.ts +0 -17
- package/lib/components/drag-drop/drag-drop.module.d.ts +0 -9
- package/lib/components/progress-bar/progress-bar.component.d.ts +0 -17
- package/lib/components/progress-bar/progress-bar.module.d.ts +0 -9
- package/lib/components/status-bar/status-bar.component.d.ts +0 -17
- package/lib/components/status-bar/status-bar.module.d.ts +0 -9
- package/lib/utils/wrapper.d.ts +0 -16
- package/public-api.d.ts +0 -10
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
|
3
|
-
import Dashboard from '@uppy/dashboard';
|
|
4
|
-
import { Uppy } from '@uppy/core';
|
|
5
|
-
import ProgressBar from '@uppy/progress-bar';
|
|
6
|
-
import StatusBar from '@uppy/status-bar';
|
|
7
|
-
import DragDrop from '@uppy/drag-drop';
|
|
8
|
-
|
|
9
|
-
class UppyAngularWrapper {
|
|
10
|
-
onMount(defaultOptions, plugin) {
|
|
11
|
-
this.options = {
|
|
12
|
-
...defaultOptions,
|
|
13
|
-
...this.props,
|
|
14
|
-
};
|
|
15
|
-
this.uppy.use(plugin, this.options);
|
|
16
|
-
this.plugin = this.uppy.getPlugin(this.options.id);
|
|
17
|
-
}
|
|
18
|
-
handleChanges(changes, plugin) {
|
|
19
|
-
// Without the last part of this conditional, it tries to uninstall before the plugin is mounted
|
|
20
|
-
if (changes['uppy'] &&
|
|
21
|
-
this.uppy !== changes['uppy'].previousValue &&
|
|
22
|
-
changes['uppy'].previousValue !== undefined) {
|
|
23
|
-
this.uninstall(changes['uppy'].previousValue);
|
|
24
|
-
// @ts-expect-error The options correspond to the plugin, I swear
|
|
25
|
-
this.uppy.use(plugin, this.options);
|
|
26
|
-
}
|
|
27
|
-
this.options = { ...this.options, ...this.props };
|
|
28
|
-
this.plugin = this.uppy.getPlugin(this.options.id);
|
|
29
|
-
if (changes['props'] &&
|
|
30
|
-
this.props !== changes['props'].previousValue &&
|
|
31
|
-
changes['props'].previousValue !== undefined) {
|
|
32
|
-
this.plugin.setOptions({ ...this.options });
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
uninstall(uppy = this.uppy) {
|
|
36
|
-
uppy.removePlugin(this.plugin);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
class DashboardComponent extends UppyAngularWrapper {
|
|
41
|
-
constructor(el) {
|
|
42
|
-
super();
|
|
43
|
-
this.el = el;
|
|
44
|
-
this.uppy = new Uppy();
|
|
45
|
-
this.props = {};
|
|
46
|
-
}
|
|
47
|
-
ngOnInit() {
|
|
48
|
-
this.onMount({ id: 'angular:Dashboard', inline: true, target: this.el.nativeElement }, Dashboard);
|
|
49
|
-
}
|
|
50
|
-
ngOnChanges(changes) {
|
|
51
|
-
this.handleChanges(changes, Dashboard);
|
|
52
|
-
}
|
|
53
|
-
ngOnDestroy() {
|
|
54
|
-
this.uninstall();
|
|
55
|
-
}
|
|
56
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: DashboardComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
57
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.4", type: DashboardComponent, selector: "uppy-dashboard", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
58
|
-
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: DashboardComponent, decorators: [{
|
|
60
|
-
type: Component,
|
|
61
|
-
args: [{
|
|
62
|
-
selector: 'uppy-dashboard',
|
|
63
|
-
template: '',
|
|
64
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
65
|
-
}]
|
|
66
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { uppy: [{
|
|
67
|
-
type: Input
|
|
68
|
-
}], props: [{
|
|
69
|
-
type: Input
|
|
70
|
-
}] } });
|
|
71
|
-
|
|
72
|
-
const COMPONENTS$4 = [DashboardComponent];
|
|
73
|
-
class UppyAngularDashboardModule {
|
|
74
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularDashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
75
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularDashboardModule, declarations: [DashboardComponent], exports: [DashboardComponent] }); }
|
|
76
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularDashboardModule }); }
|
|
77
|
-
}
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularDashboardModule, decorators: [{
|
|
79
|
-
type: NgModule,
|
|
80
|
-
args: [{
|
|
81
|
-
declarations: COMPONENTS$4,
|
|
82
|
-
exports: COMPONENTS$4
|
|
83
|
-
}]
|
|
84
|
-
}] });
|
|
85
|
-
|
|
86
|
-
class DashboardModalComponent extends UppyAngularWrapper {
|
|
87
|
-
constructor(el) {
|
|
88
|
-
super();
|
|
89
|
-
this.el = el;
|
|
90
|
-
this.uppy = new Uppy();
|
|
91
|
-
this.props = {};
|
|
92
|
-
this.open = false;
|
|
93
|
-
}
|
|
94
|
-
ngOnInit() {
|
|
95
|
-
this.onMount({
|
|
96
|
-
id: 'angular:DashboardModal',
|
|
97
|
-
inline: false,
|
|
98
|
-
target: this.el.nativeElement,
|
|
99
|
-
}, Dashboard);
|
|
100
|
-
}
|
|
101
|
-
ngOnChanges(changes) {
|
|
102
|
-
this.handleChanges(changes, Dashboard);
|
|
103
|
-
// Handle dashboard-modal specific changes
|
|
104
|
-
if (changes['open'] && this.open !== changes['open'].previousValue) {
|
|
105
|
-
if (this.open && !changes['open'].previousValue) {
|
|
106
|
-
this.plugin.openModal();
|
|
107
|
-
}
|
|
108
|
-
if (!this.open && changes['open'].previousValue) {
|
|
109
|
-
this.plugin.closeModal();
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
ngOnDestroy() {
|
|
114
|
-
this.uninstall();
|
|
115
|
-
}
|
|
116
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: DashboardModalComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
117
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.4", 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 }); }
|
|
118
|
-
}
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: DashboardModalComponent, decorators: [{
|
|
120
|
-
type: Component,
|
|
121
|
-
args: [{
|
|
122
|
-
selector: 'uppy-dashboard-modal',
|
|
123
|
-
template: '',
|
|
124
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
125
|
-
}]
|
|
126
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { uppy: [{
|
|
127
|
-
type: Input
|
|
128
|
-
}], props: [{
|
|
129
|
-
type: Input
|
|
130
|
-
}], open: [{
|
|
131
|
-
type: Input
|
|
132
|
-
}] } });
|
|
133
|
-
|
|
134
|
-
const COMPONENTS$3 = [DashboardModalComponent];
|
|
135
|
-
class UppyAngularDashboardModalModule {
|
|
136
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularDashboardModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
137
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularDashboardModalModule, declarations: [DashboardModalComponent], exports: [DashboardModalComponent] }); }
|
|
138
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularDashboardModalModule }); }
|
|
139
|
-
}
|
|
140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularDashboardModalModule, decorators: [{
|
|
141
|
-
type: NgModule,
|
|
142
|
-
args: [{
|
|
143
|
-
declarations: COMPONENTS$3,
|
|
144
|
-
exports: COMPONENTS$3
|
|
145
|
-
}]
|
|
146
|
-
}] });
|
|
147
|
-
|
|
148
|
-
class ProgressBarComponent extends UppyAngularWrapper {
|
|
149
|
-
constructor(el) {
|
|
150
|
-
super();
|
|
151
|
-
this.el = el;
|
|
152
|
-
this.uppy = new Uppy();
|
|
153
|
-
this.props = {};
|
|
154
|
-
}
|
|
155
|
-
ngOnInit() {
|
|
156
|
-
this.onMount({ id: 'angular:ProgressBar', target: this.el.nativeElement }, ProgressBar);
|
|
157
|
-
}
|
|
158
|
-
ngOnChanges(changes) {
|
|
159
|
-
this.handleChanges(changes, ProgressBar);
|
|
160
|
-
}
|
|
161
|
-
ngOnDestroy() {
|
|
162
|
-
this.uninstall();
|
|
163
|
-
}
|
|
164
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: ProgressBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
165
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.4", type: ProgressBarComponent, selector: "uppy-progress-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
166
|
-
}
|
|
167
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: ProgressBarComponent, decorators: [{
|
|
168
|
-
type: Component,
|
|
169
|
-
args: [{
|
|
170
|
-
selector: 'uppy-progress-bar',
|
|
171
|
-
template: '',
|
|
172
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
173
|
-
}]
|
|
174
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { uppy: [{
|
|
175
|
-
type: Input
|
|
176
|
-
}], props: [{
|
|
177
|
-
type: Input
|
|
178
|
-
}] } });
|
|
179
|
-
|
|
180
|
-
const COMPONENTS$2 = [ProgressBarComponent];
|
|
181
|
-
class UppyAngularProgressBarModule {
|
|
182
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
183
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularProgressBarModule, declarations: [ProgressBarComponent], exports: [ProgressBarComponent] }); }
|
|
184
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularProgressBarModule }); }
|
|
185
|
-
}
|
|
186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularProgressBarModule, decorators: [{
|
|
187
|
-
type: NgModule,
|
|
188
|
-
args: [{
|
|
189
|
-
declarations: COMPONENTS$2,
|
|
190
|
-
exports: COMPONENTS$2
|
|
191
|
-
}]
|
|
192
|
-
}] });
|
|
193
|
-
|
|
194
|
-
class StatusBarComponent extends UppyAngularWrapper {
|
|
195
|
-
constructor(el) {
|
|
196
|
-
super();
|
|
197
|
-
this.el = el;
|
|
198
|
-
this.uppy = new Uppy();
|
|
199
|
-
this.props = {};
|
|
200
|
-
}
|
|
201
|
-
ngOnInit() {
|
|
202
|
-
this.onMount({ id: 'angular:StatusBar', target: this.el.nativeElement }, StatusBar);
|
|
203
|
-
}
|
|
204
|
-
ngOnChanges(changes) {
|
|
205
|
-
this.handleChanges(changes, StatusBar);
|
|
206
|
-
}
|
|
207
|
-
ngOnDestroy() {
|
|
208
|
-
this.uninstall();
|
|
209
|
-
}
|
|
210
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: StatusBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
211
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.4", type: StatusBarComponent, selector: "uppy-status-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
212
|
-
}
|
|
213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: StatusBarComponent, decorators: [{
|
|
214
|
-
type: Component,
|
|
215
|
-
args: [{
|
|
216
|
-
selector: 'uppy-status-bar',
|
|
217
|
-
template: '',
|
|
218
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
219
|
-
}]
|
|
220
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { uppy: [{
|
|
221
|
-
type: Input
|
|
222
|
-
}], props: [{
|
|
223
|
-
type: Input
|
|
224
|
-
}] } });
|
|
225
|
-
|
|
226
|
-
const COMPONENTS$1 = [StatusBarComponent];
|
|
227
|
-
class UppyAngularStatusBarModule {
|
|
228
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularStatusBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
229
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularStatusBarModule, declarations: [StatusBarComponent], exports: [StatusBarComponent] }); }
|
|
230
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularStatusBarModule }); }
|
|
231
|
-
}
|
|
232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularStatusBarModule, decorators: [{
|
|
233
|
-
type: NgModule,
|
|
234
|
-
args: [{
|
|
235
|
-
declarations: COMPONENTS$1,
|
|
236
|
-
exports: COMPONENTS$1
|
|
237
|
-
}]
|
|
238
|
-
}] });
|
|
239
|
-
|
|
240
|
-
class DragDropComponent extends UppyAngularWrapper {
|
|
241
|
-
constructor(el) {
|
|
242
|
-
super();
|
|
243
|
-
this.el = el;
|
|
244
|
-
this.uppy = new Uppy();
|
|
245
|
-
this.props = {};
|
|
246
|
-
}
|
|
247
|
-
ngOnInit() {
|
|
248
|
-
this.onMount({ id: 'angular:DragDrop', target: this.el.nativeElement }, DragDrop);
|
|
249
|
-
}
|
|
250
|
-
ngOnChanges(changes) {
|
|
251
|
-
this.handleChanges(changes, DragDrop);
|
|
252
|
-
}
|
|
253
|
-
ngOnDestroy() {
|
|
254
|
-
this.uninstall();
|
|
255
|
-
}
|
|
256
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: DragDropComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
257
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.4", type: DragDropComponent, selector: "uppy-drag-drop", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
258
|
-
}
|
|
259
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: DragDropComponent, decorators: [{
|
|
260
|
-
type: Component,
|
|
261
|
-
args: [{
|
|
262
|
-
selector: 'uppy-drag-drop',
|
|
263
|
-
template: '',
|
|
264
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
265
|
-
}]
|
|
266
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { uppy: [{
|
|
267
|
-
type: Input
|
|
268
|
-
}], props: [{
|
|
269
|
-
type: Input
|
|
270
|
-
}] } });
|
|
271
|
-
|
|
272
|
-
const COMPONENTS = [DragDropComponent];
|
|
273
|
-
class UppyAngularDragDropModule {
|
|
274
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularDragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
275
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularDragDropModule, declarations: [DragDropComponent], exports: [DragDropComponent] }); }
|
|
276
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularDragDropModule }); }
|
|
277
|
-
}
|
|
278
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: UppyAngularDragDropModule, decorators: [{
|
|
279
|
-
type: NgModule,
|
|
280
|
-
args: [{
|
|
281
|
-
declarations: COMPONENTS,
|
|
282
|
-
exports: COMPONENTS
|
|
283
|
-
}]
|
|
284
|
-
}] });
|
|
285
|
-
|
|
286
|
-
/*
|
|
287
|
-
* Public API Surface of @uppy/angular
|
|
288
|
-
*/
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* Generated bundle index. Do not edit.
|
|
292
|
-
*/
|
|
293
|
-
|
|
294
|
-
export { DashboardComponent, DashboardModalComponent, DragDropComponent, ProgressBarComponent, StatusBarComponent, UppyAngularDashboardModalModule, UppyAngularDashboardModule, UppyAngularDragDropModule, UppyAngularProgressBarModule, UppyAngularStatusBarModule };
|
|
295
|
-
//# sourceMappingURL=uppy-angular.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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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PD;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import type { DashboardOptions } from '@uppy/dashboard';
|
|
3
|
-
import { Uppy } from '@uppy/core';
|
|
4
|
-
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
5
|
-
import { Body, Meta } from '@uppy/utils/lib/UppyFile';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DashboardComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, DashboardOptions<M, B>> implements OnDestroy, OnChanges {
|
|
8
|
-
el: ElementRef;
|
|
9
|
-
uppy: Uppy<M, B>;
|
|
10
|
-
props: DashboardOptions<M, B>;
|
|
11
|
-
constructor(el: ElementRef);
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
-
ngOnDestroy(): void;
|
|
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>;
|
|
17
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DashboardComponent } from './dashboard.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./dashboard.component";
|
|
4
|
-
export declare const COMPONENTS: (typeof DashboardComponent)[];
|
|
5
|
-
export declare class UppyAngularDashboardModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UppyAngularDashboardModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UppyAngularDashboardModule, [typeof i1.DashboardComponent], never, [typeof i1.DashboardComponent]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<UppyAngularDashboardModule>;
|
|
9
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import Dashboard from '@uppy/dashboard';
|
|
3
|
-
import type { DashboardOptions } from '@uppy/dashboard';
|
|
4
|
-
import { Uppy } from '@uppy/core';
|
|
5
|
-
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
6
|
-
import { Body, Meta } from '@uppy/utils/lib/UppyFile';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class DashboardModalComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, DashboardOptions<M, B>, Dashboard<M, B>> implements OnDestroy, OnChanges {
|
|
9
|
-
el: ElementRef;
|
|
10
|
-
uppy: Uppy<M, B>;
|
|
11
|
-
props: DashboardOptions<M, B>;
|
|
12
|
-
open: boolean;
|
|
13
|
-
constructor(el: ElementRef);
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
16
|
-
ngOnDestroy(): void;
|
|
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>;
|
|
19
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DashboardModalComponent } from './dashboard-modal.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./dashboard-modal.component";
|
|
4
|
-
export declare const COMPONENTS: (typeof DashboardModalComponent)[];
|
|
5
|
-
export declare class UppyAngularDashboardModalModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UppyAngularDashboardModalModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UppyAngularDashboardModalModule, [typeof i1.DashboardModalComponent], never, [typeof i1.DashboardModalComponent]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<UppyAngularDashboardModalModule>;
|
|
9
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnChanges, SimpleChanges, ElementRef } from '@angular/core';
|
|
2
|
-
import { Uppy } from '@uppy/core';
|
|
3
|
-
import type { DragDropOptions } from '@uppy/drag-drop';
|
|
4
|
-
import { Body, Meta } from '@uppy/utils/lib/UppyFile';
|
|
5
|
-
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DragDropComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, DragDropOptions> implements OnDestroy, OnChanges {
|
|
8
|
-
el: ElementRef;
|
|
9
|
-
uppy: Uppy<M, B>;
|
|
10
|
-
props: DragDropOptions;
|
|
11
|
-
constructor(el: ElementRef);
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
-
ngOnDestroy(): void;
|
|
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>;
|
|
17
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DragDropComponent } from './drag-drop.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./drag-drop.component";
|
|
4
|
-
export declare const COMPONENTS: (typeof DragDropComponent)[];
|
|
5
|
-
export declare class UppyAngularDragDropModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UppyAngularDragDropModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UppyAngularDragDropModule, [typeof i1.DragDropComponent], never, [typeof i1.DragDropComponent]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<UppyAngularDragDropModule>;
|
|
9
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { Uppy } from '@uppy/core';
|
|
3
|
-
import type { ProgressBarOptions } from '@uppy/progress-bar';
|
|
4
|
-
import { Body, Meta } from '@uppy/utils/lib/UppyFile';
|
|
5
|
-
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class ProgressBarComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, ProgressBarOptions> implements OnDestroy, OnChanges {
|
|
8
|
-
el: ElementRef;
|
|
9
|
-
uppy: Uppy<M, B>;
|
|
10
|
-
props: ProgressBarOptions;
|
|
11
|
-
constructor(el: ElementRef);
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
-
ngOnDestroy(): void;
|
|
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>;
|
|
17
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ProgressBarComponent } from './progress-bar.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./progress-bar.component";
|
|
4
|
-
export declare const COMPONENTS: (typeof ProgressBarComponent)[];
|
|
5
|
-
export declare class UppyAngularProgressBarModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UppyAngularProgressBarModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UppyAngularProgressBarModule, [typeof i1.ProgressBarComponent], never, [typeof i1.ProgressBarComponent]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<UppyAngularProgressBarModule>;
|
|
9
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { Uppy } from '@uppy/core';
|
|
3
|
-
import type { StatusBarOptions } from '@uppy/status-bar';
|
|
4
|
-
import { Body, Meta } from '@uppy/utils/lib/UppyFile';
|
|
5
|
-
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class StatusBarComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, StatusBarOptions> implements OnDestroy, OnChanges {
|
|
8
|
-
el: ElementRef;
|
|
9
|
-
uppy: Uppy<M, B>;
|
|
10
|
-
props: StatusBarOptions;
|
|
11
|
-
constructor(el: ElementRef);
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
-
ngOnDestroy(): void;
|
|
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>;
|
|
17
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { StatusBarComponent } from './status-bar.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./status-bar.component";
|
|
4
|
-
export declare const COMPONENTS: (typeof StatusBarComponent)[];
|
|
5
|
-
export declare class UppyAngularStatusBarModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UppyAngularStatusBarModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UppyAngularStatusBarModule, [typeof i1.StatusBarComponent], never, [typeof i1.StatusBarComponent]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<UppyAngularStatusBarModule>;
|
|
9
|
-
}
|
package/lib/utils/wrapper.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Uppy, UIPlugin, UIPluginOptions } from '@uppy/core';
|
|
2
|
-
import type { ElementRef, SimpleChanges } from '@angular/core';
|
|
3
|
-
import type { DragDropOptions } from '@uppy/drag-drop';
|
|
4
|
-
import type { StatusBarOptions } from '@uppy/status-bar';
|
|
5
|
-
import type { ProgressBarOptions } from '@uppy/progress-bar';
|
|
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>> {
|
|
8
|
-
abstract props: DragDropOptions | StatusBarOptions | ProgressBarOptions;
|
|
9
|
-
abstract el: ElementRef;
|
|
10
|
-
abstract uppy: Uppy<M, B>;
|
|
11
|
-
private options;
|
|
12
|
-
plugin: PluginType | undefined;
|
|
13
|
-
onMount(defaultOptions: Partial<Opts>, plugin: new (uppy: any, opts?: Opts) => UIPlugin<Opts, M, B>): void;
|
|
14
|
-
handleChanges(changes: SimpleChanges, plugin: any): void;
|
|
15
|
-
uninstall(uppy?: Uppy<M, B>): void;
|
|
16
|
-
}
|
package/public-api.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { UppyAngularDashboardModule } from './lib/components/dashboard/dashboard.module';
|
|
2
|
-
export { UppyAngularDashboardModalModule } from './lib/components/dashboard-modal/dashboard-modal.module';
|
|
3
|
-
export { UppyAngularProgressBarModule } from './lib/components/progress-bar/progress-bar.module';
|
|
4
|
-
export { UppyAngularStatusBarModule } from './lib/components/status-bar/status-bar.module';
|
|
5
|
-
export { UppyAngularDragDropModule } from './lib/components/drag-drop/drag-drop.module';
|
|
6
|
-
export { StatusBarComponent } from './lib/components/status-bar/status-bar.component';
|
|
7
|
-
export { ProgressBarComponent } from './lib/components/progress-bar/progress-bar.component';
|
|
8
|
-
export { DragDropComponent } from './lib/components/drag-drop/drag-drop.component';
|
|
9
|
-
export { DashboardComponent } from './lib/components/dashboard/dashboard.component';
|
|
10
|
-
export { DashboardModalComponent } from './lib/components/dashboard-modal/dashboard-modal.component';
|