@worktile/theia 14.0.2 → 14.0.4

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": "14.0.2",
3
+ "version": "14.0.4",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -1,14 +1,16 @@
1
- import { ElementRef, ChangeDetectorRef, OnInit, AfterViewInit, NgZone, OnDestroy } from '@angular/core';
1
+ import { Overlay } from '@angular/cdk/overlay';
2
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
3
+ import { CodeMirrorComponent } from 'ng-codemirror';
2
4
  import { ThyNotifyService } from 'ngx-tethys/notify';
5
+ import { ThyPopover, ThyPopoverRef } from 'ngx-tethys/popover';
6
+ import { ThyResizeEvent } from 'ngx-tethys/resizable';
7
+ import { Subject } from 'rxjs';
3
8
  import { Editor } from 'slate';
4
- import { CodeMirrorComponent } from 'ng-codemirror';
9
+ import { TheToolbarDropdownComponent } from '../../components/toolbar-dropdown/toolbar-dropdown.component';
5
10
  import { DropdownMode, ToolbarItemMode } from '../../constants';
6
- import { DefaultToolbarItem, TheBaseElementComponent, TheModeConfig } from '../../interfaces';
7
11
  import { CodeElement } from '../../custom-types';
8
- import { ThyResizeEvent } from 'ngx-tethys/resizable';
12
+ import { DefaultToolbarItem, TheBaseElementComponent, TheModeConfig } from '../../interfaces';
9
13
  import { TheContextService } from '../../services/context.service';
10
- import { Subject } from 'rxjs';
11
- import { TheToolbarDropdownComponent } from '../../components/toolbar-dropdown/toolbar-dropdown.component';
12
14
  import * as i0 from "@angular/core";
13
15
  export declare class TheCodeComponent extends TheBaseElementComponent<CodeElement, Editor> implements OnInit, AfterViewInit, OnDestroy {
14
16
  elementRef: ElementRef;
@@ -17,6 +19,9 @@ export declare class TheCodeComponent extends TheBaseElementComponent<CodeElemen
17
19
  private contextService;
18
20
  private ngZone;
19
21
  private config;
22
+ private thyPopover;
23
+ private viewContainerRef;
24
+ private overlay;
20
25
  startRenderCodemirror: boolean;
21
26
  dropdownMode: typeof DropdownMode;
22
27
  maxHeight: number;
@@ -39,13 +44,19 @@ export declare class TheCodeComponent extends TheBaseElementComponent<CodeElemen
39
44
  };
40
45
  activeLanguage: DefaultToolbarItem;
41
46
  resizeBounds: any;
47
+ toolbarPopoverRef: ThyPopoverRef<any>;
48
+ toolbar: TemplateRef<any>;
42
49
  codemirror: CodeMirrorComponent;
43
50
  toolbarDropdownComponent: TheToolbarDropdownComponent;
44
51
  get code(): string;
52
+ get isToolbarOpen(): boolean;
53
+ constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, thyNotifyService: ThyNotifyService, contextService: TheContextService, ngZone: NgZone, config: TheModeConfig, thyPopover: ThyPopover, viewContainerRef: ViewContainerRef, overlay: Overlay);
45
54
  onContextChange(): void;
46
- constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, thyNotifyService: ThyNotifyService, contextService: TheContextService, ngZone: NgZone, config: TheModeConfig);
47
55
  ngOnInit(): void;
48
56
  ngAfterViewInit(): void;
57
+ openToolbar(): void;
58
+ closeToolbar(): void;
59
+ createPositionStrategy(): import("@angular/cdk/overlay").FlexibleConnectedPositionStrategy;
49
60
  renderCodemirror(): void;
50
61
  initializeCodemirrorFocus(): void;
51
62
  codeChange($event: any): void;
@@ -88,22 +88,3 @@
88
88
  transform: scale(0.8);
89
89
  }
90
90
  }
91
-
92
- .the-code-block-operation {
93
- position: absolute;
94
- top: -10px;
95
- left: 0;
96
- z-index: 10;
97
- min-width: 298px; // must assign min-width in table
98
- padding: 5px 10px;
99
- background: variables.$white;
100
- box-shadow: variables.$box-shadow;
101
- transform: translateY(-100%);
102
-
103
- .thy-select-custom {
104
- width: 115px;
105
- .form-control {
106
- border: none;
107
- }
108
- }
109
- }
@@ -1,14 +1,14 @@
1
- import { OnInit, ElementRef, OnDestroy, AfterViewInit, ChangeDetectorRef, TemplateRef, ViewContainerRef } from '@angular/core';
1
+ import { Overlay } from '@angular/cdk/overlay';
2
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
3
+ import { ThyImageService } from 'ngx-tethys/image';
4
+ import { ThyPopover } from 'ngx-tethys/popover';
5
+ import { Editor } from 'slate';
2
6
  import { BeforeContextChange, SlateElementContext } from 'slate-angular';
3
- import { ImageEntry, TheImageUploaderService, LayoutOption } from '../../interfaces/image';
4
7
  import { Alignment, LayoutTypes } from '../../constants/node-types';
5
- import { Editor } from 'slate';
6
- import { ThyPopover } from 'ngx-tethys/popover';
7
- import { Overlay } from '@angular/cdk/overlay';
8
- import { TheContextService } from '../../services/context.service';
9
- import { TheBaseElementComponent } from '../../interfaces';
10
8
  import { ImageElement } from '../../custom-types';
11
- import { ThyImageService } from 'ngx-tethys/image';
9
+ import { TheBaseElementComponent } from '../../interfaces';
10
+ import { ImageEntry, LayoutOption, TheImageUploaderService } from '../../interfaces/image';
11
+ import { TheContextService } from '../../services/context.service';
12
12
  import * as i0 from "@angular/core";
13
13
  export declare class TheImageComponent extends TheBaseElementComponent<ImageElement, Editor> implements OnInit, OnDestroy, AfterViewInit, BeforeContextChange<SlateElementContext> {
14
14
  elementRef: ElementRef;
@@ -1,11 +1,11 @@
1
+ import { Overlay } from '@angular/cdk/overlay';
1
2
  import { NgZone } from '@angular/core';
2
3
  import { ThyPlacement } from 'ngx-tethys/core';
3
4
  import { ThyPopover, ThyPopoverRef } from 'ngx-tethys/popover';
4
- import { Overlay } from '@angular/cdk/overlay';
5
- import { TableStore } from './table.store';
6
- import { TheTableContextMenuService } from '../../services/table-contextmenu.service';
7
- import { TheContextService } from '../../services/context.service';
8
5
  import { TableElement } from '../../custom-types';
6
+ import { TheContextService } from '../../services/context.service';
7
+ import { TheTableContextMenuService } from '../../services/table-contextmenu.service';
8
+ import { TableStore } from './table.store';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class TableService {
11
11
  private thyPopover;
@@ -213,7 +213,6 @@
213
213
  }
214
214
  }
215
215
 
216
- .the-block-toolbar-popover .thy-popover-container {
217
- padding: 5px 10px;
218
- @include mixins.the-toolbar-divider-spacing();
216
+ .the-plugin-toolbar-popover .thy-popover-container {
217
+ padding: 4px;
219
218
  }
package/styles/typo.scss CHANGED
@@ -99,13 +99,15 @@
99
99
  .slate-element-hr{
100
100
  display: block;
101
101
  }
102
- .slate-element-hr,
103
- .slate-element-code,
104
- .slate-element-image,
105
102
  .slate-element-block-quote {
106
103
  padding: math.div(theVariables.$default-text-space, 2) 0;
107
104
  }
108
105
  .slate-block-card {
106
+
107
+ &:not(.slate-block-card-table) {
108
+ padding: math.div(theVariables.$default-text-space, 2) 0;
109
+ }
110
+
109
111
  .card-left,
110
112
  .card-right {
111
113
  bottom: math.div(theVariables.$default-text-space, 2);