@jupyterlab/filebrowser
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -52,2 +52,7 @@ import { Contents } from '@jupyterlab/services'; | ||
/** | ||
* Whether to sort notebooks above other files | ||
*/ | ||
get sortNotebooksFirst(): boolean; | ||
set sortNotebooksFirst(value: boolean); | ||
/** | ||
* Create an iterator over the listing's selected items. | ||
@@ -162,2 +167,3 @@ * | ||
private _showFileCheckboxes; | ||
private _sortNotebooksFirst; | ||
} | ||
@@ -164,0 +170,0 @@ /** |
@@ -52,2 +52,3 @@ // Copyright (c) Jupyter Development Team. | ||
this._showFileCheckboxes = false; | ||
this._sortNotebooksFirst = false; | ||
this.addClass(FILE_BROWSER_CLASS); | ||
@@ -148,2 +149,17 @@ this.toolbar.addClass(TOOLBAR_CLASS); | ||
/** | ||
* Whether to sort notebooks above other files | ||
*/ | ||
get sortNotebooksFirst() { | ||
return this._sortNotebooksFirst; | ||
} | ||
set sortNotebooksFirst(value) { | ||
if (this.listing.setNotebooksFirstSorting) { | ||
this.listing.setNotebooksFirstSorting(value); | ||
this._sortNotebooksFirst = value; | ||
} | ||
else { | ||
console.warn('Listing does not support sorting notebooks first'); | ||
} | ||
} | ||
/** | ||
* Create an iterator over the listing's selected items. | ||
@@ -150,0 +166,0 @@ * |
@@ -190,2 +190,7 @@ import { DocumentRegistry } from '@jupyterlab/docregistry'; | ||
/** | ||
* Update the setting to sort notebooks above files. | ||
* This sorts the items again if the internal value is modified. | ||
*/ | ||
setNotebooksFirstSorting(isEnabled: boolean): void; | ||
/** | ||
* Would this click (or other event type) hit the checkbox by default? | ||
@@ -356,2 +361,3 @@ */ | ||
private _hiddenColumns; | ||
private _sortNotebooksFirst; | ||
private _focusIndex; | ||
@@ -358,0 +364,0 @@ } |
{ | ||
"name": "@jupyterlab/filebrowser", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "JupyterLab - FileBrowser Widget", | ||
@@ -45,11 +45,11 @@ "homepage": "https://github.com/jupyterlab/jupyterlab", | ||
"dependencies": { | ||
"@jupyterlab/apputils": "^4.0.0", | ||
"@jupyterlab/coreutils": "^6.0.0", | ||
"@jupyterlab/docmanager": "^4.0.0", | ||
"@jupyterlab/docregistry": "^4.0.0", | ||
"@jupyterlab/services": "^7.0.0", | ||
"@jupyterlab/statedb": "^4.0.0", | ||
"@jupyterlab/statusbar": "^4.0.0", | ||
"@jupyterlab/translation": "^4.0.0", | ||
"@jupyterlab/ui-components": "^4.0.0", | ||
"@jupyterlab/apputils": "^4.1.1", | ||
"@jupyterlab/coreutils": "^6.0.1", | ||
"@jupyterlab/docmanager": "^4.0.1", | ||
"@jupyterlab/docregistry": "^4.0.1", | ||
"@jupyterlab/services": "^7.0.1", | ||
"@jupyterlab/statedb": "^4.0.1", | ||
"@jupyterlab/statusbar": "^4.0.1", | ||
"@jupyterlab/translation": "^4.0.1", | ||
"@jupyterlab/ui-components": "^4.0.1", | ||
"@lumino/algorithm": "^2.0.0", | ||
@@ -68,3 +68,3 @@ "@lumino/coreutils": "^2.1.1", | ||
"devDependencies": { | ||
"@jupyterlab/testing": "^4.0.0", | ||
"@jupyterlab/testing": "^4.0.1", | ||
"@types/jest": "^29.2.0", | ||
@@ -71,0 +71,0 @@ "jest": "^29.2.0", |
@@ -174,2 +174,18 @@ // Copyright (c) Jupyter Development Team. | ||
/** | ||
* Whether to sort notebooks above other files | ||
*/ | ||
get sortNotebooksFirst(): boolean { | ||
return this._sortNotebooksFirst; | ||
} | ||
set sortNotebooksFirst(value: boolean) { | ||
if (this.listing.setNotebooksFirstSorting) { | ||
this.listing.setNotebooksFirstSorting(value); | ||
this._sortNotebooksFirst = value; | ||
} else { | ||
console.warn('Listing does not support sorting notebooks first'); | ||
} | ||
} | ||
/** | ||
* Create an iterator over the listing's selected items. | ||
@@ -394,2 +410,3 @@ * | ||
private _showFileCheckboxes: boolean = false; | ||
private _sortNotebooksFirst: boolean = false; | ||
} | ||
@@ -396,0 +413,0 @@ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
469721
10795
9
51
+ Addeddomutils@3.1.0(transitive)
+ Addedyjs@13.6.20(transitive)
- Removeddomutils@3.2.1(transitive)
- Removedyjs@13.6.21(transitive)
Updated@jupyterlab/apputils@^4.1.1
Updated@jupyterlab/coreutils@^6.0.1
Updated@jupyterlab/services@^7.0.1
Updated@jupyterlab/statedb@^4.0.1
Updated@jupyterlab/statusbar@^4.0.1