jupytergis-qgis 0.12.0__tar.gz

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.
Files changed (43) hide show
  1. jupytergis_qgis-0.12.0/.gitignore +2 -0
  2. jupytergis_qgis-0.12.0/.prettierignore +6 -0
  3. jupytergis_qgis-0.12.0/LICENSE +29 -0
  4. jupytergis_qgis-0.12.0/PKG-INFO +60 -0
  5. jupytergis_qgis-0.12.0/README.md +1 -0
  6. jupytergis_qgis-0.12.0/install.json +5 -0
  7. jupytergis_qgis-0.12.0/jupyter-config/server-config/jupytergis_qgis.json +7 -0
  8. jupytergis_qgis-0.12.0/jupytergis_qgis/__init__.py +35 -0
  9. jupytergis_qgis-0.12.0/jupytergis_qgis/_version.py +4 -0
  10. jupytergis_qgis-0.12.0/jupytergis_qgis/handlers.py +63 -0
  11. jupytergis_qgis-0.12.0/jupytergis_qgis/labextension/package.json +129 -0
  12. jupytergis_qgis-0.12.0/jupytergis_qgis/labextension/schemas/@jupytergis/jupytergis-qgis/package.json.orig +124 -0
  13. jupytergis_qgis-0.12.0/jupytergis_qgis/labextension/schemas/@jupytergis/jupytergis-qgis/qgisplugin.json +27 -0
  14. jupytergis_qgis-0.12.0/jupytergis_qgis/labextension/static/234.289502f2f5fca279c845.js +1 -0
  15. jupytergis_qgis-0.12.0/jupytergis_qgis/labextension/static/4.40c69b95b1a2f4b2296c.js +1 -0
  16. jupytergis_qgis-0.12.0/jupytergis_qgis/labextension/static/432.8b7eadb127851128d478.js +1 -0
  17. jupytergis_qgis-0.12.0/jupytergis_qgis/labextension/static/remoteEntry.d1c2eddffc8d481f97b9.js +1 -0
  18. jupytergis_qgis-0.12.0/jupytergis_qgis/labextension/static/style.js +4 -0
  19. jupytergis_qgis-0.12.0/jupytergis_qgis/labextension/static/third-party-licenses.json +22 -0
  20. jupytergis_qgis-0.12.0/jupytergis_qgis/qgis_loader.py +1092 -0
  21. jupytergis_qgis-0.12.0/jupytergis_qgis/qgis_ydoc.py +143 -0
  22. jupytergis_qgis-0.12.0/jupytergis_qgis/tests/__init__.py +0 -0
  23. jupytergis_qgis-0.12.0/jupytergis_qgis/tests/files/project0.qgs +1171 -0
  24. jupytergis_qgis-0.12.0/jupytergis_qgis/tests/test_qgis.py +397 -0
  25. jupytergis_qgis-0.12.0/lib/index.d.ts +2 -0
  26. jupytergis_qgis-0.12.0/lib/index.js +2 -0
  27. jupytergis_qgis-0.12.0/lib/modelfactory.d.ts +92 -0
  28. jupytergis_qgis-0.12.0/lib/modelfactory.js +111 -0
  29. jupytergis_qgis-0.12.0/lib/plugins.d.ts +2 -0
  30. jupytergis_qgis-0.12.0/lib/plugins.js +235 -0
  31. jupytergis_qgis-0.12.0/package.json +124 -0
  32. jupytergis_qgis-0.12.0/pyproject.toml +93 -0
  33. jupytergis_qgis-0.12.0/schema/qgisplugin.json +27 -0
  34. jupytergis_qgis-0.12.0/scripts/bump-version.py +14 -0
  35. jupytergis_qgis-0.12.0/setup.py +1 -0
  36. jupytergis_qgis-0.12.0/src/index.ts +3 -0
  37. jupytergis_qgis-0.12.0/src/modelfactory.ts +144 -0
  38. jupytergis_qgis-0.12.0/src/plugins.ts +346 -0
  39. jupytergis_qgis-0.12.0/style/base.css +0 -0
  40. jupytergis_qgis-0.12.0/style/index.css +1 -0
  41. jupytergis_qgis-0.12.0/style/index.js +1 -0
  42. jupytergis_qgis-0.12.0/tsconfig.json +8 -0
  43. jupytergis_qgis-0.12.0/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,2 @@
1
+ jupytergis_qgis/labextension
2
+ jupytergis_qgis/_version.py
@@ -0,0 +1,6 @@
1
+ node_modules
2
+ **/node_modules
3
+ **/lib
4
+ **/package.json
5
+ !/package.json
6
+ jupytergis_qgis
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2023, JupyterGIS contributors
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,60 @@
1
+ Metadata-Version: 2.4
2
+ Name: jupytergis_qgis
3
+ Version: 0.12.0
4
+ Dynamic: Keywords
5
+ Summary: JupyterGIS QGIS extension.
6
+ Project-URL: Homepage, https://github.com/geojupyter/jupytergis
7
+ Project-URL: Bug Tracker, https://github.com/geojupyter/jupytergis/issues
8
+ Project-URL: Repository, https://github.com/geojupyter/jupytergis.git
9
+ Author: JupyterGIS contributors
10
+ License: BSD 3-Clause License
11
+
12
+ Copyright (c) 2023, JupyterGIS contributors
13
+ All rights reserved.
14
+
15
+ Redistribution and use in source and binary forms, with or without
16
+ modification, are permitted provided that the following conditions are met:
17
+
18
+ 1. Redistributions of source code must retain the above copyright notice, this
19
+ list of conditions and the following disclaimer.
20
+
21
+ 2. Redistributions in binary form must reproduce the above copyright notice,
22
+ this list of conditions and the following disclaimer in the documentation
23
+ and/or other materials provided with the distribution.
24
+
25
+ 3. Neither the name of the copyright holder nor the names of its
26
+ contributors may be used to endorse or promote products derived from
27
+ this software without specific prior written permission.
28
+
29
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
30
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
32
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
33
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
35
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
36
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
37
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
+ License-File: LICENSE
40
+ Classifier: Framework :: Jupyter
41
+ Classifier: Framework :: Jupyter :: JupyterLab
42
+ Classifier: Framework :: Jupyter :: JupyterLab :: 4
43
+ Classifier: Framework :: Jupyter :: JupyterLab :: Extensions
44
+ Classifier: Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt
45
+ Classifier: License :: OSI Approved :: BSD License
46
+ Classifier: Programming Language :: Python
47
+ Classifier: Programming Language :: Python :: 3
48
+ Classifier: Programming Language :: Python :: 3.10
49
+ Classifier: Programming Language :: Python :: 3.11
50
+ Classifier: Programming Language :: Python :: 3.12
51
+ Classifier: Programming Language :: Python :: 3.13
52
+ Classifier: Programming Language :: Python :: 3.14
53
+ Classifier: Topic :: Scientific/Engineering :: GIS
54
+ Requires-Python: >=3.10
55
+ Requires-Dist: jupyter-server<3,>=2.0.1
56
+ Requires-Dist: jupyter-ydoc<4,>=2
57
+ Requires-Dist: jupytergis-lab
58
+ Description-Content-Type: text/markdown
59
+
60
+ # jupytergis_qgis
@@ -0,0 +1 @@
1
+ # jupytergis_qgis
@@ -0,0 +1,5 @@
1
+ {
2
+ "packageManager": "python",
3
+ "packageName": "jupytergis_qgis",
4
+ "uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package jupytergis_qgis"
5
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "ServerApp": {
3
+ "jpserver_extensions": {
4
+ "jupytergis_qgis": true
5
+ }
6
+ }
7
+ }
@@ -0,0 +1,35 @@
1
+ try:
2
+ from ._version import __version__
3
+ except ImportError:
4
+ # Fallback when using the package in dev mode without installing
5
+ # in editable mode with pip. It is highly recommended to install
6
+ # the package from a stable release or in editable mode: https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs
7
+ import warnings
8
+
9
+ warnings.warn(
10
+ "Importing 'jupytergis_qgis' outside a proper installation.",
11
+ stacklevel=2,
12
+ )
13
+ __version__ = "dev"
14
+ from .handlers import setup_handlers
15
+
16
+
17
+ def _jupyter_labextension_paths():
18
+ return [{"src": "labextension", "dest": "@jupytergis/jupytergis-qgis"}]
19
+
20
+
21
+ def _jupyter_server_extension_points():
22
+ return [{"module": "jupytergis_qgis"}]
23
+
24
+
25
+ def _load_jupyter_server_extension(server_app):
26
+ """Registers the API handler to receive HTTP requests from the frontend extension.
27
+
28
+ Parameters
29
+ ----------
30
+ server_app: jupyterlab.labapp.LabApp
31
+ JupyterLab application instance
32
+ """
33
+ setup_handlers(server_app.web_app)
34
+ name = "jupytergis_qgis"
35
+ server_app.log.info(f"Registered {name} server extension")
@@ -0,0 +1,4 @@
1
+ # This file is auto-generated by Hatchling. As such, do not:
2
+ # - modify
3
+ # - track in version control e.g. be sure to add to .gitignore
4
+ __version__ = VERSION = '0.12.0'
@@ -0,0 +1,63 @@
1
+ import json
2
+ import os
3
+ from urllib.error import HTTPError
4
+
5
+ from jupyter_server.base.handlers import APIHandler
6
+ from jupyter_server.utils import url_path_join
7
+ import tornado
8
+
9
+
10
+ class BackendCheckHandler(APIHandler):
11
+ @tornado.web.authenticated
12
+ def post(self):
13
+ body = self.get_json_body()
14
+ qgis_installed = True
15
+ try:
16
+ import qgis # noqa
17
+ except ImportError:
18
+ qgis_installed = False
19
+ self.finish(json.dumps({"installed": qgis_installed}))
20
+
21
+
22
+ class ExportToQgisHandler(APIHandler):
23
+ @tornado.web.authenticated
24
+ def post(self):
25
+ body = self.get_json_body()
26
+ qgis_installed = True
27
+ try:
28
+ from .qgis_loader import export_project_to_qgis # noqa
29
+ except ImportError:
30
+ qgis_installed = False
31
+
32
+ if not qgis_installed:
33
+ raise HTTPError(500, "QGIS is not installed")
34
+
35
+ path = body.get("path", "")
36
+ virtual_file = body.get("virtual_file", "")
37
+ if not path:
38
+ raise HTTPError(400, "The file path is missing")
39
+ elif not virtual_file:
40
+ raise HTTPError(400, "The file content is missing")
41
+
42
+ absolute_path = os.path.join(
43
+ os.path.expanduser(self.settings["server_root_dir"]), path
44
+ )
45
+ logs = export_project_to_qgis(absolute_path, virtual_file)
46
+ self.finish(
47
+ json.dumps(
48
+ {"exported": len(logs["errors"]) == 0, "path": path, "logs": logs}
49
+ )
50
+ )
51
+
52
+
53
+ def setup_handlers(web_app):
54
+ host_pattern = ".*$"
55
+
56
+ base_url = web_app.settings["base_url"]
57
+ check_pattern = url_path_join(base_url, "jupytergis_qgis", "backend-check")
58
+ export_pattern = url_path_join(base_url, "jupytergis_qgis", "export")
59
+ handlers = [
60
+ (check_pattern, BackendCheckHandler),
61
+ (export_pattern, ExportToQgisHandler),
62
+ ]
63
+ web_app.add_handlers(host_pattern, handlers)
@@ -0,0 +1,129 @@
1
+ {
2
+ "name": "@jupytergis/jupytergis-qgis",
3
+ "version": "0.12.0",
4
+ "description": "JupyterGIS QGIS extension.",
5
+ "keywords": [
6
+ "jupyter",
7
+ "jupyterlab",
8
+ "jupyterlab-extension"
9
+ ],
10
+ "homepage": "https://github.com/geojupyter/jupytergis",
11
+ "bugs": {
12
+ "url": "https://github.com/geojupyter/jupytergis/issues"
13
+ },
14
+ "license": "BSD-3-Clause",
15
+ "author": "JupyterGIS contributors",
16
+ "files": [
17
+ "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
18
+ "schema/*.json",
19
+ "style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}"
20
+ ],
21
+ "main": "lib/index.js",
22
+ "types": "lib/index.d.ts",
23
+ "style": "style/index.css",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/geojupyter/jupytergis.git"
27
+ },
28
+ "scripts": {
29
+ "build": "jlpm build:lib && jlpm build:labextension:dev",
30
+ "build:prod": "jlpm clean && jlpm build:lib:prod && jlpm build:labextension",
31
+ "build:labextension": "jupyter labextension build .",
32
+ "build:labextension:dev": "jupyter labextension build --development True .",
33
+ "build:lib": "tsc --sourceMap",
34
+ "build:lib:prod": "tsc",
35
+ "build:dev": "jlpm run build",
36
+ "clean": "jlpm clean:lib",
37
+ "clean:lib": "rimraf lib tsconfig.tsbuildinfo",
38
+ "clean:lintcache": "rimraf .eslintcache .stylelintcache",
39
+ "clean:labextension": "rimraf jupytergis_qgis/labextension jupytergis_qgis/_version.py",
40
+ "clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
41
+ "eslint": "jlpm eslint:check --fix",
42
+ "eslint:check": "eslint . --cache --ext .ts,.tsx",
43
+ "install:extension": "jlpm build",
44
+ "lint": "jlpm stylelint && jlpm prettier && jlpm eslint",
45
+ "lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check",
46
+ "prettier": "jlpm prettier:base --write",
47
+ "prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
48
+ "prettier:check": "jlpm prettier:base --check",
49
+ "stylelint": "jlpm stylelint:check --fix",
50
+ "stylelint:check": "stylelint --cache \"style/**/*.css\"",
51
+ "watch": "run-p watch:src watch:labextension",
52
+ "watch:src": "tsc -w --sourceMap",
53
+ "watch:labextension": "jupyter labextension watch ."
54
+ },
55
+ "dependencies": {
56
+ "@jupyter/collaborative-drive": "^4.1.2",
57
+ "@jupytergis/base": "^0.12.0",
58
+ "@jupytergis/jupytergis-core": "^0.12.0",
59
+ "@jupytergis/schema": "^0.12.0",
60
+ "@jupyterlab/application": "^4.3.0",
61
+ "@jupyterlab/apputils": "^4.3.0",
62
+ "@jupyterlab/coreutils": "^6.3.0",
63
+ "@jupyterlab/docregistry": "^4.3.0",
64
+ "@jupyterlab/filebrowser": "^4.3.0",
65
+ "@jupyterlab/launcher": "^4.3.0",
66
+ "@jupyterlab/mainmenu": "^4.3.0",
67
+ "@jupyterlab/services": "^7.3.0",
68
+ "@jupyterlab/translation": "^4.3.0",
69
+ "@jupyterlab/ui-components": "^4.3.0",
70
+ "@lumino/messaging": "^2.0.0",
71
+ "@lumino/widgets": "^2.0.0",
72
+ "react": "^18.0.1"
73
+ },
74
+ "devDependencies": {
75
+ "@jupyterlab/builder": "^4.3.0",
76
+ "css-loader": "^6.7.1",
77
+ "mkdirp": "^1.0.3",
78
+ "npm-run-all": "^4.1.5",
79
+ "rimraf": "^3.0.2",
80
+ "typescript": "^5",
81
+ "yjs": "^13.5.0"
82
+ },
83
+ "sideEffects": [
84
+ "style/*.css",
85
+ "style/index.js"
86
+ ],
87
+ "styleModule": "style/index.js",
88
+ "publishConfig": {
89
+ "access": "public"
90
+ },
91
+ "jupyterlab": {
92
+ "discovery": {
93
+ "server": {
94
+ "managers": [
95
+ "pip"
96
+ ],
97
+ "base": {
98
+ "name": "jupytergis_qgis"
99
+ }
100
+ }
101
+ },
102
+ "extension": true,
103
+ "schemaDir": "schema",
104
+ "outputDir": "jupytergis_qgis/labextension",
105
+ "sharedPackages": {
106
+ "@jupytergis/base": {
107
+ "singleton": true,
108
+ "bundled": false
109
+ },
110
+ "@jupytergis/schema": {
111
+ "singleton": true,
112
+ "bundled": false
113
+ },
114
+ "@jupytergis/jupytergis-core": {
115
+ "singleton": true,
116
+ "bundled": false
117
+ },
118
+ "@jupyter/docprovider": {
119
+ "singleton": true,
120
+ "bundled": false
121
+ }
122
+ },
123
+ "_build": {
124
+ "load": "static/remoteEntry.d1c2eddffc8d481f97b9.js",
125
+ "extension": "./extension",
126
+ "style": "./style"
127
+ }
128
+ }
129
+ }
@@ -0,0 +1,124 @@
1
+ {
2
+ "name": "@jupytergis/jupytergis-qgis",
3
+ "version": "0.12.0",
4
+ "description": "JupyterGIS QGIS extension.",
5
+ "keywords": [
6
+ "jupyter",
7
+ "jupyterlab",
8
+ "jupyterlab-extension"
9
+ ],
10
+ "homepage": "https://github.com/geojupyter/jupytergis",
11
+ "bugs": {
12
+ "url": "https://github.com/geojupyter/jupytergis/issues"
13
+ },
14
+ "license": "BSD-3-Clause",
15
+ "author": "JupyterGIS contributors",
16
+ "files": [
17
+ "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
18
+ "schema/*.json",
19
+ "style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}"
20
+ ],
21
+ "main": "lib/index.js",
22
+ "types": "lib/index.d.ts",
23
+ "style": "style/index.css",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/geojupyter/jupytergis.git"
27
+ },
28
+ "scripts": {
29
+ "build": "jlpm build:lib && jlpm build:labextension:dev",
30
+ "build:prod": "jlpm clean && jlpm build:lib:prod && jlpm build:labextension",
31
+ "build:labextension": "jupyter labextension build .",
32
+ "build:labextension:dev": "jupyter labextension build --development True .",
33
+ "build:lib": "tsc --sourceMap",
34
+ "build:lib:prod": "tsc",
35
+ "build:dev": "jlpm run build",
36
+ "clean": "jlpm clean:lib",
37
+ "clean:lib": "rimraf lib tsconfig.tsbuildinfo",
38
+ "clean:lintcache": "rimraf .eslintcache .stylelintcache",
39
+ "clean:labextension": "rimraf jupytergis_qgis/labextension jupytergis_qgis/_version.py",
40
+ "clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
41
+ "eslint": "jlpm eslint:check --fix",
42
+ "eslint:check": "eslint . --cache --ext .ts,.tsx",
43
+ "install:extension": "jlpm build",
44
+ "lint": "jlpm stylelint && jlpm prettier && jlpm eslint",
45
+ "lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check",
46
+ "prettier": "jlpm prettier:base --write",
47
+ "prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
48
+ "prettier:check": "jlpm prettier:base --check",
49
+ "stylelint": "jlpm stylelint:check --fix",
50
+ "stylelint:check": "stylelint --cache \"style/**/*.css\"",
51
+ "watch": "run-p watch:src watch:labextension",
52
+ "watch:src": "tsc -w --sourceMap",
53
+ "watch:labextension": "jupyter labextension watch ."
54
+ },
55
+ "dependencies": {
56
+ "@jupyter/collaborative-drive": "^4.1.2",
57
+ "@jupytergis/base": "^0.12.0",
58
+ "@jupytergis/jupytergis-core": "^0.12.0",
59
+ "@jupytergis/schema": "^0.12.0",
60
+ "@jupyterlab/application": "^4.3.0",
61
+ "@jupyterlab/apputils": "^4.3.0",
62
+ "@jupyterlab/coreutils": "^6.3.0",
63
+ "@jupyterlab/docregistry": "^4.3.0",
64
+ "@jupyterlab/filebrowser": "^4.3.0",
65
+ "@jupyterlab/launcher": "^4.3.0",
66
+ "@jupyterlab/mainmenu": "^4.3.0",
67
+ "@jupyterlab/services": "^7.3.0",
68
+ "@jupyterlab/translation": "^4.3.0",
69
+ "@jupyterlab/ui-components": "^4.3.0",
70
+ "@lumino/messaging": "^2.0.0",
71
+ "@lumino/widgets": "^2.0.0",
72
+ "react": "^18.0.1"
73
+ },
74
+ "devDependencies": {
75
+ "@jupyterlab/builder": "^4.3.0",
76
+ "css-loader": "^6.7.1",
77
+ "mkdirp": "^1.0.3",
78
+ "npm-run-all": "^4.1.5",
79
+ "rimraf": "^3.0.2",
80
+ "typescript": "^5",
81
+ "yjs": "^13.5.0"
82
+ },
83
+ "sideEffects": [
84
+ "style/*.css",
85
+ "style/index.js"
86
+ ],
87
+ "styleModule": "style/index.js",
88
+ "publishConfig": {
89
+ "access": "public"
90
+ },
91
+ "jupyterlab": {
92
+ "discovery": {
93
+ "server": {
94
+ "managers": [
95
+ "pip"
96
+ ],
97
+ "base": {
98
+ "name": "jupytergis_qgis"
99
+ }
100
+ }
101
+ },
102
+ "extension": true,
103
+ "schemaDir": "schema",
104
+ "outputDir": "jupytergis_qgis/labextension",
105
+ "sharedPackages": {
106
+ "@jupytergis/base": {
107
+ "singleton": true,
108
+ "bundled": false
109
+ },
110
+ "@jupytergis/schema": {
111
+ "singleton": true,
112
+ "bundled": false
113
+ },
114
+ "@jupytergis/jupytergis-core": {
115
+ "singleton": true,
116
+ "bundled": false
117
+ },
118
+ "@jupyter/docprovider": {
119
+ "singleton": true,
120
+ "bundled": false
121
+ }
122
+ }
123
+ }
124
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "title": "Qgis plugin",
3
+ "description": "Schema for the qgis plugin",
4
+ "jupyter.lab.menus": {
5
+ "main": [
6
+ {
7
+ "id": "jp-mainmenu-file",
8
+ "items": [
9
+ {
10
+ "type": "separator",
11
+ "rank": 10
12
+ },
13
+ {
14
+ "command": "jupytergis:export",
15
+ "rank": 10
16
+ },
17
+ {
18
+ "type": "separator",
19
+ "rank": 10
20
+ }
21
+ ]
22
+ }
23
+ ]
24
+ },
25
+ "additionalProperties": false,
26
+ "type": "object"
27
+ }
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_jupytergis_jupytergis_qgis=self.webpackChunk_jupytergis_jupytergis_qgis||[]).push([[234],{234(e,o,r){r.r(o),r.d(o,{ICollaborativeContentProvider:()=>n,IGlobalAwareness:()=>s});var t=r(262);const n=new t.Token("@jupyter/collaboration-extension:ICollaborativeContentProvider"),s=new t.Token("@jupyter/collaboration:IGlobalAwareness")}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_jupytergis_jupytergis_qgis=self.webpackChunk_jupytergis_jupytergis_qgis||[]).push([[4],{4(e,t,o){o.r(t),o.d(t,{default:()=>f});var r,n=o(911),a=o(678),i=o(205),s=o(444),l=o(285),d=o(592),c=o(171),g=o(526),m=o(132),y=o(125),p=o(249),u=o(85),h=o(247);class G{constructor(e){this.collaborative=void 0===document.querySelectorAll("[data-jupyter-lite-root]")[0],this._disposed=!1,this._annotationModel=e.annotationModel}get name(){throw"Not implemented"}get contentType(){throw"Not implemented"}get fileFormat(){return"base64"}get isDisposed(){return this._disposed}dispose(){this._disposed=!0}preferredLanguage(e){return""}createNew(e){return new s.JupyterGISModel({sharedModel:e.sharedModel,languagePreference:e.languagePreference,annotationModel:this._annotationModel,settingRegistry:this._settingRegistry})}}class S extends G{get name(){return"jupytergis-qgzmodel"}get contentType(){return"QGZ"}}class I extends G{get name(){return"jupytergis-qgsmodel"}get contentType(){return"QGS"}}!function(e){e.exportQgis="jupytergis:export"}(r||(r={}));const f=[{id:"@jupytergis/jupytergis-qgis:qgisplugin",requires:[s.IJupyterGISDocTracker,l.IThemeManager,y.IDefaultDrive,s.IJGISExternalCommandRegistryToken,c.ConsolePanel.IContentFactory,d.IEditorServices,m.IRenderMimeRegistry,c.IConsoleTracker,s.IAnnotationToken,p.ISettingRegistry,s.IJGISFormSchemaRegistryToken,u.IStateDB],optional:[l.ICommandPalette,n.ICollaborativeContentProvider],autoStart:!0,activate:async(e,t,o,n,d,c,m,y,p,u,G,f,w,Q,T)=>{const x=await(0,a.requestAPI)("jupytergis_qgis/backend-check",{method:"POST",body:JSON.stringify({})}),{installed:j}=x,v=()=>(j||(0,l.showErrorMessage)("QGIS is not installed","QGIS is required to open QGIS files"),j),M=new i.JupyterGISDocumentWidgetFactory({name:"JupyterGIS QGS Factory",modelName:"jupytergis-qgsmodel",fileTypes:["QGS"],defaultFor:["QGS"],tracker:t,commands:e.commands,externalCommandRegistry:d,backendCheck:v,manager:e.serviceManager,contentFactory:c,rendermime:y,mimeTypeService:m.mimeTypeService,consoleTracker:p,formSchemaRegistry:f,state:w,annotationModel:u}),b=new i.JupyterGISDocumentWidgetFactory({name:"JupyterGIS QGZ Factory",modelName:"jupytergis-qgzmodel",fileTypes:["QGZ"],defaultFor:["QGZ"],tracker:t,commands:e.commands,externalCommandRegistry:d,backendCheck:v,manager:e.serviceManager,contentFactory:c,rendermime:y,mimeTypeService:m.mimeTypeService,consoleTracker:p,formSchemaRegistry:f,state:w,annotationModel:u});e.docRegistry.addWidgetFactory(M),e.docRegistry.addWidgetFactory(b),e.docRegistry.addModelFactory(new I({annotationModel:u,settingRegistry:G})),e.docRegistry.addModelFactory(new S({annotationModel:u,settingRegistry:G})),e.docRegistry.addFileType({name:"QGS",displayName:"QGS",mimeTypes:["application/octet-stream"],extensions:[".qgs",".QGS"],fileFormat:"base64",contentType:"QGS",icon:a.logoMiniIcon}),e.docRegistry.addFileType({name:"QGZ",displayName:"QGZ",mimeTypes:["application/octet-stream"],extensions:[".qgz",".QGZ"],fileFormat:"base64",contentType:"QGZ",icon:a.logoMiniIconQGZ});const F=()=>new s.JupyterGISDoc;T&&(T.sharedModelFactory.registerDocumentFactory("QGS",F),T.sharedModelFactory.registerDocumentFactory("QGZ",F));const C=(r,n)=>{n.title.icon=a.logoMiniIconQGZ,n.context.pathChanged.connect(()=>{t.save(n)}),o.themeChanged.connect((e,t)=>n.model.themeChanged.emit(t)),t.add(n),e.shell.activateById("jupytergis::leftControlPanel"),e.shell.activateById("jupytergis::rightControlPanel")};M.widgetCreated.connect(C),b.widgetCreated.connect(C),j&&(e.commands.addCommand(r.exportQgis,{label:"Export To QGZ",isEnabled:()=>!!t.currentWidget&&t.currentWidget.model.sharedModel.editable,execute:async e=>{var o,r;const i=".jGIS",s=".qgz",d=null===(o=t.currentWidget)||void 0===o?void 0:o.model.sharedModel;if(!d)return;const c=t.currentWidget.model.filePath;let m=null!==(r=e.filepath)&&void 0!==r?r:null;if(m||(m=(await l.InputDialog.getText({label:"File name",placeholder:g.PathExt.basename(c,i),title:"Export the project to QGZ file"})).value),null===m)return;m?m.endsWith(s)||(m=`${m}${s}`):m=`${g.PathExt.basename(c,i)}${s}`;let y=g.PathExt.dirname(c);y.includes(":")&&(y=y.split(":")[1]);const p=g.PathExt.join(y,m),u={layers:d.layers,sources:d.sources,layerTree:d.layerTree.slice().reverse(),options:d.options};let G=!0;if(await n.get(p,{content:!1}).catch(()=>{G=!1}),G&&!(await(0,l.showDialog)({title:"Export the project to QGZ file",body:`The file ${m} already exists.\nDo you want to overwrite it ?`})).button.accept)return;const S=await(0,a.requestAPI)("jupytergis_qgis/export",{method:"POST",body:JSON.stringify({path:p,virtual_file:u})});if(S.exported){if(S.logs.warnings.length){const e=document.createElement("pre");e.textContent=`${m} has been exported with warnings\n - ${S.logs.warnings.join("\n - ")}`;const t=new h.Widget({node:e});await(0,l.showDialog)({title:"Export the project to QGZ file",body:t,buttons:[l.Dialog.okButton()]})}}else(0,l.showErrorMessage)("Export the project to QGZ file",S.logs.errors.length?S.logs.errors.join("\n"):"Unknown error")}}),Q&&Q.addItem({command:r.exportQgis,category:"JupyterGIS"})),console.debug("@jupytergis/jupytergis-qgis:qgisplugin is activated!")}}]}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_jupytergis_jupytergis_qgis=self.webpackChunk_jupytergis_jupytergis_qgis||[]).push([[432],{51(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},128(e){var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},296(e,t,n){n.d(t,{A:()=>s});var r=n(758),o=n.n(r),a=n(935),i=n.n(a)()(o());i.push([e.id,"",""]);const s=i},432(e,t,n){var r=n(591),o=n.n(r),a=n(740),i=n.n(a),s=n(128),c=n.n(s),u=n(855),p=n.n(u),l=n(51),f=n.n(l),d=n(656),v=n.n(d),h=n(296),m={};m.styleTagTransform=v(),m.setAttributes=p(),m.insert=c().bind(null,"head"),m.domAPI=i(),m.insertStyleElement=f(),o()(h.A,m),h.A&&h.A.locals&&h.A.locals},591(e){var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],s=0;s<e.length;s++){var c=e[s],u=r.base?c[0]+r.base:c[0],p=a[u]||0,l="".concat(u," ").concat(p);a[u]=p+1;var f=n(l),d={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==f)t[f].references++,t[f].updater(d);else{var v=o(d,r);r.byIndex=s,t.splice(s,0,{identifier:l,updater:v,references:1})}i.push(l)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=n(a[i]);t[s].references--}for(var c=r(e,o),u=0;u<a.length;u++){var p=n(a[u]);0===t[p].references&&(t[p].updater(),t.splice(p,1))}a=c}}},656(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},740(e){e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},758(e){e.exports=function(e){return e[1]}},855(e,t,n){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},935(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(i[c]=!0)}for(var u=0;u<e.length;u++){var p=[].concat(e[u]);r&&i[p[0]]||(void 0!==a&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=a),n&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=n):p[2]=n),o&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=o):p[4]="".concat(o)),t.push(p))}},t}}}]);
@@ -0,0 +1 @@
1
+ var _JUPYTERLAB;(()=>{"use strict";var e,r,t,a,n,o,i,u,s,l,d,f,p,c,h,v,g,y,b,m,j,w,S,E={7(e,r,t){var a={"./index":()=>t.e(4).then(()=>()=>t(4)),"./extension":()=>t.e(4).then(()=>()=>t(4)),"./style":()=>t.e(432).then(()=>()=>t(432))},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})}},k={};function P(e){var r=k[e];if(void 0!==r)return r.exports;var t=k[e]={id:e,exports:{}};return E[e](t,t.exports,P),t.exports}P.m=E,P.c=k,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+"."+{4:"40c69b95b1a2f4b2296c",234:"289502f2f5fca279c845",432:"8b7eadb127851128d478"}[e]+".js?v="+{4:"40c69b95b1a2f4b2296c",234:"289502f2f5fca279c845",432:"8b7eadb127851128d478"}[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-qgis:",P.l=(t,a,n,o)=>{if(e[t])e[t].push(a);else{var i,u;if(void 0!==n)for(var s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var d=s[l];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==r+n){i=d;break}}i||(u=!0,(i=document.createElement("script")).charset="utf-8",P.nc&&i.setAttribute("nonce",P.nc),i.setAttribute("data-webpack",r+n),i.src=t),e[t]=[a];var f=(r,a)=>{i.onerror=i.onload=null,clearTimeout(p);var n=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(a)),r)return r(a)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.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-qgis",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})},s=[];return"default"===t&&(u("@jupyter/collaborative-drive","4.2.0",()=>P.e(234).then(()=>()=>P(234))),u("@jupytergis/jupytergis-qgis","0.12.0",()=>P.e(4).then(()=>()=>P(4)))),e[t]=s.length?Promise.all(s).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("+s()+")":1===u?"("+s()+" || "+s()+")":2===u?i.pop()+" "+i.pop():n(u))}return s();function s(){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,s=!0;;u++,i++){var l,d,f=u<e.length?(typeof e[u])[0]:"";if(i>=r.length||"o"==(d=(typeof(l=r[i]))[0]))return!s||("u"==f?u>a&&!n:""==f!=n);if("u"==d){if(!s||"u"!=f)return!1}else if(s)if(f==d)if(u<=a){if(l!=e[u])return!1}else{if(n?l>e[u]:l<e[u])return!1;l!=e[u]&&(s=!1)}else if("s"!=f&&"n"!=f){if(n||u<=a)return!1;s=!1,u--}else{if(u<=a||d<f!=n)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,u--)}}var p=[],c=p.pop.bind(p);for(i=1;i<e.length;i++){var h=e[i];p.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()),s=e=>Object.keys(e).reduce((r,t)=>(e[t].eager&&(r[t]=e[t]),r),{}),l=(e,r,t,n)=>{var i=n?s(e[r]):e[r];return(r=Object.keys(i).reduce((e,r)=>!o(t,r)||e&&!a(e,r)?e:r,0))&&i[r]},d=(e,r,t)=>{var n=t?s(e[r]):e[r];return Object.keys(n).reduce((e,r)=>!e||!n[e].loaded&&a(e,r)?r:e,0)},f=(e,r,t,a)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+n(a)+")",p=(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),y=(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 s=l(r,t,n,a);return s?u(s):o?o():void c(p(r,e,t,n,a))}),b=v((e,r,t,a,n,s)=>{if(!i(r,t))return g(e,t,s);var l=d(r,t,a);return o(n,l)||h(f(r,t,l,n)),u(r[t][l])}),m={},j={85:()=>b("default","@jupyterlab/statedb",!1,[1,4,5,3]),125:()=>b("default","@jupyterlab/services",!1,[1,7,5,3]),132:()=>b("default","@jupyterlab/rendermime",!1,[1,4,5,3]),171:()=>b("default","@jupyterlab/console",!1,[1,4,5,3]),205:()=>b("default","@jupytergis/jupytergis-core",!1,[2,0,12,0]),247:()=>b("default","@lumino/widgets",!1,[1,2,3,1,,"alpha",1]),249:()=>b("default","@jupyterlab/settingregistry",!1,[1,4,5,3]),285:()=>b("default","@jupyterlab/apputils",!1,[1,4,6,3]),444:()=>b("default","@jupytergis/schema",!1,[2,0,12,0]),526:()=>b("default","@jupyterlab/coreutils",!1,[1,6,5,3]),592:()=>b("default","@jupyterlab/codeeditor",!1,[1,4,5,3]),678:()=>b("default","@jupytergis/base",!1,[2,0,12,0]),911:()=>y("default","@jupyter/collaborative-drive",!1,[1,4,1,2],()=>P.e(234).then(()=>()=>P(234))),262:()=>b("default","@lumino/coreutils",!1,[1,2,0,0])},w={4:[85,125,132,171,205,247,249,285,444,526,592,678,911],234:[262]},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)}}})},(()=>{var e={617: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,s=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);s<o.length;s++)n=o[s],P.o(e,n)&&e[n]&&e[n][0](),e[n]=0},t=self.webpackChunk_jupytergis_jupytergis_qgis=self.webpackChunk_jupytergis_jupytergis_qgis||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),P.nc=void 0;var _=P(7);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB)["@jupytergis/jupytergis-qgis"]=_})();
@@ -0,0 +1,4 @@
1
+ /* This is a generated file of CSS imports */
2
+ /* It was generated by @jupyterlab/builder in Build.ensureAssets() */
3
+
4
+ import '@jupytergis/jupytergis-qgis/style/index.js';
@@ -0,0 +1,22 @@
1
+ {
2
+ "packages": [
3
+ {
4
+ "name": "@jupyter/collaborative-drive",
5
+ "versionInfo": "4.2.0",
6
+ "licenseId": "BSD-3-Clause",
7
+ "extractedText": ""
8
+ },
9
+ {
10
+ "name": "css-loader",
11
+ "versionInfo": "6.11.0",
12
+ "licenseId": "MIT",
13
+ "extractedText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
14
+ },
15
+ {
16
+ "name": "style-loader",
17
+ "versionInfo": "3.3.4",
18
+ "licenseId": "MIT",
19
+ "extractedText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
20
+ }
21
+ ]
22
+ }