@uppy/angular 0.8.0 → 0.9.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.
- package/CHANGELOG.md +18 -0
- package/package.json +16 -21
- package/.eslintrc.json +0 -46
- package/fesm2022/uppy-angular.mjs +0 -225
- package/fesm2022/uppy-angular.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/components/dashboard/dashboard.component.d.ts +0 -18
- package/lib/components/dashboard-modal/dashboard-modal.component.d.ts +0 -20
- package/lib/components/drag-drop/drag-drop.component.d.ts +0 -18
- package/lib/components/progress-bar/progress-bar.component.d.ts +0 -18
- package/lib/components/status-bar/status-bar.component.d.ts +0 -18
- package/lib/utils/wrapper.d.ts +0 -16
- package/public-api.d.ts +0 -5
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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
|
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.
|
|
4
|
+
"version": "0.9.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://uppy.io",
|
|
7
7
|
"keywords": [
|
|
@@ -18,29 +18,24 @@
|
|
|
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
|
+
},
|
|
21
27
|
"dependencies": {
|
|
22
28
|
"tslib": "^2.0.0"
|
|
23
29
|
},
|
|
24
30
|
"peerDependencies": {
|
|
25
|
-
"@angular/common": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
26
|
-
"@angular/core": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
27
|
-
"@uppy/core": "^4.
|
|
28
|
-
"@uppy/dashboard": "^4.
|
|
29
|
-
"@uppy/drag-drop": "^4.
|
|
30
|
-
"@uppy/progress-bar": "^4.2
|
|
31
|
-
"@uppy/status-bar": "^4.
|
|
32
|
-
"@uppy/utils": "^6.
|
|
31
|
+
"@angular/common": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
|
|
32
|
+
"@angular/core": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
|
|
33
|
+
"@uppy/core": "^4.5.2",
|
|
34
|
+
"@uppy/dashboard": "^4.4.2",
|
|
35
|
+
"@uppy/drag-drop": "^4.2.2",
|
|
36
|
+
"@uppy/progress-bar": "^4.3.2",
|
|
37
|
+
"@uppy/status-bar": "^4.2.2",
|
|
38
|
+
"@uppy/utils": "^6.2.2"
|
|
33
39
|
},
|
|
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
|
-
}
|
|
40
|
+
"sideEffects": false
|
|
46
41
|
}
|
package/.eslintrc.json
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,225 +0,0 @@
|
|
|
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 StatusBar from '@uppy/status-bar';
|
|
5
|
-
import ProgressBar from '@uppy/progress-bar';
|
|
6
|
-
import DragDrop from '@uppy/drag-drop';
|
|
7
|
-
import Dashboard from '@uppy/dashboard';
|
|
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 StatusBarComponent 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:StatusBar', target: this.el.nativeElement }, StatusBar);
|
|
49
|
-
}
|
|
50
|
-
ngOnChanges(changes) {
|
|
51
|
-
this.handleChanges(changes, StatusBar);
|
|
52
|
-
}
|
|
53
|
-
ngOnDestroy() {
|
|
54
|
-
this.uninstall();
|
|
55
|
-
}
|
|
56
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: StatusBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
57
|
-
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 }); }
|
|
58
|
-
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: StatusBarComponent, decorators: [{
|
|
60
|
-
type: Component,
|
|
61
|
-
args: [{
|
|
62
|
-
selector: 'uppy-status-bar',
|
|
63
|
-
template: '',
|
|
64
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
65
|
-
}]
|
|
66
|
-
}], ctorParameters: () => [], propDecorators: { uppy: [{
|
|
67
|
-
type: Input
|
|
68
|
-
}], props: [{
|
|
69
|
-
type: Input
|
|
70
|
-
}] } });
|
|
71
|
-
|
|
72
|
-
class ProgressBarComponent extends UppyAngularWrapper {
|
|
73
|
-
constructor() {
|
|
74
|
-
super();
|
|
75
|
-
this.el = inject(ElementRef);
|
|
76
|
-
this.uppy = new Uppy();
|
|
77
|
-
this.props = {};
|
|
78
|
-
}
|
|
79
|
-
ngOnInit() {
|
|
80
|
-
this.onMount({ id: 'angular:ProgressBar', target: this.el.nativeElement }, ProgressBar);
|
|
81
|
-
}
|
|
82
|
-
ngOnChanges(changes) {
|
|
83
|
-
this.handleChanges(changes, ProgressBar);
|
|
84
|
-
}
|
|
85
|
-
ngOnDestroy() {
|
|
86
|
-
this.uninstall();
|
|
87
|
-
}
|
|
88
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
89
|
-
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 }); }
|
|
90
|
-
}
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ProgressBarComponent, decorators: [{
|
|
92
|
-
type: Component,
|
|
93
|
-
args: [{
|
|
94
|
-
selector: 'uppy-progress-bar',
|
|
95
|
-
template: '',
|
|
96
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
97
|
-
}]
|
|
98
|
-
}], ctorParameters: () => [], propDecorators: { uppy: [{
|
|
99
|
-
type: Input
|
|
100
|
-
}], props: [{
|
|
101
|
-
type: Input
|
|
102
|
-
}] } });
|
|
103
|
-
|
|
104
|
-
class DragDropComponent extends UppyAngularWrapper {
|
|
105
|
-
constructor() {
|
|
106
|
-
super();
|
|
107
|
-
this.el = inject(ElementRef);
|
|
108
|
-
this.uppy = new Uppy();
|
|
109
|
-
this.props = {};
|
|
110
|
-
}
|
|
111
|
-
ngOnInit() {
|
|
112
|
-
this.onMount({ id: 'angular:DragDrop', target: this.el.nativeElement }, DragDrop);
|
|
113
|
-
}
|
|
114
|
-
ngOnChanges(changes) {
|
|
115
|
-
this.handleChanges(changes, DragDrop);
|
|
116
|
-
}
|
|
117
|
-
ngOnDestroy() {
|
|
118
|
-
this.uninstall();
|
|
119
|
-
}
|
|
120
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DragDropComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
121
|
-
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 }); }
|
|
122
|
-
}
|
|
123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DragDropComponent, decorators: [{
|
|
124
|
-
type: Component,
|
|
125
|
-
args: [{
|
|
126
|
-
selector: 'uppy-drag-drop',
|
|
127
|
-
template: '',
|
|
128
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
129
|
-
}]
|
|
130
|
-
}], ctorParameters: () => [], propDecorators: { uppy: [{
|
|
131
|
-
type: Input
|
|
132
|
-
}], props: [{
|
|
133
|
-
type: Input
|
|
134
|
-
}] } });
|
|
135
|
-
|
|
136
|
-
class DashboardComponent extends UppyAngularWrapper {
|
|
137
|
-
constructor() {
|
|
138
|
-
super();
|
|
139
|
-
this.el = inject(ElementRef);
|
|
140
|
-
this.uppy = new Uppy();
|
|
141
|
-
this.props = {};
|
|
142
|
-
}
|
|
143
|
-
ngOnInit() {
|
|
144
|
-
this.onMount({ id: 'angular:Dashboard', inline: true, target: this.el.nativeElement }, Dashboard);
|
|
145
|
-
}
|
|
146
|
-
ngOnChanges(changes) {
|
|
147
|
-
this.handleChanges(changes, Dashboard);
|
|
148
|
-
}
|
|
149
|
-
ngOnDestroy() {
|
|
150
|
-
this.uninstall();
|
|
151
|
-
}
|
|
152
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DashboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
153
|
-
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 }); }
|
|
154
|
-
}
|
|
155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DashboardComponent, decorators: [{
|
|
156
|
-
type: Component,
|
|
157
|
-
args: [{
|
|
158
|
-
selector: 'uppy-dashboard',
|
|
159
|
-
template: '',
|
|
160
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
161
|
-
}]
|
|
162
|
-
}], ctorParameters: () => [], propDecorators: { uppy: [{
|
|
163
|
-
type: Input
|
|
164
|
-
}], props: [{
|
|
165
|
-
type: Input
|
|
166
|
-
}] } });
|
|
167
|
-
|
|
168
|
-
class DashboardModalComponent extends UppyAngularWrapper {
|
|
169
|
-
constructor() {
|
|
170
|
-
super();
|
|
171
|
-
this.el = inject(ElementRef);
|
|
172
|
-
this.uppy = new Uppy();
|
|
173
|
-
this.props = {};
|
|
174
|
-
this.open = false;
|
|
175
|
-
}
|
|
176
|
-
ngOnInit() {
|
|
177
|
-
this.onMount({
|
|
178
|
-
id: 'angular:DashboardModal',
|
|
179
|
-
inline: false,
|
|
180
|
-
target: this.el.nativeElement,
|
|
181
|
-
}, Dashboard);
|
|
182
|
-
}
|
|
183
|
-
ngOnChanges(changes) {
|
|
184
|
-
this.handleChanges(changes, Dashboard);
|
|
185
|
-
// Handle dashboard-modal specific changes
|
|
186
|
-
if (changes['open'] && this.open !== changes['open'].previousValue) {
|
|
187
|
-
if (this.open && !changes['open'].previousValue) {
|
|
188
|
-
this.plugin.openModal();
|
|
189
|
-
}
|
|
190
|
-
if (!this.open && changes['open'].previousValue) {
|
|
191
|
-
this.plugin.closeModal();
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
ngOnDestroy() {
|
|
196
|
-
this.uninstall();
|
|
197
|
-
}
|
|
198
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DashboardModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
199
|
-
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 }); }
|
|
200
|
-
}
|
|
201
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DashboardModalComponent, decorators: [{
|
|
202
|
-
type: Component,
|
|
203
|
-
args: [{
|
|
204
|
-
selector: 'uppy-dashboard-modal',
|
|
205
|
-
template: '',
|
|
206
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
207
|
-
}]
|
|
208
|
-
}], ctorParameters: () => [], propDecorators: { uppy: [{
|
|
209
|
-
type: Input
|
|
210
|
-
}], props: [{
|
|
211
|
-
type: Input
|
|
212
|
-
}], open: [{
|
|
213
|
-
type: Input
|
|
214
|
-
}] } });
|
|
215
|
-
|
|
216
|
-
/*
|
|
217
|
-
* Public API Surface of @uppy/angular
|
|
218
|
-
*/
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Generated bundle index. Do not edit.
|
|
222
|
-
*/
|
|
223
|
-
|
|
224
|
-
export { DashboardComponent, DashboardModalComponent, DragDropComponent, ProgressBarComponent, StatusBarComponent };
|
|
225
|
-
//# sourceMappingURL=uppy-angular.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uppy-angular.mjs","sources":["../../../../projects/uppy/angular/src/lib/utils/wrapper.ts","../../../../projects/uppy/angular/src/lib/components/status-bar/status-bar.component.ts","../../../../projects/uppy/angular/src/lib/components/progress-bar/progress-bar.component.ts","../../../../projects/uppy/angular/src/lib/components/drag-drop/drag-drop.component.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/public-api.ts","../../../../projects/uppy/angular/src/uppy-angular.ts"],"sourcesContent":["import type { Uppy, UIPlugin, UIPluginOptions } from '@uppy/core';\nimport type { ElementRef, SimpleChanges } from '@angular/core';\nimport type { DragDropOptions } from '@uppy/drag-drop';\nimport type { StatusBarOptions } from '@uppy/status-bar';\nimport type { ProgressBarOptions } from '@uppy/progress-bar';\nimport { Body, Meta } from '@uppy/utils/lib/UppyFile';\n\nexport abstract class UppyAngularWrapper<\n M extends Meta,\n B extends Body,\n Opts extends UIPluginOptions,\n PluginType extends UIPlugin<Opts, M, B> = UIPlugin<Opts, M, B>,\n> {\n abstract props: DragDropOptions | StatusBarOptions | ProgressBarOptions;\n abstract el: ElementRef;\n abstract uppy: Uppy<M, B>;\n private options: any;\n plugin: PluginType | undefined;\n\n onMount(\n defaultOptions: Partial<Opts>,\n plugin: new (uppy: any, opts?: Opts) => UIPlugin<Opts, M, B>,\n ) {\n this.options = {\n ...defaultOptions,\n ...this.props,\n };\n\n this.uppy.use(plugin, this.options);\n this.plugin = this.uppy.getPlugin(this.options.id) as PluginType;\n }\n\n handleChanges(changes: SimpleChanges, plugin: any): void {\n // Without the last part of this conditional, it tries to uninstall before the plugin is mounted\n if (\n changes['uppy'] &&\n this.uppy !== changes['uppy'].previousValue &&\n changes['uppy'].previousValue !== undefined\n ) {\n this.uninstall(changes['uppy'].previousValue);\n // @ts-expect-error The options correspond to the plugin, I swear\n this.uppy.use(plugin, this.options);\n }\n this.options = { ...this.options, ...this.props };\n this.plugin = this.uppy.getPlugin(this.options.id) as PluginType;\n if (\n changes['props'] &&\n this.props !== changes['props'].previousValue &&\n changes['props'].previousValue !== undefined\n ) {\n this.plugin.setOptions({ ...this.options });\n }\n }\n\n uninstall(uppy = this.uppy): void {\n uppy.removePlugin(this.plugin!);\n }\n}\n","import { Component, ChangeDetectionStrategy, Input, ElementRef, OnDestroy, OnChanges, SimpleChanges, inject } from '@angular/core';\nimport { Uppy } from '@uppy/core';\nimport StatusBar from '@uppy/status-bar';\nimport type { StatusBarOptions } from '@uppy/status-bar';\nimport { Body, Meta } from '@uppy/utils/lib/UppyFile';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\n\n@Component({\n selector: 'uppy-status-bar',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class StatusBarComponent<M extends Meta, B extends Body>\n extends UppyAngularWrapper<M, B, StatusBarOptions>\n implements OnDestroy, OnChanges\n{\n el = inject(ElementRef);\n\n @Input() uppy: Uppy<M, B> = new Uppy();\n @Input() props: StatusBarOptions = {};\n\n /** Inserted by Angular inject() migration for backwards compatibility */\n constructor(...args: unknown[]);\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n this.onMount(\n { id: 'angular:StatusBar', target: this.el.nativeElement },\n StatusBar,\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, StatusBar);\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n}\n","import { Component, ChangeDetectionStrategy, ElementRef, Input, OnDestroy, OnChanges, SimpleChanges, inject } from '@angular/core';\nimport { Uppy } from '@uppy/core';\nimport ProgressBar from '@uppy/progress-bar';\nimport type { ProgressBarOptions } from '@uppy/progress-bar';\nimport { Body, Meta } from '@uppy/utils/lib/UppyFile';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\n\n@Component({\n selector: 'uppy-progress-bar',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ProgressBarComponent<M extends Meta, B extends Body>\n extends UppyAngularWrapper<M, B, ProgressBarOptions>\n implements OnDestroy, OnChanges\n{\n el = inject(ElementRef);\n\n @Input() uppy: Uppy<M, B> = new Uppy();\n @Input() props: ProgressBarOptions = {};\n\n /** Inserted by Angular inject() migration for backwards compatibility */\n constructor(...args: unknown[]);\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n this.onMount(\n { id: 'angular:ProgressBar', target: this.el.nativeElement },\n ProgressBar,\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, ProgressBar);\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n}\n","import { Component, ChangeDetectionStrategy, Input, OnDestroy, OnChanges, SimpleChanges, ElementRef, inject } from '@angular/core';\nimport { Uppy } from '@uppy/core';\nimport DragDrop from '@uppy/drag-drop';\nimport type { DragDropOptions } from '@uppy/drag-drop';\nimport { Body, Meta } from '@uppy/utils/lib/UppyFile';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\n\n@Component({\n selector: 'uppy-drag-drop',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DragDropComponent<M extends Meta, B extends Body>\n extends UppyAngularWrapper<M, B, DragDropOptions>\n implements OnDestroy, OnChanges\n{\n el = inject(ElementRef);\n\n @Input() uppy: Uppy<M, B> = new Uppy();\n @Input() props: DragDropOptions = {};\n\n /** Inserted by Angular inject() migration for backwards compatibility */\n constructor(...args: unknown[]);\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n this.onMount(\n { id: 'angular:DragDrop', target: this.el.nativeElement },\n DragDrop,\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, DragDrop);\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n}\n","import { Component, ChangeDetectionStrategy, ElementRef, Input, OnDestroy, OnChanges, SimpleChanges, inject } from '@angular/core';\nimport Dashboard from '@uppy/dashboard';\nimport type { DashboardOptions } from '@uppy/dashboard';\nimport { Uppy } from '@uppy/core';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\nimport { Body, Meta } from '@uppy/utils/lib/UppyFile';\n\n@Component({\n selector: 'uppy-dashboard',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DashboardComponent<M extends Meta, B extends Body>\n extends UppyAngularWrapper<M, B, DashboardOptions<M,B>>\n implements OnDestroy, OnChanges\n{\n el = inject(ElementRef);\n\n @Input() uppy: Uppy<M, B> = new Uppy();\n @Input() props: DashboardOptions<M, B> = {};\n\n /** Inserted by Angular inject() migration for backwards compatibility */\n constructor(...args: unknown[]);\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n this.onMount(\n { id: 'angular:Dashboard', inline: true, target: this.el.nativeElement },\n Dashboard,\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, Dashboard);\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n}\n","import { Component, ChangeDetectionStrategy, ElementRef, Input, OnDestroy, OnChanges, SimpleChanges, inject } from '@angular/core';\nimport Dashboard from '@uppy/dashboard';\nimport type { DashboardOptions } from '@uppy/dashboard';\nimport { Uppy } from '@uppy/core';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\nimport { Body, Meta } from '@uppy/utils/lib/UppyFile';\n\n@Component({\n selector: 'uppy-dashboard-modal',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DashboardModalComponent<M extends Meta, B extends Body>\n extends UppyAngularWrapper<M, B, DashboardOptions<M, B>, Dashboard<M, B>>\n implements OnDestroy, OnChanges\n{\n el = inject(ElementRef);\n\n @Input() uppy: Uppy<M, B> = new Uppy();\n @Input() props: DashboardOptions<M, B> = {};\n @Input() open: boolean = false;\n\n /** Inserted by Angular inject() migration for backwards compatibility */\n constructor(...args: unknown[]);\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n this.onMount(\n {\n id: 'angular:DashboardModal',\n inline: false,\n target: this.el.nativeElement,\n },\n Dashboard,\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, Dashboard);\n // Handle dashboard-modal specific changes\n if (changes['open'] && this.open !== changes['open'].previousValue) {\n if (this.open && !changes['open'].previousValue) {\n this.plugin!.openModal();\n }\n if (!this.open && changes['open'].previousValue) {\n this.plugin!.closeModal();\n }\n }\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n}\n","/*\n * Public API Surface of @uppy/angular\n */\n\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":[],"mappings":";;;;;;;;MAOsB,kBAAkB,CAAA;IAYtC,OAAO,CACL,cAA6B,EAC7B,MAA4D,EAAA;QAE5D,IAAI,CAAC,OAAO,GAAG;AACb,YAAA,GAAG,cAAc;YACjB,GAAG,IAAI,CAAC,KAAK;SACd;QAED,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC;AACnC,QAAA,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAe;;IAGlE,aAAa,CAAC,OAAsB,EAAE,MAAW,EAAA;;QAE/C,IACE,OAAO,CAAC,MAAM,CAAC;YACf,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,aAAa;YAC3C,OAAO,CAAC,MAAM,CAAC,CAAC,aAAa,KAAK,SAAS,EAC3C;YACA,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC;;YAE7C,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,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C,IAAI,CAAC,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE;AAC/C,gBAAA,IAAI,CAAC,MAAO,CAAC,UAAU,EAAE;;;;IAK/B,WAAW,GAAA;QACT,IAAI,CAAC,SAAS,EAAE;;8GA1CP,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,uBAAuB,oLAHxB,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGD,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBALnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,QAAQ,EAAE,EAAE;oBACZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA;wDAOU,IAAI,EAAA,CAAA;sBAAZ;gBACQ,KAAK,EAAA,CAAA;sBAAb;gBACQ,IAAI,EAAA,CAAA;sBAAZ;;;ACpBH;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import type { DashboardOptions } from '@uppy/dashboard';
|
|
3
|
-
import { Uppy } from '@uppy/core';
|
|
4
|
-
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
5
|
-
import { Body, Meta } from '@uppy/utils/lib/UppyFile';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DashboardComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, DashboardOptions<M, B>> implements OnDestroy, OnChanges {
|
|
8
|
-
el: ElementRef<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
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import Dashboard from '@uppy/dashboard';
|
|
3
|
-
import type { DashboardOptions } from '@uppy/dashboard';
|
|
4
|
-
import { Uppy } from '@uppy/core';
|
|
5
|
-
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
6
|
-
import { Body, Meta } from '@uppy/utils/lib/UppyFile';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class DashboardModalComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, DashboardOptions<M, B>, Dashboard<M, B>> implements OnDestroy, OnChanges {
|
|
9
|
-
el: ElementRef<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
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnChanges, SimpleChanges, ElementRef } from '@angular/core';
|
|
2
|
-
import { Uppy } from '@uppy/core';
|
|
3
|
-
import type { DragDropOptions } from '@uppy/drag-drop';
|
|
4
|
-
import { Body, Meta } from '@uppy/utils/lib/UppyFile';
|
|
5
|
-
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DragDropComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, DragDropOptions> implements OnDestroy, OnChanges {
|
|
8
|
-
el: ElementRef<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
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { Uppy } from '@uppy/core';
|
|
3
|
-
import type { ProgressBarOptions } from '@uppy/progress-bar';
|
|
4
|
-
import { Body, Meta } from '@uppy/utils/lib/UppyFile';
|
|
5
|
-
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class ProgressBarComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, ProgressBarOptions> implements OnDestroy, OnChanges {
|
|
8
|
-
el: ElementRef<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
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { Uppy } from '@uppy/core';
|
|
3
|
-
import type { StatusBarOptions } from '@uppy/status-bar';
|
|
4
|
-
import { Body, Meta } from '@uppy/utils/lib/UppyFile';
|
|
5
|
-
import { UppyAngularWrapper } from '../../utils/wrapper';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class StatusBarComponent<M extends Meta, B extends Body> extends UppyAngularWrapper<M, B, StatusBarOptions> implements OnDestroy, OnChanges {
|
|
8
|
-
el: ElementRef<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
|
-
}
|
package/lib/utils/wrapper.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Uppy, UIPlugin, UIPluginOptions } from '@uppy/core';
|
|
2
|
-
import type { ElementRef, SimpleChanges } from '@angular/core';
|
|
3
|
-
import type { DragDropOptions } from '@uppy/drag-drop';
|
|
4
|
-
import type { StatusBarOptions } from '@uppy/status-bar';
|
|
5
|
-
import type { ProgressBarOptions } from '@uppy/progress-bar';
|
|
6
|
-
import { Body, Meta } from '@uppy/utils/lib/UppyFile';
|
|
7
|
-
export declare abstract class UppyAngularWrapper<M extends Meta, B extends Body, Opts extends UIPluginOptions, PluginType extends UIPlugin<Opts, M, B> = UIPlugin<Opts, M, B>> {
|
|
8
|
-
abstract props: DragDropOptions | StatusBarOptions | ProgressBarOptions;
|
|
9
|
-
abstract el: ElementRef;
|
|
10
|
-
abstract uppy: Uppy<M, B>;
|
|
11
|
-
private options;
|
|
12
|
-
plugin: PluginType | undefined;
|
|
13
|
-
onMount(defaultOptions: Partial<Opts>, plugin: new (uppy: any, opts?: Opts) => UIPlugin<Opts, M, B>): void;
|
|
14
|
-
handleChanges(changes: SimpleChanges, plugin: any): void;
|
|
15
|
-
uninstall(uppy?: Uppy<M, B>): void;
|
|
16
|
-
}
|
package/public-api.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { StatusBarComponent } from './lib/components/status-bar/status-bar.component';
|
|
2
|
-
export { ProgressBarComponent } from './lib/components/progress-bar/progress-bar.component';
|
|
3
|
-
export { DragDropComponent } from './lib/components/drag-drop/drag-drop.component';
|
|
4
|
-
export { DashboardComponent } from './lib/components/dashboard/dashboard.component';
|
|
5
|
-
export { DashboardModalComponent } from './lib/components/dashboard-modal/dashboard-modal.component';
|