@uppy/angular 0.2.6 → 0.3.0

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 (52) hide show
  1. package/.eslintrc.json +52 -0
  2. package/esm2020/lib/components/dashboard/dashboard.component.mjs +37 -0
  3. package/esm2020/lib/components/dashboard/dashboard.module.mjs +17 -0
  4. package/esm2020/lib/components/dashboard-modal/dashboard-modal.component.mjs +53 -0
  5. package/esm2020/lib/components/dashboard-modal/dashboard-modal.module.mjs +17 -0
  6. package/esm2020/lib/components/drag-drop/drag-drop.component.mjs +37 -0
  7. package/esm2020/lib/components/drag-drop/drag-drop.module.mjs +17 -0
  8. package/esm2020/lib/components/progress-bar/progress-bar.component.mjs +37 -0
  9. package/esm2020/lib/components/progress-bar/progress-bar.module.mjs +17 -0
  10. package/esm2020/lib/components/status-bar/status-bar.component.mjs +37 -0
  11. package/esm2020/lib/components/status-bar/status-bar.module.mjs +17 -0
  12. package/esm2020/lib/utils/wrapper.mjs +27 -0
  13. package/esm2020/public-api.mjs +14 -0
  14. package/esm2020/uppy-angular.mjs +5 -0
  15. package/{dist/angular/fesm2015 → fesm2015}/uppy-angular.mjs +53 -41
  16. package/fesm2015/uppy-angular.mjs.map +1 -0
  17. package/{dist/angular/fesm2020 → fesm2020}/uppy-angular.mjs +53 -41
  18. package/fesm2020/uppy-angular.mjs.map +1 -0
  19. package/{dist/angular/lib → lib}/components/dashboard/dashboard.component.d.ts +0 -0
  20. package/{dist/angular/lib → lib}/components/dashboard/dashboard.module.d.ts +0 -0
  21. package/{dist/angular/lib → lib}/components/dashboard-modal/dashboard-modal.component.d.ts +0 -0
  22. package/{dist/angular/lib → lib}/components/dashboard-modal/dashboard-modal.module.d.ts +0 -0
  23. package/{dist/angular/lib → lib}/components/drag-drop/drag-drop.component.d.ts +0 -0
  24. package/{dist/angular/lib → lib}/components/drag-drop/drag-drop.module.d.ts +0 -0
  25. package/{dist/angular/lib → lib}/components/progress-bar/progress-bar.component.d.ts +0 -0
  26. package/{dist/angular/lib → lib}/components/progress-bar/progress-bar.module.d.ts +0 -0
  27. package/{dist/angular/lib → lib}/components/status-bar/status-bar.component.d.ts +0 -0
  28. package/{dist/angular/lib → lib}/components/status-bar/status-bar.module.d.ts +0 -0
  29. package/lib/utils/wrapper.d.ts +15 -0
  30. package/package.json +44 -71
  31. package/{dist/angular/public-api.d.ts → public-api.d.ts} +0 -0
  32. package/{dist/angular/uppy-angular.d.ts → uppy-angular.d.ts} +0 -0
  33. package/CHANGELOG.md +0 -8
  34. package/LICENSE +0 -21
  35. package/dist/angular/README.md +0 -13
  36. package/dist/angular/esm2020/lib/components/dashboard/dashboard.component.mjs +0 -34
  37. package/dist/angular/esm2020/lib/components/dashboard/dashboard.module.mjs +0 -17
  38. package/dist/angular/esm2020/lib/components/dashboard-modal/dashboard-modal.component.mjs +0 -49
  39. package/dist/angular/esm2020/lib/components/dashboard-modal/dashboard-modal.module.mjs +0 -17
  40. package/dist/angular/esm2020/lib/components/drag-drop/drag-drop.component.mjs +0 -34
  41. package/dist/angular/esm2020/lib/components/drag-drop/drag-drop.module.mjs +0 -17
  42. package/dist/angular/esm2020/lib/components/progress-bar/progress-bar.component.mjs +0 -34
  43. package/dist/angular/esm2020/lib/components/progress-bar/progress-bar.module.mjs +0 -17
  44. package/dist/angular/esm2020/lib/components/status-bar/status-bar.component.mjs +0 -34
  45. package/dist/angular/esm2020/lib/components/status-bar/status-bar.module.mjs +0 -17
  46. package/dist/angular/esm2020/lib/utils/wrapper.mjs +0 -27
  47. package/dist/angular/esm2020/public-api.mjs +0 -14
  48. package/dist/angular/esm2020/uppy-angular.mjs +0 -5
  49. package/dist/angular/fesm2015/uppy-angular.mjs.map +0 -1
  50. package/dist/angular/fesm2020/uppy-angular.mjs.map +0 -1
  51. package/dist/angular/lib/utils/wrapper.d.ts +0 -12
  52. package/dist/angular/package.json +0 -54
@@ -1,6 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
3
3
  import Dashboard from '@uppy/dashboard';
4
+ import { Uppy } from '@uppy/core';
4
5
  import ProgressBar from '@uppy/progress-bar';
5
6
  import StatusBar from '@uppy/status-bar';
6
7
  import DragDrop from '@uppy/drag-drop';
@@ -13,13 +14,13 @@ class UppyAngularWrapper {
13
14
  }
14
15
  handleChanges(changes, plugin) {
15
16
  // Without the last part of this conditional, it tries to uninstall before the plugin is mounted
16
- if (changes.uppy && this.uppy !== changes.uppy.previousValue && changes.uppy.previousValue !== undefined) {
17
- this.uninstall(changes.uppy.previousValue);
17
+ if (changes['uppy'] && this.uppy !== changes['uppy'].previousValue && changes['uppy'].previousValue !== undefined) {
18
+ this.uninstall(changes['uppy'].previousValue);
18
19
  this.uppy.use(plugin, this.options);
19
20
  }
20
21
  this.options = Object.assign(Object.assign({}, this.options), this.props);
21
22
  this.plugin = this.uppy.getPlugin(this.options.id);
22
- if (changes.props && this.props !== changes.props.previousValue && changes.props.previousValue !== undefined) {
23
+ if (changes['props'] && this.props !== changes['props'].previousValue && changes['props'].previousValue !== undefined) {
23
24
  this.plugin.setOptions(Object.assign({}, this.options));
24
25
  }
25
26
  }
@@ -33,6 +34,8 @@ class DashboardComponent extends UppyAngularWrapper {
33
34
  constructor(el) {
34
35
  super();
35
36
  this.el = el;
37
+ this.uppy = new Uppy;
38
+ this.props = {};
36
39
  }
37
40
  ngOnInit() {
38
41
  this.onMount({ id: 'angular:Dashboard', inline: true, target: this.el.nativeElement }, Dashboard);
@@ -44,9 +47,9 @@ class DashboardComponent extends UppyAngularWrapper {
44
47
  this.uninstall();
45
48
  }
46
49
  }
47
- DashboardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: DashboardComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
48
- DashboardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: DashboardComponent, selector: "uppy-dashboard", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: DashboardComponent, decorators: [{
50
+ DashboardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DashboardComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
51
+ DashboardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: DashboardComponent, selector: "uppy-dashboard", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DashboardComponent, decorators: [{
50
53
  type: Component,
51
54
  args: [{
52
55
  selector: 'uppy-dashboard',
@@ -62,10 +65,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImpor
62
65
  const COMPONENTS$4 = [DashboardComponent];
63
66
  class UppyAngularDashboardModule {
64
67
  }
65
- UppyAngularDashboardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
66
- UppyAngularDashboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDashboardModule, declarations: [DashboardComponent], exports: [DashboardComponent] });
67
- UppyAngularDashboardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDashboardModule });
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDashboardModule, decorators: [{
68
+ UppyAngularDashboardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
69
+ UppyAngularDashboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDashboardModule, declarations: [DashboardComponent], exports: [DashboardComponent] });
70
+ UppyAngularDashboardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDashboardModule });
71
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDashboardModule, decorators: [{
69
72
  type: NgModule,
70
73
  args: [{
71
74
  declarations: COMPONENTS$4,
@@ -77,6 +80,9 @@ class DashboardModalComponent extends UppyAngularWrapper {
77
80
  constructor(el) {
78
81
  super();
79
82
  this.el = el;
83
+ this.uppy = new Uppy;
84
+ this.props = {};
85
+ this.open = false;
80
86
  }
81
87
  ngOnInit() {
82
88
  this.onMount({
@@ -88,11 +94,11 @@ class DashboardModalComponent extends UppyAngularWrapper {
88
94
  ngOnChanges(changes) {
89
95
  this.handleChanges(changes, Dashboard);
90
96
  // Handle dashboard-modal specific changes
91
- if (changes.open && this.open !== changes.open.previousValue) {
92
- if (this.open && !changes.open.previousValue) {
97
+ if (changes['open'] && this.open !== changes['open'].previousValue) {
98
+ if (this.open && !changes['open'].previousValue) {
93
99
  this.plugin.openModal();
94
100
  }
95
- if (!this.open && changes.open.previousValue) {
101
+ if (!this.open && changes['open'].previousValue) {
96
102
  this.plugin.closeModal();
97
103
  }
98
104
  }
@@ -101,9 +107,9 @@ class DashboardModalComponent extends UppyAngularWrapper {
101
107
  this.uninstall();
102
108
  }
103
109
  }
104
- DashboardModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: DashboardModalComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
105
- DashboardModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", 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 });
106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: DashboardModalComponent, decorators: [{
110
+ DashboardModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DashboardModalComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
111
+ DashboardModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", 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 });
112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DashboardModalComponent, decorators: [{
107
113
  type: Component,
108
114
  args: [{
109
115
  selector: 'uppy-dashboard-modal',
@@ -121,10 +127,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImpor
121
127
  const COMPONENTS$3 = [DashboardModalComponent];
122
128
  class UppyAngularDashboardModalModule {
123
129
  }
124
- UppyAngularDashboardModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDashboardModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
125
- UppyAngularDashboardModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDashboardModalModule, declarations: [DashboardModalComponent], exports: [DashboardModalComponent] });
126
- UppyAngularDashboardModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDashboardModalModule });
127
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDashboardModalModule, decorators: [{
130
+ UppyAngularDashboardModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDashboardModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
131
+ UppyAngularDashboardModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDashboardModalModule, declarations: [DashboardModalComponent], exports: [DashboardModalComponent] });
132
+ UppyAngularDashboardModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDashboardModalModule });
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDashboardModalModule, decorators: [{
128
134
  type: NgModule,
129
135
  args: [{
130
136
  declarations: COMPONENTS$3,
@@ -136,6 +142,8 @@ class ProgressBarComponent extends UppyAngularWrapper {
136
142
  constructor(el) {
137
143
  super();
138
144
  this.el = el;
145
+ this.uppy = new Uppy;
146
+ this.props = {};
139
147
  }
140
148
  ngOnInit() {
141
149
  this.onMount({ id: 'angular:ProgressBar', target: this.el.nativeElement }, ProgressBar);
@@ -147,9 +155,9 @@ class ProgressBarComponent extends UppyAngularWrapper {
147
155
  this.uninstall();
148
156
  }
149
157
  }
150
- ProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ProgressBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
151
- ProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: ProgressBarComponent, selector: "uppy-progress-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ProgressBarComponent, decorators: [{
158
+ ProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ProgressBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
159
+ ProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: ProgressBarComponent, selector: "uppy-progress-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
160
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ProgressBarComponent, decorators: [{
153
161
  type: Component,
154
162
  args: [{
155
163
  selector: 'uppy-progress-bar',
@@ -165,10 +173,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImpor
165
173
  const COMPONENTS$2 = [ProgressBarComponent];
166
174
  class UppyAngularProgressBarModule {
167
175
  }
168
- UppyAngularProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
169
- UppyAngularProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularProgressBarModule, declarations: [ProgressBarComponent], exports: [ProgressBarComponent] });
170
- UppyAngularProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularProgressBarModule });
171
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularProgressBarModule, decorators: [{
176
+ UppyAngularProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
177
+ UppyAngularProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularProgressBarModule, declarations: [ProgressBarComponent], exports: [ProgressBarComponent] });
178
+ UppyAngularProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularProgressBarModule });
179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularProgressBarModule, decorators: [{
172
180
  type: NgModule,
173
181
  args: [{
174
182
  declarations: COMPONENTS$2,
@@ -180,6 +188,8 @@ class StatusBarComponent extends UppyAngularWrapper {
180
188
  constructor(el) {
181
189
  super();
182
190
  this.el = el;
191
+ this.uppy = new Uppy;
192
+ this.props = {};
183
193
  }
184
194
  ngOnInit() {
185
195
  this.onMount({ id: 'angular:StatusBar', target: this.el.nativeElement }, StatusBar);
@@ -191,9 +201,9 @@ class StatusBarComponent extends UppyAngularWrapper {
191
201
  this.uninstall();
192
202
  }
193
203
  }
194
- StatusBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StatusBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
195
- StatusBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: StatusBarComponent, selector: "uppy-status-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
196
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StatusBarComponent, decorators: [{
204
+ StatusBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: StatusBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
205
+ StatusBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: StatusBarComponent, selector: "uppy-status-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
206
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: StatusBarComponent, decorators: [{
197
207
  type: Component,
198
208
  args: [{
199
209
  selector: 'uppy-status-bar',
@@ -209,10 +219,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImpor
209
219
  const COMPONENTS$1 = [StatusBarComponent];
210
220
  class UppyAngularStatusBarModule {
211
221
  }
212
- UppyAngularStatusBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularStatusBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
213
- UppyAngularStatusBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularStatusBarModule, declarations: [StatusBarComponent], exports: [StatusBarComponent] });
214
- UppyAngularStatusBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularStatusBarModule });
215
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularStatusBarModule, decorators: [{
222
+ UppyAngularStatusBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularStatusBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
223
+ UppyAngularStatusBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularStatusBarModule, declarations: [StatusBarComponent], exports: [StatusBarComponent] });
224
+ UppyAngularStatusBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularStatusBarModule });
225
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularStatusBarModule, decorators: [{
216
226
  type: NgModule,
217
227
  args: [{
218
228
  declarations: COMPONENTS$1,
@@ -224,6 +234,8 @@ class DragDropComponent extends UppyAngularWrapper {
224
234
  constructor(el) {
225
235
  super();
226
236
  this.el = el;
237
+ this.uppy = new Uppy;
238
+ this.props = {};
227
239
  }
228
240
  ngOnInit() {
229
241
  this.onMount({ id: 'angular:DragDrop', target: this.el.nativeElement }, DragDrop);
@@ -235,9 +247,9 @@ class DragDropComponent extends UppyAngularWrapper {
235
247
  this.uninstall();
236
248
  }
237
249
  }
238
- DragDropComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: DragDropComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
239
- DragDropComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: DragDropComponent, selector: "uppy-drag-drop", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
240
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: DragDropComponent, decorators: [{
250
+ DragDropComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DragDropComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
251
+ DragDropComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: DragDropComponent, selector: "uppy-drag-drop", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
252
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DragDropComponent, decorators: [{
241
253
  type: Component,
242
254
  args: [{
243
255
  selector: 'uppy-drag-drop',
@@ -253,10 +265,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImpor
253
265
  const COMPONENTS = [DragDropComponent];
254
266
  class UppyAngularDragDropModule {
255
267
  }
256
- UppyAngularDragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
257
- UppyAngularDragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDragDropModule, declarations: [DragDropComponent], exports: [DragDropComponent] });
258
- UppyAngularDragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDragDropModule });
259
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDragDropModule, decorators: [{
268
+ UppyAngularDragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
269
+ UppyAngularDragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDragDropModule, declarations: [DragDropComponent], exports: [DragDropComponent] });
270
+ UppyAngularDragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDragDropModule });
271
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDragDropModule, decorators: [{
260
272
  type: NgModule,
261
273
  args: [{
262
274
  declarations: COMPONENTS,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uppy-angular.mjs","sources":["../../../uppy/angular/src/lib/utils/wrapper.ts","../../../uppy/angular/src/lib/components/dashboard/dashboard.component.ts","../../../uppy/angular/src/lib/components/dashboard/dashboard.module.ts","../../../uppy/angular/src/lib/components/dashboard-modal/dashboard-modal.component.ts","../../../uppy/angular/src/lib/components/dashboard-modal/dashboard-modal.module.ts","../../../uppy/angular/src/lib/components/progress-bar/progress-bar.component.ts","../../../uppy/angular/src/lib/components/progress-bar/progress-bar.module.ts","../../../uppy/angular/src/lib/components/status-bar/status-bar.component.ts","../../../uppy/angular/src/lib/components/status-bar/status-bar.module.ts","../../../uppy/angular/src/lib/components/drag-drop/drag-drop.component.ts","../../../uppy/angular/src/lib/components/drag-drop/drag-drop.module.ts","../../../uppy/angular/src/public-api.ts","../../../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 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 = 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,k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E;2FAGD,iBAAiB;kBAL7B,SAAS;mBAAC;oBACT,QAAQ,EAAE,gBAAgB;oBAC1B,QAAQ,EAAE,EAAE;oBACZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;iGAEU,IAAI;sBAAZ,KAAK;gBACG,KAAK;sBAAb,KAAK;;;ACVD,MAAM,UAAU,GAAG,CAAC,iBAAiB,CAAC,CAAC;MAKjC,yBAAyB;;sHAAzB,yBAAyB;uHAAzB,yBAAyB,iBALX,iBAAiB,aAAjB,iBAAiB;uHAK/B,yBAAyB;2FAAzB,yBAAyB;kBAJrC,QAAQ;mBAAC;oBACR,YAAY,EAAE,UAAU;oBACxB,OAAO,EAAE,UAAU;iBACpB;;;ACPD;;;;ACAA;;;;;;"}
@@ -1,6 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
3
3
  import Dashboard from '@uppy/dashboard';
4
+ import { Uppy } from '@uppy/core';
4
5
  import ProgressBar from '@uppy/progress-bar';
5
6
  import StatusBar from '@uppy/status-bar';
6
7
  import DragDrop from '@uppy/drag-drop';
@@ -16,13 +17,13 @@ class UppyAngularWrapper {
16
17
  }
17
18
  handleChanges(changes, plugin) {
18
19
  // Without the last part of this conditional, it tries to uninstall before the plugin is mounted
19
- if (changes.uppy && this.uppy !== changes.uppy.previousValue && changes.uppy.previousValue !== undefined) {
20
- this.uninstall(changes.uppy.previousValue);
20
+ if (changes['uppy'] && this.uppy !== changes['uppy'].previousValue && changes['uppy'].previousValue !== undefined) {
21
+ this.uninstall(changes['uppy'].previousValue);
21
22
  this.uppy.use(plugin, this.options);
22
23
  }
23
24
  this.options = { ...this.options, ...this.props };
24
25
  this.plugin = this.uppy.getPlugin(this.options.id);
25
- if (changes.props && this.props !== changes.props.previousValue && changes.props.previousValue !== undefined) {
26
+ if (changes['props'] && this.props !== changes['props'].previousValue && changes['props'].previousValue !== undefined) {
26
27
  this.plugin.setOptions({ ...this.options });
27
28
  }
28
29
  }
@@ -36,6 +37,8 @@ class DashboardComponent extends UppyAngularWrapper {
36
37
  constructor(el) {
37
38
  super();
38
39
  this.el = el;
40
+ this.uppy = new Uppy;
41
+ this.props = {};
39
42
  }
40
43
  ngOnInit() {
41
44
  this.onMount({ id: 'angular:Dashboard', inline: true, target: this.el.nativeElement }, Dashboard);
@@ -47,9 +50,9 @@ class DashboardComponent extends UppyAngularWrapper {
47
50
  this.uninstall();
48
51
  }
49
52
  }
50
- DashboardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: DashboardComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
51
- DashboardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: DashboardComponent, selector: "uppy-dashboard", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: DashboardComponent, decorators: [{
53
+ DashboardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DashboardComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
54
+ DashboardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: DashboardComponent, selector: "uppy-dashboard", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DashboardComponent, decorators: [{
53
56
  type: Component,
54
57
  args: [{
55
58
  selector: 'uppy-dashboard',
@@ -65,10 +68,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImpor
65
68
  const COMPONENTS$4 = [DashboardComponent];
66
69
  class UppyAngularDashboardModule {
67
70
  }
68
- UppyAngularDashboardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
69
- UppyAngularDashboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDashboardModule, declarations: [DashboardComponent], exports: [DashboardComponent] });
70
- UppyAngularDashboardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDashboardModule });
71
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDashboardModule, decorators: [{
71
+ UppyAngularDashboardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
72
+ UppyAngularDashboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDashboardModule, declarations: [DashboardComponent], exports: [DashboardComponent] });
73
+ UppyAngularDashboardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDashboardModule });
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDashboardModule, decorators: [{
72
75
  type: NgModule,
73
76
  args: [{
74
77
  declarations: COMPONENTS$4,
@@ -80,6 +83,9 @@ class DashboardModalComponent extends UppyAngularWrapper {
80
83
  constructor(el) {
81
84
  super();
82
85
  this.el = el;
86
+ this.uppy = new Uppy;
87
+ this.props = {};
88
+ this.open = false;
83
89
  }
84
90
  ngOnInit() {
85
91
  this.onMount({
@@ -91,11 +97,11 @@ class DashboardModalComponent extends UppyAngularWrapper {
91
97
  ngOnChanges(changes) {
92
98
  this.handleChanges(changes, Dashboard);
93
99
  // Handle dashboard-modal specific changes
94
- if (changes.open && this.open !== changes.open.previousValue) {
95
- if (this.open && !changes.open.previousValue) {
100
+ if (changes['open'] && this.open !== changes['open'].previousValue) {
101
+ if (this.open && !changes['open'].previousValue) {
96
102
  this.plugin.openModal();
97
103
  }
98
- if (!this.open && changes.open.previousValue) {
104
+ if (!this.open && changes['open'].previousValue) {
99
105
  this.plugin.closeModal();
100
106
  }
101
107
  }
@@ -104,9 +110,9 @@ class DashboardModalComponent extends UppyAngularWrapper {
104
110
  this.uninstall();
105
111
  }
106
112
  }
107
- DashboardModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: DashboardModalComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
108
- DashboardModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", 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 });
109
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: DashboardModalComponent, decorators: [{
113
+ DashboardModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DashboardModalComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
114
+ DashboardModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", 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 });
115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DashboardModalComponent, decorators: [{
110
116
  type: Component,
111
117
  args: [{
112
118
  selector: 'uppy-dashboard-modal',
@@ -124,10 +130,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImpor
124
130
  const COMPONENTS$3 = [DashboardModalComponent];
125
131
  class UppyAngularDashboardModalModule {
126
132
  }
127
- UppyAngularDashboardModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDashboardModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
128
- UppyAngularDashboardModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDashboardModalModule, declarations: [DashboardModalComponent], exports: [DashboardModalComponent] });
129
- UppyAngularDashboardModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDashboardModalModule });
130
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDashboardModalModule, decorators: [{
133
+ UppyAngularDashboardModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDashboardModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
134
+ UppyAngularDashboardModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDashboardModalModule, declarations: [DashboardModalComponent], exports: [DashboardModalComponent] });
135
+ UppyAngularDashboardModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDashboardModalModule });
136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDashboardModalModule, decorators: [{
131
137
  type: NgModule,
132
138
  args: [{
133
139
  declarations: COMPONENTS$3,
@@ -139,6 +145,8 @@ class ProgressBarComponent extends UppyAngularWrapper {
139
145
  constructor(el) {
140
146
  super();
141
147
  this.el = el;
148
+ this.uppy = new Uppy;
149
+ this.props = {};
142
150
  }
143
151
  ngOnInit() {
144
152
  this.onMount({ id: 'angular:ProgressBar', target: this.el.nativeElement }, ProgressBar);
@@ -150,9 +158,9 @@ class ProgressBarComponent extends UppyAngularWrapper {
150
158
  this.uninstall();
151
159
  }
152
160
  }
153
- ProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ProgressBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
154
- ProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: ProgressBarComponent, selector: "uppy-progress-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
155
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: ProgressBarComponent, decorators: [{
161
+ ProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ProgressBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
162
+ ProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: ProgressBarComponent, selector: "uppy-progress-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: ProgressBarComponent, decorators: [{
156
164
  type: Component,
157
165
  args: [{
158
166
  selector: 'uppy-progress-bar',
@@ -168,10 +176,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImpor
168
176
  const COMPONENTS$2 = [ProgressBarComponent];
169
177
  class UppyAngularProgressBarModule {
170
178
  }
171
- UppyAngularProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
172
- UppyAngularProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularProgressBarModule, declarations: [ProgressBarComponent], exports: [ProgressBarComponent] });
173
- UppyAngularProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularProgressBarModule });
174
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularProgressBarModule, decorators: [{
179
+ UppyAngularProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
180
+ UppyAngularProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularProgressBarModule, declarations: [ProgressBarComponent], exports: [ProgressBarComponent] });
181
+ UppyAngularProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularProgressBarModule });
182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularProgressBarModule, decorators: [{
175
183
  type: NgModule,
176
184
  args: [{
177
185
  declarations: COMPONENTS$2,
@@ -183,6 +191,8 @@ class StatusBarComponent extends UppyAngularWrapper {
183
191
  constructor(el) {
184
192
  super();
185
193
  this.el = el;
194
+ this.uppy = new Uppy;
195
+ this.props = {};
186
196
  }
187
197
  ngOnInit() {
188
198
  this.onMount({ id: 'angular:StatusBar', target: this.el.nativeElement }, StatusBar);
@@ -194,9 +204,9 @@ class StatusBarComponent extends UppyAngularWrapper {
194
204
  this.uninstall();
195
205
  }
196
206
  }
197
- StatusBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StatusBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
198
- StatusBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: StatusBarComponent, selector: "uppy-status-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
199
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: StatusBarComponent, decorators: [{
207
+ StatusBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: StatusBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
208
+ StatusBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: StatusBarComponent, selector: "uppy-status-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: StatusBarComponent, decorators: [{
200
210
  type: Component,
201
211
  args: [{
202
212
  selector: 'uppy-status-bar',
@@ -212,10 +222,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImpor
212
222
  const COMPONENTS$1 = [StatusBarComponent];
213
223
  class UppyAngularStatusBarModule {
214
224
  }
215
- UppyAngularStatusBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularStatusBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
216
- UppyAngularStatusBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularStatusBarModule, declarations: [StatusBarComponent], exports: [StatusBarComponent] });
217
- UppyAngularStatusBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularStatusBarModule });
218
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularStatusBarModule, decorators: [{
225
+ UppyAngularStatusBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularStatusBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
226
+ UppyAngularStatusBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularStatusBarModule, declarations: [StatusBarComponent], exports: [StatusBarComponent] });
227
+ UppyAngularStatusBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularStatusBarModule });
228
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularStatusBarModule, decorators: [{
219
229
  type: NgModule,
220
230
  args: [{
221
231
  declarations: COMPONENTS$1,
@@ -227,6 +237,8 @@ class DragDropComponent extends UppyAngularWrapper {
227
237
  constructor(el) {
228
238
  super();
229
239
  this.el = el;
240
+ this.uppy = new Uppy;
241
+ this.props = {};
230
242
  }
231
243
  ngOnInit() {
232
244
  this.onMount({ id: 'angular:DragDrop', target: this.el.nativeElement }, DragDrop);
@@ -238,9 +250,9 @@ class DragDropComponent extends UppyAngularWrapper {
238
250
  this.uninstall();
239
251
  }
240
252
  }
241
- DragDropComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: DragDropComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
242
- DragDropComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: DragDropComponent, selector: "uppy-drag-drop", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
243
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: DragDropComponent, decorators: [{
253
+ DragDropComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DragDropComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
254
+ DragDropComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: DragDropComponent, selector: "uppy-drag-drop", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
255
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DragDropComponent, decorators: [{
244
256
  type: Component,
245
257
  args: [{
246
258
  selector: 'uppy-drag-drop',
@@ -256,10 +268,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImpor
256
268
  const COMPONENTS = [DragDropComponent];
257
269
  class UppyAngularDragDropModule {
258
270
  }
259
- UppyAngularDragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
260
- UppyAngularDragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDragDropModule, declarations: [DragDropComponent], exports: [DragDropComponent] });
261
- UppyAngularDragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDragDropModule });
262
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: UppyAngularDragDropModule, decorators: [{
271
+ UppyAngularDragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
272
+ UppyAngularDragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDragDropModule, declarations: [DragDropComponent], exports: [DragDropComponent] });
273
+ UppyAngularDragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDragDropModule });
274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: UppyAngularDragDropModule, decorators: [{
263
275
  type: NgModule,
264
276
  args: [{
265
277
  declarations: COMPONENTS,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uppy-angular.mjs","sources":["../../../uppy/angular/src/lib/utils/wrapper.ts","../../../uppy/angular/src/lib/components/dashboard/dashboard.component.ts","../../../uppy/angular/src/lib/components/dashboard/dashboard.module.ts","../../../uppy/angular/src/lib/components/dashboard-modal/dashboard-modal.component.ts","../../../uppy/angular/src/lib/components/dashboard-modal/dashboard-modal.module.ts","../../../uppy/angular/src/lib/components/progress-bar/progress-bar.component.ts","../../../uppy/angular/src/lib/components/progress-bar/progress-bar.module.ts","../../../uppy/angular/src/lib/components/status-bar/status-bar.component.ts","../../../uppy/angular/src/lib/components/status-bar/status-bar.module.ts","../../../uppy/angular/src/lib/components/drag-drop/drag-drop.component.ts","../../../uppy/angular/src/lib/components/drag-drop/drag-drop.module.ts","../../../uppy/angular/src/public-api.ts","../../../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 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 = 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;IAOpC,OAAO,CAAC,cAAuC,EAAE,MAAmE;QAClH,IAAI,CAAC,OAAO,GAAG;YACb,GAAG,cAAc;YACjB,GAAG,IAAI,CAAC,KAAK;SACd,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,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;SACvC;QACD,IAAI,CAAC,OAAO,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BAAC;oBACR,YAAY,EAAEA,YAAU;oBACxB,OAAO,EAAEA,YAAU;iBACpB;;;MCIY,iBAAkB,SAAQ,kBAAkB;IAIvD,YAAmB,EAAc;QAC/B,KAAK,EAAE,CAAC;QADS,OAAE,GAAF,EAAE,CAAY;QAHxB,SAAI,GAAS,IAAI,IAAI,CAAC;QACtB,UAAK,GAAoB,EAAE,CAAC;KAIpC;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;;8GAlBU,iBAAiB;kGAAjB,iBAAiB,4IAHlB,EAAE;2FAGD,iBAAiB;kBAL7B,SAAS;mBAAC;oBACT,QAAQ,EAAE,gBAAgB;oBAC1B,QAAQ,EAAE,EAAE;oBACZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;iGAEU,IAAI;sBAAZ,KAAK;gBACG,KAAK;sBAAb,KAAK;;;ACVD,MAAM,UAAU,GAAG,CAAC,iBAAiB,CAAC,CAAC;MAKjC,yBAAyB;;sHAAzB,yBAAyB;uHAAzB,yBAAyB,iBALX,iBAAiB,aAAjB,iBAAiB;uHAK/B,yBAAyB;2FAAzB,yBAAyB;kBAJrC,QAAQ;mBAAC;oBACR,YAAY,EAAE,UAAU;oBACxB,OAAO,EAAE,UAAU;iBACpB;;;ACPD;;;;ACAA;;;;;;"}
@@ -0,0 +1,15 @@
1
+ import type { Uppy, UIPlugin } 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
+ export declare abstract class UppyAngularWrapper<PluginType extends UIPlugin = UIPlugin> {
7
+ abstract props: DragDropOptions | StatusBarOptions | ProgressBarOptions;
8
+ abstract el: ElementRef;
9
+ abstract uppy: Uppy;
10
+ private options;
11
+ plugin: PluginType | undefined;
12
+ onMount(defaultOptions: Record<string, unknown>, plugin: new (uppy: Uppy, opts: Record<string, unknown>) => UIPlugin): void;
13
+ handleChanges(changes: SimpleChanges, plugin: any): void;
14
+ uninstall(uppy?: Uppy): void;
15
+ }