@jupyterlab/cells 4.0.0-alpha.8 → 4.0.0-beta.0
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 +9 -19
- package/lib/inputarea.js +16 -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 +23 -19
- package/lib/placeholder.js +30 -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 +219 -42
- package/lib/widget.js +647 -276
- package/lib/widget.js.map +1 -1
- package/package.json +37 -34
- 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 +125 -0
- package/src/resizeHandle.ts +96 -0
- package/src/searchprovider.ts +436 -0
- package/src/testutils.ts +57 -0
- package/src/widget.ts +2296 -0
- package/style/index.css +2 -0
- package/style/index.js +2 -0
- package/style/widget.css +62 -1
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/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,13 +132,65 @@
|
|
|
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
|
-
background-
|
|
137
|
+
background-color: transparent;
|
|
138
|
+
background-size: 25px;
|
|
139
|
+
background-repeat: no-repeat;
|
|
140
|
+
background-position-x: center;
|
|
141
|
+
background-position-y: top;
|
|
142
|
+
background-image: var(--jp-icon-caret-down);
|
|
128
143
|
right: 0;
|
|
129
144
|
top: 0;
|
|
130
145
|
bottom: 0;
|
|
131
146
|
}
|
|
132
147
|
|
|
148
|
+
.jp-collapseHeadingButton.jp-mod-collapsed {
|
|
149
|
+
background-image: var(--jp-icon-caret-right);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/*
|
|
153
|
+
set the container font size to match that of content
|
|
154
|
+
so that the nested collapse buttons have the right size
|
|
155
|
+
*/
|
|
156
|
+
.jp-MarkdownCell .jp-InputPrompt {
|
|
157
|
+
font-size: var(--jp-content-font-size1);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/*
|
|
161
|
+
Align collapseHeadingButton with cell top header
|
|
162
|
+
The font sizes are identical to the ones in packages/rendermime/style/base.css
|
|
163
|
+
*/
|
|
164
|
+
.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='1'] {
|
|
165
|
+
font-size: var(--jp-content-font-size5);
|
|
166
|
+
background-position-y: calc(0.3 * var(--jp-content-font-size5));
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='2'] {
|
|
170
|
+
font-size: var(--jp-content-font-size4);
|
|
171
|
+
background-position-y: calc(0.3 * var(--jp-content-font-size4));
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='3'] {
|
|
175
|
+
font-size: var(--jp-content-font-size3);
|
|
176
|
+
background-position-y: calc(0.3 * var(--jp-content-font-size3));
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='4'] {
|
|
180
|
+
font-size: var(--jp-content-font-size2);
|
|
181
|
+
background-position-y: calc(0.3 * var(--jp-content-font-size2));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='5'] {
|
|
185
|
+
font-size: var(--jp-content-font-size1);
|
|
186
|
+
background-position-y: top;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='6'] {
|
|
190
|
+
font-size: var(--jp-content-font-size0);
|
|
191
|
+
background-position-y: top;
|
|
192
|
+
}
|
|
193
|
+
|
|
133
194
|
/* collapseHeadingButton (show only on (hover,active) if hiddenCellsButton is shown) */
|
|
134
195
|
.jp-Notebook.jp-mod-showHiddenCellsButton .jp-collapseHeadingButton {
|
|
135
196
|
display: none;
|