scb-wc-test 0.1.310 → 0.1.312
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/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +5 -5
- package/mvc/components/scb-viz/scb-viz.js +53 -60
- package/package.json +2 -2
- package/scb-horizontal-scroller/scb-horizontal-scroller.d.ts +1 -0
- package/scb-horizontal-scroller/scb-horizontal-scroller.js +9 -4
- package/scb-viz/scb-viz.d.ts +2 -0
- package/scb-viz/scb-viz.js +447 -440
- package/scb-wc-test.bundle.js +316 -323
package/scb-viz/scb-viz.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { css as ut, LitElement as mt, html as
|
|
1
|
+
import { css as ut, LitElement as mt, html as b } from "lit";
|
|
2
2
|
import { unsafeSVG as bt } from "lit/directives/unsafe-svg.js";
|
|
3
3
|
import { unsafeHTML as Y } from "lit/directives/unsafe-html.js";
|
|
4
|
-
import { property as
|
|
4
|
+
import { property as w, state as j, customElement as vt } from "lit/decorators.js";
|
|
5
5
|
import "../scb-chip/scb-chip.js";
|
|
6
6
|
import "../scb-segmented-button/scb-segmented-button.js";
|
|
7
7
|
import "../scb-segmented-button/scb-segmented-item.js";
|
|
@@ -12,12 +12,12 @@ import "../scb-icon-button/scb-icon-button.js";
|
|
|
12
12
|
import { appendScbVizSeriesDifferentiationPatternMarks as yt, getScbVizSeriesDifferentiationPatternKinds as _t, getScbVizSeriesDifferentiationVariant as wt } from "./scb-viz-series-differentiation-registry.js";
|
|
13
13
|
var zt = Object.defineProperty, St = Object.getOwnPropertyDescriptor, Z = (t) => {
|
|
14
14
|
throw TypeError(t);
|
|
15
|
-
},
|
|
16
|
-
for (var
|
|
17
|
-
(o = t[
|
|
18
|
-
return
|
|
19
|
-
}, xt = (t, e, i) => e.has(t) || Z("Cannot " + i), Ct = (t, e, i) => e.has(t) ? Z("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), h = (t, e, i) => (xt(t, e, "access private method"), i), c,
|
|
20
|
-
const
|
|
15
|
+
}, y = (t, e, i, a) => {
|
|
16
|
+
for (var s = a > 1 ? void 0 : a ? St(e, i) : e, n = t.length - 1, o; n >= 0; n--)
|
|
17
|
+
(o = t[n]) && (s = (a ? o(e, i, s) : o(s)) || s);
|
|
18
|
+
return a && s && zt(e, i, s), s;
|
|
19
|
+
}, xt = (t, e, i) => e.has(t) || Z("Cannot " + i), Ct = (t, e, i) => e.has(t) ? Z("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), h = (t, e, i) => (xt(t, e, "access private method"), i), c, k, I, q, D, T, O, Q, E, G, R, tt, et, it, A, H, S, st, at, nt, rt, ot, lt, ct, ht, B, dt, V, P, gt, pt, W, U, F, $, N;
|
|
20
|
+
const ft = `<svg version="1.1" id="Lager_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
21
21
|
viewBox="0 0 727.3 87.3" style="enable-background:new 0 0 727.3 87.3;" xml:space="preserve" fill="currentColor">
|
|
22
22
|
<style type="text/css">
|
|
23
23
|
.st0{clip-path:url(#SVGID_00000118375311472882578510000008414848687067442345_);}
|
|
@@ -133,25 +133,25 @@ const pt = `<svg version="1.1" id="Lager_1" xmlns="http://www.w3.org/2000/svg" x
|
|
|
133
133
|
<path d="M701.8,24.4h5.8v26.3h0.1l11.2-14.1h7l-10,11.7l11.4,18.3H720l-7.7-14l-4.6,5.4v8.7h-5.8V24.4H701.8z"/>
|
|
134
134
|
</svg>
|
|
135
135
|
`;
|
|
136
|
-
let
|
|
136
|
+
let m = class extends mt {
|
|
137
137
|
constructor() {
|
|
138
138
|
super(...arguments), Ct(this, c), this.variant = "Standard", this.selectedChip = "Diagram", this.title = "", this.subtitle = "", this.description = "", this.comment = "", this.source = "", this.footnote = "", this.lang = "sv", this.imageHref = "", this.officialStatistics = !1, this.disableToggle = !1, this.contentMaxWidth = "", this.containerMaxWidth = "", this.contentHeight = "", this.toggleHeightMode = "stable", this._actionsMenuOpen = !1, this._seriesDifferentiationEnabled = !1, this._seriesDifferentiationSnapshots = /* @__PURE__ */ new WeakMap(), this._diagramReflowFrame = 0, this._chartConfigSyncFrame = 0, this.spacing = void 0, this.spacingTop = void 0, this.spacingBottom = void 0, this.spacingLeft = void 0, this.spacingRight = void 0, this._onDocumentPointerDown = (t) => {
|
|
139
|
-
var
|
|
139
|
+
var a;
|
|
140
140
|
if (!this._actionsMenuOpen) return;
|
|
141
|
-
const e = t.composedPath(), i = (
|
|
141
|
+
const e = t.composedPath(), i = (a = this.shadowRoot) == null ? void 0 : a.querySelector(".actions-menu");
|
|
142
142
|
i && e.includes(i) || this._closeActionsMenu();
|
|
143
143
|
}, this._onDocumentKeyDown = (t) => {
|
|
144
144
|
this._actionsMenuOpen && t.key === "Escape" && (t.preventDefault(), this._closeActionsMenu(), this._focusMenuButton());
|
|
145
145
|
}, this._onPrintClick = async () => {
|
|
146
|
-
this._closeActionsMenu(), await h(this, c,
|
|
146
|
+
this._closeActionsMenu(), await h(this, c, ot).call(this);
|
|
147
147
|
}, this._onDownloadPngClick = async () => {
|
|
148
|
-
this._canExportRaster() && (this._closeActionsMenu(), await h(this, c,
|
|
148
|
+
this._canExportRaster() && (this._closeActionsMenu(), await h(this, c, H).call(this, "png"));
|
|
149
149
|
}, this._onDownloadJpgClick = async () => {
|
|
150
|
-
this._canExportRaster() && (this._closeActionsMenu(), await h(this, c,
|
|
150
|
+
this._canExportRaster() && (this._closeActionsMenu(), await h(this, c, H).call(this, "jpeg"));
|
|
151
151
|
}, this._onDownloadCsvClick = () => {
|
|
152
|
-
this._canExportCsv() && (this._closeActionsMenu(), h(this, c,
|
|
152
|
+
this._canExportCsv() && (this._closeActionsMenu(), h(this, c, lt).call(this));
|
|
153
153
|
}, this._onToggleSeriesDifferentiationClick = () => {
|
|
154
|
-
this._seriesDifferentiationEnabled = !this._seriesDifferentiationEnabled, this._closeActionsMenu(), h(this, c,
|
|
154
|
+
this._seriesDifferentiationEnabled = !this._seriesDifferentiationEnabled, this._closeActionsMenu(), h(this, c, A).call(this);
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
157
|
// Labels as getters so they react to lang changes
|
|
@@ -207,23 +207,23 @@ let b = class extends mt {
|
|
|
207
207
|
super.connectedCallback(), document.addEventListener("pointerdown", this._onDocumentPointerDown, !0), document.addEventListener("keydown", this._onDocumentKeyDown);
|
|
208
208
|
}
|
|
209
209
|
firstUpdated(t) {
|
|
210
|
-
this._readTableDataFromSlot(), h(this, c,
|
|
210
|
+
this._readTableDataFromSlot(), h(this, c, F).call(this), h(this, c, N).call(this), h(this, c, E).call(this), this._syncChipClass(), h(this, c, k).call(this), h(this, c, D).call(this);
|
|
211
211
|
}
|
|
212
212
|
updated(t) {
|
|
213
|
-
super.updated(t), (t.has("selectedChip") || t.has("variant")) && (this._syncChipClass(), this._closeActionsMenu()), t.has("selectedChip") && this._dispatchSelectedChipChanged(), (t.has("spacing") || t.has("spacingTop") || t.has("spacingBottom") || t.has("spacingLeft") || t.has("spacingRight")) && h(this, c,
|
|
214
|
-
h(this, c,
|
|
215
|
-
}), (t.has("valueFormat") || t.has("timeFormat") || t.has("yAxisSettings") || t.has("selectedChip") || t.has("variant")) && h(this, c,
|
|
213
|
+
super.updated(t), (t.has("selectedChip") || t.has("variant")) && (this._syncChipClass(), this._closeActionsMenu()), t.has("selectedChip") && this._dispatchSelectedChipChanged(), (t.has("spacing") || t.has("spacingTop") || t.has("spacingBottom") || t.has("spacingLeft") || t.has("spacingRight")) && h(this, c, F).call(this), t.has("containerMaxWidth") && h(this, c, N).call(this), t.has("variant") && h(this, c, k).call(this), (t.has("contentMaxWidth") || t.has("contentHeight") || t.has("toggleHeightMode") || t.has("variant")) && h(this, c, E).call(this), (t.has("selectedChip") || t.has("variant") || t.has("contentMaxWidth") || t.has("contentHeight") || t.has("toggleHeightMode")) && h(this, c, D).call(this), (t.has("selectedChip") || t.has("variant")) && this._seriesDifferentiationEnabled && requestAnimationFrame(() => {
|
|
214
|
+
h(this, c, A).call(this);
|
|
215
|
+
}), (t.has("valueFormat") || t.has("timeFormat") || t.has("yAxisSettings") || t.has("selectedChip") || t.has("variant")) && h(this, c, R).call(this);
|
|
216
216
|
}
|
|
217
217
|
disconnectedCallback() {
|
|
218
|
-
super.disconnectedCallback(), document.removeEventListener("pointerdown", this._onDocumentPointerDown, !0), document.removeEventListener("keydown", this._onDocumentKeyDown), h(this, c, I).call(this), h(this, c,
|
|
218
|
+
super.disconnectedCallback(), document.removeEventListener("pointerdown", this._onDocumentPointerDown, !0), document.removeEventListener("keydown", this._onDocumentKeyDown), h(this, c, I).call(this), h(this, c, q).call(this), h(this, c, G).call(this);
|
|
219
219
|
}
|
|
220
220
|
_onTableSlotChange(t) {
|
|
221
221
|
const e = t.target;
|
|
222
222
|
e && (this._readTableDataFromSlot(e), this.requestUpdate());
|
|
223
223
|
}
|
|
224
224
|
_onDiagramSlotChange() {
|
|
225
|
-
h(this, c,
|
|
226
|
-
h(this, c,
|
|
225
|
+
h(this, c, E).call(this), h(this, c, D).call(this), h(this, c, R).call(this), this._seriesDifferentiationEnabled && requestAnimationFrame(() => {
|
|
226
|
+
h(this, c, A).call(this);
|
|
227
227
|
}), this.requestUpdate();
|
|
228
228
|
}
|
|
229
229
|
_normalizeRenderableCell(t) {
|
|
@@ -239,64 +239,64 @@ let b = class extends mt {
|
|
|
239
239
|
var z;
|
|
240
240
|
const e = t || ((z = this.shadowRoot) == null ? void 0 : z.querySelector('slot[name="table"]'));
|
|
241
241
|
if (!e) return;
|
|
242
|
-
const i = e.assignedElements({ flatten: !0 }),
|
|
242
|
+
const i = e.assignedElements({ flatten: !0 }), a = [];
|
|
243
243
|
i.forEach((f) => {
|
|
244
244
|
if (f.tagName === "TABLE") {
|
|
245
|
-
|
|
245
|
+
a.push(f);
|
|
246
246
|
return;
|
|
247
247
|
}
|
|
248
|
-
f.querySelectorAll("table").forEach((
|
|
248
|
+
f.querySelectorAll("table").forEach((u) => a.push(u));
|
|
249
249
|
});
|
|
250
|
-
const
|
|
251
|
-
if (!
|
|
250
|
+
const s = a[0];
|
|
251
|
+
if (!s) {
|
|
252
252
|
this._slottedTableData = void 0;
|
|
253
253
|
return;
|
|
254
254
|
}
|
|
255
|
-
const
|
|
255
|
+
const n = [], o = [], r = [], l = (f) => f ? (f.textContent ?? "").replace(/\s+/g, " ").trim() : "", d = (f) => f ? {
|
|
256
256
|
html: (f.innerHTML ?? "").trim(),
|
|
257
257
|
text: l(f)
|
|
258
|
-
} : { html: "", text: "" }, p =
|
|
259
|
-
p && Array.from(p.querySelectorAll("th, td")).forEach((
|
|
260
|
-
const
|
|
258
|
+
} : { html: "", text: "" }, p = s.querySelector("thead tr");
|
|
259
|
+
p && Array.from(p.querySelectorAll("th, td")).forEach((u) => n.push(d(u)));
|
|
260
|
+
const v = Array.from(s.querySelectorAll("tbody tr")), _ = v.length > 0 ? v : Array.from(s.querySelectorAll("tr")).filter(
|
|
261
261
|
(f) => f.closest("thead") === null
|
|
262
262
|
);
|
|
263
|
-
if (
|
|
264
|
-
const
|
|
265
|
-
if (
|
|
266
|
-
const g =
|
|
263
|
+
if (_.forEach((f) => {
|
|
264
|
+
const u = Array.from(f.querySelectorAll("th, td"));
|
|
265
|
+
if (u.length === 0) return;
|
|
266
|
+
const g = u[0].tagName === "TH" && f.closest("thead") === null && f.closest("tfoot") === null;
|
|
267
267
|
r.push(g);
|
|
268
268
|
const C = [];
|
|
269
|
-
|
|
269
|
+
u.forEach((x) => C.push(d(x))), o.push(C);
|
|
270
270
|
}), !p && o.length > 0) {
|
|
271
|
-
const f = o[0],
|
|
272
|
-
g.length > 0 && g.every((x) => x.tagName === "TH") && (
|
|
271
|
+
const f = o[0], u = _[0], g = Array.from((u == null ? void 0 : u.querySelectorAll("th, td")) ?? []);
|
|
272
|
+
g.length > 0 && g.every((x) => x.tagName === "TH") && (u == null ? void 0 : u.closest("tbody")) === null && (n.splice(0, n.length, ...f), o.shift(), r.shift());
|
|
273
273
|
}
|
|
274
274
|
this._slottedTableData = {
|
|
275
|
-
headers:
|
|
275
|
+
headers: n.length > 0 ? n : void 0,
|
|
276
276
|
rows: o,
|
|
277
277
|
rowHeaderRows: r.length > 0 ? r : void 0
|
|
278
278
|
};
|
|
279
279
|
}
|
|
280
280
|
_inferTableAlignments(t) {
|
|
281
|
-
var
|
|
281
|
+
var s;
|
|
282
282
|
const e = Math.max(
|
|
283
|
-
((
|
|
284
|
-
...t.rows.map((
|
|
285
|
-
), i = (
|
|
286
|
-
if (
|
|
287
|
-
if (typeof
|
|
288
|
-
const o = String(
|
|
283
|
+
((s = t.headers) == null ? void 0 : s.length) ?? 0,
|
|
284
|
+
...t.rows.map((n) => n.length)
|
|
285
|
+
), i = (n) => {
|
|
286
|
+
if (n == null) return !1;
|
|
287
|
+
if (typeof n == "number") return !0;
|
|
288
|
+
const o = String(n).replace(/[\u00A0\u202F\s]+/g, "").trim();
|
|
289
289
|
return o ? /^-?\d+(?:[.,]\d+)?$/.test(o) : !1;
|
|
290
|
-
},
|
|
291
|
-
for (let
|
|
292
|
-
if (
|
|
293
|
-
|
|
290
|
+
}, a = [];
|
|
291
|
+
for (let n = 0; n < e; n += 1) {
|
|
292
|
+
if (n === 0) {
|
|
293
|
+
a.push("left");
|
|
294
294
|
continue;
|
|
295
295
|
}
|
|
296
|
-
const o = t.rows.map((l) => this._normalizeRenderableCell(l[
|
|
297
|
-
|
|
296
|
+
const o = t.rows.map((l) => this._normalizeRenderableCell(l[n]).text).filter((l) => l !== "" && l !== null && l !== void 0), r = o.length > 0 && o.every(i);
|
|
297
|
+
a.push(r ? "right" : "left");
|
|
298
298
|
}
|
|
299
|
-
return
|
|
299
|
+
return a;
|
|
300
300
|
}
|
|
301
301
|
_getResolvedContentMaxWidth() {
|
|
302
302
|
var t;
|
|
@@ -306,11 +306,14 @@ let b = class extends mt {
|
|
|
306
306
|
var t;
|
|
307
307
|
return ((t = this.contentHeight) == null ? void 0 : t.trim()) || "";
|
|
308
308
|
}
|
|
309
|
+
_getResolvedDiagramScrollerWidth() {
|
|
310
|
+
return this._getResolvedContentMaxWidth() || "720px";
|
|
311
|
+
}
|
|
309
312
|
_getResolvedToggleHeightMode() {
|
|
310
313
|
return this.toggleHeightMode === "auto" ? "auto" : "stable";
|
|
311
314
|
}
|
|
312
315
|
_getResolvedStandardContentHeight() {
|
|
313
|
-
return this._getResolvedDiagramHeight() || "
|
|
316
|
+
return this._getResolvedDiagramHeight() || "600px";
|
|
314
317
|
}
|
|
315
318
|
_getResolvedTableData() {
|
|
316
319
|
return this.tableData ?? this._slottedTableData;
|
|
@@ -347,17 +350,17 @@ let b = class extends mt {
|
|
|
347
350
|
};
|
|
348
351
|
}
|
|
349
352
|
_normalizeValueFormat(t) {
|
|
350
|
-
const e = this._getDefaultValueFormat(), i = t && typeof t == "object" ? t : {},
|
|
353
|
+
const e = this._getDefaultValueFormat(), i = t && typeof t == "object" ? t : {}, a = ["number", "currency", "percent"].includes(String(i.type)) ? String(i.type) : e.type, s = ["auto", "raw", "thousands", "millions", "billions"].includes(String(i.scale)) ? String(i.scale) : e.scale, n = Number.isFinite(Number(i.decimals)) ? Math.max(0, Math.min(20, Number(i.decimals))) : e.decimals;
|
|
351
354
|
return {
|
|
352
|
-
type:
|
|
353
|
-
scale:
|
|
354
|
-
decimals:
|
|
355
|
+
type: a,
|
|
356
|
+
scale: s,
|
|
357
|
+
decimals: n
|
|
355
358
|
};
|
|
356
359
|
}
|
|
357
360
|
_normalizeTimeFormat(t) {
|
|
358
|
-
const e = { mode: "raw", display: "raw" }, i = t && typeof t == "object" ? t : {},
|
|
359
|
-
let
|
|
360
|
-
|
|
361
|
+
const e = { mode: "raw", display: "raw" }, i = t && typeof t == "object" ? t : {}, a = ["raw", "year", "monthCode", "quarterCode", "weekCode", "tertialCode"];
|
|
362
|
+
let s = typeof i.mode == "string" ? i.mode : e.mode, n = typeof i.display == "string" ? i.display : e.display;
|
|
363
|
+
a.includes(s) || (s = e.mode);
|
|
361
364
|
const o = {
|
|
362
365
|
raw: ["raw"],
|
|
363
366
|
year: ["raw", "year"],
|
|
@@ -366,7 +369,7 @@ let b = class extends mt {
|
|
|
366
369
|
weekCode: ["raw", "week-compact", "week-long"],
|
|
367
370
|
tertialCode: ["raw", "tertial-compact", "tertial-short", "tertial-long"]
|
|
368
371
|
};
|
|
369
|
-
return o[
|
|
372
|
+
return o[s].includes(n) || (n = o[s][0]), s === "raw" && (n = "raw"), { mode: s, display: n };
|
|
370
373
|
}
|
|
371
374
|
_normalizeYAxisSettings(t) {
|
|
372
375
|
const e = t && typeof t == "object" ? t : {}, i = Number.isFinite(Number(e.referenceLineValue)) ? Number(e.referenceLineValue) : null;
|
|
@@ -392,26 +395,26 @@ let b = class extends mt {
|
|
|
392
395
|
if (e.mode === "monthCode") {
|
|
393
396
|
const i = /^\s*(\d{4})M(0?[1-9]|1[0-2])\s*$/i.exec(t);
|
|
394
397
|
if (!i) return null;
|
|
395
|
-
const
|
|
396
|
-
return e.display === "iso-month" ? `${
|
|
398
|
+
const a = Number(i[2]) - 1, s = i[1], n = String(a + 1).padStart(2, "0");
|
|
399
|
+
return e.display === "iso-month" ? `${s}-${n}` : e.display === "short-month" ? `${this._getShortMonthNames()[a]} ${s}` : e.display === "long-month" ? `${this._getLongMonthNames()[a]} ${s}` : t;
|
|
397
400
|
}
|
|
398
401
|
if (e.mode === "quarterCode") {
|
|
399
402
|
const i = /^\s*(\d{4})(?:K(V)?|Q)(0?[1-4])\s*$/i.exec(t);
|
|
400
403
|
if (!i) return null;
|
|
401
|
-
const
|
|
402
|
-
return e.display === "quarter-compact" ? `${
|
|
404
|
+
const a = Number(i[3]), s = i[1], n = ["första", "andra", "tredje", "fjärde"];
|
|
405
|
+
return e.display === "quarter-compact" ? `${s} K${a}` : e.display === "quarter-short" ? `kv ${a} ${s}` : e.display === "quarter-long" ? `${n[a - 1]} kvartalet ${s}` : t;
|
|
403
406
|
}
|
|
404
407
|
if (e.mode === "weekCode") {
|
|
405
408
|
const i = /^\s*(\d{4})(?:V|W)(0?[1-9]|[1-4][0-9]|5[0-3])\s*$/i.exec(t);
|
|
406
409
|
if (!i) return null;
|
|
407
|
-
const
|
|
408
|
-
return e.display === "week-compact" ? `${
|
|
410
|
+
const a = Number(i[2]), s = i[1];
|
|
411
|
+
return e.display === "week-compact" ? `${s} v. ${a}` : e.display === "week-long" ? `vecka ${a} ${s}` : t;
|
|
409
412
|
}
|
|
410
413
|
if (e.mode === "tertialCode") {
|
|
411
414
|
const i = /^\s*(\d{4})T(0?[1-3])\s*$/i.exec(t);
|
|
412
415
|
if (!i) return null;
|
|
413
|
-
const
|
|
414
|
-
return e.display === "tertial-compact" ? `${
|
|
416
|
+
const a = Number(i[2]), s = i[1], n = ["första", "andra", "tredje"];
|
|
417
|
+
return e.display === "tertial-compact" ? `${s} T${a}` : e.display === "tertial-short" ? `tertial ${a} ${s}` : e.display === "tertial-long" ? `${n[a - 1]} tertialet ${s}` : t;
|
|
415
418
|
}
|
|
416
419
|
return null;
|
|
417
420
|
}
|
|
@@ -423,101 +426,112 @@ let b = class extends mt {
|
|
|
423
426
|
}
|
|
424
427
|
_formatValueForDisplay(t, e, i) {
|
|
425
428
|
if (!Number.isFinite(t)) return null;
|
|
426
|
-
const
|
|
429
|
+
const a = {
|
|
427
430
|
raw: 1,
|
|
428
431
|
thousands: 1e3,
|
|
429
432
|
millions: 1e6,
|
|
430
433
|
billions: 1e9
|
|
431
|
-
},
|
|
434
|
+
}, s = {
|
|
432
435
|
raw: "",
|
|
433
436
|
thousands: this.lang === "en" ? "k" : "t",
|
|
434
437
|
millions: this.lang === "en" ? "M" : "mn",
|
|
435
438
|
billions: this.lang === "en" ? "B" : "md"
|
|
436
439
|
};
|
|
437
|
-
let
|
|
438
|
-
if (
|
|
440
|
+
let n = e.scale;
|
|
441
|
+
if (n === "auto") {
|
|
439
442
|
const d = Math.abs(t);
|
|
440
|
-
d >= 1e9 ?
|
|
443
|
+
d >= 1e9 ? n = "billions" : d >= 1e6 ? n = "millions" : d >= 1e3 ? n = "thousands" : n = "raw";
|
|
441
444
|
}
|
|
442
|
-
const o = t / (
|
|
445
|
+
const o = t / (a[n] || 1);
|
|
443
446
|
let r = this._formatLocalizedNumber(o, e.decimals);
|
|
444
447
|
e.type === "percent" ? r = `${r} %` : e.type === "currency" && (r = i ? `${r} kr` : r);
|
|
445
|
-
const l = n
|
|
448
|
+
const l = s[n] || "";
|
|
446
449
|
return l && (r = `${r} ${l}`), r;
|
|
447
450
|
}
|
|
448
451
|
_isCategoryAxis(t) {
|
|
449
452
|
var e, i;
|
|
450
453
|
return ((e = t == null ? void 0 : t.categories) == null ? void 0 : e.length) > 0 || ((i = t == null ? void 0 : t.options) == null ? void 0 : i.type) === "category";
|
|
451
454
|
}
|
|
455
|
+
_getTooltipXAxisLabel(t, e) {
|
|
456
|
+
var n, o;
|
|
457
|
+
const i = (t == null ? void 0 : t.point) || t, a = ((n = i == null ? void 0 : i.series) == null ? void 0 : n.xAxis) || ((o = t == null ? void 0 : t.series) == null ? void 0 : o.xAxis);
|
|
458
|
+
let s = "";
|
|
459
|
+
if (a && Array.isArray(a.categories)) {
|
|
460
|
+
const r = Number.isFinite(i == null ? void 0 : i.x) ? Number(i.x) : Number.isFinite(t == null ? void 0 : t.x) ? Number(t.x) : null;
|
|
461
|
+
if (r !== null) {
|
|
462
|
+
const l = a.categories[r];
|
|
463
|
+
typeof l < "u" && l !== null && (s = String(l));
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
return !s && typeof (i == null ? void 0 : i.category) == "string" && i.category.trim() && Number.isNaN(Number(i.category)) && (s = i.category), !s && typeof (t == null ? void 0 : t.key) == "string" && t.key.trim() && Number.isNaN(Number(t.key)) && (s = t.key), !s && typeof (t == null ? void 0 : t.x) == "string" && t.x.trim() && Number.isNaN(Number(t.x)) && (s = t.x), s ? this._formatCategoryTimeLabel(s, e) ?? s : "";
|
|
467
|
+
}
|
|
452
468
|
_applyTimeFormatToLiveChart(t) {
|
|
453
469
|
const e = this._normalizeTimeFormat(this.timeFormat);
|
|
454
470
|
if (e.mode === "raw" || e.display === "raw") return;
|
|
455
471
|
const i = this._formatCategoryTimeLabel.bind(this);
|
|
456
|
-
[...(t == null ? void 0 : t.xAxis) || [], ...(t == null ? void 0 : t.yAxis) || []].forEach((
|
|
472
|
+
[...(t == null ? void 0 : t.xAxis) || [], ...(t == null ? void 0 : t.yAxis) || []].forEach((a) => {
|
|
457
473
|
var o;
|
|
458
|
-
if (!this._isCategoryAxis(
|
|
459
|
-
const
|
|
460
|
-
|
|
474
|
+
if (!this._isCategoryAxis(a)) return;
|
|
475
|
+
const s = (o = a.options) != null && o.labels && typeof a.options.labels == "object" ? { ...a.options.labels } : {}, n = typeof s.formatter == "function" ? s.formatter : null;
|
|
476
|
+
s.formatter = function() {
|
|
461
477
|
let r = "";
|
|
462
478
|
if (this != null && this.axis && Array.isArray(this.axis.categories) && typeof this.pos == "number") {
|
|
463
479
|
const d = this.axis.categories[this.pos];
|
|
464
480
|
typeof d < "u" && d !== null && (r = String(d));
|
|
465
481
|
} else typeof (this == null ? void 0 : this.value) < "u" && this.value !== null && (r = String(this.value));
|
|
466
482
|
const l = i(r, e);
|
|
467
|
-
return l !== null ? l :
|
|
468
|
-
}, delete
|
|
483
|
+
return l !== null ? l : n ? n.call(this) : r;
|
|
484
|
+
}, delete s.format, a.update({ labels: s }, !1);
|
|
469
485
|
});
|
|
470
486
|
}
|
|
471
487
|
_applyValueFormatToLiveChart(t) {
|
|
472
|
-
var
|
|
473
|
-
const e = this._normalizeValueFormat(this.valueFormat), i = this._formatValueForDisplay.bind(this);
|
|
488
|
+
var n, o, r, l, d, p, v;
|
|
489
|
+
const e = this._normalizeValueFormat(this.valueFormat), i = this._normalizeTimeFormat(this.timeFormat), a = this._formatValueForDisplay.bind(this), s = this._getTooltipXAxisLabel.bind(this);
|
|
474
490
|
t.update({
|
|
475
491
|
tooltip: {
|
|
476
|
-
...((
|
|
492
|
+
...((n = t.options) == null ? void 0 : n.tooltip) || {},
|
|
477
493
|
valueDecimals: e.decimals,
|
|
478
494
|
formatter: function() {
|
|
479
|
-
const
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
const
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
w.push(`${C ? `${String(C)}: ` : ""}<b>${g}</b><br/>`);
|
|
488
|
-
}), u + w.join("");
|
|
495
|
+
const _ = Array.isArray(this.points) && this.points.length ? this.points : [this.point || this], z = s(this, i), f = [];
|
|
496
|
+
return _.forEach((u) => {
|
|
497
|
+
var L;
|
|
498
|
+
const g = (u == null ? void 0 : u.point) || u, C = Number.isFinite(u == null ? void 0 : u.y) ? u.y : g == null ? void 0 : g.y, x = a(C, e, !0);
|
|
499
|
+
if (x === null) return;
|
|
500
|
+
const M = (g == null ? void 0 : g.name) || ((L = g == null ? void 0 : g.series) == null ? void 0 : L.name) || "";
|
|
501
|
+
f.push(`${M ? `${String(M)}: ` : ""}<b>${x}</b><br/>`);
|
|
502
|
+
}), `${z ? `<span>${String(z)}</span><br/>` : ""}${f.join("")}`;
|
|
489
503
|
}
|
|
490
504
|
},
|
|
491
505
|
plotOptions: {
|
|
492
|
-
...((
|
|
506
|
+
...((o = t.options) == null ? void 0 : o.plotOptions) || {},
|
|
493
507
|
series: {
|
|
494
|
-
...((
|
|
508
|
+
...((l = (r = t.options) == null ? void 0 : r.plotOptions) == null ? void 0 : l.series) || {},
|
|
495
509
|
dataLabels: {
|
|
496
|
-
...((
|
|
510
|
+
...((v = (p = (d = t.options) == null ? void 0 : d.plotOptions) == null ? void 0 : p.series) == null ? void 0 : v.dataLabels) || {},
|
|
497
511
|
formatter: function() {
|
|
498
|
-
var
|
|
499
|
-
const
|
|
500
|
-
return
|
|
512
|
+
var z;
|
|
513
|
+
const _ = Number.isFinite(this == null ? void 0 : this.y) ? this.y : (z = this == null ? void 0 : this.point) == null ? void 0 : z.y;
|
|
514
|
+
return a(_, e, e.type === "percent") ?? null;
|
|
501
515
|
}
|
|
502
516
|
}
|
|
503
517
|
}
|
|
504
518
|
}
|
|
505
|
-
}, !1, !1, !1), ((t == null ? void 0 : t.yAxis) || []).forEach((
|
|
506
|
-
var
|
|
507
|
-
const
|
|
508
|
-
|
|
509
|
-
const
|
|
510
|
-
return
|
|
511
|
-
}, (e.type === "percent" || e.scale !== "auto") && delete
|
|
519
|
+
}, !1, !1, !1), ((t == null ? void 0 : t.yAxis) || []).forEach((_) => {
|
|
520
|
+
var g, C;
|
|
521
|
+
const z = (g = _.options) != null && g.labels && typeof _.options.labels == "object" ? { ..._.options.labels } : {}, f = typeof z.formatter == "function" ? z.formatter : null, u = !((C = _.options) != null && C.title && typeof _.options.title.text == "string" && _.options.title.text.trim());
|
|
522
|
+
z.formatter = function() {
|
|
523
|
+
const x = a(this == null ? void 0 : this.value, e, u);
|
|
524
|
+
return x !== null ? x : f ? f.call(this) : this == null ? void 0 : this.value;
|
|
525
|
+
}, (e.type === "percent" || e.scale !== "auto") && delete z.format, _.update({ labels: z }, !1);
|
|
512
526
|
});
|
|
513
527
|
}
|
|
514
528
|
_applyYAxisSettingsToLiveChart(t) {
|
|
515
529
|
const e = this._normalizeYAxisSettings(this.yAxisSettings), i = (t == null ? void 0 : t.yAxis) || [];
|
|
516
|
-
i.length && i.forEach((
|
|
517
|
-
const
|
|
518
|
-
|
|
519
|
-
const l = Array.isArray(
|
|
520
|
-
|
|
530
|
+
i.length && i.forEach((a, s) => {
|
|
531
|
+
const n = a.options && typeof a.options == "object" ? a.options : {}, o = {}, r = typeof n.min < "u" && n.min !== null && n.min !== "";
|
|
532
|
+
s === 0 && e.startAtZero && !r && (o.min = 0);
|
|
533
|
+
const l = Array.isArray(n.plotLines) ? n.plotLines.filter((d) => (d == null ? void 0 : d.id) !== "scb-viz-reference-line") : [];
|
|
534
|
+
s === 0 && e.referenceLineEnabled && Number.isFinite(e.referenceLineValue) && l.push({
|
|
521
535
|
id: "scb-viz-reference-line",
|
|
522
536
|
className: "scb-axis-plotline scb-viz-reference-line",
|
|
523
537
|
value: e.referenceLineValue,
|
|
@@ -525,20 +539,20 @@ let b = class extends mt {
|
|
|
525
539
|
text: e.referenceLineLabel,
|
|
526
540
|
className: "scb-viz-reference-line-label"
|
|
527
541
|
} : void 0
|
|
528
|
-
}), l.length ? o.plotLines = l : Array.isArray(
|
|
542
|
+
}), l.length ? o.plotLines = l : Array.isArray(n.plotLines) && (o.plotLines = []), a.update(o, !1);
|
|
529
543
|
});
|
|
530
544
|
}
|
|
531
545
|
_getCurrentHighchartsChart() {
|
|
532
546
|
var i;
|
|
533
547
|
if (this._getCurrentPrintableView() !== "diagram") return;
|
|
534
|
-
const t = h(this, c,
|
|
548
|
+
const t = h(this, c, O).call(this, this._getDiagramAssignedElements());
|
|
535
549
|
if (t === void 0) return;
|
|
536
550
|
const e = window.Highcharts;
|
|
537
551
|
return (i = e == null ? void 0 : e.charts) == null ? void 0 : i[t];
|
|
538
552
|
}
|
|
539
553
|
_getSeriesDifferentiationGroup(t, e) {
|
|
540
|
-
var s, n
|
|
541
|
-
const i = String((t == null ? void 0 : t.type) || ((
|
|
554
|
+
var a, s, n;
|
|
555
|
+
const i = String((t == null ? void 0 : t.type) || ((a = t == null ? void 0 : t.options) == null ? void 0 : a.type) || ((n = (s = e == null ? void 0 : e.options) == null ? void 0 : s.chart) == null ? void 0 : n.type) || "").trim().toLowerCase();
|
|
542
556
|
return ["line", "spline", "scatter"].includes(i) ? "line" : ["area", "areaspline"].includes(i) ? "area" : ["column", "bar"].includes(i) ? "fill" : ["pie", "variablepie"].includes(i) ? "point-fill" : null;
|
|
543
557
|
}
|
|
544
558
|
_shouldShowSeriesDifferentiationAction() {
|
|
@@ -571,18 +585,18 @@ let b = class extends mt {
|
|
|
571
585
|
return e instanceof SVGElement ? e : null;
|
|
572
586
|
}
|
|
573
587
|
_isHighchartsStyledMode(t) {
|
|
574
|
-
var e, i,
|
|
575
|
-
return !!(t != null && t.styledMode || (e = t == null ? void 0 : t.renderer) != null && e.styledMode || (
|
|
588
|
+
var e, i, a;
|
|
589
|
+
return !!(t != null && t.styledMode || (e = t == null ? void 0 : t.renderer) != null && e.styledMode || (a = (i = t == null ? void 0 : t.options) == null ? void 0 : i.chart) != null && a.styledMode);
|
|
576
590
|
}
|
|
577
591
|
_getHighchartsSvgRoot(t) {
|
|
578
|
-
var i,
|
|
592
|
+
var i, a, s;
|
|
579
593
|
if ((t == null ? void 0 : t.container) instanceof SVGSVGElement) return t.container;
|
|
580
|
-
const e = ((i = t == null ? void 0 : t.renderTo) == null ? void 0 : i.querySelector("svg")) ?? ((
|
|
594
|
+
const e = ((i = t == null ? void 0 : t.renderTo) == null ? void 0 : i.querySelector("svg")) ?? ((s = (a = t == null ? void 0 : t.container) == null ? void 0 : a.querySelector) == null ? void 0 : s.call(a, "svg"));
|
|
581
595
|
return e instanceof SVGSVGElement ? e : null;
|
|
582
596
|
}
|
|
583
597
|
_getHighchartsColorClassName(t, e) {
|
|
584
598
|
const i = this._getHighchartsSvgElement(t);
|
|
585
|
-
return Array.from((i == null ? void 0 : i.classList) ?? []).find((
|
|
599
|
+
return Array.from((i == null ? void 0 : i.classList) ?? []).find((s) => /^highcharts-color-\d+$/.test(s)) ?? `highcharts-color-${e}`;
|
|
586
600
|
}
|
|
587
601
|
_setSeriesDifferentiationMetadata(t, e) {
|
|
588
602
|
const i = this._getHighchartsSvgElement(t);
|
|
@@ -595,84 +609,84 @@ let b = class extends mt {
|
|
|
595
609
|
_setSeriesDifferentiationColorClass(t, e) {
|
|
596
610
|
const i = this._getHighchartsSvgElement(t);
|
|
597
611
|
if (!i || !e) return;
|
|
598
|
-
const
|
|
599
|
-
|
|
612
|
+
const a = Array.from(i.classList).find((s) => /^highcharts-color-\d+$/.test(s));
|
|
613
|
+
a !== e && (a && (i.classList.remove(a), i.setAttribute("data-scb-viz-prev-color-class", a)), i.classList.add(e), i.setAttribute("data-scb-viz-added-color-class", e));
|
|
600
614
|
}
|
|
601
615
|
_clearSeriesDifferentiationColorClass(t) {
|
|
602
616
|
const e = this._getHighchartsSvgElement(t);
|
|
603
617
|
if (!e) return;
|
|
604
|
-
const i = e.getAttribute("data-scb-viz-added-color-class"),
|
|
605
|
-
i && (e.classList.remove(i), e.removeAttribute("data-scb-viz-added-color-class")),
|
|
618
|
+
const i = e.getAttribute("data-scb-viz-added-color-class"), a = e.getAttribute("data-scb-viz-prev-color-class");
|
|
619
|
+
i && (e.classList.remove(i), e.removeAttribute("data-scb-viz-added-color-class")), a && (e.classList.add(a), e.removeAttribute("data-scb-viz-prev-color-class"));
|
|
606
620
|
}
|
|
607
621
|
_getLegendSeriesDifferentiationTargets(t) {
|
|
608
622
|
var o, r, l, d;
|
|
609
|
-
const e = [], i = [],
|
|
610
|
-
const
|
|
611
|
-
!
|
|
623
|
+
const e = [], i = [], a = this._getHighchartsSvgElement((o = t == null ? void 0 : t.legendItem) == null ? void 0 : o.group), s = (p, v) => {
|
|
624
|
+
const _ = this._getHighchartsSvgElement(v);
|
|
625
|
+
!_ || p.includes(_) || p.push(_);
|
|
612
626
|
};
|
|
613
|
-
if (
|
|
614
|
-
const p =
|
|
615
|
-
p &&
|
|
616
|
-
|
|
627
|
+
if (s(e, t == null ? void 0 : t.legendLine), s(e, (r = t == null ? void 0 : t.legendItem) == null ? void 0 : r.line), s(i, t == null ? void 0 : t.legendSymbol), s(i, (l = t == null ? void 0 : t.legendItem) == null ? void 0 : l.symbol), s(i, t == null ? void 0 : t.legendArea), s(i, (d = t == null ? void 0 : t.legendItem) == null ? void 0 : d.area), a) {
|
|
628
|
+
const p = a.querySelector(".highcharts-graph, .highcharts-legend-graph, line, path");
|
|
629
|
+
p && s(e, p), a.querySelectorAll("rect, circle, .highcharts-point, .highcharts-area, .highcharts-legend-symbol, path").forEach((v) => {
|
|
630
|
+
s(i, v);
|
|
617
631
|
});
|
|
618
632
|
}
|
|
619
|
-
const
|
|
633
|
+
const n = i.filter((p) => !e.includes(p));
|
|
620
634
|
return {
|
|
621
635
|
graphTargets: e,
|
|
622
|
-
fillTargets:
|
|
636
|
+
fillTargets: n
|
|
623
637
|
};
|
|
624
638
|
}
|
|
625
639
|
_ensureStyledModeSeriesPattern(t, e, i) {
|
|
626
|
-
const
|
|
627
|
-
if (!
|
|
628
|
-
const
|
|
629
|
-
let
|
|
630
|
-
|
|
640
|
+
const a = this._getHighchartsSvgRoot(t);
|
|
641
|
+
if (!a) return;
|
|
642
|
+
const s = "http://www.w3.org/2000/svg";
|
|
643
|
+
let n = a.querySelector("defs");
|
|
644
|
+
n instanceof SVGDefsElement || (n = document.createElementNS(s, "defs"), a.insertBefore(n, a.firstChild));
|
|
631
645
|
const o = `scb-viz-pattern-${e}-${i}`;
|
|
632
|
-
if (
|
|
633
|
-
const r = document.createElementNS(
|
|
646
|
+
if (n.querySelector(`#${o}`)) return;
|
|
647
|
+
const r = document.createElementNS(s, "pattern");
|
|
634
648
|
r.setAttribute("id", o), r.setAttribute("patternUnits", "userSpaceOnUse"), r.setAttribute("width", "10"), r.setAttribute("height", "10"), r.classList.add(e);
|
|
635
|
-
const l = document.createElementNS(
|
|
636
|
-
l.setAttribute("x", "0"), l.setAttribute("y", "0"), l.setAttribute("width", "10"), l.setAttribute("height", "10"), l.setAttribute("class", "scb-viz-highcharts-pattern__background"), r.appendChild(l), yt(r,
|
|
649
|
+
const l = document.createElementNS(s, "rect");
|
|
650
|
+
l.setAttribute("x", "0"), l.setAttribute("y", "0"), l.setAttribute("width", "10"), l.setAttribute("height", "10"), l.setAttribute("class", "scb-viz-highcharts-pattern__background"), r.appendChild(l), yt(r, s, i), n.appendChild(r);
|
|
637
651
|
}
|
|
638
652
|
_applyStyledModeSeriesDifferentiation(t) {
|
|
639
|
-
var
|
|
653
|
+
var s;
|
|
640
654
|
const e = this._getHighchartsSvgRoot(t);
|
|
641
655
|
if (!e) return;
|
|
642
656
|
e.classList.add("scb-viz-series-differentiation-enabled");
|
|
643
|
-
const i = _t(),
|
|
644
|
-
(
|
|
645
|
-
var f,
|
|
646
|
-
const r = this._getSeriesDifferentiationGroup(
|
|
657
|
+
const i = _t(), a = this._getSeriesDifferentiationSnapshotStore(t);
|
|
658
|
+
(s = t.series) == null || s.forEach((n, o) => {
|
|
659
|
+
var f, u;
|
|
660
|
+
const r = this._getSeriesDifferentiationGroup(n, t);
|
|
647
661
|
if (!r) return;
|
|
648
|
-
const l = String((
|
|
649
|
-
|
|
650
|
-
const { dashStyle: d, markerSymbol: p, patternKind:
|
|
651
|
-
this._setSeriesDifferentiationMetadata(
|
|
662
|
+
const l = String((n == null ? void 0 : n.index) ?? o);
|
|
663
|
+
a.has(l) || a.set(l, this._captureSeriesDifferentiationSnapshot(n));
|
|
664
|
+
const { dashStyle: d, markerSymbol: p, patternKind: v } = wt(o), _ = this._getHighchartsColorClassName((n == null ? void 0 : n.graph) ?? (n == null ? void 0 : n.area) ?? (n == null ? void 0 : n.group), o), z = this._getLegendSeriesDifferentiationTargets(n);
|
|
665
|
+
this._setSeriesDifferentiationMetadata(n == null ? void 0 : n.graph, {
|
|
652
666
|
role: "graph",
|
|
653
667
|
dashStyle: d
|
|
654
|
-
}), r === "area" && (this._setSeriesDifferentiationMetadata(
|
|
668
|
+
}), r === "area" && (this._setSeriesDifferentiationMetadata(n == null ? void 0 : n.area, {
|
|
655
669
|
role: "area",
|
|
656
|
-
patternKind:
|
|
657
|
-
}), this._setSeriesDifferentiationColorClass(
|
|
670
|
+
patternKind: v
|
|
671
|
+
}), this._setSeriesDifferentiationColorClass(n == null ? void 0 : n.area, _), this._ensureStyledModeSeriesPattern(t, _, v)), r === "fill" && ((f = n.points) == null || f.forEach((g) => {
|
|
658
672
|
this._setSeriesDifferentiationMetadata(g == null ? void 0 : g.graphic, {
|
|
659
673
|
role: "fill",
|
|
660
|
-
patternKind:
|
|
661
|
-
}), this._setSeriesDifferentiationColorClass(g == null ? void 0 : g.graphic,
|
|
662
|
-
}), this._ensureStyledModeSeriesPattern(t,
|
|
663
|
-
var
|
|
664
|
-
const x = i[C % i.length],
|
|
665
|
-
(g == null ? void 0 : g.graphic) ?? (g == null ? void 0 : g.legendSymbol) ?? ((
|
|
674
|
+
patternKind: v
|
|
675
|
+
}), this._setSeriesDifferentiationColorClass(g == null ? void 0 : g.graphic, _);
|
|
676
|
+
}), this._ensureStyledModeSeriesPattern(t, _, v)), r === "point-fill" && ((u = n.points) == null || u.forEach((g, C) => {
|
|
677
|
+
var K, J;
|
|
678
|
+
const x = i[C % i.length], M = this._getHighchartsColorClassName(
|
|
679
|
+
(g == null ? void 0 : g.graphic) ?? (g == null ? void 0 : g.legendSymbol) ?? ((K = g == null ? void 0 : g.legendItem) == null ? void 0 : K.symbol) ?? ((J = g == null ? void 0 : g.legendItem) == null ? void 0 : J.group),
|
|
666
680
|
C
|
|
667
|
-
),
|
|
681
|
+
), L = this._getLegendSeriesDifferentiationTargets(g);
|
|
668
682
|
this._setSeriesDifferentiationMetadata(g == null ? void 0 : g.graphic, {
|
|
669
683
|
role: "fill",
|
|
670
684
|
patternKind: x
|
|
671
|
-
}), this._setSeriesDifferentiationColorClass(g == null ? void 0 : g.graphic,
|
|
672
|
-
this._setSeriesDifferentiationMetadata(
|
|
685
|
+
}), this._setSeriesDifferentiationColorClass(g == null ? void 0 : g.graphic, M), this._ensureStyledModeSeriesPattern(t, M, x), L.fillTargets.forEach((X) => {
|
|
686
|
+
this._setSeriesDifferentiationMetadata(X, {
|
|
673
687
|
role: "legend-fill",
|
|
674
688
|
patternKind: x
|
|
675
|
-
}), this._setSeriesDifferentiationColorClass(
|
|
689
|
+
}), this._setSeriesDifferentiationColorClass(X, M);
|
|
676
690
|
});
|
|
677
691
|
})), (r === "line" || r === "area") && z.graphTargets.forEach((g) => {
|
|
678
692
|
this._setSeriesDifferentiationMetadata(g, {
|
|
@@ -682,9 +696,9 @@ let b = class extends mt {
|
|
|
682
696
|
}), (r === "area" || r === "fill") && z.fillTargets.forEach((g) => {
|
|
683
697
|
this._setSeriesDifferentiationMetadata(g, {
|
|
684
698
|
role: "legend-fill",
|
|
685
|
-
patternKind:
|
|
686
|
-
}), this._setSeriesDifferentiationColorClass(g,
|
|
687
|
-
}), (r === "line" || r === "area") &&
|
|
699
|
+
patternKind: v
|
|
700
|
+
}), this._setSeriesDifferentiationColorClass(g, _);
|
|
701
|
+
}), (r === "line" || r === "area") && n.update(
|
|
688
702
|
{
|
|
689
703
|
marker: {
|
|
690
704
|
enabled: !0,
|
|
@@ -696,29 +710,29 @@ let b = class extends mt {
|
|
|
696
710
|
}), t.redraw(!1);
|
|
697
711
|
}
|
|
698
712
|
_restoreStyledModeSeriesDifferentiation(t) {
|
|
699
|
-
var
|
|
713
|
+
var a;
|
|
700
714
|
const e = this._getHighchartsSvgRoot(t);
|
|
701
715
|
e == null || e.classList.remove("scb-viz-series-differentiation-enabled");
|
|
702
716
|
const i = this._getSeriesDifferentiationSnapshotStore(t);
|
|
703
|
-
(
|
|
717
|
+
(a = t.series) == null || a.forEach((s, n) => {
|
|
704
718
|
var l;
|
|
705
|
-
const o = this._getSeriesDifferentiationGroup(
|
|
719
|
+
const o = this._getSeriesDifferentiationGroup(s, t);
|
|
706
720
|
if (!o) return;
|
|
707
|
-
const r = this._getLegendSeriesDifferentiationTargets(
|
|
708
|
-
if (this._clearSeriesDifferentiationMetadata(
|
|
721
|
+
const r = this._getLegendSeriesDifferentiationTargets(s);
|
|
722
|
+
if (this._clearSeriesDifferentiationMetadata(s == null ? void 0 : s.graph), this._clearSeriesDifferentiationMetadata(s == null ? void 0 : s.area), this._clearSeriesDifferentiationColorClass(s == null ? void 0 : s.area), (l = s.points) == null || l.forEach((d) => {
|
|
709
723
|
const p = this._getLegendSeriesDifferentiationTargets(d);
|
|
710
|
-
this._clearSeriesDifferentiationMetadata(d == null ? void 0 : d.graphic), this._clearSeriesDifferentiationColorClass(d == null ? void 0 : d.graphic), p.graphTargets.forEach((
|
|
711
|
-
this._clearSeriesDifferentiationMetadata(
|
|
712
|
-
}), p.fillTargets.forEach((
|
|
713
|
-
this._clearSeriesDifferentiationMetadata(
|
|
724
|
+
this._clearSeriesDifferentiationMetadata(d == null ? void 0 : d.graphic), this._clearSeriesDifferentiationColorClass(d == null ? void 0 : d.graphic), p.graphTargets.forEach((v) => {
|
|
725
|
+
this._clearSeriesDifferentiationMetadata(v);
|
|
726
|
+
}), p.fillTargets.forEach((v) => {
|
|
727
|
+
this._clearSeriesDifferentiationMetadata(v), this._clearSeriesDifferentiationColorClass(v);
|
|
714
728
|
});
|
|
715
729
|
}), r.graphTargets.forEach((d) => {
|
|
716
730
|
this._clearSeriesDifferentiationMetadata(d);
|
|
717
731
|
}), r.fillTargets.forEach((d) => {
|
|
718
732
|
this._clearSeriesDifferentiationMetadata(d), this._clearSeriesDifferentiationColorClass(d);
|
|
719
733
|
}), o === "line" || o === "area") {
|
|
720
|
-
const d = i.get(String((
|
|
721
|
-
|
|
734
|
+
const d = i.get(String((s == null ? void 0 : s.index) ?? n));
|
|
735
|
+
s.update(
|
|
722
736
|
{
|
|
723
737
|
marker: this._cloneSeriesOptionValue(d == null ? void 0 : d.marker)
|
|
724
738
|
},
|
|
@@ -744,8 +758,8 @@ let b = class extends mt {
|
|
|
744
758
|
return `${this._getExportBaseFileName()}${e}.${t}`;
|
|
745
759
|
}
|
|
746
760
|
_renderActionsMenu() {
|
|
747
|
-
const t = this._getCurrentPrintableView(), e = this._canExportRaster(), i = this._canExportCsv(),
|
|
748
|
-
return
|
|
761
|
+
const t = this._getCurrentPrintableView(), e = this._canExportRaster(), i = this._canExportCsv(), a = e && (t === "diagram" || t === "image"), s = i && t === "table", n = this._shouldShowSeriesDifferentiationAction();
|
|
762
|
+
return b`
|
|
749
763
|
<div class="actions-menu">
|
|
750
764
|
<scb-icon-button
|
|
751
765
|
icon="more_vert"
|
|
@@ -776,7 +790,7 @@ let b = class extends mt {
|
|
|
776
790
|
<span class="actions-menu-item-label">${this.printLabel}</span>
|
|
777
791
|
</button>
|
|
778
792
|
</li>
|
|
779
|
-
${
|
|
793
|
+
${a ? b`
|
|
780
794
|
<li>
|
|
781
795
|
<button
|
|
782
796
|
type="button"
|
|
@@ -800,7 +814,7 @@ let b = class extends mt {
|
|
|
800
814
|
</button>
|
|
801
815
|
</li>
|
|
802
816
|
` : ""}
|
|
803
|
-
${
|
|
817
|
+
${s ? b`
|
|
804
818
|
<li>
|
|
805
819
|
<button
|
|
806
820
|
type="button"
|
|
@@ -813,7 +827,7 @@ let b = class extends mt {
|
|
|
813
827
|
</button>
|
|
814
828
|
</li>
|
|
815
829
|
` : ""}
|
|
816
|
-
${
|
|
830
|
+
${n ? b`
|
|
817
831
|
<li>
|
|
818
832
|
<button
|
|
819
833
|
type="button"
|
|
@@ -835,9 +849,9 @@ let b = class extends mt {
|
|
|
835
849
|
`;
|
|
836
850
|
}
|
|
837
851
|
_renderActions() {
|
|
838
|
-
return
|
|
852
|
+
return b`
|
|
839
853
|
<div class="actions-row">
|
|
840
|
-
${this.variant === "Standard" && !this.disableToggle ?
|
|
854
|
+
${this.variant === "Standard" && !this.disableToggle ? b`
|
|
841
855
|
<div class="flipp-wrapper">
|
|
842
856
|
<scb-segmented-button
|
|
843
857
|
.value=${this.selectedChip || ""}
|
|
@@ -855,19 +869,19 @@ let b = class extends mt {
|
|
|
855
869
|
></scb-segmented-item>
|
|
856
870
|
</scb-segmented-button>
|
|
857
871
|
</div>
|
|
858
|
-
` :
|
|
872
|
+
` : b`<div></div>`}
|
|
859
873
|
${this._renderActionsMenu()}
|
|
860
874
|
</div>
|
|
861
875
|
`;
|
|
862
876
|
}
|
|
863
877
|
_renderHeader(t = !1) {
|
|
864
|
-
const e =
|
|
878
|
+
const e = b`
|
|
865
879
|
<div class="header">
|
|
866
|
-
${this.title ?
|
|
867
|
-
${this.subtitle ?
|
|
880
|
+
${this.title ? b` <div class="label" role="heading" aria-level="2">${this.title}</div> ` : ""}
|
|
881
|
+
${this.subtitle ? b` <div class="sub-label">${this.subtitle}</div> ` : ""}
|
|
868
882
|
</div>
|
|
869
883
|
`;
|
|
870
|
-
return t ?
|
|
884
|
+
return t ? b`
|
|
871
885
|
<div class="header-row">
|
|
872
886
|
${e}
|
|
873
887
|
${this._renderActionsMenu()}
|
|
@@ -881,32 +895,32 @@ let b = class extends mt {
|
|
|
881
895
|
const e = this._inferTableAlignments(t), i = Math.max(
|
|
882
896
|
((r = t.headers) == null ? void 0 : r.length) ?? 0,
|
|
883
897
|
...t.rows.map((l) => l.length)
|
|
884
|
-
),
|
|
898
|
+
), a = (t.headers ?? []).map((l) => this._normalizeRenderableCell(l)), s = t.rows.map((l) => {
|
|
885
899
|
const d = l.map((p) => this._normalizeRenderableCell(p));
|
|
886
900
|
for (; d.length < i; ) d.push({ html: "", text: "" });
|
|
887
901
|
return d;
|
|
888
|
-
}),
|
|
889
|
-
return
|
|
902
|
+
}), n = t.rowHeaderRows ?? [], o = [this.title, this.subtitle].map((l) => typeof l == "string" ? l.trim() : "").filter(Boolean).join(". ");
|
|
903
|
+
return b`
|
|
890
904
|
<table class="scb-viz-table" part="table">
|
|
891
|
-
${o ?
|
|
892
|
-
${
|
|
905
|
+
${o ? b`<caption class="visually-hidden">${o}</caption>` : ""}
|
|
906
|
+
${a.length > 0 ? b`
|
|
893
907
|
<thead>
|
|
894
908
|
<tr>
|
|
895
|
-
${
|
|
909
|
+
${a.map((l, d) => {
|
|
896
910
|
const p = e[d] === "right" ? "align-right" : "align-left";
|
|
897
|
-
return
|
|
911
|
+
return b`<th scope="col" class=${p}>${l.html ? Y(l.html) : l.text}</th>`;
|
|
898
912
|
})}
|
|
899
913
|
</tr>
|
|
900
914
|
</thead>
|
|
901
915
|
` : ""}
|
|
902
916
|
<tbody>
|
|
903
|
-
${
|
|
904
|
-
const p =
|
|
905
|
-
return
|
|
917
|
+
${s.map((l, d) => {
|
|
918
|
+
const p = n[d] === !0;
|
|
919
|
+
return b`
|
|
906
920
|
<tr>
|
|
907
|
-
${l.map((
|
|
908
|
-
const z = e[
|
|
909
|
-
return
|
|
921
|
+
${l.map((v, _) => {
|
|
922
|
+
const z = e[_] === "right" ? "align-right" : "align-left", f = v.html ? Y(v.html) : v.text;
|
|
923
|
+
return _ === 0 && p ? b`<th scope="row" class=${z}>${f}</th>` : b`<td class=${z}>${f}</td>`;
|
|
910
924
|
})}
|
|
911
925
|
</tr>
|
|
912
926
|
`;
|
|
@@ -919,27 +933,27 @@ let b = class extends mt {
|
|
|
919
933
|
return !!(this.comment || this.source || this.footnote || this.officialStatistics);
|
|
920
934
|
}
|
|
921
935
|
_renderMoreAboutStatsContent() {
|
|
922
|
-
return
|
|
936
|
+
return b`
|
|
923
937
|
<div class="more-about-stats-content">
|
|
924
|
-
${this.comment ?
|
|
938
|
+
${this.comment ? b`
|
|
925
939
|
<div class="section">
|
|
926
940
|
<div class="secondary-label" role="heading" aria-level="3">${this.commentLabel}</div>
|
|
927
941
|
<div class="body-text">${this.comment}</div>
|
|
928
942
|
</div>
|
|
929
943
|
` : ""}
|
|
930
|
-
${this.source ?
|
|
944
|
+
${this.source ? b`
|
|
931
945
|
<div class="section">
|
|
932
946
|
<div class="secondary-label" role="heading" aria-level="3">${this.sourceLabel}</div>
|
|
933
947
|
<div class="body-text">${this.source}</div>
|
|
934
948
|
</div>
|
|
935
949
|
` : ""}
|
|
936
|
-
${this.footnote ?
|
|
950
|
+
${this.footnote ? b`
|
|
937
951
|
<div class="section">
|
|
938
952
|
<div class="secondary-label" role="heading" aria-level="3">${this.footnoteLabel}</div>
|
|
939
953
|
<div class="body-text">${this.footnote}</div>
|
|
940
954
|
</div>
|
|
941
955
|
` : ""}
|
|
942
|
-
${this.officialStatistics ?
|
|
956
|
+
${this.officialStatistics ? b`
|
|
943
957
|
<a
|
|
944
958
|
class="sos-logotype-link"
|
|
945
959
|
href="https://www.scb.se/sos"
|
|
@@ -949,7 +963,7 @@ let b = class extends mt {
|
|
|
949
963
|
aria-label="${this.officialStatisticsAlt}"
|
|
950
964
|
>
|
|
951
965
|
<span class="sos-logotype-small" aria-hidden="true">
|
|
952
|
-
${bt(
|
|
966
|
+
${bt(ft)}
|
|
953
967
|
</span>
|
|
954
968
|
</a>
|
|
955
969
|
` : ""}
|
|
@@ -957,7 +971,7 @@ let b = class extends mt {
|
|
|
957
971
|
`;
|
|
958
972
|
}
|
|
959
973
|
_renderMoreAboutStatsScreen() {
|
|
960
|
-
return this._hasMoreAboutStats() ?
|
|
974
|
+
return this._hasMoreAboutStats() ? b`
|
|
961
975
|
<div class="footer-statistics-screen">
|
|
962
976
|
<scb-divider></scb-divider>
|
|
963
977
|
<scb-accordion>
|
|
@@ -969,7 +983,7 @@ let b = class extends mt {
|
|
|
969
983
|
` : "";
|
|
970
984
|
}
|
|
971
985
|
_renderMoreAboutStatsPrint() {
|
|
972
|
-
return this._hasMoreAboutStats() ?
|
|
986
|
+
return this._hasMoreAboutStats() ? b`
|
|
973
987
|
<div class="footer-statistics-print print-more-about-stats">
|
|
974
988
|
<div class="secondary-label print-more-about-stats-heading" role="heading" aria-level="3">
|
|
975
989
|
${this.moreAboutStatsLabel}
|
|
@@ -979,9 +993,9 @@ let b = class extends mt {
|
|
|
979
993
|
` : "";
|
|
980
994
|
}
|
|
981
995
|
_renderFooter() {
|
|
982
|
-
return
|
|
996
|
+
return b`
|
|
983
997
|
<div class="footer">
|
|
984
|
-
${this.description ?
|
|
998
|
+
${this.description ? b`
|
|
985
999
|
<div class="description section">
|
|
986
1000
|
<div class="secondary-label" role="heading" aria-level="3">${this.descriptionLabel}</div>
|
|
987
1001
|
<div class="body-text">${this.description}</div>
|
|
@@ -995,7 +1009,7 @@ let b = class extends mt {
|
|
|
995
1009
|
render() {
|
|
996
1010
|
switch (this.variant) {
|
|
997
1011
|
case "Table":
|
|
998
|
-
return
|
|
1012
|
+
return b`
|
|
999
1013
|
<div part="container" class="viz-container">
|
|
1000
1014
|
${this._renderHeader(!0)}
|
|
1001
1015
|
<div class="content">
|
|
@@ -1018,7 +1032,7 @@ let b = class extends mt {
|
|
|
1018
1032
|
</div>
|
|
1019
1033
|
`;
|
|
1020
1034
|
case "Image":
|
|
1021
|
-
return
|
|
1035
|
+
return b`
|
|
1022
1036
|
<div part="container" class="viz-container">
|
|
1023
1037
|
${this._renderHeader(!0)}
|
|
1024
1038
|
<div
|
|
@@ -1037,7 +1051,7 @@ let b = class extends mt {
|
|
|
1037
1051
|
</div>
|
|
1038
1052
|
`;
|
|
1039
1053
|
default:
|
|
1040
|
-
return
|
|
1054
|
+
return b`
|
|
1041
1055
|
<div part="container" class="viz-container">
|
|
1042
1056
|
${this._renderHeader()}
|
|
1043
1057
|
${this._renderActions()}
|
|
@@ -1048,26 +1062,19 @@ let b = class extends mt {
|
|
|
1048
1062
|
<div
|
|
1049
1063
|
class=${`standard-content-panel standard-content-panel--diagram ${this.selectedChip === "Diagram" ? "standard-content-panel--active" : ""}`}
|
|
1050
1064
|
>
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
` : m`
|
|
1065
|
-
<div class="standard-diagram-scroller">
|
|
1066
|
-
<div class="diagram-content">
|
|
1067
|
-
<slot name="diagram" @slotchange=${this._onDiagramSlotChange}></slot>
|
|
1068
|
-
</div>
|
|
1069
|
-
</div>
|
|
1070
|
-
`}
|
|
1065
|
+
<scb-horizontal-scroller
|
|
1066
|
+
width=${this._getResolvedDiagramScrollerWidth()}
|
|
1067
|
+
class="standard-diagram-scroller"
|
|
1068
|
+
variant="inline"
|
|
1069
|
+
show-scrollbar
|
|
1070
|
+
>
|
|
1071
|
+
<div
|
|
1072
|
+
class="diagram-content"
|
|
1073
|
+
style=${this._getResolvedContentMaxWidth() ? `--scb-viz-content-max-width: ${this._getResolvedContentMaxWidth()};` : ""}
|
|
1074
|
+
>
|
|
1075
|
+
<slot name="diagram" @slotchange=${this._onDiagramSlotChange}></slot>
|
|
1076
|
+
</div>
|
|
1077
|
+
</scb-horizontal-scroller>
|
|
1071
1078
|
</div>
|
|
1072
1079
|
<div
|
|
1073
1080
|
class=${`standard-content-panel standard-content-panel--table ${this.selectedChip === "Table" ? "standard-content-panel--active" : ""}`}
|
|
@@ -1156,115 +1163,115 @@ let b = class extends mt {
|
|
|
1156
1163
|
}
|
|
1157
1164
|
};
|
|
1158
1165
|
c = /* @__PURE__ */ new WeakSet();
|
|
1159
|
-
|
|
1166
|
+
k = function() {
|
|
1160
1167
|
var e;
|
|
1161
1168
|
if (h(this, c, I).call(this), typeof ResizeObserver > "u") return;
|
|
1162
1169
|
const t = (e = this.shadowRoot) == null ? void 0 : e.querySelector(".diagram-content");
|
|
1163
1170
|
t && (this._diagramResizeObserver = new ResizeObserver(() => {
|
|
1164
|
-
h(this, c,
|
|
1171
|
+
h(this, c, D).call(this);
|
|
1165
1172
|
}), this._diagramResizeObserver.observe(this), this._diagramResizeObserver.observe(t));
|
|
1166
1173
|
};
|
|
1167
1174
|
I = function() {
|
|
1168
1175
|
var t;
|
|
1169
1176
|
(t = this._diagramResizeObserver) == null || t.disconnect(), this._diagramResizeObserver = void 0;
|
|
1170
1177
|
};
|
|
1171
|
-
|
|
1178
|
+
q = function() {
|
|
1172
1179
|
this._diagramReflowFrame && (cancelAnimationFrame(this._diagramReflowFrame), this._diagramReflowFrame = 0);
|
|
1173
1180
|
};
|
|
1174
|
-
|
|
1175
|
-
this.variant !== "Standard" || this.selectedChip !== "Diagram" || (h(this, c,
|
|
1181
|
+
D = function() {
|
|
1182
|
+
this.variant !== "Standard" || this.selectedChip !== "Diagram" || (h(this, c, q).call(this), this._diagramReflowFrame = requestAnimationFrame(() => {
|
|
1176
1183
|
this._diagramReflowFrame = requestAnimationFrame(() => {
|
|
1177
1184
|
this._diagramReflowFrame = 0, h(this, c, Q).call(this);
|
|
1178
1185
|
});
|
|
1179
1186
|
}));
|
|
1180
1187
|
};
|
|
1181
|
-
|
|
1188
|
+
T = function(t) {
|
|
1182
1189
|
const e = t == null ? void 0 : t.getAttribute("data-highcharts-chart");
|
|
1183
1190
|
if (!e) return;
|
|
1184
1191
|
const i = Number.parseInt(e, 10);
|
|
1185
1192
|
return Number.isNaN(i) ? void 0 : i;
|
|
1186
1193
|
};
|
|
1187
|
-
|
|
1194
|
+
O = function(t) {
|
|
1188
1195
|
for (const e of t) {
|
|
1189
|
-
const i = h(this, c,
|
|
1196
|
+
const i = h(this, c, T).call(this, e);
|
|
1190
1197
|
if (i !== void 0) return i;
|
|
1191
|
-
const
|
|
1192
|
-
if (
|
|
1198
|
+
const a = e.querySelector("[data-highcharts-chart]"), s = h(this, c, T).call(this, a);
|
|
1199
|
+
if (s !== void 0) return s;
|
|
1193
1200
|
}
|
|
1194
1201
|
};
|
|
1195
1202
|
Q = function() {
|
|
1196
|
-
var
|
|
1203
|
+
var n, o, r, l;
|
|
1197
1204
|
if (this.variant !== "Standard" || this.selectedChip !== "Diagram") return;
|
|
1198
|
-
const t = (
|
|
1205
|
+
const t = (n = this.shadowRoot) == null ? void 0 : n.querySelector('slot[name="diagram"]');
|
|
1199
1206
|
if (!t) return;
|
|
1200
1207
|
const e = t.assignedElements({ flatten: !0 });
|
|
1201
1208
|
if (e.length === 0) return;
|
|
1202
|
-
const i = h(this, c,
|
|
1209
|
+
const i = h(this, c, O).call(this, e);
|
|
1203
1210
|
if (i === void 0) return;
|
|
1204
|
-
const
|
|
1205
|
-
|
|
1211
|
+
const a = window.Highcharts, s = (o = a == null ? void 0 : a.charts) == null ? void 0 : o[i];
|
|
1212
|
+
s && ((r = s.setSize) == null || r.call(s, null, null, !1), (l = s.reflow) == null || l.call(s), this._seriesDifferentiationEnabled && h(this, c, A).call(this));
|
|
1206
1213
|
};
|
|
1207
|
-
|
|
1214
|
+
E = function() {
|
|
1208
1215
|
const t = this.variant === "Standard" ? this._getResolvedDiagramHeight() : "", e = this.variant === "Standard" && this._getResolvedToggleHeightMode() === "stable" ? this._getResolvedStandardContentHeight() : "";
|
|
1209
|
-
this.variant === "Standard" ? this.style.setProperty("--scb-viz-diagram-min-height", t || "
|
|
1216
|
+
this.variant === "Standard" ? this.style.setProperty("--scb-viz-diagram-min-height", t || "600px") : this.style.removeProperty("--scb-viz-diagram-min-height"), t ? (this.style.setProperty("--scb-viz-diagram-height", t), this.style.setProperty("--scb-viz-diagram-overflow", "hidden")) : (this.style.removeProperty("--scb-viz-diagram-height"), this.style.removeProperty("--scb-viz-diagram-overflow")), e ? this.style.setProperty("--scb-viz-standard-content-height", e) : this.style.removeProperty("--scb-viz-standard-content-height");
|
|
1210
1217
|
};
|
|
1211
|
-
|
|
1218
|
+
G = function() {
|
|
1212
1219
|
this._chartConfigSyncFrame && (cancelAnimationFrame(this._chartConfigSyncFrame), this._chartConfigSyncFrame = 0);
|
|
1213
1220
|
};
|
|
1214
|
-
|
|
1215
|
-
h(this, c,
|
|
1221
|
+
R = function() {
|
|
1222
|
+
h(this, c, G).call(this), this._chartConfigSyncFrame = requestAnimationFrame(() => {
|
|
1216
1223
|
this._chartConfigSyncFrame = requestAnimationFrame(() => {
|
|
1217
|
-
this._chartConfigSyncFrame = 0, h(this, c,
|
|
1224
|
+
this._chartConfigSyncFrame = 0, h(this, c, tt).call(this);
|
|
1218
1225
|
});
|
|
1219
1226
|
});
|
|
1220
1227
|
};
|
|
1221
|
-
|
|
1228
|
+
tt = function() {
|
|
1222
1229
|
const t = this._getCurrentHighchartsChart();
|
|
1223
1230
|
if (!t) return;
|
|
1224
1231
|
let e = !1;
|
|
1225
1232
|
typeof this.timeFormat < "u" && (this._applyTimeFormatToLiveChart(t), e = !0), typeof this.valueFormat < "u" && (this._applyValueFormatToLiveChart(t), e = !0), typeof this.yAxisSettings < "u" && (this._applyYAxisSettingsToLiveChart(t), e = !0), e && t.redraw(!1);
|
|
1226
1233
|
};
|
|
1227
|
-
|
|
1234
|
+
et = function(t) {
|
|
1228
1235
|
this._isHighchartsStyledMode(t) && this._applyStyledModeSeriesDifferentiation(t);
|
|
1229
1236
|
};
|
|
1230
|
-
|
|
1237
|
+
it = function(t) {
|
|
1231
1238
|
this._isHighchartsStyledMode(t) && this._restoreStyledModeSeriesDifferentiation(t);
|
|
1232
1239
|
};
|
|
1233
|
-
|
|
1240
|
+
A = function() {
|
|
1234
1241
|
const t = this._getCurrentHighchartsChart();
|
|
1235
1242
|
if (t) {
|
|
1236
1243
|
if (this._seriesDifferentiationEnabled) {
|
|
1237
|
-
h(this, c,
|
|
1244
|
+
h(this, c, et).call(this, t);
|
|
1238
1245
|
return;
|
|
1239
1246
|
}
|
|
1240
|
-
h(this, c,
|
|
1247
|
+
h(this, c, it).call(this, t);
|
|
1241
1248
|
}
|
|
1242
1249
|
};
|
|
1243
|
-
|
|
1250
|
+
H = async function(t) {
|
|
1244
1251
|
const e = this._getExportableVisualElement();
|
|
1245
1252
|
if (!e) return;
|
|
1246
|
-
const i = await h(this, c,
|
|
1247
|
-
i && h(this, c,
|
|
1253
|
+
const i = await h(this, c, ct).call(this, e, t);
|
|
1254
|
+
i && h(this, c, U).call(this, i, this._buildExportFileName(t === "jpeg" ? "jpg" : "png"));
|
|
1248
1255
|
};
|
|
1249
1256
|
S = function(t) {
|
|
1250
1257
|
return String(t ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1251
1258
|
};
|
|
1252
|
-
|
|
1259
|
+
st = function(t) {
|
|
1253
1260
|
var l;
|
|
1254
|
-
const e = this._inferTableAlignments(t), i = Math.max(((l = t.headers) == null ? void 0 : l.length) ?? 0, ...t.rows.map((d) => d.length)),
|
|
1255
|
-
const p = d.map((
|
|
1261
|
+
const e = this._inferTableAlignments(t), i = Math.max(((l = t.headers) == null ? void 0 : l.length) ?? 0, ...t.rows.map((d) => d.length)), a = (t.headers ?? []).map((d) => this._normalizeRenderableCell(d)), s = t.rows.map((d) => {
|
|
1262
|
+
const p = d.map((v) => this._normalizeRenderableCell(v));
|
|
1256
1263
|
for (; p.length < i; ) p.push({ html: "", text: "" });
|
|
1257
1264
|
return p;
|
|
1258
|
-
}),
|
|
1259
|
-
const
|
|
1265
|
+
}), n = t.rowHeaderRows ?? [], o = a.length ? `<thead><tr>${a.map((d, p) => `<th scope="col" class="${e[p] === "right" ? "align-right" : "align-left"}">${d.html || h(this, c, S).call(this, d.text)}</th>`).join("")}</tr></thead>` : "", r = `<tbody>${s.map((d, p) => {
|
|
1266
|
+
const v = n[p] === !0;
|
|
1260
1267
|
return `<tr>${d.map((z, f) => {
|
|
1261
|
-
const
|
|
1262
|
-
return f === 0 &&
|
|
1268
|
+
const u = e[f] === "right" ? "align-right" : "align-left", g = z.html || h(this, c, S).call(this, z.text);
|
|
1269
|
+
return f === 0 && v ? `<th scope="row" class="${u}">${g}</th>` : `<td class="${u}">${g}</td>`;
|
|
1263
1270
|
}).join("")}</tr>`;
|
|
1264
1271
|
}).join("")}</tbody>`;
|
|
1265
1272
|
return `<table class="scb-viz-print-table">${o}${r}</table>`;
|
|
1266
1273
|
};
|
|
1267
|
-
|
|
1274
|
+
at = function() {
|
|
1268
1275
|
const t = [];
|
|
1269
1276
|
if (this.description && t.push(`
|
|
1270
1277
|
<section class="print-section">
|
|
@@ -1289,7 +1296,7 @@ nt = function() {
|
|
|
1289
1296
|
<div>${h(this, c, S).call(this, this.footnote)}</div>
|
|
1290
1297
|
</section>
|
|
1291
1298
|
`), this.officialStatistics && e.push(`
|
|
1292
|
-
<div class="print-sos">${
|
|
1299
|
+
<div class="print-sos">${ft}</div>
|
|
1293
1300
|
`), t.push(`
|
|
1294
1301
|
<section class="print-section print-more-about-stats">
|
|
1295
1302
|
<h2>${h(this, c, S).call(this, this.moreAboutStatsLabel)}</h2>
|
|
@@ -1299,7 +1306,7 @@ nt = function() {
|
|
|
1299
1306
|
}
|
|
1300
1307
|
return t.join("");
|
|
1301
1308
|
};
|
|
1302
|
-
|
|
1309
|
+
nt = function(t) {
|
|
1303
1310
|
return `<!doctype html>
|
|
1304
1311
|
<html lang="${h(this, c, S).call(this, this.lang || "sv")}">
|
|
1305
1312
|
<head>
|
|
@@ -1347,57 +1354,57 @@ st = function(t) {
|
|
|
1347
1354
|
${this.subtitle ? `<div class="viz-subtitle">${h(this, c, S).call(this, this.subtitle)}</div>` : ""}
|
|
1348
1355
|
</header>
|
|
1349
1356
|
<div class="viz-content">${t}</div>
|
|
1350
|
-
${h(this, c,
|
|
1357
|
+
${h(this, c, at).call(this)}
|
|
1351
1358
|
</article>
|
|
1352
1359
|
</body>
|
|
1353
1360
|
</html>`;
|
|
1354
1361
|
};
|
|
1355
|
-
|
|
1362
|
+
rt = async function(t) {
|
|
1356
1363
|
const e = document.createElement("iframe");
|
|
1357
1364
|
e.setAttribute("aria-hidden", "true"), e.style.position = "fixed", e.style.right = "0", e.style.bottom = "0", e.style.width = "0", e.style.height = "0", e.style.border = "0", e.style.visibility = "hidden", document.body.appendChild(e);
|
|
1358
1365
|
const i = () => {
|
|
1359
1366
|
e.remove();
|
|
1360
|
-
},
|
|
1361
|
-
if (!
|
|
1367
|
+
}, a = e.contentDocument, s = e.contentWindow;
|
|
1368
|
+
if (!a || !s) {
|
|
1362
1369
|
i();
|
|
1363
1370
|
return;
|
|
1364
1371
|
}
|
|
1365
|
-
|
|
1366
|
-
const
|
|
1372
|
+
a.open(), a.write(t), a.close();
|
|
1373
|
+
const n = Array.from(a.images || []);
|
|
1367
1374
|
await Promise.all(
|
|
1368
|
-
|
|
1375
|
+
n.map((r) => r.complete ? Promise.resolve() : new Promise((l) => {
|
|
1369
1376
|
r.addEventListener("load", () => l(null), { once: !0 }), r.addEventListener("error", () => l(null), { once: !0 });
|
|
1370
1377
|
}))
|
|
1371
1378
|
);
|
|
1372
1379
|
const o = () => {
|
|
1373
|
-
|
|
1380
|
+
s.removeEventListener("afterprint", o), i();
|
|
1374
1381
|
};
|
|
1375
|
-
|
|
1376
|
-
|
|
1382
|
+
s.addEventListener("afterprint", o, { once: !0 }), setTimeout(() => {
|
|
1383
|
+
s.focus(), s.print(), setTimeout(i, 1e3);
|
|
1377
1384
|
}, 50);
|
|
1378
1385
|
};
|
|
1379
|
-
|
|
1380
|
-
var i,
|
|
1386
|
+
ot = async function() {
|
|
1387
|
+
var i, a;
|
|
1381
1388
|
const t = this._getCurrentPrintableView();
|
|
1382
1389
|
let e = "";
|
|
1383
1390
|
if (t === "table") {
|
|
1384
|
-
const
|
|
1385
|
-
if (!((i =
|
|
1386
|
-
e = h(this, c,
|
|
1391
|
+
const s = this._getResolvedTableData();
|
|
1392
|
+
if (!((i = s == null ? void 0 : s.rows) != null && i.length)) return;
|
|
1393
|
+
e = h(this, c, st).call(this, s);
|
|
1387
1394
|
} else if (t === "image") {
|
|
1388
|
-
const
|
|
1389
|
-
if (!
|
|
1390
|
-
e = `<img class="viz-image" src="${h(this, c, S).call(this,
|
|
1395
|
+
const s = (a = this.shadowRoot) == null ? void 0 : a.querySelector(".image-content img"), n = (s == null ? void 0 : s.currentSrc) || (s == null ? void 0 : s.src) || this.imageHref;
|
|
1396
|
+
if (!n) return;
|
|
1397
|
+
e = `<img class="viz-image" src="${h(this, c, S).call(this, n)}" alt="${h(this, c, S).call(this, this._getImageAltText())}">`;
|
|
1391
1398
|
} else {
|
|
1392
|
-
const
|
|
1399
|
+
const s = this._getExportableVisualElement();
|
|
1400
|
+
if (!s) return;
|
|
1401
|
+
const n = await h(this, c, ht).call(this, s, "png");
|
|
1393
1402
|
if (!n) return;
|
|
1394
|
-
|
|
1395
|
-
if (!a) return;
|
|
1396
|
-
e = `<img class="viz-chart-image" src="${a}" alt="${h(this, c, S).call(this, this._getImageAltText())}">`;
|
|
1403
|
+
e = `<img class="viz-chart-image" src="${n}" alt="${h(this, c, S).call(this, this._getImageAltText())}">`;
|
|
1397
1404
|
}
|
|
1398
|
-
await h(this, c,
|
|
1405
|
+
await h(this, c, rt).call(this, h(this, c, nt).call(this, e));
|
|
1399
1406
|
};
|
|
1400
|
-
|
|
1407
|
+
lt = function() {
|
|
1401
1408
|
var o, r;
|
|
1402
1409
|
const t = this._getResolvedTableData();
|
|
1403
1410
|
if (!((o = t == null ? void 0 : t.rows) != null && o.length)) return;
|
|
@@ -1405,110 +1412,110 @@ ot = function() {
|
|
|
1405
1412
|
(r = t.headers) != null && r.length && i.push(t.headers.map((l) => this._normalizeRenderableCell(l).text)), t.rows.forEach((l) => {
|
|
1406
1413
|
i.push(l.map((d) => this._normalizeRenderableCell(d).text));
|
|
1407
1414
|
});
|
|
1408
|
-
const
|
|
1409
|
-
`)}`,
|
|
1410
|
-
h(this, c,
|
|
1411
|
-
};
|
|
1412
|
-
lt = async function(t, e) {
|
|
1413
|
-
const i = await h(this, c, G).call(this, t);
|
|
1414
|
-
return i ? h(this, c, gt).call(this, i, e === "jpeg" ? "image/jpeg" : "image/png", e === "jpeg" ? 0.92 : void 0) : null;
|
|
1415
|
+
const a = (l) => `"${String(l ?? "").replace(/\r?\n/g, " ").replace(/"/g, '""')}"`, s = `\uFEFF${i.map((l) => l.map(a).join(e)).join(`\r
|
|
1416
|
+
`)}`, n = new Blob([s], { type: "text/csv;charset=utf-8;" });
|
|
1417
|
+
h(this, c, U).call(this, n, this._buildExportFileName("csv"));
|
|
1415
1418
|
};
|
|
1416
1419
|
ct = async function(t, e) {
|
|
1417
|
-
const i = await h(this, c,
|
|
1420
|
+
const i = await h(this, c, B).call(this, t);
|
|
1421
|
+
return i ? h(this, c, pt).call(this, i, e === "jpeg" ? "image/jpeg" : "image/png", e === "jpeg" ? 0.92 : void 0) : null;
|
|
1422
|
+
};
|
|
1423
|
+
ht = async function(t, e) {
|
|
1424
|
+
const i = await h(this, c, B).call(this, t);
|
|
1418
1425
|
return i ? i.toDataURL(
|
|
1419
1426
|
e === "jpeg" ? "image/jpeg" : "image/png",
|
|
1420
1427
|
e === "jpeg" ? 0.92 : void 0
|
|
1421
1428
|
) : null;
|
|
1422
1429
|
};
|
|
1423
|
-
|
|
1430
|
+
B = async function(t) {
|
|
1424
1431
|
if (t instanceof HTMLCanvasElement) {
|
|
1425
1432
|
const o = t.width || Math.round(t.getBoundingClientRect().width), r = t.height || Math.round(t.getBoundingClientRect().height);
|
|
1426
1433
|
if (!o || !r) return null;
|
|
1427
1434
|
const l = document.createElement("canvas");
|
|
1428
1435
|
l.width = o, l.height = r;
|
|
1429
1436
|
const d = l.getContext("2d");
|
|
1430
|
-
return d ? (d.fillStyle = h(this, c,
|
|
1437
|
+
return d ? (d.fillStyle = h(this, c, W).call(this), d.fillRect(0, 0, o, r), d.drawImage(t, 0, 0, o, r), l) : null;
|
|
1431
1438
|
}
|
|
1432
1439
|
if (t instanceof HTMLImageElement) {
|
|
1433
1440
|
const o = t.naturalWidth || t.width, r = t.naturalHeight || t.height;
|
|
1434
|
-
return !o || !r ? null : h(this, c,
|
|
1441
|
+
return !o || !r ? null : h(this, c, P).call(this, t.currentSrc || t.src, o, r);
|
|
1435
1442
|
}
|
|
1436
|
-
const { width: e, height: i, serialized:
|
|
1437
|
-
if (!e || !i || !
|
|
1438
|
-
const
|
|
1443
|
+
const { width: e, height: i, serialized: a } = h(this, c, dt).call(this, t);
|
|
1444
|
+
if (!e || !i || !a) return null;
|
|
1445
|
+
const s = new Blob([a], { type: "image/svg+xml;charset=utf-8" }), n = URL.createObjectURL(s);
|
|
1439
1446
|
try {
|
|
1440
|
-
return await h(this, c,
|
|
1447
|
+
return await h(this, c, P).call(this, n, e, i);
|
|
1441
1448
|
} finally {
|
|
1442
|
-
URL.revokeObjectURL(
|
|
1449
|
+
URL.revokeObjectURL(n);
|
|
1443
1450
|
}
|
|
1444
1451
|
};
|
|
1445
|
-
|
|
1452
|
+
dt = function(t) {
|
|
1446
1453
|
var o;
|
|
1447
|
-
const e = t.cloneNode(!0), i = t.getBoundingClientRect(),
|
|
1448
|
-
return e.setAttribute("xmlns", "http://www.w3.org/2000/svg"), e.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), !e.getAttribute("width") &&
|
|
1449
|
-
width:
|
|
1450
|
-
height:
|
|
1454
|
+
const e = t.cloneNode(!0), i = t.getBoundingClientRect(), a = (o = t.viewBox) == null ? void 0 : o.baseVal, s = Math.round((a == null ? void 0 : a.width) || i.width || Number(t.getAttribute("width")) || 0), n = Math.round((a == null ? void 0 : a.height) || i.height || Number(t.getAttribute("height")) || 0);
|
|
1455
|
+
return e.setAttribute("xmlns", "http://www.w3.org/2000/svg"), e.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), !e.getAttribute("width") && s && e.setAttribute("width", String(s)), !e.getAttribute("height") && n && e.setAttribute("height", String(n)), !e.getAttribute("viewBox") && s && n && e.setAttribute("viewBox", `0 0 ${s} ${n}`), h(this, c, V).call(this, t, e), e.querySelectorAll(".highcharts-tooltip, .highcharts-contextmenu, .highcharts-a11y-proxy-container, .highcharts-a11y-dummy-point").forEach((r) => r.remove()), {
|
|
1456
|
+
width: s,
|
|
1457
|
+
height: n,
|
|
1451
1458
|
serialized: new XMLSerializer().serializeToString(e)
|
|
1452
1459
|
};
|
|
1453
1460
|
};
|
|
1454
|
-
|
|
1461
|
+
V = function(t, e) {
|
|
1455
1462
|
const i = getComputedStyle(t);
|
|
1456
|
-
let
|
|
1463
|
+
let a = "";
|
|
1457
1464
|
for (let o = 0; o < i.length; o += 1) {
|
|
1458
1465
|
const r = i[o], l = i.getPropertyValue(r);
|
|
1459
|
-
l && (
|
|
1466
|
+
l && (a += `${r}:${l};`);
|
|
1460
1467
|
}
|
|
1461
|
-
|
|
1462
|
-
const
|
|
1463
|
-
for (let o = 0; o <
|
|
1464
|
-
const r =
|
|
1465
|
-
r && l && h(this, c,
|
|
1468
|
+
a && e.setAttribute("style", a);
|
|
1469
|
+
const s = Array.from(t.children), n = Array.from(e.children);
|
|
1470
|
+
for (let o = 0; o < s.length; o += 1) {
|
|
1471
|
+
const r = s[o], l = n[o];
|
|
1472
|
+
r && l && h(this, c, V).call(this, r, l);
|
|
1466
1473
|
}
|
|
1467
1474
|
};
|
|
1468
|
-
|
|
1469
|
-
const
|
|
1470
|
-
o.width = Math.max(1, Math.round(
|
|
1475
|
+
P = async function(t, e, i) {
|
|
1476
|
+
const a = Math.max(1, Math.min(2, window.devicePixelRatio || 1)), s = Math.max(1, Math.round(e)), n = Math.max(1, Math.round(i)), o = document.createElement("canvas");
|
|
1477
|
+
o.width = Math.max(1, Math.round(s * a)), o.height = Math.max(1, Math.round(n * a));
|
|
1471
1478
|
const r = o.getContext("2d");
|
|
1472
1479
|
if (!r) return null;
|
|
1473
|
-
const l = await h(this, c,
|
|
1474
|
-
return l ? (r.scale(
|
|
1480
|
+
const l = await h(this, c, gt).call(this, t);
|
|
1481
|
+
return l ? (r.scale(a, a), r.fillStyle = h(this, c, W).call(this), r.fillRect(0, 0, s, n), r.drawImage(l, 0, 0, s, n), o) : null;
|
|
1475
1482
|
};
|
|
1476
|
-
|
|
1483
|
+
gt = function(t) {
|
|
1477
1484
|
return new Promise((e) => {
|
|
1478
1485
|
const i = new Image();
|
|
1479
1486
|
i.crossOrigin = "anonymous", i.onload = () => e(i), i.onerror = () => e(null), i.src = t;
|
|
1480
1487
|
});
|
|
1481
1488
|
};
|
|
1482
|
-
|
|
1483
|
-
return new Promise((
|
|
1484
|
-
t.toBlob((
|
|
1489
|
+
pt = function(t, e, i) {
|
|
1490
|
+
return new Promise((a) => {
|
|
1491
|
+
t.toBlob((s) => a(s), e, i);
|
|
1485
1492
|
});
|
|
1486
1493
|
};
|
|
1487
|
-
|
|
1494
|
+
W = function() {
|
|
1488
1495
|
var i;
|
|
1489
1496
|
const t = (i = this.shadowRoot) == null ? void 0 : i.querySelector(".viz-container"), e = getComputedStyle(t ?? this).backgroundColor;
|
|
1490
1497
|
return e && e !== "rgba(0, 0, 0, 0)" ? e : "#ffffff";
|
|
1491
1498
|
};
|
|
1492
|
-
|
|
1493
|
-
const i = URL.createObjectURL(t),
|
|
1494
|
-
|
|
1499
|
+
U = function(t, e) {
|
|
1500
|
+
const i = URL.createObjectURL(t), a = document.createElement("a");
|
|
1501
|
+
a.href = i, a.download = e, document.body.appendChild(a), a.click(), a.remove(), setTimeout(() => URL.revokeObjectURL(i), 0);
|
|
1495
1502
|
};
|
|
1496
|
-
|
|
1497
|
-
const t = h(this, c,
|
|
1498
|
-
e ? this.style.setProperty("--scb-viz-spacing-block-start", e) : this.style.removeProperty("--scb-viz-spacing-block-start"), i ? this.style.setProperty("--scb-viz-spacing-block-end", i) : this.style.removeProperty("--scb-viz-spacing-block-end"),
|
|
1503
|
+
F = function() {
|
|
1504
|
+
const t = h(this, c, $).call(this, this.spacing), e = h(this, c, $).call(this, this.spacingTop) ?? t, i = h(this, c, $).call(this, this.spacingBottom) ?? t, a = h(this, c, $).call(this, this.spacingLeft), s = h(this, c, $).call(this, this.spacingRight);
|
|
1505
|
+
e ? this.style.setProperty("--scb-viz-spacing-block-start", e) : this.style.removeProperty("--scb-viz-spacing-block-start"), i ? this.style.setProperty("--scb-viz-spacing-block-end", i) : this.style.removeProperty("--scb-viz-spacing-block-end"), a ? this.style.setProperty("--scb-viz-spacing-inline-start", a) : this.style.removeProperty("--scb-viz-spacing-inline-start"), s ? this.style.setProperty("--scb-viz-spacing-inline-end", s) : this.style.removeProperty("--scb-viz-spacing-inline-end");
|
|
1499
1506
|
};
|
|
1500
|
-
|
|
1507
|
+
$ = function(t) {
|
|
1501
1508
|
if (!t) return;
|
|
1502
1509
|
const e = String(t).trim();
|
|
1503
1510
|
if (e)
|
|
1504
1511
|
return /^\d+$/.test(e) ? `var(--spacing-${Math.max(0, Math.min(14, parseInt(e, 10)))})` : e;
|
|
1505
1512
|
};
|
|
1506
|
-
|
|
1513
|
+
N = function() {
|
|
1507
1514
|
var e;
|
|
1508
1515
|
const t = (e = this.containerMaxWidth) == null ? void 0 : e.trim();
|
|
1509
1516
|
t ? this.style.setProperty("--scb-viz-container-max-width", t) : this.style.removeProperty("--scb-viz-container-max-width");
|
|
1510
1517
|
};
|
|
1511
|
-
|
|
1518
|
+
m.styles = ut`
|
|
1512
1519
|
:host {
|
|
1513
1520
|
display: block;
|
|
1514
1521
|
box-sizing: border-box;
|
|
@@ -1878,7 +1885,7 @@ b.styles = ut`
|
|
|
1878
1885
|
.diagram-content {
|
|
1879
1886
|
width: 100%;
|
|
1880
1887
|
max-width: var(--scb-viz-content-max-width, 100%);
|
|
1881
|
-
min-height: var(--scb-viz-diagram-min-height,
|
|
1888
|
+
min-height: var(--scb-viz-diagram-min-height, 600px);
|
|
1882
1889
|
height: var(--scb-viz-diagram-height, auto);
|
|
1883
1890
|
overflow: var(--scb-viz-diagram-overflow, visible);
|
|
1884
1891
|
}
|
|
@@ -1888,7 +1895,7 @@ b.styles = ut`
|
|
|
1888
1895
|
width: 100%;
|
|
1889
1896
|
max-width: 100%;
|
|
1890
1897
|
min-width: 0;
|
|
1891
|
-
min-height: var(--scb-viz-diagram-min-height,
|
|
1898
|
+
min-height: var(--scb-viz-diagram-min-height, 600px);
|
|
1892
1899
|
height: var(--scb-viz-diagram-height, auto);
|
|
1893
1900
|
overflow: var(--scb-viz-diagram-overflow, visible);
|
|
1894
1901
|
}
|
|
@@ -1900,7 +1907,7 @@ b.styles = ut`
|
|
|
1900
1907
|
}
|
|
1901
1908
|
|
|
1902
1909
|
.standard-content-shell--stable {
|
|
1903
|
-
min-height: var(--scb-viz-standard-content-height, var(--scb-viz-diagram-min-height,
|
|
1910
|
+
min-height: var(--scb-viz-standard-content-height, var(--scb-viz-diagram-min-height, 600px));
|
|
1904
1911
|
}
|
|
1905
1912
|
|
|
1906
1913
|
.standard-content-panel {
|
|
@@ -1927,7 +1934,7 @@ b.styles = ut`
|
|
|
1927
1934
|
}
|
|
1928
1935
|
|
|
1929
1936
|
.standard-content-shell--stable .standard-content-panel--table.standard-content-panel--active {
|
|
1930
|
-
height: var(--scb-viz-standard-content-height, var(--scb-viz-diagram-min-height,
|
|
1937
|
+
height: var(--scb-viz-standard-content-height, var(--scb-viz-diagram-min-height, 600px));
|
|
1931
1938
|
min-height: 0;
|
|
1932
1939
|
overflow: hidden;
|
|
1933
1940
|
}
|
|
@@ -2140,93 +2147,93 @@ b.styles = ut`
|
|
|
2140
2147
|
}
|
|
2141
2148
|
}
|
|
2142
2149
|
`;
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
],
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
],
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
],
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
],
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
],
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
],
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
],
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
],
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
],
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
],
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
],
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
],
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
],
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
],
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
],
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
],
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
],
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
],
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
],
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
],
|
|
2203
|
-
|
|
2150
|
+
y([
|
|
2151
|
+
w({ type: String, reflect: !0 })
|
|
2152
|
+
], m.prototype, "variant", 2);
|
|
2153
|
+
y([
|
|
2154
|
+
w({ type: String, reflect: !0, attribute: "selected-chip" })
|
|
2155
|
+
], m.prototype, "selectedChip", 2);
|
|
2156
|
+
y([
|
|
2157
|
+
w({ type: String, reflect: !0 })
|
|
2158
|
+
], m.prototype, "title", 2);
|
|
2159
|
+
y([
|
|
2160
|
+
w({ type: String, reflect: !0 })
|
|
2161
|
+
], m.prototype, "subtitle", 2);
|
|
2162
|
+
y([
|
|
2163
|
+
w({ type: String, reflect: !0 })
|
|
2164
|
+
], m.prototype, "description", 2);
|
|
2165
|
+
y([
|
|
2166
|
+
w({ type: String, reflect: !0 })
|
|
2167
|
+
], m.prototype, "comment", 2);
|
|
2168
|
+
y([
|
|
2169
|
+
w({ type: String, reflect: !0 })
|
|
2170
|
+
], m.prototype, "source", 2);
|
|
2171
|
+
y([
|
|
2172
|
+
w({ type: String, reflect: !0 })
|
|
2173
|
+
], m.prototype, "footnote", 2);
|
|
2174
|
+
y([
|
|
2175
|
+
w({ type: String, reflect: !0, attribute: "lang" })
|
|
2176
|
+
], m.prototype, "lang", 2);
|
|
2177
|
+
y([
|
|
2178
|
+
w({ type: String, reflect: !0, attribute: "image-href" })
|
|
2179
|
+
], m.prototype, "imageHref", 2);
|
|
2180
|
+
y([
|
|
2181
|
+
w({ type: Boolean, reflect: !0, attribute: "official-statistics" })
|
|
2182
|
+
], m.prototype, "officialStatistics", 2);
|
|
2183
|
+
y([
|
|
2184
|
+
w({ type: Boolean, reflect: !0, attribute: "disable-toggle" })
|
|
2185
|
+
], m.prototype, "disableToggle", 2);
|
|
2186
|
+
y([
|
|
2187
|
+
w({ type: String, attribute: "content-max-width" })
|
|
2188
|
+
], m.prototype, "contentMaxWidth", 2);
|
|
2189
|
+
y([
|
|
2190
|
+
w({ type: String, attribute: "container-max-width" })
|
|
2191
|
+
], m.prototype, "containerMaxWidth", 2);
|
|
2192
|
+
y([
|
|
2193
|
+
w({ type: String, attribute: "content-height" })
|
|
2194
|
+
], m.prototype, "contentHeight", 2);
|
|
2195
|
+
y([
|
|
2196
|
+
w({ type: String, reflect: !0, attribute: "toggle-height-mode" })
|
|
2197
|
+
], m.prototype, "toggleHeightMode", 2);
|
|
2198
|
+
y([
|
|
2199
|
+
w({ attribute: !1 })
|
|
2200
|
+
], m.prototype, "tableData", 2);
|
|
2201
|
+
y([
|
|
2202
|
+
w({ attribute: !1 })
|
|
2203
|
+
], m.prototype, "valueFormat", 2);
|
|
2204
|
+
y([
|
|
2205
|
+
w({ attribute: !1 })
|
|
2206
|
+
], m.prototype, "timeFormat", 2);
|
|
2207
|
+
y([
|
|
2208
|
+
w({ attribute: !1 })
|
|
2209
|
+
], m.prototype, "yAxisSettings", 2);
|
|
2210
|
+
y([
|
|
2204
2211
|
j()
|
|
2205
|
-
],
|
|
2206
|
-
|
|
2212
|
+
], m.prototype, "_slottedTableData", 2);
|
|
2213
|
+
y([
|
|
2207
2214
|
j()
|
|
2208
|
-
],
|
|
2209
|
-
|
|
2215
|
+
], m.prototype, "_actionsMenuOpen", 2);
|
|
2216
|
+
y([
|
|
2210
2217
|
j()
|
|
2211
|
-
],
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
],
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
],
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
],
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
],
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
],
|
|
2227
|
-
|
|
2218
|
+
], m.prototype, "_seriesDifferentiationEnabled", 2);
|
|
2219
|
+
y([
|
|
2220
|
+
w({ type: String, reflect: !0 })
|
|
2221
|
+
], m.prototype, "spacing", 2);
|
|
2222
|
+
y([
|
|
2223
|
+
w({ type: String, attribute: "spacing-top", reflect: !0 })
|
|
2224
|
+
], m.prototype, "spacingTop", 2);
|
|
2225
|
+
y([
|
|
2226
|
+
w({ type: String, attribute: "spacing-bottom", reflect: !0 })
|
|
2227
|
+
], m.prototype, "spacingBottom", 2);
|
|
2228
|
+
y([
|
|
2229
|
+
w({ type: String, attribute: "spacing-left", reflect: !0 })
|
|
2230
|
+
], m.prototype, "spacingLeft", 2);
|
|
2231
|
+
y([
|
|
2232
|
+
w({ type: String, attribute: "spacing-right", reflect: !0 })
|
|
2233
|
+
], m.prototype, "spacingRight", 2);
|
|
2234
|
+
m = y([
|
|
2228
2235
|
vt("scb-viz")
|
|
2229
|
-
],
|
|
2236
|
+
], m);
|
|
2230
2237
|
export {
|
|
2231
|
-
|
|
2238
|
+
m as ScbViz
|
|
2232
2239
|
};
|