@jupyterlab/settingeditor 4.0.0-alpha.4 → 4.0.0-alpha.5
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 +83 -0
- package/lib/SettingsFormEditor.js +206 -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} +24 -42
- 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 +38 -24
- package/lib/pluginlist.js +157 -115
- package/lib/pluginlist.js.map +1 -1
- package/lib/settingseditor.d.ts +80 -0
- package/lib/settingseditor.js +116 -0
- package/lib/settingseditor.js.map +1 -0
- package/lib/settingspanel.d.ts +45 -0
- package/lib/settingspanel.js +62 -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 +19 -15
- package/style/base.css +364 -86
- package/style/index.css +1 -0
- package/style/index.js +1 -0
- package/lib/settingeditor.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonsettingeditor.js","sourceRoot":"","sources":["../src/jsonsettingeditor.tsx"],"names":[],"mappings":"AAAA;;;+EAG+E;AAM/E,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,EAAE,OAAO,EAAyB,MAAM,mBAAmB,CAAC;AAInE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;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C,MAAM;gBAClB,CAAC,CAAC,cAAc,CAAC,SAAS,CAAC,MAAM;YACrC,KAAK,EAAE,WAAW,CAAC,SAAS,CAAC,KAAK,CAAC;gBACjC,CAAC,CAAC,SAAS,CAAC,KAAK;gBACjB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,SAAS,CAAC,KAAK,CAAC;SACrD,CAAC;QAEF,OAAO,KAAuC,CAAC;IACjD,CAAC;IAlCe,sBAAc,iBAkC7B,CAAA;IAED;;OAEG;IACH,SAAS,WAAW,CAAC,KAAgB;QACnC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC;IACzE,CAAC;AACH,CAAC,EA9CS,OAAO,KAAP,OAAO,QA8ChB"}
|
package/lib/plugineditor.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Message } from '@lumino/messaging';
|
|
|
7
7
|
import { ISignal } from '@lumino/signaling';
|
|
8
8
|
import { Widget } from '@lumino/widgets';
|
|
9
9
|
import { RawEditor } from './raweditor';
|
|
10
|
-
import {
|
|
10
|
+
import { JsonSettingEditor } from './jsonsettingeditor';
|
|
11
11
|
/**
|
|
12
12
|
* An individual plugin settings editor.
|
|
13
13
|
*/
|
|
@@ -34,8 +34,8 @@ export declare class PluginEditor extends Widget {
|
|
|
34
34
|
/**
|
|
35
35
|
* The plugin editor layout state.
|
|
36
36
|
*/
|
|
37
|
-
get state():
|
|
38
|
-
set state(state:
|
|
37
|
+
get state(): JsonSettingEditor.IPluginLayout;
|
|
38
|
+
set state(state: JsonSettingEditor.IPluginLayout);
|
|
39
39
|
/**
|
|
40
40
|
* A signal that emits when editor layout state changes and needs to be saved.
|
|
41
41
|
*/
|
package/lib/plugineditor.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
| Copyright (c) Jupyter Development Team.
|
|
3
3
|
| Distributed under the terms of the Modified BSD License.
|
|
4
4
|
|----------------------------------------------------------------------------*/
|
|
5
|
-
import { Dialog, showDialog } from '@jupyterlab/apputils';
|
|
5
|
+
import { Dialog, showDialog, showErrorMessage } from '@jupyterlab/apputils';
|
|
6
6
|
import { nullTranslator } from '@jupyterlab/translation';
|
|
7
7
|
import { JSONExt } from '@lumino/coreutils';
|
|
8
8
|
import { Signal } from '@lumino/signaling';
|
|
@@ -155,11 +155,7 @@ var Private;
|
|
|
155
155
|
translator = translator || nullTranslator;
|
|
156
156
|
const trans = translator.load('jupyterlab');
|
|
157
157
|
console.error(`Saving setting editor value failed: ${reason.message}`);
|
|
158
|
-
void
|
|
159
|
-
title: trans.__('Your changes were not saved.'),
|
|
160
|
-
body: reason.message,
|
|
161
|
-
buttons: [Dialog.okButton({ label: trans.__('Ok') })]
|
|
162
|
-
});
|
|
158
|
+
void showErrorMessage(trans.__('Your changes were not saved.'), reason);
|
|
163
159
|
}
|
|
164
160
|
Private.onSaveError = onSaveError;
|
|
165
161
|
})(Private || (Private = {}));
|
package/lib/plugineditor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugineditor.js","sourceRoot":"","sources":["../src/plugineditor.ts"],"names":[],"mappings":"AAAA;;;+EAG+E;AAE/E,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"plugineditor.js","sourceRoot":"","sources":["../src/plugineditor.ts"],"names":[],"mappings":"AAAA;;;+EAG+E;AAE/E,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAI5E,OAAO,EAEL,cAAc,EAEf,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAW,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,M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U,GAAG,UAAU,IAAI,cAAc,CAAC;QAC1C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC5C,OAAO,CAAC,KAAK,CAAC,uCAAuC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;QACvE,KAAK,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAAC,EAAE,MAAM,CAAC,CAAC;IAC1E,CAAC;IARe,mBAAW,cAQ1B,CAAA;AACH,CAAC,EAbS,OAAO,KAAP,OAAO,QAahB"}
|
package/lib/pluginlist.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { ReactWidget } from '@jupyterlab/apputils';
|
|
1
2
|
import { ISettingRegistry } from '@jupyterlab/settingregistry';
|
|
2
3
|
import { ITranslator } from '@jupyterlab/translation';
|
|
3
4
|
import { Message } from '@lumino/messaging';
|
|
4
5
|
import { ISignal } from '@lumino/signaling';
|
|
5
|
-
import { Widget } from '@lumino/widgets';
|
|
6
6
|
/**
|
|
7
7
|
* A list of plugins with editable settings.
|
|
8
8
|
*/
|
|
9
|
-
export declare class PluginList extends
|
|
9
|
+
export declare class PluginList extends ReactWidget {
|
|
10
10
|
/**
|
|
11
11
|
* Create a new plugin list.
|
|
12
12
|
*/
|
|
@@ -23,30 +23,16 @@ export declare class PluginList extends Widget {
|
|
|
23
23
|
* The selection value of the plugin list.
|
|
24
24
|
*/
|
|
25
25
|
get scrollTop(): number | undefined;
|
|
26
|
+
get hasErrors(): boolean;
|
|
26
27
|
/**
|
|
27
28
|
* The selection value of the plugin list.
|
|
28
29
|
*/
|
|
29
30
|
get selection(): string;
|
|
30
31
|
set selection(selection: string);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
*
|
|
36
|
-
* #### Notes
|
|
37
|
-
* This method implements the DOM `EventListener` interface and is
|
|
38
|
-
* called in response to events on the plugin list's node. It should
|
|
39
|
-
* not be called directly by user code.
|
|
40
|
-
*/
|
|
41
|
-
handleEvent(event: Event): void;
|
|
42
|
-
/**
|
|
43
|
-
* Handle `'after-attach'` messages.
|
|
44
|
-
*/
|
|
45
|
-
protected onAfterAttach(msg: Message): void;
|
|
46
|
-
/**
|
|
47
|
-
* Handle `before-detach` messages for the widget.
|
|
48
|
-
*/
|
|
49
|
-
protected onBeforeDetach(msg: Message): void;
|
|
32
|
+
get filter(): (item: ISettingRegistry.IPlugin) => boolean;
|
|
33
|
+
set filter(filter: (item: ISettingRegistry.IPlugin) => boolean);
|
|
34
|
+
protected updateModifiedPlugins(): Promise<void>;
|
|
35
|
+
get handleSelectSignal(): ISignal<this, string>;
|
|
50
36
|
/**
|
|
51
37
|
* Handle `'update-request'` messages.
|
|
52
38
|
*/
|
|
@@ -57,9 +43,29 @@ export declare class PluginList extends Widget {
|
|
|
57
43
|
* @param event - The DOM event sent to the widget
|
|
58
44
|
*/
|
|
59
45
|
private _evtMousedown;
|
|
46
|
+
/**
|
|
47
|
+
* Check the plugin for a rendering hint's value.
|
|
48
|
+
*
|
|
49
|
+
* #### Notes
|
|
50
|
+
* The order of priority for overridden hints is as follows, from most
|
|
51
|
+
* important to least:
|
|
52
|
+
* 1. Data set by the end user in a settings file.
|
|
53
|
+
* 2. Data set by the plugin author as a schema default.
|
|
54
|
+
* 3. Data set by the plugin author as a top-level key of the schema.
|
|
55
|
+
*/
|
|
56
|
+
getHint(key: string, registry: ISettingRegistry, plugin: ISettingRegistry.IPlugin): string;
|
|
57
|
+
setFilter(filter: (item: string) => boolean): void;
|
|
58
|
+
setError(id: string, error: boolean): void;
|
|
59
|
+
mapPlugins(plugin: ISettingRegistry.IPlugin): JSX.Element;
|
|
60
|
+
render(): JSX.Element;
|
|
60
61
|
protected translator: ITranslator;
|
|
61
62
|
private _changed;
|
|
62
|
-
private
|
|
63
|
+
private _errors;
|
|
64
|
+
private _filter;
|
|
65
|
+
private _handleSelectSignal;
|
|
66
|
+
private _modifiedPlugins;
|
|
67
|
+
private _allPlugins;
|
|
68
|
+
private _confirm?;
|
|
63
69
|
private _scrollTop;
|
|
64
70
|
private _selection;
|
|
65
71
|
}
|
|
@@ -74,19 +80,27 @@ export declare namespace PluginList {
|
|
|
74
80
|
/**
|
|
75
81
|
* A function that allows for asynchronously confirming a selection.
|
|
76
82
|
*
|
|
77
|
-
* ####
|
|
83
|
+
* #### Notes
|
|
78
84
|
* If the promise returned by the function resolves, then the selection will
|
|
79
85
|
* succeed and emit an event. If the promise rejects, the selection is not
|
|
80
86
|
* made.
|
|
81
87
|
*/
|
|
82
|
-
confirm:
|
|
88
|
+
confirm?: (id: string) => Promise<void>;
|
|
83
89
|
/**
|
|
84
90
|
* The setting registry for the plugin list.
|
|
85
91
|
*/
|
|
86
92
|
registry: ISettingRegistry;
|
|
93
|
+
/**
|
|
94
|
+
* List of plugins to skip
|
|
95
|
+
*/
|
|
96
|
+
toSkip?: string[];
|
|
87
97
|
/**
|
|
88
98
|
* The setting registry for the plugin list.
|
|
89
99
|
*/
|
|
90
100
|
translator?: ITranslator;
|
|
91
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* Sort a list of plugins by title and ID.
|
|
104
|
+
*/
|
|
105
|
+
function sortPlugins(registry: ISettingRegistry): ISettingRegistry.IPlugin[];
|
|
92
106
|
}
|
package/lib/pluginlist.js
CHANGED
|
@@ -2,22 +2,39 @@
|
|
|
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 } from '@jupyterlab/ui-components';
|
|
7
8
|
import { Signal } from '@lumino/signaling';
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
import React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* The JupyterLab plugin schema key for the setting editor
|
|
12
|
+
* icon class of a plugin.
|
|
13
|
+
*/
|
|
14
|
+
const ICON_KEY = 'jupyter.lab.setting-icon';
|
|
15
|
+
/**
|
|
16
|
+
* The JupyterLab plugin schema key for the setting editor
|
|
17
|
+
* icon class of a plugin.
|
|
18
|
+
*/
|
|
19
|
+
const ICON_CLASS_KEY = 'jupyter.lab.setting-icon-class';
|
|
20
|
+
/**
|
|
21
|
+
* The JupyterLab plugin schema key for the setting editor
|
|
22
|
+
* icon label of a plugin.
|
|
23
|
+
*/
|
|
24
|
+
const ICON_LABEL_KEY = 'jupyter.lab.setting-icon-label';
|
|
11
25
|
/**
|
|
12
26
|
* A list of plugins with editable settings.
|
|
13
27
|
*/
|
|
14
|
-
export class PluginList extends
|
|
28
|
+
export class PluginList extends ReactWidget {
|
|
15
29
|
/**
|
|
16
30
|
* Create a new plugin list.
|
|
17
31
|
*/
|
|
18
32
|
constructor(options) {
|
|
19
33
|
super();
|
|
20
34
|
this._changed = new Signal(this);
|
|
35
|
+
this._handleSelectSignal = new Signal(this);
|
|
36
|
+
this._modifiedPlugins = [];
|
|
37
|
+
this._allPlugins = [];
|
|
21
38
|
this._scrollTop = 0;
|
|
22
39
|
this._selection = '';
|
|
23
40
|
this.registry = options.registry;
|
|
@@ -27,6 +44,30 @@ export class PluginList extends Widget {
|
|
|
27
44
|
this.registry.pluginChanged.connect(() => {
|
|
28
45
|
this.update();
|
|
29
46
|
}, this);
|
|
47
|
+
this.mapPlugins = this.mapPlugins.bind(this);
|
|
48
|
+
this._filter = (item) => true;
|
|
49
|
+
this.setFilter = this.setFilter.bind(this);
|
|
50
|
+
this.setError = this.setError.bind(this);
|
|
51
|
+
this._evtMousedown = this._evtMousedown.bind(this);
|
|
52
|
+
this._allPlugins = PluginList.sortPlugins(this.registry).filter(plugin => {
|
|
53
|
+
var _a, _b;
|
|
54
|
+
const { schema } = plugin;
|
|
55
|
+
const deprecated = schema['jupyter.lab.setting-deprecated'] === true;
|
|
56
|
+
const editable = Object.keys(schema.properties || {}).length > 0;
|
|
57
|
+
const extensible = schema.additionalProperties !== false;
|
|
58
|
+
// Filters out a couple of plugins that take too long to load in the new settings editor.
|
|
59
|
+
const correctEditor =
|
|
60
|
+
// If this is the json settings editor, anything is fine
|
|
61
|
+
this._confirm ||
|
|
62
|
+
// If this is the new settings editor, remove context menu / main menu settings.
|
|
63
|
+
(!this._confirm && !((_a = options.toSkip) !== null && _a !== void 0 ? _a : []).includes(plugin.id));
|
|
64
|
+
return (!deprecated &&
|
|
65
|
+
correctEditor &&
|
|
66
|
+
(editable || extensible) &&
|
|
67
|
+
((_b = this._filter) === null || _b === void 0 ? void 0 : _b.call(this, plugin)));
|
|
68
|
+
});
|
|
69
|
+
this._errors = {};
|
|
70
|
+
this.selection = this._allPlugins[0].id;
|
|
30
71
|
}
|
|
31
72
|
/**
|
|
32
73
|
* A signal emitted when a list user interaction happens.
|
|
@@ -41,6 +82,14 @@ export class PluginList extends Widget {
|
|
|
41
82
|
var _a;
|
|
42
83
|
return (_a = this.node.querySelector('ul')) === null || _a === void 0 ? void 0 : _a.scrollTop;
|
|
43
84
|
}
|
|
85
|
+
get hasErrors() {
|
|
86
|
+
for (const id in this._errors) {
|
|
87
|
+
if (this._errors[id]) {
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
44
93
|
/**
|
|
45
94
|
* The selection value of the plugin list.
|
|
46
95
|
*/
|
|
@@ -48,56 +97,49 @@ export class PluginList extends Widget {
|
|
|
48
97
|
return this._selection;
|
|
49
98
|
}
|
|
50
99
|
set selection(selection) {
|
|
51
|
-
if (this._selection === selection) {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
100
|
this._selection = selection;
|
|
55
101
|
this.update();
|
|
56
102
|
}
|
|
57
|
-
|
|
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
|
-
}
|
|
103
|
+
get filter() {
|
|
104
|
+
return this._filter;
|
|
75
105
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
*/
|
|
79
|
-
onAfterAttach(msg) {
|
|
80
|
-
this.node.addEventListener('mousedown', this);
|
|
81
|
-
this.update();
|
|
106
|
+
set filter(filter) {
|
|
107
|
+
this._filter = filter;
|
|
82
108
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
109
|
+
async updateModifiedPlugins() {
|
|
110
|
+
const modifiedPlugins = [];
|
|
111
|
+
for (const plugin of this._allPlugins) {
|
|
112
|
+
const settings = (await this.registry.load(plugin.id));
|
|
113
|
+
if (settings.isModified) {
|
|
114
|
+
modifiedPlugins.push(plugin);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
if (this._modifiedPlugins.length !== modifiedPlugins.length) {
|
|
118
|
+
this._modifiedPlugins = modifiedPlugins;
|
|
119
|
+
this.update();
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
for (const plugin of modifiedPlugins) {
|
|
123
|
+
if (!this._modifiedPlugins.find(p => p.id === plugin.id)) {
|
|
124
|
+
this._modifiedPlugins = modifiedPlugins;
|
|
125
|
+
this.update();
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
get handleSelectSignal() {
|
|
131
|
+
return this._handleSelectSignal;
|
|
88
132
|
}
|
|
89
133
|
/**
|
|
90
134
|
* Handle `'update-request'` messages.
|
|
91
135
|
*/
|
|
92
136
|
onUpdateRequest(msg) {
|
|
93
|
-
|
|
94
|
-
const
|
|
95
|
-
const translation = this.translator;
|
|
96
|
-
Private.populateList(registry, selection, node, translation);
|
|
97
|
-
const ul = node.querySelector('ul');
|
|
137
|
+
void this.updateModifiedPlugins();
|
|
138
|
+
const ul = this.node.querySelector('ul');
|
|
98
139
|
if (ul && this._scrollTop !== undefined) {
|
|
99
140
|
ul.scrollTop = this._scrollTop;
|
|
100
141
|
}
|
|
142
|
+
super.onUpdateRequest(msg);
|
|
101
143
|
}
|
|
102
144
|
/**
|
|
103
145
|
* Handle the `'mousedown'` event for the plugin list.
|
|
@@ -105,53 +147,30 @@ export class PluginList extends Widget {
|
|
|
105
147
|
* @param event - The DOM event sent to the widget
|
|
106
148
|
*/
|
|
107
149
|
_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
|
-
}
|
|
150
|
+
const target = event.currentTarget;
|
|
151
|
+
const id = target.getAttribute('data-id');
|
|
120
152
|
if (!id) {
|
|
121
153
|
return;
|
|
122
154
|
}
|
|
123
|
-
this._confirm
|
|
124
|
-
.
|
|
155
|
+
if (this._confirm) {
|
|
156
|
+
this._confirm(id)
|
|
157
|
+
.then(() => {
|
|
158
|
+
this.selection = id;
|
|
159
|
+
this._changed.emit(undefined);
|
|
160
|
+
this.update();
|
|
161
|
+
})
|
|
162
|
+
.catch(() => {
|
|
163
|
+
/* no op */
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
125
167
|
this._scrollTop = this.scrollTop;
|
|
126
168
|
this._selection = id;
|
|
169
|
+
this._handleSelectSignal.emit(id);
|
|
127
170
|
this._changed.emit(undefined);
|
|
128
171
|
this.update();
|
|
129
|
-
}
|
|
130
|
-
.catch(() => {
|
|
131
|
-
/* no op */
|
|
132
|
-
});
|
|
172
|
+
}
|
|
133
173
|
}
|
|
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
174
|
/**
|
|
156
175
|
* Check the plugin for a rendering hint's value.
|
|
157
176
|
*
|
|
@@ -162,7 +181,7 @@ var Private;
|
|
|
162
181
|
* 2. Data set by the plugin author as a schema default.
|
|
163
182
|
* 3. Data set by the plugin author as a top-level key of the schema.
|
|
164
183
|
*/
|
|
165
|
-
|
|
184
|
+
getHint(key, registry, plugin) {
|
|
166
185
|
// First, give priority to checking if the hint exists in the user data.
|
|
167
186
|
let hint = plugin.data.user[key];
|
|
168
187
|
// Second, check to see if the hint exists in composite data, which folds
|
|
@@ -181,39 +200,61 @@ var Private;
|
|
|
181
200
|
}
|
|
182
201
|
return typeof hint === 'string' ? hint : '';
|
|
183
202
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
const plugins = sortPlugins(registry).filter(plugin => {
|
|
191
|
-
const { schema } = plugin;
|
|
192
|
-
const deprecated = schema['jupyter.lab.setting-deprecated'] === true;
|
|
193
|
-
const editable = Object.keys(schema.properties || {}).length > 0;
|
|
194
|
-
const extensible = schema.additionalProperties !== false;
|
|
195
|
-
return !deprecated && (editable || extensible);
|
|
196
|
-
});
|
|
197
|
-
const items = plugins.map(plugin => {
|
|
198
|
-
const { id, schema, version } = plugin;
|
|
199
|
-
const title = typeof schema.title === 'string'
|
|
200
|
-
? trans._p('schema', schema.title)
|
|
201
|
-
: id;
|
|
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 },
|
|
210
|
-
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, title)));
|
|
212
|
-
});
|
|
213
|
-
ReactDOM.unmountComponentAtNode(node);
|
|
214
|
-
ReactDOM.render(React.createElement("ul", null, items), node);
|
|
203
|
+
setFilter(filter) {
|
|
204
|
+
this._filter = (value) => {
|
|
205
|
+
var _a, _b;
|
|
206
|
+
return filter((_b = (_a = value.schema.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : '');
|
|
207
|
+
};
|
|
208
|
+
this.update();
|
|
215
209
|
}
|
|
216
|
-
|
|
210
|
+
setError(id, error) {
|
|
211
|
+
if (this._errors[id] !== error) {
|
|
212
|
+
this._errors[id] = error;
|
|
213
|
+
this.update();
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
this._errors[id] = error;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
mapPlugins(plugin) {
|
|
220
|
+
const { id, schema, version } = plugin;
|
|
221
|
+
const trans = this.translator.load('jupyterlab');
|
|
222
|
+
const title = typeof schema.title === 'string' ? trans._p('schema', schema.title) : id;
|
|
223
|
+
const description = typeof schema.description === 'string'
|
|
224
|
+
? trans._p('schema', schema.description)
|
|
225
|
+
: '';
|
|
226
|
+
const itemTitle = `${description}\n${id}\n${version}`;
|
|
227
|
+
const icon = this.getHint(ICON_KEY, this.registry, plugin);
|
|
228
|
+
const iconClass = this.getHint(ICON_CLASS_KEY, this.registry, plugin);
|
|
229
|
+
const iconTitle = this.getHint(ICON_LABEL_KEY, this.registry, plugin);
|
|
230
|
+
return (React.createElement("button", { onClick: this._evtMousedown, className: `${id === this.selection
|
|
231
|
+
? 'jp-mod-selected jp-PluginList-entry'
|
|
232
|
+
: 'jp-PluginList-entry'} ${this._errors[id] ? 'jp-ErrorPlugin' : ''}`, "data-id": id, key: id, title: itemTitle },
|
|
233
|
+
id === this.selection || this._errors[id] ? (React.createElement("div", { className: "jp-SelectedIndicator" })) : null,
|
|
234
|
+
React.createElement(LabIcon.resolveReact, { icon: icon || (iconClass ? undefined : settingsIcon), iconClass: classes(iconClass, 'jp-Icon'), title: iconTitle, tag: "span", stylesheet: "settingsEditor" }),
|
|
235
|
+
React.createElement("span", null, title)));
|
|
236
|
+
}
|
|
237
|
+
render() {
|
|
238
|
+
const trans = this.translator.load('jupyterlab');
|
|
239
|
+
const modifiedItems = this._modifiedPlugins
|
|
240
|
+
.filter(this._filter)
|
|
241
|
+
.map(this.mapPlugins);
|
|
242
|
+
const otherItems = this._allPlugins
|
|
243
|
+
.filter(plugin => !this._modifiedPlugins.includes(plugin) && this._filter(plugin))
|
|
244
|
+
.map(this.mapPlugins);
|
|
245
|
+
return (React.createElement("div", { className: "jp-PluginList-wrapper" },
|
|
246
|
+
React.createElement(FilterBox, { updateFilter: this.setFilter, useFuzzyFilter: true, placeholder: trans.__('Search…'), forceRefresh: false }),
|
|
247
|
+
modifiedItems.length > 0 && (React.createElement("div", null,
|
|
248
|
+
React.createElement("h1", { className: "jp-PluginList-header" }, trans.__('Modified')),
|
|
249
|
+
React.createElement("ul", null, modifiedItems))),
|
|
250
|
+
React.createElement("h1", { className: "jp-PluginList-header" }, trans.__('Settings')),
|
|
251
|
+
React.createElement("ul", null, otherItems)));
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* A namespace for `PluginList` statics.
|
|
256
|
+
*/
|
|
257
|
+
(function (PluginList) {
|
|
217
258
|
/**
|
|
218
259
|
* Sort a list of plugins by title and ID.
|
|
219
260
|
*/
|
|
@@ -224,5 +265,6 @@ var Private;
|
|
|
224
265
|
return (a.schema.title || a.id).localeCompare(b.schema.title || b.id);
|
|
225
266
|
});
|
|
226
267
|
}
|
|
227
|
-
|
|
268
|
+
PluginList.sortPlugins = sortPlugins;
|
|
269
|
+
})(PluginList || (PluginList = {}));
|
|
228
270
|
//# sourceMappingURL=pluginlist.js.map
|
package/lib/pluginlist.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pluginlist.js","sourceRoot":"","sources":["../src/pluginlist.tsx"],"names":[],"mappings":"AAAA;;;+EAG+E;
|
|
1
|
+
{"version":3,"file":"pluginlist.js","sourceRoot":"","sources":["../src/pluginlist.tsx"],"names":[],"mappings":"AAAA;;;+EAG+E;AAE/E,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAe,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EACL,OAAO,EACP,SAAS,EACT,OAAO,EACP,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAW,MAAM,EAAE,MAAM,mBAAmB,CAA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