@jupytergis/base 0.6.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/annotations/components/Annotation.d.ts +2 -3
- package/lib/annotations/components/Annotation.js +2 -9
- package/lib/commands/BaseCommandIDs.d.ts +1 -0
- package/lib/commands/BaseCommandIDs.js +1 -0
- package/lib/commands/index.js +15 -0
- package/lib/constants.js +1 -0
- package/lib/dialogs/symbology/components/color_ramp/ColorRamp.js +1 -1
- package/lib/dialogs/symbology/vector_layer/types/Heatmap.js +2 -2
- package/lib/formbuilder/formselectors.js +3 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/keybindings.json +2 -2
- package/lib/mainview/mainView.d.ts +8 -1
- package/lib/mainview/mainView.js +24 -1
- package/lib/mainview/mainviewwidget.d.ts +11 -4
- package/lib/mainview/mainviewwidget.js +3 -2
- package/lib/menus.js +4 -0
- package/lib/panelview/annotationPanel.d.ts +3 -17
- package/lib/panelview/annotationPanel.js +5 -22
- package/lib/panelview/components/filter-panel/Filter.d.ts +2 -19
- package/lib/panelview/components/filter-panel/Filter.js +26 -59
- package/lib/panelview/components/identify-panel/IdentifyPanel.d.ts +6 -14
- package/lib/panelview/components/identify-panel/IdentifyPanel.js +14 -52
- package/lib/panelview/components/layers.d.ts +10 -12
- package/lib/panelview/components/layers.js +109 -79
- package/lib/panelview/index.d.ts +0 -1
- package/lib/panelview/index.js +0 -1
- package/lib/panelview/leftpanel.d.ts +8 -47
- package/lib/panelview/leftpanel.js +32 -154
- package/lib/panelview/objectproperties.d.ts +20 -15
- package/lib/panelview/objectproperties.js +12 -34
- package/lib/panelview/rightpanel.d.ts +8 -22
- package/lib/panelview/rightpanel.js +32 -77
- package/lib/shared/components/Tabs.d.ts +7 -1
- package/lib/shared/components/Tabs.js +6 -1
- package/lib/stacBrowser/components/{StacPanelView.d.ts → StacPanel.d.ts} +2 -2
- package/lib/stacBrowser/components/{StacPanelView.js → StacPanel.js} +3 -3
- package/lib/stacBrowser/index.d.ts +1 -1
- package/lib/stacBrowser/index.js +1 -1
- package/lib/tools.js +26 -0
- package/lib/types.d.ts +1 -9
- package/lib/widget.d.ts +8 -3
- package/lib/widget.js +8 -4
- package/package.json +4 -2
- package/style/base.css +18 -2
- package/style/shared/tabs.css +16 -2
- package/style/stacBrowser.css +0 -6
- package/style/tabPanel.css +91 -0
- package/style/temporalSlider.css +1 -0
- package/lib/panelview/model.d.ts +0 -19
- package/lib/panelview/model.js +0 -30
- package/lib/stacBrowser/StacBrowser.d.ts +0 -7
- package/lib/stacBrowser/StacBrowser.js +0 -16
- package/lib/stacBrowser/StacPanel.d.ts +0 -14
- package/lib/stacBrowser/StacPanel.js +0 -16
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
.jgis-panel-tab-content {
|
|
2
|
+
border-radius: 5px;
|
|
3
|
+
font-size: 10px;
|
|
4
|
+
padding-bottom: 50px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.jgis-stac-browser-collection {
|
|
8
|
+
flex-wrap: wrap;
|
|
9
|
+
margin-top: 0.5rem;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.jgis-stac-browser-section-item {
|
|
13
|
+
border-radius: 1rem !important;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.jgis-stac-browser-results-item {
|
|
18
|
+
border-radius: 1rem !important;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
white-space: normal !important;
|
|
21
|
+
height: auto !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.jgis-stac-browser-results-list {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
gap: 1rem;
|
|
28
|
+
word-break: break-word;
|
|
29
|
+
padding: 0.25rem;
|
|
30
|
+
margin-right: 0.5rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.jgis-stac-browser-date-picker {
|
|
34
|
+
display: flex;
|
|
35
|
+
justify-content: space-around;
|
|
36
|
+
flex-wrap: wrap;
|
|
37
|
+
gap: 0.5rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.jgis-stac-browser-filters-panel {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
gap: 0.5rem;
|
|
44
|
+
align-items: flex-start;
|
|
45
|
+
padding: 0 0.5rem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.jgis-stac-filter-trigger {
|
|
49
|
+
max-width: fit-content;
|
|
50
|
+
border: 1px solid var(--jp-border-color0);
|
|
51
|
+
padding: 0.5rem;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
font-weight: bold;
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
gap: 0.15rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.jgis-stac-filter-trigger:disabled {
|
|
60
|
+
cursor: not-allowed;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.jgis-stac-filter-section-container {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
gap: 0.25rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.jgis-stac-filter-section-badges {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-wrap: wrap;
|
|
72
|
+
gap: 0.25rem;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.jgis-stac-datepicker-icon {
|
|
76
|
+
width: 1rem;
|
|
77
|
+
height: 1rem;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.jgis-stac-badge {
|
|
81
|
+
gap: 0.25rem;
|
|
82
|
+
padding-right: 0.3rem !important;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.jgis-stac-badge-icon:hover {
|
|
86
|
+
background-color: color-mix(
|
|
87
|
+
in srgb,
|
|
88
|
+
var(--jp-error-color0),
|
|
89
|
+
transparent 20%
|
|
90
|
+
) !important;
|
|
91
|
+
}
|
package/style/temporalSlider.css
CHANGED
package/lib/panelview/model.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { IJupyterGISDoc, IJupyterGISModel, IJupyterGISTracker, IJupyterGISWidget } from '@jupytergis/schema';
|
|
2
|
-
import { ISignal } from '@lumino/signaling';
|
|
3
|
-
import { IControlPanelModel } from "../types";
|
|
4
|
-
export declare class ControlPanelModel implements IControlPanelModel {
|
|
5
|
-
constructor(options: ControlPanelModel.IOptions);
|
|
6
|
-
get documentChanged(): ISignal<IJupyterGISTracker, IJupyterGISWidget | null>;
|
|
7
|
-
get filePath(): string | undefined;
|
|
8
|
-
get jGISModel(): IJupyterGISModel | undefined;
|
|
9
|
-
get sharedModel(): IJupyterGISDoc | undefined;
|
|
10
|
-
disconnect(f: any): void;
|
|
11
|
-
private readonly _tracker;
|
|
12
|
-
private _documentChanged;
|
|
13
|
-
}
|
|
14
|
-
declare namespace ControlPanelModel {
|
|
15
|
-
interface IOptions {
|
|
16
|
-
tracker: IJupyterGISTracker;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export {};
|
package/lib/panelview/model.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export class ControlPanelModel {
|
|
2
|
-
constructor(options) {
|
|
3
|
-
this._tracker = options.tracker;
|
|
4
|
-
this._documentChanged = this._tracker.currentChanged;
|
|
5
|
-
}
|
|
6
|
-
get documentChanged() {
|
|
7
|
-
return this._documentChanged;
|
|
8
|
-
}
|
|
9
|
-
get filePath() {
|
|
10
|
-
var _a;
|
|
11
|
-
return (_a = this._tracker.currentWidget) === null || _a === void 0 ? void 0 : _a.model.filePath;
|
|
12
|
-
}
|
|
13
|
-
get jGISModel() {
|
|
14
|
-
var _a;
|
|
15
|
-
return (_a = this._tracker.currentWidget) === null || _a === void 0 ? void 0 : _a.model;
|
|
16
|
-
}
|
|
17
|
-
get sharedModel() {
|
|
18
|
-
var _a;
|
|
19
|
-
return (_a = this._tracker.currentWidget) === null || _a === void 0 ? void 0 : _a.model.sharedModel;
|
|
20
|
-
}
|
|
21
|
-
disconnect(f) {
|
|
22
|
-
this._tracker.forEach(w => {
|
|
23
|
-
w.model.sharedLayersChanged.disconnect(f);
|
|
24
|
-
w.model.sharedSourcesChanged.disconnect(f);
|
|
25
|
-
w.model.sharedOptionsChanged.disconnect(f);
|
|
26
|
-
});
|
|
27
|
-
this._tracker.forEach(w => w.model.themeChanged.disconnect(f));
|
|
28
|
-
this._tracker.forEach(w => w.model.clientStateChanged.disconnect(f));
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IControlPanelModel } from "../types";
|
|
3
|
-
interface IStacBrowserDialogProps {
|
|
4
|
-
controlPanelModel: IControlPanelModel;
|
|
5
|
-
}
|
|
6
|
-
declare const StacBrowser: ({ controlPanelModel }: IStacBrowserDialogProps) => React.JSX.Element;
|
|
7
|
-
export default StacBrowser;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import StacPanelView from "./components/StacPanelView";
|
|
3
|
-
const StacBrowser = ({ controlPanelModel }) => {
|
|
4
|
-
const [jgisModel, setJgisModel] = useState(controlPanelModel === null || controlPanelModel === void 0 ? void 0 : controlPanelModel.jGISModel);
|
|
5
|
-
useEffect(() => {
|
|
6
|
-
const handleCurrentChanged = (_, widget) => {
|
|
7
|
-
setJgisModel(widget === null || widget === void 0 ? void 0 : widget.model);
|
|
8
|
-
};
|
|
9
|
-
controlPanelModel.documentChanged.connect(handleCurrentChanged);
|
|
10
|
-
return () => {
|
|
11
|
-
controlPanelModel.documentChanged.disconnect(handleCurrentChanged);
|
|
12
|
-
};
|
|
13
|
-
}, [controlPanelModel]);
|
|
14
|
-
return React.createElement(StacPanelView, { model: jgisModel });
|
|
15
|
-
};
|
|
16
|
-
export default StacBrowser;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IJupyterGISTracker } from '@jupytergis/schema';
|
|
2
|
-
import { Panel } from '@lumino/widgets';
|
|
3
|
-
import { IControlPanelModel } from "../types";
|
|
4
|
-
export declare class StacPanel extends Panel {
|
|
5
|
-
constructor(options: StacPanel.IOptions);
|
|
6
|
-
private _model;
|
|
7
|
-
}
|
|
8
|
-
export declare namespace StacPanel {
|
|
9
|
-
interface IOptions {
|
|
10
|
-
model: IControlPanelModel;
|
|
11
|
-
tracker: IJupyterGISTracker;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export default StacPanel;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ReactWidget } from '@jupyterlab/ui-components';
|
|
2
|
-
import { Panel } from '@lumino/widgets';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import StacBrowser from "./StacBrowser";
|
|
5
|
-
export class StacPanel extends Panel {
|
|
6
|
-
constructor(options) {
|
|
7
|
-
super();
|
|
8
|
-
this._model = options.model;
|
|
9
|
-
this.id = 'jupytergis::stacPanel';
|
|
10
|
-
this.title.caption = 'STAC';
|
|
11
|
-
this.title.label = 'STAC';
|
|
12
|
-
this.addClass('jgis-scrollable');
|
|
13
|
-
this.addWidget(ReactWidget.create(React.createElement(StacBrowser, { controlPanelModel: this._model })));
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export default StacPanel;
|