@jupyter-notebook/tree 7.0.0-alpha.10

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/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './notebook-tree';
2
+ export * from './token';
package/lib/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from './notebook-tree';
2
+ export * from './token';
@@ -0,0 +1,11 @@
1
+ import { TabPanel } from '@lumino/widgets';
2
+ import { INotebookTree } from './token';
3
+ /**
4
+ * The widget added in main area of the tree view.
5
+ */
6
+ export declare class NotebookTreeWidget extends TabPanel implements INotebookTree {
7
+ /**
8
+ * Constructor of the NotebookTreeWidget.
9
+ */
10
+ constructor();
11
+ }
@@ -0,0 +1,18 @@
1
+ import { TabBarSvg } from '@jupyterlab/ui-components';
2
+ import { TabPanel } from '@lumino/widgets';
3
+ /**
4
+ * The widget added in main area of the tree view.
5
+ */
6
+ export class NotebookTreeWidget extends TabPanel {
7
+ /**
8
+ * Constructor of the NotebookTreeWidget.
9
+ */
10
+ constructor() {
11
+ super({
12
+ tabPlacement: 'top',
13
+ tabsMovable: true,
14
+ renderer: TabBarSvg.defaultRenderer
15
+ });
16
+ this.addClass('jp-TreePanel');
17
+ }
18
+ }
package/lib/token.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import { Token } from '@lumino/coreutils';
2
+ import { TabPanel } from '@lumino/widgets';
3
+ /**
4
+ * The INotebookTree interface.
5
+ */
6
+ export interface INotebookTree extends TabPanel {
7
+ }
8
+ /**
9
+ * The INotebookTree token.
10
+ */
11
+ export declare const INotebookTree: Token<INotebookTree>;
package/lib/token.js ADDED
@@ -0,0 +1,5 @@
1
+ import { Token } from '@lumino/coreutils';
2
+ /**
3
+ * The INotebookTree token.
4
+ */
5
+ export const INotebookTree = new Token('@jupyter-notebook/tree:INotebookTree');
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@jupyter-notebook/tree",
3
+ "version": "7.0.0-alpha.10",
4
+ "description": "Jupyter Notebook - Tree",
5
+ "homepage": "https://github.com/jupyter/notebook",
6
+ "bugs": {
7
+ "url": "https://github.com/jupyter/notebook/issues"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/jupyter/notebook.git"
12
+ },
13
+ "license": "BSD-3-Clause",
14
+ "author": "Project Jupyter",
15
+ "sideEffects": [
16
+ "style/**/*.css",
17
+ "style/index.js"
18
+ ],
19
+ "main": "lib/index.js",
20
+ "types": "lib/index.d.ts",
21
+ "style": "style/index.css",
22
+ "directories": {
23
+ "lib": "lib/"
24
+ },
25
+ "files": [
26
+ "lib/*.d.ts",
27
+ "lib/*.js.map",
28
+ "lib/*.js",
29
+ "schema/*.json",
30
+ "style/**/*.css",
31
+ "style/index.js"
32
+ ],
33
+ "scripts": {
34
+ "build": "tsc -b",
35
+ "build:prod": "tsc -b",
36
+ "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo",
37
+ "docs": "typedoc src",
38
+ "prepublishOnly": "npm run build",
39
+ "watch": "tsc -b --watch"
40
+ },
41
+ "dependencies": {
42
+ "@jupyter-notebook/application": "^7.0.0-alpha.10",
43
+ "@jupyterlab/application": "^4.0.0-alpha.17",
44
+ "@jupyterlab/apputils": "^4.0.0-alpha.17",
45
+ "@jupyterlab/coreutils": "^6.0.0-alpha.17",
46
+ "@jupyterlab/docmanager": "^4.0.0-alpha.17",
47
+ "@jupyterlab/filebrowser": "^4.0.0-alpha.17",
48
+ "@jupyterlab/mainmenu": "^4.0.0-alpha.17",
49
+ "@jupyterlab/services": "^7.0.0-alpha.17",
50
+ "@jupyterlab/settingregistry": "^4.0.0-alpha.17",
51
+ "@jupyterlab/statedb": "^4.0.0-alpha.17",
52
+ "@jupyterlab/translation": "^4.0.0-alpha.17",
53
+ "@jupyterlab/ui-components": "^4.0.0-alpha.32",
54
+ "@lumino/algorithm": "^2.0.0-alpha.7",
55
+ "@lumino/commands": "^2.0.0-alpha.7",
56
+ "@lumino/coreutils": "^2.0.0-alpha.7",
57
+ "@lumino/widgets": "^2.0.0-alpha.7"
58
+ },
59
+ "devDependencies": {
60
+ "rimraf": "^3.0.2",
61
+ "typescript": "~4.9.3"
62
+ },
63
+ "publishConfig": {
64
+ "access": "public"
65
+ },
66
+ "styleModule": "style/index.js"
67
+ }
package/style/base.css ADDED
@@ -0,0 +1,47 @@
1
+ .jp-FileBrowser {
2
+ height: 100%;
3
+ }
4
+
5
+ .lm-TabPanel {
6
+ height: 100%;
7
+ }
8
+
9
+ .jp-TreePanel .lm-TabPanel-tabBar {
10
+ overflow: visible;
11
+ min-height: 32px;
12
+ border-bottom: unset;
13
+ height: var(--jp-private-toolbar-height);
14
+ }
15
+
16
+ .jp-TreePanel .lm-TabBar-content {
17
+ height: 100%;
18
+ }
19
+
20
+ .jp-TreePanel .lm-TabBar-tab {
21
+ color: var(--jp-ui-font-color0);
22
+ font-size: var(--jp-ui-font-size1);
23
+ padding-top: 6px;
24
+ height: 100%;
25
+ }
26
+
27
+ .jp-TreePanel .lm-TabBar-tabLabel {
28
+ padding-left: 5px;
29
+ padding-right: 5px;
30
+ }
31
+
32
+ .jp-FileBrowser-toolbar.jp-Toolbar .jp-ToolbarButtonComponent {
33
+ width: unset;
34
+ }
35
+
36
+ .jp-FileBrowser-toolbar > .jp-Toolbar-item {
37
+ flex-direction: column;
38
+ justify-content: center;
39
+ }
40
+
41
+ .jp-DropdownMenu .lm-MenuBar-itemIcon svg {
42
+ vertical-align: sub;
43
+ }
44
+
45
+ button[data-command='filebrowser:refresh'] .jp-ToolbarButtonComponent-label {
46
+ display: none;
47
+ }
@@ -0,0 +1,3 @@
1
+ @import url('~@jupyterlab/filebrowser/style/index.css');
2
+
3
+ @import url('./base.css');
package/style/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import '@jupyterlab/filebrowser/style/index.js';
2
+
3
+ import './base.css';