umap-project 3.3.6__py3-none-any.whl → 3.4.0__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.
Files changed (239) hide show
  1. umap/__init__.py +1 -1
  2. umap/context_processors.py +4 -1
  3. umap/locale/cs_CZ/LC_MESSAGES/django.mo +0 -0
  4. umap/locale/cs_CZ/LC_MESSAGES/django.po +43 -33
  5. umap/locale/da/LC_MESSAGES/django.mo +0 -0
  6. umap/locale/da/LC_MESSAGES/django.po +43 -33
  7. umap/locale/de/LC_MESSAGES/django.mo +0 -0
  8. umap/locale/de/LC_MESSAGES/django.po +35 -29
  9. umap/locale/el/LC_MESSAGES/django.mo +0 -0
  10. umap/locale/el/LC_MESSAGES/django.po +35 -29
  11. umap/locale/en/LC_MESSAGES/django.po +47 -41
  12. umap/locale/es/LC_MESSAGES/django.mo +0 -0
  13. umap/locale/es/LC_MESSAGES/django.po +43 -33
  14. umap/locale/et/LC_MESSAGES/django.mo +0 -0
  15. umap/locale/et/LC_MESSAGES/django.po +58 -54
  16. umap/locale/eu/LC_MESSAGES/django.mo +0 -0
  17. umap/locale/eu/LC_MESSAGES/django.po +43 -33
  18. umap/locale/fa_IR/LC_MESSAGES/django.mo +0 -0
  19. umap/locale/fa_IR/LC_MESSAGES/django.po +43 -33
  20. umap/locale/fr/LC_MESSAGES/django.mo +0 -0
  21. umap/locale/fr/LC_MESSAGES/django.po +36 -30
  22. umap/locale/gl/LC_MESSAGES/django.mo +0 -0
  23. umap/locale/gl/LC_MESSAGES/django.po +43 -33
  24. umap/locale/hu/LC_MESSAGES/django.mo +0 -0
  25. umap/locale/hu/LC_MESSAGES/django.po +35 -29
  26. umap/locale/is/LC_MESSAGES/django.mo +0 -0
  27. umap/locale/is/LC_MESSAGES/django.po +43 -33
  28. umap/locale/it/LC_MESSAGES/django.mo +0 -0
  29. umap/locale/it/LC_MESSAGES/django.po +43 -33
  30. umap/locale/nl/LC_MESSAGES/django.mo +0 -0
  31. umap/locale/nl/LC_MESSAGES/django.po +35 -29
  32. umap/locale/pl/LC_MESSAGES/django.mo +0 -0
  33. umap/locale/pl/LC_MESSAGES/django.po +114 -103
  34. umap/locale/pt/LC_MESSAGES/django.mo +0 -0
  35. umap/locale/pt/LC_MESSAGES/django.po +43 -33
  36. umap/locale/th_TH/LC_MESSAGES/django.mo +0 -0
  37. umap/locale/th_TH/LC_MESSAGES/django.po +310 -109
  38. umap/locale/zh_TW/LC_MESSAGES/django.mo +0 -0
  39. umap/locale/zh_TW/LC_MESSAGES/django.po +80 -70
  40. umap/management/commands/switch_user.py +2 -2
  41. umap/migrations/0018_datalayer_uuid.py +1 -1
  42. umap/models.py +7 -3
  43. umap/settings/local.py.sample +1 -1
  44. umap/static/umap/base.css +89 -32
  45. umap/static/umap/content.css +129 -33
  46. umap/static/umap/css/bar.css +82 -20
  47. umap/static/umap/css/browser.css +163 -0
  48. umap/static/umap/css/contextmenu.css +15 -0
  49. umap/static/umap/css/dialog.css +36 -16
  50. umap/static/umap/css/form.css +123 -33
  51. umap/static/umap/css/icon.css +46 -3
  52. umap/static/umap/css/panel.css +7 -3
  53. umap/static/umap/css/popup.css +34 -8
  54. umap/static/umap/css/tooltip.css +8 -4
  55. umap/static/umap/img/16-white.svg +26 -8
  56. umap/static/umap/img/16.svg +1 -1
  57. umap/static/umap/img/source/16-white.svg +36 -18
  58. umap/static/umap/img/source/16.svg +1 -1
  59. umap/static/umap/js/components/alerts/alert.css +69 -31
  60. umap/static/umap/js/components/alerts/alert.js +20 -2
  61. umap/static/umap/js/components/base.js +1 -1
  62. umap/static/umap/js/modules/browser.js +69 -61
  63. umap/static/umap/js/modules/caption.js +10 -7
  64. umap/static/umap/js/modules/data/features.js +85 -60
  65. umap/static/umap/js/modules/data/fields.js +446 -0
  66. umap/static/umap/js/modules/data/layer.js +78 -184
  67. umap/static/umap/js/modules/domutils.js +109 -0
  68. umap/static/umap/js/modules/filters.js +780 -0
  69. umap/static/umap/js/modules/form/builder.js +8 -5
  70. umap/static/umap/js/modules/form/fields.js +111 -221
  71. umap/static/umap/js/modules/formatter.js +24 -1
  72. umap/static/umap/js/modules/help.js +4 -3
  73. umap/static/umap/js/modules/i18n.js +1 -1
  74. umap/static/umap/js/modules/importer.js +1 -1
  75. umap/static/umap/js/modules/importers/opendata.js +15 -0
  76. umap/static/umap/js/modules/importers/openrouteservice.js +6 -1
  77. umap/static/umap/js/modules/managers.js +2 -2
  78. umap/static/umap/js/modules/permissions.js +39 -31
  79. umap/static/umap/js/modules/rendering/controls.js +11 -9
  80. umap/static/umap/js/modules/rendering/icon.js +3 -8
  81. umap/static/umap/js/modules/rendering/layers/base.js +1 -1
  82. umap/static/umap/js/modules/rendering/layers/classified.js +18 -11
  83. umap/static/umap/js/modules/rendering/layers/cluster.js +5 -3
  84. umap/static/umap/js/modules/rendering/layers/heat.js +27 -21
  85. umap/static/umap/js/modules/rendering/template.js +50 -23
  86. umap/static/umap/js/modules/rendering/ui.js +29 -23
  87. umap/static/umap/js/modules/rules.js +38 -44
  88. umap/static/umap/js/modules/schema.js +3 -6
  89. umap/static/umap/js/modules/share.js +5 -4
  90. umap/static/umap/js/modules/tableeditor.js +50 -38
  91. umap/static/umap/js/modules/templates.js +2 -3
  92. umap/static/umap/js/modules/ui/bar.js +55 -23
  93. umap/static/umap/js/modules/ui/dialog.js +38 -27
  94. umap/static/umap/js/modules/ui/panel.js +23 -8
  95. umap/static/umap/js/modules/ui/tooltip.js +6 -5
  96. umap/static/umap/js/modules/umap.js +151 -56
  97. umap/static/umap/js/modules/utils.js +24 -2
  98. umap/static/umap/js/umap.core.js +1 -110
  99. umap/static/umap/locale/am_ET.js +52 -17
  100. umap/static/umap/locale/am_ET.json +52 -17
  101. umap/static/umap/locale/ar.js +52 -17
  102. umap/static/umap/locale/ar.json +52 -17
  103. umap/static/umap/locale/ast.js +52 -17
  104. umap/static/umap/locale/ast.json +52 -17
  105. umap/static/umap/locale/bg.js +52 -17
  106. umap/static/umap/locale/bg.json +52 -17
  107. umap/static/umap/locale/br.js +48 -22
  108. umap/static/umap/locale/br.json +48 -22
  109. umap/static/umap/locale/ca.js +52 -17
  110. umap/static/umap/locale/ca.json +52 -17
  111. umap/static/umap/locale/cs_CZ.js +52 -17
  112. umap/static/umap/locale/cs_CZ.json +52 -17
  113. umap/static/umap/locale/da.js +54 -17
  114. umap/static/umap/locale/da.json +54 -17
  115. umap/static/umap/locale/de.js +51 -16
  116. umap/static/umap/locale/de.json +51 -16
  117. umap/static/umap/locale/el.js +52 -17
  118. umap/static/umap/locale/el.json +52 -17
  119. umap/static/umap/locale/en.js +53 -16
  120. umap/static/umap/locale/en.json +53 -16
  121. umap/static/umap/locale/en_US.json +52 -17
  122. umap/static/umap/locale/es.js +54 -17
  123. umap/static/umap/locale/es.json +54 -17
  124. umap/static/umap/locale/et.js +91 -56
  125. umap/static/umap/locale/et.json +91 -56
  126. umap/static/umap/locale/eu.js +84 -49
  127. umap/static/umap/locale/eu.json +84 -49
  128. umap/static/umap/locale/fa_IR.js +52 -17
  129. umap/static/umap/locale/fa_IR.json +52 -17
  130. umap/static/umap/locale/fi.js +52 -17
  131. umap/static/umap/locale/fi.json +52 -17
  132. umap/static/umap/locale/fr.js +53 -16
  133. umap/static/umap/locale/fr.json +53 -16
  134. umap/static/umap/locale/gl.js +52 -17
  135. umap/static/umap/locale/gl.json +52 -17
  136. umap/static/umap/locale/he.js +52 -17
  137. umap/static/umap/locale/he.json +52 -17
  138. umap/static/umap/locale/hr.js +52 -17
  139. umap/static/umap/locale/hr.json +52 -17
  140. umap/static/umap/locale/hu.js +59 -24
  141. umap/static/umap/locale/hu.json +59 -24
  142. umap/static/umap/locale/id.js +52 -17
  143. umap/static/umap/locale/id.json +52 -17
  144. umap/static/umap/locale/is.js +52 -17
  145. umap/static/umap/locale/is.json +52 -17
  146. umap/static/umap/locale/it.js +52 -17
  147. umap/static/umap/locale/it.json +52 -17
  148. umap/static/umap/locale/ja.js +52 -17
  149. umap/static/umap/locale/ja.json +52 -17
  150. umap/static/umap/locale/ko.js +52 -17
  151. umap/static/umap/locale/ko.json +52 -17
  152. umap/static/umap/locale/lt.js +52 -17
  153. umap/static/umap/locale/lt.json +52 -17
  154. umap/static/umap/locale/ms.js +52 -17
  155. umap/static/umap/locale/ms.json +52 -17
  156. umap/static/umap/locale/nl.js +52 -17
  157. umap/static/umap/locale/nl.json +52 -17
  158. umap/static/umap/locale/no.js +52 -17
  159. umap/static/umap/locale/no.json +52 -17
  160. umap/static/umap/locale/pl.js +53 -17
  161. umap/static/umap/locale/pl.json +53 -17
  162. umap/static/umap/locale/pl_PL.json +52 -17
  163. umap/static/umap/locale/pt.js +52 -17
  164. umap/static/umap/locale/pt.json +52 -17
  165. umap/static/umap/locale/pt_BR.js +52 -17
  166. umap/static/umap/locale/pt_BR.json +52 -17
  167. umap/static/umap/locale/pt_PT.js +52 -17
  168. umap/static/umap/locale/pt_PT.json +52 -17
  169. umap/static/umap/locale/ro.js +52 -17
  170. umap/static/umap/locale/ro.json +52 -17
  171. umap/static/umap/locale/ru.js +52 -17
  172. umap/static/umap/locale/ru.json +52 -17
  173. umap/static/umap/locale/si.js +1 -1
  174. umap/static/umap/locale/si.json +1 -1
  175. umap/static/umap/locale/sk_SK.js +52 -17
  176. umap/static/umap/locale/sk_SK.json +52 -17
  177. umap/static/umap/locale/sl.js +52 -17
  178. umap/static/umap/locale/sl.json +52 -17
  179. umap/static/umap/locale/sr.js +52 -17
  180. umap/static/umap/locale/sr.json +52 -17
  181. umap/static/umap/locale/sv.js +52 -17
  182. umap/static/umap/locale/sv.json +52 -17
  183. umap/static/umap/locale/th_TH.js +52 -17
  184. umap/static/umap/locale/th_TH.json +52 -17
  185. umap/static/umap/locale/tr.js +52 -17
  186. umap/static/umap/locale/tr.json +52 -17
  187. umap/static/umap/locale/uk_UA.js +52 -17
  188. umap/static/umap/locale/uk_UA.json +52 -17
  189. umap/static/umap/locale/vi.js +52 -17
  190. umap/static/umap/locale/vi.json +52 -17
  191. umap/static/umap/locale/vi_VN.json +52 -17
  192. umap/static/umap/locale/zh.js +52 -17
  193. umap/static/umap/locale/zh.json +52 -17
  194. umap/static/umap/locale/zh_CN.json +52 -17
  195. umap/static/umap/locale/zh_TW.Big5.json +52 -17
  196. umap/static/umap/locale/zh_TW.js +52 -16
  197. umap/static/umap/locale/zh_TW.json +52 -16
  198. umap/static/umap/map.css +63 -226
  199. umap/static/umap/unittests/utils.js +18 -0
  200. umap/static/umap/vars.css +23 -5
  201. umap/templates/umap/components/alerts/alert.html +32 -29
  202. umap/templates/umap/css.html +2 -1
  203. umap/templates/umap/login_popup_end.html +18 -9
  204. umap/templates/umap/user_map_table.html +7 -2
  205. umap/tests/integration/conftest.py +10 -6
  206. umap/tests/integration/test_anonymous_owned_map.py +90 -37
  207. umap/tests/integration/test_basics.py +25 -1
  208. umap/tests/integration/test_browser.py +37 -0
  209. umap/tests/integration/test_conditional_rules.py +107 -52
  210. umap/tests/integration/test_draw_polygon.py +6 -0
  211. umap/tests/integration/test_draw_polyline.py +11 -0
  212. umap/tests/integration/test_edit_marker.py +1 -1
  213. umap/tests/integration/test_export_map.py +19 -0
  214. umap/tests/integration/test_fields.py +541 -0
  215. umap/tests/integration/test_filters.py +616 -0
  216. umap/tests/integration/test_iframe.py +1 -1
  217. umap/tests/integration/test_import.py +38 -42
  218. umap/tests/integration/test_map_preview.py +1 -1
  219. umap/tests/integration/test_picto.py +1 -1
  220. umap/tests/integration/test_popup.py +31 -0
  221. umap/tests/integration/test_remote_data.py +60 -4
  222. umap/tests/integration/test_save.py +1 -1
  223. umap/tests/integration/test_share.py +4 -4
  224. umap/tests/integration/test_tableeditor.py +31 -7
  225. umap/tests/integration/test_websocket_sync.py +71 -20
  226. umap/tests/test_dashboard.py +11 -1
  227. umap/tests/test_statics.py +2 -2
  228. umap/tests/test_utils.py +19 -2
  229. umap/tests/test_views.py +1 -1
  230. umap/urls.py +1 -0
  231. umap/utils.py +8 -1
  232. umap/views.py +5 -0
  233. {umap_project-3.3.6.dist-info → umap_project-3.4.0.dist-info}/METADATA +15 -15
  234. {umap_project-3.3.6.dist-info → umap_project-3.4.0.dist-info}/RECORD +237 -233
  235. umap/static/umap/js/modules/facets.js +0 -164
  236. umap/tests/integration/test_facets_browser.py +0 -279
  237. {umap_project-3.3.6.dist-info → umap_project-3.4.0.dist-info}/WHEEL +0 -0
  238. {umap_project-3.3.6.dist-info → umap_project-3.4.0.dist-info}/entry_points.txt +0 -0
  239. {umap_project-3.3.6.dist-info → umap_project-3.4.0.dist-info}/licenses/LICENSE +0 -0
@@ -6,6 +6,7 @@
6
6
  margin-bottom: 0;
7
7
  min-height: initial;
8
8
  }
9
+
9
10
  .umap-main-edit-toolbox [type=button]:hover {
10
11
  text-decoration: underline;
11
12
  }
@@ -14,35 +15,37 @@
14
15
  padding: 0 var(--text-margin);
15
16
  background-color: inherit;
16
17
  }
18
+
17
19
  .leaflet-container .edit-undo {
18
20
  margin-left: var(--box-margin);
19
21
  }
22
+
20
23
  .leaflet-container .edit-undo[disabled],
21
24
  .leaflet-container .edit-redo[disabled] {
22
25
  filter: invert(.5);
23
26
  }
24
- .leaflet-container .edit-save,
25
- .leaflet-container .edit-disable,
26
- .leaflet-container .connected-peers
27
- {
27
+
28
+ .umap-main-edit-toolbox .soft-round,
29
+ .umap-main-edit-toolbox .round {
28
30
  display: inline-block;
29
31
  height: 32px;
30
32
  line-height: 30px;
31
33
  padding: 0 20px;
32
34
  }
35
+
33
36
  .leaflet-container .connected-peers,
34
- .dark [type=button].connected-peers:hover
35
- {
37
+ .dark [type=button].connected-peers:hover {
36
38
  background-color: var(--color-lightCyan);
37
39
  color: var(--color-dark);
38
40
  }
39
- .dark [type=button].connected-peers:hover
40
- {
41
+
42
+ .dark [type=button].connected-peers:hover {
41
43
  text-decoration: none;
42
44
  border: 0.5px solid var(--color-brightCyan);
43
45
  }
46
+
44
47
  .dark .off.connected-peers {
45
- background-color: var(--color-lightGray);
48
+ background-color: var(--color-veryLightGray);
46
49
  color: var(--color-darkGray);
47
50
  }
48
51
 
@@ -50,6 +53,7 @@
50
53
  border: 0.5px solid rgba(153, 153, 153, 0.80);
51
54
  text-decoration: none;
52
55
  }
56
+
53
57
  .leaflet-container .edit-save {
54
58
  opacity: 0.5;
55
59
  cursor: not-allowed;
@@ -57,13 +61,16 @@
57
61
  border: 0.5px solid rgba(153, 153, 153, 0.40);
58
62
  background: rgba(153, 153, 153, 0.10);
59
63
  }
64
+
60
65
  .leaflet-container .icon-save {
61
66
  display: none;
62
67
  }
68
+
63
69
  .dark button.edit-save:hover {
64
70
  background: rgba(153, 153, 153, 0.10);
65
71
  text-decoration: none;
66
72
  }
73
+
67
74
  .umap-is-dirty .edit-save {
68
75
  opacity: 1;
69
76
  cursor: pointer;
@@ -71,27 +78,34 @@
71
78
  background: rgba(66, 236, 230, 0.10);
72
79
  color: var(--color-brightCyan);
73
80
  }
81
+
74
82
  .umap-is-dirty .icon-save {
75
83
  display: inline-block;
76
84
  }
85
+
77
86
  .umap-is-dirty .icon-save-disabled {
78
87
  display: none;
79
88
  }
89
+
80
90
  .umap-is-dirty .dark button.edit-save:hover {
81
91
  border-color: rgba(66, 236, 230, 0.80);
82
92
  background: rgba(66, 236, 230, 0.10);
83
93
  }
94
+
84
95
  .leaflet-container .edit-save,
85
96
  .umap-edit-enabled .edit-enable {
86
97
  display: none;
87
98
  }
99
+
88
100
  .umap-edit-enabled .edit-save,
89
101
  .umap-edit-enabled .edit-disable {
90
102
  display: inline-block;
91
103
  }
104
+
92
105
  .umap-caption-bar {
93
106
  display: none;
94
107
  }
108
+
95
109
  .umap-main-edit-toolbox {
96
110
  /* Show a transition from top to bottom when opening it */
97
111
  top: calc(var(--header-height) * -1);
@@ -111,6 +125,7 @@
111
125
  background-color: var(--background-color);
112
126
  color: var(--text-color);
113
127
  }
128
+
114
129
  .umap-left-edit-toolbox,
115
130
  .umap-right-edit-toolbox {
116
131
  display: flex;
@@ -122,6 +137,7 @@
122
137
  width: 39px;
123
138
  height: 100%;
124
139
  }
140
+
125
141
  .umap-main-edit-toolbox .logo a {
126
142
  background-image: url('../img/logo_small.svg');
127
143
  background-position: 0 center;
@@ -132,55 +148,69 @@
132
148
  vertical-align: middle;
133
149
  text-indent: -9999px;
134
150
  }
151
+
135
152
  .umap-main-edit-toolbox .map-name {
136
153
  font-weight: bold;
137
154
  text-align: start;
138
155
  }
156
+
139
157
  .truncate {
140
158
  display: inline-flex;
141
159
  overflow: hidden;
142
160
  white-space: nowrap;
143
161
  text-overflow: ellipsis;
144
162
  }
163
+
145
164
  .umap-main-edit-toolbox .username {
146
165
  max-width: 100px;
147
166
  }
167
+
148
168
  .umap-main-edit-toolbox .share-status {
149
169
  font-style: italic;
150
170
  }
171
+
151
172
  .map-name:after {
152
- content: '\00a0';
173
+ content: '\00a0';
153
174
  padding-inline-start: 3px;
154
175
  width: 1ch;
155
176
  display: inline-block;
156
177
  }
178
+
157
179
  .umap-is-dirty .map-name:after {
158
- content: '*';
180
+ content: '*';
159
181
  }
182
+
160
183
  .umap-edit-enabled .umap-main-edit-toolbox {
161
184
  top: 0;
162
185
  }
186
+
163
187
  .umap-caption-bar h3,
164
188
  .umap-main-edit-toolbox h3 {
165
189
  display: inline;
166
190
  }
191
+
167
192
  .umap-caption-bar .umap-map-author {
168
193
  margin-inline-end: 10px;
169
194
  }
170
- .umap-caption-bar:has(select:not([hidden])) > button + button:after,
171
- .umap-caption-bar > button + button:before {
195
+
196
+ .umap-caption-bar:has(select:not([hidden]))>button+button:after,
197
+ .umap-caption-bar>button+button:before {
172
198
  content: '|';
173
199
  padding-inline-start: 10px;
174
200
  padding-inline-end: 10px;
175
201
  }
176
- .umap-main-edit-toolbox .umap-user:hover {
177
- text-decoration: underline;
202
+
203
+ .umap-main-edit-toolbox .flat.umap-user:hover {
204
+ text-decoration: none;
178
205
  }
206
+
179
207
  .umap-main-edit-toolbox .umap-user:after {
180
208
  content: '|';
181
- padding-inline-start: 20px;
182
- display: inline-block; /* Prevents underline on hover. */
209
+ padding-inline-start: var(--text-margin);
210
+ display: inline-block;
211
+ /* Prevents underline on hover. */
183
212
  }
213
+
184
214
  .umap-caption-bar {
185
215
  display: none;
186
216
  height: var(--footer-height);
@@ -194,14 +224,16 @@
194
224
  text-align: start;
195
225
  line-height: 100%;
196
226
  cursor: auto;
197
- border-top: 1px solid var(--color-lightGray);
227
+ border-top: 1px solid var(--color-veryLightGray);
198
228
  opacity: 0.93;
199
229
  z-index: var(--zindex-panels);
200
230
  }
231
+
201
232
  .umap-caption-bar-enabled .umap-caption-bar {
202
233
  display: flex;
203
234
  align-items: baseline;
204
235
  }
236
+
205
237
  .umap-caption-bar select {
206
238
  margin-top: 0;
207
239
  line-height: initial;
@@ -210,49 +242,79 @@
210
242
  width: auto;
211
243
  padding: 0 var(--text-margin);
212
244
  }
245
+
213
246
  .umap-caption-bar-enabled {
214
247
  --current-footer-height: var(--footer-height);
215
248
  }
249
+
216
250
  .umap-edit-bar {
217
251
  position: absolute;
218
252
  right: var(--panel-gutter);
219
253
  display: none;
220
254
  top: calc(var(--current-header-height) + var(--panel-gutter));
221
255
  flex-direction: column;
222
- z-index: var(--zindex-panels);
256
+ z-index: calc(var(--zindex-panels) - 1);
223
257
  width: var(--control-size);
224
258
  background-color: var(--background-color);
225
259
  border-radius: var(--border-radius);
226
260
  }
261
+
227
262
  .umap-edit-enabled .umap-edit-bar {
228
263
  display: flex;
229
264
  }
265
+
230
266
  .umap-edit-bar li {
231
267
  width: var(--control-size);
232
268
  height: var(--control-size);
233
269
  }
234
- .umap-edit-bar button {
270
+
271
+ .umap-edit-bar button[type="button"] {
235
272
  padding: 0;
236
273
  border-radius: 0;
237
274
  }
275
+
238
276
  .umap-edit-bar li:first-of-type button {
239
277
  border-radius: var(--border-radius) var(--border-radius) 0 0;
240
278
  }
279
+
241
280
  .umap-edit-bar li:last-of-type button {
242
281
  border-radius: 0 0 var(--border-radius) var(--border-radius);
243
282
  }
283
+
244
284
  .umap-edit-bar hr {
245
285
  padding: 0;
246
286
  margin: 0;
247
287
  }
288
+
248
289
  @media all and (max-width: 980px) {
249
290
  .umap-main-edit-toolbox button span {
250
291
  display: none;
251
292
  }
252
293
  }
294
+
253
295
  @media all and (max-width: 770px) {
296
+
254
297
  .umap-main-edit-toolbox .umap-help-link,
255
298
  .umap-main-edit-toolbox .share-status {
256
299
  display: none !important;
257
300
  }
258
301
  }
302
+
303
+ @media all and (max-width: 480px) {
304
+ .umap-main-edit-toolbox {
305
+ flex-direction: column;
306
+ padding: var(--small-box-padding);
307
+ }
308
+
309
+ .umap-main-edit-toolbox>div {
310
+ justify-content: center;
311
+ }
312
+
313
+ .umap-main-edit-toolbox .share-status {
314
+ display: none;
315
+ }
316
+
317
+ .umap-main-edit-toolbox .map-name {
318
+ max-width: 100px;
319
+ }
320
+ }
@@ -0,0 +1,163 @@
1
+ .umap-browser .filters {
2
+ --background-color: var(--color-lighterGray);
3
+ }
4
+
5
+ .umap-browser .datalayer-name,
6
+ .umap-browser .feature-title {
7
+ cursor: pointer;
8
+ max-width: 25ch;
9
+ }
10
+
11
+ .umap-browser .feature-title {
12
+ max-width: 35ch;
13
+ }
14
+
15
+ .umap-browser .datalayer i {
16
+ cursor: pointer;
17
+ }
18
+
19
+ .umap-browser .off .feature {
20
+ display: none;
21
+ }
22
+
23
+ .umap-browser .datalayer {
24
+ margin-bottom: 2px;
25
+ border-radius: 2px;
26
+ }
27
+
28
+ .umap-browser .datalayer ul {
29
+ border: 1px solid #d3d3d3;
30
+ }
31
+
32
+ .umap-browser.dark .datalayer ul {
33
+ border: 1px solid #232729;
34
+ }
35
+
36
+ .umap-browser .datalayer summary {
37
+ margin-bottom: 0;
38
+ overflow: hidden;
39
+ padding-inline-start: 5px;
40
+ height: 30px;
41
+ background-color: var(--color-veryLightGray);
42
+ font-weight: bold;
43
+ }
44
+
45
+ .umap-browser .off summary {
46
+ color: #b3b3b3;
47
+ }
48
+
49
+ .umap-browser .datalayer li:nth-child(even) {
50
+ background-color: #efefef;
51
+ }
52
+
53
+ .umap-browser.dark .datalayer li:nth-child(even) {
54
+ background-color: #2c3233;
55
+ }
56
+
57
+ .umap-browser .datalayer .feature-color {
58
+ box-shadow: 0 0 2px 0 black inset;
59
+ cursor: inherit;
60
+ -moz-box-sizing: border-box;
61
+ -webkit-box-sizing: border-box;
62
+ box-sizing: border-box;
63
+ display: inline-block;
64
+ padding: 0;
65
+ width: 24px;
66
+ text-align: center;
67
+ }
68
+
69
+ .umap-browser .marker .feature-color {
70
+ background: none;
71
+ }
72
+
73
+ .umap-browser.dark .datalayer .feature-color {
74
+ box-shadow: 0 0 2px 0 #999 inset;
75
+ }
76
+
77
+ .umap-browser .datalayer .feature-color img {
78
+ width: 24px;
79
+ }
80
+
81
+ .umap-browser .datalayer .feature-color span {
82
+ font-style: normal;
83
+ font-weight: bold;
84
+ }
85
+
86
+ .umap-browser .datalayer-toggle-list {
87
+ float: inline-end;
88
+ margin-inline-end: 5px;
89
+ background-position: -145px -70px;
90
+ }
91
+
92
+ .umap-browser .filters summary {
93
+ background: none;
94
+ border: 1px solid var(--color-veryLightGray);
95
+ width: fit-content;
96
+ margin-bottom: var(--block-margin);
97
+ list-style: none;
98
+ display: inline-block;
99
+ padding: calc(var(--text-margin) / 2) var(--text-margin);
100
+ }
101
+
102
+ .umap-browser details[open].filters summary {
103
+ margin-bottom: -1px;
104
+ border-bottom: 1px solid var(--background-color);
105
+ }
106
+
107
+ .umap-caption .dates {
108
+ color: var(--color-mediumGray);
109
+ }
110
+
111
+ .umap-caption .header {
112
+ display: flex;
113
+ }
114
+
115
+ .umap-caption .header i.icon {
116
+ flex-shrink: 0;
117
+ }
118
+
119
+ .umap-caption [type="button"],
120
+ .umap-caption button {
121
+ background-color: var(--background-color);
122
+ color: var(--text-color);
123
+ }
124
+
125
+ .umap-browser .main-toolbox {
126
+ padding-left: 1.3rem;
127
+ /* Align with toolbox below */
128
+ border-top: 1px solid var(--color-mediumGray);
129
+ margin-top: var(--box-margin);
130
+ padding-top: 3px;
131
+ padding-bottom: 3px;
132
+ }
133
+
134
+ .umap-browser .main-toolbox i {
135
+ cursor: pointer;
136
+ }
137
+
138
+ .umap-browser details {
139
+ position: relative;
140
+ }
141
+
142
+ .umap-browser details.filters>* {
143
+ background-color: var(--background-color);
144
+ }
145
+
146
+ .umap-browser details.filters [data-ref="manageFilters"] {
147
+ position: absolute;
148
+ top: 0;
149
+ right: 0;
150
+ background-color: inherit;
151
+ padding-inline-end: var(--text-margin);
152
+ }
153
+
154
+ .umap-browser .umap-filter legend {
155
+ display: flex;
156
+ justify-content: space-between;
157
+ }
158
+
159
+ .umap-browser .filter-toolbox {
160
+ position: absolute;
161
+ right: calc(var(--gutter) * 2);
162
+ background-color: var(--background-color);
163
+ }
@@ -8,6 +8,21 @@
8
8
  flex-direction: column;
9
9
  }
10
10
 
11
+ .dark .umap-contextmenu a,
12
+ .umap-contextmenu a {
13
+ color: var(--text-color) !important;
14
+ }
15
+
16
+ .dark .umap-contextmenu a:hover,
17
+ .umap-contextmenu a:hover {
18
+ text-decoration: underline;
19
+ }
20
+
21
+ .dark .umap-contextmenu button,
22
+ .umap-contextmenu button {
23
+ font-size: 1rem;
24
+ }
25
+
11
26
  .umap-contextmenu>li {
12
27
  background-color: var(--background-color);
13
28
  padding-left: calc(var(--box-padding) / 2);
@@ -1,29 +1,37 @@
1
1
  .umap-dialog {
2
- z-index: var(--zindex-dialog);
3
- margin: auto;
4
- margin-top: 100px;
5
- width: var(--dialog-width);
6
- max-width: 100vw;
7
- max-height: 80vh;
8
- padding: 20px;
9
- border: 1px solid #222;
10
- background-color: var(--background-color);
11
- color: var(--text-color);
12
- border-radius: 5px;
13
- overflow-y: auto;
14
- height: fit-content;
15
- }
16
- .umap-dialog ul + h4 {
2
+ z-index: var(--zindex-dialog);
3
+ margin: auto;
4
+ margin-top: calc(var(--header-height) + var(--panel-gutter));
5
+ width: var(--dialog-width);
6
+ max-width: 100vw;
7
+ max-height: 80vh;
8
+ padding: 20px;
9
+ border: 1px solid #222;
10
+ background-color: var(--background-color);
11
+ color: var(--text-color);
12
+ border-radius: 5px;
13
+ overflow-y: auto;
14
+ height: fit-content;
15
+ }
16
+
17
+ .umap-dialog ul+h4 {
17
18
  margin-top: var(--box-margin);
18
19
  }
20
+
19
21
  .umap-dialog .body {
20
22
  max-height: 50vh;
21
23
  overflow-y: auto;
22
24
  }
25
+
26
+ .umap-dialog details>* {
27
+ padding: var(--text-margin);
28
+ }
29
+
23
30
  :where([data-component="no-dialog"]:not([hidden])) {
24
31
  display: block;
25
32
  position: relative;
26
33
  }
34
+
27
35
  :where([data-component*="dialog"] menu) {
28
36
  display: flex;
29
37
  gap: calc(var(--gutter) / 2);
@@ -31,15 +39,27 @@
31
39
  margin: 0;
32
40
  padding: 0;
33
41
  }
42
+
34
43
  :where([data-component*="dialog"] [data-ref="fieldset"]) {
35
44
  border: 0;
36
45
  margin: unset;
37
46
  padding: unset;
38
47
  }
48
+
49
+ @media all and (max-width: 480px) {
50
+ :root {
51
+ --dialog-width: calc(100vw - var(--control-size) * 2 - var(--panel-gutter) * 8);
52
+ }
53
+
54
+ .umap-dialog {
55
+ padding: var(--small-box-padding);
56
+ }
57
+ }
58
+
39
59
  /* hack for Firefox */
40
60
  @-moz-document url-prefix() {
41
61
  [data-component="no-dialog"]:not([hidden]) {
42
62
  inset-inline-start: 0;
43
- transform: none;
63
+ transform: none;
44
64
  }
45
65
  }