@jupytergis/base 0.12.0 → 0.12.2
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/constants.d.ts +3 -2
- package/lib/dialogs/layerBrowserDialog.d.ts +3 -3
- package/lib/dialogs/layerBrowserDialog.js +9 -10
- package/lib/formbuilder/objectform/StoryEditorForm.js +19 -2
- package/lib/mainview/mainView.d.ts +8 -2
- package/lib/mainview/mainView.js +40 -11
- package/lib/mainview/mainviewwidget.js +2 -2
- package/lib/panelview/leftpanel.d.ts +2 -1
- package/lib/panelview/leftpanel.js +46 -29
- package/lib/panelview/rightpanel.d.ts +2 -1
- package/lib/panelview/rightpanel.js +13 -18
- package/lib/panelview/story-maps/MobileSpectaPanel.d.ts +7 -0
- package/lib/panelview/story-maps/MobileSpectaPanel.js +114 -0
- package/lib/panelview/story-maps/StoryNavBar.d.ts +3 -2
- package/lib/panelview/story-maps/StoryNavBar.js +18 -6
- package/lib/panelview/story-maps/StoryViewerPanel.d.ts +10 -0
- package/lib/panelview/story-maps/StoryViewerPanel.js +44 -18
- package/lib/panelview/story-maps/components/StoryImageSection.d.ts +2 -7
- package/lib/panelview/story-maps/components/StoryImageSection.js +2 -4
- package/lib/panelview/story-maps/components/StorySubtitleSection.d.ts +2 -6
- package/lib/panelview/story-maps/components/StorySubtitleSection.js +2 -4
- package/lib/panelview/story-maps/components/StoryTitleSection.d.ts +2 -7
- package/lib/panelview/story-maps/components/StoryTitleSection.js +2 -3
- package/lib/shared/components/Button.js +2 -2
- package/lib/shared/components/Calendar.js +0 -1
- package/lib/shared/components/Checkbox.d.ts +1 -1
- package/lib/shared/components/Checkbox.js +1 -1
- package/lib/shared/components/Dialog.d.ts +1 -1
- package/lib/shared/components/Dialog.js +1 -1
- package/lib/shared/components/Drawer.d.ts +13 -0
- package/lib/shared/components/Drawer.js +59 -0
- package/lib/shared/components/DropdownMenu.d.ts +1 -1
- package/lib/shared/components/DropdownMenu.js +1 -1
- package/lib/shared/components/Popover.d.ts +1 -1
- package/lib/shared/components/Popover.js +1 -1
- package/lib/shared/components/RadioGroup.d.ts +1 -1
- package/lib/shared/components/RadioGroup.js +1 -1
- package/lib/shared/components/Sheet.d.ts +15 -0
- package/lib/shared/components/Sheet.js +64 -0
- package/lib/shared/components/Switch.d.ts +1 -1
- package/lib/shared/components/Switch.js +1 -1
- package/lib/shared/components/Tabs.d.ts +1 -1
- package/lib/shared/components/Tabs.js +1 -1
- package/lib/shared/components/ToggleGroup.d.ts +1 -1
- package/lib/shared/components/ToggleGroup.js +1 -1
- package/lib/shared/hooks/useMediaQuery.d.ts +9 -0
- package/lib/shared/hooks/useMediaQuery.js +32 -0
- package/lib/tools.d.ts +2 -1
- package/lib/tools.js +33 -38
- package/package.json +5 -13
- package/style/base.css +23 -8
- package/style/shared/drawer.css +154 -0
- package/style/shared/sheet.css +258 -0
- package/style/shared/tabs.css +0 -6
- package/style/storyPanel.css +39 -9
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
@keyframes sheet-fade-in {
|
|
2
|
+
from {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
}
|
|
5
|
+
to {
|
|
6
|
+
opacity: 1;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@keyframes sheet-fade-out {
|
|
11
|
+
from {
|
|
12
|
+
opacity: 1;
|
|
13
|
+
}
|
|
14
|
+
to {
|
|
15
|
+
opacity: 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@keyframes sheet-slide-in-right {
|
|
20
|
+
from {
|
|
21
|
+
transform: translateX(100%);
|
|
22
|
+
}
|
|
23
|
+
to {
|
|
24
|
+
transform: translateX(0);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@keyframes sheet-slide-out-right {
|
|
29
|
+
from {
|
|
30
|
+
transform: translateX(0);
|
|
31
|
+
}
|
|
32
|
+
to {
|
|
33
|
+
transform: translateX(100%);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@keyframes sheet-slide-in-left {
|
|
38
|
+
from {
|
|
39
|
+
transform: translateX(-100%);
|
|
40
|
+
}
|
|
41
|
+
to {
|
|
42
|
+
transform: translateX(0);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@keyframes sheet-slide-out-left {
|
|
47
|
+
from {
|
|
48
|
+
transform: translateX(0);
|
|
49
|
+
}
|
|
50
|
+
to {
|
|
51
|
+
transform: translateX(-100%);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@keyframes sheet-slide-in-top {
|
|
56
|
+
from {
|
|
57
|
+
transform: translateY(-100%);
|
|
58
|
+
}
|
|
59
|
+
to {
|
|
60
|
+
transform: translateY(0);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@keyframes sheet-slide-out-top {
|
|
65
|
+
from {
|
|
66
|
+
transform: translateY(0);
|
|
67
|
+
}
|
|
68
|
+
to {
|
|
69
|
+
transform: translateY(-100%);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@keyframes sheet-slide-in-bottom {
|
|
74
|
+
from {
|
|
75
|
+
transform: translateY(100%);
|
|
76
|
+
}
|
|
77
|
+
to {
|
|
78
|
+
transform: translateY(0);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@keyframes sheet-slide-out-bottom {
|
|
83
|
+
from {
|
|
84
|
+
transform: translateY(0);
|
|
85
|
+
}
|
|
86
|
+
to {
|
|
87
|
+
transform: translateY(100%);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.jgis-sheet-overlay {
|
|
92
|
+
position: fixed;
|
|
93
|
+
inset: 0;
|
|
94
|
+
z-index: 50;
|
|
95
|
+
background-color: color-mix(in srgb, black, transparent 90%);
|
|
96
|
+
backdrop-filter: blur(2px);
|
|
97
|
+
transition-duration: 0.1s;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.jgis-sheet-overlay[data-state='open'] {
|
|
101
|
+
animation: sheet-fade-in 0.1s ease-out;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.jgis-sheet-overlay[data-state='closed'] {
|
|
105
|
+
animation: sheet-fade-out 0.1s ease-in;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.jgis-sheet-content {
|
|
109
|
+
position: fixed;
|
|
110
|
+
z-index: 50;
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-direction: column;
|
|
113
|
+
gap: 1rem;
|
|
114
|
+
font-size: 0.875rem;
|
|
115
|
+
background-color: var(--jp-layout-color0);
|
|
116
|
+
color: var(--jp-ui-font-color0);
|
|
117
|
+
border-color: var(--jp-border-color0);
|
|
118
|
+
box-shadow:
|
|
119
|
+
0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
120
|
+
0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
121
|
+
transition-duration: 0.2s;
|
|
122
|
+
transition-timing-function: ease-in-out;
|
|
123
|
+
background-clip: padding-box;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Right */
|
|
127
|
+
.jgis-sheet-content[data-side='right'] {
|
|
128
|
+
top: 0;
|
|
129
|
+
right: 0;
|
|
130
|
+
bottom: 0;
|
|
131
|
+
height: 100%;
|
|
132
|
+
width: 75%;
|
|
133
|
+
border-left-width: 1px;
|
|
134
|
+
border-left-style: solid;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.jgis-sheet-content[data-side='right'][data-state='open'] {
|
|
138
|
+
animation:
|
|
139
|
+
sheet-fade-in 0.2s ease-out,
|
|
140
|
+
sheet-slide-in-right 0.2s ease-out;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.jgis-sheet-content[data-side='right'][data-state='closed'] {
|
|
144
|
+
animation:
|
|
145
|
+
sheet-fade-out 0.2s ease-in,
|
|
146
|
+
sheet-slide-out-right 0.2s ease-in;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@media (min-width: 640px) {
|
|
150
|
+
.jgis-sheet-content[data-side='right'] {
|
|
151
|
+
max-width: 24rem;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* Left */
|
|
156
|
+
.jgis-sheet-content[data-side='left'] {
|
|
157
|
+
top: 0;
|
|
158
|
+
bottom: 0;
|
|
159
|
+
left: 0;
|
|
160
|
+
height: 100%;
|
|
161
|
+
width: 75%;
|
|
162
|
+
border-right-width: 1px;
|
|
163
|
+
border-right-style: solid;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.jgis-sheet-content[data-side='left'][data-state='open'] {
|
|
167
|
+
animation:
|
|
168
|
+
sheet-fade-in 0.2s ease-out,
|
|
169
|
+
sheet-slide-in-left 0.2s ease-out;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.jgis-sheet-content[data-side='left'][data-state='closed'] {
|
|
173
|
+
animation:
|
|
174
|
+
sheet-fade-out 0.2s ease-in,
|
|
175
|
+
sheet-slide-out-left 0.2s ease-in;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@media (min-width: 640px) {
|
|
179
|
+
.jgis-sheet-content[data-side='left'] {
|
|
180
|
+
max-width: 24rem;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* Top */
|
|
185
|
+
.jgis-sheet-content[data-side='top'] {
|
|
186
|
+
left: 0;
|
|
187
|
+
right: 0;
|
|
188
|
+
top: 0;
|
|
189
|
+
height: auto;
|
|
190
|
+
border-bottom-width: 1px;
|
|
191
|
+
border-bottom-style: solid;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.jgis-sheet-content[data-side='top'][data-state='open'] {
|
|
195
|
+
animation:
|
|
196
|
+
sheet-fade-in 0.2s ease-out,
|
|
197
|
+
sheet-slide-in-top 0.2s ease-out;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.jgis-sheet-content[data-side='top'][data-state='closed'] {
|
|
201
|
+
animation:
|
|
202
|
+
sheet-fade-out 0.2s ease-in,
|
|
203
|
+
sheet-slide-out-top 0.2s ease-in;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* Bottom */
|
|
207
|
+
.jgis-sheet-content[data-side='bottom'] {
|
|
208
|
+
left: 0;
|
|
209
|
+
right: 0;
|
|
210
|
+
bottom: 0;
|
|
211
|
+
height: auto;
|
|
212
|
+
border-top-width: 1px;
|
|
213
|
+
border-top-style: solid;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.jgis-sheet-content[data-side='bottom'][data-state='open'] {
|
|
217
|
+
animation:
|
|
218
|
+
sheet-fade-in 0.2s ease-out,
|
|
219
|
+
sheet-slide-in-bottom 0.2s ease-out;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.jgis-sheet-content[data-side='bottom'][data-state='closed'] {
|
|
223
|
+
animation:
|
|
224
|
+
sheet-fade-out 0.2s ease-in,
|
|
225
|
+
sheet-slide-out-bottom 0.2s ease-in;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.jgis-sheet-close {
|
|
229
|
+
position: absolute;
|
|
230
|
+
top: 0.75rem;
|
|
231
|
+
right: 0.75rem;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.jgis-sheet-header {
|
|
235
|
+
display: flex;
|
|
236
|
+
flex-direction: column;
|
|
237
|
+
gap: 0.125rem;
|
|
238
|
+
padding: 1rem;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.jgis-sheet-footer {
|
|
242
|
+
display: flex;
|
|
243
|
+
flex-direction: column;
|
|
244
|
+
gap: 0.5rem;
|
|
245
|
+
padding: 1rem;
|
|
246
|
+
margin-top: auto;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.jgis-sheet-title {
|
|
250
|
+
font-size: 1rem;
|
|
251
|
+
font-weight: 500;
|
|
252
|
+
color: var(--jp-ui-font-color0);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.jgis-sheet-description {
|
|
256
|
+
font-size: 0.875rem;
|
|
257
|
+
color: var(--jp-ui-font-color2);
|
|
258
|
+
}
|
package/style/shared/tabs.css
CHANGED
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
justify-content: center;
|
|
5
5
|
align-items: center;
|
|
6
6
|
background-color: var(--jp-layout-color0);
|
|
7
|
-
box-shadow:
|
|
8
|
-
0 4px 8px 0 rgba(0, 0, 0, 0.2),
|
|
9
|
-
0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
|
10
|
-
border-radius: 5px;
|
|
11
7
|
}
|
|
12
8
|
.jgis-tabs-list {
|
|
13
9
|
display: inline-flex;
|
|
@@ -19,8 +15,6 @@
|
|
|
19
15
|
gap: 1rem;
|
|
20
16
|
width: 100%;
|
|
21
17
|
font-size: 9px;
|
|
22
|
-
border-top-left-radius: 5px;
|
|
23
|
-
border-top-right-radius: 5px;
|
|
24
18
|
overflow-x: scroll;
|
|
25
19
|
}
|
|
26
20
|
|
package/style/storyPanel.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.jgis-story-viewer-panel {
|
|
2
2
|
padding: 1rem;
|
|
3
|
-
overflow:
|
|
3
|
+
overflow: auto;
|
|
4
4
|
position: relative;
|
|
5
5
|
}
|
|
6
6
|
|
|
@@ -77,14 +77,36 @@
|
|
|
77
77
|
justify-content: center;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
.jgis-story-navbar .jgis-button.jgis-story-navbar-button {
|
|
81
|
+
color: var(--jp-ui-inverse-font-color0);
|
|
82
|
+
background-color: var(--jp-inverse-layout-color0);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.jgis-story-viewer-image-container
|
|
86
|
+
.jgis-story-viewer-nav-container
|
|
87
|
+
.jgis-story-navbar
|
|
88
|
+
.jgis-story-navbar-button {
|
|
89
|
+
color: var(--jp-ui-font-color0);
|
|
90
|
+
background-color: var(--jp-layout-color0);
|
|
91
|
+
}
|
|
92
|
+
|
|
80
93
|
.jgis-story-viewer-subtitle-container {
|
|
81
94
|
display: flex;
|
|
82
95
|
align-items: center;
|
|
83
|
-
/* justify-content: space-between; */
|
|
84
|
-
/* gap: 1rem; */
|
|
85
96
|
padding-top: 1rem;
|
|
86
97
|
}
|
|
87
98
|
|
|
99
|
+
.jgis-story-viewer-nav-container-specta-mobile {
|
|
100
|
+
position: absolute;
|
|
101
|
+
left: 0;
|
|
102
|
+
width: 100%;
|
|
103
|
+
padding: 0 1rem;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.jgis-story-viewer-nav-container-specta-mobile .jgis-story-navbar {
|
|
107
|
+
justify-content: space-between;
|
|
108
|
+
}
|
|
109
|
+
|
|
88
110
|
.jgis-story-navbar.jgis-story-navbar-specta-mod {
|
|
89
111
|
position: fixed;
|
|
90
112
|
top: 50%;
|
|
@@ -134,6 +156,8 @@
|
|
|
134
156
|
height: 100%;
|
|
135
157
|
margin: unset;
|
|
136
158
|
top: unset;
|
|
159
|
+
box-shadow: unset;
|
|
160
|
+
max-height: unset;
|
|
137
161
|
}
|
|
138
162
|
|
|
139
163
|
.jgis-specta-story-panel-container {
|
|
@@ -145,16 +169,16 @@
|
|
|
145
169
|
overflow: auto;
|
|
146
170
|
background: linear-gradient(
|
|
147
171
|
to left,
|
|
148
|
-
var(--jgis-specta-bg-color,
|
|
172
|
+
var(--jgis-specta-bg-color, --jp-layout-color0) 49%,
|
|
149
173
|
color-mix(
|
|
150
174
|
in srgb,
|
|
151
|
-
var(--jgis-specta-bg-color,
|
|
175
|
+
var(--jgis-specta-bg-color, --jp-layout-color0) 60%,
|
|
152
176
|
transparent
|
|
153
177
|
)
|
|
154
178
|
65%,
|
|
155
179
|
color-mix(
|
|
156
180
|
in srgb,
|
|
157
|
-
var(--jgis-specta-bg-color,
|
|
181
|
+
var(--jgis-specta-bg-color, --jp-layout-color0) 50%,
|
|
158
182
|
transparent
|
|
159
183
|
)
|
|
160
184
|
70%,
|
|
@@ -163,7 +187,7 @@
|
|
|
163
187
|
}
|
|
164
188
|
|
|
165
189
|
.jgis-story-viewer-panel-specta-mod {
|
|
166
|
-
width:
|
|
190
|
+
width: 45%;
|
|
167
191
|
font-size: var(--jp-ui-font-size3);
|
|
168
192
|
padding-right: 1.7rem;
|
|
169
193
|
color: var(--jgis-specta-text-color, var(--jp-ui-inverse-font-color1));
|
|
@@ -175,11 +199,17 @@
|
|
|
175
199
|
.jp-FormGroup-content
|
|
176
200
|
fieldset
|
|
177
201
|
.jp-inputFieldWrapper
|
|
178
|
-
> input#
|
|
202
|
+
> input#root_presentationBgColor,
|
|
179
203
|
.jGIS-property-panel
|
|
180
204
|
.jp-FormGroup-content
|
|
181
205
|
fieldset
|
|
182
206
|
.jp-inputFieldWrapper
|
|
183
|
-
> input#
|
|
207
|
+
> input#root_presentationTextColor {
|
|
184
208
|
height: revert;
|
|
185
209
|
}
|
|
210
|
+
|
|
211
|
+
.jgis-mobile-specta-trigger-wrapper {
|
|
212
|
+
position: fixed;
|
|
213
|
+
bottom: 0.125rem;
|
|
214
|
+
right: 0.125rem;
|
|
215
|
+
}
|