Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@lumino/widgets

Package Overview
Dependencies
Maintainers
6
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lumino/widgets - npm Package Compare versions

Comparing version 1.34.0 to 2.0.0-alpha.0

56

package.json
{
"name": "@lumino/widgets",
"version": "1.34.0",
"version": "2.0.0-alpha.0",
"description": "Lumino Widgets",

@@ -14,9 +14,3 @@ "homepage": "https://github.com/jupyterlab/lumino",

"license": "BSD-3-Clause",
"author": "S. Chris Colbert <sccolbert@gmail.com>",
"contributors": [
"A. T. Darian <git@darian.email>",
"Dave Willmer <dave.willmer@gmail.com>",
"S. Chris Colbert <sccolbert@gmail.com>",
"Steven Silvester <steven.silvester@gmail.com>"
],
"author": "Project Jupyter",
"main": "dist/index.js",

@@ -42,3 +36,2 @@ "jsdelivr": "dist/index.min.js",

"clean:test": "rimraf tests/build",
"docs": "typedoc --options tdoptions.json src",
"minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",

@@ -60,17 +53,22 @@ "test": "npm run test:firefox-headless",

},
"typedoc": {
"entryPoint": "./src/index.ts",
"displayName": "widgets"
},
"dependencies": {
"@lumino/algorithm": "^1.9.2",
"@lumino/commands": "^1.20.1",
"@lumino/coreutils": "^1.12.1",
"@lumino/disposable": "^1.10.2",
"@lumino/domutils": "^1.8.2",
"@lumino/dragdrop": "^1.14.1",
"@lumino/keyboard": "^1.8.2",
"@lumino/messaging": "^1.10.2",
"@lumino/properties": "^1.8.2",
"@lumino/signaling": "^1.10.2",
"@lumino/virtualdom": "^1.14.2"
"@lumino/algorithm": "^2.0.0-alpha.0",
"@lumino/commands": "^2.0.0-alpha.0",
"@lumino/coreutils": "^2.0.0-alpha.0",
"@lumino/disposable": "^2.0.0-alpha.0",
"@lumino/domutils": "^2.0.0-alpha.0",
"@lumino/dragdrop": "^2.0.0-alpha.0",
"@lumino/keyboard": "^2.0.0-alpha.0",
"@lumino/messaging": "^2.0.0-alpha.0",
"@lumino/properties": "^2.0.0-alpha.0",
"@lumino/signaling": "^2.0.0-alpha.0",
"@lumino/virtualdom": "^2.0.0-alpha.0"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.6.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@types/chai": "^3.4.35",

@@ -81,3 +79,2 @@ "@types/mocha": "^2.2.39",

"downlevel-dts": "^0.4.0",
"es6-promise": "^4.0.5",
"karma": "^6.3.4",

@@ -90,15 +87,14 @@ "karma-chrome-launcher": "^3.1.0",

"mocha": "^9.0.3",
"postcss": "^8.4.14",
"rimraf": "^3.0.2",
"rollup": "^2.56.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-postcss": "^4.0.0",
"rollup": "^2.77.2",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-sourcemaps": "^0.6.3",
"simulate-event": "^1.4.0",
"style-loader": "^1.0.2",
"terser": "^5.7.1",
"tslib": "^2.3.0",
"typedoc": "~0.15.0",
"typescript": "~3.6.0",
"webpack": "^4.41.3",
"webpack-cli": "^3.3.10"
"tslib": "^2.4.0",
"typedoc": "~0.23.9",
"typescript": "~4.7.3",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
},

@@ -105,0 +101,0 @@ "publishConfig": {

@@ -10,3 +10,3 @@ // Copyright (c) Jupyter Development Team.

|----------------------------------------------------------------------------*/
import { ArrayExt, each } from '@lumino/algorithm';
import { ArrayExt } from '@lumino/algorithm';

@@ -56,5 +56,5 @@ import { ElementExt } from '@lumino/domutils';

// Dispose of the layout items.
each(this._items, item => {
for (const item of this._items) {
item.dispose();
});
}

@@ -61,0 +61,0 @@ // Clear the layout state.

@@ -31,5 +31,2 @@ // Copyright (c) Jupyter Development Team.

this.addClass('lm-BoxPanel');
/* <DEPRECATED> */
this.addClass('p-BoxPanel');
/* </DEPRECATED> */
}

@@ -96,5 +93,2 @@

msg.child.addClass('lm-BoxPanel-child');
/* <DEPRECATED> */
msg.child.addClass('p-BoxPanel-child');
/* </DEPRECATED> */
}

@@ -107,5 +101,2 @@

msg.child.removeClass('lm-BoxPanel-child');
/* <DEPRECATED> */
msg.child.removeClass('p-BoxPanel-child');
/* </DEPRECATED> */
}

@@ -112,0 +103,0 @@ }

@@ -41,5 +41,2 @@ // Copyright (c) Jupyter Development Team.

this.addClass('lm-CommandPalette');
/* <DEPRECATED> */
this.addClass('p-CommandPalette');
/* </DEPRECATED> */
this.setFlag(Widget.Flag.DisallowLayout);

@@ -508,5 +505,2 @@ this.commands = options.commands;

this.toggleClass('lm-mod-focused', focused);
/* <DEPRECATED> */
this.toggleClass('p-mod-focused', focused);
/* </DEPRECATED> */
}

@@ -623,7 +617,3 @@

*/
readonly icon:
| VirtualElement.IRenderer
| undefined
/* <DEPRECATED> */
| string /* </DEPRECATED> */;
readonly icon: VirtualElement.IRenderer | undefined;

@@ -769,12 +759,3 @@ /**

let content = this.formatHeader(data);
return h.li(
{
className:
'lm-CommandPalette-header' +
/* <DEPRECATED> */
' p-CommandPalette-header'
/* </DEPRECATED> */
},
content
);
return h.li({ className: 'lm-CommandPalette-header' }, content);
}

@@ -825,12 +806,3 @@

let content = this.formatEmptyMessage(data);
return h.li(
{
className:
'lm-CommandPalette-emptyMessage' +
/* <DEPRECATED> */
' p-CommandPalette-emptyMessage'
/* </DEPRECATED> */
},
content
);
return h.li({ className: 'lm-CommandPalette-emptyMessage' }, content);
}

@@ -848,9 +820,3 @@

/* <DEPRECATED> */
if (typeof data.item.icon === 'string') {
return h.div({ className }, data.item.iconLabel);
}
/* </DEPRECATED> */
// if data.item.icon is undefined, it will be ignored
// If data.item.icon is undefined, it will be ignored.
return h.div({ className }, data.item.icon!, data.item.iconLabel);

@@ -868,9 +834,3 @@ }

return h.div(
{
className:
'lm-CommandPalette-itemContent' +
/* <DEPRECATED> */
' p-CommandPalette-itemContent'
/* </DEPRECATED> */
},
{ className: 'lm-CommandPalette-itemContent' },
this.renderItemLabel(data),

@@ -890,12 +850,3 @@ this.renderItemCaption(data)

let content = this.formatItemLabel(data);
return h.div(
{
className:
'lm-CommandPalette-itemLabel' +
/* <DEPRECATED> */
' p-CommandPalette-itemLabel'
/* </DEPRECATED> */
},
content
);
return h.div({ className: 'lm-CommandPalette-itemLabel' }, content);
}

@@ -912,12 +863,3 @@

let content = this.formatItemCaption(data);
return h.div(
{
className:
'lm-CommandPalette-itemCaption' +
/* <DEPRECATED> */
' p-CommandPalette-itemCaption'
/* </DEPRECATED> */
},
content
);
return h.div({ className: 'lm-CommandPalette-itemCaption' }, content);
}

@@ -934,12 +876,3 @@

let content = this.formatItemShortcut(data);
return h.div(
{
className:
'lm-CommandPalette-itemShortcut' +
/* <DEPRECATED> */
' p-CommandPalette-itemShortcut'
/* </DEPRECATED> */
},
content
);
return h.div({ className: 'lm-CommandPalette-itemShortcut' }, content);
}

@@ -957,5 +890,2 @@

let name = 'lm-CommandPalette-item';
/* <DEPRECATED> */
name += ' p-CommandPalette-item';
/* </DEPRECATED> */

@@ -965,17 +895,8 @@ // Add the boolean state classes.

name += ' lm-mod-disabled';
/* <DEPRECATED> */
name += ' p-mod-disabled';
/* </DEPRECATED> */
}
if (data.item.isToggled) {
name += ' lm-mod-toggled';
/* <DEPRECATED> */
name += ' p-mod-toggled';
/* </DEPRECATED> */
}
if (data.active) {
name += ' lm-mod-active';
/* <DEPRECATED> */
name += ' p-mod-active';
/* </DEPRECATED> */
}

@@ -1013,5 +934,2 @@

let name = 'lm-CommandPalette-itemIcon';
/* <DEPRECATED> */
name += ' p-CommandPalette-itemIcon';
/* </DEPRECATED> */
let extra = data.item.iconClass;

@@ -1112,8 +1030,2 @@ return extra ? `${name} ${extra}` : name;

content.className = 'lm-CommandPalette-content';
/* <DEPRECATED> */
search.classList.add('p-CommandPalette-search');
wrapper.classList.add('p-CommandPalette-wrapper');
input.classList.add('p-CommandPalette-input');
content.classList.add('p-CommandPalette-content');
/* </DEPRECATED> */
input.spellcheck = false;

@@ -1565,7 +1477,3 @@ wrapper.appendChild(input);

*/
get icon():
| VirtualElement.IRenderer
| undefined
/* <DEPRECATED> */
| string /* </DEPRECATED> */ {
get icon(): VirtualElement.IRenderer | undefined {
return this._commands.icon(this.command, this.args);

@@ -1572,0 +1480,0 @@ }

@@ -10,3 +10,3 @@ // Copyright (c) Jupyter Development Team.

|----------------------------------------------------------------------------*/
import { ArrayExt, each } from '@lumino/algorithm';
import { ArrayExt } from '@lumino/algorithm';

@@ -104,5 +104,5 @@ import { CommandRegistry } from '@lumino/commands';

// Add the filtered items to the menu.
each(items, item => {
for (const item of items) {
this.menu.addItem(item);
});
}

@@ -109,0 +109,0 @@ // Open the context menu at the current mouse position.

@@ -10,13 +10,3 @@ // Copyright (c) Jupyter Development Team.

|----------------------------------------------------------------------------*/
import {
ArrayExt,
chain,
ChainIterator,
each,
empty,
IIterator,
map,
once,
reduce
} from '@lumino/algorithm';
import { ArrayExt, chain, empty, map, once } from '@lumino/algorithm';

@@ -72,3 +62,3 @@ import { ElementExt } from '@lumino/domutils';

// Get an iterator over the widgets in the layout.
let widgets = this.iter();
let widgets = this[Symbol.iterator]();

@@ -86,5 +76,5 @@ // Dispose of the layout items.

// Dispose of the widgets contained in the old layout root.
each(widgets, widget => {
for (const widget of widgets) {
widget.dispose();
});
}

@@ -115,9 +105,9 @@ // Dispose of the base class.

this._hiddenMode = v;
each(this.tabBars(), bar => {
for (const bar of this.tabBars()) {
if (bar.titles.length > 1) {
bar.titles.forEach(title => {
for (const title of bar.titles) {
title.owner.hiddenMode = this._hiddenMode;
});
}
}
});
}
}

@@ -162,3 +152,3 @@

*/
iter(): IIterator<Widget> {
[Symbol.iterator](): IterableIterator<Widget> {
return this._root ? this._root.iterAllWidgets() : empty<Widget>();

@@ -175,3 +165,3 @@ }

*/
widgets(): IIterator<Widget> {
widgets(): IterableIterator<Widget> {
return this._root ? this._root.iterUserWidgets() : empty<Widget>();

@@ -189,3 +179,3 @@ }

*/
selectedWidgets(): IIterator<Widget> {
selectedWidgets(): IterableIterator<Widget> {
return this._root ? this._root.iterSelectedWidgets() : empty<Widget>();

@@ -202,3 +192,3 @@ }

*/
tabBars(): IIterator<TabBar<Widget>> {
tabBars(): IterableIterator<TabBar<Widget>> {
return this._root ? this._root.iterTabBars() : empty<TabBar<Widget>>();

@@ -212,3 +202,3 @@ }

*/
handles(): IIterator<HTMLDivElement> {
handles(): IterableIterator<HTMLDivElement> {
return this._root ? this._root.iterHandles() : empty<HTMLDivElement>();

@@ -240,5 +230,2 @@ }

let hidden = handle.classList.contains('lm-mod-hidden');
/* <DEPRECATED> */
hidden = hidden || handle.classList.contains('p-mod-hidden');
/* </DEPRECATED> */
if (!this._root || hidden) {

@@ -331,24 +318,24 @@ return;

// Unparent the old widgets which are not in the new config.
each(oldWidgets, widget => {
for (const widget of oldWidgets) {
if (!widgetSet.has(widget)) {
widget.parent = null;
}
});
}
// Dispose of the old tab bars.
each(oldTabBars, tabBar => {
for (const tabBar of oldTabBars) {
tabBar.dispose();
});
}
// Remove the old handles.
each(oldHandles, handle => {
for (const handle of oldHandles) {
if (handle.parentNode) {
handle.parentNode.removeChild(handle);
}
});
}
// Reparent the new widgets to the current parent.
widgetSet.forEach(widget => {
for (const widget of widgetSet) {
widget.parent = this.parent;
});
}

@@ -537,10 +524,10 @@ // Create the root node for the new config.

// Attach each widget to the parent.
each(this, widget => {
for (const widget of this) {
this.attachWidget(widget);
});
}
// Attach each handle to the parent.
each(this.handles(), handle => {
for (const handle of this.handles()) {
this.parent!.node.appendChild(handle);
});
}

@@ -1579,3 +1566,3 @@ // Post a fit request for the parent widget.

*/
iterAllWidgets(): IIterator<Widget> {
iterAllWidgets(): IterableIterator<Widget> {
return chain(once(this.tabBar), this.iterUserWidgets());

@@ -1587,3 +1574,3 @@ }

*/
iterUserWidgets(): IIterator<Widget> {
iterUserWidgets(): IterableIterator<Widget> {
return map(this.tabBar.titles, title => title.owner);

@@ -1595,3 +1582,3 @@ }

*/
iterSelectedWidgets(): IIterator<Widget> {
iterSelectedWidgets(): IterableIterator<Widget> {
let title = this.tabBar.currentTitle;

@@ -1604,3 +1591,3 @@ return title ? once(title.owner) : empty<Widget>();

*/
iterTabBars(): IIterator<TabBar<Widget>> {
iterTabBars(): IterableIterator<TabBar<Widget>> {
return once(this.tabBar);

@@ -1612,3 +1599,3 @@ }

*/
iterHandles(): IIterator<HTMLDivElement> {
iterHandles(): IterableIterator<HTMLDivElement> {
return empty<HTMLDivElement>();

@@ -1820,5 +1807,5 @@ }

*/
iterAllWidgets(): IIterator<Widget> {
iterAllWidgets(): IterableIterator<Widget> {
let children = map(this.children, child => child.iterAllWidgets());
return new ChainIterator<Widget>(children);
return chain<Widget>(...children);
}

@@ -1829,5 +1816,5 @@

*/
iterUserWidgets(): IIterator<Widget> {
iterUserWidgets(): IterableIterator<Widget> {
let children = map(this.children, child => child.iterUserWidgets());
return new ChainIterator<Widget>(children);
return chain<Widget>(...children);
}

@@ -1838,5 +1825,5 @@

*/
iterSelectedWidgets(): IIterator<Widget> {
iterSelectedWidgets(): IterableIterator<Widget> {
let children = map(this.children, child => child.iterSelectedWidgets());
return new ChainIterator<Widget>(children);
return chain<Widget>(...children);
}

@@ -1847,5 +1834,5 @@

*/
iterTabBars(): IIterator<TabBar<Widget>> {
iterTabBars(): IterableIterator<TabBar<Widget>> {
let children = map(this.children, child => child.iterTabBars());
return new ChainIterator<TabBar<Widget>>(children);
return chain<TabBar<Widget>>(...children);
}

@@ -1856,5 +1843,5 @@

*/
iterHandles(): IIterator<HTMLDivElement> {
iterHandles(): IterableIterator<HTMLDivElement> {
let children = map(this.children, child => child.iterHandles());
return chain(this.handles, new ChainIterator<HTMLDivElement>(children));
return chain<HTMLDivElement>(this.handles, ...children);
}

@@ -1931,14 +1918,8 @@

syncHandles(): void {
each(this.handles, (handle, i) => {
this.handles.forEach((handle, i) => {
handle.setAttribute('data-orientation', this.orientation);
if (i === this.handles.length - 1) {
handle.classList.add('lm-mod-hidden');
/* <DEPRECATED> */
handle.classList.add('p-mod-hidden');
/* </DEPRECATED> */
} else {
handle.classList.remove('lm-mod-hidden');
/* <DEPRECATED> */
handle.classList.remove('p-mod-hidden');
/* </DEPRECATED> */
}

@@ -1954,5 +1935,5 @@ });

holdSizes(): void {
each(this.sizers, sizer => {
for (const sizer of this.sizers) {
sizer.sizeHint = sizer.size;
});
}
}

@@ -1966,3 +1947,5 @@

holdAllSizes(): void {
each(this.children, child => child.holdAllSizes());
for (const child of this.children) {
child.holdAllSizes();
}
this.holdSizes();

@@ -1985,13 +1968,13 @@ }

// Compute the sum of the sizes.
let sum = reduce(this.sizers, (v, sizer) => v + sizer.sizeHint, 0);
let sum = this.sizers.reduce((v, sizer) => v + sizer.sizeHint, 0);
// Normalize the sizes based on the sum.
if (sum === 0) {
each(this.sizers, sizer => {
for (const sizer of this.sizers) {
sizer.size = sizer.sizeHint = 1 / n;
});
}
} else {
each(this.sizers, sizer => {
for (const sizer of this.sizers) {
sizer.size = sizer.sizeHint /= sum;
});
}
}

@@ -2017,13 +2000,13 @@

// Compute the sum of the sizes.
let sum = reduce(sizes, (v, size) => v + size, 0);
let sum = sizes.reduce((v, size) => v + size, 0);
// Normalize the sizes based on the sum.
if (sum === 0) {
each(sizes, (size, i) => {
for (let i = sizes.length - 1; i > -1; i--) {
sizes[i] = 1 / n;
});
}
} else {
each(sizes, (size, i) => {
sizes[i] = size / sum;
});
for (let i = sizes.length - 1; i > -1; i--) {
sizes[i] /= sum;
}
}

@@ -2085,5 +2068,5 @@

if (this.normalized) {
each(this.sizers, sizer => {
for (const sizer of this.sizers) {
sizer.sizeHint *= space;
});
}
this.normalized = false;

@@ -2121,3 +2104,3 @@ }

export function addAria(widget: Widget, tabBar: TabBar<Widget>) {
export function addAria(widget: Widget, tabBar: TabBar<Widget>): void {
widget.node.setAttribute('role', 'tabpanel');

@@ -2135,3 +2118,3 @@ let renderer = tabBar.renderer;

export function removeAria(widget: Widget) {
export function removeAria(widget: Widget): void {
widget.node.removeAttribute('role');

@@ -2157,3 +2140,3 @@ widget.node.removeAttribute('aria-labelledby');

// Filter the config for unique widgets.
each(config.widgets, widget => {
for (const widget of config.widgets) {
if (!widgetSet.has(widget)) {

@@ -2163,3 +2146,3 @@ widgetSet.add(widget);

}
});
}

@@ -2239,7 +2222,7 @@ // Bail if there are no effective widgets.

// Hide each widget and add it to the tab bar.
each(config.widgets, widget => {
for (const widget of config.widgets) {
widget.hide();
tabBar.addTab(widget.title);
Private.addAria(widget, tabBar);
});
}

@@ -2265,3 +2248,3 @@ // Set the current index of the tab bar.

// Add each child to the layout node.
each(config.children, (child, i) => {
config.children.forEach((child, i) => {
// Create the child data for the layout node.

@@ -2268,0 +2251,0 @@ let childNode = realizeAreaConfig(child, renderer, document);

@@ -10,3 +10,3 @@ // Copyright (c) Jupyter Development Team.

|----------------------------------------------------------------------------*/
import { each, find, IIterator, toArray } from '@lumino/algorithm';
import { find } from '@lumino/algorithm';

@@ -19,3 +19,3 @@ import { MimeData } from '@lumino/coreutils';

import { Drag, IDragEvent } from '@lumino/dragdrop';
import { Drag } from '@lumino/dragdrop';

@@ -46,5 +46,2 @@ import { ConflatableMessage, Message, MessageLoop } from '@lumino/messaging';

this.addClass('lm-DockPanel');
/* <DEPRECATED> */
this.addClass('p-DockPanel');
/* </DEPRECATED> */
this._document = options.document || document;

@@ -201,5 +198,5 @@ this._mode = options.mode || 'multiple-document';

case 'multiple-document':
each(layout.tabBars(), tabBar => {
for (const tabBar of layout.tabBars()) {
tabBar.show();
});
}
break;

@@ -229,5 +226,5 @@ case 'single-document':

this._tabsMovable = value;
each(this.tabBars(), tabbar => {
tabbar.tabsMovable = value;
});
for (const tabBar of this.tabBars()) {
tabBar.tabsMovable = value;
}
}

@@ -261,5 +258,5 @@

this._addButtonEnabled = value;
each(this.tabBars(), tabbar => {
tabbar.addButtonEnabled = value;
});
for (const tabBar of this.tabBars()) {
tabBar.addButtonEnabled = value;
}
}

@@ -282,3 +279,3 @@

*/
widgets(): IIterator<Widget> {
widgets(): IterableIterator<Widget> {
return (this.layout as DockLayout).widgets();

@@ -296,3 +293,3 @@ }

*/
selectedWidgets(): IIterator<Widget> {
selectedWidgets(): IterableIterator<Widget> {
return (this.layout as DockLayout).selectedWidgets();

@@ -309,3 +306,3 @@ }

*/
tabBars(): IIterator<TabBar<Widget>> {
tabBars(): IterableIterator<TabBar<Widget>> {
return (this.layout as DockLayout).tabBars();

@@ -319,3 +316,3 @@ }

*/
handles(): IIterator<HTMLDivElement> {
handles(): IterableIterator<HTMLDivElement> {
return (this.layout as DockLayout).handles();

@@ -450,30 +447,21 @@ }

case 'lm-dragenter':
this._evtDragEnter(event as IDragEvent);
this._evtDragEnter(event as Drag.Event);
break;
case 'lm-dragleave':
this._evtDragLeave(event as IDragEvent);
this._evtDragLeave(event as Drag.Event);
break;
case 'lm-dragover':
this._evtDragOver(event as IDragEvent);
this._evtDragOver(event as Drag.Event);
break;
case 'lm-drop':
this._evtDrop(event as IDragEvent);
this._evtDrop(event as Drag.Event);
break;
case 'mousedown': // <DEPRECATED>
this._evtMouseDown(event as MouseEvent);
break;
case 'mousemove': // <DEPRECATED>
this._evtMouseMove(event as MouseEvent);
break;
case 'mouseup': // <DEPRECATED>
this._evtMouseUp(event as MouseEvent);
break;
case 'pointerdown':
this._evtMouseDown(event as MouseEvent);
this._evtPointerDown(event as MouseEvent);
break;
case 'pointermove':
this._evtMouseMove(event as MouseEvent);
this._evtPointerMove(event as MouseEvent);
break;
case 'pointerup':
this._evtMouseUp(event as MouseEvent);
this._evtPointerUp(event as MouseEvent);
break;

@@ -498,3 +486,2 @@ case 'keydown':

this.node.addEventListener('lm-drop', this);
this.node.addEventListener('mousedown', this); // <DEPRECATED>
this.node.addEventListener('pointerdown', this);

@@ -511,3 +498,2 @@ }

this.node.removeEventListener('lm-drop', this);
this.node.removeEventListener('mousedown', this); // <DEPRECATED>
this.node.removeEventListener('pointerdown', this);

@@ -528,5 +514,2 @@ this._releaseMouse();

msg.child.addClass('lm-DockPanel-widget');
/* <DEPRECATED> */
msg.child.addClass('p-DockPanel-widget');
/* </DEPRECATED> */
}

@@ -545,5 +528,2 @@

msg.child.removeClass('lm-DockPanel-widget');
/* <DEPRECATED> */
msg.child.removeClass('p-DockPanel-widget');
/* </DEPRECATED> */

@@ -557,3 +537,3 @@ // Schedule an emit of the layout modified signal.

*/
private _evtDragEnter(event: IDragEvent): void {
private _evtDragEnter(event: Drag.Event): void {
// If the factory mime type is present, mark the event as

@@ -570,3 +550,3 @@ // handled in order to get the rest of the drag events.

*/
private _evtDragLeave(event: IDragEvent): void {
private _evtDragLeave(event: Drag.Event): void {
// Mark the event as handled.

@@ -585,3 +565,3 @@ event.preventDefault();

*/
private _evtDragOver(event: IDragEvent): void {
private _evtDragOver(event: Drag.Event): void {
// Mark the event as handled.

@@ -606,3 +586,3 @@ event.preventDefault();

*/
private _evtDrop(event: IDragEvent): void {
private _evtDrop(event: Drag.Event): void {
// Mark the event as handled.

@@ -725,5 +705,5 @@ event.preventDefault();

/**
* Handle the `'mousedown'` event for the dock panel.
* Handle the `'pointerdown'` event for the dock panel.
*/
private _evtMouseDown(event: MouseEvent): void {
private _evtPointerDown(event: MouseEvent): void {
// Do nothing if the left mouse button is not pressed.

@@ -748,4 +728,2 @@ if (event.button !== 0) {

this._document.addEventListener('keydown', this, true);
this._document.addEventListener('mouseup', this, true); // <DEPRECATED>
this._document.addEventListener('mousemove', this, true); // <DEPRECATED>
this._document.addEventListener('pointerup', this, true);

@@ -767,5 +745,5 @@ this._document.addEventListener('pointermove', this, true);

/**
* Handle the `'mousemove'` event for the dock panel.
* Handle the `'pointermove'` event for the dock panel.
*/
private _evtMouseMove(event: MouseEvent): void {
private _evtPointerMove(event: MouseEvent): void {
// Bail early if no drag is in progress.

@@ -791,5 +769,5 @@ if (!this._pressData) {

/**
* Handle the `'mouseup'` event for the dock panel.
* Handle the `'pointerup'` event for the dock panel.
*/
private _evtMouseUp(event: MouseEvent): void {
private _evtPointerUp(event: MouseEvent): void {
// Do nothing if the left mouse button is not released.

@@ -826,4 +804,2 @@ if (event.button !== 0) {

this._document.removeEventListener('keydown', this, true);
this._document.removeEventListener('mouseup', this, true); // <DEPRECATED>
this._document.removeEventListener('mousemove', this, true); // <DEPRECATED>
this._document.removeEventListener('pointerup', this, true);

@@ -927,3 +903,3 @@ this._document.removeEventListener('pointermove', this, true);

break;
case 'widget-tab':
case 'widget-tab': {
const tabHeight = target!.tabBar.node.getBoundingClientRect().height;

@@ -935,2 +911,3 @@ top = target!.top;

break;
}
default:

@@ -1090,10 +1067,5 @@ throw 'unreachable';

tab.classList.add('lm-mod-hidden');
/* <DEPRECATED> */
tab.classList.add('p-mod-hidden'); // Create the cleanup callback.
/* </DEPRECATED> */ let cleanup = () => {
let cleanup = () => {
this._drag = null;
tab.classList.remove('lm-mod-hidden');
/* <DEPRECATED> */
tab.classList.remove('p-mod-hidden');
/* </DEPRECATED> */
};

@@ -1330,6 +1302,3 @@

this.node.classList.add('lm-mod-hidden');
/* <DEPRECATED> */
this.node.classList.add('p-DockPanel-overlay');
this.node.classList.add('p-mod-hidden');
/* </DEPRECATED> */ this.node.style.position = 'absolute';
this.node.style.position = 'absolute';
}

@@ -1369,5 +1338,2 @@

this.node.classList.remove('lm-mod-hidden');
/* <DEPRECATED> */
this.node.classList.remove('p-mod-hidden');
/* </DEPRECATED> */
}

@@ -1393,5 +1359,3 @@

this.node.classList.add('lm-mod-hidden');
/* <DEPRECATED> */
this.node.classList.add('p-mod-hidden');
/* </DEPRECATED> */ return;
return;
}

@@ -1409,5 +1373,2 @@

this.node.classList.add('lm-mod-hidden');
/* <DEPRECATED> */
this.node.classList.add('p-mod-hidden');
/* </DEPRECATED> */
}, delay);

@@ -1437,5 +1398,2 @@ }

bar.addClass('lm-DockPanel-tabBar');
/* <DEPRECATED> */
bar.addClass('p-DockPanel-tabBar');
/* </DEPRECATED> */
return bar;

@@ -1452,5 +1410,3 @@ }

handle.className = 'lm-DockPanel-handle';
/* <DEPRECATED> */
handle.classList.add('p-DockPanel-handle');
/* </DEPRECATED> */ return handle;
return handle;
}

@@ -1633,6 +1589,6 @@ }

// Get a flat array of the widgets in the panel.
let widgets = toArray(panel.widgets());
let widgets = Array.from(panel.widgets());
// Get the first selected widget in the panel.
let selected = panel.selectedWidgets().next();
let selected = panel.selectedWidgets().next().value;

@@ -1639,0 +1595,0 @@ // Compute the current index for the new config.

@@ -10,3 +10,3 @@ // Copyright (c) Jupyter Development Team.

|----------------------------------------------------------------------------*/
import { ArrayExt, each, filter, find, max } from '@lumino/algorithm';
import { ArrayExt, find, max } from '@lumino/algorithm';

@@ -42,6 +42,6 @@ import { IDisposable } from '@lumino/disposable';

// Remove all event listeners.
each(this._widgets, w => {
w.node.removeEventListener('focus', this, true);
w.node.removeEventListener('blur', this, true);
});
for (const widget of this._widgets) {
widget.node.removeEventListener('focus', this, true);
widget.node.removeEventListener('blur', this, true);
}

@@ -231,3 +231,3 @@ // Clear the internal data structures.

// Filter the widgets for those which have had focus.
let valid = filter(this._widgets, w => this._numbers.get(w) !== -1);
let valid = this._widgets.filter(w => this._numbers.get(w) !== -1);

@@ -234,0 +234,0 @@ // Get the valid widget with the max focus number.

@@ -10,3 +10,3 @@ // Copyright (c) Jupyter Development Team.

|----------------------------------------------------------------------------*/
import { ArrayExt, each, IIterator, map } from '@lumino/algorithm';
import { ArrayExt, map } from '@lumino/algorithm';

@@ -55,7 +55,7 @@ import { ElementExt } from '@lumino/domutils';

// Dispose of the widgets and layout items.
each(this._items, item => {
for (const item of this._items) {
let widget = item.widget;
item.dispose();
widget.dispose();
});
}

@@ -293,3 +293,3 @@ // Clear the layout state.

*/
iter(): IIterator<Widget> {
[Symbol.iterator](): IterableIterator<Widget> {
return map(this._items, item => item.widget);

@@ -363,5 +363,5 @@ }

super.init();
each(this, widget => {
for (const widget of this) {
this.attachWidget(widget);
});
}
}

@@ -368,0 +368,0 @@

@@ -11,4 +11,2 @@ /* eslint-disable @typescript-eslint/no-empty-function */

|----------------------------------------------------------------------------*/
import { each, IIterable, IIterator } from '@lumino/algorithm';
import { IDisposable } from '@lumino/disposable';

@@ -40,3 +38,3 @@

*/
export abstract class Layout implements IIterable<Widget>, IDisposable {
export abstract class Layout implements Iterable<Widget>, IDisposable {
/**

@@ -156,3 +154,3 @@ * Construct a new layout.

*/
abstract iter(): IIterator<Widget>;
abstract [Symbol.iterator](): IterableIterator<Widget>;

@@ -245,5 +243,5 @@ /**

protected init(): void {
each(this, widget => {
for (const widget of this) {
widget.parent = this.parent;
});
}
}

@@ -265,5 +263,5 @@

protected onResize(msg: Widget.ResizeMessage): void {
each(this, widget => {
for (const widget of this) {
MessageLoop.sendMessage(widget, Widget.ResizeMessage.UnknownSize);
});
}
}

@@ -285,5 +283,5 @@

protected onUpdateRequest(msg: Message): void {
each(this, widget => {
for (const widget of this) {
MessageLoop.sendMessage(widget, Widget.ResizeMessage.UnknownSize);
});
}
}

@@ -302,5 +300,5 @@

protected onBeforeAttach(msg: Message): void {
each(this, widget => {
for (const widget of this) {
MessageLoop.sendMessage(widget, msg);
});
}
}

@@ -319,5 +317,5 @@

protected onAfterAttach(msg: Message): void {
each(this, widget => {
for (const widget of this) {
MessageLoop.sendMessage(widget, msg);
});
}
}

@@ -336,5 +334,5 @@

protected onBeforeDetach(msg: Message): void {
each(this, widget => {
for (const widget of this) {
MessageLoop.sendMessage(widget, msg);
});
}
}

@@ -353,5 +351,5 @@

protected onAfterDetach(msg: Message): void {
each(this, widget => {
for (const widget of this) {
MessageLoop.sendMessage(widget, msg);
});
}
}

@@ -370,7 +368,7 @@

protected onBeforeShow(msg: Message): void {
each(this, widget => {
for (const widget of this) {
if (!widget.isHidden) {
MessageLoop.sendMessage(widget, msg);
}
});
}
}

@@ -389,7 +387,7 @@

protected onAfterShow(msg: Message): void {
each(this, widget => {
for (const widget of this) {
if (!widget.isHidden) {
MessageLoop.sendMessage(widget, msg);
}
});
}
}

@@ -408,7 +406,7 @@

protected onBeforeHide(msg: Message): void {
each(this, widget => {
for (const widget of this) {
if (!widget.isHidden) {
MessageLoop.sendMessage(widget, msg);
}
});
}
}

@@ -427,7 +425,7 @@

protected onAfterHide(msg: Message): void {
each(this, widget => {
for (const widget of this) {
if (!widget.isHidden) {
MessageLoop.sendMessage(widget, msg);
}
});
}
}

@@ -434,0 +432,0 @@

@@ -47,5 +47,2 @@ // Copyright (c) Jupyter Development Team.

this.addClass('lm-Menu');
/* <DEPRECATED> */
this.addClass('p-Menu');
/* </DEPRECATED> */
this.setFlag(Widget.Flag.DisallowLayout);

@@ -1050,7 +1047,3 @@ this.commands = options.commands;

*/
readonly icon:
| VirtualElement.IRenderer
| undefined
/* <DEPRECATED> */
| string /* </DEPRECATED> */;
readonly icon: VirtualElement.IRenderer | undefined;

@@ -1185,9 +1178,3 @@ /**

/* <DEPRECATED> */
if (typeof data.item.icon === 'string') {
return h.div({ className }, data.item.iconLabel);
}
/* </DEPRECATED> */
// if data.item.icon is undefined, it will be ignored
// If data.item.icon is undefined, it will be ignored.
return h.div({ className }, data.item.icon!, data.item.iconLabel);

@@ -1205,12 +1192,3 @@ }

let content = this.formatLabel(data);
return h.div(
{
className:
'lm-Menu-itemLabel' +
/* <DEPRECATED> */
' p-Menu-itemLabel'
/* </DEPRECATED> */
},
content
);
return h.div({ className: 'lm-Menu-itemLabel' }, content);
}

@@ -1227,12 +1205,3 @@

let content = this.formatShortcut(data);
return h.div(
{
className:
'lm-Menu-itemShortcut' +
/* <DEPRECATED> */
' p-Menu-itemShortcut'
/* </DEPRECATED> */
},
content
);
return h.div({ className: 'lm-Menu-itemShortcut' }, content);
}

@@ -1248,9 +1217,3 @@

renderSubmenu(data: IRenderData): VirtualElement {
return h.div({
className:
'lm-Menu-itemSubmenuIcon' +
/* <DEPRECATED> */
' p-Menu-itemSubmenuIcon'
/* </DEPRECATED> */
});
return h.div({ className: 'lm-Menu-itemSubmenuIcon' });
}

@@ -1268,5 +1231,2 @@

let name = 'lm-Menu-item';
/* <DEPRECATED> */
name += ' p-Menu-item';
/* </DEPRECATED> */

@@ -1276,29 +1236,14 @@ // Add the boolean state classes.

name += ' lm-mod-disabled';
/* <DEPRECATED> */
name += ' p-mod-disabled';
/* </DEPRECATED> */
}
if (data.item.isToggled) {
name += ' lm-mod-toggled';
/* <DEPRECATED> */
name += ' p-mod-toggled';
/* </DEPRECATED> */
}
if (!data.item.isVisible) {
name += ' lm-mod-hidden';
/* <DEPRECATED> */
name += ' p-mod-hidden';
/* </DEPRECATED> */
}
if (data.active) {
name += ' lm-mod-active';
/* <DEPRECATED> */
name += ' p-mod-active';
/* </DEPRECATED> */
}
if (data.collapsed) {
name += ' lm-mod-collapsed';
/* <DEPRECATED> */
name += ' p-mod-collapsed';
/* </DEPRECATED> */
}

@@ -1343,5 +1288,2 @@

let name = 'lm-Menu-itemIcon';
/* <DEPRECATED> */
name += ' p-Menu-itemIcon';
/* </DEPRECATED> */
let extra = data.item.iconClass;

@@ -1401,12 +1343,3 @@ return extra ? `${name} ${extra}` : name;

// Wrap the mnemonic character in a span.
let span = h.span(
{
className:
'lm-Menu-itemMnemonic' +
/* <DEPRECATED> */
' p-Menu-itemMnemonic'
/* </DEPRECATED> */
},
char
);
let span = h.span({ className: 'lm-Menu-itemMnemonic' }, char);

@@ -1459,5 +1392,2 @@ // Return the content parts.

content.className = 'lm-Menu-content';
/* <DEPRECATED> */
content.classList.add('p-Menu-content');
/* </DEPRECATED> */
node.appendChild(content);

@@ -1827,7 +1757,3 @@ content.setAttribute('role', 'menu');

*/
get icon():
| VirtualElement.IRenderer
| undefined
/* <DEPRECATED> */
| string /* </DEPRECATED> */ {
get icon(): VirtualElement.IRenderer | undefined {
if (this.type === 'command') {

@@ -1839,11 +1765,3 @@ return this._commands.icon(this.command, this.args);

}
/* <DEPRECATED> */
// alias to icon class if not otherwise defined
return this.iconClass;
/* </DEPRECATED> */
/* <FUTURE>
return undefined;
</FUTURE> */
}

@@ -1850,0 +1768,0 @@

@@ -44,5 +44,2 @@ // Copyright (c) Jupyter Development Team.

this.addClass('lm-MenuBar');
/* <DEPRECATED> */
this.addClass('p-MenuBar');
/* </DEPRECATED> */
this.setFlag(Widget.Flag.DisallowLayout);

@@ -223,5 +220,2 @@ this.renderer = options.renderer || MenuBar.defaultRenderer;

menu.addClass('lm-MenuBar-menu');
/* <DEPRECATED> */
menu.addClass('p-MenuBar-menu');
/* </DEPRECATED> */

@@ -298,5 +292,2 @@ // Connect to the menu signals.

menu.removeClass('lm-MenuBar-menu');
/* <DEPRECATED> */
menu.removeClass('p-MenuBar-menu');
/* </DEPRECATED> */

@@ -325,5 +316,2 @@ // Schedule an update of the items.

menu.removeClass('lm-MenuBar-menu');
/* <DEPRECATED> */
menu.removeClass('p-MenuBar-menu');
/* </DEPRECATED> */
}

@@ -603,5 +591,2 @@

this.addClass('lm-mod-active');
/* <DEPRECATED> */
this.addClass('p-mod-active');
/* </DEPRECATED> */
document.addEventListener('mousedown', this, true);

@@ -636,5 +621,2 @@ }

this.removeClass('lm-mod-active');
/* <DEPRECATED> */
this.removeClass('p-mod-active');
/* </DEPRECATED> */

@@ -666,5 +648,2 @@ // Remove the document listeners.

this.removeClass('lm-mod-active');
/* <DEPRECATED> */
this.removeClass('p-mod-active');
/* </DEPRECATED> */

@@ -813,9 +792,3 @@ // Remove the document listeners.

/* <DEPRECATED> */
if (typeof data.title.icon === 'string') {
return h.div({ className }, data.title.iconLabel);
}
/* </DEPRECATED> */
// if data.title.icon is undefined, it will be ignored
// If data.title.icon is undefined, it will be ignored.
return h.div({ className }, data.title.icon!, data.title.iconLabel);

@@ -833,12 +806,3 @@ }

let content = this.formatLabel(data);
return h.div(
{
className:
'lm-MenuBar-itemLabel' +
/* <DEPRECATED> */
' p-MenuBar-itemLabel'
/* </DEPRECATED> */
},
content
);
return h.div({ className: 'lm-MenuBar-itemLabel' }, content);
}

@@ -855,5 +819,2 @@

let name = 'lm-MenuBar-item';
/* <DEPRECATED> */
name += ' p-MenuBar-item';
/* </DEPRECATED> */
if (data.title.className) {

@@ -864,5 +825,2 @@ name += ` ${data.title.className}`;

name += ' lm-mod-active';
/* <DEPRECATED> */
name += ' p-mod-active';
/* </DEPRECATED> */
}

@@ -903,5 +861,2 @@ return name;

let name = 'lm-MenuBar-itemIcon';
/* <DEPRECATED> */
name += ' p-MenuBar-itemIcon';
/* </DEPRECATED> */
let extra = data.title.iconClass;

@@ -933,12 +888,3 @@ return extra ? `${name} ${extra}` : name;

// Wrap the mnemonic character in a span.
let span = h.span(
{
className:
'lm-MenuBar-itemMnemonic' +
/* <DEPRECATED> */
' p-MenuBar-itemMnemonic'
/* </DEPRECATED> */
},
char
);
let span = h.span({ className: 'lm-MenuBar-itemMnemonic' }, char);

@@ -967,5 +913,2 @@ // Return the content parts.

content.className = 'lm-MenuBar-content';
/* <DEPRECATED> */
content.classList.add('p-MenuBar-content');
/* </DEPRECATED> */
node.appendChild(content);

@@ -972,0 +915,0 @@ content.setAttribute('role', 'menubar');

@@ -33,5 +33,2 @@ // Copyright (c) Jupyter Development Team.

this.addClass('lm-Panel');
/* <DEPRECATED> */
this.addClass('p-Panel');
/* </DEPRECATED> */
this.layout = Private.createLayout(options);

@@ -38,0 +35,0 @@ }

@@ -10,3 +10,3 @@ // Copyright (c) Jupyter Development Team.

|----------------------------------------------------------------------------*/
import { ArrayExt, each, IIterator, iter } from '@lumino/algorithm';
import { ArrayExt, each } from '@lumino/algorithm';

@@ -57,4 +57,4 @@ import { MessageLoop } from '@lumino/messaging';

*/
iter(): IIterator<Widget> {
return iter(this._widgets);
[Symbol.iterator](): IterableIterator<Widget> {
return this._widgets[Symbol.iterator]();
}

@@ -61,0 +61,0 @@

@@ -34,5 +34,2 @@ // Copyright (c) Jupyter Development Team.

this.addClass('lm-ScrollBar');
/* <DEPRECATED> */
this.addClass('p-ScrollBar');
/* </DEPRECATED> */
this.setFlag(Widget.Flag.DisallowLayout);

@@ -426,5 +423,2 @@

thumbNode.classList.add('lm-mod-active');
/* <DEPRECATED> */
thumbNode.classList.add('p-mod-active');
/* </DEPRECATED> */

@@ -465,5 +459,2 @@ // Store the current value in the press data.

this.decrementNode.classList.add('lm-mod-active');
/* <DEPRECATED> */
this.decrementNode.classList.add('p-mod-active');
/* </DEPRECATED> */

@@ -484,5 +475,2 @@ // Start the repeat timer.

this.incrementNode.classList.add('lm-mod-active');
/* <DEPRECATED> */
this.incrementNode.classList.add('p-mod-active');
/* </DEPRECATED> */

@@ -588,7 +576,2 @@ // Start the repeat timer.

this.incrementNode.classList.remove('lm-mod-active');
/* <DEPRECATED> */
this.thumbNode.classList.remove('p-mod-active');
this.decrementNode.classList.remove('p-mod-active');
this.incrementNode.classList.remove('p-mod-active');
/* </DEPRECATED> */
}

@@ -820,8 +803,2 @@

thumb.className = 'lm-ScrollBar-thumb';
/* <DEPRECATED> */
decrement.classList.add('p-ScrollBar-button');
increment.classList.add('p-ScrollBar-button');
track.classList.add('p-ScrollBar-track');
thumb.classList.add('p-ScrollBar-thumb');
/* </DEPRECATED> */
track.appendChild(thumb);

@@ -828,0 +805,0 @@ node.appendChild(decrement);

@@ -10,3 +10,3 @@ // Copyright (c) Jupyter Development Team.

|----------------------------------------------------------------------------*/
import { each, empty, IIterator, once } from '@lumino/algorithm';
import { empty, once } from '@lumino/algorithm';

@@ -85,3 +85,3 @@ import { MessageLoop } from '@lumino/messaging';

*/
iter(): IIterator<Widget> {
[Symbol.iterator](): IterableIterator<Widget> {
return this._widget ? once(this._widget) : empty<Widget>();

@@ -123,5 +123,5 @@ }

super.init();
each(this, widget => {
for (const widget of this) {
this.attachWidget(widget);
});
}
}

@@ -128,0 +128,0 @@

@@ -10,3 +10,3 @@ // Copyright (c) Jupyter Development Team.

|----------------------------------------------------------------------------*/
import { ArrayExt, each } from '@lumino/algorithm';
import { ArrayExt } from '@lumino/algorithm';

@@ -57,5 +57,5 @@ import { ElementExt } from '@lumino/domutils';

// Dispose of the layout items.
each(this._items, item => {
for (const item of this._items) {
item.dispose();
});
}

@@ -503,10 +503,4 @@ // Clear the layout state.

this._handles[i].classList.add('lm-mod-hidden');
/* <DEPRECATED> */
this._handles[i].classList.add('p-mod-hidden');
/* </DEPRECATED> */
} else {
this._handles[i].classList.remove('lm-mod-hidden');
/* <DEPRECATED> */
this._handles[i].classList.remove('p-mod-hidden');
/* </DEPRECATED> */
lastHandleIndex = i;

@@ -520,5 +514,2 @@ nVisible++;

this._handles[lastHandleIndex].classList.add('lm-mod-hidden');
/* <DEPRECATED> */
this._handles[lastHandleIndex].classList.add('p-mod-hidden');
/* </DEPRECATED> */
}

@@ -525,0 +516,0 @@

@@ -41,5 +41,2 @@ // Copyright (c) Jupyter Development Team.

this.addClass('lm-SplitPanel');
/* <DEPRECATED> */
this.addClass('p-SplitPanel');
/* </DEPRECATED> */
}

@@ -173,19 +170,10 @@

switch (event.type) {
case 'mousedown':
this._evtMouseDown(event as MouseEvent);
break;
case 'mousemove':
this._evtMouseMove(event as MouseEvent);
break;
case 'mouseup':
this._evtMouseUp(event as MouseEvent);
break;
case 'pointerdown':
this._evtMouseDown(event as MouseEvent);
this._evtPointerDown(event as PointerEvent);
break;
case 'pointermove':
this._evtMouseMove(event as MouseEvent);
this._evtPointerMove(event as PointerEvent);
break;
case 'pointerup':
this._evtMouseUp(event as MouseEvent);
this._evtPointerUp(event as PointerEvent);
break;

@@ -206,3 +194,2 @@ case 'keydown':

protected onBeforeAttach(msg: Message): void {
this.node.addEventListener('mousedown', this);
this.node.addEventListener('pointerdown', this);

@@ -215,3 +202,2 @@ }

protected onAfterDetach(msg: Message): void {
this.node.removeEventListener('mousedown', this);
this.node.removeEventListener('pointerdown', this);

@@ -226,5 +212,2 @@ this._releaseMouse();

msg.child.addClass('lm-SplitPanel-child');
/* <DEPRECATED> */
msg.child.addClass('p-SplitPanel-child');
/* </DEPRECATED> */
this._releaseMouse();

@@ -238,5 +221,2 @@ }

msg.child.removeClass('lm-SplitPanel-child');
/* <DEPRECATED> */
msg.child.removeClass('p-SplitPanel-child');
/* </DEPRECATED> */
this._releaseMouse();

@@ -262,6 +242,6 @@ }

/**
* Handle the `'mousedown'` event for the split panel.
* Handle the `'pointerdown'` event for the split panel.
*/
private _evtMouseDown(event: MouseEvent): void {
// Do nothing if the left mouse button is not pressed.
private _evtPointerDown(event: PointerEvent): void {
// Do nothing if the primary button is not pressed.
if (event.button !== 0) {

@@ -271,3 +251,3 @@ return;

// Find the handle which contains the mouse target, if any.
// Find the handle which contains the target, if any.
let layout = this.layout as SplitLayout;

@@ -288,4 +268,2 @@ let index = ArrayExt.findFirstIndex(layout.handles, handle => {

// Add the extra document listeners.
document.addEventListener('mouseup', this, true);
document.addEventListener('mousemove', this, true);
document.addEventListener('pointerup', this, true);

@@ -313,5 +291,5 @@ document.addEventListener('pointermove', this, true);

/**
* Handle the `'mousemove'` event for the split panel.
* Handle the `'pointermove'` event for the split panel.
*/
private _evtMouseMove(event: MouseEvent): void {
private _evtPointerMove(event: PointerEvent): void {
// Stop the event when dragging a split handle.

@@ -336,6 +314,6 @@ event.preventDefault();

/**
* Handle the `'mouseup'` event for the split panel.
* Handle the `'pointerup'` event for the split panel.
*/
private _evtMouseUp(event: MouseEvent): void {
// Do nothing if the left mouse button is not released.
private _evtPointerUp(event: PointerEvent): void {
// Do nothing if the primary button is not released.
if (event.button !== 0) {

@@ -370,4 +348,2 @@ return;

// Remove the extra document listeners.
document.removeEventListener('mouseup', this, true);
document.removeEventListener('mousemove', this, true);
document.removeEventListener('keydown', this, true);

@@ -456,5 +432,2 @@ document.removeEventListener('pointerup', this, true);

handle.className = 'lm-SplitPanel-handle';
/* <DEPRECATED> */
handle.classList.add('p-SplitPanel-handle');
/* </DEPRECATED> */
return handle;

@@ -461,0 +434,0 @@ }

@@ -10,3 +10,3 @@ // Copyright (c) Jupyter Development Team.

|----------------------------------------------------------------------------*/
import { ArrayExt, each } from '@lumino/algorithm';
import { ArrayExt } from '@lumino/algorithm';

@@ -73,5 +73,5 @@ import { ElementExt } from '@lumino/domutils';

// Dispose of the layout items.
each(this._items, item => {
for (const item of this._items) {
item.dispose();
});
}

@@ -78,0 +78,0 @@ // Clear the layout state.

@@ -33,5 +33,2 @@ // Copyright (c) Jupyter Development Team.

this.addClass('lm-StackedPanel');
/* <DEPRECATED> */
this.addClass('p-StackedPanel');
/* </DEPRECATED> */
}

@@ -73,5 +70,2 @@

msg.child.addClass('lm-StackedPanel-child');
/* <DEPRECATED> */
msg.child.addClass('p-StackedPanel-child');
/* </DEPRECATED> */
}

@@ -84,5 +78,2 @@

msg.child.removeClass('lm-StackedPanel-child');
/* <DEPRECATED> */
msg.child.removeClass('p-StackedPanel-child');
/* </DEPRECATED> */
this._widgetRemoved.emit(msg.child);

@@ -89,0 +80,0 @@ }

@@ -10,3 +10,3 @@ // Copyright (c) Jupyter Development Team.

|----------------------------------------------------------------------------*/
import { ArrayExt, each } from '@lumino/algorithm';
import { ArrayExt } from '@lumino/algorithm';

@@ -53,5 +53,2 @@ import { IDisposable } from '@lumino/disposable';

this.addClass('lm-TabBar');
/* <DEPRECATED> */
this.addClass('p-TabBar');
/* </DEPRECATED> */
this.contentNode.setAttribute('role', 'tablist');

@@ -595,19 +592,10 @@ this.setFlag(Widget.Flag.DisallowLayout);

switch (event.type) {
case 'mousedown': // <DEPRECATED>
this._evtMouseDown(event as MouseEvent);
break;
case 'mousemove': // <DEPRECATED>
this._evtMouseMove(event as MouseEvent);
break;
case 'mouseup': // <DEPRECATED>
this._evtMouseUp(event as MouseEvent);
break;
case 'pointerdown':
this._evtMouseDown(event as MouseEvent);
this._evtPointerDown(event as PointerEvent);
break;
case 'pointermove':
this._evtMouseMove(event as MouseEvent);
this._evtPointerMove(event as PointerEvent);
break;
case 'pointerup':
this._evtMouseUp(event as MouseEvent);
this._evtPointerUp(event as PointerEvent);
break;

@@ -631,3 +619,2 @@ case 'dblclick':

protected onBeforeAttach(msg: Message): void {
this.node.addEventListener('mousedown', this); // <DEPRECATED>
this.node.addEventListener('pointerdown', this);

@@ -641,3 +628,2 @@ this.node.addEventListener('dblclick', this);

protected onAfterDetach(msg: Message): void {
this.node.removeEventListener('mousedown', this); // <DEPRECATED>
this.node.removeEventListener('pointerdown', this);

@@ -743,5 +729,5 @@ this.node.removeEventListener('dblclick', this);

/**
* Handle the `'mousedown'` event for the tab bar.
* Handle the `'pointerdown'` event for the tab bar.
*/
private _evtMouseDown(event: MouseEvent): void {
private _evtPointerDown(event: PointerEvent | MouseEvent): void {
// Do nothing if it's not a left or middle mouse press.

@@ -797,4 +783,3 @@ if (event.button !== 0 && event.button !== 1) {

// Add the document mouse up listener.
this.document.addEventListener('mouseup', this, true); // <DEPRECATED>
// Add the document pointer up listener.
this.document.addEventListener('pointerup', this, true);

@@ -815,3 +800,2 @@

if (this.tabsMovable) {
this.document.addEventListener('mousemove', this, true); // <DEPRECATED>
this.document.addEventListener('pointermove', this, true);

@@ -842,5 +826,5 @@ this.document.addEventListener('keydown', this, true);

/**
* Handle the `'mousemove'` event for the tab bar.
* Handle the `'pointermove'` event for the tab bar.
*/
private _evtMouseMove(event: MouseEvent): void {
private _evtPointerMove(event: PointerEvent | MouseEvent): void {
// Do nothing if no drag is in progress.

@@ -884,6 +868,2 @@ let data = this._dragData;

this.addClass('lm-mod-dragging');
/* <DEPRECATED> */
data.tab.classList.add('p-mod-dragging');
this.addClass('p-mod-dragging');
/* </DEPRECATED> */

@@ -920,5 +900,5 @@ // Mark the drag as active.

/**
* Handle the `'mouseup'` event for the document.
* Handle the `'pointerup'` event for the document.
*/
private _evtMouseUp(event: MouseEvent): void {
private _evtPointerUp(event: PointerEvent | MouseEvent): void {
// Do nothing if it's not a left or middle mouse release.

@@ -940,4 +920,2 @@ if (event.button !== 0 && event.button !== 1) {

// Remove the extra mouse event listeners.
this.document.removeEventListener('mousemove', this, true); // <DEPRECATED>
this.document.removeEventListener('mouseup', this, true); // <DEPRECATED>
this.document.removeEventListener('pointermove', this, true);

@@ -1008,5 +986,2 @@ this.document.removeEventListener('pointerup', this, true);

data.tab.classList.remove('lm-mod-dragging');
/* <DEPRECATED> */
data.tab.classList.remove('p-mod-dragging');
/* </DEPRECATED> */

@@ -1034,5 +1009,2 @@ // Parse the transition duration for releasing the tab.

this.removeClass('lm-mod-dragging');
/* <DEPRECATED> */
this.removeClass('p-mod-dragging');
/* </DEPRECATED> */

@@ -1077,5 +1049,3 @@ // If the tab was not moved, there is nothing else to do.

// Remove the extra mouse listeners.
this.document.removeEventListener('mousemove', this, true); // <DEPRECATED>
this.document.removeEventListener('mouseup', this, true); // <DEPRECATED>
// Remove the extra document event listeners.
this.document.removeEventListener('pointermove', this, true);

@@ -1104,6 +1074,2 @@ this.document.removeEventListener('pointerup', this, true);

this.removeClass('lm-mod-dragging');
/* <DEPRECATED> */
data.tab.classList.remove('p-mod-dragging');
this.removeClass('p-mod-dragging');
/* </DEPRECATED> */
}

@@ -1619,9 +1585,3 @@

/* <DEPRECATED> */
if (typeof title.icon === 'string') {
return h.div({ className }, title.iconLabel);
}
/* </DEPRECATED> */
// if title.icon is undefined, it will be ignored
// If title.icon is undefined, it will be ignored.
return h.div({ className }, title.icon!, title.iconLabel);

@@ -1638,12 +1598,3 @@ }

renderLabel(data: IRenderData<any>): VirtualElement {
return h.div(
{
className:
'lm-TabBar-tabLabel' +
/* <DEPRECATED> */
' p-TabBar-tabLabel'
/* </DEPRECATED> */
},
data.title.label
);
return h.div({ className: 'lm-TabBar-tabLabel' }, data.title.label);
}

@@ -1659,9 +1610,3 @@

renderCloseIcon(data: IRenderData<any>): VirtualElement {
return h.div({
className:
'lm-TabBar-tabCloseIcon' +
/* <DEPRECATED> */
' p-TabBar-tabCloseIcon'
/* </DEPRECATED> */
});
return h.div({ className: 'lm-TabBar-tabCloseIcon' });
}

@@ -1710,5 +1655,2 @@

let name = 'lm-TabBar-tab';
/* <DEPRECATED> */
name += ' p-TabBar-tab';
/* </DEPRECATED> */
if (data.title.className) {

@@ -1719,11 +1661,5 @@ name += ` ${data.title.className}`;

name += ' lm-mod-closable';
/* <DEPRECATED> */
name += ' p-mod-closable';
/* </DEPRECATED> */
}
if (data.current) {
name += ' lm-mod-current';
/* <DEPRECATED> */
name += ' p-mod-current';
/* </DEPRECATED> */
}

@@ -1764,5 +1700,2 @@ return name;

let name = 'lm-TabBar-tabIcon';
/* <DEPRECATED> */
name += ' p-TabBar-tabIcon';
/* </DEPRECATED> */
let extra = data.title.iconClass;

@@ -1865,3 +1798,3 @@ return extra ? `${name} ${extra}` : name;

*/
contentRect: ClientRect | null;
contentRect: DOMRect | null;

@@ -1919,5 +1852,2 @@ /**

content.className = 'lm-TabBar-content';
/* <DEPRECATED> */
content.classList.add('p-TabBar-content');
/* </DEPRECATED> */
node.appendChild(content);

@@ -2102,3 +2032,3 @@

): void {
each(tabs, tab => {
for (const tab of tabs) {
if (orientation === 'horizontal') {

@@ -2109,4 +2039,4 @@ (tab as HTMLElement).style.left = '';

}
});
}
}
}

@@ -44,5 +44,2 @@ // Copyright (c) Jupyter Development Team.

this.addClass('lm-TabPanel');
/* <DEPRECATED> */
this.addClass('p-TabPanel');
/* </DEPRECATED> */

@@ -54,6 +51,2 @@ // Create the tab bar and stacked panel.

this.stackedPanel.addClass('lm-TabPanel-stackedPanel');
/* <DEPRECATED> */
this.tabBar.addClass('p-TabPanel-tabBar');
this.stackedPanel.addClass('p-TabPanel-stackedPanel');
/* </DEPRECATED> */

@@ -60,0 +53,0 @@ // Connect the tab bar signal handlers.

@@ -41,21 +41,4 @@ // Copyright (c) Jupyter Development Team.

if (options.icon !== undefined) {
/* <DEPRECATED> */
if (typeof options.icon === 'string') {
// when ._icon is null, the .icon getter will alias .iconClass
this._icon = null;
this._iconClass = options.icon;
} else {
/* </DEPRECATED> */
this._icon = options.icon;
/* <DEPRECATED> */
}
/* </DEPRECATED> */
} else {
/* <DEPRECATED> */
// if unset, default to aliasing .iconClass
this._icon = null;
this._icon = options.icon;
}
/* </DEPRECATED> */

@@ -68,5 +51,2 @@ if (options.iconClass !== undefined) {

}
if (options.iconRenderer !== undefined) {
this._icon = options.iconRenderer;
}
if (options.caption !== undefined) {

@@ -143,18 +123,4 @@ this._caption = options.caption;

* The default value is undefined.
*
* DEPRECATED: if set to a string value, the .icon field will function as
* an alias for the .iconClass field, for backwards compatibility
*/
get icon():
| VirtualElement.IRenderer
| undefined
/* <DEPRECATED> */
| string /* </DEPRECATED> */ {
/* <DEPRECATED> */
if (this._icon === null) {
// only alias .iconClass if ._icon has been explicitly nulled
return this.iconClass;
}
/* </DEPRECATED> */
get icon(): VirtualElement.IRenderer | undefined {
return this._icon;

@@ -168,30 +134,9 @@ }

* A renderer is an object that supplies a render and unrender function.
*
* DEPRECATED: if set to a string value, the .icon field will function as
* an alias for the .iconClass field, for backwards compatibility
*/
set icon(
value:
| VirtualElement.IRenderer
| undefined
/* <DEPRECATED> */
| string /* </DEPRECATED> */
) {
/* <DEPRECATED> */
if (typeof value === 'string') {
// when ._icon is null, the .icon getter will alias .iconClass
this._icon = null;
this.iconClass = value;
} else {
/* </DEPRECATED> */
if (this._icon === value) {
return;
}
this._icon = value;
this._changed.emit(undefined);
/* <DEPRECATED> */
set icon(value: VirtualElement.IRenderer | undefined) {
if (this._icon === value) {
return;
}
/* </DEPRECATED> */
this._icon = value;
this._changed.emit(undefined);
}

@@ -248,16 +193,2 @@

/**
* @deprecated Use `icon` instead.
*/
get iconRenderer(): VirtualElement.IRenderer | undefined {
return this._icon || undefined;
}
/**
* @deprecated Use `icon` instead.
*/
set iconRenderer(value: VirtualElement.IRenderer | undefined) {
this.icon = value;
}
/**
* Get the caption for the title.

@@ -380,9 +311,3 @@ *

private _mnemonic = -1;
private _icon:
| VirtualElement.IRenderer
| undefined
/* <DEPRECATED> */
| null /* </DEPRECATED> */;
private _icon: VirtualElement.IRenderer | undefined = undefined;
private _iconClass = '';

@@ -427,7 +352,4 @@ private _iconLabel = '';

* The icon renderer for the title.
*
* DEPRECATED: if set to a string value, the .icon field will function as
* an alias for the .iconClass field, for backwards compatibility
*/
icon?: VirtualElement.IRenderer | string;
icon?: VirtualElement.IRenderer;

@@ -445,7 +367,2 @@ /**

/**
* @deprecated Use `icon` instead.
*/
iconRenderer?: VirtualElement.IRenderer;
/**
* The caption for the title.

@@ -452,0 +369,0 @@ */

@@ -11,3 +11,3 @@ /* eslint-disable @typescript-eslint/no-empty-function */

|----------------------------------------------------------------------------*/
import { empty, IIterator } from '@lumino/algorithm';
import { empty } from '@lumino/algorithm';

@@ -48,5 +48,2 @@ import { IObservableDisposable } from '@lumino/disposable';

this.addClass('lm-Widget');
/* <DEPRECATED> */
this.addClass('p-Widget');
/* </DEPRECATED> */
}

@@ -201,5 +198,2 @@

this.addClass('lm-mod-hidden');
/* <DEPRECATED> */
this.addClass('p-mod-hidden');
/* </DEPRECATED> */
this.node.style.transform = '';

@@ -209,5 +203,2 @@ } else {

this.removeClass('lm-mod-hidden');
/* <DEPRECATED> */
this.removeClass('p-mod-hidden');
/* </DEPRECATED> */
}

@@ -299,4 +290,4 @@ }

*/
children(): IIterator<Widget> {
return this._layout ? this._layout.iter() : empty<Widget>();
children(): IterableIterator<Widget> {
return this._layout ? this._layout[Symbol.iterator]() : empty<Widget>();
}

@@ -444,5 +435,2 @@

this.removeClass('lm-mod-hidden');
/* <DEPRECATED> */
this.removeClass('p-mod-hidden');
/* </DEPRECATED> */
} else {

@@ -480,5 +468,2 @@ this.node.style.transform = '';

this.addClass('lm-mod-hidden');
/* <DEPRECATED> */
this.addClass('p-mod-hidden');
/* </DEPRECATED> */
} else {

@@ -485,0 +470,0 @@ this.node.style.transform = 'scale(0)';

@@ -22,7 +22,8 @@ import { SplitLayout } from './splitlayout';

*/
titleSpace: number;
get titleSpace(): number;
set titleSpace(value: number);
/**
* A read-only array of the section titles in the panel.
*/
readonly titles: ReadonlyArray<HTMLElement>;
get titles(): ReadonlyArray<HTMLElement>;
/**

@@ -122,2 +123,1 @@ * Dispose of the resources held by the layout.

}
//# sourceMappingURL=accordionlayout.d.ts.map

@@ -23,3 +23,3 @@ import { Message } from '@lumino/messaging';

*/
readonly renderer: AccordionPanel.IRenderer;
get renderer(): AccordionPanel.IRenderer;
/**

@@ -31,7 +31,8 @@ * The section title space.

*/
titleSpace: number;
get titleSpace(): number;
set titleSpace(value: number);
/**
* A read-only array of the section titles in the panel.
*/
readonly titles: ReadonlyArray<HTMLElement>;
get titles(): ReadonlyArray<HTMLElement>;
/**

@@ -197,2 +198,1 @@ * Add a widget to the end of the panel.

}
//# sourceMappingURL=accordionpanel.d.ts.map

@@ -180,2 +180,1 @@ /**

}
//# sourceMappingURL=boxengine.d.ts.map

@@ -21,6 +21,7 @@ import { Message } from '@lumino/messaging';

*/
get direction(): BoxLayout.Direction;
/**
* Set the layout direction for the box layout.
*/
direction: BoxLayout.Direction;
* Set the layout direction for the box layout.
*/
set direction(value: BoxLayout.Direction);
/**

@@ -35,19 +36,21 @@ * Get the content alignment for the box layout.

*/
get alignment(): BoxLayout.Alignment;
/**
* Set the content alignment for the box layout.
*
* #### Notes
* This is the alignment of the widgets in the layout direction.
*
* The alignment has no effect if the widgets can expand to fill the
* entire box layout.
*/
alignment: BoxLayout.Alignment;
* Set the content alignment for the box layout.
*
* #### Notes
* This is the alignment of the widgets in the layout direction.
*
* The alignment has no effect if the widgets can expand to fill the
* entire box layout.
*/
set alignment(value: BoxLayout.Alignment);
/**
* Get the inter-element spacing for the box layout.
*/
get spacing(): number;
/**
* Set the inter-element spacing for the box layout.
*/
spacing: number;
* Set the inter-element spacing for the box layout.
*/
set spacing(value: number);
/**

@@ -207,2 +210,1 @@ * Perform layout initialization which requires the parent widget.

}
//# sourceMappingURL=boxlayout.d.ts.map

@@ -20,6 +20,7 @@ import { BoxLayout } from './boxlayout';

*/
get direction(): BoxPanel.Direction;
/**
* Set the layout direction for the box panel.
*/
direction: BoxPanel.Direction;
* Set the layout direction for the box panel.
*/
set direction(value: BoxPanel.Direction);
/**

@@ -34,19 +35,21 @@ * Get the content alignment for the box panel.

*/
get alignment(): BoxPanel.Alignment;
/**
* Set the content alignment for the box panel.
*
* #### Notes
* This is the alignment of the widgets in the layout direction.
*
* The alignment has no effect if the widgets can expand to fill the
* entire box layout.
*/
alignment: BoxPanel.Alignment;
* Set the content alignment for the box panel.
*
* #### Notes
* This is the alignment of the widgets in the layout direction.
*
* The alignment has no effect if the widgets can expand to fill the
* entire box layout.
*/
set alignment(value: BoxPanel.Alignment);
/**
* Get the inter-element spacing for the box panel.
*/
get spacing(): number;
/**
* Set the inter-element spacing for the box panel.
*/
spacing: number;
* Set the inter-element spacing for the box panel.
*/
set spacing(value: number);
/**

@@ -137,2 +140,1 @@ * A message handler invoked on a `'child-added'` message.

}
//# sourceMappingURL=boxpanel.d.ts.map

@@ -34,3 +34,3 @@ import { ReadonlyJSONObject } from '@lumino/coreutils';

*/
readonly searchNode: HTMLDivElement;
get searchNode(): HTMLDivElement;
/**

@@ -42,3 +42,3 @@ * The command palette input node.

*/
readonly inputNode: HTMLInputElement;
get inputNode(): HTMLInputElement;
/**

@@ -52,7 +52,7 @@ * The command palette content node.

*/
readonly contentNode: HTMLUListElement;
get contentNode(): HTMLUListElement;
/**
* A read-only array of the command items in the palette.
*/
readonly items: ReadonlyArray<CommandPalette.IItem>;
get items(): ReadonlyArray<CommandPalette.IItem>;
/**

@@ -254,3 +254,3 @@ * Add a command item to the command palette.

*/
readonly icon: VirtualElement.IRenderer | undefined | string;
readonly icon: VirtualElement.IRenderer | undefined;
/**

@@ -502,2 +502,1 @@ * The icon class for the command item.

}
//# sourceMappingURL=commandpalette.d.ts.map

@@ -114,2 +114,1 @@ import { CommandRegistry } from '@lumino/commands';

}
//# sourceMappingURL=contextmenu.d.ts.map

@@ -1,2 +0,1 @@

import { IIterator } from '@lumino/algorithm';
import { Message } from '@lumino/messaging';

@@ -39,14 +38,16 @@ import { Layout } from './layout';

*/
hiddenMode: Widget.HiddenMode;
get hiddenMode(): Widget.HiddenMode;
set hiddenMode(v: Widget.HiddenMode);
/**
* Get the inter-element spacing for the dock layout.
*/
get spacing(): number;
/**
* Set the inter-element spacing for the dock layout.
*/
spacing: number;
* Set the inter-element spacing for the dock layout.
*/
set spacing(value: number);
/**
* Whether the dock layout is empty.
*/
readonly isEmpty: boolean;
get isEmpty(): boolean;
/**

@@ -60,3 +61,3 @@ * Create an iterator over all widgets in the layout.

*/
iter(): IIterator<Widget>;
[Symbol.iterator](): IterableIterator<Widget>;
/**

@@ -70,3 +71,3 @@ * Create an iterator over the user widgets in the layout.

*/
widgets(): IIterator<Widget>;
widgets(): IterableIterator<Widget>;
/**

@@ -81,3 +82,3 @@ * Create an iterator over the selected widgets in the layout.

*/
selectedWidgets(): IIterator<Widget>;
selectedWidgets(): IterableIterator<Widget>;
/**

@@ -91,3 +92,3 @@ * Create an iterator over the tab bars in the layout.

*/
tabBars(): IIterator<TabBar<Widget>>;
tabBars(): IterableIterator<TabBar<Widget>>;
/**

@@ -98,3 +99,3 @@ * Create an iterator over the handles in the layout.

*/
handles(): IIterator<HTMLDivElement>;
handles(): IterableIterator<HTMLDivElement>;
/**

@@ -535,2 +536,1 @@ * Move a handle to the given offset position.

}
//# sourceMappingURL=docklayout.d.ts.map

@@ -1,2 +0,1 @@

import { IIterator } from '@lumino/algorithm';
import { Message } from '@lumino/messaging';

@@ -24,6 +23,7 @@ import { ISignal } from '@lumino/signaling';

*/
get hiddenMode(): Widget.HiddenMode;
/**
* Set the method for hiding widgets.
*/
hiddenMode: Widget.HiddenMode;
* Set the method for hiding widgets.
*/
set hiddenMode(v: Widget.HiddenMode);
/**

@@ -40,3 +40,3 @@ * A signal emitted when the layout configuration is modified.

*/
readonly layoutModified: ISignal<this, void>;
get layoutModified(): ISignal<this, void>;
/**

@@ -46,3 +46,3 @@ * A signal emitted when the add button on a tab bar is clicked.

*/
readonly addRequested: ISignal<this, TabBar<Widget>>;
get addRequested(): ISignal<this, TabBar<Widget>>;
/**

@@ -55,47 +55,52 @@ * The overlay used by the dock panel.

*/
readonly renderer: DockPanel.IRenderer;
get renderer(): DockPanel.IRenderer;
/**
* Get the spacing between the widgets.
*/
get spacing(): number;
/**
* Set the spacing between the widgets.
*/
spacing: number;
* Set the spacing between the widgets.
*/
set spacing(value: number);
/**
* Get the mode for the dock panel.
*/
get mode(): DockPanel.Mode;
/**
* Set the mode for the dock panel.
*
* #### Notes
* Changing the mode is a destructive operation with respect to the
* panel's layout configuration. If layout state must be preserved,
* save the current layout config before changing the mode.
*/
mode: DockPanel.Mode;
* Set the mode for the dock panel.
*
* #### Notes
* Changing the mode is a destructive operation with respect to the
* panel's layout configuration. If layout state must be preserved,
* save the current layout config before changing the mode.
*/
set mode(value: DockPanel.Mode);
/**
* Whether the tabs can be dragged / moved at runtime.
*/
get tabsMovable(): boolean;
/**
* Enable / Disable draggable / movable tabs.
*/
tabsMovable: boolean;
* Enable / Disable draggable / movable tabs.
*/
set tabsMovable(value: boolean);
/**
* Whether the tabs are constrained to their source dock panel
*/
get tabsConstrained(): boolean;
/**
* Constrain/Allow tabs to be dragged outside of this dock panel
*/
tabsConstrained: boolean;
* Constrain/Allow tabs to be dragged outside of this dock panel
*/
set tabsConstrained(value: boolean);
/**
* Whether the add buttons for each tab bar are enabled.
*/
get addButtonEnabled(): boolean;
/**
* Set whether the add buttons for each tab bar are enabled.
*/
addButtonEnabled: boolean;
* Set whether the add buttons for each tab bar are enabled.
*/
set addButtonEnabled(value: boolean);
/**
* Whether the dock panel is empty.
*/
readonly isEmpty: boolean;
get isEmpty(): boolean;
/**

@@ -109,3 +114,3 @@ * Create an iterator over the user widgets in the panel.

*/
widgets(): IIterator<Widget>;
widgets(): IterableIterator<Widget>;
/**

@@ -120,3 +125,3 @@ * Create an iterator over the selected widgets in the panel.

*/
selectedWidgets(): IIterator<Widget>;
selectedWidgets(): IterableIterator<Widget>;
/**

@@ -130,3 +135,3 @@ * Create an iterator over the tab bars in the panel.

*/
tabBars(): IIterator<TabBar<Widget>>;
tabBars(): IterableIterator<TabBar<Widget>>;
/**

@@ -137,3 +142,3 @@ * Create an iterator over the handles in the panel.

*/
handles(): IIterator<HTMLDivElement>;
handles(): IterableIterator<HTMLDivElement>;
/**

@@ -246,13 +251,13 @@ * Select a specific widget in the dock panel.

/**
* Handle the `'mousedown'` event for the dock panel.
* Handle the `'pointerdown'` event for the dock panel.
*/
private _evtMouseDown;
private _evtPointerDown;
/**
* Handle the `'mousemove'` event for the dock panel.
* Handle the `'pointermove'` event for the dock panel.
*/
private _evtMouseMove;
private _evtPointerMove;
/**
* Handle the `'mouseup'` event for the dock panel.
* Handle the `'pointerup'` event for the dock panel.
*/
private _evtMouseUp;
private _evtPointerUp;
/**

@@ -541,2 +546,1 @@ * Release the mouse grab for the dock panel.

}
//# sourceMappingURL=dockpanel.d.ts.map

@@ -18,11 +18,11 @@ import { IDisposable } from '@lumino/disposable';

*/
readonly currentChanged: ISignal<this, FocusTracker.IChangedArgs<T>>;
get currentChanged(): ISignal<this, FocusTracker.IChangedArgs<T>>;
/**
* A signal emitted when the active widget has changed.
*/
readonly activeChanged: ISignal<this, FocusTracker.IChangedArgs<T>>;
get activeChanged(): ISignal<this, FocusTracker.IChangedArgs<T>>;
/**
* A flag indicating whether the tracker is disposed.
*/
readonly isDisposed: boolean;
get isDisposed(): boolean;
/**

@@ -46,3 +46,3 @@ * The current widget in the tracker.

*/
readonly currentWidget: T | null;
get currentWidget(): T | null;
/**

@@ -55,7 +55,7 @@ * The active widget in the tracker.

*/
readonly activeWidget: T | null;
get activeWidget(): T | null;
/**
* A read only array of the widgets being tracked.
*/
readonly widgets: ReadonlyArray<T>;
get widgets(): ReadonlyArray<T>;
/**

@@ -168,2 +168,1 @@ * Get the focus number for a particular widget in the tracker.

}
//# sourceMappingURL=focustracker.d.ts.map

@@ -1,2 +0,1 @@

import { IIterator } from '@lumino/algorithm';
import { Message } from '@lumino/messaging';

@@ -22,33 +21,37 @@ import { Layout } from './layout';

*/
get rowCount(): number;
/**
* Set the number of rows in the layout.
*
* #### Notes
* The minimum row count is `1`.
*/
rowCount: number;
* Set the number of rows in the layout.
*
* #### Notes
* The minimum row count is `1`.
*/
set rowCount(value: number);
/**
* Get the number of columns in the layout.
*/
get columnCount(): number;
/**
* Set the number of columns in the layout.
*
* #### Notes
* The minimum column count is `1`.
*/
columnCount: number;
* Set the number of columns in the layout.
*
* #### Notes
* The minimum column count is `1`.
*/
set columnCount(value: number);
/**
* Get the row spacing for the layout.
*/
get rowSpacing(): number;
/**
* Set the row spacing for the layout.
*/
rowSpacing: number;
* Set the row spacing for the layout.
*/
set rowSpacing(value: number);
/**
* Get the column spacing for the layout.
*/
get columnSpacing(): number;
/**
* Set the col spacing for the layout.
*/
columnSpacing: number;
* Set the col spacing for the layout.
*/
set columnSpacing(value: number);
/**

@@ -103,3 +106,3 @@ * Get the stretch factor for a specific row.

*/
iter(): IIterator<Widget>;
[Symbol.iterator](): IterableIterator<Widget>;
/**

@@ -263,2 +266,1 @@ * Add a widget to the grid layout.

}
//# sourceMappingURL=gridlayout.d.ts.map

@@ -27,2 +27,1 @@ export * from './accordionlayout';

export * from './widget';
//# sourceMappingURL=index.d.ts.map

@@ -1,2 +0,1 @@

import { IIterable, IIterator } from '@lumino/algorithm';
import { IDisposable } from '@lumino/disposable';

@@ -19,3 +18,3 @@ import { Message } from '@lumino/messaging';

*/
export declare abstract class Layout implements IIterable<Widget>, IDisposable {
export declare abstract class Layout implements Iterable<Widget>, IDisposable {
/**

@@ -41,14 +40,15 @@ * Construct a new layout.

*/
readonly isDisposed: boolean;
get isDisposed(): boolean;
/**
* Get the parent widget of the layout.
*/
get parent(): Widget | null;
/**
* Set the parent widget of the layout.
*
* #### Notes
* This is set automatically when installing the layout on the parent
* widget. The parent widget should not be set directly by user code.
*/
parent: Widget | null;
* Set the parent widget of the layout.
*
* #### Notes
* This is set automatically when installing the layout on the parent
* widget. The parent widget should not be set directly by user code.
*/
set parent(value: Widget | null);
/**

@@ -63,15 +63,16 @@ * Get the fit policy for the layout.

*/
get fitPolicy(): Layout.FitPolicy;
/**
* Set the fit policy for the layout.
*
* #### Notes
* The fit policy controls the computed size constraints which are
* applied to the parent widget by the layout.
*
* Some layout implementations may ignore the fit policy.
*
* Changing the fit policy will clear the current size constraint
* for the parent widget and then re-fit the parent.
*/
fitPolicy: Layout.FitPolicy;
* Set the fit policy for the layout.
*
* #### Notes
* The fit policy controls the computed size constraints which are
* applied to the parent widget by the layout.
*
* Some layout implementations may ignore the fit policy.
*
* Changing the fit policy will clear the current size constraint
* for the parent widget and then re-fit the parent.
*/
set fitPolicy(value: Layout.FitPolicy);
/**

@@ -85,3 +86,3 @@ * Create an iterator over the widgets in the layout.

*/
abstract iter(): IIterator<Widget>;
abstract [Symbol.iterator](): IterableIterator<Widget>;
/**

@@ -432,3 +433,3 @@ * Remove a widget from the layout.

*/
readonly minWidth: number;
get minWidth(): number;
/**

@@ -440,3 +441,3 @@ * The computed minimum height of the widget.

*/
readonly minHeight: number;
get minHeight(): number;
/**

@@ -448,3 +449,3 @@ * The computed maximum width of the widget.

*/
readonly maxWidth: number;
get maxWidth(): number;
/**

@@ -456,19 +457,19 @@ * The computed maximum height of the widget.

*/
readonly maxHeight: number;
get maxHeight(): number;
/**
* Whether the layout item is disposed.
*/
readonly isDisposed: boolean;
get isDisposed(): boolean;
/**
* Whether the managed widget is hidden.
*/
readonly isHidden: boolean;
get isHidden(): boolean;
/**
* Whether the managed widget is visible.
*/
readonly isVisible: boolean;
get isVisible(): boolean;
/**
* Whether the managed widget is attached.
*/
readonly isAttached: boolean;
get isAttached(): boolean;
/**

@@ -500,2 +501,1 @@ * Update the computed size limits of the managed widget.

}
//# sourceMappingURL=layout.d.ts.map

@@ -31,3 +31,3 @@ import { CommandRegistry } from '@lumino/commands';

*/
readonly aboutToClose: ISignal<this, void>;
get aboutToClose(): ISignal<this, void>;
/**

@@ -45,3 +45,3 @@ * A signal emitted when a new menu is requested by the user.

*/
readonly menuRequested: ISignal<this, 'next' | 'previous'>;
get menuRequested(): ISignal<this, 'next' | 'previous'>;
/**

@@ -61,3 +61,3 @@ * The command registry used by the menu.

*/
readonly parentMenu: Menu | null;
get parentMenu(): Menu | null;
/**

@@ -69,11 +69,11 @@ * The child menu of the menu.

*/
readonly childMenu: Menu | null;
get childMenu(): Menu | null;
/**
* The root menu of the menu hierarchy.
*/
readonly rootMenu: Menu;
get rootMenu(): Menu;
/**
* The leaf menu of the menu hierarchy.
*/
readonly leafMenu: Menu;
get leafMenu(): Menu;
/**

@@ -87,13 +87,14 @@ * The menu content node.

*/
readonly contentNode: HTMLUListElement;
get contentNode(): HTMLUListElement;
/**
* Get the currently active menu item.
*/
get activeItem(): Menu.IItem | null;
/**
* Set the currently active menu item.
*
* #### Notes
* If the item cannot be activated, the item will be set to `null`.
*/
activeItem: Menu.IItem | null;
* Set the currently active menu item.
*
* #### Notes
* If the item cannot be activated, the item will be set to `null`.
*/
set activeItem(value: Menu.IItem | null);
/**

@@ -105,13 +106,14 @@ * Get the index of the currently active menu item.

*/
get activeIndex(): number;
/**
* Set the index of the currently active menu item.
*
* #### Notes
* If the item cannot be activated, the index will be set to `-1`.
*/
activeIndex: number;
* Set the index of the currently active menu item.
*
* #### Notes
* If the item cannot be activated, the index will be set to `-1`.
*/
set activeIndex(value: number);
/**
* A read-only array of the menu items in the menu.
*/
readonly items: ReadonlyArray<Menu.IItem>;
get items(): ReadonlyArray<Menu.IItem>;
/**

@@ -426,3 +428,3 @@ * Activate the next selectable item in the menu.

*/
readonly icon: VirtualElement.IRenderer | undefined | string;
readonly icon: VirtualElement.IRenderer | undefined;
/**

@@ -600,2 +602,1 @@ * The icon class for the menu item.

}
//# sourceMappingURL=menu.d.ts.map

@@ -30,3 +30,3 @@ import { Message } from '@lumino/messaging';

*/
readonly childMenu: Menu | null;
get childMenu(): Menu | null;
/**

@@ -40,13 +40,14 @@ * Get the menu bar content node.

*/
readonly contentNode: HTMLUListElement;
get contentNode(): HTMLUListElement;
/**
* Get the currently active menu.
*/
get activeMenu(): Menu | null;
/**
* Set the currently active menu.
*
* #### Notes
* If the menu does not exist, the menu will be set to `null`.
*/
activeMenu: Menu | null;
* Set the currently active menu.
*
* #### Notes
* If the menu does not exist, the menu will be set to `null`.
*/
set activeMenu(value: Menu | null);
/**

@@ -58,13 +59,14 @@ * Get the index of the currently active menu.

*/
get activeIndex(): number;
/**
* Set the index of the currently active menu.
*
* #### Notes
* If the menu cannot be activated, the index will be set to `-1`.
*/
activeIndex: number;
* Set the index of the currently active menu.
*
* #### Notes
* If the menu cannot be activated, the index will be set to `-1`.
*/
set activeIndex(value: number);
/**
* A read-only array of the menus in the menu bar.
*/
readonly menus: ReadonlyArray<Menu>;
get menus(): ReadonlyArray<Menu>;
/**

@@ -323,2 +325,1 @@ * Open the active menu and activate its first menu item.

}
//# sourceMappingURL=menubar.d.ts.map

@@ -23,3 +23,3 @@ import { PanelLayout } from './panellayout';

*/
readonly widgets: ReadonlyArray<Widget>;
get widgets(): ReadonlyArray<Widget>;
/**

@@ -62,2 +62,1 @@ * Add a widget to the end of the panel.

}
//# sourceMappingURL=panel.d.ts.map

@@ -1,2 +0,1 @@

import { IIterator } from '@lumino/algorithm';
import { Layout } from './layout';

@@ -27,3 +26,3 @@ import { Widget } from './widget';

*/
readonly widgets: ReadonlyArray<Widget>;
get widgets(): ReadonlyArray<Widget>;
/**

@@ -34,3 +33,3 @@ * Create an iterator over the widgets in the layout.

*/
iter(): IIterator<Widget>;
[Symbol.iterator](): IterableIterator<Widget>;
/**

@@ -157,2 +156,1 @@ * Add a widget to the end of the layout.

}
//# sourceMappingURL=panellayout.d.ts.map

@@ -20,3 +20,3 @@ import { Message } from '@lumino/messaging';

*/
readonly thumbMoved: ISignal<this, number>;
get thumbMoved(): ISignal<this, number>;
/**

@@ -28,3 +28,3 @@ * A signal emitted when the user clicks a step button.

*/
readonly stepRequested: ISignal<this, 'decrement' | 'increment'>;
get stepRequested(): ISignal<this, 'decrement' | 'increment'>;
/**

@@ -36,20 +36,22 @@ * A signal emitted when the user clicks the scroll track.

*/
readonly pageRequested: ISignal<this, 'decrement' | 'increment'>;
get pageRequested(): ISignal<this, 'decrement' | 'increment'>;
/**
* Get the orientation of the scroll bar.
*/
get orientation(): ScrollBar.Orientation;
/**
* Set the orientation of the scroll bar.
*/
orientation: ScrollBar.Orientation;
* Set the orientation of the scroll bar.
*/
set orientation(value: ScrollBar.Orientation);
/**
* Get the current value of the scroll bar.
*/
get value(): number;
/**
* Set the current value of the scroll bar.
*
* #### Notes
* The value will be clamped to the range `[0, maximum]`.
*/
value: number;
* Set the current value of the scroll bar.
*
* #### Notes
* The value will be clamped to the range `[0, maximum]`.
*/
set value(value: number);
/**

@@ -63,19 +65,21 @@ * Get the page size of the scroll bar.

*/
get page(): number;
/**
* Set the page size of the scroll bar.
*
* #### Notes
* The page size will be clamped to the range `[0, Infinity]`.
*/
page: number;
* Set the page size of the scroll bar.
*
* #### Notes
* The page size will be clamped to the range `[0, Infinity]`.
*/
set page(value: number);
/**
* Get the maximum value of the scroll bar.
*/
get maximum(): number;
/**
* Set the maximum value of the scroll bar.
*
* #### Notes
* The max size will be clamped to the range `[0, Infinity]`.
*/
maximum: number;
* Set the maximum value of the scroll bar.
*
* #### Notes
* The max size will be clamped to the range `[0, Infinity]`.
*/
set maximum(value: number);
/**

@@ -87,3 +91,3 @@ * The scroll bar decrement button node.

*/
readonly decrementNode: HTMLDivElement;
get decrementNode(): HTMLDivElement;
/**

@@ -95,3 +99,3 @@ * The scroll bar increment button node.

*/
readonly incrementNode: HTMLDivElement;
get incrementNode(): HTMLDivElement;
/**

@@ -103,3 +107,3 @@ * The scroll bar track node.

*/
readonly trackNode: HTMLDivElement;
get trackNode(): HTMLDivElement;
/**

@@ -111,3 +115,3 @@ * The scroll bar thumb node.

*/
readonly thumbNode: HTMLDivElement;
get thumbNode(): HTMLDivElement;
/**

@@ -213,2 +217,1 @@ * Handle the DOM events for the scroll bar.

}
//# sourceMappingURL=scrollbar.d.ts.map

@@ -1,2 +0,1 @@

import { IIterator } from '@lumino/algorithm';
import { Layout } from './layout';

@@ -19,11 +18,12 @@ import { Widget } from './widget';

*/
get widget(): Widget | null;
/**
* Set the child widget for the layout.
*
* #### Notes
* Setting the child widget will cause the old child widget to be
* automatically disposed. If that is not desired, set the parent
* of the old child to `null` before assigning a new child.
*/
widget: Widget | null;
* Set the child widget for the layout.
*
* #### Notes
* Setting the child widget will cause the old child widget to be
* automatically disposed. If that is not desired, set the parent
* of the old child to `null` before assigning a new child.
*/
set widget(widget: Widget | null);
/**

@@ -34,3 +34,3 @@ * Create an iterator over the widgets in the layout.

*/
iter(): IIterator<Widget>;
[Symbol.iterator](): IterableIterator<Widget>;
/**

@@ -92,2 +92,1 @@ * Remove a widget from the layout.

}
//# sourceMappingURL=singletonlayout.d.ts.map

@@ -25,6 +25,7 @@ import { Message } from '@lumino/messaging';

*/
get orientation(): SplitLayout.Orientation;
/**
* Set the layout orientation for the split layout.
*/
orientation: SplitLayout.Orientation;
* Set the layout orientation for the split layout.
*/
set orientation(value: SplitLayout.Orientation);
/**

@@ -39,23 +40,25 @@ * Get the content alignment for the split layout.

*/
get alignment(): SplitLayout.Alignment;
/**
* Set the content alignment for the split layout.
*
* #### Notes
* This is the alignment of the widgets in the layout direction.
*
* The alignment has no effect if the widgets can expand to fill the
* entire split layout.
*/
alignment: SplitLayout.Alignment;
* Set the content alignment for the split layout.
*
* #### Notes
* This is the alignment of the widgets in the layout direction.
*
* The alignment has no effect if the widgets can expand to fill the
* entire split layout.
*/
set alignment(value: SplitLayout.Alignment);
/**
* Get the inter-element spacing for the split layout.
*/
get spacing(): number;
/**
* Set the inter-element spacing for the split layout.
*/
spacing: number;
* Set the inter-element spacing for the split layout.
*/
set spacing(value: number);
/**
* A read-only array of the split handles in the layout.
*/
readonly handles: ReadonlyArray<HTMLDivElement>;
get handles(): ReadonlyArray<HTMLDivElement>;
/**

@@ -276,2 +279,1 @@ * Get the absolute sizes of the widgets in the layout.

}
//# sourceMappingURL=splitlayout.d.ts.map

@@ -26,6 +26,7 @@ import { Message } from '@lumino/messaging';

*/
get orientation(): SplitPanel.Orientation;
/**
* Set the layout orientation for the split panel.
*/
orientation: SplitPanel.Orientation;
* Set the layout orientation for the split panel.
*/
set orientation(value: SplitPanel.Orientation);
/**

@@ -40,31 +41,33 @@ * Get the content alignment for the split panel.

*/
get alignment(): SplitPanel.Alignment;
/**
* Set the content alignment for the split panel.
*
* #### Notes
* This is the alignment of the widgets in the layout direction.
*
* The alignment has no effect if the widgets can expand to fill the
* entire split panel.
*/
alignment: SplitPanel.Alignment;
* Set the content alignment for the split panel.
*
* #### Notes
* This is the alignment of the widgets in the layout direction.
*
* The alignment has no effect if the widgets can expand to fill the
* entire split panel.
*/
set alignment(value: SplitPanel.Alignment);
/**
* Get the inter-element spacing for the split panel.
*/
get spacing(): number;
/**
* Set the inter-element spacing for the split panel.
*/
spacing: number;
* Set the inter-element spacing for the split panel.
*/
set spacing(value: number);
/**
* The renderer used by the split panel.
*/
readonly renderer: SplitPanel.IRenderer;
get renderer(): SplitPanel.IRenderer;
/**
* A signal emitted when a split handle has moved.
*/
readonly handleMoved: ISignal<this, void>;
get handleMoved(): ISignal<this, void>;
/**
* A read-only array of the split handles in the panel.
*/
readonly handles: ReadonlyArray<HTMLDivElement>;
get handles(): ReadonlyArray<HTMLDivElement>;
/**

@@ -127,13 +130,13 @@ * Get the relative sizes of the widgets in the panel.

/**
* Handle the `'mousedown'` event for the split panel.
* Handle the `'pointerdown'` event for the split panel.
*/
private _evtMouseDown;
private _evtPointerDown;
/**
* Handle the `'mousemove'` event for the split panel.
* Handle the `'pointermove'` event for the split panel.
*/
private _evtMouseMove;
private _evtPointerMove;
/**
* Handle the `'mouseup'` event for the split panel.
* Handle the `'pointerup'` event for the split panel.
*/
private _evtMouseUp;
private _evtPointerUp;
/**

@@ -231,2 +234,1 @@ * Release the mouse grab for the split panel.

}
//# sourceMappingURL=splitpanel.d.ts.map

@@ -20,10 +20,11 @@ import { Message } from '@lumino/messaging';

*/
get hiddenMode(): Widget.HiddenMode;
/**
* Set the method for hiding widgets.
*
* #### Notes
* If there is only one child widget, `Display` hiding mode will be used
* regardless of this setting.
*/
hiddenMode: Widget.HiddenMode;
* Set the method for hiding widgets.
*
* #### Notes
* If there is only one child widget, `Display` hiding mode will be used
* regardless of this setting.
*/
set hiddenMode(v: Widget.HiddenMode);
/**

@@ -127,2 +128,1 @@ * Dispose of the resources held by the layout.

}
//# sourceMappingURL=stackedlayout.d.ts.map

@@ -25,14 +25,15 @@ import { ISignal } from '@lumino/signaling';

*/
get hiddenMode(): Widget.HiddenMode;
/**
* Set the method for hiding widgets.
*
* #### Notes
* If there is only one child widget, `Display` hiding mode will be used
* regardless of this setting.
*/
hiddenMode: Widget.HiddenMode;
* Set the method for hiding widgets.
*
* #### Notes
* If there is only one child widget, `Display` hiding mode will be used
* regardless of this setting.
*/
set hiddenMode(v: Widget.HiddenMode);
/**
* A signal emitted when a widget is removed from a stacked panel.
*/
readonly widgetRemoved: ISignal<this, Widget>;
get widgetRemoved(): ISignal<this, Widget>;
/**

@@ -64,2 +65,1 @@ * A message handler invoked on a `'child-added'` message.

}
//# sourceMappingURL=stackedpanel.d.ts.map

@@ -36,3 +36,3 @@ import { Message } from '@lumino/messaging';

*/
readonly currentChanged: ISignal<this, TabBar.ICurrentChangedArgs<T>>;
get currentChanged(): ISignal<this, TabBar.ICurrentChangedArgs<T>>;
/**

@@ -46,3 +46,3 @@ * A signal emitted when a tab is moved by the user.

*/
readonly tabMoved: ISignal<this, TabBar.ITabMovedArgs<T>>;
get tabMoved(): ISignal<this, TabBar.ITabMovedArgs<T>>;
/**

@@ -57,7 +57,7 @@ * A signal emitted when a tab is clicked by the user.

*/
readonly tabActivateRequested: ISignal<this, TabBar.ITabActivateRequestedArgs<T>>;
get tabActivateRequested(): ISignal<this, TabBar.ITabActivateRequestedArgs<T>>;
/**
* A signal emitted when the tab bar add button is clicked.
*/
readonly addRequested: ISignal<this, void>;
get addRequested(): ISignal<this, void>;
/**

@@ -69,3 +69,3 @@ * A signal emitted when a tab close icon is clicked.

*/
readonly tabCloseRequested: ISignal<this, TabBar.ITabCloseRequestedArgs<T>>;
get tabCloseRequested(): ISignal<this, TabBar.ITabCloseRequestedArgs<T>>;
/**

@@ -83,3 +83,3 @@ * A signal emitted when a tab is dragged beyond the detach threshold.

*/
readonly tabDetachRequested: ISignal<this, TabBar.ITabDetachRequestedArgs<T>>;
get tabDetachRequested(): ISignal<this, TabBar.ITabDetachRequestedArgs<T>>;
/**

@@ -94,3 +94,3 @@ * The renderer used by the tab bar.

*/
readonly document: Document | ShadowRoot;
get document(): Document | ShadowRoot;
/**

@@ -107,7 +107,8 @@ * Whether the tabs are movable by the user.

*/
get titlesEditable(): boolean;
/**
* Set whether titles can be user edited.
*
*/
titlesEditable: boolean;
* Set whether titles can be user edited.
*
*/
set titlesEditable(value: boolean);
/**

@@ -134,9 +135,10 @@ * Whether a tab can be deselected by the user.

*/
get currentTitle(): Title<T> | null;
/**
* Set the currently selected title.
*
* #### Notes
* If the title does not exist, the title will be set to `null`.
*/
currentTitle: Title<T> | null;
* Set the currently selected title.
*
* #### Notes
* If the title does not exist, the title will be set to `null`.
*/
set currentTitle(value: Title<T> | null);
/**

@@ -148,16 +150,18 @@ * Get the index of the currently selected tab.

*/
get currentIndex(): number;
/**
* Set the index of the currently selected tab.
*
* #### Notes
* If the value is out of range, the index will be set to `-1`.
*/
currentIndex: number;
* Set the index of the currently selected tab.
*
* #### Notes
* If the value is out of range, the index will be set to `-1`.
*/
set currentIndex(value: number);
/**
* Get the name of the tab bar.
*/
get name(): string;
/**
* Set the name of the tab bar.
*/
name: string;
* Set the name of the tab bar.
*/
set name(value: string);
/**

@@ -169,20 +173,22 @@ * Get the orientation of the tab bar.

*/
get orientation(): TabBar.Orientation;
/**
* Set the orientation of the tab bar.
*
* #### Notes
* This controls whether the tabs are arranged in a row or column.
*/
orientation: TabBar.Orientation;
* Set the orientation of the tab bar.
*
* #### Notes
* This controls whether the tabs are arranged in a row or column.
*/
set orientation(value: TabBar.Orientation);
/**
* Whether the add button is enabled.
*/
get addButtonEnabled(): boolean;
/**
* Set whether the add button is enabled.
*/
addButtonEnabled: boolean;
* Set whether the add button is enabled.
*/
set addButtonEnabled(value: boolean);
/**
* A read-only array of the titles in the tab bar.
*/
readonly titles: ReadonlyArray<Title<T>>;
get titles(): ReadonlyArray<Title<T>>;
/**

@@ -196,3 +202,3 @@ * The tab bar content node.

*/
readonly contentNode: HTMLUListElement;
get contentNode(): HTMLUListElement;
/**

@@ -206,3 +212,3 @@ * The tab bar add button node.

*/
readonly addButtonNode: HTMLDivElement;
get addButtonNode(): HTMLDivElement;
/**

@@ -299,13 +305,13 @@ * Add a tab to the end of the tab bar.

/**
* Handle the `'mousedown'` event for the tab bar.
* Handle the `'pointerdown'` event for the tab bar.
*/
private _evtMouseDown;
private _evtPointerDown;
/**
* Handle the `'mousemove'` event for the tab bar.
* Handle the `'pointermove'` event for the tab bar.
*/
private _evtMouseMove;
private _evtPointerMove;
/**
* Handle the `'mouseup'` event for the document.
* Handle the `'pointerup'` event for the document.
*/
private _evtMouseUp;
private _evtPointerUp;
/**

@@ -702,2 +708,1 @@ * Release the mouse and restore the non-dragged tab positions.

}
//# sourceMappingURL=tabbar.d.ts.map

@@ -34,3 +34,3 @@ import { ISignal } from '@lumino/signaling';

*/
readonly currentChanged: ISignal<this, TabPanel.ICurrentChangedArgs>;
get currentChanged(): ISignal<this, TabPanel.ICurrentChangedArgs>;
/**

@@ -42,9 +42,10 @@ * Get the index of the currently selected tab.

*/
get currentIndex(): number;
/**
* Set the index of the currently selected tab.
*
* #### Notes
* If the index is out of range, it will be set to `-1`.
*/
currentIndex: number;
* Set the index of the currently selected tab.
*
* #### Notes
* If the index is out of range, it will be set to `-1`.
*/
set currentIndex(value: number);
/**

@@ -56,9 +57,10 @@ * Get the currently selected widget.

*/
get currentWidget(): Widget | null;
/**
* Set the currently selected widget.
*
* #### Notes
* If the widget is not in the panel, it will be set to `null`.
*/
currentWidget: Widget | null;
* Set the currently selected widget.
*
* #### Notes
* If the widget is not in the panel, it will be set to `null`.
*/
set currentWidget(value: Widget | null);
/**

@@ -70,9 +72,10 @@ * Get the whether the tabs are movable by the user.

*/
get tabsMovable(): boolean;
/**
* Set the whether the tabs are movable by the user.
*
* #### Notes
* Tabs can always be moved programmatically.
*/
tabsMovable: boolean;
* Set the whether the tabs are movable by the user.
*
* #### Notes
* Tabs can always be moved programmatically.
*/
set tabsMovable(value: boolean);
/**

@@ -82,7 +85,8 @@ * Get the whether the add button is enabled.

*/
get addButtonEnabled(): boolean;
/**
* Set the whether the add button is enabled.
*
*/
addButtonEnabled: boolean;
* Set the whether the add button is enabled.
*
*/
set addButtonEnabled(value: boolean);
/**

@@ -94,9 +98,10 @@ * Get the tab placement for the tab panel.

*/
get tabPlacement(): TabPanel.TabPlacement;
/**
* Set the tab placement for the tab panel.
*
* #### Notes
* This controls the position of the tab bar relative to the content.
*/
tabPlacement: TabPanel.TabPlacement;
* Set the tab placement for the tab panel.
*
* #### Notes
* This controls the position of the tab bar relative to the content.
*/
set tabPlacement(value: TabPanel.TabPlacement);
/**

@@ -106,3 +111,3 @@ * A signal emitted when the add button on a tab bar is clicked.

*/
readonly addRequested: ISignal<this, TabBar<Widget>>;
get addRequested(): ISignal<this, TabBar<Widget>>;
/**

@@ -125,3 +130,3 @@ * The tab bar used by the tab panel.

*/
readonly widgets: ReadonlyArray<Widget>;
get widgets(): ReadonlyArray<Widget>;
/**

@@ -258,2 +263,1 @@ * Add a widget to the end of the tab panel.

}
//# sourceMappingURL=tabpanel.d.ts.map

@@ -24,3 +24,3 @@ import { IDisposable } from '@lumino/disposable';

*/
readonly changed: ISignal<this, void>;
get changed(): ISignal<this, void>;
/**

@@ -36,6 +36,7 @@ * The object which owns the title.

*/
get label(): string;
/**
* Set the label for the title.
*/
label: string;
* Set the label for the title.
*/
set label(value: string);
/**

@@ -47,6 +48,7 @@ * Get the mnemonic index for the title.

*/
get mnemonic(): number;
/**
* Set the mnemonic index for the title.
*/
mnemonic: number;
* Set the mnemonic index for the title.
*/
set mnemonic(value: number);
/**

@@ -57,17 +59,12 @@ * Get the icon renderer for the title.

* The default value is undefined.
*/
get icon(): VirtualElement.IRenderer | undefined;
/**
* Set the icon renderer for the title.
*
* DEPRECATED: if set to a string value, the .icon field will function as
* an alias for the .iconClass field, for backwards compatibility
* #### Notes
* A renderer is an object that supplies a render and unrender function.
*/
set icon(value: VirtualElement.IRenderer | undefined);
/**
* Set the icon renderer for the title.
*
* #### Notes
* A renderer is an object that supplies a render and unrender function.
*
* DEPRECATED: if set to a string value, the .icon field will function as
* an alias for the .iconClass field, for backwards compatibility
*/
icon: VirtualElement.IRenderer | undefined | string;
/**
* Get the icon class name for the title.

@@ -78,9 +75,10 @@ *

*/
get iconClass(): string;
/**
* Set the icon class name for the title.
*
* #### Notes
* Multiple class names can be separated with whitespace.
*/
iconClass: string;
* Set the icon class name for the title.
*
* #### Notes
* Multiple class names can be separated with whitespace.
*/
set iconClass(value: string);
/**

@@ -92,17 +90,11 @@ * Get the icon label for the title.

*/
get iconLabel(): string;
/**
* Set the icon label for the title.
*
* #### Notes
* Multiple class names can be separated with whitespace.
*/
iconLabel: string;
/**
* @deprecated Use `icon` instead.
* Set the icon label for the title.
*
* #### Notes
* Multiple class names can be separated with whitespace.
*/
set iconLabel(value: string);
/**
* @deprecated Use `icon` instead.
*/
iconRenderer: VirtualElement.IRenderer | undefined;
/**
* Get the caption for the title.

@@ -113,6 +105,7 @@ *

*/
get caption(): string;
/**
* Set the caption for the title.
*/
caption: string;
* Set the caption for the title.
*/
set caption(value: string);
/**

@@ -124,9 +117,10 @@ * Get the extra class name for the title.

*/
get className(): string;
/**
* Set the extra class name for the title.
*
* #### Notes
* Multiple class names can be separated with whitespace.
*/
className: string;
* Set the extra class name for the title.
*
* #### Notes
* Multiple class names can be separated with whitespace.
*/
set className(value: string);
/**

@@ -138,9 +132,10 @@ * Get the closable state for the title.

*/
get closable(): boolean;
/**
* Set the closable state for the title.
*
* #### Notes
* This controls the presence of a close icon when applicable.
*/
closable: boolean;
* Set the closable state for the title.
*
* #### Notes
* This controls the presence of a close icon when applicable.
*/
set closable(value: boolean);
/**

@@ -152,13 +147,14 @@ * Get the dataset for the title.

*/
get dataset(): Title.Dataset;
/**
* Set the dataset for the title.
*
* #### Notes
* This controls the data attributes when applicable.
*/
dataset: Title.Dataset;
* Set the dataset for the title.
*
* #### Notes
* This controls the data attributes when applicable.
*/
set dataset(value: Title.Dataset);
/**
* Test whether the title has been disposed.
*/
readonly isDisposed: boolean;
get isDisposed(): boolean;
/**

@@ -211,7 +207,4 @@ * Dispose of the resources held by the title.

* The icon renderer for the title.
*
* DEPRECATED: if set to a string value, the .icon field will function as
* an alias for the .iconClass field, for backwards compatibility
*/
icon?: VirtualElement.IRenderer | string;
icon?: VirtualElement.IRenderer;
/**

@@ -226,6 +219,2 @@ * The icon class name for the title.

/**
* @deprecated Use `icon` instead.
*/
iconRenderer?: VirtualElement.IRenderer;
/**
* The caption for the title.

@@ -248,2 +237,1 @@ */

}
//# sourceMappingURL=title.d.ts.map

@@ -8,2 +8,1 @@ export declare namespace Utils {

export default Utils;
//# sourceMappingURL=utils.d.ts.map

@@ -1,2 +0,1 @@

import { IIterator } from '@lumino/algorithm';
import { IObservableDisposable } from '@lumino/disposable';

@@ -34,3 +33,3 @@ import { ConflatableMessage, IMessageHandler, Message } from '@lumino/messaging';

*/
readonly disposed: ISignal<this, void>;
get disposed(): ISignal<this, void>;
/**

@@ -43,11 +42,11 @@ * Get the DOM node owned by the widget.

*/
readonly isDisposed: boolean;
get isDisposed(): boolean;
/**
* Test whether the widget's node is attached to the DOM.
*/
readonly isAttached: boolean;
get isAttached(): boolean;
/**
* Test whether the widget is explicitly hidden.
*/
readonly isHidden: boolean;
get isHidden(): boolean;
/**

@@ -60,3 +59,3 @@ * Test whether the widget is visible.

*/
readonly isVisible: boolean;
get isVisible(): boolean;
/**

@@ -73,49 +72,53 @@ * The title object for the widget.

*/
readonly title: Title<Widget>;
get title(): Title<Widget>;
/**
* Get the id of the widget's DOM node.
*/
get id(): string;
/**
* Set the id of the widget's DOM node.
*/
id: string;
* Set the id of the widget's DOM node.
*/
set id(value: string);
/**
* The dataset for the widget's DOM node.
*/
readonly dataset: DOMStringMap;
get dataset(): DOMStringMap;
/**
* Get the method for hiding the widget.
*/
get hiddenMode(): Widget.HiddenMode;
/**
* Set the method for hiding the widget.
*/
hiddenMode: Widget.HiddenMode;
* Set the method for hiding the widget.
*/
set hiddenMode(value: Widget.HiddenMode);
/**
* Get the parent of the widget.
*/
get parent(): Widget | null;
/**
* Set the parent of the widget.
*
* #### Notes
* Children are typically added to a widget by using a layout, which
* means user code will not normally set the parent widget directly.
*
* The widget will be automatically removed from its old parent.
*
* This is a no-op if there is no effective parent change.
*/
parent: Widget | null;
* Set the parent of the widget.
*
* #### Notes
* Children are typically added to a widget by using a layout, which
* means user code will not normally set the parent widget directly.
*
* The widget will be automatically removed from its old parent.
*
* This is a no-op if there is no effective parent change.
*/
set parent(value: Widget | null);
/**
* Get the layout for the widget.
*/
get layout(): Layout | null;
/**
* Set the layout for the widget.
*
* #### Notes
* The layout is single-use only. It cannot be changed after the
* first assignment.
*
* The layout is disposed automatically when the widget is disposed.
*/
layout: Layout | null;
* Set the layout for the widget.
*
* #### Notes
* The layout is single-use only. It cannot be changed after the
* first assignment.
*
* The layout is disposed automatically when the widget is disposed.
*/
set layout(value: Layout | null);
/**

@@ -131,3 +134,3 @@ * Create an iterator over the widget's children.

*/
children(): IIterator<Widget>;
children(): IterableIterator<Widget>;
/**

@@ -669,2 +672,1 @@ * Test whether a widget is a descendant of this widget.

}
//# sourceMappingURL=widget.d.ts.map

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc