@jupyterlab/filebrowser 4.6.0-alpha.4 → 4.6.0-alpha.5
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/browser.d.ts +14 -0
- package/lib/browser.js +48 -1
- package/lib/browser.js.map +1 -1
- package/lib/crumbs.d.ts +76 -0
- package/lib/crumbs.js +362 -81
- package/lib/crumbs.js.map +1 -1
- package/lib/listing.d.ts +84 -11
- package/lib/listing.js +276 -99
- package/lib/listing.js.map +1 -1
- package/lib/model.d.ts +25 -0
- package/lib/model.js +48 -2
- package/lib/model.js.map +1 -1
- package/lib/opendialog.d.ts +7 -0
- package/lib/opendialog.js +5 -4
- package/lib/opendialog.js.map +1 -1
- package/lib/pathnavigator.d.ts +108 -0
- package/lib/pathnavigator.js +389 -0
- package/lib/pathnavigator.js.map +1 -0
- package/package.json +11 -11
- package/src/browser.ts +50 -1
- package/src/crumbs.ts +432 -87
- package/src/listing.ts +418 -119
- package/src/model.ts +63 -2
- package/src/opendialog.ts +13 -0
- package/src/pathnavigator.ts +456 -0
- package/style/base.css +64 -35
- package/style/pathnavigator.css +72 -0
package/style/base.css
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
| Distributed under the terms of the Modified BSD License.
|
|
4
4
|
|----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
+
@import url('./pathnavigator.css');
|
|
7
|
+
|
|
6
8
|
/*-----------------------------------------------------------------------------
|
|
7
9
|
| Variables
|
|
8
10
|
|----------------------------------------------------------------------------*/
|
|
@@ -54,21 +56,48 @@
|
|
|
54
56
|
.jp-BreadCrumbs {
|
|
55
57
|
flex: 0 0 auto;
|
|
56
58
|
margin: 8px 12px;
|
|
59
|
+
cursor: text;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.jp-BreadCrumbs:hover:not(:has(.jp-BreadCrumbs-content:hover)) {
|
|
63
|
+
background: var(--jp-layout-color2);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* The container holds breadcrumb icons, separators, and items */
|
|
67
|
+
.jp-BreadCrumbs-container {
|
|
68
|
+
min-width: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.jp-BreadCrumbs-content {
|
|
72
|
+
display: inline;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.jp-BreadCrumbs.jp-mod-editMode > .jp-BreadCrumbs-container {
|
|
76
|
+
display: none;
|
|
57
77
|
}
|
|
58
78
|
|
|
59
79
|
.jp-BreadCrumbs-item {
|
|
60
80
|
margin: 0 2px;
|
|
61
|
-
padding:
|
|
81
|
+
padding: 2px;
|
|
62
82
|
border-radius: var(--jp-border-radius);
|
|
63
83
|
cursor: pointer;
|
|
64
84
|
}
|
|
65
85
|
|
|
86
|
+
.jp-BreadCrumbs-ellipsis {
|
|
87
|
+
padding: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
66
90
|
.jp-BreadCrumbs-item:hover {
|
|
67
91
|
background-color: var(--jp-layout-color2);
|
|
68
92
|
}
|
|
69
93
|
|
|
70
|
-
.jp-BreadCrumbs-
|
|
71
|
-
|
|
94
|
+
.jp-BreadCrumbs-home,
|
|
95
|
+
.jp-BreadCrumbs-preferred {
|
|
96
|
+
margin-right: 2px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.jp-BreadCrumbs-item:focus-visible {
|
|
100
|
+
outline: 2px solid var(--jp-brand-color1);
|
|
72
101
|
}
|
|
73
102
|
|
|
74
103
|
.jp-BreadCrumbs-item.jp-mod-dropTarget {
|
|
@@ -76,6 +105,11 @@
|
|
|
76
105
|
opacity: 0.7;
|
|
77
106
|
}
|
|
78
107
|
|
|
108
|
+
.jp-BreadCrumbs-item,
|
|
109
|
+
.jp-BreadCrumbs-separator {
|
|
110
|
+
vertical-align: middle;
|
|
111
|
+
}
|
|
112
|
+
|
|
79
113
|
/*-----------------------------------------------------------------------------
|
|
80
114
|
| Buttons
|
|
81
115
|
|----------------------------------------------------------------------------*/
|
|
@@ -180,12 +214,18 @@
|
|
|
180
214
|
flex: 1 0 70px;
|
|
181
215
|
}
|
|
182
216
|
|
|
217
|
+
.jp-DirListing-headerItem.jp-id-created:not([style*='width']) {
|
|
218
|
+
/* default width before user resizes this column */
|
|
219
|
+
flex: 1 0 70px;
|
|
220
|
+
}
|
|
221
|
+
|
|
183
222
|
.jp-DirListing-headerItem.jp-id-filesize:not([style*='width']) {
|
|
184
223
|
/* default width before user resizes this column */
|
|
185
224
|
flex: 0 0 75px;
|
|
186
225
|
}
|
|
187
226
|
|
|
188
227
|
.jp-DirListing-headerItem.jp-id-modified,
|
|
228
|
+
.jp-DirListing-headerItem.jp-id-created,
|
|
189
229
|
.jp-DirListing-headerItem.jp-id-filesize {
|
|
190
230
|
text-align: right;
|
|
191
231
|
/* stylelint-disable */
|
|
@@ -195,14 +235,16 @@
|
|
|
195
235
|
|
|
196
236
|
/**
|
|
197
237
|
* Use container queries (not yet supported by our version of stylelint)
|
|
198
|
-
* to display either a small or large header for the
|
|
238
|
+
* to display either a small or large header for the date and file size columns.
|
|
199
239
|
*/
|
|
200
240
|
/* stylelint-disable */
|
|
201
|
-
@container (max-width:
|
|
241
|
+
@container (max-width: 100px) {
|
|
202
242
|
/* stylelint-enable */
|
|
203
243
|
.jp-DirListing-headerItem.jp-id-modified
|
|
204
244
|
> .jp-DirListing-headerItemText-small,
|
|
205
245
|
.jp-DirListing-headerItem.jp-id-filesize
|
|
246
|
+
> .jp-DirListing-headerItemText-small,
|
|
247
|
+
.jp-DirListing-headerItem.jp-id-created
|
|
206
248
|
> .jp-DirListing-headerItemText-small {
|
|
207
249
|
display: inline;
|
|
208
250
|
}
|
|
@@ -210,34 +252,8 @@
|
|
|
210
252
|
.jp-DirListing-headerItem.jp-id-modified
|
|
211
253
|
> .jp-DirListing-headerItemText-large,
|
|
212
254
|
.jp-DirListing-headerItem.jp-id-filesize
|
|
213
|
-
> .jp-DirListing-headerItemText-large
|
|
214
|
-
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/* stylelint-disable */
|
|
219
|
-
@container (min-width: 300px) {
|
|
220
|
-
/* stylelint-enable */
|
|
221
|
-
.jp-DirListing-headerItem.jp-id-modified
|
|
222
|
-
> .jp-DirListing-headerItemText-small {
|
|
223
|
-
display: none;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.jp-DirListing-headerItem.jp-id-modified
|
|
227
|
-
> .jp-DirListing-headerItemText-large {
|
|
228
|
-
display: inline;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/* stylelint-disable */
|
|
233
|
-
@container (max-width: 100px) {
|
|
234
|
-
/* stylelint-enable */
|
|
235
|
-
.jp-DirListing-headerItem.jp-id-filesize
|
|
236
|
-
> .jp-DirListing-headerItemText-small {
|
|
237
|
-
display: inline;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.jp-DirListing-headerItem.jp-id-filesize
|
|
255
|
+
> .jp-DirListing-headerItemText-large,
|
|
256
|
+
.jp-DirListing-headerItem.jp-id-created
|
|
241
257
|
> .jp-DirListing-headerItemText-large {
|
|
242
258
|
display: none;
|
|
243
259
|
}
|
|
@@ -246,12 +262,20 @@
|
|
|
246
262
|
/* stylelint-disable */
|
|
247
263
|
@container (min-width: 100px) {
|
|
248
264
|
/* stylelint-enable */
|
|
265
|
+
.jp-DirListing-headerItem.jp-id-modified
|
|
266
|
+
> .jp-DirListing-headerItemText-small,
|
|
249
267
|
.jp-DirListing-headerItem.jp-id-filesize
|
|
268
|
+
> .jp-DirListing-headerItemText-small,
|
|
269
|
+
.jp-DirListing-headerItem.jp-id-created
|
|
250
270
|
> .jp-DirListing-headerItemText-small {
|
|
251
271
|
display: none;
|
|
252
272
|
}
|
|
253
273
|
|
|
274
|
+
.jp-DirListing-headerItem.jp-id-modified
|
|
275
|
+
> .jp-DirListing-headerItemText-large,
|
|
254
276
|
.jp-DirListing-headerItem.jp-id-filesize
|
|
277
|
+
> .jp-DirListing-headerItemText-large,
|
|
278
|
+
.jp-DirListing-headerItem.jp-id-created
|
|
255
279
|
> .jp-DirListing-headerItemText-large {
|
|
256
280
|
display: inline;
|
|
257
281
|
}
|
|
@@ -382,7 +406,8 @@
|
|
|
382
406
|
|
|
383
407
|
.jp-DirListing-itemText,
|
|
384
408
|
.jp-DirListing-itemModified,
|
|
385
|
-
.jp-DirListing-itemFileSize
|
|
409
|
+
.jp-DirListing-itemFileSize,
|
|
410
|
+
.jp-DirListing-itemCreated {
|
|
386
411
|
overflow: hidden;
|
|
387
412
|
text-overflow: ellipsis;
|
|
388
413
|
white-space: nowrap;
|
|
@@ -417,6 +442,10 @@
|
|
|
417
442
|
text-align: right;
|
|
418
443
|
}
|
|
419
444
|
|
|
445
|
+
.jp-DirListing-itemCreated {
|
|
446
|
+
text-align: right;
|
|
447
|
+
}
|
|
448
|
+
|
|
420
449
|
.jp-DirListing-editor {
|
|
421
450
|
flex: 1 0 64px;
|
|
422
451
|
outline: none;
|
|
@@ -431,7 +460,7 @@
|
|
|
431
460
|
.jp-DirListing-item.jp-mod-running .jp-DirListing-itemIcon::before {
|
|
432
461
|
color: var(--jp-success-color1);
|
|
433
462
|
content: '\25CF';
|
|
434
|
-
font-size:
|
|
463
|
+
font-size: calc(var(--jp-ui-font-size1) * 8 / 13);
|
|
435
464
|
position: absolute;
|
|
436
465
|
left: -8px;
|
|
437
466
|
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*-----------------------------------------------------------------------------
|
|
2
|
+
| Copyright (c) Jupyter Development Team.
|
|
3
|
+
| Distributed under the terms of the Modified BSD License.
|
|
4
|
+
|----------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
/* PathNavigator contains only the input and the suggestions dropdown */
|
|
7
|
+
.jp-PathNavigator {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: inline-block;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.jp-PathNavigator > input {
|
|
13
|
+
display: none;
|
|
14
|
+
width: 100%;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
background: var(--jp-layout-color0);
|
|
17
|
+
color: var(--jp-ui-font-color0);
|
|
18
|
+
border-radius: var(--jp-border-radius);
|
|
19
|
+
padding: 2px 6px;
|
|
20
|
+
font-size: var(--jp-ui-font-size1);
|
|
21
|
+
height: 20px;
|
|
22
|
+
border: var(--jp-border-width) solid var(--jp-cell-editor-active-border-color);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.jp-PathNavigator > input:focus {
|
|
26
|
+
outline: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.jp-PathNavigator-suggestions {
|
|
30
|
+
position: absolute;
|
|
31
|
+
top: 100%;
|
|
32
|
+
left: 0;
|
|
33
|
+
right: 0;
|
|
34
|
+
z-index: 100;
|
|
35
|
+
background: var(--jp-layout-color1);
|
|
36
|
+
border: var(--jp-border-width) solid var(--jp-border-color1);
|
|
37
|
+
border-radius: var(--jp-border-radius);
|
|
38
|
+
list-style: none;
|
|
39
|
+
margin: 2px 0 0;
|
|
40
|
+
padding: 0;
|
|
41
|
+
max-height: 200px;
|
|
42
|
+
overflow-y: auto;
|
|
43
|
+
box-shadow: var(--jp-elevation-z4);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.jp-PathNavigator-suggestions > li {
|
|
47
|
+
padding: 4px 8px;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
font-size: var(--jp-ui-font-size1);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.jp-PathNavigator-suggestions > li:hover,
|
|
53
|
+
.jp-PathNavigator-suggestions > li.jp-mod-active {
|
|
54
|
+
background: var(--jp-layout-color2);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.jp-PathNavigator-suggestions > li[data-is-dot] {
|
|
58
|
+
opacity: 75%;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/*
|
|
62
|
+
* Edit mode: stretch the PathNavigator to fill the full width.
|
|
63
|
+
*/
|
|
64
|
+
.jp-BreadCrumbs.jp-mod-editMode > .jp-PathNavigator {
|
|
65
|
+
display: block;
|
|
66
|
+
flex: 1;
|
|
67
|
+
position: relative;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.jp-BreadCrumbs.jp-mod-editMode > .jp-PathNavigator > input {
|
|
71
|
+
display: block;
|
|
72
|
+
}
|