@jupyterlab/ui-components 3.1.9 → 3.1.13
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/components/menu.d.ts +19 -6
- package/lib/components/menu.js +138 -3
- package/lib/components/menu.js.map +1 -1
- package/package.json +5 -5
- package/LICENSE +0 -33
package/lib/components/menu.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { IDisposable } from '@lumino/disposable';
|
|
2
2
|
import { Menu } from '@lumino/widgets';
|
|
3
|
+
/**
|
|
4
|
+
* Interface for disposable item menu
|
|
5
|
+
*/
|
|
6
|
+
export interface IDisposableMenuItem extends IDisposable, Menu.IItem {
|
|
7
|
+
}
|
|
3
8
|
/**
|
|
4
9
|
* A common interface for extensible JupyterLab application menus.
|
|
5
10
|
*
|
|
@@ -8,10 +13,17 @@ import { Menu } from '@lumino/widgets';
|
|
|
8
13
|
* application menus that may be extended by plugins as well,
|
|
9
14
|
* such as "Edit" and "View"
|
|
10
15
|
*/
|
|
11
|
-
export interface IRankedMenu extends
|
|
16
|
+
export interface IRankedMenu extends IDisposable {
|
|
12
17
|
/**
|
|
13
18
|
* Add a group of menu items specific to a particular
|
|
14
19
|
* plugin.
|
|
20
|
+
*
|
|
21
|
+
* The rank can be set for all items in the group using the
|
|
22
|
+
* function argument or per item.
|
|
23
|
+
*
|
|
24
|
+
* @param items - the list of menu items to add.
|
|
25
|
+
* @param rank - the default rank in the menu in which to insert the group.
|
|
26
|
+
* @returns Disposable of the group
|
|
15
27
|
*/
|
|
16
28
|
addGroup(items: Menu.IItemOptions[], rank?: number): IDisposable;
|
|
17
29
|
/**
|
|
@@ -20,6 +32,8 @@ export interface IRankedMenu extends Menu {
|
|
|
20
32
|
* @param options - The options for creating the menu item.
|
|
21
33
|
*
|
|
22
34
|
* @returns The menu item added to the menu.
|
|
35
|
+
*
|
|
36
|
+
* @deprecated It will return a `IDisposable` object in v4
|
|
23
37
|
*/
|
|
24
38
|
addItem(options: IRankedMenu.IItemOptions): Menu.IItem;
|
|
25
39
|
/**
|
|
@@ -29,8 +43,7 @@ export interface IRankedMenu extends Menu {
|
|
|
29
43
|
/**
|
|
30
44
|
* The underlying Lumino menu.
|
|
31
45
|
*
|
|
32
|
-
* @deprecated
|
|
33
|
-
* RankMenu inherits from Menu since v3.1
|
|
46
|
+
* @deprecated will be removed in v4
|
|
34
47
|
*/
|
|
35
48
|
readonly menu: Menu;
|
|
36
49
|
/**
|
|
@@ -101,8 +114,8 @@ export declare class RankedMenu extends Menu implements IRankedMenu {
|
|
|
101
114
|
* function argument or per item.
|
|
102
115
|
*
|
|
103
116
|
* @param items - the list of menu items to add.
|
|
104
|
-
*
|
|
105
117
|
* @param rank - the default rank in the menu in which to insert the group.
|
|
118
|
+
* @returns Disposable of the group
|
|
106
119
|
*/
|
|
107
120
|
addGroup(items: IRankedMenu.IItemOptions[], rank?: number): IDisposable;
|
|
108
121
|
/**
|
|
@@ -112,7 +125,7 @@ export declare class RankedMenu extends Menu implements IRankedMenu {
|
|
|
112
125
|
*
|
|
113
126
|
* @returns The menu item added to the menu.
|
|
114
127
|
*/
|
|
115
|
-
addItem(options: IRankedMenu.IItemOptions):
|
|
128
|
+
addItem(options: IRankedMenu.IItemOptions): IDisposableMenuItem;
|
|
116
129
|
/**
|
|
117
130
|
* Remove all menu items from the menu.
|
|
118
131
|
*/
|
|
@@ -140,7 +153,7 @@ export declare class RankedMenu extends Menu implements IRankedMenu {
|
|
|
140
153
|
* #### Notes
|
|
141
154
|
* The index will be clamped to the bounds of the items.
|
|
142
155
|
*/
|
|
143
|
-
insertItem(index: number, options: IRankedMenu.IItemOptions):
|
|
156
|
+
insertItem(index: number, options: IRankedMenu.IItemOptions): IDisposableMenuItem;
|
|
144
157
|
/**
|
|
145
158
|
* Remove the item at a given index from the menu.
|
|
146
159
|
*
|
package/lib/components/menu.js
CHANGED
|
@@ -52,8 +52,8 @@ export class RankedMenu extends Menu {
|
|
|
52
52
|
* function argument or per item.
|
|
53
53
|
*
|
|
54
54
|
* @param items - the list of menu items to add.
|
|
55
|
-
*
|
|
56
55
|
* @param rank - the default rank in the menu in which to insert the group.
|
|
56
|
+
* @returns Disposable of the group
|
|
57
57
|
*/
|
|
58
58
|
addGroup(items, rank) {
|
|
59
59
|
if (items.length === 0) {
|
|
@@ -88,7 +88,7 @@ export class RankedMenu extends Menu {
|
|
|
88
88
|
added.push(this.insertItem(insertIndex++, { type: 'separator', rank: defaultRank }));
|
|
89
89
|
}
|
|
90
90
|
return new DisposableDelegate(() => {
|
|
91
|
-
added.forEach(i =>
|
|
91
|
+
added.forEach(i => i.dispose());
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
/**
|
|
@@ -147,7 +147,8 @@ export class RankedMenu extends Menu {
|
|
|
147
147
|
var _a, _b;
|
|
148
148
|
const clampedIndex = Math.max(0, Math.min(index, this._ranks.length));
|
|
149
149
|
ArrayExt.insert(this._ranks, clampedIndex, (_a = options.rank) !== null && _a !== void 0 ? _a : Math.max(IRankedMenu.DEFAULT_RANK, (_b = this._ranks[this._ranks.length - 1]) !== null && _b !== void 0 ? _b : IRankedMenu.DEFAULT_RANK));
|
|
150
|
-
|
|
150
|
+
const item = super.insertItem(clampedIndex, options);
|
|
151
|
+
return new DisposableMenuItem(item, this);
|
|
151
152
|
}
|
|
152
153
|
/**
|
|
153
154
|
* Remove the item at a given index from the menu.
|
|
@@ -162,4 +163,138 @@ export class RankedMenu extends Menu {
|
|
|
162
163
|
super.removeItemAt(index);
|
|
163
164
|
}
|
|
164
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* Disposable Menu Item
|
|
168
|
+
*/
|
|
169
|
+
class DisposableMenuItem {
|
|
170
|
+
/**
|
|
171
|
+
* Create a disposable menu item from an item and the menu it belongs to
|
|
172
|
+
*
|
|
173
|
+
* @param item Menu item
|
|
174
|
+
* @param menu Menu
|
|
175
|
+
*/
|
|
176
|
+
constructor(item, menu) {
|
|
177
|
+
this._item = item;
|
|
178
|
+
this._menu = menu;
|
|
179
|
+
// dispose this item if the parent menu is disposed
|
|
180
|
+
const dispose = (menu) => {
|
|
181
|
+
menu.disposed.disconnect(dispose);
|
|
182
|
+
this.dispose();
|
|
183
|
+
};
|
|
184
|
+
this._menu.disposed.connect(dispose);
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Whether the menu item is disposed or not.
|
|
188
|
+
*/
|
|
189
|
+
get isDisposed() {
|
|
190
|
+
return this._isDisposed;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* The type of the menu item.
|
|
194
|
+
*/
|
|
195
|
+
get type() {
|
|
196
|
+
return this._item.type;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* The command to execute when the item is triggered.
|
|
200
|
+
*/
|
|
201
|
+
get command() {
|
|
202
|
+
return this._item.command;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* The arguments for the command.
|
|
206
|
+
*/
|
|
207
|
+
get args() {
|
|
208
|
+
return this._item.args;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* The submenu for a `'submenu'` type item.
|
|
212
|
+
*/
|
|
213
|
+
get submenu() {
|
|
214
|
+
return this._item.submenu;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* The display label for the menu item.
|
|
218
|
+
*/
|
|
219
|
+
get label() {
|
|
220
|
+
return this._item.label;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* The mnemonic index for the menu item.
|
|
224
|
+
*/
|
|
225
|
+
get mnemonic() {
|
|
226
|
+
return this._item.mnemonic;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* The icon renderer for the menu item.
|
|
230
|
+
*/
|
|
231
|
+
get icon() {
|
|
232
|
+
return this._item.icon;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* The icon class for the menu item.
|
|
236
|
+
*/
|
|
237
|
+
get iconClass() {
|
|
238
|
+
return this._item.iconClass;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* The icon label for the menu item.
|
|
242
|
+
*/
|
|
243
|
+
get iconLabel() {
|
|
244
|
+
return this._item.iconLabel;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* The display caption for the menu item.
|
|
248
|
+
*/
|
|
249
|
+
get caption() {
|
|
250
|
+
return this._item.caption;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* The extra class name for the menu item.
|
|
254
|
+
*/
|
|
255
|
+
get className() {
|
|
256
|
+
return this._item.className;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* The dataset for the menu item.
|
|
260
|
+
*/
|
|
261
|
+
get dataset() {
|
|
262
|
+
return this._item.dataset;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Whether the menu item is enabled.
|
|
266
|
+
*/
|
|
267
|
+
get isEnabled() {
|
|
268
|
+
return this._item.isEnabled;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Whether the menu item is toggled.
|
|
272
|
+
*/
|
|
273
|
+
get isToggled() {
|
|
274
|
+
return this._item.isToggled;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Whether the menu item is visible.
|
|
278
|
+
*/
|
|
279
|
+
get isVisible() {
|
|
280
|
+
return this.isVisible;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* The key binding for the menu item.
|
|
284
|
+
*/
|
|
285
|
+
get keyBinding() {
|
|
286
|
+
return this._item.keyBinding;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Dispose the menu item by removing it from its menu.
|
|
290
|
+
*/
|
|
291
|
+
dispose() {
|
|
292
|
+
this._isDisposed = true;
|
|
293
|
+
if (this._menu.isDisposed) {
|
|
294
|
+
// Bail early
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
this._menu.removeItem(this._item);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
165
300
|
//# sourceMappingURL=menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../src/components/menu.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../../src/components/menu.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,OAAO,EAAE,kBAAkB,EAAe,MAAM,oBAAoB,CAAC;AAErE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AA0DvC;;GAEG;AACH,MAAM,KAAW,WAAW,CAgC3B;AAhCD,WAAiB,WAAW;IAC1B;;OAEG;IACU,wBAAY,GAAG,GAAG,CAAC;AA4BlC,CAAC,EAhCgB,WAAW,KAAX,WAAW,QAgC3B;AAED;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,IAAI;IAClC;;;;OAIG;IACH,YAAY,OAA6B;;QACvC,KAAK,CAAC,OAAO,CAAC,CAAC;QA4KT,WAAM,GAAa,EAAE,CAAC;QA3K5B,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;QAC1B,IAAI,CAAC,kBAAkB,SAAG,OAAO,CAAC,iBAAiB,mCAAI,IAAI,CAAC;IAC9D,CAAC;IAED;;;;;OAKG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;OAEG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,KAAiC,EAAE,IAAa;QACvD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;YACtB,OAAO,IAAI,kBAAkB,CAAC,GAAG,EAAE,CAAC,KAAK,CA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AU;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,OAAO;QACL,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE;YACzB,aAAa;YACb,OAAO;SACR;QACD,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;CAKF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/ui-components",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.13",
|
|
4
4
|
"description": "JupyterLab - UI components written in React",
|
|
5
5
|
"homepage": "https://github.com/jupyterlab/jupyterlab",
|
|
6
6
|
"bugs": {
|
|
@@ -44,8 +44,9 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@blueprintjs/core": "^3.36.0",
|
|
46
46
|
"@blueprintjs/select": "^3.15.0",
|
|
47
|
-
"@jupyterlab/coreutils": "^5.1.
|
|
47
|
+
"@jupyterlab/coreutils": "^5.1.13",
|
|
48
48
|
"@lumino/algorithm": "^1.3.3",
|
|
49
|
+
"@lumino/commands": "^1.12.0",
|
|
49
50
|
"@lumino/coreutils": "^1.5.3",
|
|
50
51
|
"@lumino/disposable": "^1.4.3",
|
|
51
52
|
"@lumino/signaling": "^1.4.3",
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
"devDependencies": {
|
|
59
60
|
"@babel/core": "^7.10.2",
|
|
60
61
|
"@babel/preset-env": "^7.10.2",
|
|
61
|
-
"@jupyterlab/testutils": "^3.1.
|
|
62
|
+
"@jupyterlab/testutils": "^3.1.13",
|
|
62
63
|
"@storybook/addon-actions": "6.0.20",
|
|
63
64
|
"@storybook/react": "6.0.20",
|
|
64
65
|
"@types/jest": "^26.0.10",
|
|
@@ -86,6 +87,5 @@
|
|
|
86
87
|
]
|
|
87
88
|
}
|
|
88
89
|
},
|
|
89
|
-
"styleModule": "style/index.js"
|
|
90
|
-
"gitHead": "74670b4ab798a62c6c24e35722a247c65c748bbd"
|
|
90
|
+
"styleModule": "style/index.js"
|
|
91
91
|
}
|
package/LICENSE
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2015-2021 Project Jupyter Contributors
|
|
2
|
-
All rights reserved.
|
|
3
|
-
|
|
4
|
-
Redistribution and use in source and binary forms, with or without
|
|
5
|
-
modification, are permitted provided that the following conditions are met:
|
|
6
|
-
|
|
7
|
-
1. Redistributions of source code must retain the above copyright notice, this
|
|
8
|
-
list of conditions and the following disclaimer.
|
|
9
|
-
|
|
10
|
-
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
-
this list of conditions and the following disclaimer in the documentation
|
|
12
|
-
and/or other materials provided with the distribution.
|
|
13
|
-
|
|
14
|
-
3. Neither the name of the copyright holder nor the names of its
|
|
15
|
-
contributors may be used to endorse or promote products derived from
|
|
16
|
-
this software without specific prior written permission.
|
|
17
|
-
|
|
18
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
19
|
-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
20
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
22
|
-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
23
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
24
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
25
|
-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
26
|
-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
27
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
-
|
|
29
|
-
Semver File License
|
|
30
|
-
===================
|
|
31
|
-
|
|
32
|
-
The semver.py file is from https://github.com/podhmo/python-semver
|
|
33
|
-
which is licensed under the "MIT" license. See the semver.py file for details.
|