From 27694d3fa135a847ac8326aa87d7b8216e0e7f23 Mon Sep 17 00:00:00 2001 From: Cory Harter Date: Mon, 12 Dec 2016 20:31:14 -0500 Subject: [PATCH 1/2] compiled js files and ts compiler config --- .gitignore | 1 - dist/app/app.component.js | 43 +++++++++++ dist/app/app.component.js.map | 1 + dist/app/app.module.js | 61 ++++++++++++++++ dist/app/app.module.js.map | 1 + dist/app/index.js | 23 ++++++ dist/app/index.js.map | 1 + dist/environments/environment.js | 18 +++++ dist/environments/environment.js.map | 1 + dist/lib/index.js | 20 ++++++ dist/lib/index.js.map | 1 + dist/lib/input/input.js | 102 +++++++++++++++++++++++++++ dist/lib/input/input.js.map | 1 + dist/lib/module.js | 51 ++++++++++++++ dist/lib/module.js.map | 1 + dist/lib/util/util.js | 61 ++++++++++++++++ dist/lib/util/util.js.map | 1 + dist/main.js | 28 ++++++++ dist/main.js.map | 1 + dist/polyfills.js | 26 +++++++ dist/polyfills.js.map | 1 + dist/test.js | 30 ++++++++ dist/test.js.map | 1 + package.json | 3 +- tsconfig.json | 16 +++++ 25 files changed, 492 insertions(+), 2 deletions(-) create mode 100644 dist/app/app.component.js create mode 100644 dist/app/app.component.js.map create mode 100644 dist/app/app.module.js create mode 100644 dist/app/app.module.js.map create mode 100644 dist/app/index.js create mode 100644 dist/app/index.js.map create mode 100644 dist/environments/environment.js create mode 100644 dist/environments/environment.js.map create mode 100644 dist/lib/index.js create mode 100644 dist/lib/index.js.map create mode 100644 dist/lib/input/input.js create mode 100644 dist/lib/input/input.js.map create mode 100644 dist/lib/module.js create mode 100644 dist/lib/module.js.map create mode 100644 dist/lib/util/util.js create mode 100644 dist/lib/util/util.js.map create mode 100644 dist/main.js create mode 100644 dist/main.js.map create mode 100644 dist/polyfills.js create mode 100644 dist/polyfills.js.map create mode 100644 dist/test.js create mode 100644 dist/test.js.map create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore index fccc4d9..f49068e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ # See http://help.github.com/ignore-files/ for more about ignoring files. # compiled output -/dist /tmp # dependencies diff --git a/dist/app/app.component.js b/dist/app/app.component.js new file mode 100644 index 0000000..090ce07 --- /dev/null +++ b/dist/app/app.component.js @@ -0,0 +1,43 @@ +System.register(['@angular/core'], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; + var core_1; + var AppComponent; + return { + setters:[ + function (core_1_1) { + core_1 = core_1_1; + }], + execute: function() { + AppComponent = (function () { + function AppComponent() { + this.pressedCount = 0; + } + AppComponent.prototype.enterTest = function () { + this.pressedCount = this.pressedCount + 1; + this.testModel = ''; + }; + AppComponent = __decorate([ + core_1.Component({ + selector: 'app-root', + templateUrl: './app.component.html', + styleUrls: ['./app.component.css'] + }), + __metadata('design:paramtypes', []) + ], AppComponent); + return AppComponent; + }()); + exports_1("AppComponent", AppComponent); + } + } +}); +//# sourceMappingURL=app.component.js.map \ No newline at end of file diff --git a/dist/app/app.component.js.map b/dist/app/app.component.js.map new file mode 100644 index 0000000..b555035 --- /dev/null +++ b/dist/app/app.component.js.map @@ -0,0 +1 @@ +{"version":3,"file":"app.component.js","sourceRoot":"","sources":["../../src/app/app.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAOA;gBAAA;oBAEE,iBAAY,GAAW,CAAC,CAAC;gBAK3B,CAAC;gBAJC,gCAAS,GAAT;oBACE,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;oBAC1C,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;gBACtB,CAAC;gBAXH;oBAAC,gBAAS,CAAC;wBACT,QAAQ,EAAE,UAAU;wBACpB,WAAW,EAAE,sBAAsB;wBACnC,SAAS,EAAE,CAAC,qBAAqB,CAAC;qBACnC,CAAC;;gCAAA;gBAQF,mBAAC;YAAD,CAAC,AAPD,IAOC;YAPD,uCAOC,CAAA"} \ No newline at end of file diff --git a/dist/app/app.module.js b/dist/app/app.module.js new file mode 100644 index 0000000..33cba9b --- /dev/null +++ b/dist/app/app.module.js @@ -0,0 +1,61 @@ +System.register(['@angular/platform-browser', '@angular/core', '@angular/forms', '@angular/http', './app.component', '../lib/'], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; + var platform_browser_1, core_1, forms_1, http_1, app_component_1, _1; + var AppModule; + return { + setters:[ + function (platform_browser_1_1) { + platform_browser_1 = platform_browser_1_1; + }, + function (core_1_1) { + core_1 = core_1_1; + }, + function (forms_1_1) { + forms_1 = forms_1_1; + }, + function (http_1_1) { + http_1 = http_1_1; + }, + function (app_component_1_1) { + app_component_1 = app_component_1_1; + }, + function (_1_1) { + _1 = _1_1; + }], + execute: function() { + AppModule = (function () { + function AppModule() { + } + AppModule = __decorate([ + core_1.NgModule({ + declarations: [ + app_component_1.AppComponent + ], + imports: [ + platform_browser_1.BrowserModule, + forms_1.FormsModule, + http_1.HttpModule, + _1.EmojiModule + ], + providers: [], + bootstrap: [app_component_1.AppComponent] + }), + __metadata('design:paramtypes', []) + ], AppModule); + return AppModule; + }()); + exports_1("AppModule", AppModule); + } + } +}); +//# sourceMappingURL=app.module.js.map \ No newline at end of file diff --git a/dist/app/app.module.js.map b/dist/app/app.module.js.map new file mode 100644 index 0000000..44e0b60 --- /dev/null +++ b/dist/app/app.module.js.map @@ -0,0 +1 @@ +{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../../src/app/app.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAsBA;gBAAA;gBAAyB,CAAC;gBAb1B;oBAAC,eAAQ,CAAC;wBACR,YAAY,EAAE;4BACZ,4BAAY;yBACb;wBACD,OAAO,EAAE;4BACP,gCAAa;4BACb,mBAAW;4BACX,iBAAU;4BACV,cAAW;yBACZ;wBACD,SAAS,EAAE,EAAE;wBACb,SAAS,EAAE,CAAC,4BAAY,CAAC;qBAC1B,CAAC;;6BAAA;gBACuB,gBAAC;YAAD,CAAC,AAA1B,IAA0B;YAA1B,iCAA0B,CAAA"} \ No newline at end of file diff --git a/dist/app/index.js b/dist/app/index.js new file mode 100644 index 0000000..32eb92f --- /dev/null +++ b/dist/app/index.js @@ -0,0 +1,23 @@ +System.register(['./app.component', './app.module'], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + function exportStar_1(m) { + var exports = {}; + for(var n in m) { + if (n !== "default") exports[n] = m[n]; + } + exports_1(exports); + } + return { + setters:[ + function (app_component_1_1) { + exportStar_1(app_component_1_1); + }, + function (app_module_1_1) { + exportStar_1(app_module_1_1); + }], + execute: function() { + } + } +}); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/app/index.js.map b/dist/app/index.js.map new file mode 100644 index 0000000..25cd61f --- /dev/null +++ b/dist/app/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/environments/environment.js b/dist/environments/environment.js new file mode 100644 index 0000000..2f55a6d --- /dev/null +++ b/dist/environments/environment.js @@ -0,0 +1,18 @@ +// The file contents for the current environment will overwrite these during build. +// The build system defaults to the dev environment which uses `environment.ts`, but if you do +// `ng build --env=prod` then `environment.prod.ts` will be used instead. +// The list of which env maps to which file can be found in `angular-cli.json`. +System.register([], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + var environment; + return { + setters:[], + execute: function() { + exports_1("environment", environment = { + production: false + }); + } + } +}); +//# sourceMappingURL=environment.js.map \ No newline at end of file diff --git a/dist/environments/environment.js.map b/dist/environments/environment.js.map new file mode 100644 index 0000000..10bb21e --- /dev/null +++ b/dist/environments/environment.js.map @@ -0,0 +1 @@ +{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../src/environments/environment.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,8FAA8F;AAC9F,yEAAyE;AACzE,+EAA+E;;;;QAElE,WAAW;;;;YAAX,yBAAA,WAAW,GAAG;gBACzB,UAAU,EAAE,KAAK;aAClB,CAAA,CAAC"} \ No newline at end of file diff --git a/dist/lib/index.js b/dist/lib/index.js new file mode 100644 index 0000000..69b50eb --- /dev/null +++ b/dist/lib/index.js @@ -0,0 +1,20 @@ +System.register(['./module'], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + function exportStar_1(m) { + var exports = {}; + for(var n in m) { + if (n !== "default") exports[n] = m[n]; + } + exports_1(exports); + } + return { + setters:[ + function (module_1_1) { + exportStar_1(module_1_1); + }], + execute: function() { + } + } +}); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/lib/index.js.map b/dist/lib/index.js.map new file mode 100644 index 0000000..f714732 --- /dev/null +++ b/dist/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/lib/input/input.js b/dist/lib/input/input.js new file mode 100644 index 0000000..f203b42 --- /dev/null +++ b/dist/lib/input/input.js @@ -0,0 +1,102 @@ +System.register(['@angular/core', '../util/util'], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; + var core_1, util_1; + var EmojiInputComponent; + return { + setters:[ + function (core_1_1) { + core_1 = core_1_1; + }, + function (util_1_1) { + util_1 = util_1_1; + }], + execute: function() { + EmojiInputComponent = (function () { + function EmojiInputComponent() { + this.popupAnchor = 'top'; + this.onEnter = function () { }; + this.modelChange = new core_1.EventEmitter(); + this.emojiUtil = new util_1.EmojiUtil(); + this.popupOpen = false; + } + EmojiInputComponent.prototype.ngOnInit = function () { + this.input = ''; + this.filterEmojis = ''; + this.allEmojis = this.emojiUtil.getAll(); + }; + EmojiInputComponent.prototype.ngOnChanges = function () { + if (this.model !== this.input) { + this.input = this.model; + } + }; + EmojiInputComponent.prototype.togglePopup = function () { + this.popupOpen = !this.popupOpen; + }; + EmojiInputComponent.prototype.getFilteredEmojis = function () { + var _this = this; + return this.allEmojis.filter(function (e) { + if (_this.filterEmojis === '') { + return true; + } + else { + for (var _i = 0, _a = e.aliases; _i < _a.length; _i++) { + var alias = _a[_i]; + if (alias.includes(_this.filterEmojis)) { + return true; + } + } + } + return false; + }); + }; + EmojiInputComponent.prototype.onEmojiClick = function (e) { + this.input = this.input + e; + this.modelChange.emit(this.input); + this.popupOpen = false; + }; + EmojiInputComponent.prototype.onChange = function (newValue) { + this.input = this.emojiUtil.emojify(newValue); + this.model = this.input; + this.modelChange.emit(this.input); + }; + __decorate([ + core_1.Input(), + __metadata('design:type', Object) + ], EmojiInputComponent.prototype, "popupAnchor", void 0); + __decorate([ + core_1.Input(), + __metadata('design:type', Function) + ], EmojiInputComponent.prototype, "onEnter", void 0); + __decorate([ + core_1.Input(), + __metadata('design:type', Object) + ], EmojiInputComponent.prototype, "model", void 0); + __decorate([ + core_1.Output(), + __metadata('design:type', Object) + ], EmojiInputComponent.prototype, "modelChange", void 0); + EmojiInputComponent = __decorate([ + core_1.Component({ + selector: 'emoji-input', + templateUrl: 'input.html', + styleUrls: ['input.scss'] + }), + __metadata('design:paramtypes', []) + ], EmojiInputComponent); + return EmojiInputComponent; + }()); + exports_1("EmojiInputComponent", EmojiInputComponent); + } + } +}); +//# sourceMappingURL=input.js.map \ No newline at end of file diff --git a/dist/lib/input/input.js.map b/dist/lib/input/input.js.map new file mode 100644 index 0000000..78d6622 --- /dev/null +++ b/dist/lib/input/input.js.map @@ -0,0 +1 @@ +{"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/lib/input/input.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;YASA;gBAAA;oBAEW,gBAAW,GAAG,KAAK,CAAC;oBACpB,YAAO,GAAa,cAAO,CAAC,CAAC;oBAE5B,gBAAW,GAAQ,IAAI,mBAAY,EAAE,CAAC;oBAIhD,cAAS,GAAc,IAAI,gBAAS,EAAE,CAAC;oBAEvC,cAAS,GAAY,KAAK,CAAC;gBA4C7B,CAAC;gBA1CC,sCAAQ,GAAR;oBACE,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;oBAChB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;oBACvB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;gBAC3C,CAAC;gBAED,yCAAW,GAAX;oBACE,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;wBAC9B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;oBAC1B,CAAC;gBACH,CAAC;gBAED,yCAAW,GAAX;oBACE,IAAI,CAAC,SAAS,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC;gBACnC,CAAC;gBAED,+CAAiB,GAAjB;oBAAA,iBAaC;oBAZC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,UAAC,CAAC;wBAC7B,EAAE,CAAC,CAAC,KAAI,CAAC,YAAY,KAAK,EAAE,CAAC,CAAC,CAAC;4BAC7B,MAAM,CAAC,IAAI,CAAC;wBACd,CAAC;wBAAC,IAAI,CAAC,CAAC;4BACN,GAAG,CAAC,CAAc,UAAS,EAAT,KAAA,CAAC,CAAC,OAAO,EAAT,cAAS,EAAT,IAAS,CAAC;gCAAvB,IAAI,KAAK,SAAA;gCACZ,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;oCACtC,MAAM,CAAC,IAAI,CAAC;gCACd,CAAC;6BACF;wBACH,CAAC;wBACD,MAAM,CAAC,KAAK,CAAC;oBACf,CAAC,CAAC,CAAC;gBACL,CAAC;gBAED,0CAAY,GAAZ,UAAa,CAAC;oBACZ,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;oBAC5B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;gBACzB,CAAC;gBAED,sCAAQ,GAAR,UAAS,QAAQ;oBACf,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;oBAC9C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;oBACxB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACpC,CAAC;gBApDD;oBAAC,YAAK,EAAE;;wEAAA;gBACR;oBAAC,YAAK,EAAE;;oEAAA;gBACR;oBAAC,YAAK,EAAE;;kEAAA;gBACR;oBAAC,aAAM,EAAE;;wEAAA;gBAVX;oBAAC,gBAAS,CAAC;wBACT,QAAQ,EAAE,aAAa;wBACvB,WAAW,EAAE,YAAY;wBACzB,SAAS,EAAE,CAAC,YAAY,CAAC;qBAC1B,CAAC;;uCAAA;gBAwDF,0BAAC;YAAD,CAAC,AAvDD,IAuDC;YAvDD,qDAuDC,CAAA"} \ No newline at end of file diff --git a/dist/lib/module.js b/dist/lib/module.js new file mode 100644 index 0000000..cf16013 --- /dev/null +++ b/dist/lib/module.js @@ -0,0 +1,51 @@ +System.register(['@angular/core', '@angular/common', '@angular/forms', './util/util', './input/input'], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; + var core_1, common_1, forms_1, util_1, input_1; + var EmojiModule; + return { + setters:[ + function (core_1_1) { + core_1 = core_1_1; + }, + function (common_1_1) { + common_1 = common_1_1; + }, + function (forms_1_1) { + forms_1 = forms_1_1; + }, + function (util_1_1) { + util_1 = util_1_1; + }, + function (input_1_1) { + input_1 = input_1_1; + }], + execute: function() { + EmojiModule = (function () { + function EmojiModule() { + } + EmojiModule = __decorate([ + core_1.NgModule({ + imports: [common_1.CommonModule, forms_1.FormsModule], + exports: [input_1.EmojiInputComponent], + providers: [util_1.EmojiUtil], + declarations: [input_1.EmojiInputComponent] + }), + __metadata('design:paramtypes', []) + ], EmojiModule); + return EmojiModule; + }()); + exports_1("EmojiModule", EmojiModule); + } + } +}); +//# sourceMappingURL=module.js.map \ No newline at end of file diff --git a/dist/lib/module.js.map b/dist/lib/module.js.map new file mode 100644 index 0000000..dbe8c41 --- /dev/null +++ b/dist/lib/module.js.map @@ -0,0 +1 @@ +{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/lib/module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAaA;gBAAA;gBAA2B,CAAC;gBAN5B;oBAAC,eAAQ,CAAC;wBACR,OAAO,EAAE,CAAC,qBAAY,EAAE,mBAAW,CAAC;wBACpC,OAAO,EAAE,CAAC,2BAAmB,CAAC;wBAC9B,SAAS,EAAE,CAAC,gBAAS,CAAC;wBACtB,YAAY,EAAE,CAAC,2BAAmB,CAAC;qBACpC,CAAC;;+BAAA;gBACyB,kBAAC;YAAD,CAAC,AAA5B,IAA4B;YAA5B,qCAA4B,CAAA"} \ No newline at end of file diff --git a/dist/lib/util/util.js b/dist/lib/util/util.js new file mode 100644 index 0000000..0d279f5 --- /dev/null +++ b/dist/lib/util/util.js @@ -0,0 +1,61 @@ +System.register(['@angular/core'], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; + var core_1; + var emojis, PARSE_REGEX, EmojiUtil; + return { + setters:[ + function (core_1_1) { + core_1 = core_1_1; + }], + execute: function() { + emojis = require('../db/emoji.json'); + PARSE_REGEX = /:([a-zA-Z0-9_\-\+]+):/g; + EmojiUtil = (function () { + function EmojiUtil() { + } + EmojiUtil.prototype.get = function (emoji) { + for (var _i = 0, emojis_1 = emojis; _i < emojis_1.length; _i++) { + var data = emojis_1[_i]; + for (var _a = 0, _b = data.aliases; _a < _b.length; _a++) { + var e = _b[_a]; + if (emoji === e) { + return data.emoji; + } + } + } + return emoji; + }; + EmojiUtil.prototype.getAll = function () { + return emojis; + }; + EmojiUtil.prototype.emojify = function (str) { + var _this = this; + return str.split(PARSE_REGEX).map(function (emoji, index) { + // Return every second element as an emoji + if (index % 2 === 0) { + return emoji; + } + return _this.get(emoji); + }).join(''); + }; + EmojiUtil = __decorate([ + core_1.Injectable(), + __metadata('design:paramtypes', []) + ], EmojiUtil); + return EmojiUtil; + }()); + exports_1("EmojiUtil", EmojiUtil); + } + } +}); +//# sourceMappingURL=util.js.map \ No newline at end of file diff --git a/dist/lib/util/util.js.map b/dist/lib/util/util.js.map new file mode 100644 index 0000000..a602f3e --- /dev/null +++ b/dist/lib/util/util.js.map @@ -0,0 +1 @@ +{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/lib/util/util.ts"],"names":[],"mappings":";;;;;;;;;;;;;QAEI,MAAM,EAEJ,WAAW;;;;;;;YAFb,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;YAEnC,WAAW,GAAG,wBAAwB,CAAC;YAG7C;gBAAA;gBAyBA,CAAC;gBAvBQ,uBAAG,GAAV,UAAW,KAAK;oBACd,GAAG,CAAC,CAAa,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM,CAAC;wBAAnB,IAAI,IAAI,eAAA;wBACX,GAAG,CAAC,CAAU,UAAY,EAAZ,KAAA,IAAI,CAAC,OAAO,EAAZ,cAAY,EAAZ,IAAY,CAAC;4BAAtB,IAAI,CAAC,SAAA;4BACR,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC;gCAChB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;4BACpB,CAAC;yBACF;qBACF;oBACD,MAAM,CAAC,KAAK,CAAC;gBACf,CAAC;gBAEM,0BAAM,GAAb;oBACE,MAAM,CAAC,MAAM,CAAC;gBAChB,CAAC;gBAEM,2BAAO,GAAd,UAAe,GAAG;oBAAlB,iBAMC;oBALC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,UAAC,KAAK,EAAE,KAAK;wBAC7C,0CAA0C;wBAC1C,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;4BAAC,MAAM,CAAC,KAAK,CAAC;wBAAC,CAAC;wBACtC,MAAM,CAAC,KAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;oBACzB,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACd,CAAC;gBAxBH;oBAAC,iBAAU,EAAE;;6BAAA;gBA0Bb,gBAAC;YAAD,CAAC,AAzBD,IAyBC;YAzBD,iCAyBC,CAAA"} \ No newline at end of file diff --git a/dist/main.js b/dist/main.js new file mode 100644 index 0000000..c214893 --- /dev/null +++ b/dist/main.js @@ -0,0 +1,28 @@ +System.register(['./polyfills.ts', '@angular/platform-browser-dynamic', '@angular/core', './environments/environment', './app/'], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + var platform_browser_dynamic_1, core_1, environment_1, _1; + return { + setters:[ + function (_2) {}, + function (platform_browser_dynamic_1_1) { + platform_browser_dynamic_1 = platform_browser_dynamic_1_1; + }, + function (core_1_1) { + core_1 = core_1_1; + }, + function (environment_1_1) { + environment_1 = environment_1_1; + }, + function (_1_1) { + _1 = _1_1; + }], + execute: function() { + if (environment_1.environment.production) { + core_1.enableProdMode(); + } + platform_browser_dynamic_1.platformBrowserDynamic().bootstrapModule(_1.AppModule); + } + } +}); +//# sourceMappingURL=main.js.map \ No newline at end of file diff --git a/dist/main.js.map b/dist/main.js.map new file mode 100644 index 0000000..2a30a12 --- /dev/null +++ b/dist/main.js.map @@ -0,0 +1 @@ +{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAOA,EAAE,CAAC,CAAC,yBAAW,CAAC,UAAU,CAAC,CAAC,CAAC;gBAC3B,qBAAc,EAAE,CAAC;YACnB,CAAC;YAED,iDAAsB,EAAE,CAAC,eAAe,CAAC,YAAS,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/polyfills.js b/dist/polyfills.js new file mode 100644 index 0000000..9584982 --- /dev/null +++ b/dist/polyfills.js @@ -0,0 +1,26 @@ +System.register(['core-js/es6/symbol', 'core-js/es6/object', 'core-js/es6/function', 'core-js/es6/parse-int', 'core-js/es6/parse-float', 'core-js/es6/number', 'core-js/es6/math', 'core-js/es6/string', 'core-js/es6/date', 'core-js/es6/array', 'core-js/es6/regexp', 'core-js/es6/map', 'core-js/es6/set', 'core-js/es6/reflect', 'core-js/es7/reflect', 'zone.js/dist/zone'], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + return { + setters:[ + function (_1) {}, + function (_2) {}, + function (_3) {}, + function (_4) {}, + function (_5) {}, + function (_6) {}, + function (_7) {}, + function (_8) {}, + function (_9) {}, + function (_10) {}, + function (_11) {}, + function (_12) {}, + function (_13) {}, + function (_14) {}, + function (_15) {}, + function (_16) {}], + execute: function() { + } + } +}); +//# sourceMappingURL=polyfills.js.map \ No newline at end of file diff --git a/dist/polyfills.js.map b/dist/polyfills.js.map new file mode 100644 index 0000000..5a1fb30 --- /dev/null +++ b/dist/polyfills.js.map @@ -0,0 +1 @@ +{"version":3,"file":"polyfills.js","sourceRoot":"","sources":["../src/polyfills.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/test.js b/dist/test.js new file mode 100644 index 0000000..5f1b679 --- /dev/null +++ b/dist/test.js @@ -0,0 +1,30 @@ +System.register(['./polyfills.ts', 'zone.js/dist/long-stack-trace-zone', 'zone.js/dist/proxy.js', 'zone.js/dist/sync-test', 'zone.js/dist/jasmine-patch', 'zone.js/dist/async-test', 'zone.js/dist/fake-async-test'], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + return { + setters:[ + function (_1) {}, + function (_2) {}, + function (_3) {}, + function (_4) {}, + function (_5) {}, + function (_6) {}, + function (_7) {}], + execute: function() { + // Prevent Karma from running prematurely. + __karma__.loaded = function () { }; + Promise.all([ + System.import('@angular/core/testing'), + System.import('@angular/platform-browser-dynamic/testing') + ]) + .then(function (_a) { + var testing = _a[0], testingBrowser = _a[1]; + testing.getTestBed().initTestEnvironment(testingBrowser.BrowserDynamicTestingModule, testingBrowser.platformBrowserDynamicTesting()); + }) + .then(function () { return require.context('./', true, /\.spec\.ts/); }) + .then(function (context) { return context.keys().map(context); }) + .then(__karma__.start, __karma__.error); + } + } +}); +//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/dist/test.js.map b/dist/test.js.map new file mode 100644 index 0000000..7a40997 --- /dev/null +++ b/dist/test.js.map @@ -0,0 +1 @@ +{"version":3,"file":"test.js","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":";;;;;;;;;;;;;YAaA,0CAA0C;YAC1C,SAAS,CAAC,MAAM,GAAG,cAAa,CAAC,CAAC;YAGlC,OAAO,CAAC,GAAG,CAAC;gBACV,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC;gBACtC,MAAM,CAAC,MAAM,CAAC,2CAA2C,CAAC;aAC3D,CAAC;iBAEC,IAAI,CAAC,UAAC,EAAyB;oBAAxB,eAAO,EAAE,sBAAc;gBAC7B,OAAO,CAAC,UAAU,EAAE,CAAC,mBAAmB,CACtC,cAAc,CAAC,2BAA2B,EAC1C,cAAc,CAAC,6BAA6B,EAAE,CAC/C,CAAC;YACJ,CAAC,CAAC;iBAED,IAAI,CAAC,cAAM,OAAA,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,CAAC,EAAzC,CAAyC,CAAC;iBAErD,IAAI,CAAC,UAAA,OAAO,IAAI,OAAA,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,EAA3B,CAA2B,CAAC;iBAE5C,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/package.json b/package.json index 15a2a59..4f69505 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "lint": "tslint \"src/**/*.ts\"", "test": "ng test", "pree2e": "webdriver-manager update", - "e2e": "protractor" + "e2e": "protractor", + "tsc": "tsc" }, "private": true, "dependencies": { diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..16c536a --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "target": "ES5", + "module": "system", + "moduleResolution": "node", + "sourceMap": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "removeComments": false, + "noImplicitAny": false, + "outDir": "dist/" + }, + "include": [ + "src/*" + ] +} \ No newline at end of file From 3fee994e553a67cb1959fb749cbff423bf87f7c6 Mon Sep 17 00:00:00 2001 From: Cory Harter Date: Tue, 13 Dec 2016 19:52:21 -0500 Subject: [PATCH 2/2] compiled js into lib folder --- .gitignore | 1 + dist/app/app.component.js | 43 --------------- dist/app/app.component.js.map | 1 - dist/app/app.module.js | 61 --------------------- dist/app/app.module.js.map | 1 - dist/app/index.js | 23 -------- dist/app/index.js.map | 1 - dist/environments/environment.js | 18 ------- dist/environments/environment.js.map | 1 - dist/lib/index.js.map | 1 - dist/lib/input/input.js.map | 1 - dist/lib/module.js.map | 1 - dist/lib/util/util.js.map | 1 - dist/main.js | 28 ---------- dist/main.js.map | 1 - dist/polyfills.js | 26 --------- dist/polyfills.js.map | 1 - dist/test.js | 30 ----------- dist/test.js.map | 1 - package.json | 3 +- {dist/lib => src/lib/dist}/index.js | 16 +++--- src/lib/dist/index.js.map | 1 + src/lib/dist/input/index.js | 22 ++++++++ src/lib/dist/input/index.js.map | 1 + {dist/lib => src/lib/dist}/input/input.js | 64 +++++++++++------------ src/lib/dist/input/input.js.map | 1 + src/lib/dist/input/input.spec.js | 55 +++++++++++++++++++ src/lib/dist/input/input.spec.js.map | 1 + {dist/lib => src/lib/dist}/module.js | 34 ++++++------ src/lib/dist/module.js.map | 1 + {dist/lib => src/lib/dist}/util/util.js | 24 ++++----- src/lib/dist/util/util.js.map | 1 + src/lib/package.json | 3 ++ tsconfig.json => src/lib/tsconfig.json | 5 +- 34 files changed, 159 insertions(+), 314 deletions(-) delete mode 100644 dist/app/app.component.js delete mode 100644 dist/app/app.component.js.map delete mode 100644 dist/app/app.module.js delete mode 100644 dist/app/app.module.js.map delete mode 100644 dist/app/index.js delete mode 100644 dist/app/index.js.map delete mode 100644 dist/environments/environment.js delete mode 100644 dist/environments/environment.js.map delete mode 100644 dist/lib/index.js.map delete mode 100644 dist/lib/input/input.js.map delete mode 100644 dist/lib/module.js.map delete mode 100644 dist/lib/util/util.js.map delete mode 100644 dist/main.js delete mode 100644 dist/main.js.map delete mode 100644 dist/polyfills.js delete mode 100644 dist/polyfills.js.map delete mode 100644 dist/test.js delete mode 100644 dist/test.js.map rename {dist/lib => src/lib/dist}/index.js (50%) create mode 100644 src/lib/dist/index.js.map create mode 100644 src/lib/dist/input/index.js create mode 100644 src/lib/dist/input/index.js.map rename {dist/lib => src/lib/dist}/input/input.js (71%) create mode 100644 src/lib/dist/input/input.js.map create mode 100644 src/lib/dist/input/input.spec.js create mode 100644 src/lib/dist/input/input.spec.js.map rename {dist/lib => src/lib/dist}/module.js (65%) create mode 100644 src/lib/dist/module.js.map rename {dist/lib => src/lib/dist}/util/util.js (85%) create mode 100644 src/lib/dist/util/util.js.map rename tsconfig.json => src/lib/tsconfig.json (88%) diff --git a/.gitignore b/.gitignore index f49068e..fccc4d9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # See http://help.github.com/ignore-files/ for more about ignoring files. # compiled output +/dist /tmp # dependencies diff --git a/dist/app/app.component.js b/dist/app/app.component.js deleted file mode 100644 index 090ce07..0000000 --- a/dist/app/app.component.js +++ /dev/null @@ -1,43 +0,0 @@ -System.register(['@angular/core'], function(exports_1, context_1) { - "use strict"; - var __moduleName = context_1 && context_1.id; - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var core_1; - var AppComponent; - return { - setters:[ - function (core_1_1) { - core_1 = core_1_1; - }], - execute: function() { - AppComponent = (function () { - function AppComponent() { - this.pressedCount = 0; - } - AppComponent.prototype.enterTest = function () { - this.pressedCount = this.pressedCount + 1; - this.testModel = ''; - }; - AppComponent = __decorate([ - core_1.Component({ - selector: 'app-root', - templateUrl: './app.component.html', - styleUrls: ['./app.component.css'] - }), - __metadata('design:paramtypes', []) - ], AppComponent); - return AppComponent; - }()); - exports_1("AppComponent", AppComponent); - } - } -}); -//# sourceMappingURL=app.component.js.map \ No newline at end of file diff --git a/dist/app/app.component.js.map b/dist/app/app.component.js.map deleted file mode 100644 index b555035..0000000 --- a/dist/app/app.component.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"app.component.js","sourceRoot":"","sources":["../../src/app/app.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAOA;gBAAA;oBAEE,iBAAY,GAAW,CAAC,CAAC;gBAK3B,CAAC;gBAJC,gCAAS,GAAT;oBACE,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;oBAC1C,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;gBACtB,CAAC;gBAXH;oBAAC,gBAAS,CAAC;wBACT,QAAQ,EAAE,UAAU;wBACpB,WAAW,EAAE,sBAAsB;wBACnC,SAAS,EAAE,CAAC,qBAAqB,CAAC;qBACnC,CAAC;;gCAAA;gBAQF,mBAAC;YAAD,CAAC,AAPD,IAOC;YAPD,uCAOC,CAAA"} \ No newline at end of file diff --git a/dist/app/app.module.js b/dist/app/app.module.js deleted file mode 100644 index 33cba9b..0000000 --- a/dist/app/app.module.js +++ /dev/null @@ -1,61 +0,0 @@ -System.register(['@angular/platform-browser', '@angular/core', '@angular/forms', '@angular/http', './app.component', '../lib/'], function(exports_1, context_1) { - "use strict"; - var __moduleName = context_1 && context_1.id; - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var platform_browser_1, core_1, forms_1, http_1, app_component_1, _1; - var AppModule; - return { - setters:[ - function (platform_browser_1_1) { - platform_browser_1 = platform_browser_1_1; - }, - function (core_1_1) { - core_1 = core_1_1; - }, - function (forms_1_1) { - forms_1 = forms_1_1; - }, - function (http_1_1) { - http_1 = http_1_1; - }, - function (app_component_1_1) { - app_component_1 = app_component_1_1; - }, - function (_1_1) { - _1 = _1_1; - }], - execute: function() { - AppModule = (function () { - function AppModule() { - } - AppModule = __decorate([ - core_1.NgModule({ - declarations: [ - app_component_1.AppComponent - ], - imports: [ - platform_browser_1.BrowserModule, - forms_1.FormsModule, - http_1.HttpModule, - _1.EmojiModule - ], - providers: [], - bootstrap: [app_component_1.AppComponent] - }), - __metadata('design:paramtypes', []) - ], AppModule); - return AppModule; - }()); - exports_1("AppModule", AppModule); - } - } -}); -//# sourceMappingURL=app.module.js.map \ No newline at end of file diff --git a/dist/app/app.module.js.map b/dist/app/app.module.js.map deleted file mode 100644 index 44e0b60..0000000 --- a/dist/app/app.module.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../../src/app/app.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAsBA;gBAAA;gBAAyB,CAAC;gBAb1B;oBAAC,eAAQ,CAAC;wBACR,YAAY,EAAE;4BACZ,4BAAY;yBACb;wBACD,OAAO,EAAE;4BACP,gCAAa;4BACb,mBAAW;4BACX,iBAAU;4BACV,cAAW;yBACZ;wBACD,SAAS,EAAE,EAAE;wBACb,SAAS,EAAE,CAAC,4BAAY,CAAC;qBAC1B,CAAC;;6BAAA;gBACuB,gBAAC;YAAD,CAAC,AAA1B,IAA0B;YAA1B,iCAA0B,CAAA"} \ No newline at end of file diff --git a/dist/app/index.js b/dist/app/index.js deleted file mode 100644 index 32eb92f..0000000 --- a/dist/app/index.js +++ /dev/null @@ -1,23 +0,0 @@ -System.register(['./app.component', './app.module'], function(exports_1, context_1) { - "use strict"; - var __moduleName = context_1 && context_1.id; - function exportStar_1(m) { - var exports = {}; - for(var n in m) { - if (n !== "default") exports[n] = m[n]; - } - exports_1(exports); - } - return { - setters:[ - function (app_component_1_1) { - exportStar_1(app_component_1_1); - }, - function (app_module_1_1) { - exportStar_1(app_module_1_1); - }], - execute: function() { - } - } -}); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/app/index.js.map b/dist/app/index.js.map deleted file mode 100644 index 25cd61f..0000000 --- a/dist/app/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/environments/environment.js b/dist/environments/environment.js deleted file mode 100644 index 2f55a6d..0000000 --- a/dist/environments/environment.js +++ /dev/null @@ -1,18 +0,0 @@ -// The file contents for the current environment will overwrite these during build. -// The build system defaults to the dev environment which uses `environment.ts`, but if you do -// `ng build --env=prod` then `environment.prod.ts` will be used instead. -// The list of which env maps to which file can be found in `angular-cli.json`. -System.register([], function(exports_1, context_1) { - "use strict"; - var __moduleName = context_1 && context_1.id; - var environment; - return { - setters:[], - execute: function() { - exports_1("environment", environment = { - production: false - }); - } - } -}); -//# sourceMappingURL=environment.js.map \ No newline at end of file diff --git a/dist/environments/environment.js.map b/dist/environments/environment.js.map deleted file mode 100644 index 10bb21e..0000000 --- a/dist/environments/environment.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../src/environments/environment.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,8FAA8F;AAC9F,yEAAyE;AACzE,+EAA+E;;;;QAElE,WAAW;;;;YAAX,yBAAA,WAAW,GAAG;gBACzB,UAAU,EAAE,KAAK;aAClB,CAAA,CAAC"} \ No newline at end of file diff --git a/dist/lib/index.js.map b/dist/lib/index.js.map deleted file mode 100644 index f714732..0000000 --- a/dist/lib/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/lib/input/input.js.map b/dist/lib/input/input.js.map deleted file mode 100644 index 78d6622..0000000 --- a/dist/lib/input/input.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/lib/input/input.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;YASA;gBAAA;oBAEW,gBAAW,GAAG,KAAK,CAAC;oBACpB,YAAO,GAAa,cAAO,CAAC,CAAC;oBAE5B,gBAAW,GAAQ,IAAI,mBAAY,EAAE,CAAC;oBAIhD,cAAS,GAAc,IAAI,gBAAS,EAAE,CAAC;oBAEvC,cAAS,GAAY,KAAK,CAAC;gBA4C7B,CAAC;gBA1CC,sCAAQ,GAAR;oBACE,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;oBAChB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;oBACvB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;gBAC3C,CAAC;gBAED,yCAAW,GAAX;oBACE,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;wBAC9B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;oBAC1B,CAAC;gBACH,CAAC;gBAED,yCAAW,GAAX;oBACE,IAAI,CAAC,SAAS,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC;gBACnC,CAAC;gBAED,+CAAiB,GAAjB;oBAAA,iBAaC;oBAZC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,UAAC,CAAC;wBAC7B,EAAE,CAAC,CAAC,KAAI,CAAC,YAAY,KAAK,EAAE,CAAC,CAAC,CAAC;4BAC7B,MAAM,CAAC,IAAI,CAAC;wBACd,CAAC;wBAAC,IAAI,CAAC,CAAC;4BACN,GAAG,CAAC,CAAc,UAAS,EAAT,KAAA,CAAC,CAAC,OAAO,EAAT,cAAS,EAAT,IAAS,CAAC;gCAAvB,IAAI,KAAK,SAAA;gCACZ,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;oCACtC,MAAM,CAAC,IAAI,CAAC;gCACd,CAAC;6BACF;wBACH,CAAC;wBACD,MAAM,CAAC,KAAK,CAAC;oBACf,CAAC,CAAC,CAAC;gBACL,CAAC;gBAED,0CAAY,GAAZ,UAAa,CAAC;oBACZ,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;oBAC5B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;gBACzB,CAAC;gBAED,sCAAQ,GAAR,UAAS,QAAQ;oBACf,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;oBAC9C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;oBACxB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACpC,CAAC;gBApDD;oBAAC,YAAK,EAAE;;wEAAA;gBACR;oBAAC,YAAK,EAAE;;oEAAA;gBACR;oBAAC,YAAK,EAAE;;kEAAA;gBACR;oBAAC,aAAM,EAAE;;wEAAA;gBAVX;oBAAC,gBAAS,CAAC;wBACT,QAAQ,EAAE,aAAa;wBACvB,WAAW,EAAE,YAAY;wBACzB,SAAS,EAAE,CAAC,YAAY,CAAC;qBAC1B,CAAC;;uCAAA;gBAwDF,0BAAC;YAAD,CAAC,AAvDD,IAuDC;YAvDD,qDAuDC,CAAA"} \ No newline at end of file diff --git a/dist/lib/module.js.map b/dist/lib/module.js.map deleted file mode 100644 index dbe8c41..0000000 --- a/dist/lib/module.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/lib/module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAaA;gBAAA;gBAA2B,CAAC;gBAN5B;oBAAC,eAAQ,CAAC;wBACR,OAAO,EAAE,CAAC,qBAAY,EAAE,mBAAW,CAAC;wBACpC,OAAO,EAAE,CAAC,2BAAmB,CAAC;wBAC9B,SAAS,EAAE,CAAC,gBAAS,CAAC;wBACtB,YAAY,EAAE,CAAC,2BAAmB,CAAC;qBACpC,CAAC;;+BAAA;gBACyB,kBAAC;YAAD,CAAC,AAA5B,IAA4B;YAA5B,qCAA4B,CAAA"} \ No newline at end of file diff --git a/dist/lib/util/util.js.map b/dist/lib/util/util.js.map deleted file mode 100644 index a602f3e..0000000 --- a/dist/lib/util/util.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/lib/util/util.ts"],"names":[],"mappings":";;;;;;;;;;;;;QAEI,MAAM,EAEJ,WAAW;;;;;;;YAFb,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;YAEnC,WAAW,GAAG,wBAAwB,CAAC;YAG7C;gBAAA;gBAyBA,CAAC;gBAvBQ,uBAAG,GAAV,UAAW,KAAK;oBACd,GAAG,CAAC,CAAa,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM,CAAC;wBAAnB,IAAI,IAAI,eAAA;wBACX,GAAG,CAAC,CAAU,UAAY,EAAZ,KAAA,IAAI,CAAC,OAAO,EAAZ,cAAY,EAAZ,IAAY,CAAC;4BAAtB,IAAI,CAAC,SAAA;4BACR,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC;gCAChB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;4BACpB,CAAC;yBACF;qBACF;oBACD,MAAM,CAAC,KAAK,CAAC;gBACf,CAAC;gBAEM,0BAAM,GAAb;oBACE,MAAM,CAAC,MAAM,CAAC;gBAChB,CAAC;gBAEM,2BAAO,GAAd,UAAe,GAAG;oBAAlB,iBAMC;oBALC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,UAAC,KAAK,EAAE,KAAK;wBAC7C,0CAA0C;wBAC1C,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;4BAAC,MAAM,CAAC,KAAK,CAAC;wBAAC,CAAC;wBACtC,MAAM,CAAC,KAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;oBACzB,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACd,CAAC;gBAxBH;oBAAC,iBAAU,EAAE;;6BAAA;gBA0Bb,gBAAC;YAAD,CAAC,AAzBD,IAyBC;YAzBD,iCAyBC,CAAA"} \ No newline at end of file diff --git a/dist/main.js b/dist/main.js deleted file mode 100644 index c214893..0000000 --- a/dist/main.js +++ /dev/null @@ -1,28 +0,0 @@ -System.register(['./polyfills.ts', '@angular/platform-browser-dynamic', '@angular/core', './environments/environment', './app/'], function(exports_1, context_1) { - "use strict"; - var __moduleName = context_1 && context_1.id; - var platform_browser_dynamic_1, core_1, environment_1, _1; - return { - setters:[ - function (_2) {}, - function (platform_browser_dynamic_1_1) { - platform_browser_dynamic_1 = platform_browser_dynamic_1_1; - }, - function (core_1_1) { - core_1 = core_1_1; - }, - function (environment_1_1) { - environment_1 = environment_1_1; - }, - function (_1_1) { - _1 = _1_1; - }], - execute: function() { - if (environment_1.environment.production) { - core_1.enableProdMode(); - } - platform_browser_dynamic_1.platformBrowserDynamic().bootstrapModule(_1.AppModule); - } - } -}); -//# sourceMappingURL=main.js.map \ No newline at end of file diff --git a/dist/main.js.map b/dist/main.js.map deleted file mode 100644 index 2a30a12..0000000 --- a/dist/main.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAOA,EAAE,CAAC,CAAC,yBAAW,CAAC,UAAU,CAAC,CAAC,CAAC;gBAC3B,qBAAc,EAAE,CAAC;YACnB,CAAC;YAED,iDAAsB,EAAE,CAAC,eAAe,CAAC,YAAS,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/polyfills.js b/dist/polyfills.js deleted file mode 100644 index 9584982..0000000 --- a/dist/polyfills.js +++ /dev/null @@ -1,26 +0,0 @@ -System.register(['core-js/es6/symbol', 'core-js/es6/object', 'core-js/es6/function', 'core-js/es6/parse-int', 'core-js/es6/parse-float', 'core-js/es6/number', 'core-js/es6/math', 'core-js/es6/string', 'core-js/es6/date', 'core-js/es6/array', 'core-js/es6/regexp', 'core-js/es6/map', 'core-js/es6/set', 'core-js/es6/reflect', 'core-js/es7/reflect', 'zone.js/dist/zone'], function(exports_1, context_1) { - "use strict"; - var __moduleName = context_1 && context_1.id; - return { - setters:[ - function (_1) {}, - function (_2) {}, - function (_3) {}, - function (_4) {}, - function (_5) {}, - function (_6) {}, - function (_7) {}, - function (_8) {}, - function (_9) {}, - function (_10) {}, - function (_11) {}, - function (_12) {}, - function (_13) {}, - function (_14) {}, - function (_15) {}, - function (_16) {}], - execute: function() { - } - } -}); -//# sourceMappingURL=polyfills.js.map \ No newline at end of file diff --git a/dist/polyfills.js.map b/dist/polyfills.js.map deleted file mode 100644 index 5a1fb30..0000000 --- a/dist/polyfills.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"polyfills.js","sourceRoot":"","sources":["../src/polyfills.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/test.js b/dist/test.js deleted file mode 100644 index 5f1b679..0000000 --- a/dist/test.js +++ /dev/null @@ -1,30 +0,0 @@ -System.register(['./polyfills.ts', 'zone.js/dist/long-stack-trace-zone', 'zone.js/dist/proxy.js', 'zone.js/dist/sync-test', 'zone.js/dist/jasmine-patch', 'zone.js/dist/async-test', 'zone.js/dist/fake-async-test'], function(exports_1, context_1) { - "use strict"; - var __moduleName = context_1 && context_1.id; - return { - setters:[ - function (_1) {}, - function (_2) {}, - function (_3) {}, - function (_4) {}, - function (_5) {}, - function (_6) {}, - function (_7) {}], - execute: function() { - // Prevent Karma from running prematurely. - __karma__.loaded = function () { }; - Promise.all([ - System.import('@angular/core/testing'), - System.import('@angular/platform-browser-dynamic/testing') - ]) - .then(function (_a) { - var testing = _a[0], testingBrowser = _a[1]; - testing.getTestBed().initTestEnvironment(testingBrowser.BrowserDynamicTestingModule, testingBrowser.platformBrowserDynamicTesting()); - }) - .then(function () { return require.context('./', true, /\.spec\.ts/); }) - .then(function (context) { return context.keys().map(context); }) - .then(__karma__.start, __karma__.error); - } - } -}); -//# sourceMappingURL=test.js.map \ No newline at end of file diff --git a/dist/test.js.map b/dist/test.js.map deleted file mode 100644 index 7a40997..0000000 --- a/dist/test.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"test.js","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":";;;;;;;;;;;;;YAaA,0CAA0C;YAC1C,SAAS,CAAC,MAAM,GAAG,cAAa,CAAC,CAAC;YAGlC,OAAO,CAAC,GAAG,CAAC;gBACV,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC;gBACtC,MAAM,CAAC,MAAM,CAAC,2CAA2C,CAAC;aAC3D,CAAC;iBAEC,IAAI,CAAC,UAAC,EAAyB;oBAAxB,eAAO,EAAE,sBAAc;gBAC7B,OAAO,CAAC,UAAU,EAAE,CAAC,mBAAmB,CACtC,cAAc,CAAC,2BAA2B,EAC1C,cAAc,CAAC,6BAA6B,EAAE,CAC/C,CAAC;YACJ,CAAC,CAAC;iBAED,IAAI,CAAC,cAAM,OAAA,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,CAAC,EAAzC,CAAyC,CAAC;iBAErD,IAAI,CAAC,UAAA,OAAO,IAAI,OAAA,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,EAA3B,CAA2B,CAAC;iBAE5C,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/package.json b/package.json index 4f69505..15a2a59 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,7 @@ "lint": "tslint \"src/**/*.ts\"", "test": "ng test", "pree2e": "webdriver-manager update", - "e2e": "protractor", - "tsc": "tsc" + "e2e": "protractor" }, "private": true, "dependencies": { diff --git a/dist/lib/index.js b/src/lib/dist/index.js similarity index 50% rename from dist/lib/index.js rename to src/lib/dist/index.js index 69b50eb..2d363b6 100644 --- a/dist/lib/index.js +++ b/src/lib/dist/index.js @@ -1,20 +1,22 @@ -System.register(['./module'], function(exports_1, context_1) { +System.register(["./module"], function (exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; function exportStar_1(m) { var exports = {}; - for(var n in m) { - if (n !== "default") exports[n] = m[n]; + for (var n in m) { + if (n !== "default") + exports[n] = m[n]; } exports_1(exports); } return { - setters:[ + setters: [ function (module_1_1) { exportStar_1(module_1_1); - }], - execute: function() { + } + ], + execute: function () { } - } + }; }); //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/src/lib/dist/index.js.map b/src/lib/dist/index.js.map new file mode 100644 index 0000000..858463b --- /dev/null +++ b/src/lib/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;QACA,CAAC"} \ No newline at end of file diff --git a/src/lib/dist/input/index.js b/src/lib/dist/input/index.js new file mode 100644 index 0000000..87f255c --- /dev/null +++ b/src/lib/dist/input/index.js @@ -0,0 +1,22 @@ +System.register(["./input"], function (exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + function exportStar_1(m) { + var exports = {}; + for (var n in m) { + if (n !== "default") + exports[n] = m[n]; + } + exports_1(exports); + } + return { + setters: [ + function (input_1_1) { + exportStar_1(input_1_1); + } + ], + execute: function () { + } + }; +}); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/src/lib/dist/input/index.js.map b/src/lib/dist/input/index.js.map new file mode 100644 index 0000000..5b9f17c --- /dev/null +++ b/src/lib/dist/input/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../input/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;QACA,CAAC"} \ No newline at end of file diff --git a/dist/lib/input/input.js b/src/lib/dist/input/input.js similarity index 71% rename from dist/lib/input/input.js rename to src/lib/dist/input/input.js index f203b42..67bdfbc 100644 --- a/dist/lib/input/input.js +++ b/src/lib/dist/input/input.js @@ -1,6 +1,5 @@ -System.register(['@angular/core', '../util/util'], function(exports_1, context_1) { +System.register(["@angular/core", "../util/util"], function (exports_1, context_1) { "use strict"; - var __moduleName = context_1 && context_1.id; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -10,17 +9,18 @@ System.register(['@angular/core', '../util/util'], function(exports_1, context_1 var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var core_1, util_1; - var EmojiInputComponent; + var __moduleName = context_1 && context_1.id; + var core_1, util_1, EmojiInputComponent; return { - setters:[ + setters: [ function (core_1_1) { core_1 = core_1_1; }, function (util_1_1) { util_1 = util_1_1; - }], - execute: function() { + } + ], + execute: function () { EmojiInputComponent = (function () { function EmojiInputComponent() { this.popupAnchor = 'top'; @@ -69,34 +69,34 @@ System.register(['@angular/core', '../util/util'], function(exports_1, context_1 this.model = this.input; this.modelChange.emit(this.input); }; - __decorate([ - core_1.Input(), - __metadata('design:type', Object) - ], EmojiInputComponent.prototype, "popupAnchor", void 0); - __decorate([ - core_1.Input(), - __metadata('design:type', Function) - ], EmojiInputComponent.prototype, "onEnter", void 0); - __decorate([ - core_1.Input(), - __metadata('design:type', Object) - ], EmojiInputComponent.prototype, "model", void 0); - __decorate([ - core_1.Output(), - __metadata('design:type', Object) - ], EmojiInputComponent.prototype, "modelChange", void 0); - EmojiInputComponent = __decorate([ - core_1.Component({ - selector: 'emoji-input', - templateUrl: 'input.html', - styleUrls: ['input.scss'] - }), - __metadata('design:paramtypes', []) - ], EmojiInputComponent); return EmojiInputComponent; }()); + __decorate([ + core_1.Input(), + __metadata("design:type", Object) + ], EmojiInputComponent.prototype, "popupAnchor", void 0); + __decorate([ + core_1.Input(), + __metadata("design:type", Function) + ], EmojiInputComponent.prototype, "onEnter", void 0); + __decorate([ + core_1.Input(), + __metadata("design:type", Object) + ], EmojiInputComponent.prototype, "model", void 0); + __decorate([ + core_1.Output(), + __metadata("design:type", Object) + ], EmojiInputComponent.prototype, "modelChange", void 0); + EmojiInputComponent = __decorate([ + core_1.Component({ + selector: 'emoji-input', + templateUrl: 'input.html', + styleUrls: ['input.scss'] + }), + __metadata("design:paramtypes", []) + ], EmojiInputComponent); exports_1("EmojiInputComponent", EmojiInputComponent); } - } + }; }); //# sourceMappingURL=input.js.map \ No newline at end of file diff --git a/src/lib/dist/input/input.js.map b/src/lib/dist/input/input.js.map new file mode 100644 index 0000000..614e55c --- /dev/null +++ b/src/lib/dist/input/input.js.map @@ -0,0 +1 @@ +{"version":3,"file":"input.js","sourceRoot":"","sources":["../../input/input.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;YASa,mBAAmB;gBALhC;oBAOW,gBAAW,GAAG,KAAK,CAAC;oBACpB,YAAO,GAAa,cAAO,CAAC,CAAC;oBAE5B,gBAAW,GAAQ,IAAI,mBAAY,EAAE,CAAC;oBAIhD,cAAS,GAAc,IAAI,gBAAS,EAAE,CAAC;oBAEvC,cAAS,GAAY,KAAK,CAAC;gBA4C7B,CAAC;gBA1CC,sCAAQ,GAAR;oBACE,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;oBAChB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;oBACvB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;gBAC3C,CAAC;gBAED,yCAAW,GAAX;oBACE,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;wBAC9B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;oBAC1B,CAAC;gBACH,CAAC;gBAED,yCAAW,GAAX;oBACE,IAAI,CAAC,SAAS,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC;gBACnC,CAAC;gBAED,+CAAiB,GAAjB;oBAAA,iBAaC;oBAZC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,UAAC,CAAC;wBAC7B,EAAE,CAAC,CAAC,KAAI,CAAC,YAAY,KAAK,EAAE,CAAC,CAAC,CAAC;4BAC7B,MAAM,CAAC,IAAI,CAAC;wBACd,CAAC;wBAAC,IAAI,CAAC,CAAC;4BACN,GAAG,CAAC,CAAc,UAAS,EAAT,KAAA,CAAC,CAAC,OAAO,EAAT,cAAS,EAAT,IAAS;gCAAtB,IAAI,KAAK,SAAA;gCACZ,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;oCACtC,MAAM,CAAC,IAAI,CAAC;gCACd,CAAC;6BACF;wBACH,CAAC;wBACD,MAAM,CAAC,KAAK,CAAC;oBACf,CAAC,CAAC,CAAC;gBACL,CAAC;gBAED,0CAAY,GAAZ,UAAa,CAAC;oBACZ,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;oBAC5B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBAClC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;gBACzB,CAAC;gBAED,sCAAQ,GAAR,UAAS,QAAQ;oBACf,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;oBAC9C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;oBACxB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACpC,CAAC;gBACH,0BAAC;YAAD,CAAC,AAvDD,IAuDC;YArDU;gBAAR,YAAK,EAAE;;oEAAqB;YACpB;gBAAR,YAAK,EAAE;0CAAU,QAAQ;gEAAY;YAC7B;gBAAR,YAAK,EAAE;;8DAAY;YACV;gBAAT,aAAM,EAAE;;oEAAuC;YALrC,mBAAmB;gBAL/B,gBAAS,CAAC;oBACT,QAAQ,EAAE,aAAa;oBACvB,WAAW,EAAE,YAAY;oBACzB,SAAS,EAAE,CAAC,YAAY,CAAC;iBAC1B,CAAC;;eACW,mBAAmB,CAuD/B;;QACD,CAAC"} \ No newline at end of file diff --git a/src/lib/dist/input/input.spec.js b/src/lib/dist/input/input.spec.js new file mode 100644 index 0000000..b154988 --- /dev/null +++ b/src/lib/dist/input/input.spec.js @@ -0,0 +1,55 @@ +/* tslint:disable:no-unused-variable */ +System.register(["@angular/core/testing", "@angular/forms", "@angular/platform-browser", "./"], function (exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + var testing_1, forms_1, platform_browser_1, _1; + return { + setters: [ + function (testing_1_1) { + testing_1 = testing_1_1; + }, + function (forms_1_1) { + forms_1 = forms_1_1; + }, + function (platform_browser_1_1) { + platform_browser_1 = platform_browser_1_1; + }, + function (_1_1) { + _1 = _1_1; + } + ], + execute: function () {/* tslint:disable:no-unused-variable */ + describe('angular2-emoji: input', function () { + beforeEach(function () { + testing_1.TestBed.configureTestingModule({ + imports: [forms_1.FormsModule], + declarations: [ + _1.EmojiInputComponent + ], + }); + }); + it('should create the input', testing_1.async(function () { + var fixture = testing_1.TestBed.createComponent(_1.EmojiInputComponent); + var input = fixture.debugElement.componentInstance; + expect(input).toBeTruthy(); + })); + it('support ngModel', testing_1.async(function () { + var fixture = testing_1.TestBed.createComponent(_1.EmojiInputComponent); + fixture.detectChanges(); + var instance = fixture.componentInstance; + var el = fixture.debugElement.query(platform_browser_1.By.css('input')).nativeElement; + instance.input = 'hello'; + fixture.detectChanges(); + fixture.whenStable().then(function () { + fixture.detectChanges(); + fixture.whenStable().then(function () { + expect(el.value).toBe('hello'); + expect(fixture.debugElement.componentInstance.input).toBe('hello'); + }); + }); + })); + }); + } + }; +}); +//# sourceMappingURL=input.spec.js.map \ No newline at end of file diff --git a/src/lib/dist/input/input.spec.js.map b/src/lib/dist/input/input.spec.js.map new file mode 100644 index 0000000..2ebd76a --- /dev/null +++ b/src/lib/dist/input/input.spec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"input.spec.js","sourceRoot":"","sources":["../../input/input.spec.ts"],"names":[],"mappings":"AAAA,uCAAuC;;;;;;;;;;;;;;;;;;;;8BAAvC,uCAAuC;YAQvC,QAAQ,CAAC,uBAAuB,EAAE;gBAChC,UAAU,CAAC;oBACT,iBAAO,CAAC,sBAAsB,CAAC;wBAC7B,OAAO,EAAE,CAAC,mBAAW,CAAC;wBACtB,YAAY,EAAE;4BACZ,sBAAmB;yBACpB;qBACF,CAAC,CAAC;gBACL,CAAC,CAAC,CAAC;gBAEH,EAAE,CAAC,yBAAyB,EAAE,eAAK,CAAC;oBAClC,IAAI,OAAO,GAAG,iBAAO,CAAC,eAAe,CAAC,sBAAmB,CAAC,CAAC;oBAC3D,IAAI,KAAK,GAAG,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC;oBACnD,MAAM,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC;gBAC7B,CAAC,CAAC,CAAC,CAAC;gBAEJ,EAAE,CAAC,iBAAiB,EAAE,eAAK,CAAC;oBAC1B,IAAI,OAAO,GAAG,iBAAO,CAAC,eAAe,CAAC,sBAAmB,CAAC,CAAC;oBAE3D,OAAO,CAAC,aAAa,EAAE,CAAC;oBACxB,IAAI,QAAQ,GAAG,OAAO,CAAC,iBAAiB,CAAC;oBACzC,IAAI,EAAE,GAAqB,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,qBAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC;oBAErF,QAAQ,CAAC,KAAK,GAAG,OAAO,CAAC;oBACzB,OAAO,CAAC,aAAa,EAAE,CAAC;oBACxB,OAAO,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC;wBACxB,OAAO,CAAC,aAAa,EAAE,CAAC;wBACxB,OAAO,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC;4BACxB,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;4BAC/B,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;wBACrE,CAAC,CAAC,CAAC;oBACL,CAAC,CAAC,CAAC;gBACL,CAAC,CAAC,CAAC,CAAC;YACN,CAAC,CAAC,CAAC;QACH,CAAC"} \ No newline at end of file diff --git a/dist/lib/module.js b/src/lib/dist/module.js similarity index 65% rename from dist/lib/module.js rename to src/lib/dist/module.js index cf16013..a2fde2d 100644 --- a/dist/lib/module.js +++ b/src/lib/dist/module.js @@ -1,6 +1,5 @@ -System.register(['@angular/core', '@angular/common', '@angular/forms', './util/util', './input/input'], function(exports_1, context_1) { +System.register(["@angular/core", "@angular/common", "@angular/forms", "./util/util", "./input/input"], function (exports_1, context_1) { "use strict"; - var __moduleName = context_1 && context_1.id; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -10,10 +9,10 @@ System.register(['@angular/core', '@angular/common', '@angular/forms', './util/u var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var core_1, common_1, forms_1, util_1, input_1; - var EmojiModule; + var __moduleName = context_1 && context_1.id; + var core_1, common_1, forms_1, util_1, input_1, EmojiModule; return { - setters:[ + setters: [ function (core_1_1) { core_1 = core_1_1; }, @@ -28,24 +27,25 @@ System.register(['@angular/core', '@angular/common', '@angular/forms', './util/u }, function (input_1_1) { input_1 = input_1_1; - }], - execute: function() { + } + ], + execute: function () { EmojiModule = (function () { function EmojiModule() { } - EmojiModule = __decorate([ - core_1.NgModule({ - imports: [common_1.CommonModule, forms_1.FormsModule], - exports: [input_1.EmojiInputComponent], - providers: [util_1.EmojiUtil], - declarations: [input_1.EmojiInputComponent] - }), - __metadata('design:paramtypes', []) - ], EmojiModule); return EmojiModule; }()); + EmojiModule = __decorate([ + core_1.NgModule({ + imports: [common_1.CommonModule, forms_1.FormsModule], + exports: [input_1.EmojiInputComponent], + providers: [util_1.EmojiUtil], + declarations: [input_1.EmojiInputComponent] + }), + __metadata("design:paramtypes", []) + ], EmojiModule); exports_1("EmojiModule", EmojiModule); } - } + }; }); //# sourceMappingURL=module.js.map \ No newline at end of file diff --git a/src/lib/dist/module.js.map b/src/lib/dist/module.js.map new file mode 100644 index 0000000..29c4488 --- /dev/null +++ b/src/lib/dist/module.js.map @@ -0,0 +1 @@ +{"version":3,"file":"module.js","sourceRoot":"","sources":["../module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAaa,WAAW;gBAAxB;gBAA2B,CAAC;gBAAD,kBAAC;YAAD,CAAC,AAA5B,IAA4B;YAAf,WAAW;gBANvB,eAAQ,CAAC;oBACR,OAAO,EAAE,CAAC,qBAAY,EAAE,mBAAW,CAAC;oBACpC,OAAO,EAAE,CAAC,2BAAmB,CAAC;oBAC9B,SAAS,EAAE,CAAC,gBAAS,CAAC;oBACtB,YAAY,EAAE,CAAC,2BAAmB,CAAC;iBACpC,CAAC;;eACW,WAAW,CAAI;;QAC5B,CAAC"} \ No newline at end of file diff --git a/dist/lib/util/util.js b/src/lib/dist/util/util.js similarity index 85% rename from dist/lib/util/util.js rename to src/lib/dist/util/util.js index 0d279f5..1e8d379 100644 --- a/dist/lib/util/util.js +++ b/src/lib/dist/util/util.js @@ -1,6 +1,5 @@ -System.register(['@angular/core'], function(exports_1, context_1) { +System.register(["@angular/core"], function (exports_1, context_1) { "use strict"; - var __moduleName = context_1 && context_1.id; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -10,14 +9,15 @@ System.register(['@angular/core'], function(exports_1, context_1) { var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; - var core_1; - var emojis, PARSE_REGEX, EmojiUtil; + var __moduleName = context_1 && context_1.id; + var core_1, emojis, PARSE_REGEX, EmojiUtil; return { - setters:[ + setters: [ function (core_1_1) { core_1 = core_1_1; - }], - execute: function() { + } + ], + execute: function () { emojis = require('../db/emoji.json'); PARSE_REGEX = /:([a-zA-Z0-9_\-\+]+):/g; EmojiUtil = (function () { @@ -48,14 +48,14 @@ System.register(['@angular/core'], function(exports_1, context_1) { return _this.get(emoji); }).join(''); }; - EmojiUtil = __decorate([ - core_1.Injectable(), - __metadata('design:paramtypes', []) - ], EmojiUtil); return EmojiUtil; }()); + EmojiUtil = __decorate([ + core_1.Injectable(), + __metadata("design:paramtypes", []) + ], EmojiUtil); exports_1("EmojiUtil", EmojiUtil); } - } + }; }); //# sourceMappingURL=util.js.map \ No newline at end of file diff --git a/src/lib/dist/util/util.js.map b/src/lib/dist/util/util.js.map new file mode 100644 index 0000000..9541518 --- /dev/null +++ b/src/lib/dist/util/util.js.map @@ -0,0 +1 @@ +{"version":3,"file":"util.js","sourceRoot":"","sources":["../../util/util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAEI,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;YAEnC,WAAW,GAAG,wBAAwB,CAAC;YAGhC,SAAS;gBAAtB;gBAyBA,CAAC;gBAvBQ,uBAAG,GAAV,UAAW,KAAK;oBACd,GAAG,CAAC,CAAa,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM;wBAAlB,IAAI,IAAI,eAAA;wBACX,GAAG,CAAC,CAAU,UAAY,EAAZ,KAAA,IAAI,CAAC,OAAO,EAAZ,cAAY,EAAZ,IAAY;4BAArB,IAAI,CAAC,SAAA;4BACR,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC;gCAChB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;4BACpB,CAAC;yBACF;qBACF;oBACD,MAAM,CAAC,KAAK,CAAC;gBACf,CAAC;gBAEM,0BAAM,GAAb;oBACE,MAAM,CAAC,MAAM,CAAC;gBAChB,CAAC;gBAEM,2BAAO,GAAd,UAAe,GAAG;oBAAlB,iBAMC;oBALC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,UAAC,KAAK,EAAE,KAAK;wBAC7C,0CAA0C;wBAC1C,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;4BAAC,MAAM,CAAC,KAAK,CAAC;wBAAC,CAAC;wBACtC,MAAM,CAAC,KAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;oBACzB,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACd,CAAC;gBAEH,gBAAC;YAAD,CAAC,AAzBD,IAyBC;YAzBY,SAAS;gBADrB,iBAAU,EAAE;;eACA,SAAS,CAyBrB;;QACD,CAAC"} \ No newline at end of file diff --git a/src/lib/package.json b/src/lib/package.json index aa82b87..970dd44 100644 --- a/src/lib/package.json +++ b/src/lib/package.json @@ -22,5 +22,8 @@ "@angular/core": "^2.0.0", "@angular/common": "^2.0.0", "@angular/forms": "^2.0.0" + }, + "scripts": { + "tsc": "tsc" } } diff --git a/tsconfig.json b/src/lib/tsconfig.json similarity index 88% rename from tsconfig.json rename to src/lib/tsconfig.json index 16c536a..ee4217e 100644 --- a/tsconfig.json +++ b/src/lib/tsconfig.json @@ -9,8 +9,5 @@ "removeComments": false, "noImplicitAny": false, "outDir": "dist/" - }, - "include": [ - "src/*" - ] + } } \ No newline at end of file