@firestitch/text-editor 9.0.2 → 12.1.0
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.
- package/app/components/text-editor/text-editor.component.d.ts +34 -31
- package/app/fs-text-editor.module.d.ts +10 -2
- package/app/interfaces/config.interface.d.ts +4 -4
- package/bundles/firestitch-text-editor.umd.js +204 -384
- package/bundles/firestitch-text-editor.umd.js.map +1 -1
- package/esm2015/app/components/text-editor/text-editor.component.js +140 -144
- package/esm2015/app/fs-text-editor.module.js +35 -26
- package/esm2015/app/interfaces/config.interface.js +2 -1
- package/esm2015/firestitch-text-editor.js +5 -5
- package/esm2015/public_api.js +6 -6
- package/fesm2015/firestitch-text-editor.js +169 -162
- package/fesm2015/firestitch-text-editor.js.map +1 -1
- package/firestitch-text-editor.d.ts +5 -4
- package/package.json +7 -8
- package/public_api.d.ts +3 -3
- package/bundles/firestitch-text-editor.umd.min.js +0 -16
- package/bundles/firestitch-text-editor.umd.min.js.map +0 -1
- package/esm5/app/components/text-editor/text-editor.component.js +0 -156
- package/esm5/app/fs-text-editor.module.js +0 -29
- package/esm5/app/interfaces/config.interface.js +0 -1
- package/esm5/firestitch-text-editor.js +0 -5
- package/esm5/public_api.js +0 -6
- package/fesm5/firestitch-text-editor.js +0 -189
- package/fesm5/firestitch-text-editor.js.map +0 -1
- package/firestitch-text-editor.metadata.json +0 -1
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, ElementRef } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { EditorComponent } from 'ngx-monaco-editor';
|
|
4
|
-
import { FsTextEditorConfig } from '../../interfaces/config.interface';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
private
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
private
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import { EventEmitter, OnInit, ElementRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { EditorComponent } from 'ngx-monaco-editor';
|
|
4
|
+
import { FsTextEditorConfig } from '../../interfaces/config.interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsTextEditorComponent implements OnInit, ControlValueAccessor {
|
|
7
|
+
private _element;
|
|
8
|
+
config: FsTextEditorConfig;
|
|
9
|
+
scrollable: boolean;
|
|
10
|
+
init: EventEmitter<any>;
|
|
11
|
+
blur: EventEmitter<any>;
|
|
12
|
+
_editorContainer: EditorComponent;
|
|
13
|
+
defaultConfig: FsTextEditorConfig;
|
|
14
|
+
onChange: (_: any) => void;
|
|
15
|
+
onTouched: () => void;
|
|
16
|
+
get monaco(): any;
|
|
17
|
+
constructor(_element: ElementRef);
|
|
18
|
+
readonly LINE_HEIGHT = 18;
|
|
19
|
+
private _editorRef;
|
|
20
|
+
private _value;
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
get value(): string;
|
|
23
|
+
onEditorInit(event: any): void;
|
|
24
|
+
writeValue(value: any): void;
|
|
25
|
+
changed(e: any): void;
|
|
26
|
+
registerOnChange(fn: any): void;
|
|
27
|
+
registerOnTouched(fn: any): void;
|
|
28
|
+
private _initEditor;
|
|
29
|
+
private _updateEditorHeight;
|
|
30
|
+
updateLayout(): void;
|
|
31
|
+
private _disableScroll;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsTextEditorComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsTextEditorComponent, "fs-text-editor", never, { "config": "config"; "scrollable": "scrollable"; }, { "init": "init"; "blur": "blur"; }, never, never>;
|
|
34
|
+
}
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/text-editor/text-editor.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "ngx-monaco-editor";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
export declare class FsTextEditorModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsTextEditorModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsTextEditorModule, [typeof i1.FsTextEditorComponent], [typeof i2.CommonModule, typeof i3.MonacoEditorModule, typeof i4.FormsModule], [typeof i1.FsTextEditorComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FsTextEditorModule>;
|
|
10
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import IStandaloneEditorConstructionOptions = monaco.editor.IStandaloneEditorConstructionOptions;
|
|
2
|
-
export interface FsTextEditorConfig extends IStandaloneEditorConstructionOptions {
|
|
3
|
-
autoHeight?: boolean;
|
|
4
|
-
}
|
|
1
|
+
import IStandaloneEditorConstructionOptions = monaco.editor.IStandaloneEditorConstructionOptions;
|
|
2
|
+
export interface FsTextEditorConfig extends IStandaloneEditorConstructionOptions {
|
|
3
|
+
autoHeight?: boolean;
|
|
4
|
+
}
|