@uppy/angular 0.2.3
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/LICENSE +21 -0
- package/README.md +34 -0
- package/dist/angular/README.md +13 -0
- package/dist/angular/bundles/uppy-angular.umd.js +632 -0
- package/dist/angular/bundles/uppy-angular.umd.js.map +1 -0
- package/dist/angular/esm2015/lib/components/dashboard/dashboard.component.js +33 -0
- package/dist/angular/esm2015/lib/components/dashboard/dashboard.module.js +12 -0
- package/dist/angular/esm2015/lib/components/dashboard-modal/dashboard-modal.component.js +47 -0
- package/dist/angular/esm2015/lib/components/dashboard-modal/dashboard-modal.module.js +12 -0
- package/dist/angular/esm2015/lib/components/drag-drop/drag-drop.component.js +33 -0
- package/dist/angular/esm2015/lib/components/drag-drop/drag-drop.module.js +12 -0
- package/dist/angular/esm2015/lib/components/progress-bar/progress-bar.component.js +33 -0
- package/dist/angular/esm2015/lib/components/progress-bar/progress-bar.module.js +12 -0
- package/dist/angular/esm2015/lib/components/status-bar/status-bar.component.js +33 -0
- package/dist/angular/esm2015/lib/components/status-bar/status-bar.module.js +12 -0
- package/dist/angular/esm2015/lib/utils/wrapper.js +24 -0
- package/dist/angular/esm2015/public-api.js +14 -0
- package/dist/angular/esm2015/uppy-angular.js +11 -0
- package/dist/angular/fesm2015/uppy-angular.js +254 -0
- package/dist/angular/fesm2015/uppy-angular.js.map +1 -0
- package/dist/angular/lib/components/dashboard/dashboard.component.d.ts +13 -0
- package/dist/angular/lib/components/dashboard/dashboard.module.d.ts +4 -0
- package/dist/angular/lib/components/dashboard-modal/dashboard-modal.component.d.ts +15 -0
- package/dist/angular/lib/components/dashboard-modal/dashboard-modal.module.d.ts +4 -0
- package/dist/angular/lib/components/drag-drop/drag-drop.component.d.ts +13 -0
- package/dist/angular/lib/components/drag-drop/drag-drop.module.d.ts +4 -0
- package/dist/angular/lib/components/progress-bar/progress-bar.component.d.ts +13 -0
- package/dist/angular/lib/components/progress-bar/progress-bar.module.d.ts +4 -0
- package/dist/angular/lib/components/status-bar/status-bar.component.d.ts +13 -0
- package/dist/angular/lib/components/status-bar/status-bar.module.d.ts +4 -0
- package/dist/angular/lib/utils/wrapper.d.ts +12 -0
- package/dist/angular/package.json +42 -0
- package/dist/angular/public-api.d.ts +10 -0
- package/dist/angular/uppy-angular.d.ts +10 -0
- package/dist/angular/uppy-angular.metadata.json +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { Component, ChangeDetectionStrategy, ElementRef, Input, NgModule } from '@angular/core';
|
|
2
|
+
import Dashboard from '@uppy/dashboard';
|
|
3
|
+
import ProgressBar from '@uppy/progress-bar';
|
|
4
|
+
import StatusBar from '@uppy/status-bar';
|
|
5
|
+
import DragDrop from '@uppy/drag-drop';
|
|
6
|
+
|
|
7
|
+
class UppyAngularWrapper {
|
|
8
|
+
onMount(defaultOptions, plugin) {
|
|
9
|
+
this.options = Object.assign(Object.assign({}, defaultOptions), this.props);
|
|
10
|
+
this.uppy.use(plugin, this.options);
|
|
11
|
+
this.plugin = this.uppy.getPlugin(this.options.id);
|
|
12
|
+
}
|
|
13
|
+
handleChanges(changes, plugin) {
|
|
14
|
+
// Without the last part of this conditional, it tries to uninstall before the plugin is mounted
|
|
15
|
+
if (changes.uppy && this.uppy !== changes.uppy.previousValue && changes.uppy.previousValue !== undefined) {
|
|
16
|
+
this.uninstall(changes.uppy.previousValue);
|
|
17
|
+
this.uppy.use(plugin, this.options);
|
|
18
|
+
}
|
|
19
|
+
this.options = Object.assign(Object.assign({}, this.options), this.props);
|
|
20
|
+
this.plugin = this.uppy.getPlugin(this.options.id);
|
|
21
|
+
if (changes.props && this.props !== changes.props.previousValue && changes.props.previousValue !== undefined) {
|
|
22
|
+
this.plugin.setOptions(Object.assign({}, this.options));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
uninstall(uppy = this.uppy) {
|
|
26
|
+
console.log('Uninstalling...');
|
|
27
|
+
uppy.removePlugin(this.plugin);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
class DashboardComponent extends UppyAngularWrapper {
|
|
32
|
+
constructor(el) {
|
|
33
|
+
super();
|
|
34
|
+
this.el = el;
|
|
35
|
+
}
|
|
36
|
+
ngOnInit() {
|
|
37
|
+
this.onMount({ id: 'angular:Dashboard', inline: true, target: this.el.nativeElement }, Dashboard);
|
|
38
|
+
}
|
|
39
|
+
ngOnChanges(changes) {
|
|
40
|
+
this.handleChanges(changes, Dashboard);
|
|
41
|
+
}
|
|
42
|
+
ngOnDestroy() {
|
|
43
|
+
this.uninstall();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
DashboardComponent.decorators = [
|
|
47
|
+
{ type: Component, args: [{
|
|
48
|
+
selector: 'uppy-dashboard',
|
|
49
|
+
template: '',
|
|
50
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
51
|
+
},] }
|
|
52
|
+
];
|
|
53
|
+
DashboardComponent.ctorParameters = () => [
|
|
54
|
+
{ type: ElementRef }
|
|
55
|
+
];
|
|
56
|
+
DashboardComponent.propDecorators = {
|
|
57
|
+
uppy: [{ type: Input }],
|
|
58
|
+
props: [{ type: Input }]
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const COMPONENTS$4 = [DashboardComponent];
|
|
62
|
+
class UppyAngularDashboardModule {
|
|
63
|
+
}
|
|
64
|
+
UppyAngularDashboardModule.decorators = [
|
|
65
|
+
{ type: NgModule, args: [{
|
|
66
|
+
declarations: COMPONENTS$4,
|
|
67
|
+
exports: COMPONENTS$4
|
|
68
|
+
},] }
|
|
69
|
+
];
|
|
70
|
+
|
|
71
|
+
class DashboardModalComponent extends UppyAngularWrapper {
|
|
72
|
+
constructor(el) {
|
|
73
|
+
super();
|
|
74
|
+
this.el = el;
|
|
75
|
+
}
|
|
76
|
+
ngOnInit() {
|
|
77
|
+
this.onMount({
|
|
78
|
+
id: 'angular:DashboardModal',
|
|
79
|
+
inline: false,
|
|
80
|
+
target: this.el.nativeElement
|
|
81
|
+
}, Dashboard);
|
|
82
|
+
}
|
|
83
|
+
ngOnChanges(changes) {
|
|
84
|
+
this.handleChanges(changes, Dashboard);
|
|
85
|
+
// Handle dashboard-modal specific changes
|
|
86
|
+
if (changes.open && this.open !== changes.open.previousValue) {
|
|
87
|
+
if (this.open && !changes.open.previousValue) {
|
|
88
|
+
this.plugin.openModal();
|
|
89
|
+
}
|
|
90
|
+
if (!this.open && changes.open.previousValue) {
|
|
91
|
+
this.plugin.closeModal();
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
ngOnDestroy() {
|
|
96
|
+
this.uninstall();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
DashboardModalComponent.decorators = [
|
|
100
|
+
{ type: Component, args: [{
|
|
101
|
+
selector: 'uppy-dashboard-modal',
|
|
102
|
+
template: '',
|
|
103
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
104
|
+
},] }
|
|
105
|
+
];
|
|
106
|
+
DashboardModalComponent.ctorParameters = () => [
|
|
107
|
+
{ type: ElementRef }
|
|
108
|
+
];
|
|
109
|
+
DashboardModalComponent.propDecorators = {
|
|
110
|
+
uppy: [{ type: Input }],
|
|
111
|
+
props: [{ type: Input }],
|
|
112
|
+
open: [{ type: Input }]
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const COMPONENTS$3 = [DashboardModalComponent];
|
|
116
|
+
class UppyAngularDashboardModalModule {
|
|
117
|
+
}
|
|
118
|
+
UppyAngularDashboardModalModule.decorators = [
|
|
119
|
+
{ type: NgModule, args: [{
|
|
120
|
+
declarations: COMPONENTS$3,
|
|
121
|
+
exports: COMPONENTS$3
|
|
122
|
+
},] }
|
|
123
|
+
];
|
|
124
|
+
|
|
125
|
+
class ProgressBarComponent extends UppyAngularWrapper {
|
|
126
|
+
constructor(el) {
|
|
127
|
+
super();
|
|
128
|
+
this.el = el;
|
|
129
|
+
}
|
|
130
|
+
ngOnInit() {
|
|
131
|
+
this.onMount({ id: 'angular:ProgressBar', target: this.el.nativeElement }, ProgressBar);
|
|
132
|
+
}
|
|
133
|
+
ngOnChanges(changes) {
|
|
134
|
+
this.handleChanges(changes, ProgressBar);
|
|
135
|
+
}
|
|
136
|
+
ngOnDestroy() {
|
|
137
|
+
this.uninstall();
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
ProgressBarComponent.decorators = [
|
|
141
|
+
{ type: Component, args: [{
|
|
142
|
+
selector: 'uppy-progress-bar',
|
|
143
|
+
template: '',
|
|
144
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
145
|
+
},] }
|
|
146
|
+
];
|
|
147
|
+
ProgressBarComponent.ctorParameters = () => [
|
|
148
|
+
{ type: ElementRef }
|
|
149
|
+
];
|
|
150
|
+
ProgressBarComponent.propDecorators = {
|
|
151
|
+
uppy: [{ type: Input }],
|
|
152
|
+
props: [{ type: Input }]
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
const COMPONENTS$2 = [ProgressBarComponent];
|
|
156
|
+
class UppyAngularProgressBarModule {
|
|
157
|
+
}
|
|
158
|
+
UppyAngularProgressBarModule.decorators = [
|
|
159
|
+
{ type: NgModule, args: [{
|
|
160
|
+
declarations: COMPONENTS$2,
|
|
161
|
+
exports: COMPONENTS$2
|
|
162
|
+
},] }
|
|
163
|
+
];
|
|
164
|
+
|
|
165
|
+
class StatusBarComponent extends UppyAngularWrapper {
|
|
166
|
+
constructor(el) {
|
|
167
|
+
super();
|
|
168
|
+
this.el = el;
|
|
169
|
+
}
|
|
170
|
+
ngOnInit() {
|
|
171
|
+
this.onMount({ id: 'angular:StatusBar', target: this.el.nativeElement }, StatusBar);
|
|
172
|
+
}
|
|
173
|
+
ngOnChanges(changes) {
|
|
174
|
+
this.handleChanges(changes, StatusBar);
|
|
175
|
+
}
|
|
176
|
+
ngOnDestroy() {
|
|
177
|
+
this.uninstall();
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
StatusBarComponent.decorators = [
|
|
181
|
+
{ type: Component, args: [{
|
|
182
|
+
selector: 'uppy-status-bar',
|
|
183
|
+
template: '',
|
|
184
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
185
|
+
},] }
|
|
186
|
+
];
|
|
187
|
+
StatusBarComponent.ctorParameters = () => [
|
|
188
|
+
{ type: ElementRef }
|
|
189
|
+
];
|
|
190
|
+
StatusBarComponent.propDecorators = {
|
|
191
|
+
uppy: [{ type: Input }],
|
|
192
|
+
props: [{ type: Input }]
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
const COMPONENTS$1 = [StatusBarComponent];
|
|
196
|
+
class UppyAngularStatusBarModule {
|
|
197
|
+
}
|
|
198
|
+
UppyAngularStatusBarModule.decorators = [
|
|
199
|
+
{ type: NgModule, args: [{
|
|
200
|
+
declarations: COMPONENTS$1,
|
|
201
|
+
exports: COMPONENTS$1
|
|
202
|
+
},] }
|
|
203
|
+
];
|
|
204
|
+
|
|
205
|
+
class DragDropComponent extends UppyAngularWrapper {
|
|
206
|
+
constructor(el) {
|
|
207
|
+
super();
|
|
208
|
+
this.el = el;
|
|
209
|
+
}
|
|
210
|
+
ngOnInit() {
|
|
211
|
+
this.onMount({ id: 'angular:DragDrop', target: this.el.nativeElement }, DragDrop);
|
|
212
|
+
}
|
|
213
|
+
ngOnChanges(changes) {
|
|
214
|
+
this.handleChanges(changes, DragDrop);
|
|
215
|
+
}
|
|
216
|
+
ngOnDestroy() {
|
|
217
|
+
this.uninstall();
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
DragDropComponent.decorators = [
|
|
221
|
+
{ type: Component, args: [{
|
|
222
|
+
selector: 'uppy-drag-drop',
|
|
223
|
+
template: '',
|
|
224
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
225
|
+
},] }
|
|
226
|
+
];
|
|
227
|
+
DragDropComponent.ctorParameters = () => [
|
|
228
|
+
{ type: ElementRef }
|
|
229
|
+
];
|
|
230
|
+
DragDropComponent.propDecorators = {
|
|
231
|
+
uppy: [{ type: Input }],
|
|
232
|
+
props: [{ type: Input }]
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
const COMPONENTS = [DragDropComponent];
|
|
236
|
+
class UppyAngularDragDropModule {
|
|
237
|
+
}
|
|
238
|
+
UppyAngularDragDropModule.decorators = [
|
|
239
|
+
{ type: NgModule, args: [{
|
|
240
|
+
declarations: COMPONENTS,
|
|
241
|
+
exports: COMPONENTS
|
|
242
|
+
},] }
|
|
243
|
+
];
|
|
244
|
+
|
|
245
|
+
/*
|
|
246
|
+
* Public API Surface of @uppy/angular
|
|
247
|
+
*/
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Generated bundle index. Do not edit.
|
|
251
|
+
*/
|
|
252
|
+
|
|
253
|
+
export { DashboardComponent, DashboardModalComponent, DragDropComponent, ProgressBarComponent, StatusBarComponent, UppyAngularDashboardModalModule, UppyAngularDashboardModule, UppyAngularDragDropModule, UppyAngularProgressBarModule, UppyAngularStatusBarModule, COMPONENTS$4 as ɵa, COMPONENTS$3 as ɵb, COMPONENTS$2 as ɵc, COMPONENTS$1 as ɵd, COMPONENTS as ɵe, UppyAngularWrapper as ɵf };
|
|
254
|
+
//# sourceMappingURL=uppy-angular.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uppy-angular.js","sources":["../../../projects/angular/src/lib/utils/wrapper.ts","../../../projects/angular/src/lib/components/dashboard/dashboard.component.ts","../../../projects/angular/src/lib/components/dashboard/dashboard.module.ts","../../../projects/angular/src/lib/components/dashboard-modal/dashboard-modal.component.ts","../../../projects/angular/src/lib/components/dashboard-modal/dashboard-modal.module.ts","../../../projects/angular/src/lib/components/progress-bar/progress-bar.component.ts","../../../projects/angular/src/lib/components/progress-bar/progress-bar.module.ts","../../../projects/angular/src/lib/components/status-bar/status-bar.component.ts","../../../projects/angular/src/lib/components/status-bar/status-bar.module.ts","../../../projects/angular/src/lib/components/drag-drop/drag-drop.component.ts","../../../projects/angular/src/lib/components/drag-drop/drag-drop.module.ts","../../../projects/angular/src/public-api.ts","../../../projects/angular/src/uppy-angular.ts"],"sourcesContent":["import { Uppy, UIPlugin } from '@uppy/core';\nimport { ElementRef, SimpleChanges } from '@angular/core';\n\nexport abstract class UppyAngularWrapper<PluginType extends UIPlugin = UIPlugin> {\n abstract props;\n abstract el: ElementRef\n abstract uppy: Uppy;\n private options: any;\n plugin: PluginType;\n\n onMount(defaultOptions, plugin) {\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 console.log('Uninstalling...')\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;\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;\n @Input() props: DashboardOptions;\n @Input() open: boolean;\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;\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;\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;\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\nexport {COMPONENTS as ɵb} from './lib/components/dashboard-modal/dashboard-modal.module';\nexport {COMPONENTS as ɵa} from './lib/components/dashboard/dashboard.module';\nexport {COMPONENTS as ɵe} from './lib/components/drag-drop/drag-drop.module';\nexport {COMPONENTS as ɵc} from './lib/components/progress-bar/progress-bar.module';\nexport {COMPONENTS as ɵd} from './lib/components/status-bar/status-bar.module';\nexport {UppyAngularWrapper as ɵf} from './lib/utils/wrapper';"],"names":["COMPONENTS"],"mappings":";;;;;;MAGsB,kBAAkB;IAOpC,OAAO,CAAC,cAAc,EAAE,MAAM;QAC5B,IAAI,CAAC,OAAO,mCACP,cAAc,GACd,IAAI,CAAC,KAAK,CACd,CAAC;QAEF,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAe,CAAC;KAClE;IAED,aAAa,CAAC,OAAsB,EAAE,MAAW;;QAE/C,IAAI,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,aAAa,KAAK,SAAS,EAAE;YACtG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YAC3C,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;SACvC;QACD,IAAI,CAAC,OAAO,mCAAQ,IAAI,CAAC,OAAO,GAAK,IAAI,CAAC,KAAK,CAAE,CAAA;QACjD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAe,CAAC;QACjE,IAAG,OAAO,CAAC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IvD,YAAmB,EAAc;QAC/B,KAAK,EAAE,CAAC;QADS,OAAE,GAAF,EAAE,CAAY;KAEhC;IAED,QAAQ;QACN,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,kBAAkB,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE,QAAQ,CAAC,CAAA;KAClF;IAED,WAAW,CAAC,OAAsB;QAChC,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;KACvC;IAED,WAAW;QACT,IAAI,CAAC,SAAS,EAAE,CAAC;KAClB;;;YAvBF,SAAS,SAAC;gBACT,QAAQ,EAAE,gBAAgB;gBAC1B,QAAQ,EAAE,EAAE;gBACZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;aAChD;;;YAVwF,UAAU;;;mBAYhG,KAAK;oBACL,KAAK;;;MCVK,UAAU,GAAG,CAAC,iBAAiB,EAAE;MAKjC,yBAAyB;;;YAJrC,QAAQ,SAAC;gBACR,YAAY,EAAE,UAAU;gBACxB,OAAO,EAAE,UAAU;aACpB;;;ACPD;;;;ACAA;;;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
export declare class DashboardComponent extends UppyAngularWrapper implements OnDestroy, OnChanges {
|
|
6
|
+
el: ElementRef;
|
|
7
|
+
uppy: Uppy;
|
|
8
|
+
props: DashboardOptions;
|
|
9
|
+
constructor(el: ElementRef);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
export declare class DashboardModalComponent extends UppyAngularWrapper<Dashboard> implements OnDestroy, OnChanges {
|
|
7
|
+
el: ElementRef;
|
|
8
|
+
uppy: Uppy;
|
|
9
|
+
props: DashboardOptions;
|
|
10
|
+
open: boolean;
|
|
11
|
+
constructor(el: ElementRef);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { UppyAngularWrapper } from '../../utils/wrapper';
|
|
5
|
+
export declare class DragDropComponent extends UppyAngularWrapper implements OnDestroy, OnChanges {
|
|
6
|
+
el: ElementRef;
|
|
7
|
+
uppy: Uppy;
|
|
8
|
+
props: DragDropOptions;
|
|
9
|
+
constructor(el: ElementRef);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { UppyAngularWrapper } from '../../utils/wrapper';
|
|
5
|
+
export declare class ProgressBarComponent extends UppyAngularWrapper implements OnDestroy, OnChanges {
|
|
6
|
+
el: ElementRef;
|
|
7
|
+
uppy: Uppy;
|
|
8
|
+
props: ProgressBarOptions;
|
|
9
|
+
constructor(el: ElementRef);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { UppyAngularWrapper } from '../../utils/wrapper';
|
|
5
|
+
export declare class StatusBarComponent extends UppyAngularWrapper implements OnDestroy, OnChanges {
|
|
6
|
+
el: ElementRef;
|
|
7
|
+
uppy: Uppy;
|
|
8
|
+
props: StatusBarOptions;
|
|
9
|
+
constructor(el: ElementRef);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Uppy, UIPlugin } from '@uppy/core';
|
|
2
|
+
import { ElementRef, SimpleChanges } from '@angular/core';
|
|
3
|
+
export declare abstract class UppyAngularWrapper<PluginType extends UIPlugin = UIPlugin> {
|
|
4
|
+
abstract props: any;
|
|
5
|
+
abstract el: ElementRef;
|
|
6
|
+
abstract uppy: Uppy;
|
|
7
|
+
private options;
|
|
8
|
+
plugin: PluginType;
|
|
9
|
+
onMount(defaultOptions: any, plugin: any): void;
|
|
10
|
+
handleChanges(changes: SimpleChanges, plugin: any): void;
|
|
11
|
+
uninstall(uppy?: Uppy): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@uppy/angular",
|
|
3
|
+
"description": "Angular component wrappers around Uppy's official UI plugins.",
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://uppy.io",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"file uploader",
|
|
9
|
+
"uppy",
|
|
10
|
+
"uppy-plugin",
|
|
11
|
+
"angular",
|
|
12
|
+
"angular-components"
|
|
13
|
+
],
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/transloadit/uppy/issues"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/transloadit/uppy.git"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"@angular/common": "~12.1.0",
|
|
23
|
+
"@angular/core": "~12.1.0",
|
|
24
|
+
"@uppy/core": ">=1",
|
|
25
|
+
"@uppy/dashboard": "^1.11.0",
|
|
26
|
+
"@uppy/drag-drop": "^1.4.16",
|
|
27
|
+
"@uppy/progress-bar": "^1.3.16",
|
|
28
|
+
"@uppy/status-bar": "^1.7.1",
|
|
29
|
+
"@uppy/utils": ">=3"
|
|
30
|
+
},
|
|
31
|
+
"main": "bundles/uppy-angular.umd.js",
|
|
32
|
+
"module": "fesm2015/uppy-angular.js",
|
|
33
|
+
"es2015": "fesm2015/uppy-angular.js",
|
|
34
|
+
"esm2015": "esm2015/uppy-angular.js",
|
|
35
|
+
"fesm2015": "fesm2015/uppy-angular.js",
|
|
36
|
+
"typings": "uppy-angular.d.ts",
|
|
37
|
+
"metadata": "uppy-angular.metadata.json",
|
|
38
|
+
"sideEffects": false,
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"tslib": "^2.0.0"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
export { COMPONENTS as ɵb } from './lib/components/dashboard-modal/dashboard-modal.module';
|
|
6
|
+
export { COMPONENTS as ɵa } from './lib/components/dashboard/dashboard.module';
|
|
7
|
+
export { COMPONENTS as ɵe } from './lib/components/drag-drop/drag-drop.module';
|
|
8
|
+
export { COMPONENTS as ɵc } from './lib/components/progress-bar/progress-bar.module';
|
|
9
|
+
export { COMPONENTS as ɵd } from './lib/components/status-bar/status-bar.module';
|
|
10
|
+
export { UppyAngularWrapper as ɵf } from './lib/utils/wrapper';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"ɵa":[{"__symbolic":"reference","name":"DashboardComponent"}],"UppyAngularDashboardModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":{"__symbolic":"reference","name":"ɵa"},"exports":{"__symbolic":"reference","name":"ɵa"}}]}],"members":{}},"ɵb":[{"__symbolic":"reference","name":"DashboardModalComponent"}],"UppyAngularDashboardModalModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":{"__symbolic":"reference","name":"ɵb"},"exports":{"__symbolic":"reference","name":"ɵb"}}]}],"members":{}},"ɵc":[{"__symbolic":"reference","name":"ProgressBarComponent"}],"UppyAngularProgressBarModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":{"__symbolic":"reference","name":"ɵc"},"exports":{"__symbolic":"reference","name":"ɵc"}}]}],"members":{}},"ɵd":[{"__symbolic":"reference","name":"StatusBarComponent"}],"UppyAngularStatusBarModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":{"__symbolic":"reference","name":"ɵd"},"exports":{"__symbolic":"reference","name":"ɵd"}}]}],"members":{}},"ɵe":[{"__symbolic":"reference","name":"DragDropComponent"}],"UppyAngularDragDropModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":{"__symbolic":"reference","name":"ɵe"},"exports":{"__symbolic":"reference","name":"ɵe"}}]}],"members":{}},"StatusBarComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵf"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"uppy-status-bar","template":"","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":9,"character":19},"member":"OnPush"}}]}],"members":{"uppy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"props":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":15,"character":25}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ProgressBarComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵf"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"uppy-progress-bar","template":"","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":9,"character":19},"member":"OnPush"}}]}],"members":{"uppy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"props":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":15,"character":25}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"DragDropComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵf"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"uppy-drag-drop","template":"","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":9,"character":19},"member":"OnPush"}}]}],"members":{"uppy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"props":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":15,"character":25}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"DashboardComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵf"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"uppy-dashboard","template":"","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":9,"character":19},"member":"OnPush"}}]}],"members":{"uppy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"props":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":15,"character":25}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"DashboardModalComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵf"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"uppy-dashboard-modal","template":"","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":9,"character":19},"member":"OnPush"}}]}],"members":{"uppy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"props":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"open":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":16,"character":25}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵf":{"__symbolic":"class","arity":1,"members":{"onMount":[{"__symbolic":"method"}],"handleChanges":[{"__symbolic":"method"}],"uninstall":[{"__symbolic":"method"}]}}},"origins":{"ɵa":"./lib/components/dashboard/dashboard.module","UppyAngularDashboardModule":"./lib/components/dashboard/dashboard.module","ɵb":"./lib/components/dashboard-modal/dashboard-modal.module","UppyAngularDashboardModalModule":"./lib/components/dashboard-modal/dashboard-modal.module","ɵc":"./lib/components/progress-bar/progress-bar.module","UppyAngularProgressBarModule":"./lib/components/progress-bar/progress-bar.module","ɵd":"./lib/components/status-bar/status-bar.module","UppyAngularStatusBarModule":"./lib/components/status-bar/status-bar.module","ɵe":"./lib/components/drag-drop/drag-drop.module","UppyAngularDragDropModule":"./lib/components/drag-drop/drag-drop.module","StatusBarComponent":"./lib/components/status-bar/status-bar.component","ProgressBarComponent":"./lib/components/progress-bar/progress-bar.component","DragDropComponent":"./lib/components/drag-drop/drag-drop.component","DashboardComponent":"./lib/components/dashboard/dashboard.component","DashboardModalComponent":"./lib/components/dashboard-modal/dashboard-modal.component","ɵf":"./lib/utils/wrapper"},"importAs":"@uppy/angular"}
|
package/package.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@uppy/angular",
|
|
3
|
+
"version": "0.2.3",
|
|
4
|
+
"module": "dist/angular/esm2015/public-api.js",
|
|
5
|
+
"types": "dist/angular/uppy-angular.d.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"ng": "ng",
|
|
8
|
+
"start": "start-storybook -p 6006",
|
|
9
|
+
"build": "ng build",
|
|
10
|
+
"build:release": "ng build --prod",
|
|
11
|
+
"test": "ng test",
|
|
12
|
+
"lint": "ng lint",
|
|
13
|
+
"e2e": "ng e2e",
|
|
14
|
+
"build-storybook": "build-storybook"
|
|
15
|
+
},
|
|
16
|
+
"private": false,
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@angular/animations": "~12.1.0",
|
|
19
|
+
"@angular/common": "~12.1.0",
|
|
20
|
+
"@angular/compiler": "~12.1.0",
|
|
21
|
+
"@angular/core": "~12.1.0",
|
|
22
|
+
"@angular/forms": "~12.1.0",
|
|
23
|
+
"@angular/platform-browser": "~12.1.0",
|
|
24
|
+
"@angular/platform-browser-dynamic": "~12.1.0",
|
|
25
|
+
"@angular/router": "~12.1.0",
|
|
26
|
+
"@uppy/dashboard": "^2.0.3",
|
|
27
|
+
"@uppy/drag-drop": "^2.0.2",
|
|
28
|
+
"@uppy/progress-bar": "^2.0.2",
|
|
29
|
+
"@uppy/status-bar": "^2.0.2",
|
|
30
|
+
"prop-types": "^15.7.2",
|
|
31
|
+
"rxjs": "^6.5.3",
|
|
32
|
+
"tslib": "^2.0.0",
|
|
33
|
+
"zone.js": "~0.11.3"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@uppy/core": ">=1"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@angular-devkit/build-angular": "~12.1.0",
|
|
40
|
+
"@angular-eslint/builder": "12.2.0",
|
|
41
|
+
"@angular-eslint/eslint-plugin": "12.2.0",
|
|
42
|
+
"@angular-eslint/eslint-plugin-template": "12.2.0",
|
|
43
|
+
"@angular-eslint/schematics": "12.2.0",
|
|
44
|
+
"@angular-eslint/template-parser": "12.2.0",
|
|
45
|
+
"@angular/cli": "~12.1.0",
|
|
46
|
+
"@angular/compiler-cli": "~12.1.0",
|
|
47
|
+
"@babel/core": "^7.10.5",
|
|
48
|
+
"@storybook/addon-actions": "^6.2.7",
|
|
49
|
+
"@storybook/addon-links": "^6.2.7",
|
|
50
|
+
"@storybook/addon-notes": "^5.3.19",
|
|
51
|
+
"@storybook/addons": "^5.3.21",
|
|
52
|
+
"@storybook/angular": "^6.2.7",
|
|
53
|
+
"@types/jasmine": "~3.6.0",
|
|
54
|
+
"@types/jasminewd2": "~2.0.3",
|
|
55
|
+
"@types/node": "^12.11.1",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^4.28.2",
|
|
57
|
+
"@typescript-eslint/parser": "^4.28.2",
|
|
58
|
+
"babel-loader": "^8.1.0",
|
|
59
|
+
"eslint": "^7.22.0",
|
|
60
|
+
"eslint-plugin-import": "^2.22.1",
|
|
61
|
+
"eslint-plugin-jsdoc": "^35.4.1",
|
|
62
|
+
"eslint-plugin-prefer-arrow": "latest",
|
|
63
|
+
"jasmine-core": "~3.6.0",
|
|
64
|
+
"jasmine-spec-reporter": "~5.0.0",
|
|
65
|
+
"karma": "~6.1.0",
|
|
66
|
+
"karma-chrome-launcher": "~3.1.0",
|
|
67
|
+
"karma-coverage-istanbul-reporter": "~3.0.2",
|
|
68
|
+
"karma-jasmine": "~4.0.0",
|
|
69
|
+
"karma-jasmine-html-reporter": "^1.5.0",
|
|
70
|
+
"ng-packagr": "^12.1.0",
|
|
71
|
+
"protractor": "~7.0.0",
|
|
72
|
+
"redux": "^4.0.5",
|
|
73
|
+
"ts-node": "~8.3.0",
|
|
74
|
+
"typescript": "~4.3"
|
|
75
|
+
},
|
|
76
|
+
"publishConfig": {
|
|
77
|
+
"access": "public"
|
|
78
|
+
},
|
|
79
|
+
"files": [
|
|
80
|
+
"/dist"
|
|
81
|
+
],
|
|
82
|
+
"gitHead": "b3b68c07773395d1521c38148cbf87ed88ff2364"
|
|
83
|
+
}
|