northdata-viz 1.422.11 → 1.424.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "northdata-viz",
3
- "version": "1.422.11",
3
+ "version": "1.424.11",
4
4
  "description": "North Data Widget API",
5
5
  "main": "viz.min.js",
6
6
  "module": "viz.esm.js",
package/viz.esm.js CHANGED
@@ -980,7 +980,7 @@ const jr = /* @__PURE__ */ (function() {
980
980
  o.immediate ? r([u]) : (t.push(u), window.setTimeout(i));
981
981
  }
982
982
  function n(o, s, l) {
983
- const c = (ft.options.detectDataDomain ? $a() : void 0) || ft.options.dataDomain, h = (window.dataDomain || c) + "/data.json", p = {
983
+ const c = (ht.options.detectDataDomain ? $a() : void 0) || ht.options.dataDomain, h = (window.dataDomain || c) + "/data.json", p = {
984
984
  "Content-Type": "application/json; charset=UTF-8",
985
985
  ...o && { "X-Api-Key": o }
986
986
  };
@@ -1012,7 +1012,7 @@ const jr = /* @__PURE__ */ (function() {
1012
1012
  const u = {
1013
1013
  options: s,
1014
1014
  origin: document.location.hostname,
1015
- v: ft.version
1015
+ v: ht.version
1016
1016
  };
1017
1017
  n(l, u, function(c, h) {
1018
1018
  if (c)
@@ -1070,7 +1070,7 @@ Se.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ?
1070
1070
  e.setTime(+e + n * t);
1071
1071
  }, (e, n) => (n - e) / t) : Se);
1072
1072
  Se.range;
1073
- const bt = 1e3, ht = bt * 60, _t = ht * 60, kt = _t * 24, Nn = kt * 7, Qn = kt * 30, en = kt * 365, Dt = at((t) => {
1073
+ const bt = 1e3, ft = bt * 60, _t = ft * 60, kt = _t * 24, Nn = kt * 7, Qn = kt * 30, en = kt * 365, Dt = at((t) => {
1074
1074
  t.setTime(t - t.getMilliseconds());
1075
1075
  }, (t, e) => {
1076
1076
  t.setTime(+t + e * bt);
@@ -1079,17 +1079,17 @@ Dt.range;
1079
1079
  const qe = at((t) => {
1080
1080
  t.setTime(t - t.getMilliseconds() - t.getSeconds() * bt);
1081
1081
  }, (t, e) => {
1082
- t.setTime(+t + e * ht);
1083
- }, (t, e) => (e - t) / ht, (t) => t.getMinutes());
1082
+ t.setTime(+t + e * ft);
1083
+ }, (t, e) => (e - t) / ft, (t) => t.getMinutes());
1084
1084
  qe.range;
1085
1085
  const Fa = at((t) => {
1086
1086
  t.setUTCSeconds(0, 0);
1087
1087
  }, (t, e) => {
1088
- t.setTime(+t + e * ht);
1089
- }, (t, e) => (e - t) / ht, (t) => t.getUTCMinutes());
1088
+ t.setTime(+t + e * ft);
1089
+ }, (t, e) => (e - t) / ft, (t) => t.getUTCMinutes());
1090
1090
  Fa.range;
1091
1091
  const ze = at((t) => {
1092
- t.setTime(t - t.getMilliseconds() - t.getSeconds() * bt - t.getMinutes() * ht);
1092
+ t.setTime(t - t.getMilliseconds() - t.getSeconds() * bt - t.getMinutes() * ft);
1093
1093
  }, (t, e) => {
1094
1094
  t.setTime(+t + e * _t);
1095
1095
  }, (t, e) => (e - t) / _t, (t) => t.getHours());
@@ -1103,7 +1103,7 @@ Ha.range;
1103
1103
  const Xt = at(
1104
1104
  (t) => t.setHours(0, 0, 0, 0),
1105
1105
  (t, e) => t.setDate(t.getDate() + e),
1106
- (t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * ht) / kt,
1106
+ (t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * ft) / kt,
1107
1107
  (t) => t.getDate() - 1
1108
1108
  );
1109
1109
  Xt.range;
@@ -1124,7 +1124,7 @@ function Lt(t) {
1124
1124
  e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0);
1125
1125
  }, (e, n) => {
1126
1126
  e.setDate(e.getDate() + n * 7);
1127
- }, (e, n) => (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * ht) / Nn);
1127
+ }, (e, n) => (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * ft) / Nn);
1128
1128
  }
1129
1129
  const de = Lt(0), De = Lt(1), Ia = Lt(2), Ua = Lt(3), Wt = Lt(4), Va = Lt(5), Wa = Lt(6);
1130
1130
  de.range;
@@ -1333,10 +1333,10 @@ function ss(t, e, n, r, i, o) {
1333
1333
  [Dt, 5, 5 * bt],
1334
1334
  [Dt, 15, 15 * bt],
1335
1335
  [Dt, 30, 30 * bt],
1336
- [o, 1, ht],
1337
- [o, 5, 5 * ht],
1338
- [o, 15, 15 * ht],
1339
- [o, 30, 30 * ht],
1336
+ [o, 1, ft],
1337
+ [o, 5, 5 * ft],
1338
+ [o, 15, 15 * ft],
1339
+ [o, 30, 30 * ft],
1340
1340
  [i, 1, _t],
1341
1341
  [i, 3, 3 * _t],
1342
1342
  [i, 6, 6 * _t],
@@ -2129,7 +2129,7 @@ let pc = class {
2129
2129
  }
2130
2130
  fail(e) {
2131
2131
  const n = this.handlerValue("error");
2132
- n ? n(e) : ft.log("error", e);
2132
+ n ? n(e) : ht.log("error", e);
2133
2133
  }
2134
2134
  load(e) {
2135
2135
  this.data = this.data || e;
@@ -3468,7 +3468,7 @@ function zl(t, e, n) {
3468
3468
  const d = this, g = d.getAttribute("data-root") == "true", m = t.getLinkifier();
3469
3469
  if (!g) {
3470
3470
  const v = d.getAttribute("data-type") || "", b = d.getAttribute("data-query") || "";
3471
- ft.debug(d.getAttribute("data-url") + " -> " + m(d)), z(d).attr("xlink:href", m(d)).attr("data-clickable", t.getClickHandler(v) ? "true" : "false").on("click", function(y) {
3471
+ z(d).attr("xlink:href", m(d)).attr("data-clickable", t.getClickHandler(v) ? "true" : "false").on("click", function(y) {
3472
3472
  t.invokeClickHandler(b, v) && y.preventDefault();
3473
3473
  });
3474
3474
  }
@@ -3723,7 +3723,7 @@ const Ti = function(t, e) {
3723
3723
  for (let y of e.nodes)
3724
3724
  y.root && (i = y), y.warning && (l = !0), o[y.id] = y;
3725
3725
  for (let y of e.links)
3726
- y.source = o[y.source], y.target = o[y.target], (!y.source || !y.target) && ft.log("error", "broken link: ", y);
3726
+ y.source = o[y.source], y.target = o[y.target], (!y.source || !y.target) && ht.log("error", "broken link: ", y);
3727
3727
  const u = z(r).append("svg").attr("width", "100%").attr("height", "100%").attr("aria-label", ce("Network", "Netzwerk", "Réseau")), c = u.append("g").attr("class", "nodes").selectAll(".link").data(e.links), h = u.append("g").attr("class", "legend");
3728
3728
  n || (h.append("line").attr("data-old", !1), h.append("line").attr("data-old", !0)), l && h.append("line").attr("data-warn", !0), h.append("text").attr("data-old", !1).text(t.trilingual("currently", "aktuell", "actuel")), h.append("text").attr("data-old", !0).text(t.trilingual("previously", "vormals", "auparavant")), l && h.append("text").attr("data-warn", !0).text(
3729
3729
  t.trilingual(
@@ -5455,16 +5455,16 @@ const wh = function(t, e) {
5455
5455
  "class",
5456
5456
  "ui bizq very compact celled small unstackable striped table"
5457
5457
  ), o = i.append("tbody");
5458
- ft.debug("data", e);
5458
+ ht.debug("data", e);
5459
5459
  for (const s of ["current", "former"]) {
5460
5460
  s == "former" && o.append("tr").append("td").attr("class", "first").attr("colspan", 2).text("Vormals");
5461
5461
  const l = e.current;
5462
5462
  for (const u of l) {
5463
- ft.debug("group", u);
5463
+ ht.debug("group", u);
5464
5464
  const c = u.name, h = u.entries;
5465
5465
  o.append("tr").append("td").attr("class", "first").attr("colspan", 2).text(c);
5466
5466
  for (const p of h) {
5467
- ft.debug("entry", p);
5467
+ ht.debug("entry", p);
5468
5468
  const a = o.append("tr"), f = p.person, d = a.append("td").append("span").text(f.name).attr("class", "person");
5469
5469
  for (const m in f.query)
5470
5470
  d.attr(m, f.query[m]);
@@ -5497,14 +5497,14 @@ const kh = function(t, e) {
5497
5497
  const r = new XMLHttpRequest();
5498
5498
  r.open("POST", "/_api/shop/v1/products"), r.setRequestHeader("Content-Type", "application/json");
5499
5499
  function i(o) {
5500
- ft.log("error", "cannot list pubs", o);
5500
+ ht.log("error", "cannot list pubs", o);
5501
5501
  }
5502
5502
  return r.onerror = function(o) {
5503
5503
  cn(!1), i(o);
5504
5504
  }, r.onload = function() {
5505
- cn(!1), ft.debug(r.status), r.status >= 400 && i(r.responseText || r.statusText), ft.debug("ok", r.responseText);
5505
+ cn(!1), ht.debug(r.status), r.status >= 400 && i(r.responseText || r.statusText), ht.debug("ok", r.responseText);
5506
5506
  const o = JSON.parse(r.responseText);
5507
- ft.debug("data", o);
5507
+ ht.debug("data", o);
5508
5508
  }, r.send(JSON.stringify(t.options)), !1;
5509
5509
  };
5510
5510
  return hn("click", t.container, "*", n), Ct;
@@ -5822,7 +5822,7 @@ var jt;
5822
5822
  searchResults: Th
5823
5823
  });
5824
5824
  })(jt || (jt = {}));
5825
- const ft = jt, Nh = jt.Widget, Eh = jt.initialize, Ph = jt.version;
5825
+ const ht = jt, Nh = jt.Widget, Eh = jt.initialize, Ph = jt.version;
5826
5826
  export {
5827
5827
  Nh as Widget,
5828
5828
  Eh as initialize,