@uppy/angular 0.9.0 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "extends": "../../../.eslintrc.json",
3
+ "ignorePatterns": ["!**/*"],
4
+ "overrides": [
5
+ {
6
+ "files": ["*.ts"],
7
+ "parserOptions": {
8
+ "project": [
9
+ "packages/@uppy/angular/projects/angular/tsconfig.lib.json",
10
+ "packages/@uppy/angular/projects/angular/tsconfig.spec.json"
11
+ ],
12
+ "createDefaultProgram": true
13
+ },
14
+ "rules": {
15
+ "@angular-eslint/component-selector": [
16
+ "error",
17
+ {
18
+ "type": "element",
19
+ "prefix": "uppy",
20
+ "style": "kebab-case"
21
+ }
22
+ ],
23
+ "@angular-eslint/directive-selector": [
24
+ "error",
25
+ {
26
+ "type": "attribute",
27
+ "prefix": "uppy",
28
+ "style": "camelCase"
29
+ }
30
+ ],
31
+ "dot-notation": "error",
32
+ "indent": "error",
33
+ "no-empty-function": "off",
34
+ "no-shadow": "error",
35
+ "no-unused-expressions": "error",
36
+ "no-use-before-define": "off",
37
+ "quotes": "error",
38
+ "semi": "error"
39
+ }
40
+ },
41
+ {
42
+ "files": ["*.html"],
43
+ "rules": {}
44
+ }
45
+ ]
46
+ }
@@ -0,0 +1,230 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, ElementRef, Input, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { Uppy } from '@uppy/core';
4
+ import Dashboard from '@uppy/dashboard';
5
+ import DragDrop from '@uppy/drag-drop';
6
+ import ProgressBar from '@uppy/progress-bar';
7
+ import StatusBar from '@uppy/status-bar';
8
+
9
+ class UppyAngularWrapper {
10
+ onMount(defaultOptions, plugin) {
11
+ this.options = {
12
+ ...defaultOptions,
13
+ ...this.props,
14
+ };
15
+ this.uppy.use(plugin, this.options);
16
+ this.plugin = this.uppy.getPlugin(this.options.id);
17
+ }
18
+ handleChanges(changes, plugin) {
19
+ // Without the last part of this conditional, it tries to uninstall before the plugin is mounted
20
+ if (changes["uppy"] &&
21
+ this.uppy !== changes["uppy"].previousValue &&
22
+ changes["uppy"].previousValue !== undefined) {
23
+ this.uninstall(changes["uppy"].previousValue);
24
+ // @ts-expect-error The options correspond to the plugin, I swear
25
+ this.uppy.use(plugin, this.options);
26
+ }
27
+ this.options = { ...this.options, ...this.props };
28
+ this.plugin = this.uppy.getPlugin(this.options.id);
29
+ if (changes["props"] &&
30
+ this.props !== changes["props"].previousValue &&
31
+ changes["props"].previousValue !== undefined) {
32
+ this.plugin.setOptions({ ...this.options });
33
+ }
34
+ }
35
+ uninstall(uppy = this.uppy) {
36
+ uppy.removePlugin(this.plugin);
37
+ }
38
+ }
39
+
40
+ class DashboardComponent extends UppyAngularWrapper {
41
+ constructor() {
42
+ super();
43
+ this.el = inject(ElementRef);
44
+ this.uppy = new Uppy();
45
+ this.props = {};
46
+ }
47
+ ngOnInit() {
48
+ this.onMount({ id: "angular:Dashboard", inline: true, target: this.el.nativeElement }, Dashboard);
49
+ }
50
+ ngOnChanges(changes) {
51
+ this.handleChanges(changes, Dashboard);
52
+ }
53
+ ngOnDestroy() {
54
+ this.uninstall();
55
+ }
56
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DashboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
57
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: DashboardComponent, isStandalone: true, selector: "uppy-dashboard", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
58
+ }
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DashboardComponent, decorators: [{
60
+ type: Component,
61
+ args: [{
62
+ selector: "uppy-dashboard",
63
+ template: "",
64
+ changeDetection: ChangeDetectionStrategy.OnPush,
65
+ standalone: true,
66
+ }]
67
+ }], ctorParameters: () => [], propDecorators: { uppy: [{
68
+ type: Input
69
+ }], props: [{
70
+ type: Input
71
+ }] } });
72
+
73
+ class DashboardModalComponent extends UppyAngularWrapper {
74
+ constructor() {
75
+ super();
76
+ this.el = inject(ElementRef);
77
+ this.uppy = new Uppy();
78
+ this.props = {};
79
+ this.open = false;
80
+ }
81
+ ngOnInit() {
82
+ this.onMount({
83
+ id: "angular:DashboardModal",
84
+ inline: false,
85
+ target: this.el.nativeElement,
86
+ }, Dashboard);
87
+ }
88
+ ngOnChanges(changes) {
89
+ this.handleChanges(changes, Dashboard);
90
+ // Handle dashboard-modal specific changes
91
+ if (changes["open"] && this.open !== changes["open"].previousValue) {
92
+ if (this.open && !changes["open"].previousValue) {
93
+ this.plugin.openModal();
94
+ }
95
+ if (!this.open && changes["open"].previousValue) {
96
+ this.plugin.closeModal();
97
+ }
98
+ }
99
+ }
100
+ ngOnDestroy() {
101
+ this.uninstall();
102
+ }
103
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DashboardModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
104
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: DashboardModalComponent, isStandalone: true, selector: "uppy-dashboard-modal", inputs: { uppy: "uppy", props: "props", open: "open" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
105
+ }
106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DashboardModalComponent, decorators: [{
107
+ type: Component,
108
+ args: [{
109
+ selector: "uppy-dashboard-modal",
110
+ template: "",
111
+ changeDetection: ChangeDetectionStrategy.OnPush,
112
+ standalone: true,
113
+ }]
114
+ }], ctorParameters: () => [], propDecorators: { uppy: [{
115
+ type: Input
116
+ }], props: [{
117
+ type: Input
118
+ }], open: [{
119
+ type: Input
120
+ }] } });
121
+
122
+ class DragDropComponent extends UppyAngularWrapper {
123
+ constructor() {
124
+ super();
125
+ this.el = inject(ElementRef);
126
+ this.uppy = new Uppy();
127
+ this.props = {};
128
+ }
129
+ ngOnInit() {
130
+ this.onMount({ id: "angular:DragDrop", target: this.el.nativeElement }, DragDrop);
131
+ }
132
+ ngOnChanges(changes) {
133
+ this.handleChanges(changes, DragDrop);
134
+ }
135
+ ngOnDestroy() {
136
+ this.uninstall();
137
+ }
138
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DragDropComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
139
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: DragDropComponent, isStandalone: true, selector: "uppy-drag-drop", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
140
+ }
141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DragDropComponent, decorators: [{
142
+ type: Component,
143
+ args: [{
144
+ selector: "uppy-drag-drop",
145
+ template: "",
146
+ changeDetection: ChangeDetectionStrategy.OnPush,
147
+ standalone: true,
148
+ }]
149
+ }], ctorParameters: () => [], propDecorators: { uppy: [{
150
+ type: Input
151
+ }], props: [{
152
+ type: Input
153
+ }] } });
154
+
155
+ class ProgressBarComponent extends UppyAngularWrapper {
156
+ constructor() {
157
+ super();
158
+ this.el = inject(ElementRef);
159
+ this.uppy = new Uppy();
160
+ this.props = {};
161
+ }
162
+ ngOnInit() {
163
+ this.onMount({ id: "angular:ProgressBar", target: this.el.nativeElement }, ProgressBar);
164
+ }
165
+ ngOnChanges(changes) {
166
+ this.handleChanges(changes, ProgressBar);
167
+ }
168
+ ngOnDestroy() {
169
+ this.uninstall();
170
+ }
171
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
172
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: ProgressBarComponent, isStandalone: true, selector: "uppy-progress-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
173
+ }
174
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ProgressBarComponent, decorators: [{
175
+ type: Component,
176
+ args: [{
177
+ selector: "uppy-progress-bar",
178
+ template: "",
179
+ changeDetection: ChangeDetectionStrategy.OnPush,
180
+ standalone: true,
181
+ }]
182
+ }], ctorParameters: () => [], propDecorators: { uppy: [{
183
+ type: Input
184
+ }], props: [{
185
+ type: Input
186
+ }] } });
187
+
188
+ class StatusBarComponent extends UppyAngularWrapper {
189
+ constructor() {
190
+ super();
191
+ this.el = inject(ElementRef);
192
+ this.uppy = new Uppy();
193
+ this.props = {};
194
+ }
195
+ ngOnInit() {
196
+ this.onMount({ id: "angular:StatusBar", target: this.el.nativeElement }, StatusBar);
197
+ }
198
+ ngOnChanges(changes) {
199
+ this.handleChanges(changes, StatusBar);
200
+ }
201
+ ngOnDestroy() {
202
+ this.uninstall();
203
+ }
204
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: StatusBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
205
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: StatusBarComponent, isStandalone: true, selector: "uppy-status-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
206
+ }
207
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: StatusBarComponent, decorators: [{
208
+ type: Component,
209
+ args: [{
210
+ selector: "uppy-status-bar",
211
+ template: "",
212
+ changeDetection: ChangeDetectionStrategy.OnPush,
213
+ standalone: true,
214
+ }]
215
+ }], ctorParameters: () => [], propDecorators: { uppy: [{
216
+ type: Input
217
+ }], props: [{
218
+ type: Input
219
+ }] } });
220
+
221
+ /*
222
+ * Public API Surface of @uppy/angular
223
+ */
224
+
225
+ /**
226
+ * Generated bundle index. Do not edit.
227
+ */
228
+
229
+ export { DashboardComponent, DashboardModalComponent, DragDropComponent, ProgressBarComponent, StatusBarComponent };
230
+ //# 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-modal/dashboard-modal.component.ts","../../../../projects/uppy/angular/src/lib/components/drag-drop/drag-drop.component.ts","../../../../projects/uppy/angular/src/lib/components/progress-bar/progress-bar.component.ts","../../../../projects/uppy/angular/src/lib/components/status-bar/status-bar.component.ts","../../../../projects/uppy/angular/src/public-api.ts","../../../../projects/uppy/angular/src/uppy-angular.ts"],"sourcesContent":["import type { ElementRef, SimpleChanges } from \"@angular/core\";\nimport type { UIPlugin, UIPluginOptions, Uppy } from \"@uppy/core\";\nimport type { DragDropOptions } from \"@uppy/drag-drop\";\nimport type { ProgressBarOptions } from \"@uppy/progress-bar\";\nimport type { StatusBarOptions } from \"@uppy/status-bar\";\nimport type { Body, Meta } from \"@uppy/utils/lib/UppyFile\";\n\nexport abstract class UppyAngularWrapper<\n\tM extends Meta,\n\tB extends Body,\n\tOpts extends UIPluginOptions,\n\tPluginType extends UIPlugin<Opts, M, B> = UIPlugin<Opts, M, B>,\n> {\n\tabstract props: DragDropOptions | StatusBarOptions | ProgressBarOptions;\n\tabstract el: ElementRef;\n\tabstract uppy: Uppy<M, B>;\n\tprivate options: any;\n\tplugin: PluginType | undefined;\n\n\tonMount(\n\t\tdefaultOptions: Partial<Opts>,\n\t\tplugin: new (uppy: any, opts?: Opts) => UIPlugin<Opts, M, B>,\n\t) {\n\t\tthis.options = {\n\t\t\t...defaultOptions,\n\t\t\t...this.props,\n\t\t};\n\n\t\tthis.uppy.use(plugin, this.options);\n\t\tthis.plugin = this.uppy.getPlugin(this.options.id) as PluginType;\n\t}\n\n\thandleChanges(changes: SimpleChanges, plugin: any): void {\n\t\t// Without the last part of this conditional, it tries to uninstall before the plugin is mounted\n\t\tif (\n\t\t\tchanges[\"uppy\"] &&\n\t\t\tthis.uppy !== changes[\"uppy\"].previousValue &&\n\t\t\tchanges[\"uppy\"].previousValue !== undefined\n\t\t) {\n\t\t\tthis.uninstall(changes[\"uppy\"].previousValue);\n\t\t\t// @ts-expect-error The options correspond to the plugin, I swear\n\t\t\tthis.uppy.use(plugin, this.options);\n\t\t}\n\t\tthis.options = { ...this.options, ...this.props };\n\t\tthis.plugin = this.uppy.getPlugin(this.options.id) as PluginType;\n\t\tif (\n\t\t\tchanges[\"props\"] &&\n\t\t\tthis.props !== changes[\"props\"].previousValue &&\n\t\t\tchanges[\"props\"].previousValue !== undefined\n\t\t) {\n\t\t\tthis.plugin.setOptions({ ...this.options });\n\t\t}\n\t}\n\n\tuninstall(uppy = this.uppy): void {\n\t\tuppy.removePlugin(this.plugin!);\n\t}\n}\n","import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tElementRef,\n\tInput,\n\tinject,\n\ttype OnChanges,\n\ttype OnDestroy,\n\ttype SimpleChanges,\n} from \"@angular/core\";\nimport { Uppy } from \"@uppy/core\";\nimport type { DashboardOptions } from \"@uppy/dashboard\";\nimport Dashboard from \"@uppy/dashboard\";\nimport type { Body, Meta } from \"@uppy/utils/lib/UppyFile\";\nimport { UppyAngularWrapper } from \"../../utils/wrapper\";\n\n@Component({\n\tselector: \"uppy-dashboard\",\n\ttemplate: \"\",\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n})\nexport class DashboardComponent<M extends Meta, B extends Body>\n\textends UppyAngularWrapper<M, B, DashboardOptions<M, B>>\n\timplements OnDestroy, OnChanges\n{\n\tel = inject(ElementRef);\n\n\t@Input() uppy: Uppy<M, B> = new Uppy();\n\t@Input() props: DashboardOptions<M, B> = {};\n\n\t/** Inserted by Angular inject() migration for backwards compatibility */\n\tconstructor(...args: unknown[]);\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tngOnInit() {\n\t\tthis.onMount(\n\t\t\t{ id: \"angular:Dashboard\", inline: true, target: this.el.nativeElement },\n\t\t\tDashboard,\n\t\t);\n\t}\n\n\tngOnChanges(changes: SimpleChanges): void {\n\t\tthis.handleChanges(changes, Dashboard);\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.uninstall();\n\t}\n}\n","import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tElementRef,\n\tInput,\n\tinject,\n\ttype OnChanges,\n\ttype OnDestroy,\n\ttype SimpleChanges,\n} from \"@angular/core\";\nimport { Uppy } from \"@uppy/core\";\nimport type { DashboardOptions } from \"@uppy/dashboard\";\nimport Dashboard from \"@uppy/dashboard\";\nimport type { Body, Meta } from \"@uppy/utils/lib/UppyFile\";\nimport { UppyAngularWrapper } from \"../../utils/wrapper\";\n\n@Component({\n\tselector: \"uppy-dashboard-modal\",\n\ttemplate: \"\",\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n})\nexport class DashboardModalComponent<M extends Meta, B extends Body>\n\textends UppyAngularWrapper<M, B, DashboardOptions<M, B>, Dashboard<M, B>>\n\timplements OnDestroy, OnChanges\n{\n\tel = inject(ElementRef);\n\n\t@Input() uppy: Uppy<M, B> = new Uppy();\n\t@Input() props: DashboardOptions<M, B> = {};\n\t@Input() open: boolean = false;\n\n\t/** Inserted by Angular inject() migration for backwards compatibility */\n\tconstructor(...args: unknown[]);\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tngOnInit() {\n\t\tthis.onMount(\n\t\t\t{\n\t\t\t\tid: \"angular:DashboardModal\",\n\t\t\t\tinline: false,\n\t\t\t\ttarget: this.el.nativeElement,\n\t\t\t},\n\t\t\tDashboard,\n\t\t);\n\t}\n\n\tngOnChanges(changes: SimpleChanges): void {\n\t\tthis.handleChanges(changes, Dashboard);\n\t\t// Handle dashboard-modal specific changes\n\t\tif (changes[\"open\"] && this.open !== changes[\"open\"].previousValue) {\n\t\t\tif (this.open && !changes[\"open\"].previousValue) {\n\t\t\t\tthis.plugin!.openModal();\n\t\t\t}\n\t\t\tif (!this.open && changes[\"open\"].previousValue) {\n\t\t\t\tthis.plugin!.closeModal();\n\t\t\t}\n\t\t}\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.uninstall();\n\t}\n}\n","import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tElementRef,\n\tInput,\n\tinject,\n\ttype OnChanges,\n\ttype OnDestroy,\n\ttype SimpleChanges,\n} from \"@angular/core\";\nimport { Uppy } from \"@uppy/core\";\nimport type { DragDropOptions } from \"@uppy/drag-drop\";\nimport DragDrop from \"@uppy/drag-drop\";\nimport type { Body, Meta } from \"@uppy/utils/lib/UppyFile\";\nimport { UppyAngularWrapper } from \"../../utils/wrapper\";\n\n@Component({\n\tselector: \"uppy-drag-drop\",\n\ttemplate: \"\",\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n})\nexport class DragDropComponent<M extends Meta, B extends Body>\n\textends UppyAngularWrapper<M, B, DragDropOptions>\n\timplements OnDestroy, OnChanges\n{\n\tel = inject(ElementRef);\n\n\t@Input() uppy: Uppy<M, B> = new Uppy();\n\t@Input() props: DragDropOptions = {};\n\n\t/** Inserted by Angular inject() migration for backwards compatibility */\n\tconstructor(...args: unknown[]);\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tngOnInit() {\n\t\tthis.onMount(\n\t\t\t{ id: \"angular:DragDrop\", target: this.el.nativeElement },\n\t\t\tDragDrop,\n\t\t);\n\t}\n\n\tngOnChanges(changes: SimpleChanges): void {\n\t\tthis.handleChanges(changes, DragDrop);\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.uninstall();\n\t}\n}\n","import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tElementRef,\n\tInput,\n\tinject,\n\ttype OnChanges,\n\ttype OnDestroy,\n\ttype SimpleChanges,\n} from \"@angular/core\";\nimport { Uppy } from \"@uppy/core\";\nimport type { ProgressBarOptions } from \"@uppy/progress-bar\";\nimport ProgressBar from \"@uppy/progress-bar\";\nimport type { Body, Meta } from \"@uppy/utils/lib/UppyFile\";\nimport { UppyAngularWrapper } from \"../../utils/wrapper\";\n\n@Component({\n\tselector: \"uppy-progress-bar\",\n\ttemplate: \"\",\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n})\nexport class ProgressBarComponent<M extends Meta, B extends Body>\n\textends UppyAngularWrapper<M, B, ProgressBarOptions>\n\timplements OnDestroy, OnChanges\n{\n\tel = inject(ElementRef);\n\n\t@Input() uppy: Uppy<M, B> = new Uppy();\n\t@Input() props: ProgressBarOptions = {};\n\n\t/** Inserted by Angular inject() migration for backwards compatibility */\n\tconstructor(...args: unknown[]);\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tngOnInit() {\n\t\tthis.onMount(\n\t\t\t{ id: \"angular:ProgressBar\", target: this.el.nativeElement },\n\t\t\tProgressBar,\n\t\t);\n\t}\n\n\tngOnChanges(changes: SimpleChanges): void {\n\t\tthis.handleChanges(changes, ProgressBar);\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.uninstall();\n\t}\n}\n","import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tElementRef,\n\tInput,\n\tinject,\n\ttype OnChanges,\n\ttype OnDestroy,\n\ttype SimpleChanges,\n} from \"@angular/core\";\nimport { Uppy } from \"@uppy/core\";\nimport type { StatusBarOptions } from \"@uppy/status-bar\";\nimport StatusBar from \"@uppy/status-bar\";\nimport type { Body, Meta } from \"@uppy/utils/lib/UppyFile\";\nimport { UppyAngularWrapper } from \"../../utils/wrapper\";\n\n@Component({\n\tselector: \"uppy-status-bar\",\n\ttemplate: \"\",\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n})\nexport class StatusBarComponent<M extends Meta, B extends Body>\n\textends UppyAngularWrapper<M, B, StatusBarOptions>\n\timplements OnDestroy, OnChanges\n{\n\tel = inject(ElementRef);\n\n\t@Input() uppy: Uppy<M, B> = new Uppy();\n\t@Input() props: StatusBarOptions = {};\n\n\t/** Inserted by Angular inject() migration for backwards compatibility */\n\tconstructor(...args: unknown[]);\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tngOnInit() {\n\t\tthis.onMount(\n\t\t\t{ id: \"angular:StatusBar\", target: this.el.nativeElement },\n\t\t\tStatusBar,\n\t\t);\n\t}\n\n\tngOnChanges(changes: SimpleChanges): void {\n\t\tthis.handleChanges(changes, StatusBar);\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.uninstall();\n\t}\n}\n","/*\n * Public API Surface of @uppy/angular\n */\n\nexport { DashboardComponent } from './lib/components/dashboard/dashboard.component'\nexport { DashboardModalComponent } from './lib/components/dashboard-modal/dashboard-modal.component'\nexport { DragDropComponent } from './lib/components/drag-drop/drag-drop.component'\nexport { ProgressBarComponent } from './lib/components/progress-bar/progress-bar.component'\nexport { StatusBarComponent } from './lib/components/status-bar/status-bar.component'\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAOsB,kBAAkB,CAAA;IAYvC,OAAO,CACN,cAA6B,EAC7B,MAA4D,EAAA;QAE5D,IAAI,CAAC,OAAO,GAAG;AACd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A,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIA,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,QAAQ,EAAE,EAAE;oBACZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA;wDAOS,IAAI,EAAA,CAAA;sBAAZ;gBACQ,KAAK,EAAA,CAAA;sBAAb;;;AC7BF;;AAEG;;ACFH;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@uppy/angular" />
5
+ export * from './public-api';
@@ -0,0 +1,18 @@
1
+ import { ElementRef, type OnChanges, type OnDestroy, type SimpleChanges } from "@angular/core";
2
+ import { Uppy } from "@uppy/core";
3
+ import type { DashboardOptions } from "@uppy/dashboard";
4
+ import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
5
+ import { UppyAngularWrapper } from "../../utils/wrapper";
6
+ import * as i0 from "@angular/core";
7
+ export declare class DashboardComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, DashboardOptions<M, B>> implements OnDestroy, OnChanges {
8
+ el: ElementRef<any>;
9
+ uppy: Uppy<M, B>;
10
+ props: DashboardOptions<M, B>;
11
+ /** Inserted by Angular inject() migration for backwards compatibility */
12
+ constructor(...args: unknown[]);
13
+ ngOnInit(): void;
14
+ ngOnChanges(changes: SimpleChanges): void;
15
+ ngOnDestroy(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<DashboardComponent<any, any>, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent<any, any>, "uppy-dashboard", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, true, never>;
18
+ }
@@ -0,0 +1,20 @@
1
+ import { ElementRef, type OnChanges, type OnDestroy, type SimpleChanges } from "@angular/core";
2
+ import { Uppy } from "@uppy/core";
3
+ import type { DashboardOptions } from "@uppy/dashboard";
4
+ import Dashboard from "@uppy/dashboard";
5
+ import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
6
+ import { UppyAngularWrapper } from "../../utils/wrapper";
7
+ import * as i0 from "@angular/core";
8
+ export declare class DashboardModalComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, DashboardOptions<M, B>, Dashboard<M, B>> implements OnDestroy, OnChanges {
9
+ el: ElementRef<any>;
10
+ uppy: Uppy<M, B>;
11
+ props: DashboardOptions<M, B>;
12
+ open: boolean;
13
+ /** Inserted by Angular inject() migration for backwards compatibility */
14
+ constructor(...args: unknown[]);
15
+ ngOnInit(): void;
16
+ ngOnChanges(changes: SimpleChanges): void;
17
+ ngOnDestroy(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<DashboardModalComponent<any, any>, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<DashboardModalComponent<any, any>, "uppy-dashboard-modal", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; "open": { "alias": "open"; "required": false; }; }, {}, never, never, true, never>;
20
+ }
@@ -0,0 +1,18 @@
1
+ import { ElementRef, type OnChanges, type OnDestroy, type SimpleChanges } from "@angular/core";
2
+ import { Uppy } from "@uppy/core";
3
+ import type { DragDropOptions } from "@uppy/drag-drop";
4
+ import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
5
+ import { UppyAngularWrapper } from "../../utils/wrapper";
6
+ import * as i0 from "@angular/core";
7
+ export declare class DragDropComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, DragDropOptions> implements OnDestroy, OnChanges {
8
+ el: ElementRef<any>;
9
+ uppy: Uppy<M, B>;
10
+ props: DragDropOptions;
11
+ /** Inserted by Angular inject() migration for backwards compatibility */
12
+ constructor(...args: unknown[]);
13
+ ngOnInit(): void;
14
+ ngOnChanges(changes: SimpleChanges): void;
15
+ ngOnDestroy(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<DragDropComponent<any, any>, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<DragDropComponent<any, any>, "uppy-drag-drop", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, true, never>;
18
+ }
@@ -0,0 +1,18 @@
1
+ import { ElementRef, type OnChanges, type OnDestroy, type SimpleChanges } from "@angular/core";
2
+ import { Uppy } from "@uppy/core";
3
+ import type { ProgressBarOptions } from "@uppy/progress-bar";
4
+ import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
5
+ import { UppyAngularWrapper } from "../../utils/wrapper";
6
+ import * as i0 from "@angular/core";
7
+ export declare class ProgressBarComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, ProgressBarOptions> implements OnDestroy, OnChanges {
8
+ el: ElementRef<any>;
9
+ uppy: Uppy<M, B>;
10
+ props: ProgressBarOptions;
11
+ /** Inserted by Angular inject() migration for backwards compatibility */
12
+ constructor(...args: unknown[]);
13
+ ngOnInit(): void;
14
+ ngOnChanges(changes: SimpleChanges): void;
15
+ ngOnDestroy(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent<any, any>, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent<any, any>, "uppy-progress-bar", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, true, never>;
18
+ }
@@ -0,0 +1,18 @@
1
+ import { ElementRef, type OnChanges, type OnDestroy, type SimpleChanges } from "@angular/core";
2
+ import { Uppy } from "@uppy/core";
3
+ import type { StatusBarOptions } from "@uppy/status-bar";
4
+ import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
5
+ import { UppyAngularWrapper } from "../../utils/wrapper";
6
+ import * as i0 from "@angular/core";
7
+ export declare class StatusBarComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, StatusBarOptions> implements OnDestroy, OnChanges {
8
+ el: ElementRef<any>;
9
+ uppy: Uppy<M, B>;
10
+ props: StatusBarOptions;
11
+ /** Inserted by Angular inject() migration for backwards compatibility */
12
+ constructor(...args: unknown[]);
13
+ ngOnInit(): void;
14
+ ngOnChanges(changes: SimpleChanges): void;
15
+ ngOnDestroy(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<StatusBarComponent<any, any>, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<StatusBarComponent<any, any>, "uppy-status-bar", never, { "uppy": { "alias": "uppy"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, true, never>;
18
+ }
@@ -0,0 +1,16 @@
1
+ import type { ElementRef, SimpleChanges } from "@angular/core";
2
+ import type { UIPlugin, UIPluginOptions, Uppy } from "@uppy/core";
3
+ import type { DragDropOptions } from "@uppy/drag-drop";
4
+ import type { ProgressBarOptions } from "@uppy/progress-bar";
5
+ import type { StatusBarOptions } from "@uppy/status-bar";
6
+ import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
7
+ export declare abstract class UppyAngularWrapper<M extends Meta, B extends Body, Opts extends UIPluginOptions, PluginType extends UIPlugin<Opts, M, B> = UIPlugin<Opts, M, B>> {
8
+ abstract props: DragDropOptions | StatusBarOptions | ProgressBarOptions;
9
+ abstract el: ElementRef;
10
+ abstract uppy: Uppy<M, B>;
11
+ private options;
12
+ plugin: PluginType | undefined;
13
+ onMount(defaultOptions: Partial<Opts>, plugin: new (uppy: any, opts?: Opts) => UIPlugin<Opts, M, B>): void;
14
+ handleChanges(changes: SimpleChanges, plugin: any): void;
15
+ uninstall(uppy?: Uppy<M, B>): void;
16
+ }
package/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.9.0",
4
+ "version": "0.9.2",
5
5
  "license": "MIT",
6
6
  "homepage": "https://uppy.io",
7
7
  "keywords": [
@@ -18,12 +18,6 @@
18
18
  "type": "git",
19
19
  "url": "git+https://github.com/transloadit/uppy.git"
20
20
  },
21
- "files": [
22
- "dist"
23
- ],
24
- "scripts": {
25
- "prepublishOnly": "rm -fr * && cp -r ../../../dist/uppy/angular .."
26
- },
27
21
  "dependencies": {
28
22
  "tslib": "^2.0.0"
29
23
  },
@@ -37,5 +31,16 @@
37
31
  "@uppy/status-bar": "^4.2.2",
38
32
  "@uppy/utils": "^6.2.2"
39
33
  },
40
- "sideEffects": false
34
+ "sideEffects": false,
35
+ "module": "fesm2022/uppy-angular.mjs",
36
+ "typings": "index.d.ts",
37
+ "exports": {
38
+ "./package.json": {
39
+ "default": "./package.json"
40
+ },
41
+ ".": {
42
+ "types": "./index.d.ts",
43
+ "default": "./fesm2022/uppy-angular.mjs"
44
+ }
45
+ }
41
46
  }
@@ -0,0 +1,5 @@
1
+ export { DashboardComponent } from './lib/components/dashboard/dashboard.component';
2
+ export { DashboardModalComponent } from './lib/components/dashboard-modal/dashboard-modal.component';
3
+ export { DragDropComponent } from './lib/components/drag-drop/drag-drop.component';
4
+ export { ProgressBarComponent } from './lib/components/progress-bar/progress-bar.component';
5
+ export { StatusBarComponent } from './lib/components/status-bar/status-bar.component';
package/CHANGELOG.md DELETED
@@ -1,18 +0,0 @@
1
- # @uppy/angular
2
-
3
- ## 0.9.0
4
-
5
- ### Minor Changes
6
-
7
- - 8b8ab01: Declare components as standalone & support 20.x
8
-
9
- ### Patch Changes
10
-
11
- - 1b1a9e3: Define "files" in package.json
12
- - Updated dependencies [1b1a9e3]
13
- - @uppy/progress-bar@4.3.2
14
- - @uppy/status-bar@4.2.2
15
- - @uppy/dashboard@4.4.2
16
- - @uppy/drag-drop@4.2.2
17
- - @uppy/utils@6.2.2
18
- - @uppy/core@4.5.2