@jupyterlab/debugger 3.3.0-alpha.13 → 3.3.0-alpha.17
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/debugger.d.ts +0 -1
- package/lib/debugger.js +0 -1
- package/lib/debugger.js.map +1 -1
- package/lib/handler.d.ts +1 -1
- package/lib/handler.js +7 -3
- package/lib/handler.js.map +1 -1
- package/lib/handlers/editor.d.ts +4 -0
- package/lib/handlers/editor.js +6 -0
- package/lib/handlers/editor.js.map +1 -1
- package/lib/handlers/notebook.js +7 -1
- package/lib/handlers/notebook.js.map +1 -1
- package/lib/panels/breakpoints/body.d.ts +1 -1
- package/lib/panels/breakpoints/body.js +1 -1
- package/lib/panels/breakpoints/body.js.map +1 -1
- package/lib/panels/breakpoints/header.d.ts +16 -0
- package/lib/panels/breakpoints/header.js +30 -0
- package/lib/panels/breakpoints/header.js.map +1 -0
- package/lib/panels/breakpoints/index.d.ts +1 -2
- package/lib/panels/breakpoints/index.js +16 -12
- package/lib/panels/breakpoints/index.js.map +1 -1
- package/lib/panels/callstack/body.d.ts +1 -1
- package/lib/panels/callstack/body.js +2 -2
- package/lib/panels/callstack/body.js.map +1 -1
- package/lib/panels/callstack/header.d.ts +16 -0
- package/lib/panels/callstack/header.js +30 -0
- package/lib/panels/callstack/header.js.map +1 -0
- package/lib/panels/callstack/index.d.ts +1 -2
- package/lib/panels/callstack/index.js +21 -23
- package/lib/panels/callstack/index.js.map +1 -1
- package/lib/panels/sources/header.d.ts +19 -0
- package/lib/panels/sources/header.js +48 -0
- package/lib/panels/sources/header.js.map +1 -0
- package/lib/panels/sources/index.d.ts +2 -2
- package/lib/panels/sources/index.js +12 -15
- package/lib/panels/sources/index.js.map +1 -1
- package/lib/panels/variables/grid.d.ts +0 -9
- package/lib/panels/variables/grid.js +11 -30
- package/lib/panels/variables/grid.js.map +1 -1
- package/lib/panels/variables/header.d.ts +16 -0
- package/lib/panels/variables/header.js +30 -0
- package/lib/panels/variables/header.js.map +1 -0
- package/lib/panels/variables/index.d.ts +2 -10
- package/lib/panels/variables/index.js +17 -34
- package/lib/panels/variables/index.js.map +1 -1
- package/lib/panels/variables/mimerenderer.d.ts +15 -2
- package/lib/panels/variables/mimerenderer.js +48 -17
- package/lib/panels/variables/mimerenderer.js.map +1 -1
- package/lib/panels/variables/model.d.ts +3 -0
- package/lib/panels/variables/model.js +7 -0
- package/lib/panels/variables/model.js.map +1 -1
- package/lib/panels/variables/scope.d.ts +1 -1
- package/lib/panels/variables/scope.js +2 -1
- package/lib/panels/variables/scope.js.map +1 -1
- package/lib/panels/variables/tree.d.ts +2 -6
- package/lib/panels/variables/tree.js +13 -11
- package/lib/panels/variables/tree.js.map +1 -1
- package/lib/service.d.ts +0 -6
- package/lib/service.js +10 -14
- package/lib/service.js.map +1 -1
- package/lib/sidebar.js +2 -5
- package/lib/sidebar.js.map +1 -1
- package/lib/tokens.d.ts +14 -22
- package/lib/tokens.js.map +1 -1
- package/package.json +19 -19
- package/style/base.css +0 -1
- package/style/breakpoints.css +0 -2
- package/style/callstack.css +0 -2
- package/style/icons.css +3 -3
- package/style/sidebar.css +5 -16
- package/style/sources.css +1 -6
- package/style/variables.css +15 -3
- package/lib/panels/panelbody.d.ts +0 -27
- package/lib/panels/panelbody.js +0 -47
- package/lib/panels/panelbody.js.map +0 -1
- package/lib/panels/panelwithtoolbar.d.ts +0 -57
- package/lib/panels/panelwithtoolbar.js +0 -55
- package/lib/panels/panelwithtoolbar.js.map +0 -1
- package/lib/panels/sources/sourcepath.d.ts +0 -11
- package/lib/panels/sources/sourcepath.js +0 -17
- package/lib/panels/sources/sourcepath.js.map +0 -1
- package/style/accordionpanel.css +0 -40
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/debugger",
|
|
3
|
-
"version": "3.3.0-alpha.
|
|
3
|
+
"version": "3.3.0-alpha.17",
|
|
4
4
|
"description": "JupyterLab - Debugger Extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -48,29 +48,29 @@
|
|
|
48
48
|
"watch": "tsc -b --watch"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@jupyterlab/application": "^3.3.0-alpha.
|
|
52
|
-
"@jupyterlab/apputils": "^3.3.0-alpha.
|
|
53
|
-
"@jupyterlab/cells": "^3.3.0-alpha.
|
|
54
|
-
"@jupyterlab/codeeditor": "^3.3.0-alpha.
|
|
55
|
-
"@jupyterlab/codemirror": "^3.3.0-alpha.
|
|
56
|
-
"@jupyterlab/console": "^3.3.0-alpha.
|
|
57
|
-
"@jupyterlab/coreutils": "^5.3.0-alpha.
|
|
58
|
-
"@jupyterlab/docregistry": "^3.3.0-alpha.
|
|
59
|
-
"@jupyterlab/fileeditor": "^3.3.0-alpha.
|
|
60
|
-
"@jupyterlab/notebook": "^3.3.0-alpha.
|
|
61
|
-
"@jupyterlab/observables": "^4.3.0-alpha.
|
|
62
|
-
"@jupyterlab/rendermime": "^3.3.0-alpha.
|
|
63
|
-
"@jupyterlab/services": "^6.3.0-alpha.
|
|
64
|
-
"@jupyterlab/translation": "^3.3.0-alpha.
|
|
65
|
-
"@jupyterlab/ui-components": "^3.3.0-alpha.
|
|
51
|
+
"@jupyterlab/application": "^3.3.0-alpha.17",
|
|
52
|
+
"@jupyterlab/apputils": "^3.3.0-alpha.17",
|
|
53
|
+
"@jupyterlab/cells": "^3.3.0-alpha.17",
|
|
54
|
+
"@jupyterlab/codeeditor": "^3.3.0-alpha.17",
|
|
55
|
+
"@jupyterlab/codemirror": "^3.3.0-alpha.17",
|
|
56
|
+
"@jupyterlab/console": "^3.3.0-alpha.17",
|
|
57
|
+
"@jupyterlab/coreutils": "^5.3.0-alpha.17",
|
|
58
|
+
"@jupyterlab/docregistry": "^3.3.0-alpha.17",
|
|
59
|
+
"@jupyterlab/fileeditor": "^3.3.0-alpha.17",
|
|
60
|
+
"@jupyterlab/notebook": "^3.3.0-alpha.17",
|
|
61
|
+
"@jupyterlab/observables": "^4.3.0-alpha.17",
|
|
62
|
+
"@jupyterlab/rendermime": "^3.3.0-alpha.17",
|
|
63
|
+
"@jupyterlab/services": "^6.3.0-alpha.17",
|
|
64
|
+
"@jupyterlab/translation": "^3.3.0-alpha.17",
|
|
65
|
+
"@jupyterlab/ui-components": "^3.3.0-alpha.16",
|
|
66
66
|
"@lumino/algorithm": "^1.3.3",
|
|
67
67
|
"@lumino/commands": "^1.12.0",
|
|
68
68
|
"@lumino/coreutils": "^1.5.3",
|
|
69
|
-
"@lumino/datagrid": "^0.
|
|
69
|
+
"@lumino/datagrid": "^0.20.0",
|
|
70
70
|
"@lumino/disposable": "^1.4.3",
|
|
71
71
|
"@lumino/messaging": "^1.4.3",
|
|
72
72
|
"@lumino/signaling": "^1.4.3",
|
|
73
|
-
"@lumino/widgets": "^1.
|
|
73
|
+
"@lumino/widgets": "^1.19.0",
|
|
74
74
|
"codemirror": "~5.61.0",
|
|
75
75
|
"react": "^17.0.1",
|
|
76
76
|
"vscode-debugprotocol": "^1.37.0"
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@babel/core": "^7.10.2",
|
|
80
80
|
"@babel/preset-env": "^7.10.2",
|
|
81
|
-
"@jupyterlab/testutils": "^3.3.0-alpha.
|
|
81
|
+
"@jupyterlab/testutils": "^3.3.0-alpha.17",
|
|
82
82
|
"@types/codemirror": "^0.0.109",
|
|
83
83
|
"@types/jest": "^26.0.10",
|
|
84
84
|
"@types/react-dom": "^17.0.0",
|
package/style/base.css
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
| Copyright (c) Jupyter Development Team.
|
|
3
3
|
| Distributed under the terms of the Modified BSD License.
|
|
4
4
|
|----------------------------------------------------------------------------*/
|
|
5
|
-
@import './accordionpanel.css';
|
|
6
5
|
@import './breakpoints.css';
|
|
7
6
|
@import './callstack.css';
|
|
8
7
|
@import './editor.css';
|
package/style/breakpoints.css
CHANGED
package/style/callstack.css
CHANGED
package/style/icons.css
CHANGED
|
@@ -14,14 +14,14 @@ button.jp-Button.bp3-button.bp3-minimal.jp-TreeView.jp-TableView {
|
|
|
14
14
|
|
|
15
15
|
button.jp-Button.bp3-button.bp3-minimal.jp-TreeView:hover {
|
|
16
16
|
cursor: pointer;
|
|
17
|
-
background-color: var(--jp-layout-
|
|
17
|
+
background-color: var(--jp-layout-color2);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
button.jp-Button.bp3-button.bp3-minimal.jp-TableView:hover {
|
|
21
21
|
cursor: pointer;
|
|
22
|
-
background-color: var(--jp-layout-
|
|
22
|
+
background-color: var(--jp-layout-color2);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.jp-ViewModeSelected {
|
|
26
|
-
background-color: var(--jp-layout-
|
|
26
|
+
background-color: var(--jp-layout-color2);
|
|
27
27
|
}
|
package/style/sidebar.css
CHANGED
|
@@ -23,20 +23,18 @@
|
|
|
23
23
|
|
|
24
24
|
.jp-DebuggerSidebar .jp-stack-panel-header {
|
|
25
25
|
border-bottom: solid var(--jp-border-width) var(--jp-border-color1);
|
|
26
|
+
box-shadow: var(--jp-toolbar-box-shadow);
|
|
26
27
|
display: flex;
|
|
27
28
|
flex-direction: row;
|
|
28
29
|
align-items: center;
|
|
29
|
-
min-height:
|
|
30
|
-
padding: 0px !important;
|
|
30
|
+
min-height: 24px;
|
|
31
31
|
height: var(--jp-debugger-header-height);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.jp-DebuggerSidebar .jp-stack-panel-header
|
|
35
|
-
background:
|
|
36
|
-
border-bottom: none;
|
|
34
|
+
.jp-DebuggerSidebar > .jp-stack-panel-header {
|
|
35
|
+
background-color: var(--jp-layout-color1);
|
|
37
36
|
}
|
|
38
37
|
|
|
39
|
-
.jp-DebuggerSidebar .jp-AccordionPanel-title span.lm-AccordionPanel-titleLabel,
|
|
40
38
|
.jp-DebuggerSidebar .jp-stack-panel-header h2 {
|
|
41
39
|
text-transform: uppercase;
|
|
42
40
|
font-weight: 600;
|
|
@@ -45,13 +43,9 @@
|
|
|
45
43
|
padding-left: 8px;
|
|
46
44
|
padding-right: 4px;
|
|
47
45
|
}
|
|
48
|
-
.jp-DebuggerSidebar
|
|
49
|
-
.jp-stack-panel-header.jp-Toolbar
|
|
50
|
-
button.jp-ToolbarButtonComponent {
|
|
51
|
-
height: 20px;
|
|
52
|
-
}
|
|
53
46
|
|
|
54
47
|
.jp-DebuggerSidebar-body .jp-stack-panel-header {
|
|
48
|
+
border-top: solid var(--jp-border-width) var(--jp-border-color1);
|
|
55
49
|
background-color: var(--jp-layout-color2);
|
|
56
50
|
}
|
|
57
51
|
|
|
@@ -62,9 +56,4 @@
|
|
|
62
56
|
.jp-DebuggerSidebar-body .jp-Toolbar {
|
|
63
57
|
background: var(--jp-layout-color2);
|
|
64
58
|
box-shadow: none;
|
|
65
|
-
height: 20px;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.jp-DebuggerSidebar-body .lm-SplitPanel-handle.p-SplitPanel-handle:hover {
|
|
69
|
-
background: var(--jp-layout-color3);
|
|
70
59
|
}
|
package/style/sources.css
CHANGED
|
@@ -3,11 +3,6 @@
|
|
|
3
3
|
| Distributed under the terms of the Modified BSD License.
|
|
4
4
|
|----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
-
.jp-DebuggerSources {
|
|
7
|
-
min-height: 50px;
|
|
8
|
-
margin-top: 3px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
6
|
[data-jp-debugger='true'].jp-Editor .jp-mod-readOnly {
|
|
12
7
|
background: var(--jp-layout-color2);
|
|
13
8
|
height: 100%;
|
|
@@ -18,7 +13,7 @@
|
|
|
18
13
|
}
|
|
19
14
|
|
|
20
15
|
.jp-DebuggerSources-body {
|
|
21
|
-
height: 100
|
|
16
|
+
height: calc(100% - var(--jp-statusbar-height));
|
|
22
17
|
}
|
|
23
18
|
|
|
24
19
|
.jp-DebuggerSources-header > div > span {
|
package/style/variables.css
CHANGED
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
.jp-DebuggerVariables {
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
|
-
min-height: 50px;
|
|
10
|
-
padding-top: 3px;
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
.jp-DebuggerVariables-body {
|
|
@@ -70,7 +68,7 @@
|
|
|
70
68
|
margin-left: 12px;
|
|
71
69
|
}
|
|
72
70
|
|
|
73
|
-
.jp-stack-panel-header.jp-
|
|
71
|
+
.jp-DebuggerVariables .jp-stack-panel-header .jp-Toolbar {
|
|
74
72
|
margin-left: auto;
|
|
75
73
|
}
|
|
76
74
|
|
|
@@ -118,3 +116,17 @@
|
|
|
118
116
|
.jp-DebuggerVariables-colorPalette .jp-mod-text {
|
|
119
117
|
color: var(--jp-content-font-color0);
|
|
120
118
|
}
|
|
119
|
+
|
|
120
|
+
.jp-VariableRenderer-TrustButton[aria-pressed='true'] {
|
|
121
|
+
box-shadow: inset 0 var(--jp-border-width) 4px
|
|
122
|
+
rgba(
|
|
123
|
+
var(--jp-shadow-base-lightness),
|
|
124
|
+
var(--jp-shadow-base-lightness),
|
|
125
|
+
var(--jp-shadow-base-lightness),
|
|
126
|
+
0.6
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.jp-DebuggerRichVariable div[data-mime-type='text/plain'] > pre {
|
|
131
|
+
white-space: normal;
|
|
132
|
+
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { AccordionPanel, Title, Widget } from '@lumino/widgets';
|
|
2
|
-
/**
|
|
3
|
-
* Debugger accordion panel customization
|
|
4
|
-
*/
|
|
5
|
-
export declare namespace DebuggerAccordionPanel {
|
|
6
|
-
/**
|
|
7
|
-
* Custom renderer for the debugger sidebar
|
|
8
|
-
*/
|
|
9
|
-
class Renderer extends AccordionPanel.Renderer {
|
|
10
|
-
/**
|
|
11
|
-
* Render the collapse indicator for a section title.
|
|
12
|
-
*
|
|
13
|
-
* @param data - The data to use for rendering the section title.
|
|
14
|
-
*
|
|
15
|
-
* @returns A element representing the collapse indicator.
|
|
16
|
-
*/
|
|
17
|
-
createCollapseIcon(data: Title<Widget>): HTMLElement;
|
|
18
|
-
/**
|
|
19
|
-
* Render the element for a section title.
|
|
20
|
-
*
|
|
21
|
-
* @param data - The data to use for rendering the section title.
|
|
22
|
-
*
|
|
23
|
-
* @returns A element representing the section title.
|
|
24
|
-
*/
|
|
25
|
-
createSectionTitle(data: Title<Widget>): HTMLElement;
|
|
26
|
-
}
|
|
27
|
-
}
|
package/lib/panels/panelbody.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Jupyter Development Team.
|
|
2
|
-
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
import { AccordionPanel } from '@lumino/widgets';
|
|
4
|
-
import { caretDownIcon } from '@jupyterlab/ui-components';
|
|
5
|
-
/**
|
|
6
|
-
* Debugger accordion panel customization
|
|
7
|
-
*/
|
|
8
|
-
export var DebuggerAccordionPanel;
|
|
9
|
-
(function (DebuggerAccordionPanel) {
|
|
10
|
-
/**
|
|
11
|
-
* Custom renderer for the debugger sidebar
|
|
12
|
-
*/
|
|
13
|
-
class Renderer extends AccordionPanel.Renderer {
|
|
14
|
-
/**
|
|
15
|
-
* Render the collapse indicator for a section title.
|
|
16
|
-
*
|
|
17
|
-
* @param data - The data to use for rendering the section title.
|
|
18
|
-
*
|
|
19
|
-
* @returns A element representing the collapse indicator.
|
|
20
|
-
*/
|
|
21
|
-
createCollapseIcon(data) {
|
|
22
|
-
const iconDiv = document.createElement('div');
|
|
23
|
-
caretDownIcon.element({
|
|
24
|
-
container: iconDiv
|
|
25
|
-
});
|
|
26
|
-
return iconDiv;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Render the element for a section title.
|
|
30
|
-
*
|
|
31
|
-
* @param data - The data to use for rendering the section title.
|
|
32
|
-
*
|
|
33
|
-
* @returns A element representing the section title.
|
|
34
|
-
*/
|
|
35
|
-
createSectionTitle(data) {
|
|
36
|
-
const toolbar = data.owner.toolbar;
|
|
37
|
-
const handle = super.createSectionTitle(data);
|
|
38
|
-
handle.classList.add('jp-AccordionPanel-title');
|
|
39
|
-
if (toolbar) {
|
|
40
|
-
handle.appendChild(toolbar.node);
|
|
41
|
-
}
|
|
42
|
-
return handle;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
DebuggerAccordionPanel.Renderer = Renderer;
|
|
46
|
-
})(DebuggerAccordionPanel || (DebuggerAccordionPanel = {}));
|
|
47
|
-
//# sourceMappingURL=panelbody.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"panelbody.js","sourceRoot":"","sources":["../../src/panels/panelbody.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,cAAc,EAAiB,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG1D;;GAEG;AACH,MAAM,KAAW,sBAAsB,CAqCtC;AArCD,WAAiB,sBAAsB;IACrC;;OAEG;IACH,MAAa,QAAS,SAAQ,cAAc,CAAC,QAAQ;QACnD;;;;;;WAMG;QACH,kBAAkB,CAAC,IAAmB;YACpC,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YAC9C,aAAa,CAAC,OAAO,CAAC;gBACpB,SAAS,EAAE,OAAO;aACnB,CAAC,CAAC;YACH,OAAO,OAAO,CAAC;QACjB,CAAC;QAED;;;;;;WAMG;QACH,kBAAkB,CAAC,IAAmB;YACpC,MAAM,OAAO,GAAI,IAAI,CAAC,KAA0B,CAAC,OAAO,CAAC;YACzD,MAAM,MAAM,GAAG,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;YAC9C,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;YAChD,IAAI,OAAO,EAAE;gBACX,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;aAClC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC;KACF;IAhCY,+BAAQ,WAgCpB,CAAA;AACH,CAAC,EArCgB,sBAAsB,KAAtB,sBAAsB,QAqCtC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ITranslator, TranslationBundle } from '@jupyterlab/translation';
|
|
2
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
3
|
-
import { Message } from '@lumino/messaging';
|
|
4
|
-
import { Panel } from '@lumino/widgets';
|
|
5
|
-
/**
|
|
6
|
-
* A base class for debugger panel element.
|
|
7
|
-
*/
|
|
8
|
-
export declare class PanelWithToolbar extends Panel {
|
|
9
|
-
/**
|
|
10
|
-
* Instantiate a new Panel.
|
|
11
|
-
*
|
|
12
|
-
* @param options The instantiation options for a Debugger Panel.
|
|
13
|
-
*/
|
|
14
|
-
constructor(options: PanelWithToolbar.IOptions);
|
|
15
|
-
/**
|
|
16
|
-
* Handler to notify `AccordionPanel` title that its child widget is expanded.
|
|
17
|
-
* We can not rely on `lm-mod-expanded` class of Lumino to detect this event
|
|
18
|
-
* since this class is added to the target of `onClick` event, which is not
|
|
19
|
-
* always the title of `AccordionPanel`.
|
|
20
|
-
*
|
|
21
|
-
* @param {Message} msg
|
|
22
|
-
*
|
|
23
|
-
* TODO remove when @lumino/widgets 1.26.3 is released
|
|
24
|
-
*/
|
|
25
|
-
protected onAfterShow(msg: Message): void;
|
|
26
|
-
/**
|
|
27
|
-
* Handler to notify `AccordionPanel`'s title that its child widget is closed.
|
|
28
|
-
* @param {Message} msg
|
|
29
|
-
*
|
|
30
|
-
* TODO remove when @lumino/widgets 1.26.3 is released
|
|
31
|
-
*/
|
|
32
|
-
protected onAfterHide(msg: Message): void;
|
|
33
|
-
/**
|
|
34
|
-
* Widget toolbar
|
|
35
|
-
*/
|
|
36
|
-
get toolbar(): Toolbar;
|
|
37
|
-
/**
|
|
38
|
-
* The toolbar widget, it is not attached to current widget
|
|
39
|
-
* but is rendered by the sidebar panel.
|
|
40
|
-
*/
|
|
41
|
-
private _toolbar;
|
|
42
|
-
protected trans: TranslationBundle;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* A namespace for PanelWidget `statics`.
|
|
46
|
-
*/
|
|
47
|
-
export declare namespace PanelWithToolbar {
|
|
48
|
-
/**
|
|
49
|
-
* Instantiation options for `PanelWidget`.
|
|
50
|
-
*/
|
|
51
|
-
interface IOptions extends Panel.IOptions {
|
|
52
|
-
/**
|
|
53
|
-
* The application language translator.
|
|
54
|
-
*/
|
|
55
|
-
translator?: ITranslator;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Jupyter Development Team.
|
|
2
|
-
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
import { nullTranslator } from '@jupyterlab/translation';
|
|
4
|
-
import { Toolbar } from '@jupyterlab/ui-components';
|
|
5
|
-
import { Panel } from '@lumino/widgets';
|
|
6
|
-
/**
|
|
7
|
-
* A base class for debugger panel element.
|
|
8
|
-
*/
|
|
9
|
-
export class PanelWithToolbar extends Panel {
|
|
10
|
-
/**
|
|
11
|
-
* Instantiate a new Panel.
|
|
12
|
-
*
|
|
13
|
-
* @param options The instantiation options for a Debugger Panel.
|
|
14
|
-
*/
|
|
15
|
-
constructor(options) {
|
|
16
|
-
super(options);
|
|
17
|
-
const translator = options.translator || nullTranslator;
|
|
18
|
-
this.trans = translator.load('jupyterlab');
|
|
19
|
-
this._toolbar = new Toolbar();
|
|
20
|
-
this._toolbar.addClass('jp-stack-panel-header');
|
|
21
|
-
// Add toolbar as widget to get notified by the lumino widget
|
|
22
|
-
this.addWidget(this._toolbar);
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Handler to notify `AccordionPanel` title that its child widget is expanded.
|
|
26
|
-
* We can not rely on `lm-mod-expanded` class of Lumino to detect this event
|
|
27
|
-
* since this class is added to the target of `onClick` event, which is not
|
|
28
|
-
* always the title of `AccordionPanel`.
|
|
29
|
-
*
|
|
30
|
-
* @param {Message} msg
|
|
31
|
-
*
|
|
32
|
-
* TODO remove when @lumino/widgets 1.26.3 is released
|
|
33
|
-
*/
|
|
34
|
-
onAfterShow(msg) {
|
|
35
|
-
var _a;
|
|
36
|
-
(_a = this.toolbar.node.parentElement) === null || _a === void 0 ? void 0 : _a.classList.add('jp-DebuggerPanel-expanded');
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Handler to notify `AccordionPanel`'s title that its child widget is closed.
|
|
40
|
-
* @param {Message} msg
|
|
41
|
-
*
|
|
42
|
-
* TODO remove when @lumino/widgets 1.26.3 is released
|
|
43
|
-
*/
|
|
44
|
-
onAfterHide(msg) {
|
|
45
|
-
var _a;
|
|
46
|
-
(_a = this.toolbar.node.parentElement) === null || _a === void 0 ? void 0 : _a.classList.remove('jp-DebuggerPanel-expanded');
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Widget toolbar
|
|
50
|
-
*/
|
|
51
|
-
get toolbar() {
|
|
52
|
-
return this._toolbar;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=panelwithtoolbar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"panelwithtoolbar.js","sourceRoot":"","sources":["../../src/panels/panelwithtoolbar.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAEL,cAAc,EAEf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEpD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC;;;;OAIG;IACH,YAAY,OAAkC;QAC5C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,cAAc,CAAC;QACxD,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE3C,IAAI,CAAC,QAAQ,GAAG,IAAI,OAAO,EAAE,CAAC;QAC9B,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;QAChD,6DAA6D;QAC7D,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;IAED;;;;;;;;;OASG;IACO,WAAW,CAAC,GAAY;;QAChC,MAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,0CAAE,SAAS,CAAC,GAAG,CAAC,2BAA2B,EAAE;IAC9E,CAAC;IAED;;;;;OAKG;IACO,WAAW,CAAC,GAAY;;QAChC,MAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,0CAAE,SAAS,CAAC,MAAM,CAC/C,2BAA2B,EAC3B;IACJ,CAAC;IAED;;OAEG;IACH,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CASF"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IDebugger } from '../../tokens';
|
|
3
|
-
/**
|
|
4
|
-
* A React component to display the path to a source.
|
|
5
|
-
*
|
|
6
|
-
* @param {object} props The component props.
|
|
7
|
-
* @param props.model The model for the sources.
|
|
8
|
-
*/
|
|
9
|
-
export declare const SourcePathComponent: ({ model }: {
|
|
10
|
-
model: IDebugger.Model.ISources;
|
|
11
|
-
}) => JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Jupyter Development Team.
|
|
2
|
-
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
import { UseSignal } from '@jupyterlab/ui-components';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
/**
|
|
6
|
-
* A React component to display the path to a source.
|
|
7
|
-
*
|
|
8
|
-
* @param {object} props The component props.
|
|
9
|
-
* @param props.model The model for the sources.
|
|
10
|
-
*/
|
|
11
|
-
export const SourcePathComponent = ({ model }) => {
|
|
12
|
-
return (React.createElement(UseSignal, { signal: model.currentSourceChanged, initialSender: model }, (model) => {
|
|
13
|
-
var _a, _b;
|
|
14
|
-
return (React.createElement("span", { onClick: () => model === null || model === void 0 ? void 0 : model.open() }, (_b = (_a = model === null || model === void 0 ? void 0 : model.currentSource) === null || _a === void 0 ? void 0 : _a.path) !== null && _b !== void 0 ? _b : ''));
|
|
15
|
-
}));
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=sourcepath.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sourcepath.js","sourceRoot":"","sources":["../../../src/panels/sources/sourcepath.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAClC,KAAK,EAGN,EAAe,EAAE;IAChB,OAAO,CACL,oBAAC,SAAS,IAAC,MAAM,EAAE,KAAK,CAAC,oBAAoB,EAAE,aAAa,EAAE,KAAK,IAChE,CAAC,KAAK,EAAe,EAAE;;QAAC,OAAA,CACvB,8BAAM,OAAO,EAAE,GAAS,EAAE,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,EAAE,gBACrC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,aAAa,0CAAE,IAAI,mCAAI,EAAE,CAC5B,CACR,CAAA;KAAA,CACS,CACb,CAAC;AACJ,CAAC,CAAC"}
|
package/style/accordionpanel.css
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
.lm-AccordionPanel .jp-AccordionPanel-title {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
background: #e5e5e500;
|
|
4
|
-
border-bottom: none;
|
|
5
|
-
font: 12px Helvetica, Arial, sans-serif;
|
|
6
|
-
min-height: 22px;
|
|
7
|
-
max-height: 22px;
|
|
8
|
-
min-width: 35px;
|
|
9
|
-
line-height: 25px;
|
|
10
|
-
margin: 0px;
|
|
11
|
-
display: flex;
|
|
12
|
-
background-color: var(--jp-layout-color2);
|
|
13
|
-
border-bottom: solid var(--jp-border-width) var(--jp-border-color1);
|
|
14
|
-
border-top: solid var(--jp-border-width) var(--jp-border-color1);
|
|
15
|
-
box-shadow: var(--jp-toolbar-box-shadow);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.jp-AccordionPanel-title .lm-AccordionPanel-titleCollapser {
|
|
19
|
-
transform: rotate(-90deg);
|
|
20
|
-
margin-top: 3px;
|
|
21
|
-
height: 16px;
|
|
22
|
-
}
|
|
23
|
-
/* TODO remove first selector when @lumino/widgets 1.26.3 is released */
|
|
24
|
-
.jp-AccordionPanel-title.jp-DebuggerPanel-expanded
|
|
25
|
-
.lm-AccordionPanel-titleCollapser
|
|
26
|
-
/* .jp-AccordionPanel-title.lm-mod-expanded .lm-AccordionPanel-titleCollapser */ {
|
|
27
|
-
transform: rotate(0deg);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.lm-AccordionPanel[data-orientation='horizontal'] > .jp-AccordionPanel-title {
|
|
31
|
-
/* Title is rotated for horizontal accordion panel using CSS */
|
|
32
|
-
display: block;
|
|
33
|
-
transform-origin: top left;
|
|
34
|
-
transform: rotate(-90deg) translate(-100%);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.jp-AccordionPanel-title .lm-AccordionPanel-titleLabel {
|
|
38
|
-
user-select: none;
|
|
39
|
-
line-height: 22px;
|
|
40
|
-
}
|