@jupyterlab/settingeditor 4.0.0-alpha.1 → 4.0.0-alpha.12
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/SettingsFormEditor.d.ts +119 -0
- package/lib/SettingsFormEditor.js +269 -0
- package/lib/SettingsFormEditor.js.map +1 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/inspector.js +23 -29
- package/lib/inspector.js.map +1 -1
- package/lib/{settingeditor.d.ts → jsonsettingeditor.d.ts} +5 -6
- package/lib/{settingeditor.js → jsonsettingeditor.js} +25 -43
- package/lib/jsonsettingeditor.js.map +1 -0
- package/lib/plugineditor.d.ts +3 -3
- package/lib/plugineditor.js +2 -6
- package/lib/plugineditor.js.map +1 -1
- package/lib/pluginlist.d.ts +58 -22
- package/lib/pluginlist.js +246 -109
- package/lib/pluginlist.js.map +1 -1
- package/lib/raweditor.d.ts +1 -5
- package/lib/raweditor.js +1 -14
- package/lib/raweditor.js.map +1 -1
- package/lib/settingseditor.d.ts +81 -0
- package/lib/settingseditor.js +121 -0
- package/lib/settingseditor.js.map +1 -0
- package/lib/settingspanel.d.ts +54 -0
- package/lib/settingspanel.js +90 -0
- package/lib/settingspanel.js.map +1 -0
- package/lib/tokens.d.ts +12 -2
- package/lib/tokens.js +4 -1
- package/lib/tokens.js.map +1 -1
- package/package.json +21 -17
- package/style/base.css +407 -85
- package/style/index.css +1 -0
- package/style/index.js +1 -0
- package/lib/settingeditor.js.map +0 -1
- package/lib/splitpanel.d.ts +0 -13
- package/lib/splitpanel.js +0 -26
- package/lib/splitpanel.js.map +0 -1
package/lib/pluginlist.js
CHANGED
|
@@ -2,22 +2,42 @@
|
|
|
2
2
|
| Copyright (c) Jupyter Development Team.
|
|
3
3
|
| Distributed under the terms of the Modified BSD License.
|
|
4
4
|
|----------------------------------------------------------------------------*/
|
|
5
|
+
import { ReactWidget } from '@jupyterlab/apputils';
|
|
5
6
|
import { nullTranslator } from '@jupyterlab/translation';
|
|
6
|
-
import { classes, LabIcon, settingsIcon } from '@jupyterlab/ui-components';
|
|
7
|
+
import { classes, FilterBox, LabIcon, settingsIcon, updateFilterFunction } from '@jupyterlab/ui-components';
|
|
8
|
+
import { StringExt } from '@lumino/algorithm';
|
|
7
9
|
import { Signal } from '@lumino/signaling';
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
import React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* The JupyterLab plugin schema key for the setting editor
|
|
13
|
+
* icon class of a plugin.
|
|
14
|
+
*/
|
|
15
|
+
const ICON_KEY = 'jupyter.lab.setting-icon';
|
|
16
|
+
/**
|
|
17
|
+
* The JupyterLab plugin schema key for the setting editor
|
|
18
|
+
* icon class of a plugin.
|
|
19
|
+
*/
|
|
20
|
+
const ICON_CLASS_KEY = 'jupyter.lab.setting-icon-class';
|
|
21
|
+
/**
|
|
22
|
+
* The JupyterLab plugin schema key for the setting editor
|
|
23
|
+
* icon label of a plugin.
|
|
24
|
+
*/
|
|
25
|
+
const ICON_LABEL_KEY = 'jupyter.lab.setting-icon-label';
|
|
11
26
|
/**
|
|
12
27
|
* A list of plugins with editable settings.
|
|
13
28
|
*/
|
|
14
|
-
export class PluginList extends
|
|
29
|
+
export class PluginList extends ReactWidget {
|
|
15
30
|
/**
|
|
16
31
|
* Create a new plugin list.
|
|
17
32
|
*/
|
|
18
33
|
constructor(options) {
|
|
34
|
+
var _a;
|
|
19
35
|
super();
|
|
20
36
|
this._changed = new Signal(this);
|
|
37
|
+
this._handleSelectSignal = new Signal(this);
|
|
38
|
+
this._updateFilterSignal = new Signal(this);
|
|
39
|
+
this._allPlugins = [];
|
|
40
|
+
this._settings = {};
|
|
21
41
|
this._scrollTop = 0;
|
|
22
42
|
this._selection = '';
|
|
23
43
|
this.registry = options.registry;
|
|
@@ -27,6 +47,39 @@ export class PluginList extends Widget {
|
|
|
27
47
|
this.registry.pluginChanged.connect(() => {
|
|
28
48
|
this.update();
|
|
29
49
|
}, this);
|
|
50
|
+
this.mapPlugins = this.mapPlugins.bind(this);
|
|
51
|
+
this.setFilter = this.setFilter.bind(this);
|
|
52
|
+
this.setFilter(updateFilterFunction((_a = options.query) !== null && _a !== void 0 ? _a : '', false, false));
|
|
53
|
+
this.setError = this.setError.bind(this);
|
|
54
|
+
this._evtMousedown = this._evtMousedown.bind(this);
|
|
55
|
+
this._query = options.query;
|
|
56
|
+
this._allPlugins = PluginList.sortPlugins(this.registry).filter(plugin => {
|
|
57
|
+
var _a;
|
|
58
|
+
const { schema } = plugin;
|
|
59
|
+
const deprecated = schema['jupyter.lab.setting-deprecated'] === true;
|
|
60
|
+
const editable = Object.keys(schema.properties || {}).length > 0;
|
|
61
|
+
const extensible = schema.additionalProperties !== false;
|
|
62
|
+
// Filters out a couple of plugins that take too long to load in the new settings editor.
|
|
63
|
+
const correctEditor =
|
|
64
|
+
// If this is the json settings editor, anything is fine
|
|
65
|
+
this._confirm ||
|
|
66
|
+
// If this is the new settings editor, remove context menu / main menu settings.
|
|
67
|
+
(!this._confirm && !((_a = options.toSkip) !== null && _a !== void 0 ? _a : []).includes(plugin.id));
|
|
68
|
+
return !deprecated && correctEditor && (editable || extensible);
|
|
69
|
+
});
|
|
70
|
+
/**
|
|
71
|
+
* Loads all settings and stores them for easy access when displaying search results.
|
|
72
|
+
*/
|
|
73
|
+
const loadSettings = async () => {
|
|
74
|
+
for (const plugin of this._allPlugins) {
|
|
75
|
+
const pluginSettings = (await this.registry.load(plugin.id));
|
|
76
|
+
this._settings[plugin.id] = pluginSettings;
|
|
77
|
+
}
|
|
78
|
+
this.update();
|
|
79
|
+
};
|
|
80
|
+
void loadSettings();
|
|
81
|
+
this._errors = {};
|
|
82
|
+
this.selection = this._allPlugins[0].id;
|
|
30
83
|
}
|
|
31
84
|
/**
|
|
32
85
|
* A signal emitted when a list user interaction happens.
|
|
@@ -41,6 +94,17 @@ export class PluginList extends Widget {
|
|
|
41
94
|
var _a;
|
|
42
95
|
return (_a = this.node.querySelector('ul')) === null || _a === void 0 ? void 0 : _a.scrollTop;
|
|
43
96
|
}
|
|
97
|
+
get hasErrors() {
|
|
98
|
+
for (const id in this._errors) {
|
|
99
|
+
if (this._errors[id]) {
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
get filter() {
|
|
106
|
+
return this._filter;
|
|
107
|
+
}
|
|
44
108
|
/**
|
|
45
109
|
* The selection value of the plugin list.
|
|
46
110
|
*/
|
|
@@ -48,56 +112,27 @@ export class PluginList extends Widget {
|
|
|
48
112
|
return this._selection;
|
|
49
113
|
}
|
|
50
114
|
set selection(selection) {
|
|
51
|
-
if (this._selection === selection) {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
115
|
this._selection = selection;
|
|
55
116
|
this.update();
|
|
56
117
|
}
|
|
57
118
|
/**
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* @param event - The DOM event sent to the widget.
|
|
61
|
-
*
|
|
62
|
-
* #### Notes
|
|
63
|
-
* This method implements the DOM `EventListener` interface and is
|
|
64
|
-
* called in response to events on the plugin list's node. It should
|
|
65
|
-
* not be called directly by user code.
|
|
66
|
-
*/
|
|
67
|
-
handleEvent(event) {
|
|
68
|
-
switch (event.type) {
|
|
69
|
-
case 'mousedown':
|
|
70
|
-
this._evtMousedown(event);
|
|
71
|
-
break;
|
|
72
|
-
default:
|
|
73
|
-
break;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Handle `'after-attach'` messages.
|
|
119
|
+
* Signal that fires when search filter is updated so that settings panel can filter results.
|
|
78
120
|
*/
|
|
79
|
-
|
|
80
|
-
this.
|
|
81
|
-
this.update();
|
|
121
|
+
get updateFilterSignal() {
|
|
122
|
+
return this._updateFilterSignal;
|
|
82
123
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
*/
|
|
86
|
-
onBeforeDetach(msg) {
|
|
87
|
-
this.node.removeEventListener('mousedown', this);
|
|
124
|
+
get handleSelectSignal() {
|
|
125
|
+
return this._handleSelectSignal;
|
|
88
126
|
}
|
|
89
127
|
/**
|
|
90
128
|
* Handle `'update-request'` messages.
|
|
91
129
|
*/
|
|
92
130
|
onUpdateRequest(msg) {
|
|
93
|
-
const
|
|
94
|
-
const selection = this._selection;
|
|
95
|
-
const translation = this.translator;
|
|
96
|
-
Private.populateList(registry, selection, node, translation);
|
|
97
|
-
const ul = node.querySelector('ul');
|
|
131
|
+
const ul = this.node.querySelector('ul');
|
|
98
132
|
if (ul && this._scrollTop !== undefined) {
|
|
99
133
|
ul.scrollTop = this._scrollTop;
|
|
100
134
|
}
|
|
135
|
+
super.onUpdateRequest(msg);
|
|
101
136
|
}
|
|
102
137
|
/**
|
|
103
138
|
* Handle the `'mousedown'` event for the plugin list.
|
|
@@ -105,53 +140,30 @@ export class PluginList extends Widget {
|
|
|
105
140
|
* @param event - The DOM event sent to the widget
|
|
106
141
|
*/
|
|
107
142
|
_evtMousedown(event) {
|
|
108
|
-
event.
|
|
109
|
-
|
|
110
|
-
let id = target.getAttribute('data-id');
|
|
111
|
-
if (id === this._selection) {
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
if (!id) {
|
|
115
|
-
while (!id && target !== this.node) {
|
|
116
|
-
target = target.parentElement;
|
|
117
|
-
id = target.getAttribute('data-id');
|
|
118
|
-
}
|
|
119
|
-
}
|
|
143
|
+
const target = event.currentTarget;
|
|
144
|
+
const id = target.getAttribute('data-id');
|
|
120
145
|
if (!id) {
|
|
121
146
|
return;
|
|
122
147
|
}
|
|
123
|
-
this._confirm
|
|
124
|
-
.
|
|
148
|
+
if (this._confirm) {
|
|
149
|
+
this._confirm(id)
|
|
150
|
+
.then(() => {
|
|
151
|
+
this.selection = id;
|
|
152
|
+
this._changed.emit(undefined);
|
|
153
|
+
this.update();
|
|
154
|
+
})
|
|
155
|
+
.catch(() => {
|
|
156
|
+
/* no op */
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
125
160
|
this._scrollTop = this.scrollTop;
|
|
126
161
|
this._selection = id;
|
|
162
|
+
this._handleSelectSignal.emit(id);
|
|
127
163
|
this._changed.emit(undefined);
|
|
128
164
|
this.update();
|
|
129
|
-
}
|
|
130
|
-
.catch(() => {
|
|
131
|
-
/* no op */
|
|
132
|
-
});
|
|
165
|
+
}
|
|
133
166
|
}
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* A namespace for private module data.
|
|
137
|
-
*/
|
|
138
|
-
var Private;
|
|
139
|
-
(function (Private) {
|
|
140
|
-
/**
|
|
141
|
-
* The JupyterLab plugin schema key for the setting editor
|
|
142
|
-
* icon class of a plugin.
|
|
143
|
-
*/
|
|
144
|
-
const ICON_KEY = 'jupyter.lab.setting-icon';
|
|
145
|
-
/**
|
|
146
|
-
* The JupyterLab plugin schema key for the setting editor
|
|
147
|
-
* icon class of a plugin.
|
|
148
|
-
*/
|
|
149
|
-
const ICON_CLASS_KEY = 'jupyter.lab.setting-icon-class';
|
|
150
|
-
/**
|
|
151
|
-
* The JupyterLab plugin schema key for the setting editor
|
|
152
|
-
* icon label of a plugin.
|
|
153
|
-
*/
|
|
154
|
-
const ICON_LABEL_KEY = 'jupyter.lab.setting-icon-label';
|
|
155
167
|
/**
|
|
156
168
|
* Check the plugin for a rendering hint's value.
|
|
157
169
|
*
|
|
@@ -162,7 +174,7 @@ var Private;
|
|
|
162
174
|
* 2. Data set by the plugin author as a schema default.
|
|
163
175
|
* 3. Data set by the plugin author as a top-level key of the schema.
|
|
164
176
|
*/
|
|
165
|
-
|
|
177
|
+
getHint(key, registry, plugin) {
|
|
166
178
|
// First, give priority to checking if the hint exists in the user data.
|
|
167
179
|
let hint = plugin.data.user[key];
|
|
168
180
|
// Second, check to see if the hint exists in composite data, which folds
|
|
@@ -182,38 +194,162 @@ var Private;
|
|
|
182
194
|
return typeof hint === 'string' ? hint : '';
|
|
183
195
|
}
|
|
184
196
|
/**
|
|
185
|
-
*
|
|
197
|
+
* Function to recursively filter properties that match search results.
|
|
198
|
+
* @param filter - Function to filter based on search results
|
|
199
|
+
* @param props - Schema properties being filtered
|
|
200
|
+
* @param definitions - Definitions to use for filling in references in properties
|
|
201
|
+
* @param ref - Reference to a definition
|
|
202
|
+
* @returns - String array of properties that match the search results.
|
|
186
203
|
*/
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
204
|
+
getFilterString(filter, props, definitions, ref) {
|
|
205
|
+
var _a;
|
|
206
|
+
// If properties given are references, populate properties
|
|
207
|
+
// with corresponding definition.
|
|
208
|
+
if (ref && definitions) {
|
|
209
|
+
ref = ref.replace('#/definitions/', '');
|
|
210
|
+
props = (_a = definitions[ref]) !== null && _a !== void 0 ? _a : {};
|
|
211
|
+
}
|
|
212
|
+
// If given properties are an object, advance into the properties
|
|
213
|
+
// for that object instead.
|
|
214
|
+
if (props.properties) {
|
|
215
|
+
props = props.properties;
|
|
216
|
+
// If given properties are an array, advance into the properties
|
|
217
|
+
// for the items instead.
|
|
218
|
+
}
|
|
219
|
+
else if (props.items) {
|
|
220
|
+
props = props.items;
|
|
221
|
+
// Otherwise, you've reached the base case and don't need to check for matching properties
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
return [];
|
|
225
|
+
}
|
|
226
|
+
// If reference found, recurse
|
|
227
|
+
if (props['$ref']) {
|
|
228
|
+
return this.getFilterString(filter, props, definitions, props['$ref']);
|
|
229
|
+
}
|
|
230
|
+
// Make sure props is non-empty before calling reduce
|
|
231
|
+
if (Object.keys(props).length === 0) {
|
|
232
|
+
return [];
|
|
233
|
+
}
|
|
234
|
+
// Iterate through the properties and check for titles / descriptions that match search.
|
|
235
|
+
return Object.keys(props).reduce((acc, value) => {
|
|
236
|
+
var _a, _b;
|
|
237
|
+
// If this is the base case, check for matching title / description
|
|
238
|
+
const subProps = props[value];
|
|
239
|
+
if (!subProps) {
|
|
240
|
+
if (filter((_a = props.title) !== null && _a !== void 0 ? _a : '')) {
|
|
241
|
+
return props.title;
|
|
242
|
+
}
|
|
243
|
+
if (filter(value)) {
|
|
244
|
+
return value;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
// If there are properties in the object, check for title / description
|
|
248
|
+
if (filter((_b = subProps.title) !== null && _b !== void 0 ? _b : '')) {
|
|
249
|
+
acc.push(subProps.title);
|
|
250
|
+
}
|
|
251
|
+
if (filter(value)) {
|
|
252
|
+
acc.push(value);
|
|
253
|
+
}
|
|
254
|
+
// Finally, recurse on the properties left.
|
|
255
|
+
acc.concat(this.getFilterString(filter, subProps, definitions, subProps['$ref']));
|
|
256
|
+
return acc;
|
|
257
|
+
}, []);
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Updates the filter when the search bar value changes.
|
|
261
|
+
* @param filter Filter function passed by search bar based on search value.
|
|
262
|
+
*/
|
|
263
|
+
setFilter(filter, query) {
|
|
264
|
+
this._filter = (plugin) => {
|
|
265
|
+
var _a, _b;
|
|
266
|
+
if (filter((_a = plugin.schema.title) !== null && _a !== void 0 ? _a : '')) {
|
|
267
|
+
return null;
|
|
268
|
+
}
|
|
269
|
+
const filtered = this.getFilterString(filter, (_b = plugin.schema) !== null && _b !== void 0 ? _b : {}, plugin.schema.definitions);
|
|
270
|
+
return filtered;
|
|
271
|
+
};
|
|
272
|
+
this._query = query;
|
|
273
|
+
this._updateFilterSignal.emit(this._filter);
|
|
274
|
+
this.update();
|
|
275
|
+
}
|
|
276
|
+
setError(id, error) {
|
|
277
|
+
if (this._errors[id] !== error) {
|
|
278
|
+
this._errors[id] = error;
|
|
279
|
+
this.update();
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
this._errors[id] = error;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
mapPlugins(plugin) {
|
|
286
|
+
var _a, _b, _c, _d;
|
|
287
|
+
const { id, schema, version } = plugin;
|
|
288
|
+
const trans = this.translator.load('jupyterlab');
|
|
289
|
+
const title = typeof schema.title === 'string' ? trans._p('schema', schema.title) : id;
|
|
290
|
+
const highlightedTitleIndices = StringExt.matchSumOfSquares(title.toLocaleLowerCase(), (_b = (_a = this._query) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) !== null && _b !== void 0 ? _b : '');
|
|
291
|
+
const hightlightedTitle = StringExt.highlight(title, (_c = highlightedTitleIndices === null || highlightedTitleIndices === void 0 ? void 0 : highlightedTitleIndices.indices) !== null && _c !== void 0 ? _c : [], chunk => {
|
|
292
|
+
return React.createElement("mark", null, chunk);
|
|
293
|
+
});
|
|
294
|
+
const description = typeof schema.description === 'string'
|
|
295
|
+
? trans._p('schema', schema.description)
|
|
296
|
+
: '';
|
|
297
|
+
const itemTitle = `${description}\n${id}\n${version}`;
|
|
298
|
+
const icon = this.getHint(ICON_KEY, this.registry, plugin);
|
|
299
|
+
const iconClass = this.getHint(ICON_CLASS_KEY, this.registry, plugin);
|
|
300
|
+
const iconTitle = this.getHint(ICON_LABEL_KEY, this.registry, plugin);
|
|
301
|
+
const filteredProperties = (_d = this._filter(plugin)) === null || _d === void 0 ? void 0 : _d.map(fieldValue => {
|
|
302
|
+
var _a, _b, _c;
|
|
303
|
+
const highlightedIndices = StringExt.matchSumOfSquares(fieldValue.toLocaleLowerCase(), (_b = (_a = this._query) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) !== null && _b !== void 0 ? _b : '');
|
|
304
|
+
const highlighted = StringExt.highlight(fieldValue, (_c = highlightedIndices === null || highlightedIndices === void 0 ? void 0 : highlightedIndices.indices) !== null && _c !== void 0 ? _c : [], chunk => {
|
|
305
|
+
return React.createElement("mark", null, chunk);
|
|
306
|
+
});
|
|
307
|
+
return React.createElement("li", { key: `${id}-${fieldValue}` },
|
|
308
|
+
" ",
|
|
309
|
+
highlighted,
|
|
310
|
+
" ");
|
|
196
311
|
});
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
:
|
|
202
|
-
const description = typeof schema.description === 'string'
|
|
203
|
-
? trans._p('schema', schema.description)
|
|
204
|
-
: '';
|
|
205
|
-
const itemTitle = `${description}\n${id}\n${version}`;
|
|
206
|
-
const icon = getHint(ICON_KEY, registry, plugin);
|
|
207
|
-
const iconClass = getHint(ICON_CLASS_KEY, registry, plugin);
|
|
208
|
-
const iconTitle = getHint(ICON_LABEL_KEY, registry, plugin);
|
|
209
|
-
return (React.createElement("li", { className: id === selection ? 'jp-mod-selected' : '', "data-id": id, key: id, title: itemTitle },
|
|
312
|
+
return (React.createElement("div", { onClick: this._evtMousedown, className: `${id === this.selection
|
|
313
|
+
? 'jp-mod-selected jp-PluginList-entry'
|
|
314
|
+
: 'jp-PluginList-entry'} ${this._errors[id] ? 'jp-ErrorPlugin' : ''}`, "data-id": id, key: id, title: itemTitle },
|
|
315
|
+
React.createElement("div", { className: "jp-pluginList-entry-label", role: "tab" },
|
|
316
|
+
React.createElement("div", { className: "jp-SelectedIndicator" }),
|
|
210
317
|
React.createElement(LabIcon.resolveReact, { icon: icon || (iconClass ? undefined : settingsIcon), iconClass: classes(iconClass, 'jp-Icon'), title: iconTitle, tag: "span", stylesheet: "settingsEditor" }),
|
|
211
|
-
React.createElement("span", null,
|
|
318
|
+
React.createElement("span", null, hightlightedTitle)),
|
|
319
|
+
React.createElement("ul", null, filteredProperties)));
|
|
320
|
+
}
|
|
321
|
+
render() {
|
|
322
|
+
const trans = this.translator.load('jupyterlab');
|
|
323
|
+
// Filter all plugins based on search value before displaying list.
|
|
324
|
+
const allPlugins = this._allPlugins.filter(plugin => {
|
|
325
|
+
const filtered = this._filter(plugin);
|
|
326
|
+
return filtered === null || filtered.length > 0;
|
|
327
|
+
});
|
|
328
|
+
const modifiedPlugins = allPlugins.filter(plugin => {
|
|
329
|
+
var _a;
|
|
330
|
+
return (_a = this._settings[plugin.id]) === null || _a === void 0 ? void 0 : _a.isModified;
|
|
212
331
|
});
|
|
213
|
-
|
|
214
|
-
|
|
332
|
+
const modifiedItems = modifiedPlugins.map(this.mapPlugins);
|
|
333
|
+
const otherItems = allPlugins
|
|
334
|
+
.filter(plugin => {
|
|
335
|
+
return !modifiedPlugins.includes(plugin);
|
|
336
|
+
})
|
|
337
|
+
.map(this.mapPlugins);
|
|
338
|
+
return (React.createElement("div", { className: "jp-PluginList-wrapper" },
|
|
339
|
+
React.createElement(FilterBox, { updateFilter: this.setFilter, useFuzzyFilter: false, placeholder: trans.__('Search…'), forceRefresh: false, caseSensitive: false, initialQuery: this._query }),
|
|
340
|
+
modifiedItems.length > 0 && (React.createElement("div", null,
|
|
341
|
+
React.createElement("h1", { className: "jp-PluginList-header" }, trans.__('Modified')),
|
|
342
|
+
React.createElement("ul", null, modifiedItems))),
|
|
343
|
+
otherItems.length > 0 && (React.createElement("div", null,
|
|
344
|
+
React.createElement("h1", { className: "jp-PluginList-header" }, trans.__('Settings')),
|
|
345
|
+
React.createElement("ul", null, otherItems))),
|
|
346
|
+
modifiedItems.length === 0 && otherItems.length === 0 && (React.createElement("p", { className: "jp-PluginList-noResults" }, trans.__('No items match your search.')))));
|
|
215
347
|
}
|
|
216
|
-
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* A namespace for `PluginList` statics.
|
|
351
|
+
*/
|
|
352
|
+
(function (PluginList) {
|
|
217
353
|
/**
|
|
218
354
|
* Sort a list of plugins by title and ID.
|
|
219
355
|
*/
|
|
@@ -224,5 +360,6 @@ var Private;
|
|
|
224
360
|
return (a.schema.title || a.id).localeCompare(b.schema.title || b.id);
|
|
225
361
|
});
|
|
226
362
|
}
|
|
227
|
-
|
|
363
|
+
PluginList.sortPlugins = sortPlugins;
|
|
364
|
+
})(PluginList || (PluginList = {}));
|
|
228
365
|
//# sourceMappingURL=pluginlist.js.map
|
package/lib/pluginlist.js.map
CHANGED
|
@@ -1 +1 @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AAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAE,CAAC;aACxC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACb,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;QACxE,CAAC,CAAC,CAAC;IACP,CAAC;IARe,sBAAW,cAQ1B,CAAA;AACH,CAAC,EAhDgB,UAAU,KAAV,UAAU,QAgD1B"}
|
package/lib/raweditor.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ITranslator } from '@jupyterlab/translation';
|
|
|
5
5
|
import { CommandRegistry } from '@lumino/commands';
|
|
6
6
|
import { Message } from '@lumino/messaging';
|
|
7
7
|
import { ISignal } from '@lumino/signaling';
|
|
8
|
-
import { SplitPanel } from '
|
|
8
|
+
import { SplitPanel } from '@lumino/widgets';
|
|
9
9
|
/**
|
|
10
10
|
* A raw JSON settings editor.
|
|
11
11
|
*/
|
|
@@ -64,10 +64,6 @@ export declare class RawEditor extends SplitPanel {
|
|
|
64
64
|
* Handle `after-attach` messages.
|
|
65
65
|
*/
|
|
66
66
|
protected onAfterAttach(msg: Message): void;
|
|
67
|
-
/**
|
|
68
|
-
* Handle `'update-request'` messages.
|
|
69
|
-
*/
|
|
70
|
-
protected onUpdateRequest(msg: Message): void;
|
|
71
67
|
/**
|
|
72
68
|
* Handle text changes in the underlying editor.
|
|
73
69
|
*/
|
package/lib/raweditor.js
CHANGED
|
@@ -4,9 +4,8 @@ import { CodeEditor, CodeEditorWrapper } from '@jupyterlab/codeeditor';
|
|
|
4
4
|
import { nullTranslator } from '@jupyterlab/translation';
|
|
5
5
|
import { CommandToolbarButton, Toolbar } from '@jupyterlab/ui-components';
|
|
6
6
|
import { Signal } from '@lumino/signaling';
|
|
7
|
-
import { BoxLayout, Widget } from '@lumino/widgets';
|
|
7
|
+
import { BoxLayout, SplitPanel, Widget } from '@lumino/widgets';
|
|
8
8
|
import { createInspector } from './inspector';
|
|
9
|
-
import { SplitPanel } from './splitpanel';
|
|
10
9
|
/**
|
|
11
10
|
* A class name added to all raw editors.
|
|
12
11
|
*/
|
|
@@ -183,18 +182,6 @@ export class RawEditor extends SplitPanel {
|
|
|
183
182
|
Private.populateToolbar(this._commands, this._toolbar);
|
|
184
183
|
this.update();
|
|
185
184
|
}
|
|
186
|
-
/**
|
|
187
|
-
* Handle `'update-request'` messages.
|
|
188
|
-
*/
|
|
189
|
-
onUpdateRequest(msg) {
|
|
190
|
-
const settings = this._settings;
|
|
191
|
-
const defaults = this._defaults;
|
|
192
|
-
const user = this._user;
|
|
193
|
-
if (settings) {
|
|
194
|
-
defaults.editor.refresh();
|
|
195
|
-
user.editor.refresh();
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
185
|
/**
|
|
199
186
|
* Handle text changes in the underlying editor.
|
|
200
187
|
*/
|
package/lib/raweditor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raweditor.js","sourceRoot":"","sources":["../src/raweditor.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAGvE,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAG1E,OAAO,EAAW,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"raweditor.js","sourceRoot":"","sources":["../src/raweditor.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAA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I,CAAC,YAAY,CAAC,CAAC;QAC5C,MAAM,SAAS,GAAG,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC;QAC/C,MAAM,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;QAC5B,MAAM,MAAM,GAAG,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QAC/D,MAAM,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;QAE5B,MAAM,CAAC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAClC,OAAO,CAAC,UAAU,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;QACxC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAC1B,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACzB,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QAE5B,OAAO,MAAM,CAAC;IAChB,CAAC;IApBe,kBAAU,aAoBzB,CAAA;AACH,CAAC,EApES,OAAO,KAAP,OAAO,QAoEhB"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ILabStatus } from '@jupyterlab/application';
|
|
2
|
+
import { ISettingRegistry } from '@jupyterlab/settingregistry';
|
|
3
|
+
import { IStateDB } from '@jupyterlab/statedb';
|
|
4
|
+
import { ITranslator } from '@jupyterlab/translation';
|
|
5
|
+
import { IFormComponentRegistry } from '@jupyterlab/ui-components';
|
|
6
|
+
import { CommandRegistry } from '@lumino/commands';
|
|
7
|
+
import { Message } from '@lumino/messaging';
|
|
8
|
+
import { ISignal } from '@lumino/signaling';
|
|
9
|
+
import { SplitPanel } from '@lumino/widgets';
|
|
10
|
+
/**
|
|
11
|
+
* Form based interface for editing settings.
|
|
12
|
+
*/
|
|
13
|
+
export declare class SettingsEditor extends SplitPanel {
|
|
14
|
+
constructor(options: SettingsEditor.IOptions);
|
|
15
|
+
/**
|
|
16
|
+
* A signal emitted on the start and end of a saving operation.
|
|
17
|
+
*/
|
|
18
|
+
get saveStateChanged(): ISignal<this, SettingsEditor.SaveState>;
|
|
19
|
+
/**
|
|
20
|
+
* Set the dirty state status
|
|
21
|
+
*
|
|
22
|
+
* @param dirty New status
|
|
23
|
+
*/
|
|
24
|
+
setDirtyState(dirty: boolean): void;
|
|
25
|
+
/**
|
|
26
|
+
* A message handler invoked on a `'close-request'` message.
|
|
27
|
+
*
|
|
28
|
+
* @param msg Widget message
|
|
29
|
+
*/
|
|
30
|
+
protected onCloseRequest(msg: Message): void;
|
|
31
|
+
protected translator: ITranslator;
|
|
32
|
+
private _clearDirty;
|
|
33
|
+
private _status;
|
|
34
|
+
private _dirty;
|
|
35
|
+
private _list;
|
|
36
|
+
private _saveStateChange;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace SettingsEditor {
|
|
39
|
+
/**
|
|
40
|
+
* Settings editor save state
|
|
41
|
+
*/
|
|
42
|
+
type SaveState = 'started' | 'failed' | 'completed';
|
|
43
|
+
/**
|
|
44
|
+
* Settings editor options
|
|
45
|
+
*/
|
|
46
|
+
interface IOptions {
|
|
47
|
+
/**
|
|
48
|
+
* Form component registry
|
|
49
|
+
*/
|
|
50
|
+
editorRegistry: IFormComponentRegistry;
|
|
51
|
+
/**
|
|
52
|
+
* The state database key for the editor's state management.
|
|
53
|
+
*/
|
|
54
|
+
key: string;
|
|
55
|
+
/**
|
|
56
|
+
* The setting registry the editor modifies.
|
|
57
|
+
*/
|
|
58
|
+
registry: ISettingRegistry;
|
|
59
|
+
/**
|
|
60
|
+
* The state database used to store layout.
|
|
61
|
+
*/
|
|
62
|
+
state: IStateDB;
|
|
63
|
+
/**
|
|
64
|
+
* Command registry used to open the JSON settings editor.
|
|
65
|
+
*/
|
|
66
|
+
commands: CommandRegistry;
|
|
67
|
+
/**
|
|
68
|
+
* Application status
|
|
69
|
+
*/
|
|
70
|
+
status: ILabStatus;
|
|
71
|
+
/**
|
|
72
|
+
* List of plugins to skip
|
|
73
|
+
*/
|
|
74
|
+
toSkip?: string[];
|
|
75
|
+
/**
|
|
76
|
+
* The application language translator.
|
|
77
|
+
*/
|
|
78
|
+
translator?: ITranslator;
|
|
79
|
+
query?: string;
|
|
80
|
+
}
|
|
81
|
+
}
|