umap-project 2.5.1__py3-none-any.whl → 2.6.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.
Potentially problematic release.
This version of umap-project might be problematic. Click here for more details.
- umap/__init__.py +1 -1
- umap/admin.py +6 -1
- umap/context_processors.py +2 -1
- umap/decorators.py +13 -2
- umap/forms.py +26 -2
- umap/locale/br/LC_MESSAGES/django.mo +0 -0
- umap/locale/br/LC_MESSAGES/django.po +252 -146
- umap/locale/ca/LC_MESSAGES/django.mo +0 -0
- umap/locale/ca/LC_MESSAGES/django.po +274 -162
- umap/locale/cs_CZ/LC_MESSAGES/django.mo +0 -0
- umap/locale/cs_CZ/LC_MESSAGES/django.po +261 -150
- umap/locale/de/LC_MESSAGES/django.mo +0 -0
- umap/locale/de/LC_MESSAGES/django.po +299 -187
- umap/locale/el/LC_MESSAGES/django.mo +0 -0
- umap/locale/el/LC_MESSAGES/django.po +215 -159
- umap/locale/en/LC_MESSAGES/django.po +211 -155
- umap/locale/es/LC_MESSAGES/django.mo +0 -0
- umap/locale/es/LC_MESSAGES/django.po +255 -144
- umap/locale/eu/LC_MESSAGES/django.mo +0 -0
- umap/locale/eu/LC_MESSAGES/django.po +254 -198
- umap/locale/fa_IR/LC_MESSAGES/django.mo +0 -0
- umap/locale/fa_IR/LC_MESSAGES/django.po +347 -235
- umap/locale/fr/LC_MESSAGES/django.mo +0 -0
- umap/locale/fr/LC_MESSAGES/django.po +216 -160
- umap/locale/hu/LC_MESSAGES/django.mo +0 -0
- umap/locale/hu/LC_MESSAGES/django.po +215 -159
- umap/locale/it/LC_MESSAGES/django.mo +0 -0
- umap/locale/it/LC_MESSAGES/django.po +252 -146
- umap/locale/ms/LC_MESSAGES/django.mo +0 -0
- umap/locale/ms/LC_MESSAGES/django.po +252 -146
- umap/locale/pl/LC_MESSAGES/django.mo +0 -0
- umap/locale/pl/LC_MESSAGES/django.po +254 -148
- umap/locale/pt/LC_MESSAGES/django.mo +0 -0
- umap/locale/pt/LC_MESSAGES/django.po +215 -159
- umap/locale/sv/LC_MESSAGES/django.mo +0 -0
- umap/locale/sv/LC_MESSAGES/django.po +254 -143
- umap/locale/th_TH/LC_MESSAGES/django.mo +0 -0
- umap/locale/th_TH/LC_MESSAGES/django.po +125 -70
- umap/locale/zh_TW/LC_MESSAGES/django.mo +0 -0
- umap/locale/zh_TW/LC_MESSAGES/django.po +256 -145
- umap/migrations/0022_add_team.py +94 -0
- umap/models.py +45 -10
- umap/settings/__init__.py +2 -0
- umap/settings/base.py +9 -2
- umap/static/umap/base.css +32 -41
- umap/static/umap/content.css +19 -25
- umap/static/umap/css/icon.css +63 -37
- umap/static/umap/css/importers.css +1 -1
- umap/static/umap/css/slideshow.css +7 -5
- umap/static/umap/css/tableeditor.css +4 -3
- umap/static/umap/img/16-white.svg +1 -4
- umap/static/umap/img/16.svg +2 -6
- umap/static/umap/img/24-white.svg +4 -4
- umap/static/umap/img/24.svg +6 -6
- umap/static/umap/img/source/16-white.svg +2 -5
- umap/static/umap/img/source/16.svg +3 -7
- umap/static/umap/img/source/24-white.svg +7 -14
- umap/static/umap/img/source/24.svg +10 -17
- umap/static/umap/js/components/alerts/alert.css +20 -8
- umap/static/umap/js/modules/autocomplete.js +8 -12
- umap/static/umap/js/modules/browser.js +4 -3
- umap/static/umap/js/modules/caption.js +9 -11
- umap/static/umap/js/modules/data/features.js +993 -0
- umap/static/umap/js/modules/data/layer.js +1210 -0
- umap/static/umap/js/modules/formatter.js +12 -3
- umap/static/umap/js/modules/global.js +21 -5
- umap/static/umap/js/modules/importers/overpass.js +22 -8
- umap/static/umap/js/modules/permissions.js +280 -0
- umap/static/umap/js/{umap.icon.js → modules/rendering/icon.js} +77 -56
- umap/static/umap/js/modules/rendering/layers/base.js +105 -0
- umap/static/umap/js/modules/rendering/layers/classified.js +484 -0
- umap/static/umap/js/modules/rendering/layers/cluster.js +103 -0
- umap/static/umap/js/modules/rendering/layers/heat.js +182 -0
- umap/static/umap/js/modules/rendering/popup.js +99 -0
- umap/static/umap/js/modules/rendering/template.js +217 -0
- umap/static/umap/js/modules/rendering/ui.js +610 -0
- umap/static/umap/js/modules/rules.js +16 -3
- umap/static/umap/js/modules/schema.js +25 -1
- umap/static/umap/js/modules/share.js +66 -45
- umap/static/umap/js/modules/sync/updaters.js +9 -10
- umap/static/umap/js/modules/tableeditor.js +7 -7
- umap/static/umap/js/modules/ui/dialog.js +8 -4
- umap/static/umap/js/modules/utils.js +22 -13
- umap/static/umap/js/umap.controls.js +80 -146
- umap/static/umap/js/umap.core.js +9 -9
- umap/static/umap/js/umap.forms.js +41 -17
- umap/static/umap/js/umap.js +72 -65
- umap/static/umap/locale/am_ET.js +8 -2
- umap/static/umap/locale/am_ET.json +8 -2
- umap/static/umap/locale/ar.js +8 -2
- umap/static/umap/locale/ar.json +8 -2
- umap/static/umap/locale/ast.js +8 -2
- umap/static/umap/locale/ast.json +8 -2
- umap/static/umap/locale/bg.js +8 -2
- umap/static/umap/locale/bg.json +8 -2
- umap/static/umap/locale/br.js +42 -36
- umap/static/umap/locale/br.json +42 -36
- umap/static/umap/locale/ca.js +67 -61
- umap/static/umap/locale/ca.json +67 -61
- umap/static/umap/locale/cs_CZ.js +8 -2
- umap/static/umap/locale/cs_CZ.json +8 -2
- umap/static/umap/locale/da.js +8 -2
- umap/static/umap/locale/da.json +8 -2
- umap/static/umap/locale/de.js +143 -137
- umap/static/umap/locale/de.json +143 -137
- umap/static/umap/locale/el.js +54 -48
- umap/static/umap/locale/el.json +54 -48
- umap/static/umap/locale/en.js +10 -2
- umap/static/umap/locale/en.json +10 -2
- umap/static/umap/locale/en_US.json +8 -2
- umap/static/umap/locale/es.js +8 -2
- umap/static/umap/locale/es.json +8 -2
- umap/static/umap/locale/et.js +8 -2
- umap/static/umap/locale/et.json +8 -2
- umap/static/umap/locale/eu.js +346 -338
- umap/static/umap/locale/eu.json +346 -338
- umap/static/umap/locale/fa_IR.js +415 -407
- umap/static/umap/locale/fa_IR.json +415 -407
- umap/static/umap/locale/fi.js +8 -2
- umap/static/umap/locale/fi.json +8 -2
- umap/static/umap/locale/fr.js +11 -3
- umap/static/umap/locale/fr.json +11 -3
- umap/static/umap/locale/gl.js +8 -2
- umap/static/umap/locale/gl.json +8 -2
- umap/static/umap/locale/he.js +8 -2
- umap/static/umap/locale/he.json +8 -2
- umap/static/umap/locale/hr.js +8 -2
- umap/static/umap/locale/hr.json +8 -2
- umap/static/umap/locale/hu.js +31 -23
- umap/static/umap/locale/hu.json +31 -23
- umap/static/umap/locale/id.js +8 -2
- umap/static/umap/locale/id.json +8 -2
- umap/static/umap/locale/is.js +8 -2
- umap/static/umap/locale/is.json +8 -2
- umap/static/umap/locale/it.js +8 -2
- umap/static/umap/locale/it.json +8 -2
- umap/static/umap/locale/ja.js +8 -2
- umap/static/umap/locale/ja.json +8 -2
- umap/static/umap/locale/ko.js +8 -2
- umap/static/umap/locale/ko.json +8 -2
- umap/static/umap/locale/lt.js +8 -2
- umap/static/umap/locale/lt.json +8 -2
- umap/static/umap/locale/ms.js +8 -2
- umap/static/umap/locale/ms.json +8 -2
- umap/static/umap/locale/nl.js +8 -2
- umap/static/umap/locale/nl.json +8 -2
- umap/static/umap/locale/no.js +8 -2
- umap/static/umap/locale/no.json +8 -2
- umap/static/umap/locale/pl.js +54 -48
- umap/static/umap/locale/pl.json +54 -48
- umap/static/umap/locale/pl_PL.json +8 -2
- umap/static/umap/locale/pt.js +24 -18
- umap/static/umap/locale/pt.json +24 -18
- umap/static/umap/locale/pt_BR.js +8 -2
- umap/static/umap/locale/pt_BR.json +8 -2
- umap/static/umap/locale/pt_PT.js +214 -208
- umap/static/umap/locale/pt_PT.json +214 -208
- umap/static/umap/locale/ro.js +8 -2
- umap/static/umap/locale/ro.json +8 -2
- umap/static/umap/locale/ru.js +8 -2
- umap/static/umap/locale/ru.json +8 -2
- umap/static/umap/locale/sk_SK.js +8 -2
- umap/static/umap/locale/sk_SK.json +8 -2
- umap/static/umap/locale/sl.js +8 -2
- umap/static/umap/locale/sl.json +8 -2
- umap/static/umap/locale/sr.js +8 -2
- umap/static/umap/locale/sr.json +8 -2
- umap/static/umap/locale/sv.js +8 -2
- umap/static/umap/locale/sv.json +8 -2
- umap/static/umap/locale/th_TH.js +33 -27
- umap/static/umap/locale/th_TH.json +33 -27
- umap/static/umap/locale/tr.js +8 -2
- umap/static/umap/locale/tr.json +8 -2
- umap/static/umap/locale/uk_UA.js +8 -2
- umap/static/umap/locale/uk_UA.json +8 -2
- umap/static/umap/locale/vi.js +8 -2
- umap/static/umap/locale/vi.json +8 -2
- umap/static/umap/locale/vi_VN.json +8 -2
- umap/static/umap/locale/zh.js +8 -2
- umap/static/umap/locale/zh.json +8 -2
- umap/static/umap/locale/zh_CN.json +8 -2
- umap/static/umap/locale/zh_TW.Big5.json +8 -2
- umap/static/umap/locale/zh_TW.js +102 -96
- umap/static/umap/locale/zh_TW.json +102 -96
- umap/static/umap/map.css +111 -108
- umap/static/umap/nav.css +19 -10
- umap/static/umap/unittests/utils.js +230 -107
- umap/static/umap/vars.css +1 -0
- umap/static/umap/vendors/csv2geojson/csv2geojson.js +62 -40
- umap/static/umap/vendors/editable/Leaflet.Editable.js +2079 -1937
- umap/storage.py +1 -0
- umap/templates/404.html +5 -1
- umap/templates/500.html +3 -1
- umap/templates/auth/user_detail.html +8 -2
- umap/templates/auth/user_form.html +19 -10
- umap/templates/auth/user_stars.html +8 -2
- umap/templates/base.html +1 -0
- umap/templates/registration/login.html +18 -3
- umap/templates/umap/about.html +1 -0
- umap/templates/umap/about_summary.html +22 -7
- umap/templates/umap/components/alerts/alert.html +42 -21
- umap/templates/umap/content.html +2 -0
- umap/templates/umap/content_footer.html +7 -3
- umap/templates/umap/css.html +1 -0
- umap/templates/umap/dashboard_menu.html +15 -0
- umap/templates/umap/home.html +14 -4
- umap/templates/umap/js.html +4 -9
- umap/templates/umap/login_popup_end.html +10 -4
- umap/templates/umap/map_detail.html +8 -2
- umap/templates/umap/map_fragment.html +3 -1
- umap/templates/umap/map_init.html +2 -1
- umap/templates/umap/map_list.html +6 -3
- umap/templates/umap/map_table.html +36 -12
- umap/templates/umap/messages.html +0 -1
- umap/templates/umap/navigation.html +2 -1
- umap/templates/umap/password_change.html +5 -1
- umap/templates/umap/password_change_done.html +8 -2
- umap/templates/umap/search.html +8 -2
- umap/templates/umap/search_bar.html +1 -0
- umap/templates/umap/team_confirm_delete.html +19 -0
- umap/templates/umap/team_detail.html +27 -0
- umap/templates/umap/team_form.html +60 -0
- umap/templates/umap/user_dashboard.html +7 -9
- umap/templates/umap/user_teams.html +51 -0
- umap/tests/base.py +8 -1
- umap/tests/conftest.py +6 -0
- umap/tests/fixtures/test_circles_layer.geojson +219 -0
- umap/tests/fixtures/test_upload_georss.xml +20 -0
- umap/tests/integration/conftest.py +18 -4
- umap/tests/integration/helpers.py +12 -0
- umap/tests/integration/test_anonymous_owned_map.py +23 -0
- umap/tests/integration/test_basics.py +29 -0
- umap/tests/integration/test_browser.py +20 -0
- umap/tests/integration/test_caption.py +20 -0
- umap/tests/integration/test_circles_layer.py +69 -0
- umap/tests/integration/test_conditional_rules.py +102 -17
- umap/tests/integration/test_draw_polygon.py +138 -13
- umap/tests/integration/test_draw_polyline.py +8 -18
- umap/tests/integration/test_edit_datalayer.py +3 -3
- umap/tests/integration/test_import.py +124 -5
- umap/tests/integration/test_owned_map.py +21 -13
- umap/tests/integration/test_querystring.py +7 -0
- umap/tests/integration/test_team.py +47 -0
- umap/tests/integration/test_tilelayer.py +19 -2
- umap/tests/integration/test_view_marker.py +28 -1
- umap/tests/integration/test_websocket_sync.py +5 -5
- umap/tests/test_datalayer.py +32 -7
- umap/tests/test_datalayer_views.py +1 -1
- umap/tests/test_map.py +30 -4
- umap/tests/test_map_views.py +2 -2
- umap/tests/test_statics.py +40 -0
- umap/tests/test_team_views.py +131 -0
- umap/tests/test_views.py +15 -1
- umap/urls.py +23 -13
- umap/views.py +116 -10
- {umap_project-2.5.1.dist-info → umap_project-2.6.0.dist-info}/METADATA +14 -14
- {umap_project-2.5.1.dist-info → umap_project-2.6.0.dist-info}/RECORD +260 -253
- umap/static/umap/js/umap.datalayer.permissions.js +0 -70
- umap/static/umap/js/umap.features.js +0 -1290
- umap/static/umap/js/umap.layer.js +0 -1837
- umap/static/umap/js/umap.permissions.js +0 -208
- umap/static/umap/js/umap.popup.js +0 -341
- umap/static/umap/test/TableEditor.js +0 -104
- umap/static/umap/vendors/leaflet/leaflet-src.js +0 -14512
- umap/static/umap/vendors/leaflet/leaflet-src.js.map +0 -1
- umap/static/umap/vendors/leaflet/leaflet.js +0 -6
- umap/static/umap/vendors/leaflet/leaflet.js.map +0 -1
- umap/static/umap/vendors/markercluster/WhereAreTheJavascriptFiles.txt +0 -5
- umap/static/umap/vendors/markercluster/leaflet.markercluster-src.js +0 -2718
- umap/static/umap/vendors/markercluster/leaflet.markercluster-src.js.map +0 -1
- umap/static/umap/vendors/toolbar/leaflet.toolbar-src.css +0 -117
- umap/static/umap/vendors/toolbar/leaflet.toolbar-src.js +0 -365
- umap/tests/integration/test_statics.py +0 -47
- {umap_project-2.5.1.dist-info → umap_project-2.6.0.dist-info}/WHEEL +0 -0
- {umap_project-2.5.1.dist-info → umap_project-2.6.0.dist-info}/entry_points.txt +0 -0
- {umap_project-2.5.1.dist-info → umap_project-2.6.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
2
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
3
|
|
|
4
|
-
<svg width="
|
|
5
|
-
<sodipodi:namedview id="namedview2878" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:showpageshadow="2" inkscape:pageopacity="0.0" inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" inkscape:document-units="px" showgrid="true" showguides="true" inkscape:zoom="
|
|
6
|
-
<inkscape:grid type="xygrid" id="grid2997" empspacing="
|
|
7
|
-
<
|
|
8
|
-
<sodipodi:guide position="0,38.099995" orientation="0,1" id="guide3408" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
|
|
9
|
-
<sodipodi:guide position="28.575,47.625" orientation="-1,0" id="guide3444" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
|
|
10
|
-
<sodipodi:guide position="0,28.574996" orientation="0,1" id="guide3462" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
|
|
11
|
-
<sodipodi:guide position="0,19.049998" orientation="0,1" id="guide3485" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
|
|
12
|
-
<sodipodi:guide position="0,9.5249988" orientation="0,1" id="guide3503" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
|
|
13
|
-
<sodipodi:guide position="38.1,47.625" orientation="-1,0" id="guide3962" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
|
|
14
|
-
<sodipodi:guide position="19.05,47.625" orientation="-1,0" id="guide10098" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
|
|
4
|
+
<svg width="252" height="252" viewBox="0 0 66.674992 66.674992" version="1.1" id="svg2876" inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)" sodipodi:docname="24-white.svg" inkscape:export-filename="../24-white.svg" inkscape:export-xdpi="7.52" inkscape:export-ydpi="7.52" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
|
|
5
|
+
<sodipodi:namedview id="namedview2878" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:showpageshadow="2" inkscape:pageopacity="0.0" inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" inkscape:document-units="px" showgrid="true" showguides="true" inkscape:zoom="2.6753614" inkscape:cx="107.64901" inkscape:cy="85.409023" inkscape:window-width="960" inkscape:window-height="1011" inkscape:window-x="20" inkscape:window-y="20" inkscape:window-maximized="0" inkscape:current-layer="layer1">
|
|
6
|
+
<inkscape:grid type="xygrid" id="grid2997" empspacing="6" originx="0" originy="0" spacingy="0.2645833" spacingx="0.2645833" units="px" visible="true" />
|
|
7
|
+
<inkscape:grid id="grid1" units="px" originx="0" originy="0" spacingx="9.5249989" spacingy="9.5249989" empcolor="#3f3fff" empopacity="0.25098039" color="#3f3fff" opacity="0.1254902" empspacing="1" dotted="false" gridanglex="30" gridanglez="30" visible="true" />
|
|
15
8
|
</sodipodi:namedview>
|
|
16
9
|
<defs id="defs2873">
|
|
17
10
|
<clipPath id="clip0_166_13195">
|
|
@@ -27,7 +20,7 @@
|
|
|
27
20
|
<g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1">
|
|
28
21
|
<g transform="matrix(0.06466922,0,0,0.06466922,31.636347,225.50198)" id="Layer_1" />
|
|
29
22
|
<path style="fill:#f2f2f2;fill-opacity:1;stroke:#999999;stroke-width:0.0661458;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="m 6.3499993,2.1166664 -0.529166,0.529167 1.0583331,1.058333 0.529166,-0.529167 z m -0.79375,0.79375 -2.9104161,2.910417 1.0583329,1.058333 2.9104172,-2.910417 z m -2.9104161,2.910417 -0.7937501,1.852083 1.852083,-0.79375 z" id="edit" inkscape:connector-curvature="0" sodipodi:nodetypes="cccccccccccccc" class="sprite" />
|
|
30
|
-
<path style="fill:#f2f2f2;fill-opacity:1;fill-rule:nonzero;stroke:#999999;stroke-width:0.0661458;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="m
|
|
23
|
+
<path style="fill:#f2f2f2;fill-opacity:1;fill-rule:nonzero;stroke:#999999;stroke-width:0.0661458;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="m 51.858325,21.166657 v 0.529167 c -0.529167,0 -1.058333,0 -1.322917,0.529166 v 0.264584 h 3.704167 v -0.264584 c -0.264583,-0.529166 -0.79375,-0.529166 -1.322917,-0.529166 v -0.529167 z m -1.322917,1.5875 0.79375,3.704172 h 2.116667 l 0.79375,-3.704172 z" id="delete" inkscape:connector-curvature="0" sodipodi:nodetypes="cccccccccccccc" inkscape:label="" class="sprite" />
|
|
31
24
|
<g id="markers" transform="matrix(0.26458333,0,0,0.26458333,14.287495,-226.04994)" style="fill:#f2f2f2;fill-opacity:1;stroke:#999999;stroke-width:0.25;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" class="sprite">
|
|
32
25
|
<path sodipodi:nodetypes="sccccsssccs" inkscape:connector-curvature="0" id="rect2985" d="m 105.25387,934.36268 c -3.17753,0 -6.346004,2.1278 -7.25387,6.3794 0,2.551 1.806672,7.6679 7.25387,13.6201 1.46368,-1.5994 2.66945,-3.1177 3.64397,-4.5613 -1.4505,-2.1639 -2.41497,-4.0873 -2.96285,-5.7095 -0.22599,0.041 -0.44225,0.063 -0.68112,0.063 -2.0056,0 -3.64396,-1.5346 -3.64396,-3.413 0,-1.8785 1.63836,-3.3811 3.64396,-3.3811 0.51205,0 0.98854,0.076 1.43034,0.2552 0.64347,-0.9222 1.4345,-1.6571 2.31579,-2.169 -1.14444,-0.7114 -2.44633,-1.0845 -3.74613,-1.0845 z" style="fill:#f2f2f2;fill-opacity:1;stroke:#999999;stroke-width:0.25;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
|
33
26
|
<path id="path3378" d="m 111,934.36218 c -3.0625,0 -6.125,2.1277 -7,6.383 0,2.5532 1.75,7.6596 7,13.617 5.25,-5.9574 7,-11.0638 7,-13.617 -0.875,-4.2553 -3.9375,-6.383 -7,-6.383 z m 0,2.9788 c 1.933,0 3.5,1.5241 3.5,3.4042 0,1.8801 -1.567,3.4043 -3.5,3.4043 -1.93299,0 -3.5,-1.5242 -3.5,-3.4043 0,-1.8801 1.56701,-3.4042 3.5,-3.4042 z" style="fill:#f2f2f2;fill-opacity:1;stroke:#999999;stroke-width:0.25;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" inkscape:connector-curvature="0" />
|
|
@@ -40,8 +33,8 @@
|
|
|
40
33
|
</g>
|
|
41
34
|
<path style="fill:#f2f2f2;fill-opacity:1;stroke:#999999;stroke-width:0.0661458;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="m 42.862495,1.5874998 c -1.753505,0 -3.175,1.421495 -3.175,3.175 0,1.753504 1.421495,3.175 3.175,3.175 1.753505,0 3.175,-1.421496 3.175,-3.175 0,-1.753505 -1.421495,-3.175 -3.175,-3.175 z m 0,1.322916 1.852083,1.852084 h -1.322917 v 1.5875 h -1.058333 v -1.5875 h -1.322917 z" id="import" class="sprite" />
|
|
42
35
|
<g id="set-zoom" class="sprite" transform="translate(-0.6834795,-1.3228864)">
|
|
43
|
-
<polygon points="11.27,100 0,88.737 17.702,71.042 9.297,62.644 37.37,62.644 37.37,90.703
|
|
44
|
-
<polygon points="90.71,37.37 82.298,28.958 100,11.263 88.743,0 71.042,17.708 62.644,9.31
|
|
36
|
+
<polygon points="28.965,82.305 11.27,100 0,88.737 17.702,71.042 9.297,62.644 37.37,62.644 37.37,90.703 " id="polygon3044" transform="matrix(0.0635,0,0,0.0635,2.2709793,12.435385)" style="fill:#f2f2f2;fill-opacity:1;stroke:#999999;stroke-width:1.04167;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
|
37
|
+
<polygon points="62.644,37.357 90.71,37.37 82.298,28.958 100,11.263 88.743,0 71.042,17.708 62.644,9.31 " id="polygon3048" transform="matrix(0.0635,0,0,0.0635,2.2709793,12.435385)" style="fill:#f2f2f2;fill-opacity:1;stroke:#999999;stroke-width:1.04167;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
|
45
38
|
<path inkscape:connector-curvature="0" d="m 5.4459792,14.83486 c -0.428308,0 -0.775525,0.347281 -0.775525,0.775525 0,0.429133 0.347281,0.776415 0.775525,0.776415 0.428308,0 0.77597,-0.347282 0.77597,-0.776415 0,-0.428307 -0.347662,-0.775525 -0.77597,-0.775525 z" id="path3052" style="fill:#f2f2f2;fill-opacity:1;stroke:#999999;stroke-width:0.0661458;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
|
46
39
|
</g>
|
|
47
40
|
<path d="m 12.46022,12.700003 c -0.890121,-0.0021 -1.610322,0.711677 -1.612305,1.5875 0.002,0.877761 0.722184,1.586074 1.612305,1.5875 0.593513,-8.73e-4 1.110529,-0.321123 1.389062,-0.79375 h 0.65319 l 0.520899,-0.504362 0.396875,0.380339 0.380338,-0.372071 0.388607,0.380339 0.396875,-0.380339 0.388607,0.380339 0.677995,-0.65319 c 0.09761,-0.09927 0.100015,-0.174188 0,-0.272852 l -0.553972,-0.545703 h -3.241145 c -0.277125,-0.47713 -0.799764,-0.794984 -1.397331,-0.79375 z m -0.7028,1.157552 c 0.233963,-0.0011 0.419905,0.187463 0.42168,0.42168 -0.0017,0.230957 -0.187613,0.419542 -0.42168,0.42168 -0.237929,-0.0024 -0.43214,-0.190723 -0.429948,-0.42168 -0.0022,-0.234217 0.192019,-0.422799 0.429948,-0.42168 z" id="permissions" style="fill:#f2f2f2;fill-opacity:1;stroke:#999999;stroke-width:0.0661458;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" class="sprite" />
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
2
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
3
|
|
|
4
|
-
<svg width="
|
|
5
|
-
<sodipodi:namedview id="namedview6239" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:showpageshadow="2" inkscape:pageopacity="0.0" inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" inkscape:document-units="px" showgrid="true" showguides="true" inkscape:zoom="
|
|
6
|
-
<inkscape:grid type="xygrid" id="grid6358" empspacing="
|
|
7
|
-
<
|
|
8
|
-
<sodipodi:guide position="19.05,47.625" orientation="-1,0" id="guide6362" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
|
|
9
|
-
<sodipodi:guide position="28.574999,47.625" orientation="-1,0" id="guide6364" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
|
|
10
|
-
<sodipodi:guide position="38.099999,47.625" orientation="-1,0" id="guide6366" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
|
|
11
|
-
<sodipodi:guide position="0,38.099999" orientation="0,1" id="guide7146" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
|
|
12
|
-
<sodipodi:guide position="0,28.574999" orientation="0,1" id="guide7148" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
|
|
13
|
-
<sodipodi:guide position="0,19.05" orientation="0,1" id="guide7150" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
|
|
14
|
-
<sodipodi:guide position="0,9.5249998" orientation="0,1" id="guide7152" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
|
|
4
|
+
<svg width="252" height="252" viewBox="0 0 66.674999 66.674999" version="1.1" id="svg6237" inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)" sodipodi:docname="24.svg" inkscape:export-filename="../24.svg" inkscape:export-xdpi="7.52" inkscape:export-ydpi="7.52" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
|
|
5
|
+
<sodipodi:namedview id="namedview6239" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:showpageshadow="2" inkscape:pageopacity="0.0" inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" inkscape:document-units="px" showgrid="true" showguides="true" inkscape:zoom="3.1596124" inkscape:cx="117.10297" inkscape:cy="106.50041" inkscape:window-width="960" inkscape:window-height="1011" inkscape:window-x="20" inkscape:window-y="20" inkscape:window-maximized="0" inkscape:current-layer="layer1">
|
|
6
|
+
<inkscape:grid type="xygrid" id="grid6358" empspacing="6" originx="0" originy="0" spacingy="0.26458333" spacingx="0.26458333" units="px" visible="true" />
|
|
7
|
+
<inkscape:grid id="grid1" units="px" originx="0" originy="0" spacingx="9.5249999" spacingy="9.5249999" empcolor="#3f3fff" empopacity="0.25098039" color="#ff0000" opacity="0.83529412" empspacing="0" dotted="false" gridanglex="30" gridanglez="30" visible="true" />
|
|
15
8
|
</sodipodi:namedview>
|
|
16
9
|
<defs id="defs6234">
|
|
17
10
|
<clipPath id="clip0_166_13480">
|
|
@@ -26,7 +19,7 @@
|
|
|
26
19
|
</defs>
|
|
27
20
|
<g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1">
|
|
28
21
|
<path style="fill:#4d4d4d;fill-opacity:1;stroke:none;stroke-width:0.264583" d="m 6.6145836,2.1166666 -0.529167,0.529167 1.058333,1.058333 0.529167,-0.529167 z m -0.79375,0.79375 -2.910417,2.910417 1.058333,1.058333 2.910417,-2.910417 z m -2.910417,2.910417 -0.79375,1.852083 1.852083,-0.79375 z" id="edit" inkscape:connector-curvature="0" sodipodi:nodetypes="cccccccccccccc" class="sprite" />
|
|
29
|
-
<path style="fill:#4d4d4d;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.264583" d="m
|
|
22
|
+
<path style="fill:#4d4d4d;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.264583" d="m 51.858331,21.16666 v 0.529167 c -0.529167,0 -1.058333,0 -1.322917,0.529166 v 0.264584 h 3.704167 v -0.264584 c -0.264583,-0.529166 -0.79375,-0.529166 -1.322917,-0.529166 v -0.529167 z m -1.322917,1.5875 0.79375,3.704172 h 2.116667 l 0.79375,-3.704172 z" id="delete" inkscape:connector-curvature="0" sodipodi:nodetypes="cccccccccccccc" inkscape:label="delete-30" class="sprite" />
|
|
30
23
|
<g id="measure" transform="matrix(0.26458333,0,0,0.26458333,-11.112499,-232.45291)" class="sprite">
|
|
31
24
|
<path sodipodi:nodetypes="ccccccccccccccccccccccccccccc" inkscape:connector-curvature="0" id="rect4452" d="m 47.999998,965.36218 h 3.000002 v 8 h 2 v -8 h 2 v 5 h 1 v -5 h 2 v 5 h 1 v -5 h 2 v 5 h 1 v -5 h 2 v 5 h 1 v -5 h 2 v 8 h 2 v -8 h 3 v 11 h -24 z" style="fill:#4d4d4d;fill-opacity:1;fill-rule:nonzero;stroke:none" />
|
|
32
25
|
<text id="text4455" y="964.36218" x="49.170559" style="font-style:normal;font-weight:normal;line-height:0%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#4d4d4d;fill-opacity:1;stroke:none" xml:space="preserve"><tspan style="font-weight:bold;font-size:8px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'Sans Bold';fill:#4d4d4d;fill-opacity:1" y="964.36218" x="49.170559" id="tspan4457" sodipodi:role="line">0</tspan></text>
|
|
@@ -44,12 +37,12 @@
|
|
|
44
37
|
</g>
|
|
45
38
|
<path style="fill:#464646;fill-opacity:1;stroke:none;stroke-width:0.264583" d="m 42.862499,1.5875 c -1.753504,0 -3.175,1.421495 -3.175,3.175 0,1.753504 1.421496,3.175 3.175,3.175 1.753505,0 3.175,-1.421496 3.175,-3.175 0,-1.753505 -1.421495,-3.175 -3.175,-3.175 z m 0,1.322916 1.852084,1.852084 h -1.322917 v 1.5875 h -1.058333 v -1.5875 h -1.322917 z" id="import" inkscape:connector-curvature="0" sodipodi:nodetypes="ssssscccccccc" class="sprite" />
|
|
46
39
|
<g id="set-zoom" class="sprite" transform="matrix(0.26458333,0,0,0.26458333,-0.52916667,-227.10832)">
|
|
47
|
-
<polygon points="17.702,71.042 9.297,62.644 37.37,62.644 37.37,90.703 28.965,82.305 11.27,100
|
|
48
|
-
<polygon points="100,11.263 88.743,0 71.042,17.708 62.644,9.31 62.644,37.357 90.71,37.37
|
|
40
|
+
<polygon points="0,88.737 17.702,71.042 9.297,62.644 37.37,62.644 37.37,90.703 28.965,82.305 11.27,100 " id="polygon3044" transform="matrix(0.24,0,0,0.24,8,900.36218)" style="fill:#4d4d4d;fill-opacity:1" />
|
|
41
|
+
<polygon points="82.298,28.958 100,11.263 88.743,0 71.042,17.708 62.644,9.31 62.644,37.357 90.71,37.37 " id="polygon3048" transform="matrix(0.24,0,0,0.24,8,900.36218)" style="fill:#4d4d4d;fill-opacity:1" />
|
|
49
42
|
<path inkscape:connector-curvature="0" d="m 20,909.43106 c -1.618801,0 -2.93112,1.31256 -2.93112,2.93112 0,1.62192 1.31256,2.93448 2.93112,2.93448 1.6188,0 2.9328,-1.31256 2.9328,-2.93448 0,-1.6188 -1.314,-2.93112 -2.9328,-2.93112 z" id="path3052" style="fill:#4d4d4d;fill-opacity:1" />
|
|
50
43
|
</g>
|
|
51
44
|
<path d="m 12.460221,12.700004 c -0.890121,-0.0021 -1.610321,0.711677 -1.612305,1.5875 0.002,0.877761 0.722184,1.586074 1.612305,1.5875 0.593513,-8.73e-4 1.110529,-0.321123 1.389062,-0.79375 h 0.65319 l 0.520899,-0.504362 0.396875,0.380339 0.380338,-0.37207 0.388607,0.380338 0.396875,-0.380338 0.388607,0.380338 0.677994,-0.65319 c 0.09761,-0.09927 0.100016,-0.174188 0,-0.272852 l -0.553971,-0.545703 h -3.241146 c -0.277124,-0.47713 -0.799763,-0.794983 -1.39733,-0.79375 z m -0.7028,1.157552 c 0.233962,-0.0011 0.419905,0.187463 0.42168,0.42168 -0.0017,0.230958 -0.187613,0.419542 -0.42168,0.42168 -0.237929,-0.0024 -0.43214,-0.190722 -0.429948,-0.42168 -0.0022,-0.234217 0.192019,-0.422799 0.429948,-0.42168 z" id="permissions" style="fill:#4d4d4d;fill-opacity:1;stroke-width:0.264583" class="sprite" />
|
|
52
|
-
<polygon points="
|
|
45
|
+
<polygon points="43.75,87.5 43.75,62.5 56.25,62.5 56.25,87.5 87.5,87.5 87.5,50 100,50 50,0 0,50 12.5,50 12.5,87.5 " id="home" transform="matrix(0.0635,0,0,0.0635,30.162499,20.902083)" style="fill:#4d4d4d;fill-opacity:1" class="sprite" />
|
|
53
46
|
<path inkscape:connector-curvature="0" d="m 7.937502,33.337505 c 0,-0.119238 -0.0078,-0.236713 -0.02082,-0.352777 h -0.356658 c -0.159103,-1.275998 -1.168753,-2.285648 -2.44475,-2.445102 v -0.356307 c -0.116064,-0.01304 -0.233539,-0.02082 -0.352778,-0.02082 -0.119239,0 -0.236714,0.0078 -0.352778,0.02082 v 0.356659 c -1.275997,0.159102 -2.285647,1.168752 -2.445103,2.44475 h -0.356305 c -0.01305,0.116064 -0.02081,0.233539 -0.02081,0.352777 0,0.119239 0.0078,0.236714 0.02081,0.352779 h 0.356658 c 0.159103,1.275996 1.168753,2.285659 2.44475,2.445123 v 0.356658 c 0.116064,0.0127 0.233539,0.02037 0.352778,0.02037 0.119239,0 0.236714,-0.0077 0.352778,-0.0209 v -0.356658 c 1.275644,-0.159438 2.285647,-1.168757 2.445102,-2.444753 h 0.356659 c 0.0127,-0.115712 0.02046,-0.233187 0.02046,-0.352779 z m -2.822223,2.084929 v -0.32104 c 0,-0.195085 -0.158044,-0.352777 -0.352777,-0.352777 -0.194734,0 -0.352778,0.157692 -0.352778,0.352777 v 0.32104 c -0.885472,-0.148883 -1.582914,-0.845973 -1.731786,-1.731798 l 0.320675,-2.65e-4 c 0.195086,0 0.352778,-0.158046 0.352778,-0.352779 0,-0.194733 -0.157692,-0.352777 -0.352778,-0.352777 h -0.321028 c 0.149225,-0.885473 0.846667,-1.582915 1.732139,-1.73214 v 0.32103 c 0,0.194733 0.158044,0.352777 0.352778,0.352777 0.194733,0 0.352777,-0.158044 0.352777,-0.352777 v -0.32103 c 0.885825,0.148873 1.583267,0.846315 1.732139,1.73214 h -0.321028 c -0.195086,0 -0.352777,0.158044 -0.352777,0.352777 0,0.194733 0.157691,0.352779 0.352777,0.352779 l 0.321028,2.65e-4 c -0.149225,0.885825 -0.846314,1.582915 -1.732139,1.731798 z" id="geolocation" style="fill:#4d4d4d;fill-opacity:1;stroke-width:0.264583" class="sprite" />
|
|
54
47
|
<g id="share" class="sprite" transform="matrix(0.26458333,0,0,0.26458333,-2.6458336,-229.22505)">
|
|
55
48
|
<circle id="path4309" style="fill:none;stroke:#464646;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" cx="100" cy="992.3623" r="11" />
|
|
@@ -102,8 +95,8 @@
|
|
|
102
95
|
</g>
|
|
103
96
|
<path d="m 25.146689,1.8520833 h -4.243941 c -0.07035,0 -0.137815,0.027946 -0.187558,0.077689 -0.04974,0.049744 -0.07769,0.1172099 -0.07769,0.1875586 v 4.2439405 c 0,0.070353 0.02795,0.1378215 0.07769,0.1875632 0.04974,0.049742 0.11721,0.077682 0.187558,0.077682 h 4.243941 c 0.07035,0 0.137821,-0.02794 0.187563,-0.077682 0.04974,-0.049742 0.07768,-0.1172105 0.07768,-0.1875632 v -4.2439405 c 0,-0.070349 -0.02794,-0.1378151 -0.07768,-0.1875586 -0.04974,-0.049743 -0.11721,-0.077689 -0.187563,-0.077689 z m -0.265245,4.1590648 h -3.713451 v -3.5463453 h 3.713451 z" fill="#464646" id="path2378" style="stroke-width:0.264583" />
|
|
104
97
|
</g>
|
|
105
|
-
<g id="info" transform="matrix(0.33072916,0,0,0.33072916,-11.90625,-256.10415)" style="
|
|
106
|
-
<path id="path3762" style="fill:#4d4d4d;fill-opacity:1;stroke:none;stroke-width:0.8" d="
|
|
98
|
+
<g id="info" transform="matrix(0.33072916,0,0,0.33072916,-11.90625,-256.10415)" style="fill:#4d4d4d;fill-opacity:1;stroke-width:0.8">
|
|
99
|
+
<path id="path3762" style="fill:#4d4d4d;fill-opacity:1;stroke:none;stroke-width:0.8" d="m 108,838.36217 a 8,8 0 0 0 -8,8 8,8 0 0 0 8,8 8,8 0 0 0 8,-8 8,8 0 0 0 -8,-8 z m 0,2.5 a 1.5,1.5 0 0 1 1.5,1.5 1.5,1.5 0 0 1 -1.5,1.5 1.5,1.5 0 0 1 -1.5,-1.5 1.5,1.5 0 0 1 1.5,-1.5 z m -1,4.5 h 2 v 6 h -2 z" />
|
|
107
100
|
</g>
|
|
108
101
|
</g>
|
|
109
102
|
</svg>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
display: flex;
|
|
15
15
|
justify-content: space-between;
|
|
16
16
|
align-items: flex-start;
|
|
17
|
-
|
|
17
|
+
inset-inline-start: 50%;
|
|
18
18
|
transform: translate(-50%, 0);
|
|
19
19
|
max-width: calc(100% - var(--panel-gutter) * 2);
|
|
20
20
|
width: max-content;
|
|
@@ -25,20 +25,29 @@
|
|
|
25
25
|
min-width: 60%;
|
|
26
26
|
background-size: 20px;
|
|
27
27
|
background-position: 0 15px;
|
|
28
|
-
padding-
|
|
28
|
+
padding-inline-start: 28px;
|
|
29
29
|
}
|
|
30
30
|
.umap-alert[role="dialog"][data-level="info"] > div {
|
|
31
31
|
background-image: url('../../../img/alert-icon-info.svg');
|
|
32
32
|
background-repeat: no-repeat;
|
|
33
33
|
}
|
|
34
|
+
html[dir="rtl"] .umap-alert[role="dialog"][data-level="info"] > div {
|
|
35
|
+
background-position: right;
|
|
36
|
+
}
|
|
34
37
|
.umap-alert[role="dialog"][data-level="success"] > div {
|
|
35
38
|
background-image: url('../../../img/alert-icon-success.svg');
|
|
36
39
|
background-repeat: no-repeat;
|
|
37
40
|
}
|
|
41
|
+
html[dir="rtl"] .umap-alert[role="dialog"][data-level="success"] > div {
|
|
42
|
+
background-position: right;
|
|
43
|
+
}
|
|
38
44
|
.umap-alert[role="dialog"][data-level="error"] > div {
|
|
39
45
|
background-image: url('../../../img/alert-icon-error.svg');
|
|
40
46
|
background-repeat: no-repeat;
|
|
41
47
|
}
|
|
48
|
+
html[dir="rtl"] .umap-alert[role="dialog"][data-level="error"] > div {
|
|
49
|
+
background-position: right;
|
|
50
|
+
}
|
|
42
51
|
.umap-alert[role="dialog"][data-level="error"] {
|
|
43
52
|
background-color: var(--color-darkRed);
|
|
44
53
|
}
|
|
@@ -51,9 +60,12 @@
|
|
|
51
60
|
}
|
|
52
61
|
.umap-alert[role="dialog"] a[target="_blank"] {
|
|
53
62
|
background: url('../../../img/icon-external-link.svg') no-repeat right center;
|
|
54
|
-
padding-
|
|
63
|
+
padding-inline-end: 14px;
|
|
55
64
|
background-size: 12px;
|
|
56
65
|
}
|
|
66
|
+
html[dir="rtl"] .umap-alert[role="dialog"] a[target="_blank"] {
|
|
67
|
+
background: url('../../../img/icon-external-link.svg') no-repeat left center;
|
|
68
|
+
}
|
|
57
69
|
h3[role="alert"] {
|
|
58
70
|
margin-bottom: 0;
|
|
59
71
|
margin-top: 1rem;
|
|
@@ -74,14 +86,14 @@ h3[role="alert"] + p {
|
|
|
74
86
|
}
|
|
75
87
|
[role="group"] input:not([type="checkbox"], [type="radio"]):not(:last-child),
|
|
76
88
|
[role="group"] > :not(:last-child) {
|
|
77
|
-
border-
|
|
78
|
-
border-
|
|
89
|
+
border-start-end-radius: 0;
|
|
90
|
+
border-end-end-radius: 0;
|
|
79
91
|
}
|
|
80
92
|
[role="group"] input:not([type="checkbox"], [type="radio"]):not(:first-child),
|
|
81
93
|
[role="group"] > :not(:first-child) {
|
|
82
|
-
margin-
|
|
83
|
-
border-
|
|
84
|
-
border-
|
|
94
|
+
margin-inline-start: 0;
|
|
95
|
+
border-start-start-radius: 0;
|
|
96
|
+
border-end-start-radius: 0;
|
|
85
97
|
width: 45%;
|
|
86
98
|
}
|
|
87
99
|
[role="group"] input[type="submit"] {
|
|
@@ -9,8 +9,8 @@ import { Request, ServerRequest } from './request.js'
|
|
|
9
9
|
import { escapeHTML, generateId } from './utils.js'
|
|
10
10
|
|
|
11
11
|
export class BaseAutocomplete {
|
|
12
|
-
constructor(
|
|
13
|
-
this.
|
|
12
|
+
constructor(parent, options) {
|
|
13
|
+
this.parent = parent
|
|
14
14
|
this.options = {
|
|
15
15
|
placeholder: translate('Start typing...'),
|
|
16
16
|
emptyMessage: translate('No result'),
|
|
@@ -43,7 +43,7 @@ export class BaseAutocomplete {
|
|
|
43
43
|
this.input = DomUtil.element({
|
|
44
44
|
tagName: 'input',
|
|
45
45
|
type: 'text',
|
|
46
|
-
parent: this.
|
|
46
|
+
parent: this.parent,
|
|
47
47
|
placeholder: this.options.placeholder,
|
|
48
48
|
autocomplete: 'off',
|
|
49
49
|
className: this.options.className,
|
|
@@ -306,15 +306,11 @@ export const SingleMixin = (Base) =>
|
|
|
306
306
|
textContent: '×',
|
|
307
307
|
})
|
|
308
308
|
this.input.style.display = 'none'
|
|
309
|
-
DomEvent.on(
|
|
310
|
-
|
|
311
|
-
'
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
this.input.style.display = 'block'
|
|
315
|
-
},
|
|
316
|
-
this
|
|
317
|
-
)
|
|
309
|
+
DomEvent.on(close, 'click', () => {
|
|
310
|
+
this.selectedContainer.innerHTML = ''
|
|
311
|
+
this.input.style.display = 'block'
|
|
312
|
+
this.options.on_unselect(result)
|
|
313
|
+
})
|
|
318
314
|
this.hide()
|
|
319
315
|
}
|
|
320
316
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DomEvent, DomUtil, stamp } from '../../vendors/leaflet/leaflet-src.esm.js'
|
|
2
2
|
import { translate } from './i18n.js'
|
|
3
|
+
import * as Icon from './rendering/icon.js'
|
|
3
4
|
|
|
4
5
|
export default class Browser {
|
|
5
6
|
constructor(map) {
|
|
@@ -34,14 +35,14 @@ export default class Browser {
|
|
|
34
35
|
const colorBox = DomUtil.create('i', 'icon icon-16 feature-color', row)
|
|
35
36
|
const title = DomUtil.create('span', 'feature-title', row)
|
|
36
37
|
const symbol = feature._getIconUrl
|
|
37
|
-
?
|
|
38
|
+
? Icon.formatUrl(feature._getIconUrl(), feature)
|
|
38
39
|
: null
|
|
39
40
|
title.textContent = feature.getDisplayName() || '—'
|
|
40
41
|
const bgcolor = feature.getPreviewColor()
|
|
41
42
|
colorBox.style.backgroundColor = bgcolor
|
|
42
43
|
if (symbol && symbol !== U.SCHEMA.iconUrl.default) {
|
|
43
|
-
const icon =
|
|
44
|
-
|
|
44
|
+
const icon = Icon.makeElement(symbol, colorBox)
|
|
45
|
+
Icon.setContrast(icon, colorBox, symbol, bgcolor)
|
|
45
46
|
}
|
|
46
47
|
const viewFeature = (e) => {
|
|
47
48
|
feature.zoomTo({ ...e, callback: feature.view })
|
|
@@ -20,7 +20,7 @@ export default class Caption {
|
|
|
20
20
|
const container = DomUtil.create('div', 'umap-caption')
|
|
21
21
|
const hgroup = DomUtil.element({ tagName: 'hgroup', parent: container })
|
|
22
22
|
DomUtil.createTitle(hgroup, this.map.options.name, 'icon-caption icon-block')
|
|
23
|
-
this.map.
|
|
23
|
+
this.map.addAuthorLink('h4', hgroup)
|
|
24
24
|
if (this.map.options.description) {
|
|
25
25
|
const description = DomUtil.element({
|
|
26
26
|
tagName: 'div',
|
|
@@ -43,16 +43,14 @@ export default class Caption {
|
|
|
43
43
|
const p = DomUtil.create('p', 'datalayer-legend', container)
|
|
44
44
|
const legend = DomUtil.create('span', '', p)
|
|
45
45
|
const headline = DomUtil.create('strong', '', p)
|
|
46
|
-
datalayer.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
})
|
|
46
|
+
datalayer.renderLegend(legend)
|
|
47
|
+
if (datalayer.options.description) {
|
|
48
|
+
DomUtil.element({
|
|
49
|
+
tagName: 'span',
|
|
50
|
+
parent: p,
|
|
51
|
+
safeHTML: Utils.toHTML(datalayer.options.description),
|
|
52
|
+
})
|
|
53
|
+
}
|
|
56
54
|
datalayer.renderToolbox(headline)
|
|
57
55
|
DomUtil.add('span', '', headline, `${datalayer.options.name} `)
|
|
58
56
|
}
|