umap-project 2.9.0b0__py3-none-any.whl → 2.9.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. umap/__init__.py +1 -1
  2. umap/admin.py +15 -2
  3. umap/locale/br/LC_MESSAGES/django.mo +0 -0
  4. umap/locale/br/LC_MESSAGES/django.po +111 -67
  5. umap/locale/cs_CZ/LC_MESSAGES/django.mo +0 -0
  6. umap/locale/cs_CZ/LC_MESSAGES/django.po +112 -67
  7. umap/locale/el/LC_MESSAGES/django.mo +0 -0
  8. umap/locale/el/LC_MESSAGES/django.po +132 -87
  9. umap/locale/en/LC_MESSAGES/django.po +11 -10
  10. umap/locale/es/LC_MESSAGES/django.mo +0 -0
  11. umap/locale/es/LC_MESSAGES/django.po +117 -71
  12. umap/locale/fr/LC_MESSAGES/django.mo +0 -0
  13. umap/locale/fr/LC_MESSAGES/django.po +11 -10
  14. umap/locale/gl/LC_MESSAGES/django.mo +0 -0
  15. umap/locale/gl/LC_MESSAGES/django.po +219 -173
  16. umap/locale/it/LC_MESSAGES/django.mo +0 -0
  17. umap/locale/it/LC_MESSAGES/django.po +145 -100
  18. umap/locale/nl/LC_MESSAGES/django.mo +0 -0
  19. umap/locale/nl/LC_MESSAGES/django.po +198 -152
  20. umap/locale/pt/LC_MESSAGES/django.mo +0 -0
  21. umap/locale/pt/LC_MESSAGES/django.po +118 -73
  22. umap/locale/zh_TW/LC_MESSAGES/django.mo +0 -0
  23. umap/locale/zh_TW/LC_MESSAGES/django.po +112 -67
  24. umap/middleware.py +30 -1
  25. umap/models.py +20 -10
  26. umap/settings/base.py +2 -1
  27. umap/static/umap/base.css +4 -1
  28. umap/static/umap/css/bar.css +32 -0
  29. umap/static/umap/css/contextmenu.css +14 -2
  30. umap/static/umap/css/form.css +5 -10
  31. umap/static/umap/css/icon.css +39 -3
  32. umap/static/umap/css/panel.css +18 -1
  33. umap/static/umap/css/popup.css +0 -1
  34. umap/static/umap/img/16-white.svg +3 -3
  35. umap/static/umap/img/16.svg +1 -1
  36. umap/static/umap/img/24-white.svg +17 -16
  37. umap/static/umap/img/24.svg +29 -18
  38. umap/static/umap/img/providers/twitter-oauth2.png +0 -0
  39. umap/static/umap/img/source/16-white.svg +4 -4
  40. umap/static/umap/img/source/16.svg +1 -1
  41. umap/static/umap/img/source/24-white.svg +20 -18
  42. umap/static/umap/img/source/24.svg +30 -19
  43. umap/static/umap/js/modules/browser.js +2 -2
  44. umap/static/umap/js/modules/caption.js +4 -4
  45. umap/static/umap/js/modules/data/features.js +80 -32
  46. umap/static/umap/js/modules/data/layer.js +37 -50
  47. umap/static/umap/js/modules/form/builder.js +23 -22
  48. umap/static/umap/js/modules/form/fields.js +13 -5
  49. umap/static/umap/js/modules/formatter.js +6 -2
  50. umap/static/umap/js/modules/help.js +17 -23
  51. umap/static/umap/js/modules/importer.js +5 -2
  52. umap/static/umap/js/modules/permissions.js +6 -2
  53. umap/static/umap/js/modules/rendering/layers/classified.js +1 -1
  54. umap/static/umap/js/modules/rendering/map.js +1 -21
  55. umap/static/umap/js/modules/rendering/ui.js +20 -38
  56. umap/static/umap/js/modules/rules.js +1 -1
  57. umap/static/umap/js/modules/saving.js +5 -0
  58. umap/static/umap/js/modules/schema.js +4 -1
  59. umap/static/umap/js/modules/sync/engine.js +39 -14
  60. umap/static/umap/js/modules/sync/updaters.js +7 -6
  61. umap/static/umap/js/modules/sync/websocket.js +48 -40
  62. umap/static/umap/js/modules/ui/bar.js +84 -0
  63. umap/static/umap/js/modules/ui/contextmenu.js +9 -2
  64. umap/static/umap/js/modules/ui/panel.js +5 -1
  65. umap/static/umap/js/modules/umap.js +85 -44
  66. umap/static/umap/js/umap.controls.js +11 -341
  67. umap/static/umap/locale/am_ET.js +17 -5
  68. umap/static/umap/locale/am_ET.json +17 -5
  69. umap/static/umap/locale/ar.js +17 -5
  70. umap/static/umap/locale/ar.json +17 -5
  71. umap/static/umap/locale/ast.js +17 -5
  72. umap/static/umap/locale/ast.json +17 -5
  73. umap/static/umap/locale/bg.js +17 -5
  74. umap/static/umap/locale/bg.json +17 -5
  75. umap/static/umap/locale/br.js +20 -15
  76. umap/static/umap/locale/br.json +20 -15
  77. umap/static/umap/locale/ca.js +8 -4
  78. umap/static/umap/locale/ca.json +8 -4
  79. umap/static/umap/locale/cs_CZ.js +8 -4
  80. umap/static/umap/locale/cs_CZ.json +8 -4
  81. umap/static/umap/locale/da.js +17 -5
  82. umap/static/umap/locale/da.json +17 -5
  83. umap/static/umap/locale/de.js +8 -4
  84. umap/static/umap/locale/de.json +8 -4
  85. umap/static/umap/locale/el.js +54 -50
  86. umap/static/umap/locale/el.json +54 -50
  87. umap/static/umap/locale/en.js +9 -4
  88. umap/static/umap/locale/en.json +9 -4
  89. umap/static/umap/locale/en_US.json +17 -5
  90. umap/static/umap/locale/es.js +13 -9
  91. umap/static/umap/locale/es.json +13 -9
  92. umap/static/umap/locale/et.js +17 -5
  93. umap/static/umap/locale/et.json +17 -5
  94. umap/static/umap/locale/eu.js +8 -4
  95. umap/static/umap/locale/eu.json +8 -4
  96. umap/static/umap/locale/fa_IR.js +8 -4
  97. umap/static/umap/locale/fa_IR.json +8 -4
  98. umap/static/umap/locale/fi.js +17 -5
  99. umap/static/umap/locale/fi.json +17 -5
  100. umap/static/umap/locale/fr.js +9 -4
  101. umap/static/umap/locale/fr.json +9 -4
  102. umap/static/umap/locale/gl.js +13 -9
  103. umap/static/umap/locale/gl.json +13 -9
  104. umap/static/umap/locale/he.js +17 -5
  105. umap/static/umap/locale/he.json +17 -5
  106. umap/static/umap/locale/hr.js +17 -5
  107. umap/static/umap/locale/hr.json +17 -5
  108. umap/static/umap/locale/hu.js +8 -4
  109. umap/static/umap/locale/hu.json +8 -4
  110. umap/static/umap/locale/id.js +17 -5
  111. umap/static/umap/locale/id.json +17 -5
  112. umap/static/umap/locale/is.js +17 -5
  113. umap/static/umap/locale/is.json +17 -5
  114. umap/static/umap/locale/it.js +31 -27
  115. umap/static/umap/locale/it.json +31 -27
  116. umap/static/umap/locale/ja.js +17 -5
  117. umap/static/umap/locale/ja.json +17 -5
  118. umap/static/umap/locale/ko.js +17 -5
  119. umap/static/umap/locale/ko.json +17 -5
  120. umap/static/umap/locale/lt.js +17 -5
  121. umap/static/umap/locale/lt.json +17 -5
  122. umap/static/umap/locale/ms.js +8 -4
  123. umap/static/umap/locale/ms.json +8 -4
  124. umap/static/umap/locale/nl.js +132 -127
  125. umap/static/umap/locale/nl.json +132 -127
  126. umap/static/umap/locale/no.js +17 -5
  127. umap/static/umap/locale/no.json +17 -5
  128. umap/static/umap/locale/pl.js +8 -4
  129. umap/static/umap/locale/pl.json +8 -4
  130. umap/static/umap/locale/pl_PL.json +17 -5
  131. umap/static/umap/locale/pt.js +38 -33
  132. umap/static/umap/locale/pt.json +38 -33
  133. umap/static/umap/locale/pt_BR.js +17 -5
  134. umap/static/umap/locale/pt_BR.json +17 -5
  135. umap/static/umap/locale/pt_PT.js +8 -4
  136. umap/static/umap/locale/pt_PT.json +8 -4
  137. umap/static/umap/locale/ro.js +17 -5
  138. umap/static/umap/locale/ro.json +17 -5
  139. umap/static/umap/locale/ru.js +17 -5
  140. umap/static/umap/locale/ru.json +17 -5
  141. umap/static/umap/locale/sk_SK.js +17 -5
  142. umap/static/umap/locale/sk_SK.json +17 -5
  143. umap/static/umap/locale/sl.js +17 -5
  144. umap/static/umap/locale/sl.json +17 -5
  145. umap/static/umap/locale/sr.js +17 -5
  146. umap/static/umap/locale/sr.json +17 -5
  147. umap/static/umap/locale/sv.js +17 -5
  148. umap/static/umap/locale/sv.json +17 -5
  149. umap/static/umap/locale/th_TH.js +8 -4
  150. umap/static/umap/locale/th_TH.json +8 -4
  151. umap/static/umap/locale/tr.js +17 -5
  152. umap/static/umap/locale/tr.json +17 -5
  153. umap/static/umap/locale/uk_UA.js +17 -5
  154. umap/static/umap/locale/uk_UA.json +17 -5
  155. umap/static/umap/locale/vi.js +17 -5
  156. umap/static/umap/locale/vi.json +17 -5
  157. umap/static/umap/locale/vi_VN.json +17 -5
  158. umap/static/umap/locale/zh.js +17 -5
  159. umap/static/umap/locale/zh.json +17 -5
  160. umap/static/umap/locale/zh_CN.json +17 -5
  161. umap/static/umap/locale/zh_TW.Big5.json +17 -5
  162. umap/static/umap/locale/zh_TW.js +14 -10
  163. umap/static/umap/locale/zh_TW.json +14 -10
  164. umap/static/umap/map.css +17 -68
  165. umap/static/umap/nav.css +4 -0
  166. umap/static/umap/vars.css +1 -0
  167. umap/static/umap/vendors/dompurify/purify.es.js +138 -354
  168. umap/static/umap/vendors/dompurify/purify.es.mjs.map +1 -1
  169. umap/static/umap/vendors/editable/Leaflet.Editable.js +1 -0
  170. umap/sync/app.py +19 -13
  171. umap/sync/payloads.py +8 -1
  172. umap/templates/auth/user_form.html +2 -2
  173. umap/templates/umap/content_footer.html +1 -1
  174. umap/templates/umap/css.html +0 -2
  175. umap/templates/umap/js.html +0 -1
  176. umap/templates/umap/messages.html +5 -1
  177. umap/templates/umap/search_bar.html +1 -0
  178. umap/tests/integration/test_anonymous_owned_map.py +2 -2
  179. umap/tests/integration/test_basics.py +2 -5
  180. umap/tests/integration/test_categorized_layer.py +4 -8
  181. umap/tests/integration/test_choropleth.py +1 -1
  182. umap/tests/integration/test_conditional_rules.py +3 -3
  183. umap/tests/integration/test_draw_polygon.py +11 -19
  184. umap/tests/integration/test_draw_polyline.py +6 -14
  185. umap/tests/integration/test_edit_datalayer.py +10 -10
  186. umap/tests/integration/test_edit_map.py +27 -1
  187. umap/tests/integration/test_edit_marker.py +5 -5
  188. umap/tests/integration/test_edit_polygon.py +5 -5
  189. umap/tests/integration/test_features_id_generation.py +2 -6
  190. umap/tests/integration/test_import.py +93 -29
  191. umap/tests/integration/test_owned_map.py +1 -1
  192. umap/tests/integration/test_save.py +2 -2
  193. umap/tests/integration/test_tableeditor.py +7 -7
  194. umap/tests/integration/test_view_marker.py +10 -0
  195. umap/tests/integration/test_websocket_sync.py +128 -32
  196. umap/utils.py +4 -1
  197. umap/views.py +0 -9
  198. {umap_project-2.9.0b0.dist-info → umap_project-2.9.1.dist-info}/METADATA +13 -13
  199. {umap_project-2.9.0b0.dist-info → umap_project-2.9.1.dist-info}/RECORD +202 -204
  200. umap/static/umap/vendors/toolbar/leaflet.toolbar.css +0 -1
  201. umap/static/umap/vendors/toolbar/leaflet.toolbar.js +0 -1
  202. {umap_project-2.9.0b0.dist-info → umap_project-2.9.1.dist-info}/WHEEL +0 -0
  203. {umap_project-2.9.0b0.dist-info → umap_project-2.9.1.dist-info}/entry_points.txt +0 -0
  204. {umap_project-2.9.0b0.dist-info → umap_project-2.9.1.dist-info}/licenses/LICENSE +0 -0
umap/static/umap/map.css CHANGED
@@ -102,12 +102,12 @@ html[dir="rtl"] .leaflet-tooltip-pane > * {
102
102
  .umap-control-more,
103
103
  .umap-control-less {
104
104
  background-image: url('./img/24-white.svg');
105
- background-position: -72px -366px;
105
+ background-position: -72px -402px;
106
106
  text-indent: -9999px;
107
107
  margin-bottom: 0;
108
108
  }
109
109
  .umap-control-less {
110
- background-position: -108px -366px;
110
+ background-position: -108px -402px;
111
111
  }
112
112
  .umap-more-controls .display-on-more,
113
113
  .umap-more-controls .umap-control-less {
@@ -177,7 +177,6 @@ html[dir="rtl"] .leaflet-tooltip-pane > * {
177
177
  line-height: var(--control-size);
178
178
  display: block;
179
179
  }
180
- .leaflet-control-toolbar .leaflet-toolbar-icon.dark:hover,
181
180
  .edit-enable [type="button"]:hover {
182
181
  background-color: #4d5759;
183
182
  }
@@ -318,7 +317,6 @@ ul.photon-autocomplete {
318
317
  .leaflet-editable-drawing {
319
318
  cursor: crosshair;
320
319
  }
321
- .leaflet-control-toolbar > li > .leaflet-toolbar-icon,
322
320
  .umap-toolbar a,
323
321
  .umap-toolbar a:hover {
324
322
  height: var(--control-size);
@@ -332,9 +330,6 @@ ul.photon-autocomplete {
332
330
  background-image: url('./img/24.svg');
333
331
  background-size: auto auto;
334
332
  }
335
- .leaflet-control-toolbar li .leaflet-toolbar-icon.dark {
336
- background-image: url('./img/24-white.svg');
337
- }
338
333
  .umap-toolbar {
339
334
  margin-top: 0;
340
335
  }
@@ -381,11 +376,13 @@ ul.photon-autocomplete {
381
376
  .umap-toolbar .umap-draw-polygon-multi {
382
377
  background-position: 0 -108px;
383
378
  }
384
- .umap-edit-enabled .leaflet-control-toolbar > li > .leaflet-toolbar-icon,
385
379
  .umap-edit-enabled .umap-toolbar a {
386
380
  display: block;
387
381
  }
388
-
382
+ .leaflet-middle-icon,
383
+ .leaflet-vertex-icon {
384
+ border-radius: 50%;
385
+ }
389
386
 
390
387
  /* ********************************* */
391
388
  /* Third party plugin override */
@@ -423,10 +420,10 @@ ul.photon-autocomplete {
423
420
  width: 16px;
424
421
  height: 16px;
425
422
  margin-inline-start: 5px;
426
- background-position: -4px -4px;
423
+ background-position: 2px -4px;
427
424
  background-repeat: no-repeat;
428
425
  background-image: url('./img/16.svg');
429
- background-color: var(--color-darkGray) !important;
426
+ background-color: transparent !important;
430
427
  vertical-align: middle;
431
428
  text-indent: -9999px;
432
429
  min-height: inherit;
@@ -441,31 +438,8 @@ ul.photon-autocomplete {
441
438
  border-top: 1px solid #aaa;
442
439
  padding-top: 10px;
443
440
  }
444
- .umap-edit-actions {
445
- padding-top: 5px;
446
- clear: both;
447
- }
448
- .umap-edit-actions li {
449
- height: var(--control-size);
450
- line-height: var(--control-size);
451
- cursor: pointer;
452
- margin-bottom: 5px;
453
- border-radius: 2px;
454
- border: 1px solid #222;
455
- }
456
- .umap-edit-actions li i {
457
- background-image: url('./img/24-white.svg');
458
- background-repeat: no-repeat;
459
- display: table-cell;
460
- width: var(--control-size);
461
- height: var(--control-size);
462
- }
463
- .umap-edit-actions li span {
464
- display: table-cell;
465
- vertical-align: middle;
466
- }
467
- .umap-edit-actions li:hover {
468
- background-color: #353c3e;
441
+ .umap-getstarted button {
442
+ width: 100%;
469
443
  }
470
444
  .umap-help {
471
445
  font-style: italic;
@@ -504,9 +478,6 @@ ul.photon-autocomplete {
504
478
  .layer-edit {
505
479
  background-position: -50px -49px;
506
480
  }
507
- .umap-toggle-edit {
508
- background-position: -44px -48px;
509
- }
510
481
  .readonly .layer-edit,
511
482
  .off .layer-edit {
512
483
  background-position: -50px -73px;
@@ -515,28 +486,6 @@ ul.photon-autocomplete {
515
486
  .off .layer-delete {
516
487
  background-position: -122px -121px;
517
488
  }
518
- .umap-new-hole {
519
- background-position: -71px -94px;
520
- }
521
- .umap-delete-one-of-multi {
522
- background-position: -97px -70px;
523
- }
524
- .umap-delete-all,
525
- .umap-delete-one-of-one {
526
- background-position: -119px -48px;
527
- }
528
- .umap-delete-vertex {
529
- background-position: -119px -94px;
530
- }
531
- .umap-continue-line {
532
- background-position: -96px 1px;
533
- }
534
- .umap-split-line {
535
- background-position: -119px -22px;
536
- }
537
- .umap-extract-shape-from-multi{
538
- background-position: -119px 2px;
539
- }
540
489
  .umap-browser .feature-title {
541
490
  width: inherit;
542
491
  cursor: inherit;
@@ -568,11 +517,11 @@ ul.photon-autocomplete {
568
517
  /* ********************************* */
569
518
  a.umap-control-browse,
570
519
  .umap-control-browse [type="button"] {
571
- background-position: -36px -72px;
520
+ background-position: -144px -180px;
572
521
  }
573
522
  a.umap-control-caption,
574
523
  .umap-control-caption [type="button"] {
575
- background-position: -72px -72px;
524
+ background-position: -144px -36px;
576
525
  }
577
526
  .leaflet-inplace-toolbar a {
578
527
  background-repeat: no-repeat;
@@ -717,7 +666,7 @@ a.umap-control-caption,
717
666
  /* Tilelayer switcher */
718
667
  /* ********************************* */
719
668
 
720
- .umap-tilelayer-switcher-container li {
669
+ .umap-edit-tilelayers li {
721
670
  border: 1px solid rgb(116, 116, 116);
722
671
  border-radius: 4px 4px 4px 4px;
723
672
  margin-bottom: 14px;
@@ -729,7 +678,7 @@ a.umap-control-caption,
729
678
  margin-left: auto;
730
679
  margin-right: auto;
731
680
  }
732
- .umap-tilelayer-switcher-container li div {
681
+ .umap-edit-tilelayers li div {
733
682
  background-color: rgb(116, 116, 116);
734
683
  bottom: 0;
735
684
  color: rgb(247, 246, 241);
@@ -741,8 +690,8 @@ a.umap-control-caption,
741
690
  width: 100%;
742
691
  text-align: center;
743
692
  }
744
- .umap-tilelayer-switcher-container li:hover div:before,
745
- .umap-tilelayer-switcher-container .selected div:before {
693
+ .umap-edit-tilelayers li:hover div:before,
694
+ .umap-edit-tilelayers .selected div:before {
746
695
  content: "✓";
747
696
  font-size: 1.3em;
748
697
  line-height: 56px;
@@ -750,7 +699,7 @@ a.umap-control-caption,
750
699
  position: absolute;
751
700
  inset-inline-start: 7px;
752
701
  }
753
- .umap-tilelayer-switcher-container li img {
702
+ .umap-edit-tilelayers li img {
754
703
  display: block;
755
704
  max-width: 100%;
756
705
  }
umap/static/umap/nav.css CHANGED
@@ -27,6 +27,10 @@ footer a.branding {
27
27
  font-weight: bold;
28
28
  padding-inline-start: 70px;
29
29
  display: inline-block;
30
+ text-decoration: none;
31
+ }
32
+ footer a.branding:hover {
33
+ text-decoration: underline;
30
34
  }
31
35
  html[dir="rtl"] footer a.branding {
32
36
  background-position: right center;
umap/static/umap/vars.css CHANGED
@@ -25,6 +25,7 @@
25
25
  --button-neutral-background: var(--color-lightGray);
26
26
  --button-neutral-color: var(--color-darkGray);
27
27
  --button-padding: 8px 16px;
28
+ --button-padding-small: 2px 8px;
28
29
 
29
30
  /* Sizes and spaces */
30
31
  --gutter: 8px;