diff --git a/dist.tgz b/dist.tgz index 2906f85..7d014f1 100644 Binary files a/dist.tgz and b/dist.tgz differ diff --git a/dist/README.md b/dist/README.md deleted file mode 100644 index c0d1997..0000000 --- a/dist/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# ngx-croppie (WIP) - -simple angular 2 wrapper around the excellent [croppie library](https://foliotek.github.io/Croppie/) for cropping images - -very basic [example](https://github.com/deej81/ngx-croppie-example) \ No newline at end of file diff --git a/dist/bundles/ngx-croppie.umd.js b/dist/bundles/ngx-croppie.umd.js deleted file mode 100644 index 78e47fd..0000000 --- a/dist/bundles/ngx-croppie.umd.js +++ /dev/null @@ -1,67 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('croppie'), require('@angular/common')) : - typeof define === 'function' && define.amd ? define('ngx-croppie', ['exports', '@angular/core', 'croppie', '@angular/common'], factory) : - (factory((global['ngx-croppie'] = {}),global.ng.core,global.croppie,global.ng.common)); -}(this, (function (exports,core,croppie,common) { 'use strict'; - -var NgxCroppieComponent = /** @class */ (function () { - function NgxCroppieComponent() { - this.outputFormatOptions = { type: 'base64', size: 'viewport' }; - this.result = new core.EventEmitter(); - } - NgxCroppieComponent.prototype.ngOnInit = function () { - var _this = this; - this._croppie = new croppie.Croppie(this.imageEdit.nativeElement, this.croppieOptions); - this._croppie.bind({ - url: this.imageUrl - }); - this.bind = function (img) { - _this._croppie.bind({ url: _this.imageUrl }); - }; - }; - NgxCroppieComponent.prototype.newResult = function () { - var _this = this; - this._croppie.result(this.outputFormatOptions).then(function (res) { - _this.result.emit(res); - }); - }; - return NgxCroppieComponent; -}()); -NgxCroppieComponent.decorators = [ - { type: core.Component, args: [{ - selector: 'ngx-croppie', - template: "
" - },] }, -]; -NgxCroppieComponent.propDecorators = { - "imageEdit": [{ type: core.ViewChild, args: ['imageEdit',] },], - "croppieOptions": [{ type: core.Input },], - "imageUrl": [{ type: core.Input },], - "bind": [{ type: core.Input },], - "outputFormatOptions": [{ type: core.Input },], - "result": [{ type: core.Output },], -}; -var NgxCroppieModule = /** @class */ (function () { - function NgxCroppieModule() { - } - return NgxCroppieModule; -}()); -NgxCroppieModule.decorators = [ - { type: core.NgModule, args: [{ - imports: [ - common.CommonModule - ], - declarations: [NgxCroppieComponent], - exports: [ - NgxCroppieComponent - ] - },] }, -]; - -exports.NgxCroppieComponent = NgxCroppieComponent; -exports.NgxCroppieModule = NgxCroppieModule; - -Object.defineProperty(exports, '__esModule', { value: true }); - -}))); -//# sourceMappingURL=ngx-croppie.umd.js.map diff --git a/dist/bundles/ngx-croppie.umd.min.js b/dist/bundles/ngx-croppie.umd.min.js deleted file mode 100644 index 5bf0f5d..0000000 --- a/dist/bundles/ngx-croppie.umd.min.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("croppie"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-croppie",["exports","@angular/core","croppie","@angular/common"],t):t(e["ngx-croppie"]={},e.ng.core,e.croppie,e.ng.common)}(this,function(e,t,o,i){"use strict";var p=function(){function e(){this.outputFormatOptions={type:"base64",size:"viewport"},this.result=new t.EventEmitter}return e.prototype.ngOnInit=function(){var t=this;this._croppie=new o.Croppie(this.imageEdit.nativeElement,this.croppieOptions),this._croppie.bind({url:this.imageUrl}),this.bind=function(e){t._croppie.bind({url:t.imageUrl})}},e.prototype.newResult=function(){var t=this;this._croppie.result(this.outputFormatOptions).then(function(e){t.result.emit(e)})},e}();p.decorators=[{type:t.Component,args:[{selector:"ngx-croppie",template:''}]}],p.propDecorators={imageEdit:[{type:t.ViewChild,args:["imageEdit"]}],croppieOptions:[{type:t.Input}],imageUrl:[{type:t.Input}],bind:[{type:t.Input}],outputFormatOptions:[{type:t.Input}],result:[{type:t.Output}]};var r=function(){};r.decorators=[{type:t.NgModule,args:[{imports:[i.CommonModule],declarations:[p],exports:[p]}]}],e.NgxCroppieComponent=p,e.NgxCroppieModule=r,Object.defineProperty(e,"__esModule",{value:!0})}); -//# sourceMappingURL=ngx-croppie.umd.min.js.map diff --git a/dist/package.json b/dist/package.json deleted file mode 100644 index 48e3094..0000000 --- a/dist/package.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "name": "ngx-croppie", - "version": "1.0.0", - "description": "Simple angular wrapper around croppie (WIP)", - "license": "MIT", - "private": false, - "peerDependencies": { - "croppie": "^2.6.2" - }, - "devDependencies": { - "@angular/animations": "^5.2.0", - "@angular/cli": "~1.7.4", - "@angular/common": "^5.2.0", - "@angular/compiler": "^5.2.0", - "@angular/compiler-cli": "^5.2.0", - "@angular/core": "^5.2.0", - "@angular/forms": "^5.2.0", - "@angular/http": "^5.2.0", - "@angular/language-service": "^5.2.0", - "@angular/platform-browser": "^5.2.0", - "@angular/platform-browser-dynamic": "^5.2.0", - "@angular/router": "^5.2.0", - "@types/croppie": "^2.5.2", - "@types/jasmine": "~2.8.3", - "@types/jasminewd2": "~2.0.2", - "@types/node": "~6.0.60", - "codelyzer": "^4.0.1", - "core-js": "^2.4.1", - "croppie": "^2.6.2", - "jasmine-core": "~2.8.0", - "jasmine-spec-reporter": "~4.2.1", - "karma": "~2.0.0", - "karma-chrome-launcher": "~2.2.0", - "karma-coverage-istanbul-reporter": "^1.2.1", - "karma-jasmine": "~1.1.0", - "karma-jasmine-html-reporter": "^0.2.2", - "ng-packagr": "^2.4.2", - "protractor": "~5.1.2", - "rxjs": "^5.5.6", - "ts-node": "~4.1.0", - "tslint": "~5.9.1", - "typescript": "~2.5.3", - "zone.js": "^0.8.19" - }, - "keywords": [ - "angular", - "angular2", - "croppie" - ], - "repository": { - "type": "git", - "url": "https://github.com/deej81/ngx-croppie" - }, - "bugs": { - "url": "https://github.com/deej81/ngx-croppie/issues" - }, - "author": "Dan Jordan