angular-monaco-editor
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"AngularMonacoEditorModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":4}],"declarations":[{"__symbolic":"reference","name":"ɵb"}],"exports":[{"__symbolic":"reference","name":"ɵb"}],"providers":[]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"defaults":[{}],"value":{"ngModule":{"__symbolic":"reference","name":"AngularMonacoEditorModule"},"providers":[{"provide":{"__symbolic":"reference","name":"ANGULAR_MONACO_EDITOR_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}}]}}}},"ANGULAR_MONACO_EDITOR_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":48},"arguments":["ANGULAR_MONACO_EDITOR_CONFIG"]},"AngularMonacoEditorConfig":{"__symbolic":"interface"},"AngularEditorModel":{"__symbolic":"interface"},"ɵa":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":19,"character":11},"useExisting":{"__symbolic":"reference","name":"ɵb"},"multi":true},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":24,"character":1},"arguments":[{"selector":"angular-monaco-editor","template":"<div class=\"editor\" #codeEditor></div>","styles":[":host{display:block;height:200px}.editor{width:100%;height:98%}"],"providers":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵc"}]}]}],"members":{"_editorComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":41,"character":3},"arguments":["codeEditor"]}]}],"onInit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":43,"character":3}}]}],"onChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":44,"character":3}}]}],"onTouched":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":45,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":3},"arguments":["options"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":70,"character":37},"arguments":[{"__symbolic":"reference","name":"ANGULAR_MONACO_EDITOR_CONFIG"}]}],null],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":70,"character":28},{"__symbolic":"reference","name":"AngularMonacoEditorConfig"},{"__symbolic":"reference","name":"ɵc"}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"initMonaco":[{"__symbolic":"method"}],"onChangeModelContentHandler":[{"__symbolic":"method"}],"onBlurEditorTextHandler":[{"__symbolic":"method"}],"localEditor":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"addEvent":[{"__symbolic":"method"}],"fireEvent":[{"__symbolic":"method"}]}}},"origins":{"AngularMonacoEditorModule":"./lib/editor/editor.module","ANGULAR_MONACO_EDITOR_CONFIG":"./lib/editor/config","AngularMonacoEditorConfig":"./lib/editor/config","AngularEditorModel":"./lib/editor/types","ɵa":"./lib/editor/angular-monaco-editor/angular-monaco-editor.component","ɵb":"./lib/editor/angular-monaco-editor/angular-monaco-editor.component","ɵc":"./lib/editor/services/code-editor.event.service"},"importAs":"angular-monaco-editor"} | ||
{"__symbolic":"module","version":4,"metadata":{"AngularMonacoEditorModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":4}],"declarations":[{"__symbolic":"reference","name":"ɵb"}],"exports":[{"__symbolic":"reference","name":"ɵb"}],"providers":[]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"defaults":[{}],"value":{"ngModule":{"__symbolic":"reference","name":"AngularMonacoEditorModule"},"providers":[{"provide":{"__symbolic":"reference","name":"ANGULAR_MONACO_EDITOR_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}}]}}}},"ANGULAR_MONACO_EDITOR_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":48},"arguments":["ANGULAR_MONACO_EDITOR_CONFIG"]},"AngularMonacoEditorConfig":{"__symbolic":"interface"},"AngularEditorModel":{"__symbolic":"interface"},"ɵa":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":19,"character":11},"useExisting":{"__symbolic":"reference","name":"ɵb"},"multi":true},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":24,"character":1},"arguments":[{"selector":"angular-monaco-editor","template":"<div class=\"editor\" #codeEditor></div>","styles":[":host{display:block;height:200px}.editor{width:100%;height:98%}"],"providers":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵc"}]}]}],"members":{"_editorComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":41,"character":3},"arguments":["codeEditor"]}]}],"onInit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":43,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3},"arguments":["options"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":68,"character":37},"arguments":[{"__symbolic":"reference","name":"ANGULAR_MONACO_EDITOR_CONFIG"}]}],null],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":68,"character":28},{"__symbolic":"reference","name":"AngularMonacoEditorConfig"},{"__symbolic":"reference","name":"ɵc"}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"initMonaco":[{"__symbolic":"method"}],"onChangeModelContentHandler":[{"__symbolic":"method"}],"onBlurEditorTextHandler":[{"__symbolic":"method"}],"onLayoutChangeHandler":[{"__symbolic":"method"}],"localEditor":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"addEvent":[{"__symbolic":"method"}],"fireEvent":[{"__symbolic":"method"}]}}},"origins":{"AngularMonacoEditorModule":"./lib/editor/editor.module","ANGULAR_MONACO_EDITOR_CONFIG":"./lib/editor/config","AngularMonacoEditorConfig":"./lib/editor/config","AngularEditorModel":"./lib/editor/types","ɵa":"./lib/editor/angular-monaco-editor/angular-monaco-editor.component","ɵb":"./lib/editor/angular-monaco-editor/angular-monaco-editor.component","ɵc":"./lib/editor/services/code-editor.event.service"},"importAs":"angular-monaco-editor"} |
@@ -20,5 +20,3 @@ (function (global, factory) { | ||
var /** @type {?} */ CODE_EDITOR_EVENTS = { | ||
onInit: 'onInit', | ||
onChange: 'onChange', | ||
onTouched: 'onTouched' | ||
onInit: 'onInit' | ||
}; | ||
@@ -98,3 +96,2 @@ | ||
function AngularMonacoEditorComponent(zone, config, codeEditorEventService) { | ||
var _this = this; | ||
this.zone = zone; | ||
@@ -105,16 +102,6 @@ this.config = config; | ||
//ControlValueAccessor提供的事件回调 | ||
this.onChangeHandler = function (_) { | ||
//Propagate Change to outside | ||
_this.codeEditorEventService.fireEvent({ | ||
eventName: CODE_EDITOR_EVENTS.onChange, | ||
target: _this, | ||
data: _ | ||
}); | ||
this.onControlValueChange = function (_) { | ||
}; | ||
//ControlValueAccessor提供的事件回调 | ||
this.onTouchedHandler = function () { | ||
_this.codeEditorEventService.fireEvent({ | ||
eventName: CODE_EDITOR_EVENTS.onTouched, | ||
target: _this | ||
}); | ||
this.onControlTouched = function () { | ||
}; | ||
@@ -233,2 +220,3 @@ // 初始化自定义事件 | ||
this._editor.onDidBlurEditorText(function (e) { return _this.onBlurEditorTextHandler(e); }); | ||
this._editor.onDidLayoutChange(function (e) { return _this.onLayoutChangeHandler(e); }); | ||
// refresh layout on resize event. | ||
@@ -239,2 +227,3 @@ // if (this._windowResizeSubscription) { | ||
// this._windowResizeSubscription = fromEvent(window, 'resize').subscribe(() => this._editor.layout()); | ||
// this.onInit.emit(this._editor); | ||
this.codeEditorEventService.fireEvent({ | ||
@@ -271,4 +260,15 @@ eventName: CODE_EDITOR_EVENTS.onInit, | ||
function (e) { | ||
this.onTouchedHandler(); | ||
this.onControlTouched(); | ||
}; | ||
/** | ||
* @param {?} e | ||
* @return {?} | ||
*/ | ||
AngularMonacoEditorComponent.prototype.onLayoutChangeHandler = /** | ||
* @param {?} e | ||
* @return {?} | ||
*/ | ||
function (e) { | ||
console.log('Layout changed:\n' + e); | ||
}; | ||
Object.defineProperty(AngularMonacoEditorComponent.prototype, "value", { | ||
@@ -290,3 +290,3 @@ //get accessor | ||
} | ||
this.onChangeHandler(this.value); //在属性修饰器里调用onchangeHandler方法 | ||
this.onControlValueChange(this.value); //在属性修饰器里调用onControlValueChange方法 | ||
}, | ||
@@ -338,3 +338,3 @@ enumerable: true, | ||
function (fn) { | ||
this.onChangeHandler(this); | ||
this.onControlValueChange = fn; | ||
}; | ||
@@ -351,3 +351,3 @@ //From ControlValueAccessor interface | ||
function (fn) { | ||
this.onTouchedHandler(); | ||
this.onControlTouched = fn; | ||
}; | ||
@@ -374,4 +374,2 @@ AngularMonacoEditorComponent.decorators = [ | ||
"onInit": [{ type: core.Output },], | ||
"onChange": [{ type: core.Output },], | ||
"onTouched": [{ type: core.Output },], | ||
"options": [{ type: core.Input, args: ['options',] },], | ||
@@ -445,2 +443,2 @@ }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci1tb25hY28tZWRpdG9yLnVtZC5qcy5tYXAiLCJzb3VyY2VzIjpbIm5nOi8vYW5ndWxhci1tb25hY28tZWRpdG9yL2xpYi9lZGl0b3IvY29uZmlnLnRzIiwibmc6Ly9hbmd1bGFyLW1vbmFjby1lZGl0b3IvbGliL2VkaXRvci9jb25zdGFudHMvZXZlbnRzLnRzIiwibmc6Ly9hbmd1bGFyLW1vbmFjby1lZGl0b3IvbGliL2VkaXRvci9zZXJ2aWNlcy9jb2RlLWVkaXRvci5ldmVudC5zZXJ2aWNlLnRzIiwibmc6Ly9hbmd1bGFyLW1vbmFjby1lZGl0b3IvbGliL2VkaXRvci9hbmd1bGFyLW1vbmFjby1lZGl0b3IvYW5ndWxhci1tb25hY28tZWRpdG9yLmNvbXBvbmVudC50cyIsIm5nOi8vYW5ndWxhci1tb25hY28tZWRpdG9yL2xpYi9lZGl0b3IvZWRpdG9yLm1vZHVsZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3Rpb25Ub2tlbiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vLyBpbmplY3Rpb25Ub2tlbsOkwr3CnMOnwpTCqMOowq/C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2x2ZSgpO1xuICAgICAgICAvLyAgIHJldHVybjtcbiAgICAgICAgLy8gfVxuICAgICAgICBjb25zdCBvbkdvdEFtZExvYWRlcjogYW55ID0gKCkgPT4ge1xuICAgICAgICAgIC8vIExvYWQgbW9uYWNvXG4gICAgICAgICAgKDxhbnk+d2luZG93KS5yZXF1aXJlLmNvbmZpZyh7IHBhdGhzOiB7ICd2cyc6IGAke2Jhc2VVcmx9L21vbmFjby92c2AgfSB9KTtcbiAgICAgICAgICAoPGFueT53aW5kb3cpLnJlcXVpcmUoWyd2cy9lZGl0b3IvZWRpdG9yLm1haW4nXSwgKCkgPT4ge1xuICAgICAgICAgICAgaWYgKHR5cGVvZiB0aGlzLmNvbmZpZy5vbk1vbmFjb0xvYWQgPT09ICdmdW5jdGlvbicpIHtcbiAgICAgICAgICAgICAgdGhpcy5jb25maWcub25Nb25hY29Mb2FkKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB0aGlzLmluaXRNb25hY28odGhpcy5vcHRpb25zKTtcbiAgICAgICAgICAgIHJlc29sdmUoKTtcbiAgICAgICAgICB9KTtcbiAgICAgICAgfTtcblxuICAgICAgICAvLyBMb2FkIEFNRCBsb2FkZXIgaWYgbmVjZXNzYXJ5XG4gICAgICAgIGlmICghKDxhbnk+d2luZG93KS5yZXF1aXJlKSB7XG4gICAgICAgICAgY29uc3QgbG9hZGVyU2NyaXB0OiBIVE1MU2NyaXB0RWxlbWVudCA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ3NjcmlwdCcpO1xuICAgICAgICAgIGxvYWRlclNjcmlwdC50eXBlID0gJ3RleHQvamF2YXNjcmlwdCc7XG4gICAgICAgICAgbG9hZGVyU2NyaXB0LnNyYyA9IGAke2Jhc2VVcmx9L21vbmFjby92cy9sb2FkZXIuanNgO1xuICAgICAgICAgIGxvYWRlclNjcmlwdC5hZGRFdmVudExpc3RlbmVyKCdsb2FkJywgb25Hb3RBbWRMb2FkZXIpO1xuICAgICAgICAgI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SgpO1xuICAgICAgICAvLyAgIHJldHVybjtcbiAgICAgICAgLy8gfVxuICAgICAgICBjb25zdCBvbkdvdEFtZExvYWRlcjogYW55ID0gKCkgPT4ge1xuICAgICAgICAgIC8vIExvYWQgbW9uYWNvXG4gICAgICAgICAgKDxhbnk+d2luZG93KS5yZXF1aXJlLmNvbmZpZyh7IHBhdGhzOiB7ICd2cyc6IGAke2Jhc2VVcmx9L21vbmFjby92c2AgfSB9KTtcbiAgICAgICAgICAoPGFueT53aW5kb3cpLnJlcXVpcmUoWyd2cy9lZGl0b3IvZWRpdG9yLm1haW4nXSwgKCkgPT4ge1xuICAgICAgICAgICAgaWYgKHR5cGVvZiB0aGlzLmNvbmZpZy5vbk1vbmFjb0xvYWQgPT09ICdmdW5jdGlvbicpIHtcbiAgICAgICAgICAgICAgdGhpcy5jb25maWcub25Nb25hY29Mb2FkKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB0aGlzLmluaXRNb25hY28odGhpcy5vcHRpb25zKTtcbiAgICAgICAgICAgIHJlc29sdmUoKTtcbiAgICAgICAgICB9KTtcbiAgICAgICAgfTtcblxuICAgICAgICAvLyBMb2FkIEFNRCBsb2FkZXIgaWYgbmVjZXNzYXJ5XG4gICAgICAgIGlmICghKDxhbnk+d2luZG93KS5yZXF1aXJlKSB7XG4gICAgICAgICAgY29uc3QgbG9hZGVyU2NyaXB0OiBIVE1MU2NyaXB0RWxlbWVudCA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ3NjcmlwdCcpO1xuICAgICAgICAgIGxvYWRlclNjcmlwdC50eXBlID0gJ3RleHQvamF2YXNjcmlwdCc7XG4gICAgICAgICAgbG9hZGVyU2NyaXB0LnNyYyA9IGAke2Jhc2VVcmx9L21vbmFjby92cy9sb2FkZXIuanNgO1xuICAgICAgICAgIGxvYWRlclNjcmlwdC5hZGRFdmVudExpc3RlbmVyKCdsb2FkJywgb25Hb3RBbWRMb2FkZXIpO1xuICAgICAgICAgIGRvY3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BQUUsTUFBTSxFQUFFO3FCQUM1RDtpQkFDRixDQUFDOzs7b0JBckJMQyxhQUFRLFNBQUM7d0JBQ1IsT0FBTyxFQUFFOzRCQUNQQyxtQkFBWTt5QkFDYjt3QkFDRCxZQUFZLEVBQUU7NEJBQ1osNEJBQTRCO3lCQUM3Qjt3QkFDRCxPQUFPLEVBQUU7NEJBQ1AsNEJBQTRCO3lCQUM3Qjt3QkFDRCxTQUFTLEVBQUUsRUFDVjtxQkFDRjs7d0NBbEJEOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7In0= |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("lodash"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define("angular-monaco-editor",["exports","@angular/core","lodash","@angular/forms","@angular/common"],t):t(e["angular-monaco-editor"]={},e.ng.core,null,e.ng.forms,e.ng.common)}(this,function(e,r,a,t,o){"use strict";var n,i=new r.InjectionToken("ANGULAR_MONACO_EDITOR_CONFIG"),s={onInit:"onInit",onChange:"onChange",onTouched:"onTouched"},d=function(){function e(){this.eventNames=Object.keys(s),this._events={}}return e.prototype.addEvent=function(e){a.assign(this._events,e)},e.prototype.fireEvent=function(e){this._events[e.eventName].emit(e)},e.decorators=[{type:r.Injectable}],e}(),u=!1,c={provide:t.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return p}),multi:!0},p=function(){function e(e,t,o){var n=this;this.zone=e,this.config=t,this.codeEditorEventService=o,this._value="",this.onChangeHandler=function(e){n.codeEditorEventService.fireEvent({eventName:s.onChange,target:n,data:e})},this.onTouchedHandler=function(){n.codeEditorEventService.fireEvent({eventName:s.onTouched,target:n})};var i=this;o.eventNames.forEach(function(e){i[e]=new r.EventEmitter;var t=a.pick(i,e);o.addEvent(t)})}return Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=Object.assign({},this.config.defaultOptions,e),this._editor&&(this._editor.dispose(),this.initMonaco(e))},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var i=this;u?n.then(function(){i.initMonaco(i.options)}):(u=!0,n=new Promise(function(e){var t=i.config.baseUrl||"/assets",o=function(){window.require.config({paths:{vs:t+"/monaco/vs"}}),window.require(["vs/editor/editor.main"],function(){"function"==typeof i.config.onMonacoLoad&&i.config.onMonacoLoad(),i.initMonaco(i.options),e()})};if(window.require)o();else{var n=document.createElement("script");n.type="text/javascript",n.src=t+"/monaco/vs/loader.js",n.addEventListener("load",o),document.body.appendChild(n)}}))},e.prototype.ngOnDestroy=function(){this._editor&&(this._editor.dispose(),this._editor=undefined)},e.prototype.initMonaco=function(e){var t=this;console.log("Init the custom monaco code editor."),this._editor=monaco.editor.create(this._editorComponent.nativeElement,e),this._editor.setValue(this._value),this._editor.onDidChangeModelContent(function(e){return t.onChangeModelContentHandler(e)}),this._editor.onDidBlurEditorText(function(e){return t.onBlurEditorTextHandler(e)}),this.codeEditorEventService.fireEvent({eventName:s.onInit,target:this,editor:this._editor})},e.prototype.onChangeModelContentHandler=function(e){var t=this,o=this._editor.getValue();this.zone.run(function(){return t.value=o})},e.prototype.onBlurEditorTextHandler=function(e){this.onTouchedHandler()},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){e!==this.value&&(this._value=e),this.onChangeHandler(this.value)},enumerable:!0,configurable:!0}),e.prototype.localEditor=function(){this.writeValue("test")},e.prototype.writeValue=function(e){var t=this;this.value=e||"",setTimeout(function(){t._editor&&t._editor.setValue(t._value)})},e.prototype.registerOnChange=function(e){this.onChangeHandler(this)},e.prototype.registerOnTouched=function(e){this.onTouchedHandler()},e.decorators=[{type:r.Component,args:[{selector:"angular-monaco-editor",template:'<div class="editor" #codeEditor></div>',styles:[":host{display:block;height:200px}.editor{width:100%;height:98%}"],providers:[c,d]}]}],e.ctorParameters=function(){return[{type:r.NgZone},{type:undefined,decorators:[{type:r.Inject,args:[i]}]},{type:d}]},e.propDecorators={_editorComponent:[{type:r.ViewChild,args:["codeEditor"]}],onInit:[{type:r.Output}],onChange:[{type:r.Output}],onTouched:[{type:r.Output}],options:[{type:r.Input,args:["options"]}]},e}(),h=function(){function t(){}return t.forRoot=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[{provide:i,useValue:e}]}},t.decorators=[{type:r.NgModule,args:[{imports:[o.CommonModule],declarations:[p],exports:[p],providers:[]}]}],t}();e.AngularMonacoEditorModule=h,e.ANGULAR_MONACO_EDITOR_CONFIG=i,e.ɵb=p,e.ɵa=c,e.ɵc=d,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("lodash"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define("angular-monaco-editor",["exports","@angular/core","lodash","@angular/forms","@angular/common"],e):e(t["angular-monaco-editor"]={},t.ng.core,null,t.ng.forms,t.ng.common)}(this,function(t,i,r,e,o){"use strict";var n,a=new i.InjectionToken("ANGULAR_MONACO_EDITOR_CONFIG"),s={onInit:"onInit"},u=function(){function t(){this.eventNames=Object.keys(s),this._events={}}return t.prototype.addEvent=function(t){r.assign(this._events,t)},t.prototype.fireEvent=function(t){this._events[t.eventName].emit(t)},t.decorators=[{type:i.Injectable}],t}(),d=!1,c={provide:e.NG_VALUE_ACCESSOR,useExisting:i.forwardRef(function(){return l}),multi:!0},l=function(){function t(t,e,o){this.zone=t,this.config=e,this.codeEditorEventService=o,this._value="",this.onControlValueChange=function(t){},this.onControlTouched=function(){};var n=this;o.eventNames.forEach(function(t){n[t]=new i.EventEmitter;var e=r.pick(n,t);o.addEvent(e)})}return Object.defineProperty(t.prototype,"options",{get:function(){return this._options},set:function(t){this._options=Object.assign({},this.config.defaultOptions,t),this._editor&&(this._editor.dispose(),this.initMonaco(t))},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var i=this;d?n.then(function(){i.initMonaco(i.options)}):(d=!0,n=new Promise(function(t){var e=i.config.baseUrl||"/assets",o=function(){window.require.config({paths:{vs:e+"/monaco/vs"}}),window.require(["vs/editor/editor.main"],function(){"function"==typeof i.config.onMonacoLoad&&i.config.onMonacoLoad(),i.initMonaco(i.options),t()})};if(window.require)o();else{var n=document.createElement("script");n.type="text/javascript",n.src=e+"/monaco/vs/loader.js",n.addEventListener("load",o),document.body.appendChild(n)}}))},t.prototype.ngOnDestroy=function(){this._editor&&(this._editor.dispose(),this._editor=undefined)},t.prototype.initMonaco=function(t){var e=this;console.log("Init the custom monaco code editor."),this._editor=monaco.editor.create(this._editorComponent.nativeElement,t),this._editor.setValue(this._value),this._editor.onDidChangeModelContent(function(t){return e.onChangeModelContentHandler(t)}),this._editor.onDidBlurEditorText(function(t){return e.onBlurEditorTextHandler(t)}),this._editor.onDidLayoutChange(function(t){return e.onLayoutChangeHandler(t)}),this.codeEditorEventService.fireEvent({eventName:s.onInit,target:this,editor:this._editor})},t.prototype.onChangeModelContentHandler=function(t){var e=this,o=this._editor.getValue();this.zone.run(function(){return e.value=o})},t.prototype.onBlurEditorTextHandler=function(t){this.onControlTouched()},t.prototype.onLayoutChangeHandler=function(t){console.log("Layout changed:\n"+t)},Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){t!==this.value&&(this._value=t),this.onControlValueChange(this.value)},enumerable:!0,configurable:!0}),t.prototype.localEditor=function(){this.writeValue("test")},t.prototype.writeValue=function(t){var e=this;this.value=t||"",setTimeout(function(){e._editor&&e._editor.setValue(e._value)})},t.prototype.registerOnChange=function(t){this.onControlValueChange=t},t.prototype.registerOnTouched=function(t){this.onControlTouched=t},t.decorators=[{type:i.Component,args:[{selector:"angular-monaco-editor",template:'<div class="editor" #codeEditor></div>',styles:[":host{display:block;height:200px}.editor{width:100%;height:98%}"],providers:[c,u]}]}],t.ctorParameters=function(){return[{type:i.NgZone},{type:undefined,decorators:[{type:i.Inject,args:[a]}]},{type:u}]},t.propDecorators={_editorComponent:[{type:i.ViewChild,args:["codeEditor"]}],onInit:[{type:i.Output}],options:[{type:i.Input,args:["options"]}]},t}(),p=function(){function e(){}return e.forRoot=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:a,useValue:t}]}},e.decorators=[{type:i.NgModule,args:[{imports:[o.CommonModule],declarations:[l],exports:[l],providers:[]}]}],e}();t.AngularMonacoEditorModule=p,t.ANGULAR_MONACO_EDITOR_CONFIG=a,t.ɵb=l,t.ɵa=c,t.ɵc=u,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=angular-monaco-editor.umd.min.js.map |
@@ -38,16 +38,6 @@ /** | ||
//ControlValueAccessor提供的事件回调 | ||
this.onChangeHandler = (_) => { | ||
//Propagate Change to outside | ||
this.codeEditorEventService.fireEvent({ | ||
eventName: CODE_EDITOR_EVENTS.onChange, | ||
target: this, | ||
data: _ | ||
}); | ||
this.onControlValueChange = (_) => { | ||
}; | ||
//ControlValueAccessor提供的事件回调 | ||
this.onTouchedHandler = () => { | ||
this.codeEditorEventService.fireEvent({ | ||
eventName: CODE_EDITOR_EVENTS.onTouched, | ||
target: this | ||
}); | ||
this.onControlTouched = () => { | ||
}; | ||
@@ -154,2 +144,3 @@ // 初始化自定义事件 | ||
this._editor.onDidBlurEditorText((e) => this.onBlurEditorTextHandler(e)); | ||
this._editor.onDidLayoutChange((e) => this.onLayoutChangeHandler(e)); | ||
// refresh layout on resize event. | ||
@@ -160,2 +151,3 @@ // if (this._windowResizeSubscription) { | ||
// this._windowResizeSubscription = fromEvent(window, 'resize').subscribe(() => this._editor.layout()); | ||
// this.onInit.emit(this._editor); | ||
this.codeEditorEventService.fireEvent({ | ||
@@ -183,7 +175,14 @@ eventName: CODE_EDITOR_EVENTS.onInit, | ||
onBlurEditorTextHandler(e) { | ||
this.onTouchedHandler(); | ||
this.onControlTouched(); | ||
} | ||
/** | ||
* @param {?} e | ||
* @return {?} | ||
*/ | ||
onLayoutChangeHandler(e) { | ||
console.log('Layout changed:\n' + e); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
get value() { | ||
@@ -202,3 +201,3 @@ return this._value; | ||
} | ||
this.onChangeHandler(this.value); //在属性修饰器里调用onchangeHandler方法 | ||
this.onControlValueChange(this.value); //在属性修饰器里调用onControlValueChange方法 | ||
} | ||
@@ -231,3 +230,3 @@ /** | ||
registerOnChange(fn) { | ||
this.onChangeHandler(this); | ||
this.onControlValueChange = fn; | ||
} | ||
@@ -239,3 +238,3 @@ /** | ||
registerOnTouched(fn) { | ||
this.onTouchedHandler(); | ||
this.onControlTouched = fn; | ||
} | ||
@@ -261,4 +260,2 @@ } | ||
"onInit": [{ type: Output },], | ||
"onChange": [{ type: Output },], | ||
"onTouched": [{ type: Output },], | ||
"options": [{ type: Input, args: ['options',] },], | ||
@@ -285,11 +282,7 @@ }; | ||
/** @type {?} */ | ||
AngularMonacoEditorComponent.prototype.onChange; | ||
/** @type {?} */ | ||
AngularMonacoEditorComponent.prototype.onTouched; | ||
/** @type {?} */ | ||
AngularMonacoEditorComponent.prototype._value; | ||
/** @type {?} */ | ||
AngularMonacoEditorComponent.prototype.onChangeHandler; | ||
AngularMonacoEditorComponent.prototype.onControlValueChange; | ||
/** @type {?} */ | ||
AngularMonacoEditorComponent.prototype.onTouchedHandler; | ||
AngularMonacoEditorComponent.prototype.onControlTouched; | ||
/** @type {?} */ | ||
@@ -303,2 +296,2 @@ AngularMonacoEditorComponent.prototype.zone; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci1tb25hY28tZWRpdG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXItbW9uYWNvLWVkaXRvci8iLCJzb3VyY2VzIjpbImxpYi9lZGl0b3IvYW5ndWxhci1tb25hY28tZWRpdG9yL2FuZ3VsYXItbW9uYWNvLWVkaXRvci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQ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AgICAgIC8vIFdhaXQgdW50aWwgbW9uYWNvIGVkaXRvciBpcyBhdmFpbGFibGVcbiAgICAgIGxvYWRQcm9taXNlLnRoZW4oKCkgPT4ge1xuICAgICAgICB0aGlzLmluaXRNb25hY28odGhpcy5vcHRpb25zKTtcbiAgICAgIH0pO1xuICAgIH0gZWxzZSB7XG4gICAgICBsb2FkZWRNb25hY28gPSB0cnVlO1xuICAgICAgbG9hZFByb21pc2UgPSBuZXcgUHJvbWlzZTx2b2lkPigocmVzb2x2ZTogYW55KSA9PiB7XG4gICAgICAgIGNvbnN0IGJhc2VVcmwgPSB0aGlzLmNvbmZpZy5iYXNlVXJsIHx8ICcvYXNzZXRzJztcbiAgICAgICAgLy8gaWYgKHR5cGVvZigoPGFueT53aW5kb3cpLm1vbmFjbykgPT09ICdvYmplY3QnKSB7XG4gICAgICAgIC8vICAgcmVzb2x2ZSgpO1xuICAgICAgICAvLyAgIHJldHVybjtcbiAgICAgICAgLy8gfVxuICAgICAgICBjb25zdCBvbkdvdEFtZExvYWRlcjogYW55ID0gKCkgPT4ge1xuICAgICAgICAgIC8vIExvYWQgbW9uYWNvXG4gICAgICAgICAgKDxhbnk+d2luZG93KS5yZXF1aXJlLmNvbmZpZyh7IHBhdGhzOiB7ICd2cyc6IGAke2Jhc2VVcmx9L21vbmFjby92c2AgfSB9KTtcbiAgICAgICAgICAoPGFueT53aW5kb3cpLnJlcXVpcmUoWyd2cy9lZGl0b3IvZWRpdG9yLm1haW4nXSwgKCkgPT4ge1xuICAgICAgICAgICAgaWYgKHR5cGVvZiB0aGlzLmNvbmZpZy5vbk1vbmFjb0xvYWQgPT09ICdmdW5jdGlvbicpIHtcbiAgICAgICAgICAgICAgdGhpcy5jb25maWcub25Nb25hY29Mb2FkKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB0aGlzLmluaXRNb25hY28odGhpcy5vcHRpb25zKTtcbiAgICAgICAgICAgIHJlc29sdmUoKTtcbiAgICAgICAgICB9KTtcbiAg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gdW50aWwgbW9uYWNvIGVkaXRvciBpcyBhdmFpbGFibGVcbiAgICAgIGxvYWRQcm9taXNlLnRoZW4oKCkgPT4ge1xuICAgICAgICB0aGlzLmluaXRNb25hY28odGhpcy5vcHRpb25zKTtcbiAgICAgIH0pO1xuICAgIH0gZWxzZSB7XG4gICAgICBsb2FkZWRNb25hY28gPSB0cnVlO1xuICAgICAgbG9hZFByb21pc2UgPSBuZXcgUHJvbWlzZTx2b2lkPigocmVzb2x2ZTogYW55KSA9PiB7XG4gICAgICAgIGNvbnN0IGJhc2VVcmwgPSB0aGlzLmNvbmZpZy5iYXNlVXJsIHx8ICcvYXNzZXRzJztcbiAgICAgICAgLy8gaWYgKHR5cGVvZigoPGFueT53aW5kb3cpLm1vbmFjbykgPT09ICdvYmplY3QnKSB7XG4gICAgICAgIC8vICAgcmVzb2x2ZSgpO1xuICAgICAgICAvLyAgIHJldHVybjtcbiAgICAgICAgLy8gfVxuICAgICAgICBjb25zdCBvbkdvdEFtZExvYWRlcjogYW55ID0gKCkgPT4ge1xuICAgICAgICAgIC8vIExvYWQgbW9uYWNvXG4gICAgICAgICAgKDxhbnk+d2luZG93KS5yZXF1aXJlLmNvbmZpZyh7IHBhdGhzOiB7ICd2cyc6IGAke2Jhc2VVcmx9L21vbmFjby92c2AgfSB9KTtcbiAgICAgICAgICAoPGFueT53aW5kb3cpLnJlcXVpcmUoWyd2cy9lZGl0b3IvZWRpdG9yLm1haW4nXSwgKCkgPT4ge1xuICAgICAgICAgICAgaWYgKHR5cGVvZiB0aGlzLmNvbmZpZy5vbk1vbmFjb0xvYWQgPT09ICdmdW5jdGlvbicpIHtcbiAgICAgICAgICAgICAgdGhpcy5jb25maWcub25Nb25hY29Mb2FkKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB0aGlzLmluaXRNb25hY28odGhpcy5vcHRpb25zKTtcbiAgICAgICAgICAgIHJlc29sdmUoKTtcbiAgICAgICAgICB9KTtcbiAgICAgICAgfTtcblxuICAg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XG4gICAgc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICBpZiAodGhpcy5fZWRpdG9yIC8qJiYgIXRoaXMub3B0aW9ucy5tb2RlbCovKSB7XG4gICAgICAgIHRoaXMuX2VkaXRvci5zZXRWYWx1ZSh0aGlzLl92YWx1ZSk7XG4gICAgICAgIC8vIGNvbnNvbGUubG9nKFwid3JpdGUgdG8gdGhlIGVkaXRvcjpcIiArIHRoaXMuX3ZhbHVlKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxuXG4gIC8vRnJvbSBDb250cm9sVmFsdWVBY2Nlc3NvciBpbnRlcmZhY2VcbiAgcmVnaXN0ZXJPbkNoYW5nZShmbjogYW55KSB7XG4gICAgdGhpcy5vbkNvbnRyb2xWYWx1ZUNoYW5nZSA9IGZuO1xuICB9XG5cbiAgLy9Gcm9tIENvbnRyb2xWYWx1ZUFjY2Vzc29yIGludGVyZmFjZVxuICByZWdpc3Rlck9uVG91Y2hlZChmbjogYW55KSB7XG4gICAgdGhpcy5vbkNvbnRyb2xUb3VjaGVkID0gZm47XG4gIH1cbiAgXG4gIC8vQ29udHJvbFZhbHVlQWNjZXNzb3Lmj5DkvpvnmoTkuovku7blm57osINcbiAgb25Db250cm9sVmFsdWVDaGFuZ2UgPSAoXzogYW55KSA9PiB7XG4gIH07XG4gIFxuICAvL0NvbnRyb2xWYWx1ZUFjY2Vzc29y5o+Q5L6b55qE5LqL5Lu25Zue6LCDXG4gIG9uQ29udHJvbFRvdWNoZWQgPSAoKSA9PiB7XG4gIH07XG5cbn0iXX0= |
@@ -6,7 +6,5 @@ /** | ||
export const /** @type {?} */ CODE_EDITOR_EVENTS = { | ||
onInit: 'onInit', | ||
onChange: 'onChange', | ||
onTouched: 'onTouched' | ||
onInit: 'onInit' | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vYW5ndWxhci1tb25hY28tZWRpdG9yLyIsInNvdXJjZXMiOlsibGliL2VkaXRvci9jb25zdGFudHMvZXZlbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxNQUFNLENBQUMsdUJBQU0sa0JBQWtCLEdBQUc7SUFDOUIsTUFBTSxFQUFFLFFBQVE7SUFDaEIsUUFBUSxFQUFFLFVBQVU7SUFDcEIsU0FBUyxFQUFFLFdBQVc7Q0FDekIsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBDT0RFX0VESVRPUl9FVkVOVFMgPSB7XHJcbiAgICBvbkluaXQ6ICdvbkluaXQnLFxyXG4gICAgb25DaGFuZ2U6ICdvbkNoYW5nZScsXHJcbiAgICBvblRvdWNoZWQ6ICdvblRvdWNoZWQnXHJcbn0iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vYW5ndWxhci1tb25hY28tZWRpdG9yLyIsInNvdXJjZXMiOlsibGliL2VkaXRvci9jb25zdGFudHMvZXZlbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxNQUFNLENBQUMsdUJBQU0sa0JBQWtCLEdBQUc7SUFDOUIsTUFBTSxFQUFFLFFBQVE7Q0FDbkIsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBDT0RFX0VESVRPUl9FVkVOVFMgPSB7XG4gICAgb25Jbml0OiAnb25Jbml0J1xufSJdfQ== |
@@ -47,2 +47,2 @@ /** | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXItbW9uYWNvLWVkaXRvci8iLCJzb3VyY2VzIjpbImxpYi9lZGl0b3IvZWRpdG9yLm1vZ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OztBQUFBLDBDQUFjLDRCQUE0QixDQUFDO0FBQzNDLDZDQUFjLHFCQUFxQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saWIvZWRpdG9yL2VkaXRvci5tb2R1bGUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9lZGl0b3IvY29uZmlnJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvZWRpdG9yL3R5cGVzJzsiXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXItbW9uYWNvLWVkaXRvci8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLDBDQUFjLDRCQUE0QixDQUFDO0FBQzNDLDZDQUFjLHFCQUFxQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saWIvZWRpdG9yL2VkaXRvci5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZWRpdG9yL2NvbmZpZyc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9lZGl0b3IvdHlwZXMnOyJdfQ== |
@@ -35,3 +35,2 @@ /** | ||
function AngularMonacoEditorComponent(zone, config, codeEditorEventService) { | ||
var _this = this; | ||
this.zone = zone; | ||
@@ -42,16 +41,6 @@ this.config = config; | ||
//ControlValueAccessor提供的事件回调 | ||
this.onChangeHandler = function (_) { | ||
//Propagate Change to outside | ||
_this.codeEditorEventService.fireEvent({ | ||
eventName: CODE_EDITOR_EVENTS.onChange, | ||
target: _this, | ||
data: _ | ||
}); | ||
this.onControlValueChange = function (_) { | ||
}; | ||
//ControlValueAccessor提供的事件回调 | ||
this.onTouchedHandler = function () { | ||
_this.codeEditorEventService.fireEvent({ | ||
eventName: CODE_EDITOR_EVENTS.onTouched, | ||
target: _this | ||
}); | ||
this.onControlTouched = function () { | ||
}; | ||
@@ -174,2 +163,3 @@ // 初始化自定义事件 | ||
this._editor.onDidBlurEditorText(function (e) { return _this.onBlurEditorTextHandler(e); }); | ||
this._editor.onDidLayoutChange(function (e) { return _this.onLayoutChangeHandler(e); }); | ||
// refresh layout on resize event. | ||
@@ -180,2 +170,3 @@ // if (this._windowResizeSubscription) { | ||
// this._windowResizeSubscription = fromEvent(window, 'resize').subscribe(() => this._editor.layout()); | ||
// this.onInit.emit(this._editor); | ||
this.codeEditorEventService.fireEvent({ | ||
@@ -212,4 +203,15 @@ eventName: CODE_EDITOR_EVENTS.onInit, | ||
function (e) { | ||
this.onTouchedHandler(); | ||
this.onControlTouched(); | ||
}; | ||
/** | ||
* @param {?} e | ||
* @return {?} | ||
*/ | ||
AngularMonacoEditorComponent.prototype.onLayoutChangeHandler = /** | ||
* @param {?} e | ||
* @return {?} | ||
*/ | ||
function (e) { | ||
console.log('Layout changed:\n' + e); | ||
}; | ||
Object.defineProperty(AngularMonacoEditorComponent.prototype, "value", { | ||
@@ -233,3 +235,3 @@ //get accessor | ||
} | ||
this.onChangeHandler(this.value); //在属性修饰器里调用onchangeHandler方法 | ||
this.onControlValueChange(this.value); //在属性修饰器里调用onControlValueChange方法 | ||
}, | ||
@@ -282,3 +284,3 @@ enumerable: true, | ||
function (fn) { | ||
this.onChangeHandler(this); | ||
this.onControlValueChange = fn; | ||
}; | ||
@@ -295,3 +297,3 @@ //From ControlValueAccessor interface | ||
function (fn) { | ||
this.onTouchedHandler(); | ||
this.onControlTouched = fn; | ||
}; | ||
@@ -316,4 +318,2 @@ AngularMonacoEditorComponent.decorators = [ | ||
"onInit": [{ type: Output },], | ||
"onChange": [{ type: Output },], | ||
"onTouched": [{ type: Output },], | ||
"options": [{ type: Input, args: ['options',] },], | ||
@@ -343,11 +343,7 @@ }; | ||
/** @type {?} */ | ||
AngularMonacoEditorComponent.prototype.onChange; | ||
/** @type {?} */ | ||
AngularMonacoEditorComponent.prototype.onTouched; | ||
/** @type {?} */ | ||
AngularMonacoEditorComponent.prototype._value; | ||
/** @type {?} */ | ||
AngularMonacoEditorComponent.prototype.onChangeHandler; | ||
AngularMonacoEditorComponent.prototype.onControlValueChange; | ||
/** @type {?} */ | ||
AngularMonacoEditorComponent.prototype.onTouchedHandler; | ||
AngularMonacoEditorComponent.prototype.onControlTouched; | ||
/** @type {?} */ | ||
@@ -361,2 +357,2 @@ AngularMonacoEditorComponent.prototype.zone; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci1tb25hY28tZWRpdG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXItbW9uYWNvLWVkaXRvci8iLCJzb3VyY2VzIjpbImxpYi9lZGl0b3IvYW5ndWxhci1tb25hY28tZWRpdG9yL2FuZ3VsYXItbW9uYWNvLWVkaXRvci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQXlCLFVBQVUsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFhLE1BQU0sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDaEksT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNELE9BQU8sRUFBd0IsaUJBQWlCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUV6RSxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sUUFBUSxDQUFDO0FBRTlCLE9BQU8sRUFBRSw0QkFBNEIsRUFBNkIsTUFBTSxXQUFXLENBQUM7QUFDcEYsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sdUNBQXVDLENBQUM7QUFDL0UsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0scUJBQ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ID0gKF86IGFueSkgPT4ge1xuICB9O1xuICBcbiAgLy9Db250cm9sVmFsdWVBY2Nlc3NvcuaPkOS+m+eahOS6i+S7tuWbnuiwg1xuICBvbkNvbnRyb2xUb3VjaGVkID0gKCkgPT4ge1xuICB9O1xuXG59Il19 |
@@ -6,7 +6,5 @@ /** | ||
export var /** @type {?} */ CODE_EDITOR_EVENTS = { | ||
onInit: 'onInit', | ||
onChange: 'onChange', | ||
onTouched: 'onTouched' | ||
onInit: 'onInit' | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vYW5ndWxhci1tb25hY28tZWRpdG9yLyIsInNvdXJjZXMiOlsibGliL2VkaXRvci9jb25zdGFudHMvZXZlbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxNQUFNLENBQUMscUJBQU0sa0JBQWtCLEdBQUc7SUFDOUIsTUFBTSxFQUFFLFFBQVE7SUFDaEIsUUFBUSxFQUFFLFVBQVU7SUFDcEIsU0FBUyxFQUFFLFdBQVc7Q0FDekIsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBDT0RFX0VESVRPUl9FVkVOVFMgPSB7XHJcbiAgICBvbkluaXQ6ICdvbkluaXQnLFxyXG4gICAgb25DaGFuZ2U6ICdvbkNoYW5nZScsXHJcbiAgICBvblRvdWNoZWQ6ICdvblRvdWNoZWQnXHJcbn0iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vYW5ndWxhci1tb25hY28tZWRpdG9yLyIsInNvdXJjZXMiOlsibGliL2VkaXRvci9jb25zdGFudHMvZXZlbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxNQUFNLENBQUM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3J0IHsgQ09ERV9FRElUT1JfRVZFTlRTIH0gZnJvbSAnLi4vY29uc3RhbnRzL2V2ZW50cyc7XHJcblxyXG5ASW5qZWN0YWJsZSgpXHJcbmV4cG9ydCBjbGFzcyBDb2RlRWRpdG9yRXZlbnRTZXJ2aWNlIHtcclxuICAgIHB1YmxpYyBldmVudE5hbWVzID0gT2JqZWN0LmtleXMoQ09ERV9FRElUT1JfRVZFTlRTKTtcclxuICAgIHByaXZhdGUgX2V2ZW50czogYW55ID0ge307IC8vIOS9v+eUqOS6i+S7tlxyXG5cclxuICAgIC8qKlxyXG4gICAgICog6K6+572u5ZCv55So5LqL5Lu2XHJcbiAgICAgKiBAcGFyYW0gIOS6i+S7tlxyXG4gICAgICovXHJcbiAgICBhZGRFdmVudChldmVudCl7XHJcbiAgICAgICAgYXNzaWduKHRoaXMuX2V2ZW50cywgZXZlbnQpO1xyXG4gICAgICAgIC8vIGNvbnNvbGUubG9nKHRoaXMuZXZlbnRzKTtcclxuICAgIH1cclxuXHJcbiAgICBmaXJlRXZlbnQoZXZlbnQpIHtcclxuICAgICAgICB0aGlzLl9ldmVudHNbZXZlbnQuZXZlbnROYW1lXS5lbWl0KGV2ZW50KTtcclxuICAgICAgICAvLyBjb25zb2xlLmxvZyhcIkVtaXQgRXZlbnQ6XCIgKyBldmVudCk7XHJcbiAgICB9XHJcbn1cclxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZS1lZGl0b3IuZXZlbnQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXItbW9uYWNvLWVkaXRvci8iLCJzb3VyY2VzIjpbImxpYi9lZGl0b3Ivc2VydmljZXMvY29kZS1lZGl0b3IuZXZlbnQuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFnQixVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFek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hbSAg5LqL5Lu2XG4gICAgICovXG4gICAgYWRkRXZlbnQoZXZlbnQpe1xuICAgICAgICBhc3NpZ24odGhpcy5fZXZlbnRzLCBldmVudCk7XG4gICAgICAgIC8vIGNvbnNvbGUubG9nKHRoaXMuZXZlbnRzKTtcbiAgICB9XG5cbiAgICBmaXJlRXZlbnQoZXZlbnQpIHtcbiAgICAgICAgdGhpcy5fZXZlbnRzW2V2ZW50LmV2ZW50TmFtZV0uZW1pdChldmVudCk7XG4gICAgICAgIC8vIGNvbnNvbGUubG9nKFwiRW1pdCBFdmVudDpcIiArIGV2ZW50KTtcbiAgICB9XG59XG4iXX0= |
@@ -8,2 +8,2 @@ /** | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXItbW9uYWNvLWVkaXRvci8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLDBDQUFjLDRCQUE0QixDQUFDO0FBQzNDLDZDQUFjLHFCQUFxQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saWIvZWRpdG9yL2VkaXRvci5tb2R1bGUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9lZGl0b3IvY29uZmlnJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvZWRpdG9yL3R5cGVzJzsiXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXItbW9uYWNvLWVkaXRvci8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLDBDQUFjLDRCQUE0QixDQUFDO0FBQzNDLDZDQUFjLHFCQUFxQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saWIvZWRpdG9yL2VkaXRvci5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZWRpdG9yL2NvbmZpZyc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9lZGl0b3IvdHlwZXMnOyJdfQ== |
@@ -19,5 +19,3 @@ import { InjectionToken, Injectable, Component, EventEmitter, Input, Output, ViewChild, forwardRef, Inject, NgZone, NgModule } from '@angular/core'; | ||
const /** @type {?} */ CODE_EDITOR_EVENTS = { | ||
onInit: 'onInit', | ||
onChange: 'onChange', | ||
onTouched: 'onTouched' | ||
onInit: 'onInit' | ||
}; | ||
@@ -86,16 +84,6 @@ | ||
//ControlValueAccessor提供的事件回调 | ||
this.onChangeHandler = (_) => { | ||
//Propagate Change to outside | ||
this.codeEditorEventService.fireEvent({ | ||
eventName: CODE_EDITOR_EVENTS.onChange, | ||
target: this, | ||
data: _ | ||
}); | ||
this.onControlValueChange = (_) => { | ||
}; | ||
//ControlValueAccessor提供的事件回调 | ||
this.onTouchedHandler = () => { | ||
this.codeEditorEventService.fireEvent({ | ||
eventName: CODE_EDITOR_EVENTS.onTouched, | ||
target: this | ||
}); | ||
this.onControlTouched = () => { | ||
}; | ||
@@ -200,2 +188,3 @@ // 初始化自定义事件 | ||
this._editor.onDidBlurEditorText((e) => this.onBlurEditorTextHandler(e)); | ||
this._editor.onDidLayoutChange((e) => this.onLayoutChangeHandler(e)); | ||
// refresh layout on resize event. | ||
@@ -206,2 +195,3 @@ // if (this._windowResizeSubscription) { | ||
// this._windowResizeSubscription = fromEvent(window, 'resize').subscribe(() => this._editor.layout()); | ||
// this.onInit.emit(this._editor); | ||
this.codeEditorEventService.fireEvent({ | ||
@@ -229,7 +219,14 @@ eventName: CODE_EDITOR_EVENTS.onInit, | ||
onBlurEditorTextHandler(e) { | ||
this.onTouchedHandler(); | ||
this.onControlTouched(); | ||
} | ||
/** | ||
* @param {?} e | ||
* @return {?} | ||
*/ | ||
onLayoutChangeHandler(e) { | ||
console.log('Layout changed:\n' + e); | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
get value() { | ||
@@ -248,3 +245,3 @@ return this._value; | ||
} | ||
this.onChangeHandler(this.value); //在属性修饰器里调用onchangeHandler方法 | ||
this.onControlValueChange(this.value); //在属性修饰器里调用onControlValueChange方法 | ||
} | ||
@@ -277,3 +274,3 @@ /** | ||
registerOnChange(fn) { | ||
this.onChangeHandler(this); | ||
this.onControlValueChange = fn; | ||
} | ||
@@ -285,3 +282,3 @@ /** | ||
registerOnTouched(fn) { | ||
this.onTouchedHandler(); | ||
this.onControlTouched = fn; | ||
} | ||
@@ -307,4 +304,2 @@ } | ||
"onInit": [{ type: Output },], | ||
"onChange": [{ type: Output },], | ||
"onTouched": [{ type: Output },], | ||
"options": [{ type: Input, args: ['options',] },], | ||
@@ -358,2 +353,2 @@ }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci1tb25hY28tZWRpdG9yLmpzLm1hcCIsInNvdXJjZXMiOlsibmc6Ly9hbmd1bGFyLW1vbmFjby1lZGl0b3IvbGliL2VkaXRvci9jb25maWcudHMiLCJuZzovL2FuZ3VsYXItbW9uYWNvLWVkaXRvci9saWIvZWRpdG9yL2NvbnN0YW50cy9ldmVudHMudHMiLCJuZzovL2FuZ3VsYXItbW9uYWNvLWVkaXRvci9saWIvZWRpdG9yL3NlcnZpY2VzL2NvZGUtZWRpdG9yLmV2ZW50LnNlcnZpY2UudHMiLCJuZzovL2FuZ3VsYXItbW9uYWNvLWVkaXRvci9saWIvZWRpdG9yL2FuZ3VsYXItbW9uYWNvLWVkaXRvci9hbmd1bGFyLW1vbmFjby1lZGl0b3IuY29tcG9uZW50LnRzIiwibmc6Ly9hbmd1bGFyLW1vbmFjby1lZGl0b3IvbGliL2VkaXRvci9lZGl0b3IubW9kdWxl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7Ozs7Ozs7In0= |
@@ -19,5 +19,3 @@ import { InjectionToken, Injectable, Component, EventEmitter, Input, Output, ViewChild, forwardRef, Inject, NgZone, NgModule } from '@angular/core'; | ||
var /** @type {?} */ CODE_EDITOR_EVENTS = { | ||
onInit: 'onInit', | ||
onChange: 'onChange', | ||
onTouched: 'onTouched' | ||
onInit: 'onInit' | ||
}; | ||
@@ -97,3 +95,2 @@ | ||
function AngularMonacoEditorComponent(zone, config, codeEditorEventService) { | ||
var _this = this; | ||
this.zone = zone; | ||
@@ -104,16 +101,6 @@ this.config = config; | ||
//ControlValueAccessor提供的事件回调 | ||
this.onChangeHandler = function (_) { | ||
//Propagate Change to outside | ||
_this.codeEditorEventService.fireEvent({ | ||
eventName: CODE_EDITOR_EVENTS.onChange, | ||
target: _this, | ||
data: _ | ||
}); | ||
this.onControlValueChange = function (_) { | ||
}; | ||
//ControlValueAccessor提供的事件回调 | ||
this.onTouchedHandler = function () { | ||
_this.codeEditorEventService.fireEvent({ | ||
eventName: CODE_EDITOR_EVENTS.onTouched, | ||
target: _this | ||
}); | ||
this.onControlTouched = function () { | ||
}; | ||
@@ -234,2 +221,3 @@ // 初始化自定义事件 | ||
this._editor.onDidBlurEditorText(function (e) { return _this.onBlurEditorTextHandler(e); }); | ||
this._editor.onDidLayoutChange(function (e) { return _this.onLayoutChangeHandler(e); }); | ||
// refresh layout on resize event. | ||
@@ -240,2 +228,3 @@ // if (this._windowResizeSubscription) { | ||
// this._windowResizeSubscription = fromEvent(window, 'resize').subscribe(() => this._editor.layout()); | ||
// this.onInit.emit(this._editor); | ||
this.codeEditorEventService.fireEvent({ | ||
@@ -272,4 +261,15 @@ eventName: CODE_EDITOR_EVENTS.onInit, | ||
function (e) { | ||
this.onTouchedHandler(); | ||
this.onControlTouched(); | ||
}; | ||
/** | ||
* @param {?} e | ||
* @return {?} | ||
*/ | ||
AngularMonacoEditorComponent.prototype.onLayoutChangeHandler = /** | ||
* @param {?} e | ||
* @return {?} | ||
*/ | ||
function (e) { | ||
console.log('Layout changed:\n' + e); | ||
}; | ||
Object.defineProperty(AngularMonacoEditorComponent.prototype, "value", { | ||
@@ -293,3 +293,3 @@ //get accessor | ||
} | ||
this.onChangeHandler(this.value); //在属性修饰器里调用onchangeHandler方法 | ||
this.onControlValueChange(this.value); //在属性修饰器里调用onControlValueChange方法 | ||
}, | ||
@@ -341,3 +341,3 @@ enumerable: true, | ||
function (fn) { | ||
this.onChangeHandler(this); | ||
this.onControlValueChange = fn; | ||
}; | ||
@@ -354,3 +354,3 @@ //From ControlValueAccessor interface | ||
function (fn) { | ||
this.onTouchedHandler(); | ||
this.onControlTouched = fn; | ||
}; | ||
@@ -375,4 +375,2 @@ AngularMonacoEditorComponent.decorators = [ | ||
"onInit": [{ type: Output },], | ||
"onChange": [{ type: Output },], | ||
"onTouched": [{ type: Output },], | ||
"options": [{ type: Input, args: ['options',] },], | ||
@@ -436,2 +434,2 @@ }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci1tb25hY28tZWRpdG9yLmpzLm1hcCIsInNvdXJjZXMiOlsibmc6Ly9hbmd1bGFyLW1vbmFjby1lZGl0b3IvbGliL2VkaXRvci9jb25maWcudHMiLCJuZzovL2FuZ3VsYXItbW9uYWNvLWVkaXRvci9saWIvZWRpdG9yL2NvbnN0YW50cy9ldmVudHMudHMiLCJuZzovL2FuZ3VsYXItbW9uYWNvLWVkaXRvci9saWIvZWRpdG9yL3NlcnZpY2VzL2NvZGUtZWRpdG9yLmV2ZW50LnNlcnZpY2UudHMiLCJuZzovL2FuZ3VsYXItbW9uYWNvLWVkaXRvci9saWIvZWRpdG9yL2FuZ3VsYXItbW9uYWNvLWVkaXRvci9hbmd1bGFyLW1vbmFjby1lZGl0b3IuY29tcG9uZW50LnRzIiwibmc6Ly9hbmd1bGFyLW1vbmFjby1lZGl0b3IvbGliL2VkaXRvci9lZGl0b3IubW9kdWxlLnRzIl0sInN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Z0NBQWdDLEVBQUUsc0JBQXNCLENBQUM7aUJBQ3RFOzs7O2dCQTdCNEIsTUFBTTtnREFtRUUsTUFBTSxTQUFDLDRCQUE0QjtnQkE3RC9ELHNCQUFzQjs7O3FDQWtDNUIsU0FBUyxTQUFDLFlBQVk7MkJBRXRCLE1BQU07NEJBRU4sS0FBSyxTQUFDLFNBQVM7O3VDQTdDbEI7Ozs7Ozs7QUNBQTs7Ozs7OztJQXFCZ0IsaUNBQU87Ozs7Y0FBQyxNQUFzQztRQUF0Qyx1QkFBQSxFQUFBLFdBQXNDO1FBQzFELE9BQU87WUFDTCxRQUFRLEVBQUUseUJBQXlCO1lBQ25DLFNBQVMsRUFBRTtnQkFDVCxFQUFFLE9BQU8sRUFBRSw0QkFBNEIsRUFBRSxRQUFRLEVBQUUsTUFBTSxFQUFFO2FBQzVEO1NBQ0YsQ0FBQzs7O2dCQXJCTCxRQUFRLFNBQUM7b0JBQ1IsT0FBTyxFQUFFO3dCQUNQLFlBQVk7cUJBQ2I7b0JBQ0QsWUFBWSxFQUFFO3dCQUNaLDRCQUE0QjtxQkFDN0I7b0JBQ0QsT0FBTyxFQUFFO3dCQUNQLDRCQUE0QjtxQkFDN0I7b0JBQ0QsU0FBUyxFQUFFLEVBQ1Y7aUJBQ0Y7O29DQWxCRDs7Ozs7Ozs7Ozs7Ozs7OyJ9 |
@@ -15,4 +15,2 @@ import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core'; | ||
onInit: any; | ||
onChange: any; | ||
onTouched: any; | ||
options: any; | ||
@@ -25,2 +23,3 @@ constructor(zone: NgZone, config: AngularMonacoEditorConfig, codeEditorEventService: CodeEditorEventService); | ||
onBlurEditorTextHandler(e: any): void; | ||
onLayoutChangeHandler(e: any): void; | ||
private _value; | ||
@@ -32,4 +31,4 @@ value: any; | ||
registerOnTouched(fn: any): void; | ||
onChangeHandler: (_: any) => void; | ||
onTouchedHandler: () => void; | ||
onControlValueChange: (_: any) => void; | ||
onControlTouched: () => void; | ||
} |
export declare const CODE_EDITOR_EVENTS: { | ||
onInit: string; | ||
onChange: string; | ||
onTouched: string; | ||
}; |
{ | ||
"name": "angular-monaco-editor", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "To utilize the Monaco Code Editor as an Angular Component.", | ||
@@ -5,0 +5,0 @@ "author": "courage007 <wang_xufa@163.com>", |
@@ -37,2 +37,4 @@ # Monaco Editor Component for Angular 2+ | ||
``` | ||
PS: In Angular 6 CLI, please copy node_modules/monaco-editor/min to src/assets and rename folder as 'monaco' by hand. | ||
PPS: Angular 6 CLI does not allow to dymanicly load resource using input/output. | ||
@@ -120,17 +122,8 @@ ### Sample | ||
```html | ||
<angular-monaco-editor class="customMonacoEditor" [options]="options" [(ngModel)]="code" (onInit)="onInitHandler($event)" | ||
(onTouched)="onTouchedHandler($event)" (onChange)="onChangeHandler($event)"></angular-monaco-editor> | ||
<angular-monaco-editor class="customMonacoEditor" [options]="options" [(ngModel)]="code" (onInit)="onInitHandler($event)"></angular-monaco-editor> | ||
``` | ||
```typescript | ||
export class AppComponent { | ||
editorOptions = {theme: 'vs-dark', language: 'javascript'}; | ||
code: string= 'function x() {\nconsole.log("Hello world!");\n}'; | ||
onInit(editor) { | ||
let line = editor.getPosition(); | ||
console.log(line); | ||
} | ||
} | ||
export class AppComponent { | ||
options = {theme: 'vs-dark',language: 'javascript'}; | ||
@@ -149,9 +142,2 @@ code: string = ` | ||
onChangeHandler(event: any){ | ||
console.log(event); | ||
} | ||
onTouchedHandler(event: any){ | ||
console.log(event); | ||
} | ||
} | ||
@@ -158,0 +144,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
268826
2222
237