@worktile/theia 1.2.19 → 1.2.20

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": "1.2.19",
3
+ "version": "1.2.20",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -6,11 +6,13 @@ import { DropdownMode, TheCodeConfig, ToolbarItemMode } from '../../constants';
6
6
  import { DefaultToolbarItem, TheBaseElementComponent } from '../../interfaces';
7
7
  import { CodeElement } from '../../custom-types';
8
8
  import { ThyResizeEvent } from 'ngx-tethys/resizable';
9
+ import { TheContextService } from '../../services/context.service';
9
10
  import * as i0 from "@angular/core";
10
11
  export declare class TheCodeComponent extends TheBaseElementComponent<CodeElement, Editor> implements OnInit, AfterViewInit {
11
12
  elementRef: ElementRef;
12
13
  cdr: ChangeDetectorRef;
13
14
  private thyNotifyService;
15
+ private contextService;
14
16
  private ngZone;
15
17
  private config;
16
18
  startRenderCodemirror: boolean;
@@ -35,11 +37,12 @@ export declare class TheCodeComponent extends TheBaseElementComponent<CodeElemen
35
37
  cursorBlinkRate: number;
36
38
  };
37
39
  actives: DefaultToolbarItem;
40
+ resizeBounds: any;
38
41
  get code(): string;
39
42
  codemirror: CodeMirrorComponent;
40
43
  handleCodeMousedown(event: MouseEvent): void;
41
44
  onContextChange(): void;
42
- constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, thyNotifyService: ThyNotifyService, ngZone: NgZone, config: TheCodeConfig);
45
+ constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, thyNotifyService: ThyNotifyService, contextService: TheContextService, ngZone: NgZone, config: TheCodeConfig);
43
46
  ngOnInit(): void;
44
47
  ngAfterViewInit(): void;
45
48
  focusChange(codeMirrorFocused: boolean): void;
@@ -1,5 +1,5 @@
1
1
  .the-font-size-toolbar-item {
2
- width: 60px;
2
+ width: 45px;
3
3
 
4
4
  &.disabled {
5
5
  cursor: not-allowed;
@@ -11,3 +11,14 @@
11
11
  }
12
12
  }
13
13
  }
14
+ .the-toolbar-dropdown-popover.font-size {
15
+ .thy-popover-container {
16
+ min-width: 90px;
17
+ }
18
+ .dropdown {
19
+ width: 90px;
20
+ }
21
+ .action-menu-item {
22
+ text-align: center;
23
+ }
24
+ }