northdata-viz 1.443.11 → 1.445.11
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/package.json +1 -1
- package/viz.esm.js +20 -14
- package/viz.esm.js.map +1 -1
- package/viz.min.js +1 -1
- package/viz.min.js.map +1 -1
package/package.json
CHANGED
package/viz.esm.js
CHANGED
|
@@ -2612,6 +2612,9 @@ var Va = Ba(Aa, {
|
|
|
2612
2612
|
if (typeof t == "function") return t();
|
|
2613
2613
|
if (typeof t == "string") return t;
|
|
2614
2614
|
}
|
|
2615
|
+
booleanValue(e) {
|
|
2616
|
+
return this.stringValue(e)?.toLowerCase() === "true";
|
|
2617
|
+
}
|
|
2615
2618
|
nodeValue(e) {
|
|
2616
2619
|
let t = this.options[e];
|
|
2617
2620
|
if (typeof t == "object") return t;
|
|
@@ -3985,7 +3988,7 @@ var Sc = function(e, t) {
|
|
|
3985
3988
|
let e = a.selectAll(".legends");
|
|
3986
3989
|
e.empty() && (e = a.append("div").attr("class", "legends")), s.empty() && (s = e.append("span").attr("class", "legend1")), c.empty() && (c = e.append("span").attr("class", "legend2")), l.empty() && (l = e.append("span").attr("class", "legend3"));
|
|
3987
3990
|
}
|
|
3988
|
-
l.text(Ra("As of: ", "Stand: ", "Date de ") + r.date);
|
|
3991
|
+
e.booleanValue("hideLegend1") && s.classed("hidden", !0), e.booleanValue("hideLegend2") && c.classed("hidden", !0), e.booleanValue("hideLegend3") && l.classed("hidden", !0), l.text(Ra("As of: ", "Stand: ", "Date de ") + r.date);
|
|
3989
3992
|
let u = e.i18n().createNumberFormatter(t.numberFormat, ",.3r"), d = null, f = function(e, t) {
|
|
3990
3993
|
t.children || (!d || d == t) && (o.classed("highlighting", !0), _n(".highlighted").classed("highlighted", !1), L(e).classed("highlighted", !0), g(t));
|
|
3991
3994
|
}, p = function() {
|
|
@@ -4028,17 +4031,19 @@ var Sc = function(e, t) {
|
|
|
4028
4031
|
}, wc = function(e, t) {
|
|
4029
4032
|
let n = t && t.financials && t.financials.filter((e) => e.items.length > 0), r = e.isReverseChronology();
|
|
4030
4033
|
if (n && n.length > 0 && n[0].items.length > 0) {
|
|
4031
|
-
let a =
|
|
4034
|
+
let a = document.createElement("table"), o = L(a).attr("class", "ui bizq very compact celled small unstackable striped selectable first stuck table"), s = o.append("thead").append("tr"), c = o.append("tbody"), l = o.append("tfoot").append("tr");
|
|
4032
4035
|
var i = {};
|
|
4033
4036
|
for (let e of n) {
|
|
4034
4037
|
e.itemsById = {};
|
|
4035
4038
|
for (let t of e.items) e.itemsById[t.id] = t, i[t.id] = t;
|
|
4036
4039
|
}
|
|
4037
|
-
let
|
|
4038
|
-
r && n.reverse()
|
|
4039
|
-
|
|
4040
|
+
let u = n[n.length - 1];
|
|
4041
|
+
r && n.reverse();
|
|
4042
|
+
let d = e.stringValue("title"), f = s.append("th").attr("class", "first");
|
|
4043
|
+
e.booleanValue("hideTitleCell") || f.text(d), f.append("a").attr("href", t.csvUrl).attr("download", "download").attr("title", "CSV/Excel Download").classed("screen-only", !0).append("i").attr("class", "download icon");
|
|
4044
|
+
for (let e of n) s.append("th").text(e.formattedDate);
|
|
4040
4045
|
for (let t in i) {
|
|
4041
|
-
let r =
|
|
4046
|
+
let r = c.append("tr").attr("class", "active-on-hover"), a = i[t];
|
|
4042
4047
|
r.append("td").text(a.name);
|
|
4043
4048
|
for (let i of n) {
|
|
4044
4049
|
let n = i.itemsById[t], a = r.append("td");
|
|
@@ -4048,32 +4053,33 @@ var Sc = function(e, t) {
|
|
|
4048
4053
|
} else a.append("span").text("N/A");
|
|
4049
4054
|
}
|
|
4050
4055
|
}
|
|
4051
|
-
if (
|
|
4052
|
-
if (
|
|
4053
|
-
let t =
|
|
4056
|
+
if (u.source) {
|
|
4057
|
+
if (u.source.auditorName) {
|
|
4058
|
+
let t = c.append("tr").attr("class", "active-on-hover");
|
|
4054
4059
|
t.append("td").text(e.trilingual("Auditor", "Prüfer", "Auditeur"));
|
|
4055
4060
|
for (let e of n) {
|
|
4056
4061
|
let n = e.source && e.source.auditorName;
|
|
4057
4062
|
t.append("td").append("span").attr("class", "auditor value").text(n || "N/A");
|
|
4058
4063
|
}
|
|
4059
4064
|
}
|
|
4060
|
-
if (
|
|
4061
|
-
let t =
|
|
4065
|
+
if (u.source && u.source.publicationDate) {
|
|
4066
|
+
let t = c.append("tr").attr("class", "active-on-hover");
|
|
4062
4067
|
t.append("td").text(e.trilingual("Publication date", "Veröffentlichungsdatum", "Date de publication"));
|
|
4063
4068
|
for (let r of n) {
|
|
4064
4069
|
let n = r.source && r.source.publicationDate;
|
|
4065
4070
|
t.append("td").append("span").attr("class", "date value").text(n ? e.i18n().dateFormatter(new Date(n)) : "N/A");
|
|
4066
4071
|
}
|
|
4067
4072
|
}
|
|
4068
|
-
|
|
4073
|
+
l.append("th").text(e.trilingual("Source", "Quelle", "Source"));
|
|
4069
4074
|
let t = e.handlerValue("sourceClick");
|
|
4070
4075
|
for (let e of n) {
|
|
4071
|
-
let n =
|
|
4076
|
+
let n = l.append("th");
|
|
4072
4077
|
n.html(e.note.html), t && n.selectAll("a").attr("href", "javascript:void(0);").on("click", function(n) {
|
|
4073
4078
|
n.preventDefault(), t(e.source);
|
|
4074
4079
|
});
|
|
4075
4080
|
}
|
|
4076
4081
|
}
|
|
4082
|
+
e.showItem(d, a);
|
|
4077
4083
|
} else throw Error("no data available");
|
|
4078
4084
|
return d;
|
|
4079
4085
|
}, Tc = function(e, t) {
|
|
@@ -6065,7 +6071,7 @@ var Au = function(e, t) {
|
|
|
6065
6071
|
});
|
|
6066
6072
|
}
|
|
6067
6073
|
}
|
|
6068
|
-
}), f.setAttribute("data-item", n.info.item), e.showItem(
|
|
6074
|
+
}), f.setAttribute("data-item", n.info.item), e.showItem(n.info.title, f);
|
|
6069
6075
|
}
|
|
6070
6076
|
let n = "expanded", r = "closed";
|
|
6071
6077
|
function i(e) {
|