@jupyterlab/filebrowser 4.0.0-beta.1 → 4.0.0-rc.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/browser.d.ts +9 -2
- package/lib/browser.js +42 -41
- package/lib/browser.js.map +1 -1
- package/lib/listing.d.ts +40 -5
- package/lib/listing.js +365 -140
- package/lib/listing.js.map +1 -1
- package/lib/opendialog.js +1 -1
- package/lib/opendialog.js.map +1 -1
- package/lib/tokens.js +5 -3
- package/lib/tokens.js.map +1 -1
- package/package.json +21 -21
- package/src/browser.ts +52 -51
- package/src/listing.ts +424 -166
- package/src/opendialog.ts +1 -1
- package/src/tokens.ts +8 -3
- package/style/base.css +11 -5
package/src/opendialog.ts
CHANGED
package/src/tokens.ts
CHANGED
|
@@ -10,14 +10,18 @@ import type { FileBrowser } from './browser';
|
|
|
10
10
|
* The file browser factory token.
|
|
11
11
|
*/
|
|
12
12
|
export const IFileBrowserFactory = new Token<IFileBrowserFactory>(
|
|
13
|
-
'@jupyterlab/filebrowser:IFileBrowserFactory'
|
|
13
|
+
'@jupyterlab/filebrowser:IFileBrowserFactory',
|
|
14
|
+
`A factory object that creates file browsers.
|
|
15
|
+
Use this if you want to create your own file browser (e.g., for a custom storage backend),
|
|
16
|
+
or to interact with other file browsers that have been created by extensions.`
|
|
14
17
|
);
|
|
15
18
|
|
|
16
19
|
/**
|
|
17
20
|
* The default file browser token.
|
|
18
21
|
*/
|
|
19
22
|
export const IDefaultFileBrowser = new Token<IDefaultFileBrowser>(
|
|
20
|
-
'@jupyterlab/filebrowser:IDefaultFileBrowser'
|
|
23
|
+
'@jupyterlab/filebrowser:IDefaultFileBrowser',
|
|
24
|
+
'A service for the default file browser.'
|
|
21
25
|
);
|
|
22
26
|
|
|
23
27
|
/**
|
|
@@ -118,5 +122,6 @@ export namespace IFileBrowserFactory {
|
|
|
118
122
|
* The token that indicates the default file browser commands are loaded.
|
|
119
123
|
*/
|
|
120
124
|
export const IFileBrowserCommands = new Token<void>(
|
|
121
|
-
'@jupyterlab/filebrowser:IFileBrowserCommands'
|
|
125
|
+
'@jupyterlab/filebrowser:IFileBrowserCommands',
|
|
126
|
+
'A token to ensure file browser commands are loaded.'
|
|
122
127
|
);
|
package/style/base.css
CHANGED
|
@@ -115,11 +115,6 @@
|
|
|
115
115
|
outline: 0;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
.jp-DirListing:focus-visible {
|
|
119
|
-
outline: 1px solid var(--jp-brand-color1);
|
|
120
|
-
outline-offset: -2px;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
118
|
.jp-DirListing-header {
|
|
124
119
|
flex: 0 0 auto;
|
|
125
120
|
display: flex;
|
|
@@ -281,6 +276,17 @@
|
|
|
281
276
|
user-select: none;
|
|
282
277
|
}
|
|
283
278
|
|
|
279
|
+
.jp-DirListing-itemText:focus {
|
|
280
|
+
outline-width: 2px;
|
|
281
|
+
outline-color: var(--jp-inverse-layout-color1);
|
|
282
|
+
outline-style: solid;
|
|
283
|
+
outline-offset: 1px;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.jp-DirListing-item.jp-mod-selected .jp-DirListing-itemText:focus {
|
|
287
|
+
outline-color: var(--jp-layout-color1);
|
|
288
|
+
}
|
|
289
|
+
|
|
284
290
|
.jp-DirListing-itemModified {
|
|
285
291
|
flex: 0 0 125px;
|
|
286
292
|
text-align: right;
|