@jupyterlab/debugger 3.4.3 → 4.0.0-alpha.11

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.
Files changed (88) hide show
  1. package/lib/debugger.d.ts +1 -0
  2. package/lib/debugger.js +1 -0
  3. package/lib/debugger.js.map +1 -1
  4. package/lib/handler.d.ts +1 -1
  5. package/lib/handler.js +3 -3
  6. package/lib/handler.js.map +1 -1
  7. package/lib/handlers/editor.js.map +1 -1
  8. package/lib/handlers/file.js.map +1 -1
  9. package/lib/handlers/notebook.js.map +1 -1
  10. package/lib/model.d.ts +1 -1
  11. package/lib/panels/breakpoints/body.d.ts +1 -2
  12. package/lib/panels/breakpoints/body.js +1 -1
  13. package/lib/panels/breakpoints/body.js.map +1 -1
  14. package/lib/panels/breakpoints/index.d.ts +2 -1
  15. package/lib/panels/breakpoints/index.js +5 -9
  16. package/lib/panels/breakpoints/index.js.map +1 -1
  17. package/lib/panels/breakpoints/model.js.map +1 -1
  18. package/lib/panels/callstack/body.d.ts +1 -2
  19. package/lib/panels/callstack/body.js +2 -2
  20. package/lib/panels/callstack/body.js.map +1 -1
  21. package/lib/panels/callstack/index.d.ts +2 -1
  22. package/lib/panels/callstack/index.js +24 -20
  23. package/lib/panels/callstack/index.js.map +1 -1
  24. package/lib/panels/kernelSources/body.js +2 -2
  25. package/lib/panels/kernelSources/body.js.map +1 -1
  26. package/lib/panels/kernelSources/filter.d.ts +1 -1
  27. package/lib/panels/kernelSources/filter.js +1 -2
  28. package/lib/panels/kernelSources/filter.js.map +1 -1
  29. package/lib/panels/kernelSources/index.d.ts +2 -2
  30. package/lib/panels/kernelSources/index.js +7 -12
  31. package/lib/panels/kernelSources/index.js.map +1 -1
  32. package/lib/panels/sources/body.js.map +1 -1
  33. package/lib/panels/sources/index.d.ts +2 -2
  34. package/lib/panels/sources/index.js +14 -9
  35. package/lib/panels/sources/index.js.map +1 -1
  36. package/lib/panels/sources/sourcepath.d.ts +10 -0
  37. package/lib/panels/sources/sourcepath.js +17 -0
  38. package/lib/panels/sources/sourcepath.js.map +1 -0
  39. package/lib/panels/variables/grid.d.ts +5 -0
  40. package/lib/panels/variables/grid.js +15 -8
  41. package/lib/panels/variables/grid.js.map +1 -1
  42. package/lib/panels/variables/index.d.ts +2 -2
  43. package/lib/panels/variables/index.js +15 -13
  44. package/lib/panels/variables/index.js.map +1 -1
  45. package/lib/panels/variables/scope.d.ts +1 -2
  46. package/lib/panels/variables/scope.js +1 -2
  47. package/lib/panels/variables/scope.js.map +1 -1
  48. package/lib/panels/variables/tree.d.ts +1 -2
  49. package/lib/panels/variables/tree.js +1 -2
  50. package/lib/panels/variables/tree.js.map +1 -1
  51. package/lib/service.d.ts +7 -1
  52. package/lib/service.js +26 -22
  53. package/lib/service.js.map +1 -1
  54. package/lib/session.js +2 -1
  55. package/lib/session.js.map +1 -1
  56. package/lib/sidebar.d.ts +3 -43
  57. package/lib/sidebar.js +15 -62
  58. package/lib/sidebar.js.map +1 -1
  59. package/lib/sources.js +1 -1
  60. package/lib/sources.js.map +1 -1
  61. package/lib/tokens.d.ts +26 -35
  62. package/lib/tokens.js.map +1 -1
  63. package/package.json +29 -29
  64. package/style/base.css +2 -2
  65. package/style/breakpoints.css +2 -0
  66. package/style/callstack.css +2 -0
  67. package/style/icons/arrow-collapse.svg +1 -1
  68. package/style/icons/arrow-expand.svg +1 -1
  69. package/style/icons.css +6 -13
  70. package/style/kernelSources.css +2 -2
  71. package/style/sidebar.css +5 -52
  72. package/style/sources.css +6 -1
  73. package/style/variables.css +4 -6
  74. package/lib/panels/breakpoints/header.d.ts +0 -16
  75. package/lib/panels/breakpoints/header.js +0 -30
  76. package/lib/panels/breakpoints/header.js.map +0 -1
  77. package/lib/panels/callstack/header.d.ts +0 -16
  78. package/lib/panels/callstack/header.js +0 -30
  79. package/lib/panels/callstack/header.js.map +0 -1
  80. package/lib/panels/kernelSources/header.d.ts +0 -19
  81. package/lib/panels/kernelSources/header.js +0 -33
  82. package/lib/panels/kernelSources/header.js.map +0 -1
  83. package/lib/panels/sources/header.d.ts +0 -19
  84. package/lib/panels/sources/header.js +0 -48
  85. package/lib/panels/sources/header.js.map +0 -1
  86. package/lib/panels/variables/header.d.ts +0 -16
  87. package/lib/panels/variables/header.js +0 -30
  88. package/lib/panels/variables/header.js.map +0 -1
@@ -6,6 +6,8 @@
6
6
  .jp-DebuggerCallstack {
7
7
  display: flex;
8
8
  flex-direction: column;
9
+ min-height: 50px;
10
+ padding-top: 3px;
9
11
  }
10
12
 
11
13
  .jp-DebuggerCallstack-body {
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="#646465" d="M6 4v8l4-4-4-4zm1 2.414l1.586 1.586-1.586 1.586v-3.172z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="#646465" d="M6 4v8l4-4-4-4zm1 2.414l1.586 1.586-1.586 1.586v-3.172z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="#646465" d="M11 10.07h-5.656l5.656-5.656v5.656z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="#646465" d="M11 10.07h-5.656l5.656-5.656v5.656z"/></svg>
package/style/icons.css CHANGED
@@ -3,8 +3,8 @@
3
3
  | Distributed under the terms of the Modified BSD License.
4
4
  |----------------------------------------------------------------------------*/
5
5
 
6
- button.jp-Button.bp3-button.bp3-minimal.jp-TreeView.jp-TreeView,
7
- button.jp-Button.bp3-button.bp3-minimal.jp-TreeView.jp-TableView {
6
+ button.jp-Button.jp-mod-minimal.jp-TreeView.jp-TreeView,
7
+ button.jp-Button.jp-mod-minimal.jp-TreeView.jp-TableView {
8
8
  display: flex;
9
9
  align-items: center;
10
10
  -webkit-transition: 0.4s;
@@ -12,20 +12,13 @@ button.jp-Button.bp3-button.bp3-minimal.jp-TreeView.jp-TableView {
12
12
  width: 35px;
13
13
  }
14
14
 
15
- button.jp-Button.bp3-button.bp3-minimal.jp-TreeView:hover,
16
- button.jp-Button.bp3-button.bp3-minimal.jp-TableView:hover,
17
- button.jp-Button.jp-mod-minimal.jp-PauseOnExceptions:hover {
18
- cursor: pointer;
19
- background-color: var(--jp-layout-color1);
20
- }
21
-
22
- .jp-ViewModeSelected .jp-Button.bp3-button.bp3-minimal.jp-Button,
23
- .jp-Button.bp3-button.bp3-minimal.jp-PauseOnExceptions.lm-mod-toggled {
15
+ .jp-ViewModeSelected .jp-Button,
16
+ .jp-PauseOnExceptions.lm-mod-toggled {
24
17
  background-color: var(--jp-inverse-layout-color3);
25
18
  }
26
19
 
27
- .jp-ViewModeSelected .jp-Button.bp3-button.bp3-minimal.jp-Button:hover,
28
- .jp-Button.bp3-button.bp3-minimal.jp-PauseOnExceptions.lm-mod-toggled:hover {
20
+ .jp-ViewModeSelected .jp-Button:hover,
21
+ .jp-PauseOnExceptions.lm-mod-toggled:hover {
29
22
  background-color: var(--jp-inverse-layout-color4);
30
23
  }
31
24
 
@@ -32,9 +32,9 @@
32
32
  }
33
33
 
34
34
  .jp-DebuggerKernelSource-filterBox {
35
- padding: 0px;
35
+ padding: 0;
36
36
  flex: 0 0 auto;
37
- margin: 0px 0px 0px 0px;
37
+ margin: 0;
38
38
  }
39
39
 
40
40
  .jp-DebuggerKernelSource-filterBox-hidden {
package/style/sidebar.css CHANGED
@@ -3,57 +3,10 @@
3
3
  | Distributed under the terms of the Modified BSD License.
4
4
  |----------------------------------------------------------------------------*/
5
5
 
6
- .jp-DebuggerSidebar {
7
- --jp-debugger-header-height: 24px;
8
- }
9
-
10
- .jp-DebuggerSidebar {
11
- color: var(--jp-ui-font-color1);
12
- background: var(--jp-layout-color1);
13
- font-size: var(--jp-ui-font-size1);
14
- }
15
-
16
- .jp-DebuggerSidebar .p-SplitPanel-child {
17
- z-index: auto;
18
- }
19
-
20
- .jp-DebuggerSidebar .jp-DebuggerSidebar-body {
21
- height: calc(100% - var(--jp-debugger-header-height));
22
- }
23
-
24
- .jp-DebuggerSidebar .jp-stack-panel-header {
25
- border-bottom: solid var(--jp-border-width) var(--jp-border-color1);
26
- box-shadow: var(--jp-toolbar-box-shadow);
27
- display: flex;
28
- flex-direction: row;
29
- align-items: center;
30
- min-height: 24px;
31
- height: var(--jp-debugger-header-height);
32
- }
33
-
34
- .jp-DebuggerSidebar > .jp-stack-panel-header {
35
- background-color: var(--jp-layout-color1);
36
- }
37
-
38
- .jp-DebuggerSidebar .jp-stack-panel-header h2 {
39
- text-transform: uppercase;
6
+ .jp-SidePanel-header > h2 {
7
+ /* Set font-size to override default h2 sizing but keeping default --jp-ui-font-size0 */
8
+ font-size: 100%;
40
9
  font-weight: 600;
41
- font-size: var(--jp-ui-font-size0);
42
- color: var(--jp-ui-font-color1);
43
- padding-left: 8px;
44
- padding-right: 4px;
45
- }
46
-
47
- .jp-DebuggerSidebar-body .jp-stack-panel-header {
48
- border-top: solid var(--jp-border-width) var(--jp-border-color1);
49
- background-color: var(--jp-layout-color2);
50
- }
51
-
52
- .jp-DebuggerSidebar-body .jp-DebuggerVariables .jp-stack-panel-header {
53
- border-top: none;
54
- }
55
-
56
- .jp-DebuggerSidebar-body .jp-Toolbar {
57
- background: var(--jp-layout-color2);
58
- box-shadow: none;
10
+ margin: 0 auto 0 0;
11
+ padding: 4px 10px;
59
12
  }
package/style/sources.css CHANGED
@@ -3,6 +3,11 @@
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
+
6
11
  [data-jp-debugger='true'].jp-Editor .jp-mod-readOnly {
7
12
  background: var(--jp-layout-color2);
8
13
  height: 100%;
@@ -13,7 +18,7 @@
13
18
  }
14
19
 
15
20
  .jp-DebuggerSources-body {
16
- height: calc(100% - var(--jp-statusbar-height));
21
+ height: 100%;
17
22
  }
18
23
 
19
24
  .jp-DebuggerSources-header > div > span {
@@ -6,6 +6,8 @@
6
6
  .jp-DebuggerVariables {
7
7
  display: flex;
8
8
  flex-direction: column;
9
+ min-height: 50px;
10
+ padding-top: 3px;
9
11
  }
10
12
 
11
13
  .jp-DebuggerVariables-body {
@@ -27,7 +29,7 @@
27
29
  }
28
30
 
29
31
  .jp-DebuggerVariables-body ul li {
30
- padding: 5px 0 0 0;
32
+ padding: 5px 0 0;
31
33
  cursor: pointer;
32
34
  color: var(--jp-content-font-color1);
33
35
  display: flex;
@@ -48,7 +50,7 @@
48
50
  background: none;
49
51
  cursor: pointer;
50
52
  display: none;
51
- padding: 0px 8px;
53
+ padding: 0 8px;
52
54
  }
53
55
 
54
56
  .jp-DebuggerVariables-body .jp-DebuggerVariables-renderVariable:active {
@@ -68,10 +70,6 @@
68
70
  margin-left: 12px;
69
71
  }
70
72
 
71
- .jp-DebuggerVariables .jp-stack-panel-header .jp-Toolbar {
72
- margin-left: auto;
73
- }
74
-
75
73
  .jp-DebuggerVariables-grid {
76
74
  flex: 1 1 auto;
77
75
  }
@@ -1,16 +0,0 @@
1
- import { Toolbar } from '@jupyterlab/apputils';
2
- import { ITranslator } from '@jupyterlab/translation';
3
- import { Widget } from '@lumino/widgets';
4
- /**
5
- * The header for a Breakpoints Panel.
6
- */
7
- export declare class BreakpointsHeader extends Widget {
8
- /**
9
- * Instantiate a new BreakpointsHeader.
10
- */
11
- constructor(translator?: ITranslator);
12
- /**
13
- * The toolbar for the breakpoints header.
14
- */
15
- readonly toolbar: Toolbar<Widget>;
16
- }
@@ -1,30 +0,0 @@
1
- // Copyright (c) Jupyter Development Team.
2
- // Distributed under the terms of the Modified BSD License.
3
- import { Toolbar } from '@jupyterlab/apputils';
4
- import { nullTranslator } from '@jupyterlab/translation';
5
- import { PanelLayout, Widget } from '@lumino/widgets';
6
- /**
7
- * The header for a Breakpoints Panel.
8
- */
9
- export class BreakpointsHeader extends Widget {
10
- /**
11
- * Instantiate a new BreakpointsHeader.
12
- */
13
- constructor(translator) {
14
- super({ node: document.createElement('div') });
15
- /**
16
- * The toolbar for the breakpoints header.
17
- */
18
- this.toolbar = new Toolbar();
19
- this.node.classList.add('jp-stack-panel-header');
20
- translator = translator || nullTranslator;
21
- const trans = translator.load('jupyterlab');
22
- const title = new Widget({ node: document.createElement('h2') });
23
- title.node.textContent = trans.__('Breakpoints');
24
- const layout = new PanelLayout();
25
- layout.addWidget(title);
26
- layout.addWidget(this.toolbar);
27
- this.layout = layout;
28
- }
29
- }
30
- //# sourceMappingURL=header.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/panels/breakpoints/header.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,MAAM;IAC3C;;OAEG;IACH,YAAY,UAAwB;QAClC,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAejD;;WAEG;QACM,YAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAjB/B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QAEjD,UAAU,GAAG,UAAU,IAAI,cAAc,CAAC;QAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE5C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC;QAEjD,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAMF"}
@@ -1,16 +0,0 @@
1
- import { Toolbar } from '@jupyterlab/apputils';
2
- import { ITranslator } from '@jupyterlab/translation';
3
- import { Widget } from '@lumino/widgets';
4
- /**
5
- * The header for a Callstack Panel.
6
- */
7
- export declare class CallstackHeader extends Widget {
8
- /**
9
- * Instantiate a new CallstackHeader.
10
- */
11
- constructor(translator?: ITranslator);
12
- /**
13
- * The toolbar for the callstack header.
14
- */
15
- readonly toolbar: Toolbar<Widget>;
16
- }
@@ -1,30 +0,0 @@
1
- // Copyright (c) Jupyter Development Team.
2
- // Distributed under the terms of the Modified BSD License.
3
- import { Toolbar } from '@jupyterlab/apputils';
4
- import { nullTranslator } from '@jupyterlab/translation';
5
- import { PanelLayout, Widget } from '@lumino/widgets';
6
- /**
7
- * The header for a Callstack Panel.
8
- */
9
- export class CallstackHeader extends Widget {
10
- /**
11
- * Instantiate a new CallstackHeader.
12
- */
13
- constructor(translator) {
14
- super({ node: document.createElement('div') });
15
- /**
16
- * The toolbar for the callstack header.
17
- */
18
- this.toolbar = new Toolbar();
19
- this.node.classList.add('jp-stack-panel-header');
20
- translator = translator || nullTranslator;
21
- const trans = translator.load('jupyterlab');
22
- const title = new Widget({ node: document.createElement('h2') });
23
- title.node.textContent = trans.__('Callstack');
24
- const layout = new PanelLayout();
25
- layout.addWidget(title);
26
- layout.addWidget(this.toolbar);
27
- this.layout = layout;
28
- }
29
- }
30
- //# sourceMappingURL=header.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/panels/callstack/header.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,MAAM;IACzC;;OAEG;IACH,YAAY,UAAwB;QAClC,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAejD;;WAEG;QACM,YAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAjB/B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QAEjD,UAAU,GAAG,UAAU,IAAI,cAAc,CAAC;QAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE5C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;QAE/C,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAMF"}
@@ -1,19 +0,0 @@
1
- import { Toolbar } from '@jupyterlab/apputils';
2
- import { ITranslator } from '@jupyterlab/translation';
3
- import { Widget } from '@lumino/widgets';
4
- import { IDebugger } from '../../tokens';
5
- /**
6
- * The header for a Kernel Source Panel.
7
- */
8
- export declare class KernelSourcesHeader extends Widget {
9
- /**
10
- * Instantiate a new SourcesHeader.
11
- *
12
- * @param model The model for the Sources.
13
- */
14
- constructor(model: IDebugger.Model.IKernelSources, translator?: ITranslator);
15
- /**
16
- * The toolbar for the sources header.
17
- */
18
- readonly toolbar: Toolbar<Widget>;
19
- }
@@ -1,33 +0,0 @@
1
- // Copyright (c) Jupyter Development Team.
2
- // Distributed under the terms of the Modified BSD License.
3
- import { Toolbar } from '@jupyterlab/apputils';
4
- import { nullTranslator } from '@jupyterlab/translation';
5
- import { PanelLayout, Widget } from '@lumino/widgets';
6
- /**
7
- * The header for a Kernel Source Panel.
8
- */
9
- export class KernelSourcesHeader extends Widget {
10
- /**
11
- * Instantiate a new SourcesHeader.
12
- *
13
- * @param model The model for the Sources.
14
- */
15
- constructor(model, translator) {
16
- super({ node: document.createElement('div') });
17
- /**
18
- * The toolbar for the sources header.
19
- */
20
- this.toolbar = new Toolbar();
21
- this.node.classList.add('jp-stack-panel-header');
22
- translator = translator || nullTranslator;
23
- const trans = translator.load('jupyterlab');
24
- const layout = new PanelLayout();
25
- this.layout = layout;
26
- const title = new Widget({ node: document.createElement('h2') });
27
- title.node.textContent = trans.__('Kernel Sources');
28
- layout.addWidget(title);
29
- layout.addWidget(this.toolbar);
30
- this.addClass('jp-DebuggerSources-header');
31
- }
32
- }
33
- //# sourceMappingURL=header.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/panels/kernelSources/header.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAItD;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,MAAM;IAC7C;;;;OAIG;IACH,YAAY,KAAqC,EAAE,UAAwB;QACzE,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAkBjD;;WAEG;QACM,YAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QApB/B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QAEjD,UAAU,GAAG,UAAU,IAAI,cAAc,CAAC;QAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE5C,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC;QAEpD,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAE/B,IAAI,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC;IAC7C,CAAC;CAMF"}
@@ -1,19 +0,0 @@
1
- import { Toolbar } from '@jupyterlab/apputils';
2
- import { ITranslator } from '@jupyterlab/translation';
3
- import { Widget } from '@lumino/widgets';
4
- import { IDebugger } from '../../tokens';
5
- /**
6
- * The header for a Source Panel.
7
- */
8
- export declare class SourcesHeader extends Widget {
9
- /**
10
- * Instantiate a new SourcesHeader.
11
- *
12
- * @param model The model for the Sources.
13
- */
14
- constructor(model: IDebugger.Model.ISources, translator?: ITranslator);
15
- /**
16
- * The toolbar for the sources header.
17
- */
18
- readonly toolbar: Toolbar<Widget>;
19
- }
@@ -1,48 +0,0 @@
1
- // Copyright (c) Jupyter Development Team.
2
- // Distributed under the terms of the Modified BSD License.
3
- import { ReactWidget, Toolbar, UseSignal } from '@jupyterlab/apputils';
4
- import { nullTranslator } from '@jupyterlab/translation';
5
- import { PanelLayout, Widget } from '@lumino/widgets';
6
- import React from 'react';
7
- /**
8
- * The header for a Source Panel.
9
- */
10
- export class SourcesHeader extends Widget {
11
- /**
12
- * Instantiate a new SourcesHeader.
13
- *
14
- * @param model The model for the Sources.
15
- */
16
- constructor(model, translator) {
17
- super({ node: document.createElement('div') });
18
- /**
19
- * The toolbar for the sources header.
20
- */
21
- this.toolbar = new Toolbar();
22
- this.node.classList.add('jp-stack-panel-header');
23
- translator = translator || nullTranslator;
24
- const trans = translator.load('jupyterlab');
25
- const layout = new PanelLayout();
26
- this.layout = layout;
27
- const title = new Widget({ node: document.createElement('h2') });
28
- title.node.textContent = trans.__('Source');
29
- const sourcePath = ReactWidget.create(React.createElement(SourcePathComponent, { model: model }));
30
- layout.addWidget(title);
31
- layout.addWidget(this.toolbar);
32
- layout.addWidget(sourcePath);
33
- this.addClass('jp-DebuggerSources-header');
34
- }
35
- }
36
- /**
37
- * A React component to display the path to a source.
38
- *
39
- * @param {object} props The component props.
40
- * @param props.model The model for the sources.
41
- */
42
- const SourcePathComponent = ({ model }) => {
43
- return (React.createElement(UseSignal, { signal: model.currentSourceChanged, initialSender: model }, (model) => {
44
- var _a, _b;
45
- 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 : ''));
46
- }));
47
- };
48
- //# sourceMappingURL=header.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/panels/sources/header.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEvE,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAItD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,MAAM;IACvC;;;;OAIG;IACH,YAAY,KAA+B,EAAE,UAAwB;QACnE,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAuBjD;;WAEG;QACM,YAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAzB/B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QAEjD,UAAU,GAAG,UAAU,IAAI,cAAc,CAAC;QAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE5C,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;QAE5C,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CACnC,oBAAC,mBAAmB,IAAC,KAAK,EAAE,KAAK,GAAI,CACtC,CAAC;QAEF,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAE7B,IAAI,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC;IAC7C,CAAC;CAMF;AAED;;;;;GAKG;AACH,MAAM,mBAAmB,GAAG,CAAC,EAC3B,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"}
@@ -1,16 +0,0 @@
1
- import { Toolbar } from '@jupyterlab/apputils';
2
- import { ITranslator } from '@jupyterlab/translation';
3
- import { Widget } from '@lumino/widgets';
4
- /**
5
- * The header for a Variables Panel.
6
- */
7
- export declare class VariablesHeader extends Widget {
8
- /**
9
- * Instantiate a new VariablesHeader.
10
- */
11
- constructor(translator?: ITranslator);
12
- /**
13
- * The toolbar for the callstack header.
14
- */
15
- readonly toolbar: Toolbar<Widget>;
16
- }
@@ -1,30 +0,0 @@
1
- // Copyright (c) Jupyter Development Team.
2
- // Distributed under the terms of the Modified BSD License.
3
- import { Toolbar } from '@jupyterlab/apputils';
4
- import { nullTranslator } from '@jupyterlab/translation';
5
- import { PanelLayout, Widget } from '@lumino/widgets';
6
- /**
7
- * The header for a Variables Panel.
8
- */
9
- export class VariablesHeader extends Widget {
10
- /**
11
- * Instantiate a new VariablesHeader.
12
- */
13
- constructor(translator) {
14
- super({ node: document.createElement('div') });
15
- /**
16
- * The toolbar for the callstack header.
17
- */
18
- this.toolbar = new Toolbar();
19
- this.node.classList.add('jp-stack-panel-header');
20
- translator = translator || nullTranslator;
21
- const trans = translator.load('jupyterlab');
22
- const title = new Widget({ node: document.createElement('h2') });
23
- title.node.textContent = trans.__('Variables');
24
- const layout = new PanelLayout();
25
- layout.addWidget(title);
26
- layout.addWidget(this.toolbar);
27
- this.layout = layout;
28
- }
29
- }
30
- //# sourceMappingURL=header.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/panels/variables/header.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,MAAM;IACzC;;OAEG;IACH,YAAY,UAAwB;QAClC,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAejD;;WAEG;QACM,YAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAjB/B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QAEjD,UAAU,GAAG,UAAU,IAAI,cAAc,CAAC;QAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAE5C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;QAE/C,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACxB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAMF"}