@jupyterlab/apputils 3.4.1 → 4.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commandpalette.d.ts +0 -32
- package/lib/commandpalette.js +1 -7
- package/lib/commandpalette.js.map +1 -1
- package/lib/dialog.d.ts +10 -1
- package/lib/dialog.js +1 -3
- package/lib/dialog.js.map +1 -1
- package/lib/domutils.js.map +1 -1
- package/lib/index.d.ts +29 -10
- package/lib/index.js +29 -10
- package/lib/index.js.map +1 -1
- package/lib/inputdialog.js +1 -1
- package/lib/inputdialog.js.map +1 -1
- package/lib/kernelstatuses.d.ts +73 -1
- package/lib/kernelstatuses.js +140 -1
- package/lib/kernelstatuses.js.map +1 -1
- package/lib/mainareawidget.d.ts +2 -2
- package/lib/mainareawidget.js +1 -2
- package/lib/mainareawidget.js.map +1 -1
- package/lib/menufactory.js.map +1 -1
- package/lib/runningSessions.d.ts +72 -0
- package/lib/runningSessions.js +119 -0
- package/lib/runningSessions.js.map +1 -0
- package/lib/sanitizer.js +1 -2
- package/lib/sanitizer.js.map +1 -1
- package/lib/semanticCommand.d.ts +48 -0
- package/lib/semanticCommand.js +42 -0
- package/lib/semanticCommand.js.map +1 -0
- package/lib/sessioncontext.js +7 -5
- package/lib/sessioncontext.js.map +1 -1
- package/lib/thememanager.d.ts +2 -3
- package/lib/thememanager.js +1 -1
- package/lib/thememanager.js.map +1 -1
- package/lib/tokens.d.ts +87 -10
- package/lib/tokens.js +13 -3
- package/lib/tokens.js.map +1 -1
- package/lib/toolbar/factory.d.ts +3 -2
- package/lib/toolbar/factory.js +125 -101
- package/lib/toolbar/factory.js.map +1 -1
- package/lib/toolbar/registry.d.ts +11 -0
- package/lib/toolbar/registry.js +16 -4
- package/lib/toolbar/registry.js.map +1 -1
- package/lib/toolbar/widget.d.ts +1 -435
- package/lib/toolbar/widget.js +3 -866
- package/lib/toolbar/widget.js.map +1 -1
- package/lib/widgettracker.js.map +1 -1
- package/lib/windowresolver.d.ts +1 -14
- package/lib/windowresolver.js +1 -6
- package/lib/windowresolver.js.map +1 -1
- package/package.json +23 -26
- package/style/base.css +0 -6
- package/style/commandpalette.css +7 -10
- package/style/dialog.css +10 -9
- package/style/index.css +1 -0
- package/style/index.js +1 -0
- package/style/materialcolors.css +3 -21
- package/lib/collapse.d.ts +0 -64
- package/lib/collapse.js +0 -145
- package/lib/collapse.js.map +0 -1
- package/lib/hoverbox.d.ts +0 -82
- package/lib/hoverbox.js +0 -100
- package/lib/hoverbox.js.map +0 -1
- package/lib/iframe.d.ts +0 -77
- package/lib/iframe.js +0 -89
- package/lib/iframe.js.map +0 -1
- package/lib/search.d.ts +0 -37
- package/lib/search.js +0 -102
- package/lib/search.js.map +0 -1
- package/lib/spinner.d.ts +0 -15
- package/lib/spinner.js +0 -28
- package/lib/spinner.js.map +0 -1
- package/lib/splash.d.ts +0 -19
- package/lib/splash.js +0 -9
- package/lib/splash.js.map +0 -1
- package/lib/styling.d.ts +0 -27
- package/lib/styling.js +0 -100
- package/lib/styling.js.map +0 -1
- package/lib/vdom.d.ts +0 -189
- package/lib/vdom.js +0 -203
- package/lib/vdom.js.map +0 -1
- package/style/collapse.css +0 -30
- package/style/hoverbox.css +0 -13
- package/style/iframe.css +0 -33
- package/style/spinner.css +0 -79
- package/style/styling.css +0 -101
- package/style/toolbar.css +0 -115
package/lib/toolbar/factory.js
CHANGED
|
@@ -10,6 +10,7 @@ import { Dialog, showDialog } from '../dialog';
|
|
|
10
10
|
* This will place item just before the white spacer item in the notebook toolbar.
|
|
11
11
|
*/
|
|
12
12
|
const DEFAULT_TOOLBAR_ITEM_RANK = 50;
|
|
13
|
+
const TOOLBAR_KEY = 'jupyter.lab.toolbars';
|
|
13
14
|
/**
|
|
14
15
|
* Display warning when the toolbar definition have been modified.
|
|
15
16
|
*
|
|
@@ -44,76 +45,93 @@ async function displayInformation(trans) {
|
|
|
44
45
|
async function setToolbarItems(toolbarItems, registry, factoryName, pluginId, translator, propertyId = 'toolbar') {
|
|
45
46
|
var _a;
|
|
46
47
|
const trans = translator.load('jupyterlab');
|
|
47
|
-
let canonical;
|
|
48
|
+
let canonical = null;
|
|
48
49
|
let loaded = {};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const pluginDefaults = Object.keys(registry.plugins)
|
|
59
|
-
.map(plugin => {
|
|
50
|
+
let listenPlugin = true;
|
|
51
|
+
try {
|
|
52
|
+
/**
|
|
53
|
+
* Populate the plugin's schema defaults.
|
|
54
|
+
*
|
|
55
|
+
* We keep track of disabled entries in case the plugin is loaded
|
|
56
|
+
* after the toolbar initialization.
|
|
57
|
+
*/
|
|
58
|
+
function populate(schema) {
|
|
60
59
|
var _a, _b;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
// Apply default value as last step to take into account overrides.json
|
|
68
|
-
// The standard default being [] as the plugin must use `jupyter.lab.toolbars.<factory>`
|
|
69
|
-
// to define their default value.
|
|
70
|
-
schema.properties[propertyId].default = SettingRegistry.reconcileToolbarItems(pluginDefaults, schema.properties[propertyId].default, true).sort((a, b) => {
|
|
71
|
-
var _a, _b;
|
|
72
|
-
return ((_a = a.rank) !== null && _a !== void 0 ? _a : DEFAULT_TOOLBAR_ITEM_RANK) -
|
|
73
|
-
((_b = b.rank) !== null && _b !== void 0 ? _b : DEFAULT_TOOLBAR_ITEM_RANK);
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
// Transform the plugin object to return different schema than the default.
|
|
77
|
-
registry.transform(pluginId, {
|
|
78
|
-
compose: plugin => {
|
|
79
|
-
var _a, _b, _c, _d, _e;
|
|
80
|
-
// Only override the canonical schema the first time.
|
|
81
|
-
if (!canonical) {
|
|
82
|
-
canonical = JSONExt.deepCopy(plugin.schema);
|
|
83
|
-
populate(canonical);
|
|
84
|
-
}
|
|
85
|
-
const defaults = (_c = ((_b = ((_a = canonical.properties) !== null && _a !== void 0 ? _a : {})[propertyId]) !== null && _b !== void 0 ? _b : {}).default) !== null && _c !== void 0 ? _c : [];
|
|
86
|
-
// Initialize the settings
|
|
87
|
-
const user = plugin.data.user;
|
|
88
|
-
const composite = plugin.data.composite;
|
|
89
|
-
// Overrides the value with using the aggregated default for the toolbar property
|
|
90
|
-
user[propertyId] = (_d = plugin.data.user[propertyId]) !== null && _d !== void 0 ? _d : [];
|
|
91
|
-
composite[propertyId] = ((_e = SettingRegistry.reconcileToolbarItems(defaults, user[propertyId], false)) !== null && _e !== void 0 ? _e : []).sort((a, b) => {
|
|
60
|
+
loaded = {};
|
|
61
|
+
const pluginDefaults = Object.keys(registry.plugins)
|
|
62
|
+
// Filter out the current plugin (will be listed when reloading)
|
|
63
|
+
// because we control its addition after the mapping step
|
|
64
|
+
.filter(plugin => plugin !== pluginId)
|
|
65
|
+
.map(plugin => {
|
|
92
66
|
var _a, _b;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
//
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
67
|
+
const items = (_b = ((_a = registry.plugins[plugin].schema[TOOLBAR_KEY]) !== null && _a !== void 0 ? _a : {})[factoryName]) !== null && _b !== void 0 ? _b : [];
|
|
68
|
+
loaded[plugin] = items;
|
|
69
|
+
return items;
|
|
70
|
+
})
|
|
71
|
+
.concat([(_b = ((_a = schema[TOOLBAR_KEY]) !== null && _a !== void 0 ? _a : {})[factoryName]) !== null && _b !== void 0 ? _b : []])
|
|
72
|
+
.reduceRight((acc, val) => SettingRegistry.reconcileToolbarItems(acc, val, true), []);
|
|
73
|
+
// Apply default value as last step to take into account overrides.json
|
|
74
|
+
// The standard toolbars default is [] as the plugin must use
|
|
75
|
+
// `jupyter.lab.toolbars.<factory>` to define its default value.
|
|
76
|
+
schema.properties[propertyId].default =
|
|
77
|
+
SettingRegistry.reconcileToolbarItems(pluginDefaults, schema.properties[propertyId].default, true).sort((a, b) => {
|
|
78
|
+
var _a, _b;
|
|
79
|
+
return ((_a = a.rank) !== null && _a !== void 0 ? _a : DEFAULT_TOOLBAR_ITEM_RANK) -
|
|
80
|
+
((_b = b.rank) !== null && _b !== void 0 ? _b : DEFAULT_TOOLBAR_ITEM_RANK);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
// Transform the plugin object to return different schema than the default.
|
|
84
|
+
registry.transform(pluginId, {
|
|
85
|
+
compose: plugin => {
|
|
86
|
+
var _a, _b, _c, _d, _e;
|
|
87
|
+
// Only override the canonical schema the first time.
|
|
88
|
+
if (!canonical) {
|
|
89
|
+
canonical = JSONExt.deepCopy(plugin.schema);
|
|
90
|
+
populate(canonical);
|
|
91
|
+
}
|
|
92
|
+
const defaults = (_c = ((_b = ((_a = canonical.properties) !== null && _a !== void 0 ? _a : {})[propertyId]) !== null && _b !== void 0 ? _b : {}).default) !== null && _c !== void 0 ? _c : [];
|
|
93
|
+
// Initialize the settings
|
|
94
|
+
const user = plugin.data.user;
|
|
95
|
+
const composite = plugin.data.composite;
|
|
96
|
+
// Overrides the value with using the aggregated default for the toolbar property
|
|
97
|
+
user[propertyId] =
|
|
98
|
+
(_d = plugin.data.user[propertyId]) !== null && _d !== void 0 ? _d : [];
|
|
99
|
+
composite[propertyId] = ((_e = SettingRegistry.reconcileToolbarItems(defaults, user[propertyId], false)) !== null && _e !== void 0 ? _e : []).sort((a, b) => {
|
|
100
|
+
var _a, _b;
|
|
101
|
+
return ((_a = a.rank) !== null && _a !== void 0 ? _a : DEFAULT_TOOLBAR_ITEM_RANK) -
|
|
102
|
+
((_b = b.rank) !== null && _b !== void 0 ? _b : DEFAULT_TOOLBAR_ITEM_RANK);
|
|
103
|
+
});
|
|
104
|
+
plugin.data = { composite, user };
|
|
105
|
+
return plugin;
|
|
106
|
+
},
|
|
107
|
+
fetch: plugin => {
|
|
108
|
+
// Only override the canonical schema the first time.
|
|
109
|
+
if (!canonical) {
|
|
110
|
+
canonical = JSONExt.deepCopy(plugin.schema);
|
|
111
|
+
populate(canonical);
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
data: plugin.data,
|
|
115
|
+
id: plugin.id,
|
|
116
|
+
raw: plugin.raw,
|
|
117
|
+
schema: canonical,
|
|
118
|
+
version: plugin.version
|
|
119
|
+
};
|
|
104
120
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
catch (error) {
|
|
124
|
+
if (error.name === 'TransformError') {
|
|
125
|
+
// Assume the existing transformer is the toolbar builder transformer
|
|
126
|
+
// from another factory set up.
|
|
127
|
+
listenPlugin = false;
|
|
112
128
|
}
|
|
113
|
-
|
|
129
|
+
else {
|
|
130
|
+
throw error;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
114
133
|
// Repopulate the canonical variable after the setting registry has
|
|
115
134
|
// preloaded all initial plugins.
|
|
116
|
-
canonical = null;
|
|
117
135
|
const settings = await registry.load(pluginId);
|
|
118
136
|
// React to customization by the user
|
|
119
137
|
settings.changed.connect(() => {
|
|
@@ -121,35 +139,6 @@ async function setToolbarItems(toolbarItems, registry, factoryName, pluginId, tr
|
|
|
121
139
|
const newItems = (_a = settings.composite[propertyId]) !== null && _a !== void 0 ? _a : [];
|
|
122
140
|
transferSettings(newItems);
|
|
123
141
|
});
|
|
124
|
-
// React to plugin changes
|
|
125
|
-
registry.pluginChanged.connect(async (sender, plugin) => {
|
|
126
|
-
var _a, _b, _c, _d;
|
|
127
|
-
// As the plugin storing the toolbar definition is transformed using
|
|
128
|
-
// the above definition, if it changes, this means that a request to
|
|
129
|
-
// reloaded was triggered. Hence the toolbar definitions from the other
|
|
130
|
-
// plugins has been automatically reset during the transform step.
|
|
131
|
-
if (plugin !== pluginId) {
|
|
132
|
-
// If a plugin changed its toolbar items
|
|
133
|
-
const oldItems = (_a = loaded[plugin]) !== null && _a !== void 0 ? _a : [];
|
|
134
|
-
const newItems = (_c = ((_b = registry.plugins[plugin].schema['jupyter.lab.toolbars']) !== null && _b !== void 0 ? _b : {})[factoryName]) !== null && _c !== void 0 ? _c : [];
|
|
135
|
-
if (!JSONExt.deepEqual(oldItems, newItems)) {
|
|
136
|
-
if (loaded[plugin]) {
|
|
137
|
-
// The plugin has changed, request the user to reload the UI
|
|
138
|
-
await displayInformation(trans);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
// The plugin was not yet loaded => update the toolbar items list
|
|
142
|
-
loaded[plugin] = JSONExt.deepCopy(newItems);
|
|
143
|
-
const newList = ((_d = SettingRegistry.reconcileToolbarItems(toArray(toolbarItems), newItems, false)) !== null && _d !== void 0 ? _d : []).sort((a, b) => {
|
|
144
|
-
var _a, _b;
|
|
145
|
-
return ((_a = a.rank) !== null && _a !== void 0 ? _a : DEFAULT_TOOLBAR_ITEM_RANK) -
|
|
146
|
-
((_b = b.rank) !== null && _b !== void 0 ? _b : DEFAULT_TOOLBAR_ITEM_RANK);
|
|
147
|
-
});
|
|
148
|
-
transferSettings(newList);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
142
|
const transferSettings = (newItems) => {
|
|
154
143
|
// This is not optimal but safer because a toolbar item with the same
|
|
155
144
|
// name cannot be inserted (it will be a no-op). But that could happen
|
|
@@ -159,6 +148,36 @@ async function setToolbarItems(toolbarItems, registry, factoryName, pluginId, tr
|
|
|
159
148
|
};
|
|
160
149
|
// Initialize the toolbar
|
|
161
150
|
transferSettings((_a = settings.composite[propertyId]) !== null && _a !== void 0 ? _a : []);
|
|
151
|
+
// React to plugin changes if no other transformer exists, otherwise bail.
|
|
152
|
+
if (!listenPlugin) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
registry.pluginChanged.connect(async (sender, plugin) => {
|
|
156
|
+
var _a, _b, _c;
|
|
157
|
+
// Since the plugin storing the toolbar definition is transformed above,
|
|
158
|
+
// if it has changed, it means that a request to reload was triggered.
|
|
159
|
+
// Hence the toolbar definitions from the other plugins have been
|
|
160
|
+
// automatically reset during the transform step.
|
|
161
|
+
if (plugin === pluginId) {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
// If a plugin changed its toolbar items
|
|
165
|
+
const oldItems = (_a = loaded[plugin]) !== null && _a !== void 0 ? _a : [];
|
|
166
|
+
const newItems = (_c = ((_b = registry.plugins[plugin].schema[TOOLBAR_KEY]) !== null && _b !== void 0 ? _b : {})[factoryName]) !== null && _c !== void 0 ? _c : [];
|
|
167
|
+
if (!JSONExt.deepEqual(oldItems, newItems)) {
|
|
168
|
+
if (loaded[plugin]) {
|
|
169
|
+
// The plugin has changed, request the user to reload the UI
|
|
170
|
+
await displayInformation(trans);
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
if (newItems.length > 0) {
|
|
174
|
+
canonical = null;
|
|
175
|
+
// This will trigger a settings.changed signal that will update the items
|
|
176
|
+
await registry.reload(pluginId);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
});
|
|
162
181
|
}
|
|
163
182
|
/**
|
|
164
183
|
* Create the toolbar factory for a given container widget based
|
|
@@ -223,16 +242,21 @@ export function createToolbarFactory(toolbarRegistry, settingsRegistry, factoryN
|
|
|
223
242
|
*
|
|
224
243
|
* @param widget Widget with the toolbar to set
|
|
225
244
|
* @param factory Toolbar items factory
|
|
245
|
+
* @param toolbar Separated toolbar if widget is a raw widget
|
|
226
246
|
*/
|
|
227
|
-
export function setToolbar(widget, factory) {
|
|
228
|
-
|
|
229
|
-
|
|
247
|
+
export function setToolbar(widget, factory, toolbar) {
|
|
248
|
+
var _a;
|
|
249
|
+
// @ts-expect-error Widget has no toolbar
|
|
250
|
+
if (!widget.toolbar && !toolbar) {
|
|
251
|
+
console.log(`Widget ${widget.id} has no 'toolbar' and no explicit toolbar was provided.`);
|
|
230
252
|
return;
|
|
231
253
|
}
|
|
254
|
+
// @ts-expect-error Widget has no toolbar
|
|
255
|
+
const toolbar_ = (_a = widget.toolbar) !== null && _a !== void 0 ? _a : toolbar;
|
|
232
256
|
const items = factory(widget);
|
|
233
257
|
if (Array.isArray(items)) {
|
|
234
258
|
items.forEach(({ name, widget: item }) => {
|
|
235
|
-
|
|
259
|
+
toolbar_.addItem(name, item);
|
|
236
260
|
});
|
|
237
261
|
}
|
|
238
262
|
else {
|
|
@@ -240,7 +264,7 @@ export function setToolbar(widget, factory) {
|
|
|
240
264
|
switch (changes.type) {
|
|
241
265
|
case 'add':
|
|
242
266
|
changes.newValues.forEach((item, index) => {
|
|
243
|
-
|
|
267
|
+
toolbar_.insertItem(changes.newIndex + index, item.name, item.widget);
|
|
244
268
|
});
|
|
245
269
|
break;
|
|
246
270
|
case 'move':
|
|
@@ -248,7 +272,7 @@ export function setToolbar(widget, factory) {
|
|
|
248
272
|
item.widget.parent = null;
|
|
249
273
|
});
|
|
250
274
|
changes.newValues.forEach((item, index) => {
|
|
251
|
-
|
|
275
|
+
toolbar_.insertItem(changes.newIndex + index, item.name, item.widget);
|
|
252
276
|
});
|
|
253
277
|
break;
|
|
254
278
|
case 'remove':
|
|
@@ -261,11 +285,11 @@ export function setToolbar(widget, factory) {
|
|
|
261
285
|
item.widget.parent = null;
|
|
262
286
|
});
|
|
263
287
|
changes.newValues.forEach((item, index) => {
|
|
264
|
-
const existingIndex = findIndex(
|
|
288
|
+
const existingIndex = findIndex(toolbar_.names(), name => item.name === name);
|
|
265
289
|
if (existingIndex >= 0) {
|
|
266
|
-
toArray(
|
|
290
|
+
toArray(toolbar_.children())[existingIndex].parent = null;
|
|
267
291
|
}
|
|
268
|
-
|
|
292
|
+
toolbar_.insertItem(changes.newIndex + index, item.name, item.widget);
|
|
269
293
|
});
|
|
270
294
|
break;
|
|
271
295
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src/toolbar/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAoB,eAAe,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src/toolbar/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAoB,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAGhF,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAqB,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAG/C;;;;;GAKG;AACH,MAAM,yBAAyB,GAAG,EAAE,CAAC;AAErC,MAAM,WAAW,GAAG,sBAAsB,CAAC;AAE3C;;;;GAIG;AACH,KAAK,UAAU,kBAAkB,CAAC,KAAwB;IACxD,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC;QAC9B,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC;QAC9B,IAAI,EAAE,KAAK,CAAC,EAAE,CACZ,2FAA2F,CAC5F;QACD,OAAO,EAAE;YACP,MAAM,CAAC,YAAY,EAAE;YACrB,MAAM,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;SAC/C;KACF,CAAC,CAAC;IAEH,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;QACxB,QAAQ,CAAC,MAAM,EAAE,CAAC;KACnB;AACH,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,KAAK,UAAU,eAAe,CAC5B,YAA4D,EAC5D,QAA0B,EAC1B,WAAmB,E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CAAC,MAAM,GAAG,IAAI,CAAC;oBAC5B,CAAC,CAAC,CAAC;oBAEH,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;wBACxC,MAAM,aAAa,GAAG,SAAS,CAC7B,QAAQ,CAAC,KAAK,EAAE,EAChB,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAC3B,CAAC;wBACF,IAAI,aAAa,IAAI,CAAC,EAAE;4BACtB,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC;yBAC3D;wBAED,QAAQ,CAAC,UAAU,CACjB,OAAO,CAAC,QAAQ,GAAG,KAAK,EACxB,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,MAAM,CACZ,CAAC;oBACJ,CAAC,CAAC,CAAC;oBACH,MAAM;aACT;QACH,CAAC,CAAC;QAEF,aAAa,CAAC,KAAK,EAAE;YACnB,QAAQ,EAAE,CAAC;YACX,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC;YACzB,QAAQ,EAAE,CAAC;YACX,SAAS,EAAE,EAAE;YACb,IAAI,EAAE,KAAK;SACZ,CAAC,CAAC;QAEH,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QACrC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE;YAC3B,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;KACJ;AACH,CAAC"}
|
|
@@ -20,6 +20,15 @@ export declare class ToolbarWidgetRegistry implements IToolbarWidgetRegistry {
|
|
|
20
20
|
* @returns The widget to be inserted in the toolbar.
|
|
21
21
|
*/
|
|
22
22
|
createWidget(widgetFactory: string, widget: Widget, toolbarItem: ToolbarRegistry.IWidget): Widget;
|
|
23
|
+
/**
|
|
24
|
+
* Add a new toolbar item factory
|
|
25
|
+
*
|
|
26
|
+
* @param widgetFactory The widget factory name that creates the toolbar
|
|
27
|
+
* @param toolbarItemName The unique toolbar item
|
|
28
|
+
* @param factory The factory function that receives the widget containing the toolbar and returns the toolbar widget.
|
|
29
|
+
* @returns The previously defined factory
|
|
30
|
+
*/
|
|
31
|
+
addFactory<T extends Widget = Widget>(widgetFactory: string, toolbarItemName: string, factory: (main: T) => Widget): ((main: T) => Widget) | undefined;
|
|
23
32
|
/**
|
|
24
33
|
* Register a new toolbar item factory
|
|
25
34
|
*
|
|
@@ -27,6 +36,8 @@ export declare class ToolbarWidgetRegistry implements IToolbarWidgetRegistry {
|
|
|
27
36
|
* @param toolbarItemName The unique toolbar item
|
|
28
37
|
* @param factory The factory function that receives the widget containing the toolbar and returns the toolbar widget.
|
|
29
38
|
* @returns The previously defined factory
|
|
39
|
+
*
|
|
40
|
+
* @deprecated since v4 use `addFactory` instead
|
|
30
41
|
*/
|
|
31
42
|
registerFactory<T extends Widget = Widget>(widgetFactory: string, toolbarItemName: string, factory: (main: T) => Widget): ((main: T) => Widget) | undefined;
|
|
32
43
|
protected _defaultFactory: (widgetFactory: string, widget: Widget, toolbarItem: ToolbarRegistry.IWidget) => Widget;
|
package/lib/toolbar/registry.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { LabIcon } from '@jupyterlab/ui-components';
|
|
1
|
+
import { CommandToolbarButton, LabIcon, Toolbar } from '@jupyterlab/ui-components';
|
|
2
2
|
import { Widget } from '@lumino/widgets';
|
|
3
|
-
import { CommandToolbarButton, Toolbar } from './widget';
|
|
4
3
|
/**
|
|
5
4
|
* Concrete implementation of IToolbarWidgetRegistry interface
|
|
6
5
|
*/
|
|
@@ -34,14 +33,14 @@ export class ToolbarWidgetRegistry {
|
|
|
34
33
|
: this._defaultFactory(widgetFactory, widget, toolbarItem);
|
|
35
34
|
}
|
|
36
35
|
/**
|
|
37
|
-
*
|
|
36
|
+
* Add a new toolbar item factory
|
|
38
37
|
*
|
|
39
38
|
* @param widgetFactory The widget factory name that creates the toolbar
|
|
40
39
|
* @param toolbarItemName The unique toolbar item
|
|
41
40
|
* @param factory The factory function that receives the widget containing the toolbar and returns the toolbar widget.
|
|
42
41
|
* @returns The previously defined factory
|
|
43
42
|
*/
|
|
44
|
-
|
|
43
|
+
addFactory(widgetFactory, toolbarItemName, factory) {
|
|
45
44
|
let namespace = this._widgets.get(widgetFactory);
|
|
46
45
|
const oldFactory = namespace === null || namespace === void 0 ? void 0 : namespace.get(toolbarItemName);
|
|
47
46
|
if (!namespace) {
|
|
@@ -51,6 +50,19 @@ export class ToolbarWidgetRegistry {
|
|
|
51
50
|
namespace.set(toolbarItemName, factory);
|
|
52
51
|
return oldFactory;
|
|
53
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Register a new toolbar item factory
|
|
55
|
+
*
|
|
56
|
+
* @param widgetFactory The widget factory name that creates the toolbar
|
|
57
|
+
* @param toolbarItemName The unique toolbar item
|
|
58
|
+
* @param factory The factory function that receives the widget containing the toolbar and returns the toolbar widget.
|
|
59
|
+
* @returns The previously defined factory
|
|
60
|
+
*
|
|
61
|
+
* @deprecated since v4 use `addFactory` instead
|
|
62
|
+
*/
|
|
63
|
+
registerFactory(widgetFactory, toolbarItemName, factory) {
|
|
64
|
+
return this.addFactory(widgetFactory, toolbarItemName, factory);
|
|
65
|
+
}
|
|
54
66
|
}
|
|
55
67
|
/**
|
|
56
68
|
* Create the default toolbar item widget factory
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/toolbar/registry.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/toolbar/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,OAAO,EACP,OAAO,EACR,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AA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