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AAI,CAACV,QAAQ,YAAY;IAC/CS,YAAY,CAACE,gBAAgB,CAAC,MAAM,EAAE,MAAM,IAAI,CAACP,UAAU,EAAE,CAAC;IAC9D1C,QAAQ,CAACkD,IAAI,CAACC,WAAW,CAACJ,YAAY,CAAC;EACzC;CACD;AA5CYlG,mBAAmB,GAAAf,iDAAA,EAD/BqG,yDAAU,EAAE,GACAtF,mBAAmB,CA4C/B;;;;;;;;;;;;;;;;AC1CM,IAAKD,sBAGX;AAHD,WAAYA,sBAAsB;EAChCA,sBAAA,qBAAiB;EACjBA,sBAAA,iBAAa;AACf,CAAC,EAHWA,sBAAsB,KAAtBA,sBAAsB;;;;;;;;;;ACNlC;AACA,4CAA4C,mBAAO,CAAC,6EAAmE;AACvH,kCAAkC,mBAAO,CAAC,qEAA4D;AACtG;AACA;AACA,gEAAgE,kBAAkB,2BAA2B,gCAAgC,GAAG,+CAA+C,iBAAiB,uCAAuC,GAAG,iDAAiD,gBAAgB,gBAAgB,GAAG,+CAA+C,kBAAkB,uBAAuB,WAAW,cAAc,YAAY,aAAa,4BAA4B,wBAAwB,yCAAyC,GAAG,OAAO,wHAAwH,UAAU,WAAW,WAAW,KAAK,KAAK,UAAU,WAAW,KAAK,KAAK,UAAU,UAAU,KAAK,KAAK,UAAU,WAAW,UAAU,UAAU,UAAU,UAAU,WAAW,WAAW,WAAW,gCAAgC,oBAAoB,oBAAoB,6BAA6B,kCAAkC,gCAAgC,qBAAqB,2CAA2C,OAAO,kCAAkC,oBAAoB,oBAAoB,OAAO,gCAAgC,sBAAsB,2BAA2B,eAAe,kBAAkB,gBAAgB,iBAAiB,gCAAgC,4BAA4B,6DAA6D,OAAO,KAAK,GAAG,qBAAqB;AAC3+C;AACA","sources":["./apps/demo/src/app/editor/editor-routing.module.ts","./apps/demo/src/app/editor/editor.module.ts","./apps/demo/src/app/monaco/monaco-editor.component.ts","./apps/demo/src/app/monaco/monaco-editor.module.ts","./apps/demo/src/app/monaco/monaco-editor.service.ts","./apps/demo/src/app/monaco/monaco-editor.ts","./apps/demo/src/app/monaco/monaco-editor.component.scss"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\n\nconst editorsRoutes: Routes = [\n {\n path: 'bootstrap',\n loadChildren: () => import('./bootstrap/bootstrap-editor.module').then(m => m.BootstrapEditorModule),\n },\n {\n path: 'material',\n loadChildren: () => import('./material/material-editor.module').then(m => m.MaterialEditorModule),\n },\n];\n\n@NgModule({\n imports: [\n RouterModule.forChild(editorsRoutes),\n ],\n exports: [\n RouterModule,\n ],\n})\nexport class EditorRoutingModule {}\n","import { NgModule } from '@angular/core';\nimport { MonacoEditorModule } from '../monaco/monaco-editor.module';\nimport { EditorRoutingModule } from './editor-routing.module';\n\n@NgModule({\n imports: [\n MonacoEditorModule,\n EditorRoutingModule,\n ],\n})\nexport class EditorModule {}\n","import {\n Component, ElementRef, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChanges, ViewChild,\n} from '@angular/core';\nimport { BehaviorSubject, first, tap } from 'rxjs';\nimport { MonacoModule, MonacoEditor, MonacoEditorDisposable, MonacoEditorOptions, MonacoEditorUpdateType } from './monaco-editor';\nimport { MonacoEditorService } from './monaco-editor.service';\n\ndeclare let monaco: MonacoModule;\n\n@Component({\n selector: 'app-monaco-editor',\n templateUrl: './monaco-editor.component.html',\n styleUrls: [ './monaco-editor.component.scss'],\n})\nexport class MonacoEditorComponent implements OnChanges, OnInit, OnDestroy {\n private readonly _fileLoading = new BehaviorSubject(false);\n\n private _editor: MonacoEditor;\n private _editorBlur: MonacoEditorDisposable;\n private _editorChange: MonacoEditorDisposable;\n\n readonly loading$ = this.monacoEditorService.loading$;\n readonly fileLoading$ = this._fileLoading.asObservable();\n\n @ViewChild('container', { static: true }) container: ElementRef;\n\n @Input() value: string;\n @Input() language: string;\n @Input() updateType: MonacoEditorUpdateType = MonacoEditorUpdateType.Change;\n @Output() valueChange = new EventEmitter();\n @Output() loadingChange = new EventEmitter();\n\n constructor(private monacoEditorService: MonacoEditorService) {\n this.monacoEditorService.load();\n }\n\n ngOnChanges({ value }: SimpleChanges): void {\n if (!value.firstChange && value.previousValue !== value.currentValue && value.currentValue !== this.value) {\n this._editor.setValue(this.value);\n }\n }\n\n ngOnInit(): void {\n this.monacoEditorService.loaded$.pipe(\n first(loaded => !!loaded),\n tap(_ => this.initEditor()),\n ).subscribe();\n }\n\n ngOnDestroy(): void {\n this._editorChange?.dispose();\n this._editorBlur?.dispose();\n this._editor?.dispose();\n }\n\n handleFileUpload(files: FileList): void {\n const file = files.item(0);\n const fileReader = new FileReader();\n this._fileLoading.next(true);\n fileReader.onload = (event) => {\n this.value = event.target.result as string;\n this._editor.setValue(this.value);\n this._fileLoading.next(false);\n this.valueChange.emit(this.value);\n };\n fileReader.onerror = (_event) => {\n this._fileLoading.next(false);\n };\n fileReader.readAsText(file);\n }\n\n handleFileDownload(): void {\n const file = new File([ this.value ], 'dynamic-form.json', { type: 'application/json' });\n const link = document.createElement('a');\n const url = URL.createObjectURL(file);\n link.href = url;\n link.download = file.name;\n link.click();\n URL.revokeObjectURL(url);\n }\n\n private initEditor(): void {\n const options = this.getEditorOptions();\n this._editor = monaco.editor.create(this.container.nativeElement, options);\n this._editorBlur = this._editor.onDidBlurEditorText((_) => this.updateValue(MonacoEditorUpdateType.Blur));\n this._editorChange = this._editor.onDidChangeModelContent((_) => this.updateValue(MonacoEditorUpdateType.Change));\n }\n\n private getEditorOptions(): MonacoEditorOptions {\n return {\n value: this.value,\n language: this.language,\n automaticLayout: true,\n scrollBeyondLastLine: false,\n };\n }\n\n private updateValue(updateType?: MonacoEditorUpdateType): void {\n if (!updateType || this.updateType === updateType) {\n this.value = this._editor.getValue();\n this.valueChange.emit(this.value);\n }\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MonacoEditorComponent } from './monaco-editor.component';\nimport { MonacoEditorService } from './monaco-editor.service';\n\n\n@NgModule({\n imports: [\n CommonModule,\n MatButtonModule,\n MatMenuModule,\n ],\n declarations: [\n MonacoEditorComponent,\n ],\n exports: [\n MonacoEditorComponent,\n ],\n providers: [\n MonacoEditorService,\n ],\n})\nexport class MonacoEditorModule {}\n","import { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\n\n@Injectable()\nexport class MonacoEditorService {\n private readonly _window = window as { require?: any; monaco?: any };\n private readonly _baseUrl = './assets/monaco-editor/min/vs';\n\n private readonly _loading = new BehaviorSubject(false);\n private readonly _loaded = new BehaviorSubject(false);\n\n readonly loading$ = this._loading.asObservable();\n readonly loaded$ = this._loaded.asObservable();\n\n load(): void {\n if (typeof this._window.monaco === 'object') {\n this._loaded.next(true);\n return;\n }\n\n if(this._loading.value) {\n return;\n }\n\n this._loading.next(true);\n\n if (this._window.require) {\n this.loadMonaco();\n } else {\n this.loadMonacoLoader();\n }\n }\n\n private loadMonaco(): void {\n this._window.require.config({ paths: { vs: `${this._baseUrl}` } });\n this._window.require([`vs/editor/editor.main`], () => {\n this._loading.next(false);\n this._loaded.next(true);\n });\n }\n\n private loadMonacoLoader(): void {\n const loaderScript: HTMLScriptElement = document.createElement('script');\n loaderScript.type = 'text/javascript';\n loaderScript.src = `${this._baseUrl}/loader.js`;\n loaderScript.addEventListener('load', () => this.loadMonaco());\n document.body.appendChild(loaderScript);\n }\n}\n","import * as monaco from 'monaco-editor';\n\nexport type MonacoEditor = monaco.editor.IStandaloneCodeEditor;\n\nexport type MonacoEditorLanguage = 'json';\n\nexport enum MonacoEditorUpdateType {\n Change = 'change',\n Blur = 'blur'\n}\n\nexport type MonacoEditorDisposable = monaco.IDisposable;\n\nexport type MonacoEditorOptions = monaco.editor.IStandaloneEditorConstructionOptions;\n\nexport interface MonacoEditorModule {\n create: (element: HTMLElement, options?: MonacoEditorOptions) => MonacoEditor;\n}\n\nexport interface MonacoModule {\n editor: MonacoEditorModule;\n}\n","// Imports\nvar ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \":host .monaco-editor {\\n display: flex;\\n flex-direction: column;\\n border: 1px solid lightgrey;\\n}\\n:host .monaco-editor .monaco-editor-toolbar {\\n height: 36px;\\n border-bottom: 1px solid lightgrey;\\n}\\n:host .monaco-editor .monaco-editor-container {\\n flex: 1 1 0;\\n width: 100%;\\n}\\n:host .monaco-editor .monaco-editor-loading {\\n display: flex;\\n position: absolute;\\n top: 0;\\n bottom: 0;\\n left: 0;\\n right: 0;\\n justify-content: center;\\n align-items: center;\\n background-color: rgba(0, 0, 0, 0.1);\\n}\", \"\",{\"version\":3,\"sources\":[\"webpack://./apps/demo/src/app/monaco/monaco-editor.component.scss\"],\"names\":[],\"mappings\":\"AACE;EACE,aAAA;EACA,sBAAA;EACA,2BAAA;AAAJ;AAEI;EACE,YAAA;EACA,kCAAA;AAAN;AAGI;EACE,WAAA;EACA,WAAA;AADN;AAII;EACE,aAAA;EACA,kBAAA;EACA,MAAA;EACA,SAAA;EACA,OAAA;EACA,QAAA;EACA,uBAAA;EACA,mBAAA;EACA,oCAAA;AAFN\",\"sourcesContent\":[\":host {\\n .monaco-editor {\\n display: flex;\\n flex-direction: column;\\n border: 1px solid lightgrey;\\n\\n .monaco-editor-toolbar {\\n height: 36px;\\n border-bottom: 1px solid lightgrey;\\n }\\n\\n .monaco-editor-container {\\n flex: 1 1 0;\\n width: 100%;\\n }\\n\\n .monaco-editor-loading {\\n display: flex;\\n position: absolute;\\n top: 0;\\n bottom: 0;\\n left: 0;\\n right: 0;\\n justify-content: center;\\n align-items: center;\\n background-color: rgba($color: #000000, $alpha: 0.1);\\n }\\n }\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n"],"names":["NgModule","RouterModule","editorsRoutes","path","loadChildren","then","m","BootstrapEditorModule","MaterialEditorModule","EditorRoutingModule","__decorate","imports","forChild","exports","MonacoEditorModule","EditorModule","Component","EventEmitter","Input","Output","ViewChild","BehaviorSubject","first","tap","MonacoEditorUpdateType","MonacoEditorService","MonacoEditorComponent","_class","constructor","monacoEditorService","_fileLoading","loading$","fileLoading$","asObservable","updateType","Change","valueChange","loadingChange","load","ngOnChanges","value","firstChange","previousValue","currentValue","_editor","setValue","ngOnInit","loaded$","pipe","loaded","_","initEditor","subscribe","ngOnDestroy","_editorChange","dispose","_editorBlur","handleFileUpload","files","file","item","fileReader","FileReader","next","onload","event","target","result","emit","onerror","_event","readAsText","handleFileDownload","File","type","link","document","createElement","url","URL","createObjectURL","href","download","name","click","revokeObjectURL","options","getEditorOptions","monaco","editor","create","container","nativeElement","onDidBlurEditorText","updateValue","Blur","onDidChangeModelContent","language","automaticLayout","scrollBeyondLastLine","getValue","args","static","selector","template","__NG_CLI_RESOURCE__0","CommonModule","MatButtonModule","MatMenuModule","declarations","providers","Injectable","_window","window","_baseUrl","_loading","_loaded","require","loadMonaco","loadMonacoLoader","config","paths","vs","loaderScript","src","addEventListener","body","appendChild"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}