@worktile/theia 18.0.3 → 18.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "18.0.3",
3
+ "version": "18.0.5",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -1,5 +1,5 @@
1
1
  import { AfterViewInit, OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
- import { CodeMirrorComponent } from 'ng-codemirror';
2
+ import { CodeMirrorComponent, NgCodeMirrorOptions } from 'ng-codemirror';
3
3
  import { ThyPopoverRef } from 'ngx-tethys/popover';
4
4
  import { ThyResizeEvent } from 'ngx-tethys/resizable';
5
5
  import { Subject } from 'rxjs';
@@ -20,15 +20,7 @@ export declare class TheCode extends TheBaseElement<CodeElement, Editor> impleme
20
20
  destroy$: Subject<void>;
21
21
  isHightLight: boolean;
22
22
  resizeHeight: number;
23
- options: {
24
- mode: string;
25
- lineNumbers: boolean;
26
- readOnly: boolean;
27
- autofocus: boolean;
28
- lineWiseCopyCut: boolean;
29
- lineWrapping: boolean;
30
- cursorBlinkRate: number;
31
- };
23
+ options: NgCodeMirrorOptions;
32
24
  activeLanguage: DefaultToolbarItem;
33
25
  resizeBounds: any;
34
26
  toolbarPopoverRef: ThyPopoverRef<any>;
@@ -49,7 +41,6 @@ export declare class TheCode extends TheBaseElement<CodeElement, Editor> impleme
49
41
  openToolbar(): void;
50
42
  closeToolbar(): void;
51
43
  renderCodemirror(): void;
52
- initializeCodemirrorFocus(): void;
53
44
  codeChange($event: any): void;
54
45
  onDelete(event: MouseEvent): void;
55
46
  onCopy(event: MouseEvent): void;
@@ -59,6 +50,7 @@ export declare class TheCode extends TheBaseElement<CodeElement, Editor> impleme
59
50
  useAutoWrap(): void;
60
51
  useHeight(): void;
61
52
  useReadonly(): void;
53
+ useAutofocus(): void;
62
54
  onResize({ height }: ThyResizeEvent): void;
63
55
  onEndResize(): void;
64
56
  onChangeWrap(value: boolean): void;
@@ -8,6 +8,7 @@
8
8
  display: block;
9
9
  color: variables.$gray-600;
10
10
  font-size: 14px;
11
+ min-height: 42px;
11
12
  background: rgba(243, 243, 243, 0.8);
12
13
  border: 1px solid variables.$gray-200;
13
14
  border-radius: variables.$border-radius;
@@ -42,6 +43,7 @@
42
43
  .cm-line {
43
44
  padding: 0 6px;
44
45
  min-height: 22px;
46
+ line-height: 22px;
45
47
  }
46
48
  }
47
49