umap-project 3.4.0b1__py3-none-any.whl → 3.4.0b2__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.

Potentially problematic release.


This version of umap-project might be problematic. Click here for more details.

umap/__init__.py CHANGED
@@ -1 +1 @@
1
- VERSION = "3.4.0b1"
1
+ VERSION = "3.4.0b2"
@@ -16,7 +16,7 @@ def settings(request):
16
16
  "UMAP_HOST_INFOS": djsettings.UMAP_HOST_INFOS,
17
17
  "UMAP_ALLOW_EDIT_PROFILE": djsettings.UMAP_ALLOW_EDIT_PROFILE,
18
18
  "UMAP_TAGS": sorted(
19
- djsettings.UMAP_TAGS, key=lambda item: normalize_string(str(item[1]))
19
+ djsettings.UMAP_TAGS, key=lambda item: normalize_string(item[1])
20
20
  ),
21
21
  }
22
22
 
umap/models.py CHANGED
@@ -13,7 +13,7 @@ from django.utils.functional import classproperty
13
13
  from django.utils.translation import gettext_lazy as _
14
14
 
15
15
  from .managers import PrivateManager, PublicManager
16
- from .utils import _urls_for_js
16
+ from .utils import _urls_for_js, normalize_string
17
17
 
18
18
 
19
19
  # Did not find a clean way to do this in Django
@@ -438,7 +438,11 @@ class Map(NamedModel):
438
438
  "iconUrl": {
439
439
  "default": "%sumap/img/marker.svg" % settings.STATIC_URL,
440
440
  },
441
- "tags": {"choices": sorted(settings.UMAP_TAGS, key=lambda i: i[0])},
441
+ "tags": {
442
+ "choices": sorted(
443
+ settings.UMAP_TAGS, key=lambda i: normalize_string(i[1])
444
+ )
445
+ },
442
446
  }
443
447
 
444
448
 
@@ -491,7 +491,7 @@ export class DataLayer {
491
491
 
492
492
  inferFields(feature) {
493
493
  for (const key in feature.properties) {
494
- if (typeof feature.properties[key] !== 'object') {
494
+ if (key && typeof feature.properties[key] !== 'object') {
495
495
  if (key.indexOf('_') === 0) continue
496
496
  if (this.fields.has(key)) continue
497
497
  if (this._umap.fields.has(key)) continue
umap/static/umap/map.css CHANGED
@@ -369,7 +369,7 @@ ul.photon-autocomplete {
369
369
  margin: 0;
370
370
  }
371
371
 
372
- .photon-autocomplete button:hover {
372
+ .photon-autocomplete button[type="button"]:hover {
373
373
  background-color: var(--color-darkCyan);
374
374
  }
375
375
 
@@ -405,8 +405,8 @@ ul.photon-autocomplete {
405
405
  display: none;
406
406
  }
407
407
 
408
- .search-result-tools button {
409
- padding: 8px;
408
+ .search-result-tools button[type="button"] {
409
+ padding: var(--text-margin);
410
410
  background-color: var(--background-color);
411
411
  }
412
412
 
umap/utils.py CHANGED
@@ -226,5 +226,5 @@ def collect_pictograms():
226
226
 
227
227
 
228
228
  def normalize_string(s):
229
- n = unicodedata.normalize("NFKD", s)
229
+ n = unicodedata.normalize("NFKD", str(s))
230
230
  return "".join([c for c in n if not unicodedata.combining(c)]).lower()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: umap-project
3
- Version: 3.4.0b1
3
+ Version: 3.4.0b2
4
4
  Summary: Create maps with OpenStreetMap layers in a minute and embed them in your site.
5
5
  Author-email: Yohan Boniface <yb@enix.org>
6
6
  Maintainer-email: David Larlet <david@larlet.fr>
@@ -1,17 +1,17 @@
1
- umap/__init__.py,sha256=yppBFNxa51KIj40zCftReowEIaDtDsisD4_1oPX-DWA,20
1
+ umap/__init__.py,sha256=KcKEmc7wFzGijZ5CyMAKf_gEGKXIjZgOb3-HUFHQgUc,20
2
2
  umap/admin.py,sha256=YlK4CgEWb2eFYRKiklsKouxeiQ8z_b-H2Fv2XCaiGFQ,3014
3
3
  umap/apps.py,sha256=5ssKqPUuNJlapaBmr4LY_HDb7J1NFCT3wzythxQOOfs,109
4
4
  umap/asgi.py,sha256=sJkGqDLgMoPkq2nMRyRE_Hz3ZLJm1X5lgXiQJu6rYt0,660
5
5
  umap/autocomplete.py,sha256=wHxlOTHQozSQcUAYVfBIGMsgVCKT1ox9bZ0uqUk63YY,803
6
- umap/context_processors.py,sha256=y4JYCZAyqHvdk6jl5tkQiZ2y5mQOGrjwhtAf3FcImDo,820
6
+ umap/context_processors.py,sha256=gqyrizFe0O6aspMJxARlBj98rICieYKA9KufP9JIFgw,815
7
7
  umap/decorators.py,sha256=EEICH54p9swHIs_tuqt4FL-l749vk6P8AevlWFKn5zk,2477
8
8
  umap/fields.py,sha256=c32tKWKF8aThrCXDJblwo0n9n2ET6hxBYzEupfr0B4o,900
9
9
  umap/forms.py,sha256=i_SQ6OykKc6XFZJ5tg3rrA6r5SryOvj1WiKbIcWtD4A,3771
10
10
  umap/managers.py,sha256=A5Ih92f9E3egPVCToQHYJ4wQMFSqTS6dtqzx56Fs2JU,1051
11
11
  umap/middleware.py,sha256=GsIFl0St_Rk5zjpE8dpGBlD0JL2AyMrNHu8SHylqwEg,1564
12
- umap/models.py,sha256=xANPE5gw3jjLartllGrc3GtEZ4en1NsG1WLS05blmRc,19914
12
+ umap/models.py,sha256=BxanTAWXXxUvX3opvdHLssSDewWYSpyETrb09DouewM,20018
13
13
  umap/urls.py,sha256=evKfLGEIoc8TPfCalLeHxeQ-zD0HvUJo0Rln8n3kBps,7896
14
- umap/utils.py,sha256=kZ_yvEMqEh1eZlEVfTjRv9bFuB9wZZLbngVguKRKtu4,7882
14
+ umap/utils.py,sha256=GblhfPWvrMI756OqNSJ5SF5pEeJs-cEHZ7xJxQv4z5c,7887
15
15
  umap/views.py,sha256=vqef2yvth3Zea_074vyIBlf5hHoFrHlfbGKxdTBLAhI,50821
16
16
  umap/wsgi.py,sha256=IopIgnDZbCus3XpSetTHnra9VyzWi0Y2tJo-CmfTWCY,1132
17
17
  umap/bin/__init__.py,sha256=iA3ON4A6NCpenrn3q2OgefUKF5QRFIQS-FtS0pxruI8,234
@@ -157,7 +157,7 @@ umap/static/.gitignore,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
157
157
  umap/static/umap/base.css,sha256=G6TyKKFTu-A7QOrq5ZAt8KEIJ5CFbe4K-JEURDDRkmw,5120
158
158
  umap/static/umap/content.css,sha256=gOvOzuvw-AzhVnalcoU0Kyj25uYp6g2nLo0gOWZ_1i4,12287
159
159
  umap/static/umap/font.css,sha256=fYmTKNd_Ts6TrmBbnLRgyeUS4vpfxkEqhLR-pkd3KrA,904
160
- umap/static/umap/map.css,sha256=zP2RV7OGcLvvplCCrflrBUqDXV0L1NqVGRgLkSk6igI,22109
160
+ umap/static/umap/map.css,sha256=DujW9eyl-ObrqygcvSrelWtYIGIC-WUQPQN1YkOt5xg,22154
161
161
  umap/static/umap/nav.css,sha256=MsckfSfuMgADt71FIVpW351ZC2ATlr50iGW-47hziwk,1956
162
162
  umap/static/umap/theme.css,sha256=gkbyghlT5kNfz0Qyg1JL7xalqvHVx321eO9qlnvcaAU,49
163
163
  umap/static/umap/vars.css,sha256=bZVi0ACdtGDupargPUT2yQLFYEzaEo6czW9yo5znm3Y,2636
@@ -266,7 +266,7 @@ umap/static/umap/js/modules/umap.js,sha256=GH779DT_AfTpXrefTgHjGOH-gPFs84Ab_TtDY
266
266
  umap/static/umap/js/modules/urls.js,sha256=76cFqycj2O8huuoYYBvxnVt2Fc2UDbgrRsiv6lQmcSY,890
267
267
  umap/static/umap/js/modules/utils.js,sha256=yZhvc6kMsgnBTxeflcJ0eigNd0S1uOsZCzotXqqVpMA,16702
268
268
  umap/static/umap/js/modules/data/features.js,sha256=a5hbjoJQEaKpKkT_JELmAZVcNBcfEgP7dnpY7-5XGhA,39287
269
- umap/static/umap/js/modules/data/layer.js,sha256=e56iu8nr1fMYBYu5gOXvVvYv8mSTBxMT_KwuC1Jgl90,40933
269
+ umap/static/umap/js/modules/data/layer.js,sha256=SpfYIZ0SXKkDDmu8UvrJ5vWDFzLaQ4hCZ7umO57b1Tg,40940
270
270
  umap/static/umap/js/modules/form/builder.js,sha256=Xq1oNE3t_6JFWm_i2MAaCrfYMkollWHW9nVmL-8Bu7o,6518
271
271
  umap/static/umap/js/modules/form/fields.js,sha256=n7zezzllOKNu1o_AD8dCI-WiLJ9rqWnF1P9gTb90TT4,32938
272
272
  umap/static/umap/js/modules/importers/banfr.js,sha256=TBwL3GQJdzYtaDtxeHxyPQ7Ycy5zTaQyvzXa55X7n2I,2932
@@ -605,8 +605,8 @@ umap/tests/integration/test_view_marker.py,sha256=NFCwNez__E_WsE1DuW5RuB0HVKDP4C
605
605
  umap/tests/integration/test_view_polygon.py,sha256=NMJC6Nt9VpQ8FIU9Pqq2OspHv49xsWlsoXCr8iBa0VA,2060
606
606
  umap/tests/integration/test_view_polyline.py,sha256=aJoXKmLhJaN0yhPdDCVskZNGx3q3mLDkjVPhZ30cadA,13959
607
607
  umap/tests/integration/test_websocket_sync.py,sha256=CeigDGSDSa6LeM_ZxPoDDfQ20GPHEgPPSDVLEMd4ToI,28367
608
- umap_project-3.4.0b1.dist-info/METADATA,sha256=3OxMevlTAVBzWhQHbDFC5JSWKQiGu1X8xgiOQ-PlVLU,5751
609
- umap_project-3.4.0b1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
610
- umap_project-3.4.0b1.dist-info/entry_points.txt,sha256=gz-KDQfEsMLBae8ABOD3foJsCYGPW1tA4Y394R_1RW8,39
611
- umap_project-3.4.0b1.dist-info/licenses/LICENSE,sha256=kQtrtRKgiPhcl7aO0-lmvbrNAXu7WHyiXvPrUk-TD2Q,820
612
- umap_project-3.4.0b1.dist-info/RECORD,,
608
+ umap_project-3.4.0b2.dist-info/METADATA,sha256=2qWLswAIbSpvDkEwgP5J_ZPzWaYIQ_DqFm1uhHVe32o,5751
609
+ umap_project-3.4.0b2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
610
+ umap_project-3.4.0b2.dist-info/entry_points.txt,sha256=gz-KDQfEsMLBae8ABOD3foJsCYGPW1tA4Y394R_1RW8,39
611
+ umap_project-3.4.0b2.dist-info/licenses/LICENSE,sha256=kQtrtRKgiPhcl7aO0-lmvbrNAXu7WHyiXvPrUk-TD2Q,820
612
+ umap_project-3.4.0b2.dist-info/RECORD,,