@firestitch/text-editor 18.0.0 → 18.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/app/components/text-editor/text-editor.component.d.ts +4 -4
  2. package/app/modules/ngx-monaco-editor/base-editor.d.ts +1 -1
  3. package/app/modules/ngx-monaco-editor/diff-editor.component.d.ts +1 -1
  4. package/app/modules/ngx-monaco-editor/editor.component.d.ts +1 -1
  5. package/esm2020/app/components/text-editor/text-editor.component.mjs +150 -0
  6. package/esm2020/app/fs-text-editor.module.mjs +42 -0
  7. package/esm2020/app/modules/ngx-monaco-editor/base-editor.mjs +77 -0
  8. package/esm2020/app/modules/ngx-monaco-editor/diff-editor.component.mjs +91 -0
  9. package/esm2020/app/modules/ngx-monaco-editor/editor.component.mjs +118 -0
  10. package/esm2020/app/modules/ngx-monaco-editor/editor.module.mjs +40 -0
  11. package/fesm2015/firestitch-text-editor.mjs +505 -0
  12. package/fesm2015/firestitch-text-editor.mjs.map +1 -0
  13. package/{fesm2022 → fesm2020}/firestitch-text-editor.mjs +102 -83
  14. package/fesm2020/firestitch-text-editor.mjs.map +1 -0
  15. package/package.json +13 -7
  16. package/esm2022/app/components/text-editor/text-editor.component.mjs +0 -151
  17. package/esm2022/app/fs-text-editor.module.mjs +0 -40
  18. package/esm2022/app/modules/ngx-monaco-editor/base-editor.mjs +0 -82
  19. package/esm2022/app/modules/ngx-monaco-editor/diff-editor.component.mjs +0 -80
  20. package/esm2022/app/modules/ngx-monaco-editor/editor.component.mjs +0 -108
  21. package/esm2022/app/modules/ngx-monaco-editor/editor.module.mjs +0 -38
  22. package/fesm2022/firestitch-text-editor.mjs.map +0 -1
  23. /package/{esm2022 → esm2020}/app/interfaces/config.interface.mjs +0 -0
  24. /package/{esm2022 → esm2020}/app/modules/ngx-monaco-editor/config.mjs +0 -0
  25. /package/{esm2022 → esm2020}/app/modules/ngx-monaco-editor/types.mjs +0 -0
  26. /package/{esm2022 → esm2020}/firestitch-text-editor.mjs +0 -0
  27. /package/{esm2022 → esm2020}/public_api.mjs +0 -0
  28. /package/{index.d.ts → firestitch-text-editor.d.ts} +0 -0
@@ -0,0 +1,40 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import { NgModule } from '@angular/core';
3
+ import { NGX_MONACO_EDITOR_CONFIG } from './config';
4
+ import { DiffEditorComponent } from './diff-editor.component';
5
+ import { EditorComponent } from './editor.component';
6
+ import * as i0 from "@angular/core";
7
+ export class MonacoEditorModule {
8
+ static forRoot(config = {}) {
9
+ return {
10
+ ngModule: MonacoEditorModule,
11
+ providers: [
12
+ { provide: NGX_MONACO_EDITOR_CONFIG, useValue: config }
13
+ ]
14
+ };
15
+ }
16
+ }
17
+ MonacoEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: MonacoEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
18
+ MonacoEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: MonacoEditorModule, declarations: [EditorComponent,
19
+ DiffEditorComponent], imports: [CommonModule], exports: [EditorComponent,
20
+ DiffEditorComponent] });
21
+ MonacoEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: MonacoEditorModule, imports: [[
22
+ CommonModule
23
+ ]] });
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: MonacoEditorModule, decorators: [{
25
+ type: NgModule,
26
+ args: [{
27
+ imports: [
28
+ CommonModule
29
+ ],
30
+ declarations: [
31
+ EditorComponent,
32
+ DiffEditorComponent
33
+ ],
34
+ exports: [
35
+ EditorComponent,
36
+ DiffEditorComponent
37
+ ]
38
+ }]
39
+ }] });
40
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLm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VZhbHVlOiBjb25maWcgfVxuICAgICAgXVxuICAgIH07XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,505 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, EventEmitter, Component, Inject, ViewChild, Output, forwardRef, Input, NgModule } from '@angular/core';
3
+ import { DOCUMENT, CommonModule } from '@angular/common';
4
+ import * as i2 from '@angular/forms';
5
+ import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
6
+ import { fromEvent } from 'rxjs';
7
+
8
+ const NGX_MONACO_EDITOR_CONFIG = new InjectionToken('NGX_MONACO_EDITOR_CONFIG');
9
+
10
+ let loadedMonaco = false;
11
+ let loadPromise;
12
+ class BaseEditor {
13
+ constructor(config) {
14
+ this.config = config;
15
+ this.onInit = new EventEmitter();
16
+ }
17
+ ngAfterViewInit() {
18
+ if (loadedMonaco) {
19
+ // Wait until monaco editor is available
20
+ loadPromise.then(() => {
21
+ this.initMonaco(this._options);
22
+ });
23
+ }
24
+ else {
25
+ loadedMonaco = true;
26
+ loadPromise = new Promise((resolve) => {
27
+ const baseUrl = `${this.config.baseUrl || './assets'}/monaco-editor/min/vs`;
28
+ if (typeof (window.monaco) === 'object') {
29
+ resolve();
30
+ return;
31
+ }
32
+ const onGotAmdLoader = () => {
33
+ // Load monaco
34
+ window.require.config({ paths: { vs: `${baseUrl}` } });
35
+ window.require(['vs/editor/editor.main'], () => {
36
+ if (typeof this.config.onMonacoLoad === 'function') {
37
+ this.config.onMonacoLoad();
38
+ }
39
+ this.initMonaco(this._options);
40
+ resolve();
41
+ });
42
+ };
43
+ // Load AMD loader if necessary
44
+ if (!window.require) {
45
+ const loaderScript = document.createElement('script');
46
+ loaderScript.type = 'text/javascript';
47
+ loaderScript.src = `${baseUrl}/loader.js`;
48
+ loaderScript.addEventListener('load', onGotAmdLoader);
49
+ document.body.appendChild(loaderScript);
50
+ }
51
+ else {
52
+ onGotAmdLoader();
53
+ }
54
+ });
55
+ }
56
+ }
57
+ ngOnDestroy() {
58
+ if (this._windowResizeSubscription) {
59
+ this._windowResizeSubscription.unsubscribe();
60
+ }
61
+ if (this._editor) {
62
+ this._editor.dispose();
63
+ this._editor = undefined;
64
+ }
65
+ }
66
+ }
67
+ BaseEditor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: BaseEditor, deps: [{ token: NGX_MONACO_EDITOR_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
68
+ BaseEditor.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: BaseEditor, selector: "ng-component", outputs: { onInit: "onInit" }, viewQueries: [{ propertyName: "_editorContainer", first: true, predicate: ["editorContainer"], descendants: true, static: true }], ngImport: i0, template: '', isInline: true });
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: BaseEditor, decorators: [{
70
+ type: Component,
71
+ args: [{
72
+ template: '',
73
+ }]
74
+ }], ctorParameters: function () {
75
+ return [{ type: undefined, decorators: [{
76
+ type: Inject,
77
+ args: [NGX_MONACO_EDITOR_CONFIG]
78
+ }] }];
79
+ }, propDecorators: { _editorContainer: [{
80
+ type: ViewChild,
81
+ args: ['editorContainer', { static: true }]
82
+ }], onInit: [{
83
+ type: Output
84
+ }] } });
85
+
86
+ class EditorComponent extends BaseEditor {
87
+ constructor(zone, editorConfig) {
88
+ super(editorConfig);
89
+ this.zone = zone;
90
+ this.editorConfig = editorConfig;
91
+ this._value = '';
92
+ this.propagateChange = (_) => { };
93
+ this.onTouched = () => { };
94
+ }
95
+ set options(options) {
96
+ this._options = Object.assign(Object.assign({}, this.config.defaultOptions), options);
97
+ if (this._editor) {
98
+ this._editor.dispose();
99
+ this.initMonaco(options);
100
+ }
101
+ }
102
+ get options() {
103
+ return this._options;
104
+ }
105
+ set model(model) {
106
+ this.options.model = model;
107
+ if (this._editor) {
108
+ this._editor.dispose();
109
+ this.initMonaco(this.options);
110
+ }
111
+ }
112
+ writeValue(value) {
113
+ this._value = value || '';
114
+ // Fix for value change while dispose in process.
115
+ setTimeout(() => {
116
+ if (this._editor && !this.options.model) {
117
+ this._editor.setValue(this._value);
118
+ }
119
+ });
120
+ }
121
+ registerOnChange(fn) {
122
+ this.propagateChange = fn;
123
+ }
124
+ registerOnTouched(fn) {
125
+ this.onTouched = fn;
126
+ }
127
+ initMonaco(options) {
128
+ const hasModel = !!options.model;
129
+ if (hasModel) {
130
+ const model = monaco.editor.getModel(options.model.uri || '');
131
+ if (model) {
132
+ options.model = model;
133
+ options.model.setValue(this._value);
134
+ }
135
+ else {
136
+ options.model = monaco.editor.createModel(options.model.value, options.model.language, options.model.uri);
137
+ }
138
+ }
139
+ this._editor = monaco.editor.create(this._editorContainer.nativeElement, options);
140
+ if (!hasModel) {
141
+ this._editor.setValue(this._value);
142
+ }
143
+ this._editor.onDidChangeModelContent((e) => {
144
+ const value = this._editor.getValue();
145
+ // value is not propagated to parent when executing outside zone.
146
+ this.zone.run(() => {
147
+ this.propagateChange(value);
148
+ this._value = value;
149
+ });
150
+ });
151
+ this._editor.onDidBlurEditorWidget(() => {
152
+ this.onTouched();
153
+ });
154
+ // refresh layout on resize event.
155
+ if (this._windowResizeSubscription) {
156
+ this._windowResizeSubscription.unsubscribe();
157
+ }
158
+ this._windowResizeSubscription = fromEvent(window, 'resize').subscribe(() => this._editor.layout());
159
+ this.onInit.emit(this._editor);
160
+ }
161
+ }
162
+ EditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: EditorComponent, deps: [{ token: i0.NgZone }, { token: NGX_MONACO_EDITOR_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
163
+ EditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: EditorComponent, selector: "ngx-monaco-editor", inputs: { options: "options", model: "model" }, providers: [{
164
+ provide: NG_VALUE_ACCESSOR,
165
+ useExisting: forwardRef(() => EditorComponent),
166
+ multi: true,
167
+ }], usesInheritance: true, ngImport: i0, template: '<div class="editor-container" #editorContainer></div>', isInline: true, styles: [".editor-container{width:100%;height:100%}\n"] });
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: EditorComponent, decorators: [{
169
+ type: Component,
170
+ args: [{
171
+ selector: 'ngx-monaco-editor',
172
+ template: '<div class="editor-container" #editorContainer></div>',
173
+ styles: [`
174
+
175
+
176
+ .editor-container {
177
+ width: 100%;
178
+ height: 100%;
179
+ }
180
+ `],
181
+ providers: [{
182
+ provide: NG_VALUE_ACCESSOR,
183
+ useExisting: forwardRef(() => EditorComponent),
184
+ multi: true,
185
+ }],
186
+ }]
187
+ }], ctorParameters: function () {
188
+ return [{ type: i0.NgZone }, { type: undefined, decorators: [{
189
+ type: Inject,
190
+ args: [NGX_MONACO_EDITOR_CONFIG]
191
+ }] }];
192
+ }, propDecorators: { options: [{
193
+ type: Input,
194
+ args: ['options']
195
+ }], model: [{
196
+ type: Input,
197
+ args: ['model']
198
+ }] } });
199
+
200
+ class FsTextEditorComponent {
201
+ constructor(_document) {
202
+ this._document = _document;
203
+ this.LINE_HEIGHT = 18;
204
+ this.config = {};
205
+ this.scrollable = false;
206
+ this.ready = new EventEmitter();
207
+ this.blur = new EventEmitter();
208
+ this._value = '';
209
+ this._window = this._document.defaultView;
210
+ }
211
+ get monaco() {
212
+ return this._window.monaco;
213
+ }
214
+ ngOnInit() {
215
+ if (this.config) {
216
+ this.config = Object.assign({ minimap: {
217
+ enabled: false,
218
+ }, theme: 'vs-dark', automaticLayout: !!this.config.height, scrollBeyondLastLine: false, scrollbar: {
219
+ vertical: this.config.height ? 'auto' : 'hidden',
220
+ }, hideCursorInOverviewRuler: true }, this.config);
221
+ }
222
+ }
223
+ get value() {
224
+ return this._value;
225
+ }
226
+ onEditorInit(event) {
227
+ // Timeout allows the content to fully load to and calculate height
228
+ setTimeout(() => {
229
+ this._editorRef = event;
230
+ this._initEditor();
231
+ this.ready.next(event);
232
+ if (!this.scrollable && !this.config.height) {
233
+ this._disableScroll();
234
+ }
235
+ if (this.config.ready) {
236
+ this.config.ready(this._editorRef);
237
+ }
238
+ });
239
+ // moved forward for cases when several editors should be initialized on the same page
240
+ setTimeout(() => {
241
+ this._cleanupAMDLoader();
242
+ }, 100);
243
+ }
244
+ writeValue(value) {
245
+ this._value = value || '';
246
+ }
247
+ changed(e) {
248
+ if (this._value !== e) {
249
+ this._value = e;
250
+ this.onChange(e);
251
+ }
252
+ }
253
+ updateLayout() {
254
+ this._editorRef.layout();
255
+ }
256
+ registerOnChange(fn) {
257
+ this.onChange = fn;
258
+ }
259
+ registerOnTouched(fn) {
260
+ this.onTouched = fn;
261
+ }
262
+ _initEditor() {
263
+ if (this._editorRef && !this.config.height) {
264
+ this._updateEditorHeight();
265
+ this._editorRef.onDidChangeModelContent((e) => {
266
+ this._updateEditorHeight();
267
+ });
268
+ }
269
+ this._editorRef.onDidBlurEditorText(() => {
270
+ this.blur.next(null);
271
+ if (this.config.blur) {
272
+ this.config.blur();
273
+ }
274
+ });
275
+ this._editorRef.onDidFocusEditorText(() => {
276
+ if (this.config.focus) {
277
+ this.config.focus();
278
+ }
279
+ });
280
+ }
281
+ _updateEditorHeight() {
282
+ const editorDomNode = this._editorRef.getDomNode();
283
+ if (!editorDomNode) {
284
+ return;
285
+ }
286
+ const container = editorDomNode.getElementsByClassName('view-lines')[0];
287
+ const lineHeight = container.firstChild
288
+ ? container.firstChild.offsetHeight
289
+ : this.LINE_HEIGHT;
290
+ const editorModel = this._editorRef.getModel();
291
+ if (!editorModel) {
292
+ return;
293
+ }
294
+ const nextHeight = this._editorRef.getModel().getLineCount() * lineHeight;
295
+ // set the height and redo layout
296
+ editorDomNode.style.height = `${nextHeight}px`;
297
+ this.updateLayout();
298
+ }
299
+ _disableScroll() {
300
+ const node = this._editorRef.getDomNode();
301
+ node.addEventListener('wheel', (e) => {
302
+ e.stopPropagation();
303
+ }, true);
304
+ }
305
+ _cleanupAMDLoader() {
306
+ // must be there to cleanup https://github.com/microsoft/monaco-editor/issues/827
307
+ this._window.define = null;
308
+ }
309
+ }
310
+ FsTextEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsTextEditorComponent, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
311
+ FsTextEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: FsTextEditorComponent, selector: "fs-text-editor", inputs: { config: "config", scrollable: "scrollable" }, outputs: { ready: "ready", blur: "blur" }, providers: [{
312
+ provide: NG_VALUE_ACCESSOR,
313
+ useExisting: forwardRef(() => FsTextEditorComponent),
314
+ multi: true,
315
+ }], ngImport: i0, template: "<ngx-monaco-editor\n [style.height]=\"config.height\"\n [ngModel]=\"value\"\n (ngModelChange)=\"changed($event)\"\n [options]=\"config\"\n (onInit)=\"onEditorInit($event)\">\n</ngx-monaco-editor>\n", styles: ["ngx-monaco-editor{display:block}\n"], components: [{ type: EditorComponent, selector: "ngx-monaco-editor", inputs: ["options", "model"] }], directives: [{ type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
316
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsTextEditorComponent, decorators: [{
317
+ type: Component,
318
+ args: [{ selector: 'fs-text-editor', providers: [{
319
+ provide: NG_VALUE_ACCESSOR,
320
+ useExisting: forwardRef(() => FsTextEditorComponent),
321
+ multi: true,
322
+ }], template: "<ngx-monaco-editor\n [style.height]=\"config.height\"\n [ngModel]=\"value\"\n (ngModelChange)=\"changed($event)\"\n [options]=\"config\"\n (onInit)=\"onEditorInit($event)\">\n</ngx-monaco-editor>\n", styles: ["ngx-monaco-editor{display:block}\n"] }]
323
+ }], ctorParameters: function () {
324
+ return [{ type: Document, decorators: [{
325
+ type: Inject,
326
+ args: [DOCUMENT]
327
+ }] }];
328
+ }, propDecorators: { config: [{
329
+ type: Input
330
+ }], scrollable: [{
331
+ type: Input
332
+ }], ready: [{
333
+ type: Output
334
+ }], blur: [{
335
+ type: Output
336
+ }] } });
337
+
338
+ class DiffEditorComponent extends BaseEditor {
339
+ constructor(editorConfig) {
340
+ super(editorConfig);
341
+ this.editorConfig = editorConfig;
342
+ }
343
+ set options(options) {
344
+ this._options = Object.assign(Object.assign({}, this.config.defaultOptions), options);
345
+ if (this._editor) {
346
+ this._editor.dispose();
347
+ this.initMonaco(options);
348
+ }
349
+ }
350
+ get options() {
351
+ return this._options;
352
+ }
353
+ set originalModel(model) {
354
+ this._originalModel = model;
355
+ if (this._editor) {
356
+ this._editor.dispose();
357
+ this.initMonaco(this.options);
358
+ }
359
+ }
360
+ set modifiedModel(model) {
361
+ this._modifiedModel = model;
362
+ if (this._editor) {
363
+ this._editor.dispose();
364
+ this.initMonaco(this.options);
365
+ }
366
+ }
367
+ initMonaco(options) {
368
+ if (!this._originalModel || !this._modifiedModel) {
369
+ throw new Error('originalModel or modifiedModel not found for ngx-monaco-diff-editor');
370
+ }
371
+ this._originalModel.language = this._originalModel.language || options.language;
372
+ this._modifiedModel.language = this._modifiedModel.language || options.language;
373
+ const originalModel = monaco.editor.createModel(this._originalModel.code, this._originalModel.language);
374
+ const modifiedModel = monaco.editor.createModel(this._modifiedModel.code, this._modifiedModel.language);
375
+ this._editorContainer.nativeElement.innerHTML = '';
376
+ const theme = options.theme;
377
+ this._editor = monaco.editor.createDiffEditor(this._editorContainer.nativeElement, options);
378
+ options.theme = theme;
379
+ this._editor.setModel({
380
+ original: originalModel,
381
+ modified: modifiedModel,
382
+ });
383
+ // refresh layout on resize event.
384
+ if (this._windowResizeSubscription) {
385
+ this._windowResizeSubscription.unsubscribe();
386
+ }
387
+ this._windowResizeSubscription = fromEvent(window, 'resize').subscribe(() => this._editor.layout());
388
+ this.onInit.emit(this._editor);
389
+ }
390
+ }
391
+ DiffEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DiffEditorComponent, deps: [{ token: NGX_MONACO_EDITOR_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
392
+ DiffEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: DiffEditorComponent, selector: "ngx-monaco-diff-editor", inputs: { options: "options", originalModel: "originalModel", modifiedModel: "modifiedModel" }, usesInheritance: true, ngImport: i0, template: '<div class="editor-container" #editorContainer></div>', isInline: true, styles: [":host{display:block;height:200px}.editor-container{width:100%;height:100%}\n"] });
393
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DiffEditorComponent, decorators: [{
394
+ type: Component,
395
+ args: [{
396
+ selector: 'ngx-monaco-diff-editor',
397
+ template: '<div class="editor-container" #editorContainer></div>',
398
+ styles: [`
399
+ :host {
400
+ display: block;
401
+ height: 200px;
402
+ }
403
+
404
+ .editor-container {
405
+ width: 100%;
406
+ height: 100%;
407
+ }
408
+ `],
409
+ }]
410
+ }], ctorParameters: function () {
411
+ return [{ type: undefined, decorators: [{
412
+ type: Inject,
413
+ args: [NGX_MONACO_EDITOR_CONFIG]
414
+ }] }];
415
+ }, propDecorators: { options: [{
416
+ type: Input,
417
+ args: ['options']
418
+ }], originalModel: [{
419
+ type: Input,
420
+ args: ['originalModel']
421
+ }], modifiedModel: [{
422
+ type: Input,
423
+ args: ['modifiedModel']
424
+ }] } });
425
+
426
+ class MonacoEditorModule {
427
+ static forRoot(config = {}) {
428
+ return {
429
+ ngModule: MonacoEditorModule,
430
+ providers: [
431
+ { provide: NGX_MONACO_EDITOR_CONFIG, useValue: config }
432
+ ]
433
+ };
434
+ }
435
+ }
436
+ MonacoEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: MonacoEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
437
+ MonacoEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: MonacoEditorModule, declarations: [EditorComponent,
438
+ DiffEditorComponent], imports: [CommonModule], exports: [EditorComponent,
439
+ DiffEditorComponent] });
440
+ MonacoEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: MonacoEditorModule, imports: [[
441
+ CommonModule
442
+ ]] });
443
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: MonacoEditorModule, decorators: [{
444
+ type: NgModule,
445
+ args: [{
446
+ imports: [
447
+ CommonModule
448
+ ],
449
+ declarations: [
450
+ EditorComponent,
451
+ DiffEditorComponent
452
+ ],
453
+ exports: [
454
+ EditorComponent,
455
+ DiffEditorComponent
456
+ ]
457
+ }]
458
+ }] });
459
+
460
+ class FsTextEditorModule {
461
+ static forRoot(config) {
462
+ return {
463
+ ngModule: FsTextEditorModule,
464
+ providers: [
465
+ MonacoEditorModule.forRoot(config).providers,
466
+ ],
467
+ };
468
+ }
469
+ }
470
+ FsTextEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsTextEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
471
+ FsTextEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsTextEditorModule, declarations: [FsTextEditorComponent], imports: [CommonModule,
472
+ MonacoEditorModule,
473
+ FormsModule], exports: [FsTextEditorComponent] });
474
+ FsTextEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsTextEditorModule, imports: [[
475
+ CommonModule,
476
+ MonacoEditorModule,
477
+ FormsModule,
478
+ ]] });
479
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsTextEditorModule, decorators: [{
480
+ type: NgModule,
481
+ args: [{
482
+ imports: [
483
+ CommonModule,
484
+ MonacoEditorModule,
485
+ FormsModule,
486
+ ],
487
+ exports: [
488
+ FsTextEditorComponent,
489
+ ],
490
+ declarations: [
491
+ FsTextEditorComponent,
492
+ ]
493
+ }]
494
+ }] });
495
+
496
+ /*
497
+ * Public API Surface of fs-menu
498
+ */
499
+
500
+ /**
501
+ * Generated bundle index. Do not edit.
502
+ */
503
+
504
+ export { FsTextEditorComponent, FsTextEditorModule };
505
+ //# sourceMappingURL=firestitch-text-editor.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"firestitch-text-editor.mjs","sources":["../../src/app/modules/ngx-monaco-editor/config.ts","../../src/app/modules/ngx-monaco-editor/base-editor.ts","../../src/app/modules/ngx-monaco-editor/editor.component.ts","../../src/app/components/text-editor/text-editor.component.ts","../../src/app/components/text-editor/text-editor.component.html","../../src/app/modules/ngx-monaco-editor/diff-editor.component.ts","../../src/app/modules/ngx-monaco-editor/editor.module.ts","../../src/app/fs-text-editor.module.ts","../../src/public_api.ts","../../src/firestitch-text-editor.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const NGX_MONACO_EDITOR_CONFIG = new InjectionToken('NGX_MONACO_EDITOR_CONFIG');\n\nexport interface NgxMonacoEditorConfig {\n baseUrl?: string;\n defaultOptions?: { [key: string]: any; };\n onMonacoLoad?: Function;\n}\n","import { AfterViewInit, Component, ElementRef, EventEmitter, Inject, OnDestroy, Output, ViewChild } from '@angular/core';\n\nimport { Subscription } from 'rxjs';\n\nimport { editor } from 'monaco-editor';\n\nimport { NGX_MONACO_EDITOR_CONFIG, NgxMonacoEditorConfig } from './config';\n\nlet loadedMonaco = false;\nlet loadPromise: Promise<void>;\n\n@Component({\n template: '',\n})\nexport abstract class BaseEditor implements AfterViewInit, OnDestroy {\n\n @ViewChild('editorContainer', { static: true }) public _editorContainer: ElementRef;\n\n @Output() public onInit = new EventEmitter<any>();\n\n protected _editor: editor.ICodeEditor;\n protected _options: any;\n protected _windowResizeSubscription: Subscription;\n\n constructor(@Inject(NGX_MONACO_EDITOR_CONFIG) protected config: NgxMonacoEditorConfig) {}\n\n public ngAfterViewInit(): void {\n if (loadedMonaco) {\n // Wait until monaco editor is available\n loadPromise.then(() => {\n this.initMonaco(this._options);\n });\n } else {\n loadedMonaco = true;\n loadPromise = new Promise<void>((resolve: any) => {\n const baseUrl = `${this.config.baseUrl || './assets' }/monaco-editor/min/vs`;\n if (typeof ((<any>window).monaco) === 'object') {\n resolve();\n\n return;\n }\n const onGotAmdLoader: any = () => {\n // Load monaco\n (<any>window).require.config({ paths: { vs: `${baseUrl}` } });\n (<any>window).require(['vs/editor/editor.main'], () => {\n if (typeof this.config.onMonacoLoad === 'function') {\n this.config.onMonacoLoad();\n }\n this.initMonaco(this._options);\n resolve();\n });\n };\n\n // Load AMD loader if necessary\n if (!(<any>window).require) {\n const loaderScript: HTMLScriptElement = document.createElement('script');\n loaderScript.type = 'text/javascript';\n loaderScript.src = `${baseUrl}/loader.js`;\n loaderScript.addEventListener('load', onGotAmdLoader);\n document.body.appendChild(loaderScript);\n } else {\n onGotAmdLoader();\n }\n });\n }\n }\n\n public ngOnDestroy() {\n if (this._windowResizeSubscription) {\n this._windowResizeSubscription.unsubscribe();\n }\n if (this._editor) {\n this._editor.dispose();\n this._editor = undefined;\n }\n }\n\n protected abstract initMonaco(options: any): void;\n}\n","import { Component, forwardRef, Inject, Input, NgZone } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nimport { fromEvent } from 'rxjs';\n\nimport { BaseEditor } from './base-editor';\nimport { NGX_MONACO_EDITOR_CONFIG, NgxMonacoEditorConfig } from './config';\nimport { NgxEditorModel } from './types';\n\ndeclare let monaco: any;\n\n@Component({\n selector: 'ngx-monaco-editor',\n template: '<div class=\"editor-container\" #editorContainer></div>',\n styles: [`\n\n\n .editor-container {\n width: 100%;\n height: 100%;\n }\n `],\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => EditorComponent),\n multi: true,\n }],\n})\nexport class EditorComponent extends BaseEditor implements ControlValueAccessor {\n private _value: string = '';\n\n public propagateChange = (_: any) => {};\n public onTouched = () => {};\n\n @Input('options')\n public set options(options: any) {\n this._options = { ...this.config.defaultOptions, ...options };\n if (this._editor) {\n this._editor.dispose();\n this.initMonaco(options);\n }\n }\n\n public get options(): any {\n return this._options;\n }\n\n @Input('model')\n set model(model: NgxEditorModel) {\n this.options.model = model;\n if (this._editor) {\n this._editor.dispose();\n this.initMonaco(this.options);\n }\n }\n\n constructor(private zone: NgZone, @Inject(NGX_MONACO_EDITOR_CONFIG) private editorConfig: NgxMonacoEditorConfig) {\n super(editorConfig);\n }\n\n public writeValue(value: any): void {\n this._value = value || '';\n // Fix for value change while dispose in process.\n setTimeout(() => {\n if (this._editor && !this.options.model) {\n this._editor.setValue(this._value);\n }\n });\n }\n\n public registerOnChange(fn: any): void {\n this.propagateChange = fn;\n }\n\n public registerOnTouched(fn: any): void {\n this.onTouched = fn;\n }\n\n protected initMonaco(options: any): void {\n\n const hasModel = !!options.model;\n\n if (hasModel) {\n const model = monaco.editor.getModel(options.model.uri || '');\n if (model) {\n options.model = model;\n options.model.setValue(this._value);\n } else {\n options.model = monaco.editor.createModel(options.model.value, options.model.language, options.model.uri);\n }\n }\n\n this._editor = monaco.editor.create(this._editorContainer.nativeElement, options);\n\n if (!hasModel) {\n this._editor.setValue(this._value);\n }\n\n this._editor.onDidChangeModelContent((e: any) => {\n const value = this._editor.getValue();\n\n // value is not propagated to parent when executing outside zone.\n this.zone.run(() => {\n this.propagateChange(value);\n this._value = value;\n });\n });\n\n this._editor.onDidBlurEditorWidget(() => {\n this.onTouched();\n });\n\n // refresh layout on resize event.\n if (this._windowResizeSubscription) {\n this._windowResizeSubscription.unsubscribe();\n }\n this._windowResizeSubscription = fromEvent(window, 'resize').subscribe(() => this._editor.layout());\n this.onInit.emit(this._editor);\n }\n\n}\n","import { DOCUMENT } from '@angular/common';\nimport {\n Component,\n EventEmitter,\n Inject,\n Input,\n OnInit,\n Output,\n forwardRef,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nimport { editor } from 'monaco-editor';\n\nimport { FsTextEditorConfig } from '../../interfaces/config.interface';\n\n\n@Component({\n selector: 'fs-text-editor',\n templateUrl: './text-editor.component.html',\n styleUrls: ['./text-editor.component.scss'],\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => FsTextEditorComponent),\n multi: true,\n }],\n})\nexport class FsTextEditorComponent implements OnInit, ControlValueAccessor {\n\n public readonly LINE_HEIGHT = 18;\n\n @Input() public config: FsTextEditorConfig = {};\n @Input() public scrollable = false;\n\n @Output() public ready = new EventEmitter();\n @Output() public blur = new EventEmitter();\n\n public onChange: (_: any) => void;\n public onTouched: () => void;\n\n private _editorRef: editor.ICodeEditor;\n private _value = '';\n private _window: any;\n\n constructor(\n @Inject(DOCUMENT) private _document: Document,\n ) {\n this._window = this._document.defaultView;\n }\n\n public get monaco() {\n return this._window.monaco;\n }\n\n public ngOnInit() {\n if (this.config) {\n this.config = {\n minimap: {\n enabled: false,\n },\n theme: 'vs-dark',\n automaticLayout: !!this.config.height,\n scrollBeyondLastLine: false,\n scrollbar: {\n vertical: this.config.height ? 'auto' : 'hidden',\n },\n hideCursorInOverviewRuler: true,\n ...this.config,\n };\n }\n }\n\n public get value() {\n return this._value;\n }\n\n public onEditorInit(event) {\n // Timeout allows the content to fully load to and calculate height\n setTimeout(() => {\n this._editorRef = event;\n this._initEditor();\n this.ready.next(event);\n\n if (!this.scrollable && !this.config.height) {\n this._disableScroll();\n }\n\n if(this.config.ready) {\n this.config.ready(this._editorRef);\n }\n });\n\n // moved forward for cases when several editors should be initialized on the same page\n setTimeout(() => {\n this._cleanupAMDLoader();\n }, 100);\n }\n\n public writeValue(value: any): void {\n this._value = value || '';\n }\n\n public changed(e) {\n if (this._value !== e) {\n this._value = e;\n this.onChange(e);\n }\n }\n\n public updateLayout(): void {\n this._editorRef.layout();\n }\n\n public registerOnChange(fn: any): void {\n this.onChange = fn;\n }\n\n public registerOnTouched(fn: any): void {\n this.onTouched = fn;\n }\n\n private _initEditor() {\n if (this._editorRef && !this.config.height) {\n this._updateEditorHeight();\n\n this._editorRef.onDidChangeModelContent((e) => {\n this._updateEditorHeight();\n });\n }\n\n this._editorRef.onDidBlurEditorText(() => {\n this.blur.next(null);\n if(this.config.blur) {\n this.config.blur();\n }\n });\n\n this._editorRef.onDidFocusEditorText(() => {\n if(this.config.focus) {\n this.config.focus();\n }\n });\n }\n\n private _updateEditorHeight() {\n const editorDomNode = this._editorRef.getDomNode();\n\n if (!editorDomNode) {\n return;\n }\n\n const container = editorDomNode.getElementsByClassName('view-lines')[0] as HTMLElement;\n const lineHeight = container.firstChild\n ? (container.firstChild as HTMLElement).offsetHeight\n : this.LINE_HEIGHT;\n\n const editorModel = this._editorRef.getModel();\n\n if (!editorModel) {\n return;\n }\n\n const nextHeight = this._editorRef.getModel().getLineCount() * lineHeight;\n\n // set the height and redo layout\n editorDomNode.style.height = `${nextHeight }px`;\n this.updateLayout();\n }\n\n private _disableScroll() {\n const node = this._editorRef.getDomNode();\n\n node.addEventListener('wheel', (e) => {\n e.stopPropagation();\n }, true);\n }\n\n private _cleanupAMDLoader(): void {\n // must be there to cleanup https://github.com/microsoft/monaco-editor/issues/827\n this._window.define = null;\n }\n}\n","<ngx-monaco-editor\n [style.height]=\"config.height\"\n [ngModel]=\"value\"\n (ngModelChange)=\"changed($event)\"\n [options]=\"config\"\n (onInit)=\"onEditorInit($event)\">\n</ngx-monaco-editor>\n","import { Component, Inject, Input } from '@angular/core';\n\nimport { fromEvent } from 'rxjs';\n\nimport { BaseEditor } from './base-editor';\nimport { NGX_MONACO_EDITOR_CONFIG, NgxMonacoEditorConfig } from './config';\nimport { DiffEditorModel } from './types';\n\ndeclare let monaco: any;\n\n@Component({\n selector: 'ngx-monaco-diff-editor',\n template: '<div class=\"editor-container\" #editorContainer></div>',\n styles: [`\n :host {\n display: block;\n height: 200px;\n }\n\n .editor-container {\n width: 100%;\n height: 100%;\n }\n `],\n})\nexport class DiffEditorComponent extends BaseEditor {\n\n _originalModel: DiffEditorModel;\n _modifiedModel: DiffEditorModel;\n\n @Input('options')\n set options(options: any) {\n this._options = { ...this.config.defaultOptions, ...options };\n if (this._editor) {\n this._editor.dispose();\n this.initMonaco(options);\n }\n }\n\n get options(): any {\n return this._options;\n }\n\n @Input('originalModel')\n set originalModel(model: DiffEditorModel) {\n this._originalModel = model;\n if (this._editor) {\n this._editor.dispose();\n this.initMonaco(this.options);\n }\n }\n\n @Input('modifiedModel')\n set modifiedModel(model: DiffEditorModel) {\n this._modifiedModel = model;\n if (this._editor) {\n this._editor.dispose();\n this.initMonaco(this.options);\n }\n }\n\n constructor(@Inject(NGX_MONACO_EDITOR_CONFIG) private editorConfig: NgxMonacoEditorConfig) {\n super(editorConfig);\n }\n\n protected initMonaco(options: any): void {\n\n if (!this._originalModel || !this._modifiedModel) {\n throw new Error('originalModel or modifiedModel not found for ngx-monaco-diff-editor');\n }\n\n this._originalModel.language = this._originalModel.language || options.language;\n this._modifiedModel.language = this._modifiedModel.language || options.language;\n\n const originalModel = monaco.editor.createModel(this._originalModel.code, this._originalModel.language);\n const modifiedModel = monaco.editor.createModel(this._modifiedModel.code, this._modifiedModel.language);\n\n this._editorContainer.nativeElement.innerHTML = '';\n const theme = options.theme;\n this._editor = monaco.editor.createDiffEditor(this._editorContainer.nativeElement, options);\n options.theme = theme;\n this._editor.setModel({\n original: originalModel,\n modified: modifiedModel,\n } as any);\n\n // refresh layout on resize event.\n if (this._windowResizeSubscription) {\n this._windowResizeSubscription.unsubscribe();\n }\n this._windowResizeSubscription = fromEvent(window, 'resize').subscribe(() => this._editor.layout());\n this.onInit.emit(this._editor);\n }\n\n}\n","import { CommonModule } from '@angular/common';\nimport { ModuleWithProviders, NgModule } from '@angular/core';\n\nimport { NGX_MONACO_EDITOR_CONFIG, NgxMonacoEditorConfig } from './config';\nimport { DiffEditorComponent } from './diff-editor.component';\nimport { EditorComponent } from './editor.component';\n\n@NgModule({\n imports: [\n CommonModule\n ],\n declarations: [\n EditorComponent,\n DiffEditorComponent\n ],\n exports: [\n EditorComponent,\n DiffEditorComponent\n ]\n})\nexport class MonacoEditorModule {\n public static forRoot(config: NgxMonacoEditorConfig = {}): ModuleWithProviders<MonacoEditorModule> {\n return {\n ngModule: MonacoEditorModule,\n providers: [\n { provide: NGX_MONACO_EDITOR_CONFIG, useValue: config }\n ]\n };\n }\n}\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { FsTextEditorComponent } from './components/text-editor/text-editor.component';\nimport { MonacoEditorModule } from './modules/ngx-monaco-editor/editor.module';\nimport { NgxMonacoEditorConfig } from './modules/ngx-monaco-editor/config';\n\n\n@NgModule({\n imports: [\n CommonModule,\n MonacoEditorModule,\n FormsModule,\n ],\n exports: [\n FsTextEditorComponent,\n ],\n declarations: [\n FsTextEditorComponent,\n ]\n})\nexport class FsTextEditorModule {\n static forRoot(config?: NgxMonacoEditorConfig): ModuleWithProviders<FsTextEditorModule> {\n return {\n ngModule: FsTextEditorModule,\n providers: [\n MonacoEditorModule.forRoot(config).providers,\n ],\n };\n }\n}\n","/*\n * Public API Surface of fs-menu\n */\n\nimport { from } from 'rxjs';\n\nexport { FsTextEditorModule } from './app/fs-text-editor.module';\n\nexport { FsTextEditorConfig } from './app/interfaces/config.interface';\n\n\nexport { FsTextEditorComponent } from './app/components/text-editor/text-editor.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1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