diff --git a/dist/bundles/ng2-ace-editor.umd.js b/dist/bundles/ng2-ace-editor.umd.js index 1e0fbb1..eab3f07 100644 --- a/dist/bundles/ng2-ace-editor.umd.js +++ b/dist/bundles/ng2-ace-editor.umd.js @@ -502,8 +502,8 @@ return AceEditorModule; }()); - exports.AceEditorDirective = AceEditorDirective; exports.AceEditorComponent = AceEditorComponent; + exports.AceEditorDirective = AceEditorDirective; exports.AceEditorModule = AceEditorModule; Object.defineProperty(exports, '__esModule', { value: true }); diff --git a/dist/bundles/ng2-ace-editor.umd.min.js b/dist/bundles/ng2-ace-editor.umd.min.js index b70671f..dc31789 100644 --- a/dist/bundles/ng2-ace-editor.umd.min.js +++ b/dist/bundles/ng2-ace-editor.umd.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("brace"),require("brace/theme/monokai"),require("@angular/forms")):"function"==typeof define&&define.amd?define(["exports","@angular/core","brace","brace/theme/monokai","@angular/forms"],e):e(((t=t||self).ng=t.ng||{},t.ng.ng2aceeditor={}),t.ng.core,null,null,t.ng.forms)}(this,function(t,i,e,n,o){"use strict";var r=function(t,e,n,o){var i,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,o);else for(var p=t.length-1;0<=p;p--)(i=t[p])&&(s=(r<3?i(s):3; - textChange: EventEmitter<{}>; + textChanged: EventEmitter; + textChange: EventEmitter; style: any; _options: any; _readOnly: boolean; diff --git a/dist/src/directive.d.ts b/dist/src/directive.d.ts index 0f53f82..606554e 100644 --- a/dist/src/directive.d.ts +++ b/dist/src/directive.d.ts @@ -3,8 +3,8 @@ import "brace"; import "brace/theme/monokai"; export declare class AceEditorDirective implements OnInit, OnDestroy { private zone; - textChanged: EventEmitter<{}>; - textChange: EventEmitter<{}>; + textChanged: EventEmitter; + textChange: EventEmitter; _options: any; _readOnly: boolean; _theme: string; diff --git a/package.json b/package.json index 78dbfbf..21daf6c 100644 --- a/package.json +++ b/package.json @@ -6,18 +6,18 @@ "build": "npm run transpile && npm run package && npm run minify" }, "devDependencies": { - "@angular/common": "^7.0.0", - "@angular/compiler": "^7.0.0", - "@angular/compiler-cli": "^7.0.0", - "@angular/core": "^7.0.0", - "@angular/forms": "^7.0.0", - "@angular/platform-browser": "^7.0.0", - "rollup": "^1.1.0", + "@angular/common": "^8.2.6", + "@angular/compiler": "^8.2.6", + "@angular/compiler-cli": "^8.2.6", + "@angular/core": "^8.2.6", + "@angular/forms": "^8.2.6", + "@angular/platform-browser": "^8.2.6", + "rollup": "^1.21.3", "rollup-plugin-angular": "^0.5.3", - "rollup-plugin-typescript2": "^0.19.0", - "rxjs": "^6.3.3", - "typescript": "^3.2.2", - "uglify-js": "^3.4.9", - "zone.js": "^0.8.27" + "rollup-plugin-typescript2": "^0.24.2", + "rxjs": "^6.5.3", + "typescript": "3.5.3", + "uglify-js": "^3.6.0", + "zone.js": "^0.10.2" } } diff --git a/sample/package.json b/sample/package.json index fe6e9c3..38a9300 100644 --- a/sample/package.json +++ b/sample/package.json @@ -11,39 +11,39 @@ }, "private": true, "dependencies": { - "@angular/animations": "~7.2.0", - "@angular/common": "~7.2.0", - "@angular/compiler": "~7.2.0", - "@angular/core": "~7.2.0", - "@angular/forms": "~7.2.0", - "@angular/platform-browser": "~7.2.0", - "@angular/platform-browser-dynamic": "~7.2.0", - "@angular/router": "~7.2.0", - "core-js": "^2.5.4", + "@angular/animations": "~8.2.6", + "@angular/common": "~8.2.6", + "@angular/compiler": "~8.2.6", + "@angular/core": "~8.2.6", + "@angular/forms": "~8.2.6", + "@angular/platform-browser": "~8.2.6", + "@angular/platform-browser-dynamic": "~8.2.6", + "@angular/router": "~8.2.6", + "core-js": "^3.2.1", "ng2-ace-editor": "../dist/", - "rxjs": "~6.3.3", + "rxjs": "~6.5.3", "tslib": "^1.9.0", - "zone.js": "~0.8.26" + "zone.js": "~0.10.2" }, "devDependencies": { - "@angular-devkit/build-angular": "~0.12.0", - "@angular/cli": "~7.2.1", - "@angular/compiler-cli": "~7.2.0", - "@angular/language-service": "~7.2.0", - "@types/jasmine": "~2.8.8", + "@angular-devkit/build-angular": "~0.803.4", + "@angular/cli": "~8.3.4", + "@angular/compiler-cli": "~8.2.6", + "@angular/language-service": "~8.2.6", + "@types/jasmine": "~3.4.0", "@types/jasminewd2": "~2.0.3", - "@types/node": "~8.9.4", - "codelyzer": "~4.5.0", - "jasmine-core": "~2.99.1", + "@types/node": "~12.7.5", + "codelyzer": "~5.1.0", + "jasmine-core": "~3.4.0", "jasmine-spec-reporter": "~4.2.1", - "karma": "~3.1.1", - "karma-chrome-launcher": "~2.2.0", - "karma-coverage-istanbul-reporter": "~2.0.1", - "karma-jasmine": "~1.1.2", - "karma-jasmine-html-reporter": "^0.2.2", + "karma": "~4.3.0", + "karma-chrome-launcher": "~3.1.0", + "karma-coverage-istanbul-reporter": "~2.1.0", + "karma-jasmine": "~2.0.1", + "karma-jasmine-html-reporter": "^1.4.2", "protractor": "~5.4.0", - "ts-node": "~7.0.0", - "tslint": "~5.11.0", - "typescript": "~3.2.2" + "ts-node": "~8.4.1", + "tslint": "~5.20.0", + "typescript": "3.5.3" } -} +} \ No newline at end of file diff --git a/sample/src/app/app.component.ts b/sample/src/app/app.component.ts index b185fa6..a9654fa 100644 --- a/sample/src/app/app.component.ts +++ b/sample/src/app/app.component.ts @@ -1,32 +1,32 @@ -import { Component, ViewChild, AfterViewInit } from '@angular/core'; -import 'brace/theme/github'; -import 'brace/mode/sql'; +import { Component, ViewChild, AfterViewInit } from "@angular/core"; +import "brace/theme/github"; +import "brace/mode/sql"; declare let ace: any; @Component({ - selector: 'app-root', - templateUrl: './app.component.html', - styleUrls: ['./app.component.css'] + selector: "app-root", + templateUrl: "./app.component.html", + styleUrls: ["./app.component.css"] }) export class AppComponent implements AfterViewInit { - content = 'Hi'; - contentAutoUpdate = 'SELECT * FROM autoUpdate;'; - myCode = 'SELECT * FROM tabs;'; - @ViewChild('highlight') highlight; - @ViewChild('editorInfinity') editorInfinity; - @ViewChild('firstEditor') firstEditor; + content = "Hi"; + contentAutoUpdate = "SELECT * FROM autoUpdate;"; + myCode = "SELECT * FROM tabs;"; + @ViewChild("highlight", { static: false }) highlight; + @ViewChild("editorInfinity", { static: false }) editorInfinity; + @ViewChild("firstEditor", { static: false }) firstEditor; onRuleChange(e) { console.log(e); } ngAfterViewInit() { - const Range = ace.require('ace/range')['Range']; + const Range = ace.require("ace/range")["Range"]; this.highlight .getEditor() - .session.addMarker(new Range(0, 0, 2, 1), 'myMarker', 'fullLine'); + .session.addMarker(new Range(0, 0, 2, 1), "myMarker", "fullLine"); - this.firstEditor.getEditor().session.setOption('useWorker', true); + this.firstEditor.getEditor().session.setOption("useWorker", true); } }