@worktile/theia 13.0.0 → 13.0.3
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/components/color-select/color-select.component.scss +11 -8
- package/components/column-resize/column-resize.scss +6 -4
- package/components/inline-toolbar/inline-toolbar.component.scss +7 -4
- package/components/table-select/table-select.component.scss +7 -5
- package/components/toolbar/toolbar.component.d.ts +3 -2
- package/components/toolbar/toolbar.component.scss +15 -17
- package/components/toolbar-dropdown/toolbar-dropdown.component.scss +16 -27
- package/components/toolbar-group/toolbar-group.component.scss +5 -3
- package/editor.module.d.ts +58 -58
- package/esm2020/components/color-select/color-select.component.mjs +4 -4
- package/esm2020/components/column-resize/column-resize-notifier.mjs +4 -4
- package/esm2020/components/column-resize/column-resize.directive.mjs +4 -4
- package/esm2020/components/column-resize/column-resize.module.mjs +9 -9
- package/esm2020/components/column-resize/event-dispatcher.mjs +4 -4
- package/esm2020/components/column-resize/overlay-handle.component.mjs +4 -4
- package/esm2020/components/column-resize/resizing.store.mjs +4 -4
- package/esm2020/components/contextmenu/contextmenu.component.mjs +7 -7
- package/esm2020/components/conversion-hint/conversion-hint.component.mjs +4 -4
- package/esm2020/components/element/element.component.mjs +4 -4
- package/esm2020/components/inline-toolbar/inline-toolbar.component.mjs +4 -4
- package/esm2020/components/table-select/table-select.component.mjs +4 -4
- package/esm2020/components/template/template.component.mjs +4 -4
- package/esm2020/components/text/text.component.mjs +4 -4
- package/esm2020/components/toolbar/toolbar.component.mjs +31 -17
- package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +7 -7
- package/esm2020/components/toolbar-group/toolbar-group.component.mjs +6 -6
- package/esm2020/components/toolbar-item/toolbar-item.component.mjs +14 -12
- package/esm2020/core/toolbar-item/base-toolbar-item.mjs +8 -8
- package/esm2020/editor.component.mjs +4 -4
- package/esm2020/editor.module.mjs +16 -13
- package/esm2020/interfaces/view-base.mjs +4 -4
- package/esm2020/pipes.mjs +7 -7
- package/esm2020/plugins/blockquote/blockquote.component.mjs +4 -4
- package/esm2020/plugins/code/code.component.mjs +9 -9
- package/esm2020/plugins/color/color.editor.mjs +2 -2
- package/esm2020/plugins/color/toolbar-item.component.mjs +24 -14
- package/esm2020/plugins/hr/hr.component.mjs +4 -4
- package/esm2020/plugins/image/image.component.mjs +28 -29
- package/esm2020/plugins/inline-code/inline-code.component.mjs +4 -4
- package/esm2020/plugins/link/edit/link-edit.component.mjs +4 -4
- package/esm2020/plugins/link/hover/link-hover.component.mjs +4 -4
- package/esm2020/plugins/link/link.component.mjs +7 -7
- package/esm2020/plugins/list/components/bulleted-list.component.mjs +4 -4
- package/esm2020/plugins/list/components/list-item.component.mjs +4 -4
- package/esm2020/plugins/list/components/numbered-list.component.mjs +4 -4
- package/esm2020/plugins/quick-insert/components/quick-insert.component.mjs +4 -4
- package/esm2020/plugins/quick-insert/components/quick-toolbar/quick-toolbar.component.mjs +6 -6
- package/esm2020/plugins/table/components/insert-mark/insert-mark.component.mjs +4 -4
- package/esm2020/plugins/table/components/row/row.component.mjs +4 -4
- package/esm2020/plugins/table/components/table.component.mjs +29 -54
- package/esm2020/plugins/table/components/td/td.component.mjs +5 -10
- package/esm2020/plugins/table/components/toolbar/table-options.component.mjs +18 -18
- package/esm2020/plugins/table/components/toolbar/table-toolbar.component.mjs +11 -9
- package/esm2020/plugins/table/table.service.mjs +4 -4
- package/esm2020/plugins/table/table.store.mjs +4 -4
- package/esm2020/plugins/table/toolbar-item.component.mjs +14 -12
- package/esm2020/plugins/todo-item/todo-item.component.mjs +4 -4
- package/esm2020/plugins/vertical-align/toolbar-item.component.mjs +9 -9
- package/esm2020/services/color-select.service.mjs +4 -4
- package/esm2020/services/context.service.mjs +4 -4
- package/esm2020/services/table-contextmenu.service.mjs +4 -4
- package/esm2020/services/toolbar.service.mjs +4 -4
- package/fesm2015/worktile-theia.mjs +319 -346
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +318 -346
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/package.json +1 -1
- package/plugins/code/code.component.scss +16 -23
- package/plugins/color/toolbar-item.component.d.ts +2 -0
- package/plugins/font-size/toolbar-item.component.scss +1 -4
- package/plugins/image/image.component.d.ts +4 -1
- package/plugins/image/image.component.scss +15 -17
- package/plugins/inline-code/inline-code.component.scss +4 -2
- package/plugins/link/link.component.scss +5 -3
- package/plugins/quick-insert/components/quick-insert.component.scss +4 -2
- package/plugins/quick-insert/components/quick-toolbar/quick-toolbar.component.scss +4 -2
- package/plugins/table/components/table.component.d.ts +2 -7
- package/plugins/table/components/table.component.scss +35 -45
- package/plugins/table/components/td/td.component.d.ts +0 -1
- package/styles/editor.scss +10 -112
- package/styles/index.scss +29 -21
- package/styles/mixins.scss +83 -0
- package/styles/typo.scss +31 -65
- package/styles/variables.scss +21 -0
- package/components/nav-split-line/nav-split-line.component.d.ts +0 -13
- package/esm2020/components/nav-split-line/nav-split-line.component.mjs +0 -37
package/package.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
2
|
+
@use '~ng-codemirror/index.scss';
|
|
3
|
+
@use '../../styles/mixins.scss' as mixins;
|
|
2
4
|
|
|
3
5
|
.the-code-container {
|
|
4
6
|
.resize-code-container{
|
|
@@ -6,31 +8,31 @@
|
|
|
6
8
|
font-size: 14px;
|
|
7
9
|
position: relative;
|
|
8
10
|
counter-reset: codeblock-lm;
|
|
9
|
-
border: 1px solid
|
|
11
|
+
border: 1px solid variables.$gray-300;
|
|
10
12
|
border-radius: 2px;
|
|
11
|
-
color:
|
|
13
|
+
color: variables.$gray-600;
|
|
12
14
|
background: rgba(243, 243, 243, 0.8);
|
|
13
15
|
&:hover{
|
|
14
|
-
border-color:
|
|
16
|
+
border-color: variables.$primary;
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
.resize-code-container.readonly, .resize-code-container.focus{
|
|
18
|
-
border-color:
|
|
20
|
+
border-color: variables.$gray-300;
|
|
19
21
|
&:hover{
|
|
20
|
-
border-color:
|
|
22
|
+
border-color: variables.$gray-300;
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
.resize-code-container.active {
|
|
25
|
-
border-color:
|
|
27
|
+
border-color: variables.$primary;
|
|
26
28
|
&:hover{
|
|
27
|
-
border-color:
|
|
29
|
+
border-color: variables.$primary;
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
.CodeMirror {
|
|
31
33
|
height: 100% !important;
|
|
32
34
|
z-index: 0;
|
|
33
|
-
color:
|
|
35
|
+
color: variables.$gray-600;
|
|
34
36
|
background: transparent;
|
|
35
37
|
border: none;
|
|
36
38
|
|
|
@@ -61,7 +63,7 @@
|
|
|
61
63
|
width: 45px;
|
|
62
64
|
left: 50%;
|
|
63
65
|
transform: translateX(-50%);
|
|
64
|
-
background:
|
|
66
|
+
background: variables.$gray-300;
|
|
65
67
|
bottom: -5px;
|
|
66
68
|
border-radius: 5px;
|
|
67
69
|
position: absolute;
|
|
@@ -70,7 +72,7 @@
|
|
|
70
72
|
position: absolute;
|
|
71
73
|
width: 34px;
|
|
72
74
|
height: 1px;
|
|
73
|
-
background:
|
|
75
|
+
background: variables.$white;
|
|
74
76
|
left: 50%;
|
|
75
77
|
transform: translateX(-50%);
|
|
76
78
|
top: 2px;
|
|
@@ -80,19 +82,10 @@
|
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
@include the-toolbar-active();
|
|
85
|
+
@include mixins.the-toolbar-active();
|
|
84
86
|
|
|
85
|
-
.
|
|
86
|
-
|
|
87
|
-
width: 100px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.auto-wrap{
|
|
91
|
-
margin-right: 5px;
|
|
92
|
-
.auto-wrap-btn{
|
|
93
|
-
margin-left: 5px;
|
|
94
|
-
transform: scale(0.8);
|
|
95
|
-
}
|
|
87
|
+
.auto-wrap-btn {
|
|
88
|
+
transform: scale(0.8);
|
|
96
89
|
}
|
|
97
90
|
}
|
|
98
91
|
|
|
@@ -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;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
.the-toolbar-dropdown-container.font-size {
|
|
2
|
-
width: 45px;
|
|
3
|
-
}
|
|
4
1
|
.the-toolbar-dropdown-popover.font-size {
|
|
5
2
|
.thy-popover-container {
|
|
6
3
|
min-width: 90px;
|
|
@@ -8,7 +5,7 @@
|
|
|
8
5
|
.dropdown {
|
|
9
6
|
width: 90px;
|
|
10
7
|
}
|
|
11
|
-
.
|
|
8
|
+
.dropdown-menu-item {
|
|
12
9
|
text-align: center;
|
|
13
10
|
}
|
|
14
11
|
}
|
|
@@ -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
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
2
|
+
|
|
1
3
|
.slate-element-image {
|
|
2
4
|
display: block;
|
|
3
5
|
|
|
@@ -5,7 +7,6 @@
|
|
|
5
7
|
.image-content {
|
|
6
8
|
display: inline-block;
|
|
7
9
|
position: relative;
|
|
8
|
-
height: auto;
|
|
9
10
|
cursor: zoom-in;
|
|
10
11
|
}
|
|
11
12
|
|
|
@@ -18,9 +19,6 @@
|
|
|
18
19
|
object-fit: fill;
|
|
19
20
|
width: auto;
|
|
20
21
|
max-width: 100%;
|
|
21
|
-
max-height: 100%;
|
|
22
|
-
width: 100%;
|
|
23
|
-
height: 100%;
|
|
24
22
|
margin: 0 auto;
|
|
25
23
|
user-select: none;
|
|
26
24
|
}
|
|
@@ -36,9 +34,9 @@
|
|
|
36
34
|
width: 12px;
|
|
37
35
|
height: 12px;
|
|
38
36
|
border-radius: 50%;
|
|
39
|
-
background-color:
|
|
40
|
-
box-shadow: 0 0 4px 0 rgba(
|
|
41
|
-
border: 1px solid
|
|
37
|
+
background-color: variables.$white;
|
|
38
|
+
box-shadow: 0 0 4px 0 rgba(variables.$black, 0.13);
|
|
39
|
+
border: 1px solid variables.$gray-300;
|
|
42
40
|
z-index: 2;
|
|
43
41
|
&::before {
|
|
44
42
|
position: absolute;
|
|
@@ -51,7 +49,7 @@
|
|
|
51
49
|
margin-left: -4px;
|
|
52
50
|
margin-top: -4px;
|
|
53
51
|
border-radius: 50%;
|
|
54
|
-
background-color:
|
|
52
|
+
background-color: variables.$primary;
|
|
55
53
|
}
|
|
56
54
|
}
|
|
57
55
|
.left {
|
|
@@ -92,7 +90,7 @@
|
|
|
92
90
|
}
|
|
93
91
|
}
|
|
94
92
|
.image-profile.outline {
|
|
95
|
-
border: 1px dashed
|
|
93
|
+
border: 1px dashed variables.$primary;
|
|
96
94
|
}
|
|
97
95
|
|
|
98
96
|
.uploading {
|
|
@@ -102,7 +100,7 @@
|
|
|
102
100
|
right: 0;
|
|
103
101
|
top: 0;
|
|
104
102
|
display: block;
|
|
105
|
-
background-color: rgba(
|
|
103
|
+
background-color: rgba(variables.$white, 0.65);
|
|
106
104
|
|
|
107
105
|
.percentage {
|
|
108
106
|
position: absolute;
|
|
@@ -111,10 +109,10 @@
|
|
|
111
109
|
width: 102px;
|
|
112
110
|
height: 24px;
|
|
113
111
|
line-height: 24px;
|
|
114
|
-
border: 0.5px solid rgba(
|
|
112
|
+
border: 0.5px solid rgba(variables.$black, 0.05);
|
|
115
113
|
border-radius: 3px;
|
|
116
|
-
box-shadow: 0 1px 1px 0 rgba(
|
|
117
|
-
background:
|
|
114
|
+
box-shadow: 0 1px 1px 0 rgba(variables.$black, 0.05), 0 1px 4px 0 rgba(variables.$black, 0.1);
|
|
115
|
+
background: variables.$white;
|
|
118
116
|
color: grey;
|
|
119
117
|
font-weight: 500;
|
|
120
118
|
text-align: center;
|
|
@@ -161,10 +159,10 @@
|
|
|
161
159
|
height: 24px;
|
|
162
160
|
padding: 0 3px;
|
|
163
161
|
line-height: 24px;
|
|
164
|
-
border: 0.5px solid rgba(
|
|
162
|
+
border: 0.5px solid rgba(variables.$black, 0.05);
|
|
165
163
|
border-radius: 3px;
|
|
166
|
-
box-shadow: 0 1px 1px 0 rgba(
|
|
167
|
-
background:
|
|
164
|
+
box-shadow: 0 1px 1px 0 rgba(variables.$black, 0.05), 0 1px 4px 0 rgba(variables.$black, 0.1);
|
|
165
|
+
background: variables.$white;
|
|
168
166
|
color: grey;
|
|
169
167
|
font-weight: 500;
|
|
170
168
|
text-align: center;
|
|
@@ -180,7 +178,7 @@
|
|
|
180
178
|
width: 100%;
|
|
181
179
|
height: 280px;
|
|
182
180
|
background: rgb(244, 245, 247);
|
|
183
|
-
color:
|
|
181
|
+
color: variables.$gray-500;
|
|
184
182
|
}
|
|
185
183
|
}
|
|
186
184
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
2
|
+
|
|
1
3
|
.slate-element-inline-code{
|
|
2
4
|
margin: 0 4px;
|
|
3
5
|
padding: 2px 3px;
|
|
4
|
-
border: 1px solid
|
|
6
|
+
border: 1px solid variables.$gray-300;
|
|
5
7
|
border-radius: 2px;
|
|
6
8
|
font-family: monospace;
|
|
7
9
|
font-size: inherit;
|
|
@@ -9,5 +11,5 @@
|
|
|
9
11
|
line-height: 1;
|
|
10
12
|
word-wrap: break-word;
|
|
11
13
|
text-indent: 0;
|
|
12
|
-
color:
|
|
14
|
+
color: variables.$gray-700;
|
|
13
15
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
2
|
+
|
|
1
3
|
.slate-element-link {
|
|
2
4
|
cursor: pointer;
|
|
3
5
|
&:hover {
|
|
@@ -8,7 +10,7 @@
|
|
|
8
10
|
.the-link-over {
|
|
9
11
|
.thy-popover-container {
|
|
10
12
|
min-width: auto;
|
|
11
|
-
box-shadow: 0 2px 17px -1px rgba(
|
|
13
|
+
box-shadow: 0 2px 17px -1px rgba(variables.$black, 0.18);
|
|
12
14
|
border-radius: 4px;
|
|
13
15
|
}
|
|
14
16
|
|
|
@@ -43,7 +45,7 @@
|
|
|
43
45
|
display: inline-block;
|
|
44
46
|
width: 1px;
|
|
45
47
|
height: 1rem;
|
|
46
|
-
background:
|
|
48
|
+
background: variables.$gray-300;
|
|
47
49
|
position: relative;
|
|
48
50
|
margin-right: 15px;
|
|
49
51
|
|
|
@@ -56,7 +58,7 @@
|
|
|
56
58
|
.the-link-edit {
|
|
57
59
|
.thy-popover-container {
|
|
58
60
|
min-width: auto;
|
|
59
|
-
box-shadow: 0 2px 17px -1px rgba(
|
|
61
|
+
box-shadow: 0 2px 17px -1px rgba(variables.$black, 0.18);
|
|
60
62
|
border-radius: 4px;
|
|
61
63
|
}
|
|
62
64
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
2
|
+
|
|
1
3
|
.the-quick-insert {
|
|
2
4
|
position: absolute;
|
|
3
5
|
width: calc(100% - 30px);
|
|
@@ -11,11 +13,11 @@
|
|
|
11
13
|
left: -25px;
|
|
12
14
|
top: 3px;
|
|
13
15
|
font-size: 18px !important;
|
|
14
|
-
color:
|
|
16
|
+
color: variables.$gray-400 !important;
|
|
15
17
|
cursor: pointer;
|
|
16
18
|
|
|
17
19
|
&:hover {
|
|
18
|
-
color:
|
|
20
|
+
color: variables.$primary !important;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
2
|
+
|
|
1
3
|
.the-quick-toolbar {
|
|
2
4
|
width: 200px;
|
|
3
5
|
height: 400px;
|
|
@@ -6,11 +8,11 @@
|
|
|
6
8
|
|
|
7
9
|
.quick-toolbar-icon {
|
|
8
10
|
margin-right: 8px;
|
|
9
|
-
color:
|
|
11
|
+
color: variables.$gray-600;
|
|
10
12
|
}
|
|
11
13
|
.quick-toolbar-name {
|
|
12
14
|
flex: 1;
|
|
13
|
-
color:
|
|
15
|
+
color: variables.$gray-800;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
&-container {
|
|
@@ -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;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
|
+
@use 'ngx-tethys/styles/variables.scss';
|
|
3
|
+
@use '../../../styles/variables.scss' as theVariables;
|
|
4
|
+
@use '../../../styles/mixins.scss' as mixins;
|
|
2
5
|
|
|
3
6
|
$expand-size: 12px;
|
|
4
|
-
$controls-border: 1px solid
|
|
7
|
+
$controls-border: 1px solid variables.$gray-300;
|
|
5
8
|
$table-scroll-wrap-padding-top: 31px;
|
|
6
9
|
$dot-zIndex: 20;
|
|
7
10
|
$dot-size: 19px;
|
|
@@ -50,13 +53,13 @@ $control-corner-width: 12px;
|
|
|
50
53
|
bottom: -1px;
|
|
51
54
|
border-width: 1px;
|
|
52
55
|
z-index: -1;
|
|
53
|
-
border-color:
|
|
56
|
+
border-color: variables.$primary;
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
&.selected-cell {
|
|
58
61
|
&::after {
|
|
59
|
-
background: rgba($color:
|
|
62
|
+
background: rgba($color: variables.$primary, $alpha: 0.1);
|
|
60
63
|
}
|
|
61
64
|
}
|
|
62
65
|
|
|
@@ -69,8 +72,8 @@ $control-corner-width: 12px;
|
|
|
69
72
|
bottom: -1px;
|
|
70
73
|
border-width: 1px;
|
|
71
74
|
z-index: -1;
|
|
72
|
-
border-color:
|
|
73
|
-
background: rgba($color:
|
|
75
|
+
border-color: variables.$danger;
|
|
76
|
+
background: rgba($color: variables.$danger, $alpha: 0.1);
|
|
74
77
|
}
|
|
75
78
|
}
|
|
76
79
|
}
|
|
@@ -124,7 +127,7 @@ $control-corner-width: 12px;
|
|
|
124
127
|
}
|
|
125
128
|
|
|
126
129
|
.the-temp-table-col-controls-wrapper .the-temp-table-col-controls {
|
|
127
|
-
background:
|
|
130
|
+
background: variables.$gray-100;
|
|
128
131
|
border-right: $controls-border;
|
|
129
132
|
border-top: $controls-border;
|
|
130
133
|
background-clip: padding-box;
|
|
@@ -154,7 +157,7 @@ $control-corner-width: 12px;
|
|
|
154
157
|
position: absolute;
|
|
155
158
|
width: 1px;
|
|
156
159
|
height: 12px;
|
|
157
|
-
background:
|
|
160
|
+
background: variables.$primary;
|
|
158
161
|
top: -1px;
|
|
159
162
|
}
|
|
160
163
|
&::before{
|
|
@@ -165,15 +168,15 @@ $control-corner-width: 12px;
|
|
|
165
168
|
}
|
|
166
169
|
}
|
|
167
170
|
&.active {
|
|
168
|
-
@include controlSelected;
|
|
171
|
+
@include mixins.controlSelected;
|
|
169
172
|
z-index: 11;
|
|
170
173
|
}
|
|
171
174
|
|
|
172
175
|
&.dangerous {
|
|
173
|
-
@include controlDangerous;
|
|
176
|
+
@include mixins.controlDangerous;
|
|
174
177
|
z-index: 11;
|
|
175
178
|
&::before, &::after{
|
|
176
|
-
background:
|
|
179
|
+
background: variables.$danger;
|
|
177
180
|
}
|
|
178
181
|
}
|
|
179
182
|
}
|
|
@@ -192,7 +195,7 @@ $control-corner-width: 12px;
|
|
|
192
195
|
height: $control-corner-width;
|
|
193
196
|
box-sizing: border-box;
|
|
194
197
|
border: $controls-border;
|
|
195
|
-
background:
|
|
198
|
+
background: variables.$gray-100;
|
|
196
199
|
padding: 0;
|
|
197
200
|
border-bottom: none;
|
|
198
201
|
border-right: none;
|
|
@@ -212,14 +215,14 @@ $control-corner-width: 12px;
|
|
|
212
215
|
&.active {
|
|
213
216
|
z-index: 1;
|
|
214
217
|
.the-temp-table-corner-button {
|
|
215
|
-
@include controlSelected;
|
|
218
|
+
@include mixins.controlSelected;
|
|
216
219
|
}
|
|
217
220
|
}
|
|
218
221
|
|
|
219
222
|
&.dangerous {
|
|
220
223
|
z-index: 1;
|
|
221
224
|
.the-temp-table-corner-button {
|
|
222
|
-
@include controlDangerous;
|
|
225
|
+
@include mixins.controlDangerous;
|
|
223
226
|
}
|
|
224
227
|
}
|
|
225
228
|
}
|
|
@@ -263,13 +266,13 @@ $control-corner-width: 12px;
|
|
|
263
266
|
&:not(.disabled) {
|
|
264
267
|
&:hover:after,
|
|
265
268
|
&:hover:before {
|
|
266
|
-
background-color:
|
|
269
|
+
background-color: variables.$white !important;
|
|
267
270
|
transform: scale(1);
|
|
268
271
|
}
|
|
269
272
|
|
|
270
273
|
&:hover:after {
|
|
271
|
-
box-shadow: inset $dot-padding-top 0 0 0
|
|
272
|
-
inset 0 (-$dot-shadow-top) 0 0
|
|
274
|
+
box-shadow: inset $dot-padding-top 0 0 0 variables.$primary, inset (-$dot-padding-top) 0 0 0 variables.$primary,
|
|
275
|
+
inset 0 (-$dot-shadow-top) 0 0 variables.$primary, inset 0 $dot-shadow-top 0 0 variables.$primary !important;
|
|
273
276
|
border-radius: 4px;
|
|
274
277
|
}
|
|
275
278
|
|
|
@@ -280,7 +283,7 @@ $control-corner-width: 12px;
|
|
|
280
283
|
|
|
281
284
|
.the-temp-table-controls-insert-line {
|
|
282
285
|
position: absolute;
|
|
283
|
-
background-color:
|
|
286
|
+
background-color: variables.$primary;
|
|
284
287
|
z-index: $dot-zIndex;
|
|
285
288
|
|
|
286
289
|
&[data-dot-type='column'] {
|
|
@@ -315,11 +318,11 @@ $control-corner-width: 12px;
|
|
|
315
318
|
.the-temp-table-controls-button {
|
|
316
319
|
display: block;
|
|
317
320
|
outline: none;
|
|
318
|
-
background-color:
|
|
321
|
+
background-color: variables.$gray-100;
|
|
319
322
|
box-sizing: border-box;
|
|
320
323
|
height: 42px;
|
|
321
324
|
width: $control-width;
|
|
322
|
-
border: 1px solid
|
|
325
|
+
border: 1px solid variables.$gray-300;
|
|
323
326
|
border-right: none;
|
|
324
327
|
padding: 0;
|
|
325
328
|
cursor: pointer;
|
|
@@ -329,7 +332,7 @@ $control-corner-width: 12px;
|
|
|
329
332
|
z-index: 1;
|
|
330
333
|
.the-temp-table-controls-button,
|
|
331
334
|
.the-temp-table-numbered-controls-button {
|
|
332
|
-
@include controlSelected;
|
|
335
|
+
@include mixins.controlSelected;
|
|
333
336
|
}
|
|
334
337
|
}
|
|
335
338
|
|
|
@@ -338,7 +341,7 @@ $control-corner-width: 12px;
|
|
|
338
341
|
|
|
339
342
|
.the-temp-table-controls-button,
|
|
340
343
|
.the-temp-table-numbered-controls-button {
|
|
341
|
-
@include controlDangerous;
|
|
344
|
+
@include mixins.controlDangerous;
|
|
342
345
|
}
|
|
343
346
|
}
|
|
344
347
|
}
|
|
@@ -356,22 +359,12 @@ $control-corner-width: 12px;
|
|
|
356
359
|
}
|
|
357
360
|
|
|
358
361
|
.the-temp-table-toolbar-wrap {
|
|
359
|
-
@include the-toolbar-layout();
|
|
360
|
-
z-index: 10;
|
|
361
|
-
border-radius: 5px;
|
|
362
362
|
display: block;
|
|
363
|
+
border-radius: 5px;
|
|
364
|
+
z-index: 10;
|
|
363
365
|
|
|
364
|
-
.
|
|
365
|
-
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
.thy-icon-nav .thy-icon-nav-link {
|
|
369
|
-
margin-right: $thy-icon-nav-link-margin-right;
|
|
370
|
-
|
|
371
|
-
&:last-child {
|
|
372
|
-
margin-right: 0;
|
|
373
|
-
}
|
|
374
|
-
}
|
|
366
|
+
@include mixins.the-toolbar-layout();
|
|
367
|
+
@include mixins.the-custom-action();
|
|
375
368
|
}
|
|
376
369
|
|
|
377
370
|
.the-temp-table-col-controls-wrapper {
|
|
@@ -389,23 +382,20 @@ $control-corner-width: 12px;
|
|
|
389
382
|
.table-options {
|
|
390
383
|
background: transparent;
|
|
391
384
|
margin-right: 5px;
|
|
392
|
-
color:
|
|
385
|
+
color: variables.$gray-700;
|
|
393
386
|
&:hover {
|
|
394
|
-
background: rgba(
|
|
395
|
-
color:
|
|
387
|
+
background: rgba(variables.$primary, 0.1);
|
|
388
|
+
color: variables.$primary;
|
|
396
389
|
}
|
|
397
390
|
}
|
|
398
391
|
.table-options-active {
|
|
399
|
-
background: rgba(
|
|
400
|
-
color:
|
|
392
|
+
background: rgba(variables.$primary, 0.1);
|
|
393
|
+
color: variables.$primary;
|
|
401
394
|
}
|
|
402
395
|
.table-options-pannel {
|
|
403
396
|
.thy-popover-container {
|
|
404
397
|
min-width: 200px;
|
|
405
398
|
}
|
|
406
|
-
.action-menu {
|
|
407
|
-
width: 200px;
|
|
408
|
-
}
|
|
409
399
|
}
|
|
410
400
|
|
|
411
401
|
.the-temp-numbered-column-container {
|
|
@@ -418,7 +408,7 @@ $control-corner-width: 12px;
|
|
|
418
408
|
margin-left: 10px;
|
|
419
409
|
cursor: pointer;
|
|
420
410
|
.the-temp-table-numbered-controls-button {
|
|
421
|
-
background-color:
|
|
411
|
+
background-color: variables.$gray-100;
|
|
422
412
|
border: $controls-border;
|
|
423
413
|
border-right: none;
|
|
424
414
|
}
|
|
@@ -447,7 +437,7 @@ $control-corner-width: 12px;
|
|
|
447
437
|
}
|
|
448
438
|
}
|
|
449
439
|
|
|
450
|
-
|
|
440
|
+
|
|
451
441
|
.the-editor-readonly{
|
|
452
442
|
.the-temp-table-row-controls, .the-temp-table-col-controls{
|
|
453
443
|
cursor: default;
|
|
@@ -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;
|