@difizen/libro-core 0.1.1 → 0.1.3
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/es/add-cell/index.less +1 -1
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts +1 -2
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts.map +1 -1
- package/es/add-cell/libro-add-cell-slot-contribution.js +12 -6
- package/es/add-cell/libro-add-cell-view.d.ts +4 -4
- package/es/add-cell/libro-add-cell-view.d.ts.map +1 -1
- package/es/add-cell/libro-add-cell-view.js +4 -6
- package/es/cell/libro-cell-contribution.d.ts +1 -2
- package/es/cell/libro-cell-contribution.d.ts.map +1 -1
- package/es/cell/libro-cell-contribution.js +14 -8
- package/es/cell/libro-cell-model.d.ts +9 -0
- package/es/cell/libro-cell-model.d.ts.map +1 -1
- package/es/cell/libro-cell-model.js +53 -11
- package/es/cell/libro-cell-protocol.d.ts +2 -0
- package/es/cell/libro-cell-protocol.d.ts.map +1 -1
- package/es/cell/libro-cell-view.d.ts +6 -2
- package/es/cell/libro-cell-view.d.ts.map +1 -1
- package/es/cell/libro-cell-view.js +54 -24
- package/es/cell/libro-edit-cell-view.d.ts +6 -12
- package/es/cell/libro-edit-cell-view.d.ts.map +1 -1
- package/es/cell/libro-edit-cell-view.js +9 -4
- package/es/cell/libro-executable-cell-view.d.ts +2 -0
- package/es/cell/libro-executable-cell-view.d.ts.map +1 -1
- package/es/cell/libro-executable-cell-view.js +4 -1
- package/es/collapse-service.d.ts +1 -1
- package/es/collapse-service.d.ts.map +1 -1
- package/es/collapse-service.js +1 -1
- package/es/command/document-commands.d.ts +1 -2
- package/es/command/document-commands.d.ts.map +1 -1
- package/es/command/document-commands.js +3 -2
- package/es/command/kernel-command.d.ts.map +1 -1
- package/es/command/kernel-command.js +3 -0
- package/es/command/libro-command-contribution.d.ts +0 -1
- package/es/command/libro-command-contribution.d.ts.map +1 -1
- package/es/command/libro-command-contribution.js +179 -129
- package/es/command/libro-command-register.d.ts +0 -1
- package/es/command/libro-command-register.d.ts.map +1 -1
- package/es/command/libro-command-register.js +13 -7
- package/es/command/notebook-commands.d.ts.map +1 -1
- package/es/command/notebook-commands.js +17 -4
- package/es/components/cell-protocol.d.ts +5 -5
- package/es/components/cell-protocol.d.ts.map +1 -1
- package/es/components/dnd-cell-item-render.d.ts +6 -2
- package/es/components/dnd-cell-item-render.d.ts.map +1 -1
- package/es/components/dnd-cell-item-render.js +194 -89
- package/es/components/dnd-component/custom-drag-layer.d.ts +1 -1
- package/es/components/dnd-component/custom-drag-layer.d.ts.map +1 -1
- package/es/components/dnd-component/custom-drag-layer.js +3 -4
- package/es/components/dnd-component/default-dnd-content.d.ts +2 -1
- package/es/components/dnd-component/default-dnd-content.d.ts.map +1 -1
- package/es/components/dnd-component/default-dnd-content.js +100 -44
- package/es/components/dnd-component/dnd-context.js +1 -1
- package/es/components/dnd-component/dnd-list.d.ts +9 -5
- package/es/components/dnd-component/dnd-list.d.ts.map +1 -1
- package/es/components/dnd-component/dnd-list.js +93 -26
- package/es/components/dnd-component/index.d.ts +1 -1
- package/es/components/dnd-component/index.d.ts.map +1 -1
- package/es/components/dnd-component/index.js +2 -2
- package/es/components/dnd-component/index.less +8 -0
- package/es/components/dnd-component/overscanIndices-getter.d.ts +22 -0
- package/es/components/dnd-component/overscanIndices-getter.d.ts.map +1 -0
- package/es/components/dnd-component/overscanIndices-getter.js +58 -0
- package/es/components/dnd-component/virtualized-manager.d.ts +19 -0
- package/es/components/dnd-component/virtualized-manager.d.ts.map +1 -0
- package/es/components/dnd-component/virtualized-manager.js +60 -0
- package/es/components/index.d.ts +2 -2
- package/es/components/index.d.ts.map +1 -1
- package/es/components/index.js +2 -2
- package/es/components/libro-virtualized-render.d.ts +15 -0
- package/es/components/libro-virtualized-render.d.ts.map +1 -0
- package/es/components/libro-virtualized-render.js +174 -0
- package/es/content/index.d.ts +1 -0
- package/es/content/index.d.ts.map +1 -1
- package/es/content/index.js +2 -1
- package/es/content/libro-content-contribution.d.ts +2 -2
- package/es/content/libro-content-contribution.d.ts.map +1 -1
- package/es/content/libro-content-contribution.js +2 -3
- package/es/content/libro-content-module.d.ts.map +1 -1
- package/es/content/libro-content-module.js +3 -2
- package/es/content/libro-content-protocol.d.ts +5 -0
- package/es/content/libro-content-protocol.d.ts.map +1 -1
- package/es/content/libro-content-protocol.js +2 -1
- package/es/content/libro-content-service.d.ts +5 -3
- package/es/content/libro-content-service.d.ts.map +1 -1
- package/es/content/libro-content-service.js +36 -8
- package/es/content/libro-save-content-contribution.d.ts +6 -0
- package/es/content/libro-save-content-contribution.d.ts.map +1 -0
- package/es/content/libro-save-content-contribution.js +27 -0
- package/es/formatter/index.d.ts +6 -0
- package/es/formatter/index.d.ts.map +1 -0
- package/es/formatter/index.js +5 -0
- package/es/formatter/libro-formatter-json-contribution.d.ts +18 -0
- package/es/formatter/libro-formatter-json-contribution.d.ts.map +1 -0
- package/es/formatter/libro-formatter-json-contribution.js +41 -0
- package/es/formatter/libro-formatter-manager.d.ts +16 -0
- package/es/formatter/libro-formatter-manager.d.ts.map +1 -0
- package/es/formatter/libro-formatter-manager.js +86 -0
- package/es/formatter/libro-formatter-module.d.ts +3 -0
- package/es/formatter/libro-formatter-module.d.ts.map +1 -0
- package/es/formatter/libro-formatter-module.js +7 -0
- package/es/formatter/libro-formatter-protocol.d.ts +37 -0
- package/es/formatter/libro-formatter-protocol.d.ts.map +1 -0
- package/es/formatter/libro-formatter-protocol.js +18 -0
- package/es/formatter/libro-formatter-string-contribution.d.ts +18 -0
- package/es/formatter/libro-formatter-string-contribution.d.ts.map +1 -0
- package/es/formatter/libro-formatter-string-contribution.js +41 -0
- package/es/formatter/libro-formatter-trans-default-contribution.d.ts +7 -0
- package/es/formatter/libro-formatter-trans-default-contribution.d.ts.map +1 -0
- package/es/formatter/libro-formatter-trans-default-contribution.js +19 -0
- package/es/index.d.ts +5 -1
- package/es/index.d.ts.map +1 -1
- package/es/index.js +6 -2
- package/es/index.less +135 -58
- package/es/libro-context-key.d.ts.map +1 -1
- package/es/libro-model.d.ts +13 -2
- package/es/libro-model.d.ts.map +1 -1
- package/es/libro-model.js +149 -70
- package/es/libro-protocol.d.ts +44 -2
- package/es/libro-protocol.d.ts.map +1 -1
- package/es/libro-protocol.js +16 -3
- package/es/libro-service.d.ts +1 -1
- package/es/libro-service.d.ts.map +1 -1
- package/es/libro-service.js +29 -20
- package/es/{configuration/libro-configuration-contribution.d.ts → libro-setting-contribution.d.ts} +2 -2
- package/es/libro-setting-contribution.d.ts.map +1 -0
- package/es/{configuration/libro-configuration-contribution.js → libro-setting-contribution.js} +8 -9
- package/es/{configuration/libro-configuration.d.ts → libro-setting.d.ts} +3 -2
- package/es/libro-setting.d.ts.map +1 -0
- package/es/{configuration/libro-configuration.js → libro-setting.js} +17 -7
- package/es/libro-view.d.ts +21 -8
- package/es/libro-view.d.ts.map +1 -1
- package/es/libro-view.js +477 -338
- package/es/material-from-designer.d.ts +3 -0
- package/es/material-from-designer.d.ts.map +1 -1
- package/es/material-from-designer.js +112 -1
- package/es/module.d.ts.map +1 -1
- package/es/module.js +20 -5
- package/es/output/output-area.d.ts +3 -4
- package/es/output/output-area.d.ts.map +1 -1
- package/es/output/output-area.js +23 -16
- package/es/output/output-contribution.d.ts +0 -1
- package/es/output/output-contribution.d.ts.map +1 -1
- package/es/output/output-contribution.js +14 -9
- package/es/output/output-model.d.ts +2 -2
- package/es/output/output-model.d.ts.map +1 -1
- package/es/output/output-model.js +2 -2
- package/es/output/output-protocol.d.ts.map +1 -1
- package/es/output/output-protocol.js +0 -2
- package/es/settings/index.d.ts +5 -0
- package/es/settings/index.d.ts.map +1 -0
- package/es/settings/index.js +4 -0
- package/es/settings/index.less +3 -0
- package/es/settings/module.d.ts +3 -0
- package/es/settings/module.d.ts.map +1 -0
- package/es/settings/module.js +4 -0
- package/es/settings/setting-editor/configuration-panel-view.d.ts +13 -0
- package/es/settings/setting-editor/configuration-panel-view.d.ts.map +1 -0
- package/es/settings/setting-editor/configuration-panel-view.js +115 -0
- package/es/settings/setting-editor/configuration-render-contribution.d.ts +6 -0
- package/es/settings/setting-editor/configuration-render-contribution.d.ts.map +1 -0
- package/es/settings/setting-editor/configuration-render-contribution.js +77 -0
- package/es/settings/setting-editor/default-node-render.d.ts +9 -0
- package/es/settings/setting-editor/default-node-render.d.ts.map +1 -0
- package/es/settings/setting-editor/default-node-render.js +79 -0
- package/es/settings/setting-editor/index.d.ts +7 -0
- package/es/settings/setting-editor/index.d.ts.map +1 -0
- package/es/settings/setting-editor/index.js +6 -0
- package/es/settings/setting-editor/index.less +12 -0
- package/es/settings/setting-editor/module.d.ts +3 -0
- package/es/settings/setting-editor/module.d.ts.map +1 -0
- package/es/settings/setting-editor/module.js +7 -0
- package/es/settings/setting-editor/setting-editor-view.d.ts +15 -0
- package/es/settings/setting-editor/setting-editor-view.d.ts.map +1 -0
- package/es/settings/setting-editor/setting-editor-view.js +169 -0
- package/es/settings/setting-editor/setting-tree-service.d.ts +9 -0
- package/es/settings/setting-editor/setting-tree-service.d.ts.map +1 -0
- package/es/settings/setting-editor/setting-tree-service.js +118 -0
- package/es/settings/setting-editor/setting-tree-view.d.ts +19 -0
- package/es/settings/setting-editor/setting-tree-view.d.ts.map +1 -0
- package/es/settings/setting-editor/setting-tree-view.js +88 -0
- package/es/settings/settings-contribution.d.ts +7 -0
- package/es/settings/settings-contribution.d.ts.map +1 -0
- package/es/settings/settings-contribution.js +36 -0
- package/es/settings/settings-modal.d.ts +5 -0
- package/es/settings/settings-modal.d.ts.map +1 -0
- package/es/settings/settings-modal.js +53 -0
- package/es/settings/settings-modal.less +3 -0
- package/es/settings/settings-protocol.d.ts +4 -0
- package/es/settings/settings-protocol.d.ts.map +1 -0
- package/es/settings/settings-protocol.js +5 -0
- package/es/slot/libro-slot-manager.d.ts +2 -2
- package/es/slot/libro-slot-manager.d.ts.map +1 -1
- package/es/slot/libro-slot-manager.js +14 -8
- package/es/slot/libro-slot-view.d.ts +3 -3
- package/es/slot/libro-slot-view.d.ts.map +1 -1
- package/es/slot/libro-slot-view.js +2 -2
- package/es/theme/libro-color-registry.d.ts.map +1 -1
- package/es/theme/libro-color-registry.js +7 -0
- package/es/toolbar/all-outputs-scroll-icon.d.ts +3 -0
- package/es/toolbar/all-outputs-scroll-icon.d.ts.map +1 -0
- package/es/toolbar/all-outputs-scroll-icon.js +10 -0
- package/es/toolbar/libro-toolbar.d.ts +2 -1
- package/es/toolbar/libro-toolbar.d.ts.map +1 -1
- package/es/toolbar/libro-toolbar.js +44 -8
- package/es/toolbar/restart-clear-outputs-modal.d.ts +1 -2
- package/es/toolbar/restart-clear-outputs-modal.d.ts.map +1 -1
- package/es/toolbar/restart-clear-outputs-modal.js +2 -2
- package/es/toolbar/shutdown-modal.d.ts +1 -2
- package/es/toolbar/shutdown-modal.d.ts.map +1 -1
- package/es/toolbar/shutdown-modal.js +2 -2
- package/es/toolbar/side-toolar-more-select.d.ts.map +1 -1
- package/es/toolbar/side-toolar-more-select.js +2 -2
- package/es/virtualized-manager-helper.d.ts +11 -0
- package/es/virtualized-manager-helper.d.ts.map +1 -0
- package/es/virtualized-manager-helper.js +51 -0
- package/es/virtualized-manager.d.ts +19 -0
- package/es/virtualized-manager.d.ts.map +1 -0
- package/es/virtualized-manager.js +61 -0
- package/package.json +9 -6
- package/src/add-cell/index.less +1 -1
- package/src/add-cell/libro-add-cell-slot-contribution.ts +1 -4
- package/src/add-cell/libro-add-cell-view.tsx +13 -6
- package/src/cell/libro-cell-contribution.ts +2 -6
- package/src/cell/libro-cell-model.ts +57 -4
- package/src/cell/libro-cell-protocol.ts +2 -0
- package/src/cell/libro-cell-view.tsx +21 -9
- package/src/cell/libro-edit-cell-view.tsx +10 -9
- package/src/cell/libro-executable-cell-view.ts +6 -1
- package/src/collapse-service.ts +1 -1
- package/src/command/document-commands.ts +3 -5
- package/src/command/kernel-command.ts +3 -0
- package/src/command/libro-command-contribution.ts +107 -91
- package/src/command/libro-command-register.ts +1 -4
- package/src/command/notebook-commands.ts +16 -3
- package/src/components/cell-protocol.ts +5 -5
- package/src/components/dnd-cell-item-render.tsx +239 -92
- package/src/components/dnd-component/custom-drag-layer.tsx +5 -6
- package/src/components/dnd-component/default-dnd-content.tsx +113 -42
- package/src/components/dnd-component/dnd-context.tsx +1 -1
- package/src/components/dnd-component/dnd-list.tsx +135 -43
- package/src/components/dnd-component/index.less +8 -0
- package/src/components/dnd-component/index.tsx +1 -1
- package/src/components/dnd-component/overscanIndices-getter.ts +92 -0
- package/src/components/dnd-component/virtualized-manager.ts +34 -0
- package/src/components/index.ts +2 -2
- package/src/components/libro-virtualized-render.tsx +178 -0
- package/src/content/index.ts +1 -0
- package/src/content/libro-content-contribution.ts +2 -3
- package/src/content/libro-content-module.ts +11 -3
- package/src/content/libro-content-protocol.ts +6 -0
- package/src/content/libro-content-service.ts +26 -8
- package/src/content/libro-save-content-contribution.ts +12 -0
- package/src/formatter/index.ts +5 -0
- package/src/formatter/libro-formatter-json-contribution.ts +42 -0
- package/src/formatter/libro-formatter-manager.ts +85 -0
- package/src/formatter/libro-formatter-module.ts +19 -0
- package/src/formatter/libro-formatter-protocol.ts +63 -0
- package/src/formatter/libro-formatter-string-contribution.ts +41 -0
- package/src/formatter/libro-formatter-trans-default-contribution.ts +15 -0
- package/src/index.less +135 -58
- package/src/index.tsx +6 -1
- package/src/libro-context-key.ts +3 -3
- package/src/libro-model.ts +87 -23
- package/src/libro-protocol.ts +81 -4
- package/src/libro-service.ts +4 -13
- package/src/{configuration/libro-configuration-contribution.ts → libro-setting-contribution.ts} +7 -8
- package/src/{configuration/libro-configuration.ts → libro-setting.ts} +18 -7
- package/src/libro-view.tsx +273 -141
- package/src/material-from-designer.tsx +93 -1
- package/src/module.ts +29 -7
- package/src/output/output-area.tsx +18 -12
- package/src/output/output-contribution.ts +2 -6
- package/src/output/output-model.tsx +3 -3
- package/src/output/output-protocol.ts +0 -1
- package/src/settings/index.less +3 -0
- package/src/settings/index.ts +4 -0
- package/src/settings/module.ts +8 -0
- package/src/settings/setting-editor/configuration-panel-view.tsx +89 -0
- package/src/settings/setting-editor/configuration-render-contribution.ts +81 -0
- package/src/settings/setting-editor/default-node-render.tsx +65 -0
- package/src/settings/setting-editor/index.less +12 -0
- package/src/settings/setting-editor/index.ts +6 -0
- package/src/settings/setting-editor/module.ts +17 -0
- package/src/settings/setting-editor/setting-editor-view.tsx +93 -0
- package/src/settings/setting-editor/setting-tree-service.ts +82 -0
- package/src/settings/setting-editor/setting-tree-view.tsx +95 -0
- package/src/settings/settings-contribution.tsx +24 -0
- package/src/settings/settings-modal.less +3 -0
- package/src/settings/settings-modal.tsx +50 -0
- package/src/settings/settings-protocol.ts +7 -0
- package/src/slot/libro-slot-manager.ts +1 -3
- package/src/slot/libro-slot-view.tsx +2 -5
- package/src/theme/libro-color-registry.ts +6 -0
- package/src/toolbar/all-outputs-scroll-icon.tsx +19 -0
- package/src/toolbar/libro-toolbar.tsx +30 -5
- package/src/toolbar/restart-clear-outputs-modal.tsx +3 -3
- package/src/toolbar/shutdown-modal.tsx +3 -3
- package/src/toolbar/side-toolar-more-select.tsx +2 -1
- package/src/virtualized-manager-helper.ts +29 -0
- package/src/virtualized-manager.ts +34 -0
- package/es/configuration/libro-configuration-contribution.d.ts.map +0 -1
- package/es/configuration/libro-configuration.d.ts.map +0 -1
package/es/index.less
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
// The prefix to use on all css classes from ant.
|
|
4
4
|
@ant-prefix: ant;
|
|
5
5
|
|
|
6
|
+
*,
|
|
7
|
+
*::before,
|
|
8
|
+
*::after {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
}
|
|
11
|
+
|
|
6
12
|
.libro-view {
|
|
7
13
|
position: relative;
|
|
8
14
|
display: flex;
|
|
@@ -32,18 +38,22 @@
|
|
|
32
38
|
display: flex;
|
|
33
39
|
width: 100%;
|
|
34
40
|
height: 100%;
|
|
35
|
-
padding: 0
|
|
41
|
+
padding: 0;
|
|
36
42
|
overflow-y: auto;
|
|
37
43
|
|
|
38
44
|
.libro-dnd-list-container {
|
|
39
45
|
height: 100%;
|
|
40
|
-
padding-top: 12px;
|
|
41
46
|
// overflow-y: auto;
|
|
47
|
+
|
|
48
|
+
:global {
|
|
49
|
+
.ReactVirtualized__List {
|
|
50
|
+
height: fit-content;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
42
53
|
}
|
|
43
54
|
}
|
|
44
55
|
|
|
45
56
|
.libro-view-top {
|
|
46
|
-
z-index: 1000;
|
|
47
57
|
display: flex;
|
|
48
58
|
align-items: center;
|
|
49
59
|
width: 100%;
|
|
@@ -73,7 +83,7 @@
|
|
|
73
83
|
padding: 0 8px;
|
|
74
84
|
color: var(--mana-libro-toptoolbar-icon-color);
|
|
75
85
|
|
|
76
|
-
|
|
86
|
+
svg {
|
|
77
87
|
fill: var(--mana-libro-toptoolbar-icon-color) !important;
|
|
78
88
|
}
|
|
79
89
|
.@{ant-prefix}-select-selection-item {
|
|
@@ -85,9 +95,13 @@
|
|
|
85
95
|
}
|
|
86
96
|
}
|
|
87
97
|
|
|
98
|
+
.mana-toolbar-item:has(.libro-all-outputs-scroll-button) {
|
|
99
|
+
padding: unset;
|
|
100
|
+
}
|
|
101
|
+
|
|
88
102
|
.mana-toolbar-item-disabled {
|
|
89
|
-
opacity: unset;
|
|
90
103
|
color: var(--mana-libro-toptoolbar-disabled-icon-color);
|
|
104
|
+
opacity: unset;
|
|
91
105
|
|
|
92
106
|
g {
|
|
93
107
|
fill: var(--mana-libro-toptoolbar-disabled-icon-color) !important;
|
|
@@ -124,8 +138,15 @@
|
|
|
124
138
|
z-index: 1000;
|
|
125
139
|
}
|
|
126
140
|
|
|
141
|
+
.ReactVirtualized__List {
|
|
142
|
+
.libro-dnd-cell-container {
|
|
143
|
+
padding: 16px 16px 0 0;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
127
147
|
.libro-dnd-cell-container {
|
|
128
148
|
position: relative;
|
|
149
|
+
height: fit-content;
|
|
129
150
|
padding: 8px 16px 8px 0;
|
|
130
151
|
|
|
131
152
|
&:focus-visible {
|
|
@@ -144,8 +165,8 @@
|
|
|
144
165
|
display: block;
|
|
145
166
|
}
|
|
146
167
|
|
|
147
|
-
&.selected {
|
|
148
|
-
background-color:
|
|
168
|
+
&.multi-selected {
|
|
169
|
+
background-color: var(--mana-libro-cell-selected-bg-color);
|
|
149
170
|
}
|
|
150
171
|
|
|
151
172
|
&.hidden {
|
|
@@ -153,7 +174,23 @@
|
|
|
153
174
|
}
|
|
154
175
|
}
|
|
155
176
|
|
|
156
|
-
.libro-
|
|
177
|
+
.libro-cell-collapsed-expander {
|
|
178
|
+
margin-top: 5px;
|
|
179
|
+
padding-left: 72px;
|
|
180
|
+
|
|
181
|
+
.libro-cell-expand-button {
|
|
182
|
+
padding: 0 12px;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.libro-dnd-cell {
|
|
187
|
+
position: relative;
|
|
188
|
+
margin-right: 45px;
|
|
189
|
+
margin-left: 72px;
|
|
190
|
+
padding: 0;
|
|
191
|
+
border: 1px solid var(--mana-libro-cell-border-color);
|
|
192
|
+
border-radius: 4px;
|
|
193
|
+
|
|
157
194
|
&:hover {
|
|
158
195
|
.libro-cell-input-collapser,
|
|
159
196
|
.libro-cell-output-collapser,
|
|
@@ -171,49 +208,11 @@
|
|
|
171
208
|
}
|
|
172
209
|
}
|
|
173
210
|
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.libro-cell-collapsed-expander {
|
|
177
|
-
margin-top: 5px;
|
|
178
|
-
padding-left: 72px;
|
|
179
|
-
|
|
180
|
-
.libro-cell-expand-button {
|
|
181
|
-
padding: 0 12px;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.libro-dnd-cell {
|
|
186
|
-
position: relative;
|
|
187
|
-
margin-left: 72px;
|
|
188
|
-
padding: 0;
|
|
189
|
-
border: 1px solid var(--mana-libro-cell-border-color);
|
|
190
|
-
border-radius: 4px;
|
|
191
|
-
transition: border-color 0.2s ease 0s;
|
|
192
211
|
|
|
193
212
|
:focus-visible {
|
|
194
213
|
outline: unset;
|
|
195
214
|
}
|
|
196
215
|
|
|
197
|
-
&.active.command-mode {
|
|
198
|
-
border: 1px solid var(--mana-libro-cell-active-border-color);
|
|
199
|
-
box-shadow: unset;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
&.active.command-mode.error,
|
|
203
|
-
&.error {
|
|
204
|
-
border: 1px solid var(--mana-libro-error-color) !important;
|
|
205
|
-
box-shadow: unset;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
&.active.edit-mode.error {
|
|
209
|
-
border: 1px solid var(--mana-libro-error-color) !important;
|
|
210
|
-
box-shadow: rgba(237, 19, 69, 25%) 0 0 0 2px;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
&.hidden {
|
|
214
|
-
border: unset;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
216
|
&.active {
|
|
218
217
|
border: 1px solid var(--mana-libro-cell-active-border-color);
|
|
219
218
|
box-shadow: var(--mana-libro-cell-active-border-shadow-color) 0 0 0 2px;
|
|
@@ -234,6 +233,26 @@
|
|
|
234
233
|
}
|
|
235
234
|
}
|
|
236
235
|
}
|
|
236
|
+
|
|
237
|
+
&.active.command-mode {
|
|
238
|
+
border: 1px solid var(--mana-libro-cell-active-border-color);
|
|
239
|
+
box-shadow: unset;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&.active.command-mode.error,
|
|
243
|
+
&.error {
|
|
244
|
+
border: 1px solid var(--mana-libro-error-color) !important;
|
|
245
|
+
box-shadow: unset;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
&.active.edit-mode.error {
|
|
249
|
+
border: 1px solid var(--mana-libro-error-color) !important;
|
|
250
|
+
box-shadow: rgba(237, 19, 69, 25%) 0 0 0 2px;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
&.hidden {
|
|
254
|
+
border: unset;
|
|
255
|
+
}
|
|
237
256
|
}
|
|
238
257
|
|
|
239
258
|
.libro-dnd-cell-preview {
|
|
@@ -416,7 +435,7 @@
|
|
|
416
435
|
width: 32px;
|
|
417
436
|
height: 28px;
|
|
418
437
|
margin: 0;
|
|
419
|
-
padding: 2px
|
|
438
|
+
padding: 2px 6px;
|
|
420
439
|
text-align: center;
|
|
421
440
|
}
|
|
422
441
|
|
|
@@ -495,9 +514,9 @@
|
|
|
495
514
|
left: 56px;
|
|
496
515
|
z-index: 100;
|
|
497
516
|
width: calc(100% - 70px);
|
|
498
|
-
border-radius: 2px;
|
|
499
517
|
height: 4px;
|
|
500
518
|
background-color: var(--mana-libro-drag-hover-line-color);
|
|
519
|
+
border-radius: 2px;
|
|
501
520
|
}
|
|
502
521
|
|
|
503
522
|
.libro-view-content-left {
|
|
@@ -513,15 +532,10 @@
|
|
|
513
532
|
.libro-cell-output-container {
|
|
514
533
|
position: relative;
|
|
515
534
|
background-color: var(--mana-libro-output-background);
|
|
516
|
-
border-top: 1px solid var(--mana-libro-code-border-color);
|
|
535
|
+
// border-top: 1px solid var(--mana-libro-code-border-color);
|
|
517
536
|
border-bottom-right-radius: 4px;
|
|
518
537
|
border-bottom-left-radius: 4px;
|
|
519
538
|
|
|
520
|
-
&.scrolled {
|
|
521
|
-
max-height: 24em;
|
|
522
|
-
overflow-y: auto;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
539
|
&.hidden {
|
|
526
540
|
padding: 12px;
|
|
527
541
|
color: var(--mana-text-tertiary);
|
|
@@ -537,6 +551,57 @@
|
|
|
537
551
|
}
|
|
538
552
|
}
|
|
539
553
|
|
|
554
|
+
.libro-cell-output-scroll {
|
|
555
|
+
display: none;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.libro-dnd-cell-container:hover {
|
|
559
|
+
.libro-cell-output-scroll {
|
|
560
|
+
display: block;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.libro-cell-output-content {
|
|
565
|
+
&.scrolled {
|
|
566
|
+
.libro-output-area {
|
|
567
|
+
max-height: 312px;
|
|
568
|
+
overflow-y: auto;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.libro-cell-output-scroll-button {
|
|
574
|
+
position: absolute;
|
|
575
|
+
top: 4px;
|
|
576
|
+
left: -26px;
|
|
577
|
+
display: flex;
|
|
578
|
+
justify-content: center;
|
|
579
|
+
width: 20px;
|
|
580
|
+
height: 20px;
|
|
581
|
+
border-radius: 4px;
|
|
582
|
+
|
|
583
|
+
:hover {
|
|
584
|
+
background-color: var(--mana-list-hoverBackground);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
svg {
|
|
588
|
+
color: var(--mana-libro-toptoolbar-icon-color);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.libro-all-outputs-scroll-button {
|
|
593
|
+
display: flex;
|
|
594
|
+
align-items: center;
|
|
595
|
+
justify-content: center;
|
|
596
|
+
width: 22px;
|
|
597
|
+
height: 22px;
|
|
598
|
+
border-radius: 4px;
|
|
599
|
+
|
|
600
|
+
&.active {
|
|
601
|
+
background-color: var(--mana-list-hoverBackground);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
540
605
|
.libro-view-add-cell-toolbar {
|
|
541
606
|
position: relative;
|
|
542
607
|
width: 100%;
|
|
@@ -572,6 +637,18 @@
|
|
|
572
637
|
}
|
|
573
638
|
|
|
574
639
|
.libro-side-toolbar-menu {
|
|
640
|
+
width: 100%;
|
|
641
|
+
|
|
642
|
+
.libro-toolbar-menu-inlines {
|
|
643
|
+
width: 100%;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.mana-menu-item {
|
|
647
|
+
button {
|
|
648
|
+
display: block;
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
|
|
575
652
|
.mana-menu-item-active > .mana-menu-item-button,
|
|
576
653
|
.mana-menu-item:hover > .mana-menu-item-button {
|
|
577
654
|
background: var(--mana-libro-menu-hover-color);
|
|
@@ -596,9 +673,9 @@
|
|
|
596
673
|
right: -4px;
|
|
597
674
|
width: 100%;
|
|
598
675
|
height: 100%;
|
|
599
|
-
border-radius: 4px;
|
|
600
|
-
background-color: var(--mana-libro-popover-background-color);
|
|
601
676
|
padding: 0;
|
|
677
|
+
background-color: var(--mana-libro-popover-background-color) !important;
|
|
678
|
+
border-radius: 4px;
|
|
602
679
|
box-shadow:
|
|
603
680
|
0 3px 6px -4px rgba(0, 0, 0, 12%),
|
|
604
681
|
0 6px 16px 0 rgba(0, 0, 0, 8%),
|
|
@@ -610,8 +687,8 @@
|
|
|
610
687
|
padding-right: unset;
|
|
611
688
|
}
|
|
612
689
|
.@{ant-prefix}-popover-inner-content {
|
|
613
|
-
padding: 4px 0;
|
|
614
690
|
width: unset !important;
|
|
691
|
+
padding: 4px 0;
|
|
615
692
|
}
|
|
616
693
|
}
|
|
617
694
|
}
|
|
@@ -651,7 +728,7 @@
|
|
|
651
728
|
|
|
652
729
|
.libro-output-area {
|
|
653
730
|
margin-top: 18px;
|
|
654
|
-
overflow: hidden;
|
|
731
|
+
// overflow: hidden;
|
|
655
732
|
}
|
|
656
733
|
|
|
657
734
|
.libro-tooltip {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-context-key.d.ts","sourceRoot":"","sources":["../src/libro-context-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAItD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,qBACa,eAAe;IAC1B,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IACxD,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAC9C,SAAS,CAAC,wBAAwB,CAAC,EAAE,UAAU,CAAC;IAChD,SAAS,CAAC,kBAAkB,UAAQ;IACpC,SAAS,CAAC,aAAa,UAAS;IAChC,MAAM,
|
|
1
|
+
{"version":3,"file":"libro-context-key.d.ts","sourceRoot":"","sources":["../src/libro-context-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAItD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,qBACa,eAAe;IAC1B,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IACxD,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAC9C,SAAS,CAAC,wBAAwB,CAAC,EAAE,UAAU,CAAC;IAChD,SAAS,CAAC,kBAAkB,UAAQ;IACpC,SAAS,CAAC,aAAa,UAAS;IAChC,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC7B,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC5B,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;gBAGL,iBAAiB,EAAE,iBAAiB,EACzC,YAAY,EAAE,YAAY;IASlD,kBAAkB,aAGhB;IAEF,iBAAiB,aAGf;IAEF,SAAS,CAAC,WAAW;IAarB,SAAS,CAAC,UAAU;IAUpB,SAAS,CAAC,gBAAgB;IAO1B,SAAS,CAAC,cAAc,aAQtB;CACH"}
|
package/es/libro-model.d.ts
CHANGED
|
@@ -3,16 +3,26 @@ import type { CellTypeAdaptor, ISharedNotebook, NotebookChange } from '@difizen/
|
|
|
3
3
|
import { ConfigurationService } from '@difizen/mana-app';
|
|
4
4
|
import { Emitter } from '@difizen/mana-app';
|
|
5
5
|
import { LibroContentService } from './content/index.js';
|
|
6
|
-
import type { NotebookModel, CellOptions, DndListModel, CellView, MouseMode } from './libro-protocol.js';
|
|
7
6
|
import { NotebookOption } from './libro-protocol.js';
|
|
7
|
+
import type { CellOptions, CellViewChange, DndListModel, NotebookModel, ScrollParams, CellView, MouseMode } from './libro-protocol.js';
|
|
8
|
+
import { VirtualizedManagerHelper } from './virtualized-manager-helper.js';
|
|
8
9
|
export declare class LibroModel implements NotebookModel, DndListModel {
|
|
9
10
|
options: NotebookOption;
|
|
10
11
|
libroContentService: LibroContentService;
|
|
12
|
+
virtualizedManagerHelper: VirtualizedManagerHelper;
|
|
11
13
|
configurationService: ConfigurationService;
|
|
14
|
+
protected scrollToCellViewEmitter: Emitter;
|
|
15
|
+
get onScrollToCellView(): import("@difizen/mana-app").Event<any>;
|
|
16
|
+
protected cellViewChangeEmitter: Emitter<CellViewChange>;
|
|
17
|
+
get onCellViewChanged(): import("@difizen/mana-app").Event<CellViewChange>;
|
|
18
|
+
scrollToCellView: (params: ScrollParams) => void;
|
|
19
|
+
disposeScrollToCellViewEmitter(): void;
|
|
12
20
|
protected onCommandModeChangedEmitter: Emitter<boolean>;
|
|
13
21
|
get onCommandModeChanged(): import("@difizen/mana-app").Event<boolean>;
|
|
14
22
|
protected onContentChangedEmitter: Emitter<boolean>;
|
|
15
23
|
get onContentChanged(): import("@difizen/mana-app").Event<boolean>;
|
|
24
|
+
protected onSourceChangedEmitter: Emitter<boolean>;
|
|
25
|
+
get onSourceChanged(): import("@difizen/mana-app").Event<boolean>;
|
|
16
26
|
id: string;
|
|
17
27
|
/**
|
|
18
28
|
* The shared notebook model.
|
|
@@ -37,7 +47,7 @@ export declare class LibroModel implements NotebookModel, DndListModel {
|
|
|
37
47
|
hover: CellView | undefined;
|
|
38
48
|
isInitialized: boolean;
|
|
39
49
|
executeCount: number;
|
|
40
|
-
mouseMode
|
|
50
|
+
mouseMode: MouseMode;
|
|
41
51
|
selections: CellView[];
|
|
42
52
|
deletedCells: CellView[];
|
|
43
53
|
metadata: INotebookMetadata;
|
|
@@ -77,6 +87,7 @@ export declare class LibroModel implements NotebookModel, DndListModel {
|
|
|
77
87
|
* cell list change or cell content change
|
|
78
88
|
*/
|
|
79
89
|
onChange(): void;
|
|
90
|
+
onSourceChange(): void;
|
|
80
91
|
/**
|
|
81
92
|
* override this method to load notebook from server
|
|
82
93
|
* @returns
|
package/es/libro-model.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-model.d.ts","sourceRoot":"","sources":["../src/libro-model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,cAAc,EACf,MAAM,6BAA6B,CAAC;AAErC,OAAO,
|
|
1
|
+
{"version":3,"file":"libro-model.d.ts","sourceRoot":"","sources":["../src/libro-model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,cAAc,EACf,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAa,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAK5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAc,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EACV,WAAW,EACX,cAAc,EACd,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,SAAS,EACV,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,qBACa,UAAW,YAAW,aAAa,EAAE,YA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