{"_id":"@cyber4all/ngx-dropzone-wrapper","_rev":"2-a2c21b4c5af2a56e3ea342a13241fdbc","name":"@cyber4all/ngx-dropzone-wrapper","dist-tags":{"latest":"6.2.1"},"versions":{"6.2.0":{"name":"@cyber4all/ngx-dropzone-wrapper","description":"Angular wrapper library for Dropzone","bugs":{"url":"https://github.com/zefoy/ngx-dropzone-wrapper/issues"},"license":"MIT","version":"6.2.0","main":"./bundles/ngx-dropzone-wrapper.umd.js","module":"./dist/ngx-dropzone-wrapper.es5.js","typings":"./dist/ngx-dropzone-wrapper.d.ts","tslint":{"extends":"./tslint.json"},"stylelint":{"extends":"./stylelint.json"},"scripts":{"clean":"rm -rf dist bundles","start":"npm run build && npm run bundle","watch":"watch --wait=5 'npm run start' src/","lint":"npm run lint:ts && npm run lint:css","build":"npm run build:html && npm run build:css && npm run build:js","bundle":"npm run bundle:es5 ; npm run bundle:umd ; npm run minify:umd","prepare":"npm run clean && npm run build && npm run bundle","lint:ts":"tslint \"src/**/*.ts\"","lint:css":"stylelint \"src/**/*.css\"","build:js":"ngc -p src/tsconfig.json","build:css":"cpx src/lib/dropzone.component.css dist/lib/","build:html":"cpx src/lib/dropzone.component.html dist/lib/","bundle:es5":"rollup -c config/rollup-es5.config.js --silent","bundle:umd":"rollup -c config/rollup-umd.config.js --silent","minify:umd":"uglifyjs bundles/ngx-dropzone-wrapper.umd.js -o bundles/ngx-dropzone-wrapper.umd.min.js --source-map=\"filename=bundles/ngx-dropzone-wrapper.umd.min.js.map\""},"repository":{"type":"git","url":"git+https://github.com/zefoy/ngx-dropzone-wrapper.git"},"dependencies":{"@cyber4all/dropzone":"5.4.0"},"devDependencies":{"@angular/cli":"^6.1.0","@angular/common":"^6.1.0","@angular/compiler":"^6.1.0","@angular/compiler-cli":"^6.1.0","@angular/core":"^6.1.0","@angular/platform-browser":"^6.1.0","@angular-devkit/build-angular":"^0.7.0","@angular-devkit/build-ng-packagr":"^0.7.0","@types/dropzone":"^5.0.0","@types/node":"^8.10.0","codelyzer":"^4.4.0","core-js":"^2.5.0","cpx":"^1.5.0","ng-packagr":"^4.0.0","rollup":"^0.65.0","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-sourcemaps":"^0.4.0","rxjs":"^6.3.0","stylelint":"^9.5.0","stylelint-config-standard":"^18.2.0","stylelint-order":"^1.0.0","tslint":"^5.11.0","typescript":"^2.9.0","uglify-es":"^3.3.0","watch":"^1.0.0","zone.js":"^0.8.0"},"peerDependencies":{"@angular/common":">=5.0.0","@angular/core":">=5.0.0"},"homepage":"https://github.com/zefoy/ngx-dropzone-wrapper#readme","_id":"@cyber4all/ngx-dropzone-wrapper@6.2.0","_npmVersion":"6.1.0","_nodeVersion":"8.11.3","_npmUser":{"name":"nrwinner","email":"design@winnerdigital.net"},"dist":{"integrity":"sha512-beTJwsccPhOc5ecAwDlX/l44C86yX4NPwQ1qT8WpQqW1/5PHJ3mnVpu131FLBAkPbiSEyEXZyPpu6mS4RmzjbQ==","shasum":"3ba2adbb588f7c929d5ab3b5453e67df6caa1029","tarball":"https://registry.npmjs.org/@cyber4all/ngx-dropzone-wrapper/-/ngx-dropzone-wrapper-6.2.0.tgz","fileCount":33,"unpackedSize":292542,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbjwkVCRA9TVsSAnZWagAAPGYP/irD65KTFlfTvcwBT6Hu\nuUFwlf2Dflcvl8XBo3nbLDzv2LIzA3hu00x2WAfriWY5hTcFMrNrvLlZ8P0/\nKHwIeVUYXKa1mCIbq+ylvLpSQX674AX3XytpdZfCG74bID0jfDdhJEsn10Cv\n/XL4Wbycjx84fRPYozLoNAYdSUuNQzkYr2KYYqfztWc+AN1p+YvBMsM2Q8OO\nW5Swh32cT4ttIeZlr6NJyKqV943dNSssMKsjLKcYw9dzoHWVhtsA5zohS/vw\nhPPDLW6G7TFRx0QZjIpvKmmiaBqlhmb8SMSRPZlR6vlgpLmURbihzKoh/trg\nN1/mPb6tnmwWy7EBa6nIxv31B17OHS4uRIwurYY9ci3yE9P/mQVkz4sJ+R8U\nQg34DUcGFd95wtsh2VKTywTRi+Lv2REY3+MAhUCN7x62iiDfQJVkSDALRPCT\nQCB8axhVA9nzp7UqKO5UuyfyzPeM+y9zthYAgQV95FAuRyxARwQjostX7UmR\niRrAzwLkMBxb9VWpPx6YviQ1kasCiFlUOpKLAcV/hfVhx2YAlHzD5Yj3Rplg\n1X0zyJJr3pLfE9J56z14ZduHzG5HkoWNy2oDA1rBKTVo+dSY13wr2ghM5iNP\nvvcFufWnv5ECnIIjDxzWQhLMV+6p76ezP1daJZiBwF8x9AKb/g3Zb5iwsICJ\nSLsR\r\n=/aVO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGD3sGQknJq/wWmCeiscQUVVz80BpvBUtRfGvhDW9lnyAiEA8dC8y5gbyh/HebUbkRDIwh+9WKHgRKhP1fa/5tkVvHM="}]},"maintainers":[{"name":"donseannelly","email":"consulting@donseannelly.com"},{"name":"gshaw1997","email":"gshaw1997@gmail.com"},{"name":"jewel7","email":"goldameirchiong@gmail.com"},{"name":"nrwinner","email":"design@winnerdigital.net"},{"name":"tylernhoward","email":"tylernhoward@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ngx-dropzone-wrapper_6.2.0_1536100629173_0.6052430380554821"},"_hasShrinkwrap":false},"6.2.1":{"name":"@cyber4all/ngx-dropzone-wrapper","description":"Angular wrapper library for Dropzone","bugs":{"url":"https://github.com/zefoy/ngx-dropzone-wrapper/issues"},"license":"MIT","version":"6.2.1","main":"./bundles/ngx-dropzone-wrapper.umd.js","module":"./dist/ngx-dropzone-wrapper.es5.js","typings":"./dist/ngx-dropzone-wrapper.d.ts","tslint":{"extends":"./tslint.json"},"stylelint":{"extends":"./stylelint.json"},"scripts":{"clean":"rm -rf dist bundles","start":"npm run build && npm run bundle","watch":"watch --wait=5 'npm run start' src/","lint":"npm run lint:ts && npm run lint:css","build":"npm run build:html && npm run build:css && npm run build:js","bundle":"npm run bundle:es5 ; npm run bundle:umd ; npm run minify:umd","prepare":"npm run clean && npm run build && npm run bundle","lint:ts":"tslint \"src/**/*.ts\"","lint:css":"stylelint \"src/**/*.css\"","build:js":"ngc -p src/tsconfig.json","build:css":"cpx src/lib/dropzone.component.css dist/lib/","build:html":"cpx src/lib/dropzone.component.html dist/lib/","bundle:es5":"rollup -c config/rollup-es5.config.js --silent","bundle:umd":"rollup -c config/rollup-umd.config.js --silent","minify:umd":"uglifyjs bundles/ngx-dropzone-wrapper.umd.js -o bundles/ngx-dropzone-wrapper.umd.min.js --source-map=\"filename=bundles/ngx-dropzone-wrapper.umd.min.js.map\""},"repository":{"type":"git","url":"git+https://github.com/zefoy/ngx-dropzone-wrapper.git"},"dependencies":{"@cyber4all/dropzone":"5.4.0"},"devDependencies":{"@angular/cli":"^6.1.0","@angular/common":"^6.1.0","@angular/compiler":"^6.1.0","@angular/compiler-cli":"^6.1.0","@angular/core":"^6.1.0","@angular/platform-browser":"^6.1.0","@angular-devkit/build-angular":"^0.7.0","@angular-devkit/build-ng-packagr":"^0.7.0","@types/dropzone":"^5.0.0","@types/node":"^8.10.0","codelyzer":"^4.4.0","core-js":"^2.5.0","cpx":"^1.5.0","ng-packagr":"^4.0.0","rollup":"^0.65.0","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-sourcemaps":"^0.4.0","rxjs":"^6.3.0","stylelint":"^9.5.0","stylelint-config-standard":"^18.2.0","stylelint-order":"^1.0.0","tslint":"^5.11.0","typescript":"^2.9.0","uglify-es":"^3.3.0","watch":"^1.0.0","zone.js":"^0.8.0"},"peerDependencies":{"@angular/common":">=5.0.0","@angular/core":">=5.0.0"},"homepage":"https://github.com/zefoy/ngx-dropzone-wrapper#readme","_id":"@cyber4all/ngx-dropzone-wrapper@6.2.1","_npmVersion":"6.1.0","_nodeVersion":"8.11.3","_npmUser":{"name":"nrwinner","email":"design@winnerdigital.net"},"dist":{"integrity":"sha512-hFi2I4xb3qlC2PHIVTKn3N3Yo2YoBp5j1TNMcNha3fDURE+wyYUQRXhT1DkUQz9XJO4MaqFZmW6FQmmyWGAYeQ==","shasum":"39a0a4095e5d6d7ef61128e8ca28ea7ac01c4080","tarball":"https://registry.npmjs.org/@cyber4all/ngx-dropzone-wrapper/-/ngx-dropzone-wrapper-6.2.1.tgz","fileCount":33,"unpackedSize":754369,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbjwxiCRA9TVsSAnZWagAAwEQP/1CcCl3QRv9AGwKxfMjZ\nPp373DrDbCFvSBq5HzwLkPk7YSKeNd0UV9c12HqXKwY67MOG6f3/ofBvxcoq\n2Pa33qyD434imAlhbUMLnne8AQrg2VM0aVXrd7yMkJ6cRNledE4fQLLHYR5U\nuGXFJIrCG9MJKPpT7qSj8OxT3vJe+d7j1a7aU5X4emuFuDwTkmY9R7rHNUjn\nEAWgp3YlXDto/s6L71LU3Ps/mAaIxtPgbPftk7sQCtNOqdV/flShCh6xAsuE\nNvfdWFwI+u4odmxZzeOZkBVpND0PoXfLAtKOPn14pkm7c848dTc7vysrYmzJ\nR5A+dzHujsPCI2J5LJheD7gknfG8xNjQMX/UiUt7JOrYcDd4KUUHvIfBbPe8\nAUYDQFYv4cizQ48lcoACH1r+/y1tiRwSPuIB1I1TqBffKlS1dLWms/mmMf33\nLk+Rpq0ZCkGr15wCRwwTT9uGg2he7kkG48Vt4K9Pqa4Z5H/flefqRtw9VnLL\npq6SeAh0svvGBvWrAS+oDQUmPDfZ319YtIvhVHuzPJLfToxvWNuhIvwpGinb\nlpFSQ5eNdEwlNY+grOJ/h+uaTfp37rN2xcxefHG4lAwz46qQWITRTibTVBcq\nMgDVZ/u7/bURxklqLzbkJ+uKsSh1hXgymsQwQ1R8KProz4bZi4j0FGaq6dx9\nLPsI\r\n=q4Fn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYYFKNg4EIY0J/GmGI55m9tr5UeN4gul35FpiOlO5oFwIgb0JmVJVFcjNpbr7Qr89EsxQkzdUC/r8T4opiWjBt7DU="}]},"maintainers":[{"name":"donseannelly","email":"consulting@donseannelly.com"},{"name":"gshaw1997","email":"gshaw1997@gmail.com"},{"name":"jewel7","email":"goldameirchiong@gmail.com"},{"name":"nrwinner","email":"design@winnerdigital.net"},{"name":"tylernhoward","email":"tylernhoward@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ngx-dropzone-wrapper_6.2.1_1536101473594_0.04433026749974589"},"_hasShrinkwrap":false}},"time":{"created":"2018-09-04T22:37:09.022Z","6.2.0":"2018-09-04T22:37:09.328Z","modified":"2022-04-05T02:24:25.452Z","6.2.1":"2018-09-04T22:51:13.735Z"},"maintainers":[{"name":"donseannelly","email":"consulting@donseannelly.com"},{"name":"gshaw1997","email":"gshaw1997@gmail.com"},{"name":"jewel7","email":"goldameirchiong@gmail.com"},{"name":"nrwinner","email":"design@winnerdigital.net"},{"name":"tylernhoward","email":"tylernhoward@gmail.com"}],"description":"Angular wrapper library for Dropzone","homepage":"https://github.com/zefoy/ngx-dropzone-wrapper#readme","repository":{"type":"git","url":"git+https://github.com/zefoy/ngx-dropzone-wrapper.git"},"bugs":{"url":"https://github.com/zefoy/ngx-dropzone-wrapper/issues"},"license":"MIT","readme":"# Angular Dropzone Wrapper\n\n<a href=\"https://badge.fury.io/js/ngx-dropzone-wrapper\"><img src=\"https://badge.fury.io/js/ngx-dropzone-wrapper.svg\" align=\"right\" alt=\"npm version\" height=\"18\"></a>\n\nThis is an Angular wrapper library for the [Dropzone](http://www.dropzonejs.com/). To use this library you should get familiar with the Dropzone documentation as well since this documentation only explains details specific to this wrapper.\n\nThis documentation is for the latest 6.x.x version which requires Angular 5 or newer. For Angular 4 you need to use the latest 4.x.x version. Documentation for the 4.x.x can be found from <a href=\"https://github.com/zefoy/ngx-dropzone-wrapper/tree/4.x.x/\">here</a>.\n\n### Quick links\n\n[Example application](https://zefoy.github.io/ngx-dropzone-wrapper/)\n |\n[StackBlitz example](https://stackblitz.com/github/zefoy/ngx-dropzone-wrapper/tree/master/example)\n |\n[Dropzone documentation](http://www.dropzonejs.com/#configuration-options)\n\n### Building the library\n\n```bash\nnpm install\nnpm start\n```\n\n### Running the example\n\n```bash\ncd example\nnpm install\nnpm start\n```\n\n### Library development\n\n\n```bash\nnpm link\ncd example\nnpm link ngx-dropzone-wrapper\n```\n\n### Installing and usage\n\n```bash\nnpm install ngx-dropzone-wrapper --save\n```\n\n##### Load the module for your app (with global configuration):\n\nProviding the global configuration is optional and when used you should only provide the configuration in your root module.\n\n```javascript\nimport { DropzoneModule } from 'ngx-dropzone-wrapper';\nimport { DROPZONE_CONFIG } from 'ngx-dropzone-wrapper';\nimport { DropzoneConfigInterface } from 'ngx-dropzone-wrapper';\n\nconst DEFAULT_DROPZONE_CONFIG: DropzoneConfigInterface = {\n // Change this to your upload POST address:\n  url: 'https://httpbin.org/post',\n  maxFilesize: 50,\n  acceptedFiles: 'image/*'\n};\n\n@NgModule({\n  ...\n  imports: [\n    ...\n    DropzoneModule\n  ],\n  providers: [\n    {\n      provide: DROPZONE_CONFIG,\n      useValue: DEFAULT_DROPZONE_CONFIG\n    }\n  ]\n})\n```\n\n##### Use it in your HTML template (with custom configuration):\n\nThis library provides two ways to create a Dropzone element, component for simple use cases and directive for more custom use cases.\n\n**COMPONENT USAGE**\n\nSimply replace the element that would ordinarily be passed to `Dropzone` with the dropzone component.\n\n**NOTE:** Component provides couple additional features from directive such as the placeholder image. If you don't need them or want to create custom component then you might want to use the directive instead.\n\n```html\n<dropzone [config]=\"config\" [message]=\"'Click or drag images here to upload'\" (error)=\"onUploadError($event)\" (success)=\"onUploadSuccess($event)\"></dropzone>\n```\n\n```javascript\n[config]                // Custom config to override the global defaults.\n\n[disabled]              // Disables / detaches Dropzone from the element.\n\n[message]               // Message to show for the user on the upload area.\n[placeholder]           // Placeholder image to be shown as the upload area.\n\n[useDropzoneClass]      // Use 'dropzone' class (use provided default styles).\n\n(error)                 // Event handler for the Dropzone upload error event.\n(success)               // Event handler for the Dropzone upload success event.\n(canceled)              // Event handler for the Dropzone upload canceled event.\n\n(<dropzoneEvent>)       // All Dropzone events / callbacks work as bindings.\n                        // Event names are in camel case (not lower case).\n                        // Example: maxfilesreached -> maxFilesReached\n```\n\n**DIRECTIVE USAGE**\n\nWhen using only the directive you need to provide your own theming or import the default theme:\n\n```css\n@import '~dropzone/dist/min/dropzone.min.css';\n```\n\nDropzone directive can be used in form or div element with optional custom configuration:\n\n```html\n<div class=\"dropzone\" [dropzone]=\"config\" (error)=\"onUploadError($event)\" (success)=\"onUploadSuccess($event)\"></div>\n```\n\n```javascript\n[dropzone]              // Can be used to provide optional custom config.\n\n[disabled]              // Disables / detaches Dropzone from the element.\n\n(error)                 // Event handler for the Dropzone upload error event.\n(success)               // Event handler for the Dropzone upload success event.\n(canceled)              // Event handler for the Dropzone upload canceled event.\n\n(<dropzoneEvent>)       // All Dropzone events / callbacks work as bindings.\n                        // Event names are in camel case (not lower case).\n                        // Example: maxfilesreached -> maxFilesReached\n```\n\n##### Available configuration options (custom / global configuration):\n\nThis library supports all Dropzone configuration options and few extra options for easier usage.\n\n**LIBRARY OPTIONS**\n\n```javascript\nautoReset               // Time for resetting component after upload (Default: null).\nerrorReset              // Time for resetting component after an error (Default: null).\ncancelReset             // Time for resetting component after canceling (Default: null).\n```\n\n**DROPZONE OPTIONS**\n\n```javascript\nurl                     // Upload url where to send the upload request (Default: '').\nmethod                  // HTTP method to use communicating with the server (Default: 'post').\nheaders                 // Object of additional headers to send to the server (Default: null).\nparamName               // Name of the file parameter that gets transferred (Default: 'file').\nmaxFilesize             // Maximum file size for the upload files in megabytes (Default: null).\nacceptedFiles           // Comma separated list of mime types or file extensions (Default: null).\n```\n\nFor more detailed documentation with all the supported Dropzone events / options see the Dropzone documentation.\n\n##### Available control / helper functions (provided by the directive):\n\n```javascript\ndropzone()              // Returns reference to the Dropzone instance for full API access.\n\nreset(cancel?)          // Removes all processed files (optionally cancels uploads as well).\n```\n\nAbove functions can be accessed through the directive reference (available as directiveRef in the component).\n","readmeFilename":"README.md"}