@datalayer/jupyter-react 0.0.1
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/LICENSE +21 -0
- package/README.md +56 -0
- package/lib/examples/Example.d.ts +1 -0
- package/lib/examples/Example.js +8 -0
- package/lib/examples/Example.js.map +1 -0
- package/lib/examples/MuiSetup.d.ts +5 -0
- package/lib/examples/MuiSetup.js +13 -0
- package/lib/examples/MuiSetup.js.map +1 -0
- package/lib/examples/bootstrap/All.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/All.bootstrap.js +84 -0
- package/lib/examples/bootstrap/All.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Cell.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Cell.bootstrap.js +12 -0
- package/lib/examples/bootstrap/Cell.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/FileBrowser.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/FileBrowser.bootstrap.js +10 -0
- package/lib/examples/bootstrap/FileBrowser.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Gallery.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Gallery.bootstrap.js +18 -0
- package/lib/examples/bootstrap/Gallery.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/IPyWidgets.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/IPyWidgets.bootstrap.js +12 -0
- package/lib/examples/bootstrap/IPyWidgets.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Lumino.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Lumino.bootstrap.js +11 -0
- package/lib/examples/bootstrap/Lumino.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Notebook.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Notebook.bootstrap.js +22 -0
- package/lib/examples/bootstrap/Notebook.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/NotebookCustom.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/NotebookCustom.bootstrap.js +7 -0
- package/lib/examples/bootstrap/NotebookCustom.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Outputs.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Outputs.bootstrap.js +154 -0
- package/lib/examples/bootstrap/Outputs.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Terminal.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Terminal.bootstrap.js +13 -0
- package/lib/examples/bootstrap/Terminal.bootstrap.js.map +1 -0
- package/lib/examples/controls/CellControl.d.ts +3 -0
- package/lib/examples/controls/CellControl.js +15 -0
- package/lib/examples/controls/CellControl.js.map +1 -0
- package/lib/examples/controls/CommandsControl.d.ts +3 -0
- package/lib/examples/controls/CommandsControl.js +12 -0
- package/lib/examples/controls/CommandsControl.js.map +1 -0
- package/lib/examples/controls/ConsoleControl.d.ts +3 -0
- package/lib/examples/controls/ConsoleControl.js +12 -0
- package/lib/examples/controls/ConsoleControl.js.map +1 -0
- package/lib/examples/controls/DialogControl.d.ts +2 -0
- package/lib/examples/controls/DialogControl.js +7 -0
- package/lib/examples/controls/DialogControl.js.map +1 -0
- package/lib/examples/controls/FileBrowserControl.d.ts +3 -0
- package/lib/examples/controls/FileBrowserControl.js +12 -0
- package/lib/examples/controls/FileBrowserControl.js.map +1 -0
- package/lib/examples/controls/InitControl.d.ts +2 -0
- package/lib/examples/controls/InitControl.js +7 -0
- package/lib/examples/controls/InitControl.js.map +1 -0
- package/lib/examples/controls/NotebookControl.d.ts +3 -0
- package/lib/examples/controls/NotebookControl.js +16 -0
- package/lib/examples/controls/NotebookControl.js.map +1 -0
- package/lib/examples/controls/OutputControl.d.ts +3 -0
- package/lib/examples/controls/OutputControl.js +7 -0
- package/lib/examples/controls/OutputControl.js.map +1 -0
- package/lib/examples/controls/SettingsControl.d.ts +3 -0
- package/lib/examples/controls/SettingsControl.js +12 -0
- package/lib/examples/controls/SettingsControl.js.map +1 -0
- package/lib/examples/controls/SimpleControl.d.ts +2 -0
- package/lib/examples/controls/SimpleControl.js +7 -0
- package/lib/examples/controls/SimpleControl.js.map +1 -0
- package/lib/examples/controls/TerminalControl.d.ts +3 -0
- package/lib/examples/controls/TerminalControl.js +22 -0
- package/lib/examples/controls/TerminalControl.js.map +1 -0
- package/lib/examples/examples/cell/CellExample.d.ts +2 -0
- package/lib/examples/examples/cell/CellExample.js +42 -0
- package/lib/examples/examples/cell/CellExample.js.map +1 -0
- package/lib/examples/examples/gallery/GalleryExample.d.ts +2 -0
- package/lib/examples/examples/gallery/GalleryExample.js +154 -0
- package/lib/examples/examples/gallery/GalleryExample.js.map +1 -0
- package/lib/examples/examples/ipywidgets/IpyWidgetsExample.d.ts +4 -0
- package/lib/examples/examples/ipywidgets/IpyWidgetsExample.js +156 -0
- package/lib/examples/examples/ipywidgets/IpyWidgetsExample.js.map +1 -0
- package/lib/examples/examples/lumino/LuminoAdapter.css +34 -0
- package/lib/examples/examples/lumino/LuminoAdapter.d.ts +9 -0
- package/lib/examples/examples/lumino/LuminoAdapter.js +70 -0
- package/lib/examples/examples/lumino/LuminoAdapter.js.map +1 -0
- package/lib/examples/examples/lumino/LuminoExample.d.ts +2 -0
- package/lib/examples/examples/lumino/LuminoExample.js +10 -0
- package/lib/examples/examples/lumino/LuminoExample.js.map +1 -0
- package/lib/examples/examples/notebook/NotebookCustomHeader.d.ts +2 -0
- package/lib/examples/examples/notebook/NotebookCustomHeader.js +39 -0
- package/lib/examples/examples/notebook/NotebookCustomHeader.js.map +1 -0
- package/lib/examples/examples/notebook/NotebookExample.d.ts +1 -0
- package/lib/examples/examples/notebook/NotebookExample.js +24 -0
- package/lib/examples/examples/notebook/NotebookExample.js.map +1 -0
- package/lib/examples/theme/Layers.d.ts +2 -0
- package/lib/examples/theme/Layers.js +15 -0
- package/lib/examples/theme/Layers.js.map +1 -0
- package/lib/examples/theme/Layers.svg +14 -0
- package/lib/examples/theme/muiLightTheme.d.ts +8 -0
- package/lib/examples/theme/muiLightTheme.js +169 -0
- package/lib/examples/theme/muiLightTheme.js.map +1 -0
- package/lib/examples/theme/vintage.project.json +172 -0
- package/lib/examples/theme/westeros.project.json +168 -0
- package/lib/examples/theme/wonderland.project.json +168 -0
- package/lib/index.d.ts +31 -0
- package/lib/index.js +45 -0
- package/lib/index.js.map +1 -0
- package/lib/ipywidgets/IPyWidgetsAttached.d.ts +8 -0
- package/lib/ipywidgets/IPyWidgetsAttached.js +15 -0
- package/lib/ipywidgets/IPyWidgetsAttached.js.map +1 -0
- package/lib/ipywidgets/IPyWidgetsClassicManager.d.ts +18 -0
- package/lib/ipywidgets/IPyWidgetsClassicManager.js +76 -0
- package/lib/ipywidgets/IPyWidgetsClassicManager.js.map +1 -0
- package/lib/ipywidgets/IPyWidgetsJupyterLabPlugin.d.ts +15 -0
- package/lib/ipywidgets/IPyWidgetsJupyterLabPlugin.js +178 -0
- package/lib/ipywidgets/IPyWidgetsJupyterLabPlugin.js.map +1 -0
- package/lib/ipywidgets/IpyWidgetsComponent.d.ts +4 -0
- package/lib/ipywidgets/IpyWidgetsComponent.js +9 -0
- package/lib/ipywidgets/IpyWidgetsComponent.js.map +1 -0
- package/lib/ipywidgets/IpyWidgetsManager.d.ts +11 -0
- package/lib/ipywidgets/IpyWidgetsManager.js +71 -0
- package/lib/ipywidgets/IpyWidgetsManager.js.map +1 -0
- package/lib/ipywidgets/plotly/Figure.d.ts +587 -0
- package/lib/ipywidgets/plotly/Figure.js +1697 -0
- package/lib/ipywidgets/plotly/Figure.js.map +1 -0
- package/lib/ipywidgets/plotly/index.d.ts +2 -0
- package/lib/ipywidgets/plotly/index.js +4 -0
- package/lib/ipywidgets/plotly/index.js.map +1 -0
- package/lib/ipywidgets/plotly/jupyterlab-plugin.d.ts +5 -0
- package/lib/ipywidgets/plotly/jupyterlab-plugin.js +12 -0
- package/lib/ipywidgets/plotly/jupyterlab-plugin.js.map +1 -0
- package/lib/ipywidgets/plotly/version.d.ts +8 -0
- package/lib/ipywidgets/plotly/version.js +16 -0
- package/lib/ipywidgets/plotly/version.js.map +1 -0
- package/lib/jupyter/AuthError.d.ts +7 -0
- package/lib/jupyter/AuthError.js +8 -0
- package/lib/jupyter/AuthError.js.map +1 -0
- package/lib/jupyter/Handlers.d.ts +8 -0
- package/lib/jupyter/Handlers.js +50 -0
- package/lib/jupyter/Handlers.js.map +1 -0
- package/lib/jupyter/Jupyter.d.ts +23 -0
- package/lib/jupyter/Jupyter.js +35 -0
- package/lib/jupyter/Jupyter.js.map +1 -0
- package/lib/jupyter/JupyterConfig.d.ts +37 -0
- package/lib/jupyter/JupyterConfig.js +59 -0
- package/lib/jupyter/JupyterConfig.js.map +1 -0
- package/lib/jupyter/JupyterContext.d.ts +35 -0
- package/lib/jupyter/JupyterContext.js +64 -0
- package/lib/jupyter/JupyterContext.js.map +1 -0
- package/lib/lumino/LuminoAttached.d.ts +9 -0
- package/lib/lumino/LuminoAttached.js +23 -0
- package/lib/lumino/LuminoAttached.js.map +1 -0
- package/lib/lumino/LuminoDetached.d.ts +9 -0
- package/lib/lumino/LuminoDetached.js +13 -0
- package/lib/lumino/LuminoDetached.js.map +1 -0
- package/lib/lumino/LuminoObservable.d.ts +6 -0
- package/lib/lumino/LuminoObservable.js +16 -0
- package/lib/lumino/LuminoObservable.js.map +1 -0
- package/lib/lumino/LuminoReactPortal.d.ts +180 -0
- package/lib/lumino/LuminoReactPortal.js +195 -0
- package/lib/lumino/LuminoReactPortal.js.map +1 -0
- package/lib/lumino/LuminoRedux.d.ts +8 -0
- package/lib/lumino/LuminoRedux.js +2 -0
- package/lib/lumino/LuminoRedux.js.map +1 -0
- package/lib/services/Services.d.ts +17 -0
- package/lib/services/Services.js +41 -0
- package/lib/services/Services.js.map +1 -0
- package/lib/services/kernel/Kernel.d.ts +18 -0
- package/lib/services/kernel/Kernel.js +95 -0
- package/lib/services/kernel/Kernel.js.map +1 -0
- package/lib/services/kernel/KernelModel.d.ts +18 -0
- package/lib/services/kernel/KernelModel.js +52 -0
- package/lib/services/kernel/KernelModel.js.map +1 -0
- package/lib/state/AllState.d.ts +8 -0
- package/lib/state/AllState.js +24 -0
- package/lib/state/AllState.js.map +1 -0
- package/lib/state/InjectableStore.d.ts +9 -0
- package/lib/state/InjectableStore.js +27 -0
- package/lib/state/InjectableStore.js.map +1 -0
- package/lib/state/init/Init.d.ts +3 -0
- package/lib/state/init/Init.js +12 -0
- package/lib/state/init/Init.js.map +1 -0
- package/lib/state/init/InitRedux.d.ts +21 -0
- package/lib/state/init/InitRedux.js +50 -0
- package/lib/state/init/InitRedux.js.map +1 -0
- package/lib/widgets/cell/CellAdapter.css +16 -0
- package/lib/widgets/cell/CellAdapter.d.ts +18 -0
- package/lib/widgets/cell/CellAdapter.js +160 -0
- package/lib/widgets/cell/CellAdapter.js.map +1 -0
- package/lib/widgets/cell/CellLumino.d.ts +9 -0
- package/lib/widgets/cell/CellLumino.js +48 -0
- package/lib/widgets/cell/CellLumino.js.map +1 -0
- package/lib/widgets/cell/CellState.d.ts +22 -0
- package/lib/widgets/cell/CellState.js +79 -0
- package/lib/widgets/cell/CellState.js.map +1 -0
- package/lib/widgets/commands/CommandsAdapter.css +3 -0
- package/lib/widgets/commands/CommandsAdapter.d.ts +9 -0
- package/lib/widgets/commands/CommandsAdapter.js +36 -0
- package/lib/widgets/commands/CommandsAdapter.js.map +1 -0
- package/lib/widgets/commands/CommandsLumino.d.ts +2 -0
- package/lib/widgets/commands/CommandsLumino.js +9 -0
- package/lib/widgets/commands/CommandsLumino.js.map +1 -0
- package/lib/widgets/commands/CommandsState.d.ts +19 -0
- package/lib/widgets/commands/CommandsState.js +50 -0
- package/lib/widgets/commands/CommandsState.js.map +1 -0
- package/lib/widgets/console/ConsoleAdapter.css +4 -0
- package/lib/widgets/console/ConsoleAdapter.d.ts +11 -0
- package/lib/widgets/console/ConsoleAdapter.js +82 -0
- package/lib/widgets/console/ConsoleAdapter.js.map +1 -0
- package/lib/widgets/console/ConsoleLumino.d.ts +2 -0
- package/lib/widgets/console/ConsoleLumino.js +9 -0
- package/lib/widgets/console/ConsoleLumino.js.map +1 -0
- package/lib/widgets/console/ConsoleState.d.ts +19 -0
- package/lib/widgets/console/ConsoleState.js +50 -0
- package/lib/widgets/console/ConsoleState.js.map +1 -0
- package/lib/widgets/dialog/DialogAdapter.css +0 -0
- package/lib/widgets/dialog/DialogAdapter.d.ts +10 -0
- package/lib/widgets/dialog/DialogAdapter.js +19 -0
- package/lib/widgets/dialog/DialogAdapter.js.map +1 -0
- package/lib/widgets/dialog/DialogLumino.d.ts +2 -0
- package/lib/widgets/dialog/DialogLumino.js +13 -0
- package/lib/widgets/dialog/DialogLumino.js.map +1 -0
- package/lib/widgets/editor/CodeMirrorEditor.d.ts +7 -0
- package/lib/widgets/editor/CodeMirrorEditor.js +62 -0
- package/lib/widgets/editor/CodeMirrorEditor.js.map +1 -0
- package/lib/widgets/filebrowser/FileBrowser.d.ts +2 -0
- package/lib/widgets/filebrowser/FileBrowser.js +60 -0
- package/lib/widgets/filebrowser/FileBrowser.js.map +1 -0
- package/lib/widgets/filebrowser/FileBrowserAdapter.css +8 -0
- package/lib/widgets/filebrowser/FileBrowserAdapter.d.ts +13 -0
- package/lib/widgets/filebrowser/FileBrowserAdapter.js +267 -0
- package/lib/widgets/filebrowser/FileBrowserAdapter.js.map +1 -0
- package/lib/widgets/filebrowser/FileBrowserLumino.d.ts +2 -0
- package/lib/widgets/filebrowser/FileBrowserLumino.js +9 -0
- package/lib/widgets/filebrowser/FileBrowserLumino.js.map +1 -0
- package/lib/widgets/filebrowser/FileBrowserState.d.ts +19 -0
- package/lib/widgets/filebrowser/FileBrowserState.js +50 -0
- package/lib/widgets/filebrowser/FileBrowserState.js.map +1 -0
- package/lib/widgets/notebook/NotebookAdapter.css +27 -0
- package/lib/widgets/notebook/NotebookAdapter.d.ts +26 -0
- package/lib/widgets/notebook/NotebookAdapter.js +187 -0
- package/lib/widgets/notebook/NotebookAdapter.js.map +1 -0
- package/lib/widgets/notebook/NotebookCommands.d.ts +7 -0
- package/lib/widgets/notebook/NotebookCommands.js +349 -0
- package/lib/widgets/notebook/NotebookCommands.js.map +1 -0
- package/lib/widgets/notebook/NotebookLumino.d.ts +19 -0
- package/lib/widgets/notebook/NotebookLumino.js +75 -0
- package/lib/widgets/notebook/NotebookLumino.js.map +1 -0
- package/lib/widgets/notebook/NotebookState.d.ts +43 -0
- package/lib/widgets/notebook/NotebookState.js +114 -0
- package/lib/widgets/notebook/NotebookState.js.map +1 -0
- package/lib/widgets/notebook/NotebookToolbar.d.ts +2 -0
- package/lib/widgets/notebook/NotebookToolbar.js +24 -0
- package/lib/widgets/notebook/NotebookToolbar.js.map +1 -0
- package/lib/widgets/notebook/extension/CellSidebar.d.ts +7 -0
- package/lib/widgets/notebook/extension/CellSidebar.js +23 -0
- package/lib/widgets/notebook/extension/CellSidebar.js.map +1 -0
- package/lib/widgets/notebook/extension/CellSidebarDefault.d.ts +2 -0
- package/lib/widgets/notebook/extension/CellSidebarDefault.js +47 -0
- package/lib/widgets/notebook/extension/CellSidebarDefault.js.map +1 -0
- package/lib/widgets/notebook/extension/ContentFactoryWithSidebar.d.ts +14 -0
- package/lib/widgets/notebook/extension/ContentFactoryWithSidebar.js +20 -0
- package/lib/widgets/notebook/extension/ContentFactoryWithSidebar.js.map +1 -0
- package/lib/widgets/notebook/extension/NotebookInputPrompt.d.ts +21 -0
- package/lib/widgets/notebook/extension/NotebookInputPrompt.js +67 -0
- package/lib/widgets/notebook/extension/NotebookInputPrompt.js.map +1 -0
- package/lib/widgets/outputs/OutputAdapter.css +0 -0
- package/lib/widgets/outputs/OutputAdapter.d.ts +21 -0
- package/lib/widgets/outputs/OutputAdapter.js +75 -0
- package/lib/widgets/outputs/OutputAdapter.js.map +1 -0
- package/lib/widgets/outputs/OutputLumino.d.ts +16 -0
- package/lib/widgets/outputs/OutputLumino.js +56 -0
- package/lib/widgets/outputs/OutputLumino.js.map +1 -0
- package/lib/widgets/outputs/OutputState.d.ts +19 -0
- package/lib/widgets/outputs/OutputState.js +50 -0
- package/lib/widgets/outputs/OutputState.js.map +1 -0
- package/lib/widgets/settings/SettingsAdapter.css +0 -0
- package/lib/widgets/settings/SettingsAdapter.d.ts +10 -0
- package/lib/widgets/settings/SettingsAdapter.js +16 -0
- package/lib/widgets/settings/SettingsAdapter.js.map +1 -0
- package/lib/widgets/settings/SettingsLumino.d.ts +2 -0
- package/lib/widgets/settings/SettingsLumino.js +11 -0
- package/lib/widgets/settings/SettingsLumino.js.map +1 -0
- package/lib/widgets/settings/SettingsState.d.ts +19 -0
- package/lib/widgets/settings/SettingsState.js +50 -0
- package/lib/widgets/settings/SettingsState.js.map +1 -0
- package/lib/widgets/terminal/TerminalAdapter.css +3 -0
- package/lib/widgets/terminal/TerminalAdapter.d.ts +13 -0
- package/lib/widgets/terminal/TerminalAdapter.js +28 -0
- package/lib/widgets/terminal/TerminalAdapter.js.map +1 -0
- package/lib/widgets/terminal/TerminalLumino.d.ts +2 -0
- package/lib/widgets/terminal/TerminalLumino.js +17 -0
- package/lib/widgets/terminal/TerminalLumino.js.map +1 -0
- package/lib/widgets/terminal/TerminalState.d.ts +17 -0
- package/lib/widgets/terminal/TerminalState.js +45 -0
- package/lib/widgets/terminal/TerminalState.js.map +1 -0
- package/package.json +163 -0
- package/style/index.css +3 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { DockPanel, BoxPanel, Widget } from '@lumino/widgets';
|
|
2
|
+
import '@lumino/default-theme/style/index.css';
|
|
3
|
+
import './LuminoAdapter.css';
|
|
4
|
+
class SimpleContent extends Widget {
|
|
5
|
+
constructor(name) {
|
|
6
|
+
super({ node: SimpleContent.createNode() });
|
|
7
|
+
this.setFlag(Widget.Flag.DisallowLayout);
|
|
8
|
+
this.addClass('content');
|
|
9
|
+
this.addClass(name.toLowerCase());
|
|
10
|
+
this.title.label = name;
|
|
11
|
+
this.title.closable = true;
|
|
12
|
+
this.title.caption = `Long description for: ${name}`;
|
|
13
|
+
}
|
|
14
|
+
static createNode() {
|
|
15
|
+
let node = document.createElement('div');
|
|
16
|
+
let content = document.createElement('div');
|
|
17
|
+
let input = document.createElement('input');
|
|
18
|
+
input.placeholder = 'Placeholder...';
|
|
19
|
+
content.appendChild(input);
|
|
20
|
+
node.appendChild(content);
|
|
21
|
+
return node;
|
|
22
|
+
}
|
|
23
|
+
get inputNode() {
|
|
24
|
+
return this.node.getElementsByTagName('input')[0];
|
|
25
|
+
}
|
|
26
|
+
onActivateRequest(msg) {
|
|
27
|
+
if (this.isAttached) {
|
|
28
|
+
this.inputNode.focus();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
class SimpleAdapter {
|
|
33
|
+
constructor() {
|
|
34
|
+
const colors = [
|
|
35
|
+
'Red',
|
|
36
|
+
'Yellow',
|
|
37
|
+
'Green',
|
|
38
|
+
'Blue'
|
|
39
|
+
];
|
|
40
|
+
this.simplePanel = new BoxPanel();
|
|
41
|
+
this.simplePanel.id = 'simple-panel';
|
|
42
|
+
// this.simplePanel.direction = 'top-to-bottom';
|
|
43
|
+
this.simplePanel.spacing = 0;
|
|
44
|
+
// Dock Panel
|
|
45
|
+
const r1 = new SimpleContent('Red');
|
|
46
|
+
const b1 = new SimpleContent('Blue');
|
|
47
|
+
const g1 = new SimpleContent('Green');
|
|
48
|
+
const y1 = new SimpleContent('Yellow');
|
|
49
|
+
const r2 = new SimpleContent('Red');
|
|
50
|
+
const b2 = new SimpleContent('Blue');
|
|
51
|
+
const dockPanel = new DockPanel();
|
|
52
|
+
dockPanel.addWidget(r1);
|
|
53
|
+
dockPanel.addWidget(b1, { mode: 'split-right', ref: r1 });
|
|
54
|
+
dockPanel.addWidget(y1, { mode: 'split-bottom', ref: b1 });
|
|
55
|
+
dockPanel.addWidget(g1, { mode: 'split-left', ref: y1 });
|
|
56
|
+
dockPanel.addWidget(r2, { ref: b1 });
|
|
57
|
+
dockPanel.addWidget(b2, { mode: 'split-right', ref: y1 });
|
|
58
|
+
dockPanel.id = 'simple-dock-panel';
|
|
59
|
+
this.simplePanel.addWidget(dockPanel);
|
|
60
|
+
for (let i = 0; i < 20; i++) {
|
|
61
|
+
const c = new SimpleContent(colors[Math.floor(Math.random() * 4)]);
|
|
62
|
+
this.simplePanel.addWidget(c);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
get panel() {
|
|
66
|
+
return this.simplePanel;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
export default SimpleAdapter;
|
|
70
|
+
//# sourceMappingURL=LuminoAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LuminoAdapter.js","sourceRoot":"","sources":["../../../../src/examples/examples/lumino/LuminoAdapter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9D,OAAO,uCAAuC,CAAC;AAE/C,OAAO,qBAAqB,CAAA;AAE5B,MAAM,aAAc,SAAQ,MAAM;IAEhC,YAAY,IAAY;QACtB,KAAK,CAAC,EAAE,IAAI,EAAE,aAAa,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACzB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QAClC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC;QACxB,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;QAC3B,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,yBAAyB,IAAI,EAAE,CAAC;IACvD,CAAC;IAED,MAAM,CAAC,UAAU;QACf,IAAI,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,OAAO,GAAG,QAAQ,CAAC,a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oAdapter from './LuminoAdapter';
|
|
5
|
+
const LuminoExample = () => {
|
|
6
|
+
const lumino = useMemo(() => new LuminoAdapter(), []);
|
|
7
|
+
return _jsx(LuminoAttached, { children: lumino.panel }, void 0);
|
|
8
|
+
};
|
|
9
|
+
export default LuminoExample;
|
|
10
|
+
//# sourceMappingURL=LuminoExample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LuminoExample.js","sourceRoot":"","sources":["../../../../src/examples/examples/lumino/LuminoExample.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAC5D,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,MAAM,aAAa,GAAG,GAAG,EAAE;IACzB,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,aAAa,EAAE,EAAE,EAAE,CAAC,CAAC;IACtD,OAAO,KAAC,cAAc,cAAE,MAAM,CAAC,KAAK,WAAkB,CAAA;AACxD,CAAC,CAAA;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { useDispatch } from "react-redux";
|
|
4
|
+
import Button from '@mui/material/Button';
|
|
5
|
+
import Grid from '@mui/material/Grid';
|
|
6
|
+
import Switch from '@mui/material/Switch';
|
|
7
|
+
import FormGroup from '@mui/material/FormGroup';
|
|
8
|
+
import Typography from '@mui/material/Typography';
|
|
9
|
+
import FormControlLabel from '@mui/material/FormControlLabel';
|
|
10
|
+
import AddCircleOutlineIcon from '@mui/icons-material/AddCircleOutline';
|
|
11
|
+
import PlayCircleOutlineIcon from '@mui/icons-material/PlayCircleOutline';
|
|
12
|
+
import SaveOutlined from '@mui/icons-material/SaveOutlined';
|
|
13
|
+
import StopOutlined from '@mui/icons-material/StopOutlined';
|
|
14
|
+
import QuestionAnswerOutlined from '@mui/icons-material/QuestionAnswerOutlined';
|
|
15
|
+
import { notebookActions, selectNotebook, TerminalLumino } from '../../../index';
|
|
16
|
+
const terminal = _jsx(TerminalLumino, {}, void 0);
|
|
17
|
+
const Header = () => {
|
|
18
|
+
const [state, setState] = useState({
|
|
19
|
+
terminal: false,
|
|
20
|
+
});
|
|
21
|
+
const dispatch = useDispatch();
|
|
22
|
+
const notebook = selectNotebook();
|
|
23
|
+
const handleChange = (event) => {
|
|
24
|
+
setState(Object.assign(Object.assign({}, state), { [event.target.name]: event.target.checked }));
|
|
25
|
+
};
|
|
26
|
+
return (_jsxs(_Fragment, { children: [_jsxs(Grid, Object.assign({ container: true, spacing: 3, style: { padding: '30px 110px 0px 30px' } }, { children: [_jsx(Grid, Object.assign({ item: true, xs: 6 }, { children: _jsxs(Grid, Object.assign({ container: true, justifyItems: "flex-start" }, { children: [_jsx(Button, Object.assign({ variant: "text", color: "primary", startIcon: _jsx(AddCircleOutlineIcon, {}, void 0), onClick: () => dispatch(notebookActions.insertBelow.started()) }, { children: "Text" }), void 0),
|
|
27
|
+
_jsx(Button, Object.assign({ variant: "text", color: "primary", startIcon: _jsx(AddCircleOutlineIcon, {}, void 0), onClick: () => dispatch(notebookActions.insertBelow.started()) }, { children: "Markdown" }), void 0),
|
|
28
|
+
_jsx(Button, Object.assign({ variant: "text", color: "primary", startIcon: _jsx(AddCircleOutlineIcon, {}, void 0), onClick: () => dispatch(notebookActions.insertBelow.started()) }, { children: "Code" }), void 0),
|
|
29
|
+
_jsx(FormGroup, Object.assign({ row: true, style: { paddingLeft: 10 } }, { children: _jsx(FormControlLabel, { control: _jsx(Switch, { checked: state.terminal, onChange: handleChange, name: "terminal" }, void 0), label: _jsx(Typography, Object.assign({ variant: "body2", display: "block" }, { children: "Terminal" }), void 0) }, void 0) }), void 0)] }), void 0) }), void 0),
|
|
30
|
+
_jsx(Grid, Object.assign({ item: true, xs: 6 }, { children: _jsxs(Grid, Object.assign({ container: true, justifyItems: "flex-end" }, { children: [_jsx(Button, Object.assign({ variant: "outlined", color: "primary", startIcon: _jsx(SaveOutlined, {}, void 0), onClick: () => dispatch(notebookActions.save.started()) }, { children: "Save" }), void 0),
|
|
31
|
+
(notebook.kernelStatus === 'idle') &&
|
|
32
|
+
_jsx(Button, Object.assign({ variant: "outlined", color: "primary", startIcon: _jsx(PlayCircleOutlineIcon, {}, void 0), onClick: () => dispatch(notebookActions.runAll.started()) }, { children: "Run all" }), void 0),
|
|
33
|
+
(notebook.kernelStatus === 'busy') &&
|
|
34
|
+
_jsx(Button, Object.assign({ variant: "outlined", color: "secondary", startIcon: _jsx(StopOutlined, {}, void 0), onClick: () => dispatch(notebookActions.interrupt.started()) }, { children: "Stop" }), void 0),
|
|
35
|
+
((notebook.kernelStatus !== 'idle') && (notebook.kernelStatus !== 'busy')) &&
|
|
36
|
+
_jsx(Button, { variant: "outlined", color: "primary", startIcon: _jsx(QuestionAnswerOutlined, {}, void 0) }, void 0)] }), void 0) }), void 0)] }), void 0), state.terminal && terminal] }, void 0));
|
|
37
|
+
};
|
|
38
|
+
export default Header;
|
|
39
|
+
//# sourceMappingURL=NotebookCustomHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotebookCustomHeader.js","sourceRoot":"","sources":["../../../../src/examples/examples/notebook/NotebookCustomHeader.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,gBAAgB,MAAM,gCAAg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M,CAAC,OAAO,EAAE,CAAC,qCAGlD;gCAEV,CAAC,QAAQ,CAAC,YAAY,KAAK,MAAM,CAAC;oCACjC,KAAC,MAAM,kBACL,OAAO,EAAC,UAAU,EAClB,KAAK,EAAC,WAAW,EACjB,SAAS,EAAE,KAAC,YAAY,aAAG,EAC3B,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,kCAGrD;gCAEV,CAAC,CAAC,QAAQ,CAAC,YAAY,KAAK,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,KAAK,MAAM,CAAC,CAAC;oCACzE,KAAC,MAAM,IACL,OAAO,EAAC,UAAU,EAClB,KAAK,EAAC,SAAS,EACf,SAAS,EAAE,KAAC,sBAAsB,aAAG,WAE9B,aAEN,YACF,aACF,EACN,KAAK,CAAC,QAAQ,IAAI,QAAQ,YAC1B,CACJ,CAAA;AACH,CAAC,CAAA;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function NotebookExample(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import Paper from '@mui/material/Paper';
|
|
3
|
+
import { makeStyles } from '@mui/styles';
|
|
4
|
+
import { Jupyter, NotebookLumino } from '../../../index';
|
|
5
|
+
import Header from './NotebookCustomHeader';
|
|
6
|
+
const useStyles = makeStyles((theme) => ({
|
|
7
|
+
root: {
|
|
8
|
+
// marginLeft: theme.spacing(16),
|
|
9
|
+
// marginRight: theme.spacing(16),
|
|
10
|
+
minWidth: '500px',
|
|
11
|
+
display: 'flex',
|
|
12
|
+
flexWrap: 'wrap',
|
|
13
|
+
'& > *': {
|
|
14
|
+
// margin: theme.spacing(1),
|
|
15
|
+
// width: theme.spacing(16),
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
}));
|
|
19
|
+
export default function NotebookExample() {
|
|
20
|
+
const classes = useStyles();
|
|
21
|
+
return (_jsx(Jupyter, Object.assign({ collaborative: false, terminals: true }, { children: _jsx("div", Object.assign({ className: classes.root }, { children: _jsxs(Paper, Object.assign({ elevation: 3, style: { width: '100%' } }, { children: [_jsx(Header, {}, void 0),
|
|
22
|
+
_jsx(NotebookLumino, { path: 'ping.ipynb', ipywidgets: 'lab' }, void 0)] }), void 0) }), void 0) }), void 0));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=NotebookExample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotebookExample.js","sourceRoot":"","sources":["../../../../src/examples/examples/notebook/NotebookExample.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,qBAAqB,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAE5C,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,KAAY,EAAE,EAAE,CAC5C,CAAC;IACC,IAAI,EAAE;QACV,sCAAsC;QACtC,uCAAuC;QACjC,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE;QACf,mCAAmC;QACnC,mCAAmC;SAC5B;KACF;CACF,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,eAAe;IACrC,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAC5B,OAAO,CACL,KAAC,OAAO,kBAAC,aAAa,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,gBAC5C,4BAAK,SAAS,EAAE,OAAO,CAAC,IAAI,gBAC1B,MAAC,KAAK,kBAAC,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,iBAC3C,KAAC,MAAM,aAAG;oBACV,KAAC,cAAc,IAAC,IAAI,EAAC,YAAY,EAAC,UAAU,EAAC,KAAK,WAAG,aAC/C,YACJ,YACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { color0 } from './../theme/muiLightTheme';
|
|
3
|
+
import { color1 } from './../theme/muiLightTheme';
|
|
4
|
+
import { color2 } from './../theme/muiLightTheme';
|
|
5
|
+
import { color3 } from './../theme/muiLightTheme';
|
|
6
|
+
import { color4 } from './../theme/muiLightTheme';
|
|
7
|
+
const Layers = (props) => (_jsxs("svg", Object.assign({ xmlns: "http://www.w3.org/2000/layers", width: "100%", height: "20" }, { children: [_jsxs("linearGradient", Object.assign({ id: "a" }, { children: [_jsx("stop", { offset: "0", stopColor: color0 }, void 0),
|
|
8
|
+
_jsx("stop", { offset: "1", stopColor: color1 }, void 0)] }), void 0),
|
|
9
|
+
_jsxs("linearGradient", Object.assign({ id: "b" }, { children: [_jsx("stop", { offset: "0", stopColor: color2 }, void 0),
|
|
10
|
+
_jsx("stop", { offset: ".5", stopColor: color3 }, void 0),
|
|
11
|
+
_jsx("stop", { offset: "1", stopColor: color4 }, void 0)] }), void 0),
|
|
12
|
+
_jsx("rect", { fill: "url(#b)", width: "100%", height: "20" }, void 0),
|
|
13
|
+
_jsx("rect", { fill: "url(#a)", width: "100%", height: "10" }, void 0)] }), void 0));
|
|
14
|
+
export default Layers;
|
|
15
|
+
//# sourceMappingURL=Layers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Layers.js","sourceRoot":"","sources":["../../../src/examples/theme/Layers.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,MAAM,MAAM,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAC7B,6BAAK,KAAK,EAAC,+BAA+B,EAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,IAAI,iBACjE,wCAAgB,EAAE,EAAC,GAAG,iBACpB,eAAM,MAAM,EAAC,GAAG,EAAC,SAAS,EAAE,MAAM,WAAI;gBACtC,eAAM,MAAM,EAAC,GAAG,EAAC,SAAS,EAAE,MAAM,WAAI,aACvB;QACjB,wCAAgB,EAAE,EAAC,GAAG,iBACpB,eAAM,MAAM,EAAC,GAAG,EAAC,SAAS,EAAE,MAAM,WAAI;gBACtC,eAAM,MAAM,EAAC,IAAI,EAAC,SAAS,EAAE,MAAM,WAAI;gBACvC,eAAM,MAAM,EAAC,GAAG,EAAC,SAAS,EAAE,MAAM,WAAI,aACvB;QACjB,eAAM,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,IAAI,WAAG;QAChD,eAAM,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,IAAI,WAAG,aAC5C,CACP,CAAA;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/layers" width="auto" height="68">
|
|
3
|
+
<linearGradient id="a">
|
|
4
|
+
<stop offset="0" stop-color="#f0f"/>
|
|
5
|
+
<stop offset="1" stop-color="#0ff"/>
|
|
6
|
+
</linearGradient>
|
|
7
|
+
<linearGradient id="b">
|
|
8
|
+
<stop offset="0" stop-color="#0f0"/>
|
|
9
|
+
<stop offset=".5" stop-color="#fffb7e"/>
|
|
10
|
+
<stop offset="1" stop-color="#f00"/>
|
|
11
|
+
</linearGradient>
|
|
12
|
+
<rect fill="url(#b)" width="100%" height="68"/>
|
|
13
|
+
<rect fill="url(#a)" width="100%" height="34"/>
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Theme } from '@mui/system';
|
|
2
|
+
export declare const color0: string;
|
|
3
|
+
export declare const color1: string;
|
|
4
|
+
export declare const color2: string;
|
|
5
|
+
export declare const color3: string;
|
|
6
|
+
export declare const color4: string;
|
|
7
|
+
declare const muiLightTheme: Theme;
|
|
8
|
+
export default muiLightTheme;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { createTheme } from '@mui/material/styles';
|
|
2
|
+
import { createBreakpoints } from '@mui/system';
|
|
3
|
+
import createMixins from '@mui/material/styles/createMixins';
|
|
4
|
+
import createPalette from '@mui/material/styles/createPalette';
|
|
5
|
+
import createTypography from '@mui/material/styles/createTypography';
|
|
6
|
+
import shadows from '@mui/material/styles/shadows';
|
|
7
|
+
import { createSpacing } from '@mui/system';
|
|
8
|
+
// import green from '@mui/material/colors/green';
|
|
9
|
+
// import blue from '@mui/material/colors/blue';
|
|
10
|
+
// import yellow from '@mui/material/colors/yellow';
|
|
11
|
+
// import red from '@mui/material/colors/red';
|
|
12
|
+
import vintage from './vintage.project.json';
|
|
13
|
+
const colors = vintage.theme.color;
|
|
14
|
+
export const color0 = colors[0];
|
|
15
|
+
export const color1 = colors[1];
|
|
16
|
+
export const color2 = colors[2];
|
|
17
|
+
export const color3 = colors[3];
|
|
18
|
+
export const color4 = colors[4];
|
|
19
|
+
const white = '#fff';
|
|
20
|
+
const direction = 'ltr';
|
|
21
|
+
const breakpoints = createBreakpoints({
|
|
22
|
+
unit: 'px',
|
|
23
|
+
step: 2,
|
|
24
|
+
});
|
|
25
|
+
const palette = createPalette({
|
|
26
|
+
// mode: "dark",
|
|
27
|
+
/*
|
|
28
|
+
primary: {
|
|
29
|
+
light: blue.A200,
|
|
30
|
+
main: blue.A400,
|
|
31
|
+
dark: white,
|
|
32
|
+
contrastText: yellow.A400,
|
|
33
|
+
},
|
|
34
|
+
*/
|
|
35
|
+
primary: {
|
|
36
|
+
// light: '#00acc1',
|
|
37
|
+
light: color0,
|
|
38
|
+
// main: '#00acc1',
|
|
39
|
+
main: color1,
|
|
40
|
+
dark: white,
|
|
41
|
+
// contrastText: yellow.A400,
|
|
42
|
+
contrastText: color2,
|
|
43
|
+
},
|
|
44
|
+
/*
|
|
45
|
+
secondary: {
|
|
46
|
+
light: white,
|
|
47
|
+
main: green.A400,
|
|
48
|
+
dark: white,
|
|
49
|
+
contrastText: blue.A700,
|
|
50
|
+
},
|
|
51
|
+
*/
|
|
52
|
+
secondary: {
|
|
53
|
+
light: white,
|
|
54
|
+
// main: '#4caf50',
|
|
55
|
+
main: color3,
|
|
56
|
+
dark: white,
|
|
57
|
+
// contrastText: yellow.A400,
|
|
58
|
+
contrastText: color4,
|
|
59
|
+
},
|
|
60
|
+
/*
|
|
61
|
+
error: {
|
|
62
|
+
light: white,
|
|
63
|
+
main: red.A400,
|
|
64
|
+
dark: white,
|
|
65
|
+
contrastText: yellow.A400
|
|
66
|
+
},
|
|
67
|
+
*/
|
|
68
|
+
error: {
|
|
69
|
+
light: white,
|
|
70
|
+
// main: '#f44336',
|
|
71
|
+
main: colors[5],
|
|
72
|
+
dark: white,
|
|
73
|
+
// contrastText: yellow.A400
|
|
74
|
+
contrastText: colors[6]
|
|
75
|
+
},
|
|
76
|
+
background: {
|
|
77
|
+
default: white,
|
|
78
|
+
paper: white
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
// const shadows: Shadow = [];
|
|
82
|
+
const shape = {
|
|
83
|
+
borderRadius: 3,
|
|
84
|
+
};
|
|
85
|
+
const spacing = createSpacing(1);
|
|
86
|
+
const transitions = {};
|
|
87
|
+
const typography = createTypography(palette, {
|
|
88
|
+
fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
|
|
89
|
+
fontSize: 13,
|
|
90
|
+
fontWeightLight: 300,
|
|
91
|
+
fontWeightRegular: 400,
|
|
92
|
+
fontWeightMedium: 500,
|
|
93
|
+
fontWeightBold: 700,
|
|
94
|
+
// Tell Material-UI what's the font-size on the html element.
|
|
95
|
+
// 16px is the default font-size used by browsers.
|
|
96
|
+
htmlFontSize: 16,
|
|
97
|
+
// Apply the CSS properties to all the variants.
|
|
98
|
+
allVariants: {
|
|
99
|
+
textTransform: 'inherit',
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
const zIndex = {};
|
|
103
|
+
const mixins = createMixins(breakpoints, spacing, {});
|
|
104
|
+
const components = {
|
|
105
|
+
MuiButtonBase: {
|
|
106
|
+
defaultProps: {
|
|
107
|
+
disableRipple: true, // 'ondulation'
|
|
108
|
+
// borderRadius: 0,
|
|
109
|
+
},
|
|
110
|
+
styleOverrides: {
|
|
111
|
+
root: {
|
|
112
|
+
// borderRadius: 0,
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
MuiButton: {
|
|
117
|
+
defaultProps: {
|
|
118
|
+
size: 'small',
|
|
119
|
+
},
|
|
120
|
+
styleOverrides: {
|
|
121
|
+
// root: {
|
|
122
|
+
// borderRadius: 0,
|
|
123
|
+
// },
|
|
124
|
+
// sizeSmall: {
|
|
125
|
+
// // https://github.com/mui-org/material-ui/pull/24253
|
|
126
|
+
// backgroundColor: "red"
|
|
127
|
+
// },
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
MuiSwitch: {
|
|
131
|
+
defaultProps: {
|
|
132
|
+
size: 'small',
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
MuiSlider: {
|
|
136
|
+
defaultProps: {
|
|
137
|
+
size: 'small',
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
/*
|
|
141
|
+
containedPrimary: {
|
|
142
|
+
color: blue.A700,
|
|
143
|
+
backgroundColor: white,
|
|
144
|
+
'&:hover': {
|
|
145
|
+
backgroundColor: white,
|
|
146
|
+
// Reset on touch devices, it doesn't add specificity
|
|
147
|
+
'@media (hover: none)': {
|
|
148
|
+
backgroundColor: white,
|
|
149
|
+
},
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
*/
|
|
153
|
+
};
|
|
154
|
+
const themeOptions = {
|
|
155
|
+
shape: shape,
|
|
156
|
+
breakpoints: breakpoints,
|
|
157
|
+
direction: direction,
|
|
158
|
+
mixins: mixins,
|
|
159
|
+
palette: palette,
|
|
160
|
+
shadows: shadows,
|
|
161
|
+
spacing: spacing,
|
|
162
|
+
transitions: transitions,
|
|
163
|
+
components: components,
|
|
164
|
+
typography: typography,
|
|
165
|
+
zIndex: zIndex,
|
|
166
|
+
};
|
|
167
|
+
const muiLightTheme = createTheme(themeOptions);
|
|
168
|
+
export default muiLightTheme;
|
|
169
|
+
//# sourceMappingURL=muiLightTheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"muiLightTheme.js","sourceRoot":"","sources":["../../../src/examples/theme/muiLightTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAE,iBAAiB,EAAe,MAAM,aAAa,CAAC;AAC7D,OAAO,YAAwB,MAAM,mCAAmC,CAAC;AACzE,OAAO,aAA0B,MAAM,oCAAoC,CAAC;AAC5E,OAAO,gBAAgC,MAAM,uCAAuC,CAAC;AACrF,OAAO,OAAO,MAAM,8BAA8B,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAW,MAAM,aAAa,CAAC;AAIrD,kDAAkD;AAClD,gDAAgD;AAChD,oDAAoD;AACpD,8CAA8C;AAE9C,OAAO,OAAO,MAAM,wBAAwB,CAAC;AAE7C,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;AAEnC,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,CAAC,MAAM,MAAM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WAAW;IACxB,UAAU,EAAE,UAAU;IACtB,UAAU,EAAE,UAAU;IACtB,MAAM,EAAE,MAAM;CACf,CAAC;AAEF,MAAM,aAAa,GAAU,WAAW,CACtC,YAAmB,CACpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"themeName": "vintage",
|
|
4
|
+
"theme": {
|
|
5
|
+
"seriesCnt": 4,
|
|
6
|
+
"backgroundColor": "rgba(254,248,239,1)",
|
|
7
|
+
"titleColor": "#333333",
|
|
8
|
+
"subtitleColor": "#aaaaaa",
|
|
9
|
+
"textColorShow": false,
|
|
10
|
+
"textColor": "#333",
|
|
11
|
+
"markTextColor": "#eee",
|
|
12
|
+
"color": [
|
|
13
|
+
"#d87c7c",
|
|
14
|
+
"#919e8b",
|
|
15
|
+
"#d7ab82",
|
|
16
|
+
"#6e7074",
|
|
17
|
+
"#61a0a8",
|
|
18
|
+
"#efa18d",
|
|
19
|
+
"#787464",
|
|
20
|
+
"#cc7e63",
|
|
21
|
+
"#724e58",
|
|
22
|
+
"#4b565b"
|
|
23
|
+
],
|
|
24
|
+
"borderColor": "#ccc",
|
|
25
|
+
"borderWidth": 0,
|
|
26
|
+
"visualMapColor": [
|
|
27
|
+
"#bf444c",
|
|
28
|
+
"#d88273",
|
|
29
|
+
"#f6efa6"
|
|
30
|
+
],
|
|
31
|
+
"legendTextColor": "#333333",
|
|
32
|
+
"kColor": "#c23531",
|
|
33
|
+
"kColor0": "#314656",
|
|
34
|
+
"kBorderColor": "#c23531",
|
|
35
|
+
"kBorderColor0": "#314656",
|
|
36
|
+
"kBorderWidth": 1,
|
|
37
|
+
"lineWidth": 2,
|
|
38
|
+
"symbolSize": 4,
|
|
39
|
+
"symbol": "emptyCircle",
|
|
40
|
+
"symbolBorderWidth": 1,
|
|
41
|
+
"lineSmooth": false,
|
|
42
|
+
"graphLineWidth": 1,
|
|
43
|
+
"graphLineColor": "#aaa",
|
|
44
|
+
"mapLabelColor": "#000000",
|
|
45
|
+
"mapLabelColorE": "rgb(100,0,0)",
|
|
46
|
+
"mapBorderColor": "#444444",
|
|
47
|
+
"mapBorderColorE": "#444444",
|
|
48
|
+
"mapBorderWidth": 0.5,
|
|
49
|
+
"mapBorderWidthE": 1,
|
|
50
|
+
"mapAreaColor": "#eeeeee",
|
|
51
|
+
"mapAreaColorE": "rgba(255,215,0,0.8)",
|
|
52
|
+
"axes": [
|
|
53
|
+
{
|
|
54
|
+
"type": "all",
|
|
55
|
+
"name": "通用坐标轴",
|
|
56
|
+
"axisLineShow": true,
|
|
57
|
+
"axisLineColor": "#333",
|
|
58
|
+
"axisTickShow": true,
|
|
59
|
+
"axisTickColor": "#333",
|
|
60
|
+
"axisLabelShow": true,
|
|
61
|
+
"axisLabelColor": "#333",
|
|
62
|
+
"splitLineShow": true,
|
|
63
|
+
"splitLineColor": [
|
|
64
|
+
"#ccc"
|
|
65
|
+
],
|
|
66
|
+
"splitAreaShow": false,
|
|
67
|
+
"splitAreaColor": [
|
|
68
|
+
"rgba(250,250,250,0.3)",
|
|
69
|
+
"rgba(200,200,200,0.3)"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"type": "category",
|
|
74
|
+
"name": "类目坐标轴",
|
|
75
|
+
"axisLineShow": true,
|
|
76
|
+
"axisLineColor": "#333",
|
|
77
|
+
"axisTickShow": true,
|
|
78
|
+
"axisTickColor": "#333",
|
|
79
|
+
"axisLabelShow": true,
|
|
80
|
+
"axisLabelColor": "#333",
|
|
81
|
+
"splitLineShow": false,
|
|
82
|
+
"splitLineColor": [
|
|
83
|
+
"#ccc"
|
|
84
|
+
],
|
|
85
|
+
"splitAreaShow": false,
|
|
86
|
+
"splitAreaColor": [
|
|
87
|
+
"rgba(250,250,250,0.3)",
|
|
88
|
+
"rgba(200,200,200,0.3)"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "value",
|
|
93
|
+
"name": "数值坐标轴",
|
|
94
|
+
"axisLineShow": true,
|
|
95
|
+
"axisLineColor": "#333",
|
|
96
|
+
"axisTickShow": true,
|
|
97
|
+
"axisTickColor": "#333",
|
|
98
|
+
"axisLabelShow": true,
|
|
99
|
+
"axisLabelColor": "#333",
|
|
100
|
+
"splitLineShow": true,
|
|
101
|
+
"splitLineColor": [
|
|
102
|
+
"#ccc"
|
|
103
|
+
],
|
|
104
|
+
"splitAreaShow": false,
|
|
105
|
+
"splitAreaColor": [
|
|
106
|
+
"rgba(250,250,250,0.3)",
|
|
107
|
+
"rgba(200,200,200,0.3)"
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"type": "log",
|
|
112
|
+
"name": "对数坐标轴",
|
|
113
|
+
"axisLineShow": true,
|
|
114
|
+
"axisLineColor": "#333",
|
|
115
|
+
"axisTickShow": true,
|
|
116
|
+
"axisTickColor": "#333",
|
|
117
|
+
"axisLabelShow": true,
|
|
118
|
+
"axisLabelColor": "#333",
|
|
119
|
+
"splitLineShow": true,
|
|
120
|
+
"splitLineColor": [
|
|
121
|
+
"#ccc"
|
|
122
|
+
],
|
|
123
|
+
"splitAreaShow": false,
|
|
124
|
+
"splitAreaColor": [
|
|
125
|
+
"rgba(250,250,250,0.3)",
|
|
126
|
+
"rgba(200,200,200,0.3)"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"type": "time",
|
|
131
|
+
"name": "时间坐标轴",
|
|
132
|
+
"axisLineShow": true,
|
|
133
|
+
"axisLineColor": "#333",
|
|
134
|
+
"axisTickShow": true,
|
|
135
|
+
"axisTickColor": "#333",
|
|
136
|
+
"axisLabelShow": true,
|
|
137
|
+
"axisLabelColor": "#333",
|
|
138
|
+
"splitLineShow": true,
|
|
139
|
+
"splitLineColor": [
|
|
140
|
+
"#ccc"
|
|
141
|
+
],
|
|
142
|
+
"splitAreaShow": false,
|
|
143
|
+
"splitAreaColor": [
|
|
144
|
+
"rgba(250,250,250,0.3)",
|
|
145
|
+
"rgba(200,200,200,0.3)"
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"axisSeperateSetting": true,
|
|
150
|
+
"toolboxColor": "#999999",
|
|
151
|
+
"toolboxEmphasisColor": "#666666",
|
|
152
|
+
"tooltipAxisColor": "#cccccc",
|
|
153
|
+
"tooltipAxisWidth": 1,
|
|
154
|
+
"timelineLineColor": "#293c55",
|
|
155
|
+
"timelineLineWidth": 1,
|
|
156
|
+
"timelineItemColor": "#293c55",
|
|
157
|
+
"timelineItemColorE": "#a9334c",
|
|
158
|
+
"timelineCheckColor": "#e43c59",
|
|
159
|
+
"timelineCheckBorderColor": "#c23531",
|
|
160
|
+
"timelineItemBorderWidth": 1,
|
|
161
|
+
"timelineControlColor": "#293c55",
|
|
162
|
+
"timelineControlBorderColor": "#293c55",
|
|
163
|
+
"timelineControlBorderWidth": 0.5,
|
|
164
|
+
"timelineLabelColor": "#293c55",
|
|
165
|
+
"datazoomBackgroundColor": "rgba(47,69,84,0)",
|
|
166
|
+
"datazoomDataColor": "rgba(47,69,84,0.3)",
|
|
167
|
+
"datazoomFillColor": "rgba(167,183,204,0.4)",
|
|
168
|
+
"datazoomHandleColor": "#a7b7cc",
|
|
169
|
+
"datazoomHandleWidth": "100",
|
|
170
|
+
"datazoomLabelColor": "#333333"
|
|
171
|
+
}
|
|
172
|
+
}
|