@jupyterlab/cells 4.0.0-alpha.9 → 4.0.0-beta.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/lib/celldragutils.d.ts +1 -7
- package/lib/celldragutils.js +12 -13
- package/lib/celldragutils.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/inputarea.d.ts +5 -19
- package/lib/inputarea.js +10 -29
- package/lib/inputarea.js.map +1 -1
- package/lib/model.d.ts +118 -81
- package/lib/model.js +178 -395
- package/lib/model.js.map +1 -1
- package/lib/placeholder.d.ts +36 -17
- package/lib/placeholder.js +48 -35
- package/lib/placeholder.js.map +1 -1
- package/lib/resizeHandle.d.ts +0 -1
- package/lib/resizeHandle.js +9 -11
- package/lib/resizeHandle.js.map +1 -1
- package/lib/searchprovider.d.ts +31 -0
- package/lib/searchprovider.js +359 -0
- package/lib/searchprovider.js.map +1 -0
- package/lib/testutils.d.ts +22 -0
- package/lib/testutils.js +48 -0
- package/lib/testutils.js.map +1 -0
- package/lib/widget.d.ts +216 -46
- package/lib/widget.js +701 -289
- package/lib/widget.js.map +1 -1
- package/package.json +37 -35
- package/src/celldragutils.ts +214 -0
- package/src/collapser.tsx +150 -0
- package/src/headerfooter.ts +52 -0
- package/src/index.ts +17 -0
- package/src/inputarea.ts +292 -0
- package/src/model.ts +845 -0
- package/src/placeholder.ts +153 -0
- package/src/resizeHandle.ts +96 -0
- package/src/searchprovider.ts +436 -0
- package/src/testutils.ts +57 -0
- package/src/widget.ts +2363 -0
- package/style/index.css +2 -0
- package/style/index.js +2 -0
- package/style/placeholder.css +31 -7
- package/style/widget.css +16 -6
package/style/index.css
CHANGED
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
@import url('~@jupyterlab/attachments/style/index.css');
|
|
12
12
|
@import url('~@lumino/dragdrop/style/index.css');
|
|
13
13
|
@import url('~@jupyterlab/codeeditor/style/index.css');
|
|
14
|
+
@import url('~@jupyterlab/documentsearch/style/index.css');
|
|
14
15
|
@import url('~@jupyterlab/codemirror/style/index.css');
|
|
15
16
|
@import url('~@jupyterlab/filebrowser/style/index.css');
|
|
16
17
|
@import url('~@jupyterlab/outputarea/style/index.css');
|
|
18
|
+
@import url('~@jupyterlab/toc/style/index.css');
|
|
17
19
|
|
|
18
20
|
@import url('./base.css');
|
package/style/index.js
CHANGED
|
@@ -11,8 +11,10 @@ import '@jupyterlab/rendermime/style/index.js';
|
|
|
11
11
|
import '@jupyterlab/attachments/style/index.js';
|
|
12
12
|
import '@lumino/dragdrop/style/index.js';
|
|
13
13
|
import '@jupyterlab/codeeditor/style/index.js';
|
|
14
|
+
import '@jupyterlab/documentsearch/style/index.js';
|
|
14
15
|
import '@jupyterlab/codemirror/style/index.js';
|
|
15
16
|
import '@jupyterlab/filebrowser/style/index.js';
|
|
16
17
|
import '@jupyterlab/outputarea/style/index.js';
|
|
18
|
+
import '@jupyterlab/toc/style/index.js';
|
|
17
19
|
|
|
18
20
|
import './base.css';
|
package/style/placeholder.css
CHANGED
|
@@ -8,21 +8,33 @@
|
|
|
8
8
|
|----------------------------------------------------------------------------*/
|
|
9
9
|
|
|
10
10
|
.jp-Placeholder {
|
|
11
|
-
display:
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
display: table;
|
|
12
|
+
table-layout: fixed;
|
|
13
|
+
width: 100%;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.jp-Placeholder-prompt {
|
|
17
|
+
display: table-cell;
|
|
17
18
|
box-sizing: border-box;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
.jp-Placeholder-content {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
display: table-cell;
|
|
23
|
+
padding: 4px 6px;
|
|
24
|
+
border: 1px solid transparent;
|
|
25
|
+
border-radius: 0;
|
|
26
|
+
background: none;
|
|
25
27
|
box-sizing: border-box;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.jp-Placeholder-contentContainer {
|
|
32
|
+
display: flex;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.jp-Placeholder-content:hover,
|
|
36
|
+
.jp-InputPlaceholder > .jp-Placeholder-content:hover {
|
|
37
|
+
border-color: var(--jp-layout-color3);
|
|
26
38
|
}
|
|
27
39
|
|
|
28
40
|
.jp-Placeholder-content .jp-MoreHorizIcon {
|
|
@@ -37,3 +49,15 @@
|
|
|
37
49
|
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.25);
|
|
38
50
|
background-color: var(--jp-layout-color0);
|
|
39
51
|
}
|
|
52
|
+
|
|
53
|
+
.jp-PlaceholderText {
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
overflow-x: hidden;
|
|
56
|
+
color: var(--jp-inverse-layout-color3);
|
|
57
|
+
font-family: var(--jp-code-font-family);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.jp-InputPlaceholder > .jp-Placeholder-content {
|
|
61
|
+
border-color: var(--jp-cell-editor-border-color);
|
|
62
|
+
background: var(--jp-cell-editor-background);
|
|
63
|
+
}
|
package/style/widget.css
CHANGED
|
@@ -73,6 +73,11 @@
|
|
|
73
73
|
overflow-y: auto;
|
|
74
74
|
max-height: 24em;
|
|
75
75
|
margin-left: var(--jp-private-cell-scrolling-output-offset);
|
|
76
|
+
resize: vertical;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.jp-CodeCell.jp-mod-outputsScrolled .jp-Cell-outputArea[style*='height'] {
|
|
80
|
+
max-height: unset;
|
|
76
81
|
}
|
|
77
82
|
|
|
78
83
|
.jp-CodeCell.jp-mod-outputsScrolled .jp-Cell-outputArea::after {
|
|
@@ -99,6 +104,10 @@
|
|
|
99
104
|
);
|
|
100
105
|
}
|
|
101
106
|
|
|
107
|
+
.jp-CodeCell.jp-mod-outputsScrolled .jp-OutputArea-promptOverlay {
|
|
108
|
+
left: calc(-1 * var(--jp-private-cell-scrolling-output-offset));
|
|
109
|
+
}
|
|
110
|
+
|
|
102
111
|
/*-----------------------------------------------------------------------------
|
|
103
112
|
| CodeCell
|
|
104
113
|
|----------------------------------------------------------------------------*/
|
|
@@ -123,6 +132,7 @@
|
|
|
123
132
|
.jp-collapseHeadingButton {
|
|
124
133
|
display: flex;
|
|
125
134
|
min-height: var(--jp-cell-collapser-min-height);
|
|
135
|
+
font-size: var(--jp-code-font-size);
|
|
126
136
|
position: absolute;
|
|
127
137
|
background-color: transparent;
|
|
128
138
|
background-size: 25px;
|
|
@@ -151,32 +161,32 @@
|
|
|
151
161
|
Align collapseHeadingButton with cell top header
|
|
152
162
|
The font sizes are identical to the ones in packages/rendermime/style/base.css
|
|
153
163
|
*/
|
|
154
|
-
.jp-collapseHeadingButton[data-heading-level='1'] {
|
|
164
|
+
.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='1'] {
|
|
155
165
|
font-size: var(--jp-content-font-size5);
|
|
156
166
|
background-position-y: calc(0.3 * var(--jp-content-font-size5));
|
|
157
167
|
}
|
|
158
168
|
|
|
159
|
-
.jp-collapseHeadingButton[data-heading-level='2'] {
|
|
169
|
+
.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='2'] {
|
|
160
170
|
font-size: var(--jp-content-font-size4);
|
|
161
171
|
background-position-y: calc(0.3 * var(--jp-content-font-size4));
|
|
162
172
|
}
|
|
163
173
|
|
|
164
|
-
.jp-collapseHeadingButton[data-heading-level='3'] {
|
|
174
|
+
.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='3'] {
|
|
165
175
|
font-size: var(--jp-content-font-size3);
|
|
166
176
|
background-position-y: calc(0.3 * var(--jp-content-font-size3));
|
|
167
177
|
}
|
|
168
178
|
|
|
169
|
-
.jp-collapseHeadingButton[data-heading-level='4'] {
|
|
179
|
+
.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='4'] {
|
|
170
180
|
font-size: var(--jp-content-font-size2);
|
|
171
181
|
background-position-y: calc(0.3 * var(--jp-content-font-size2));
|
|
172
182
|
}
|
|
173
183
|
|
|
174
|
-
.jp-collapseHeadingButton[data-heading-level='5'] {
|
|
184
|
+
.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='5'] {
|
|
175
185
|
font-size: var(--jp-content-font-size1);
|
|
176
186
|
background-position-y: top;
|
|
177
187
|
}
|
|
178
188
|
|
|
179
|
-
.jp-collapseHeadingButton[data-heading-level='6'] {
|
|
189
|
+
.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='6'] {
|
|
180
190
|
font-size: var(--jp-content-font-size0);
|
|
181
191
|
background-position-y: top;
|
|
182
192
|
}
|