@worktile/theia 14.0.0-next.0 → 14.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.
- package/esm2020/components/color-select/color-select.component.mjs +3 -3
- package/esm2020/components/column-resize/column-resize-notifier.mjs +3 -3
- package/esm2020/components/column-resize/column-resize.directive.mjs +5 -5
- package/esm2020/components/column-resize/column-resize.module.mjs +8 -8
- package/esm2020/components/column-resize/event-dispatcher.mjs +3 -3
- package/esm2020/components/column-resize/overlay-handle.component.mjs +7 -5
- package/esm2020/components/column-resize/resizing.store.mjs +3 -3
- package/esm2020/components/contextmenu/contextmenu.component.mjs +3 -3
- package/esm2020/components/conversion-hint/conversion-hint.component.mjs +3 -3
- package/esm2020/components/element/element.component.mjs +3 -3
- package/esm2020/components/inline-toolbar/inline-toolbar.component.mjs +3 -3
- package/esm2020/components/table-select/table-select.component.mjs +3 -3
- package/esm2020/components/template/template.component.mjs +3 -3
- package/esm2020/components/text/text.component.mjs +3 -3
- package/esm2020/components/toolbar/toolbar.component.mjs +3 -3
- package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +7 -8
- package/esm2020/components/toolbar-group/toolbar-group.component.mjs +3 -3
- package/esm2020/components/toolbar-item/toolbar-item.component.mjs +3 -3
- package/esm2020/core/toolbar-item/base-toolbar-item.mjs +6 -6
- package/esm2020/editor.component.mjs +3 -3
- package/esm2020/editor.module.mjs +4 -4
- package/esm2020/interfaces/view-base.mjs +3 -3
- package/esm2020/pipes.mjs +6 -6
- package/esm2020/plugins/blockquote/blockquote.component.mjs +3 -3
- package/esm2020/plugins/code/code.component.mjs +8 -8
- package/esm2020/plugins/color/toolbar-item.component.mjs +3 -3
- package/esm2020/plugins/hr/hr.component.mjs +6 -6
- package/esm2020/plugins/image/image.component.mjs +7 -7
- package/esm2020/plugins/inline-code/inline-code.component.mjs +3 -3
- package/esm2020/plugins/link/edit/link-edit.component.mjs +3 -3
- package/esm2020/plugins/link/hover/link-hover.component.mjs +3 -3
- package/esm2020/plugins/link/link.component.mjs +6 -6
- package/esm2020/plugins/list/components/bulleted-list.component.mjs +3 -3
- package/esm2020/plugins/list/components/list-item.component.mjs +3 -3
- package/esm2020/plugins/list/components/numbered-list.component.mjs +3 -3
- package/esm2020/plugins/quick-insert/components/quick-insert.component.mjs +3 -3
- package/esm2020/plugins/quick-insert/components/quick-toolbar/quick-toolbar.component.mjs +3 -3
- package/esm2020/plugins/table/components/insert-mark/insert-mark.component.mjs +3 -3
- package/esm2020/plugins/table/components/row/row.component.mjs +3 -3
- package/esm2020/plugins/table/components/table.component.mjs +40 -34
- package/esm2020/plugins/table/components/td/td.component.mjs +11 -12
- package/esm2020/plugins/table/components/toolbar/table-options.component.mjs +3 -3
- package/esm2020/plugins/table/components/toolbar/table-toolbar.component.mjs +20 -21
- package/esm2020/plugins/table/table.plugin.mjs +2 -1
- package/esm2020/plugins/table/table.service.mjs +12 -30
- package/esm2020/plugins/table/table.store.mjs +3 -3
- package/esm2020/plugins/table/toolbar-item.component.mjs +5 -4
- package/esm2020/plugins/table/utils/set-menu-cell-invisibility.mjs +4 -4
- package/esm2020/plugins/todo-item/todo-item.component.mjs +3 -3
- package/esm2020/plugins/vertical-align/toolbar-item.component.mjs +3 -3
- package/esm2020/queries/index.mjs +3 -2
- package/esm2020/queries/is-global-collapsed.mjs +5 -0
- package/esm2020/services/color-select.service.mjs +3 -3
- package/esm2020/services/context.service.mjs +3 -3
- package/esm2020/services/table-contextmenu.service.mjs +4 -7
- package/esm2020/services/toolbar.service.mjs +3 -3
- package/fesm2015/worktile-theia.mjs +278 -283
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +278 -282
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/package.json +5 -5
- package/plugins/code/code.component.scss +4 -4
- package/plugins/table/components/table.component.d.ts +3 -2
- package/plugins/table/components/td/td.component.d.ts +0 -1
- package/plugins/table/components/toolbar/table-toolbar.component.d.ts +5 -5
- package/plugins/table/table.service.d.ts +2 -3
- package/plugins/table/utils/set-menu-cell-invisibility.d.ts +1 -1
- package/queries/index.d.ts +2 -1
- package/queries/is-global-collapsed.d.ts +2 -0
- package/styles/typo.scss +2 -2
- package/styles/variables.scss +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worktile/theia",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.2",
|
|
4
4
|
"description": "theia editor",
|
|
5
5
|
"author": "YanDong <nanianqiumo@foxmail.com>",
|
|
6
6
|
"homepage": "https://github.com/atinc/theia#readme",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"tslib": "^2.0.0",
|
|
37
|
-
"slate-history": "^0.
|
|
37
|
+
"slate-history": "^0.66.0",
|
|
38
38
|
"is-hotkey": "^0.1.6",
|
|
39
39
|
"is-url": "^1.2.4",
|
|
40
40
|
"marked": "^3.0.2"
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"is-hotkey": "^0.1.6",
|
|
44
44
|
"date-fns": "^2.6.0",
|
|
45
|
-
"slate-angular": "^14.
|
|
45
|
+
"slate-angular": "^14.1.0",
|
|
46
46
|
"slate": ">= 0.63.0",
|
|
47
|
-
"ngx-tethys": "^14.0.
|
|
48
|
-
"ng-codemirror": "^14.0.0
|
|
47
|
+
"ngx-tethys": "^14.0.3",
|
|
48
|
+
"ng-codemirror": "^14.0.0",
|
|
49
49
|
"lodash": "3.10.1",
|
|
50
50
|
"@angular/core": "^14.0.0"
|
|
51
51
|
},
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
font-size: 14px;
|
|
9
9
|
position: relative;
|
|
10
10
|
counter-reset: codeblock-lm;
|
|
11
|
-
border: 1px solid variables.$gray-
|
|
12
|
-
border-radius:
|
|
11
|
+
border: 1px solid variables.$gray-200;
|
|
12
|
+
border-radius: variables.$border-radius;;
|
|
13
13
|
color: variables.$gray-600;
|
|
14
14
|
background: rgba(243, 243, 243, 0.8);
|
|
15
15
|
&:hover{
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
.resize-code-container.readonly, .resize-code-container.focus{
|
|
20
|
-
border-color: variables.$gray-
|
|
20
|
+
border-color: variables.$gray-200;
|
|
21
21
|
&:hover{
|
|
22
|
-
border-color: variables.$gray-
|
|
22
|
+
border-color: variables.$gray-200;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -60,15 +60,16 @@ export declare class TheTableComponent extends TheBaseElementComponent<TableElem
|
|
|
60
60
|
}[], index: number, rowIndex: number, rowspan: number): number;
|
|
61
61
|
resolveImage(): Promise<boolean> | Promise<any[]>;
|
|
62
62
|
getColControls(): void;
|
|
63
|
-
onColMouseDown(event: MouseEvent, index: number): void;
|
|
64
63
|
getIsInTable(): void;
|
|
65
64
|
initializeColumns(): void;
|
|
66
65
|
initializeRows(): void;
|
|
67
66
|
transformRowHeight(): void;
|
|
68
67
|
transformColumnsWidth(): void;
|
|
69
|
-
|
|
68
|
+
onColMousedown(event: MouseEvent, index: number): void;
|
|
69
|
+
onRowMousedown(event: MouseEvent, index: number): void;
|
|
70
70
|
onSelectTable(event: MouseEvent): void;
|
|
71
71
|
listenTableContextMenuEvent(): void;
|
|
72
|
+
listenerOnSelectedCells(): void;
|
|
72
73
|
trackByFnRowControls(index: number): number;
|
|
73
74
|
trackByFnColControls(index: number): number;
|
|
74
75
|
ngOnDestroy(): void;
|
|
@@ -41,7 +41,6 @@ export declare class TheTdComponent extends TheBaseElementComponent<TableCellEle
|
|
|
41
41
|
get scrollableElementLeft(): number;
|
|
42
42
|
get isXAxisHover(): boolean;
|
|
43
43
|
get rowResizeClass(): string[];
|
|
44
|
-
get tableToolbarOption(): import("../../../../interfaces").ThePluginOption<{}>;
|
|
45
44
|
dotWrapperHovered: boolean;
|
|
46
45
|
resizeRef: ResizeRef;
|
|
47
46
|
backgroundColor: string;
|
|
@@ -12,15 +12,14 @@ export declare class TheTableToolbarComponent implements OnInit, OnDestroy {
|
|
|
12
12
|
private thyPopover;
|
|
13
13
|
private popoverRef;
|
|
14
14
|
selectedColor: string;
|
|
15
|
+
deleteIcon: string;
|
|
15
16
|
iconName: string;
|
|
16
17
|
tableStore: TableStore;
|
|
18
|
+
isFromControls: boolean;
|
|
17
19
|
tableElement: TableElement;
|
|
18
20
|
get editor(): Editor;
|
|
19
|
-
get deleteIcon(): string;
|
|
20
|
-
optionsPopoverRef: ThyPopoverRef<any>;
|
|
21
21
|
cellMenuList: MenuEntity[];
|
|
22
|
-
get
|
|
23
|
-
get hasSelectedCells(): boolean;
|
|
22
|
+
get hasDivider(): boolean;
|
|
24
23
|
get tableOptions(): import("../../../../interfaces").ThePluginOption<{}>;
|
|
25
24
|
constructor(ngZone: NgZone, colorSelectService: TheColorSelectService, thyPopover: ThyPopover, popoverRef: ThyPopoverRef<TheTableToolbarComponent>);
|
|
26
25
|
ngOnInit(): void;
|
|
@@ -32,9 +31,10 @@ export declare class TheTableToolbarComponent implements OnInit, OnDestroy {
|
|
|
32
31
|
onLeaveDelete(event: MouseEvent): void;
|
|
33
32
|
openSelectColor(event: MouseEvent): void;
|
|
34
33
|
setFullscreen(event: MouseEvent): void;
|
|
34
|
+
mousedown(event: MouseEvent): void;
|
|
35
35
|
openTableOptionMenu(event: Event): void;
|
|
36
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheTableToolbarComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TheTableToolbarComponent, "the-table-toolbar", never, { "tableStore": "tableStore"; "tableElement": "tableElement"; }, {}, never, never, false>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheTableToolbarComponent, "the-table-toolbar", never, { "tableStore": "tableStore"; "isFromControls": "isFromControls"; "tableElement": "tableElement"; }, {}, never, never, false>;
|
|
38
38
|
}
|
|
39
39
|
export declare enum DeleteIcon {
|
|
40
40
|
'table-delete-rows' = 0,
|
|
@@ -22,11 +22,10 @@ export declare class TableService {
|
|
|
22
22
|
toolbarRef: ThyPopoverRef<any>;
|
|
23
23
|
get isOpened(): any;
|
|
24
24
|
constructor(thyPopover: ThyPopover, overlay: Overlay, tableStore: TableStore, theTableContextMenuService: TheTableContextMenuService, ngZone: NgZone, theContextService: TheContextService);
|
|
25
|
-
openToolbar
|
|
25
|
+
private openToolbar;
|
|
26
|
+
afterSelectedCells(origin: HTMLElement, element: TableElement, isFromControls?: boolean): void;
|
|
26
27
|
getOrigin(origin: HTMLElement): HTMLElement;
|
|
27
28
|
closeToolbar(): import("rxjs").Observable<unknown>;
|
|
28
|
-
updateMenu(isActive: boolean): void;
|
|
29
|
-
listenCellClearEvent(): void;
|
|
30
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableService, never>;
|
|
31
30
|
static ɵprov: i0.ɵɵInjectableDeclaration<TableService>;
|
|
32
31
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Editor } from 'slate';
|
|
2
2
|
import { MenuEntity, SelectedCell } from '../table.types';
|
|
3
|
-
export declare function setCellMenuVisibility(editor: Editor, menuList: MenuEntity[], selectedCells: SelectedCell[],
|
|
3
|
+
export declare function setCellMenuVisibility(editor: Editor, menuList: MenuEntity[], selectedCells: SelectedCell[], isFromControls?: boolean): void;
|
package/queries/index.d.ts
CHANGED
|
@@ -55,4 +55,5 @@ import { isContainNestedType } from './is-contain-nested-type';
|
|
|
55
55
|
import { getToolbarItemDisabled } from './get-toolbar-disabled';
|
|
56
56
|
import { getPluginByToolbarItem } from './get-plugin-by-toolbar';
|
|
57
57
|
import { isEmptyContent } from './is-empty-content';
|
|
58
|
-
|
|
58
|
+
import { isGlobalCollapsed } from './is-global-collapsed';
|
|
59
|
+
export { getLastNode, getAnchorBlockEntry, getAboveByType, getNodes, getNodesByType, getBlockAbove, getPreviousPath, getNode, getParent, getLastChild, getLastChildPath, getNextSiblingNodes, getAbove, getPointBefore, getSelectionNodesByType, getText, getPointFromLocation, getRangeFromBlockStart, getRangeBefore, getBlockCardCenterCursor, getBlockCardAbove, getPlainText, getSelectionMarks, getContainerBlocks, getDirectlyParent, isAncestor, isCollapsed, isEmptyParagraph, isParagraph, isBlockActive, isIncludeTypes, isAncestorEmpty, isBlockAboveEmpty, isNodeTypeIn, isFirstChild, isPointAtRoot, isRangeAtRoot, isBlockTextEmptyAfterSelection, isStart, isRangeAcrossBlocks, isDescendant, isNodeType, isAcrossBlocks, isBlockCardCursor, isEmptyParagraphByPath, isEmptyContent, isContainer, getInsertElementsPath, isContainNestedType, anchorBlock, anchorBlockEntry, anchorInlineEntry, findPath, findNode, findDescendant, someNode, getToolbarItemDisabled, getPluginByToolbarItem, isGlobalCollapsed };
|
package/styles/typo.scss
CHANGED
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
.card-left,
|
|
110
110
|
.card-right {
|
|
111
111
|
bottom: math.div(theVariables.$default-text-space, 2);
|
|
112
|
-
line-height:
|
|
112
|
+
line-height: 16px; // cursor default height
|
|
113
113
|
}
|
|
114
114
|
&.slate-block-card-table {
|
|
115
115
|
.card-left,
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
&.slate-block-card-hr {
|
|
121
121
|
.card-left,
|
|
122
122
|
.card-right {
|
|
123
|
-
bottom:
|
|
123
|
+
bottom: 16px; // ((39+8) - 15)/2
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
}
|
package/styles/variables.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'ngx-tethys/styles/variables.scss';
|
|
2
2
|
|
|
3
|
-
$default-text-space:
|
|
3
|
+
$default-text-space: 8px; // text white space 16(distance between paragrahp) - 8(block margin)
|
|
4
4
|
$headline-one-size: 28px;
|
|
5
5
|
$headline-two-size: 24px;
|
|
6
6
|
$headline-three-size: 20px;
|