@worktile/theia 13.0.0 → 13.0.1
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/plugins/color/toolbar-item.component.mjs +13 -3
- package/esm2020/plugins/image/image.component.mjs +22 -24
- package/esm2020/plugins/table/components/table.component.mjs +27 -52
- package/esm2020/plugins/table/components/td/td.component.mjs +2 -7
- package/fesm2015/worktile-theia.mjs +54 -74
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +53 -74
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/package.json +1 -1
- package/plugins/color/toolbar-item.component.d.ts +2 -0
- package/plugins/image/image.component.d.ts +4 -1
- package/plugins/image/image.component.scss +0 -4
- package/plugins/table/components/table.component.d.ts +2 -7
- package/plugins/table/components/td/td.component.d.ts +0 -1
- package/styles/typo.scss +0 -6
package/package.json
CHANGED
|
@@ -6,6 +6,8 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class TheColorToolbarItemComponent extends TheBaseToolbarItem {
|
|
7
7
|
private thyPopover;
|
|
8
8
|
colorSelectRef: ThyPopoverRef<TheColorSelectComponent>;
|
|
9
|
+
defaultColorLine: string;
|
|
10
|
+
defaultBackgroundColorLine: string;
|
|
9
11
|
get isOpenColorSelect(): TheColorSelectComponent;
|
|
10
12
|
constructor(thyPopover: ThyPopover);
|
|
11
13
|
execute(event: MouseEvent): void;
|
|
@@ -21,6 +21,8 @@ export declare class TheImageComponent extends TheBaseElementComponent<ImageElem
|
|
|
21
21
|
private overlay;
|
|
22
22
|
private thyImageService;
|
|
23
23
|
private viewContainerRef;
|
|
24
|
+
naturalWidth: number;
|
|
25
|
+
naturalHeight: number;
|
|
24
26
|
imageEntry: ImageEntry;
|
|
25
27
|
uploading: boolean;
|
|
26
28
|
percentage: number;
|
|
@@ -36,6 +38,7 @@ export declare class TheImageComponent extends TheBaseElementComponent<ImageElem
|
|
|
36
38
|
private dragable;
|
|
37
39
|
private layoutToolbarRef;
|
|
38
40
|
get isOpen(): boolean;
|
|
41
|
+
get imageBindingWidth(): number;
|
|
39
42
|
imageContent: ElementRef;
|
|
40
43
|
img: ElementRef;
|
|
41
44
|
layoutToolbar: TemplateRef<any>;
|
|
@@ -47,7 +50,6 @@ export declare class TheImageComponent extends TheBaseElementComponent<ImageElem
|
|
|
47
50
|
ngAfterViewInit(): void;
|
|
48
51
|
setImageNodes(imageInfo: ImageEntry): void;
|
|
49
52
|
uploadImage(file: File): Promise<void>;
|
|
50
|
-
private resolveImageSize;
|
|
51
53
|
startDrag(event: MouseEvent, axis: string): void;
|
|
52
54
|
mouseMoveHandle(event: MouseEvent, options: {
|
|
53
55
|
axis: string;
|
|
@@ -72,6 +74,7 @@ export declare class TheImageComponent extends TheBaseElementComponent<ImageElem
|
|
|
72
74
|
setBlockCardLayoutAttr(): void;
|
|
73
75
|
onDelete(event: MouseEvent): void;
|
|
74
76
|
createPositionStrategy(): import("@angular/cdk/overlay").FlexibleConnectedPositionStrategy;
|
|
77
|
+
imageLoaded(event: Event): void;
|
|
75
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheImageComponent, never>;
|
|
76
79
|
static ɵcmp: i0.ɵɵComponentDeclaration<TheImageComponent, "the-image, [theImage]", never, {}, {}, never, never>;
|
|
77
80
|
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
.image-content {
|
|
6
6
|
display: inline-block;
|
|
7
7
|
position: relative;
|
|
8
|
-
height: auto;
|
|
9
8
|
cursor: zoom-in;
|
|
10
9
|
}
|
|
11
10
|
|
|
@@ -18,9 +17,6 @@
|
|
|
18
17
|
object-fit: fill;
|
|
19
18
|
width: auto;
|
|
20
19
|
max-width: 100%;
|
|
21
|
-
max-height: 100%;
|
|
22
|
-
width: 100%;
|
|
23
|
-
height: 100%;
|
|
24
20
|
margin: 0 auto;
|
|
25
21
|
user-select: none;
|
|
26
22
|
}
|
|
@@ -6,7 +6,6 @@ import { TableCellEventDispatcher } from '../../../components/column-resize/even
|
|
|
6
6
|
import { TableStore } from '../table.store';
|
|
7
7
|
import { TableService } from '../table.service';
|
|
8
8
|
import { TheTableContextMenuService } from '../../../services/table-contextmenu.service';
|
|
9
|
-
import { TheContextService } from '../../../services/context.service';
|
|
10
9
|
import { TheBaseElementComponent } from '../../../interfaces/view-base';
|
|
11
10
|
import { TableCellElement, TableElement } from '../../../custom-types';
|
|
12
11
|
import { TheTableColumn } from '../table.types';
|
|
@@ -18,16 +17,13 @@ export declare class TheTableComponent extends TheBaseElementComponent<TableElem
|
|
|
18
17
|
cdr: ChangeDetectorRef;
|
|
19
18
|
ngZone: NgZone;
|
|
20
19
|
tableService: TableService;
|
|
21
|
-
private theContextService;
|
|
22
20
|
private theTableContextMenuService;
|
|
23
21
|
destroy$: Subject<any>;
|
|
24
|
-
theTableWrapperWidth: number;
|
|
25
22
|
rowControls: {
|
|
26
23
|
height: number;
|
|
27
24
|
rowIndex: number;
|
|
28
25
|
}[];
|
|
29
26
|
colControls: any[];
|
|
30
|
-
normalizedColumns: TheTableColumn[];
|
|
31
27
|
isInTable: boolean;
|
|
32
28
|
get columns(): TheTableColumn[];
|
|
33
29
|
get nativeElement(): HTMLElement;
|
|
@@ -38,11 +34,11 @@ export declare class TheTableComponent extends TheBaseElementComponent<TableElem
|
|
|
38
34
|
tbodyElement: ElementRef;
|
|
39
35
|
handleMousedown(event: MouseEvent): void;
|
|
40
36
|
onContextChange(): void;
|
|
41
|
-
constructor(elementRef: ElementRef, eventDispatcher: TableCellEventDispatcher, resizeNotifier: ColumnResizeNotifierSource, tableStore: TableStore, cdr: ChangeDetectorRef, ngZone: NgZone, tableService: TableService,
|
|
37
|
+
constructor(elementRef: ElementRef, eventDispatcher: TableCellEventDispatcher, resizeNotifier: ColumnResizeNotifierSource, tableStore: TableStore, cdr: ChangeDetectorRef, ngZone: NgZone, tableService: TableService, theTableContextMenuService: TheTableContextMenuService);
|
|
42
38
|
ngOnInit(): void;
|
|
39
|
+
getWrapperWidth(): number;
|
|
43
40
|
ngAfterViewInit(): void;
|
|
44
41
|
subscribeCellPositionChange(): void;
|
|
45
|
-
useTableWrapperWidth(): void;
|
|
46
42
|
subscribeCellsChange(): void;
|
|
47
43
|
useRowControls(): void;
|
|
48
44
|
detectChanges(): void;
|
|
@@ -63,7 +59,6 @@ export declare class TheTableComponent extends TheBaseElementComponent<TableElem
|
|
|
63
59
|
getColControls(): void;
|
|
64
60
|
onColMouseDown(event: MouseEvent, index: number): void;
|
|
65
61
|
getIsInTable(): void;
|
|
66
|
-
normalizeShowColumns(): void;
|
|
67
62
|
initializeColumns(): void;
|
|
68
63
|
initializeRows(): void;
|
|
69
64
|
transformRowHeight(): void;
|
|
@@ -36,7 +36,6 @@ export declare class TheTdComponent extends TheBaseElementComponent<TableCellEle
|
|
|
36
36
|
get tableService(): import("../../table.service").TableService;
|
|
37
37
|
get eventDispatcher(): TableCellEventDispatcher;
|
|
38
38
|
get resizeNotifier(): ColumnResizeNotifierSource;
|
|
39
|
-
get theTableWrapperWidth(): number;
|
|
40
39
|
get tableElement(): HTMLElement;
|
|
41
40
|
get scrollableElementTop(): number;
|
|
42
41
|
get scrollableElementLeft(): any;
|
package/styles/typo.scss
CHANGED
|
@@ -127,12 +127,6 @@ $font-size-line-height: 1.5;
|
|
|
127
127
|
.slate-element-block-quote {
|
|
128
128
|
padding: math.div($default-text-space, 2) 0;
|
|
129
129
|
}
|
|
130
|
-
.slate-element-image {
|
|
131
|
-
.image-content {
|
|
132
|
-
max-width: 100%;
|
|
133
|
-
height: auto !important;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
130
|
.slate-block-card {
|
|
137
131
|
.card-left,
|
|
138
132
|
.card-right {
|