@worktile/theia 15.0.2 → 15.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.
Files changed (40) hide show
  1. package/components/color-select/color-select.component.scss +20 -21
  2. package/components/column-resize/column-resize.scss +10 -10
  3. package/components/contextmenu/contextmenu.component.scss +1 -1
  4. package/components/conversion-hint/conversion-hint.component.scss +1 -1
  5. package/components/index.scss +1 -1
  6. package/components/inline-toolbar/inline-toolbar.component.scss +3 -3
  7. package/components/plugin-menu/plugin-menu.component.scss +5 -3
  8. package/components/table-select/table-select.component.scss +3 -3
  9. package/components/toolbar/toolbar.component.scss +5 -5
  10. package/components/toolbar-dropdown/toolbar-dropdown.component.d.ts +1 -3
  11. package/components/toolbar-dropdown/toolbar-dropdown.component.scss +5 -5
  12. package/esm2020/components/listbox/listbox.mjs +1 -1
  13. package/esm2020/components/toolbar-dropdown/toolbar-dropdown.component.mjs +3 -5
  14. package/esm2020/editor.component.mjs +2 -2
  15. package/esm2020/plugins/code/code.component.mjs +1 -1
  16. package/esm2020/plugins/common/auto-insert-data..mjs +10 -11
  17. package/esm2020/plugins/table/components/table.component.mjs +72 -17
  18. package/esm2020/plugins/table/components/td/td.component.mjs +1 -1
  19. package/esm2020/plugins/table/table.types.mjs +5 -1
  20. package/esm2020/services/context.service.mjs +1 -1
  21. package/esm2020/utils/dom.mjs +2 -2
  22. package/fesm2015/worktile-theia.mjs +91 -33
  23. package/fesm2015/worktile-theia.mjs.map +1 -1
  24. package/fesm2020/worktile-theia.mjs +87 -31
  25. package/fesm2020/worktile-theia.mjs.map +1 -1
  26. package/package.json +1 -1
  27. package/plugins/code/code.component.scss +29 -27
  28. package/plugins/image/image.component.scss +32 -32
  29. package/plugins/inline-code/inline-code.component.scss +13 -13
  30. package/plugins/link/link.component.scss +1 -1
  31. package/plugins/quick-insert/components/quick-insert.component.scss +2 -2
  32. package/plugins/table/components/mixins.scss +16 -17
  33. package/plugins/table/components/table.component.d.ts +10 -0
  34. package/plugins/table/components/table.component.scss +128 -100
  35. package/plugins/table/table.types.d.ts +4 -0
  36. package/plugins/todo-item/todo-item.component.scss +3 -3
  37. package/styles/editor.scss +15 -15
  38. package/styles/mixins.scss +1 -1
  39. package/styles/typo.scss +34 -34
  40. package/styles/variables.scss +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "15.0.2",
3
+ "version": "15.0.3",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -3,35 +3,36 @@
3
3
  @use '../../styles/mixins.scss' as mixins;
4
4
 
5
5
  .the-code-container {
6
- .resize-code-container{
7
- display: block;
8
- font-size: 14px;
6
+ .resize-code-container {
9
7
  position: relative;
10
- counter-reset: codeblock-lm;
11
- border: 1px solid variables.$gray-200;
12
- border-radius: variables.$border-radius;;
8
+ display: block;
13
9
  color: variables.$gray-600;
10
+ font-size: 14px;
14
11
  background: rgba(243, 243, 243, 0.8);
15
- &:hover{
12
+ border: 1px solid variables.$gray-200;
13
+ border-radius: variables.$border-radius;
14
+ counter-reset: codeblock-lm;
15
+ &:hover {
16
16
  border-color: variables.$primary;
17
17
  }
18
18
  }
19
- .resize-code-container.readonly, .resize-code-container.focus{
19
+ .resize-code-container.readonly,
20
+ .resize-code-container.focus {
20
21
  border-color: variables.$gray-200;
21
- &:hover{
22
- border-color: variables.$gray-200;
23
- }
22
+ &:hover {
23
+ border-color: variables.$gray-200;
24
+ }
24
25
  }
25
26
 
26
27
  .resize-code-container.active {
27
28
  border-color: variables.$primary;
28
- &:hover{
29
+ &:hover {
29
30
  border-color: variables.$primary;
30
31
  }
31
32
  }
32
33
  .CodeMirror {
33
- height: 100% !important;
34
34
  z-index: 0;
35
+ height: 100% !important;
35
36
  color: variables.$gray-600;
36
37
  background: transparent;
37
38
  border: none;
@@ -51,33 +52,34 @@
51
52
  }
52
53
  }
53
54
  .ng-codemirror-wrapper {
54
- display: block;
55
55
  position: relative;
56
- overflow-y: auto;
56
+ display: block;
57
57
  height: 100%;
58
+ overflow-y: auto;
58
59
  }
59
60
 
60
- .code-resize-icon.thy-resizable-handle-bottom{
61
- cursor: row-resize;
62
- height: 8px;
63
- width: 45px;
61
+ .code-resize-icon.thy-resizable-handle-bottom {
62
+ position: absolute;
63
+ bottom: -5px;
64
64
  left: 50%;
65
- transform: translateX(-50%);
65
+ width: 45px;
66
+ height: 8px;
66
67
  background: variables.$gray-300;
67
- bottom: -5px;
68
68
  border-radius: 5px;
69
- position: absolute;
70
- &::before, &:after{
71
- content: '';
69
+ transform: translateX(-50%);
70
+ cursor: row-resize;
71
+ &::before,
72
+ &:after {
72
73
  position: absolute;
74
+ top: 2px;
75
+ left: 50%;
73
76
  width: 34px;
74
77
  height: 1px;
75
78
  background: variables.$white;
76
- left: 50%;
77
79
  transform: translateX(-50%);
78
- top: 2px;
80
+ content: '';
79
81
  }
80
- &:after{
82
+ &:after {
81
83
  top: 5px;
82
84
  }
83
85
  }
@@ -5,8 +5,8 @@
5
5
 
6
6
  .image-container {
7
7
  .image-content {
8
- display: inline-block;
9
8
  position: relative;
9
+ display: inline-block;
10
10
  cursor: zoom-in;
11
11
  }
12
12
 
@@ -16,10 +16,10 @@
16
16
 
17
17
  .main-image {
18
18
  position: relative;
19
- object-fit: fill;
20
19
  width: auto;
21
20
  max-width: 100%;
22
21
  margin: 0 auto;
22
+ object-fit: fill;
23
23
  user-select: none;
24
24
  }
25
25
  .image-collapsed {
@@ -27,32 +27,32 @@
27
27
  }
28
28
  .image-profile {
29
29
  position: absolute;
30
- display: block;
30
+ top: -1px;
31
+ right: -1px;
31
32
  bottom: -1px;
32
33
  left: -1px;
33
- right: -1px;
34
- top: -1px;
34
+ display: block;
35
35
  .image-pointer {
36
36
  position: absolute;
37
+ z-index: 2;
37
38
  width: 12px;
38
39
  height: 12px;
39
- border-radius: 50%;
40
40
  background-color: variables.$white;
41
- box-shadow: 0 0 4px 0 rgba(variables.$black, 0.13);
42
41
  border: 1px solid variables.$gray-300;
43
- z-index: 2;
42
+ border-radius: 50%;
43
+ box-shadow: 0 0 4px 0 rgba(variables.$black, 0.13);
44
44
  &::before {
45
45
  position: absolute;
46
- left: 50%;
47
46
  top: 50%;
47
+ left: 50%;
48
48
  display: inline-block;
49
- content: '';
50
- height: 8px;
51
49
  width: 8px;
52
- margin-left: -4px;
50
+ height: 8px;
53
51
  margin-top: -4px;
54
- border-radius: 50%;
52
+ margin-left: -4px;
55
53
  background-color: variables.$primary;
54
+ border-radius: 50%;
55
+ content: '';
56
56
  }
57
57
  }
58
58
  .left {
@@ -98,10 +98,10 @@
98
98
 
99
99
  .uploading {
100
100
  position: absolute;
101
+ top: 0;
102
+ right: 0;
101
103
  bottom: 0;
102
104
  left: 0;
103
- right: 0;
104
- top: 0;
105
105
  display: block;
106
106
  background-color: rgba(variables.$white, 0.65);
107
107
 
@@ -111,14 +111,14 @@
111
111
  right: 4px;
112
112
  width: 102px;
113
113
  height: 24px;
114
+ color: grey;
115
+ font-weight: 500;
114
116
  line-height: 24px;
117
+ text-align: center;
118
+ background: variables.$white;
115
119
  border: 0.5px solid rgba(variables.$black, 0.05);
116
120
  border-radius: 3px;
117
121
  box-shadow: 0 1px 1px 0 rgba(variables.$black, 0.05), 0 1px 4px 0 rgba(variables.$black, 0.1);
118
- background: variables.$white;
119
- color: grey;
120
- font-weight: 500;
121
- text-align: center;
122
122
  transition: 0.3s ease;
123
123
  }
124
124
  .uploading-percentage {
@@ -127,18 +127,18 @@
127
127
  left: 50%;
128
128
  display: flex;
129
129
  flex-direction: row;
130
- justify-content: space-between;
131
- align-items: center;
132
130
  flex-wrap: nowrap;
131
+ align-items: center;
132
+ justify-content: space-between;
133
133
  height: 18px;
134
- margin-left: -60px;
135
134
  margin-top: -9px;
135
+ margin-left: -60px;
136
136
  .progress {
137
137
  display: inline-block;
138
138
  width: 120px;
139
139
  height: 8px;
140
- margin-right: 8px;
141
140
  margin-top: 1px;
141
+ margin-right: 8px;
142
142
  }
143
143
  .thy-icon {
144
144
  color: #d8d8d8;
@@ -147,12 +147,12 @@
147
147
  }
148
148
 
149
149
  .layer {
150
- display: none;
151
150
  position: absolute;
151
+ top: 0;
152
+ right: 0;
152
153
  bottom: 0;
153
154
  left: 0;
154
- right: 0;
155
- top: 0;
155
+ display: none;
156
156
 
157
157
  .preview {
158
158
  position: absolute;
@@ -161,16 +161,16 @@
161
161
  width: auto;
162
162
  height: 24px;
163
163
  padding: 0 3px;
164
+ color: grey;
165
+ font-weight: 500;
164
166
  line-height: 24px;
167
+ text-align: center;
168
+ background: variables.$white;
165
169
  border: 0.5px solid rgba(variables.$black, 0.05);
166
170
  border-radius: 3px;
167
171
  box-shadow: 0 1px 1px 0 rgba(variables.$black, 0.05), 0 1px 4px 0 rgba(variables.$black, 0.1);
168
- background: variables.$white;
169
- color: grey;
170
- font-weight: 500;
171
- text-align: center;
172
- transition: 0.3s ease;
173
172
  cursor: pointer;
173
+ transition: 0.3s ease;
174
174
  }
175
175
  &.readonly {
176
176
  z-index: -1;
@@ -183,8 +183,8 @@
183
183
  justify-content: center;
184
184
  width: 100%;
185
185
  height: 280px;
186
- background: rgb(244, 245, 247);
187
186
  color: variables.$gray-500;
187
+ background: rgb(244, 245, 247);
188
188
  }
189
189
  }
190
190
 
@@ -1,15 +1,15 @@
1
1
  @use 'ngx-tethys/styles/variables.scss';
2
2
 
3
- .slate-element-inline-code{
4
- margin: 0 4px;
5
- padding: 2px 3px;
6
- border: 1px solid variables.$gray-300;
7
- border-radius: 2px;
8
- font-family: monospace;
9
- font-size: inherit;
10
- background-color: rgba(243, 243, 243, 0.8);
11
- line-height: 1;
12
- word-wrap: break-word;
13
- text-indent: 0;
14
- color: variables.$gray-700;
15
- }
3
+ .slate-element-inline-code {
4
+ margin: 0 4px;
5
+ padding: 2px 3px;
6
+ color: variables.$gray-700;
7
+ font-size: inherit;
8
+ font-family: monospace;
9
+ line-height: 1;
10
+ text-indent: 0;
11
+ word-wrap: break-word;
12
+ background-color: rgba(243, 243, 243, 0.8);
13
+ border: 1px solid variables.$gray-300;
14
+ border-radius: 2px;
15
+ }
@@ -38,8 +38,8 @@
38
38
  .the-link-edit {
39
39
  .the-link-edit-container {
40
40
  display: block;
41
- padding: 1.25rem;
42
41
  width: 360px;
42
+ padding: 1.25rem;
43
43
  }
44
44
  .col-form-control {
45
45
  max-width: 100% !important;
@@ -6,10 +6,10 @@
6
6
 
7
7
  .quick-insert-icon {
8
8
  position: absolute;
9
- left: -25px;
10
9
  top: 3px;
11
- font-size: 18px !important;
10
+ left: -25px;
12
11
  color: variables.$gray-400 !important;
12
+ font-size: 18px !important;
13
13
  cursor: pointer;
14
14
 
15
15
  &:hover {
@@ -2,15 +2,14 @@
2
2
 
3
3
  $expand-size: 12px;
4
4
 
5
-
6
- @mixin cellInset{
7
- display: block;
5
+ @mixin cellInset {
8
6
  position: absolute;
9
- content: '';
10
7
  top: -1px;
11
- left: -1px;
12
8
  right: -1px;
13
9
  bottom: -1px;
10
+ left: -1px;
11
+ display: block;
12
+ content: '';
14
13
  }
15
14
 
16
15
  @mixin controlSelected {
@@ -25,30 +24,30 @@ $expand-size: 12px;
25
24
 
26
25
  @mixin tableLeftShadow {
27
26
  &::before {
28
- bottom: 0;
27
+ position: absolute;
29
28
  top: $expand-size * 2 + 10px;
29
+ bottom: 0;
30
30
  left: 0;
31
- content: ' ';
32
- position: absolute;
33
- pointer-events: none;
34
- width: 8px;
35
31
  z-index: 2;
32
+ width: 8px;
36
33
  background: -webkit-gradient(linear, right, left, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.1)));
37
34
  background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
35
+ content: ' ';
36
+ pointer-events: none;
38
37
  }
39
38
  }
40
39
 
41
- @mixin tableRightShadow{
40
+ @mixin tableRightShadow {
42
41
  &::after {
43
- bottom: 0;
44
- right: 0;
45
- top: $expand-size * 2 + 10px;
46
- content: ' ';
47
42
  position: absolute;
48
- pointer-events: none;
49
- width: 8px;
43
+ top: $expand-size * 2 + 10px;
44
+ right: 0;
45
+ bottom: 0;
50
46
  z-index: 2;
47
+ width: 8px;
51
48
  background: -webkit-gradient(linear, left, right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
52
49
  background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
50
+ content: ' ';
51
+ pointer-events: none;
53
52
  }
54
53
  }
@@ -36,6 +36,8 @@ export declare class TheTableComponent extends TheBaseElementComponent<TableElem
36
36
  isStickyTop: boolean;
37
37
  scrollContainerTop: number;
38
38
  previousScrollContainer: string;
39
+ isRightShadow: boolean;
40
+ isLeftShadow: boolean;
39
41
  get columns(): TheTableColumn[];
40
42
  get nativeElement(): HTMLElement;
41
43
  get tbodyNativeElement(): HTMLElement;
@@ -45,6 +47,9 @@ export declare class TheTableComponent extends TheBaseElementComponent<TableElem
45
47
  columnControlsWrapper: ElementRef<HTMLElement>;
46
48
  cornerControl: ElementRef<HTMLElement>;
47
49
  rowControlsInner: ElementRef<HTMLElement>;
50
+ tableRowControlsWrapper: ElementRef<HTMLElement>;
51
+ headerRowLeftShadow: ElementRef<HTMLElement>;
52
+ headerRowRightShadow: ElementRef<HTMLElement>;
48
53
  rowControlsButtonWrapper: QueryList<ElementRef<HTMLElement>>;
49
54
  handleMousedown(event: MouseEvent): void;
50
55
  onContextChange(): void;
@@ -57,6 +62,11 @@ export declare class TheTableComponent extends TheBaseElementComponent<TableElem
57
62
  */
58
63
  getHeaderRow(): boolean;
59
64
  ngAfterViewInit(): void;
65
+ setHeaderRowShadow: () => void;
66
+ calcHeaderRowShadow: () => {
67
+ height: any;
68
+ top: number;
69
+ };
60
70
  subscribeScrollContainerScroll(): void;
61
71
  setHeaderCellStyle(): void;
62
72
  removeHeaderCellStyle(cells: TableCellElement[]): void;