@uppy/angular 0.5.2 → 0.6.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.
Files changed (40) hide show
  1. package/.eslintrc.json +3 -9
  2. package/esm2022/lib/components/dashboard/dashboard.component.mjs +37 -0
  3. package/esm2022/lib/components/dashboard/dashboard.module.mjs +17 -0
  4. package/esm2022/lib/components/dashboard-modal/dashboard-modal.component.mjs +53 -0
  5. package/esm2022/lib/components/dashboard-modal/dashboard-modal.module.mjs +17 -0
  6. package/esm2022/lib/components/drag-drop/drag-drop.component.mjs +37 -0
  7. package/esm2022/lib/components/drag-drop/drag-drop.module.mjs +17 -0
  8. package/esm2022/lib/components/progress-bar/progress-bar.component.mjs +37 -0
  9. package/esm2022/lib/components/progress-bar/progress-bar.module.mjs +17 -0
  10. package/esm2022/lib/components/status-bar/status-bar.component.mjs +37 -0
  11. package/esm2022/lib/components/status-bar/status-bar.module.mjs +17 -0
  12. package/esm2022/lib/utils/wrapper.mjs +26 -0
  13. package/esm2022/public-api.mjs +14 -0
  14. package/esm2022/uppy-angular.mjs +5 -0
  15. package/fesm2022/uppy-angular.mjs +290 -0
  16. package/fesm2022/uppy-angular.mjs.map +1 -0
  17. package/lib/components/dashboard/dashboard.component.d.ts +1 -1
  18. package/lib/components/dashboard-modal/dashboard-modal.component.d.ts +1 -1
  19. package/lib/components/drag-drop/drag-drop.component.d.ts +1 -1
  20. package/lib/components/progress-bar/progress-bar.component.d.ts +1 -1
  21. package/lib/components/status-bar/status-bar.component.d.ts +1 -1
  22. package/package.json +16 -25
  23. package/esm2020/lib/components/dashboard/dashboard.component.mjs +0 -37
  24. package/esm2020/lib/components/dashboard/dashboard.module.mjs +0 -18
  25. package/esm2020/lib/components/dashboard-modal/dashboard-modal.component.mjs +0 -53
  26. package/esm2020/lib/components/dashboard-modal/dashboard-modal.module.mjs +0 -18
  27. package/esm2020/lib/components/drag-drop/drag-drop.component.mjs +0 -37
  28. package/esm2020/lib/components/drag-drop/drag-drop.module.mjs +0 -18
  29. package/esm2020/lib/components/progress-bar/progress-bar.component.mjs +0 -37
  30. package/esm2020/lib/components/progress-bar/progress-bar.module.mjs +0 -18
  31. package/esm2020/lib/components/status-bar/status-bar.component.mjs +0 -37
  32. package/esm2020/lib/components/status-bar/status-bar.module.mjs +0 -18
  33. package/esm2020/lib/utils/wrapper.mjs +0 -26
  34. package/esm2020/public-api.mjs +0 -14
  35. package/esm2020/uppy-angular.mjs +0 -5
  36. package/fesm2015/uppy-angular.mjs +0 -312
  37. package/fesm2015/uppy-angular.mjs.map +0 -1
  38. package/fesm2020/uppy-angular.mjs +0 -295
  39. package/fesm2020/uppy-angular.mjs.map +0 -1
  40. /package/{uppy-angular.d.ts → index.d.ts} +0 -0
@@ -0,0 +1,290 @@
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'] && this.uppy !== changes['uppy'].previousValue && changes['uppy'].previousValue !== undefined) {
21
+ this.uninstall(changes['uppy'].previousValue);
22
+ this.uppy.use(plugin, this.options);
23
+ }
24
+ this.options = { ...this.options, ...this.props };
25
+ this.plugin = this.uppy.getPlugin(this.options.id);
26
+ if (changes['props'] && this.props !== changes['props'].previousValue && changes['props'].previousValue !== undefined) {
27
+ this.plugin.setOptions({ ...this.options });
28
+ }
29
+ }
30
+ uninstall(uppy = this.uppy) {
31
+ uppy.removePlugin(this.plugin);
32
+ }
33
+ }
34
+
35
+ class DashboardComponent extends UppyAngularWrapper {
36
+ constructor(el) {
37
+ super();
38
+ this.el = el;
39
+ this.uppy = new Uppy;
40
+ this.props = {};
41
+ }
42
+ ngOnInit() {
43
+ this.onMount({ id: 'angular:Dashboard', inline: true, target: this.el.nativeElement }, Dashboard);
44
+ }
45
+ ngOnChanges(changes) {
46
+ this.handleChanges(changes, Dashboard);
47
+ }
48
+ ngOnDestroy() {
49
+ this.uninstall();
50
+ }
51
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: DashboardComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
52
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: DashboardComponent, selector: "uppy-dashboard", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
53
+ }
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: DashboardComponent, decorators: [{
55
+ type: Component,
56
+ args: [{
57
+ selector: 'uppy-dashboard',
58
+ template: '',
59
+ changeDetection: ChangeDetectionStrategy.OnPush
60
+ }]
61
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { uppy: [{
62
+ type: Input
63
+ }], props: [{
64
+ type: Input
65
+ }] } });
66
+
67
+ const COMPONENTS$4 = [DashboardComponent];
68
+ class UppyAngularDashboardModule {
69
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularDashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
70
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularDashboardModule, declarations: [DashboardComponent], exports: [DashboardComponent] }); }
71
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularDashboardModule }); }
72
+ }
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularDashboardModule, decorators: [{
74
+ type: NgModule,
75
+ args: [{
76
+ declarations: COMPONENTS$4,
77
+ exports: COMPONENTS$4
78
+ }]
79
+ }] });
80
+
81
+ class DashboardModalComponent extends UppyAngularWrapper {
82
+ constructor(el) {
83
+ super();
84
+ this.el = el;
85
+ this.uppy = new Uppy;
86
+ this.props = {};
87
+ this.open = false;
88
+ }
89
+ ngOnInit() {
90
+ this.onMount({
91
+ id: 'angular:DashboardModal',
92
+ inline: false,
93
+ target: this.el.nativeElement
94
+ }, Dashboard);
95
+ }
96
+ ngOnChanges(changes) {
97
+ this.handleChanges(changes, Dashboard);
98
+ // Handle dashboard-modal specific changes
99
+ if (changes['open'] && this.open !== changes['open'].previousValue) {
100
+ if (this.open && !changes['open'].previousValue) {
101
+ this.plugin.openModal();
102
+ }
103
+ if (!this.open && changes['open'].previousValue) {
104
+ this.plugin.closeModal();
105
+ }
106
+ }
107
+ }
108
+ ngOnDestroy() {
109
+ this.uninstall();
110
+ }
111
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: DashboardModalComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
112
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", 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
+ }
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: DashboardModalComponent, decorators: [{
115
+ type: Component,
116
+ args: [{
117
+ selector: 'uppy-dashboard-modal',
118
+ template: '',
119
+ changeDetection: ChangeDetectionStrategy.OnPush
120
+ }]
121
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { uppy: [{
122
+ type: Input
123
+ }], props: [{
124
+ type: Input
125
+ }], open: [{
126
+ type: Input
127
+ }] } });
128
+
129
+ const COMPONENTS$3 = [DashboardModalComponent];
130
+ class UppyAngularDashboardModalModule {
131
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularDashboardModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
132
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularDashboardModalModule, declarations: [DashboardModalComponent], exports: [DashboardModalComponent] }); }
133
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularDashboardModalModule }); }
134
+ }
135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularDashboardModalModule, decorators: [{
136
+ type: NgModule,
137
+ args: [{
138
+ declarations: COMPONENTS$3,
139
+ exports: COMPONENTS$3
140
+ }]
141
+ }] });
142
+
143
+ class ProgressBarComponent extends UppyAngularWrapper {
144
+ constructor(el) {
145
+ super();
146
+ this.el = el;
147
+ this.uppy = new Uppy;
148
+ this.props = {};
149
+ }
150
+ ngOnInit() {
151
+ this.onMount({ id: 'angular:ProgressBar', target: this.el.nativeElement }, ProgressBar);
152
+ }
153
+ ngOnChanges(changes) {
154
+ this.handleChanges(changes, ProgressBar);
155
+ }
156
+ ngOnDestroy() {
157
+ this.uninstall();
158
+ }
159
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: ProgressBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
160
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", 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
+ }
162
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: ProgressBarComponent, decorators: [{
163
+ type: Component,
164
+ args: [{
165
+ selector: 'uppy-progress-bar',
166
+ template: '',
167
+ changeDetection: ChangeDetectionStrategy.OnPush
168
+ }]
169
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { uppy: [{
170
+ type: Input
171
+ }], props: [{
172
+ type: Input
173
+ }] } });
174
+
175
+ const COMPONENTS$2 = [ProgressBarComponent];
176
+ class UppyAngularProgressBarModule {
177
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
178
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularProgressBarModule, declarations: [ProgressBarComponent], exports: [ProgressBarComponent] }); }
179
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularProgressBarModule }); }
180
+ }
181
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularProgressBarModule, decorators: [{
182
+ type: NgModule,
183
+ args: [{
184
+ declarations: COMPONENTS$2,
185
+ exports: COMPONENTS$2
186
+ }]
187
+ }] });
188
+
189
+ class StatusBarComponent extends UppyAngularWrapper {
190
+ constructor(el) {
191
+ super();
192
+ this.el = el;
193
+ this.uppy = new Uppy;
194
+ this.props = {};
195
+ }
196
+ ngOnInit() {
197
+ this.onMount({ id: 'angular:StatusBar', target: this.el.nativeElement }, StatusBar);
198
+ }
199
+ ngOnChanges(changes) {
200
+ this.handleChanges(changes, StatusBar);
201
+ }
202
+ ngOnDestroy() {
203
+ this.uninstall();
204
+ }
205
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: StatusBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
206
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", 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
+ }
208
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: StatusBarComponent, decorators: [{
209
+ type: Component,
210
+ args: [{
211
+ selector: 'uppy-status-bar',
212
+ template: '',
213
+ changeDetection: ChangeDetectionStrategy.OnPush
214
+ }]
215
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { uppy: [{
216
+ type: Input
217
+ }], props: [{
218
+ type: Input
219
+ }] } });
220
+
221
+ const COMPONENTS$1 = [StatusBarComponent];
222
+ class UppyAngularStatusBarModule {
223
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularStatusBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
224
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularStatusBarModule, declarations: [StatusBarComponent], exports: [StatusBarComponent] }); }
225
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularStatusBarModule }); }
226
+ }
227
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularStatusBarModule, decorators: [{
228
+ type: NgModule,
229
+ args: [{
230
+ declarations: COMPONENTS$1,
231
+ exports: COMPONENTS$1
232
+ }]
233
+ }] });
234
+
235
+ class DragDropComponent extends UppyAngularWrapper {
236
+ constructor(el) {
237
+ super();
238
+ this.el = el;
239
+ this.uppy = new Uppy;
240
+ this.props = {};
241
+ }
242
+ ngOnInit() {
243
+ this.onMount({ id: 'angular:DragDrop', target: this.el.nativeElement }, DragDrop);
244
+ }
245
+ ngOnChanges(changes) {
246
+ this.handleChanges(changes, DragDrop);
247
+ }
248
+ ngOnDestroy() {
249
+ this.uninstall();
250
+ }
251
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: DragDropComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
252
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", 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
+ }
254
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: DragDropComponent, decorators: [{
255
+ type: Component,
256
+ args: [{
257
+ selector: 'uppy-drag-drop',
258
+ template: '',
259
+ changeDetection: ChangeDetectionStrategy.OnPush
260
+ }]
261
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { uppy: [{
262
+ type: Input
263
+ }], props: [{
264
+ type: Input
265
+ }] } });
266
+
267
+ const COMPONENTS = [DragDropComponent];
268
+ class UppyAngularDragDropModule {
269
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularDragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
270
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularDragDropModule, declarations: [DragDropComponent], exports: [DragDropComponent] }); }
271
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularDragDropModule }); }
272
+ }
273
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: UppyAngularDragDropModule, decorators: [{
274
+ type: NgModule,
275
+ args: [{
276
+ declarations: COMPONENTS,
277
+ exports: COMPONENTS
278
+ }]
279
+ }] });
280
+
281
+ /*
282
+ * Public API Surface of @uppy/angular
283
+ */
284
+
285
+ /**
286
+ * Generated bundle index. Do not edit.
287
+ */
288
+
289
+ export { DashboardComponent, DashboardModalComponent, DragDropComponent, ProgressBarComponent, StatusBarComponent, UppyAngularDashboardModalModule, UppyAngularDashboardModule, UppyAngularDragDropModule, UppyAngularProgressBarModule, UppyAngularStatusBarModule };
290
+ //# sourceMappingURL=uppy-angular.mjs.map
@@ -0,0 +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,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,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,aAAa,KAAK,SAAS,EAAE;YAC/G,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC;YAC9C,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;AACvC,SAAA;AACD,QAAA,IAAI,CAAC,OAAO,GAAG,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CA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AA,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;;;;"}
@@ -12,5 +12,5 @@ export declare class DashboardComponent extends UppyAngularWrapper implements On
12
12
  ngOnChanges(changes: SimpleChanges): void;
13
13
  ngOnDestroy(): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<DashboardComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "uppy-dashboard", never, { "uppy": "uppy"; "props": "props"; }, {}, never, never, false>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "uppy-dashboard", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, false, never>;
16
16
  }
@@ -14,5 +14,5 @@ export declare class DashboardModalComponent extends UppyAngularWrapper<Dashboar
14
14
  ngOnChanges(changes: SimpleChanges): void;
15
15
  ngOnDestroy(): void;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<DashboardModalComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<DashboardModalComponent, "uppy-dashboard-modal", never, { "uppy": "uppy"; "props": "props"; "open": "open"; }, {}, never, never, false>;
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>;
18
18
  }
@@ -12,5 +12,5 @@ export declare class DragDropComponent extends UppyAngularWrapper implements OnD
12
12
  ngOnChanges(changes: SimpleChanges): void;
13
13
  ngOnDestroy(): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<DragDropComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<DragDropComponent, "uppy-drag-drop", never, { "uppy": "uppy"; "props": "props"; }, {}, never, never, false>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<DragDropComponent, "uppy-drag-drop", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, false, never>;
16
16
  }
@@ -12,5 +12,5 @@ export declare class ProgressBarComponent extends UppyAngularWrapper implements
12
12
  ngOnChanges(changes: SimpleChanges): void;
13
13
  ngOnDestroy(): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "uppy-progress-bar", never, { "uppy": "uppy"; "props": "props"; }, {}, never, never, false>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "uppy-progress-bar", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, false, never>;
16
16
  }
@@ -12,5 +12,5 @@ export declare class StatusBarComponent extends UppyAngularWrapper implements On
12
12
  ngOnChanges(changes: SimpleChanges): void;
13
13
  ngOnDestroy(): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<StatusBarComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<StatusBarComponent, "uppy-status-bar", never, { "uppy": "uppy"; "props": "props"; }, {}, never, never, false>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<StatusBarComponent, "uppy-status-bar", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, false, never>;
16
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.5.2",
4
+ "version": "0.6.1",
5
5
  "license": "MIT",
6
6
  "homepage": "https://uppy.io",
7
7
  "keywords": [
@@ -22,36 +22,27 @@
22
22
  "tslib": "^2.0.0"
23
23
  },
24
24
  "peerDependencies": {
25
- "@angular/common": ">= 14",
26
- "@angular/core": ">= 14",
27
- "@uppy/core": "^3.2.0",
28
- "@uppy/dashboard": "^3.4.0",
29
- "@uppy/drag-drop": "^3.0.2",
30
- "@uppy/progress-bar": "^3.0.2",
31
- "@uppy/status-bar": "^3.1.1",
32
- "@uppy/utils": "^5.3.0"
25
+ "@angular/common": "^16.2.0",
26
+ "@angular/core": "^16.2.0",
27
+ "@uppy/core": "^3.6.0",
28
+ "@uppy/dashboard": "^3.6.0",
29
+ "@uppy/drag-drop": "^3.0.3",
30
+ "@uppy/progress-bar": "^3.0.4",
31
+ "@uppy/status-bar": "^3.2.5",
32
+ "@uppy/utils": "^5.5.2"
33
33
  },
34
- "module": "fesm2015/uppy-angular.mjs",
35
- "es2020": "fesm2020/uppy-angular.mjs",
36
- "esm2020": "esm2020/uppy-angular.mjs",
37
- "fesm2020": "fesm2020/uppy-angular.mjs",
38
- "fesm2015": "fesm2015/uppy-angular.mjs",
39
- "typings": "uppy-angular.d.ts",
34
+ "sideEffects": false,
35
+ "module": "fesm2022/uppy-angular.mjs",
36
+ "typings": "index.d.ts",
40
37
  "exports": {
41
38
  "./package.json": {
42
39
  "default": "./package.json"
43
40
  },
44
41
  ".": {
45
- "types": "./uppy-angular.d.ts",
46
- "esm2020": "./esm2020/uppy-angular.mjs",
47
- "es2020": "./fesm2020/uppy-angular.mjs",
48
- "es2015": "./fesm2015/uppy-angular.mjs",
49
- "node": "./fesm2015/uppy-angular.mjs",
50
- "default": "./fesm2020/uppy-angular.mjs"
42
+ "types": "./index.d.ts",
43
+ "esm2022": "./esm2022/uppy-angular.mjs",
44
+ "esm": "./esm2022/uppy-angular.mjs",
45
+ "default": "./fesm2022/uppy-angular.mjs"
51
46
  }
52
- },
53
- "sideEffects": false,
54
- "scripts": {
55
- "prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled by Ivy in full compilation mode. This is not allowed.\\nPlease delete and rebuild the package with Ivy partial compilation mode, before attempting to publish.\\n')\" && exit 1"
56
47
  }
57
48
  }
@@ -1,37 +0,0 @@
1
- import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
2
- import Dashboard from '@uppy/dashboard';
3
- import { Uppy } from '@uppy/core';
4
- import { UppyAngularWrapper } from '../../utils/wrapper';
5
- import * as i0 from "@angular/core";
6
- export class DashboardComponent extends UppyAngularWrapper {
7
- constructor(el) {
8
- super();
9
- this.el = el;
10
- this.uppy = new Uppy;
11
- this.props = {};
12
- }
13
- ngOnInit() {
14
- this.onMount({ id: 'angular:Dashboard', inline: true, target: this.el.nativeElement }, Dashboard);
15
- }
16
- ngOnChanges(changes) {
17
- this.handleChanges(changes, Dashboard);
18
- }
19
- ngOnDestroy() {
20
- this.uninstall();
21
- }
22
- }
23
- DashboardComponent.ɵfac = function DashboardComponent_Factory(t) { return new (t || DashboardComponent)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
24
- DashboardComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DashboardComponent, selectors: [["uppy-dashboard"]], inputs: { uppy: "uppy", props: "props" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 0, vars: 0, template: function DashboardComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 0 });
25
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DashboardComponent, [{
26
- type: Component,
27
- args: [{
28
- selector: 'uppy-dashboard',
29
- template: '',
30
- changeDetection: ChangeDetectionStrategy.OnPush
31
- }]
32
- }], function () { return [{ type: i0.ElementRef }]; }, { uppy: [{
33
- type: Input
34
- }], props: [{
35
- type: Input
36
- }] }); })();
37
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uI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7XG4gIEBJbnB1dCgpIHByb3BzOiBEYXNoYm9hcmRPcHRpb25zID0ge307XG5cbiAgY29uc3RydWN0b3IocHVibGljIGVsOiBFbGVtZW50UmVmKSB7XG4gICAgc3VwZXIoKTtcbiAgfVxuXG4gIG5nT25Jbml0KCkge1xuICAgIHRoaXMub25Nb3VudCh7IGlkOiAnYW5ndWxhcjpEYXNoYm9hcmQnLCBpbmxpbmU6IHRydWUsIHRhcmdldDogdGhpcy5lbC5uYXRpdmVFbGVtZW50IH0sIERhc2hib2FyZClcbiAgfVxuXG4gIG5nT25DaGFuZ2VzKGNoYW5nZXM6IFNpbXBsZUNoYW5nZXMpOiB2b2lkIHtcbiAgICB0aGlzLmhhbmRsZUNoYW5nZXMoY2hhbmdlcywgRGFzaGJvYXJkKTtcbiAgfVxuXG4gIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgIHRoaXMudW5pbnN0YWxsKCk7XG4gIH1cblxufVxuIl19
@@ -1,18 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { DashboardComponent } from './dashboard.component';
3
- import * as i0 from "@angular/core";
4
- export const COMPONENTS = [DashboardComponent];
5
- export class UppyAngularDashboardModule {
6
- }
7
- UppyAngularDashboardModule.ɵfac = function UppyAngularDashboardModule_Factory(t) { return new (t || UppyAngularDashboardModule)(); };
8
- UppyAngularDashboardModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: UppyAngularDashboardModule });
9
- UppyAngularDashboardModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
10
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UppyAngularDashboardModule, [{
11
- type: NgModule,
12
- args: [{
13
- declarations: COMPONENTS,
14
- exports: COMPONENTS
15
- }]
16
- }], null, null); })();
17
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(UppyAngularDashboardModule, { declarations: [DashboardComponent], exports: [DashboardComponent] }); })();
18
- //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biJdfQ==
@@ -1,53 +0,0 @@
1
- import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
2
- import Dashboard from '@uppy/dashboard';
3
- import { Uppy } from '@uppy/core';
4
- import { UppyAngularWrapper } from '../../utils/wrapper';
5
- import * as i0 from "@angular/core";
6
- export class DashboardModalComponent extends UppyAngularWrapper {
7
- constructor(el) {
8
- super();
9
- this.el = el;
10
- this.uppy = new Uppy;
11
- this.props = {};
12
- this.open = false;
13
- }
14
- ngOnInit() {
15
- this.onMount({
16
- id: 'angular:DashboardModal',
17
- inline: false,
18
- target: this.el.nativeElement
19
- }, Dashboard);
20
- }
21
- ngOnChanges(changes) {
22
- this.handleChanges(changes, Dashboard);
23
- // Handle dashboard-modal specific changes
24
- if (changes['open'] && this.open !== changes['open'].previousValue) {
25
- if (this.open && !changes['open'].previousValue) {
26
- this.plugin.openModal();
27
- }
28
- if (!this.open && changes['open'].previousValue) {
29
- this.plugin.closeModal();
30
- }
31
- }
32
- }
33
- ngOnDestroy() {
34
- this.uninstall();
35
- }
36
- }
37
- DashboardModalComponent.ɵfac = function DashboardModalComponent_Factory(t) { return new (t || DashboardModalComponent)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
38
- DashboardModalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DashboardModalComponent, selectors: [["uppy-dashboard-modal"]], inputs: { uppy: "uppy", props: "props", open: "open" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 0, vars: 0, template: function DashboardModalComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 0 });
39
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DashboardModalComponent, [{
40
- type: Component,
41
- args: [{
42
- selector: 'uppy-dashboard-modal',
43
- template: '',
44
- changeDetection: ChangeDetectionStrategy.OnPush
45
- }]
46
- }], function () { return [{ type: i0.ElementRef }]; }, { uppy: [{
47
- type: Input
48
- }], props: [{
49
- type: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lczogU2ltcGxlQ2hhbmdlcyk6IHZvaWQge1xuICAgIHRoaXMuaGFuZGxlQ2hhbmdlcyhjaGFuZ2VzLCBEYXNoYm9hcmQpO1xuICAgIC8vIEhhbmRsZSBkYXNoYm9hcmQtbW9kYWwgc3BlY2lmaWMgY2hhbmdlc1xuICAgIGlmIChjaGFuZ2VzWydvcGVuJ10gJiYgdGhpcy5vcGVuICE9PSBjaGFuZ2VzWydvcGVuJ10ucHJldmlvdXNWYWx1ZSkge1xuICAgICAgaWYodGhpcy5vcGVuICYmICFjaGFuZ2VzWydvcGVuJ10ucHJldmlvdXNWYWx1ZSkge1xuICAgICAgICB0aGlzLnBsdWdpbiEub3Blbk1vZGFsKClcbiAgICAgIH1cbiAgICAgIGlmICghdGhpcy5vcGVuICYmIGNoYW5nZXNbJ29wZW4nXS5wcmV2aW91c1ZhbHVlKSB7XG4gICAgICAgIHRoaXMucGx1Z2luIS5jbG9zZU1vZGFsKClcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICB0aGlzLnVuaW5zdGFsbCgpO1xuICB9XG5cbn1cbiJdfQ==
@@ -1,18 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { DashboardModalComponent } from './dashboard-modal.component';
3
- import * as i0 from "@angular/core";
4
- export const COMPONENTS = [DashboardModalComponent];
5
- export class UppyAngularDashboardModalModule {
6
- }
7
- UppyAngularDashboardModalModule.ɵfac = function UppyAngularDashboardModalModule_Factory(t) { return new (t || UppyAngularDashboardModalModule)(); };
8
- UppyAngularDashboardModalModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: UppyAngularDashboardModalModule });
9
- UppyAngularDashboardModalModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
10
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UppyAngularDashboardModalModule, [{
11
- type: NgModule,
12
- args: [{
13
- declarations: COMPONENTS,
14
- exports: COMPONENTS
15
- }]
16
- }], null, null); })();
17
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(UppyAngularDashboardModalModule, { declarations: [DashboardModalComponent], exports: [DashboardModalComponent] }); })();
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFzaGJvYXJkLW1vZGFsLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3VwcHkvYW5ndWxhci9zcmMvbGliL2NvbXBvbmVudHMvZGFzaGJvYXJkLW1vZGFsL2Rhc2hib2FyZC1tb2RhbC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQzs7QUFFdEUsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHLENBQUMsdUJBQXVCLENBQUMsQ0FBQztBQUtwRCxNQUFNLE9BQU8sK0JBQStCOzs4R0FBL0IsK0JBQStCO2lGQUEvQiwrQkFBK0I7O3VGQUEvQiwrQkFBK0I7Y0FKM0MsUUFBUTtlQUFDO2dCQUNSLFlBQVksRUFBRSxVQUFVO2dCQUN4QixPQUFPLEVBQUUsVUFBVTthQUNwQjs7d0ZBQ1ksK0JBQStCLG1CQUxqQix1QkFBdUIsYUFBdkIsdUJBQXVCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IERhc2hib2FyZE1vZGFsQ29tcG9uZW50IH0gZnJvbSAnLi9kYXNoYm9hcmQtbW9kYWwuY29tcG9uZW50JztcblxuZXhwb3J0IGNvbnN0IENPTVBPTkVOVFMgPSBbRGFzaGJvYXJkTW9kYWxDb21wb25lbnRdO1xuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBDT01QT05FTlRTLFxuICBleHBvcnRzOiBDT01QT05FTlRTXG59KVxuZXhwb3J0IGNsYXNzIFVwcHlBbmd1bGFyRGFzaGJvYXJkTW9kYWxNb2R1bGUgeyB9XG4iXX0=
@@ -1,37 +0,0 @@
1
- import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
2
- import { Uppy } from '@uppy/core';
3
- import DragDrop from '@uppy/drag-drop';
4
- import { UppyAngularWrapper } from '../../utils/wrapper';
5
- import * as i0 from "@angular/core";
6
- export class DragDropComponent extends UppyAngularWrapper {
7
- constructor(el) {
8
- super();
9
- this.el = el;
10
- this.uppy = new Uppy;
11
- this.props = {};
12
- }
13
- ngOnInit() {
14
- this.onMount({ id: 'angular:DragDrop', target: this.el.nativeElement }, DragDrop);
15
- }
16
- ngOnChanges(changes) {
17
- this.handleChanges(changes, DragDrop);
18
- }
19
- ngOnDestroy() {
20
- this.uninstall();
21
- }
22
- }
23
- DragDropComponent.ɵfac = function DragDropComponent_Factory(t) { return new (t || DragDropComponent)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
24
- DragDropComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DragDropComponent, selectors: [["uppy-drag-drop"]], inputs: { uppy: "uppy", props: "props" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 0, vars: 0, template: function DragDropComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 0 });
25
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DragDropComponent, [{
26
- type: Component,
27
- args: [{
28
- selector: 'uppy-drag-drop',
29
- template: '',
30
- changeDetection: ChangeDetectionStrategy.OnPush
31
- }]
32
- }], function () { return [{ type: i0.ElementRef }]; }, { uppy: [{
33
- type: Input
34
- }], props: [{
35
- type: Input
36
- }] }); })();
37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