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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @license DOMPurify 3.1.
|
|
1
|
+
/*! @license DOMPurify 3.1.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.5/LICENSE */
|
|
2
2
|
|
|
3
3
|
const {
|
|
4
4
|
entries,
|
|
@@ -197,7 +197,7 @@ const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongd
|
|
|
197
197
|
const text = freeze(['#text']);
|
|
198
198
|
|
|
199
199
|
const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
|
|
200
|
-
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', '
|
|
200
|
+
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
|
|
201
201
|
const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
|
|
202
202
|
const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
|
|
203
203
|
|
|
@@ -209,9 +209,11 @@ const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]/); // eslint-disable-line no-
|
|
|
209
209
|
const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape
|
|
210
210
|
const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape
|
|
211
211
|
);
|
|
212
|
+
|
|
212
213
|
const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
|
|
213
214
|
const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
|
|
214
215
|
);
|
|
216
|
+
|
|
215
217
|
const DOCTYPE_NAME = seal(/^html$/i);
|
|
216
218
|
const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
217
219
|
|
|
@@ -246,6 +248,7 @@ const NODE_TYPE = {
|
|
|
246
248
|
documentFragment: 11,
|
|
247
249
|
notation: 12 // Deprecated
|
|
248
250
|
};
|
|
251
|
+
|
|
249
252
|
const getGlobal = function getGlobal() {
|
|
250
253
|
return typeof window === 'undefined' ? null : window;
|
|
251
254
|
};
|
|
@@ -297,7 +300,7 @@ function createDOMPurify() {
|
|
|
297
300
|
* Version label, exposed for easier checks
|
|
298
301
|
* if DOMPurify is up to date or not
|
|
299
302
|
*/
|
|
300
|
-
DOMPurify.version = '3.1.
|
|
303
|
+
DOMPurify.version = '3.1.5';
|
|
301
304
|
|
|
302
305
|
/**
|
|
303
306
|
* Array of elements that DOMPurify removed during sanitation.
|
|
@@ -328,7 +331,6 @@ function createDOMPurify() {
|
|
|
328
331
|
} = window;
|
|
329
332
|
const ElementPrototype = Element.prototype;
|
|
330
333
|
const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');
|
|
331
|
-
const remove = lookupGetter(ElementPrototype, 'remove');
|
|
332
334
|
const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');
|
|
333
335
|
const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');
|
|
334
336
|
const getParentNode = lookupGetter(ElementPrototype, 'parentNode');
|
|
@@ -717,7 +719,7 @@ function createDOMPurify() {
|
|
|
717
719
|
CONFIG = cfg;
|
|
718
720
|
};
|
|
719
721
|
const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);
|
|
720
|
-
const HTML_INTEGRATION_POINTS = addToSet({}, ['annotation-xml']);
|
|
722
|
+
const HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'annotation-xml']);
|
|
721
723
|
|
|
722
724
|
// Certain elements are allowed in both SVG and HTML
|
|
723
725
|
// namespace. We need to specify them explicitly
|
|
@@ -829,9 +831,9 @@ function createDOMPurify() {
|
|
|
829
831
|
});
|
|
830
832
|
try {
|
|
831
833
|
// eslint-disable-next-line unicorn/prefer-dom-node-remove
|
|
832
|
-
|
|
834
|
+
node.parentNode.removeChild(node);
|
|
833
835
|
} catch (_) {
|
|
834
|
-
remove(
|
|
836
|
+
node.remove();
|
|
835
837
|
}
|
|
836
838
|
};
|
|
837
839
|
|
|
@@ -1008,7 +1010,7 @@ function createDOMPurify() {
|
|
|
1008
1010
|
return true;
|
|
1009
1011
|
}
|
|
1010
1012
|
|
|
1011
|
-
/* Remove any
|
|
1013
|
+
/* Remove any ocurrence of processing instructions */
|
|
1012
1014
|
if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
|
|
1013
1015
|
_forceRemove(currentNode);
|
|
1014
1016
|
return true;
|
|
@@ -1177,7 +1179,6 @@ function createDOMPurify() {
|
|
|
1177
1179
|
hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set
|
|
1178
1180
|
_executeHook('uponSanitizeAttribute', currentNode, hookEvent);
|
|
1179
1181
|
value = hookEvent.attrValue;
|
|
1180
|
-
|
|
1181
1182
|
/* Did the hooks approve of the attribute? */
|
|
1182
1183
|
if (hookEvent.forceKeepAttr) {
|
|
1183
1184
|
continue;
|
|
@@ -1197,6 +1198,12 @@ function createDOMPurify() {
|
|
|
1197
1198
|
continue;
|
|
1198
1199
|
}
|
|
1199
1200
|
|
|
1201
|
+
/* Work around a security issue with comments inside attributes */
|
|
1202
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
|
1203
|
+
_removeAttribute(name, currentNode);
|
|
1204
|
+
continue;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1200
1207
|
/* Sanitize attribute content to be template-safe */
|
|
1201
1208
|
if (SAFE_FOR_TEMPLATES) {
|
|
1202
1209
|
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
@@ -1221,12 +1228,6 @@ function createDOMPurify() {
|
|
|
1221
1228
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
1222
1229
|
}
|
|
1223
1230
|
|
|
1224
|
-
/* Work around a security issue with comments inside attributes */
|
|
1225
|
-
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
|
|
1226
|
-
_removeAttribute(name, currentNode);
|
|
1227
|
-
continue;
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1230
1231
|
/* Handle attributes that require Trusted Types */
|
|
1231
1232
|
if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {
|
|
1232
1233
|
if (namespaceURI) ; else {
|