jupytergis-lab 0.9.0__py3-none-any.whl → 0.9.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- jupytergis_lab/_version.py +1 -1
- {jupytergis_lab-0.9.0.data → jupytergis_lab-0.9.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/package.json +4 -4
- jupytergis_lab-0.9.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/484.03e2847cc3cf21c046f0.js +1 -0
- jupytergis_lab-0.9.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/remoteEntry.d8f739f5491034de0c34.js → jupytergis_lab-0.9.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/remoteEntry.057367ee9baccd8bc582.js +1 -1
- {jupytergis_lab-0.9.0.data → jupytergis_lab-0.9.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/third-party-licenses.json +1 -1
- {jupytergis_lab-0.9.0.dist-info → jupytergis_lab-0.9.1.dist-info}/METADATA +1 -1
- jupytergis_lab-0.9.1.dist-info/RECORD +21 -0
- jupytergis_lab-0.9.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/484.cafedd5be75f2da64326.js +0 -1
- jupytergis_lab-0.9.0.dist-info/RECORD +0 -21
- {jupytergis_lab-0.9.0.data → jupytergis_lab-0.9.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/install.json +0 -0
- {jupytergis_lab-0.9.0.data → jupytergis_lab-0.9.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/234.8ab0931c15a13e5d92fd.js +0 -0
- {jupytergis_lab-0.9.0.data → jupytergis_lab-0.9.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/432.43c3c6b1178c1ea13d41.js +0 -0
- {jupytergis_lab-0.9.0.data → jupytergis_lab-0.9.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/style.js +0 -0
- {jupytergis_lab-0.9.0.dist-info → jupytergis_lab-0.9.1.dist-info}/WHEEL +0 -0
- {jupytergis_lab-0.9.0.dist-info → jupytergis_lab-0.9.1.dist-info}/licenses/LICENSE +0 -0
jupytergis_lab/_version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupytergis/jupytergis-lab",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "JupyterGIS Lab extension.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@jupyter/collaborative-drive": "^3.0.0",
|
|
56
|
-
"@jupytergis/base": "^0.9.
|
|
57
|
-
"@jupytergis/schema": "^0.9.
|
|
56
|
+
"@jupytergis/base": "^0.9.1",
|
|
57
|
+
"@jupytergis/schema": "^0.9.1",
|
|
58
58
|
"@jupyterlab/application": "^4.3.0",
|
|
59
59
|
"@jupyterlab/apputils": "^4.3.0",
|
|
60
60
|
"@jupyterlab/completer": "^4.3.0",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
"_build": {
|
|
127
|
-
"load": "static/remoteEntry.
|
|
127
|
+
"load": "static/remoteEntry.057367ee9baccd8bc582.js",
|
|
128
128
|
"extension": "./extension",
|
|
129
129
|
"style": "./style"
|
|
130
130
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_jupytergis_jupytergis_lab=self.webpackChunk_jupytergis_jupytergis_lab||[]).push([[484],{3484:(e,t,n)=>{n.r(t),n.d(t,{default:()=>v});var o=n(8075),a=n(7737),s=n(2597),r=n(2406),d=n(389),i=n(1593),m=n(5256),l=n(6903),c=n(9715),u=n(5163),g=n(2310),p=n(8531),y=n(8361),I=n(6230),h=n(9173);class M extends h.JupyterYModel{}class b extends m.Panel{constructor(e){super(),this._buildWidget=e=>{const{commands:t,model:n,externalCommands:a,tracker:s,formSchemaRegistry:r,state:d,annotationModel:i}=e,m=new o.JupyterGISPanel({model:n,commandRegistry:t,formSchemaRegistry:r,state:d,annotationModel:i});let l;n.filePath&&(l=new o.ToolbarWidget({commands:t,model:n,externalCommands:(null==a?void 0:a.getCommands())||[]})),this._jgisWidget=new o.JupyterGISOutputWidget({model:n,content:m,toolbar:l}),this.addWidget(this._jgisWidget),null==s||s.add(this._jgisWidget)};const{model:t}=e;this.addClass("jupytergis-notebook-widget"),this._buildWidget(e),t.sharedModel.changed.connect((t,n)=>{n.stateChange&&n.stateChange.forEach(t=>{var n;"path"===t.name&&(null===(n=this.layout)||void 0===n||n.removeWidget(this._jgisWidget),this._jgisWidget.dispose(),this._buildWidget(e))})})}get jgisWidget(){return this._jgisWidget}}const j={id:"jupytergis:yjswidget-plugin",autoStart:!0,optional:[a.IJGISExternalCommandRegistryToken,a.IJupyterGISDocTracker,h.IJupyterYWidgetManager,l.ICollaborativeDrive,d.IStateDB,a.IJGISFormSchemaRegistryToken,a.IAnnotationToken,y.ISettingRegistry],activate:(e,t,n,o,s,r,d,i,l)=>{o?o.registerWidget("@jupytergis:widget",class extends M{async initialize(t){const{path:n,format:o,contentType:r}=t,d=o;if(!s)throw(0,c.showErrorMessage)("Error using the JupyterGIS Python API","You cannot use the JupyterGIS Python API without a collaborative drive. You need to install a package providing collaboration features (e.g. jupyter-collaboration)."),new Error("Failed to create the YDoc without a collaborative drive");let i="";const m=e.shell.currentWidget;(m instanceof p.NotebookPanel||m instanceof u.ConsolePanel)&&(i=m.sessionContext.path);let y="";if(n){y=g.PathExt.join(g.PathExt.dirname(i),n);try{await e.serviceManager.contents.get(y)}catch(t){await e.serviceManager.contents.save(y,{content:btoa("{}"),format:"base64"})}}else y=g.PathExt.join(g.PathExt.dirname(i),"unsaved_project");const I=s.sharedModelFactory.createNew({path:y,format:d,contentType:r,collaborative:!0});this.jupyterGISModel=new a.JupyterGISModel({sharedModel:I,settingRegistry:l}),this.jupyterGISModel.contentsManager=e.serviceManager.contents,this.jupyterGISModel.filePath=y,this.ydoc=this.jupyterGISModel.sharedModel.ydoc,this.sharedModel=new h.JupyterYDoc(t,this.ydoc)}},class{constructor(o,a){this.yModel=o,this.node=a;const s=new b({commands:e.commands,model:o.jupyterGISModel,externalCommands:t,tracker:n,annotationModel:i,state:d,formSchemaRegistry:r});this._jgisWidget=s.jgisWidget,I.MessageLoop.sendMessage(s,m.Widget.Msg.BeforeAttach),a.appendChild(s.node),I.MessageLoop.sendMessage(s,m.Widget.Msg.AfterAttach)}dispose(){this._jgisWidget.dispose()}}):console.error("Missing IJupyterYWidgetManager token!")}},v=[{id:"jupytergis:lab:main-menu",autoStart:!0,requires:[a.IJupyterGISDocTracker,a.IJGISFormSchemaRegistryToken,a.IJGISLayerBrowserRegistryToken,d.IStateDB],optional:[r.IMainMenu,i.ITranslator,s.ICompletionProviderManager],activate:(e,t,n,s,r,d,l,c)=>{console.log("jupytergis:lab:main-menu is activated!"),l=null!=l?l:i.nullTranslator;(0,o.createDefaultLayerRegistry)(s),o.GlobalStateDbManager.getInstance().initialize(r),(0,o.addCommands)(e,t,l,n,s,r,c),e.contextMenu.addItem({selector:".jp-gis-source.jp-gis-sourceUnused",rank:1,command:o.CommandIDs.removeSource}),e.contextMenu.addItem({selector:".jp-gis-source",rank:1,command:o.CommandIDs.renameSource}),e.contextMenu.addItem({command:o.CommandIDs.symbology,selector:".jp-gis-layerItem",rank:1}),e.contextMenu.addItem({type:"separator",selector:".jp-gis-layerPanel",rank:1}),e.contextMenu.addItem({command:o.CommandIDs.removeLayer,selector:".jp-gis-layerItem",rank:2}),e.contextMenu.addItem({command:o.CommandIDs.renameLayer,selector:".jp-gis-layerItem",rank:2}),e.contextMenu.addItem({command:o.CommandIDs.zoomToLayer,selector:".jp-gis-layerItem",rank:2});const u=new m.Menu({commands:e.commands});u.title.label=l.load("jupyterlab").__("Download"),u.id="jp-gis-contextmenu-download",u.addItem({command:o.CommandIDs.downloadGeoJSON}),e.contextMenu.addItem({type:"submenu",selector:".jp-gis-layerItem",rank:2,submenu:u});const g=new m.Menu({commands:e.commands});g.title.label=l.load("jupyterlab").__("Processing"),g.id="jp-gis-contextmenu-processing";for(const e of a.ProcessingMerge)g.addItem({command:e.name});e.contextMenu.addItem({type:"submenu",selector:".jp-gis-layerItem",rank:2,submenu:g});const p=new m.Menu({commands:e.commands});p.title.label=l.load("jupyterlab").__("Move Selected Layers to Group"),p.id="jp-gis-contextmenu-movelayer",e.contextMenu.addItem({type:"submenu",selector:".jp-gis-layerItem",rank:2,submenu:p}),e.contextMenu.opened.connect(()=>function(e,t){var n,a,s,r;if(!(null===(n=t.currentWidget)||void 0===n?void 0:n.model))return;const d=null===(a=t.currentWidget)||void 0===a?void 0:a.model,i=null!==(r=null===(s=e.menu.items.find(e=>{var t;return"submenu"===e.type&&"jp-gis-contextmenu-movelayer"===(null===(t=e.submenu)||void 0===t?void 0:t.id)}))||void 0===s?void 0:s.submenu)&&void 0!==r?r:null;if(!i)return;i.clearItems();const m=function e(t){const n=[];for(const o of t)if("string"!=typeof o&&o.layers){n.push(o.name);const t=e(o.layers);n.push(...t)}return n}(d.getLayerTree());i.addItem({command:o.CommandIDs.moveLayersToGroup,args:{label:""}}),m.forEach(e=>{i.addItem({command:o.CommandIDs.moveLayersToGroup,args:{label:e}})}),i.addItem({command:o.CommandIDs.moveLayerToNewGroup})}(e.contextMenu,t)),e.contextMenu.addItem({command:o.CommandIDs.removeGroup,selector:".jp-gis-layerGroupHeader",rank:2}),e.contextMenu.addItem({command:o.CommandIDs.renameGroup,selector:".jp-gis-layerGroupHeader",rank:2}),e.contextMenu.addItem({type:"separator",selector:".jp-gis-layerPanel",rank:2});const y=new m.Menu({commands:e.commands});y.title.label=l.load("jupyterlab").__("Add Layer"),y.id="jp-gis-contextmenu-addLayer",y.addItem({type:"submenu",submenu:(0,o.rasterSubMenu)(e.commands)}),y.addItem({type:"submenu",submenu:(0,o.vectorSubMenu)(e.commands)}),e.contextMenu.addItem({type:"submenu",selector:".jp-gis-layerPanel",rank:3,submenu:y}),d&&function(e,t){e.editMenu.undoers.redo.add({id:o.CommandIDs.redo,isEnabled:t}),e.editMenu.undoers.undo.add({id:o.CommandIDs.undo,isEnabled:t})}(d,()=>null!==t.currentWidget&&t.currentWidget===e.shell.currentWidget)}},j]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _JUPYTERLAB;(()=>{"use strict";var e,r,t,a,n,o,i,u,l,s,f,d,
|
|
1
|
+
var _JUPYTERLAB;(()=>{"use strict";var e,r,t,a,n,o,i,u,l,s,f,p,d,c,h,v,g,b,y,m,j,w,S,k={1450:(e,r,t)=>{var a={"./index":()=>t.e(484).then(()=>()=>t(3484)),"./extension":()=>t.e(484).then(()=>()=>t(3484)),"./style":()=>t.e(432).then(()=>()=>t(1432))},n=(e,r)=>(t.R=r,r=t.o(a,e)?a[e]():Promise.resolve().then(()=>{throw new Error('Module "'+e+'" does not exist in container.')}),t.R=void 0,r),o=(e,r)=>{if(t.S){var a="default",n=t.S[a];if(n&&n!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[a]=e,t.I(a,r)}};t.d(r,{get:()=>n,init:()=>o})}},E={};function P(e){var r=E[e];if(void 0!==r)return r.exports;var t=E[e]={id:e,exports:{}};return k[e](t,t.exports,P),t.exports}P.m=k,P.c=E,P.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return P.d(r,{a:r}),r},P.d=(e,r)=>{for(var t in r)P.o(r,t)&&!P.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},P.f={},P.e=e=>Promise.all(Object.keys(P.f).reduce((r,t)=>(P.f[t](e,r),r),[])),P.u=e=>e+"."+{234:"8ab0931c15a13e5d92fd",432:"43c3c6b1178c1ea13d41",484:"03e2847cc3cf21c046f0"}[e]+".js?v="+{234:"8ab0931c15a13e5d92fd",432:"43c3c6b1178c1ea13d41",484:"03e2847cc3cf21c046f0"}[e],P.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),P.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@jupytergis/jupytergis-lab:",P.l=(t,a,n,o)=>{if(e[t])e[t].push(a);else{var i,u;if(void 0!==n)for(var l=document.getElementsByTagName("script"),s=0;s<l.length;s++){var f=l[s];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+n){i=f;break}}i||(u=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,P.nc&&i.setAttribute("nonce",P.nc),i.setAttribute("data-webpack",r+n),i.src=t),e[t]=[a];var p=(r,a)=>{i.onerror=i.onload=null,clearTimeout(d);var n=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(a)),r)return r(a)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),u&&document.head.appendChild(i)}},P.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{P.S={};var e={},r={};P.I=(t,a)=>{a||(a=[]);var n=r[t];if(n||(n=r[t]={}),!(a.indexOf(n)>=0)){if(a.push(n),e[t])return e[t];P.o(P.S,t)||(P.S[t]={});var o=P.S[t],i="@jupytergis/jupytergis-lab",u=(e,r,t,a)=>{var n=o[e]=o[e]||{},u=n[r];(!u||!u.loaded&&(!a!=!u.eager?a:i>u.from))&&(n[r]={get:t,from:i,eager:!!a})},l=[];return"default"===t&&(u("@jupyter/collaborative-drive","3.1.2",()=>P.e(234).then(()=>()=>P(234))),u("@jupytergis/jupytergis-lab","0.9.1",()=>P.e(484).then(()=>()=>P(3484)))),e[t]=l.length?Promise.all(l).then(()=>e[t]=1):1}}})(),(()=>{var e;P.g.importScripts&&(e=P.g.location+"");var r=P.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var a=t.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=t[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),P.p=e})(),t=e=>{var r=e=>e.split(".").map(e=>+e==e?+e:e),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),a=t[1]?r(t[1]):[];return t[2]&&(a.length++,a.push.apply(a,r(t[2]))),t[3]&&(a.push([]),a.push.apply(a,r(t[3]))),a},a=(e,r)=>{e=t(e),r=t(r);for(var a=0;;){if(a>=e.length)return a<r.length&&"u"!=(typeof r[a])[0];var n=e[a],o=(typeof n)[0];if(a>=r.length)return"u"==o;var i=r[a],u=(typeof i)[0];if(o!=u)return"o"==o&&"n"==u||"s"==u||"u"==o;if("o"!=o&&"u"!=o&&n!=i)return n<i;a++}},n=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var a=1,o=1;o<e.length;o++)a--,t+="u"==(typeof(u=e[o]))[0]?"-":(a>0?".":"")+(a=2,u);return t}var i=[];for(o=1;o<e.length;o++){var u=e[o];i.push(0===u?"not("+l()+")":1===u?"("+l()+" || "+l()+")":2===u?i.pop()+" "+i.pop():n(u))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},o=(e,r)=>{if(0 in e){r=t(r);var a=e[0],n=a<0;n&&(a=-a-1);for(var i=0,u=1,l=!0;;u++,i++){var s,f,p=u<e.length?(typeof e[u])[0]:"";if(i>=r.length||"o"==(f=(typeof(s=r[i]))[0]))return!l||("u"==p?u>a&&!n:""==p!=n);if("u"==f){if(!l||"u"!=p)return!1}else if(l)if(p==f)if(u<=a){if(s!=e[u])return!1}else{if(n?s>e[u]:s<e[u])return!1;s!=e[u]&&(l=!1)}else if("s"!=p&&"n"!=p){if(n||u<=a)return!1;l=!1,u--}else{if(u<=a||f<p!=n)return!1;l=!1}else"s"!=p&&"n"!=p&&(l=!1,u--)}}var d=[],c=d.pop.bind(d);for(i=1;i<e.length;i++){var h=e[i];d.push(1==h?c()|c():2==h?c()&c():h?o(h,r):!c())}return!!c()},i=(e,r)=>e&&P.o(e,r),u=e=>(e.loaded=1,e.get()),l=e=>Object.keys(e).reduce((r,t)=>(e[t].eager&&(r[t]=e[t]),r),{}),s=(e,r,t,n)=>{var i=n?l(e[r]):e[r];return(r=Object.keys(i).reduce((e,r)=>!o(t,r)||e&&!a(e,r)?e:r,0))&&i[r]},f=(e,r,t)=>{var n=t?l(e[r]):e[r];return Object.keys(n).reduce((e,r)=>!e||!n[e].loaded&&a(e,r)?r:e,0)},p=(e,r,t,a)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+n(a)+")",d=(e,r,t,a,o)=>{var i=e[t];return"No satisfying version ("+n(a)+")"+(o?" for eager consumption":"")+" of shared module "+t+" found in shared scope "+r+".\nAvailable versions: "+Object.keys(i).map(e=>e+" from "+i[e].from).join(", ")},c=e=>{throw new Error(e)},h=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},g=(e,r,t)=>t?t():((e,r)=>c("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),b=(v=e=>function(r,t,a,n,o){var i=P.I(r);return i&&i.then&&!a?i.then(e.bind(e,r,P.S[r],t,!1,n,o)):e(r,P.S[r],t,a,n,o)})((e,r,t,a,n,o)=>{if(!i(r,t))return g(e,t,o);var l=s(r,t,n,a);return l?u(l):o?o():void c(d(r,e,t,n,a))}),y=v((e,r,t,a,n,l)=>{if(!i(r,t))return g(e,t,l);var s=f(r,t,a);return o(n,s)||h(p(r,t,s,n)),u(r[t][s])}),m={},j={389:()=>y("default","@jupyterlab/statedb",!1,[1,4,4,6]),1593:()=>y("default","@jupyterlab/translation",!1,[1,4,4,6]),2310:()=>y("default","@jupyterlab/coreutils",!1,[1,6,4,6]),2406:()=>y("default","@jupyterlab/mainmenu",!1,[1,4,4,6]),2597:()=>y("default","@jupyterlab/completer",!1,[1,4,4,6]),5163:()=>y("default","@jupyterlab/console",!1,[1,4,4,6]),5256:()=>y("default","@lumino/widgets",!1,[1,2,3,1,,"alpha",0]),6230:()=>y("default","@lumino/messaging",!1,[1,2,0,0]),6903:()=>b("default","@jupyter/collaborative-drive",!1,[1,3,0,0],()=>P.e(234).then(()=>()=>P(234))),7737:()=>y("default","@jupytergis/schema",!1,[2,0,9,1]),8075:()=>y("default","@jupytergis/base",!1,[2,0,9,1]),8361:()=>y("default","@jupyterlab/settingregistry",!1,[1,4,4,6]),8531:()=>y("default","@jupyterlab/notebook",!1,[1,4,4,6]),9173:()=>y("default","yjs-widgets",!1,[2,0,4]),9715:()=>y("default","@jupyterlab/apputils",!1,[1,4,5,6]),7262:()=>y("default","@lumino/coreutils",!1,[1,2,0,0])},w={234:[7262],484:[389,1593,2310,2406,2597,5163,5256,6230,6903,7737,8075,8361,8531,9173,9715]},S={},P.f.consumes=(e,r)=>{P.o(w,e)&&w[e].forEach(e=>{if(P.o(m,e))return r.push(m[e]);if(!S[e]){var t=r=>{m[e]=0,P.m[e]=t=>{delete P.c[e],t.exports=r()}};S[e]=!0;var a=r=>{delete m[e],P.m[e]=t=>{throw delete P.c[e],r}};try{var n=j[e]();n.then?r.push(m[e]=n.then(t).catch(a)):t(n)}catch(e){a(e)}}})},(()=>{P.b=document.baseURI||self.location.href;var e={738:0};P.f.j=(r,t)=>{var a=P.o(e,r)?e[r]:void 0;if(0!==a)if(a)t.push(a[2]);else{var n=new Promise((t,n)=>a=e[r]=[t,n]);t.push(a[2]=n);var o=P.p+P.u(r),i=new Error;P.l(o,t=>{if(P.o(e,r)&&(0!==(a=e[r])&&(e[r]=void 0),a)){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,a[1](i)}},"chunk-"+r,r)}};var r=(r,t)=>{var a,n,[o,i,u]=t,l=0;if(o.some(r=>0!==e[r])){for(a in i)P.o(i,a)&&(P.m[a]=i[a]);u&&u(P)}for(r&&r(t);l<o.length;l++)n=o[l],P.o(e,n)&&e[n]&&e[n][0](),e[n]=0},t=self.webpackChunk_jupytergis_jupytergis_lab=self.webpackChunk_jupytergis_jupytergis_lab||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),P.nc=void 0;var _=P(1450);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB)["@jupytergis/jupytergis-lab"]=_})();
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
jupytergis_lab/__init__.py,sha256=QRBE8GcqAQSZk4d8oB6dMgU0jPXZIU1vuhjLAixF_y4,579
|
|
2
|
+
jupytergis_lab/_version.py,sha256=hDBNWpww6uvXyKn07xpTrcGdtYAxDZZi5-WgVt-t1PY,171
|
|
3
|
+
jupytergis_lab/notebook/__init__.py,sha256=YFLWhp-9CMd5HIXVEVlFwzBiS7sZKvHUArEEz8xhP6I,46
|
|
4
|
+
jupytergis_lab/notebook/explore.py,sha256=_tRCdpYwVFulfkJIYOBY7yAU5gTPPRb8jnoDrfuZN7o,4368
|
|
5
|
+
jupytergis_lab/notebook/gis_document.py,sha256=RoJEbH3LKDz9tbFvc-jtcVCxzcvVKfzToRmR3e1YPqw,31158
|
|
6
|
+
jupytergis_lab/notebook/utils.py,sha256=x9HkieWVS35Q8HtaQHDH2AKU0lTMKQbRZDpJZ5Hfk9Y,348
|
|
7
|
+
jupytergis_lab/notebook/y_connector.py,sha256=KkkKDFvwY6ZWQ-1tubmiS9ib4LsmxYKS0bx0pPJoPGU,1029
|
|
8
|
+
jupytergis_lab/notebook/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
jupytergis_lab/notebook/tests/test_api.py,sha256=7QJWxdapppt-SGbiGleK87NqwunobqBvf0wXXt85u6c,1914
|
|
10
|
+
jupytergis_lab-0.9.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/package.json,sha256=Qi09954VCqxym3mhngCc3pqOKd1zlPprpdvAl2jh15M,4105
|
|
11
|
+
jupytergis_lab-0.9.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/234.8ab0931c15a13e5d92fd.js,sha256=irCTHBWhPl2S_aDv10qC5UUbAyAGoCQDnnfkBl27nEs,350
|
|
12
|
+
jupytergis_lab-0.9.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/432.43c3c6b1178c1ea13d41.js,sha256=Q8PGsReMHqE9QQ1c_dSeOoBoLrV50b3qOjNvmoSfza4,74945
|
|
13
|
+
jupytergis_lab-0.9.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/484.03e2847cc3cf21c046f0.js,sha256=A-KEfMPPIcBG8EfHrd2aiGj4ANf58n4WJ5HwVj0sZvg,6680
|
|
14
|
+
jupytergis_lab-0.9.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/remoteEntry.057367ee9baccd8bc582.js,sha256=BXNn7puszYvFgt-o7gAt2TZiQd7udKOPQZN-bApruNA,8282
|
|
15
|
+
jupytergis_lab-0.9.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/style.js,sha256=pog22wM5nCMkQO0YWJ94eDKAF1OlO1ZvCDGi_rO335U,169
|
|
16
|
+
jupytergis_lab-0.9.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/third-party-licenses.json,sha256=1AFloprAKtaT-ZyW14gPB4teu5QNBH5tRZ2RY-CX36A,4230
|
|
17
|
+
jupytergis_lab-0.9.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/install.json,sha256=t_TWPC6MDZMygRm9ujZ63nap014Sb5htaW5QEOjrmgI,189
|
|
18
|
+
jupytergis_lab-0.9.1.dist-info/METADATA,sha256=Llqp3zPfZNsoa5lNuNtQN1C2udm-6msU6nIRAN6Y6LY,3151
|
|
19
|
+
jupytergis_lab-0.9.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
20
|
+
jupytergis_lab-0.9.1.dist-info/licenses/LICENSE,sha256=VblFgHMsSan_kg15lNsI-YHIqUOUNXGptcoaX2yDDhU,1531
|
|
21
|
+
jupytergis_lab-0.9.1.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_jupytergis_jupytergis_lab=self.webpackChunk_jupytergis_jupytergis_lab||[]).push([[484],{3484:(e,t,n)=>{n.r(t),n.d(t,{default:()=>v});var o=n(532),a=n(9122),s=n(2597),r=n(2406),d=n(389),i=n(1593),m=n(5256),l=n(6903),c=n(9715),u=n(5163),g=n(2310),p=n(8531),y=n(8361),I=n(6230),h=n(9173);class M extends h.JupyterYModel{}class b extends m.Panel{constructor(e){super(),this._buildWidget=e=>{const{commands:t,model:n,externalCommands:a,tracker:s,formSchemaRegistry:r,state:d,annotationModel:i}=e,m=new o.JupyterGISPanel({model:n,commandRegistry:t,formSchemaRegistry:r,state:d,annotationModel:i});let l;n.filePath&&(l=new o.ToolbarWidget({commands:t,model:n,externalCommands:(null==a?void 0:a.getCommands())||[]})),this._jgisWidget=new o.JupyterGISOutputWidget({model:n,content:m,toolbar:l}),this.addWidget(this._jgisWidget),null==s||s.add(this._jgisWidget)};const{model:t}=e;this.addClass("jupytergis-notebook-widget"),this._buildWidget(e),t.sharedModel.changed.connect((t,n)=>{n.stateChange&&n.stateChange.forEach(t=>{var n;"path"===t.name&&(null===(n=this.layout)||void 0===n||n.removeWidget(this._jgisWidget),this._jgisWidget.dispose(),this._buildWidget(e))})})}get jgisWidget(){return this._jgisWidget}}const j={id:"jupytergis:yjswidget-plugin",autoStart:!0,optional:[a.IJGISExternalCommandRegistryToken,a.IJupyterGISDocTracker,h.IJupyterYWidgetManager,l.ICollaborativeDrive,d.IStateDB,a.IJGISFormSchemaRegistryToken,a.IAnnotationToken,y.ISettingRegistry],activate:(e,t,n,o,s,r,d,i,l)=>{o?o.registerWidget("@jupytergis:widget",class extends M{async initialize(t){const{path:n,format:o,contentType:r}=t,d=o;if(!s)throw(0,c.showErrorMessage)("Error using the JupyterGIS Python API","You cannot use the JupyterGIS Python API without a collaborative drive. You need to install a package providing collaboration features (e.g. jupyter-collaboration)."),new Error("Failed to create the YDoc without a collaborative drive");let i="";const m=e.shell.currentWidget;(m instanceof p.NotebookPanel||m instanceof u.ConsolePanel)&&(i=m.sessionContext.path);let y="";if(n){y=g.PathExt.join(g.PathExt.dirname(i),n);try{await e.serviceManager.contents.get(y)}catch(t){await e.serviceManager.contents.save(y,{content:btoa("{}"),format:"base64"})}}else y=g.PathExt.join(g.PathExt.dirname(i),"unsaved_project");const I=s.sharedModelFactory.createNew({path:y,format:d,contentType:r,collaborative:!0});this.jupyterGISModel=new a.JupyterGISModel({sharedModel:I,settingRegistry:l}),this.jupyterGISModel.contentsManager=e.serviceManager.contents,this.jupyterGISModel.filePath=y,this.ydoc=this.jupyterGISModel.sharedModel.ydoc,this.sharedModel=new h.JupyterYDoc(t,this.ydoc)}},class{constructor(o,a){this.yModel=o,this.node=a;const s=new b({commands:e.commands,model:o.jupyterGISModel,externalCommands:t,tracker:n,annotationModel:i,state:d,formSchemaRegistry:r});this._jgisWidget=s.jgisWidget,I.MessageLoop.sendMessage(s,m.Widget.Msg.BeforeAttach),a.appendChild(s.node),I.MessageLoop.sendMessage(s,m.Widget.Msg.AfterAttach)}dispose(){this._jgisWidget.dispose()}}):console.error("Missing IJupyterYWidgetManager token!")}},v=[{id:"jupytergis:lab:main-menu",autoStart:!0,requires:[a.IJupyterGISDocTracker,a.IJGISFormSchemaRegistryToken,a.IJGISLayerBrowserRegistryToken,d.IStateDB],optional:[r.IMainMenu,i.ITranslator,s.ICompletionProviderManager],activate:(e,t,n,s,r,d,l,c)=>{console.log("jupytergis:lab:main-menu is activated!"),l=null!=l?l:i.nullTranslator;(0,o.createDefaultLayerRegistry)(s),o.GlobalStateDbManager.getInstance().initialize(r),(0,o.addCommands)(e,t,l,n,s,r,c),e.contextMenu.addItem({selector:".jp-gis-source.jp-gis-sourceUnused",rank:1,command:o.CommandIDs.removeSource}),e.contextMenu.addItem({selector:".jp-gis-source",rank:1,command:o.CommandIDs.renameSource}),e.contextMenu.addItem({command:o.CommandIDs.symbology,selector:".jp-gis-layerItem",rank:1}),e.contextMenu.addItem({type:"separator",selector:".jp-gis-layerPanel",rank:1}),e.contextMenu.addItem({command:o.CommandIDs.removeLayer,selector:".jp-gis-layerItem",rank:2}),e.contextMenu.addItem({command:o.CommandIDs.renameLayer,selector:".jp-gis-layerItem",rank:2}),e.contextMenu.addItem({command:o.CommandIDs.zoomToLayer,selector:".jp-gis-layerItem",rank:2});const u=new m.Menu({commands:e.commands});u.title.label=l.load("jupyterlab").__("Download"),u.id="jp-gis-contextmenu-download",u.addItem({command:o.CommandIDs.downloadGeoJSON}),e.contextMenu.addItem({type:"submenu",selector:".jp-gis-layerItem",rank:2,submenu:u});const g=new m.Menu({commands:e.commands});g.title.label=l.load("jupyterlab").__("Processing"),g.id="jp-gis-contextmenu-processing";for(const e of a.ProcessingMerge)g.addItem({command:e.name});e.contextMenu.addItem({type:"submenu",selector:".jp-gis-layerItem",rank:2,submenu:g});const p=new m.Menu({commands:e.commands});p.title.label=l.load("jupyterlab").__("Move Selected Layers to Group"),p.id="jp-gis-contextmenu-movelayer",e.contextMenu.addItem({type:"submenu",selector:".jp-gis-layerItem",rank:2,submenu:p}),e.contextMenu.opened.connect(()=>function(e,t){var n,a,s,r;if(!(null===(n=t.currentWidget)||void 0===n?void 0:n.model))return;const d=null===(a=t.currentWidget)||void 0===a?void 0:a.model,i=null!==(r=null===(s=e.menu.items.find(e=>{var t;return"submenu"===e.type&&"jp-gis-contextmenu-movelayer"===(null===(t=e.submenu)||void 0===t?void 0:t.id)}))||void 0===s?void 0:s.submenu)&&void 0!==r?r:null;if(!i)return;i.clearItems();const m=function e(t){const n=[];for(const o of t)if("string"!=typeof o&&o.layers){n.push(o.name);const t=e(o.layers);n.push(...t)}return n}(d.getLayerTree());i.addItem({command:o.CommandIDs.moveLayersToGroup,args:{label:""}}),m.forEach(e=>{i.addItem({command:o.CommandIDs.moveLayersToGroup,args:{label:e}})}),i.addItem({command:o.CommandIDs.moveLayerToNewGroup})}(e.contextMenu,t)),e.contextMenu.addItem({command:o.CommandIDs.removeGroup,selector:".jp-gis-layerGroupHeader",rank:2}),e.contextMenu.addItem({command:o.CommandIDs.renameGroup,selector:".jp-gis-layerGroupHeader",rank:2}),e.contextMenu.addItem({type:"separator",selector:".jp-gis-layerPanel",rank:2});const y=new m.Menu({commands:e.commands});y.title.label=l.load("jupyterlab").__("Add Layer"),y.id="jp-gis-contextmenu-addLayer",y.addItem({type:"submenu",submenu:(0,o.rasterSubMenu)(e.commands)}),y.addItem({type:"submenu",submenu:(0,o.vectorSubMenu)(e.commands)}),e.contextMenu.addItem({type:"submenu",selector:".jp-gis-layerPanel",rank:3,submenu:y}),d&&function(e,t){e.editMenu.undoers.redo.add({id:o.CommandIDs.redo,isEnabled:t}),e.editMenu.undoers.undo.add({id:o.CommandIDs.undo,isEnabled:t})}(d,()=>null!==t.currentWidget&&t.currentWidget===e.shell.currentWidget)}},j]}}]);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
jupytergis_lab/__init__.py,sha256=QRBE8GcqAQSZk4d8oB6dMgU0jPXZIU1vuhjLAixF_y4,579
|
|
2
|
-
jupytergis_lab/_version.py,sha256=_V6ac3ft_avL0i0mpgzUomg_m4S3msXxUI56ATsl2As,171
|
|
3
|
-
jupytergis_lab/notebook/__init__.py,sha256=YFLWhp-9CMd5HIXVEVlFwzBiS7sZKvHUArEEz8xhP6I,46
|
|
4
|
-
jupytergis_lab/notebook/explore.py,sha256=_tRCdpYwVFulfkJIYOBY7yAU5gTPPRb8jnoDrfuZN7o,4368
|
|
5
|
-
jupytergis_lab/notebook/gis_document.py,sha256=RoJEbH3LKDz9tbFvc-jtcVCxzcvVKfzToRmR3e1YPqw,31158
|
|
6
|
-
jupytergis_lab/notebook/utils.py,sha256=x9HkieWVS35Q8HtaQHDH2AKU0lTMKQbRZDpJZ5Hfk9Y,348
|
|
7
|
-
jupytergis_lab/notebook/y_connector.py,sha256=KkkKDFvwY6ZWQ-1tubmiS9ib4LsmxYKS0bx0pPJoPGU,1029
|
|
8
|
-
jupytergis_lab/notebook/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
jupytergis_lab/notebook/tests/test_api.py,sha256=7QJWxdapppt-SGbiGleK87NqwunobqBvf0wXXt85u6c,1914
|
|
10
|
-
jupytergis_lab-0.9.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/package.json,sha256=bLcrvAq3KVi_wqHRteLs-erDpnNtoHUvNZHluGBEJmo,4105
|
|
11
|
-
jupytergis_lab-0.9.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/234.8ab0931c15a13e5d92fd.js,sha256=irCTHBWhPl2S_aDv10qC5UUbAyAGoCQDnnfkBl27nEs,350
|
|
12
|
-
jupytergis_lab-0.9.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/432.43c3c6b1178c1ea13d41.js,sha256=Q8PGsReMHqE9QQ1c_dSeOoBoLrV50b3qOjNvmoSfza4,74945
|
|
13
|
-
jupytergis_lab-0.9.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/484.cafedd5be75f2da64326.js,sha256=yv7dW-dfLaZDJiyz56Ky_9uL97wafvFNEKABQag8Vhs,6679
|
|
14
|
-
jupytergis_lab-0.9.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/remoteEntry.d8f739f5491034de0c34.js,sha256=2Pc59UkQNN4MNBk8FAE8YmbgdZf7R7C7QZvSmrbAOzo,8280
|
|
15
|
-
jupytergis_lab-0.9.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/style.js,sha256=pog22wM5nCMkQO0YWJ94eDKAF1OlO1ZvCDGi_rO335U,169
|
|
16
|
-
jupytergis_lab-0.9.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/static/third-party-licenses.json,sha256=wD_nd17-n2SlLsixQOtAE8_Ih9oUfvpOWrBtT_7XIT4,4230
|
|
17
|
-
jupytergis_lab-0.9.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-lab/install.json,sha256=t_TWPC6MDZMygRm9ujZ63nap014Sb5htaW5QEOjrmgI,189
|
|
18
|
-
jupytergis_lab-0.9.0.dist-info/METADATA,sha256=ZDlJkNPpSEctFmHou5v3-IM9DGcISlZHeIeshLLkQYs,3151
|
|
19
|
-
jupytergis_lab-0.9.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
20
|
-
jupytergis_lab-0.9.0.dist-info/licenses/LICENSE,sha256=VblFgHMsSan_kg15lNsI-YHIqUOUNXGptcoaX2yDDhU,1531
|
|
21
|
-
jupytergis_lab-0.9.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|