@uppy/angular 0.2.8 → 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 (47) hide show
  1. package/.eslintrc.json +52 -0
  2. package/esm2020/lib/components/dashboard/dashboard.component.mjs +37 -0
  3. package/{dist/angular/esm2020 → esm2020}/lib/components/dashboard/dashboard.module.mjs +1 -1
  4. package/esm2020/lib/components/dashboard-modal/dashboard-modal.component.mjs +53 -0
  5. package/{dist/angular/esm2020 → esm2020}/lib/components/dashboard-modal/dashboard-modal.module.mjs +1 -1
  6. package/esm2020/lib/components/drag-drop/drag-drop.component.mjs +37 -0
  7. package/{dist/angular/esm2020 → esm2020}/lib/components/drag-drop/drag-drop.module.mjs +1 -1
  8. package/esm2020/lib/components/progress-bar/progress-bar.component.mjs +37 -0
  9. package/{dist/angular/esm2020 → esm2020}/lib/components/progress-bar/progress-bar.module.mjs +1 -1
  10. package/esm2020/lib/components/status-bar/status-bar.component.mjs +37 -0
  11. package/{dist/angular/esm2020 → esm2020}/lib/components/status-bar/status-bar.module.mjs +1 -1
  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 +18 -6
  16. package/fesm2015/uppy-angular.mjs.map +1 -0
  17. package/{dist/angular/fesm2020 → fesm2020}/uppy-angular.mjs +18 -6
  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 -16
  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-modal/dashboard-modal.component.mjs +0 -49
  38. package/dist/angular/esm2020/lib/components/drag-drop/drag-drop.component.mjs +0 -34
  39. package/dist/angular/esm2020/lib/components/progress-bar/progress-bar.component.mjs +0 -34
  40. package/dist/angular/esm2020/lib/components/status-bar/status-bar.component.mjs +0 -34
  41. package/dist/angular/esm2020/lib/utils/wrapper.mjs +0 -27
  42. package/dist/angular/esm2020/public-api.mjs +0 -14
  43. package/dist/angular/esm2020/uppy-angular.mjs +0 -5
  44. package/dist/angular/fesm2015/uppy-angular.mjs.map +0 -1
  45. package/dist/angular/fesm2020/uppy-angular.mjs.map +0 -1
  46. package/dist/angular/lib/utils/wrapper.d.ts +0 -12
  47. package/dist/angular/package.json +0 -54
@@ -1 +0,0 @@
1
- {"version":3,"file":"uppy-angular.mjs","sources":["../../../projects/angular/src/lib/utils/wrapper.ts","../../../projects/angular/src/lib/components/dashboard/dashboard.component.ts","../../../projects/angular/src/lib/components/dashboard/dashboard.module.ts","../../../projects/angular/src/lib/components/dashboard-modal/dashboard-modal.component.ts","../../../projects/angular/src/lib/components/dashboard-modal/dashboard-modal.module.ts","../../../projects/angular/src/lib/components/progress-bar/progress-bar.component.ts","../../../projects/angular/src/lib/components/progress-bar/progress-bar.module.ts","../../../projects/angular/src/lib/components/status-bar/status-bar.component.ts","../../../projects/angular/src/lib/components/status-bar/status-bar.module.ts","../../../projects/angular/src/lib/components/drag-drop/drag-drop.component.ts","../../../projects/angular/src/lib/components/drag-drop/drag-drop.module.ts","../../../projects/angular/src/public-api.ts","../../../projects/angular/src/uppy-angular.ts"],"sourcesContent":["import { Uppy, UIPlugin } from '@uppy/core';\nimport { ElementRef, SimpleChanges } from '@angular/core';\n\nexport abstract class UppyAngularWrapper<PluginType extends UIPlugin = UIPlugin> {\n abstract props;\n abstract el: ElementRef\n abstract uppy: Uppy;\n private options: any;\n plugin: PluginType;\n\n onMount(defaultOptions, plugin) {\n this.options = {\n ...defaultOptions,\n ...this.props,\n };\n\n this.uppy.use(plugin, this.options);\n this.plugin = this.uppy.getPlugin(this.options.id) as PluginType;\n }\n\n handleChanges(changes: SimpleChanges, plugin: any): void {\n // Without the last part of this conditional, it tries to uninstall before the plugin is mounted\n if (changes.uppy && this.uppy !== changes.uppy.previousValue && changes.uppy.previousValue !== undefined) {\n this.uninstall(changes.uppy.previousValue);\n this.uppy.use(plugin, this.options);\n }\n this.options = { ...this.options, ...this.props }\n this.plugin = this.uppy.getPlugin(this.options.id) as PluginType;\n if(changes.props && this.props !== changes.props.previousValue && changes.props.previousValue !== undefined) {\n this.plugin.setOptions({ ...this.options })\n }\n }\n\n uninstall(uppy = this.uppy): void {\n console.log('Uninstalling...')\n uppy.removePlugin(this.plugin);\n }\n\n}\n","import { Component, ChangeDetectionStrategy, ElementRef, Input, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';\nimport Dashboard from '@uppy/dashboard';\nimport type { DashboardOptions } from '@uppy/dashboard';\nimport { Uppy } from '@uppy/core';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\n\n@Component({\n selector: 'uppy-dashboard',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DashboardComponent extends UppyAngularWrapper implements OnDestroy, OnChanges {\n @Input() uppy: Uppy;\n @Input() props: DashboardOptions;\n\n constructor(public el: ElementRef) {\n super();\n }\n\n ngOnInit() {\n this.onMount({ id: 'angular:Dashboard', inline: true, target: this.el.nativeElement }, Dashboard)\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, Dashboard);\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { DashboardComponent } from './dashboard.component';\n\nexport const COMPONENTS = [DashboardComponent];\n@NgModule({\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class UppyAngularDashboardModule { }\n","import { Component, ChangeDetectionStrategy, ElementRef, Input, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';\nimport Dashboard from '@uppy/dashboard';\nimport type { DashboardOptions } from '@uppy/dashboard';\nimport { Uppy } from '@uppy/core';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\n\n@Component({\n selector: 'uppy-dashboard-modal',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DashboardModalComponent extends UppyAngularWrapper<Dashboard> implements OnDestroy, OnChanges {\n @Input() uppy: Uppy;\n @Input() props: DashboardOptions;\n @Input() open: boolean;\n\n constructor(public el: ElementRef) {\n super();\n }\n\n ngOnInit() {\n this.onMount({\n id: 'angular:DashboardModal',\n inline: false,\n target: this.el.nativeElement\n }, Dashboard)\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, Dashboard);\n // Handle dashboard-modal specific changes\n if (changes.open && this.open !== changes.open.previousValue) {\n if(this.open && !changes.open.previousValue) {\n this.plugin.openModal()\n }\n if (!this.open && changes.open.previousValue) {\n this.plugin.closeModal()\n }\n }\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { DashboardModalComponent } from './dashboard-modal.component';\n\nexport const COMPONENTS = [DashboardModalComponent];\n@NgModule({\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class UppyAngularDashboardModalModule { }\n","import { Component, ChangeDetectionStrategy, ElementRef, Input, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';\nimport { Uppy } from '@uppy/core';\nimport ProgressBar from '@uppy/progress-bar';\nimport type { ProgressBarOptions } from '@uppy/progress-bar';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\n\n@Component({\n selector: 'uppy-progress-bar',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ProgressBarComponent extends UppyAngularWrapper implements OnDestroy, OnChanges {\n @Input() uppy: Uppy;\n @Input() props: ProgressBarOptions;\n\n constructor(public el: ElementRef) {\n super();\n }\n\n ngOnInit() {\n this.onMount({ id: 'angular:ProgressBar', target: this.el.nativeElement }, ProgressBar)\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, ProgressBar);\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { ProgressBarComponent } from './progress-bar.component';\n\nexport const COMPONENTS = [ProgressBarComponent];\n@NgModule({\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class UppyAngularProgressBarModule { }\n","import { Component, ChangeDetectionStrategy, Input, ElementRef, SimpleChange, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';\nimport { Uppy } from '@uppy/core';\nimport StatusBar from '@uppy/status-bar';\nimport type { StatusBarOptions } from '@uppy/status-bar';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\n\n@Component({\n selector: 'uppy-status-bar',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class StatusBarComponent extends UppyAngularWrapper implements OnDestroy, OnChanges {\n @Input() uppy: Uppy;\n @Input() props: StatusBarOptions;\n\n constructor(public el: ElementRef) {\n super();\n }\n\n ngOnInit() {\n this.onMount({ id: 'angular:StatusBar', target: this.el.nativeElement }, StatusBar)\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, StatusBar);\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { StatusBarComponent } from './status-bar.component';\n\nexport const COMPONENTS = [StatusBarComponent];\n@NgModule({\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class UppyAngularStatusBarModule { }\n","import { Component, ChangeDetectionStrategy, Input, OnDestroy, OnChanges, SimpleChanges, ElementRef } from '@angular/core';\nimport { Uppy } from '@uppy/core';\nimport DragDrop from '@uppy/drag-drop';\nimport type { DragDropOptions } from '@uppy/drag-drop';\nimport { UppyAngularWrapper } from '../../utils/wrapper';\n\n@Component({\n selector: 'uppy-drag-drop',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DragDropComponent extends UppyAngularWrapper implements OnDestroy, OnChanges {\n @Input() uppy: Uppy;\n @Input() props: DragDropOptions;\n\n constructor(public el: ElementRef) {\n super();\n }\n\n ngOnInit() {\n this.onMount({ id: 'angular:DragDrop', target: this.el.nativeElement }, DragDrop)\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.handleChanges(changes, DragDrop);\n }\n\n ngOnDestroy(): void {\n this.uninstall();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { DragDropComponent } from './drag-drop.component';\n\nexport const COMPONENTS = [DragDropComponent];\n@NgModule({\n declarations: COMPONENTS,\n exports: COMPONENTS\n})\nexport class UppyAngularDragDropModule { }\n","/*\n * Public API Surface of @uppy/angular\n */\n\nexport { UppyAngularDashboardModule } from './lib/components/dashboard/dashboard.module'\nexport { UppyAngularDashboardModalModule } from './lib/components/dashboard-modal/dashboard-modal.module'\nexport { UppyAngularProgressBarModule } from './lib/components/progress-bar/progress-bar.module'\nexport { UppyAngularStatusBarModule } from './lib/components/status-bar/status-bar.module'\nexport { UppyAngularDragDropModule } from './lib/components/drag-drop/drag-drop.module'\nexport { StatusBarComponent } from './lib/components/status-bar/status-bar.component'\nexport { ProgressBarComponent } from './lib/components/progress-bar/progress-bar.component'\nexport { DragDropComponent } from './lib/components/drag-drop/drag-drop.component'\nexport { DashboardComponent } from './lib/components/dashboard/dashboard.component'\nexport { DashboardModalComponent } from './lib/components/dashboard-modal/dashboard-modal.component'\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["COMPONENTS"],"mappings":";;;;;;;MAGsB,kBAAkB;IAOpC,OAAO,CAAC,cAAc,EAAE,MAAM;QAC5B,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,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,aAAa,KAAK,SAAS,EAAE;YACtG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YAC3C,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;SACvC;QACD,IAAI,CAAC,OAAO,GAAG,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,CAAA;QACjD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAe,CAAC;QACjE,IAAG,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC,KAAK,CAA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AE;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,12 +0,0 @@
1
- import { Uppy, UIPlugin } from '@uppy/core';
2
- import { ElementRef, SimpleChanges } from '@angular/core';
3
- export declare abstract class UppyAngularWrapper<PluginType extends UIPlugin = UIPlugin> {
4
- abstract props: any;
5
- abstract el: ElementRef;
6
- abstract uppy: Uppy;
7
- private options;
8
- plugin: PluginType;
9
- onMount(defaultOptions: any, plugin: any): void;
10
- handleChanges(changes: SimpleChanges, plugin: any): void;
11
- uninstall(uppy?: Uppy): void;
12
- }
@@ -1,54 +0,0 @@
1
- {
2
- "name": "@uppy/angular",
3
- "description": "Angular component wrappers around Uppy's official UI plugins.",
4
- "version": "0.0.1",
5
- "license": "MIT",
6
- "homepage": "https://uppy.io",
7
- "keywords": [
8
- "file uploader",
9
- "uppy",
10
- "uppy-plugin",
11
- "angular",
12
- "angular-components"
13
- ],
14
- "bugs": {
15
- "url": "https://github.com/transloadit/uppy/issues"
16
- },
17
- "repository": {
18
- "type": "git",
19
- "url": "git+https://github.com/transloadit/uppy.git"
20
- },
21
- "peerDependencies": {
22
- "@angular/common": ">= 11",
23
- "@angular/core": ">= 11",
24
- "@uppy/core": ">=1",
25
- "@uppy/dashboard": "workspace:^",
26
- "@uppy/drag-drop": "workspace:^",
27
- "@uppy/progress-bar": "workspace:^",
28
- "@uppy/status-bar": "workspace:^",
29
- "@uppy/utils": ">=3"
30
- },
31
- "module": "fesm2015/uppy-angular.mjs",
32
- "es2020": "fesm2020/uppy-angular.mjs",
33
- "esm2020": "esm2020/uppy-angular.mjs",
34
- "fesm2020": "fesm2020/uppy-angular.mjs",
35
- "fesm2015": "fesm2015/uppy-angular.mjs",
36
- "typings": "uppy-angular.d.ts",
37
- "exports": {
38
- "./package.json": {
39
- "default": "./package.json"
40
- },
41
- ".": {
42
- "types": "./uppy-angular.d.ts",
43
- "esm2020": "./esm2020/uppy-angular.mjs",
44
- "es2020": "./fesm2020/uppy-angular.mjs",
45
- "es2015": "./fesm2015/uppy-angular.mjs",
46
- "node": "./fesm2015/uppy-angular.mjs",
47
- "default": "./fesm2020/uppy-angular.mjs"
48
- }
49
- },
50
- "sideEffects": false,
51
- "dependencies": {
52
- "tslib": "^2.0.0"
53
- }
54
- }