umap-project 2.7.0__py3-none-any.whl → 2.7.0b0__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/locale/es/LC_MESSAGES/django.mo +0 -0
- umap/locale/es/LC_MESSAGES/django.po +128 -134
- umap/settings/base.py +1 -1
- umap/static/umap/css/contextmenu.css +1 -1
- umap/static/umap/css/importers.css +0 -4
- umap/static/umap/img/16.svg +184 -1
- umap/static/umap/img/24-white.svg +0 -1
- umap/static/umap/img/24.svg +0 -1
- umap/static/umap/img/source/16.svg +200 -753
- umap/static/umap/img/source/24-white.svg +2 -3
- umap/static/umap/img/source/24.svg +2 -3
- umap/static/umap/js/modules/browser.js +0 -47
- umap/static/umap/js/modules/caption.js +4 -10
- umap/static/umap/js/modules/data/layer.js +14 -26
- umap/static/umap/js/modules/importer.js +0 -3
- umap/static/umap/js/modules/importers/communesfr.js +2 -2
- umap/static/umap/js/modules/rendering/layers/classified.js +0 -2
- umap/static/umap/js/modules/rendering/ui.js +6 -28
- umap/static/umap/js/modules/share.js +3 -1
- umap/static/umap/js/modules/slideshow.js +1 -1
- umap/static/umap/js/modules/sync/engine.js +8 -14
- umap/static/umap/js/modules/sync/hlc.js +3 -3
- umap/static/umap/js/modules/sync/updaters.js +2 -14
- umap/static/umap/js/modules/tableeditor.js +1 -1
- umap/static/umap/js/modules/ui/contextmenu.js +2 -18
- umap/static/umap/js/modules/utils.js +4 -24
- umap/static/umap/js/umap.controls.js +10 -31
- umap/static/umap/js/umap.core.js +1 -1
- umap/static/umap/js/umap.js +23 -31
- umap/static/umap/locale/ca.js +4 -8
- umap/static/umap/locale/ca.json +4 -8
- umap/static/umap/locale/en.js +1 -5
- umap/static/umap/locale/en.json +1 -5
- umap/static/umap/locale/es.js +319 -330
- umap/static/umap/locale/es.json +319 -330
- umap/static/umap/locale/fr.js +1 -5
- umap/static/umap/locale/fr.json +1 -5
- umap/static/umap/map.css +7 -37
- umap/static/umap/unittests/hlc.js +3 -10
- umap/static/umap/unittests/utils.js +0 -24
- umap/static/umap/vars.css +1 -2
- umap/static/umap/vendors/colorbrewer/colorbrewer.js +317 -309
- umap/static/umap/vendors/dompurify/purify.es.js +16 -15
- umap/static/umap/vendors/dompurify/purify.es.mjs.map +1 -1
- umap/static/umap/vendors/locatecontrol/L.Control.Locate.min.js +2 -2
- umap/static/umap/vendors/locatecontrol/L.Control.Locate.min.js.map +1 -1
- umap/static/umap/vendors/simple-statistics/simple-statistics.min.js +1 -1
- umap/static/umap/vendors/simple-statistics/simple-statistics.min.js.map +1 -1
- umap/templates/umap/css.html +2 -0
- umap/templates/umap/js.html +1 -0
- umap/templates/umap/map_detail.html +2 -2
- umap/tests/fixtures/test_upload_data.csv +2 -2
- umap/tests/integration/test_browser.py +7 -69
- umap/tests/integration/test_caption.py +3 -3
- umap/tests/integration/test_datalayer.py +5 -1
- umap/tests/integration/test_edit_datalayer.py +2 -1
- umap/tests/integration/test_edit_map.py +1 -1
- umap/tests/integration/test_edit_marker.py +1 -1
- umap/tests/integration/test_facets_browser.py +3 -3
- umap/tests/integration/test_import.py +4 -0
- umap/tests/integration/test_map.py +4 -0
- umap/tests/integration/test_view_marker.py +0 -63
- umap/tests/test_map_views.py +0 -19
- {umap_project-2.7.0.dist-info → umap_project-2.7.0b0.dist-info}/METADATA +10 -14
- {umap_project-2.7.0.dist-info → umap_project-2.7.0b0.dist-info}/RECORD +69 -72
- umap/asgi.py +0 -15
- umap/static/umap/img/importers/cadastrefr.svg +0 -23
- umap/static/umap/js/modules/importers/cadastrefr.js +0 -62
- {umap_project-2.7.0.dist-info → umap_project-2.7.0b0.dist-info}/WHEEL +0 -0
- {umap_project-2.7.0.dist-info → umap_project-2.7.0b0.dist-info}/entry_points.txt +0 -0
- {umap_project-2.7.0.dist-info → umap_project-2.7.0b0.dist-info}/licenses/LICENSE +0 -0
umap/static/umap/locale/fr.js
CHANGED
|
@@ -513,11 +513,7 @@ const locale = {
|
|
|
513
513
|
"Type new owner's username": "Nom d'utilisateur du nouveau propriétaire",
|
|
514
514
|
"Type editor's username": "Nom d'utilisateur de l'éditeur",
|
|
515
515
|
"Map": "Carte",
|
|
516
|
-
"Manage collaborators": "Gérer les collaborateurs"
|
|
517
|
-
"show/hide all layers": "montrer/masquer les calques",
|
|
518
|
-
"zoom to data extent": "zoomer sur les données",
|
|
519
|
-
"download visible data": "télécharger les données affichées",
|
|
520
|
-
"{connectedPeers} peer(s) currently connected to this map": "{connectedPeers} personne(s) actuellement connectée(s) à cette carte"
|
|
516
|
+
"Manage collaborators": "Gérer les collaborateurs"
|
|
521
517
|
}
|
|
522
518
|
L.registerLocale("fr", locale)
|
|
523
519
|
L.setLocale("fr")
|
umap/static/umap/locale/fr.json
CHANGED
|
@@ -513,9 +513,5 @@
|
|
|
513
513
|
"Type new owner's username": "Nom d'utilisateur du nouveau propriétaire",
|
|
514
514
|
"Type editor's username": "Nom d'utilisateur de l'éditeur",
|
|
515
515
|
"Map": "Carte",
|
|
516
|
-
"Manage collaborators": "Gérer les collaborateurs"
|
|
517
|
-
"show/hide all layers": "montrer/masquer les calques",
|
|
518
|
-
"zoom to data extent": "zoomer sur les données",
|
|
519
|
-
"download visible data": "télécharger les données affichées",
|
|
520
|
-
"{connectedPeers} peer(s) currently connected to this map": "{connectedPeers} personne(s) actuellement connectée(s) à cette carte"
|
|
516
|
+
"Manage collaborators": "Gérer les collaborateurs"
|
|
521
517
|
}
|
umap/static/umap/map.css
CHANGED
|
@@ -500,9 +500,7 @@ ul.photon-autocomplete {
|
|
|
500
500
|
}
|
|
501
501
|
.leaflet-container .leaflet-control-edit-save,
|
|
502
502
|
.leaflet-container .leaflet-control-edit-cancel,
|
|
503
|
-
.leaflet-container .leaflet-control-edit-disable
|
|
504
|
-
.leaflet-container .leaflet-control-connected-peers
|
|
505
|
-
{
|
|
503
|
+
.leaflet-container .leaflet-control-edit-disable {
|
|
506
504
|
display: block;
|
|
507
505
|
border: none;
|
|
508
506
|
font-size: 12px;
|
|
@@ -512,17 +510,9 @@ ul.photon-autocomplete {
|
|
|
512
510
|
line-height: 30px;
|
|
513
511
|
padding: 0 20px;
|
|
514
512
|
}
|
|
515
|
-
.leaflet-container .leaflet-control-connected-peers,
|
|
516
|
-
.dark [type="button"].leaflet-control-connected-peers:hover
|
|
517
|
-
{
|
|
518
|
-
background-color: var(--color-lightCyan);
|
|
519
|
-
color: var(--color-dark);
|
|
520
|
-
}
|
|
521
|
-
|
|
522
513
|
.leaflet-container .leaflet-control-edit-disable:before,
|
|
523
514
|
.leaflet-container .leaflet-control-edit-save:before,
|
|
524
|
-
.leaflet-container .leaflet-control-edit-cancel:before
|
|
525
|
-
.leaflet-container .leaflet-control-connected-peers:before {
|
|
515
|
+
.leaflet-container .leaflet-control-edit-cancel:before {
|
|
526
516
|
display: inline-block;
|
|
527
517
|
width: 19px;
|
|
528
518
|
height: 24px;
|
|
@@ -533,15 +523,9 @@ ul.photon-autocomplete {
|
|
|
533
523
|
content: ' ';
|
|
534
524
|
text-align: center;
|
|
535
525
|
}
|
|
536
|
-
|
|
537
|
-
.leaflet-container .leaflet-control-connected-peers:before {
|
|
538
|
-
background-image: url('./img/16.svg');
|
|
539
|
-
}
|
|
540
|
-
|
|
541
526
|
.leaflet-container .leaflet-control-edit-disable span,
|
|
542
527
|
.leaflet-container .leaflet-control-edit-save span,
|
|
543
|
-
.leaflet-container .leaflet-control-edit-cancel span
|
|
544
|
-
.leaflet-container .leaflet-control-connected-peers span{
|
|
528
|
+
.leaflet-container .leaflet-control-edit-cancel span {
|
|
545
529
|
margin-inline-start: 10px;
|
|
546
530
|
}
|
|
547
531
|
.leaflet-container .leaflet-control-edit-save:before {
|
|
@@ -550,12 +534,8 @@ ul.photon-autocomplete {
|
|
|
550
534
|
.leaflet-container .leaflet-control-edit-disable:before {
|
|
551
535
|
background-position: -50px -25px;
|
|
552
536
|
}
|
|
553
|
-
.leaflet-container .leaflet-control-connected-peers:before {
|
|
554
|
-
background-position: -2px -95px;
|
|
555
|
-
}
|
|
556
537
|
.leaflet-container .leaflet-control-edit-cancel,
|
|
557
|
-
.leaflet-container .leaflet-control-edit-disable
|
|
558
|
-
.leaflet-container .leaflet-control-connected-peers{
|
|
538
|
+
.leaflet-container .leaflet-control-edit-disable {
|
|
559
539
|
border: 0.5px solid rgba(153, 153, 153, 0.40);
|
|
560
540
|
}
|
|
561
541
|
.leaflet-container .leaflet-control-edit-cancel:hover,
|
|
@@ -933,16 +913,6 @@ a.umap-control-caption,
|
|
|
933
913
|
.umap-caption .umap-map-author {
|
|
934
914
|
padding-inline-start: 31px;
|
|
935
915
|
}
|
|
936
|
-
.umap-browser .main-toolbox {
|
|
937
|
-
padding-left: 4px; /* Align with toolbox below */
|
|
938
|
-
border-top: 1px solid var(--color-mediumGray);
|
|
939
|
-
margin-top: var(--box-margin);
|
|
940
|
-
padding-top: 3px;
|
|
941
|
-
padding-bottom: 3px;
|
|
942
|
-
}
|
|
943
|
-
.umap-browser .main-toolbox i {
|
|
944
|
-
cursor: pointer;
|
|
945
|
-
}
|
|
946
916
|
|
|
947
917
|
|
|
948
918
|
/* ********************************* */
|
|
@@ -1000,18 +970,18 @@ a.umap-control-caption,
|
|
|
1000
970
|
vertical-align: middle;
|
|
1001
971
|
}
|
|
1002
972
|
|
|
1003
|
-
.
|
|
973
|
+
.datalayer-legend {
|
|
1004
974
|
color: #555;
|
|
1005
975
|
padding: 6px 8px;
|
|
1006
976
|
box-shadow: 0 0 3px rgba(0,0,0,0.2);
|
|
1007
977
|
border-radius: 1px;
|
|
1008
978
|
}
|
|
1009
|
-
.
|
|
979
|
+
.datalayer-legend ul {
|
|
1010
980
|
list-style-type: none;
|
|
1011
981
|
padding: 0;
|
|
1012
982
|
margin: 0;
|
|
1013
983
|
}
|
|
1014
|
-
.
|
|
984
|
+
.datalayer-legend .circles-layer-legend {
|
|
1015
985
|
padding: var(--box-padding);
|
|
1016
986
|
}
|
|
1017
987
|
.circles-layer-legend li {
|
|
@@ -79,11 +79,9 @@ describe('HybridLogicalClock', () => {
|
|
|
79
79
|
|
|
80
80
|
it('should increment nn when local and remote times are equal', () => {
|
|
81
81
|
const now = Date.now()
|
|
82
|
-
// mock the clock to be the same time
|
|
83
|
-
sinon.useFakeTimers(now)
|
|
84
82
|
clock = new HybridLogicalClock(now, 5, 'local')
|
|
85
83
|
const result = clock.receive(`${now}:7:remote`)
|
|
86
|
-
expect(result.walltime).to.
|
|
84
|
+
expect(result.walltime).to.equal(now)
|
|
87
85
|
expect(result.nn).to.equal(8)
|
|
88
86
|
expect(result.id).to.equal('local')
|
|
89
87
|
})
|
|
@@ -102,12 +100,7 @@ describe('HybridLogicalClock', () => {
|
|
|
102
100
|
clock = new HybridLogicalClock(now, 5, 'local')
|
|
103
101
|
const result = clock.receive(`${now - 1000}:7:remote`)
|
|
104
102
|
expect(result.walltime).to.be.least(now)
|
|
105
|
-
|
|
106
|
-
expect(result.nn).to.equal(5)
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
expect(result.nn).to.equal(6)
|
|
110
|
-
}
|
|
103
|
+
expect(result.nn).to.equal(6)
|
|
111
104
|
expect(result.id).to.equal('local')
|
|
112
105
|
})
|
|
113
106
|
})
|
|
@@ -124,7 +117,7 @@ describe('HybridLogicalClock', () => {
|
|
|
124
117
|
const event2 = hlc.tick()
|
|
125
118
|
|
|
126
119
|
// Simulate receiving a message from another node
|
|
127
|
-
hlc.receive(`${Date.now() - 50}:5:remote-id`)
|
|
120
|
+
const remoteEvent = hlc.receive(`${Date.now() - 50}:5:remote-id`)
|
|
128
121
|
|
|
129
122
|
const event3 = hlc.tick()
|
|
130
123
|
|
|
@@ -747,30 +747,6 @@ describe('Utils', () => {
|
|
|
747
747
|
})
|
|
748
748
|
})
|
|
749
749
|
|
|
750
|
-
describe('#fieldInSchema', () => {
|
|
751
|
-
it('should return true if the field is in the schema', () => {
|
|
752
|
-
assert.equal(Utils.fieldInSchema('foo', { foo: {} }), true)
|
|
753
|
-
})
|
|
754
|
-
it('should return false if the field is not in the schema', () => {
|
|
755
|
-
assert.equal(Utils.fieldInSchema('foo', { bar: {} }), false)
|
|
756
|
-
})
|
|
757
|
-
it('should return false if the schema is not provided', () => {
|
|
758
|
-
assert.equal(Utils.fieldInSchema('foo', {}), false)
|
|
759
|
-
})
|
|
760
|
-
it('should return false if the field is undefined', () => {
|
|
761
|
-
assert.equal(Utils.fieldInSchema(undefined, {}), false)
|
|
762
|
-
})
|
|
763
|
-
// check that options. is removed
|
|
764
|
-
it('should remove options. from the field', () => {
|
|
765
|
-
assert.equal(Utils.fieldInSchema('options.foo', { foo: {} }), true)
|
|
766
|
-
})
|
|
767
|
-
|
|
768
|
-
// check that subfields are removed
|
|
769
|
-
it('should remove subfields from the field', () => {
|
|
770
|
-
assert.equal(Utils.fieldInSchema('options.foo.bar', { foo: { bar: {} } }), true)
|
|
771
|
-
})
|
|
772
|
-
})
|
|
773
|
-
|
|
774
750
|
describe('#parseNaiveDate', () => {
|
|
775
751
|
it('should parse a date', () => {
|
|
776
752
|
assert.equal(
|
umap/static/umap/vars.css
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
--color-mediumGray: #3e4444;
|
|
7
7
|
--color-darkGray: #323737;
|
|
8
8
|
--color-light: white;
|
|
9
|
-
--color-dark: black;
|
|
10
9
|
--color-limeGreen: #b9f5d2;
|
|
11
10
|
--color-brightCyan: #46ece6;
|
|
12
11
|
--color-lightCyan: #d4fbf9;
|
|
@@ -15,7 +14,7 @@
|
|
|
15
14
|
|
|
16
15
|
--background-color: var(--color-light);
|
|
17
16
|
--color-accent: var(--color-brightCyan);
|
|
18
|
-
--text-color:
|
|
17
|
+
--text-color: black;
|
|
19
18
|
|
|
20
19
|
/* Buttons. */
|
|
21
20
|
--button-primary-background: var(--color-waterMint);
|