@carbon/charts 1.13.31 → 1.13.32
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.
- package/CHANGELOG.md +13 -0
- package/dist/{_baseEach-70Y6bksF.mjs → _baseEach-prRbMbTH.mjs} +2 -2
- package/dist/{_baseEach-70Y6bksF.mjs.map → _baseEach-prRbMbTH.mjs.map} +1 -1
- package/dist/{angle-utils-dwZwPD9W.mjs → angle-utils-nunJYhKU.mjs} +32 -29
- package/dist/{angle-utils-dwZwPD9W.mjs.map → angle-utils-nunJYhKU.mjs.map} +1 -1
- package/dist/{choropleth-5mgcLFan.mjs → choropleth-ctjqFBTr.mjs} +272 -249
- package/dist/choropleth-ctjqFBTr.mjs.map +1 -0
- package/dist/{color-scale-utils-05Wy3zGY.mjs → color-scale-utils-bHW60Oxp.mjs} +2 -2
- package/dist/{color-scale-utils-05Wy3zGY.mjs.map → color-scale-utils-bHW60Oxp.mjs.map} +1 -1
- package/dist/components/axes/toolbar.d.ts +1 -1
- package/dist/components/index.mjs +5 -5
- package/dist/demo/index.mjs +6 -6
- package/dist/{enums-tMKLWMMm.mjs → enums-lWSDG4ik.mjs} +7 -7
- package/dist/{enums-tMKLWMMm.mjs.map → enums-lWSDG4ik.mjs.map} +1 -1
- package/dist/{index-Ez18Vgtt.mjs → index-2XiCVv0D.mjs} +2 -2
- package/dist/index-2XiCVv0D.mjs.map +1 -0
- package/dist/index.mjs +12 -12
- package/dist/interfaces/enums.d.ts +1 -0
- package/dist/interfaces/index.mjs +1 -1
- package/dist/model/index.mjs +4 -4
- package/dist/services/essentials/dom-utils.d.ts +1 -0
- package/dist/services/index.mjs +4 -4
- package/dist/umd/bundle.umd.js +16 -16
- package/dist/umd/bundle.umd.js.map +1 -1
- package/dist/{wordcloud-7JPbYYMG.mjs → wordcloud-1zN0_3LJ.mjs} +4 -4
- package/dist/{wordcloud-7JPbYYMG.mjs.map → wordcloud-1zN0_3LJ.mjs.map} +1 -1
- package/dist/{zoom-wI-Jcyj4.mjs → zoom-KwtDsQ73.mjs} +4 -4
- package/dist/{zoom-wI-Jcyj4.mjs.map → zoom-KwtDsQ73.mjs.map} +1 -1
- package/package.json +2 -2
- package/dist/choropleth-5mgcLFan.mjs.map +0 -1
- package/dist/index-Ez18Vgtt.mjs.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { M as qs, h as Ha, o as Ks, a5 as $a, p as Js, C as Ua, a6 as za, a7 as Fa, a8 as Wa, m as y, n as Ae, x as dt, a1 as us, B as
|
|
1
|
+
import { M as qs, h as Ha, o as Ks, a5 as $a, p as Js, C as Ua, a6 as za, a7 as Fa, a8 as Wa, m as y, n as Ae, x as dt, a1 as us, B as de, s as le, a9 as St, z as ps, L as Le, a3 as ja, A as Qs, t as Xa, aa as Be, c as gn, b as mn, Q as _e, ab as Et, ac as Ne, R as Ve, Y as Pe, ad as Za, K as ot, i as Ya, _ as te, U as Te, ae as ye, af as qa, a as Ka, Z as ue, V as mt, I as Mt, ag as Qt, v as Ja, ah as gs, $ as Fe } from "./color-scale-utils-bHW60Oxp.mjs";
|
|
2
2
|
import { select as x, pointer as Ft, brushX as ea, scaleTime as Qa, extent as Wt, area as Nn, line as Pn, axisBottom as Vn, axisLeft as ta, axisTop as ei, axisRight as ti, scaleLinear as Ze, arc as Ot, easeLinear as ni, path as Bn, interpolateNumber as na, quantize as si, scaleBand as Gn, hierarchy as Hn, pack as ai, pie as ii, interpolate as ri, interpolateRound as oi, min as fn, max as ms, lineRadial as li, curveLinearClosed as ci, cluster as di, tree as hi, linkHorizontal as ui, treemap as pi, hsl as sa, color as aa, geoPath as gi, geoNaturalEarth1 as mi, geoMercator as fi, geoEquirectangular as vi, geoConicEquidistant as yi, geoConicEqualArea as Ei, geoAlbers as bi, geoEqualEarth as Si } from "d3";
|
|
3
|
-
import { t as en, D as S, c as vn, G as fs, a as Oi, p as
|
|
4
|
-
import { y as W, _ as f, K as
|
|
3
|
+
import { t as en, D as S, c as vn, G as fs, a as Oi, p as oe, r as vs, b as xi } from "./angle-utils-nunJYhKU.mjs";
|
|
4
|
+
import { y as W, _ as f, K as se, r as He, q as tt, L as Ti, A as Me, m as F, s as We, V as lt, S as he, e as B, Z as nt, i as xe, f as ys, J as tn, d as Li, F as wt, n as nn, H as sn, C as an, p as Ct, b as Es, D as rn, Q as Ai, x as je, $ as _t, N as on } from "./enums-lWSDG4ik.mjs";
|
|
5
5
|
import { sankey as Mi, sankeyLinkHorizontal as wi, sankeyJustify as Ci, sankeyLeft as _i, sankeyRight as Ii } from "d3-sankey";
|
|
6
6
|
import { R as j } from "./a11y-SOU26cr5.mjs";
|
|
7
|
-
import { b as ia } from "./_baseEach-
|
|
8
|
-
import
|
|
9
|
-
function
|
|
7
|
+
import { b as ia } from "./_baseEach-prRbMbTH.mjs";
|
|
8
|
+
import Ri from "d3-cloud";
|
|
9
|
+
function ki(o, e, t, n) {
|
|
10
10
|
var s = -1, a = o == null ? 0 : o.length;
|
|
11
11
|
for (n && a && (t = o[++s]); ++s < a; )
|
|
12
12
|
t = e(t, o[s], s, o);
|
|
@@ -243,7 +243,7 @@ function Er(o, e, t) {
|
|
|
243
243
|
var br = "['’]", Sr = RegExp(br, "g");
|
|
244
244
|
function Or(o) {
|
|
245
245
|
return function(e) {
|
|
246
|
-
return
|
|
246
|
+
return ki(Er(Wi(e).replace(Sr, "")), o, "");
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
249
|
function xr(o, e, t) {
|
|
@@ -355,7 +355,7 @@ const {
|
|
|
355
355
|
entries: Sa,
|
|
356
356
|
setPrototypeOf: Ts,
|
|
357
357
|
isFrozen: Ir,
|
|
358
|
-
getPrototypeOf:
|
|
358
|
+
getPrototypeOf: Rr,
|
|
359
359
|
getOwnPropertyDescriptor: $n
|
|
360
360
|
} = Object;
|
|
361
361
|
let {
|
|
@@ -378,7 +378,7 @@ yn || (yn = function(e, t, n) {
|
|
|
378
378
|
En || (En = function(e, t) {
|
|
379
379
|
return new e(...t);
|
|
380
380
|
});
|
|
381
|
-
const It = we(Array.prototype.forEach), Ls = we(Array.prototype.pop), ft = we(Array.prototype.push), Nt = we(String.prototype.toLowerCase), ln = we(String.prototype.toString),
|
|
381
|
+
const It = we(Array.prototype.forEach), Ls = we(Array.prototype.pop), ft = we(Array.prototype.push), Nt = we(String.prototype.toLowerCase), ln = we(String.prototype.toString), kr = we(String.prototype.match), vt = we(String.prototype.replace), Dr = we(String.prototype.indexOf), Nr = we(String.prototype.trim), Oe = we(RegExp.prototype.test), yt = Pr(TypeError);
|
|
382
382
|
function we(o) {
|
|
383
383
|
return function(e) {
|
|
384
384
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
@@ -418,7 +418,7 @@ function Xe(o) {
|
|
|
418
418
|
$n(o, t) !== void 0 && (Array.isArray(n) ? e[t] = Vr(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = Xe(n) : e[t] = n);
|
|
419
419
|
return e;
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Rt(o, e) {
|
|
422
422
|
for (; o !== null; ) {
|
|
423
423
|
const n = $n(o, e);
|
|
424
424
|
if (n) {
|
|
@@ -427,14 +427,14 @@ function kt(o, e) {
|
|
|
427
427
|
if (typeof n.value == "function")
|
|
428
428
|
return we(n.value);
|
|
429
429
|
}
|
|
430
|
-
o =
|
|
430
|
+
o = Rr(o);
|
|
431
431
|
}
|
|
432
432
|
function t(n) {
|
|
433
433
|
return console.warn("fallback value for", n), null;
|
|
434
434
|
}
|
|
435
435
|
return t;
|
|
436
436
|
}
|
|
437
|
-
const As = Ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), cn = Ee(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), dn = Ee(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Br = Ee(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), hn = Ee(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Gr = Ee(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ms = Ee(["#text"]), ws = Ee(["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", "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", "xmlns", "slot"]), un = Ee(["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"]), Cs = Ee(["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"]),
|
|
437
|
+
const As = Ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), cn = Ee(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), dn = Ee(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Br = Ee(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), hn = Ee(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Gr = Ee(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ms = Ee(["#text"]), ws = Ee(["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", "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", "xmlns", "slot"]), un = Ee(["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"]), Cs = Ee(["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"]), kt = Ee(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Hr = Ie(/\{\{[\w\W]*|[\w\W]*\}\}/gm), $r = Ie(/<%[\w\W]*|[\w\W]*%>/gm), Ur = Ie(/\${[\w\W]*}/gm), zr = Ie(/^data-[\-\w.\u00B7-\uFFFF]/), Fr = Ie(/^aria-[\-\w]+$/), xa = Ie(
|
|
438
438
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
439
439
|
// eslint-disable-line no-useless-escape
|
|
440
440
|
), Wr = Ie(/^(?:\w+script|data):/i), jr = Ie(
|
|
@@ -493,7 +493,7 @@ function La() {
|
|
|
493
493
|
HTMLFormElement: p,
|
|
494
494
|
DOMParser: h,
|
|
495
495
|
trustedTypes: u
|
|
496
|
-
} = o, g = l.prototype, m =
|
|
496
|
+
} = o, g = l.prototype, m = Rt(g, "cloneNode"), E = Rt(g, "nextSibling"), v = Rt(g, "childNodes"), O = Rt(g, "parentNode");
|
|
497
497
|
if (typeof i == "function") {
|
|
498
498
|
const $ = t.createElement("template");
|
|
499
499
|
$.content && $.content.ownerDocument && (t = $.content.ownerDocument);
|
|
@@ -522,8 +522,8 @@ function La() {
|
|
|
522
522
|
IS_ALLOWED_URI: z
|
|
523
523
|
} = _s, q = null;
|
|
524
524
|
const Ye = Z({}, [...As, ...cn, ...dn, ...hn, ...Ms]);
|
|
525
|
-
let
|
|
526
|
-
const Ge = Z({}, [...ws, ...un, ...Cs, ...
|
|
525
|
+
let ae = null;
|
|
526
|
+
const Ge = Z({}, [...ws, ...un, ...Cs, ...kt]);
|
|
527
527
|
let ne = Object.seal(Oa(null, {
|
|
528
528
|
tagNameCheck: {
|
|
529
529
|
writable: !0,
|
|
@@ -543,40 +543,40 @@ function La() {
|
|
|
543
543
|
enumerable: !0,
|
|
544
544
|
value: !1
|
|
545
545
|
}
|
|
546
|
-
})), H = null, J = null,
|
|
546
|
+
})), H = null, J = null, ie = !0, re = !0, ge = !1, $e = !0, C = !1, k = !1, P = !1, Ce = !1, qe = !1, xt = !1, Tt = !1, jn = !0, Xn = !1;
|
|
547
547
|
const Ia = "user-content-";
|
|
548
548
|
let Xt = !0, ut = !1, Ke = {}, Je = null;
|
|
549
549
|
const Zn = Z({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
550
550
|
let Yn = null;
|
|
551
551
|
const qn = Z({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
552
552
|
let Zt = null;
|
|
553
|
-
const Kn = Z({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Lt = "http://www.w3.org/1998/Math/MathML", At = "http://www.w3.org/2000/svg",
|
|
554
|
-
let Qe =
|
|
555
|
-
const
|
|
553
|
+
const Kn = Z({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Lt = "http://www.w3.org/1998/Math/MathML", At = "http://www.w3.org/2000/svg", ke = "http://www.w3.org/1999/xhtml";
|
|
554
|
+
let Qe = ke, Yt = !1, qt = null;
|
|
555
|
+
const Ra = Z({}, [Lt, At, ke], ln);
|
|
556
556
|
let pt = null;
|
|
557
|
-
const
|
|
558
|
-
let
|
|
557
|
+
const ka = ["application/xhtml+xml", "text/html"], Da = "text/html";
|
|
558
|
+
let ce = null, et = null;
|
|
559
559
|
const Na = t.createElement("form"), Jn = function(b) {
|
|
560
560
|
return b instanceof RegExp || b instanceof Function;
|
|
561
561
|
}, Kt = function() {
|
|
562
562
|
let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
563
563
|
if (!(et && et === b)) {
|
|
564
564
|
if ((!b || typeof b != "object") && (b = {}), b = Xe(b), pt = // eslint-disable-next-line unicorn/prefer-includes
|
|
565
|
-
|
|
565
|
+
ka.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Da : b.PARSER_MEDIA_TYPE, ce = pt === "application/xhtml+xml" ? ln : Nt, q = "ALLOWED_TAGS" in b ? Z({}, b.ALLOWED_TAGS, ce) : Ye, ae = "ALLOWED_ATTR" in b ? Z({}, b.ALLOWED_ATTR, ce) : Ge, qt = "ALLOWED_NAMESPACES" in b ? Z({}, b.ALLOWED_NAMESPACES, ln) : Ra, Zt = "ADD_URI_SAFE_ATTR" in b ? Z(
|
|
566
566
|
Xe(Kn),
|
|
567
567
|
// eslint-disable-line indent
|
|
568
568
|
b.ADD_URI_SAFE_ATTR,
|
|
569
569
|
// eslint-disable-line indent
|
|
570
|
-
|
|
570
|
+
ce
|
|
571
571
|
// eslint-disable-line indent
|
|
572
572
|
) : Kn, Yn = "ADD_DATA_URI_TAGS" in b ? Z(
|
|
573
573
|
Xe(qn),
|
|
574
574
|
// eslint-disable-line indent
|
|
575
575
|
b.ADD_DATA_URI_TAGS,
|
|
576
576
|
// eslint-disable-line indent
|
|
577
|
-
|
|
577
|
+
ce
|
|
578
578
|
// eslint-disable-line indent
|
|
579
|
-
) : qn, Je = "FORBID_CONTENTS" in b ? Z({}, b.FORBID_CONTENTS,
|
|
579
|
+
) : qn, Je = "FORBID_CONTENTS" in b ? Z({}, b.FORBID_CONTENTS, ce) : Zn, H = "FORBID_TAGS" in b ? Z({}, b.FORBID_TAGS, ce) : {}, J = "FORBID_ATTR" in b ? Z({}, b.FORBID_ATTR, ce) : {}, Ke = "USE_PROFILES" in b ? b.USE_PROFILES : !1, ie = b.ALLOW_ARIA_ATTR !== !1, re = b.ALLOW_DATA_ATTR !== !1, ge = b.ALLOW_UNKNOWN_PROTOCOLS || !1, $e = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, C = b.SAFE_FOR_TEMPLATES || !1, k = b.WHOLE_DOCUMENT || !1, qe = b.RETURN_DOM || !1, xt = b.RETURN_DOM_FRAGMENT || !1, Tt = b.RETURN_TRUSTED_TYPE || !1, Ce = b.FORCE_BODY || !1, jn = b.SANITIZE_DOM !== !1, Xn = b.SANITIZE_NAMED_PROPS || !1, Xt = b.KEEP_CONTENT !== !1, ut = b.IN_PLACE || !1, z = b.ALLOWED_URI_REGEXP || xa, Qe = b.NAMESPACE || ke, ne = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && Jn(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ne.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && Jn(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ne.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ne.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), C && (re = !1), xt && (qe = !0), Ke && (q = Z({}, Ms), ae = [], Ke.html === !0 && (Z(q, As), Z(ae, ws)), Ke.svg === !0 && (Z(q, cn), Z(ae, un), Z(ae, kt)), Ke.svgFilters === !0 && (Z(q, dn), Z(ae, un), Z(ae, kt)), Ke.mathMl === !0 && (Z(q, hn), Z(ae, Cs), Z(ae, kt))), b.ADD_TAGS && (q === Ye && (q = Xe(q)), Z(q, b.ADD_TAGS, ce)), b.ADD_ATTR && (ae === Ge && (ae = Xe(ae)), Z(ae, b.ADD_ATTR, ce)), b.ADD_URI_SAFE_ATTR && Z(Zt, b.ADD_URI_SAFE_ATTR, ce), b.FORBID_CONTENTS && (Je === Zn && (Je = Xe(Je)), Z(Je, b.FORBID_CONTENTS, ce)), Xt && (q["#text"] = !0), k && Z(q, ["html", "head", "body"]), q.table && (Z(q, ["tbody"]), delete H.tbody), b.TRUSTED_TYPES_POLICY) {
|
|
580
580
|
if (typeof b.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
581
581
|
throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
582
582
|
if (typeof b.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -587,13 +587,13 @@ function La() {
|
|
|
587
587
|
Ee && Ee(b), et = b;
|
|
588
588
|
}
|
|
589
589
|
}, Qn = Z({}, ["mi", "mo", "mn", "ms", "mtext"]), es = Z({}, ["foreignobject", "desc", "title", "annotation-xml"]), Pa = Z({}, ["title", "style", "font", "a", "script"]), ts = Z({}, [...cn, ...dn, ...Br]), ns = Z({}, [...hn, ...Gr]), Va = function(b) {
|
|
590
|
-
let
|
|
591
|
-
(!
|
|
590
|
+
let R = O(b);
|
|
591
|
+
(!R || !R.tagName) && (R = {
|
|
592
592
|
namespaceURI: Qe,
|
|
593
593
|
tagName: "template"
|
|
594
594
|
});
|
|
595
|
-
const G = Nt(b.tagName), ee = Nt(
|
|
596
|
-
return qt[b.namespaceURI] ? b.namespaceURI === At ?
|
|
595
|
+
const G = Nt(b.tagName), ee = Nt(R.tagName);
|
|
596
|
+
return qt[b.namespaceURI] ? b.namespaceURI === At ? R.namespaceURI === ke ? G === "svg" : R.namespaceURI === Lt ? G === "svg" && (ee === "annotation-xml" || Qn[ee]) : !!ts[G] : b.namespaceURI === Lt ? R.namespaceURI === ke ? G === "math" : R.namespaceURI === At ? G === "math" && es[ee] : !!ns[G] : b.namespaceURI === ke ? R.namespaceURI === At && !es[ee] || R.namespaceURI === Lt && !Qn[ee] ? !1 : !ns[G] && (Pa[G] || !ts[G]) : !!(pt === "application/xhtml+xml" && qt[b.namespaceURI]) : !1;
|
|
597
597
|
}, Ue = function(b) {
|
|
598
598
|
ft(e.removed, {
|
|
599
599
|
element: b
|
|
@@ -603,53 +603,53 @@ function La() {
|
|
|
603
603
|
} catch {
|
|
604
604
|
b.remove();
|
|
605
605
|
}
|
|
606
|
-
}, Jt = function(b,
|
|
606
|
+
}, Jt = function(b, R) {
|
|
607
607
|
try {
|
|
608
608
|
ft(e.removed, {
|
|
609
|
-
attribute:
|
|
610
|
-
from:
|
|
609
|
+
attribute: R.getAttributeNode(b),
|
|
610
|
+
from: R
|
|
611
611
|
});
|
|
612
612
|
} catch {
|
|
613
613
|
ft(e.removed, {
|
|
614
614
|
attribute: null,
|
|
615
|
-
from:
|
|
615
|
+
from: R
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
|
-
if (
|
|
618
|
+
if (R.removeAttribute(b), b === "is" && !ae[b])
|
|
619
619
|
if (qe || xt)
|
|
620
620
|
try {
|
|
621
|
-
Ue(
|
|
621
|
+
Ue(R);
|
|
622
622
|
} catch {
|
|
623
623
|
}
|
|
624
624
|
else
|
|
625
625
|
try {
|
|
626
|
-
|
|
626
|
+
R.setAttribute(b, "");
|
|
627
627
|
} catch {
|
|
628
628
|
}
|
|
629
629
|
}, ss = function(b) {
|
|
630
|
-
let
|
|
630
|
+
let R = null, G = null;
|
|
631
631
|
if (Ce)
|
|
632
632
|
b = "<remove></remove>" + b;
|
|
633
633
|
else {
|
|
634
|
-
const fe =
|
|
634
|
+
const fe = kr(b, /^[\r\n\t ]+/);
|
|
635
635
|
G = fe && fe[0];
|
|
636
636
|
}
|
|
637
|
-
pt === "application/xhtml+xml" && Qe ===
|
|
637
|
+
pt === "application/xhtml+xml" && Qe === ke && (b = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + b + "</body></html>");
|
|
638
638
|
const ee = T ? T.createHTML(b) : b;
|
|
639
|
-
if (Qe ===
|
|
639
|
+
if (Qe === ke)
|
|
640
640
|
try {
|
|
641
|
-
|
|
641
|
+
R = new h().parseFromString(ee, pt);
|
|
642
642
|
} catch {
|
|
643
643
|
}
|
|
644
|
-
if (!
|
|
645
|
-
|
|
644
|
+
if (!R || !R.documentElement) {
|
|
645
|
+
R = A.createDocument(Qe, "template", null);
|
|
646
646
|
try {
|
|
647
|
-
|
|
647
|
+
R.documentElement.innerHTML = Yt ? M : ee;
|
|
648
648
|
} catch {
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
|
-
const me =
|
|
652
|
-
return b && G && me.insertBefore(t.createTextNode(G), me.childNodes[0] || null), Qe ===
|
|
651
|
+
const me = R.body || R.documentElement;
|
|
652
|
+
return b && G && me.insertBefore(t.createTextNode(G), me.childNodes[0] || null), Qe === ke ? D.call(R, k ? "html" : "body")[0] : k ? R.documentElement : me;
|
|
653
653
|
}, as = function(b) {
|
|
654
654
|
return L.call(
|
|
655
655
|
b.ownerDocument || b,
|
|
@@ -662,15 +662,15 @@ function La() {
|
|
|
662
662
|
return b instanceof p && (typeof b.nodeName != "string" || typeof b.textContent != "string" || typeof b.removeChild != "function" || !(b.attributes instanceof d) || typeof b.removeAttribute != "function" || typeof b.setAttribute != "function" || typeof b.namespaceURI != "string" || typeof b.insertBefore != "function" || typeof b.hasChildNodes != "function");
|
|
663
663
|
}, is = function(b) {
|
|
664
664
|
return typeof r == "function" && b instanceof r;
|
|
665
|
-
}, De = function(b,
|
|
665
|
+
}, De = function(b, R, G) {
|
|
666
666
|
N[b] && It(N[b], (ee) => {
|
|
667
|
-
ee.call(e,
|
|
667
|
+
ee.call(e, R, G, et);
|
|
668
668
|
});
|
|
669
669
|
}, rs = function(b) {
|
|
670
|
-
let
|
|
670
|
+
let R = null;
|
|
671
671
|
if (De("beforeSanitizeElements", b, null), Ba(b))
|
|
672
672
|
return Ue(b), !0;
|
|
673
|
-
const G =
|
|
673
|
+
const G = ce(b.nodeName);
|
|
674
674
|
if (De("uponSanitizeElement", b, {
|
|
675
675
|
tagName: G,
|
|
676
676
|
allowedTags: q
|
|
@@ -689,29 +689,29 @@ function La() {
|
|
|
689
689
|
}
|
|
690
690
|
return Ue(b), !0;
|
|
691
691
|
}
|
|
692
|
-
return b instanceof l && !Va(b) || (G === "noscript" || G === "noembed" || G === "noframes") && Oe(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Ue(b), !0) : (C && b.nodeType === 3 && (
|
|
693
|
-
|
|
694
|
-
}), b.textContent !==
|
|
692
|
+
return b instanceof l && !Va(b) || (G === "noscript" || G === "noembed" || G === "noframes") && Oe(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Ue(b), !0) : (C && b.nodeType === 3 && (R = b.textContent, It([_, w, U], (ee) => {
|
|
693
|
+
R = vt(R, ee, " ");
|
|
694
|
+
}), b.textContent !== R && (ft(e.removed, {
|
|
695
695
|
element: b.cloneNode()
|
|
696
|
-
}), b.textContent =
|
|
697
|
-
}, os = function(b,
|
|
698
|
-
if (jn && (
|
|
696
|
+
}), b.textContent = R)), De("afterSanitizeElements", b, null), !1);
|
|
697
|
+
}, os = function(b, R, G) {
|
|
698
|
+
if (jn && (R === "id" || R === "name") && (G in t || G in Na))
|
|
699
699
|
return !1;
|
|
700
|
-
if (!(
|
|
701
|
-
if (!(
|
|
702
|
-
if (!
|
|
700
|
+
if (!(re && !J[R] && Oe(V, R))) {
|
|
701
|
+
if (!(ie && Oe(Q, R))) {
|
|
702
|
+
if (!ae[R] || J[R]) {
|
|
703
703
|
if (
|
|
704
704
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
705
705
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
706
706
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
707
|
-
!(ls(b) && (ne.tagNameCheck instanceof RegExp && Oe(ne.tagNameCheck, b) || ne.tagNameCheck instanceof Function && ne.tagNameCheck(b)) && (ne.attributeNameCheck instanceof RegExp && Oe(ne.attributeNameCheck,
|
|
707
|
+
!(ls(b) && (ne.tagNameCheck instanceof RegExp && Oe(ne.tagNameCheck, b) || ne.tagNameCheck instanceof Function && ne.tagNameCheck(b)) && (ne.attributeNameCheck instanceof RegExp && Oe(ne.attributeNameCheck, R) || ne.attributeNameCheck instanceof Function && ne.attributeNameCheck(R)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
708
708
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
709
|
-
|
|
709
|
+
R === "is" && ne.allowCustomizedBuiltInElements && (ne.tagNameCheck instanceof RegExp && Oe(ne.tagNameCheck, G) || ne.tagNameCheck instanceof Function && ne.tagNameCheck(G)))
|
|
710
710
|
)
|
|
711
711
|
return !1;
|
|
712
|
-
} else if (!Zt[
|
|
712
|
+
} else if (!Zt[R]) {
|
|
713
713
|
if (!Oe(z, vt(G, K, ""))) {
|
|
714
|
-
if (!((
|
|
714
|
+
if (!((R === "src" || R === "xlink:href" || R === "href") && b !== "script" && Dr(G, "data:") === 0 && Yn[b])) {
|
|
715
715
|
if (!(ge && !Oe(ve, vt(G, K, "")))) {
|
|
716
716
|
if (G)
|
|
717
717
|
return !1;
|
|
@@ -727,23 +727,23 @@ function La() {
|
|
|
727
727
|
}, cs = function(b) {
|
|
728
728
|
De("beforeSanitizeAttributes", b, null);
|
|
729
729
|
const {
|
|
730
|
-
attributes:
|
|
730
|
+
attributes: R
|
|
731
731
|
} = b;
|
|
732
|
-
if (!
|
|
732
|
+
if (!R)
|
|
733
733
|
return;
|
|
734
734
|
const G = {
|
|
735
735
|
attrName: "",
|
|
736
736
|
attrValue: "",
|
|
737
737
|
keepAttr: !0,
|
|
738
|
-
allowedAttributes:
|
|
738
|
+
allowedAttributes: ae
|
|
739
739
|
};
|
|
740
|
-
let ee =
|
|
740
|
+
let ee = R.length;
|
|
741
741
|
for (; ee--; ) {
|
|
742
|
-
const me =
|
|
742
|
+
const me = R[ee], {
|
|
743
743
|
name: fe,
|
|
744
744
|
namespaceURI: be,
|
|
745
745
|
value: ze
|
|
746
|
-
} = me, gt =
|
|
746
|
+
} = me, gt = ce(fe);
|
|
747
747
|
let Se = fe === "value" ? ze : Nr(ze);
|
|
748
748
|
if (G.attrName = gt, G.attrValue = Se, G.keepAttr = !0, G.forceKeepAttr = void 0, De("uponSanitizeAttribute", b, G), Se = G.attrValue, G.forceKeepAttr || (Jt(fe, b), !G.keepAttr))
|
|
749
749
|
continue;
|
|
@@ -754,7 +754,7 @@ function La() {
|
|
|
754
754
|
C && It([_, w, U], (hs) => {
|
|
755
755
|
Se = vt(Se, hs, " ");
|
|
756
756
|
});
|
|
757
|
-
const ds =
|
|
757
|
+
const ds = ce(b.nodeName);
|
|
758
758
|
if (os(ds, gt, Se)) {
|
|
759
759
|
if (Xn && (gt === "id" || gt === "name") && (Jt(fe, b), Se = Ia + Se), T && typeof u == "object" && typeof u.getAttributeType == "function" && !be)
|
|
760
760
|
switch (u.getAttributeType(ds, gt)) {
|
|
@@ -775,14 +775,14 @@ function La() {
|
|
|
775
775
|
}
|
|
776
776
|
De("afterSanitizeAttributes", b, null);
|
|
777
777
|
}, Ga = function $(b) {
|
|
778
|
-
let
|
|
778
|
+
let R = null;
|
|
779
779
|
const G = as(b);
|
|
780
|
-
for (De("beforeSanitizeShadowDOM", b, null);
|
|
781
|
-
De("uponSanitizeShadowNode",
|
|
780
|
+
for (De("beforeSanitizeShadowDOM", b, null); R = G.nextNode(); )
|
|
781
|
+
De("uponSanitizeShadowNode", R, null), !rs(R) && (R.content instanceof a && $(R.content), cs(R));
|
|
782
782
|
De("afterSanitizeShadowDOM", b, null);
|
|
783
783
|
};
|
|
784
784
|
return e.sanitize = function($) {
|
|
785
|
-
let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
785
|
+
let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, R = null, G = null, ee = null, me = null;
|
|
786
786
|
if (Yt = !$, Yt && ($ = "<!-->"), typeof $ != "string" && !is($))
|
|
787
787
|
if (typeof $.toString == "function") {
|
|
788
788
|
if ($ = $.toString(), typeof $ != "string")
|
|
@@ -793,35 +793,35 @@ function La() {
|
|
|
793
793
|
return $;
|
|
794
794
|
if (P || Kt(b), e.removed = [], typeof $ == "string" && (ut = !1), ut) {
|
|
795
795
|
if ($.nodeName) {
|
|
796
|
-
const ze =
|
|
796
|
+
const ze = ce($.nodeName);
|
|
797
797
|
if (!q[ze] || H[ze])
|
|
798
798
|
throw yt("root node is forbidden and cannot be sanitized in-place");
|
|
799
799
|
}
|
|
800
800
|
} else if ($ instanceof r)
|
|
801
|
-
|
|
801
|
+
R = ss("<!---->"), G = R.ownerDocument.importNode($, !0), G.nodeType === 1 && G.nodeName === "BODY" || G.nodeName === "HTML" ? R = G : R.appendChild(G);
|
|
802
802
|
else {
|
|
803
|
-
if (!qe && !C && !
|
|
803
|
+
if (!qe && !C && !k && // eslint-disable-next-line unicorn/prefer-includes
|
|
804
804
|
$.indexOf("<") === -1)
|
|
805
805
|
return T && Tt ? T.createHTML($) : $;
|
|
806
|
-
if (
|
|
806
|
+
if (R = ss($), !R)
|
|
807
807
|
return qe ? null : Tt ? M : "";
|
|
808
808
|
}
|
|
809
|
-
|
|
810
|
-
const fe = as(ut ? $ :
|
|
809
|
+
R && Ce && Ue(R.firstChild);
|
|
810
|
+
const fe = as(ut ? $ : R);
|
|
811
811
|
for (; ee = fe.nextNode(); )
|
|
812
812
|
rs(ee) || (ee.content instanceof a && Ga(ee.content), cs(ee));
|
|
813
813
|
if (ut)
|
|
814
814
|
return $;
|
|
815
815
|
if (qe) {
|
|
816
816
|
if (xt)
|
|
817
|
-
for (me = I.call(
|
|
818
|
-
me.appendChild(
|
|
817
|
+
for (me = I.call(R.ownerDocument); R.firstChild; )
|
|
818
|
+
me.appendChild(R.firstChild);
|
|
819
819
|
else
|
|
820
|
-
me =
|
|
821
|
-
return (
|
|
820
|
+
me = R;
|
|
821
|
+
return (ae.shadowroot || ae.shadowrootmode) && (me = X.call(n, me, !0)), me;
|
|
822
822
|
}
|
|
823
|
-
let be =
|
|
824
|
-
return
|
|
823
|
+
let be = k ? R.outerHTML : R.innerHTML;
|
|
824
|
+
return k && q["!doctype"] && R.ownerDocument && R.ownerDocument.doctype && R.ownerDocument.doctype.name && Oe(Ta, R.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + R.ownerDocument.doctype.name + `>
|
|
825
825
|
` + be), C && It([_, w, U], (ze) => {
|
|
826
826
|
be = vt(be, ze, " ");
|
|
827
827
|
}), T && Tt ? T.createHTML(be) : be;
|
|
@@ -830,10 +830,10 @@ function La() {
|
|
|
830
830
|
Kt($), P = !0;
|
|
831
831
|
}, e.clearConfig = function() {
|
|
832
832
|
et = null, P = !1;
|
|
833
|
-
}, e.isValidAttribute = function($, b,
|
|
833
|
+
}, e.isValidAttribute = function($, b, R) {
|
|
834
834
|
et || Kt({});
|
|
835
|
-
const G =
|
|
836
|
-
return os(G, ee,
|
|
835
|
+
const G = ce($), ee = ce(b);
|
|
836
|
+
return os(G, ee, R);
|
|
837
837
|
}, e.addHook = function($, b) {
|
|
838
838
|
typeof b == "function" && (N[$] = N[$] || [], ft(N[$], b));
|
|
839
839
|
}, e.removeHook = function($) {
|
|
@@ -859,7 +859,7 @@ const Dt = (o) => Un.sanitize(o, {
|
|
|
859
859
|
svg: !0,
|
|
860
860
|
svgFilters: !0
|
|
861
861
|
}
|
|
862
|
-
}),
|
|
862
|
+
}), Re = (o) => Un.sanitize(o, { ALLOWED_TAGS: [] }), Ut = class Ut extends Y {
|
|
863
863
|
constructor() {
|
|
864
864
|
super(...arguments), this.type = "toolbar", this.renderType = W.HTML;
|
|
865
865
|
}
|
|
@@ -892,8 +892,8 @@ const Dt = (o) => Un.sanitize(o, {
|
|
|
892
892
|
<button
|
|
893
893
|
class="cds--overflow-menu__trigger cds--overflow-menu__trigger"
|
|
894
894
|
aria-haspopup="true" aria-expanded="false" id="${this.services.domUtils.generateElementIDString(
|
|
895
|
-
`control-${
|
|
896
|
-
)}" aria-label="${
|
|
895
|
+
`control-${Re(c.id)}`
|
|
896
|
+
)}" aria-label="${Re(c.title)}">
|
|
897
897
|
<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" class="cds--overflow-menu__icon cds--overflow-menu__icon" viewBox="0 0 32 32" aria-hidden="true">
|
|
898
898
|
${Yr(c.iconSVG.content)}
|
|
899
899
|
</svg>
|
|
@@ -1023,7 +1023,13 @@ const Dt = (o) => Un.sanitize(o, {
|
|
|
1023
1023
|
const e = y(this.getOptions(), "toolbar", "numberOfIcons") - 1, t = y(this.getOptions(), "toolbar", "controls"), n = [], s = [], a = [];
|
|
1024
1024
|
return t.forEach((i) => {
|
|
1025
1025
|
let r = null;
|
|
1026
|
-
|
|
1026
|
+
if (i.type === se.CUSTOM)
|
|
1027
|
+
y(i, "id") === null && (i.id = `toolbar-button-${Ut.buttonID++}`), y(i, "shouldBeDisabled") === null && (i.shouldBeDisabled = () => !1), r = i;
|
|
1028
|
+
else {
|
|
1029
|
+
const l = this.services.domUtils.isFullScreenMode();
|
|
1030
|
+
i.type === se.MAKE_FULLSCREEN && l ? i.type = se.EXIT_FULLSCREEN : i.type === se.EXIT_FULLSCREEN && !l && (i.type = se.MAKE_FULLSCREEN), r = this.getControlConfigByType(i.type);
|
|
1031
|
+
}
|
|
1032
|
+
r && (r.text = i.text ? i.text : i.type, r.id.indexOf("toolbar-export") !== -1 ? n.push(r) : s.length < e ? y(r, "iconSVG", "content") === null ? a.push(r) : s.push(r) : a.push(r));
|
|
1027
1033
|
}), a.push(...n), a.length ? {
|
|
1028
1034
|
buttonList: s,
|
|
1029
1035
|
overflowMenuItemList: a
|
|
@@ -1057,7 +1063,7 @@ const Dt = (o) => Un.sanitize(o, {
|
|
|
1057
1063
|
const t = this.services.zoom && this.services.zoom.isZoomBarEnabled() && !this.services.zoom.isEmptyState(), n = this.model.getDisplayData();
|
|
1058
1064
|
let s;
|
|
1059
1065
|
switch (e) {
|
|
1060
|
-
case
|
|
1066
|
+
case se.ZOOM_IN:
|
|
1061
1067
|
t && (s = {
|
|
1062
1068
|
id: "toolbar-zoomIn",
|
|
1063
1069
|
title: "Zoom in",
|
|
@@ -1068,7 +1074,7 @@ const Dt = (o) => Un.sanitize(o, {
|
|
|
1068
1074
|
clickFunction: () => this.services.zoom.zoomIn()
|
|
1069
1075
|
});
|
|
1070
1076
|
break;
|
|
1071
|
-
case
|
|
1077
|
+
case se.ZOOM_OUT:
|
|
1072
1078
|
t && (s = {
|
|
1073
1079
|
id: "toolbar-zoomOut",
|
|
1074
1080
|
title: "Zoom out",
|
|
@@ -1079,7 +1085,7 @@ const Dt = (o) => Un.sanitize(o, {
|
|
|
1079
1085
|
clickFunction: () => this.services.zoom.zoomOut()
|
|
1080
1086
|
});
|
|
1081
1087
|
break;
|
|
1082
|
-
case
|
|
1088
|
+
case se.RESET_ZOOM:
|
|
1083
1089
|
t && (s = {
|
|
1084
1090
|
id: "toolbar-resetZoom",
|
|
1085
1091
|
title: "Reset zoom",
|
|
@@ -1090,7 +1096,7 @@ const Dt = (o) => Un.sanitize(o, {
|
|
|
1090
1096
|
clickFunction: () => this.services.zoom.resetZoomDomain()
|
|
1091
1097
|
});
|
|
1092
1098
|
break;
|
|
1093
|
-
case
|
|
1099
|
+
case se.MAKE_FULLSCREEN:
|
|
1094
1100
|
s = {
|
|
1095
1101
|
id: "toolbar-makefullscreen",
|
|
1096
1102
|
iconSVG: {
|
|
@@ -1105,7 +1111,22 @@ const Dt = (o) => Un.sanitize(o, {
|
|
|
1105
1111
|
}
|
|
1106
1112
|
};
|
|
1107
1113
|
break;
|
|
1108
|
-
case
|
|
1114
|
+
case se.EXIT_FULLSCREEN:
|
|
1115
|
+
s = {
|
|
1116
|
+
id: "toolbar-exitfullscreen",
|
|
1117
|
+
iconSVG: {
|
|
1118
|
+
content: this.getControlIconByType(e),
|
|
1119
|
+
width: "15px",
|
|
1120
|
+
height: "15px"
|
|
1121
|
+
},
|
|
1122
|
+
title: "Exit fullscreen",
|
|
1123
|
+
shouldBeDisabled: () => !1,
|
|
1124
|
+
clickFunction: () => {
|
|
1125
|
+
this.services.domUtils.toggleFullscreen();
|
|
1126
|
+
}
|
|
1127
|
+
};
|
|
1128
|
+
break;
|
|
1129
|
+
case se.SHOW_AS_DATATABLE:
|
|
1109
1130
|
s = {
|
|
1110
1131
|
id: "toolbar-showasdatatable",
|
|
1111
1132
|
iconSVG: {
|
|
@@ -1116,7 +1137,7 @@ const Dt = (o) => Un.sanitize(o, {
|
|
|
1116
1137
|
clickFunction: () => this.services.events.dispatchEvent(f.Modal.SHOW)
|
|
1117
1138
|
};
|
|
1118
1139
|
break;
|
|
1119
|
-
case
|
|
1140
|
+
case se.EXPORT_CSV:
|
|
1120
1141
|
s = {
|
|
1121
1142
|
id: "toolbar-export-CSV",
|
|
1122
1143
|
title: "Export as CSV",
|
|
@@ -1127,7 +1148,7 @@ const Dt = (o) => Un.sanitize(o, {
|
|
|
1127
1148
|
clickFunction: () => this.model.exportToCSV()
|
|
1128
1149
|
};
|
|
1129
1150
|
break;
|
|
1130
|
-
case
|
|
1151
|
+
case se.EXPORT_PNG:
|
|
1131
1152
|
s = {
|
|
1132
1153
|
id: "toolbar-export-PNG",
|
|
1133
1154
|
title: "Export as PNG",
|
|
@@ -1138,7 +1159,7 @@ const Dt = (o) => Un.sanitize(o, {
|
|
|
1138
1159
|
clickFunction: () => this.services.domUtils.exportToPNG()
|
|
1139
1160
|
};
|
|
1140
1161
|
break;
|
|
1141
|
-
case
|
|
1162
|
+
case se.EXPORT_JPG:
|
|
1142
1163
|
s = {
|
|
1143
1164
|
id: "toolbar-export-JPG",
|
|
1144
1165
|
title: "Export as JPG",
|
|
@@ -1156,23 +1177,25 @@ const Dt = (o) => Un.sanitize(o, {
|
|
|
1156
1177
|
}
|
|
1157
1178
|
getControlIconByType(e) {
|
|
1158
1179
|
switch (e) {
|
|
1159
|
-
case
|
|
1180
|
+
case se.ZOOM_IN:
|
|
1160
1181
|
return `<polygon points="19 13 15 13 15 9 13 9 13 13 9 13 9 15 13 15 13 19 15 19 15 15 19 15 19 13"/>
|
|
1161
1182
|
<path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>`;
|
|
1162
|
-
case
|
|
1183
|
+
case se.ZOOM_OUT:
|
|
1163
1184
|
return `<rect x="9" y="13" width="10" height="2"/>
|
|
1164
1185
|
<path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>`;
|
|
1165
|
-
case
|
|
1186
|
+
case se.RESET_ZOOM:
|
|
1166
1187
|
return '<path d="M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z"/>';
|
|
1167
|
-
case
|
|
1188
|
+
case se.MAKE_FULLSCREEN:
|
|
1168
1189
|
return '<polygon points="21 2 21 4 26.59 4 17 13.58 18.41 15 28 5.41 28 11 30 11 30 2 21 2"/><polygon points="15 18.42 13.59 17 4 26.59 4 21 2 21 2 30 11 30 11 28 5.41 28 15 18.42"/>';
|
|
1169
|
-
case
|
|
1190
|
+
case se.EXIT_FULLSCREEN:
|
|
1191
|
+
return '<polygon points="4 18 4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18"/><polygon points="30 3.416 28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416"/>';
|
|
1192
|
+
case se.SHOW_AS_DATATABLE:
|
|
1170
1193
|
return '<rect x="4" y="6" width="18" height="2"/><rect x="4" y="12" width="18" height="2"/><rect x="4" y="18" width="18" height="2"/><rect x="4" y="24" width="18" height="2"/><rect x="26" y="6" width="2" height="2"/><rect x="26" y="12" width="2" height="2"/><rect x="26" y="18" width="2" height="2"/><rect x="26" y="24" width="2" height="2"/>';
|
|
1171
|
-
case
|
|
1194
|
+
case se.EXPORT_CSV:
|
|
1172
1195
|
return '<path d="M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z"/>';
|
|
1173
|
-
case
|
|
1196
|
+
case se.EXPORT_JPG:
|
|
1174
1197
|
return '<path d="M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z"/>';
|
|
1175
|
-
case
|
|
1198
|
+
case se.EXPORT_PNG:
|
|
1176
1199
|
return '<path d="M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z"/>';
|
|
1177
1200
|
default:
|
|
1178
1201
|
throw Error("Not supported toolbar control type: " + e);
|
|
@@ -1268,7 +1291,7 @@ const zt = class zt extends Y {
|
|
|
1268
1291
|
}
|
|
1269
1292
|
};
|
|
1270
1293
|
zt.instanceID = Math.floor(Math.random() * 99999999999);
|
|
1271
|
-
let
|
|
1294
|
+
let Rs = zt;
|
|
1272
1295
|
class hh extends Y {
|
|
1273
1296
|
constructor() {
|
|
1274
1297
|
super(...arguments), this.type = "spacer";
|
|
@@ -1295,14 +1318,14 @@ var qr = {
|
|
|
1295
1318
|
iframe, object, embed, *[tabindex], *[contenteditable=true]
|
|
1296
1319
|
`
|
|
1297
1320
|
}, pn = qr;
|
|
1298
|
-
function
|
|
1321
|
+
function ks(o, e) {
|
|
1299
1322
|
for (var t = 0; t < e.length; t++) {
|
|
1300
1323
|
var n = e[t];
|
|
1301
1324
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
|
|
1302
1325
|
}
|
|
1303
1326
|
}
|
|
1304
1327
|
function Kr(o, e, t) {
|
|
1305
|
-
return e &&
|
|
1328
|
+
return e && ks(o.prototype, e), t && ks(o, t), Object.defineProperty(o, "prototype", {
|
|
1306
1329
|
writable: !1
|
|
1307
1330
|
}), o;
|
|
1308
1331
|
}
|
|
@@ -1696,7 +1719,7 @@ function Mn(o, e) {
|
|
|
1696
1719
|
}, Mn(o, e);
|
|
1697
1720
|
}
|
|
1698
1721
|
function _o(o) {
|
|
1699
|
-
var e =
|
|
1722
|
+
var e = ko();
|
|
1700
1723
|
return function() {
|
|
1701
1724
|
var n = Bt(o), s;
|
|
1702
1725
|
if (e) {
|
|
@@ -1712,14 +1735,14 @@ function Io(o, e) {
|
|
|
1712
1735
|
return e;
|
|
1713
1736
|
if (e !== void 0)
|
|
1714
1737
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1715
|
-
return
|
|
1738
|
+
return Ro(o);
|
|
1716
1739
|
}
|
|
1717
|
-
function
|
|
1740
|
+
function Ro(o) {
|
|
1718
1741
|
if (o === void 0)
|
|
1719
1742
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1720
1743
|
return o;
|
|
1721
1744
|
}
|
|
1722
|
-
function
|
|
1745
|
+
function ko() {
|
|
1723
1746
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1724
1747
|
return !1;
|
|
1725
1748
|
if (typeof Proxy == "function")
|
|
@@ -2032,12 +2055,12 @@ function qo(o, e) {
|
|
|
2032
2055
|
}
|
|
2033
2056
|
}), Object.defineProperty(o, "prototype", {
|
|
2034
2057
|
writable: !1
|
|
2035
|
-
}), e &&
|
|
2058
|
+
}), e && Rn(o, e);
|
|
2036
2059
|
}
|
|
2037
|
-
function
|
|
2038
|
-
return
|
|
2060
|
+
function Rn(o, e) {
|
|
2061
|
+
return Rn = Object.setPrototypeOf || function(n, s) {
|
|
2039
2062
|
return n.__proto__ = s, n;
|
|
2040
|
-
},
|
|
2063
|
+
}, Rn(o, e);
|
|
2041
2064
|
}
|
|
2042
2065
|
function Ko(o) {
|
|
2043
2066
|
var e = el();
|
|
@@ -2142,13 +2165,13 @@ function tl(o) {
|
|
|
2142
2165
|
}(o);
|
|
2143
2166
|
return e;
|
|
2144
2167
|
}
|
|
2145
|
-
function
|
|
2168
|
+
function kn(o) {
|
|
2146
2169
|
"@babel/helpers - typeof";
|
|
2147
|
-
return
|
|
2170
|
+
return kn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2148
2171
|
return typeof e;
|
|
2149
2172
|
} : function(e) {
|
|
2150
2173
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2151
|
-
},
|
|
2174
|
+
}, kn(o);
|
|
2152
2175
|
}
|
|
2153
2176
|
function nl(o, e) {
|
|
2154
2177
|
if (!(o instanceof e))
|
|
@@ -2196,7 +2219,7 @@ function il(o) {
|
|
|
2196
2219
|
};
|
|
2197
2220
|
}
|
|
2198
2221
|
function rl(o, e) {
|
|
2199
|
-
if (e && (
|
|
2222
|
+
if (e && (kn(e) === "object" || typeof e == "function"))
|
|
2200
2223
|
return e;
|
|
2201
2224
|
if (e !== void 0)
|
|
2202
2225
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -2376,7 +2399,7 @@ class uh extends Y {
|
|
|
2376
2399
|
<div class="cds--modal-header cds--modal-header">
|
|
2377
2400
|
<p class="cds--modal-header__label cds--type-delta cds--modal-header__label cds--type-delta" id="${e}__modal-title">Tabular representation</p>
|
|
2378
2401
|
|
|
2379
|
-
<p class="cds--modal-header__heading cds--type-beta cds--modal-header__heading cds--type-beta" id="${e}__modal-description">${
|
|
2402
|
+
<p class="cds--modal-header__heading cds--type-beta cds--modal-header__heading cds--type-beta" id="${e}__modal-description">${Re(
|
|
2380
2403
|
t.title
|
|
2381
2404
|
)}</p>
|
|
2382
2405
|
|
|
@@ -2391,9 +2414,9 @@ class uh extends Y {
|
|
|
2391
2414
|
<table class="cds--data-table cds--data-table--no-border cds--data-table cds--data-table--no-border">
|
|
2392
2415
|
<thead>
|
|
2393
2416
|
<tr>
|
|
2394
|
-
${
|
|
2417
|
+
${de(s, 0).map(
|
|
2395
2418
|
(a) => `<th scope="col">
|
|
2396
|
-
<div class="cds--table-header-label cds--table-header-label">${
|
|
2419
|
+
<div class="cds--table-header-label cds--table-header-label">${Re(a)}</div>
|
|
2397
2420
|
</th>`
|
|
2398
2421
|
).join("")}
|
|
2399
2422
|
</tr>
|
|
@@ -2402,7 +2425,7 @@ class uh extends Y {
|
|
|
2402
2425
|
<tbody>${s.slice(1).map(
|
|
2403
2426
|
(a) => `
|
|
2404
2427
|
<tr>
|
|
2405
|
-
${a.map((i) => `<td>${
|
|
2428
|
+
${a.map((i) => `<td>${Re(i)}</td>`).join("")}
|
|
2406
2429
|
</tr>`
|
|
2407
2430
|
).join("")}
|
|
2408
2431
|
</tbody>
|
|
@@ -2438,7 +2461,7 @@ class hl extends Y {
|
|
|
2438
2461
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2439
2462
|
render(e = !1) {
|
|
2440
2463
|
const t = this.getComponentContainer(), n = y(this.getOptions(), "title"), s = t.selectAll("p.title").data([n]);
|
|
2441
|
-
if (s.enter().append("p").classed("title", !0).attr("role", "heading").attr("aria-level", 2).merge(s).html((a) =>
|
|
2464
|
+
if (s.enter().append("p").classed("title", !0).attr("role", "heading").attr("aria-level", 2).merge(s).html((a) => Re(a)), s.node() && s.node().offsetWidth < s.node().scrollWidth) {
|
|
2442
2465
|
const a = this;
|
|
2443
2466
|
s.on("mouseover", function(i) {
|
|
2444
2467
|
a.services.events.dispatchEvent(f.Tooltip.SHOW, {
|
|
@@ -2516,18 +2539,18 @@ class ul extends Y {
|
|
|
2516
2539
|
render(e = !1) {
|
|
2517
2540
|
const t = this.getOptions(), n = y(t, "legend"), s = y(n, "alignment"), a = y(t, "legend", "orientation");
|
|
2518
2541
|
let i = this.model.getDataGroups();
|
|
2519
|
-
const { DISABLED: r } =
|
|
2542
|
+
const { DISABLED: r } = le.items.status, l = i.some((O) => O.status === r), c = y(n, "order"), d = this.getComponentContainer().classed("center-aligned", s === Me.CENTER).classed("right-aligned", s === Me.RIGHT).classed(a, !0).classed("has-deactivated-items", l).attr("role", j.GROUP).attr("aria-label", "Data groups").attr("data-name", "legend-items");
|
|
2520
2543
|
c && (i = this.sortDataGroups(i, c));
|
|
2521
2544
|
const p = d.selectAll("div.legend-item").data(i, (O) => O.name), h = p.enter().append("div").attr("class", "legend-item");
|
|
2522
2545
|
h.merge(d.selectAll("div.legend-item")).classed("active", function(O) {
|
|
2523
|
-
return O.status ===
|
|
2546
|
+
return O.status === le.items.status.ACTIVE;
|
|
2524
2547
|
});
|
|
2525
2548
|
const u = y(this.getOptions(), "legend", "clickable");
|
|
2526
2549
|
d.classed("clickable", u && i.length > 1);
|
|
2527
|
-
const g =
|
|
2550
|
+
const g = le.checkbox.radius, m = h.append("div").classed("checkbox", !0), E = m.merge(p.select("div.checkbox")).attr("role", j.CHECKBOX).attr("tabindex", u ? 0 : -1).attr(
|
|
2528
2551
|
"aria-labelledby",
|
|
2529
2552
|
(O, T) => this.services.domUtils.generateElementIDString(`legend-datagroup-${T}-title`)
|
|
2530
|
-
).attr("aria-checked", ({ status: O }) => O ===
|
|
2553
|
+
).attr("aria-checked", ({ status: O }) => O === le.items.status.ACTIVE).attr("width", g * 2).attr("height", g * 2).attr(
|
|
2531
2554
|
"class",
|
|
2532
2555
|
(O) => this.model.getColorClassName({
|
|
2533
2556
|
classNameTypes: [F.BACKGROUND],
|
|
@@ -2536,9 +2559,9 @@ class ul extends Y {
|
|
|
2536
2559
|
})
|
|
2537
2560
|
).style(
|
|
2538
2561
|
"background",
|
|
2539
|
-
(O) => O.status ===
|
|
2562
|
+
(O) => O.status === le.items.status.ACTIVE ? this.model.getFillColor(O.name) || this.model.getStrokeColor(O.name) : null
|
|
2540
2563
|
).classed("active", function(O) {
|
|
2541
|
-
return O.status ===
|
|
2564
|
+
return O.status === le.items.status.ACTIVE;
|
|
2542
2565
|
});
|
|
2543
2566
|
m.append("svg").attr("focusable", !1).attr("preserveAspectRatio", "xMidYMid meet").attr("xmlns", "http://www.w3.org/2000/svg").attr("width", "11").attr("height", "11").attr("viewBox", "0 0 31 28").attr("aria-hidden", !0).style("will-change", "transform").append("path").attr("d", "M13 21.2l-7.1-7.1-1.4 1.4 7.1 7.1L13 24 27.1 9.9l-1.4-1.5z"), h.append("p").merge(p.select("p"));
|
|
2544
2567
|
const v = y(t, "legend", "additionalItems");
|
|
@@ -2570,26 +2593,26 @@ class ul extends Y {
|
|
|
2570
2593
|
return e;
|
|
2571
2594
|
}
|
|
2572
2595
|
addAdditionalItem(e, t, n) {
|
|
2573
|
-
const { width: s, height: a } =
|
|
2596
|
+
const { width: s, height: a } = le.area;
|
|
2574
2597
|
if (t.type === We.RADIUS ? e.style("width", `${a}px`).style("height", `${a}px`) : e.style("width", `${s}px`).style("height", `${a}px`), t.type === We.RADIUS) {
|
|
2575
|
-
const { iconData: i, fill: r, stroke: l } =
|
|
2598
|
+
const { iconData: i, fill: r, stroke: l } = le.radius;
|
|
2576
2599
|
e.attr("fill", "none").selectAll("circle").data(i).enter().append("circle").classed("radius", !0).attr("role", j.IMG).attr("aria-label", "radius").attr("cx", (d) => d.cx).attr("cy", (d) => d.cy).attr("r", (d) => d.r).style("fill", t.fill ? t.fill : r).style("stroke", t.stroke ? t.stroke : l);
|
|
2577
2600
|
} else if (t.type === We.LINE) {
|
|
2578
|
-
const i =
|
|
2601
|
+
const i = le.line;
|
|
2579
2602
|
e.select("line.line").empty() && e.append("line").classed(`line-${n}`, !0).attr("role", j.IMG).attr("aria-label", "line").attr("x1", 0).attr("y1", i.yPosition).attr("x2", s).attr("y2", i.yPosition).style("stroke", t.stroke ? t.stroke : i.stroke).style("stroke-width", i.strokeWidth);
|
|
2580
2603
|
} else if (t.type === We.AREA)
|
|
2581
2604
|
e.select("rect.area").empty() && e.append("rect").classed(`area-${n}`, !0).attr("role", j.IMG).attr("aria-label", "area").attr("width", s).attr("height", a).style(
|
|
2582
2605
|
"fill",
|
|
2583
|
-
n > 3 && !t.fill ?
|
|
2606
|
+
n > 3 && !t.fill ? le.area.fill : t.fill
|
|
2584
2607
|
).style("stroke", t.stroke);
|
|
2585
2608
|
else if (t.type === We.SIZE) {
|
|
2586
|
-
const { iconData: i, fill: r, stroke: l } =
|
|
2609
|
+
const { iconData: i, fill: r, stroke: l } = le.size;
|
|
2587
2610
|
e.attr("fill", "none").attr("role", j.IMG).attr("aria-label", "size").selectAll("rect").data(i).enter().append("rect").classed("size", !0).attr("width", (d) => d.width).attr("height", (d) => d.height).attr("y", () => 0).style("fill", t.fill ? t.fill : r).style("stroke", t.stroke ? t.stroke : l).style("stroke-width", 1);
|
|
2588
2611
|
} else if (t.type === We.QUARTILE) {
|
|
2589
|
-
const { iconData: i } =
|
|
2612
|
+
const { iconData: i } = le.quartile;
|
|
2590
2613
|
e.selectAll("rect").attr("role", j.IMG).attr("aria-label", "quartile").data(i).enter().append("rect").attr("class", (l, c) => `quartile-${c === 0 ? "wrapper" : "line"}`).attr("x", (l) => l.x).attr("y", (l) => l.y).attr("width", (l) => l.width).attr("height", (l) => l.height);
|
|
2591
2614
|
} else if (t.type === We.ZOOM) {
|
|
2592
|
-
const { iconData: i, color: r } = y(
|
|
2615
|
+
const { iconData: i, color: r } = y(le, "zoom"), l = e.attr("role", j.IMG).attr("aria-label", "zoom").selectAll("g.icon").data(i).enter();
|
|
2593
2616
|
l.append("g").attr("x", (c) => c.x).attr("y", (c) => c.y).attr("width", (c) => c.width).attr("height", (c) => c.height).append("polygon").attr(
|
|
2594
2617
|
"points",
|
|
2595
2618
|
"7.7 4.82 5.78 4.82 5.78 2.89 4.82 2.89 4.82 4.82 2.89 4.82 2.89 5.78 4.82 5.78 4.82 7.7 5.78 7.7 5.78 5.78 7.7 5.78 7.7 4.82"
|
|
@@ -2604,9 +2627,9 @@ class ul extends Y {
|
|
|
2604
2627
|
i.attr("id", function() {
|
|
2605
2628
|
return (this.parentNode.querySelector("div.checkbox") || this.parentNode).getAttribute("aria-labelledby");
|
|
2606
2629
|
}), n !== lt.NONE ? i.html(function(r) {
|
|
2607
|
-
const l =
|
|
2630
|
+
const l = Re(r.name);
|
|
2608
2631
|
return l.length > s && l.length !== a ? St(l, n, a) : l;
|
|
2609
|
-
}) : i.html((r) =>
|
|
2632
|
+
}) : i.html((r) => Re(r.name));
|
|
2610
2633
|
}
|
|
2611
2634
|
addEventListeners() {
|
|
2612
2635
|
const e = this, t = this.getComponentContainer(), n = this.getOptions(), s = y(n, "legend"), a = y(s, "truncation");
|
|
@@ -3289,7 +3312,7 @@ class mh extends Y {
|
|
|
3289
3312
|
}
|
|
3290
3313
|
setThresholdLabelPosition({ event: e, datum: t }) {
|
|
3291
3314
|
const n = this.services.domUtils.getHolder(), s = Ft(e, n), a = t.valueFormatter ? t.valueFormatter(t.value) : this.getFormattedValue(t);
|
|
3292
|
-
this.label.html(
|
|
3315
|
+
this.label.html(Re(`${t.label || "Threshold"}: ${a}`)).style("background-color", t.fillColor);
|
|
3293
3316
|
const i = this.label.node(), r = this.positionService.findBestPlacementAt(
|
|
3294
3317
|
{
|
|
3295
3318
|
left: s[0],
|
|
@@ -3471,7 +3494,7 @@ class vh extends gl {
|
|
|
3471
3494
|
), !i && y(n, "tooltip", "showTotal") === !0)) {
|
|
3472
3495
|
const h = s.getRangeIdentifier();
|
|
3473
3496
|
p.push({
|
|
3474
|
-
label:
|
|
3497
|
+
label: de(n, "tooltip.totalLabel") || "Total",
|
|
3475
3498
|
value: t.reduce(
|
|
3476
3499
|
(u, g) => u + g[h],
|
|
3477
3500
|
0
|
|
@@ -4424,10 +4447,10 @@ class _a extends Y {
|
|
|
4424
4447
|
if (!p.ticks(H).length)
|
|
4425
4448
|
K.tickValues([]);
|
|
4426
4449
|
else {
|
|
4427
|
-
const J = y(n, "timeScale", "addSpaceOnEdges"),
|
|
4428
|
-
J && !
|
|
4429
|
-
const ge =
|
|
4430
|
-
J && ge.length > 2 && !
|
|
4450
|
+
const J = y(n, "timeScale", "addSpaceOnEdges"), ie = y(n, "axes", t, "domain"), re = p.copy();
|
|
4451
|
+
J && !ie && re.nice(H);
|
|
4452
|
+
const ge = re.ticks(H);
|
|
4453
|
+
J && ge.length > 2 && !ie && (ge.splice(ge.length - 1, 1), ge.splice(0, 1)), K.tickValues(ge);
|
|
4431
4454
|
}
|
|
4432
4455
|
}
|
|
4433
4456
|
let z;
|
|
@@ -4437,20 +4460,20 @@ class _a extends Y {
|
|
|
4437
4460
|
K.tickValues(),
|
|
4438
4461
|
y(n, "timeScale", "timeInterval")
|
|
4439
4462
|
);
|
|
4440
|
-
q === null ? z = (J,
|
|
4441
|
-
const
|
|
4463
|
+
q === null ? z = (J, ie) => mn(J, ie, K.tickValues(), H, w) : z = (J, ie) => {
|
|
4464
|
+
const re = mn(
|
|
4442
4465
|
J,
|
|
4443
|
-
|
|
4466
|
+
ie,
|
|
4444
4467
|
K.tickValues(),
|
|
4445
4468
|
H,
|
|
4446
4469
|
w
|
|
4447
4470
|
);
|
|
4448
|
-
return q(J,
|
|
4471
|
+
return q(J, ie, re);
|
|
4449
4472
|
};
|
|
4450
4473
|
} else
|
|
4451
4474
|
q === null ? ve === he.LINEAR && (z = (H) => H.toLocaleString()) : z = q;
|
|
4452
4475
|
K.tickFormat(z);
|
|
4453
|
-
const [Ye,
|
|
4476
|
+
const [Ye, ae] = this.services.cartesianScales.getScaleByPosition(t).domain();
|
|
4454
4477
|
let Ge;
|
|
4455
4478
|
if (I) {
|
|
4456
4479
|
if (v)
|
|
@@ -4458,14 +4481,14 @@ class _a extends Y {
|
|
|
4458
4481
|
H.getTime === void 0 && (I[J] = new Date(H));
|
|
4459
4482
|
}), Ge = I.filter((H) => {
|
|
4460
4483
|
const J = H.getTime();
|
|
4461
|
-
return J >= new Date(Ye).getTime() && J <= new Date(
|
|
4484
|
+
return J >= new Date(Ye).getTime() && J <= new Date(ae).getTime();
|
|
4462
4485
|
});
|
|
4463
4486
|
else if (M === he.LABELS) {
|
|
4464
4487
|
const H = this.services.cartesianScales.getScaleByPosition(t).domain();
|
|
4465
4488
|
Ge = I.filter((J) => H.includes(J));
|
|
4466
4489
|
} else
|
|
4467
4490
|
Ge = I.filter(
|
|
4468
|
-
(H) => H >= Ye && H <=
|
|
4491
|
+
(H) => H >= Ye && H <= ae
|
|
4469
4492
|
);
|
|
4470
4493
|
K.tickValues(Ge);
|
|
4471
4494
|
}
|
|
@@ -4486,9 +4509,9 @@ class _a extends Y {
|
|
|
4486
4509
|
const ne = this.model.isDataEmpty();
|
|
4487
4510
|
if (E.title) {
|
|
4488
4511
|
const H = S.appendOrSelect(l, "text.axis-title").html(
|
|
4489
|
-
ne || A ? "" :
|
|
4512
|
+
ne || A ? "" : Re(E.title)
|
|
4490
4513
|
), J = y(E, "titleOrientation");
|
|
4491
|
-
let
|
|
4514
|
+
let ie;
|
|
4492
4515
|
switch (t) {
|
|
4493
4516
|
case B.LEFT:
|
|
4494
4517
|
J === ys.RIGHT ? H.attr("transform", "rotate(90)").attr("y", 0).attr("x", p.range()[0] / 2).attr("dy", "-0.5em").style("text-anchor", "middle") : H.attr("transform", "rotate(-90)").attr("y", 0).attr("x", -(p.range()[0] / 2)).attr("dy", "0.75em").style("text-anchor", "middle");
|
|
@@ -4503,11 +4526,11 @@ class _a extends Y {
|
|
|
4503
4526
|
J === ys.LEFT ? H.attr("transform", "rotate(-90)").attr("y", i).attr("x", -(p.range()[0] / 2)).style("text-anchor", "middle") : H.attr("transform", "rotate(90)").attr("y", -i).attr("x", p.range()[0] / 2).attr("dy", "0.75em").style("text-anchor", "middle");
|
|
4504
4527
|
break;
|
|
4505
4528
|
case B.TOP:
|
|
4506
|
-
|
|
4529
|
+
ie = S.getSVGElementSize(H, {
|
|
4507
4530
|
useBBox: !0
|
|
4508
4531
|
}).height, H.attr(
|
|
4509
4532
|
"transform",
|
|
4510
|
-
`translate(${this.margins.left / 2 + p.range()[1] / 2}, ${
|
|
4533
|
+
`translate(${this.margins.left / 2 + p.range()[1] / 2}, ${ie / 2})`
|
|
4511
4534
|
).style("text-anchor", "middle");
|
|
4512
4535
|
break;
|
|
4513
4536
|
}
|
|
@@ -4516,14 +4539,14 @@ class _a extends Y {
|
|
|
4516
4539
|
const H = gn(
|
|
4517
4540
|
K.tickValues(),
|
|
4518
4541
|
y(n, "timeScale", "timeInterval")
|
|
4519
|
-
), J = w.showDayName,
|
|
4542
|
+
), J = w.showDayName, ie = g;
|
|
4520
4543
|
e && (g = g.transition().call(
|
|
4521
4544
|
(ge) => this.services.transitions.setupTransition({
|
|
4522
4545
|
transition: ge,
|
|
4523
4546
|
name: "axis-update",
|
|
4524
4547
|
animate: e
|
|
4525
4548
|
})
|
|
4526
|
-
)), g = g.call(K),
|
|
4549
|
+
)), g = g.call(K), ie.selectAll(".tick").data(K.tickValues(), p).order().select("text").style("font-weight", (ge, $e) => Ya(ge, $e, K.tickValues(), H, J) ? "bold" : "normal");
|
|
4527
4550
|
} else
|
|
4528
4551
|
!e || !u ? g = g.call(K) : g = g.transition().call(
|
|
4529
4552
|
(H) => this.services.transitions.setupTransition({
|
|
@@ -4542,20 +4565,20 @@ class _a extends Y {
|
|
|
4542
4565
|
else if (!J || J === tn.AUTO)
|
|
4543
4566
|
if (p.step)
|
|
4544
4567
|
H = m.selectAll("g.tick text").nodes().some(
|
|
4545
|
-
(
|
|
4568
|
+
(re) => S.getSVGElementSize(re, {
|
|
4546
4569
|
useBBox: !0
|
|
4547
4570
|
}).width >= p.step()
|
|
4548
4571
|
);
|
|
4549
4572
|
else {
|
|
4550
4573
|
H = !1;
|
|
4551
|
-
const
|
|
4574
|
+
const ie = m.append("text").text("A"), re = S.getSVGElementSize(ie.node(), {
|
|
4552
4575
|
useBBox: !0
|
|
4553
4576
|
}).width;
|
|
4554
4577
|
let ge;
|
|
4555
4578
|
m.selectAll("g.tick").each(function() {
|
|
4556
4579
|
const $e = x(this), C = parseFloat(y(Ne(this), "tx"));
|
|
4557
|
-
C !== null && ge + $e.text().length *
|
|
4558
|
-
}),
|
|
4580
|
+
C !== null && ge + $e.text().length * re * 0.8 >= C && (H = !0), ge = C;
|
|
4581
|
+
}), ie.remove();
|
|
4559
4582
|
}
|
|
4560
4583
|
H ? (_ || (K.ticks(
|
|
4561
4584
|
this.getNumberOfFittingTicks(i, Q, ot.ticks.horizontalSpaceRatio)
|
|
@@ -4566,11 +4589,11 @@ class _a extends Y {
|
|
|
4566
4589
|
if (H.length > 0) {
|
|
4567
4590
|
const J = a.select(`g.axis.${t} g.ticks g.tick`).html();
|
|
4568
4591
|
l.selectAll("g.ticks g.tick").html(J);
|
|
4569
|
-
const
|
|
4570
|
-
l.selectAll("g.tick text").data(H).text(function(
|
|
4571
|
-
return
|
|
4572
|
-
}), this.getInvisibleAxisRef().selectAll("g.tick text").data(H).text(function(
|
|
4573
|
-
return
|
|
4592
|
+
const ie = this;
|
|
4593
|
+
l.selectAll("g.tick text").data(H).text(function(re) {
|
|
4594
|
+
return re.length > X ? (ie.truncation[t] = !0, St(re, D, N)) : re;
|
|
4595
|
+
}), this.getInvisibleAxisRef().selectAll("g.tick text").data(H).text(function(re) {
|
|
4596
|
+
return re.length > X ? St(re, D, N) : re;
|
|
4574
4597
|
}), l.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), l.selectAll("g.tick text").data(H);
|
|
4575
4598
|
}
|
|
4576
4599
|
}
|
|
@@ -5631,14 +5654,14 @@ class Mh extends Ca {
|
|
|
5631
5654
|
const s = this.parent, a = this.model.getOptions(), { cartesianScales: i } = this.services, r = i.getOrientation(), l = i.getRangeScale(), [c, d] = l.range(), p = i.getDomainScale(), h = p.invert(
|
|
5632
5655
|
r === xe.VERTICAL ? t : n
|
|
5633
5656
|
), u = S.appendOrSelect(s, "g.ruler").attr("aria-label", "ruler"), g = S.appendOrSelect(u, "line.ruler-line"), E = s.selectAll("[role=graphics-symbol]").filter((v) => {
|
|
5634
|
-
if (parseFloat(
|
|
5657
|
+
if (parseFloat(de(v, "data.x0")) <= h && parseFloat(de(v, "data.x1")) >= h)
|
|
5635
5658
|
return !0;
|
|
5636
5659
|
});
|
|
5637
5660
|
if (E.size() > 0) {
|
|
5638
5661
|
this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !ba(this.elementsToHighlight, E) && this.hideRuler(), E.dispatch("mouseover"), this.elementsToHighlight = E;
|
|
5639
|
-
const v = x(E.nodes()[0]).datum(), O = parseFloat(
|
|
5662
|
+
const v = x(E.nodes()[0]).datum(), O = parseFloat(de(v, "data.x0")), T = parseFloat(de(v, "data.x1")), M = this.model.getActiveDataGroupNames(), A = M.reverse().map((I) => ({
|
|
5640
5663
|
label: I,
|
|
5641
|
-
value:
|
|
5664
|
+
value: de(v, `data.${I}`),
|
|
5642
5665
|
class: this.model.getColorClassName({
|
|
5643
5666
|
classNameTypes: [F.TOOLTIP],
|
|
5644
5667
|
dataGroupName: I
|
|
@@ -5650,15 +5673,15 @@ class Mh extends Ca {
|
|
|
5650
5673
|
hoveredElement: g,
|
|
5651
5674
|
items: [
|
|
5652
5675
|
{
|
|
5653
|
-
label:
|
|
5676
|
+
label: de(a, "bins.rangeLabel") || "Range",
|
|
5654
5677
|
value: `${O} – ${T}`
|
|
5655
5678
|
},
|
|
5656
5679
|
...A,
|
|
5657
5680
|
...y(a, "tooltip", "showTotal") === !0 ? [
|
|
5658
5681
|
{
|
|
5659
|
-
label:
|
|
5682
|
+
label: de(a, "tooltip.totalLabel") || "Total",
|
|
5660
5683
|
value: M.reduce(
|
|
5661
|
-
(D, X) => D + parseFloat(
|
|
5684
|
+
(D, X) => D + parseFloat(de(v, `data.${X}`)),
|
|
5662
5685
|
0
|
|
5663
5686
|
)
|
|
5664
5687
|
}
|
|
@@ -5687,12 +5710,12 @@ const Ch = (o, e) => {
|
|
|
5687
5710
|
}, Ih = (o, e, t, n, s, a) => {
|
|
5688
5711
|
const i = o.x, r = o.y, l = e.x, c = e.y, d = Bn();
|
|
5689
5712
|
return d.moveTo(i, r), d.bezierCurveTo(t, n, s, a, l, c), d.toString();
|
|
5690
|
-
},
|
|
5713
|
+
}, Rh = {
|
|
5691
5714
|
d: "M7 0v8L0 4z",
|
|
5692
5715
|
height: 8,
|
|
5693
5716
|
width: 7.5,
|
|
5694
5717
|
id: "arrowLeft"
|
|
5695
|
-
},
|
|
5718
|
+
}, kh = {
|
|
5696
5719
|
d: "M0 0v8l7-4z",
|
|
5697
5720
|
height: 8,
|
|
5698
5721
|
width: 7.5,
|
|
@@ -5724,7 +5747,7 @@ class Bh extends ul {
|
|
|
5724
5747
|
const s = this.getComponentContainer(), { width: a } = S.getSVGElementSize(s, {
|
|
5725
5748
|
useAttrs: !0
|
|
5726
5749
|
}), i = y(this.getOptions(), "data", "loading");
|
|
5727
|
-
if (a >
|
|
5750
|
+
if (a > le.color.barWidth && !i) {
|
|
5728
5751
|
const r = y(this.getOptions(), "heatmap", "colorLegend", "title"), { cartesianScales: l } = this.services, d = l.getMainXScale().range();
|
|
5729
5752
|
if (d[0] > 1 && (s.select("g.legend").attr("transform", `translate(${d[0]}, 0)`), r)) {
|
|
5730
5753
|
const { width: p } = S.getSVGElementSize(
|
|
@@ -5753,7 +5776,7 @@ class Bh extends ul {
|
|
|
5753
5776
|
n.html("");
|
|
5754
5777
|
return;
|
|
5755
5778
|
}
|
|
5756
|
-
const d = !Qs(a), p = Ka(this.model.getDisplayData()), h = !(s <=
|
|
5779
|
+
const d = !Qs(a), p = Ka(this.model.getDisplayData()), h = !(s <= le.color.barWidth), u = h ? le.color.barWidth : s, g = S.appendOrSelect(n, "g.legend"), m = S.appendOrSelect(g, "g.legend-axis");
|
|
5757
5780
|
if (l) {
|
|
5758
5781
|
const D = S.appendOrSelect(n, "g.legend-title");
|
|
5759
5782
|
S.appendOrSelect(D, "text").text(l).attr("dy", "0.7em"), g.attr("transform", "translate(0, 16)");
|
|
@@ -5787,7 +5810,7 @@ class Bh extends ul {
|
|
|
5787
5810
|
default:
|
|
5788
5811
|
throw Error("Entered color legend type is not supported.");
|
|
5789
5812
|
}
|
|
5790
|
-
m.attr("transform", `translate(0,${
|
|
5813
|
+
m.attr("transform", `translate(0,${le.color.axisYTranslation})`).call(L), m.select(".domain").remove(), m.select("g.tick:last-of-type text").style("text-anchor", h ? "middle" : "end"), m.select("g.tick:first-of-type text").style(
|
|
5791
5814
|
"text-anchor",
|
|
5792
5815
|
h && this.chartType !== "choropleth" ? "middle" : "start"
|
|
5793
5816
|
);
|
|
@@ -5795,7 +5818,7 @@ class Bh extends ul {
|
|
|
5795
5818
|
// Renders gradient legend
|
|
5796
5819
|
drawLinear(e, t, n) {
|
|
5797
5820
|
const s = 100 / (e.length - 1);
|
|
5798
|
-
S.appendOrSelect(t, "linearGradient").attr("id", `${this.gradient_id}-legend`).selectAll("stop").data(e).enter().append("stop").attr("offset", (r, l) => `${l * s}%`).attr("class", (r, l) => e[l]).attr("stop-color", (r) => r), S.appendOrSelect(t, "rect").attr("width", n).attr("height",
|
|
5821
|
+
S.appendOrSelect(t, "linearGradient").attr("id", `${this.gradient_id}-legend`).selectAll("stop").data(e).enter().append("stop").attr("offset", (r, l) => `${l * s}%`).attr("class", (r, l) => e[l]).attr("stop-color", (r) => r), S.appendOrSelect(t, "rect").attr("width", n).attr("height", le.color.barHeight).style("fill", `url(#${this.gradient_id}-legend)`);
|
|
5799
5822
|
}
|
|
5800
5823
|
/**
|
|
5801
5824
|
* Renders quantized legend
|
|
@@ -5804,7 +5827,7 @@ class Bh extends ul {
|
|
|
5804
5827
|
drawQuantize(e, t, n, s, a) {
|
|
5805
5828
|
!n && t === "diverge" && e.splice(e.length / 2, 1);
|
|
5806
5829
|
const i = Gn().domain(e).range([0, a]);
|
|
5807
|
-
return S.appendOrSelect(s, "g.quantized-rect").selectAll("rect").data(i.domain()).join("rect").attr("x", (l) => i(l)).attr("y", 0).attr("width", Math.max(0, i.bandwidth() - 1)).attr("height",
|
|
5830
|
+
return S.appendOrSelect(s, "g.quantized-rect").selectAll("rect").data(i.domain()).join("rect").attr("x", (l) => i(l)).attr("y", 0).attr("width", Math.max(0, i.bandwidth() - 1)).attr("height", le.color.barHeight).attr("class", (l) => l).attr("fill", (l) => l), (!n && t) === "mono" ? i.bandwidth() - 1 : 0;
|
|
5808
5831
|
}
|
|
5809
5832
|
destroy() {
|
|
5810
5833
|
this.chartType === "heatmap" && this.services.events.removeEventListener(f.Axis.RENDER_COMPLETE, this.handleAxisCompleteEvent);
|
|
@@ -6049,7 +6072,7 @@ class Hh extends Y {
|
|
|
6049
6072
|
const u = e.model.getOptions();
|
|
6050
6073
|
d = [
|
|
6051
6074
|
{
|
|
6052
|
-
label:
|
|
6075
|
+
label: de(u, "tooltip.totalLabel") || "Total",
|
|
6053
6076
|
value: n.value,
|
|
6054
6077
|
bold: !0
|
|
6055
6078
|
}
|
|
@@ -6750,7 +6773,7 @@ class Fh extends Y {
|
|
|
6750
6773
|
return e !== rn.OFF && (e === rn.AUTO && gs.minCellDividerDimension <= this.xBandwidth && gs.minCellDividerDimension <= this.yBandwidth || e === rn.ON);
|
|
6751
6774
|
}
|
|
6752
6775
|
addEventListener() {
|
|
6753
|
-
const e = this, { cartesianScales: t } = this.services, n = this.getOptions(), s =
|
|
6776
|
+
const e = this, { cartesianScales: t } = this.services, n = this.getOptions(), s = de(n, "tooltip.totalLabel"), a = t.getDomainIdentifier(), i = t.getRangeIdentifier(), r = t.getDomainLabel(), l = t.getRangeLabel();
|
|
6754
6777
|
this.parent.selectAll("g.cell").on("mouseover", function(c, d) {
|
|
6755
6778
|
const p = x(this), h = p.select("rect.heat");
|
|
6756
6779
|
if (!h.classed("null-state")) {
|
|
@@ -6838,7 +6861,7 @@ class Wh extends Y {
|
|
|
6838
6861
|
e.addEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.addEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
6839
6862
|
}
|
|
6840
6863
|
render(e) {
|
|
6841
|
-
const t = this.getComponentContainer(), n = this.model.getOptions(), { groupIdentifier: s } = n, { groupMapsTo: a } = n.data, i = this.model.getBinnedStackedData(), r = this.services.cartesianScales.getMainXScale(), l = t.selectAll("g.bars").data(i, (d) =>
|
|
6864
|
+
const t = this.getComponentContainer(), n = this.model.getOptions(), { groupIdentifier: s } = n, { groupMapsTo: a } = n.data, i = this.model.getBinnedStackedData(), r = this.services.cartesianScales.getMainXScale(), l = t.selectAll("g.bars").data(i, (d) => de(d, `0.${a}`));
|
|
6842
6865
|
l.exit().attr("opacity", 0).remove(), l.enter().append("g").classed("bars", !0).attr("role", j.GROUP);
|
|
6843
6866
|
const c = t.selectAll("g.bars").selectAll("path.bar").data((d) => d);
|
|
6844
6867
|
c.exit().remove(), c.enter().append("path").merge(c).classed("bar", !0).attr(s, (d, p) => p).transition().call(
|
|
@@ -6855,7 +6878,7 @@ class Wh extends Y {
|
|
|
6855
6878
|
originalClassName: "bar"
|
|
6856
6879
|
})
|
|
6857
6880
|
).style("fill", (d) => this.model.getFillColor(d[a])).attr("d", (d) => {
|
|
6858
|
-
const p =
|
|
6881
|
+
const p = de(d, "data");
|
|
6859
6882
|
if (!p)
|
|
6860
6883
|
return;
|
|
6861
6884
|
const h = r(p.x1) - r(p.x0) - 1, u = this.services.cartesianScales.getDomainValue(p.x0), g = u + h, m = this.services.cartesianScales.getRangeValue(d[0]);
|
|
@@ -6871,13 +6894,13 @@ class Wh extends Y {
|
|
|
6871
6894
|
this.parent.selectAll("path.bar").on("mouseover", function(s, a) {
|
|
6872
6895
|
const i = x(this);
|
|
6873
6896
|
i.classed("hovered", !0);
|
|
6874
|
-
const r = parseFloat(
|
|
6897
|
+
const r = parseFloat(de(a, "data.x0")), l = parseFloat(de(a, "data.x1")), c = n.services.cartesianScales.getRangeAxisPosition(), d = n.services.cartesianScales.getScaleLabel(c);
|
|
6875
6898
|
n.services.events.dispatchEvent(f.Tooltip.SHOW, {
|
|
6876
6899
|
event: s,
|
|
6877
6900
|
hoveredElement: i,
|
|
6878
6901
|
items: [
|
|
6879
6902
|
{
|
|
6880
|
-
label:
|
|
6903
|
+
label: de(e, "bins.rangeLabel") || "Range",
|
|
6881
6904
|
value: `${r} – ${l}`
|
|
6882
6905
|
},
|
|
6883
6906
|
{
|
|
@@ -6890,7 +6913,7 @@ class Wh extends Y {
|
|
|
6890
6913
|
},
|
|
6891
6914
|
{
|
|
6892
6915
|
label: d,
|
|
6893
|
-
value:
|
|
6916
|
+
value: de(a, `data.${a[t]}`)
|
|
6894
6917
|
}
|
|
6895
6918
|
]
|
|
6896
6919
|
});
|
|
@@ -7148,18 +7171,18 @@ class Zh extends Y {
|
|
|
7148
7171
|
I >= 0 ? 0 : I,
|
|
7149
7172
|
ms(this.fullDataNormalized.map((C) => C[p]))
|
|
7150
7173
|
]).range([m, A]).nice(g), X = D.ticks(g), N = (C) => this.model.getFillColor(C), _ = li().angle((C) => L(C[d]) + Math.PI / 2).radius((C) => D(C[p])).curve(ci), w = this.uniqueKeys.map((C) => {
|
|
7151
|
-
const
|
|
7174
|
+
const k = this.getLabelDimensions(C).width, P = Oi(
|
|
7152
7175
|
L(C),
|
|
7153
7176
|
A
|
|
7154
7177
|
);
|
|
7155
|
-
return
|
|
7178
|
+
return k + P;
|
|
7156
7179
|
}), V = {
|
|
7157
7180
|
x: ms(w) + h,
|
|
7158
7181
|
y: s / 2
|
|
7159
|
-
}, ve = S.appendOrSelect(t, "g.y-axes").attr("role", j.GROUP).selectAll("path").data(X, (C) => C), K = (C) => this.uniqueKeys.map((
|
|
7182
|
+
}, ve = S.appendOrSelect(t, "g.y-axes").attr("role", j.GROUP).selectAll("path").data(X, (C) => C), K = (C) => this.uniqueKeys.map((k) => ({ [d]: k, [p]: C }));
|
|
7160
7183
|
ve.join(
|
|
7161
7184
|
(C) => C.append("path").attr("opacity", 0).attr("transform", `translate(${V.x}, ${V.y})`).attr("fill", "none").call(
|
|
7162
|
-
(
|
|
7185
|
+
(k) => k.transition().call(
|
|
7163
7186
|
(P) => this.services.transitions.setupTransition({
|
|
7164
7187
|
transition: P,
|
|
7165
7188
|
name: "radar_y_axes_enter",
|
|
@@ -7168,7 +7191,7 @@ class Zh extends Y {
|
|
|
7168
7191
|
).attr("opacity", 1).attr("d", (P) => _(K(P)))
|
|
7169
7192
|
),
|
|
7170
7193
|
(C) => C.call(
|
|
7171
|
-
(
|
|
7194
|
+
(k) => k.transition().call(
|
|
7172
7195
|
(P) => this.services.transitions.setupTransition({
|
|
7173
7196
|
transition: P,
|
|
7174
7197
|
name: "radar_y_axes_update",
|
|
@@ -7177,7 +7200,7 @@ class Zh extends Y {
|
|
|
7177
7200
|
).attr("opacity", 1).attr("transform", `translate(${V.x}, ${V.y})`).attr("d", (P) => _(K(P)))
|
|
7178
7201
|
),
|
|
7179
7202
|
(C) => C.call(
|
|
7180
|
-
(
|
|
7203
|
+
(k) => k.transition().call(
|
|
7181
7204
|
(P) => this.services.transitions.setupTransition({
|
|
7182
7205
|
transition: P,
|
|
7183
7206
|
name: "radar_y_axes_exit",
|
|
@@ -7186,26 +7209,26 @@ class Zh extends Y {
|
|
|
7186
7209
|
).attr("d", (P) => _(K(P))).attr("opacity", 0).remove()
|
|
7187
7210
|
)
|
|
7188
7211
|
), S.appendOrSelect(t, "g.x-axes").attr("role", j.GROUP).selectAll("line").data(this.uniqueKeys, (C) => C).join(
|
|
7189
|
-
(C) => C.append("line").attr("opacity", 0).attr("class", (
|
|
7190
|
-
(
|
|
7212
|
+
(C) => C.append("line").attr("opacity", 0).attr("class", (k) => `x-axis-${st(k)}`).attr("stroke-dasharray", "0").attr("x1", (k) => oe(L(k), 0, V).x).attr("y1", (k) => oe(L(k), 0, V).y).attr("x2", (k) => oe(L(k), 0, V).x).attr("y2", (k) => oe(L(k), 0, V).y).call(
|
|
7213
|
+
(k) => k.transition().call(
|
|
7191
7214
|
(P) => this.services.transitions.setupTransition({
|
|
7192
7215
|
transition: P,
|
|
7193
7216
|
name: "radar_x_axes_enter",
|
|
7194
7217
|
animate: e
|
|
7195
7218
|
})
|
|
7196
|
-
).attr("opacity", 1).attr("x1", (P) =>
|
|
7219
|
+
).attr("opacity", 1).attr("x1", (P) => oe(L(P), D.range()[0], V).x).attr("y1", (P) => oe(L(P), D.range()[0], V).y).attr("x2", (P) => oe(L(P), D.range()[1], V).x).attr("y2", (P) => oe(L(P), D.range()[1], V).y)
|
|
7197
7220
|
),
|
|
7198
7221
|
(C) => C.call(
|
|
7199
|
-
(
|
|
7222
|
+
(k) => k.transition().call(
|
|
7200
7223
|
(P) => this.services.transitions.setupTransition({
|
|
7201
7224
|
transition: P,
|
|
7202
7225
|
name: "radar_x_axes_update",
|
|
7203
7226
|
animate: e
|
|
7204
7227
|
})
|
|
7205
|
-
).attr("opacity", 1).attr("x1", (P) =>
|
|
7228
|
+
).attr("opacity", 1).attr("x1", (P) => oe(L(P), D.range()[0], V).x).attr("y1", (P) => oe(L(P), D.range()[0], V).y).attr("x2", (P) => oe(L(P), D.range()[1], V).x).attr("y2", (P) => oe(L(P), D.range()[1], V).y)
|
|
7206
7229
|
),
|
|
7207
7230
|
(C) => C.call(
|
|
7208
|
-
(
|
|
7231
|
+
(k) => k.transition().call(
|
|
7209
7232
|
(P) => this.services.transitions.setupTransition({
|
|
7210
7233
|
transition: P,
|
|
7211
7234
|
name: "radar_x_axes_exit",
|
|
@@ -7214,17 +7237,17 @@ class Zh extends Y {
|
|
|
7214
7237
|
).attr("opacity", 0).remove()
|
|
7215
7238
|
)
|
|
7216
7239
|
), S.appendOrSelect(t, "g.x-labels").attr("role", j.GROUP).selectAll("text").data(this.uniqueKeys).join(
|
|
7217
|
-
(C) => C.append("text").text((
|
|
7240
|
+
(C) => C.append("text").text((k) => k).attr("opacity", 0).attr(
|
|
7218
7241
|
"x",
|
|
7219
|
-
(
|
|
7242
|
+
(k) => oe(L(k), D.range()[1] + h, V).x
|
|
7220
7243
|
).attr(
|
|
7221
7244
|
"y",
|
|
7222
|
-
(
|
|
7223
|
-
).style("text-anchor", (
|
|
7245
|
+
(k) => oe(L(k), D.range()[1] + h, V).y
|
|
7246
|
+
).style("text-anchor", (k) => vs(L(k)).textAnchor).style(
|
|
7224
7247
|
"dominant-baseline",
|
|
7225
|
-
(
|
|
7248
|
+
(k) => vs(L(k)).dominantBaseline
|
|
7226
7249
|
).call(
|
|
7227
|
-
(
|
|
7250
|
+
(k) => k.transition().call(
|
|
7228
7251
|
(P) => this.services.transitions.setupTransition({
|
|
7229
7252
|
transition: P,
|
|
7230
7253
|
name: "radar_x_labels_enter",
|
|
@@ -7233,7 +7256,7 @@ class Zh extends Y {
|
|
|
7233
7256
|
).attr("opacity", 1)
|
|
7234
7257
|
),
|
|
7235
7258
|
(C) => C.call(
|
|
7236
|
-
(
|
|
7259
|
+
(k) => k.transition().call(
|
|
7237
7260
|
(P) => this.services.transitions.setupTransition({
|
|
7238
7261
|
transition: P,
|
|
7239
7262
|
name: "radar_x_labels_update",
|
|
@@ -7241,17 +7264,17 @@ class Zh extends Y {
|
|
|
7241
7264
|
})
|
|
7242
7265
|
).attr("opacity", 1).attr(
|
|
7243
7266
|
"x",
|
|
7244
|
-
(P) =>
|
|
7267
|
+
(P) => oe(L(P), D.range()[1] + h, V).x
|
|
7245
7268
|
).attr(
|
|
7246
7269
|
"y",
|
|
7247
|
-
(P) =>
|
|
7270
|
+
(P) => oe(L(P), D.range()[1] + h, V).y
|
|
7248
7271
|
).end().finally(() => {
|
|
7249
7272
|
const P = y(r, "radar", "alignment"), Ce = this.getAlignmentXOffset(P, t, this.getParent());
|
|
7250
7273
|
t.attr("x", Ce);
|
|
7251
7274
|
})
|
|
7252
7275
|
),
|
|
7253
7276
|
(C) => C.call(
|
|
7254
|
-
(
|
|
7277
|
+
(k) => k.transition().call(
|
|
7255
7278
|
(P) => this.services.transitions.setupTransition({
|
|
7256
7279
|
transition: P,
|
|
7257
7280
|
name: "radar_x_labels_exit",
|
|
@@ -7262,16 +7285,16 @@ class Zh extends Y {
|
|
|
7262
7285
|
), S.appendOrSelect(t, "g.blobs").attr("role", j.GROUP).selectAll("path").data(this.groupedDataNormalized, (C) => C.name).join(
|
|
7263
7286
|
(C) => C.append("path").attr(
|
|
7264
7287
|
"class",
|
|
7265
|
-
(
|
|
7288
|
+
(k) => this.model.getColorClassName({
|
|
7266
7289
|
classNameTypes: [F.FILL, F.STROKE],
|
|
7267
|
-
dataGroupName:
|
|
7290
|
+
dataGroupName: k.name,
|
|
7268
7291
|
originalClassName: "blob"
|
|
7269
7292
|
})
|
|
7270
|
-
).attr("role", j.GRAPHICS_SYMBOL).attr("aria-label", (
|
|
7293
|
+
).attr("role", j.GRAPHICS_SYMBOL).attr("aria-label", (k) => k.name).attr("opacity", 0).attr(
|
|
7271
7294
|
"transform",
|
|
7272
7295
|
e ? () => `translate(${V.x}, ${V.y}) scale(${1 + Math.random() * 0.35})` : `translate(${V.x}, ${V.y})`
|
|
7273
|
-
).style("fill", (
|
|
7274
|
-
const P =
|
|
7296
|
+
).style("fill", (k) => N(k.name)).style("fill-opacity", Fe.opacity.selected).style("stroke", (k) => N(k.name)).call((k) => {
|
|
7297
|
+
const P = k.transition().call(
|
|
7275
7298
|
(Ce) => this.services.transitions.setupTransition({
|
|
7276
7299
|
transition: Ce,
|
|
7277
7300
|
name: "radar_blobs_enter",
|
|
@@ -7282,13 +7305,13 @@ class Zh extends Y {
|
|
|
7282
7305
|
}),
|
|
7283
7306
|
(C) => (C.attr(
|
|
7284
7307
|
"class",
|
|
7285
|
-
(
|
|
7308
|
+
(k) => this.model.getColorClassName({
|
|
7286
7309
|
classNameTypes: [F.FILL, F.STROKE],
|
|
7287
|
-
dataGroupName:
|
|
7310
|
+
dataGroupName: k.name,
|
|
7288
7311
|
originalClassName: "blob"
|
|
7289
7312
|
})
|
|
7290
|
-
).style("fill", (
|
|
7291
|
-
(
|
|
7313
|
+
).style("fill", (k) => N(k.name)).style("stroke", (k) => N(k.name)), C.call(
|
|
7314
|
+
(k) => k.transition().call(
|
|
7292
7315
|
(P) => this.services.transitions.setupTransition({
|
|
7293
7316
|
transition: P,
|
|
7294
7317
|
name: "radar_blobs_update",
|
|
@@ -7296,8 +7319,8 @@ class Zh extends Y {
|
|
|
7296
7319
|
})
|
|
7297
7320
|
).attr("opacity", 1).attr("transform", `translate(${V.x}, ${V.y})`).attr("d", (P) => _(P.data))
|
|
7298
7321
|
), C),
|
|
7299
|
-
(C) => C.call((
|
|
7300
|
-
const P =
|
|
7322
|
+
(C) => C.call((k) => {
|
|
7323
|
+
const P = k.transition().call(
|
|
7301
7324
|
(Ce) => this.services.transitions.setupTransition({
|
|
7302
7325
|
transition: Ce,
|
|
7303
7326
|
name: "radar_blobs_exit",
|
|
@@ -7310,7 +7333,7 @@ class Zh extends Y {
|
|
|
7310
7333
|
), P.attr("opacity", 0).remove();
|
|
7311
7334
|
})
|
|
7312
7335
|
), S.appendOrSelect(t, "g.dots").attr("role", j.GROUP).selectAll("circle").data(this.fullDataNormalized.filter((C) => y(C, p) !== null)).join(
|
|
7313
|
-
(C) => C.append("circle").attr("role", j.GRAPHICS_SYMBOL).attr("aria-label", (
|
|
7336
|
+
(C) => C.append("circle").attr("role", j.GRAPHICS_SYMBOL).attr("aria-label", (k) => k[c]),
|
|
7314
7337
|
(C) => C,
|
|
7315
7338
|
(C) => C.remove()
|
|
7316
7339
|
).attr(
|
|
@@ -7320,16 +7343,16 @@ class Zh extends Y {
|
|
|
7320
7343
|
dataGroupName: C[l],
|
|
7321
7344
|
originalClassName: st(C[d])
|
|
7322
7345
|
})
|
|
7323
|
-
).attr("cx", (C) =>
|
|
7346
|
+
).attr("cx", (C) => oe(L(C[d]), D(C[p]), V).x).attr("cy", (C) => oe(L(C[d]), D(C[p]), V).y).attr("r", 0).attr("opacity", 0).style("fill", (C) => N(C[l])), S.appendOrSelect(t, "g.x-axes-rect").attr("role", j.GROUP).selectAll("rect").data(this.uniqueKeys).join(
|
|
7324
7347
|
(C) => C.append("rect"),
|
|
7325
7348
|
(C) => C,
|
|
7326
7349
|
(C) => C.remove()
|
|
7327
7350
|
).attr("x", V.x).attr("y", V.y - E / 2).attr("width", D.range()[1]).attr("height", E).style("fill", "red").style("fill-opacity", 0).attr("transform", (C) => `rotate(${xi(L(C))}, ${V.x}, ${V.y})`), S.appendOrSelect(t, "g.y-labels").attr("role", j.GROUP).selectAll("text").data(Wt(X)).join(
|
|
7328
|
-
(C) => C.append("text").attr("opacity", 0).text((
|
|
7351
|
+
(C) => C.append("text").attr("opacity", 0).text((k) => k).attr(
|
|
7329
7352
|
"x",
|
|
7330
|
-
(
|
|
7331
|
-
).attr("y", (
|
|
7332
|
-
(
|
|
7353
|
+
(k) => oe(-Math.PI / 2, D(k), V).x + u
|
|
7354
|
+
).attr("y", (k) => oe(-Math.PI / 2, D(k), V).y).style("text-anchor", "start").style("dominant-baseline", "middle").call(
|
|
7355
|
+
(k) => k.transition().call(
|
|
7333
7356
|
(P) => this.services.transitions.setupTransition({
|
|
7334
7357
|
transition: P,
|
|
7335
7358
|
name: "radar_y_labels_enter",
|
|
@@ -7338,7 +7361,7 @@ class Zh extends Y {
|
|
|
7338
7361
|
).attr("opacity", 1)
|
|
7339
7362
|
),
|
|
7340
7363
|
(C) => C.call(
|
|
7341
|
-
(
|
|
7364
|
+
(k) => k.transition().call(
|
|
7342
7365
|
(P) => this.services.transitions.setupTransition({
|
|
7343
7366
|
transition: P,
|
|
7344
7367
|
name: "radar_y_labels_update",
|
|
@@ -7346,11 +7369,11 @@ class Zh extends Y {
|
|
|
7346
7369
|
})
|
|
7347
7370
|
).text((P) => P).attr("opacity", 1).attr(
|
|
7348
7371
|
"x",
|
|
7349
|
-
(P) =>
|
|
7350
|
-
).attr("y", (P) =>
|
|
7372
|
+
(P) => oe(-Math.PI / 2, D(P), V).x + u
|
|
7373
|
+
).attr("y", (P) => oe(-Math.PI / 2, D(P), V).y)
|
|
7351
7374
|
),
|
|
7352
7375
|
(C) => C.call(
|
|
7353
|
-
(
|
|
7376
|
+
(k) => k.transition().call(
|
|
7354
7377
|
(P) => this.services.transitions.setupTransition({
|
|
7355
7378
|
transition: P,
|
|
7356
7379
|
name: "radar_y_labels_exit",
|
|
@@ -7874,11 +7897,11 @@ class eu extends Y {
|
|
|
7874
7897
|
m(h);
|
|
7875
7898
|
}
|
|
7876
7899
|
}
|
|
7877
|
-
var wl = "#000000", Cl = "#ffffff", _l = "#fcf4d6", Il = "#fddc69",
|
|
7900
|
+
var wl = "#000000", Cl = "#ffffff", _l = "#fcf4d6", Il = "#fddc69", Rl = "#f1c21b", kl = "#d2a106", Dl = "#b28600", Nl = "#8e6a00", Pl = "#684e00", Vl = "#483700", Bl = "#302400", Gl = "#1c1500", Hl = {
|
|
7878
7901
|
10: _l,
|
|
7879
7902
|
20: Il,
|
|
7880
|
-
30:
|
|
7881
|
-
40:
|
|
7903
|
+
30: Rl,
|
|
7904
|
+
40: kl,
|
|
7882
7905
|
50: Dl,
|
|
7883
7906
|
60: Nl,
|
|
7884
7907
|
70: Pl,
|
|
@@ -7929,10 +7952,10 @@ var wl = "#000000", Cl = "#ffffff", _l = "#fcf4d6", Il = "#fddc69", kl = "#f1c21
|
|
|
7929
7952
|
80: Mc,
|
|
7930
7953
|
90: wc,
|
|
7931
7954
|
100: Cc
|
|
7932
|
-
}, Ic = "#edf5ff",
|
|
7955
|
+
}, Ic = "#edf5ff", Rc = "#d0e2ff", kc = "#a6c8ff", Dc = "#78a9ff", Nc = "#4589ff", Pc = "#0f62fe", Vc = "#0043ce", Bc = "#002d9c", Gc = "#001d6c", Hc = "#001141", $c = {
|
|
7933
7956
|
10: Ic,
|
|
7934
|
-
20:
|
|
7935
|
-
30:
|
|
7957
|
+
20: Rc,
|
|
7958
|
+
30: kc,
|
|
7936
7959
|
40: Dc,
|
|
7937
7960
|
50: Nc,
|
|
7938
7961
|
60: Pc,
|
|
@@ -7984,9 +8007,9 @@ var wl = "#000000", Cl = "#ffffff", _l = "#fcf4d6", Il = "#fddc69", kl = "#f1c21
|
|
|
7984
8007
|
80: wd,
|
|
7985
8008
|
90: Cd,
|
|
7986
8009
|
100: _d
|
|
7987
|
-
},
|
|
7988
|
-
10:
|
|
7989
|
-
20:
|
|
8010
|
+
}, Rd = "#f4f4f4", kd = "#e0e0e0", Dd = "#c6c6c6", Nd = "#a8a8a8", Pd = "#8d8d8d", Vd = "#6f6f6f", Bd = "#525252", Gd = "#393939", Hd = "#262626", $d = "#161616", Ud = {
|
|
8011
|
+
10: Rd,
|
|
8012
|
+
20: kd,
|
|
7990
8013
|
30: Dd,
|
|
7991
8014
|
40: Nd,
|
|
7992
8015
|
50: Pd,
|
|
@@ -8259,7 +8282,7 @@ class nu extends Y {
|
|
|
8259
8282
|
});
|
|
8260
8283
|
if (d === 0 || p === 0)
|
|
8261
8284
|
return;
|
|
8262
|
-
const h =
|
|
8285
|
+
const h = Ri().size([d, p]).words(
|
|
8263
8286
|
s.map(function(g) {
|
|
8264
8287
|
const m = g[r];
|
|
8265
8288
|
if (typeof g[r] != "number")
|
|
@@ -8533,14 +8556,14 @@ export {
|
|
|
8533
8556
|
eu as a3,
|
|
8534
8557
|
tu as a4,
|
|
8535
8558
|
nu as a5,
|
|
8536
|
-
|
|
8559
|
+
Rs as a6,
|
|
8537
8560
|
hh as a7,
|
|
8538
8561
|
Y as a8,
|
|
8539
8562
|
Or as a9,
|
|
8540
8563
|
Oh as b,
|
|
8541
8564
|
gh as c,
|
|
8542
|
-
|
|
8543
|
-
|
|
8565
|
+
Rh as d,
|
|
8566
|
+
kh as e,
|
|
8544
8567
|
Ih as f,
|
|
8545
8568
|
_h as g,
|
|
8546
8569
|
Ch as h,
|
|
@@ -8563,4 +8586,4 @@ export {
|
|
|
8563
8586
|
xh as y,
|
|
8564
8587
|
Lh as z
|
|
8565
8588
|
};
|
|
8566
|
-
//# sourceMappingURL=choropleth-
|
|
8589
|
+
//# sourceMappingURL=choropleth-ctjqFBTr.mjs.map
|